@tryghost/comments-ui 1.3.9 → 1.3.10

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,35 +1,35 @@
1
- (function(kt){typeof define=="function"&&define.amd?define(kt):kt()})(function(){"use strict";var SO=Object.defineProperty;var kO=(kt,Ze,zt)=>Ze in kt?SO(kt,Ze,{enumerable:!0,configurable:!0,writable:!0,value:zt}):kt[Ze]=zt;var $r=(kt,Ze,zt)=>kO(kt,typeof Ze!="symbol"?Ze+"":Ze,zt);function kt(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"}))}var Ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ww(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){return this instanceof o?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return t[o]}})}),n}var tf={exports:{}},Sr={};/*
1
+ (function(kt){typeof define=="function"&&define.amd?define(kt):kt()})(function(){"use strict";var kO=Object.defineProperty;var xO=(kt,Ze,zt)=>Ze in kt?kO(kt,Ze,{enumerable:!0,configurable:!0,writable:!0,value:zt}):kt[Ze]=zt;var $r=(kt,Ze,zt)=>xO(kt,typeof Ze!="symbol"?Ze+"":Ze,zt);function kt(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"}))}var Ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function qw(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){return this instanceof o?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return t[o]}})}),n}var tf={exports:{}},Sr={};/*
2
2
  object-assign
3
3
  (c) Sindre Sorhus
4
4
  @license MIT
5
- */var nf=Object.getOwnPropertySymbols,qw=Object.prototype.hasOwnProperty,Gw=Object.prototype.propertyIsEnumerable;function Qw(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function Zw(){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 Vl=Zw()?Object.assign:function(t,e){for(var n,o=Qw(t),r,i=1;i<arguments.length;i++){n=Object(arguments[i]);for(var s in n)qw.call(n,s)&&(o[s]=n[s]);if(nf){r=nf(n);for(var a=0;a<r.length;a++)Gw.call(n,r[a])&&(o[r[a]]=n[r[a]])}}return o},of={exports:{}},te={};/** @license React v17.0.2
5
+ */var nf=Object.getOwnPropertySymbols,Gw=Object.prototype.hasOwnProperty,Qw=Object.prototype.propertyIsEnumerable;function Zw(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function Xw(){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 Vl=Xw()?Object.assign:function(t,e){for(var n,o=Zw(t),r,i=1;i<arguments.length;i++){n=Object(arguments[i]);for(var s in n)Gw.call(n,s)&&(o[s]=n[s]);if(nf){r=nf(n);for(var a=0;a<r.length;a++)Qw.call(n,r[a])&&(o[r[a]]=n[r[a]])}}return o},of={exports:{}},X={};/** @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 Ul=Vl,So=60103,rf=60106;te.Fragment=60107,te.StrictMode=60108,te.Profiler=60114;var sf=60109,af=60110,lf=60112;te.Suspense=60113;var cf=60115,uf=60116;if(typeof Symbol=="function"&&Symbol.for){var yt=Symbol.for;So=yt("react.element"),rf=yt("react.portal"),te.Fragment=yt("react.fragment"),te.StrictMode=yt("react.strict_mode"),te.Profiler=yt("react.profiler"),sf=yt("react.provider"),af=yt("react.context"),lf=yt("react.forward_ref"),te.Suspense=yt("react.suspense"),cf=yt("react.memo"),uf=yt("react.lazy")}var df=typeof Symbol=="function"&&Symbol.iterator;function Xw(t){return t===null||typeof t!="object"?null:(t=df&&t[df]||t["@@iterator"],typeof t=="function"?t:null)}function kr(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 mf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ff={};function ko(t,e,n){this.props=t,this.context=e,this.refs=ff,this.updater=n||mf}ko.prototype.isReactComponent={},ko.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error(kr(85));this.updater.enqueueSetState(this,t,e,"setState")},ko.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function pf(){}pf.prototype=ko.prototype;function _l(t,e,n){this.props=t,this.context=e,this.refs=ff,this.updater=n||mf}var Yl=_l.prototype=new pf;Yl.constructor=_l,Ul(Yl,ko.prototype),Yl.isPureReactComponent=!0;var Jl={current:null},hf=Object.prototype.hasOwnProperty,gf={key:!0,ref:!0,__self:!0,__source:!0};function yf(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)hf.call(e,o)&&!gf.hasOwnProperty(o)&&(r[o]=e[o]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];r.children=l}if(t&&t.defaultProps)for(o in a=t.defaultProps,a)r[o]===void 0&&(r[o]=a[o]);return{$$typeof:So,type:t,key:i,ref:s,props:r,_owner:Jl.current}}function ev(t,e){return{$$typeof:So,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Kl(t){return typeof t=="object"&&t!==null&&t.$$typeof===So}function tv(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var bf=/\/+/g;function Wl(t,e){return typeof t=="object"&&t!==null&&t.key!=null?tv(""+t.key):e.toString(36)}function rs(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 So:case rf:s=!0}}if(s)return s=t,r=r(s),t=o===""?"."+Wl(s,0):o,Array.isArray(r)?(n="",t!=null&&(n=t.replace(bf,"$&/")+"/"),rs(r,e,n,"",function(c){return c})):r!=null&&(Kl(r)&&(r=ev(r,n+(!r.key||s&&s.key===r.key?"":(""+r.key).replace(bf,"$&/")+"/")+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+Wl(i,a);s+=rs(i,e,n,l,r)}else if(l=Xw(t),typeof l=="function")for(t=l.call(t),a=0;!(i=t.next()).done;)i=i.value,l=o+Wl(i,a++),s+=rs(i,e,n,l,r);else if(i==="object")throw e=""+t,Error(kr(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e));return s}function is(t,e,n){if(t==null)return t;var o=[],r=0;return rs(t,o,"","",function(i){return e.call(n,i,r++)}),o}function nv(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 wf={current:null};function Bt(){var t=wf.current;if(t===null)throw Error(kr(321));return t}var ov={ReactCurrentDispatcher:wf,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Jl,IsSomeRendererActing:{current:!1},assign:Ul};te.Children={map:is,forEach:function(t,e,n){is(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return is(t,function(){e++}),e},toArray:function(t){return is(t,function(e){return e})||[]},only:function(t){if(!Kl(t))throw Error(kr(143));return t}},te.Component=ko,te.PureComponent=_l,te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ov,te.cloneElement=function(t,e,n){if(t==null)throw Error(kr(267,t));var o=Ul({},t.props),r=t.key,i=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,s=Jl.current),e.key!==void 0&&(r=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)hf.call(e,l)&&!gf.hasOwnProperty(l)&&(o[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];o.children=a}return{$$typeof:So,type:t.type,key:r,ref:i,props:o,_owner:s}},te.createContext=function(t,e){return e===void 0&&(e=null),t={$$typeof:af,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider={$$typeof:sf,_context:t},t.Consumer=t},te.createElement=yf,te.createFactory=function(t){var e=yf.bind(null,t);return e.type=t,e},te.createRef=function(){return{current:null}},te.forwardRef=function(t){return{$$typeof:lf,render:t}},te.isValidElement=Kl,te.lazy=function(t){return{$$typeof:uf,_payload:{_status:-1,_result:t},_init:nv}},te.memo=function(t,e){return{$$typeof:cf,type:t,compare:e===void 0?null:e}},te.useCallback=function(t,e){return Bt().useCallback(t,e)},te.useContext=function(t,e){return Bt().useContext(t,e)},te.useDebugValue=function(){},te.useEffect=function(t,e){return Bt().useEffect(t,e)},te.useImperativeHandle=function(t,e,n){return Bt().useImperativeHandle(t,e,n)},te.useLayoutEffect=function(t,e){return Bt().useLayoutEffect(t,e)},te.useMemo=function(t,e){return Bt().useMemo(t,e)},te.useReducer=function(t,e,n){return Bt().useReducer(t,e,n)},te.useRef=function(t){return Bt().useRef(t)},te.useState=function(t){return Bt().useState(t)},te.version="17.0.2",of.exports=te;var k=of.exports;const G=zt(k),vf=kt({__proto__:null,default:G},[k]);/** @license React v17.0.2
12
+ */var Ul=Vl,So=60103,rf=60106;X.Fragment=60107,X.StrictMode=60108,X.Profiler=60114;var sf=60109,af=60110,lf=60112;X.Suspense=60113;var cf=60115,uf=60116;if(typeof Symbol=="function"&&Symbol.for){var yt=Symbol.for;So=yt("react.element"),rf=yt("react.portal"),X.Fragment=yt("react.fragment"),X.StrictMode=yt("react.strict_mode"),X.Profiler=yt("react.profiler"),sf=yt("react.provider"),af=yt("react.context"),lf=yt("react.forward_ref"),X.Suspense=yt("react.suspense"),cf=yt("react.memo"),uf=yt("react.lazy")}var df=typeof Symbol=="function"&&Symbol.iterator;function ev(t){return t===null||typeof t!="object"?null:(t=df&&t[df]||t["@@iterator"],typeof t=="function"?t:null)}function kr(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 mf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ff={};function ko(t,e,n){this.props=t,this.context=e,this.refs=ff,this.updater=n||mf}ko.prototype.isReactComponent={},ko.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error(kr(85));this.updater.enqueueSetState(this,t,e,"setState")},ko.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function pf(){}pf.prototype=ko.prototype;function _l(t,e,n){this.props=t,this.context=e,this.refs=ff,this.updater=n||mf}var Yl=_l.prototype=new pf;Yl.constructor=_l,Ul(Yl,ko.prototype),Yl.isPureReactComponent=!0;var Jl={current:null},hf=Object.prototype.hasOwnProperty,gf={key:!0,ref:!0,__self:!0,__source:!0};function yf(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)hf.call(e,o)&&!gf.hasOwnProperty(o)&&(r[o]=e[o]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];r.children=l}if(t&&t.defaultProps)for(o in a=t.defaultProps,a)r[o]===void 0&&(r[o]=a[o]);return{$$typeof:So,type:t,key:i,ref:s,props:r,_owner:Jl.current}}function tv(t,e){return{$$typeof:So,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Kl(t){return typeof t=="object"&&t!==null&&t.$$typeof===So}function nv(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var bf=/\/+/g;function Wl(t,e){return typeof t=="object"&&t!==null&&t.key!=null?nv(""+t.key):e.toString(36)}function rs(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 So:case rf:s=!0}}if(s)return s=t,r=r(s),t=o===""?"."+Wl(s,0):o,Array.isArray(r)?(n="",t!=null&&(n=t.replace(bf,"$&/")+"/"),rs(r,e,n,"",function(c){return c})):r!=null&&(Kl(r)&&(r=tv(r,n+(!r.key||s&&s.key===r.key?"":(""+r.key).replace(bf,"$&/")+"/")+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+Wl(i,a);s+=rs(i,e,n,l,r)}else if(l=ev(t),typeof l=="function")for(t=l.call(t),a=0;!(i=t.next()).done;)i=i.value,l=o+Wl(i,a++),s+=rs(i,e,n,l,r);else if(i==="object")throw e=""+t,Error(kr(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e));return s}function is(t,e,n){if(t==null)return t;var o=[],r=0;return rs(t,o,"","",function(i){return e.call(n,i,r++)}),o}function ov(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 wf={current:null};function Bt(){var t=wf.current;if(t===null)throw Error(kr(321));return t}var rv={ReactCurrentDispatcher:wf,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Jl,IsSomeRendererActing:{current:!1},assign:Ul};X.Children={map:is,forEach:function(t,e,n){is(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return is(t,function(){e++}),e},toArray:function(t){return is(t,function(e){return e})||[]},only:function(t){if(!Kl(t))throw Error(kr(143));return t}},X.Component=ko,X.PureComponent=_l,X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rv,X.cloneElement=function(t,e,n){if(t==null)throw Error(kr(267,t));var o=Ul({},t.props),r=t.key,i=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,s=Jl.current),e.key!==void 0&&(r=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)hf.call(e,l)&&!gf.hasOwnProperty(l)&&(o[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];o.children=a}return{$$typeof:So,type:t.type,key:r,ref:i,props:o,_owner:s}},X.createContext=function(t,e){return e===void 0&&(e=null),t={$$typeof:af,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider={$$typeof:sf,_context:t},t.Consumer=t},X.createElement=yf,X.createFactory=function(t){var e=yf.bind(null,t);return e.type=t,e},X.createRef=function(){return{current:null}},X.forwardRef=function(t){return{$$typeof:lf,render:t}},X.isValidElement=Kl,X.lazy=function(t){return{$$typeof:uf,_payload:{_status:-1,_result:t},_init:ov}},X.memo=function(t,e){return{$$typeof:cf,type:t,compare:e===void 0?null:e}},X.useCallback=function(t,e){return Bt().useCallback(t,e)},X.useContext=function(t,e){return Bt().useContext(t,e)},X.useDebugValue=function(){},X.useEffect=function(t,e){return Bt().useEffect(t,e)},X.useImperativeHandle=function(t,e,n){return Bt().useImperativeHandle(t,e,n)},X.useLayoutEffect=function(t,e){return Bt().useLayoutEffect(t,e)},X.useMemo=function(t,e){return Bt().useMemo(t,e)},X.useReducer=function(t,e,n){return Bt().useReducer(t,e,n)},X.useRef=function(t){return Bt().useRef(t)},X.useState=function(t){return Bt().useState(t)},X.version="17.0.2",of.exports=X;var k=of.exports;const q=zt(k),vf=kt({__proto__:null,default:q},[k]);/** @license React v17.0.2
13
13
  * react-jsx-runtime.production.min.js
14
14
  *
15
15
  * Copyright (c) Facebook, Inc. and its affiliates.
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var rv=k,$f=60103;if(Sr.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Sf=Symbol.for;$f=Sf("react.element"),Sr.Fragment=Sf("react.fragment")}var iv=rv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sv=Object.prototype.hasOwnProperty,av={key:!0,ref:!0,__self:!0,__source:!0};function kf(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)sv.call(e,o)&&!av.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:$f,type:t,key:i,ref:s,props:r,_owner:iv.current}}Sr.jsx=kf,Sr.jsxs=kf,tf.exports=Sr;var b=tf.exports;const lv=({adminUrl:t,onLoad:e})=>{const n={display:"none"};return b.jsx("iframe",{"data-frame":"admin-auth",src:t+"auth-frame/",style:n,title:"auth-frame",onLoad:e})};var cv=function(t){return t instanceof RegExp},uv=function(e){var n=/[\\^$.*+?()[\]{}|]/g,o=RegExp(n.source);return e&&o.test(e)?e.replace(n,"\\$&"):e},xf=function(t){return typeof t=="string"},dv=function(t){var e=[];return t.forEach(function(n){Array.isArray(n)?e=e.concat(n):e.push(n)}),e};function mv(t,e,n){var o=0,r=0;if(t==="")return t;if(!t||!xf(t))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var i=e;cv(i)||(i=new RegExp("("+uv(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 fv=function(e,n,o){return Array.isArray(e)||(e=[e]),dv(e.map(function(r){return xf(r)?mv(r,n,o):r}))};const Cf=zt(fv),ql=G.createContext({});ql.Provider;const Y=()=>k.useContext(ql),pv=()=>{const e=Y().dispatchAction;return n=>{e("setOrder",{order:n})}},Ef=()=>{try{return Y().labs||{}}catch{return{}}},Nf=({isFirst:t,isPaid:e})=>{const{accentColor:n,publication:o,member:r,t:i,commentCount:s}=Y(),a={backgroundColor:n},l={color:n},c=i(s===0?"Start the conversation":"Join the discussion"),u=()=>{window.location.href=e&&r?"#/portal/account/plans":"#/portal/signup"},d=()=>{window.location.href="#/portal/signin"},m=Cf(i(e?"Become a paid member of {publication} to start commenting.":"Become a member of {publication} to start commenting."),"{publication}",()=>b.jsx("span",{className:"font-semibold",children:o}));return b.jsxs(b.Fragment,{children:[b.jsx("h1",{className:`mb-[8px] text-center font-sans text-2xl tracking-tight text-black dark:text-[rgba(255,255,255,0.85)] ${t?"font-semibold":"font-bold"}`,children:c}),b.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}),b.jsx("button",{className:"text-md mb-[12px] inline-block rounded px-5 py-[14px] font-sans font-medium leading-none text-white transition-all hover:opacity-90","data-testid":"signup-button",style:a,type:"button",onClick:u,children:i(e&&r?"Upgrade now":"Sign up now")}),!r&&b.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:[b.jsx("span",{className:"mr-1 inline-block text-[15px]",children:i("Already a member?")}),b.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")})]})]})},Af=t=>k.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},k.createElement("path",{d:"M11.55 4C13.483 4 15.05 5.567 15.05 7.5C15.05 9.433 13.483 11 11.55 11C9.617 11 8.05 9.433 8.05 7.5C8.05 5.567 9.617 4 11.55 4ZM11.55 20C9.044 20 6.757 19.067 5 17.538C5.997 14.888 8.551 13 11.55 13C14.549 13 17.103 14.888 18.1 17.538C16.343 19.066 14.056 20 11.55 20Z",fill:"currentColor"})),Df="ghost-comments-";function Rf(t,e){return`${t.replace(/#.*$/,"")}#${Df}${e}`}function Of(t){const e=new RegExp(`^#${Df}([a-f0-9]+)$`,"i"),n=t.match(e);return n?n[1]:null}function hv(t,e){return t.find(n=>(n==null?void 0:n.id)===e)||t.flatMap(n=>n.replies||[]).find(n=>(n==null?void 0:n.id)===e)}function ss(t){return t!==0&&!t?"":t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function gv(t,e){const n=new Date(t),o=new Date;if(isNaN(n.getTime()))return e("Just now");const r=Math.round((o.getTime()-n.getTime())/1e3);if(r<60)return e("Just now");const i=Math.round(r/60);if(i===1)return e("One min ago");if(i<60)return e("{amount} mins ago",{amount:i});const s=Math.round(i/60);if(s===1)return e("One hour ago");const a=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())),l=new Date(Date.UTC(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate())),c=Math.floor((l.getTime()-a.getTime())/(1e3*60*60*24));if(c===1)return e("Yesterday");if(c>1){const u=n.getDate(),d=n.toLocaleString("en-us",{month:"short"});return n.getFullYear()!==o.getFullYear()?`${u} ${d} ${n.getFullYear()}`:`${u} ${d}`}return e("{amount} hrs ago",{amount:s})}function yv(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 bv(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 Tf(t,e){return t?t.name?t.name:e("Anonymous"):e("Deleted member")}function wv(t,e){return Tf(t.member,e)}function as(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<480}const vv=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},ls=t=>{const e=t.offsetHeight,n=vv(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 $v(t){const{html:e=""}=t,n=document.createElement("div");n.innerHTML=e,n.querySelectorAll("script, style, link, meta, noscript, title").forEach(r=>r.remove()),n.querySelectorAll("blockquote").forEach(r=>r.remove());let o=n.textContent||"";return o=o.replace(`
20
- `," "),o=o.replace(/\s+/g," "),o=o.trim(),o.substring(0,100)}function Mf(){return"w-8 h-8"}const jf=()=>{const t=Mf();return b.jsx("figure",{className:`relative ${t}`,"data-testid":"blank-avatar",children:b.jsx("div",{className:`flex items-center justify-center rounded-full bg-black/5 text-neutral-900/25 dark:bg-white/15 dark:text-white/30 ${t}`,children:b.jsx(Af,{className:"size-7 opacity-80"})})})},Gl=({member:t})=>{const{avatarSaturation:e,t:n}=Y(),o=Mf(),r=Tf(t,n),i=f=>{let p=0;for(let g=0;g<f.length;g++)p=f.charCodeAt(g)+((p<<5)-p);return p=Math.abs(p),p},s=(f,p,g)=>Math.floor(f%(g-p)+p),a=()=>{if(!r)return[0,0,10];const f=e===void 0||isNaN(e)?50:e,p=[0,360],g=Math.round(f/(100/30))+30,y=[g-20,g],w=i(r),$=s(w,p[0],p[1]),v=s(w,y[0],y[1]);return[$,f,v]},l=f=>`hsl(${f[0]}, ${f[1]}%, ${f[2]}%)`,c=bv(r),d={background:l(a())},m=b.jsxs(b.Fragment,{children:[r?b.jsx("div",{className:`flex items-center justify-center rounded-full ${o}`,"data-testid":"avatar-background",style:d,children:b.jsx("p",{className:"font-sans text-base font-semibold text-white",children:c})}):b.jsx("div",{className:`flex items-center justify-center rounded-full bg-neutral-900 dark:bg-white/70 ${o}`,"data-testid":"avatar-background",children:b.jsx(Af,{className:"stroke-white dark:stroke-black/60"})}),(t==null?void 0:t.avatar_image)&&b.jsx("img",{alt:"Avatar",className:`absolute left-0 top-0 rounded-full ${o}`,"data-testid":"avatar-image",src:t.avatar_image})]});return t?b.jsx("figure",{className:`relative ${o}`,"data-testid":"avatar",children:m}):b.jsx(jf,{})},Sv=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",...t},k.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",strokeLinejoin:"round",className:"nc-icon-wrapper"},k.createElement("polygon",{points:"7 21 2 22 3 17 18 2 22 6 7 21"})));function Ce(t){this.content=t}Ce.prototype={constructor:Ce,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 Ce(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 Ce(n)},addToStart:function(t,e){return new Ce([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Ce(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 Ce(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=Ce.from(t),t.size?new Ce(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Ce.from(t),t.size?new Ce(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Ce.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}},Ce.from=function(t){if(t instanceof Ce)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Ce(e)};function Pf(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=Pf(r.content,i.content,n+1);if(s!=null)return s}n+=r.nodeSize}}function Lf(t,e,n,o){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:n,b:o};let s=t.child(--r),a=e.child(--i),l=s.nodeSize;if(s==a){n-=l,o-=l;continue}if(!s.sameMarkup(a))return{a:n,b:o};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;c<u&&s.text[s.text.length-c-1]==a.text[a.text.length-c-1];)c++,n--,o--;return{a:n,b:o}}if(s.content.size||a.content.size){let c=Lf(s.content,a.content,n-1,o-1);if(c)return c}n-=l,o-=l}}class R{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let o=0;o<e.length;o++)this.size+=e[o].nodeSize}nodesBetween(e,n,o,r=0,i){for(let s=0,a=0;a<n;s++){let l=this.content[s],c=a+l.nodeSize;if(c>e&&o(l,r+a,i||null,s)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),o,r+u)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,o,r){let i="",s=!0;return this.nodesBetween(e,n,(a,l)=>{let c=a.isText?a.text.slice(Math.max(e,l)-l,n-l):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&o&&(s?s=!1:i+=o),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,o=e.firstChild,r=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(o)&&(r[r.length-1]=n.withText(n.text+o.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new R(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 R(o,r)}cutByIndex(e,n){return e==n?R.empty:e==0&&n==this.content.length?this:new R(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 R(r,i)}addToStart(e){return new R([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new R(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 Pf(this,e,n)}findDiffEnd(e,n=this.size,o=e.size){return Lf(this,e,n,o)}findIndex(e,n=-1){if(e==0)return cs(0,e);if(e==this.size)return cs(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?cs(o+1,s):cs(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 R.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new R(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return R.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 R(n||e,o)}static from(e){if(!e)return R.empty;if(e instanceof R)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new R([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}R.empty=new R([],0);const Ql={index:0,offset:0};function cs(t,e){return Ql.index=t,Ql.offset=e,Ql}function us(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(!us(t[o],e[o]))return!1}else{for(let o in t)if(!(o in e)||!us(t[o],e[o]))return!1;for(let o in e)if(!(o in t))return!1}return!0}let ie=class Zm{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&&us(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 Zm.none;if(e instanceof Zm)return[e];let n=e.slice();return n.sort((o,r)=>o.type.rank-r.type.rank),n}};ie.none=[];class ds extends Error{}class L{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=zf(this.content,e+this.openStart,n);return o&&new L(o,this.openStart,this.openEnd)}removeBetween(e,n){return new L(If(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 L.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 L(R.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 L(e,o,r)}}L.empty=new L(R.empty,0,0);function If(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(If(i.content,e-r-1,n-r-1)))}function zf(t,e,n,o){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return t.cut(0,e).append(n).append(t.cut(e));let a=zf(s.content,e-i-1,n);return a&&t.replaceChild(r,s.copy(a))}function kv(t,e,n){if(n.openStart>t.depth)throw new ds("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new ds("Inconsistent open depths");return Bf(t,e,n,0)}function Bf(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=Bf(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 _n(s,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=xv(n,t);return _n(i,Hf(t,s,a,e,o))}else return _n(i,ms(t,e,o))}function Ff(t,e){if(!e.type.compatibleContent(t.type))throw new ds("Cannot join "+e.type.name+" onto "+t.type.name)}function Zl(t,e,n){let o=t.node(n);return Ff(o,e.node(n)),o}function Un(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function xr(t,e,n,o){let r=(e||t).node(n),i=0,s=e?e.index(n):r.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(Un(t.nodeAfter,o),i++));for(let a=i;a<s;a++)Un(r.child(a),o);e&&e.depth==n&&e.textOffset&&Un(e.nodeBefore,o)}function _n(t,e){return t.type.checkContent(e),t.copy(e)}function Hf(t,e,n,o,r){let i=t.depth>r&&Zl(t,e,r+1),s=o.depth>r&&Zl(n,o,r+1),a=[];return xr(null,t,r,a),i&&s&&e.index(r)==n.index(r)?(Ff(i,s),Un(_n(i,Hf(t,e,n,o,r+1)),a)):(i&&Un(_n(i,ms(t,e,r+1)),a),xr(e,n,r,a),s&&Un(_n(s,ms(n,o,r+1)),a)),xr(o,null,r,a),new R(a)}function ms(t,e,n){let o=[];if(xr(null,t,n,o),t.depth>n){let r=Zl(t,e,n+1);Un(_n(r,ms(t,e,n+1)),o)}return xr(e,null,n,o),new R(o)}function xv(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(R.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}class Cr{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 ie.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 fs(this,e,o);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let o=[],r=0,i=n;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(i),c=i-l;if(o.push(s,a,r+l),!c||(s=s.child(a),s.isText))break;i=c-1,r+=l+1}return new Cr(n,o,i)}static resolveCached(e,n){let o=Vf.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 Vf.set(e,o=new Cv);let r=o.elts[o.i]=Cr.resolve(e,n);return o.i=(o.i+1)%Ev,r}}class Cv{constructor(){this.elts=[],this.i=0}}const Ev=12,Vf=new WeakMap;class fs{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 Nv=Object.create(null);let nn=class Xm{constructor(e,n,o,r=ie.none){this.type=e,this.attrs=n,this.marks=r,this.content=o||R.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,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&&us(this.attrs,n||e.defaultAttrs||Nv)&&ie.sameSet(this.marks,o||ie.none)}copy(e=null){return e==this.content?this:new Xm(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Xm(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 L.empty;let r=this.resolve(e),i=this.resolve(n),s=o?0:r.sharedDepth(n),a=r.start(s),c=r.node(s).content.cut(r.pos-a,i.pos-a);return new L(c,r.depth-s,i.depth-s)}replace(e,n,o){return kv(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 Cr.resolveCached(this,e)}resolveNoCache(e){return Cr.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()+")"),Uf(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=R.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=ie.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(!ie.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=R.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,r,o);return i.type.checkAttrs(i.attrs),i}};nn.prototype.text=void 0;class ps extends nn{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):Uf(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 ps(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new ps(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 Uf(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Yn{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let o=new Av(e,n);if(o.next==null)return Yn.empty;let r=_f(o);o.next&&o.err("Unexpected trailing text");let i=Pv(jv(r));return Lv(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 R.from(a.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:u,next:d}=s.next[c];if(!(u.isText||u.hasRequiredAttrs())&&r.indexOf(d)==-1){r.push(d);let m=i(d,a.concat(u));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(`
21
- `)}}Yn.empty=new Yn(!0);class Av{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 _f(t){let e=[];do e.push(Dv(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Dv(t){let e=[];do e.push(Rv(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Rv(t){let e=Mv(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=Ov(t,e);else break;return e}function Yf(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function Ov(t,e){let n=Yf(t),o=n;return t.eat(",")&&(t.next!="}"?o=Yf(t):o=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function Tv(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.isInGroup(e)&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function Mv(t){if(t.eat("(")){let e=_f(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=Tv(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 jv(t){let e=[[]];return r(i(t,0),n()),e;function n(){return e.push([])-1}function o(s,a,l){let c={term:l,to:a};return e[s].push(c),c}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,c)=>l.concat(i(c,a)),[]);if(s.type=="seq")for(let l=0;;l++){let c=i(s.exprs[l],a);if(l==s.exprs.length-1)return c;r(c,a=n())}else if(s.type=="star"){let l=n();return o(a,l),r(i(s.expr,l),l),[o(l)]}else if(s.type=="plus"){let l=n();return r(i(s.expr,a),l),r(i(s.expr,l),l),[o(l)]}else{if(s.type=="opt")return[o(a)].concat(i(s.expr,a));if(s.type=="range"){let l=a;for(let c=0;c<s.min;c++){let u=n();r(i(s.expr,l),u),l=u}if(s.max==-1)r(i(s.expr,l),l);else for(let c=s.min;c<s.max;c++){let u=n();o(l,u),r(i(s.expr,l),u),l=u}return[o(l)]}else{if(s.type=="name")return[o(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Jf(t,e){return e-t}function Kf(t,e){let n=[];return o(e),n.sort(Jf);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 Pv(t){let e=Object.create(null);return n(Kf(t,0));function n(o){let r=[];o.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u<r.length;u++)r[u][0]==a&&(c=r[u][1]);Kf(t,l).forEach(u=>{c||r.push([a,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=e[o.join(",")]=new Yn(o.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(Jf);i.next.push({type:r[s][0],next:e[a.join(",")]||n(a)})}return i}}function Lv(t,e){for(let n=0,o=[t];n<o.length;n++){let r=o[n],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:l,next:c}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),o.indexOf(c)==-1&&o.push(c)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Wf(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 qf(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 Gf(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 Qf(t,e){let n=Object.create(null);if(e)for(let o in e)n[o]=new zv(t,o,e[o]);return n}let Zf=class Kw{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=Qf(e,o.attrs),this.defaultAttrs=Wf(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==Yn.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:qf(this.attrs,e)}create(e=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new nn(this,this.computeAttrs(e),R.from(n),ie.setFrom(o))}createChecked(e=null,n,o){return n=R.from(n),this.checkContent(n),new nn(this,this.computeAttrs(e),n,ie.setFrom(o))}createAndFill(e=null,n,o){if(e=this.computeAttrs(e),n=R.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(R.empty,!0);return i?new nn(this,e,n.append(i),ie.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){Gf(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:ie.none:e}static compile(e,n){let o=Object.create(null);e.forEach((i,s)=>o[i]=new Kw(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 Iv(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 zv{constructor(e,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?Iv(e,n,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class hs{constructor(e,n,o,r){this.name=e,this.rank=n,this.schema=o,this.spec=r,this.attrs=Qf(e,r.attrs),this.excluded=null;let i=Wf(this.attrs);this.instance=i?new ie(this,i):null}create(e=null){return!e&&this.instance?this.instance:new ie(this,qf(this.attrs,e))}static compile(e,n){let o=Object.create(null),r=0;return e.forEach((i,s)=>o[i]=new hs(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){Gf(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Xf{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=Ce.from(e.nodes),n.marks=Ce.from(e.marks||{}),this.nodes=Zf.compile(this.spec.nodes,this),this.marks=hs.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]=Yn.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?ep(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==""?[]:ep(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 Zf){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 ps(o,o.defaultAttrs,e,ie.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return nn.fromJSON(this,e)}markFromJSON(e){return ie.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function ep(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 Bv(t){return t.tag!=null}function Fv(t){return t.style!=null}let Er=class ef{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];n.forEach(r=>{if(Bv(r))this.tags.push(r);else if(Fv(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 rp(this,n,!1);return o.addAll(e,ie.none,n.from,n.to),o.finish()}parseSlice(e,n={}){let o=new rp(this,n,!0);return o.addAll(e,ie.none,n.from,n.to),L.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(Uv(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=ip(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=ip(s)),s.node||s.ignore||s.mark||(s.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new ef(e,ef.schemaRules(e)))}};const tp={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},Hv={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},np={ol:!0,ul:!0},Nr=1,Xl=2,Ar=4;function op(t,e,n){return e!=null?(e?Nr:0)|(e==="full"?Xl:0):t&&t.whitespace=="pre"?Nr|Xl:n&~Ar}class gs{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=ie.none,this.match=i||(s&Ar?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(R.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&Nr)){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=R.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(R.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&&!tp.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class rp{constructor(e,n,o){this.parser=e,this.options=n,this.isOpen=o,this.open=0,this.localPreserveWS=!1;let r=n.topNode,i,s=op(null,n.preserveWhitespace,0)|(o?Ar:0);r?i=new gs(r.type,r.attrs,ie.none,!0,n.topMatch||r.type.contentMatch,s):o?i=new gs(null,null,ie.none,!0,null,s):i=new gs(e.schema.topNodeType,null,ie.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,i=r.options&Xl?"full":this.localPreserveWS||(r.options&Nr)>0;if(i==="full"||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(i)i!=="full"?o=o.replace(/\r?\n|\r/g," "):o=o.replace(/\r\n?/g,`
22
- `);else if(o=o.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(o)&&this.open==this.nodes.length-1){let s=r.content[r.content.length-1],a=e.previousSibling;(!s||a&&a.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.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=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),a;np.hasOwnProperty(s)&&this.parser.normalizeLists&&Vv(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,o));e:if(l?l.ignore:Hv.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let c,u=this.needsBlock;if(tp.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),c=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=l&&l.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),c&&this.sync(i),this.needsBlock=u}else{let c=this.readStyles(e,n);c&&this.addElementByRule(e,l,c,l.consuming===!1?a:void 0)}this.localPreserveWS=r}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
23
- `),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(e,n){let o=e.style;if(o&&o.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let i=this.parser.matchedStyles[r],s=o.getPropertyValue(i);if(s)for(let a=void 0;;){let l=this.parser.matchStyle(i,s,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(c=>!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return n}addElementByRule(e,n,o,r){let i,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),o)||this.leafFallback(e,o);else{let l=this.enter(s,n.attrs||null,o,n.preserveWhitespace);l&&(i=!0,o=l)}else{let l=this.parser.schema.marks[n.mark];o=o.concat(l.create(n.attrs))}let a=this.top;if(s&&s.isLeaf)this.findInside(e);else if(r)this.addElement(e,o,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,o));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,o),this.findAround(e,l,!1)}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=ie.none;for(let s of o.concat(e.marks))(r.type?r.type.allowsMarkType(s.type):sp(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=op(e,i,s.options);s.options&Ar&&s.content.length==0&&(a|=Ar);let l=ie.none;return o=o.filter(c=>(s.type?s.type.allowsMarkType(c.type):sp(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new gs(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;this.localPreserveWS&&(this.nodes[n].options|=Nr)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let o=this.nodes[n].content;for(let r=o.length-1;r>=0;r--)e+=o[r].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let o=0;o<this.find.length;o++)this.find[o].node==e&&this.find[o].offset==n&&(this.find[o].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,o){if(e!=n&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&n.compareDocumentPosition(this.find[r].node)&(o?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),o=this.options.context,r=!this.isOpen&&(!o||o.parent.type==this.nodes[0].type),i=-(o?o.depth+1:0)+(r?0:1),s=(a,l)=>{for(;a>=0;a--){let c=n[a];if(c==""){if(a==n.length-1||a==0)continue;for(;l>=i;l--)if(s(a-1,l))return!0;return!1}else{let u=l>0||l==0&&r?this.nodes[l].type:o&&l>=i?o.node(l-i).type:null;if(!u||u.name!=c&&!u.isInGroup(c))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 Vv(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&np.hasOwnProperty(o)&&n?(n.appendChild(e),e=n):o=="li"?n=e:o&&(n=null)}}function Uv(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function ip(t){let e={};for(let n in t)e[n]=t[n];return e}function sp(t,e){let n=e.schema.nodes;for(let o in n){let r=n[o];if(!r.allowsMarkType(t))continue;let i=[],s=a=>{i.push(a);for(let l=0;l<a.edgeCount;l++){let{type:c,next:u}=a.edge(l);if(c==e||i.indexOf(u)<0&&s(u))return!0}};if(s(r.contentMatch))return!0}}class Jn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},o){o||(o=ec(n).createDocumentFragment());let r=o,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let a=0,l=0;for(;a<i.length&&l<s.marks.length;){let c=s.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(i[a][0])||c.type.spec.spanning===!1)break;a++,l++}for(;a<i.length;)r=i.pop()[1];for(;l<s.marks.length;){let c=s.marks[l++],u=this.serializeMark(c,s.isInline,n);u&&(i.push([c,r]),r.appendChild(u.dom),r=u.contentDOM||u.dom)}}r.appendChild(this.serializeNodeInner(s,n))}),o}serializeNodeInner(e,n){let{dom:o,contentDOM:r}=ys(ec(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&&ys(ec(o),r(e,n),null,e.attrs)}static renderSpec(e,n,o=null,r){return ys(e,n,o,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Jn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=ap(e.nodes);return n.text||(n.text=o=>o.text),n}static marksFromSchema(e){return ap(e.marks)}}function ap(t){let e={};for(let n in t){let o=t[n].spec.toDOM;o&&(e[n]=o)}return e}function ec(t){return t.document||window.document}const lp=new WeakMap;function _v(t){let e=lp.get(t);return e===void 0&&lp.set(t,e=Yv(t)),e}function Yv(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 ys(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=_v(o))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=r.indexOf(" ");s>0&&(n=r.slice(0,s),r=r.slice(s+1));let a,l=n?t.createElementNS(n,r):t.createElement(r),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let m=d.indexOf(" ");m>0?l.setAttributeNS(d.slice(0,m),d.slice(m+1),c[d]):l.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let m=e[d];if(m===0){if(d<e.length-1||d>u)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}=ys(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 cp=65535,up=Math.pow(2,16);function Jv(t,e){return t+e*up}function dp(t){return t&cp}function Kv(t){return(t-(t&cp))/up}const mp=1,fp=2,bs=4,pp=8;class tc{constructor(e,n,o){this.pos=e,this.delInfo=n,this.recover=o}get deleted(){return(this.delInfo&pp)>0}get deletedBefore(){return(this.delInfo&(mp|bs))>0}get deletedAfter(){return(this.delInfo&(fp|bs))>0}get deletedAcross(){return(this.delInfo&bs)>0}}class Xe{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Xe.empty)return Xe.empty}recover(e){let n=0,o=dp(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+Kv(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,o){let r=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[a+i],u=this.ranges[a+s],d=l+c;if(e<=d){let m=c?e==l?-1:e==d?1:n:n,f=l+r+(m<0?0:u);if(o)return f;let p=e==(n<0?l:d)?null:Jv(a/3,e-l),g=e==l?fp:e==d?mp:bs;return(n<0?e!=l:e!=d)&&(g|=pp),new tc(f,g,p)}r+=u-c}return o?e+r:new tc(e+r,0,null)}touches(e,n){let o=0,r=dp(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?o:0);if(l>e)break;let c=this.ranges[a+i],u=l+c;if(e<=u&&a==r*3)return!0;o+=this.ranges[a+s]-c}return!1}forEach(e){let n=this.inverted?2:1,o=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let s=this.ranges[r],a=s-(this.inverted?i:0),l=s+(this.inverted?0:i),c=this.ranges[r+n],u=this.ranges[r+o];e(a,a+c,l,l+u),i+=u-c}}invert(){return new Xe(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Xe.empty:new Xe(e<0?[0,-e,0]:[0,0,e])}}Xe.empty=new Xe([]);class ws{constructor(e,n,o=0,r=e?e.length:0){this.mirror=n,this.from=o,this.to=r,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new ws(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,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 ws;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 tc(e,r,null)}}const nc=Object.create(null);class Oe{getMap(){return Xe.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let o=nc[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 nc)throw new RangeError("Duplicate use of step JSON ID "+e);return nc[e]=n,n.prototype.jsonID=e,n}}class ye{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ye(e,null)}static fail(e){return new ye(null,e)}static fromReplace(e,n,o,r){try{return ye.ok(e.replace(n,o,r))}catch(i){if(i instanceof ds)return ye.fail(i.message);throw i}}}function oc(t,e,n){let o=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(oc(i.content,e,i))),i.isInline&&(i=e(i,n,r)),o.push(i)}return R.fromArray(o)}class on extends Oe{constructor(e,n,o){super(),this.from=e,this.to=n,this.mark=o}apply(e){let n=e.slice(this.from,this.to),o=e.resolve(this.from),r=o.node(o.sharedDepth(this.to)),i=new L(oc(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 ye.fromReplace(e,this.from,this.to,i)}invert(){return new xt(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 on(n.pos,o.pos,this.mark)}merge(e){return e instanceof on&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new on(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 on(n.from,n.to,e.markFromJSON(n.mark))}}Oe.jsonID("addMark",on);class xt extends Oe{constructor(e,n,o){super(),this.from=e,this.to=n,this.mark=o}apply(e){let n=e.slice(this.from,this.to),o=new L(oc(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),n.openStart,n.openEnd);return ye.fromReplace(e,this.from,this.to,o)}invert(){return new on(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 xt(n.pos,o.pos,this.mark)}merge(e){return e instanceof xt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new xt(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 xt(n.from,n.to,e.markFromJSON(n.mark))}}Oe.jsonID("removeMark",xt);class rn extends Oe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ye.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ye.fromReplace(e,this.pos,this.pos+1,new L(R.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 rn(this.pos,n.marks[r]);return new rn(this.pos,this.mark)}}return new xo(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new rn(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 rn(n.pos,e.markFromJSON(n.mark))}}Oe.jsonID("addNodeMark",rn);class xo extends Oe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ye.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ye.fromReplace(e,this.pos,this.pos+1,new L(R.from(o),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new rn(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new xo(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 xo(n.pos,e.markFromJSON(n.mark))}}Oe.jsonID("removeNodeMark",xo);class ve extends Oe{constructor(e,n,o,r=!1){super(),this.from=e,this.to=n,this.slice=o,this.structure=r}apply(e){return this.structure&&rc(e,this.from,this.to)?ye.fail("Structure replace would overwrite content"):ye.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Xe([this.from,this.to-this.from,this.slice.size])}invert(e){return new ve(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 ve(n.pos,Math.max(n.pos,o.pos),this.slice)}merge(e){if(!(e instanceof ve)||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?L.empty:new L(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new ve(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?L.empty:new L(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new ve(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 ve(n.from,n.to,L.fromJSON(e,n.slice),!!n.structure)}}Oe.jsonID("replace",ve);class $e extends Oe{constructor(e,n,o,r,i,s,a=!1){super(),this.from=e,this.to=n,this.gapFrom=o,this.gapTo=r,this.slice=i,this.insert=s,this.structure=a}apply(e){if(this.structure&&(rc(e,this.from,this.gapFrom)||rc(e,this.gapTo,this.to)))return ye.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ye.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,n.content);return o?ye.fromReplace(e,this.from,this.to,o):ye.fail("Content does not fit in gap")}getMap(){return new Xe([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 $e(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 $e(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 $e(n.from,n.to,n.gapFrom,n.gapTo,L.fromJSON(e,n.slice),n.insert,!!n.structure)}}Oe.jsonID("replaceAround",$e);function rc(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 Wv(t,e,n,o){let r=[],i=[],s,a;t.doc.nodesBetween(e,n,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!o.isInSet(d)&&u.type.allowsMarkType(o.type)){let m=Math.max(c,e),f=Math.min(c+l.nodeSize,n),p=o.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(p)||(s&&s.to==m&&s.mark.eq(d[g])?s.to=f:r.push(s=new xt(m,f,d[g])));a&&a.to==m?a.to=f:i.push(a=new on(m,f,o))}}),r.forEach(l=>t.step(l)),i.forEach(l=>t.step(l))}function qv(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 hs){let c=s.marks,u;for(;u=o.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else o?o.isInSet(s.marks)&&(l=[o]):l=s.marks;if(l&&l.length){let c=Math.min(a+s.nodeSize,n);for(let u=0;u<l.length;u++){let d=l[u],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=c,m.step=i):r.push({style:d,from:Math.max(a,e),to:c,step:i})}}}),r.forEach(s=>t.step(new xt(s.from,s.to,s.style)))}function ic(t,e,n,o=n.contentMatch,r=!0){let i=t.doc.nodeAt(e),s=[],a=e+1;for(let l=0;l<i.childCount;l++){let c=i.child(l),u=a+c.nodeSize,d=o.matchType(c.type);if(!d)s.push(new ve(a,u,L.empty));else{o=d;for(let m=0;m<c.marks.length;m++)n.allowsMarkType(c.marks[m].type)||t.step(new xt(a,u,c.marks[m]));if(r&&c.isText&&n.whitespace!="pre"){let m,f=/\r?\n|\r/g,p;for(;m=f.exec(c.text);)p||(p=new L(R.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),s.push(new ve(a+m.index,a+m.index+m[0].length,p))}}a=u}if(!o.validEnd){let l=o.fillBefore(R.empty,!0);t.replace(a,a,new L(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function Gv(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Co(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||!Gv(r,i,s))break}return null}function Qv(t,e,n){let{$from:o,$to:r,depth:i}=e,s=o.before(i+1),a=r.after(i+1),l=s,c=a,u=R.empty,d=0;for(let p=i,g=!1;p>n;p--)g||o.index(p)>0?(g=!0,u=R.from(o.node(p).copy(u)),d++):l--;let m=R.empty,f=0;for(let p=i,g=!1;p>n;p--)g||r.after(p+1)<r.end(p)?(g=!0,m=R.from(r.node(p).copy(m)),f++):c++;t.step(new $e(l,c,s,a,new L(u.append(m),d,f),u.size-d,!0))}function sc(t,e,n=null,o=t){let r=Zv(t,e),i=r&&Xv(o,e);return i?r.map(hp).concat({type:e,attrs:n}).concat(i.map(hp)):null}function hp(t){return{type:t,attrs:null}}function Zv(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 Xv(t,e){let{parent:n,startIndex:o,endIndex:r}=t,i=n.child(o),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let l=(s.length?s[s.length-1]:e).contentMatch;for(let c=o;l&&c<r;c++)l=l.matchType(n.child(c).type);return!l||!l.validEnd?null:s}function e$(t,e,n){let o=R.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=R.from(n[s].type.create(n[s].attrs,o))}let r=e.start,i=e.end;t.step(new $e(r,i,r,i,new L(o,0,0),n.length,!0))}function t$(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)&&n$(t.doc,t.mapping.slice(i).map(a),o)){let c=null;if(o.schema.linebreakReplacement){let f=o.whitespace=="pre",p=!!o.contentMatch.matchType(o.schema.linebreakReplacement);f&&!p?c=!1:!f&&p&&(c=!0)}c===!1&&yp(t,s,a,i),ic(t,t.mapping.slice(i).map(a,1),o,void 0,c===null);let u=t.mapping.slice(i),d=u.map(a,1),m=u.map(a+s.nodeSize,1);return t.step(new $e(d,m,d+1,m-1,new L(R.from(o.create(l,null,s.marks)),0,0),1,!0)),c===!0&&gp(t,s,a,i),!1}})}function gp(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 yp(t,e,n,o){e.forEach((r,i)=>{if(r.type==r.type.schema.linebreakReplacement){let s=t.mapping.slice(o).map(n+1+i);t.replaceWith(s,s+1,e.type.schema.text(`
24
- `))}})}function n$(t,e,n){let o=t.resolve(e),r=o.index();return o.parent.canReplaceWith(r,r+1,n)}function o$(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 $e(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new L(R.from(s),0,0),1,!0))}function Ft(t,e,n=1,o){let r=t.resolve(e),i=r.depth-n,s=o&&o[o.length-1]||r.parent;if(i<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!s.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let c=r.depth-1,u=n-2;c>i;c--,u--){let d=r.node(c),m=r.index(c);if(d.type.spec.isolating)return!1;let f=d.content.cutByIndex(m,d.childCount),p=o&&o[u+1];p&&(f=f.replaceChild(0,p.type.create(p.attrs)));let g=o&&o[u]||d;if(!d.canReplace(m+1,d.childCount)||!g.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 r$(t,e,n=1,o){let r=t.doc.resolve(e),i=R.empty,s=R.empty;for(let a=r.depth,l=r.depth-n,c=n-1;a>l;a--,c--){i=R.from(r.node(a).copy(i));let u=o&&o[c];s=R.from(u?u.type.create(u.attrs,s):r.node(a).copy(s))}t.step(new ve(e,e,new L(i.append(s),n,n),!0))}function sn(t,e){let n=t.resolve(e),o=n.index();return bp(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function i$(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:o}=t.type.schema;for(let r=0;r<e.childCount;r++){let i=e.child(r),s=i.type==o?t.type.schema.nodes.text:i.type;if(n=n.matchType(s),!n||!t.type.allowsMarks(i.marks))return!1}return n.validEnd}function bp(t,e){return!!(t&&e&&!t.isLeaf&&i$(t,e))}function vs(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&&bp(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 s$(t,e,n){let o=null,{linebreakReplacement:r}=t.doc.type.schema,i=t.doc.resolve(e-n),s=i.node().type;if(r&&s.inlineContent){let u=s.whitespace=="pre",d=!!s.contentMatch.matchType(r);u&&!d?o=!1:!u&&d&&(o=!0)}let a=t.steps.length;if(o===!1){let u=t.doc.resolve(e+n);yp(t,u.node(),u.before(),a)}s.inlineContent&&ic(t,e+n-1,s,i.node().contentMatchAt(i.index()),o==null);let l=t.mapping.slice(a),c=l.map(e-n);if(t.step(new ve(c,l.map(e+n,-1),L.empty,!0)),o===!0){let u=t.doc.resolve(c);gp(t,u.node(),u.before(),t.steps.length)}return t}function a$(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 l$(t,e,n){let o=t.resolve(e);if(!n.content.size)return e;let r=n.content;for(let i=0;i<n.openStart;i++)r=r.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let s=o.depth;s>=0;s--){let a=s==o.depth?0:o.pos<=(o.start(s+1)+o.end(s+1))/2?-1:1,l=o.index(s)+(a>0?1:0),c=o.node(s),u=!1;if(i==1)u=c.canReplace(l,l,r);else{let d=c.contentMatchAt(l).findWrapping(r.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return a==0?o.pos:a<0?o.before(s+1):o.after(s+1)}return null}function $s(t,e,n=e,o=L.empty){if(e==n&&!o.size)return null;let r=t.resolve(e),i=t.resolve(n);return wp(r,i,o)?new ve(e,n,o):new c$(r,i,o).fit()}function wp(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class c${constructor(e,n,o){this.$from=e,this.$to=n,this.unplaced=o,this.frontier=[],this.placed=R.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=R.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,o=this.$from,r=this.close(e<0?this.$to:o.doc.resolve(e));if(!r)return null;let i=this.placed,s=o.depth,a=r.depth;for(;s&&a&&i.childCount==1;)i=i.firstChild.content,s--,a--;let l=new L(i,s,a);return e>-1?new $e(o.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||o.pos!=this.$to.pos?new ve(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=ac(this.unplaced.content,o-1).firstChild,r=i.content):r=this.unplaced.content;let s=r.firstChild;for(let a=this.depth;a>=0;a--){let{type:l,match:c}=this.frontier[a],u,d=null;if(n==1&&(s?c.matchType(s.type)||(d=c.fillBefore(R.from(s),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:o,frontierDepth:a,parent:i,inject:d};if(n==2&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:o,frontierDepth:a,parent:i,wrap:u};if(i&&c.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=ac(e,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new L(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=ac(e,n);if(r.childCount<=1&&n>0){let i=e.size-n<=n+r.size;this.unplaced=new L(Dr(e,n-1,1),n-1,i?n-1:o)}else this.unplaced=new L(Dr(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 g=0;g<i.length;g++)this.openFrontierNode(i[g]);let s=this.unplaced,a=o?o.content:s.content,l=s.openStart-e,c=0,u=[],{match:d,type:m}=this.frontier[n];if(r){for(let g=0;g<r.childCount;g++)u.push(r.child(g));d=d.matchFragment(r)}let f=a.size+e-(s.content.size-s.openEnd);for(;c<a.childCount;){let g=a.child(c),h=d.matchType(g.type);if(!h)break;c++,(c>1||l==0||g.content.size)&&(d=h,u.push(vp(g.mark(m.allowedMarks(g.marks)),c==1?l:0,c==a.childCount?f:-1)))}let p=c==a.childCount;p||(f=-1),this.placed=Rr(this.placed,n,R.from(u)),this.frontier[n].match=d,p&&f<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,h=a;g<f;g++){let y=h.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),h=y.content}this.unplaced=p?e==0?L.empty:new L(Dr(s.content,e-1,1),e-1,f<0?s.openEnd:e-1):new L(Dr(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!lc(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=lc(e,n,r,o,i);if(s){for(let a=n-1;a>=0;a--){let{match:l,type:c}=this.frontier[a],u=lc(e,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:s,move:i?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Rr(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=Rr(this.placed,this.depth,R.from(e.create(n,o))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(R.empty,!0);n.childCount&&(this.placed=Rr(this.placed,this.frontier.length,n))}}function Dr(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Dr(t.firstChild.content,e-1,n)))}function Rr(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Rr(t.lastChild.content,e-1,n)))}function ac(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function vp(t,e,n){if(e<=0)return t;let o=t.content;return e>1&&(o=o.replaceChild(0,vp(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(R.empty,!0)))),t.copy(o)}function lc(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&&!u$(n,i.content,s)?a:null}function u$(t,e,n){for(let o=n;o<e.childCount;o++)if(!t.allowsMarks(e.child(o).marks))return!0;return!1}function d$(t){return t.spec.defining||t.spec.definingForContent}function m$(t,e,n,o){if(!o.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),i=t.doc.resolve(n);if(wp(r,i,o))return t.step(new ve(e,n,o));let s=Sp(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),c=[],u=o.openStart;for(let m=o.content,f=0;;f++){let p=m.firstChild;if(c.push(p),f==o.openStart)break;m=p.content}for(let m=u-1;m>=0;m--){let f=c[m],p=d$(f.type);if(p&&!f.sameMarkup(r.node(Math.abs(a)-1)))u=m;else if(p||!f.type.isTextblock)break}for(let m=o.openStart;m>=0;m--){let f=(m+u+1)%(o.openStart+1),p=c[f];if(p)for(let g=0;g<s.length;g++){let h=s[(g+l)%s.length],y=!0;h<0&&(y=!1,h=-h);let w=r.node(h-1),$=r.index(h-1);if(w.canReplaceWith($,$,p.type,p.marks))return t.replace(r.before(h),y?i.after(h):n,new L($p(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 $p(t,e,n,o,r){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy($p(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(R.empty,!0))}return t}function f$(t,e,n,o){if(!o.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=a$(t.doc,e,o.type);r!=null&&(e=n=r)}t.replaceRange(e,n,new L(R.from(o),0,0))}function p$(t,e,n){let o=t.doc.resolve(e),r=t.doc.resolve(n),i=Sp(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&&o.start(s-1)==r.start(s-1)&&o.node(s-1).canReplace(o.index(s-1),r.index(s-1)))return t.delete(o.before(s),n);t.delete(e,n)}function Sp(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 Eo extends Oe{constructor(e,n,o){super(),this.pos=e,this.attr=n,this.value=o}apply(e){let n=e.nodeAt(this.pos);if(!n)return ye.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 ye.fromReplace(e,this.pos,this.pos+1,new L(R.from(r),0,n.isLeaf?0:1))}getMap(){return Xe.empty}invert(e){return new Eo(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 Eo(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 Eo(n.pos,n.attr,n.value)}}Oe.jsonID("attr",Eo);class Or extends Oe{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let r in e.attrs)n[r]=e.attrs[r];n[this.attr]=this.value;let o=e.type.create(n,e.content,e.marks);return ye.ok(o)}getMap(){return Xe.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)}}Oe.jsonID("docAttr",Or);let No=class extends Error{};No=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},No.prototype=Object.create(Error.prototype),No.prototype.constructor=No,No.prototype.name="TransformError";class kp{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new ws}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new No(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=L.empty){let r=$s(this.doc,e,n,o);return r&&this.step(r),this}replaceWith(e,n,o){return this.replace(e,n,new L(R.from(o),0,0))}delete(e,n){return this.replace(e,n,L.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,o){return m$(this,e,n,o),this}replaceRangeWith(e,n,o){return f$(this,e,n,o),this}deleteRange(e,n){return p$(this,e,n),this}lift(e,n){return Qv(this,e,n),this}join(e,n=1){return s$(this,e,n),this}wrap(e,n){return e$(this,e,n),this}setBlockType(e,n=e,o,r=null){return t$(this,e,n,o,r),this}setNodeMarkup(e,n,o=null,r){return o$(this,e,n,o,r),this}setNodeAttribute(e,n,o){return this.step(new Eo(e,n,o)),this}setDocAttribute(e,n){return this.step(new Or(e,n)),this}addNodeMark(e,n){return this.step(new rn(e,n)),this}removeNodeMark(e,n){if(!(n instanceof ie)){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 xo(e,n)),this}split(e,n=1,o){return r$(this,e,n,o),this}addMark(e,n,o){return Wv(this,e,n,o),this}removeMark(e,n,o){return qv(this,e,n,o),this}clearIncompatible(e,n,o){return ic(this,e,n,o),this}}const cc=Object.create(null);class Q{constructor(e,n,o){this.$anchor=e,this.$head=n,this.ranges=o||[new h$(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=L.empty){let o=n.content.lastChild,r=null;for(let a=0;a<n.openEnd;a++)r=o,o=o.lastChild;let i=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:l,$to:c}=s[a],u=e.mapping.slice(i);e.replaceRange(u.map(l.pos),u.map(c.pos),a?L.empty:n),a==0&&Ep(e,i,(o?o.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,n){let o=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:s,$to:a}=r[i],l=e.mapping.slice(o),c=l.map(s.pos),u=l.map(a.pos);i?e.deleteRange(c,u):(e.replaceRangeWith(c,u,n),Ep(e,o,n.isInline?-1:1))}}static findFrom(e,n,o=!1){let r=e.parent.inlineContent?new W(e):Ao(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?Ao(e.node(0),e.node(i),e.before(i+1),e.index(i),n,o):Ao(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 et(e.node(0))}static atStart(e){return Ao(e,e,0,0,1)||new et(e)}static atEnd(e){return Ao(e,e,e.content.size,e.childCount,-1)||new et(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=cc[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 cc)throw new RangeError("Duplicate use of selection JSON ID "+e);return cc[e]=n,n.prototype.jsonID=e,n}getBookmark(){return W.between(this.$anchor,this.$head).getBookmark()}}Q.prototype.visible=!0;class h${constructor(e,n){this.$from=e,this.$to=n}}let xp=!1;function Cp(t){!xp&&!t.parent.inlineContent&&(xp=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class W extends Q{constructor(e,n=e){Cp(e),Cp(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 Q.near(o);let r=e.resolve(n.map(this.anchor));return new W(r.parent.inlineContent?r:o,o)}replace(e,n=L.empty){if(super.replace(e,n),n==L.empty){let o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}eq(e){return e instanceof W&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Ss(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 W(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=Q.findFrom(n,o,!0)||Q.findFrom(n,-o,!0);if(i)n=i.$head;else return Q.near(n,o)}return e.parent.inlineContent||(r==0?e=n:(e=(Q.findFrom(e,-o,!0)||Q.findFrom(e,o,!0)).$anchor,e.pos<n.pos!=r<0&&(e=n))),new W(e,n)}}Q.jsonID("text",W);class Ss{constructor(e,n){this.anchor=e,this.head=n}map(e){return new Ss(e.map(this.anchor),e.map(this.head))}resolve(e){return W.between(e.resolve(this.anchor),e.resolve(this.head))}}class V extends Q{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?Q.near(i):new V(i)}content(){return new L(R.from(this.node),0,0)}eq(e){return e instanceof V&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new uc(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new V(e.resolve(n.anchor))}static create(e,n){return new V(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}V.prototype.visible=!1,Q.jsonID("node",V);class uc{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:o}=e.mapResult(this.anchor);return n?new Ss(o,o):new uc(o)}resolve(e){let n=e.resolve(this.anchor),o=n.nodeAfter;return o&&V.isSelectable(o)?new V(n):Q.near(n)}}class et extends Q{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=L.empty){if(n==L.empty){e.delete(0,e.doc.content.size);let o=Q.atStart(e.doc);o.eq(e.selection)||e.setSelection(o)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new et(e)}map(e){return new et(e)}eq(e){return e instanceof et}getBookmark(){return g$}}Q.jsonID("all",et);const g$={map(){return this},resolve(t){return new et(t)}};function Ao(t,e,n,o,r,i=!1){if(e.inlineContent)return W.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&&V.isSelectable(a))return V.create(t,n-(r<0?a.nodeSize:0))}else{let l=Ao(t,a,n+r,r<0?a.childCount:0,r,i);if(l)return l}n+=a.nodeSize*r}return null}function Ep(t,e,n){let o=t.steps.length-1;if(o<e)return;let r=t.steps[o];if(!(r instanceof ve||r instanceof $e))return;let i=t.mapping.maps[o],s;i.forEach((a,l,c,u)=>{s==null&&(s=u)}),t.setSelection(Q.near(t.doc.resolve(s),n))}const Np=1,ks=2,Ap=4;class y$ extends kp{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|Np)&~ks,this.storedMarks=null,this}get selectionSet(){return(this.updated&Np)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=ks,this}ensureMarks(e){return ie.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&ks)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~ks,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)||ie.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(Q.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|=Ap,this}get scrolledIntoView(){return(this.updated&Ap)>0}}function Dp(t,e){return!e||!t?t:t.bind(e)}class Tr{constructor(e,n,o){this.name=e,this.init=Dp(n.init,o),this.apply=Dp(n.apply,o)}}const b$=[new Tr("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Tr("selection",{init(t,e){return t.selection||Q.atStart(e.doc)},apply(t){return t.selection}}),new Tr("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,o){return o.selection.$cursor?t.storedMarks:null}}),new Tr("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class dc{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=b$.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 Tr(o.key,o.spec.state,o))})}}class Do{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let o=0;o<this.config.plugins.length;o++)if(o!=n){let r=this.config.plugins[o];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],o=this.applyInner(e),r=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let a=this.config.plugins[s];if(a.spec.appendTransaction){let l=r?r[s].n:0,c=r?r[s].state:this,u=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,c,o);if(u&&o.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!r){r=[];for(let d=0;d<this.config.plugins.length;d++)r.push(d<s?{state:o,n:n.length}:{state:this,n:0})}n.push(u),o=o.applyInner(u),i=!0}r&&(r[s]={state:o,n:n.length})}}if(!i)return{state:o,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Do(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 y$(this)}static create(e){let n=new dc(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new Do(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 dc(this.schema,e.plugins),o=n.fields,r=new Do(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 dc(e.schema,e.plugins),i=new Do(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=nn.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=Q.fromJSON(i.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(o)for(let a in o){let l=o[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){i[s.name]=c.fromJSON.call(l,e,n[a],i);return}}i[s.name]=s.init(e,i)}}),i}}function Rp(t,e,n){for(let o in t){let r=t[o];r instanceof Function?r=r.bind(e):o=="handleDOMEvents"&&(r=Rp(r,e,{})),n[o]=r}return n}class _e{constructor(e){this.spec=e,this.props={},e.props&&Rp(e.props,this,this.props),this.key=e.key?e.key.key:Op("plugin")}getState(e){return e[this.key]}}const mc=Object.create(null);function Op(t){return t in mc?t+"$"+ ++mc[t]:(mc[t]=0,t+"$")}class bt{constructor(e="key"){this.key=Op(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Ee=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Ro=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let fc=null;const Ht=function(t,e,n){let o=fc||(fc=document.createRange());return o.setEnd(t,n??t.nodeValue.length),o.setStart(t,e||0),o},w$=function(){fc=null},Kn=function(t,e,n,o){return n&&(Tp(t,e,n,o,-1)||Tp(t,e,n,o,1))},v$=/^(img|br|input|textarea|hr)$/i;function Tp(t,e,n,o,r){for(;;){if(t==n&&e==o)return!0;if(e==(r<0?0:ot(t))){let i=t.parentNode;if(!i||i.nodeType!=1||Mr(t)||v$.test(t.nodeName)||t.contentEditable=="false")return!1;e=Ee(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?ot(t):0}else return!1}}function ot(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function $$(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=ot(t)}else if(t.parentNode&&!Mr(t))e=Ee(t),t=t.parentNode;else return null}}function S$(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=Ee(t)+1,t=t.parentNode;else return null}}function k$(t,e,n){for(let o=e==0,r=e==ot(t);o||r;){if(t==n)return!0;let i=Ee(t);if(t=t.parentNode,!t)return!1;o=o&&i==0,r=r&&i==ot(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 xs=function(t){return t.focusNode&&Kn(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Wn(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function x$(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function C$(t,e,n){if(t.caretPositionFromPoint)try{let o=t.caretPositionFromPoint(e,n);if(o)return{node:o.offsetNode,offset:Math.min(ot(o.offsetNode),o.offset)}}catch{}if(t.caretRangeFromPoint){let o=t.caretRangeFromPoint(e,n);if(o)return{node:o.startContainer,offset:Math.min(ot(o.startContainer),o.startOffset)}}}const Ct=typeof navigator<"u"?navigator:null,Mp=typeof document<"u"?document:null,an=Ct&&Ct.userAgent||"",pc=/Edge\/(\d+)/.exec(an),jp=/MSIE \d/.exec(an),hc=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(an),Ye=!!(jp||hc||pc),ln=jp?document.documentMode:hc?+hc[1]:pc?+pc[1]:0,wt=!Ye&&/gecko\/(\d+)/i.test(an);wt&&+(/Firefox\/(\d+)/.exec(an)||[0,0])[1];const gc=!Ye&&/Chrome\/(\d+)/.exec(an),Te=!!gc,Pp=gc?+gc[1]:0,Be=!Ye&&!!Ct&&/Apple Computer/.test(Ct.vendor),Oo=Be&&(/Mobile\/\w+/.test(an)||!!Ct&&Ct.maxTouchPoints>2),rt=Oo||(Ct?/Mac/.test(Ct.platform):!1),E$=Ct?/Win/.test(Ct.platform):!1,Vt=/Android \d/.test(an),jr=!!Mp&&"webkitFontSmoothing"in Mp.documentElement.style,N$=jr?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function A$(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 Ut(t,e){return typeof t=="number"?t:t[e]}function D$(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 Lp(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;){if(s.nodeType!=1){s=Ro(s);continue}let a=s,l=a==i.body,c=l?A$(i):D$(a),u=0,d=0;if(e.top<c.top+Ut(o,"top")?d=-(c.top-e.top+Ut(r,"top")):e.bottom>c.bottom-Ut(o,"bottom")&&(d=e.bottom-e.top>c.bottom-c.top?e.top+Ut(r,"top")-c.top:e.bottom-c.bottom+Ut(r,"bottom")),e.left<c.left+Ut(o,"left")?u=-(c.left-e.left+Ut(r,"left")):e.right>c.right-Ut(o,"right")&&(u=e.right-c.right+Ut(r,"right")),u||d)if(l)i.defaultView.scrollBy(u,d);else{let f=a.scrollLeft,p=a.scrollTop;d&&(a.scrollTop+=d),u&&(a.scrollLeft+=u);let g=a.scrollLeft-f,h=a.scrollTop-p;e={left:e.left-g,top:e.top-h,right:e.right-g,bottom:e.bottom-h}}let m=l?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(m))break;s=m=="absolute"?s.offsetParent:Ro(s)}}function R$(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:Ip(t.dom)}}function Ip(t){let e=[],n=t.ownerDocument;for(let o=t;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),t!=n);o=Ro(o));return e}function O$({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;zp(n,o==0?0:o-e)}function zp(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 To=null;function T$(t){if(t.setActive)return t.setActive();if(To)return t.focus(To);let e=Ip(t);t.focus(To==null?{get preventScroll(){return To={preventScroll:!0},!0}}:void 0),To||(To=!1,zp(e,0))}function Bp(t,e){let n,o=2e8,r,i=0,s=e.top,a=e.top,l,c;for(let u=t.firstChild,d=0;u;u=u.nextSibling,d++){let m;if(u.nodeType==1)m=u.getClientRects();else if(u.nodeType==3)m=Ht(u).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 g=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(g<o){n=u,o=g,r=g&&n.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,u.nodeType==1&&g&&(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=u,c={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=c,o=0),n&&n.nodeType==3?M$(n,r):!n||o&&n.nodeType==1?{node:t,offset:i}:Bp(n,r)}function M$(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=cn(o,1);if(i.top!=i.bottom&&yc(e,i))return{node:t,offset:r+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function yc(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function j$(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function P$(t,e,n){let{node:o,offset:r}=Bp(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 L$(t,e,n,o){let r=-1;for(let i=e,s=!1;i!=t.dom;){let a=t.docView.nearestDesc(i,!0),l;if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)&&((l=a.dom.getBoundingClientRect()).width||l.height)&&(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 Fp(t,e,n){let o=t.childNodes.length;if(o&&n.top<n.bottom)for(let r=Math.max(0,Math.min(o-1,Math.floor(o*(e.top-n.top)/(n.bottom-n.top))-2)),i=r;;){let s=t.childNodes[i];if(s.nodeType==1){let a=s.getClientRects();for(let l=0;l<a.length;l++){let c=a[l];if(yc(e,c))return Fp(s,e,c)}}if((i=(i+1)%o)==r)break}return t}function I$(t,e){let n=t.dom.ownerDocument,o,r=0,i=C$(n,e.left,e.top);i&&({node:o,offset:r}=i);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),a;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let c=t.dom.getBoundingClientRect();if(!yc(e,c)||(s=Fp(t.dom,e,c),!s))return null}if(Be)for(let c=s;o&&c;c=Ro(c))c.draggable&&(o=void 0);if(s=j$(s,e),o){if(wt&&o.nodeType==1&&(r=Math.min(r,o.childNodes.length),r<o.childNodes.length)){let u=o.childNodes[r],d;u.nodeName=="IMG"&&(d=u.getBoundingClientRect()).right<=e.left&&d.bottom>e.top&&r++}let c;jr&&r&&o.nodeType==1&&(c=o.childNodes[r-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&r--,o==t.dom&&r==o.childNodes.length-1&&o.lastChild.nodeType==1&&e.top>o.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(r==0||o.nodeType!=1||o.childNodes[r-1].nodeName!="BR")&&(a=L$(t,o,r,e))}a==null&&(a=P$(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function Hp(t){return t.top<t.bottom||t.left<t.right}function cn(t,e){let n=t.getClientRects();if(n.length){let o=n[e<0?0:n.length-1];if(Hp(o))return o}return Array.prototype.find.call(n,Hp)||t.getBoundingClientRect()}const z$=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Vp(t,e,n){let{node:o,offset:r,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=jr||wt;if(o.nodeType==3)if(s&&(z$.test(o.nodeValue)||(n<0?!r:r==o.nodeValue.length))){let l=cn(Ht(o,r,r),n);if(wt&&r&&/\s/.test(o.nodeValue[r-1])&&r<o.nodeValue.length){let c=cn(Ht(o,r-1,r-1),-1);if(c.top==l.top){let u=cn(Ht(o,r,r+1),-1);if(u.top!=l.top)return Pr(u,u.left<c.left)}}return l}else{let l=r,c=r,u=n<0?1:-1;return n<0&&!r?(c++,u=-1):n>=0&&r==o.nodeValue.length?(l--,u=1):n<0?l--:c++,Pr(cn(Ht(o,l,c),u),u<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&r&&(n<0||r==ot(o))){let l=o.childNodes[r-1];if(l.nodeType==1)return bc(l.getBoundingClientRect(),!1)}if(i==null&&r<ot(o)){let l=o.childNodes[r];if(l.nodeType==1)return bc(l.getBoundingClientRect(),!0)}return bc(o.getBoundingClientRect(),n>=0)}if(i==null&&r&&(n<0||r==ot(o))){let l=o.childNodes[r-1],c=l.nodeType==3?Ht(l,ot(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return Pr(cn(c,1),!1)}if(i==null&&r<ot(o)){let l=o.childNodes[r];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let c=l?l.nodeType==3?Ht(l,0,s?0:1):l.nodeType==1?l:null:null;if(c)return Pr(cn(c,-1),!0)}return Pr(cn(o.nodeType==3?Ht(o):o,-n),n>=0)}function Pr(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 bc(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 Up(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 B$(t,e,n){let o=e.selection,r=n=="up"?o.$from:o.$to;return Up(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=Vp(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=Ht(a,0,a.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let u=l[c];if(u.bottom>u.top+1&&(n=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const F$=/[\u0590-\u08ac]/;function H$(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?!F$.test(o.parent.textContent)||!a.modify?n=="left"||n=="backward"?i:s:Up(t,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,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:g}=t.domSelectionRange(),h=p&&!f.contains(p.nodeType==1?p:p.parentNode)||l==p&&c==g;try{a.collapse(u,d),l&&(l!=u||c!=d)&&a.extend&&a.extend(l,c)}catch{}return m!=null&&(a.caretBidiLevel=m),h}):o.pos==o.start()||o.pos==o.end()}let _p=null,Yp=null,Jp=!1;function V$(t,e,n){return _p==e&&Yp==n?Jp:(_p=e,Yp=n,Jp=n=="up"||n=="down"?B$(t,e,n):H$(t,e,n))}const it=0,Kp=1,qn=2,Et=3;class Lr{constructor(e,n,o,r){this.parent=e,this.children=n,this.dom=o,this.contentDOM=r,this.dirty=it,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>Ee(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;)for(let s=0;s<r.children.length;s++){let a=r.children[s];if(a.size){r=a;break}}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 Gp){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 Wp&&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?Ee(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?Ee(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,o=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let s=o,a=0;;a++){let l=this.children[a],c=s+l.size;if(r==-1&&e<=c){let u=s+l.border;if(e>=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=s;for(let d=a;d>0;d--){let m=this.children[d-1];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(1)){r=Ee(m.dom)+1;break}e-=m.size}r==-1&&(r=0)}if(r>-1&&(c>n||a==this.children.length-1)){n=c;for(let u=a+1;u<this.children.length;u++){let d=this.children[u];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){i=Ee(d.dom);break}n+=d.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:e,to:n,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:o}=this.domFromPos(e,0);if(n.nodeType!=1||o==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[o]}setSelection(e,n,o,r=!1){let i=Math.min(e,n),s=Math.max(e,n);for(let f=0,p=0;f<this.children.length;f++){let g=this.children[f],h=p+g.size;if(i>p&&s<h)return g.setSelection(e-p-g.border,n-p-g.border,o,r);p=h}let a=this.domFromPos(e,e?-1:1),l=n==e?a:this.domFromPos(n,n?-1:1),c=o.root.getSelection(),u=o.domSelectionRange(),d=!1;if((wt||Be)&&e==n){let{node:f,offset:p}=a;if(f.nodeType==3){if(d=!!(p&&f.nodeValue[p-1]==`
25
- `),d&&p==f.nodeValue.length)for(let g=f,h;g;g=g.parentNode){if(h=g.nextSibling){h.nodeName=="BR"&&(a=l={node:h.parentNode,offset:Ee(h)+1});break}let y=g.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let g=f.childNodes[p-1];d=g&&(g.nodeName=="BR"||g.contentEditable=="false")}}if(wt&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let f=u.focusNode.childNodes[u.focusOffset];f&&f.contentEditable=="false"&&(r=!0)}if(!(r||d&&Be)&&Kn(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Kn(l.node,l.offset,u.focusNode,u.focusOffset))return;let m=!1;if((c.extend||e==n)&&!d){c.collapse(a.node,a.offset);try{e!=n&&c.extend(l.node,l.offset),m=!0}catch{}}if(!m){if(e>n){let p=a;a=l,l=p}let f=document.createRange();f.setEnd(l.node,l.offset),f.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(f)}}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?qn:Kp,e==a&&n==l&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Et:i.markDirty(e-a,n-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?qn:Et}o=s}this.dirty=qn}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let o=e==1?qn:Kp;n.dirty<o&&(n.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class Wp extends Lr{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==it&&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 U$ extends Lr{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 Gn extends Lr{constructor(e,n,o,r,i){super(e,[],o,r),this.mark=n,this.spec=i}static create(e,n,o,r){let i=r.nodeViews[n.type.name],s=i&&i(n,r,o);return(!s||!s.dom)&&(s=Jn.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new Gn(e,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&Et||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Et&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=it){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=it}}slice(e,n,o){let r=Gn.create(this.parent,this.mark,!0,o),i=this.children,s=this.size;n<s&&(i=vc(i,n,s,o)),e>0&&(i=vc(i,0,e,o));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class un extends Lr{constructor(e,n,o,r,i,s,a,l,c){super(e,[],i,s),this.node=n,this.outerDeco=o,this.innerDeco=r,this.nodeDOM=a}static create(e,n,o,r,i,s){let a=i.nodeViews[n.type.name],l,c=a&&a(n,i,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},o,r),u=c&&c.dom,d=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=Jn.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let m=u;return u=Xp(u,o,n),c?l=new _$(e,n,o,r,u,d||null,m,c,i,s+1):n.isText?new Cs(e,n,o,r,u,m,i):new un(e,n,o,r,u,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=()=>R.empty)}return e}matchesNode(e,n,o){return this.dirty==it&&e.eq(this.node)&&Es(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 J$(this,s&&s.node,e);q$(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,o,e):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?ie.none:this.node.child(u).marks,o,e),l.placeWidget(c,e,r)},(c,u,d,m)=>{l.syncToMarks(c.marks,o,e);let f;l.findNodeMatch(c,u,d,m)||a&&e.state.selection.from>r&&e.state.selection.to<r+c.nodeSize&&(f=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(c,u,d,f,e)||l.updateNextNode(c,u,d,e,m,r)||l.addNode(c,u,d,e,r),r+=c.nodeSize}),l.syncToMarks([],o,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==qn)&&(s&&this.protectLocalComposition(e,s),Qp(this.contentDOM,this.children,e),Oo&&G$(this.dom))}localCompositionInfo(e,n){let{from:o,to:r}=e.state.selection;if(!(e.state.selection instanceof W)||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=Q$(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 U$(this,i,n,r);e.input.compositionNodes.push(s),this.children=vc(this.children,o,o+r.length,e,s)}update(e,n,o,r){return this.dirty==Et||!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=it}updateOuterDeco(e){if(Es(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=Zp(this.dom,this.nodeDOM,wc(this.outerDeco,this.node,n),wc(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 qp(t,e,n,o,r){Xp(o,e,t);let i=new un(void 0,t,e,n,o,o,o,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class Cs extends un{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==Et||this.dirty!=it&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=it||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=it,!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 Cs(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=Et)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Gp extends Lr{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==it&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class _$ extends un{constructor(e,n,o,r,i,s,a,l,c,u){super(e,n,o,r,i,s,a,c,u),this.spec=l}update(e,n,o,r){if(this.dirty==Et)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){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.root):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 Qp(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=eh(o),r=!0;o=o.nextSibling}else r=!0,t.insertBefore(a,o);if(s instanceof Gn){let l=o?o.previousSibling:t.lastChild;Qp(s.contentDOM,s.children,n),o=l?l.nextSibling:t.firstChild}}for(;o;)o=eh(o),r=!0;r&&n.trackWrites==t&&(n.trackWrites=null)}const Ir=function(t){t&&(this.nodeName=t)};Ir.prototype=Object.create(null);const Qn=[new Ir];function wc(t,e,n){if(t.length==0)return Qn;let o=n?Qn[0]:new Ir,r=[o];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&r.push(o=new Ir(s.nodeName));for(let a in s){let l=s[a];l!=null&&(n&&r.length==1&&r.push(o=new Ir(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 Zp(t,e,n,o){if(n==Qn&&o==Qn)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=Qn[0]),r=l}Y$(r,a||Qn[0],s)}return r}function Y$(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 Xp(t,e,n){return Zp(t,t,Qn,wc(e,n,t.nodeType!=1))}function Es(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 eh(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class J${constructor(e,n,o){this.lock=n,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=K$(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=it,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let a=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let c=this.top.children[l];if(c.matchesMark(e[i])&&!this.isLocked(c.dom)){a=l;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=Gn.create(this.top,e[i],n,o);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,i++}}findNodeMatch(e,n,o,r){let i=-1,s;if(r>=this.preMatch.index&&(s=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,o))i=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a<l;a++){let c=this.top.children[a];if(c.matchesNode(e,n,o)&&!this.preMatch.matched.has(c)){i=a;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,n,o,r,i){let s=this.top.children[r];return s.dirty==Et&&s.dom==s.contentDOM&&(s.dirty=qn),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 un){let c=this.preMatch.matched.get(l);if(c!=null&&c!=i)return!1;let u=l.dom,d,m=this.isLocked(u)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=Et&&Es(n,l.outerDeco));if(!m&&l.update(e,n,o,r))return this.destroyBetween(this.index,a),l.dom!=u&&(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=qn,d.updateChildren(r,s+1),d.dirty=it),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)||!Es(o,e.outerDeco)||!r.eq(e.innerDeco))return null;let a=un.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=un.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 Wp(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 Gn;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof Cs)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Be||Te)&&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 Gp(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 K$(t,e){let n=e,o=n.children.length,r=t.childCount,i=new Map,s=[];e:for(;r>0;){let a;for(;;)if(o){let c=n.children[o-1];if(c instanceof Gn)n=c,o=c.children.length;else{a=c,o--;break}}else{if(n==e)break e;o=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=t.child(r-1))break;--r,i.set(a,r),s.push(a)}}return{index:r,matched:i,matches:s.reverse()}}function W$(t,e){return t.type.side-e.type.side}function q$(t,e,n,o){let r=e.locals(t),i=0;if(r.length==0){for(let c=0;c<t.childCount;c++){let u=t.child(c);o(u,r,e.forChild(i,u),c),i+=u.nodeSize}return}let s=0,a=[],l=null;for(let c=0;;){let u,d;for(;s<r.length&&r[s].to==i;){let h=r[s++];h.widget&&(u?(d||(d=[u])).push(h):u=h)}if(u)if(d){d.sort(W$);for(let h=0;h<d.length;h++)n(d[h],c,!!l)}else n(u,c,!!l);let m,f;if(l)f=-1,m=l,l=null;else if(c<t.childCount)f=c,m=t.child(c++);else break;for(let h=0;h<a.length;h++)a[h].to<=i&&a.splice(h--,1);for(;s<r.length&&r[s].from<=i&&r[s].to>i;)a.push(r[s++]);let p=i+m.nodeSize;if(m.isText){let h=p;s<r.length&&r[s].from<h&&(h=r[s].from);for(let y=0;y<a.length;y++)a[y].to<h&&(h=a[y].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 g=m.isInline&&!m.isLeaf?a.filter(h=>!h.inline):a.slice();o(m,g,e.forChild(i,m),f),i=p}}function G$(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 Q$(t,e,n,o){for(let r=0,i=0;r<t.childCount&&i<=o;){let s=t.child(r++),a=i;if(i+=s.nodeSize,!s.isText)continue;let l=s.text;for(;r<t.childCount;){let c=t.child(r++);if(i+=c.nodeSize,!c.isText)break;l+=c.text}if(i>=n){if(i>=o&&l.slice(o-e.length-a,o-a)==e)return o-e.length;let c=a<o?l.lastIndexOf(e,o-a-1):-1;if(c>=0&&c+e.length+a>=n)return a+c;if(n==o&&l.length>=o+e.length-a&&l.slice(o-a,o-a+e.length)==e)return o}}return-1}function vc(t,e,n,o,r){let i=[];for(let s=0,a=0;s<t.length;s++){let l=t[s],c=a,u=a+=l.size;c>=n||u<=e?i.push(l):(c<e&&i.push(l.slice(0,e-c,o)),r&&(i.push(r),r=void 0),u>n&&i.push(l.slice(n-c,l.size,o)))}return i}function $c(t,e=null){let n=t.domSelectionRange(),o=t.state.doc;if(!n.focusNode)return null;let r=t.docView.nearestDesc(n.focusNode),i=r&&r.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let a=o.resolve(s),l,c;if(xs(n)){for(l=s;r&&!r.node;)r=r.parent;let d=r.node;if(r&&d.isAtom&&V.isSelectable(d)&&r.parent&&!(d.isInline&&k$(n.focusNode,n.focusOffset,r.dom))){let m=r.posBefore;c=new V(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 u=o.resolve(l);if(!c){let d=e=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;c=kc(t,u,a,d)}return c}function th(t){return t.editable?t.hasFocus():lh(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function _t(t,e=!1){let n=t.state.selection;if(ih(t,n),!!th(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&Te){let o=t.domSelectionRange(),r=t.domObserver.currentSelection;if(o.anchorNode&&r.anchorNode&&Kn(o.anchorNode,o.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)X$(t);else{let{anchor:o,head:r}=n,i,s;nh&&!(n instanceof W)&&(n.$from.parent.inlineContent||(i=oh(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=oh(t,n.to))),t.docView.setSelection(o,r,t,e),nh&&(i&&rh(i),s&&rh(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&Z$(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const nh=Be||Te&&Pp<63;function oh(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(Be&&r&&r.contentEditable=="false")return Sc(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return Sc(r);if(i)return Sc(i)}}function Sc(t){return t.contentEditable="true",Be&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function rh(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function Z$(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(()=>{(!th(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function X$(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,Ee(o)+1):n.setStart(o,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!r&&!t.state.selection.visible&&Ye&&ln<=11&&(o.disabled=!0,o.disabled=!1)}function ih(t,e){if(e instanceof V){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(sh(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else sh(t)}function sh(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function kc(t,e,n,o){return t.someProp("createSelectionBetween",r=>r(t,e,n))||W.between(e,n,o)}function ah(t){return t.editable&&!t.hasFocus()?!1:lh(t)}function lh(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 e1(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return Kn(e.node,e.offset,n.anchorNode,n.anchorOffset)}function xc(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&&Q.findFrom(i,e)}function dn(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function ch(t,e,n){let o=t.state.selection;if(o instanceof W)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 dn(t,new W(o.$anchor,s))}else if(o.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=xc(t.state,e);return r&&r instanceof V?dn(t,r):!1}else if(!(rt&&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?V.isSelectable(i)?dn(t,new V(e<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):jr?dn(t,new W(t.state.doc.resolve(e<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(o instanceof V&&o.node.isInline)return dn(t,new W(e>0?o.$to:o.$from));{let r=xc(t.state,e);return r?dn(t,r):!1}}}function Ns(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function zr(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Mo(t,e){return e<0?t1(t):n1(t)}function t1(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r,i,s=!1;for(wt&&n.nodeType==1&&o<Ns(n)&&zr(n.childNodes[o],-1)&&(s=!0);;)if(o>0){if(n.nodeType!=1)break;{let a=n.childNodes[o-1];if(zr(a,-1))r=n,i=--o;else if(a.nodeType==3)n=a,o=n.nodeValue.length;else break}}else{if(uh(n))break;{let a=n.previousSibling;for(;a&&zr(a,-1);)r=n.parentNode,i=Ee(a),a=a.previousSibling;if(a)n=a,o=Ns(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}s?Cc(t,n,o):r&&Cc(t,r,i)}function n1(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r=Ns(n),i,s;for(;;)if(o<r){if(n.nodeType!=1)break;let a=n.childNodes[o];if(zr(a,1))i=n,s=++o;else break}else{if(uh(n))break;{let a=n.nextSibling;for(;a&&zr(a,1);)i=a.parentNode,s=Ee(a)+1,a=a.nextSibling;if(a)n=a,o=0,r=Ns(n);else{if(n=n.parentNode,n==t.dom)break;o=r=0}}}i&&Cc(t,i,s)}function uh(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function o1(t,e){for(;t&&e==t.childNodes.length&&!Mr(t);)e=Ee(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 r1(t,e){for(;t&&!e&&!Mr(t);)e=Ee(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 Cc(t,e,n){if(e.nodeType!=3){let i,s;(s=o1(e,n))?(e=s,n=0):(i=r1(e,n))&&(e=i,n=i.nodeValue.length)}let o=t.domSelection();if(!o)return;if(xs(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&&_t(t)},50)}function dh(t,e){let n=t.state.doc.resolve(e);if(!(Te||E$)&&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 mh(t,e,n){let o=t.state.selection;if(o instanceof W&&!o.empty||n.indexOf("s")>-1||rt&&n.indexOf("m")>-1)return!1;let{$from:r,$to:i}=o;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=xc(t.state,e);if(s&&s instanceof V)return dn(t,s)}if(!r.parent.inlineContent){let s=e<0?r:i,a=o instanceof et?Q.near(s,e):Q.findFrom(s,e);return a?dn(t,a):!1}return!1}function fh(t,e){if(!(t.state.selection instanceof W))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 ph(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function i1(t){if(!Be||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;ph(t,o,"true"),setTimeout(()=>ph(t,o,"false"),20)}return!1}function s1(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function a1(t,e){let n=e.keyCode,o=s1(e);if(n==8||rt&&n==72&&o=="c")return fh(t,-1)||Mo(t,-1);if(n==46&&!e.shiftKey||rt&&n==68&&o=="c")return fh(t,1)||Mo(t,1);if(n==13||n==27)return!0;if(n==37||rt&&n==66&&o=="c"){let r=n==37?dh(t,t.state.selection.from)=="ltr"?-1:1:-1;return ch(t,r,o)||Mo(t,r)}else if(n==39||rt&&n==70&&o=="c"){let r=n==39?dh(t,t.state.selection.from)=="ltr"?1:-1:1;return ch(t,r,o)||Mo(t,r)}else{if(n==38||rt&&n==80&&o=="c")return mh(t,-1,o)||Mo(t,-1);if(n==40||rt&&n==78&&o=="c")return i1(t)||mh(t,1,o)||Mo(t,1);if(o==(rt?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Ec(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")||Jn.fromSchema(t.state.schema),a=Sh(),l=a.createElement("div");l.appendChild(s.serializeFragment(o,{document:a}));let c=l.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=vh[c.nodeName.toLowerCase()]);){for(let f=u.length-1;f>=0;f--){let p=a.createElement(u[f]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),d++}c=l.firstChild}c&&c.nodeType==1&&c.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,`
26
-
27
- `);return{dom:l,text:m,slice:e}}function hh(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 L(R.from(t.state.schema.text(e.replace(/\r\n?/g,`
28
- `))),0,0):L.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=Jn.fromSchema(f);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let h=s.appendChild(document.createElement("p"));g&&h.appendChild(p.serializeNode(f.text(g,m)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),s=d1(n),jr&&m1(s);let c=s&&s.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[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")||Er.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||u),context:r,ruleFromNode(m){return m.nodeName=="BR"&&!m.nextSibling&&m.parentNode&&!l1.test(m.parentNode.nodeName)?{ignore:!0}:null}})),u)a=f1(wh(a,+u[1],+u[2]),u[4]);else if(a=L.maxOpen(c1(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=wh(a,d,m)}return t.someProp("transformPasted",d=>{a=d(a,t)}),a}const l1=/^(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 c1(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(a=>{if(!s)return;let l=r.findWrapping(a.type),c;if(!l)return s=null;if(c=s.length&&i.length&&yh(l,i,a,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=bh(s[s.length-1],i.length));let u=gh(a,l);s.push(u),r=r.matchType(u.type),i=l}}),s)return R.from(s)}return t}function gh(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,R.from(t));return t}function yh(t,e,n,o,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let i=yh(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(R.from(gh(n,t,r+1))))}}function bh(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,bh(t.lastChild,e-1)),o=t.contentMatchAt(t.childCount).fillBefore(R.empty,!0);return t.copy(n.append(o))}function Nc(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=Nc(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(R.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(a))}function wh(t,e,n){return e<t.openStart&&(t=new L(Nc(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new L(Nc(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const vh={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 $h=null;function Sh(){return $h||($h=document.implementation.createHTMLDocument("title"))}let Ac=null;function u1(t){let e=window.trustedTypes;return e?(Ac||(Ac=e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Ac.createHTML(t)):t}function d1(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=Sh().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(t),r;if((r=o&&vh[o[1].toLowerCase()])&&(t=r.map(i=>"<"+i+">").join("")+t+r.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=u1(t),r)for(let i=0;i<r.length;i++)n=n.querySelector(r[i])||n;return n}function m1(t){let e=t.querySelectorAll(Te?"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 f1(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=R.from(l.create(o[a+1],r)),i++,s++}return new L(r,i,s)}const Fe={},He={},p1={touchstart:!0,touchmove:!0};class h1{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.lastChromeDelete=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 g1(t){for(let e in Fe){let n=Fe[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=o=>{b1(t,o)&&!Rc(t,o)&&(t.editable||!(o.type in He))&&n(t,o)},p1[e]?{passive:!0}:void 0)}Be&&t.dom.addEventListener("input",()=>null),Dc(t)}function mn(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function y1(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 Dc(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=o=>Rc(t,o))})}function Rc(t,e){return t.someProp("handleDOMEvents",n=>{let o=n[e.type];return o?o(t,e)||e.defaultPrevented:!1})}function b1(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 w1(t,e){!Rc(t,e)&&Fe[e.type]&&(t.editable||!(e.type in He))&&Fe[e.type](t,e)}He.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!xh(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Vt&&Te&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),Oo&&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,Wn(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",o=>o(t,n))||a1(t,n)?n.preventDefault():mn(t,"key")},He.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},He.keypress=(t,e)=>{let n=e;if(xh(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||rt&&n.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,n))){n.preventDefault();return}let o=t.state.selection;if(!(o instanceof W)||!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 As(t){return{left:t.clientX,top:t.clientY}}function v1(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}function Oc(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 jo(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let o=t.state.tr.setSelection(e);o.setMeta("pointer",!0),t.dispatch(o)}function $1(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),o=n.nodeAfter;return o&&o.isAtom&&V.isSelectable(o)?(jo(t,new V(n)),!0):!1}function S1(t,e){if(e==-1)return!1;let n=t.state.selection,o,r;n instanceof V&&(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(V.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?(jo(t,V.create(t.state.doc,r)),!0):!1}function k1(t,e,n,o,r){return Oc(t,"handleClickOn",e,n,o)||t.someProp("handleClick",i=>i(t,e,o))||(r?S1(t,n):$1(t,n))}function x1(t,e,n,o){return Oc(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",r=>r(t,e,o))}function C1(t,e,n,o){return Oc(t,"handleTripleClickOn",e,n,o)||t.someProp("handleTripleClick",r=>r(t,e,o))||E1(t,n,o)}function E1(t,e,n){if(n.button!=0)return!1;let o=t.state.doc;if(e==-1)return o.inlineContent?(jo(t,W.create(o,0,o.content.size)),!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)jo(t,W.create(o,a+1,a+1+s.content.size));else if(V.isSelectable(s))jo(t,V.create(o,a));else continue;return!0}}function Tc(t){return Ds(t)}const kh=rt?"metaKey":"ctrlKey";Fe.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=Tc(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&v1(n,t.input.lastClick)&&!n[kh]&&(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(As(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new N1(t,s,n,!!o)):(i=="doubleClick"?x1:C1)(t,s.pos,s.inside,n)?n.preventDefault():mn(t,"pointer"))};class N1{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[kh],this.allowDefault=o.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let u=e.state.doc.resolve(n.pos);i=u.parent,s=u.depth?u.before():0}const a=r?null:o.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:c}=e.state;(o.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof V&&c.from<=s&&c.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&wt&&!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)),mn(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(()=>_t(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(As(e))),this.updateAllowDefault(e),this.allowDefault||!n?mn(this.view,"pointer"):k1(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Be&&this.mightDrag&&!this.mightDrag.node.isAtom||Te&&!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)?(jo(this.view,Q.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):mn(this.view,"pointer")}move(e){this.updateAllowDefault(e),mn(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)}}Fe.touchstart=t=>{t.input.lastTouch=Date.now(),Tc(t),mn(t,"pointer")},Fe.touchmove=t=>{t.input.lastTouch=Date.now(),mn(t,"pointer")},Fe.contextmenu=t=>Tc(t);function xh(t,e){return t.composing?!0:Be&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const A1=Vt?5e3:-1;He.compositionstart=He.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof W&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),Ds(t,!0),t.markCursor=null;else if(Ds(t,!e.selection.empty),wt&&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}Ch(t,A1)},He.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++,Ch(t,20))};function Ch(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Ds(t),e))}function Eh(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=R1());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function D1(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=$$(e.focusNode,e.focusOffset),o=S$(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 R1(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Ds(t,e=!1){if(!(Vt&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Eh(t),e||t.docView&&t.docView.dirty){let n=$c(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 O1(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 Br=Ye&&ln<15||Oo&&N$<604;Fe.copy=He.cut=(t,e)=>{let n=e,o=t.state.selection,r=n.type=="cut";if(o.empty)return;let i=Br?null:n.clipboardData,s=o.content(),{dom:a,text:l}=Ec(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",l)):O1(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function T1(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function M1(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?Fr(t,o.value,null,r,e):Fr(t,o.textContent,o.innerHTML,r,e)},50)}function Fr(t,e,n,o,r){let i=hh(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,r,i||L.empty)))return!0;if(!i)return!1;let s=T1(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 Nh(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," "):""}He.paste=(t,e)=>{let n=e;if(t.composing&&!Vt)return;let o=Br?null:n.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;o&&Fr(t,Nh(o),o.getData("text/html"),r,n)?n.preventDefault():M1(t,n)};class Ah{constructor(e,n,o){this.slice=e,this.move=n,this.node=o}}const j1=rt?"altKey":"ctrlKey";function Dh(t,e){let n=t.someProp("dragCopies",o=>!o(e));return n??!e[j1]}Fe.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(As(n)),s;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof V?r.to-1:r.to))){if(o&&o.mightDrag)s=V.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=V.create(t.state.doc,d.posBefore))}}let a=(s||t.state.selection).content(),{dom:l,text:c,slice:u}=Ec(t,a);(!n.dataTransfer.files.length||!Te||Pp>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Br?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Br||n.dataTransfer.setData("text/plain",c),t.dragging=new Ah(u,Dh(t,n),s)},Fe.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},He.dragover=He.dragenter=(t,e)=>e.preventDefault(),He.drop=(t,e)=>{let n=e,o=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let r=t.posAtCoords(As(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=hh(t,Nh(n.dataTransfer),Br?null:n.dataTransfer.getData("text/html"),!1,i);let a=!!(o&&Dh(t,n));if(t.someProp("handleDrop",p=>p(t,n,s||L.empty,a))){n.preventDefault();return}if(!s)return;n.preventDefault();let l=s?l$(t.state.doc,i.pos,s):i.pos;l==null&&(l=i.pos);let c=t.state.tr;if(a){let{node:p}=o;p?p.replace(c):c.deleteSelection()}let u=c.mapping.map(l),d=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,m=c.doc;if(d?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(m))return;let f=c.doc.resolve(u);if(d&&V.isSelectable(s.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new V(f));else{let p=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((g,h,y,w)=>p=w),c.setSelection(kc(t,f,c.doc.resolve(p)))}t.focus(),t.dispatch(c.setMeta("uiEvent","drop"))},Fe.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())&&_t(t)},20))},Fe.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)},Fe.beforeinput=(t,e)=>{if(Te&&Vt&&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,Wn(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 He)Fe[t]=He[t];function Hr(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 Rs{constructor(e,n){this.toDOM=e,this.spec=n||Zn,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 st(i-o,i-o,this)}valid(){return!0}eq(e){return this==e||e instanceof Rs&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Hr(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class fn{constructor(e,n){this.attrs=e,this.spec=n||Zn}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 st(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof fn&&Hr(this.attrs,e.attrs)&&Hr(this.spec,e.spec)}static is(e){return e.type instanceof fn}destroy(){}}class Mc{constructor(e,n){this.attrs=e,this.spec=n||Zn}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 st(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 Mc&&Hr(this.attrs,e.attrs)&&Hr(this.spec,e.spec)}destroy(){}}class st{constructor(e,n,o){this.from=e,this.to=n,this.type=o}copy(e,n){return new st(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 st(e,e,new Rs(n,o))}static inline(e,n,o,r){return new st(e,n,new fn(o,r))}static node(e,n,o,r){return new st(e,n,new Mc(o,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof fn}get widget(){return this.type instanceof Rs}}const Po=[],Zn={};class be{constructor(e,n){this.local=e.length?e:Po,this.children=n.length?n:Po}static create(e,n){return n.length?Os(n,e,0,Zn):Me}find(e,n,o){let r=[];return this.findInner(e??0,n??1e9,r,0,o),r}findInner(e,n,o,r,i){for(let s=0;s<this.local.length;s++){let a=this.local[s];a.from<=n&&a.to>=e&&(!i||i(a.spec))&&o.push(a.copy(a.from+r,a.to+r))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let a=this.children[s]+1;this.children[s+2].findInner(e-a,n-a,o,r+a,i)}}map(e,n,o){return this==Me||e.maps.length==0?this:this.mapInner(e,n,0,0,o||Zn)}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?P1(this.children,s||[],e,n,o,r,i):s?new be(s.sort(Xn),Po):Me}add(e,n){return n.length?this==Me?be.create(e,n):this.addInner(e,n,0):this}addInner(e,n,o){let r,i=0;e.forEach((a,l)=>{let c=l+o,u;if(u=Oh(n,a,c)){for(r||(r=this.children.slice());i<r.length&&r[i]<l;)i+=3;r[i]==l?r[i+2]=r[i+2].addInner(a,u,c+1):r.splice(i,0,l,l+a.nodeSize,Os(u,a,c+1,Zn)),i+=3}});let s=Rh(i?Th(n):n,-o);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new be(s.length?this.local.concat(s).sort(Xn):this.local,r||this.children)}remove(e){return e.length==0||this==Me?this:this.removeInner(e,0)}removeInner(e,n){let o=this.children,r=this.local;for(let i=0;i<o.length;i+=3){let s,a=o[i]+n,l=o[i+1]+n;for(let u=0,d;u<e.length;u++)(d=e[u])&&d.from>a&&d.to<l&&(e[u]=null,(s||(s=[])).push(d));if(!s)continue;o==this.children&&(o=this.children.slice());let c=o[i+2].removeInner(s,a+1);c!=Me?o[i+2]=c:(o.splice(i,3),i-=3)}if(r.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let a=0;a<r.length;a++)r[a].eq(s,n)&&(r==this.local&&(r=this.local.slice()),r.splice(a--,1))}return o==this.children&&r==this.local?this:r.length||o.length?new be(r,o):Me}forChild(e,n){if(this==Me)return this;if(n.isLeaf)return be.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 fn){let c=Math.max(i,l.from)-i,u=Math.min(s,l.to)-i;c<u&&(r||(r=[])).push(l.copy(c,u))}}if(r){let a=new be(r.sort(Xn),Po);return o?new pn([a,o]):a}return o||Me}eq(e){if(this==e)return!0;if(!(e instanceof be)||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 jc(this.localsInner(e))}localsInner(e){if(this==Me)return Po;if(e.inlineContent||!this.local.some(fn.is))return this.local;let n=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof fn||n.push(this.local[o]);return n}forEachSet(e){e(this)}}be.empty=new be([],[]),be.removeOverlap=jc;const Me=be.empty;class pn{constructor(e){this.members=e}map(e,n){const o=this.members.map(r=>r.map(e,n,Zn));return pn.from(o)}forChild(e,n){if(n.isLeaf)return be.empty;let o=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,n);i!=Me&&(i instanceof pn?o=o.concat(i.members):o.push(i))}return pn.from(o)}eq(e){if(!(e instanceof pn)||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?jc(o?n:n.sort(Xn)):Po}static from(e){switch(e.length){case 0:return Me;case 1:return e[0];default:return new pn(e.every(n=>n instanceof be)?e:e.reduce((n,o)=>n.concat(o instanceof be?o:o.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function P1(t,e,n,o,r,i,s){let a=t.slice();for(let c=0,u=i;c<n.maps.length;c++){let d=0;n.maps[c].forEach((m,f,p,g)=>{let h=g-p-(f-m);for(let y=0;y<a.length;y+=3){let w=a[y+1];if(w<0||m>w+u-d)continue;let $=a[y]+u-d;f>=$?a[y+1]=m<=$?-2:-1:m>=u&&h&&(a[y]+=h,a[y+1]+=h)}d+=h}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<a.length;c+=3)if(a[c+1]<0){if(a[c+1]==-2){l=!0,a[c+1]=-1;continue}let u=n.map(t[c]+i),d=u-r;if(d<0||d>=o.content.size){l=!0;continue}let m=n.map(t[c+1]+i,-1),f=m-r,{index:p,offset:g}=o.content.findIndex(d),h=o.maybeChild(p);if(h&&g==d&&g+h.nodeSize==f){let y=a[c+2].mapInner(n,h,u+1,t[c]+i+1,s);y!=Me?(a[c]=d,a[c+1]=f,a[c+2]=y):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=L1(a,t,e,n,r,i,s),u=Os(c,o,0,s);e=u.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<u.children.length;d+=3){let f=u.children[d];for(;m<a.length&&a[m]<f;)m+=3;a.splice(m,0,u.children[d],u.children[d+1],u.children[d+2])}}return new be(e.sort(Xn),a)}function Rh(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 st(r.from+e,r.to+e,r.type))}return n}function L1(t,e,n,o,r,i,s){function a(l,c){for(let u=0;u<l.local.length;u++){let d=l.local[u].map(o,r,c);d?n.push(d):s.onRemove&&s.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)a(l.children[u+2],l.children[u]+c+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&a(t[l+2],e[l]+i+1);return n}function Oh(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 Th(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function Os(t,e,n,o){let r=[],i=!1;e.forEach((a,l)=>{let c=Oh(t,a,l+n);if(c){i=!0;let u=Os(c,a,n+l+1,o);u!=Me&&r.push(l,l+a.nodeSize,u)}});let s=Rh(i?Th(t):t,-n).sort(Xn);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 be(s,r):Me}function Xn(t,e){return t.from-e.from||t.to-e.to}function jc(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),Mh(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),Mh(e,r,o.copy(i.from,o.to)));break}}}return e}function Mh(t,e,n){for(;e<t.length&&Xn(n,t[e])>0;)e++;t.splice(e,0,n)}function Pc(t){let e=[];return t.someProp("decorations",n=>{let o=n(t.state);o&&o!=Me&&e.push(o)}),t.cursorWrapper&&e.push(be.create(t.state.doc,[t.cursorWrapper.deco])),pn.from(e)}const I1={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},z1=Ye&&ln<=11;class B1{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 F1{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new B1,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]);Ye&&ln<=11&&o.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),z1&&(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,I1)),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(ah(this.view)){if(this.suppressingSelectionUpdates)return _t(this.view);if(Ye&&ln<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Kn(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=Ro(i))n.add(i);for(let i=e.anchorNode;i;i=Ro(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}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.suppressingSelectionUpdates&&!this.currentSelection.eq(o)&&ah(e)&&!this.ignoreSelectionChange(o),i=-1,s=-1,a=!1,l=[];if(e.editable)for(let u=0;u<n.length;u++){let d=this.registerMutation(n[u],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(wt&&l.length){let u=l.filter(d=>d.nodeName=="BR");if(u.length==2){let[d,m]=u;d.parentNode&&d.parentNode.parentNode==m.parentNode?m.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let m of u){let f=m.parentNode;f&&f.nodeName=="LI"&&(!d||U1(e,d)!=f)&&m.remove()}}}let c=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&xs(o)&&(c=$c(e))&&c.eq(Q.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,_t(e),this.currentSelection.set(o),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,s),H1(e)),this.handleDOMChange(i,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||_t(e),this.currentSelection.set(o))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let o=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(o==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!o||o.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let d=e.addedNodes[u];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(Ye&&ln<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:d,nextSibling:m}=e.addedNodes[u];(!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?Ee(r)+1:0,a=o.localPosFromDOM(e.target,s,-1),l=i&&i.parentNode==e.target?Ee(i):e.target.childNodes.length,c=o.localPosFromDOM(e.target,l,1);return{from:a,to:c}}else return e.type=="attributes"?{from:o.posAtStart-o.border,to:o.posAtEnd+o.border}:(this.lastChangedTextNode=e.target,{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let jh=new WeakMap,Ph=!1;function H1(t){if(!jh.has(t)&&(jh.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=wt,Ph)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."),Ph=!0}}function Lh(t,e){let n=e.startContainer,o=e.startOffset,r=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return Kn(s.node,s.offset,r,i)&&([n,o,r,i]=[r,i,n,o]),{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:i}}function V1(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return Lh(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?Lh(t,n):null}function U1(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 _1(t,e,n){let{node:o,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(e,n),l=t.domSelectionRange(),c,u=l.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],xs(l)||c.push({node:l.focusNode,offset:l.focusOffset})),Te&&t.input.lastKeyCode===8)for(let h=i;h>r;h--){let y=o.childNodes[h-1],w=y.pmViewDesc;if(y.nodeName=="BR"&&!w){i=h;break}if(!w||w.size)break}let d=t.state.doc,m=t.someProp("domParser")||Er.fromSchema(t.state.schema),f=d.resolve(s),p=null,g=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:c,ruleFromNode:Y1,context:f});if(c&&c[0].pos!=null){let h=c[0].pos,y=c[1]&&c[1].pos;y==null&&(y=h),p={anchor:h+s,head:y+s}}return{doc:g,sel:p,from:s,to:a}}function Y1(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Be&&/^(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||Be&&/^(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 J1=/^(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 K1(t,e,n,o,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let N=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,F=$c(t,N);if(F&&!t.state.selection.eq(F)){if(Te&&Vt&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",ee=>ee(t,Wn(13,"Enter"))))return;let J=t.state.tr.setSelection(F);N=="pointer"?J.setMeta("pointer",!0):N=="key"&&J.scrollIntoView(),i&&J.setMeta("composition",i),t.dispatch(J)}return}let s=t.state.doc.resolve(e),a=s.sharedDepth(n);e=s.before(a+1),n=t.state.doc.resolve(n).after(a+1);let l=t.state.selection,c=_1(t,e,n),u=t.state.doc,d=u.slice(c.from,c.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=G1(d.content,c.doc.content,c.from,m,f);if(p&&t.input.domChangeCount++,(Oo&&t.input.lastIOSEnter>Date.now()-225||Vt)&&r.some(N=>N.nodeType==1&&!J1.test(N.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",N=>N(t,Wn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(o&&l instanceof W&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let N=Ih(t,t.state.doc,c.sel);if(N&&!N.eq(t.state.selection)){let F=t.state.tr.setSelection(N);i&&F.setMeta("composition",i),t.dispatch(F)}}return}t.state.selection.from<t.state.selection.to&&p.start==p.endB&&t.state.selection instanceof W&&(p.start>t.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?p.start=t.state.selection.from:p.endA<t.state.selection.to&&p.endA>=t.state.selection.to-2&&t.state.selection.to<=c.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),Ye&&ln<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>c.from&&c.doc.textBetween(p.start-c.from-1,p.start-c.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let g=c.doc.resolveNoCache(p.start-c.from),h=c.doc.resolveNoCache(p.endB-c.from),y=u.resolve(p.start),w=g.sameParent(h)&&g.parent.inlineContent&&y.end()>=p.endA,$;if((Oo&&t.input.lastIOSEnter>Date.now()-225&&(!w||r.some(N=>N.nodeName=="DIV"||N.nodeName=="P"))||!w&&g.pos<c.doc.content.size&&(!g.sameParent(h)||!g.parent.inlineContent)&&($=Q.findFrom(c.doc.resolve(g.pos+1),1,!0))&&$.head>g.pos)&&t.someProp("handleKeyDown",N=>N(t,Wn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&q1(u,p.start,p.endA,g,h)&&t.someProp("handleKeyDown",N=>N(t,Wn(8,"Backspace")))){Vt&&Te&&t.domObserver.suppressSelectionUpdates();return}Te&&p.endB==p.start&&(t.input.lastChromeDelete=Date.now()),Vt&&!w&&g.start()!=h.start()&&h.parentOffset==0&&g.depth==h.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==p.endA&&(p.endB-=2,h=c.doc.resolveNoCache(p.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(N){return N(t,Wn(13,"Enter"))})},20));let v=p.start,x=p.endA,S,C,A;if(w){if(g.pos==h.pos)Ye&&ln<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>_t(t),20)),S=t.state.tr.delete(v,x),C=u.resolve(p.start).marksAcross(u.resolve(p.endA));else if(p.endA==p.endB&&(A=W1(g.parent.content.cut(g.parentOffset,h.parentOffset),y.parent.content.cut(y.parentOffset,p.endA-y.start()))))S=t.state.tr,A.type=="add"?S.addMark(v,x,A.mark):S.removeMark(v,x,A.mark);else if(g.parent.child(g.index()).isText&&g.index()==h.index()-(h.textOffset?0:1)){let N=g.parent.textBetween(g.parentOffset,h.parentOffset);if(t.someProp("handleTextInput",F=>F(t,v,x,N)))return;S=t.state.tr.insertText(N,v,x)}}if(S||(S=t.state.tr.replace(v,x,c.doc.slice(p.start-c.from,p.endB-c.from))),c.sel){let N=Ih(t,S.doc,c.sel);N&&!(Te&&t.composing&&N.empty&&(p.start!=p.endB||t.input.lastChromeDelete<Date.now()-100)&&(N.head==v||N.head==S.mapping.map(x)-1)||Ye&&N.empty&&N.head==v)&&S.setSelection(N)}C&&S.ensureMarks(C),i&&S.setMeta("composition",i),t.dispatch(S.scrollIntoView())}function Ih(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:kc(t,e.resolve(n.anchor),e.resolve(n.head))}function W1(t,e){let n=t.firstChild.marks,o=e.firstChild.marks,r=n,i=o,s,a,l;for(let u=0;u<o.length;u++)r=o[u].removeFromSet(r);for(let u=0;u<n.length;u++)i=n[u].removeFromSet(i);if(r.length==1&&i.length==0)a=r[0],s="add",l=u=>u.mark(a.addToSet(u.marks));else if(r.length==0&&i.length==1)a=i[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(l(e.child(u)));if(R.from(c).eq(t))return{mark:a,type:s}}function q1(t,e,n,o,r){if(n-e<=r.pos-o.pos||Lc(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(Lc(i,!0,!0));return!s.parent.isTextblock||s.pos>n||Lc(s,!0,!1)<n?!1:o.parent.content.cut(o.parentOffset).eq(s.parent.content)}function Lc(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 G1(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&&zh(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&&zh(t.textBetween(i-1,i+1))&&(i+=l?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}function zh(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 Q1{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 h1,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Uh),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=Hh(this),Fh(this),this.nodeViews=Vh(this),this.docView=qp(this.state.doc,Bh(this),Pc(this),this.dom,this),this.domObserver=new F1(this,(o,r,i,s)=>K1(this,o,r,i,s)),this.domObserver.start(),g1(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&&Dc(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Uh),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&&(Eh(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=Vh(this);X1(f,this.nodeViews)&&(this.nodeViews=f,i=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&Dc(this),this.editable=Hh(this),Fh(this);let l=Pc(this),c=Bh(this),u=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",d=i||!this.docView.matchesNode(e.doc,c,l);(d||!e.selection.eq(r.selection))&&(s=!0);let m=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&R$(this);if(s){this.domObserver.stop();let f=d&&(Ye||Te)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&Z1(r.selection,e.selection);if(d){let p=Te?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=D1(this)),(i||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=qp(e.doc,c,l,this.dom,this)),p&&!this.trackWrites&&(f=!0)}f||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&e1(this))?_t(this,f):(ih(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((o=this.dragging)===null||o===void 0)&&o.node&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():m&&O$(m)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof V){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&Lp(this,n.getBoundingClientRect(),e)}else Lp(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 Ah(e.slice,e.move,r<0?void 0:V.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(Ye){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&&T$(this.dom),_t(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 I$(this,e)}coordsAtPos(e,n=1){return Vp(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 V$(this,n||this.state,e)}pasteHTML(e,n){return Fr(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Fr(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return Ec(this,e)}destroy(){this.docView&&(y1(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Pc(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,w$())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return w1(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?Be&&this.root.nodeType===11&&x$(this.dom.ownerDocument)==this.dom&&V1(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function Bh(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"),[st.node(0,t.state.doc.content.size,e)]}function Fh(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:st.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Hh(t){return!t.someProp("editable",e=>e(t.state)===!1)}function Z1(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 Vh(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 X1(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 Uh(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 hn={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:"'"},Ts={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},eS=typeof navigator<"u"&&/Mac/.test(navigator.platform),tS=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Ne=0;Ne<10;Ne++)hn[48+Ne]=hn[96+Ne]=String(Ne);for(var Ne=1;Ne<=24;Ne++)hn[Ne+111]="F"+Ne;for(var Ne=65;Ne<=90;Ne++)hn[Ne]=String.fromCharCode(Ne+32),Ts[Ne]=String.fromCharCode(Ne);for(var Ic in hn)Ts.hasOwnProperty(Ic)||(Ts[Ic]=hn[Ic]);function nS(t){var e=eS&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||tS&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Ts:hn)[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 oS=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function rS(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))oS?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 iS(t){let e=Object.create(null);for(let n in t)e[rS(n)]=t[n];return e}function zc(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 sS(t){return new _e({props:{handleKeyDown:aS(t)}})}function aS(t){let e=iS(t);return function(n,o){let r=nS(o),i,s=e[zc(r,o)];if(s&&s(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(o.shiftKey){let a=e[zc(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=hn[o.keyCode])&&i!=r){let a=e[zc(i,o)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const Bc=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function _h(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const Yh=(t,e,n)=>{let o=_h(t,n);if(!o)return!1;let r=Fc(o);if(!r){let s=o.blockRange(),a=s&&Co(s);return a==null?!1:(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(eg(t,r,e,-1))return!0;if(o.parent.content.size==0&&(Lo(i,"end")||V.isSelectable(i)))for(let s=o.depth;;s--){let a=$s(t.doc,o.before(s),o.after(s),L.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(Lo(i,"end")?Q.findFrom(l.doc.resolve(l.mapping.map(r.pos,-1)),-1):V.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},lS=(t,e,n)=>{let o=_h(t,n);if(!o)return!1;let r=Fc(o);return r?Jh(t,r,e):!1},cS=(t,e,n)=>{let o=Wh(t,n);if(!o)return!1;let r=Hc(o);return r?Jh(t,r,e):!1};function Jh(t,e,n){let o=e.nodeBefore,r=o,i=e.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let u=r.lastChild;if(!u)return!1;r=u}let s=e.nodeAfter,a=s,l=e.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let u=a.firstChild;if(!u)return!1;a=u}let c=$s(t.doc,i,l,L.empty);if(!c||c.from!=i||c instanceof ve&&c.slice.size>=l-i)return!1;if(n){let u=t.tr.step(c);u.setSelection(W.create(u.doc,i)),n(u.scrollIntoView())}return!0}function Lo(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 Kh=(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=Fc(o)}let s=i&&i.nodeBefore;return!s||!V.isSelectable(s)?!1:(e&&e(t.tr.setSelection(V.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function Fc(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 Wh(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const qh=(t,e,n)=>{let o=Wh(t,n);if(!o)return!1;let r=Hc(o);if(!r)return!1;let i=r.nodeAfter;if(eg(t,r,e,1))return!0;if(o.parent.content.size==0&&(Lo(i,"start")||V.isSelectable(i))){let s=$s(t.doc,o.before(),o.after(),L.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(Lo(i,"start")?Q.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):V.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},Gh=(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=Hc(o)}let s=i&&i.nodeAfter;return!s||!V.isSelectable(s)?!1:(e&&e(t.tr.setSelection(V.create(t.doc,i.pos)).scrollIntoView()),!0)};function Hc(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 uS=(t,e)=>{let n=t.selection,o=n instanceof V,r;if(o){if(n.node.isTextblock||!sn(t.doc,n.from))return!1;r=n.from}else if(r=vs(t.doc,n.from,-1),r==null)return!1;if(e){let i=t.tr.join(r);o&&i.setSelection(V.create(i.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},dS=(t,e)=>{let n=t.selection,o;if(n instanceof V){if(n.node.isTextblock||!sn(t.doc,n.to))return!1;o=n.to}else if(o=vs(t.doc,n.to,1),o==null)return!1;return e&&e(t.tr.join(o).scrollIntoView()),!0},mS=(t,e)=>{let{$from:n,$to:o}=t.selection,r=n.blockRange(o),i=r&&Co(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)},Qh=(t,e)=>{let{$head:n,$anchor:o}=t.selection;return!n.parent.type.spec.code||!n.sameParent(o)?!1:(e&&e(t.tr.insertText(`
29
- `).scrollIntoView()),!0)};function Vc(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 fS=(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=Vc(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(Q.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},Zh=(t,e)=>{let n=t.selection,{$from:o,$to:r}=n;if(n instanceof et||o.parent.inlineContent||r.parent.inlineContent)return!1;let i=Vc(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(W.create(a.doc,s+1)),e(a.scrollIntoView())}return!0},Xh=(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(Ft(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let o=n.blockRange(),r=o&&Co(o);return r==null?!1:(e&&e(t.tr.lift(o,r).scrollIntoView()),!0)};function pS(t){return(e,n)=>{let{$from:o,$to:r}=e.selection;if(e.selection instanceof V&&e.selection.node.isBlock)return!o.parentOffset||!Ft(e.doc,o.pos)?!1:(n&&n(e.tr.split(o.pos).scrollIntoView()),!0);if(!o.depth)return!1;let i=[],s,a,l=!1,c=!1;for(let f=o.depth;;f--)if(o.node(f).isBlock){l=o.end(f)==o.pos+(o.depth-f),c=o.start(f)==o.pos-(o.depth-f),a=Vc(o.node(f-1).contentMatchAt(o.indexAfter(f-1))),i.unshift(l&&a?{type:a}:null),s=f;break}else{if(f==1)return!1;i.unshift(null)}let u=e.tr;(e.selection instanceof W||e.selection instanceof et)&&u.deleteSelection();let d=u.mapping.map(o.pos),m=Ft(u.doc,d,i.length,i);if(m||(i[0]=a?{type:a}:null,m=Ft(u.doc,d,i.length,i)),!m)return!1;if(u.split(d,i.length,i),!l&&c&&o.node(s).type!=a){let f=u.mapping.map(o.before(s)),p=u.doc.resolve(f);a&&o.node(s-1).canReplaceWith(p.index(),p.index()+1,a)&&u.setNodeMarkup(u.mapping.map(o.before(s)),a)}return n&&n(u.scrollIntoView()),!0}}const hS=pS(),gS=(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(V.create(t.doc,r))),!0)};function yS(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||sn(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function eg(t,e,n,o){let r=e.nodeBefore,i=e.nodeAfter,s,a,l=r.type.spec.isolating||i.type.spec.isolating;if(!l&&yS(t,e,n))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(s=(a=r.contentMatchAt(r.childCount)).findWrapping(i.type))&&a.matchType(s[0]||i.type).validEnd){if(n){let f=e.pos+i.nodeSize,p=R.empty;for(let y=s.length-1;y>=0;y--)p=R.from(s[y].create(null,p));p=R.from(r.copy(p));let g=t.tr.step(new $e(e.pos-1,f,e.pos,f,new L(p,1,0),s.length,!0)),h=g.doc.resolve(f+2*s.length);h.nodeAfter&&h.nodeAfter.type==r.type&&sn(g.doc,h.pos)&&g.join(h.pos),n(g.scrollIntoView())}return!0}let u=i.type.spec.isolating||o>0&&l?null:Q.findFrom(e,1),d=u&&u.$from.blockRange(u.$to),m=d&&Co(d);if(m!=null&&m>=e.depth)return n&&n(t.tr.lift(d,m).scrollIntoView()),!0;if(c&&Lo(i,"start",!0)&&Lo(r,"end")){let f=r,p=[];for(;p.push(f),!f.isTextblock;)f=f.lastChild;let g=i,h=1;for(;!g.isTextblock;g=g.firstChild)h++;if(f.canReplace(f.childCount,f.childCount,g.content)){if(n){let y=R.empty;for(let $=p.length-1;$>=0;$--)y=R.from(p[$].copy(y));let w=t.tr.step(new $e(e.pos-p.length,e.pos+i.nodeSize,e.pos+h,e.pos+i.nodeSize-h,new L(y,p.length,0),0,!0));n(w.scrollIntoView())}return!0}}return!1}function tg(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(W.create(e.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const bS=tg(-1),wS=tg(1);function vS(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),a=s&&sc(s,t,e);return a?(o&&o(n.tr.wrap(s,a).scrollIntoView()),!0):!1}}function ng(t,e=null){return function(n,o){let r=!1;for(let i=0;i<n.selection.ranges.length&&!r;i++){let{$from:{pos:s},$to:{pos:a}}=n.selection.ranges[i];n.doc.nodesBetween(s,a,(l,c)=>{if(r)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)r=!0;else{let u=n.doc.resolve(c),d=u.index();r=u.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}}function Uc(...t){return function(e,n,o){for(let r=0;r<t.length;r++)if(t[r](e,n,o))return!0;return!1}}Uc(Bc,Yh,Kh),Uc(Bc,qh,Gh),Uc(Qh,Zh,Xh,hS),typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function $S(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),a=!1,l=s;if(!s)return!1;if(s.depth>=2&&r.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(r.index(s.depth-1)==0)return!1;let u=n.doc.resolve(s.start-2);l=new fs(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new fs(r,n.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let c=sc(l,t,e,s);return c?(o&&o(SS(n.tr,s,c,a,t).scrollIntoView()),!0):!1}}function SS(t,e,n,o,r){let i=R.empty;for(let u=n.length-1;u>=0;u--)i=R.from(n[u].type.create(n[u].attrs,i));t.step(new $e(e.start-(o?2:0),e.end,e.start,e.end,new L(i,0,0),n.length,!0));let s=0;for(let u=0;u<n.length;u++)n[u].type==r&&(s=u+1);let a=n.length-s,l=e.start+n.length-(o?2:0),c=e.parent;for(let u=e.startIndex,d=e.endIndex,m=!0;u<d;u++,m=!1)!m&&Ft(t.doc,l,a)&&(t.split(l,a),l+=2*a),l+=c.child(u).nodeSize;return t}function kS(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?xS(e,n,t,i):CS(e,n,i):!0:!1}}function xS(t,e,n,o){let r=t.tr,i=o.end,s=o.$to.end(o.depth);i<s&&(r.step(new $e(i-1,s,i,s,new L(R.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new fs(r.doc.resolve(o.$from.pos),r.doc.resolve(s),o.depth));const a=Co(o);if(a==null)return!1;r.lift(o,a);let l=r.mapping.map(i,-1)-1;return sn(r.doc,l)&&r.join(l),e(r.scrollIntoView()),!0}function CS(t,e,n){let o=t.tr,r=n.parent;for(let f=n.end,p=n.endIndex-1,g=n.startIndex;p>g;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,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?R.empty:R.from(r))))return!1;let d=i.pos,m=d+s.nodeSize;return o.step(new $e(d-(a?1:0),m+(l?1:0),d+1,m-1,new L((a?R.empty:R.from(r.copy(R.empty))).append(l?R.empty:R.from(r.copy(R.empty))),a?0:1,l?0:1),a?0:1)),e(o.scrollIntoView()),!0}function ES(t){return function(e,n){let{$from:o,$to:r}=e.selection,i=o.blockRange(r,c=>c.childCount>0&&c.firstChild.type==t);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let a=i.parent,l=a.child(s-1);if(l.type!=t)return!1;if(n){let c=l.lastChild&&l.lastChild.type==a.type,u=R.from(c?t.create():null),d=new L(R.from(t.create(null,R.from(a.type.create(null,u)))),c?3:1,0),m=i.start,f=i.end;n(e.tr.step(new $e(m-(c?3:1),f,m,f,d,1,!0)).scrollIntoView())}return!0}}function Ms(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 js{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:o}=this,{view:r}=n,{tr:i}=o,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...u)=>{const d=l(...u)(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,c=e||i.tr,u=()=>(!l&&n&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),a.every(m=>m===!0)),d={...Object.fromEntries(Object.entries(o).map(([m,f])=>[m,(...g)=>{const h=this.buildProps(c,n),y=f(...g)(h);return a.push(y),d}])),run:u};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,c])=>[l,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(e,n=!0){const{rawCommands:o,editor:r,state:i}=this,{view:s}=r,a={tr:e,editor:r,view:s,state:Ms({state:i,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(o).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}}let NS=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}once(e,n){const o=(...r)=>{this.off(e,o),n.apply(this,r)};return this.on(e,o)}removeAllListeners(){this.callbacks={}}};function B(t,e,n){return t.config[e]===void 0&&t.parent?B(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?B(t.parent,e,n):null}):t.config[e]}function Ps(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 og(t){const e=[],{nodeExtensions:n,markExtensions:o}=Ps(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=B(s,"addGlobalAttributes",a);if(!l)return;l().forEach(u=>{u.types.forEach(d=>{Object.entries(u.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=B(s,"addAttributes",a);if(!l)return;const c=l();Object.entries(c).forEach(([u,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:u,attribute:m})})}),e}function Se(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 Io(...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?String(i).split(" "):[],l=o[r]?o[r].split(" "):[],c=a.filter(u=>!l.includes(u));o[r]=[...l,...c].join(" ")}else if(r==="style"){const a=i?i.split(";").map(u=>u.trim()).filter(Boolean):[],l=o[r]?o[r].split(";").map(u=>u.trim()).filter(Boolean):[],c=new Map;l.forEach(u=>{const[d,m]=u.split(":").map(f=>f.trim());c.set(d,m)}),a.forEach(u=>{const[d,m]=u.split(":").map(f=>f.trim());c.set(d,m)}),o[r]=Array.from(c.entries()).map(([u,d])=>`${u}: ${d}`).join("; ")}else o[r]=i}),o},{})}function _c(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)=>Io(n,o),{})}function rg(t){return typeof t=="function"}function X(t,e=void 0,...n){return rg(t)?e?t.bind(e)(...n):t(...n):t}function AS(t={}){return Object.keys(t).length===0&&t.constructor===Object}function DS(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function ig(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):DS(n.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...o,...r}}}}function sg(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&AS(n)?!1:n!=null))}function RS(t,e){var n;const o=og(t),{nodeExtensions:r,markExtensions:i}=Ps(t),s=(n=r.find(c=>B(c,"topNode")))===null||n===void 0?void 0:n.name,a=Object.fromEntries(r.map(c=>{const u=o.filter(y=>y.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},m=t.reduce((y,w)=>{const $=B(w,"extendNodeSchema",d);return{...y,...$?$(c):{}}},{}),f=sg({...m,content:X(B(c,"content",d)),marks:X(B(c,"marks",d)),group:X(B(c,"group",d)),inline:X(B(c,"inline",d)),atom:X(B(c,"atom",d)),selectable:X(B(c,"selectable",d)),draggable:X(B(c,"draggable",d)),code:X(B(c,"code",d)),whitespace:X(B(c,"whitespace",d)),linebreakReplacement:X(B(c,"linebreakReplacement",d)),defining:X(B(c,"defining",d)),isolating:X(B(c,"isolating",d)),attrs:Object.fromEntries(u.map(y=>{var w;return[y.name,{default:(w=y==null?void 0:y.attribute)===null||w===void 0?void 0:w.default}]}))}),p=X(B(c,"parseHTML",d));p&&(f.parseDOM=p.map(y=>ig(y,u)));const g=B(c,"renderHTML",d);g&&(f.toDOM=y=>g({node:y,HTMLAttributes:_c(y,u)}));const h=B(c,"renderText",d);return h&&(f.toText=h),[c.name,f]})),l=Object.fromEntries(i.map(c=>{const u=o.filter(h=>h.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},m=t.reduce((h,y)=>{const w=B(y,"extendMarkSchema",d);return{...h,...w?w(c):{}}},{}),f=sg({...m,inclusive:X(B(c,"inclusive",d)),excludes:X(B(c,"excludes",d)),group:X(B(c,"group",d)),spanning:X(B(c,"spanning",d)),code:X(B(c,"code",d)),attrs:Object.fromEntries(u.map(h=>{var y;return[h.name,{default:(y=h==null?void 0:h.attribute)===null||y===void 0?void 0:y.default}]}))}),p=X(B(c,"parseHTML",d));p&&(f.parseDOM=p.map(h=>ig(h,u)));const g=B(c,"renderHTML",d);return g&&(f.toDOM=h=>g({mark:h,HTMLAttributes:_c(h,u)})),[c.name,f]}));return new Xf({topNode:s,nodes:a,marks:l})}function Yc(t,e){return e.nodes[t]||e.marks[t]||null}function ag(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function Jc(t,e){const n=Jn.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}const OS=(t,e=500)=>{let n="";const o=t.parentOffset;return t.parent.nodesBetween(Math.max(0,o-e),o,(r,i,s,a)=>{var l,c;const u=((c=(l=r.type.spec).toText)===null||c===void 0?void 0:c.call(l,{node:r,pos:i,parent:s,index:a}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?u:u.slice(0,Math.max(0,o-i))}),n};function Kc(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class TS{constructor(e){this.find=e.find,this.handler=e.handler}}const MS=(t,e)=>{if(Kc(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 Ls(t){var e;const{editor:n,from:o,to:r,text:i,rules:s,plugin:a}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(o);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(m=>m.type.spec.code))return!1;let u=!1;const d=OS(c)+i;return s.forEach(m=>{if(u)return;const f=MS(d,m.find);if(!f)return;const p=l.state.tr,g=Ms({state:l.state,transaction:p}),h={from:o-(f[0].length-i.length),to:r},{commands:y,chain:w,can:$}=new js({editor:n,state:g});m.handler({state:g,range:h,match:f,commands:y,chain:w,can:$})===null||!p.steps.length||(p.setMeta(a,{transform:p,from:o,to:r,text:i}),l.dispatch(p),u=!0)}),u}function jS(t){const{editor:e,rules:n}=t,o=new _e({state:{init(){return null},apply(r,i,s){const a=r.getMeta(o);if(a)return a;const l=r.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:u}=l;typeof u=="string"?u=u:u=Jc(R.from(u),s.schema);const{from:d}=l,m=d+u.length;Ls({editor:e,from:d,to:m,text:u,rules:n,plugin:o})}),r.selectionSet||r.docChanged?null:i}},props:{handleTextInput(r,i,s,a){return Ls({editor:e,from:i,to:s,text:a,rules:n,plugin:o})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&Ls({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?Ls({editor:e,from:s.pos,to:s.pos,text:`
30
- `,rules:n,plugin:o}):!1}},isInputRules:!0});return o}function PS(t){return Object.prototype.toString.call(t).slice(8,-1)}function Is(t){return PS(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function zs(t,e){const n={...t};return Is(t)&&Is(e)&&Object.keys(e).forEach(o=>{Is(e[o])&&Is(t[o])?n[o]=zs(t[o],e[o]):n[o]=e[o]}),n}class Vr{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=X(B(this,"addOptions",{name:this.name}))),this.storage=X(B(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Vr(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>zs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Vr(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=X(B(n,"addOptions",{name:n.name})),n.storage=X(B(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:o}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const s=r.marks();if(!!!s.find(c=>(c==null?void 0:c.type.name)===n.name))return!1;const l=s.find(c=>(c==null?void 0:c.type.name)===n.name);return l&&o.removeStoredMark(l),o.insertText(" ",r.pos),e.view.dispatch(o),!0}return!1}}function LS(t){return typeof t=="number"}class IS{constructor(e){this.find=e.find,this.handler=e.handler}}const zS=(t,e,n)=>{if(Kc(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 BS(t){const{editor:e,state:n,from:o,to:r,rule:i,pasteEvent:s,dropEvent:a}=t,{commands:l,chain:c,can:u}=new js({editor:e,state:n}),d=[];return n.doc.nodesBetween(o,r,(f,p)=>{if(!f.isTextblock||f.type.spec.code)return;const g=Math.max(o,p),h=Math.min(r,p+f.content.size),y=f.textBetween(g-p,h-p,void 0,"");zS(y,i.find,s).forEach($=>{if($.index===void 0)return;const v=g+$.index+1,x=v+$[0].length,S={from:n.tr.mapping.map(v),to:n.tr.mapping.map(x)},C=i.handler({state:n,range:S,match:$,commands:l,chain:c,can:u,pasteEvent:s,dropEvent:a});d.push(C)})}),d.every(f=>f!==null)}let Bs=null;const FS=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 HS(t){const{editor:e,rules:n}=t;let o=null,r=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a;try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}const l=({state:u,from:d,to:m,rule:f,pasteEvt:p})=>{const g=u.tr,h=Ms({state:u,transaction:g});if(!(!BS({editor:e,state:h,from:Math.max(d-1,0),to:m.b-1,rule:f,pasteEvent:p,dropEvent:a})||!g.steps.length)){try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,g}};return n.map(u=>new _e({view(d){const m=p=>{var g;o=!((g=d.dom.parentElement)===null||g===void 0)&&g.contains(p.target)?d.dom.parentElement:null,o&&(Bs=e)},f=()=>{Bs&&(Bs=null)};return window.addEventListener("dragstart",m),window.addEventListener("dragend",f),{destroy(){window.removeEventListener("dragstart",m),window.removeEventListener("dragend",f)}}},props:{handleDOMEvents:{drop:(d,m)=>{if(i=o===d.dom.parentElement,a=m,!i){const f=Bs;f!=null&&f.isEditable&&setTimeout(()=>{const p=f.state.selection;p&&f.commands.deleteRange({from:p.from,to:p.to})},10)}return!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],g=p.getMeta("uiEvent")==="paste"&&!r,h=p.getMeta("uiEvent")==="drop"&&!i,y=p.getMeta("applyPasteRules"),w=!!y;if(!g&&!h&&!w)return;if(w){let{text:x}=y;typeof x=="string"?x=x:x=Jc(R.from(x),f.schema);const{from:S}=y,C=S+x.length,A=FS(x);return l({rule:u,state:f,from:S,to:{b:C},pasteEvt:A})}const $=m.doc.content.findDiffStart(f.doc.content),v=m.doc.content.findDiffEnd(f.doc.content);if(!(!LS($)||!v||$===v.b))return l({rule:u,state:f,from:$,to:v,pasteEvt:s})}}))}function VS(t){const e=t.filter((n,o)=>t.indexOf(n)!==o);return Array.from(new Set(e))}class zo{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=zo.resolve(e),this.schema=RS(this.extensions,n),this.setupExtensions()}static resolve(e){const n=zo.sort(zo.flatten(e)),o=VS(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=B(n,"addExtensions",o);return r?[n,...this.flatten(r())]:n}).flat(10)}static sort(e){return e.sort((o,r)=>{const i=B(o,"priority")||100,s=B(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:Yc(n.name,this.schema)},r=B(n,"addCommands",o);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,n=zo.sort([...this.extensions].reverse()),o=[],r=[],i=n.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:e,type:Yc(s.name,this.schema)},l=[],c=B(s,"addKeyboardShortcuts",a);let u={};if(s.type==="mark"&&B(s,"exitable",a)&&(u.ArrowRight=()=>Vr.handleExit({editor:e,mark:s})),c){const g=Object.fromEntries(Object.entries(c()).map(([h,y])=>[h,()=>y({editor:e})]));u={...u,...g}}const d=sS(u);l.push(d);const m=B(s,"addInputRules",a);ag(s,e.options.enableInputRules)&&m&&o.push(...m());const f=B(s,"addPasteRules",a);ag(s,e.options.enablePasteRules)&&f&&r.push(...f());const p=B(s,"addProseMirrorPlugins",a);if(p){const g=p();l.push(...g)}return l}).flat();return[jS({editor:e,rules:o}),...HS({editor:e,rules:r}),...i]}get attributes(){return og(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=Ps(this.extensions);return Object.fromEntries(n.filter(o=>!!B(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:Se(o.name,this.schema)},s=B(o,"addNodeView",i);if(!s)return[];const a=(l,c,u,d,m)=>{const f=_c(l,r);return s()({node:l,view:c,getPos:u,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:Yc(e.name,this.schema)};e.type==="mark"&&(!((n=X(B(e,"keepOnSplit",o)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(e.name);const r=B(e,"onBeforeCreate",o),i=B(e,"onCreate",o),s=B(e,"onUpdate",o),a=B(e,"onSelectionUpdate",o),l=B(e,"onTransaction",o),c=B(e,"onFocus",o),u=B(e,"onBlur",o),d=B(e,"onDestroy",o);r&&this.editor.on("beforeCreate",r),i&&this.editor.on("create",i),s&&this.editor.on("update",s),a&&this.editor.on("selectionUpdate",a),l&&this.editor.on("transaction",l),c&&this.editor.on("focus",c),u&&this.editor.on("blur",u),d&&this.editor.on("destroy",d)})}}class at{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=X(B(this,"addOptions",{name:this.name}))),this.storage=X(B(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new at(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>zs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new at({...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=X(B(n,"addOptions",{name:n.name})),n.storage=X(B(n,"addStorage",{name:n.name,options:n.options})),n}}function lg(t,e,n){const{from:o,to:r}=e,{blockSeparator:i=`
31
-
32
- `,textSerializers:s={}}=n||{};let a="";return t.nodesBetween(o,r,(l,c,u,d)=>{var m;l.isBlock&&c>o&&(a+=i);const f=s==null?void 0:s[l.type.name];if(f)return u&&(a+=f({node:l,pos:c,parent:u,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,c)-c,r-c))}),a}function cg(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const US=at.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new _e({key:new bt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:o,selection:r}=e,{ranges:i}=r,s=Math.min(...i.map(u=>u.$from.pos)),a=Math.max(...i.map(u=>u.$to.pos)),l=cg(n);return lg(o,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),_S=()=>({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),YS=(t=!1)=>({commands:e})=>e.setContent("",t),JS=()=>({state:t,tr:e,dispatch:n})=>{const{selection:o}=e,{ranges:r}=o;return n&&r.forEach(({$from:i,$to:s})=>{t.doc.nodesBetween(i.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=e,d=c.resolve(u.map(l)),m=c.resolve(u.map(l+a.nodeSize)),f=d.blockRange(m);if(!f)return;const p=Co(f);if(a.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(f.start,g)}(p||p===0)&&e.lift(f,p)})}),!0},KS=t=>e=>t(e),WS=()=>({state:t,dispatch:e})=>Zh(t,e),qS=(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 W(o.doc.resolve(Math.max(s-1,0)))),!0},GS=()=>({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},QS=t=>({tr:e,state:n,dispatch:o})=>{const r=Se(t,n.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===r){if(o){const l=i.before(s),c=i.after(s);e.delete(l,c).scrollIntoView()}return!0}return!1},ZS=t=>({tr:e,dispatch:n})=>{const{from:o,to:r}=t;return n&&e.delete(o,r),!0},XS=()=>({state:t,dispatch:e})=>Bc(t,e),ek=()=>({commands:t})=>t.keyboardShortcut("Enter"),tk=()=>({state:t,dispatch:e})=>fS(t,e);function Fs(t,e,n={strict:!0}){const o=Object.keys(e);return o.length?o.every(r=>n.strict?e[r]===t[r]:Kc(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function ug(t,e,n={}){return t.find(o=>o.type===e&&Fs(Object.fromEntries(Object.keys(n).map(r=>[r,o.attrs[r]])),n))}function dg(t,e,n={}){return!!ug(t,e,n)}function Wc(t,e,n){var o;if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if((!r.node||!r.node.marks.some(u=>u.type===e))&&(r=t.parent.childBefore(t.parentOffset)),!r.node||!r.node.marks.some(u=>u.type===e)||(n=n||((o=r.node.marks[0])===null||o===void 0?void 0:o.attrs),!ug([...r.node.marks],e,n)))return;let s=r.index,a=t.start()+r.offset,l=s+1,c=a+r.node.nodeSize;for(;s>0&&dg([...t.parent.child(s-1).marks],e,n);)s-=1,a-=t.parent.child(s).nodeSize;for(;l<t.parent.childCount&&dg([...t.parent.child(l).marks],e,n);)c+=t.parent.child(l).nodeSize,l+=1;return{from:a,to:c}}function gn(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 nk=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const i=gn(t,o.schema),{doc:s,selection:a}=n,{$from:l,from:c,to:u}=a;if(r){const d=Wc(l,i,e);if(d&&d.from<=c&&d.to>=u){const m=W.create(s,d.from,d.to);n.setSelection(m)}}return!0},ok=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 mg(t){return t instanceof W}function eo(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function fg(t,e=null){if(!e)return null;const n=Q.atStart(t),o=Q.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return o;const r=n.from,i=o.to;return e==="all"?W.create(t,eo(0,r,i),eo(t.content.size,r,i)):W.create(t,eo(e,r,i),eo(e,r,i))}function rk(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function qc(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const ik=(t=null,e={})=>({editor:n,view:o,tr:r,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{(qc()||rk())&&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&&!mg(n.state.selection))return s(),!0;const a=fg(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},sk=(t,e)=>n=>t.every((o,r)=>e(o,{...n,index:r})),ak=(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),pg=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&&pg(o)}return t};function Hs(t){const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return pg(n)}function Ur(t,e,n){if(t instanceof nn||t instanceof R)return t;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 R.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),Ur("",e,n)}if(r){if(n.errorOnInvalidContent){let s=!1,a="";const l=new Xf({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(s=!0,a=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?Er.fromSchema(l).parseSlice(Hs(t),n.parseOptions):Er.fromSchema(l).parse(Hs(t),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const i=Er.fromSchema(e);return n.slice?i.parseSlice(Hs(t),n.parseOptions).content:i.parse(Hs(t),n.parseOptions)}return Ur("",e,n)}function lk(t,e,n){const o=t.steps.length-1;if(o<e)return;const r=t.steps[o];if(!(r instanceof ve||r instanceof $e))return;const i=t.mapping.maps[o];let s=0;i.forEach((a,l,c,u)=>{s===0&&(s=u)}),t.setSelection(Q.near(t.doc.resolve(s),n))}const ck=t=>!("type"in t),uk=(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;const l=h=>{i.emit("contentError",{editor:i,error:h,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{Ur(e,i.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(h){l(h)}try{a=Ur(e,i.schema,{parseOptions:c,errorOnInvalidContent:(s=n.errorOnInvalidContent)!==null&&s!==void 0?s:i.options.enableContentCheck})}catch(h){return l(h),!1}let{from:u,to:d}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},m=!0,f=!0;if((ck(a)?a:[a]).forEach(h=>{h.check(),m=m?h.isText&&h.marks.length===0:!1,f=f?h.isBlock:!1}),u===d&&f){const{parent:h}=o.doc.resolve(u);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(u-=1,d+=1)}let g;if(m){if(Array.isArray(e))g=e.map(h=>h.text||"").join("");else if(e instanceof R){let h="";e.forEach(y=>{y.text&&(h+=y.text)}),g=h}else typeof e=="object"&&e&&e.text?g=e.text:g=e;o.insertText(g,u,d)}else g=a,o.replaceWith(u,d,g);n.updateSelection&&lk(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:u,text:g}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:u,text:g})}return!0},dk=()=>({state:t,dispatch:e})=>uS(t,e),mk=()=>({state:t,dispatch:e})=>dS(t,e),fk=()=>({state:t,dispatch:e})=>Yh(t,e),pk=()=>({state:t,dispatch:e})=>qh(t,e),hk=()=>({state:t,dispatch:e,tr:n})=>{try{const o=vs(t.doc,t.selection.$from.pos,-1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},gk=()=>({state:t,dispatch:e,tr:n})=>{try{const o=vs(t.doc,t.selection.$from.pos,1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},yk=()=>({state:t,dispatch:e})=>lS(t,e),bk=()=>({state:t,dispatch:e})=>cS(t,e);function hg(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function wk(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))qc()||hg()?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 vk=t=>({editor:e,view:n,tr:o,dispatch:r})=>{const i=wk(t).split(/-(?!$)/),s=i.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,a))});return l==null||l.steps.forEach(c=>{const u=c.map(o.mapping);u&&r&&o.maybeStep(u)}),!0};function _r(t,e,n={}){const{from:o,to:r,empty:i}=t.selection,s=e?Se(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,c=a.filter(d=>s?s.name===d.node.type.name:!0).filter(d=>Fs(d.node.attrs,n,{strict:!1}));return i?!!c.length:c.reduce((d,m)=>d+m.to-m.from,0)>=l}const $k=(t,e={})=>({state:n,dispatch:o})=>{const r=Se(t,n.schema);return _r(n,r,e)?mS(n,o):!1},Sk=()=>({state:t,dispatch:e})=>Xh(t,e),kk=t=>({state:e,dispatch:n})=>{const o=Se(t,e.schema);return kS(o)(e,n)},xk=()=>({state:t,dispatch:e})=>Qh(t,e);function Vs(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function gg(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 Ck=(t,e)=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=Vs(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=Se(t,o.schema)),a==="mark"&&(s=gn(t,o.schema)),r&&n.selection.ranges.forEach(l=>{o.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{i&&i===c.type&&n.setNodeMarkup(u,void 0,gg(c.attrs,e)),s&&c.marks.length&&c.marks.forEach(d=>{s===d.type&&n.addMark(u,u+c.nodeSize,s.create(gg(d.attrs,e)))})})}),!0):!1},Ek=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),Nk=()=>({tr:t,dispatch:e})=>{if(e){const n=new et(t.doc);t.setSelection(n)}return!0},Ak=()=>({state:t,dispatch:e})=>Kh(t,e),Dk=()=>({state:t,dispatch:e})=>Gh(t,e),Rk=()=>({state:t,dispatch:e})=>gS(t,e),Ok=()=>({state:t,dispatch:e})=>wS(t,e),Tk=()=>({state:t,dispatch:e})=>bS(t,e);function Gc(t,e,n={},o={}){return Ur(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:o.errorOnInvalidContent})}const Mk=(t,e=!1,n={},o={})=>({editor:r,tr:i,dispatch:s,commands:a})=>{var l,c;const{doc:u}=i;if(n.preserveWhitespace!=="full"){const d=Gc(t,r.schema,n,{errorOnInvalidContent:(l=o.errorOnInvalidContent)!==null&&l!==void 0?l:r.options.enableContentCheck});return s&&i.replaceWith(0,u.content.size,d).setMeta("preventUpdate",!e),!0}return s&&i.setMeta("preventUpdate",!e),a.insertContentAt({from:0,to:u.content.size},t,{parseOptions:n,errorOnInvalidContent:(c=o.errorOnInvalidContent)!==null&&c!==void 0?c:r.options.enableContentCheck})};function yg(t,e){const n=gn(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 jk(t,e){const n=new kp(t);return e.forEach(o=>{o.steps.forEach(r=>{n.step(r)})}),n}function Pk(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 Lk(t,e,n){const o=[];return t.nodesBetween(e.from,e.to,(r,i)=>{n(r)&&o.push({node:r,pos:i})}),o}function Ik(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 Qc(t){return e=>Ik(e.$from,t)}function zk(t,e){const n={from:0,to:t.content.size};return lg(t,n,e)}function Bk(t,e){const n=Se(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 bg(t,e){const n=Vs(typeof e=="string"?e:e.name,t.schema);return n==="node"?Bk(t,e):n==="mark"?yg(t,e):{}}function Fk(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 Hk(t){const e=Fk(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 Vk(t){const{mapping:e,steps:n}=t,o=[];return e.maps.forEach((r,i)=>{const s=[];if(r.ranges.length)r.forEach((a,l)=>{s.push({from:a,to:l})});else{const{from:a,to:l}=n[i];if(a===void 0||l===void 0)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{const c=e.slice(i).map(a,-1),u=e.slice(i).map(l),d=e.invert().map(c,-1),m=e.invert().map(u);o.push({oldRange:{from:d,to:m},newRange:{from:c,to:u}})})}),Hk(o)}function wg(t,e,n){const o=[];return t===e?n.resolve(t).marks().forEach(r=>{const i=n.resolve(t),s=Wc(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 Us(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 Zc(t,e,n={}){const{empty:o,ranges:r}=t.selection,i=e?gn(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter(d=>i?i.name===d.type.name:!0).find(d=>Fs(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,(g,h)=>{if(!g.isText&&!g.marks.length)return;const y=Math.max(f,h),w=Math.min(p,h+g.nodeSize),$=w-y;s+=$,a.push(...g.marks.map(v=>({mark:v,from:y,to:w})))})}),s===0)return!1;const l=a.filter(d=>i?i.name===d.mark.type.name:!0).filter(d=>Fs(d.mark.attrs,n,{strict:!1})).reduce((d,m)=>d+m.to-m.from,0),c=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+c:l)>=s}function Uk(t,e,n={}){if(!e)return _r(t,null,n)||Zc(t,null,n);const o=Vs(e,t.schema);return o==="node"?_r(t,e,n):o==="mark"?Zc(t,e,n):!1}function vg(t,e){const{nodeExtensions:n}=Ps(e),o=n.find(s=>s.name===t);if(!o)return!1;const r={name:o.name,options:o.options,storage:o.storage},i=X(B(o,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function _s(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&&(_s(i,{ignoreWhitespace:n,checkChildren:e})||(r=!1))}),r}return!1}function _k(t,e,n){var o;const{selection:r}=e;let i=null;if(mg(r)&&(i=r.$cursor),i){const a=(o=t.storedMarks)!==null&&o!==void 0?o:i.marks();return!!n.isInSet(a)||!a.some(l=>l.type.excludes(n))}const{ranges:s}=r;return s.some(({$from:a,$to:l})=>{let c=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(a.pos,l.pos,(u,d,m)=>{if(c)return!1;if(u.isInline){const f=!m||m.type.allowsMarkType(n),p=!!n.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(n));c=f&&p}return!c}),c})}const Yk=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const{selection:i}=n,{empty:s,ranges:a}=i,l=gn(t,o.schema);if(r)if(s){const c=yg(o,l);n.addStoredMark(l.create({...c,...e}))}else a.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;o.doc.nodesBetween(u,d,(m,f)=>{const p=Math.max(f,u),g=Math.min(f+m.nodeSize,d);m.marks.find(y=>y.type===l)?m.marks.forEach(y=>{l===y.type&&n.addMark(p,g,l.create({...y.attrs,...e}))}):n.addMark(p,g,l.create(e))})});return _k(o,n,l)},Jk=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),Kk=(t,e={})=>({state:n,dispatch:o,chain:r})=>{const i=Se(t,n.schema);let s;return n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),i.isTextblock?r().command(({commands:a})=>ng(i,{...s,...e})(n)?!0:a.clearNodes()).command(({state:a})=>ng(i,{...s,...e})(a,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Wk=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,r=eo(t,0,o.content.size),i=V.create(o,r);e.setSelection(i)}return!0},qk=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,s=W.atStart(o).from,a=W.atEnd(o).to,l=eo(r,s,a),c=eo(i,s,a),u=W.create(o,l,c);e.setSelection(u)}return!0},Gk=t=>({state:e,dispatch:n})=>{const o=Se(t,e.schema);return ES(o)(e,n)};function $g(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 Qk=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:o,editor:r})=>{const{selection:i,doc:s}=e,{$from:a,$to:l}=i,c=r.extensionManager.attributes,u=Us(c,a.node().type.name,a.node().attrs);if(i instanceof V&&i.node.isBlock)return!a.parentOffset||!Ft(s,a.pos)?!1:(o&&(t&&$g(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:Pk(a.node(-1).contentMatchAt(a.indexAfter(-1)));let f=d&&m?[{type:m,attrs:u}]:void 0,p=Ft(e.doc,e.mapping.map(a.pos),1,f);if(!f&&!p&&Ft(e.doc,e.mapping.map(a.pos),1,m?[{type:m}]:void 0)&&(p=!0,f=m?[{type:m,attrs:u}]:void 0),o){if(p&&(i instanceof W&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,f),m&&!d&&!a.parentOffset&&a.parent.type!==m)){const g=e.mapping.map(a.before()),h=e.doc.resolve(g);a.node(-1).canReplaceWith(h.index(),h.index()+1,m)&&e.setNodeMarkup(e.mapping.map(a.before()),m)}t&&$g(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return p},Zk=(t,e={})=>({tr:n,state:o,dispatch:r,editor:i})=>{var s;const a=Se(t,o.schema),{$from:l,$to:c}=o.selection,u=o.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const 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 y=R.empty;const w=l.index(-1)?1:l.index(-2)?2:3;for(let A=l.depth-w;A>=l.depth-3;A-=1)y=R.from(l.node(A).copy(y));const $=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,v={...Us(m,l.node().type.name,l.node().attrs),...e},x=((s=a.contentMatch.defaultType)===null||s===void 0?void 0:s.createAndFill(v))||void 0;y=y.append(R.from(a.createAndFill(null,x)||void 0));const S=l.before(l.depth-(w-1));n.replace(S,l.after(-$),new L(y,4-w,0));let C=-1;n.doc.nodesBetween(S,n.doc.content.size,(A,N)=>{if(C>-1)return!1;A.isTextblock&&A.content.size===0&&(C=N+1)}),C>-1&&n.setSelection(W.near(n.doc.resolve(C))),n.scrollIntoView()}return!0}const f=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,p={...Us(m,d.type.name,d.attrs),...e},g={...Us(m,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,c.pos);const h=f?[{type:a,attrs:p},{type:f,attrs:g}]:[{type:a,attrs:p}];if(!Ft(n.doc,l.pos,2))return!1;if(r){const{selection:y,storedMarks:w}=o,{splittableMarks:$}=i.extensionManager,v=w||y.$to.parentOffset&&y.$from.marks();if(n.split(l.pos,2,h).scrollIntoView(),!v||!r)return!0;const x=v.filter(S=>$.includes(S.type.name));n.ensureMarks(x)}return!0},Xc=(t,e)=>{const n=Qc(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)&&sn(t.doc,n.pos)&&t.join(n.pos),!0},eu=(t,e)=>{const n=Qc(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)&&sn(t.doc,o)&&t.join(o),!0};var Xk=Object.freeze({__proto__:null,blur:_S,clearContent:YS,clearNodes:JS,command:KS,createParagraphNear:WS,cut:qS,deleteCurrentNode:GS,deleteNode:QS,deleteRange:ZS,deleteSelection:XS,enter:ek,exitCode:tk,extendMarkRange:nk,first:ok,focus:ik,forEach:sk,insertContent:ak,insertContentAt:uk,joinBackward:fk,joinDown:mk,joinForward:pk,joinItemBackward:hk,joinItemForward:gk,joinTextblockBackward:yk,joinTextblockForward:bk,joinUp:dk,keyboardShortcut:vk,lift:$k,liftEmptyBlock:Sk,liftListItem:kk,newlineInCode:xk,resetAttributes:Ck,scrollIntoView:Ek,selectAll:Nk,selectNodeBackward:Ak,selectNodeForward:Dk,selectParentNode:Rk,selectTextblockEnd:Ok,selectTextblockStart:Tk,setContent:Mk,setMark:Yk,setMeta:Jk,setNode:Kk,setNodeSelection:Wk,setTextSelection:qk,sinkListItem:Gk,splitBlock:Qk,splitListItem:Zk,toggleList:(t,e,n,o={})=>({editor:r,tr:i,state:s,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:m}=r.extensionManager,f=Se(t,s.schema),p=Se(e,s.schema),{selection:g,storedMarks:h}=s,{$from:y,$to:w}=g,$=y.blockRange(w),v=h||g.$to.parentOffset&&g.$from.marks();if(!$)return!1;const x=Qc(S=>vg(S.type.name,d))(g);if($.depth>=1&&x&&$.depth-x.depth<=1){if(x.node.type===f)return c.liftListItem(p);if(vg(x.node.type.name,d)&&f.validContent(x.node.content)&&a)return l().command(()=>(i.setNodeMarkup(x.pos,f),!0)).command(()=>Xc(i,f)).command(()=>eu(i,f)).run()}return!n||!v||!a?l().command(()=>u().wrapInList(f,o)?!0:c.clearNodes()).wrapInList(f,o).command(()=>Xc(i,f)).command(()=>eu(i,f)).run():l().command(()=>{const S=u().wrapInList(f,o),C=v.filter(A=>m.includes(A.type.name));return i.ensureMarks(C),S?!0:c.clearNodes()}).wrapInList(f,o).command(()=>Xc(i,f)).command(()=>eu(i,f)).run()},toggleMark:(t,e={},n={})=>({state:o,commands:r})=>{const{extendEmptyMarkRange:i=!1}=n,s=gn(t,o.schema);return Zc(o,s,e)?r.unsetMark(s,{extendEmptyMarkRange:i}):r.setMark(s,e)},toggleNode:(t,e,n={})=>({state:o,commands:r})=>{const i=Se(t,o.schema),s=Se(e,o.schema),a=_r(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=Se(t,n.schema);return _r(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=gn(t,o.schema),{$from:c,empty:u,ranges:d}=a;if(!r)return!0;if(u&&s){let{from:m,to:f}=a;const p=(i=c.marks().find(h=>h.type===l))===null||i===void 0?void 0:i.attrs,g=Wc(c,l,p);g&&(m=g.from,f=g.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=Vs(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=Se(t,o.schema)),a==="mark"&&(s=gn(t,o.schema)),r&&n.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;let d,m,f,p;n.selection.empty?o.doc.nodesBetween(c,u,(g,h)=>{i&&i===g.type&&(f=Math.max(h,c),p=Math.min(h+g.nodeSize,u),d=h,m=g)}):o.doc.nodesBetween(c,u,(g,h)=>{h<c&&i&&i===g.type&&(f=Math.max(h,c),p=Math.min(h+g.nodeSize,u),d=h,m=g),h>=c&&h<=u&&(i&&i===g.type&&n.setNodeMarkup(h,void 0,{...g.attrs,...e}),s&&g.marks.length&&g.marks.forEach(y=>{if(s===y.type){const w=Math.max(h,c),$=Math.min(h+g.nodeSize,u);n.addMark(w,$,s.create({...y.attrs,...e}))}}))}),m&&(d!==void 0&&n.setNodeMarkup(d,void 0,{...m.attrs,...e}),s&&m.marks.length&&m.marks.forEach(g=>{s===g.type&&n.addMark(f,p,s.create({...g.attrs,...e}))}))}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:o})=>{const r=Se(t,n.schema);return vS(r,e)(n,o)},wrapInList:(t,e={})=>({state:n,dispatch:o})=>{const r=Se(t,n.schema);return $S(r,e)(n,o)}});const ex=at.create({name:"commands",addCommands(){return{...Xk}}}),tx=at.create({name:"drop",addProseMirrorPlugins(){return[new _e({key:new bt("tiptapDrop"),props:{handleDrop:(t,e,n,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:o})}}})]}}),nx=at.create({name:"editable",addProseMirrorPlugins(){return[new _e({key:new bt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),ox=new bt("focusEvents"),rx=at.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new _e({key:ox,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}}}})]}}),ix=at.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:d}=l,{pos:m,parent:f}=d,p=d.parent.isTextblock&&m>0?a.doc.resolve(m-1):d,g=p.parent.type.spec.isolating,h=d.pos-d.parentOffset,y=g&&p.parent.childCount===1?h===d.pos:Q.atStart(c).from===m;return!u||!f.type.isTextblock||f.textContent.length||!y||y&&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 qc()||hg()?i:r},addProseMirrorPlugins(){return[new _e({key:new bt("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(g=>g.getMeta("composition")))return;const o=t.some(g=>g.docChanged)&&!e.doc.eq(n.doc),r=t.some(g=>g.getMeta("preventClearDocument"));if(!o||r)return;const{empty:i,from:s,to:a}=e.selection,l=Q.atStart(e.doc).from,c=Q.atEnd(e.doc).to;if(i||!(s===l&&a===c)||!_s(n.doc))return;const m=n.tr,f=Ms({state:n,transaction:m}),{commands:p}=new js({editor:this.editor,state:f});if(p.clearNodes(),!!m.steps.length)return m}})]}}),sx=at.create({name:"paste",addProseMirrorPlugins(){return[new _e({key:new bt("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),ax=at.create({name:"tabindex",addProseMirrorPlugins(){return[new _e({key:new bt("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class to{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 to(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 to(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 to(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);if(s<0||s>this.resolvedPos.doc.nodeSize-2)return;const a=this.resolvedPos.doc.resolve(s);if(!r&&a.depth<=this.depth)return;const l=new to(a,this.editor,r,r?n:null);r&&(l.actualDepth=this.depth+1),e.push(new to(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 lx=`.ProseMirror {
19
+ */var iv=k,$f=60103;if(Sr.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Sf=Symbol.for;$f=Sf("react.element"),Sr.Fragment=Sf("react.fragment")}var sv=iv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,av=Object.prototype.hasOwnProperty,lv={key:!0,ref:!0,__self:!0,__source:!0};function kf(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)av.call(e,o)&&!lv.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:$f,type:t,key:i,ref:s,props:r,_owner:sv.current}}Sr.jsx=kf,Sr.jsxs=kf,tf.exports=Sr;var b=tf.exports;const cv=({adminUrl:t,onLoad:e})=>{const n={display:"none"};return b.jsx("iframe",{"data-frame":"admin-auth",src:t+"auth-frame/",style:n,title:"auth-frame",onLoad:e})};var uv=function(t){return t instanceof RegExp},dv=function(e){var n=/[\\^$.*+?()[\]{}|]/g,o=RegExp(n.source);return e&&o.test(e)?e.replace(n,"\\$&"):e},xf=function(t){return typeof t=="string"},mv=function(t){var e=[];return t.forEach(function(n){Array.isArray(n)?e=e.concat(n):e.push(n)}),e};function fv(t,e,n){var o=0,r=0;if(t==="")return t;if(!t||!xf(t))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var i=e;uv(i)||(i=new RegExp("("+dv(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 pv=function(e,n,o){return Array.isArray(e)||(e=[e]),mv(e.map(function(r){return xf(r)?fv(r,n,o):r}))};const Cf=zt(pv),ql=q.createContext({});ql.Provider;const Y=()=>k.useContext(ql),hv=()=>{const e=Y().dispatchAction;return n=>{e("setOrder",{order:n})}},Ef=()=>{try{return Y().labs||{}}catch{return{}}},Nf=({isFirst:t,isPaid:e})=>{const{accentColor:n,publication:o,member:r,t:i,commentCount:s}=Y(),a={backgroundColor:n},l={color:n},c=i(s===0?"Start the conversation":"Join the discussion"),u=()=>{window.location.href=e&&r?"#/portal/account/plans":"#/portal/signup"},d=()=>{window.location.href="#/portal/signin"},m=Cf(i(e?"Become a paid member of {publication} to start commenting.":"Become a member of {publication} to start commenting."),"{publication}",()=>b.jsx("span",{className:"font-semibold",children:o}));return b.jsxs(b.Fragment,{children:[b.jsx("h1",{className:`mb-[8px] text-center font-sans text-2xl tracking-tight text-black dark:text-[rgba(255,255,255,0.85)] ${t?"font-semibold":"font-bold"}`,children:c}),b.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}),b.jsx("button",{className:"text-md mb-[12px] inline-block rounded px-5 py-[14px] font-sans font-medium leading-none text-white transition-all hover:opacity-90","data-testid":"signup-button",style:a,type:"button",onClick:u,children:i(e&&r?"Upgrade now":"Sign up now")}),!r&&b.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:[b.jsx("span",{className:"mr-1 inline-block text-[15px]",children:i("Already a member?")}),b.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")})]})]})},Af=t=>k.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},k.createElement("path",{d:"M11.55 4C13.483 4 15.05 5.567 15.05 7.5C15.05 9.433 13.483 11 11.55 11C9.617 11 8.05 9.433 8.05 7.5C8.05 5.567 9.617 4 11.55 4ZM11.55 20C9.044 20 6.757 19.067 5 17.538C5.997 14.888 8.551 13 11.55 13C14.549 13 17.103 14.888 18.1 17.538C16.343 19.066 14.056 20 11.55 20Z",fill:"currentColor"})),Df="ghost-comments-";function Rf(t,e){return`${t.replace(/#.*$/,"")}#${Df}${e}`}function Of(t){const e=new RegExp(`^#${Df}([a-f0-9]+)$`,"i"),n=t.match(e);return n?n[1]:null}function gv(t,e){return t.find(n=>(n==null?void 0:n.id)===e)||t.flatMap(n=>n.replies||[]).find(n=>(n==null?void 0:n.id)===e)}function ss(t){return t!==0&&!t?"":t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function yv(t,e){const n=new Date(t),o=new Date;if(isNaN(n.getTime()))return e("Just now");const r=Math.round((o.getTime()-n.getTime())/1e3);if(r<60)return e("Just now");const i=Math.round(r/60);if(i===1)return e("One min ago");if(i<60)return e("{amount} mins ago",{amount:i});const s=Math.round(i/60);if(s===1)return e("One hour ago");const a=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())),l=new Date(Date.UTC(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate())),c=Math.floor((l.getTime()-a.getTime())/(1e3*60*60*24));if(c===1)return e("Yesterday");if(c>1){const u=n.getDate(),d=n.toLocaleString("en-us",{month:"short"});return n.getFullYear()!==o.getFullYear()?`${u} ${d} ${n.getFullYear()}`:`${u} ${d}`}return e("{amount} hrs ago",{amount:s})}function bv(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 wv(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 Tf(t,e){return t?t.name?t.name:e("Anonymous"):e("Deleted member")}function vv(t,e){return Tf(t.member,e)}function as(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<480}const $v=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},ls=t=>{const e=t.offsetHeight,n=$v(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 Sv(t){const{html:e=""}=t,n=document.createElement("div");n.innerHTML=e,n.querySelectorAll("script, style, link, meta, noscript, title").forEach(r=>r.remove()),n.querySelectorAll("blockquote").forEach(r=>r.remove());let o=n.textContent||"";return o=o.replace(`
20
+ `," "),o=o.replace(/\s+/g," "),o=o.trim(),o.substring(0,100)}function Mf(){return"w-8 h-8"}const jf=()=>{const t=Mf();return b.jsx("figure",{className:`relative ${t}`,"data-testid":"blank-avatar",children:b.jsx("div",{className:`flex items-center justify-center rounded-full bg-black/5 text-neutral-900/25 dark:bg-white/15 dark:text-white/30 ${t}`,children:b.jsx(Af,{className:"size-7 opacity-80"})})})},Gl=({member:t})=>{const{avatarSaturation:e,t:n}=Y(),o=Mf(),r=Tf(t,n),i=f=>{let p=0;for(let g=0;g<f.length;g++)p=f.charCodeAt(g)+((p<<5)-p);return p=Math.abs(p),p},s=(f,p,g)=>Math.floor(f%(g-p)+p),a=()=>{if(!r)return[0,0,10];const f=e===void 0||isNaN(e)?50:e,p=[0,360],g=Math.round(f/(100/30))+30,y=[g-20,g],w=i(r),v=s(w,p[0],p[1]),$=s(w,y[0],y[1]);return[v,f,$]},l=f=>`hsl(${f[0]}, ${f[1]}%, ${f[2]}%)`,c=wv(r),d={background:l(a())},m=b.jsxs(b.Fragment,{children:[r?b.jsx("div",{className:`flex items-center justify-center rounded-full ${o}`,"data-testid":"avatar-background",style:d,children:b.jsx("p",{className:"font-sans text-base font-semibold text-white",children:c})}):b.jsx("div",{className:`flex items-center justify-center rounded-full bg-neutral-900 dark:bg-white/70 ${o}`,"data-testid":"avatar-background",children:b.jsx(Af,{className:"stroke-white dark:stroke-black/60"})}),(t==null?void 0:t.avatar_image)&&b.jsx("img",{alt:"Avatar",className:`absolute left-0 top-0 rounded-full ${o}`,"data-testid":"avatar-image",src:t.avatar_image})]});return t?b.jsx("figure",{className:`relative ${o}`,"data-testid":"avatar",children:m}):b.jsx(jf,{})},kv=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",...t},k.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",strokeLinejoin:"round",className:"nc-icon-wrapper"},k.createElement("polygon",{points:"7 21 2 22 3 17 18 2 22 6 7 21"})));function Ce(t){this.content=t}Ce.prototype={constructor:Ce,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 Ce(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 Ce(n)},addToStart:function(t,e){return new Ce([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Ce(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 Ce(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=Ce.from(t),t.size?new Ce(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Ce.from(t),t.size?new Ce(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Ce.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}},Ce.from=function(t){if(t instanceof Ce)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Ce(e)};function Pf(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=Pf(r.content,i.content,n+1);if(s!=null)return s}n+=r.nodeSize}}function If(t,e,n,o){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:n,b:o};let s=t.child(--r),a=e.child(--i),l=s.nodeSize;if(s==a){n-=l,o-=l;continue}if(!s.sameMarkup(a))return{a:n,b:o};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;c<u&&s.text[s.text.length-c-1]==a.text[a.text.length-c-1];)c++,n--,o--;return{a:n,b:o}}if(s.content.size||a.content.size){let c=If(s.content,a.content,n-1,o-1);if(c)return c}n-=l,o-=l}}class R{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let o=0;o<e.length;o++)this.size+=e[o].nodeSize}nodesBetween(e,n,o,r=0,i){for(let s=0,a=0;a<n;s++){let l=this.content[s],c=a+l.nodeSize;if(c>e&&o(l,r+a,i||null,s)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),o,r+u)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,o,r){let i="",s=!0;return this.nodesBetween(e,n,(a,l)=>{let c=a.isText?a.text.slice(Math.max(e,l)-l,n-l):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&o&&(s?s=!1:i+=o),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,o=e.firstChild,r=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(o)&&(r[r.length-1]=n.withText(n.text+o.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new R(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 R(o,r)}cutByIndex(e,n){return e==n?R.empty:e==0&&n==this.content.length?this:new R(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 R(r,i)}addToStart(e){return new R([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new R(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 Pf(this,e,n)}findDiffEnd(e,n=this.size,o=e.size){return If(this,e,n,o)}findIndex(e,n=-1){if(e==0)return cs(0,e);if(e==this.size)return cs(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?cs(o+1,s):cs(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 R.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new R(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return R.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 R(n||e,o)}static from(e){if(!e)return R.empty;if(e instanceof R)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new R([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}R.empty=new R([],0);const Ql={index:0,offset:0};function cs(t,e){return Ql.index=t,Ql.offset=e,Ql}function us(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(!us(t[o],e[o]))return!1}else{for(let o in t)if(!(o in e)||!us(t[o],e[o]))return!1;for(let o in e)if(!(o in t))return!1}return!0}let re=class Zm{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&&us(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 Zm.none;if(e instanceof Zm)return[e];let n=e.slice();return n.sort((o,r)=>o.type.rank-r.type.rank),n}};re.none=[];class ds extends Error{}class I{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=zf(this.content,e+this.openStart,n);return o&&new I(o,this.openStart,this.openEnd)}removeBetween(e,n){return new I(Lf(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 I.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 I(R.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 I(e,o,r)}}I.empty=new I(R.empty,0,0);function Lf(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(Lf(i.content,e-r-1,n-r-1)))}function zf(t,e,n,o){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return t.cut(0,e).append(n).append(t.cut(e));let a=zf(s.content,e-i-1,n);return a&&t.replaceChild(r,s.copy(a))}function xv(t,e,n){if(n.openStart>t.depth)throw new ds("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new ds("Inconsistent open depths");return Bf(t,e,n,0)}function Bf(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=Bf(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 _n(s,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=Cv(n,t);return _n(i,Hf(t,s,a,e,o))}else return _n(i,ms(t,e,o))}function Ff(t,e){if(!e.type.compatibleContent(t.type))throw new ds("Cannot join "+e.type.name+" onto "+t.type.name)}function Zl(t,e,n){let o=t.node(n);return Ff(o,e.node(n)),o}function Un(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function xr(t,e,n,o){let r=(e||t).node(n),i=0,s=e?e.index(n):r.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(Un(t.nodeAfter,o),i++));for(let a=i;a<s;a++)Un(r.child(a),o);e&&e.depth==n&&e.textOffset&&Un(e.nodeBefore,o)}function _n(t,e){return t.type.checkContent(e),t.copy(e)}function Hf(t,e,n,o,r){let i=t.depth>r&&Zl(t,e,r+1),s=o.depth>r&&Zl(n,o,r+1),a=[];return xr(null,t,r,a),i&&s&&e.index(r)==n.index(r)?(Ff(i,s),Un(_n(i,Hf(t,e,n,o,r+1)),a)):(i&&Un(_n(i,ms(t,e,r+1)),a),xr(e,n,r,a),s&&Un(_n(s,ms(n,o,r+1)),a)),xr(o,null,r,a),new R(a)}function ms(t,e,n){let o=[];if(xr(null,t,n,o),t.depth>n){let r=Zl(t,e,n+1);Un(_n(r,ms(t,e,n+1)),o)}return xr(e,null,n,o),new R(o)}function Cv(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(R.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}class Cr{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 re.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 fs(this,e,o);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let o=[],r=0,i=n;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(i),c=i-l;if(o.push(s,a,r+l),!c||(s=s.child(a),s.isText))break;i=c-1,r+=l+1}return new Cr(n,o,i)}static resolveCached(e,n){let o=Vf.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 Vf.set(e,o=new Ev);let r=o.elts[o.i]=Cr.resolve(e,n);return o.i=(o.i+1)%Nv,r}}class Ev{constructor(){this.elts=[],this.i=0}}const Nv=12,Vf=new WeakMap;class fs{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 Av=Object.create(null);let nn=class Xm{constructor(e,n,o,r=re.none){this.type=e,this.attrs=n,this.marks=r,this.content=o||R.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,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&&us(this.attrs,n||e.defaultAttrs||Av)&&re.sameSet(this.marks,o||re.none)}copy(e=null){return e==this.content?this:new Xm(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Xm(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 I.empty;let r=this.resolve(e),i=this.resolve(n),s=o?0:r.sharedDepth(n),a=r.start(s),c=r.node(s).content.cut(r.pos-a,i.pos-a);return new I(c,r.depth-s,i.depth-s)}replace(e,n,o){return xv(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 Cr.resolveCached(this,e)}resolveNoCache(e){return Cr.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()+")"),Uf(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=R.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=re.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(!re.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=R.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,r,o);return i.type.checkAttrs(i.attrs),i}};nn.prototype.text=void 0;class ps extends nn{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):Uf(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 ps(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new ps(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 Uf(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Yn{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let o=new Dv(e,n);if(o.next==null)return Yn.empty;let r=_f(o);o.next&&o.err("Unexpected trailing text");let i=Iv(Pv(r));return Lv(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 R.from(a.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:u,next:d}=s.next[c];if(!(u.isText||u.hasRequiredAttrs())&&r.indexOf(d)==-1){r.push(d);let m=i(d,a.concat(u));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(`
21
+ `)}}Yn.empty=new Yn(!0);class Dv{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 _f(t){let e=[];do e.push(Rv(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Rv(t){let e=[];do e.push(Ov(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Ov(t){let e=jv(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=Tv(t,e);else break;return e}function Yf(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function Tv(t,e){let n=Yf(t),o=n;return t.eat(",")&&(t.next!="}"?o=Yf(t):o=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function Mv(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.isInGroup(e)&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function jv(t){if(t.eat("(")){let e=_f(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=Mv(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 Pv(t){let e=[[]];return r(i(t,0),n()),e;function n(){return e.push([])-1}function o(s,a,l){let c={term:l,to:a};return e[s].push(c),c}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,c)=>l.concat(i(c,a)),[]);if(s.type=="seq")for(let l=0;;l++){let c=i(s.exprs[l],a);if(l==s.exprs.length-1)return c;r(c,a=n())}else if(s.type=="star"){let l=n();return o(a,l),r(i(s.expr,l),l),[o(l)]}else if(s.type=="plus"){let l=n();return r(i(s.expr,a),l),r(i(s.expr,l),l),[o(l)]}else{if(s.type=="opt")return[o(a)].concat(i(s.expr,a));if(s.type=="range"){let l=a;for(let c=0;c<s.min;c++){let u=n();r(i(s.expr,l),u),l=u}if(s.max==-1)r(i(s.expr,l),l);else for(let c=s.min;c<s.max;c++){let u=n();o(l,u),r(i(s.expr,l),u),l=u}return[o(l)]}else{if(s.type=="name")return[o(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Jf(t,e){return e-t}function Kf(t,e){let n=[];return o(e),n.sort(Jf);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 Iv(t){let e=Object.create(null);return n(Kf(t,0));function n(o){let r=[];o.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u<r.length;u++)r[u][0]==a&&(c=r[u][1]);Kf(t,l).forEach(u=>{c||r.push([a,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=e[o.join(",")]=new Yn(o.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(Jf);i.next.push({type:r[s][0],next:e[a.join(",")]||n(a)})}return i}}function Lv(t,e){for(let n=0,o=[t];n<o.length;n++){let r=o[n],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:l,next:c}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),o.indexOf(c)==-1&&o.push(c)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Wf(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 qf(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 Gf(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 Qf(t,e){let n=Object.create(null);if(e)for(let o in e)n[o]=new Bv(t,o,e[o]);return n}let Zf=class Ww{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=Qf(e,o.attrs),this.defaultAttrs=Wf(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==Yn.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:qf(this.attrs,e)}create(e=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new nn(this,this.computeAttrs(e),R.from(n),re.setFrom(o))}createChecked(e=null,n,o){return n=R.from(n),this.checkContent(n),new nn(this,this.computeAttrs(e),n,re.setFrom(o))}createAndFill(e=null,n,o){if(e=this.computeAttrs(e),n=R.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(R.empty,!0);return i?new nn(this,e,n.append(i),re.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){Gf(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:re.none:e}static compile(e,n){let o=Object.create(null);e.forEach((i,s)=>o[i]=new Ww(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 zv(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 Bv{constructor(e,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?zv(e,n,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class hs{constructor(e,n,o,r){this.name=e,this.rank=n,this.schema=o,this.spec=r,this.attrs=Qf(e,r.attrs),this.excluded=null;let i=Wf(this.attrs);this.instance=i?new re(this,i):null}create(e=null){return!e&&this.instance?this.instance:new re(this,qf(this.attrs,e))}static compile(e,n){let o=Object.create(null),r=0;return e.forEach((i,s)=>o[i]=new hs(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){Gf(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Xf{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=Ce.from(e.nodes),n.marks=Ce.from(e.marks||{}),this.nodes=Zf.compile(this.spec.nodes,this),this.marks=hs.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]=Yn.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?ep(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==""?[]:ep(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 Zf){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 ps(o,o.defaultAttrs,e,re.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return nn.fromJSON(this,e)}markFromJSON(e){return re.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function ep(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 Fv(t){return t.tag!=null}function Hv(t){return t.style!=null}let Er=class ef{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];n.forEach(r=>{if(Fv(r))this.tags.push(r);else if(Hv(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 rp(this,n,!1);return o.addAll(e,re.none,n.from,n.to),o.finish()}parseSlice(e,n={}){let o=new rp(this,n,!0);return o.addAll(e,re.none,n.from,n.to),I.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(_v(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=ip(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=ip(s)),s.node||s.ignore||s.mark||(s.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new ef(e,ef.schemaRules(e)))}};const tp={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},Vv={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},np={ol:!0,ul:!0},Nr=1,Xl=2,Ar=4;function op(t,e,n){return e!=null?(e?Nr:0)|(e==="full"?Xl:0):t&&t.whitespace=="pre"?Nr|Xl:n&~Ar}class gs{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=re.none,this.match=i||(s&Ar?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(R.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&Nr)){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=R.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(R.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&&!tp.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class rp{constructor(e,n,o){this.parser=e,this.options=n,this.isOpen=o,this.open=0,this.localPreserveWS=!1;let r=n.topNode,i,s=op(null,n.preserveWhitespace,0)|(o?Ar:0);r?i=new gs(r.type,r.attrs,re.none,!0,n.topMatch||r.type.contentMatch,s):o?i=new gs(null,null,re.none,!0,null,s):i=new gs(e.schema.topNodeType,null,re.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,i=r.options&Xl?"full":this.localPreserveWS||(r.options&Nr)>0;if(i==="full"||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(i)i!=="full"?o=o.replace(/\r?\n|\r/g," "):o=o.replace(/\r\n?/g,`
22
+ `);else if(o=o.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(o)&&this.open==this.nodes.length-1){let s=r.content[r.content.length-1],a=e.previousSibling;(!s||a&&a.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.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=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),a;np.hasOwnProperty(s)&&this.parser.normalizeLists&&Uv(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,o));e:if(l?l.ignore:Vv.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let c,u=this.needsBlock;if(tp.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),c=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=l&&l.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),c&&this.sync(i),this.needsBlock=u}else{let c=this.readStyles(e,n);c&&this.addElementByRule(e,l,c,l.consuming===!1?a:void 0)}this.localPreserveWS=r}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
23
+ `),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(e,n){let o=e.style;if(o&&o.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let i=this.parser.matchedStyles[r],s=o.getPropertyValue(i);if(s)for(let a=void 0;;){let l=this.parser.matchStyle(i,s,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(c=>!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return n}addElementByRule(e,n,o,r){let i,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),o)||this.leafFallback(e,o);else{let l=this.enter(s,n.attrs||null,o,n.preserveWhitespace);l&&(i=!0,o=l)}else{let l=this.parser.schema.marks[n.mark];o=o.concat(l.create(n.attrs))}let a=this.top;if(s&&s.isLeaf)this.findInside(e);else if(r)this.addElement(e,o,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,o));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,o),this.findAround(e,l,!1)}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=re.none;for(let s of o.concat(e.marks))(r.type?r.type.allowsMarkType(s.type):sp(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=op(e,i,s.options);s.options&Ar&&s.content.length==0&&(a|=Ar);let l=re.none;return o=o.filter(c=>(s.type?s.type.allowsMarkType(c.type):sp(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new gs(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;this.localPreserveWS&&(this.nodes[n].options|=Nr)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let o=this.nodes[n].content;for(let r=o.length-1;r>=0;r--)e+=o[r].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let o=0;o<this.find.length;o++)this.find[o].node==e&&this.find[o].offset==n&&(this.find[o].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,o){if(e!=n&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&n.compareDocumentPosition(this.find[r].node)&(o?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),o=this.options.context,r=!this.isOpen&&(!o||o.parent.type==this.nodes[0].type),i=-(o?o.depth+1:0)+(r?0:1),s=(a,l)=>{for(;a>=0;a--){let c=n[a];if(c==""){if(a==n.length-1||a==0)continue;for(;l>=i;l--)if(s(a-1,l))return!0;return!1}else{let u=l>0||l==0&&r?this.nodes[l].type:o&&l>=i?o.node(l-i).type:null;if(!u||u.name!=c&&!u.isInGroup(c))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 Uv(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&np.hasOwnProperty(o)&&n?(n.appendChild(e),e=n):o=="li"?n=e:o&&(n=null)}}function _v(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function ip(t){let e={};for(let n in t)e[n]=t[n];return e}function sp(t,e){let n=e.schema.nodes;for(let o in n){let r=n[o];if(!r.allowsMarkType(t))continue;let i=[],s=a=>{i.push(a);for(let l=0;l<a.edgeCount;l++){let{type:c,next:u}=a.edge(l);if(c==e||i.indexOf(u)<0&&s(u))return!0}};if(s(r.contentMatch))return!0}}class Jn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},o){o||(o=ec(n).createDocumentFragment());let r=o,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let a=0,l=0;for(;a<i.length&&l<s.marks.length;){let c=s.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(i[a][0])||c.type.spec.spanning===!1)break;a++,l++}for(;a<i.length;)r=i.pop()[1];for(;l<s.marks.length;){let c=s.marks[l++],u=this.serializeMark(c,s.isInline,n);u&&(i.push([c,r]),r.appendChild(u.dom),r=u.contentDOM||u.dom)}}r.appendChild(this.serializeNodeInner(s,n))}),o}serializeNodeInner(e,n){let{dom:o,contentDOM:r}=ys(ec(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&&ys(ec(o),r(e,n),null,e.attrs)}static renderSpec(e,n,o=null,r){return ys(e,n,o,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Jn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=ap(e.nodes);return n.text||(n.text=o=>o.text),n}static marksFromSchema(e){return ap(e.marks)}}function ap(t){let e={};for(let n in t){let o=t[n].spec.toDOM;o&&(e[n]=o)}return e}function ec(t){return t.document||window.document}const lp=new WeakMap;function Yv(t){let e=lp.get(t);return e===void 0&&lp.set(t,e=Jv(t)),e}function Jv(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 ys(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=Yv(o))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=r.indexOf(" ");s>0&&(n=r.slice(0,s),r=r.slice(s+1));let a,l=n?t.createElementNS(n,r):t.createElement(r),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let m=d.indexOf(" ");m>0?l.setAttributeNS(d.slice(0,m),d.slice(m+1),c[d]):l.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let m=e[d];if(m===0){if(d<e.length-1||d>u)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}=ys(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 cp=65535,up=Math.pow(2,16);function Kv(t,e){return t+e*up}function dp(t){return t&cp}function Wv(t){return(t-(t&cp))/up}const mp=1,fp=2,bs=4,pp=8;class tc{constructor(e,n,o){this.pos=e,this.delInfo=n,this.recover=o}get deleted(){return(this.delInfo&pp)>0}get deletedBefore(){return(this.delInfo&(mp|bs))>0}get deletedAfter(){return(this.delInfo&(fp|bs))>0}get deletedAcross(){return(this.delInfo&bs)>0}}class Xe{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Xe.empty)return Xe.empty}recover(e){let n=0,o=dp(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+Wv(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,o){let r=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[a+i],u=this.ranges[a+s],d=l+c;if(e<=d){let m=c?e==l?-1:e==d?1:n:n,f=l+r+(m<0?0:u);if(o)return f;let p=e==(n<0?l:d)?null:Kv(a/3,e-l),g=e==l?fp:e==d?mp:bs;return(n<0?e!=l:e!=d)&&(g|=pp),new tc(f,g,p)}r+=u-c}return o?e+r:new tc(e+r,0,null)}touches(e,n){let o=0,r=dp(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?o:0);if(l>e)break;let c=this.ranges[a+i],u=l+c;if(e<=u&&a==r*3)return!0;o+=this.ranges[a+s]-c}return!1}forEach(e){let n=this.inverted?2:1,o=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let s=this.ranges[r],a=s-(this.inverted?i:0),l=s+(this.inverted?0:i),c=this.ranges[r+n],u=this.ranges[r+o];e(a,a+c,l,l+u),i+=u-c}}invert(){return new Xe(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Xe.empty:new Xe(e<0?[0,-e,0]:[0,0,e])}}Xe.empty=new Xe([]);class ws{constructor(e,n,o=0,r=e?e.length:0){this.mirror=n,this.from=o,this.to=r,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new ws(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,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 ws;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 tc(e,r,null)}}const nc=Object.create(null);class Oe{getMap(){return Xe.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let o=nc[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 nc)throw new RangeError("Duplicate use of step JSON ID "+e);return nc[e]=n,n.prototype.jsonID=e,n}}class ye{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ye(e,null)}static fail(e){return new ye(null,e)}static fromReplace(e,n,o,r){try{return ye.ok(e.replace(n,o,r))}catch(i){if(i instanceof ds)return ye.fail(i.message);throw i}}}function oc(t,e,n){let o=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(oc(i.content,e,i))),i.isInline&&(i=e(i,n,r)),o.push(i)}return R.fromArray(o)}class on extends Oe{constructor(e,n,o){super(),this.from=e,this.to=n,this.mark=o}apply(e){let n=e.slice(this.from,this.to),o=e.resolve(this.from),r=o.node(o.sharedDepth(this.to)),i=new I(oc(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 ye.fromReplace(e,this.from,this.to,i)}invert(){return new xt(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 on(n.pos,o.pos,this.mark)}merge(e){return e instanceof on&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new on(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 on(n.from,n.to,e.markFromJSON(n.mark))}}Oe.jsonID("addMark",on);class xt extends Oe{constructor(e,n,o){super(),this.from=e,this.to=n,this.mark=o}apply(e){let n=e.slice(this.from,this.to),o=new I(oc(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),n.openStart,n.openEnd);return ye.fromReplace(e,this.from,this.to,o)}invert(){return new on(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 xt(n.pos,o.pos,this.mark)}merge(e){return e instanceof xt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new xt(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 xt(n.from,n.to,e.markFromJSON(n.mark))}}Oe.jsonID("removeMark",xt);class rn extends Oe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ye.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ye.fromReplace(e,this.pos,this.pos+1,new I(R.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 rn(this.pos,n.marks[r]);return new rn(this.pos,this.mark)}}return new xo(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new rn(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 rn(n.pos,e.markFromJSON(n.mark))}}Oe.jsonID("addNodeMark",rn);class xo extends Oe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ye.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ye.fromReplace(e,this.pos,this.pos+1,new I(R.from(o),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new rn(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new xo(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 xo(n.pos,e.markFromJSON(n.mark))}}Oe.jsonID("removeNodeMark",xo);class ve extends Oe{constructor(e,n,o,r=!1){super(),this.from=e,this.to=n,this.slice=o,this.structure=r}apply(e){return this.structure&&rc(e,this.from,this.to)?ye.fail("Structure replace would overwrite content"):ye.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Xe([this.from,this.to-this.from,this.slice.size])}invert(e){return new ve(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 ve(n.pos,Math.max(n.pos,o.pos),this.slice)}merge(e){if(!(e instanceof ve)||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?I.empty:new I(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new ve(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?I.empty:new I(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new ve(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 ve(n.from,n.to,I.fromJSON(e,n.slice),!!n.structure)}}Oe.jsonID("replace",ve);class $e extends Oe{constructor(e,n,o,r,i,s,a=!1){super(),this.from=e,this.to=n,this.gapFrom=o,this.gapTo=r,this.slice=i,this.insert=s,this.structure=a}apply(e){if(this.structure&&(rc(e,this.from,this.gapFrom)||rc(e,this.gapTo,this.to)))return ye.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ye.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,n.content);return o?ye.fromReplace(e,this.from,this.to,o):ye.fail("Content does not fit in gap")}getMap(){return new Xe([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 $e(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 $e(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 $e(n.from,n.to,n.gapFrom,n.gapTo,I.fromJSON(e,n.slice),n.insert,!!n.structure)}}Oe.jsonID("replaceAround",$e);function rc(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 qv(t,e,n,o){let r=[],i=[],s,a;t.doc.nodesBetween(e,n,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!o.isInSet(d)&&u.type.allowsMarkType(o.type)){let m=Math.max(c,e),f=Math.min(c+l.nodeSize,n),p=o.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(p)||(s&&s.to==m&&s.mark.eq(d[g])?s.to=f:r.push(s=new xt(m,f,d[g])));a&&a.to==m?a.to=f:i.push(a=new on(m,f,o))}}),r.forEach(l=>t.step(l)),i.forEach(l=>t.step(l))}function Gv(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 hs){let c=s.marks,u;for(;u=o.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else o?o.isInSet(s.marks)&&(l=[o]):l=s.marks;if(l&&l.length){let c=Math.min(a+s.nodeSize,n);for(let u=0;u<l.length;u++){let d=l[u],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=c,m.step=i):r.push({style:d,from:Math.max(a,e),to:c,step:i})}}}),r.forEach(s=>t.step(new xt(s.from,s.to,s.style)))}function ic(t,e,n,o=n.contentMatch,r=!0){let i=t.doc.nodeAt(e),s=[],a=e+1;for(let l=0;l<i.childCount;l++){let c=i.child(l),u=a+c.nodeSize,d=o.matchType(c.type);if(!d)s.push(new ve(a,u,I.empty));else{o=d;for(let m=0;m<c.marks.length;m++)n.allowsMarkType(c.marks[m].type)||t.step(new xt(a,u,c.marks[m]));if(r&&c.isText&&n.whitespace!="pre"){let m,f=/\r?\n|\r/g,p;for(;m=f.exec(c.text);)p||(p=new I(R.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),s.push(new ve(a+m.index,a+m.index+m[0].length,p))}}a=u}if(!o.validEnd){let l=o.fillBefore(R.empty,!0);t.replace(a,a,new I(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function Qv(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Co(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||!Qv(r,i,s))break}return null}function Zv(t,e,n){let{$from:o,$to:r,depth:i}=e,s=o.before(i+1),a=r.after(i+1),l=s,c=a,u=R.empty,d=0;for(let p=i,g=!1;p>n;p--)g||o.index(p)>0?(g=!0,u=R.from(o.node(p).copy(u)),d++):l--;let m=R.empty,f=0;for(let p=i,g=!1;p>n;p--)g||r.after(p+1)<r.end(p)?(g=!0,m=R.from(r.node(p).copy(m)),f++):c++;t.step(new $e(l,c,s,a,new I(u.append(m),d,f),u.size-d,!0))}function sc(t,e,n=null,o=t){let r=Xv(t,e),i=r&&e$(o,e);return i?r.map(hp).concat({type:e,attrs:n}).concat(i.map(hp)):null}function hp(t){return{type:t,attrs:null}}function Xv(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 e$(t,e){let{parent:n,startIndex:o,endIndex:r}=t,i=n.child(o),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let l=(s.length?s[s.length-1]:e).contentMatch;for(let c=o;l&&c<r;c++)l=l.matchType(n.child(c).type);return!l||!l.validEnd?null:s}function t$(t,e,n){let o=R.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=R.from(n[s].type.create(n[s].attrs,o))}let r=e.start,i=e.end;t.step(new $e(r,i,r,i,new I(o,0,0),n.length,!0))}function n$(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)&&o$(t.doc,t.mapping.slice(i).map(a),o)){let c=null;if(o.schema.linebreakReplacement){let f=o.whitespace=="pre",p=!!o.contentMatch.matchType(o.schema.linebreakReplacement);f&&!p?c=!1:!f&&p&&(c=!0)}c===!1&&yp(t,s,a,i),ic(t,t.mapping.slice(i).map(a,1),o,void 0,c===null);let u=t.mapping.slice(i),d=u.map(a,1),m=u.map(a+s.nodeSize,1);return t.step(new $e(d,m,d+1,m-1,new I(R.from(o.create(l,null,s.marks)),0,0),1,!0)),c===!0&&gp(t,s,a,i),!1}})}function gp(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 yp(t,e,n,o){e.forEach((r,i)=>{if(r.type==r.type.schema.linebreakReplacement){let s=t.mapping.slice(o).map(n+1+i);t.replaceWith(s,s+1,e.type.schema.text(`
24
+ `))}})}function o$(t,e,n){let o=t.resolve(e),r=o.index();return o.parent.canReplaceWith(r,r+1,n)}function r$(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 $e(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new I(R.from(s),0,0),1,!0))}function Ft(t,e,n=1,o){let r=t.resolve(e),i=r.depth-n,s=o&&o[o.length-1]||r.parent;if(i<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!s.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let c=r.depth-1,u=n-2;c>i;c--,u--){let d=r.node(c),m=r.index(c);if(d.type.spec.isolating)return!1;let f=d.content.cutByIndex(m,d.childCount),p=o&&o[u+1];p&&(f=f.replaceChild(0,p.type.create(p.attrs)));let g=o&&o[u]||d;if(!d.canReplace(m+1,d.childCount)||!g.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 i$(t,e,n=1,o){let r=t.doc.resolve(e),i=R.empty,s=R.empty;for(let a=r.depth,l=r.depth-n,c=n-1;a>l;a--,c--){i=R.from(r.node(a).copy(i));let u=o&&o[c];s=R.from(u?u.type.create(u.attrs,s):r.node(a).copy(s))}t.step(new ve(e,e,new I(i.append(s),n,n),!0))}function sn(t,e){let n=t.resolve(e),o=n.index();return bp(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function s$(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:o}=t.type.schema;for(let r=0;r<e.childCount;r++){let i=e.child(r),s=i.type==o?t.type.schema.nodes.text:i.type;if(n=n.matchType(s),!n||!t.type.allowsMarks(i.marks))return!1}return n.validEnd}function bp(t,e){return!!(t&&e&&!t.isLeaf&&s$(t,e))}function vs(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&&bp(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 a$(t,e,n){let o=null,{linebreakReplacement:r}=t.doc.type.schema,i=t.doc.resolve(e-n),s=i.node().type;if(r&&s.inlineContent){let u=s.whitespace=="pre",d=!!s.contentMatch.matchType(r);u&&!d?o=!1:!u&&d&&(o=!0)}let a=t.steps.length;if(o===!1){let u=t.doc.resolve(e+n);yp(t,u.node(),u.before(),a)}s.inlineContent&&ic(t,e+n-1,s,i.node().contentMatchAt(i.index()),o==null);let l=t.mapping.slice(a),c=l.map(e-n);if(t.step(new ve(c,l.map(e+n,-1),I.empty,!0)),o===!0){let u=t.doc.resolve(c);gp(t,u.node(),u.before(),t.steps.length)}return t}function l$(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 c$(t,e,n){let o=t.resolve(e);if(!n.content.size)return e;let r=n.content;for(let i=0;i<n.openStart;i++)r=r.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let s=o.depth;s>=0;s--){let a=s==o.depth?0:o.pos<=(o.start(s+1)+o.end(s+1))/2?-1:1,l=o.index(s)+(a>0?1:0),c=o.node(s),u=!1;if(i==1)u=c.canReplace(l,l,r);else{let d=c.contentMatchAt(l).findWrapping(r.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return a==0?o.pos:a<0?o.before(s+1):o.after(s+1)}return null}function $s(t,e,n=e,o=I.empty){if(e==n&&!o.size)return null;let r=t.resolve(e),i=t.resolve(n);return wp(r,i,o)?new ve(e,n,o):new u$(r,i,o).fit()}function wp(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class u${constructor(e,n,o){this.$from=e,this.$to=n,this.unplaced=o,this.frontier=[],this.placed=R.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=R.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,o=this.$from,r=this.close(e<0?this.$to:o.doc.resolve(e));if(!r)return null;let i=this.placed,s=o.depth,a=r.depth;for(;s&&a&&i.childCount==1;)i=i.firstChild.content,s--,a--;let l=new I(i,s,a);return e>-1?new $e(o.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||o.pos!=this.$to.pos?new ve(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=ac(this.unplaced.content,o-1).firstChild,r=i.content):r=this.unplaced.content;let s=r.firstChild;for(let a=this.depth;a>=0;a--){let{type:l,match:c}=this.frontier[a],u,d=null;if(n==1&&(s?c.matchType(s.type)||(d=c.fillBefore(R.from(s),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:o,frontierDepth:a,parent:i,inject:d};if(n==2&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:o,frontierDepth:a,parent:i,wrap:u};if(i&&c.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=ac(e,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new I(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=ac(e,n);if(r.childCount<=1&&n>0){let i=e.size-n<=n+r.size;this.unplaced=new I(Dr(e,n-1,1),n-1,i?n-1:o)}else this.unplaced=new I(Dr(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 g=0;g<i.length;g++)this.openFrontierNode(i[g]);let s=this.unplaced,a=o?o.content:s.content,l=s.openStart-e,c=0,u=[],{match:d,type:m}=this.frontier[n];if(r){for(let g=0;g<r.childCount;g++)u.push(r.child(g));d=d.matchFragment(r)}let f=a.size+e-(s.content.size-s.openEnd);for(;c<a.childCount;){let g=a.child(c),h=d.matchType(g.type);if(!h)break;c++,(c>1||l==0||g.content.size)&&(d=h,u.push(vp(g.mark(m.allowedMarks(g.marks)),c==1?l:0,c==a.childCount?f:-1)))}let p=c==a.childCount;p||(f=-1),this.placed=Rr(this.placed,n,R.from(u)),this.frontier[n].match=d,p&&f<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,h=a;g<f;g++){let y=h.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),h=y.content}this.unplaced=p?e==0?I.empty:new I(Dr(s.content,e-1,1),e-1,f<0?s.openEnd:e-1):new I(Dr(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!lc(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=lc(e,n,r,o,i);if(s){for(let a=n-1;a>=0;a--){let{match:l,type:c}=this.frontier[a],u=lc(e,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:s,move:i?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Rr(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=Rr(this.placed,this.depth,R.from(e.create(n,o))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(R.empty,!0);n.childCount&&(this.placed=Rr(this.placed,this.frontier.length,n))}}function Dr(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Dr(t.firstChild.content,e-1,n)))}function Rr(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Rr(t.lastChild.content,e-1,n)))}function ac(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function vp(t,e,n){if(e<=0)return t;let o=t.content;return e>1&&(o=o.replaceChild(0,vp(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(R.empty,!0)))),t.copy(o)}function lc(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&&!d$(n,i.content,s)?a:null}function d$(t,e,n){for(let o=n;o<e.childCount;o++)if(!t.allowsMarks(e.child(o).marks))return!0;return!1}function m$(t){return t.spec.defining||t.spec.definingForContent}function f$(t,e,n,o){if(!o.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),i=t.doc.resolve(n);if(wp(r,i,o))return t.step(new ve(e,n,o));let s=Sp(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),c=[],u=o.openStart;for(let m=o.content,f=0;;f++){let p=m.firstChild;if(c.push(p),f==o.openStart)break;m=p.content}for(let m=u-1;m>=0;m--){let f=c[m],p=m$(f.type);if(p&&!f.sameMarkup(r.node(Math.abs(a)-1)))u=m;else if(p||!f.type.isTextblock)break}for(let m=o.openStart;m>=0;m--){let f=(m+u+1)%(o.openStart+1),p=c[f];if(p)for(let g=0;g<s.length;g++){let h=s[(g+l)%s.length],y=!0;h<0&&(y=!1,h=-h);let w=r.node(h-1),v=r.index(h-1);if(w.canReplaceWith(v,v,p.type,p.marks))return t.replace(r.before(h),y?i.after(h):n,new I($p(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 $p(t,e,n,o,r){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy($p(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(R.empty,!0))}return t}function p$(t,e,n,o){if(!o.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=l$(t.doc,e,o.type);r!=null&&(e=n=r)}t.replaceRange(e,n,new I(R.from(o),0,0))}function h$(t,e,n){let o=t.doc.resolve(e),r=t.doc.resolve(n),i=Sp(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&&o.start(s-1)==r.start(s-1)&&o.node(s-1).canReplace(o.index(s-1),r.index(s-1)))return t.delete(o.before(s),n);t.delete(e,n)}function Sp(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 Eo extends Oe{constructor(e,n,o){super(),this.pos=e,this.attr=n,this.value=o}apply(e){let n=e.nodeAt(this.pos);if(!n)return ye.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 ye.fromReplace(e,this.pos,this.pos+1,new I(R.from(r),0,n.isLeaf?0:1))}getMap(){return Xe.empty}invert(e){return new Eo(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 Eo(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 Eo(n.pos,n.attr,n.value)}}Oe.jsonID("attr",Eo);class Or extends Oe{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let r in e.attrs)n[r]=e.attrs[r];n[this.attr]=this.value;let o=e.type.create(n,e.content,e.marks);return ye.ok(o)}getMap(){return Xe.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)}}Oe.jsonID("docAttr",Or);let No=class extends Error{};No=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},No.prototype=Object.create(Error.prototype),No.prototype.constructor=No,No.prototype.name="TransformError";class kp{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new ws}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new No(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=I.empty){let r=$s(this.doc,e,n,o);return r&&this.step(r),this}replaceWith(e,n,o){return this.replace(e,n,new I(R.from(o),0,0))}delete(e,n){return this.replace(e,n,I.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,o){return f$(this,e,n,o),this}replaceRangeWith(e,n,o){return p$(this,e,n,o),this}deleteRange(e,n){return h$(this,e,n),this}lift(e,n){return Zv(this,e,n),this}join(e,n=1){return a$(this,e,n),this}wrap(e,n){return t$(this,e,n),this}setBlockType(e,n=e,o,r=null){return n$(this,e,n,o,r),this}setNodeMarkup(e,n,o=null,r){return r$(this,e,n,o,r),this}setNodeAttribute(e,n,o){return this.step(new Eo(e,n,o)),this}setDocAttribute(e,n){return this.step(new Or(e,n)),this}addNodeMark(e,n){return this.step(new rn(e,n)),this}removeNodeMark(e,n){if(!(n instanceof re)){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 xo(e,n)),this}split(e,n=1,o){return i$(this,e,n,o),this}addMark(e,n,o){return qv(this,e,n,o),this}removeMark(e,n,o){return Gv(this,e,n,o),this}clearIncompatible(e,n,o){return ic(this,e,n,o),this}}const cc=Object.create(null);class G{constructor(e,n,o){this.$anchor=e,this.$head=n,this.ranges=o||[new g$(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=I.empty){let o=n.content.lastChild,r=null;for(let a=0;a<n.openEnd;a++)r=o,o=o.lastChild;let i=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:l,$to:c}=s[a],u=e.mapping.slice(i);e.replaceRange(u.map(l.pos),u.map(c.pos),a?I.empty:n),a==0&&Ep(e,i,(o?o.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,n){let o=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:s,$to:a}=r[i],l=e.mapping.slice(o),c=l.map(s.pos),u=l.map(a.pos);i?e.deleteRange(c,u):(e.replaceRangeWith(c,u,n),Ep(e,o,n.isInline?-1:1))}}static findFrom(e,n,o=!1){let r=e.parent.inlineContent?new K(e):Ao(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?Ao(e.node(0),e.node(i),e.before(i+1),e.index(i),n,o):Ao(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 et(e.node(0))}static atStart(e){return Ao(e,e,0,0,1)||new et(e)}static atEnd(e){return Ao(e,e,e.content.size,e.childCount,-1)||new et(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=cc[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 cc)throw new RangeError("Duplicate use of selection JSON ID "+e);return cc[e]=n,n.prototype.jsonID=e,n}getBookmark(){return K.between(this.$anchor,this.$head).getBookmark()}}G.prototype.visible=!0;class g${constructor(e,n){this.$from=e,this.$to=n}}let xp=!1;function Cp(t){!xp&&!t.parent.inlineContent&&(xp=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class K extends G{constructor(e,n=e){Cp(e),Cp(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 G.near(o);let r=e.resolve(n.map(this.anchor));return new K(r.parent.inlineContent?r:o,o)}replace(e,n=I.empty){if(super.replace(e,n),n==I.empty){let o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}eq(e){return e instanceof K&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Ss(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 K(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=G.findFrom(n,o,!0)||G.findFrom(n,-o,!0);if(i)n=i.$head;else return G.near(n,o)}return e.parent.inlineContent||(r==0?e=n:(e=(G.findFrom(e,-o,!0)||G.findFrom(e,o,!0)).$anchor,e.pos<n.pos!=r<0&&(e=n))),new K(e,n)}}G.jsonID("text",K);class Ss{constructor(e,n){this.anchor=e,this.head=n}map(e){return new Ss(e.map(this.anchor),e.map(this.head))}resolve(e){return K.between(e.resolve(this.anchor),e.resolve(this.head))}}class V extends G{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?G.near(i):new V(i)}content(){return new I(R.from(this.node),0,0)}eq(e){return e instanceof V&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new uc(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new V(e.resolve(n.anchor))}static create(e,n){return new V(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}V.prototype.visible=!1,G.jsonID("node",V);class uc{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:o}=e.mapResult(this.anchor);return n?new Ss(o,o):new uc(o)}resolve(e){let n=e.resolve(this.anchor),o=n.nodeAfter;return o&&V.isSelectable(o)?new V(n):G.near(n)}}class et extends G{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=I.empty){if(n==I.empty){e.delete(0,e.doc.content.size);let o=G.atStart(e.doc);o.eq(e.selection)||e.setSelection(o)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new et(e)}map(e){return new et(e)}eq(e){return e instanceof et}getBookmark(){return y$}}G.jsonID("all",et);const y$={map(){return this},resolve(t){return new et(t)}};function Ao(t,e,n,o,r,i=!1){if(e.inlineContent)return K.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&&V.isSelectable(a))return V.create(t,n-(r<0?a.nodeSize:0))}else{let l=Ao(t,a,n+r,r<0?a.childCount:0,r,i);if(l)return l}n+=a.nodeSize*r}return null}function Ep(t,e,n){let o=t.steps.length-1;if(o<e)return;let r=t.steps[o];if(!(r instanceof ve||r instanceof $e))return;let i=t.mapping.maps[o],s;i.forEach((a,l,c,u)=>{s==null&&(s=u)}),t.setSelection(G.near(t.doc.resolve(s),n))}const Np=1,ks=2,Ap=4;class b$ extends kp{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|Np)&~ks,this.storedMarks=null,this}get selectionSet(){return(this.updated&Np)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=ks,this}ensureMarks(e){return re.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&ks)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~ks,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)||re.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(G.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|=Ap,this}get scrolledIntoView(){return(this.updated&Ap)>0}}function Dp(t,e){return!e||!t?t:t.bind(e)}class Tr{constructor(e,n,o){this.name=e,this.init=Dp(n.init,o),this.apply=Dp(n.apply,o)}}const w$=[new Tr("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Tr("selection",{init(t,e){return t.selection||G.atStart(e.doc)},apply(t){return t.selection}}),new Tr("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,o){return o.selection.$cursor?t.storedMarks:null}}),new Tr("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class dc{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=w$.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 Tr(o.key,o.spec.state,o))})}}class Do{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let o=0;o<this.config.plugins.length;o++)if(o!=n){let r=this.config.plugins[o];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],o=this.applyInner(e),r=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let a=this.config.plugins[s];if(a.spec.appendTransaction){let l=r?r[s].n:0,c=r?r[s].state:this,u=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,c,o);if(u&&o.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!r){r=[];for(let d=0;d<this.config.plugins.length;d++)r.push(d<s?{state:o,n:n.length}:{state:this,n:0})}n.push(u),o=o.applyInner(u),i=!0}r&&(r[s]={state:o,n:n.length})}}if(!i)return{state:o,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Do(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 b$(this)}static create(e){let n=new dc(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new Do(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 dc(this.schema,e.plugins),o=n.fields,r=new Do(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 dc(e.schema,e.plugins),i=new Do(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=nn.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=G.fromJSON(i.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(o)for(let a in o){let l=o[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){i[s.name]=c.fromJSON.call(l,e,n[a],i);return}}i[s.name]=s.init(e,i)}}),i}}function Rp(t,e,n){for(let o in t){let r=t[o];r instanceof Function?r=r.bind(e):o=="handleDOMEvents"&&(r=Rp(r,e,{})),n[o]=r}return n}class _e{constructor(e){this.spec=e,this.props={},e.props&&Rp(e.props,this,this.props),this.key=e.key?e.key.key:Op("plugin")}getState(e){return e[this.key]}}const mc=Object.create(null);function Op(t){return t in mc?t+"$"+ ++mc[t]:(mc[t]=0,t+"$")}class bt{constructor(e="key"){this.key=Op(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Ee=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Ro=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let fc=null;const Ht=function(t,e,n){let o=fc||(fc=document.createRange());return o.setEnd(t,n??t.nodeValue.length),o.setStart(t,e||0),o},v$=function(){fc=null},Kn=function(t,e,n,o){return n&&(Tp(t,e,n,o,-1)||Tp(t,e,n,o,1))},$$=/^(img|br|input|textarea|hr)$/i;function Tp(t,e,n,o,r){for(;;){if(t==n&&e==o)return!0;if(e==(r<0?0:ot(t))){let i=t.parentNode;if(!i||i.nodeType!=1||Mr(t)||$$.test(t.nodeName)||t.contentEditable=="false")return!1;e=Ee(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?ot(t):0}else return!1}}function ot(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function S$(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=ot(t)}else if(t.parentNode&&!Mr(t))e=Ee(t),t=t.parentNode;else return null}}function k$(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=Ee(t)+1,t=t.parentNode;else return null}}function x$(t,e,n){for(let o=e==0,r=e==ot(t);o||r;){if(t==n)return!0;let i=Ee(t);if(t=t.parentNode,!t)return!1;o=o&&i==0,r=r&&i==ot(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 xs=function(t){return t.focusNode&&Kn(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Wn(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function C$(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function E$(t,e,n){if(t.caretPositionFromPoint)try{let o=t.caretPositionFromPoint(e,n);if(o)return{node:o.offsetNode,offset:Math.min(ot(o.offsetNode),o.offset)}}catch{}if(t.caretRangeFromPoint){let o=t.caretRangeFromPoint(e,n);if(o)return{node:o.startContainer,offset:Math.min(ot(o.startContainer),o.startOffset)}}}const Ct=typeof navigator<"u"?navigator:null,Mp=typeof document<"u"?document:null,an=Ct&&Ct.userAgent||"",pc=/Edge\/(\d+)/.exec(an),jp=/MSIE \d/.exec(an),hc=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(an),Ye=!!(jp||hc||pc),ln=jp?document.documentMode:hc?+hc[1]:pc?+pc[1]:0,wt=!Ye&&/gecko\/(\d+)/i.test(an);wt&&+(/Firefox\/(\d+)/.exec(an)||[0,0])[1];const gc=!Ye&&/Chrome\/(\d+)/.exec(an),Te=!!gc,Pp=gc?+gc[1]:0,Be=!Ye&&!!Ct&&/Apple Computer/.test(Ct.vendor),Oo=Be&&(/Mobile\/\w+/.test(an)||!!Ct&&Ct.maxTouchPoints>2),rt=Oo||(Ct?/Mac/.test(Ct.platform):!1),N$=Ct?/Win/.test(Ct.platform):!1,Vt=/Android \d/.test(an),jr=!!Mp&&"webkitFontSmoothing"in Mp.documentElement.style,A$=jr?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function D$(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 Ut(t,e){return typeof t=="number"?t:t[e]}function R$(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 Ip(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;){if(s.nodeType!=1){s=Ro(s);continue}let a=s,l=a==i.body,c=l?D$(i):R$(a),u=0,d=0;if(e.top<c.top+Ut(o,"top")?d=-(c.top-e.top+Ut(r,"top")):e.bottom>c.bottom-Ut(o,"bottom")&&(d=e.bottom-e.top>c.bottom-c.top?e.top+Ut(r,"top")-c.top:e.bottom-c.bottom+Ut(r,"bottom")),e.left<c.left+Ut(o,"left")?u=-(c.left-e.left+Ut(r,"left")):e.right>c.right-Ut(o,"right")&&(u=e.right-c.right+Ut(r,"right")),u||d)if(l)i.defaultView.scrollBy(u,d);else{let f=a.scrollLeft,p=a.scrollTop;d&&(a.scrollTop+=d),u&&(a.scrollLeft+=u);let g=a.scrollLeft-f,h=a.scrollTop-p;e={left:e.left-g,top:e.top-h,right:e.right-g,bottom:e.bottom-h}}let m=l?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(m))break;s=m=="absolute"?s.offsetParent:Ro(s)}}function O$(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:Lp(t.dom)}}function Lp(t){let e=[],n=t.ownerDocument;for(let o=t;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),t!=n);o=Ro(o));return e}function T$({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;zp(n,o==0?0:o-e)}function zp(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 To=null;function M$(t){if(t.setActive)return t.setActive();if(To)return t.focus(To);let e=Lp(t);t.focus(To==null?{get preventScroll(){return To={preventScroll:!0},!0}}:void 0),To||(To=!1,zp(e,0))}function Bp(t,e){let n,o=2e8,r,i=0,s=e.top,a=e.top,l,c;for(let u=t.firstChild,d=0;u;u=u.nextSibling,d++){let m;if(u.nodeType==1)m=u.getClientRects();else if(u.nodeType==3)m=Ht(u).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 g=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(g<o){n=u,o=g,r=g&&n.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,u.nodeType==1&&g&&(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=u,c={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=c,o=0),n&&n.nodeType==3?j$(n,r):!n||o&&n.nodeType==1?{node:t,offset:i}:Bp(n,r)}function j$(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=cn(o,1);if(i.top!=i.bottom&&yc(e,i))return{node:t,offset:r+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function yc(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function P$(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function I$(t,e,n){let{node:o,offset:r}=Bp(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 L$(t,e,n,o){let r=-1;for(let i=e,s=!1;i!=t.dom;){let a=t.docView.nearestDesc(i,!0),l;if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)&&((l=a.dom.getBoundingClientRect()).width||l.height)&&(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 Fp(t,e,n){let o=t.childNodes.length;if(o&&n.top<n.bottom)for(let r=Math.max(0,Math.min(o-1,Math.floor(o*(e.top-n.top)/(n.bottom-n.top))-2)),i=r;;){let s=t.childNodes[i];if(s.nodeType==1){let a=s.getClientRects();for(let l=0;l<a.length;l++){let c=a[l];if(yc(e,c))return Fp(s,e,c)}}if((i=(i+1)%o)==r)break}return t}function z$(t,e){let n=t.dom.ownerDocument,o,r=0,i=E$(n,e.left,e.top);i&&({node:o,offset:r}=i);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),a;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let c=t.dom.getBoundingClientRect();if(!yc(e,c)||(s=Fp(t.dom,e,c),!s))return null}if(Be)for(let c=s;o&&c;c=Ro(c))c.draggable&&(o=void 0);if(s=P$(s,e),o){if(wt&&o.nodeType==1&&(r=Math.min(r,o.childNodes.length),r<o.childNodes.length)){let u=o.childNodes[r],d;u.nodeName=="IMG"&&(d=u.getBoundingClientRect()).right<=e.left&&d.bottom>e.top&&r++}let c;jr&&r&&o.nodeType==1&&(c=o.childNodes[r-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&r--,o==t.dom&&r==o.childNodes.length-1&&o.lastChild.nodeType==1&&e.top>o.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(r==0||o.nodeType!=1||o.childNodes[r-1].nodeName!="BR")&&(a=L$(t,o,r,e))}a==null&&(a=I$(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function Hp(t){return t.top<t.bottom||t.left<t.right}function cn(t,e){let n=t.getClientRects();if(n.length){let o=n[e<0?0:n.length-1];if(Hp(o))return o}return Array.prototype.find.call(n,Hp)||t.getBoundingClientRect()}const B$=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Vp(t,e,n){let{node:o,offset:r,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=jr||wt;if(o.nodeType==3)if(s&&(B$.test(o.nodeValue)||(n<0?!r:r==o.nodeValue.length))){let l=cn(Ht(o,r,r),n);if(wt&&r&&/\s/.test(o.nodeValue[r-1])&&r<o.nodeValue.length){let c=cn(Ht(o,r-1,r-1),-1);if(c.top==l.top){let u=cn(Ht(o,r,r+1),-1);if(u.top!=l.top)return Pr(u,u.left<c.left)}}return l}else{let l=r,c=r,u=n<0?1:-1;return n<0&&!r?(c++,u=-1):n>=0&&r==o.nodeValue.length?(l--,u=1):n<0?l--:c++,Pr(cn(Ht(o,l,c),u),u<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&r&&(n<0||r==ot(o))){let l=o.childNodes[r-1];if(l.nodeType==1)return bc(l.getBoundingClientRect(),!1)}if(i==null&&r<ot(o)){let l=o.childNodes[r];if(l.nodeType==1)return bc(l.getBoundingClientRect(),!0)}return bc(o.getBoundingClientRect(),n>=0)}if(i==null&&r&&(n<0||r==ot(o))){let l=o.childNodes[r-1],c=l.nodeType==3?Ht(l,ot(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return Pr(cn(c,1),!1)}if(i==null&&r<ot(o)){let l=o.childNodes[r];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let c=l?l.nodeType==3?Ht(l,0,s?0:1):l.nodeType==1?l:null:null;if(c)return Pr(cn(c,-1),!0)}return Pr(cn(o.nodeType==3?Ht(o):o,-n),n>=0)}function Pr(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 bc(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 Up(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 F$(t,e,n){let o=e.selection,r=n=="up"?o.$from:o.$to;return Up(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=Vp(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=Ht(a,0,a.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let u=l[c];if(u.bottom>u.top+1&&(n=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const H$=/[\u0590-\u08ac]/;function V$(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?!H$.test(o.parent.textContent)||!a.modify?n=="left"||n=="backward"?i:s:Up(t,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,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:g}=t.domSelectionRange(),h=p&&!f.contains(p.nodeType==1?p:p.parentNode)||l==p&&c==g;try{a.collapse(u,d),l&&(l!=u||c!=d)&&a.extend&&a.extend(l,c)}catch{}return m!=null&&(a.caretBidiLevel=m),h}):o.pos==o.start()||o.pos==o.end()}let _p=null,Yp=null,Jp=!1;function U$(t,e,n){return _p==e&&Yp==n?Jp:(_p=e,Yp=n,Jp=n=="up"||n=="down"?F$(t,e,n):V$(t,e,n))}const it=0,Kp=1,qn=2,Et=3;class Ir{constructor(e,n,o,r){this.parent=e,this.children=n,this.dom=o,this.contentDOM=r,this.dirty=it,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>Ee(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;)for(let s=0;s<r.children.length;s++){let a=r.children[s];if(a.size){r=a;break}}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 Gp){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 Wp&&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?Ee(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?Ee(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,o=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let s=o,a=0;;a++){let l=this.children[a],c=s+l.size;if(r==-1&&e<=c){let u=s+l.border;if(e>=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=s;for(let d=a;d>0;d--){let m=this.children[d-1];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(1)){r=Ee(m.dom)+1;break}e-=m.size}r==-1&&(r=0)}if(r>-1&&(c>n||a==this.children.length-1)){n=c;for(let u=a+1;u<this.children.length;u++){let d=this.children[u];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){i=Ee(d.dom);break}n+=d.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:e,to:n,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:o}=this.domFromPos(e,0);if(n.nodeType!=1||o==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[o]}setSelection(e,n,o,r=!1){let i=Math.min(e,n),s=Math.max(e,n);for(let f=0,p=0;f<this.children.length;f++){let g=this.children[f],h=p+g.size;if(i>p&&s<h)return g.setSelection(e-p-g.border,n-p-g.border,o,r);p=h}let a=this.domFromPos(e,e?-1:1),l=n==e?a:this.domFromPos(n,n?-1:1),c=o.root.getSelection(),u=o.domSelectionRange(),d=!1;if((wt||Be)&&e==n){let{node:f,offset:p}=a;if(f.nodeType==3){if(d=!!(p&&f.nodeValue[p-1]==`
25
+ `),d&&p==f.nodeValue.length)for(let g=f,h;g;g=g.parentNode){if(h=g.nextSibling){h.nodeName=="BR"&&(a=l={node:h.parentNode,offset:Ee(h)+1});break}let y=g.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let g=f.childNodes[p-1];d=g&&(g.nodeName=="BR"||g.contentEditable=="false")}}if(wt&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let f=u.focusNode.childNodes[u.focusOffset];f&&f.contentEditable=="false"&&(r=!0)}if(!(r||d&&Be)&&Kn(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Kn(l.node,l.offset,u.focusNode,u.focusOffset))return;let m=!1;if((c.extend||e==n)&&!d){c.collapse(a.node,a.offset);try{e!=n&&c.extend(l.node,l.offset),m=!0}catch{}}if(!m){if(e>n){let p=a;a=l,l=p}let f=document.createRange();f.setEnd(l.node,l.offset),f.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(f)}}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?qn:Kp,e==a&&n==l&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Et:i.markDirty(e-a,n-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?qn:Et}o=s}this.dirty=qn}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let o=e==1?qn:Kp;n.dirty<o&&(n.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class Wp extends Ir{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==it&&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 _$ extends Ir{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 Gn extends Ir{constructor(e,n,o,r,i){super(e,[],o,r),this.mark=n,this.spec=i}static create(e,n,o,r){let i=r.nodeViews[n.type.name],s=i&&i(n,r,o);return(!s||!s.dom)&&(s=Jn.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new Gn(e,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&Et||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Et&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=it){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=it}}slice(e,n,o){let r=Gn.create(this.parent,this.mark,!0,o),i=this.children,s=this.size;n<s&&(i=vc(i,n,s,o)),e>0&&(i=vc(i,0,e,o));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class un extends Ir{constructor(e,n,o,r,i,s,a,l,c){super(e,[],i,s),this.node=n,this.outerDeco=o,this.innerDeco=r,this.nodeDOM=a}static create(e,n,o,r,i,s){let a=i.nodeViews[n.type.name],l,c=a&&a(n,i,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},o,r),u=c&&c.dom,d=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=Jn.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let m=u;return u=Xp(u,o,n),c?l=new Y$(e,n,o,r,u,d||null,m,c,i,s+1):n.isText?new Cs(e,n,o,r,u,m,i):new un(e,n,o,r,u,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=()=>R.empty)}return e}matchesNode(e,n,o){return this.dirty==it&&e.eq(this.node)&&Es(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 K$(this,s&&s.node,e);G$(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,o,e):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?re.none:this.node.child(u).marks,o,e),l.placeWidget(c,e,r)},(c,u,d,m)=>{l.syncToMarks(c.marks,o,e);let f;l.findNodeMatch(c,u,d,m)||a&&e.state.selection.from>r&&e.state.selection.to<r+c.nodeSize&&(f=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(c,u,d,f,e)||l.updateNextNode(c,u,d,e,m,r)||l.addNode(c,u,d,e,r),r+=c.nodeSize}),l.syncToMarks([],o,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==qn)&&(s&&this.protectLocalComposition(e,s),Qp(this.contentDOM,this.children,e),Oo&&Q$(this.dom))}localCompositionInfo(e,n){let{from:o,to:r}=e.state.selection;if(!(e.state.selection instanceof K)||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=Z$(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 _$(this,i,n,r);e.input.compositionNodes.push(s),this.children=vc(this.children,o,o+r.length,e,s)}update(e,n,o,r){return this.dirty==Et||!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=it}updateOuterDeco(e){if(Es(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=Zp(this.dom,this.nodeDOM,wc(this.outerDeco,this.node,n),wc(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 qp(t,e,n,o,r){Xp(o,e,t);let i=new un(void 0,t,e,n,o,o,o,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class Cs extends un{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==Et||this.dirty!=it&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=it||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=it,!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 Cs(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=Et)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Gp extends Ir{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==it&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Y$ extends un{constructor(e,n,o,r,i,s,a,l,c,u){super(e,n,o,r,i,s,a,c,u),this.spec=l}update(e,n,o,r){if(this.dirty==Et)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){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.root):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 Qp(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=eh(o),r=!0;o=o.nextSibling}else r=!0,t.insertBefore(a,o);if(s instanceof Gn){let l=o?o.previousSibling:t.lastChild;Qp(s.contentDOM,s.children,n),o=l?l.nextSibling:t.firstChild}}for(;o;)o=eh(o),r=!0;r&&n.trackWrites==t&&(n.trackWrites=null)}const Lr=function(t){t&&(this.nodeName=t)};Lr.prototype=Object.create(null);const Qn=[new Lr];function wc(t,e,n){if(t.length==0)return Qn;let o=n?Qn[0]:new Lr,r=[o];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&r.push(o=new Lr(s.nodeName));for(let a in s){let l=s[a];l!=null&&(n&&r.length==1&&r.push(o=new Lr(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 Zp(t,e,n,o){if(n==Qn&&o==Qn)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=Qn[0]),r=l}J$(r,a||Qn[0],s)}return r}function J$(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 Xp(t,e,n){return Zp(t,t,Qn,wc(e,n,t.nodeType!=1))}function Es(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 eh(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class K${constructor(e,n,o){this.lock=n,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=W$(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=it,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let a=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let c=this.top.children[l];if(c.matchesMark(e[i])&&!this.isLocked(c.dom)){a=l;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=Gn.create(this.top,e[i],n,o);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,i++}}findNodeMatch(e,n,o,r){let i=-1,s;if(r>=this.preMatch.index&&(s=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,o))i=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a<l;a++){let c=this.top.children[a];if(c.matchesNode(e,n,o)&&!this.preMatch.matched.has(c)){i=a;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,n,o,r,i){let s=this.top.children[r];return s.dirty==Et&&s.dom==s.contentDOM&&(s.dirty=qn),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 un){let c=this.preMatch.matched.get(l);if(c!=null&&c!=i)return!1;let u=l.dom,d,m=this.isLocked(u)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=Et&&Es(n,l.outerDeco));if(!m&&l.update(e,n,o,r))return this.destroyBetween(this.index,a),l.dom!=u&&(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=qn,d.updateChildren(r,s+1),d.dirty=it),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)||!Es(o,e.outerDeco)||!r.eq(e.innerDeco))return null;let a=un.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=un.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 Wp(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 Gn;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof Cs)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Be||Te)&&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 Gp(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 W$(t,e){let n=e,o=n.children.length,r=t.childCount,i=new Map,s=[];e:for(;r>0;){let a;for(;;)if(o){let c=n.children[o-1];if(c instanceof Gn)n=c,o=c.children.length;else{a=c,o--;break}}else{if(n==e)break e;o=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=t.child(r-1))break;--r,i.set(a,r),s.push(a)}}return{index:r,matched:i,matches:s.reverse()}}function q$(t,e){return t.type.side-e.type.side}function G$(t,e,n,o){let r=e.locals(t),i=0;if(r.length==0){for(let c=0;c<t.childCount;c++){let u=t.child(c);o(u,r,e.forChild(i,u),c),i+=u.nodeSize}return}let s=0,a=[],l=null;for(let c=0;;){let u,d;for(;s<r.length&&r[s].to==i;){let h=r[s++];h.widget&&(u?(d||(d=[u])).push(h):u=h)}if(u)if(d){d.sort(q$);for(let h=0;h<d.length;h++)n(d[h],c,!!l)}else n(u,c,!!l);let m,f;if(l)f=-1,m=l,l=null;else if(c<t.childCount)f=c,m=t.child(c++);else break;for(let h=0;h<a.length;h++)a[h].to<=i&&a.splice(h--,1);for(;s<r.length&&r[s].from<=i&&r[s].to>i;)a.push(r[s++]);let p=i+m.nodeSize;if(m.isText){let h=p;s<r.length&&r[s].from<h&&(h=r[s].from);for(let y=0;y<a.length;y++)a[y].to<h&&(h=a[y].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 g=m.isInline&&!m.isLeaf?a.filter(h=>!h.inline):a.slice();o(m,g,e.forChild(i,m),f),i=p}}function Q$(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 Z$(t,e,n,o){for(let r=0,i=0;r<t.childCount&&i<=o;){let s=t.child(r++),a=i;if(i+=s.nodeSize,!s.isText)continue;let l=s.text;for(;r<t.childCount;){let c=t.child(r++);if(i+=c.nodeSize,!c.isText)break;l+=c.text}if(i>=n){if(i>=o&&l.slice(o-e.length-a,o-a)==e)return o-e.length;let c=a<o?l.lastIndexOf(e,o-a-1):-1;if(c>=0&&c+e.length+a>=n)return a+c;if(n==o&&l.length>=o+e.length-a&&l.slice(o-a,o-a+e.length)==e)return o}}return-1}function vc(t,e,n,o,r){let i=[];for(let s=0,a=0;s<t.length;s++){let l=t[s],c=a,u=a+=l.size;c>=n||u<=e?i.push(l):(c<e&&i.push(l.slice(0,e-c,o)),r&&(i.push(r),r=void 0),u>n&&i.push(l.slice(n-c,l.size,o)))}return i}function $c(t,e=null){let n=t.domSelectionRange(),o=t.state.doc;if(!n.focusNode)return null;let r=t.docView.nearestDesc(n.focusNode),i=r&&r.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let a=o.resolve(s),l,c;if(xs(n)){for(l=s;r&&!r.node;)r=r.parent;let d=r.node;if(r&&d.isAtom&&V.isSelectable(d)&&r.parent&&!(d.isInline&&x$(n.focusNode,n.focusOffset,r.dom))){let m=r.posBefore;c=new V(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 u=o.resolve(l);if(!c){let d=e=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;c=kc(t,u,a,d)}return c}function th(t){return t.editable?t.hasFocus():lh(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function _t(t,e=!1){let n=t.state.selection;if(ih(t,n),!!th(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&Te){let o=t.domSelectionRange(),r=t.domObserver.currentSelection;if(o.anchorNode&&r.anchorNode&&Kn(o.anchorNode,o.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)e1(t);else{let{anchor:o,head:r}=n,i,s;nh&&!(n instanceof K)&&(n.$from.parent.inlineContent||(i=oh(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=oh(t,n.to))),t.docView.setSelection(o,r,t,e),nh&&(i&&rh(i),s&&rh(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&X$(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const nh=Be||Te&&Pp<63;function oh(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(Be&&r&&r.contentEditable=="false")return Sc(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return Sc(r);if(i)return Sc(i)}}function Sc(t){return t.contentEditable="true",Be&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function rh(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function X$(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(()=>{(!th(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function e1(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,Ee(o)+1):n.setStart(o,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!r&&!t.state.selection.visible&&Ye&&ln<=11&&(o.disabled=!0,o.disabled=!1)}function ih(t,e){if(e instanceof V){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(sh(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else sh(t)}function sh(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function kc(t,e,n,o){return t.someProp("createSelectionBetween",r=>r(t,e,n))||K.between(e,n,o)}function ah(t){return t.editable&&!t.hasFocus()?!1:lh(t)}function lh(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 t1(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return Kn(e.node,e.offset,n.anchorNode,n.anchorOffset)}function xc(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&&G.findFrom(i,e)}function dn(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function ch(t,e,n){let o=t.state.selection;if(o instanceof K)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 dn(t,new K(o.$anchor,s))}else if(o.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=xc(t.state,e);return r&&r instanceof V?dn(t,r):!1}else if(!(rt&&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?V.isSelectable(i)?dn(t,new V(e<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):jr?dn(t,new K(t.state.doc.resolve(e<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(o instanceof V&&o.node.isInline)return dn(t,new K(e>0?o.$to:o.$from));{let r=xc(t.state,e);return r?dn(t,r):!1}}}function Ns(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function zr(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Mo(t,e){return e<0?n1(t):o1(t)}function n1(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r,i,s=!1;for(wt&&n.nodeType==1&&o<Ns(n)&&zr(n.childNodes[o],-1)&&(s=!0);;)if(o>0){if(n.nodeType!=1)break;{let a=n.childNodes[o-1];if(zr(a,-1))r=n,i=--o;else if(a.nodeType==3)n=a,o=n.nodeValue.length;else break}}else{if(uh(n))break;{let a=n.previousSibling;for(;a&&zr(a,-1);)r=n.parentNode,i=Ee(a),a=a.previousSibling;if(a)n=a,o=Ns(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}s?Cc(t,n,o):r&&Cc(t,r,i)}function o1(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r=Ns(n),i,s;for(;;)if(o<r){if(n.nodeType!=1)break;let a=n.childNodes[o];if(zr(a,1))i=n,s=++o;else break}else{if(uh(n))break;{let a=n.nextSibling;for(;a&&zr(a,1);)i=a.parentNode,s=Ee(a)+1,a=a.nextSibling;if(a)n=a,o=0,r=Ns(n);else{if(n=n.parentNode,n==t.dom)break;o=r=0}}}i&&Cc(t,i,s)}function uh(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function r1(t,e){for(;t&&e==t.childNodes.length&&!Mr(t);)e=Ee(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 i1(t,e){for(;t&&!e&&!Mr(t);)e=Ee(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 Cc(t,e,n){if(e.nodeType!=3){let i,s;(s=r1(e,n))?(e=s,n=0):(i=i1(e,n))&&(e=i,n=i.nodeValue.length)}let o=t.domSelection();if(!o)return;if(xs(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&&_t(t)},50)}function dh(t,e){let n=t.state.doc.resolve(e);if(!(Te||N$)&&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 mh(t,e,n){let o=t.state.selection;if(o instanceof K&&!o.empty||n.indexOf("s")>-1||rt&&n.indexOf("m")>-1)return!1;let{$from:r,$to:i}=o;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=xc(t.state,e);if(s&&s instanceof V)return dn(t,s)}if(!r.parent.inlineContent){let s=e<0?r:i,a=o instanceof et?G.near(s,e):G.findFrom(s,e);return a?dn(t,a):!1}return!1}function fh(t,e){if(!(t.state.selection instanceof K))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 ph(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function s1(t){if(!Be||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;ph(t,o,"true"),setTimeout(()=>ph(t,o,"false"),20)}return!1}function a1(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function l1(t,e){let n=e.keyCode,o=a1(e);if(n==8||rt&&n==72&&o=="c")return fh(t,-1)||Mo(t,-1);if(n==46&&!e.shiftKey||rt&&n==68&&o=="c")return fh(t,1)||Mo(t,1);if(n==13||n==27)return!0;if(n==37||rt&&n==66&&o=="c"){let r=n==37?dh(t,t.state.selection.from)=="ltr"?-1:1:-1;return ch(t,r,o)||Mo(t,r)}else if(n==39||rt&&n==70&&o=="c"){let r=n==39?dh(t,t.state.selection.from)=="ltr"?1:-1:1;return ch(t,r,o)||Mo(t,r)}else{if(n==38||rt&&n==80&&o=="c")return mh(t,-1,o)||Mo(t,-1);if(n==40||rt&&n==78&&o=="c")return s1(t)||mh(t,1,o)||Mo(t,1);if(o==(rt?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Ec(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")||Jn.fromSchema(t.state.schema),a=Sh(),l=a.createElement("div");l.appendChild(s.serializeFragment(o,{document:a}));let c=l.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=vh[c.nodeName.toLowerCase()]);){for(let f=u.length-1;f>=0;f--){let p=a.createElement(u[f]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),d++}c=l.firstChild}c&&c.nodeType==1&&c.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,`
26
+
27
+ `);return{dom:l,text:m,slice:e}}function hh(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 I(R.from(t.state.schema.text(e.replace(/\r\n?/g,`
28
+ `))),0,0):I.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=Jn.fromSchema(f);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let h=s.appendChild(document.createElement("p"));g&&h.appendChild(p.serializeNode(f.text(g,m)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),s=m1(n),jr&&f1(s);let c=s&&s.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[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")||Er.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||u),context:r,ruleFromNode(m){return m.nodeName=="BR"&&!m.nextSibling&&m.parentNode&&!c1.test(m.parentNode.nodeName)?{ignore:!0}:null}})),u)a=p1(wh(a,+u[1],+u[2]),u[4]);else if(a=I.maxOpen(u1(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=wh(a,d,m)}return t.someProp("transformPasted",d=>{a=d(a,t)}),a}const c1=/^(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 u1(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(a=>{if(!s)return;let l=r.findWrapping(a.type),c;if(!l)return s=null;if(c=s.length&&i.length&&yh(l,i,a,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=bh(s[s.length-1],i.length));let u=gh(a,l);s.push(u),r=r.matchType(u.type),i=l}}),s)return R.from(s)}return t}function gh(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,R.from(t));return t}function yh(t,e,n,o,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let i=yh(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(R.from(gh(n,t,r+1))))}}function bh(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,bh(t.lastChild,e-1)),o=t.contentMatchAt(t.childCount).fillBefore(R.empty,!0);return t.copy(n.append(o))}function Nc(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=Nc(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(R.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(a))}function wh(t,e,n){return e<t.openStart&&(t=new I(Nc(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new I(Nc(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const vh={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 $h=null;function Sh(){return $h||($h=document.implementation.createHTMLDocument("title"))}let Ac=null;function d1(t){let e=window.trustedTypes;return e?(Ac||(Ac=e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Ac.createHTML(t)):t}function m1(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=Sh().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(t),r;if((r=o&&vh[o[1].toLowerCase()])&&(t=r.map(i=>"<"+i+">").join("")+t+r.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=d1(t),r)for(let i=0;i<r.length;i++)n=n.querySelector(r[i])||n;return n}function f1(t){let e=t.querySelectorAll(Te?"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 p1(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=R.from(l.create(o[a+1],r)),i++,s++}return new I(r,i,s)}const Fe={},He={},h1={touchstart:!0,touchmove:!0};class g1{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.lastChromeDelete=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 y1(t){for(let e in Fe){let n=Fe[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=o=>{w1(t,o)&&!Rc(t,o)&&(t.editable||!(o.type in He))&&n(t,o)},h1[e]?{passive:!0}:void 0)}Be&&t.dom.addEventListener("input",()=>null),Dc(t)}function mn(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function b1(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 Dc(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=o=>Rc(t,o))})}function Rc(t,e){return t.someProp("handleDOMEvents",n=>{let o=n[e.type];return o?o(t,e)||e.defaultPrevented:!1})}function w1(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 v1(t,e){!Rc(t,e)&&Fe[e.type]&&(t.editable||!(e.type in He))&&Fe[e.type](t,e)}He.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!xh(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Vt&&Te&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),Oo&&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,Wn(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",o=>o(t,n))||l1(t,n)?n.preventDefault():mn(t,"key")},He.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},He.keypress=(t,e)=>{let n=e;if(xh(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||rt&&n.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,n))){n.preventDefault();return}let o=t.state.selection;if(!(o instanceof K)||!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 As(t){return{left:t.clientX,top:t.clientY}}function $1(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}function Oc(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 jo(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let o=t.state.tr.setSelection(e);o.setMeta("pointer",!0),t.dispatch(o)}function S1(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),o=n.nodeAfter;return o&&o.isAtom&&V.isSelectable(o)?(jo(t,new V(n)),!0):!1}function k1(t,e){if(e==-1)return!1;let n=t.state.selection,o,r;n instanceof V&&(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(V.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?(jo(t,V.create(t.state.doc,r)),!0):!1}function x1(t,e,n,o,r){return Oc(t,"handleClickOn",e,n,o)||t.someProp("handleClick",i=>i(t,e,o))||(r?k1(t,n):S1(t,n))}function C1(t,e,n,o){return Oc(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",r=>r(t,e,o))}function E1(t,e,n,o){return Oc(t,"handleTripleClickOn",e,n,o)||t.someProp("handleTripleClick",r=>r(t,e,o))||N1(t,n,o)}function N1(t,e,n){if(n.button!=0)return!1;let o=t.state.doc;if(e==-1)return o.inlineContent?(jo(t,K.create(o,0,o.content.size)),!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)jo(t,K.create(o,a+1,a+1+s.content.size));else if(V.isSelectable(s))jo(t,V.create(o,a));else continue;return!0}}function Tc(t){return Ds(t)}const kh=rt?"metaKey":"ctrlKey";Fe.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=Tc(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&$1(n,t.input.lastClick)&&!n[kh]&&(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(As(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new A1(t,s,n,!!o)):(i=="doubleClick"?C1:E1)(t,s.pos,s.inside,n)?n.preventDefault():mn(t,"pointer"))};class A1{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[kh],this.allowDefault=o.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let u=e.state.doc.resolve(n.pos);i=u.parent,s=u.depth?u.before():0}const a=r?null:o.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:c}=e.state;(o.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof V&&c.from<=s&&c.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&wt&&!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)),mn(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(()=>_t(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(As(e))),this.updateAllowDefault(e),this.allowDefault||!n?mn(this.view,"pointer"):x1(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Be&&this.mightDrag&&!this.mightDrag.node.isAtom||Te&&!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)?(jo(this.view,G.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):mn(this.view,"pointer")}move(e){this.updateAllowDefault(e),mn(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)}}Fe.touchstart=t=>{t.input.lastTouch=Date.now(),Tc(t),mn(t,"pointer")},Fe.touchmove=t=>{t.input.lastTouch=Date.now(),mn(t,"pointer")},Fe.contextmenu=t=>Tc(t);function xh(t,e){return t.composing?!0:Be&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const D1=Vt?5e3:-1;He.compositionstart=He.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof K&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),Ds(t,!0),t.markCursor=null;else if(Ds(t,!e.selection.empty),wt&&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}Ch(t,D1)},He.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++,Ch(t,20))};function Ch(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Ds(t),e))}function Eh(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=O1());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function R1(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=S$(e.focusNode,e.focusOffset),o=k$(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 O1(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Ds(t,e=!1){if(!(Vt&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Eh(t),e||t.docView&&t.docView.dirty){let n=$c(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 T1(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 Br=Ye&&ln<15||Oo&&A$<604;Fe.copy=He.cut=(t,e)=>{let n=e,o=t.state.selection,r=n.type=="cut";if(o.empty)return;let i=Br?null:n.clipboardData,s=o.content(),{dom:a,text:l}=Ec(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",l)):T1(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function M1(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function j1(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?Fr(t,o.value,null,r,e):Fr(t,o.textContent,o.innerHTML,r,e)},50)}function Fr(t,e,n,o,r){let i=hh(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,r,i||I.empty)))return!0;if(!i)return!1;let s=M1(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 Nh(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," "):""}He.paste=(t,e)=>{let n=e;if(t.composing&&!Vt)return;let o=Br?null:n.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;o&&Fr(t,Nh(o),o.getData("text/html"),r,n)?n.preventDefault():j1(t,n)};class Ah{constructor(e,n,o){this.slice=e,this.move=n,this.node=o}}const P1=rt?"altKey":"ctrlKey";function Dh(t,e){let n=t.someProp("dragCopies",o=>!o(e));return n??!e[P1]}Fe.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(As(n)),s;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof V?r.to-1:r.to))){if(o&&o.mightDrag)s=V.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=V.create(t.state.doc,d.posBefore))}}let a=(s||t.state.selection).content(),{dom:l,text:c,slice:u}=Ec(t,a);(!n.dataTransfer.files.length||!Te||Pp>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Br?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Br||n.dataTransfer.setData("text/plain",c),t.dragging=new Ah(u,Dh(t,n),s)},Fe.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},He.dragover=He.dragenter=(t,e)=>e.preventDefault(),He.drop=(t,e)=>{let n=e,o=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let r=t.posAtCoords(As(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=hh(t,Nh(n.dataTransfer),Br?null:n.dataTransfer.getData("text/html"),!1,i);let a=!!(o&&Dh(t,n));if(t.someProp("handleDrop",p=>p(t,n,s||I.empty,a))){n.preventDefault();return}if(!s)return;n.preventDefault();let l=s?c$(t.state.doc,i.pos,s):i.pos;l==null&&(l=i.pos);let c=t.state.tr;if(a){let{node:p}=o;p?p.replace(c):c.deleteSelection()}let u=c.mapping.map(l),d=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,m=c.doc;if(d?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(m))return;let f=c.doc.resolve(u);if(d&&V.isSelectable(s.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new V(f));else{let p=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((g,h,y,w)=>p=w),c.setSelection(kc(t,f,c.doc.resolve(p)))}t.focus(),t.dispatch(c.setMeta("uiEvent","drop"))},Fe.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())&&_t(t)},20))},Fe.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)},Fe.beforeinput=(t,e)=>{if(Te&&Vt&&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,Wn(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 He)Fe[t]=He[t];function Hr(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 Rs{constructor(e,n){this.toDOM=e,this.spec=n||Zn,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 st(i-o,i-o,this)}valid(){return!0}eq(e){return this==e||e instanceof Rs&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Hr(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class fn{constructor(e,n){this.attrs=e,this.spec=n||Zn}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 st(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof fn&&Hr(this.attrs,e.attrs)&&Hr(this.spec,e.spec)}static is(e){return e.type instanceof fn}destroy(){}}class Mc{constructor(e,n){this.attrs=e,this.spec=n||Zn}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 st(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 Mc&&Hr(this.attrs,e.attrs)&&Hr(this.spec,e.spec)}destroy(){}}class st{constructor(e,n,o){this.from=e,this.to=n,this.type=o}copy(e,n){return new st(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 st(e,e,new Rs(n,o))}static inline(e,n,o,r){return new st(e,n,new fn(o,r))}static node(e,n,o,r){return new st(e,n,new Mc(o,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof fn}get widget(){return this.type instanceof Rs}}const Po=[],Zn={};class be{constructor(e,n){this.local=e.length?e:Po,this.children=n.length?n:Po}static create(e,n){return n.length?Os(n,e,0,Zn):Me}find(e,n,o){let r=[];return this.findInner(e??0,n??1e9,r,0,o),r}findInner(e,n,o,r,i){for(let s=0;s<this.local.length;s++){let a=this.local[s];a.from<=n&&a.to>=e&&(!i||i(a.spec))&&o.push(a.copy(a.from+r,a.to+r))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let a=this.children[s]+1;this.children[s+2].findInner(e-a,n-a,o,r+a,i)}}map(e,n,o){return this==Me||e.maps.length==0?this:this.mapInner(e,n,0,0,o||Zn)}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?I1(this.children,s||[],e,n,o,r,i):s?new be(s.sort(Xn),Po):Me}add(e,n){return n.length?this==Me?be.create(e,n):this.addInner(e,n,0):this}addInner(e,n,o){let r,i=0;e.forEach((a,l)=>{let c=l+o,u;if(u=Oh(n,a,c)){for(r||(r=this.children.slice());i<r.length&&r[i]<l;)i+=3;r[i]==l?r[i+2]=r[i+2].addInner(a,u,c+1):r.splice(i,0,l,l+a.nodeSize,Os(u,a,c+1,Zn)),i+=3}});let s=Rh(i?Th(n):n,-o);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new be(s.length?this.local.concat(s).sort(Xn):this.local,r||this.children)}remove(e){return e.length==0||this==Me?this:this.removeInner(e,0)}removeInner(e,n){let o=this.children,r=this.local;for(let i=0;i<o.length;i+=3){let s,a=o[i]+n,l=o[i+1]+n;for(let u=0,d;u<e.length;u++)(d=e[u])&&d.from>a&&d.to<l&&(e[u]=null,(s||(s=[])).push(d));if(!s)continue;o==this.children&&(o=this.children.slice());let c=o[i+2].removeInner(s,a+1);c!=Me?o[i+2]=c:(o.splice(i,3),i-=3)}if(r.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let a=0;a<r.length;a++)r[a].eq(s,n)&&(r==this.local&&(r=this.local.slice()),r.splice(a--,1))}return o==this.children&&r==this.local?this:r.length||o.length?new be(r,o):Me}forChild(e,n){if(this==Me)return this;if(n.isLeaf)return be.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 fn){let c=Math.max(i,l.from)-i,u=Math.min(s,l.to)-i;c<u&&(r||(r=[])).push(l.copy(c,u))}}if(r){let a=new be(r.sort(Xn),Po);return o?new pn([a,o]):a}return o||Me}eq(e){if(this==e)return!0;if(!(e instanceof be)||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 jc(this.localsInner(e))}localsInner(e){if(this==Me)return Po;if(e.inlineContent||!this.local.some(fn.is))return this.local;let n=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof fn||n.push(this.local[o]);return n}forEachSet(e){e(this)}}be.empty=new be([],[]),be.removeOverlap=jc;const Me=be.empty;class pn{constructor(e){this.members=e}map(e,n){const o=this.members.map(r=>r.map(e,n,Zn));return pn.from(o)}forChild(e,n){if(n.isLeaf)return be.empty;let o=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,n);i!=Me&&(i instanceof pn?o=o.concat(i.members):o.push(i))}return pn.from(o)}eq(e){if(!(e instanceof pn)||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?jc(o?n:n.sort(Xn)):Po}static from(e){switch(e.length){case 0:return Me;case 1:return e[0];default:return new pn(e.every(n=>n instanceof be)?e:e.reduce((n,o)=>n.concat(o instanceof be?o:o.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function I1(t,e,n,o,r,i,s){let a=t.slice();for(let c=0,u=i;c<n.maps.length;c++){let d=0;n.maps[c].forEach((m,f,p,g)=>{let h=g-p-(f-m);for(let y=0;y<a.length;y+=3){let w=a[y+1];if(w<0||m>w+u-d)continue;let v=a[y]+u-d;f>=v?a[y+1]=m<=v?-2:-1:m>=u&&h&&(a[y]+=h,a[y+1]+=h)}d+=h}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<a.length;c+=3)if(a[c+1]<0){if(a[c+1]==-2){l=!0,a[c+1]=-1;continue}let u=n.map(t[c]+i),d=u-r;if(d<0||d>=o.content.size){l=!0;continue}let m=n.map(t[c+1]+i,-1),f=m-r,{index:p,offset:g}=o.content.findIndex(d),h=o.maybeChild(p);if(h&&g==d&&g+h.nodeSize==f){let y=a[c+2].mapInner(n,h,u+1,t[c]+i+1,s);y!=Me?(a[c]=d,a[c+1]=f,a[c+2]=y):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=L1(a,t,e,n,r,i,s),u=Os(c,o,0,s);e=u.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<u.children.length;d+=3){let f=u.children[d];for(;m<a.length&&a[m]<f;)m+=3;a.splice(m,0,u.children[d],u.children[d+1],u.children[d+2])}}return new be(e.sort(Xn),a)}function Rh(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 st(r.from+e,r.to+e,r.type))}return n}function L1(t,e,n,o,r,i,s){function a(l,c){for(let u=0;u<l.local.length;u++){let d=l.local[u].map(o,r,c);d?n.push(d):s.onRemove&&s.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)a(l.children[u+2],l.children[u]+c+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&a(t[l+2],e[l]+i+1);return n}function Oh(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 Th(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function Os(t,e,n,o){let r=[],i=!1;e.forEach((a,l)=>{let c=Oh(t,a,l+n);if(c){i=!0;let u=Os(c,a,n+l+1,o);u!=Me&&r.push(l,l+a.nodeSize,u)}});let s=Rh(i?Th(t):t,-n).sort(Xn);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 be(s,r):Me}function Xn(t,e){return t.from-e.from||t.to-e.to}function jc(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),Mh(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),Mh(e,r,o.copy(i.from,o.to)));break}}}return e}function Mh(t,e,n){for(;e<t.length&&Xn(n,t[e])>0;)e++;t.splice(e,0,n)}function Pc(t){let e=[];return t.someProp("decorations",n=>{let o=n(t.state);o&&o!=Me&&e.push(o)}),t.cursorWrapper&&e.push(be.create(t.state.doc,[t.cursorWrapper.deco])),pn.from(e)}const z1={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},B1=Ye&&ln<=11;class F1{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 H1{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new F1,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]);Ye&&ln<=11&&o.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),B1&&(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,z1)),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(ah(this.view)){if(this.suppressingSelectionUpdates)return _t(this.view);if(Ye&&ln<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Kn(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=Ro(i))n.add(i);for(let i=e.anchorNode;i;i=Ro(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}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.suppressingSelectionUpdates&&!this.currentSelection.eq(o)&&ah(e)&&!this.ignoreSelectionChange(o),i=-1,s=-1,a=!1,l=[];if(e.editable)for(let u=0;u<n.length;u++){let d=this.registerMutation(n[u],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(wt&&l.length){let u=l.filter(d=>d.nodeName=="BR");if(u.length==2){let[d,m]=u;d.parentNode&&d.parentNode.parentNode==m.parentNode?m.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let m of u){let f=m.parentNode;f&&f.nodeName=="LI"&&(!d||_1(e,d)!=f)&&m.remove()}}}let c=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&xs(o)&&(c=$c(e))&&c.eq(G.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,_t(e),this.currentSelection.set(o),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,s),V1(e)),this.handleDOMChange(i,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||_t(e),this.currentSelection.set(o))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let o=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(o==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!o||o.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let d=e.addedNodes[u];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(Ye&&ln<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:d,nextSibling:m}=e.addedNodes[u];(!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?Ee(r)+1:0,a=o.localPosFromDOM(e.target,s,-1),l=i&&i.parentNode==e.target?Ee(i):e.target.childNodes.length,c=o.localPosFromDOM(e.target,l,1);return{from:a,to:c}}else return e.type=="attributes"?{from:o.posAtStart-o.border,to:o.posAtEnd+o.border}:(this.lastChangedTextNode=e.target,{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let jh=new WeakMap,Ph=!1;function V1(t){if(!jh.has(t)&&(jh.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=wt,Ph)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."),Ph=!0}}function Ih(t,e){let n=e.startContainer,o=e.startOffset,r=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return Kn(s.node,s.offset,r,i)&&([n,o,r,i]=[r,i,n,o]),{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:i}}function U1(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return Ih(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?Ih(t,n):null}function _1(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 Y1(t,e,n){let{node:o,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(e,n),l=t.domSelectionRange(),c,u=l.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],xs(l)||c.push({node:l.focusNode,offset:l.focusOffset})),Te&&t.input.lastKeyCode===8)for(let h=i;h>r;h--){let y=o.childNodes[h-1],w=y.pmViewDesc;if(y.nodeName=="BR"&&!w){i=h;break}if(!w||w.size)break}let d=t.state.doc,m=t.someProp("domParser")||Er.fromSchema(t.state.schema),f=d.resolve(s),p=null,g=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:c,ruleFromNode:J1,context:f});if(c&&c[0].pos!=null){let h=c[0].pos,y=c[1]&&c[1].pos;y==null&&(y=h),p={anchor:h+s,head:y+s}}return{doc:g,sel:p,from:s,to:a}}function J1(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Be&&/^(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||Be&&/^(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 K1=/^(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 W1(t,e,n,o,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let N=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,F=$c(t,N);if(F&&!t.state.selection.eq(F)){if(Te&&Vt&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",ee=>ee(t,Wn(13,"Enter"))))return;let ne=t.state.tr.setSelection(F);N=="pointer"?ne.setMeta("pointer",!0):N=="key"&&ne.scrollIntoView(),i&&ne.setMeta("composition",i),t.dispatch(ne)}return}let s=t.state.doc.resolve(e),a=s.sharedDepth(n);e=s.before(a+1),n=t.state.doc.resolve(n).after(a+1);let l=t.state.selection,c=Y1(t,e,n),u=t.state.doc,d=u.slice(c.from,c.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=Q1(d.content,c.doc.content,c.from,m,f);if(p&&t.input.domChangeCount++,(Oo&&t.input.lastIOSEnter>Date.now()-225||Vt)&&r.some(N=>N.nodeType==1&&!K1.test(N.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",N=>N(t,Wn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(o&&l instanceof K&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let N=Lh(t,t.state.doc,c.sel);if(N&&!N.eq(t.state.selection)){let F=t.state.tr.setSelection(N);i&&F.setMeta("composition",i),t.dispatch(F)}}return}t.state.selection.from<t.state.selection.to&&p.start==p.endB&&t.state.selection instanceof K&&(p.start>t.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?p.start=t.state.selection.from:p.endA<t.state.selection.to&&p.endA>=t.state.selection.to-2&&t.state.selection.to<=c.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),Ye&&ln<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>c.from&&c.doc.textBetween(p.start-c.from-1,p.start-c.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let g=c.doc.resolveNoCache(p.start-c.from),h=c.doc.resolveNoCache(p.endB-c.from),y=u.resolve(p.start),w=g.sameParent(h)&&g.parent.inlineContent&&y.end()>=p.endA,v;if((Oo&&t.input.lastIOSEnter>Date.now()-225&&(!w||r.some(N=>N.nodeName=="DIV"||N.nodeName=="P"))||!w&&g.pos<c.doc.content.size&&(!g.sameParent(h)||!g.parent.inlineContent)&&(v=G.findFrom(c.doc.resolve(g.pos+1),1,!0))&&v.head>g.pos)&&t.someProp("handleKeyDown",N=>N(t,Wn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&G1(u,p.start,p.endA,g,h)&&t.someProp("handleKeyDown",N=>N(t,Wn(8,"Backspace")))){Vt&&Te&&t.domObserver.suppressSelectionUpdates();return}Te&&p.endB==p.start&&(t.input.lastChromeDelete=Date.now()),Vt&&!w&&g.start()!=h.start()&&h.parentOffset==0&&g.depth==h.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==p.endA&&(p.endB-=2,h=c.doc.resolveNoCache(p.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(N){return N(t,Wn(13,"Enter"))})},20));let $=p.start,x=p.endA,S,C,D;if(w){if(g.pos==h.pos)Ye&&ln<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>_t(t),20)),S=t.state.tr.delete($,x),C=u.resolve(p.start).marksAcross(u.resolve(p.endA));else if(p.endA==p.endB&&(D=q1(g.parent.content.cut(g.parentOffset,h.parentOffset),y.parent.content.cut(y.parentOffset,p.endA-y.start()))))S=t.state.tr,D.type=="add"?S.addMark($,x,D.mark):S.removeMark($,x,D.mark);else if(g.parent.child(g.index()).isText&&g.index()==h.index()-(h.textOffset?0:1)){let N=g.parent.textBetween(g.parentOffset,h.parentOffset);if(t.someProp("handleTextInput",F=>F(t,$,x,N)))return;S=t.state.tr.insertText(N,$,x)}}if(S||(S=t.state.tr.replace($,x,c.doc.slice(p.start-c.from,p.endB-c.from))),c.sel){let N=Lh(t,S.doc,c.sel);N&&!(Te&&t.composing&&N.empty&&(p.start!=p.endB||t.input.lastChromeDelete<Date.now()-100)&&(N.head==$||N.head==S.mapping.map(x)-1)||Ye&&N.empty&&N.head==$)&&S.setSelection(N)}C&&S.ensureMarks(C),i&&S.setMeta("composition",i),t.dispatch(S.scrollIntoView())}function Lh(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:kc(t,e.resolve(n.anchor),e.resolve(n.head))}function q1(t,e){let n=t.firstChild.marks,o=e.firstChild.marks,r=n,i=o,s,a,l;for(let u=0;u<o.length;u++)r=o[u].removeFromSet(r);for(let u=0;u<n.length;u++)i=n[u].removeFromSet(i);if(r.length==1&&i.length==0)a=r[0],s="add",l=u=>u.mark(a.addToSet(u.marks));else if(r.length==0&&i.length==1)a=i[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(l(e.child(u)));if(R.from(c).eq(t))return{mark:a,type:s}}function G1(t,e,n,o,r){if(n-e<=r.pos-o.pos||Ic(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(Ic(i,!0,!0));return!s.parent.isTextblock||s.pos>n||Ic(s,!0,!1)<n?!1:o.parent.content.cut(o.parentOffset).eq(s.parent.content)}function Ic(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 Q1(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&&zh(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&&zh(t.textBetween(i-1,i+1))&&(i+=l?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}function zh(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 Z1{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 g1,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Uh),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=Hh(this),Fh(this),this.nodeViews=Vh(this),this.docView=qp(this.state.doc,Bh(this),Pc(this),this.dom,this),this.domObserver=new H1(this,(o,r,i,s)=>W1(this,o,r,i,s)),this.domObserver.start(),y1(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&&Dc(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Uh),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&&(Eh(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=Vh(this);eS(f,this.nodeViews)&&(this.nodeViews=f,i=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&Dc(this),this.editable=Hh(this),Fh(this);let l=Pc(this),c=Bh(this),u=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",d=i||!this.docView.matchesNode(e.doc,c,l);(d||!e.selection.eq(r.selection))&&(s=!0);let m=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&O$(this);if(s){this.domObserver.stop();let f=d&&(Ye||Te)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&X1(r.selection,e.selection);if(d){let p=Te?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=R1(this)),(i||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=qp(e.doc,c,l,this.dom,this)),p&&!this.trackWrites&&(f=!0)}f||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&t1(this))?_t(this,f):(ih(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((o=this.dragging)===null||o===void 0)&&o.node&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():m&&T$(m)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof V){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&Ip(this,n.getBoundingClientRect(),e)}else Ip(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 Ah(e.slice,e.move,r<0?void 0:V.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(Ye){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&&M$(this.dom),_t(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 z$(this,e)}coordsAtPos(e,n=1){return Vp(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 U$(this,n||this.state,e)}pasteHTML(e,n){return Fr(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Fr(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return Ec(this,e)}destroy(){this.docView&&(b1(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Pc(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,v$())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return v1(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?Be&&this.root.nodeType===11&&C$(this.dom.ownerDocument)==this.dom&&U1(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function Bh(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"),[st.node(0,t.state.doc.content.size,e)]}function Fh(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:st.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Hh(t){return!t.someProp("editable",e=>e(t.state)===!1)}function X1(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 Vh(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 eS(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 Uh(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 hn={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:"'"},Ts={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},tS=typeof navigator<"u"&&/Mac/.test(navigator.platform),nS=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Ne=0;Ne<10;Ne++)hn[48+Ne]=hn[96+Ne]=String(Ne);for(var Ne=1;Ne<=24;Ne++)hn[Ne+111]="F"+Ne;for(var Ne=65;Ne<=90;Ne++)hn[Ne]=String.fromCharCode(Ne+32),Ts[Ne]=String.fromCharCode(Ne);for(var Lc in hn)Ts.hasOwnProperty(Lc)||(Ts[Lc]=hn[Lc]);function oS(t){var e=tS&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||nS&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Ts:hn)[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 rS=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function iS(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))rS?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 sS(t){let e=Object.create(null);for(let n in t)e[iS(n)]=t[n];return e}function zc(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 aS(t){return new _e({props:{handleKeyDown:lS(t)}})}function lS(t){let e=sS(t);return function(n,o){let r=oS(o),i,s=e[zc(r,o)];if(s&&s(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(o.shiftKey){let a=e[zc(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=hn[o.keyCode])&&i!=r){let a=e[zc(i,o)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const Bc=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function _h(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const Yh=(t,e,n)=>{let o=_h(t,n);if(!o)return!1;let r=Fc(o);if(!r){let s=o.blockRange(),a=s&&Co(s);return a==null?!1:(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(eg(t,r,e,-1))return!0;if(o.parent.content.size==0&&(Io(i,"end")||V.isSelectable(i)))for(let s=o.depth;;s--){let a=$s(t.doc,o.before(s),o.after(s),I.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(Io(i,"end")?G.findFrom(l.doc.resolve(l.mapping.map(r.pos,-1)),-1):V.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},cS=(t,e,n)=>{let o=_h(t,n);if(!o)return!1;let r=Fc(o);return r?Jh(t,r,e):!1},uS=(t,e,n)=>{let o=Wh(t,n);if(!o)return!1;let r=Hc(o);return r?Jh(t,r,e):!1};function Jh(t,e,n){let o=e.nodeBefore,r=o,i=e.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let u=r.lastChild;if(!u)return!1;r=u}let s=e.nodeAfter,a=s,l=e.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let u=a.firstChild;if(!u)return!1;a=u}let c=$s(t.doc,i,l,I.empty);if(!c||c.from!=i||c instanceof ve&&c.slice.size>=l-i)return!1;if(n){let u=t.tr.step(c);u.setSelection(K.create(u.doc,i)),n(u.scrollIntoView())}return!0}function Io(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 Kh=(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=Fc(o)}let s=i&&i.nodeBefore;return!s||!V.isSelectable(s)?!1:(e&&e(t.tr.setSelection(V.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function Fc(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 Wh(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const qh=(t,e,n)=>{let o=Wh(t,n);if(!o)return!1;let r=Hc(o);if(!r)return!1;let i=r.nodeAfter;if(eg(t,r,e,1))return!0;if(o.parent.content.size==0&&(Io(i,"start")||V.isSelectable(i))){let s=$s(t.doc,o.before(),o.after(),I.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(Io(i,"start")?G.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):V.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},Gh=(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=Hc(o)}let s=i&&i.nodeAfter;return!s||!V.isSelectable(s)?!1:(e&&e(t.tr.setSelection(V.create(t.doc,i.pos)).scrollIntoView()),!0)};function Hc(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 dS=(t,e)=>{let n=t.selection,o=n instanceof V,r;if(o){if(n.node.isTextblock||!sn(t.doc,n.from))return!1;r=n.from}else if(r=vs(t.doc,n.from,-1),r==null)return!1;if(e){let i=t.tr.join(r);o&&i.setSelection(V.create(i.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},mS=(t,e)=>{let n=t.selection,o;if(n instanceof V){if(n.node.isTextblock||!sn(t.doc,n.to))return!1;o=n.to}else if(o=vs(t.doc,n.to,1),o==null)return!1;return e&&e(t.tr.join(o).scrollIntoView()),!0},fS=(t,e)=>{let{$from:n,$to:o}=t.selection,r=n.blockRange(o),i=r&&Co(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)},Qh=(t,e)=>{let{$head:n,$anchor:o}=t.selection;return!n.parent.type.spec.code||!n.sameParent(o)?!1:(e&&e(t.tr.insertText(`
29
+ `).scrollIntoView()),!0)};function Vc(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 pS=(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=Vc(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(G.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},Zh=(t,e)=>{let n=t.selection,{$from:o,$to:r}=n;if(n instanceof et||o.parent.inlineContent||r.parent.inlineContent)return!1;let i=Vc(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(K.create(a.doc,s+1)),e(a.scrollIntoView())}return!0},Xh=(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(Ft(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let o=n.blockRange(),r=o&&Co(o);return r==null?!1:(e&&e(t.tr.lift(o,r).scrollIntoView()),!0)};function hS(t){return(e,n)=>{let{$from:o,$to:r}=e.selection;if(e.selection instanceof V&&e.selection.node.isBlock)return!o.parentOffset||!Ft(e.doc,o.pos)?!1:(n&&n(e.tr.split(o.pos).scrollIntoView()),!0);if(!o.depth)return!1;let i=[],s,a,l=!1,c=!1;for(let f=o.depth;;f--)if(o.node(f).isBlock){l=o.end(f)==o.pos+(o.depth-f),c=o.start(f)==o.pos-(o.depth-f),a=Vc(o.node(f-1).contentMatchAt(o.indexAfter(f-1))),i.unshift(l&&a?{type:a}:null),s=f;break}else{if(f==1)return!1;i.unshift(null)}let u=e.tr;(e.selection instanceof K||e.selection instanceof et)&&u.deleteSelection();let d=u.mapping.map(o.pos),m=Ft(u.doc,d,i.length,i);if(m||(i[0]=a?{type:a}:null,m=Ft(u.doc,d,i.length,i)),!m)return!1;if(u.split(d,i.length,i),!l&&c&&o.node(s).type!=a){let f=u.mapping.map(o.before(s)),p=u.doc.resolve(f);a&&o.node(s-1).canReplaceWith(p.index(),p.index()+1,a)&&u.setNodeMarkup(u.mapping.map(o.before(s)),a)}return n&&n(u.scrollIntoView()),!0}}const gS=hS(),yS=(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(V.create(t.doc,r))),!0)};function bS(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||sn(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function eg(t,e,n,o){let r=e.nodeBefore,i=e.nodeAfter,s,a,l=r.type.spec.isolating||i.type.spec.isolating;if(!l&&bS(t,e,n))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(s=(a=r.contentMatchAt(r.childCount)).findWrapping(i.type))&&a.matchType(s[0]||i.type).validEnd){if(n){let f=e.pos+i.nodeSize,p=R.empty;for(let y=s.length-1;y>=0;y--)p=R.from(s[y].create(null,p));p=R.from(r.copy(p));let g=t.tr.step(new $e(e.pos-1,f,e.pos,f,new I(p,1,0),s.length,!0)),h=g.doc.resolve(f+2*s.length);h.nodeAfter&&h.nodeAfter.type==r.type&&sn(g.doc,h.pos)&&g.join(h.pos),n(g.scrollIntoView())}return!0}let u=i.type.spec.isolating||o>0&&l?null:G.findFrom(e,1),d=u&&u.$from.blockRange(u.$to),m=d&&Co(d);if(m!=null&&m>=e.depth)return n&&n(t.tr.lift(d,m).scrollIntoView()),!0;if(c&&Io(i,"start",!0)&&Io(r,"end")){let f=r,p=[];for(;p.push(f),!f.isTextblock;)f=f.lastChild;let g=i,h=1;for(;!g.isTextblock;g=g.firstChild)h++;if(f.canReplace(f.childCount,f.childCount,g.content)){if(n){let y=R.empty;for(let v=p.length-1;v>=0;v--)y=R.from(p[v].copy(y));let w=t.tr.step(new $e(e.pos-p.length,e.pos+i.nodeSize,e.pos+h,e.pos+i.nodeSize-h,new I(y,p.length,0),0,!0));n(w.scrollIntoView())}return!0}}return!1}function tg(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(K.create(e.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const wS=tg(-1),vS=tg(1);function $S(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),a=s&&sc(s,t,e);return a?(o&&o(n.tr.wrap(s,a).scrollIntoView()),!0):!1}}function ng(t,e=null){return function(n,o){let r=!1;for(let i=0;i<n.selection.ranges.length&&!r;i++){let{$from:{pos:s},$to:{pos:a}}=n.selection.ranges[i];n.doc.nodesBetween(s,a,(l,c)=>{if(r)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)r=!0;else{let u=n.doc.resolve(c),d=u.index();r=u.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}}function Uc(...t){return function(e,n,o){for(let r=0;r<t.length;r++)if(t[r](e,n,o))return!0;return!1}}Uc(Bc,Yh,Kh),Uc(Bc,qh,Gh),Uc(Qh,Zh,Xh,gS),typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function SS(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),a=!1,l=s;if(!s)return!1;if(s.depth>=2&&r.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(r.index(s.depth-1)==0)return!1;let u=n.doc.resolve(s.start-2);l=new fs(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new fs(r,n.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let c=sc(l,t,e,s);return c?(o&&o(kS(n.tr,s,c,a,t).scrollIntoView()),!0):!1}}function kS(t,e,n,o,r){let i=R.empty;for(let u=n.length-1;u>=0;u--)i=R.from(n[u].type.create(n[u].attrs,i));t.step(new $e(e.start-(o?2:0),e.end,e.start,e.end,new I(i,0,0),n.length,!0));let s=0;for(let u=0;u<n.length;u++)n[u].type==r&&(s=u+1);let a=n.length-s,l=e.start+n.length-(o?2:0),c=e.parent;for(let u=e.startIndex,d=e.endIndex,m=!0;u<d;u++,m=!1)!m&&Ft(t.doc,l,a)&&(t.split(l,a),l+=2*a),l+=c.child(u).nodeSize;return t}function xS(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?CS(e,n,t,i):ES(e,n,i):!0:!1}}function CS(t,e,n,o){let r=t.tr,i=o.end,s=o.$to.end(o.depth);i<s&&(r.step(new $e(i-1,s,i,s,new I(R.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new fs(r.doc.resolve(o.$from.pos),r.doc.resolve(s),o.depth));const a=Co(o);if(a==null)return!1;r.lift(o,a);let l=r.mapping.map(i,-1)-1;return sn(r.doc,l)&&r.join(l),e(r.scrollIntoView()),!0}function ES(t,e,n){let o=t.tr,r=n.parent;for(let f=n.end,p=n.endIndex-1,g=n.startIndex;p>g;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,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?R.empty:R.from(r))))return!1;let d=i.pos,m=d+s.nodeSize;return o.step(new $e(d-(a?1:0),m+(l?1:0),d+1,m-1,new I((a?R.empty:R.from(r.copy(R.empty))).append(l?R.empty:R.from(r.copy(R.empty))),a?0:1,l?0:1),a?0:1)),e(o.scrollIntoView()),!0}function NS(t){return function(e,n){let{$from:o,$to:r}=e.selection,i=o.blockRange(r,c=>c.childCount>0&&c.firstChild.type==t);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let a=i.parent,l=a.child(s-1);if(l.type!=t)return!1;if(n){let c=l.lastChild&&l.lastChild.type==a.type,u=R.from(c?t.create():null),d=new I(R.from(t.create(null,R.from(a.type.create(null,u)))),c?3:1,0),m=i.start,f=i.end;n(e.tr.step(new $e(m-(c?3:1),f,m,f,d,1,!0)).scrollIntoView())}return!0}}function Ms(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 js{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:o}=this,{view:r}=n,{tr:i}=o,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...u)=>{const d=l(...u)(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,c=e||i.tr,u=()=>(!l&&n&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),a.every(m=>m===!0)),d={...Object.fromEntries(Object.entries(o).map(([m,f])=>[m,(...g)=>{const h=this.buildProps(c,n),y=f(...g)(h);return a.push(y),d}])),run:u};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,c])=>[l,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(e,n=!0){const{rawCommands:o,editor:r,state:i}=this,{view:s}=r,a={tr:e,editor:r,view:s,state:Ms({state:i,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(o).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}}let AS=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}once(e,n){const o=(...r)=>{this.off(e,o),n.apply(this,r)};return this.on(e,o)}removeAllListeners(){this.callbacks={}}};function B(t,e,n){return t.config[e]===void 0&&t.parent?B(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?B(t.parent,e,n):null}):t.config[e]}function Ps(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 og(t){const e=[],{nodeExtensions:n,markExtensions:o}=Ps(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=B(s,"addGlobalAttributes",a);if(!l)return;l().forEach(u=>{u.types.forEach(d=>{Object.entries(u.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=B(s,"addAttributes",a);if(!l)return;const c=l();Object.entries(c).forEach(([u,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:u,attribute:m})})}),e}function Se(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 Lo(...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?String(i).split(" "):[],l=o[r]?o[r].split(" "):[],c=a.filter(u=>!l.includes(u));o[r]=[...l,...c].join(" ")}else if(r==="style"){const a=i?i.split(";").map(u=>u.trim()).filter(Boolean):[],l=o[r]?o[r].split(";").map(u=>u.trim()).filter(Boolean):[],c=new Map;l.forEach(u=>{const[d,m]=u.split(":").map(f=>f.trim());c.set(d,m)}),a.forEach(u=>{const[d,m]=u.split(":").map(f=>f.trim());c.set(d,m)}),o[r]=Array.from(c.entries()).map(([u,d])=>`${u}: ${d}`).join("; ")}else o[r]=i}),o},{})}function _c(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)=>Lo(n,o),{})}function rg(t){return typeof t=="function"}function Z(t,e=void 0,...n){return rg(t)?e?t.bind(e)(...n):t(...n):t}function DS(t={}){return Object.keys(t).length===0&&t.constructor===Object}function RS(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function ig(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):RS(n.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...o,...r}}}}function sg(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&DS(n)?!1:n!=null))}function OS(t,e){var n;const o=og(t),{nodeExtensions:r,markExtensions:i}=Ps(t),s=(n=r.find(c=>B(c,"topNode")))===null||n===void 0?void 0:n.name,a=Object.fromEntries(r.map(c=>{const u=o.filter(y=>y.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},m=t.reduce((y,w)=>{const v=B(w,"extendNodeSchema",d);return{...y,...v?v(c):{}}},{}),f=sg({...m,content:Z(B(c,"content",d)),marks:Z(B(c,"marks",d)),group:Z(B(c,"group",d)),inline:Z(B(c,"inline",d)),atom:Z(B(c,"atom",d)),selectable:Z(B(c,"selectable",d)),draggable:Z(B(c,"draggable",d)),code:Z(B(c,"code",d)),whitespace:Z(B(c,"whitespace",d)),linebreakReplacement:Z(B(c,"linebreakReplacement",d)),defining:Z(B(c,"defining",d)),isolating:Z(B(c,"isolating",d)),attrs:Object.fromEntries(u.map(y=>{var w;return[y.name,{default:(w=y==null?void 0:y.attribute)===null||w===void 0?void 0:w.default}]}))}),p=Z(B(c,"parseHTML",d));p&&(f.parseDOM=p.map(y=>ig(y,u)));const g=B(c,"renderHTML",d);g&&(f.toDOM=y=>g({node:y,HTMLAttributes:_c(y,u)}));const h=B(c,"renderText",d);return h&&(f.toText=h),[c.name,f]})),l=Object.fromEntries(i.map(c=>{const u=o.filter(h=>h.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},m=t.reduce((h,y)=>{const w=B(y,"extendMarkSchema",d);return{...h,...w?w(c):{}}},{}),f=sg({...m,inclusive:Z(B(c,"inclusive",d)),excludes:Z(B(c,"excludes",d)),group:Z(B(c,"group",d)),spanning:Z(B(c,"spanning",d)),code:Z(B(c,"code",d)),attrs:Object.fromEntries(u.map(h=>{var y;return[h.name,{default:(y=h==null?void 0:h.attribute)===null||y===void 0?void 0:y.default}]}))}),p=Z(B(c,"parseHTML",d));p&&(f.parseDOM=p.map(h=>ig(h,u)));const g=B(c,"renderHTML",d);return g&&(f.toDOM=h=>g({mark:h,HTMLAttributes:_c(h,u)})),[c.name,f]}));return new Xf({topNode:s,nodes:a,marks:l})}function Yc(t,e){return e.nodes[t]||e.marks[t]||null}function ag(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function Jc(t,e){const n=Jn.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}const TS=(t,e=500)=>{let n="";const o=t.parentOffset;return t.parent.nodesBetween(Math.max(0,o-e),o,(r,i,s,a)=>{var l,c;const u=((c=(l=r.type.spec).toText)===null||c===void 0?void 0:c.call(l,{node:r,pos:i,parent:s,index:a}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?u:u.slice(0,Math.max(0,o-i))}),n};function Kc(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class MS{constructor(e){this.find=e.find,this.handler=e.handler}}const jS=(t,e)=>{if(Kc(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 Is(t){var e;const{editor:n,from:o,to:r,text:i,rules:s,plugin:a}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(o);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(m=>m.type.spec.code))return!1;let u=!1;const d=TS(c)+i;return s.forEach(m=>{if(u)return;const f=jS(d,m.find);if(!f)return;const p=l.state.tr,g=Ms({state:l.state,transaction:p}),h={from:o-(f[0].length-i.length),to:r},{commands:y,chain:w,can:v}=new js({editor:n,state:g});m.handler({state:g,range:h,match:f,commands:y,chain:w,can:v})===null||!p.steps.length||(p.setMeta(a,{transform:p,from:o,to:r,text:i}),l.dispatch(p),u=!0)}),u}function PS(t){const{editor:e,rules:n}=t,o=new _e({state:{init(){return null},apply(r,i,s){const a=r.getMeta(o);if(a)return a;const l=r.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:u}=l;typeof u=="string"?u=u:u=Jc(R.from(u),s.schema);const{from:d}=l,m=d+u.length;Is({editor:e,from:d,to:m,text:u,rules:n,plugin:o})}),r.selectionSet||r.docChanged?null:i}},props:{handleTextInput(r,i,s,a){return Is({editor:e,from:i,to:s,text:a,rules:n,plugin:o})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&Is({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?Is({editor:e,from:s.pos,to:s.pos,text:`
30
+ `,rules:n,plugin:o}):!1}},isInputRules:!0});return o}function IS(t){return Object.prototype.toString.call(t).slice(8,-1)}function Ls(t){return IS(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function zs(t,e){const n={...t};return Ls(t)&&Ls(e)&&Object.keys(e).forEach(o=>{Ls(e[o])&&Ls(t[o])?n[o]=zs(t[o],e[o]):n[o]=e[o]}),n}class Vr{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=Z(B(this,"addOptions",{name:this.name}))),this.storage=Z(B(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Vr(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>zs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Vr(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=Z(B(n,"addOptions",{name:n.name})),n.storage=Z(B(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:o}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const s=r.marks();if(!!!s.find(c=>(c==null?void 0:c.type.name)===n.name))return!1;const l=s.find(c=>(c==null?void 0:c.type.name)===n.name);return l&&o.removeStoredMark(l),o.insertText(" ",r.pos),e.view.dispatch(o),!0}return!1}}function LS(t){return typeof t=="number"}class zS{constructor(e){this.find=e.find,this.handler=e.handler}}const BS=(t,e,n)=>{if(Kc(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 FS(t){const{editor:e,state:n,from:o,to:r,rule:i,pasteEvent:s,dropEvent:a}=t,{commands:l,chain:c,can:u}=new js({editor:e,state:n}),d=[];return n.doc.nodesBetween(o,r,(f,p)=>{if(!f.isTextblock||f.type.spec.code)return;const g=Math.max(o,p),h=Math.min(r,p+f.content.size),y=f.textBetween(g-p,h-p,void 0,"");BS(y,i.find,s).forEach(v=>{if(v.index===void 0)return;const $=g+v.index+1,x=$+v[0].length,S={from:n.tr.mapping.map($),to:n.tr.mapping.map(x)},C=i.handler({state:n,range:S,match:v,commands:l,chain:c,can:u,pasteEvent:s,dropEvent:a});d.push(C)})}),d.every(f=>f!==null)}let Bs=null;const HS=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 VS(t){const{editor:e,rules:n}=t;let o=null,r=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a;try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}const l=({state:u,from:d,to:m,rule:f,pasteEvt:p})=>{const g=u.tr,h=Ms({state:u,transaction:g});if(!(!FS({editor:e,state:h,from:Math.max(d-1,0),to:m.b-1,rule:f,pasteEvent:p,dropEvent:a})||!g.steps.length)){try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,g}};return n.map(u=>new _e({view(d){const m=p=>{var g;o=!((g=d.dom.parentElement)===null||g===void 0)&&g.contains(p.target)?d.dom.parentElement:null,o&&(Bs=e)},f=()=>{Bs&&(Bs=null)};return window.addEventListener("dragstart",m),window.addEventListener("dragend",f),{destroy(){window.removeEventListener("dragstart",m),window.removeEventListener("dragend",f)}}},props:{handleDOMEvents:{drop:(d,m)=>{if(i=o===d.dom.parentElement,a=m,!i){const f=Bs;f!=null&&f.isEditable&&setTimeout(()=>{const p=f.state.selection;p&&f.commands.deleteRange({from:p.from,to:p.to})},10)}return!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],g=p.getMeta("uiEvent")==="paste"&&!r,h=p.getMeta("uiEvent")==="drop"&&!i,y=p.getMeta("applyPasteRules"),w=!!y;if(!g&&!h&&!w)return;if(w){let{text:x}=y;typeof x=="string"?x=x:x=Jc(R.from(x),f.schema);const{from:S}=y,C=S+x.length,D=HS(x);return l({rule:u,state:f,from:S,to:{b:C},pasteEvt:D})}const v=m.doc.content.findDiffStart(f.doc.content),$=m.doc.content.findDiffEnd(f.doc.content);if(!(!LS(v)||!$||v===$.b))return l({rule:u,state:f,from:v,to:$,pasteEvt:s})}}))}function US(t){const e=t.filter((n,o)=>t.indexOf(n)!==o);return Array.from(new Set(e))}class zo{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=zo.resolve(e),this.schema=OS(this.extensions,n),this.setupExtensions()}static resolve(e){const n=zo.sort(zo.flatten(e)),o=US(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=B(n,"addExtensions",o);return r?[n,...this.flatten(r())]:n}).flat(10)}static sort(e){return e.sort((o,r)=>{const i=B(o,"priority")||100,s=B(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:Yc(n.name,this.schema)},r=B(n,"addCommands",o);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,n=zo.sort([...this.extensions].reverse()),o=[],r=[],i=n.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:e,type:Yc(s.name,this.schema)},l=[],c=B(s,"addKeyboardShortcuts",a);let u={};if(s.type==="mark"&&B(s,"exitable",a)&&(u.ArrowRight=()=>Vr.handleExit({editor:e,mark:s})),c){const g=Object.fromEntries(Object.entries(c()).map(([h,y])=>[h,()=>y({editor:e})]));u={...u,...g}}const d=aS(u);l.push(d);const m=B(s,"addInputRules",a);ag(s,e.options.enableInputRules)&&m&&o.push(...m());const f=B(s,"addPasteRules",a);ag(s,e.options.enablePasteRules)&&f&&r.push(...f());const p=B(s,"addProseMirrorPlugins",a);if(p){const g=p();l.push(...g)}return l}).flat();return[PS({editor:e,rules:o}),...VS({editor:e,rules:r}),...i]}get attributes(){return og(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=Ps(this.extensions);return Object.fromEntries(n.filter(o=>!!B(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:Se(o.name,this.schema)},s=B(o,"addNodeView",i);if(!s)return[];const a=(l,c,u,d,m)=>{const f=_c(l,r);return s()({node:l,view:c,getPos:u,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:Yc(e.name,this.schema)};e.type==="mark"&&(!((n=Z(B(e,"keepOnSplit",o)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(e.name);const r=B(e,"onBeforeCreate",o),i=B(e,"onCreate",o),s=B(e,"onUpdate",o),a=B(e,"onSelectionUpdate",o),l=B(e,"onTransaction",o),c=B(e,"onFocus",o),u=B(e,"onBlur",o),d=B(e,"onDestroy",o);r&&this.editor.on("beforeCreate",r),i&&this.editor.on("create",i),s&&this.editor.on("update",s),a&&this.editor.on("selectionUpdate",a),l&&this.editor.on("transaction",l),c&&this.editor.on("focus",c),u&&this.editor.on("blur",u),d&&this.editor.on("destroy",d)})}}class at{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=Z(B(this,"addOptions",{name:this.name}))),this.storage=Z(B(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new at(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>zs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new at({...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=Z(B(n,"addOptions",{name:n.name})),n.storage=Z(B(n,"addStorage",{name:n.name,options:n.options})),n}}function lg(t,e,n){const{from:o,to:r}=e,{blockSeparator:i=`
31
+
32
+ `,textSerializers:s={}}=n||{};let a="";return t.nodesBetween(o,r,(l,c,u,d)=>{var m;l.isBlock&&c>o&&(a+=i);const f=s==null?void 0:s[l.type.name];if(f)return u&&(a+=f({node:l,pos:c,parent:u,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,c)-c,r-c))}),a}function cg(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const _S=at.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new _e({key:new bt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:o,selection:r}=e,{ranges:i}=r,s=Math.min(...i.map(u=>u.$from.pos)),a=Math.max(...i.map(u=>u.$to.pos)),l=cg(n);return lg(o,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),YS=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),JS=(t=!1)=>({commands:e})=>e.setContent("",t),KS=()=>({state:t,tr:e,dispatch:n})=>{const{selection:o}=e,{ranges:r}=o;return n&&r.forEach(({$from:i,$to:s})=>{t.doc.nodesBetween(i.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=e,d=c.resolve(u.map(l)),m=c.resolve(u.map(l+a.nodeSize)),f=d.blockRange(m);if(!f)return;const p=Co(f);if(a.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(f.start,g)}(p||p===0)&&e.lift(f,p)})}),!0},WS=t=>e=>t(e),qS=()=>({state:t,dispatch:e})=>Zh(t,e),GS=(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 K(o.doc.resolve(Math.max(s-1,0)))),!0},QS=()=>({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},ZS=t=>({tr:e,state:n,dispatch:o})=>{const r=Se(t,n.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===r){if(o){const l=i.before(s),c=i.after(s);e.delete(l,c).scrollIntoView()}return!0}return!1},XS=t=>({tr:e,dispatch:n})=>{const{from:o,to:r}=t;return n&&e.delete(o,r),!0},ek=()=>({state:t,dispatch:e})=>Bc(t,e),tk=()=>({commands:t})=>t.keyboardShortcut("Enter"),nk=()=>({state:t,dispatch:e})=>pS(t,e);function Fs(t,e,n={strict:!0}){const o=Object.keys(e);return o.length?o.every(r=>n.strict?e[r]===t[r]:Kc(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function ug(t,e,n={}){return t.find(o=>o.type===e&&Fs(Object.fromEntries(Object.keys(n).map(r=>[r,o.attrs[r]])),n))}function dg(t,e,n={}){return!!ug(t,e,n)}function Wc(t,e,n){var o;if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if((!r.node||!r.node.marks.some(u=>u.type===e))&&(r=t.parent.childBefore(t.parentOffset)),!r.node||!r.node.marks.some(u=>u.type===e)||(n=n||((o=r.node.marks[0])===null||o===void 0?void 0:o.attrs),!ug([...r.node.marks],e,n)))return;let s=r.index,a=t.start()+r.offset,l=s+1,c=a+r.node.nodeSize;for(;s>0&&dg([...t.parent.child(s-1).marks],e,n);)s-=1,a-=t.parent.child(s).nodeSize;for(;l<t.parent.childCount&&dg([...t.parent.child(l).marks],e,n);)c+=t.parent.child(l).nodeSize,l+=1;return{from:a,to:c}}function gn(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 ok=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const i=gn(t,o.schema),{doc:s,selection:a}=n,{$from:l,from:c,to:u}=a;if(r){const d=Wc(l,i,e);if(d&&d.from<=c&&d.to>=u){const m=K.create(s,d.from,d.to);n.setSelection(m)}}return!0},rk=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 mg(t){return t instanceof K}function eo(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function fg(t,e=null){if(!e)return null;const n=G.atStart(t),o=G.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return o;const r=n.from,i=o.to;return e==="all"?K.create(t,eo(0,r,i),eo(t.content.size,r,i)):K.create(t,eo(e,r,i),eo(e,r,i))}function ik(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function qc(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const sk=(t=null,e={})=>({editor:n,view:o,tr:r,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{(qc()||ik())&&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&&!mg(n.state.selection))return s(),!0;const a=fg(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},ak=(t,e)=>n=>t.every((o,r)=>e(o,{...n,index:r})),lk=(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),pg=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&&pg(o)}return t};function Hs(t){const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return pg(n)}function Ur(t,e,n){if(t instanceof nn||t instanceof R)return t;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 R.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),Ur("",e,n)}if(r){if(n.errorOnInvalidContent){let s=!1,a="";const l=new Xf({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(s=!0,a=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?Er.fromSchema(l).parseSlice(Hs(t),n.parseOptions):Er.fromSchema(l).parse(Hs(t),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const i=Er.fromSchema(e);return n.slice?i.parseSlice(Hs(t),n.parseOptions).content:i.parse(Hs(t),n.parseOptions)}return Ur("",e,n)}function ck(t,e,n){const o=t.steps.length-1;if(o<e)return;const r=t.steps[o];if(!(r instanceof ve||r instanceof $e))return;const i=t.mapping.maps[o];let s=0;i.forEach((a,l,c,u)=>{s===0&&(s=u)}),t.setSelection(G.near(t.doc.resolve(s),n))}const uk=t=>!("type"in t),dk=(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;const l=h=>{i.emit("contentError",{editor:i,error:h,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{Ur(e,i.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(h){l(h)}try{a=Ur(e,i.schema,{parseOptions:c,errorOnInvalidContent:(s=n.errorOnInvalidContent)!==null&&s!==void 0?s:i.options.enableContentCheck})}catch(h){return l(h),!1}let{from:u,to:d}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},m=!0,f=!0;if((uk(a)?a:[a]).forEach(h=>{h.check(),m=m?h.isText&&h.marks.length===0:!1,f=f?h.isBlock:!1}),u===d&&f){const{parent:h}=o.doc.resolve(u);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(u-=1,d+=1)}let g;if(m){if(Array.isArray(e))g=e.map(h=>h.text||"").join("");else if(e instanceof R){let h="";e.forEach(y=>{y.text&&(h+=y.text)}),g=h}else typeof e=="object"&&e&&e.text?g=e.text:g=e;o.insertText(g,u,d)}else g=a,o.replaceWith(u,d,g);n.updateSelection&&ck(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:u,text:g}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:u,text:g})}return!0},mk=()=>({state:t,dispatch:e})=>dS(t,e),fk=()=>({state:t,dispatch:e})=>mS(t,e),pk=()=>({state:t,dispatch:e})=>Yh(t,e),hk=()=>({state:t,dispatch:e})=>qh(t,e),gk=()=>({state:t,dispatch:e,tr:n})=>{try{const o=vs(t.doc,t.selection.$from.pos,-1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},yk=()=>({state:t,dispatch:e,tr:n})=>{try{const o=vs(t.doc,t.selection.$from.pos,1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},bk=()=>({state:t,dispatch:e})=>cS(t,e),wk=()=>({state:t,dispatch:e})=>uS(t,e);function hg(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function vk(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))qc()||hg()?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 $k=t=>({editor:e,view:n,tr:o,dispatch:r})=>{const i=vk(t).split(/-(?!$)/),s=i.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,a))});return l==null||l.steps.forEach(c=>{const u=c.map(o.mapping);u&&r&&o.maybeStep(u)}),!0};function _r(t,e,n={}){const{from:o,to:r,empty:i}=t.selection,s=e?Se(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,c=a.filter(d=>s?s.name===d.node.type.name:!0).filter(d=>Fs(d.node.attrs,n,{strict:!1}));return i?!!c.length:c.reduce((d,m)=>d+m.to-m.from,0)>=l}const Sk=(t,e={})=>({state:n,dispatch:o})=>{const r=Se(t,n.schema);return _r(n,r,e)?fS(n,o):!1},kk=()=>({state:t,dispatch:e})=>Xh(t,e),xk=t=>({state:e,dispatch:n})=>{const o=Se(t,e.schema);return xS(o)(e,n)},Ck=()=>({state:t,dispatch:e})=>Qh(t,e);function Vs(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function gg(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 Ek=(t,e)=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=Vs(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=Se(t,o.schema)),a==="mark"&&(s=gn(t,o.schema)),r&&n.selection.ranges.forEach(l=>{o.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{i&&i===c.type&&n.setNodeMarkup(u,void 0,gg(c.attrs,e)),s&&c.marks.length&&c.marks.forEach(d=>{s===d.type&&n.addMark(u,u+c.nodeSize,s.create(gg(d.attrs,e)))})})}),!0):!1},Nk=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),Ak=()=>({tr:t,dispatch:e})=>{if(e){const n=new et(t.doc);t.setSelection(n)}return!0},Dk=()=>({state:t,dispatch:e})=>Kh(t,e),Rk=()=>({state:t,dispatch:e})=>Gh(t,e),Ok=()=>({state:t,dispatch:e})=>yS(t,e),Tk=()=>({state:t,dispatch:e})=>vS(t,e),Mk=()=>({state:t,dispatch:e})=>wS(t,e);function Gc(t,e,n={},o={}){return Ur(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:o.errorOnInvalidContent})}const jk=(t,e=!1,n={},o={})=>({editor:r,tr:i,dispatch:s,commands:a})=>{var l,c;const{doc:u}=i;if(n.preserveWhitespace!=="full"){const d=Gc(t,r.schema,n,{errorOnInvalidContent:(l=o.errorOnInvalidContent)!==null&&l!==void 0?l:r.options.enableContentCheck});return s&&i.replaceWith(0,u.content.size,d).setMeta("preventUpdate",!e),!0}return s&&i.setMeta("preventUpdate",!e),a.insertContentAt({from:0,to:u.content.size},t,{parseOptions:n,errorOnInvalidContent:(c=o.errorOnInvalidContent)!==null&&c!==void 0?c:r.options.enableContentCheck})};function yg(t,e){const n=gn(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 Pk(t,e){const n=new kp(t);return e.forEach(o=>{o.steps.forEach(r=>{n.step(r)})}),n}function Ik(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 Lk(t,e,n){const o=[];return t.nodesBetween(e.from,e.to,(r,i)=>{n(r)&&o.push({node:r,pos:i})}),o}function zk(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 Qc(t){return e=>zk(e.$from,t)}function Bk(t,e){const n={from:0,to:t.content.size};return lg(t,n,e)}function Fk(t,e){const n=Se(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 bg(t,e){const n=Vs(typeof e=="string"?e:e.name,t.schema);return n==="node"?Fk(t,e):n==="mark"?yg(t,e):{}}function Hk(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 Vk(t){const e=Hk(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 Uk(t){const{mapping:e,steps:n}=t,o=[];return e.maps.forEach((r,i)=>{const s=[];if(r.ranges.length)r.forEach((a,l)=>{s.push({from:a,to:l})});else{const{from:a,to:l}=n[i];if(a===void 0||l===void 0)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{const c=e.slice(i).map(a,-1),u=e.slice(i).map(l),d=e.invert().map(c,-1),m=e.invert().map(u);o.push({oldRange:{from:d,to:m},newRange:{from:c,to:u}})})}),Vk(o)}function wg(t,e,n){const o=[];return t===e?n.resolve(t).marks().forEach(r=>{const i=n.resolve(t),s=Wc(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 Us(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 Zc(t,e,n={}){const{empty:o,ranges:r}=t.selection,i=e?gn(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter(d=>i?i.name===d.type.name:!0).find(d=>Fs(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,(g,h)=>{if(!g.isText&&!g.marks.length)return;const y=Math.max(f,h),w=Math.min(p,h+g.nodeSize),v=w-y;s+=v,a.push(...g.marks.map($=>({mark:$,from:y,to:w})))})}),s===0)return!1;const l=a.filter(d=>i?i.name===d.mark.type.name:!0).filter(d=>Fs(d.mark.attrs,n,{strict:!1})).reduce((d,m)=>d+m.to-m.from,0),c=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+c:l)>=s}function _k(t,e,n={}){if(!e)return _r(t,null,n)||Zc(t,null,n);const o=Vs(e,t.schema);return o==="node"?_r(t,e,n):o==="mark"?Zc(t,e,n):!1}function vg(t,e){const{nodeExtensions:n}=Ps(e),o=n.find(s=>s.name===t);if(!o)return!1;const r={name:o.name,options:o.options,storage:o.storage},i=Z(B(o,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function _s(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&&(_s(i,{ignoreWhitespace:n,checkChildren:e})||(r=!1))}),r}return!1}function Yk(t,e,n){var o;const{selection:r}=e;let i=null;if(mg(r)&&(i=r.$cursor),i){const a=(o=t.storedMarks)!==null&&o!==void 0?o:i.marks();return!!n.isInSet(a)||!a.some(l=>l.type.excludes(n))}const{ranges:s}=r;return s.some(({$from:a,$to:l})=>{let c=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(a.pos,l.pos,(u,d,m)=>{if(c)return!1;if(u.isInline){const f=!m||m.type.allowsMarkType(n),p=!!n.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(n));c=f&&p}return!c}),c})}const Jk=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const{selection:i}=n,{empty:s,ranges:a}=i,l=gn(t,o.schema);if(r)if(s){const c=yg(o,l);n.addStoredMark(l.create({...c,...e}))}else a.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;o.doc.nodesBetween(u,d,(m,f)=>{const p=Math.max(f,u),g=Math.min(f+m.nodeSize,d);m.marks.find(y=>y.type===l)?m.marks.forEach(y=>{l===y.type&&n.addMark(p,g,l.create({...y.attrs,...e}))}):n.addMark(p,g,l.create(e))})});return Yk(o,n,l)},Kk=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),Wk=(t,e={})=>({state:n,dispatch:o,chain:r})=>{const i=Se(t,n.schema);let s;return n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),i.isTextblock?r().command(({commands:a})=>ng(i,{...s,...e})(n)?!0:a.clearNodes()).command(({state:a})=>ng(i,{...s,...e})(a,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},qk=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,r=eo(t,0,o.content.size),i=V.create(o,r);e.setSelection(i)}return!0},Gk=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,s=K.atStart(o).from,a=K.atEnd(o).to,l=eo(r,s,a),c=eo(i,s,a),u=K.create(o,l,c);e.setSelection(u)}return!0},Qk=t=>({state:e,dispatch:n})=>{const o=Se(t,e.schema);return NS(o)(e,n)};function $g(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 Zk=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:o,editor:r})=>{const{selection:i,doc:s}=e,{$from:a,$to:l}=i,c=r.extensionManager.attributes,u=Us(c,a.node().type.name,a.node().attrs);if(i instanceof V&&i.node.isBlock)return!a.parentOffset||!Ft(s,a.pos)?!1:(o&&(t&&$g(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:Ik(a.node(-1).contentMatchAt(a.indexAfter(-1)));let f=d&&m?[{type:m,attrs:u}]:void 0,p=Ft(e.doc,e.mapping.map(a.pos),1,f);if(!f&&!p&&Ft(e.doc,e.mapping.map(a.pos),1,m?[{type:m}]:void 0)&&(p=!0,f=m?[{type:m,attrs:u}]:void 0),o){if(p&&(i instanceof K&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,f),m&&!d&&!a.parentOffset&&a.parent.type!==m)){const g=e.mapping.map(a.before()),h=e.doc.resolve(g);a.node(-1).canReplaceWith(h.index(),h.index()+1,m)&&e.setNodeMarkup(e.mapping.map(a.before()),m)}t&&$g(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return p},Xk=(t,e={})=>({tr:n,state:o,dispatch:r,editor:i})=>{var s;const a=Se(t,o.schema),{$from:l,$to:c}=o.selection,u=o.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const 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 y=R.empty;const w=l.index(-1)?1:l.index(-2)?2:3;for(let D=l.depth-w;D>=l.depth-3;D-=1)y=R.from(l.node(D).copy(y));const v=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,$={...Us(m,l.node().type.name,l.node().attrs),...e},x=((s=a.contentMatch.defaultType)===null||s===void 0?void 0:s.createAndFill($))||void 0;y=y.append(R.from(a.createAndFill(null,x)||void 0));const S=l.before(l.depth-(w-1));n.replace(S,l.after(-v),new I(y,4-w,0));let C=-1;n.doc.nodesBetween(S,n.doc.content.size,(D,N)=>{if(C>-1)return!1;D.isTextblock&&D.content.size===0&&(C=N+1)}),C>-1&&n.setSelection(K.near(n.doc.resolve(C))),n.scrollIntoView()}return!0}const f=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,p={...Us(m,d.type.name,d.attrs),...e},g={...Us(m,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,c.pos);const h=f?[{type:a,attrs:p},{type:f,attrs:g}]:[{type:a,attrs:p}];if(!Ft(n.doc,l.pos,2))return!1;if(r){const{selection:y,storedMarks:w}=o,{splittableMarks:v}=i.extensionManager,$=w||y.$to.parentOffset&&y.$from.marks();if(n.split(l.pos,2,h).scrollIntoView(),!$||!r)return!0;const x=$.filter(S=>v.includes(S.type.name));n.ensureMarks(x)}return!0},Xc=(t,e)=>{const n=Qc(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)&&sn(t.doc,n.pos)&&t.join(n.pos),!0},eu=(t,e)=>{const n=Qc(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)&&sn(t.doc,o)&&t.join(o),!0};var ex=Object.freeze({__proto__:null,blur:YS,clearContent:JS,clearNodes:KS,command:WS,createParagraphNear:qS,cut:GS,deleteCurrentNode:QS,deleteNode:ZS,deleteRange:XS,deleteSelection:ek,enter:tk,exitCode:nk,extendMarkRange:ok,first:rk,focus:sk,forEach:ak,insertContent:lk,insertContentAt:dk,joinBackward:pk,joinDown:fk,joinForward:hk,joinItemBackward:gk,joinItemForward:yk,joinTextblockBackward:bk,joinTextblockForward:wk,joinUp:mk,keyboardShortcut:$k,lift:Sk,liftEmptyBlock:kk,liftListItem:xk,newlineInCode:Ck,resetAttributes:Ek,scrollIntoView:Nk,selectAll:Ak,selectNodeBackward:Dk,selectNodeForward:Rk,selectParentNode:Ok,selectTextblockEnd:Tk,selectTextblockStart:Mk,setContent:jk,setMark:Jk,setMeta:Kk,setNode:Wk,setNodeSelection:qk,setTextSelection:Gk,sinkListItem:Qk,splitBlock:Zk,splitListItem:Xk,toggleList:(t,e,n,o={})=>({editor:r,tr:i,state:s,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:m}=r.extensionManager,f=Se(t,s.schema),p=Se(e,s.schema),{selection:g,storedMarks:h}=s,{$from:y,$to:w}=g,v=y.blockRange(w),$=h||g.$to.parentOffset&&g.$from.marks();if(!v)return!1;const x=Qc(S=>vg(S.type.name,d))(g);if(v.depth>=1&&x&&v.depth-x.depth<=1){if(x.node.type===f)return c.liftListItem(p);if(vg(x.node.type.name,d)&&f.validContent(x.node.content)&&a)return l().command(()=>(i.setNodeMarkup(x.pos,f),!0)).command(()=>Xc(i,f)).command(()=>eu(i,f)).run()}return!n||!$||!a?l().command(()=>u().wrapInList(f,o)?!0:c.clearNodes()).wrapInList(f,o).command(()=>Xc(i,f)).command(()=>eu(i,f)).run():l().command(()=>{const S=u().wrapInList(f,o),C=$.filter(D=>m.includes(D.type.name));return i.ensureMarks(C),S?!0:c.clearNodes()}).wrapInList(f,o).command(()=>Xc(i,f)).command(()=>eu(i,f)).run()},toggleMark:(t,e={},n={})=>({state:o,commands:r})=>{const{extendEmptyMarkRange:i=!1}=n,s=gn(t,o.schema);return Zc(o,s,e)?r.unsetMark(s,{extendEmptyMarkRange:i}):r.setMark(s,e)},toggleNode:(t,e,n={})=>({state:o,commands:r})=>{const i=Se(t,o.schema),s=Se(e,o.schema),a=_r(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=Se(t,n.schema);return _r(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=gn(t,o.schema),{$from:c,empty:u,ranges:d}=a;if(!r)return!0;if(u&&s){let{from:m,to:f}=a;const p=(i=c.marks().find(h=>h.type===l))===null||i===void 0?void 0:i.attrs,g=Wc(c,l,p);g&&(m=g.from,f=g.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=Vs(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=Se(t,o.schema)),a==="mark"&&(s=gn(t,o.schema)),r&&n.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;let d,m,f,p;n.selection.empty?o.doc.nodesBetween(c,u,(g,h)=>{i&&i===g.type&&(f=Math.max(h,c),p=Math.min(h+g.nodeSize,u),d=h,m=g)}):o.doc.nodesBetween(c,u,(g,h)=>{h<c&&i&&i===g.type&&(f=Math.max(h,c),p=Math.min(h+g.nodeSize,u),d=h,m=g),h>=c&&h<=u&&(i&&i===g.type&&n.setNodeMarkup(h,void 0,{...g.attrs,...e}),s&&g.marks.length&&g.marks.forEach(y=>{if(s===y.type){const w=Math.max(h,c),v=Math.min(h+g.nodeSize,u);n.addMark(w,v,s.create({...y.attrs,...e}))}}))}),m&&(d!==void 0&&n.setNodeMarkup(d,void 0,{...m.attrs,...e}),s&&m.marks.length&&m.marks.forEach(g=>{s===g.type&&n.addMark(f,p,s.create({...g.attrs,...e}))}))}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:o})=>{const r=Se(t,n.schema);return $S(r,e)(n,o)},wrapInList:(t,e={})=>({state:n,dispatch:o})=>{const r=Se(t,n.schema);return SS(r,e)(n,o)}});const tx=at.create({name:"commands",addCommands(){return{...ex}}}),nx=at.create({name:"drop",addProseMirrorPlugins(){return[new _e({key:new bt("tiptapDrop"),props:{handleDrop:(t,e,n,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:o})}}})]}}),ox=at.create({name:"editable",addProseMirrorPlugins(){return[new _e({key:new bt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),rx=new bt("focusEvents"),ix=at.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new _e({key:rx,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}}}})]}}),sx=at.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:d}=l,{pos:m,parent:f}=d,p=d.parent.isTextblock&&m>0?a.doc.resolve(m-1):d,g=p.parent.type.spec.isolating,h=d.pos-d.parentOffset,y=g&&p.parent.childCount===1?h===d.pos:G.atStart(c).from===m;return!u||!f.type.isTextblock||f.textContent.length||!y||y&&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 qc()||hg()?i:r},addProseMirrorPlugins(){return[new _e({key:new bt("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(g=>g.getMeta("composition")))return;const o=t.some(g=>g.docChanged)&&!e.doc.eq(n.doc),r=t.some(g=>g.getMeta("preventClearDocument"));if(!o||r)return;const{empty:i,from:s,to:a}=e.selection,l=G.atStart(e.doc).from,c=G.atEnd(e.doc).to;if(i||!(s===l&&a===c)||!_s(n.doc))return;const m=n.tr,f=Ms({state:n,transaction:m}),{commands:p}=new js({editor:this.editor,state:f});if(p.clearNodes(),!!m.steps.length)return m}})]}}),ax=at.create({name:"paste",addProseMirrorPlugins(){return[new _e({key:new bt("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),lx=at.create({name:"tabindex",addProseMirrorPlugins(){return[new _e({key:new bt("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class to{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 to(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 to(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 to(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);if(s<0||s>this.resolvedPos.doc.nodeSize-2)return;const a=this.resolvedPos.doc.resolve(s);if(!r&&a.depth<=this.depth)return;const l=new to(a,this.editor,r,r?n:null);r&&(l.actualDepth=this.depth+1),e.push(new to(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 cx=`.ProseMirror {
33
33
  position: relative;
34
34
  }
35
35
 
@@ -103,31 +103,31 @@ img.ProseMirror-separator {
103
103
 
104
104
  .tippy-box[data-animation=fade][data-state=hidden] {
105
105
  opacity: 0
106
- }`;function cx(t,e,n){const o=document.querySelector("style[data-tiptap-style]");if(o!==null)return o;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute("data-tiptap-style",""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}class ux extends NS{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,emitContentError:!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=cx(lx,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=rg(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=o.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?[nx,US.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),ex,rx,ix,ax,tx,sx].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 zo(r,this)}createCommandManager(){this.commandManager=new js({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let n;try{n=Gc(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(s){if(!(s instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(s.message))throw s;this.emit("contentError",{editor:this,error:s,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(a=>a.name!=="collaboration"),this.createExtensionManager()}}),n=Gc(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const o=fg(n,this.options.autofocus);this.view=new Q1(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(e=this.options.editorProps)===null||e===void 0?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:Do.create({doc:n,selection:o||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.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 bg(this.state,e)}isActive(e,n){const o=typeof e=="string"?e:null,r=typeof e=="string"?n:e;return Uk(this.state,o,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Jc(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
106
+ }`;function ux(t,e,n){const o=document.querySelector("style[data-tiptap-style]");if(o!==null)return o;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute("data-tiptap-style",""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}class dx extends AS{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,emitContentError:!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=ux(cx,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=rg(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=o.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?[ox,_S.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),tx,ix,sx,lx,nx,ax].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 zo(r,this)}createCommandManager(){this.commandManager=new js({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let n;try{n=Gc(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(s){if(!(s instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(s.message))throw s;this.emit("contentError",{editor:this,error:s,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(a=>a.name!=="collaboration"),this.createExtensionManager()}}),n=Gc(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const o=fg(n,this.options.autofocus);this.view=new Z1(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(e=this.options.editorProps)===null||e===void 0?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:Do.create({doc:n,selection:o||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.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 bg(this.state,e)}isActive(e,n){const o=typeof e=="string"?e:null,r=typeof e=="string"?n:e;return _k(this.state,o,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Jc(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
107
107
 
108
- `,textSerializers:o={}}=e||{};return zk(this.state.doc,{blockSeparator:n,textSerializers:{...cg(this.schema),...o}})}get isEmpty(){return _s(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 to(n,this)}get $doc(){return this.$pos(0)}}function dx(t){return new TS({find:t.find,handler:({state:e,range:n,match:o,chain:r})=>{const i=X(t.getAttributes,void 0,o)||{},s=e.tr.delete(n.from,n.to),l=s.doc.resolve(n.from).blockRange(),c=l&&sc(l,t.type,i);if(!c)return null;if(s.wrap(l,c),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 g=p.filter(h=>f.includes(h.type.name));s.ensureMarks(g)}}if(t.keepAttributes){const d=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(d,i).run()}const u=s.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&sn(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(o,u))&&s.join(n.from-1)}})}class yn{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=X(B(this,"addOptions",{name:this.name}))),this.storage=X(B(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new yn(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>zs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new yn(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=X(B(n,"addOptions",{name:n.name})),n.storage=X(B(n,"addStorage",{name:n.name,options:n.options})),n}}function mx(t){return new IS({find:t.find,handler:({state:e,range:n,match:o,pasteEvent:r})=>{const i=X(t.getAttributes,void 0,o,r);if(i===!1||i===null)return null;const{tr:s}=e,a=o[o.length-1],l=o[0];let c=n.to;if(a){const u=l.search(/\S/),d=n.from+l.indexOf(a),m=d+a.length;if(wg(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+u,d),c=n.from+u+a.length,s.addMark(n.from+u,c,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}var Sg={exports:{}},lt={},kg={exports:{}},xg={};/** @license React v0.20.2
108
+ `,textSerializers:o={}}=e||{};return Bk(this.state.doc,{blockSeparator:n,textSerializers:{...cg(this.schema),...o}})}get isEmpty(){return _s(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 to(n,this)}get $doc(){return this.$pos(0)}}function mx(t){return new MS({find:t.find,handler:({state:e,range:n,match:o,chain:r})=>{const i=Z(t.getAttributes,void 0,o)||{},s=e.tr.delete(n.from,n.to),l=s.doc.resolve(n.from).blockRange(),c=l&&sc(l,t.type,i);if(!c)return null;if(s.wrap(l,c),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 g=p.filter(h=>f.includes(h.type.name));s.ensureMarks(g)}}if(t.keepAttributes){const d=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(d,i).run()}const u=s.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&sn(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(o,u))&&s.join(n.from-1)}})}class yn{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=Z(B(this,"addOptions",{name:this.name}))),this.storage=Z(B(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new yn(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>zs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new yn(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=Z(B(n,"addOptions",{name:n.name})),n.storage=Z(B(n,"addStorage",{name:n.name,options:n.options})),n}}function fx(t){return new zS({find:t.find,handler:({state:e,range:n,match:o,pasteEvent:r})=>{const i=Z(t.getAttributes,void 0,o,r);if(i===!1||i===null)return null;const{tr:s}=e,a=o[o.length-1],l=o[0];let c=n.to;if(a){const u=l.search(/\S/),d=n.from+l.indexOf(a),m=d+a.length;if(wg(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+u,d),c=n.from+u+a.length,s.addMark(n.from+u,c,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}var Sg={exports:{}},lt={},kg={exports:{}},xg={};/** @license React v0.20.2
109
109
  * scheduler.production.min.js
110
110
  *
111
111
  * Copyright (c) Facebook, Inc. and its affiliates.
112
112
  *
113
113
  * This source code is licensed under the MIT license found in the
114
114
  * LICENSE file in the root directory of this source tree.
115
- */(function(t){var e,n,o,r;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();t.unstable_now=function(){return s.now()-a}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,u=function(){if(l!==null)try{var O=t.unstable_now();l(!0,O),l=null}catch(P){throw setTimeout(u,0),P}};e=function(O){l!==null?setTimeout(e,0,O):(l=O,setTimeout(u,0))},n=function(O,P){c=setTimeout(O,P)},o=function(){clearTimeout(c)},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,g=null,h=-1,y=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},r=function(){},t.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<O?Math.floor(1e3/O):5};var $=new MessageChannel,v=$.port2;$.port1.onmessage=function(){if(g!==null){var O=t.unstable_now();w=O+y;try{g(!0,O)?v.postMessage(null):(p=!1,g=null)}catch(P){throw v.postMessage(null),P}}else p=!1},e=function(O){g=O,p||(p=!0,v.postMessage(null))},n=function(O,P){h=d(function(){O(t.unstable_now())},P)},o=function(){m(h),h=-1}}function x(O,P){var I=O.length;O.push(P);e:for(;;){var H=I-1>>>1,Z=O[H];if(Z!==void 0&&0<A(Z,P))O[H]=P,O[I]=Z,I=H;else break e}}function S(O){return O=O[0],O===void 0?null:O}function C(O){var P=O[0];if(P!==void 0){var I=O.pop();if(I!==P){O[0]=I;e:for(var H=0,Z=O.length;H<Z;){var ze=2*(H+1)-1,gt=O[ze],$o=ze+1,It=O[$o];if(gt!==void 0&&0>A(gt,I))It!==void 0&&0>A(It,gt)?(O[H]=It,O[$o]=I,H=$o):(O[H]=gt,O[ze]=I,H=ze);else if(It!==void 0&&0>A(It,I))O[H]=It,O[$o]=I,H=$o;else break e}}return P}return null}function A(O,P){var I=O.sortIndex-P.sortIndex;return I!==0?I:O.id-P.id}var N=[],F=[],J=1,ee=null,ne=3,re=!1,ae=!1,me=!1;function E(O){for(var P=S(F);P!==null;){if(P.callback===null)C(F);else if(P.startTime<=O)C(F),P.sortIndex=P.expirationTime,x(N,P);else break;P=S(F)}}function D(O){if(me=!1,E(O),!ae)if(S(N)!==null)ae=!0,e(j);else{var P=S(F);P!==null&&n(D,P.startTime-O)}}function j(O,P){ae=!1,me&&(me=!1,o()),re=!0;var I=ne;try{for(E(P),ee=S(N);ee!==null&&(!(ee.expirationTime>P)||O&&!t.unstable_shouldYield());){var H=ee.callback;if(typeof H=="function"){ee.callback=null,ne=ee.priorityLevel;var Z=H(ee.expirationTime<=P);P=t.unstable_now(),typeof Z=="function"?ee.callback=Z:ee===S(N)&&C(N),E(P)}else C(N);ee=S(N)}if(ee!==null)var ze=!0;else{var gt=S(F);gt!==null&&n(D,gt.startTime-P),ze=!1}return ze}finally{ee=null,ne=I,re=!1}}var q=r;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(O){O.callback=null},t.unstable_continueExecution=function(){ae||re||(ae=!0,e(j))},t.unstable_getCurrentPriorityLevel=function(){return ne},t.unstable_getFirstCallbackNode=function(){return S(N)},t.unstable_next=function(O){switch(ne){case 1:case 2:case 3:var P=3;break;default:P=ne}var I=ne;ne=P;try{return O()}finally{ne=I}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=q,t.unstable_runWithPriority=function(O,P){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var I=ne;ne=O;try{return P()}finally{ne=I}},t.unstable_scheduleCallback=function(O,P,I){var H=t.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?H+I:H):I=H,O){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=I+Z,O={id:J++,callback:P,priorityLevel:O,startTime:I,expirationTime:Z,sortIndex:-1},I>H?(O.sortIndex=I,x(F,O),S(N)===null&&O===S(F)&&(me?o():me=!0,n(D,I-H))):(O.sortIndex=Z,x(N,O),ae||re||(ae=!0,e(j))),O},t.unstable_wrapCallback=function(O){var P=ne;return function(){var I=ne;ne=P;try{return O.apply(this,arguments)}finally{ne=I}}}})(xg),kg.exports=xg;var fx=kg.exports;/** @license React v17.0.2
115
+ */(function(t){var e,n,o,r;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();t.unstable_now=function(){return s.now()-a}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,u=function(){if(l!==null)try{var O=t.unstable_now();l(!0,O),l=null}catch(P){throw setTimeout(u,0),P}};e=function(O){l!==null?setTimeout(e,0,O):(l=O,setTimeout(u,0))},n=function(O,P){c=setTimeout(O,P)},o=function(){clearTimeout(c)},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,g=null,h=-1,y=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},r=function(){},t.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<O?Math.floor(1e3/O):5};var v=new MessageChannel,$=v.port2;v.port1.onmessage=function(){if(g!==null){var O=t.unstable_now();w=O+y;try{g(!0,O)?$.postMessage(null):(p=!1,g=null)}catch(P){throw $.postMessage(null),P}}else p=!1},e=function(O){g=O,p||(p=!0,$.postMessage(null))},n=function(O,P){h=d(function(){O(t.unstable_now())},P)},o=function(){m(h),h=-1}}function x(O,P){var L=O.length;O.push(P);e:for(;;){var H=L-1>>>1,Q=O[H];if(Q!==void 0&&0<D(Q,P))O[H]=P,O[L]=Q,L=H;else break e}}function S(O){return O=O[0],O===void 0?null:O}function C(O){var P=O[0];if(P!==void 0){var L=O.pop();if(L!==P){O[0]=L;e:for(var H=0,Q=O.length;H<Q;){var ze=2*(H+1)-1,gt=O[ze],$o=ze+1,Lt=O[$o];if(gt!==void 0&&0>D(gt,L))Lt!==void 0&&0>D(Lt,gt)?(O[H]=Lt,O[$o]=L,H=$o):(O[H]=gt,O[ze]=L,H=ze);else if(Lt!==void 0&&0>D(Lt,L))O[H]=Lt,O[$o]=L,H=$o;else break e}}return P}return null}function D(O,P){var L=O.sortIndex-P.sortIndex;return L!==0?L:O.id-P.id}var N=[],F=[],ne=1,ee=null,oe=3,ge=!1,ue=!1,de=!1;function E(O){for(var P=S(F);P!==null;){if(P.callback===null)C(F);else if(P.startTime<=O)C(F),P.sortIndex=P.expirationTime,x(N,P);else break;P=S(F)}}function A(O){if(de=!1,E(O),!ue)if(S(N)!==null)ue=!0,e(j);else{var P=S(F);P!==null&&n(A,P.startTime-O)}}function j(O,P){ue=!1,de&&(de=!1,o()),ge=!0;var L=oe;try{for(E(P),ee=S(N);ee!==null&&(!(ee.expirationTime>P)||O&&!t.unstable_shouldYield());){var H=ee.callback;if(typeof H=="function"){ee.callback=null,oe=ee.priorityLevel;var Q=H(ee.expirationTime<=P);P=t.unstable_now(),typeof Q=="function"?ee.callback=Q:ee===S(N)&&C(N),E(P)}else C(N);ee=S(N)}if(ee!==null)var ze=!0;else{var gt=S(F);gt!==null&&n(A,gt.startTime-P),ze=!1}return ze}finally{ee=null,oe=L,ge=!1}}var W=r;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(O){O.callback=null},t.unstable_continueExecution=function(){ue||ge||(ue=!0,e(j))},t.unstable_getCurrentPriorityLevel=function(){return oe},t.unstable_getFirstCallbackNode=function(){return S(N)},t.unstable_next=function(O){switch(oe){case 1:case 2:case 3:var P=3;break;default:P=oe}var L=oe;oe=P;try{return O()}finally{oe=L}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=W,t.unstable_runWithPriority=function(O,P){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var L=oe;oe=O;try{return P()}finally{oe=L}},t.unstable_scheduleCallback=function(O,P,L){var H=t.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?H+L:H):L=H,O){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=L+Q,O={id:ne++,callback:P,priorityLevel:O,startTime:L,expirationTime:Q,sortIndex:-1},L>H?(O.sortIndex=L,x(F,O),S(N)===null&&O===S(F)&&(de?o():de=!0,n(A,L-H))):(O.sortIndex=Q,x(N,O),ue||ge||(ue=!0,e(j))),O},t.unstable_wrapCallback=function(O){var P=oe;return function(){var L=oe;oe=P;try{return O.apply(this,arguments)}finally{oe=L}}}})(xg),kg.exports=xg;var px=kg.exports;/** @license React v17.0.2
116
116
  * react-dom.production.min.js
117
117
  *
118
118
  * Copyright (c) Facebook, Inc. and its affiliates.
119
119
  *
120
120
  * This source code is licensed under the MIT license found in the
121
121
  * LICENSE file in the root directory of this source tree.
122
- */var Ys=k,de=Vl,ke=fx;function M(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(!Ys)throw Error(M(227));var Cg=new Set,Yr={};function no(t,e){Bo(t,e),Bo(t+"Capture",e)}function Bo(t,e){for(Yr[t]=e,t=0;t<e.length;t++)Cg.add(e[t])}var Yt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),px=/^[: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]*$/,Eg=Object.prototype.hasOwnProperty,Ng={},Ag={};function hx(t){return Eg.call(Ag,t)?!0:Eg.call(Ng,t)?!1:px.test(t)?Ag[t]=!0:(Ng[t]=!0,!1)}function gx(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 yx(t,e,n,o){if(e===null||typeof e>"u"||gx(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 Ve(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 Ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ae[t]=new Ve(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ae[e]=new Ve(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ae[t]=new Ve(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ae[t]=new Ve(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){Ae[t]=new Ve(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Ae[t]=new Ve(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Ae[t]=new Ve(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Ae[t]=new Ve(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Ae[t]=new Ve(t,5,!1,t.toLowerCase(),null,!1,!1)});var tu=/[\-:]([a-z])/g;function nu(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(tu,nu);Ae[e]=new Ve(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(tu,nu);Ae[e]=new Ve(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(tu,nu);Ae[e]=new Ve(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Ae[t]=new Ve(t,1,!1,t.toLowerCase(),null,!1,!1)}),Ae.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Ae[t]=new Ve(t,1,!1,t.toLowerCase(),null,!0,!0)});function ou(t,e,n,o){var r=Ae.hasOwnProperty(e)?Ae[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||(yx(e,n,r,o)&&(n=null),o||r===null?hx(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 oo=Ys.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Jr=60103,ro=60106,bn=60107,ru=60108,Kr=60114,iu=60109,su=60110,Js=60112,Wr=60113,Ks=60120,Ws=60115,au=60116,lu=60121,cu=60128,Dg=60129,uu=60130,du=60131;if(typeof Symbol=="function"&&Symbol.for){var xe=Symbol.for;Jr=xe("react.element"),ro=xe("react.portal"),bn=xe("react.fragment"),ru=xe("react.strict_mode"),Kr=xe("react.profiler"),iu=xe("react.provider"),su=xe("react.context"),Js=xe("react.forward_ref"),Wr=xe("react.suspense"),Ks=xe("react.suspense_list"),Ws=xe("react.memo"),au=xe("react.lazy"),lu=xe("react.block"),xe("react.scope"),cu=xe("react.opaque.id"),Dg=xe("react.debug_trace_mode"),uu=xe("react.offscreen"),du=xe("react.legacy_hidden")}var Rg=typeof Symbol=="function"&&Symbol.iterator;function qr(t){return t===null||typeof t!="object"?null:(t=Rg&&t[Rg]||t["@@iterator"],typeof t=="function"?t:null)}var mu;function Gr(t){if(mu===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);mu=e&&e[1]||""}return`
122
+ */var Ys=k,ce=Vl,ke=px;function M(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(!Ys)throw Error(M(227));var Cg=new Set,Yr={};function no(t,e){Bo(t,e),Bo(t+"Capture",e)}function Bo(t,e){for(Yr[t]=e,t=0;t<e.length;t++)Cg.add(e[t])}var Yt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hx=/^[: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]*$/,Eg=Object.prototype.hasOwnProperty,Ng={},Ag={};function gx(t){return Eg.call(Ag,t)?!0:Eg.call(Ng,t)?!1:hx.test(t)?Ag[t]=!0:(Ng[t]=!0,!1)}function yx(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 bx(t,e,n,o){if(e===null||typeof e>"u"||yx(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 Ve(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 Ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ae[t]=new Ve(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ae[e]=new Ve(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ae[t]=new Ve(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ae[t]=new Ve(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){Ae[t]=new Ve(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Ae[t]=new Ve(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Ae[t]=new Ve(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Ae[t]=new Ve(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Ae[t]=new Ve(t,5,!1,t.toLowerCase(),null,!1,!1)});var tu=/[\-:]([a-z])/g;function nu(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(tu,nu);Ae[e]=new Ve(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(tu,nu);Ae[e]=new Ve(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(tu,nu);Ae[e]=new Ve(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Ae[t]=new Ve(t,1,!1,t.toLowerCase(),null,!1,!1)}),Ae.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Ae[t]=new Ve(t,1,!1,t.toLowerCase(),null,!0,!0)});function ou(t,e,n,o){var r=Ae.hasOwnProperty(e)?Ae[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||(bx(e,n,r,o)&&(n=null),o||r===null?gx(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 oo=Ys.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Jr=60103,ro=60106,bn=60107,ru=60108,Kr=60114,iu=60109,su=60110,Js=60112,Wr=60113,Ks=60120,Ws=60115,au=60116,lu=60121,cu=60128,Dg=60129,uu=60130,du=60131;if(typeof Symbol=="function"&&Symbol.for){var xe=Symbol.for;Jr=xe("react.element"),ro=xe("react.portal"),bn=xe("react.fragment"),ru=xe("react.strict_mode"),Kr=xe("react.profiler"),iu=xe("react.provider"),su=xe("react.context"),Js=xe("react.forward_ref"),Wr=xe("react.suspense"),Ks=xe("react.suspense_list"),Ws=xe("react.memo"),au=xe("react.lazy"),lu=xe("react.block"),xe("react.scope"),cu=xe("react.opaque.id"),Dg=xe("react.debug_trace_mode"),uu=xe("react.offscreen"),du=xe("react.legacy_hidden")}var Rg=typeof Symbol=="function"&&Symbol.iterator;function qr(t){return t===null||typeof t!="object"?null:(t=Rg&&t[Rg]||t["@@iterator"],typeof t=="function"?t:null)}var mu;function Gr(t){if(mu===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);mu=e&&e[1]||""}return`
123
123
  `+mu+t}var fu=!1;function qs(t,e){if(!t||fu)return"";fu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(l){var o=l}Reflect.construct(t,[],e)}else{try{e.call()}catch(l){o=l}t.call(e.prototype)}else{try{throw Error()}catch(l){o=l}t()}}catch(l){if(l&&o&&typeof l.stack=="string"){for(var r=l.stack.split(`
124
124
  `),i=o.stack.split(`
125
125
  `),s=r.length-1,a=i.length-1;1<=s&&0<=a&&r[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(r[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||r[s]!==i[a])return`
126
- `+r[s].replace(" at new "," at ");while(1<=s&&0<=a);break}}}finally{fu=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Gr(t):""}function bx(t){switch(t.tag){case 5:return Gr(t.type);case 16:return Gr("Lazy");case 13:return Gr("Suspense");case 19:return Gr("SuspenseList");case 0:case 2:case 15:return t=qs(t.type,!1),t;case 11:return t=qs(t.type.render,!1),t;case 22:return t=qs(t.type._render,!1),t;case 1:return t=qs(t.type,!0),t;default:return""}}function Fo(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 bn:return"Fragment";case ro:return"Portal";case Kr:return"Profiler";case ru:return"StrictMode";case Wr:return"Suspense";case Ks:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case su:return(t.displayName||"Context")+".Consumer";case iu:return(t._context.displayName||"Context")+".Provider";case Js:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case Ws:return Fo(t.type);case lu:return Fo(t._render);case au:e=t._payload,t=t._init;try{return Fo(t(e))}catch{}}return null}function wn(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function Og(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function wx(t){var e=Og(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 Gs(t){t._valueTracker||(t._valueTracker=wx(t))}function Tg(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),o="";return t&&(o=Og(t)?t.checked?"true":"false":t.value),t=o,t!==n?(e.setValue(t),!0):!1}function Qs(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 pu(t,e){var n=e.checked;return de({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Mg(t,e){var n=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;n=wn(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 jg(t,e){e=e.checked,e!=null&&ou(t,"checked",e,!1)}function hu(t,e){jg(t,e);var n=wn(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")?gu(t,e.type,n):e.hasOwnProperty("defaultValue")&&gu(t,e.type,wn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Pg(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 gu(t,e,n){(e!=="number"||Qs(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function vx(t){var e="";return Ys.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}function yu(t,e){return t=de({children:void 0},e),(e=vx(e.children))&&(t.children=e),t}function Ho(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=""+wn(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 bu(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(M(91));return de({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Lg(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(M(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(M(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:wn(n)}}function Ig(t,e){var n=wn(e.value),o=wn(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 zg(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}var wu={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Bg(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 vu(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Bg(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Zs,Fg=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!==wu.svg||"innerHTML"in t)t.innerHTML=e;else{for(Zs=Zs||document.createElement("div"),Zs.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Zs.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Qr(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Zr={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},$x=["Webkit","ms","Moz","O"];Object.keys(Zr).forEach(function(t){$x.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Zr[e]=Zr[t]})});function Hg(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Zr.hasOwnProperty(t)&&Zr[t]?(""+e).trim():e+"px"}function Vg(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=Hg(n,e[n],o);n==="float"&&(n="cssFloat"),o?t.setProperty(n,r):t[n]=r}}var Sx=de({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 $u(t,e){if(e){if(Sx[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(M(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(M(60));if(!(typeof e.dangerouslySetInnerHTML=="object"&&"__html"in e.dangerouslySetInnerHTML))throw Error(M(61))}if(e.style!=null&&typeof e.style!="object")throw Error(M(62))}}function Su(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 ku(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var xu=null,Vo=null,Uo=null;function Ug(t){if(t=yi(t)){if(typeof xu!="function")throw Error(M(280));var e=t.stateNode;e&&(e=ga(e),xu(t.stateNode,t.type,e))}}function _g(t){Vo?Uo?Uo.push(t):Uo=[t]:Vo=t}function Yg(){if(Vo){var t=Vo,e=Uo;if(Uo=Vo=null,Ug(t),e)for(t=0;t<e.length;t++)Ug(e[t])}}function Cu(t,e){return t(e)}function Jg(t,e,n,o,r){return t(e,n,o,r)}function Eu(){}var Kg=Cu,io=!1,Nu=!1;function Au(){(Vo!==null||Uo!==null)&&(Eu(),Yg())}function kx(t,e,n){if(Nu)return t(e,n);Nu=!0;try{return Kg(t,e,n)}finally{Nu=!1,Au()}}function Xr(t,e){var n=t.stateNode;if(n===null)return null;var o=ga(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(M(231,e,typeof n));return n}var Du=!1;if(Yt)try{var ei={};Object.defineProperty(ei,"passive",{get:function(){Du=!0}}),window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch{Du=!1}function xx(t,e,n,o,r,i,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(u){this.onError(u)}}var ti=!1,Xs=null,ea=!1,Ru=null,Cx={onError:function(t){ti=!0,Xs=t}};function Ex(t,e,n,o,r,i,s,a,l){ti=!1,Xs=null,xx.apply(Cx,arguments)}function Nx(t,e,n,o,r,i,s,a,l){if(Ex.apply(this,arguments),ti){if(ti){var c=Xs;ti=!1,Xs=null}else throw Error(M(198));ea||(ea=!0,Ru=c)}}function so(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 Wg(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 qg(t){if(so(t)!==t)throw Error(M(188))}function Ax(t){var e=t.alternate;if(!e){if(e=so(t),e===null)throw Error(M(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 qg(r),t;if(i===o)return qg(r),e;i=i.sibling}throw Error(M(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(M(189))}}if(n.alternate!==o)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?t:e}function Gg(t){if(t=Ax(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 Qg(t,e){for(var n=t.alternate;e!==null;){if(e===t||e===n)return!0;e=e.return}return!1}var Zg,Ou,Xg,ey,Tu=!1,Nt=[],vn=null,$n=null,Sn=null,ni=new Map,oi=new Map,ri=[],ty="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 Mu(t,e,n,o,r){return{blockedOn:t,domEventName:e,eventSystemFlags:n|16,nativeEvent:r,targetContainers:[o]}}function ny(t,e){switch(t){case"focusin":case"focusout":vn=null;break;case"dragenter":case"dragleave":$n=null;break;case"mouseover":case"mouseout":Sn=null;break;case"pointerover":case"pointerout":ni.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":oi.delete(e.pointerId)}}function ii(t,e,n,o,r,i){return t===null||t.nativeEvent!==i?(t=Mu(e,n,o,r,i),e!==null&&(e=yi(e),e!==null&&Ou(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 vn=ii(vn,t,e,n,o,r),!0;case"dragenter":return $n=ii($n,t,e,n,o,r),!0;case"mouseover":return Sn=ii(Sn,t,e,n,o,r),!0;case"pointerover":var i=r.pointerId;return ni.set(i,ii(ni.get(i)||null,t,e,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,oi.set(i,ii(oi.get(i)||null,t,e,n,o,r)),!0}return!1}function Rx(t){var e=ao(t.target);if(e!==null){var n=so(e);if(n!==null){if(e=n.tag,e===13){if(e=Wg(n),e!==null){t.blockedOn=e,ey(t.lanePriority,function(){ke.unstable_runWithPriority(t.priority,function(){Xg(n)})});return}}else if(e===3&&n.stateNode.hydrate){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ta(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Bu(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null)return e=yi(n),e!==null&&Ou(e),t.blockedOn=n,!1;e.shift()}return!0}function oy(t,e,n){ta(t)&&n.delete(e)}function Ox(){for(Tu=!1;0<Nt.length;){var t=Nt[0];if(t.blockedOn!==null){t=yi(t.blockedOn),t!==null&&Zg(t);break}for(var e=t.targetContainers;0<e.length;){var n=Bu(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null){t.blockedOn=n;break}e.shift()}t.blockedOn===null&&Nt.shift()}vn!==null&&ta(vn)&&(vn=null),$n!==null&&ta($n)&&($n=null),Sn!==null&&ta(Sn)&&(Sn=null),ni.forEach(oy),oi.forEach(oy)}function si(t,e){t.blockedOn===e&&(t.blockedOn=null,Tu||(Tu=!0,ke.unstable_scheduleCallback(ke.unstable_NormalPriority,Ox)))}function ry(t){function e(r){return si(r,t)}if(0<Nt.length){si(Nt[0],t);for(var n=1;n<Nt.length;n++){var o=Nt[n];o.blockedOn===t&&(o.blockedOn=null)}}for(vn!==null&&si(vn,t),$n!==null&&si($n,t),Sn!==null&&si(Sn,t),ni.forEach(e),oi.forEach(e),n=0;n<ri.length;n++)o=ri[n],o.blockedOn===t&&(o.blockedOn=null);for(;0<ri.length&&(n=ri[0],n.blockedOn===null);)Rx(n),n.blockedOn===null&&ri.shift()}function na(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var _o={animationend:na("Animation","AnimationEnd"),animationiteration:na("Animation","AnimationIteration"),animationstart:na("Animation","AnimationStart"),transitionend:na("Transition","TransitionEnd")},ju={},iy={};Yt&&(iy=document.createElement("div").style,"AnimationEvent"in window||(delete _o.animationend.animation,delete _o.animationiteration.animation,delete _o.animationstart.animation),"TransitionEvent"in window||delete _o.transitionend.transition);function oa(t){if(ju[t])return ju[t];if(!_o[t])return t;var e=_o[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in iy)return ju[t]=e[n];return t}var sy=oa("animationend"),ay=oa("animationiteration"),ly=oa("animationstart"),cy=oa("transitionend"),uy=new Map,Pu=new Map,Tx=["abort","abort",sy,"animationEnd",ay,"animationIteration",ly,"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",cy,"transitionEnd","waiting","waiting"];function Lu(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)),Pu.set(o,e),uy.set(o,r),no(r,[o])}}var Mx=ke.unstable_now;Mx();var se=8;function Yo(t){if(1&t)return se=15,1;if(2&t)return se=14,2;if(4&t)return se=13,4;var e=24&t;return e!==0?(se=12,e):t&32?(se=11,32):(e=192&t,e!==0?(se=10,e):t&256?(se=9,256):(e=3584&t,e!==0?(se=8,e):t&4096?(se=7,4096):(e=4186112&t,e!==0?(se=6,e):(e=62914560&t,e!==0?(se=5,e):t&67108864?(se=4,67108864):t&134217728?(se=3,134217728):(e=805306368&t,e!==0?(se=2,e):1073741824&t?(se=1,1073741824):(se=8,t))))))}function jx(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 Px(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(M(358,t))}}function ai(t,e){var n=t.pendingLanes;if(n===0)return se=0;var o=0,r=0,i=t.expiredLanes,s=t.suspendedLanes,a=t.pingedLanes;if(i!==0)o=i,r=se=15;else if(i=n&134217727,i!==0){var l=i&~s;l!==0?(o=Yo(l),r=se):(a&=i,a!==0&&(o=Yo(a),r=se))}else i=n&~s,i!==0?(o=Yo(i),r=se):a!==0&&(o=Yo(a),r=se);if(o===0)return 0;if(o=31-kn(o),o=n&((0>o?0:1<<o)<<1)-1,e!==0&&e!==o&&!(e&s)){if(Yo(e),r<=se)return e;se=r}if(e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=o;0<e;)n=31-kn(e),r=1<<n,o|=t[n],e&=~r;return o}function dy(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function ra(t,e){switch(t){case 15:return 1;case 14:return 2;case 12:return t=Jo(24&~e),t===0?ra(10,e):t;case 10:return t=Jo(192&~e),t===0?ra(8,e):t;case 8:return t=Jo(3584&~e),t===0&&(t=Jo(4186112&~e),t===0&&(t=512)),t;case 2:return e=Jo(805306368&~e),e===0&&(e=268435456),e}throw Error(M(358,t))}function Jo(t){return t&-t}function Iu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ia(t,e,n){t.pendingLanes|=e;var o=e-1;t.suspendedLanes&=o,t.pingedLanes&=o,t=t.eventTimes,e=31-kn(e),t[e]=n}var kn=Math.clz32?Math.clz32:zx,Lx=Math.log,Ix=Math.LN2;function zx(t){return t===0?32:31-(Lx(t)/Ix|0)|0}var Bx=ke.unstable_UserBlockingPriority,Fx=ke.unstable_runWithPriority,sa=!0;function Hx(t,e,n,o){io||Eu();var r=zu,i=io;io=!0;try{Jg(r,t,e,n,o)}finally{(io=i)||Au()}}function Vx(t,e,n,o){Fx(Bx,zu.bind(null,t,e,n,o))}function zu(t,e,n,o){if(sa){var r;if((r=(e&4)===0)&&0<Nt.length&&-1<ty.indexOf(t))t=Mu(null,t,e,n,o),Nt.push(t);else{var i=Bu(t,e,n,o);if(i===null)r&&ny(t,o);else{if(r){if(-1<ty.indexOf(t)){t=Mu(i,t,e,n,o),Nt.push(t);return}if(Dx(i,t,e,n,o))return;ny(t,o)}Fy(t,e,o,null,n)}}}}function Bu(t,e,n,o){var r=ku(o);if(r=ao(r),r!==null){var i=so(r);if(i===null)r=null;else{var s=i.tag;if(s===13){if(r=Wg(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 Fy(t,e,o,r,n),null}var xn=null,Fu=null,aa=null;function my(){if(aa)return aa;var t,e=Fu,n=e.length,o,r="value"in xn?xn.value:xn.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 aa=r.slice(t,1<o?1-o:void 0)}function la(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 ca(){return!0}function fy(){return!1}function tt(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)?ca:fy,this.isPropagationStopped=fy,this}return de(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=ca)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ca)},persist:function(){},isPersistent:ca}),e}var Ko={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hu=tt(Ko),li=de({},Ko,{view:0,detail:0}),Ux=tt(li),Vu,Uu,ci,ua=de({},li,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yu,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!==ci&&(ci&&t.type==="mousemove"?(Vu=t.screenX-ci.screenX,Uu=t.screenY-ci.screenY):Uu=Vu=0,ci=t),Vu)},movementY:function(t){return"movementY"in t?t.movementY:Uu}}),py=tt(ua),_x=de({},ua,{dataTransfer:0}),Yx=tt(_x),Jx=de({},li,{relatedTarget:0}),_u=tt(Jx),Kx=de({},Ko,{animationName:0,elapsedTime:0,pseudoElement:0}),Wx=tt(Kx),qx=de({},Ko,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Gx=tt(qx),Qx=de({},Ko,{data:0}),hy=tt(Qx),Zx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xx={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"},eC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tC(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=eC[t])?!!e[t]:!1}function Yu(){return tC}var nC=de({},li,{key:function(t){if(t.key){var e=Zx[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=la(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Xx[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yu,charCode:function(t){return t.type==="keypress"?la(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?la(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),oC=tt(nC),rC=de({},ua,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gy=tt(rC),iC=de({},li,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yu}),sC=tt(iC),aC=de({},Ko,{propertyName:0,elapsedTime:0,pseudoElement:0}),lC=tt(aC),cC=de({},ua,{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}),uC=tt(cC),dC=[9,13,27,32],Ju=Yt&&"CompositionEvent"in window,ui=null;Yt&&"documentMode"in document&&(ui=document.documentMode);var mC=Yt&&"TextEvent"in window&&!ui,yy=Yt&&(!Ju||ui&&8<ui&&11>=ui),by=" ",wy=!1;function vy(t,e){switch(t){case"keyup":return dC.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $y(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Wo=!1;function fC(t,e){switch(t){case"compositionend":return $y(e);case"keypress":return e.which!==32?null:(wy=!0,by);case"textInput":return t=e.data,t===by&&wy?null:t;default:return null}}function pC(t,e){if(Wo)return t==="compositionend"||!Ju&&vy(t,e)?(t=my(),aa=Fu=xn=null,Wo=!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 yy&&e.locale!=="ko"?null:e.data;default:return null}}var hC={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 Sy(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!hC[t.type]:e==="textarea"}function ky(t,e,n,o){_g(o),e=ma(e,"onChange"),0<e.length&&(n=new Hu("onChange","change",null,n,o),t.push({event:n,listeners:e}))}var di=null,mi=null;function gC(t){Py(t,0)}function da(t){var e=Xo(t);if(Tg(e))return t}function yC(t,e){if(t==="change")return e}var xy=!1;if(Yt){var Ku;if(Yt){var Wu="oninput"in document;if(!Wu){var Cy=document.createElement("div");Cy.setAttribute("oninput","return;"),Wu=typeof Cy.oninput=="function"}Ku=Wu}else Ku=!1;xy=Ku&&(!document.documentMode||9<document.documentMode)}function Ey(){di&&(di.detachEvent("onpropertychange",Ny),mi=di=null)}function Ny(t){if(t.propertyName==="value"&&da(mi)){var e=[];if(ky(e,mi,t,ku(t)),t=gC,io)t(e);else{io=!0;try{Cu(t,e)}finally{io=!1,Au()}}}}function bC(t,e,n){t==="focusin"?(Ey(),di=e,mi=n,di.attachEvent("onpropertychange",Ny)):t==="focusout"&&Ey()}function wC(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return da(mi)}function vC(t,e){if(t==="click")return da(e)}function $C(t,e){if(t==="input"||t==="change")return da(e)}function SC(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ct=typeof Object.is=="function"?Object.is:SC,kC=Object.prototype.hasOwnProperty;function fi(t,e){if(ct(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(!kC.call(e,n[o])||!ct(t[n[o]],e[n[o]]))return!1;return!0}function Ay(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Dy(t,e){var n=Ay(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=Ay(n)}}function Ry(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ry(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Oy(){for(var t=window,e=Qs();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Qs(t.document)}return e}function qu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var xC=Yt&&"documentMode"in document&&11>=document.documentMode,qo=null,Gu=null,pi=null,Qu=!1;function Ty(t,e,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qu||qo==null||qo!==Qs(o)||(o=qo,"selectionStart"in o&&qu(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}),pi&&fi(pi,o)||(pi=o,o=ma(Gu,"onSelect"),0<o.length&&(e=new Hu("onSelect","select",null,e,n),t.push({event:e,listeners:o}),e.target=qo)))}Lu("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),Lu("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),Lu(Tx,2);for(var My="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Zu=0;Zu<My.length;Zu++)Pu.set(My[Zu],0);Bo("onMouseEnter",["mouseout","mouseover"]),Bo("onMouseLeave",["mouseout","mouseover"]),Bo("onPointerEnter",["pointerout","pointerover"]),Bo("onPointerLeave",["pointerout","pointerover"]),no("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),no("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),no("onBeforeInput",["compositionend","keypress","textInput","paste"]),no("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),no("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),no("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),CC=new Set("cancel close invalid load scroll toggle".split(" ").concat(hi));function jy(t,e,n){var o=t.type||"unknown-event";t.currentTarget=n,Nx(o,e,void 0,t),t.currentTarget=null}function Py(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var o=t[n],r=o.event;o=o.listeners;e:{var i=void 0;if(e)for(var s=o.length-1;0<=s;s--){var a=o[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&r.isPropagationStopped())break e;jy(r,a,c),i=l}else for(s=0;s<o.length;s++){if(a=o[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&r.isPropagationStopped())break e;jy(r,a,c),i=l}}}if(ea)throw t=Ru,ea=!1,Ru=null,t}function le(t,e){var n=Jy(e),o=t+"__bubble";n.has(o)||(By(e,t,2,!1),n.add(o))}var Ly="_reactListening"+Math.random().toString(36).slice(2);function Iy(t){t[Ly]||(t[Ly]=!0,Cg.forEach(function(e){CC.has(e)||zy(e,!1,t,null),zy(e,!0,t,null)}))}function zy(t,e,n,o){var r=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,i=n;t==="selectionchange"&&n.nodeType!==9&&(i=n.ownerDocument);var s=Jy(i),a=t+"__"+(e?"capture":"bubble");s.has(a)||(e&&(r|=4),By(i,t,r,e),s.add(a))}function By(t,e,n,o){var r=Pu.get(e);switch(r===void 0?2:r){case 0:r=Hx;break;case 1:r=Vx;break;default:r=zu}n=r.bind(null,e,n,t),r=void 0,!Du||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 Fy(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=ao(a),s===null)return;if(l=s.tag,l===5||l===6){o=i=s;continue e}a=a.parentNode}}o=o.return}kx(function(){var c=i,u=ku(n),d=[];e:{var m=uy.get(t);if(m!==void 0){var f=Hu,p=t;switch(t){case"keypress":if(la(n)===0)break e;case"keydown":case"keyup":f=oC;break;case"focusin":p="focus",f=_u;break;case"focusout":p="blur",f=_u;break;case"beforeblur":case"afterblur":f=_u;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=py;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Yx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=sC;break;case sy:case ay:case ly:f=Wx;break;case cy:f=lC;break;case"scroll":f=Ux;break;case"wheel":f=uC;break;case"copy":case"cut":case"paste":f=Gx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=gy}var g=(e&4)!==0,h=!g&&t==="scroll",y=g?m!==null?m+"Capture":null:m;g=[];for(var w=c,$;w!==null;){$=w;var v=$.stateNode;if($.tag===5&&v!==null&&($=v,y!==null&&(v=Xr(w,y),v!=null&&g.push(gi(w,v,$)))),h)break;w=w.return}0<g.length&&(m=new f(m,p,null,n,u),d.push({event:m,listeners:g}))}}if(!(e&7)){e:{if(m=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",m&&!(e&16)&&(p=n.relatedTarget||n.fromElement)&&(ao(p)||p[Zo]))break e;if((f||m)&&(m=u.window===u?u:(m=u.ownerDocument)?m.defaultView||m.parentWindow:window,f?(p=n.relatedTarget||n.toElement,f=c,p=p?ao(p):null,p!==null&&(h=so(p),p!==h||p.tag!==5&&p.tag!==6)&&(p=null)):(f=null,p=c),f!==p)){if(g=py,v="onMouseLeave",y="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(g=gy,v="onPointerLeave",y="onPointerEnter",w="pointer"),h=f==null?m:Xo(f),$=p==null?m:Xo(p),m=new g(v,w+"leave",f,n,u),m.target=h,m.relatedTarget=$,v=null,ao(u)===c&&(g=new g(y,w+"enter",p,n,u),g.target=$,g.relatedTarget=h,v=g),h=v,f&&p)t:{for(g=f,y=p,w=0,$=g;$;$=Go($))w++;for($=0,v=y;v;v=Go(v))$++;for(;0<w-$;)g=Go(g),w--;for(;0<$-w;)y=Go(y),$--;for(;w--;){if(g===y||y!==null&&g===y.alternate)break t;g=Go(g),y=Go(y)}g=null}else g=null;f!==null&&Hy(d,m,f,g,!1),p!==null&&h!==null&&Hy(d,h,p,g,!0)}}e:{if(m=c?Xo(c):window,f=m.nodeName&&m.nodeName.toLowerCase(),f==="select"||f==="input"&&m.type==="file")var x=yC;else if(Sy(m))if(xy)x=$C;else{x=wC;var S=bC}else(f=m.nodeName)&&f.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(x=vC);if(x&&(x=x(t,c))){ky(d,x,n,u);break e}S&&S(t,m,c),t==="focusout"&&(S=m._wrapperState)&&S.controlled&&m.type==="number"&&gu(m,"number",m.value)}switch(S=c?Xo(c):window,t){case"focusin":(Sy(S)||S.contentEditable==="true")&&(qo=S,Gu=c,pi=null);break;case"focusout":pi=Gu=qo=null;break;case"mousedown":Qu=!0;break;case"contextmenu":case"mouseup":case"dragend":Qu=!1,Ty(d,n,u);break;case"selectionchange":if(xC)break;case"keydown":case"keyup":Ty(d,n,u)}var C;if(Ju)e:{switch(t){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Wo?vy(t,n)&&(A="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(yy&&n.locale!=="ko"&&(Wo||A!=="onCompositionStart"?A==="onCompositionEnd"&&Wo&&(C=my()):(xn=u,Fu="value"in xn?xn.value:xn.textContent,Wo=!0)),S=ma(c,A),0<S.length&&(A=new hy(A,t,null,n,u),d.push({event:A,listeners:S}),C?A.data=C:(C=$y(n),C!==null&&(A.data=C)))),(C=mC?fC(t,n):pC(t,n))&&(c=ma(c,"onBeforeInput"),0<c.length&&(u=new hy("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=C))}Py(d,e)})}function gi(t,e,n){return{instance:t,listener:e,currentTarget:n}}function ma(t,e){for(var n=e+"Capture",o=[];t!==null;){var r=t,i=r.stateNode;r.tag===5&&i!==null&&(r=i,i=Xr(t,n),i!=null&&o.unshift(gi(t,i,r)),i=Xr(t,e),i!=null&&o.push(gi(t,i,r))),t=t.return}return o}function Go(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Hy(t,e,n,o,r){for(var i=e._reactName,s=[];n!==null&&n!==o;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===o)break;a.tag===5&&c!==null&&(a=c,r?(l=Xr(n,i),l!=null&&s.unshift(gi(n,l,a))):r||(l=Xr(n,i),l!=null&&s.push(gi(n,l,a)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}function fa(){}var Xu=null,ed=null;function Vy(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function td(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 Uy=typeof setTimeout=="function"?setTimeout:void 0,EC=typeof clearTimeout=="function"?clearTimeout:void 0;function nd(t){t.nodeType===1?t.textContent="":t.nodeType===9&&(t=t.body,t!=null&&(t.textContent=""))}function Qo(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break}return t}function _y(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 od=0;function NC(t){return{$$typeof:cu,toString:t,valueOf:t}}var pa=Math.random().toString(36).slice(2),Cn="__reactFiber$"+pa,ha="__reactProps$"+pa,Zo="__reactContainer$"+pa,Yy="__reactEvents$"+pa;function ao(t){var e=t[Cn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Zo]||n[Cn]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=_y(t);t!==null;){if(n=t[Cn])return n;t=_y(t)}return e}t=n,n=t.parentNode}return null}function yi(t){return t=t[Cn]||t[Zo],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Xo(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(M(33))}function ga(t){return t[ha]||null}function Jy(t){var e=t[Yy];return e===void 0&&(e=t[Yy]=new Set),e}var rd=[],er=-1;function En(t){return{current:t}}function ce(t){0>er||(t.current=rd[er],rd[er]=null,er--)}function fe(t,e){er++,rd[er]=t.current,t.current=e}var Nn={},je=En(Nn),Je=En(!1),lo=Nn;function tr(t,e){var n=t.type.contextTypes;if(!n)return Nn;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 Ke(t){return t=t.childContextTypes,t!=null}function ya(){ce(Je),ce(je)}function Ky(t,e,n){if(je.current!==Nn)throw Error(M(168));fe(je,e),fe(Je,n)}function Wy(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(M(108,Fo(e)||"Unknown",r));return de({},n,o)}function ba(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Nn,lo=je.current,fe(je,t),fe(Je,Je.current),!0}function qy(t,e,n){var o=t.stateNode;if(!o)throw Error(M(169));n?(t=Wy(t,e,lo),o.__reactInternalMemoizedMergedChildContext=t,ce(Je),ce(je),fe(je,t)):ce(Je),fe(Je,n)}var id=null,co=null,AC=ke.unstable_runWithPriority,sd=ke.unstable_scheduleCallback,ad=ke.unstable_cancelCallback,DC=ke.unstable_shouldYield,Gy=ke.unstable_requestPaint,ld=ke.unstable_now,RC=ke.unstable_getCurrentPriorityLevel,wa=ke.unstable_ImmediatePriority,Qy=ke.unstable_UserBlockingPriority,Zy=ke.unstable_NormalPriority,Xy=ke.unstable_LowPriority,e0=ke.unstable_IdlePriority,cd={},OC=Gy!==void 0?Gy:function(){},Jt=null,va=null,ud=!1,t0=ld(),Pe=1e4>t0?ld:function(){return ld()-t0};function nr(){switch(RC()){case wa:return 99;case Qy:return 98;case Zy:return 97;case Xy:return 96;case e0:return 95;default:throw Error(M(332))}}function n0(t){switch(t){case 99:return wa;case 98:return Qy;case 97:return Zy;case 96:return Xy;case 95:return e0;default:throw Error(M(332))}}function uo(t,e){return t=n0(t),AC(t,e)}function bi(t,e,n){return t=n0(t),sd(t,e,n)}function At(){if(va!==null){var t=va;va=null,ad(t)}o0()}function o0(){if(!ud&&Jt!==null){ud=!0;var t=0;try{var e=Jt;uo(99,function(){for(;t<e.length;t++){var n=e[t];do n=n(!0);while(n!==null)}}),Jt=null}catch(n){throw Jt!==null&&(Jt=Jt.slice(t+1)),sd(wa,At),n}finally{ud=!1}}}var TC=oo.ReactCurrentBatchConfig;function vt(t,e){if(t&&t.defaultProps){e=de({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var $a=En(null),Sa=null,or=null,ka=null;function dd(){ka=or=Sa=null}function md(t){var e=$a.current;ce($a),t.type._context._currentValue=e}function r0(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 rr(t,e){Sa=t,ka=or=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&($t=!0),t.firstContext=null)}function ut(t,e){if(ka!==t&&e!==!1&&e!==0)if((typeof e!="number"||e===1073741823)&&(ka=t,e=1073741823),e={context:t,observedBits:e,next:null},or===null){if(Sa===null)throw Error(M(308));or=e,Sa.dependencies={lanes:0,firstContext:e,responders:null}}else or=or.next=e;return t._currentValue}var An=!1;function fd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function i0(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 Dn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Rn(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 s0(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 wi(t,e,n,o){var r=t.updateQueue;An=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var u=t.alternate;if(u!==null){u=u.updateQueue;var d=u.lastBaseUpdate;d!==s&&(d===null?u.firstBaseUpdate=c:d.next=c,u.lastBaseUpdate=l)}}if(i!==null){d=r.baseState,s=0,u=c=l=null;do{a=i.lane;var m=i.eventTime;if((o&a)===a){u!==null&&(u=u.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=de({},d,a);break e;case 2:An=!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},u===null?(c=u=m,l=d):u=u.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(!0);u===null&&(l=d),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,Oi|=s,t.lanes=s,t.memoizedState=d}}function a0(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(M(191,r));r.call(o)}}}var l0=new Ys.Component().refs;function xa(t,e,n,o){e=t.memoizedState,n=n(o,e),n=n==null?e:de({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Ca={isMounted:function(t){return(t=t._reactInternals)?so(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var o=nt(),r=Mn(t),i=Dn(o,r);i.payload=e,n!=null&&(i.callback=n),Rn(t,i),jn(t,r,o)},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var o=nt(),r=Mn(t),i=Dn(o,r);i.tag=1,i.payload=e,n!=null&&(i.callback=n),Rn(t,i),jn(t,r,o)},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=nt(),o=Mn(t),r=Dn(n,o);r.tag=2,e!=null&&(r.callback=e),Rn(t,r),jn(t,o,n)}};function c0(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?!fi(n,o)||!fi(r,i):!0}function u0(t,e,n){var o=!1,r=Nn,i=e.contextType;return typeof i=="object"&&i!==null?i=ut(i):(r=Ke(e)?lo:je.current,o=e.contextTypes,i=(o=o!=null)?tr(t,r):Nn),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Ca,t.stateNode=e,e._reactInternals=t,o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=i),e}function d0(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&&Ca.enqueueReplaceState(e,e.state,null)}function pd(t,e,n,o){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs=l0,fd(t);var i=e.contextType;typeof i=="object"&&i!==null?r.context=ut(i):(i=Ke(e)?lo:je.current,r.context=tr(t,i)),wi(t,n,r,o),r.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(xa(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&&Ca.enqueueReplaceState(r,r.state,null),wi(t,n,r,o),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4)}var Ea=Array.isArray;function vi(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(M(309));var o=n.stateNode}if(!o)throw Error(M(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===l0&&(s=o.refs={}),i===null?delete s[r]:s[r]=i},e._stringRef=r,e)}if(typeof t!="string")throw Error(M(284));if(!n._owner)throw Error(M(290,t))}return t}function Na(t,e){if(t.type!=="textarea")throw Error(M(31,Object.prototype.toString.call(e)==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":e))}function m0(t){function e(h,y){if(t){var w=h.lastEffect;w!==null?(w.nextEffect=y,h.lastEffect=y):h.firstEffect=h.lastEffect=y,y.nextEffect=null,y.flags=8}}function n(h,y){if(!t)return null;for(;y!==null;)e(h,y),y=y.sibling;return null}function o(h,y){for(h=new Map;y!==null;)y.key!==null?h.set(y.key,y):h.set(y.index,y),y=y.sibling;return h}function r(h,y){return h=In(h,y),h.index=0,h.sibling=null,h}function i(h,y,w){return h.index=w,t?(w=h.alternate,w!==null?(w=w.index,w<y?(h.flags=2,y):w):(h.flags=2,y)):y}function s(h){return t&&h.alternate===null&&(h.flags=2),h}function a(h,y,w,$){return y===null||y.tag!==6?(y=Gd(w,h.mode,$),y.return=h,y):(y=r(y,w),y.return=h,y)}function l(h,y,w,$){return y!==null&&y.elementType===w.type?($=r(y,w.props),$.ref=vi(h,y,w),$.return=h,$):($=Ya(w.type,w.key,w.props,null,h.mode,$),$.ref=vi(h,y,w),$.return=h,$)}function c(h,y,w,$){return y===null||y.tag!==4||y.stateNode.containerInfo!==w.containerInfo||y.stateNode.implementation!==w.implementation?(y=Qd(w,h.mode,$),y.return=h,y):(y=r(y,w.children||[]),y.return=h,y)}function u(h,y,w,$,v){return y===null||y.tag!==7?(y=mr(w,h.mode,$,v),y.return=h,y):(y=r(y,w),y.return=h,y)}function d(h,y,w){if(typeof y=="string"||typeof y=="number")return y=Gd(""+y,h.mode,w),y.return=h,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Jr:return w=Ya(y.type,y.key,y.props,null,h.mode,w),w.ref=vi(h,null,y),w.return=h,w;case ro:return y=Qd(y,h.mode,w),y.return=h,y}if(Ea(y)||qr(y))return y=mr(y,h.mode,w,null),y.return=h,y;Na(h,y)}return null}function m(h,y,w,$){var v=y!==null?y.key:null;if(typeof w=="string"||typeof w=="number")return v!==null?null:a(h,y,""+w,$);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Jr:return w.key===v?w.type===bn?u(h,y,w.props.children,$,v):l(h,y,w,$):null;case ro:return w.key===v?c(h,y,w,$):null}if(Ea(w)||qr(w))return v!==null?null:u(h,y,w,$,null);Na(h,w)}return null}function f(h,y,w,$,v){if(typeof $=="string"||typeof $=="number")return h=h.get(w)||null,a(y,h,""+$,v);if(typeof $=="object"&&$!==null){switch($.$$typeof){case Jr:return h=h.get($.key===null?w:$.key)||null,$.type===bn?u(y,h,$.props.children,v,$.key):l(y,h,$,v);case ro:return h=h.get($.key===null?w:$.key)||null,c(y,h,$,v)}if(Ea($)||qr($))return h=h.get(w)||null,u(y,h,$,v,null);Na(y,$)}return null}function p(h,y,w,$){for(var v=null,x=null,S=y,C=y=0,A=null;S!==null&&C<w.length;C++){S.index>C?(A=S,S=null):A=S.sibling;var N=m(h,S,w[C],$);if(N===null){S===null&&(S=A);break}t&&S&&N.alternate===null&&e(h,S),y=i(N,y,C),x===null?v=N:x.sibling=N,x=N,S=A}if(C===w.length)return n(h,S),v;if(S===null){for(;C<w.length;C++)S=d(h,w[C],$),S!==null&&(y=i(S,y,C),x===null?v=S:x.sibling=S,x=S);return v}for(S=o(h,S);C<w.length;C++)A=f(S,h,C,w[C],$),A!==null&&(t&&A.alternate!==null&&S.delete(A.key===null?C:A.key),y=i(A,y,C),x===null?v=A:x.sibling=A,x=A);return t&&S.forEach(function(F){return e(h,F)}),v}function g(h,y,w,$){var v=qr(w);if(typeof v!="function")throw Error(M(150));if(w=v.call(w),w==null)throw Error(M(151));for(var x=v=null,S=y,C=y=0,A=null,N=w.next();S!==null&&!N.done;C++,N=w.next()){S.index>C?(A=S,S=null):A=S.sibling;var F=m(h,S,N.value,$);if(F===null){S===null&&(S=A);break}t&&S&&F.alternate===null&&e(h,S),y=i(F,y,C),x===null?v=F:x.sibling=F,x=F,S=A}if(N.done)return n(h,S),v;if(S===null){for(;!N.done;C++,N=w.next())N=d(h,N.value,$),N!==null&&(y=i(N,y,C),x===null?v=N:x.sibling=N,x=N);return v}for(S=o(h,S);!N.done;C++,N=w.next())N=f(S,h,C,N.value,$),N!==null&&(t&&N.alternate!==null&&S.delete(N.key===null?C:N.key),y=i(N,y,C),x===null?v=N:x.sibling=N,x=N);return t&&S.forEach(function(J){return e(h,J)}),v}return function(h,y,w,$){var v=typeof w=="object"&&w!==null&&w.type===bn&&w.key===null;v&&(w=w.props.children);var x=typeof w=="object"&&w!==null;if(x)switch(w.$$typeof){case Jr:e:{for(x=w.key,v=y;v!==null;){if(v.key===x){switch(v.tag){case 7:if(w.type===bn){n(h,v.sibling),y=r(v,w.props.children),y.return=h,h=y;break e}break;default:if(v.elementType===w.type){n(h,v.sibling),y=r(v,w.props),y.ref=vi(h,v,w),y.return=h,h=y;break e}}n(h,v);break}else e(h,v);v=v.sibling}w.type===bn?(y=mr(w.props.children,h.mode,$,w.key),y.return=h,h=y):($=Ya(w.type,w.key,w.props,null,h.mode,$),$.ref=vi(h,y,w),$.return=h,h=$)}return s(h);case ro:e:{for(v=w.key;y!==null;){if(y.key===v)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(h,y.sibling),y=r(y,w.children||[]),y.return=h,h=y;break e}else{n(h,y);break}else e(h,y);y=y.sibling}y=Qd(w,h.mode,$),y.return=h,h=y}return s(h)}if(typeof w=="string"||typeof w=="number")return w=""+w,y!==null&&y.tag===6?(n(h,y.sibling),y=r(y,w),y.return=h,h=y):(n(h,y),y=Gd(w,h.mode,$),y.return=h,h=y),s(h);if(Ea(w))return p(h,y,w,$);if(qr(w))return g(h,y,w,$);if(x&&Na(h,w),typeof w>"u"&&!v)switch(h.tag){case 1:case 22:case 0:case 11:case 15:throw Error(M(152,Fo(h.type)||"Component"))}return n(h,y)}}var Aa=m0(!0),f0=m0(!1),$i={},Dt=En($i),Si=En($i),ki=En($i);function mo(t){if(t===$i)throw Error(M(174));return t}function hd(t,e){switch(fe(ki,e),fe(Si,t),fe(Dt,$i),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:vu(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=vu(e,t)}ce(Dt),fe(Dt,e)}function ir(){ce(Dt),ce(Si),ce(ki)}function p0(t){mo(ki.current);var e=mo(Dt.current),n=vu(e,t.type);e!==n&&(fe(Si,t),fe(Dt,n))}function gd(t){Si.current===t&&(ce(Dt),ce(Si))}var pe=En(0);function Da(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 Kt=null,On=null,Rt=!1;function h0(t,e){var n=ft(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 g0(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 yd(t){if(Rt){var e=On;if(e){var n=e;if(!g0(t,e)){if(e=Qo(n.nextSibling),!e||!g0(t,e)){t.flags=t.flags&-1025|2,Rt=!1,Kt=t;return}h0(Kt,n)}Kt=t,On=Qo(e.firstChild)}else t.flags=t.flags&-1025|2,Rt=!1,Kt=t}}function y0(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Kt=t}function Ra(t){if(t!==Kt)return!1;if(!Rt)return y0(t),Rt=!0,!1;var e=t.type;if(t.tag!==5||e!=="head"&&e!=="body"&&!td(e,t.memoizedProps))for(e=On;e;)h0(t,e),e=Qo(e.nextSibling);if(y0(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(M(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){On=Qo(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}On=null}}else On=Kt?Qo(t.stateNode.nextSibling):null;return!0}function bd(){On=Kt=null,Rt=!1}var sr=[];function wd(){for(var t=0;t<sr.length;t++)sr[t]._workInProgressVersionPrimary=null;sr.length=0}var xi=oo.ReactCurrentDispatcher,dt=oo.ReactCurrentBatchConfig,Ci=0,ge=null,Le=null,De=null,Oa=!1,Ei=!1;function We(){throw Error(M(321))}function vd(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ct(t[n],e[n]))return!1;return!0}function $d(t,e,n,o,r,i){if(Ci=i,ge=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,xi.current=t===null||t.memoizedState===null?jC:PC,t=n(o,r),Ei){i=0;do{if(Ei=!1,!(25>i))throw Error(M(301));i+=1,De=Le=null,e.updateQueue=null,xi.current=LC,t=n(o,r)}while(Ei)}if(xi.current=Pa,e=Le!==null&&Le.next!==null,Ci=0,De=Le=ge=null,Oa=!1,e)throw Error(M(300));return t}function fo(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return De===null?ge.memoizedState=De=t:De=De.next=t,De}function po(){if(Le===null){var t=ge.alternate;t=t!==null?t.memoizedState:null}else t=Le.next;var e=De===null?ge.memoizedState:De.next;if(e!==null)De=e,Le=t;else{if(t===null)throw Error(M(310));Le=t,t={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},De===null?ge.memoizedState=De=t:De=De.next=t}return De}function Ot(t,e){return typeof e=="function"?e(t):e}function Ni(t){var e=po(),n=e.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=t;var o=Le,r=o.baseQueue,i=n.pending;if(i!==null){if(r!==null){var s=r.next;r.next=i.next,i.next=s}o.baseQueue=r=i,n.pending=null}if(r!==null){r=r.next,o=o.baseState;var a=s=i=null,l=r;do{var c=l.lane;if((Ci&c)===c)a!==null&&(a=a.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),o=l.eagerReducer===t?l.eagerState:t(o,l.action);else{var u={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};a===null?(s=a=u,i=o):a=a.next=u,ge.lanes|=c,Oi|=c}l=l.next}while(l!==null&&l!==r);a===null?i=o:a.next=s,ct(o,e.memoizedState)||($t=!0),e.memoizedState=o,e.baseState=i,e.baseQueue=a,n.lastRenderedState=o}return[e.memoizedState,n.dispatch]}function Ai(t){var e=po(),n=e.queue;if(n===null)throw Error(M(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);ct(i,e.memoizedState)||($t=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,o]}function b0(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=(Ci&t)===t)&&(e._workInProgressVersionPrimary=o,sr.push(e))),t)return n(e._source);throw sr.push(e),Error(M(350))}function w0(t,e,n,o){var r=Ue;if(r===null)throw Error(M(349));var i=e._getVersion,s=i(e._source),a=xi.current,l=a.useState(function(){return b0(r,e,n)}),c=l[1],u=l[0];l=De;var d=t.memoizedState,m=d.refs,f=m.getSnapshot,p=d.source;d=d.subscribe;var g=ge;return t.memoizedState={refs:m,source:e,subscribe:o},a.useEffect(function(){m.getSnapshot=n,m.setSnapshot=c;var h=i(e._source);if(!ct(s,h)){h=n(e._source),ct(u,h)||(c(h),h=Mn(g),r.mutableReadLanes|=h&r.pendingLanes),h=r.mutableReadLanes,r.entangledLanes|=h;for(var y=r.entanglements,w=h;0<w;){var $=31-kn(w),v=1<<$;y[$]|=h,w&=~v}}},[n,e,o]),a.useEffect(function(){return o(e._source,function(){var h=m.getSnapshot,y=m.setSnapshot;try{y(h(e._source));var w=Mn(g);r.mutableReadLanes|=w&r.pendingLanes}catch($){y(function(){throw $})}})},[e,o]),ct(f,n)&&ct(p,e)&&ct(d,o)||(t={pending:null,dispatch:null,lastRenderedReducer:Ot,lastRenderedState:u},t.dispatch=c=Cd.bind(null,ge,t),l.queue=t,l.baseQueue=null,u=b0(r,e,n),l.memoizedState=l.baseState=u),u}function v0(t,e,n){var o=po();return w0(o,t,e,n)}function Di(t){var e=fo();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Ot,lastRenderedState:t},t=t.dispatch=Cd.bind(null,ge,t),[e.memoizedState,t]}function Ta(t,e,n,o){return t={tag:t,create:e,destroy:n,deps:o,next:null},e=ge.updateQueue,e===null?(e={lastEffect:null},ge.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 $0(t){var e=fo();return t={current:t},e.memoizedState=t}function Ma(){return po().memoizedState}function Sd(t,e,n,o){var r=fo();ge.flags|=t,r.memoizedState=Ta(1|e,n,void 0,o===void 0?null:o)}function kd(t,e,n,o){var r=po();o=o===void 0?null:o;var i=void 0;if(Le!==null){var s=Le.memoizedState;if(i=s.destroy,o!==null&&vd(o,s.deps)){Ta(e,n,i,o);return}}ge.flags|=t,r.memoizedState=Ta(1|e,n,i,o)}function S0(t,e){return Sd(516,4,t,e)}function ja(t,e){return kd(516,4,t,e)}function k0(t,e){return kd(4,2,t,e)}function x0(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 C0(t,e,n){return n=n!=null?n.concat([t]):null,kd(4,2,x0.bind(null,e,t),n)}function xd(){}function E0(t,e){var n=po();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&vd(e,o[1])?o[0]:(n.memoizedState=[t,e],t)}function N0(t,e){var n=po();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&vd(e,o[1])?o[0]:(t=t(),n.memoizedState=[t,e],t)}function MC(t,e){var n=nr();uo(98>n?98:n,function(){t(!0)}),uo(97<n?97:n,function(){var o=dt.transition;dt.transition=1;try{t(!1),e()}finally{dt.transition=o}})}function Cd(t,e,n){var o=nt(),r=Mn(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===ge||s!==null&&s===ge)Ei=Oa=!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,ct(l,a))return}catch{}finally{}jn(t,r,o)}}var Pa={readContext:ut,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useOpaqueIdentifier:We,unstable_isNewReconciler:!1},jC={readContext:ut,useCallback:function(t,e){return fo().memoizedState=[t,e===void 0?null:e],t},useContext:ut,useEffect:S0,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Sd(4,2,x0.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Sd(4,2,t,e)},useMemo:function(t,e){var n=fo();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var o=fo();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=Cd.bind(null,ge,t),[o.memoizedState,t]},useRef:$0,useState:Di,useDebugValue:xd,useDeferredValue:function(t){var e=Di(t),n=e[0],o=e[1];return S0(function(){var r=dt.transition;dt.transition=1;try{o(t)}finally{dt.transition=r}},[t]),n},useTransition:function(){var t=Di(!1),e=t[0];return t=MC.bind(null,t[1]),$0(t),[t,e]},useMutableSource:function(t,e,n){var o=fo();return o.memoizedState={refs:{getSnapshot:e,setSnapshot:null},source:t,subscribe:n},w0(o,t,e,n)},useOpaqueIdentifier:function(){if(Rt){var t=!1,e=NC(function(){throw t||(t=!0,n("r:"+(od++).toString(36))),Error(M(355))}),n=Di(e)[1];return!(ge.mode&2)&&(ge.flags|=516,Ta(5,function(){n("r:"+(od++).toString(36))},void 0,null)),e}return e="r:"+(od++).toString(36),Di(e),e},unstable_isNewReconciler:!1},PC={readContext:ut,useCallback:E0,useContext:ut,useEffect:ja,useImperativeHandle:C0,useLayoutEffect:k0,useMemo:N0,useReducer:Ni,useRef:Ma,useState:function(){return Ni(Ot)},useDebugValue:xd,useDeferredValue:function(t){var e=Ni(Ot),n=e[0],o=e[1];return ja(function(){var r=dt.transition;dt.transition=1;try{o(t)}finally{dt.transition=r}},[t]),n},useTransition:function(){var t=Ni(Ot)[0];return[Ma().current,t]},useMutableSource:v0,useOpaqueIdentifier:function(){return Ni(Ot)[0]},unstable_isNewReconciler:!1},LC={readContext:ut,useCallback:E0,useContext:ut,useEffect:ja,useImperativeHandle:C0,useLayoutEffect:k0,useMemo:N0,useReducer:Ai,useRef:Ma,useState:function(){return Ai(Ot)},useDebugValue:xd,useDeferredValue:function(t){var e=Ai(Ot),n=e[0],o=e[1];return ja(function(){var r=dt.transition;dt.transition=1;try{o(t)}finally{dt.transition=r}},[t]),n},useTransition:function(){var t=Ai(Ot)[0];return[Ma().current,t]},useMutableSource:v0,useOpaqueIdentifier:function(){return Ai(Ot)[0]},unstable_isNewReconciler:!1},IC=oo.ReactCurrentOwner,$t=!1;function qe(t,e,n,o){e.child=t===null?f0(e,null,n,o):Aa(e,t.child,n,o)}function A0(t,e,n,o,r){n=n.render;var i=e.ref;return rr(e,r),o=$d(t,e,n,o,i,r),t!==null&&!$t?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Wt(t,e,r)):(e.flags|=1,qe(t,e,o,r),e.child)}function D0(t,e,n,o,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!Wd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,R0(t,e,s,o,r,i)):(t=Ya(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:fi,n(r,o)&&t.ref===e.ref)?Wt(t,e,i):(e.flags|=1,t=In(s,o),t.ref=e.ref,t.return=e,e.child=t)}function R0(t,e,n,o,r,i){if(t!==null&&fi(t.memoizedProps,o)&&t.ref===e.ref)if($t=!1,(i&r)!==0)t.flags&16384&&($t=!0);else return e.lanes=t.lanes,Wt(t,e,i);return Nd(t,e,n,o,i)}function Ed(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},_a(e,n);else if(n&1073741824)e.memoizedState={baseLanes:0},_a(e,i!==null?i.baseLanes:n);else return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t},_a(e,t),null;else i!==null?(o=i.baseLanes|n,e.memoizedState=null):o=n,_a(e,o);return qe(t,e,r,n),e.child}function O0(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=128)}function Nd(t,e,n,o,r){var i=Ke(n)?lo:je.current;return i=tr(e,i),rr(e,r),n=$d(t,e,n,o,i,r),t!==null&&!$t?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Wt(t,e,r)):(e.flags|=1,qe(t,e,n,r),e.child)}function T0(t,e,n,o,r){if(Ke(n)){var i=!0;ba(e)}else i=!1;if(rr(e,r),e.stateNode===null)t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),u0(e,n,o),pd(e,n,o,r),o=!0;else if(t===null){var s=e.stateNode,a=e.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=ut(c):(c=Ke(n)?lo:je.current,c=tr(e,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==o||l!==c)&&d0(e,s,o,c),An=!1;var m=e.memoizedState;s.state=m,wi(e,o,s,r),l=e.memoizedState,a!==o||m!==l||Je.current||An?(typeof u=="function"&&(xa(e,n,u,o),l=e.memoizedState),(a=An||c0(e,n,a,o,m,l,c))?(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=c,o=a):(typeof s.componentDidMount=="function"&&(e.flags|=4),o=!1)}else{s=e.stateNode,i0(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:vt(e.type,a),s.props=c,d=e.pendingProps,m=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=ut(l):(l=Ke(n)?lo:je.current,l=tr(e,l));var f=n.getDerivedStateFromProps;(u=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||m!==l)&&d0(e,s,o,l),An=!1,m=e.memoizedState,s.state=m,wi(e,o,s,r);var p=e.memoizedState;a!==d||m!==p||Je.current||An?(typeof f=="function"&&(xa(e,n,f,o),p=e.memoizedState),(c=An||c0(e,n,c,o,m,p,l))?(u||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=c):(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 Ad(t,e,n,o,i,r)}function Ad(t,e,n,o,r,i){O0(t,e);var s=(e.flags&64)!==0;if(!o&&!s)return r&&qy(e,n,!1),Wt(t,e,i);o=e.stateNode,IC.current=e;var a=s&&typeof n.getDerivedStateFromError!="function"?null:o.render();return e.flags|=1,t!==null&&s?(e.child=Aa(e,t.child,null,i),e.child=Aa(e,null,a,i)):qe(t,e,a,i),e.memoizedState=o.state,r&&qy(e,n,!0),e.child}function M0(t){var e=t.stateNode;e.pendingContext?Ky(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Ky(t,e.context,!1),hd(t,e.containerInfo)}var La={dehydrated:null,retryLane:0};function j0(t,e,n){var o=e.pendingProps,r=pe.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),fe(pe,r&1),t===null?(o.fallback!==void 0&&yd(e),t=o.children,r=o.fallback,i?(t=P0(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=La,t):typeof o.unstable_expectedLoadTime=="number"?(t=P0(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=La,e.lanes=33554432,t):(n=qd({mode:"visible",children:t},e.mode,n,null),n.return=e,e.child=n)):t.memoizedState!==null?i?(o=I0(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=La,o):(n=L0(t,e,o.children,n),e.memoizedState=null,n):i?(o=I0(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=La,o):(n=L0(t,e,o.children,n),e.memoizedState=null,n)}function P0(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=qd(e,r,0,null),n=mr(n,r,o,null),i.return=t,n.return=t,i.sibling=n,t.child=i,n}function L0(t,e,n,o){var r=t.child;return t=r.sibling,n=In(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 I0(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=In(s,a),t!==null?o=In(t,o):(o=mr(o,i,r,null),o.flags|=2),o.return=e,n.return=e,n.sibling=o,e.child=n,o}function z0(t,e){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),r0(t.return,e)}function Dd(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 B0(t,e,n){var o=e.pendingProps,r=o.revealOrder,i=o.tail;if(qe(t,e,o.children,n),o=pe.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&&z0(t,n);else if(t.tag===19)z0(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(fe(pe,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&&Da(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),Dd(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&&Da(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}Dd(e,!0,n,null,i,e.lastEffect);break;case"together":Dd(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Wt(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(M(153));if(e.child!==null){for(t=e.child,n=In(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=In(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}return null}var F0,Rd,H0,V0;F0=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}},Rd=function(){},H0=function(t,e,n,o){var r=t.memoizedProps;if(r!==o){t=e.stateNode,mo(Dt.current);var i=null;switch(n){case"input":r=pu(t,r),o=pu(t,o),i=[];break;case"option":r=yu(t,r),o=yu(t,o),i=[];break;case"select":r=de({},r,{value:void 0}),o=de({},o,{value:void 0}),i=[];break;case"textarea":r=bu(t,r),o=bu(t,o),i=[];break;default:typeof r.onClick!="function"&&typeof o.onClick=="function"&&(t.onclick=fa)}$u(n,o);var s;n=null;for(c in r)if(!o.hasOwnProperty(c)&&r.hasOwnProperty(c)&&r[c]!=null)if(c==="style"){var a=r[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Yr.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var l=o[c];if(a=r!=null?r[c]:void 0,o.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Yr.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&le("scroll",t),i||a===l||(i=[])):typeof l=="object"&&l!==null&&l.$$typeof===cu?l.toString():(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(e.updateQueue=c)&&(e.flags|=4)}},V0=function(t,e,n,o){n!==o&&(e.flags|=4)};function Ri(t,e){if(!Rt)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 zC(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 Ke(e.type)&&ya(),null;case 3:return ir(),ce(Je),ce(je),wd(),o=e.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(Ra(e)?e.flags|=4:o.hydrate||(e.flags|=256)),Rd(e),null;case 5:gd(e);var r=mo(ki.current);if(n=e.type,t!==null&&e.stateNode!=null)H0(t,e,n,o,r),t.ref!==e.ref&&(e.flags|=128);else{if(!o){if(e.stateNode===null)throw Error(M(166));return null}if(t=mo(Dt.current),Ra(e)){o=e.stateNode,n=e.type;var i=e.memoizedProps;switch(o[Cn]=e,o[ha]=i,n){case"dialog":le("cancel",o),le("close",o);break;case"iframe":case"object":case"embed":le("load",o);break;case"video":case"audio":for(t=0;t<hi.length;t++)le(hi[t],o);break;case"source":le("error",o);break;case"img":case"image":case"link":le("error",o),le("load",o);break;case"details":le("toggle",o);break;case"input":Mg(o,i),le("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},le("invalid",o);break;case"textarea":Lg(o,i),le("invalid",o)}$u(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]):Yr.hasOwnProperty(s)&&r!=null&&s==="onScroll"&&le("scroll",o));switch(n){case"input":Gs(o),Pg(o,i,!0);break;case"textarea":Gs(o),zg(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=fa)}o=t,e.updateQueue=o,o!==null&&(e.flags|=4)}else{switch(s=r.nodeType===9?r:r.ownerDocument,t===wu.html&&(t=Bg(n)),t===wu.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[Cn]=e,t[ha]=o,F0(t,e,!1,!1),e.stateNode=t,s=Su(n,o),n){case"dialog":le("cancel",t),le("close",t),r=o;break;case"iframe":case"object":case"embed":le("load",t),r=o;break;case"video":case"audio":for(r=0;r<hi.length;r++)le(hi[r],t);r=o;break;case"source":le("error",t),r=o;break;case"img":case"image":case"link":le("error",t),le("load",t),r=o;break;case"details":le("toggle",t),r=o;break;case"input":Mg(t,o),r=pu(t,o),le("invalid",t);break;case"option":r=yu(t,o);break;case"select":t._wrapperState={wasMultiple:!!o.multiple},r=de({},o,{value:void 0}),le("invalid",t);break;case"textarea":Lg(t,o),r=bu(t,o),le("invalid",t);break;default:r=o}$u(n,r);var a=r;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Vg(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Fg(t,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Qr(t,l):typeof l=="number"&&Qr(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Yr.hasOwnProperty(i)?l!=null&&i==="onScroll"&&le("scroll",t):l!=null&&ou(t,i,l,s))}switch(n){case"input":Gs(t),Pg(t,o,!1);break;case"textarea":Gs(t),zg(t);break;case"option":o.value!=null&&t.setAttribute("value",""+wn(o.value));break;case"select":t.multiple=!!o.multiple,i=o.value,i!=null?Ho(t,!!o.multiple,i,!1):o.defaultValue!=null&&Ho(t,!!o.multiple,o.defaultValue,!0);break;default:typeof r.onClick=="function"&&(t.onclick=fa)}Vy(n,o)&&(e.flags|=4)}e.ref!==null&&(e.flags|=128)}return null;case 6:if(t&&e.stateNode!=null)V0(t,e,t.memoizedProps,o);else{if(typeof o!="string"&&e.stateNode===null)throw Error(M(166));n=mo(ki.current),mo(Dt.current),Ra(e)?(o=e.stateNode,n=e.memoizedProps,o[Cn]=e,o.nodeValue!==n&&(e.flags|=4)):(o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[Cn]=e,e.stateNode=o)}return null;case 13:return ce(pe),o=e.memoizedState,e.flags&64?(e.lanes=n,e):(o=o!==null,n=!1,t===null?e.memoizedProps.fallback!==void 0&&Ra(e):n=t.memoizedState!==null,o&&!n&&e.mode&2&&(t===null&&e.memoizedProps.unstable_avoidThisFallback!==!0||pe.current&1?Re===0&&(Re=3):((Re===0||Re===3)&&(Re=4),Ue===null||!(Oi&134217727)&&!(lr&134217727)||ur(Ue,Ie))),(o||n)&&(e.flags|=4),null);case 4:return ir(),Rd(e),t===null&&Iy(e.stateNode.containerInfo),null;case 10:return md(e),null;case 17:return Ke(e.type)&&ya(),null;case 19:if(ce(pe),o=e.memoizedState,o===null)return null;if(i=(e.flags&64)!==0,s=o.rendering,s===null)if(i)Ri(o,!1);else{if(Re!==0||t!==null&&t.flags&64)for(t=e.child;t!==null;){if(s=Da(t),s!==null){for(e.flags|=64,Ri(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 fe(pe,pe.current&1|2),e.child}t=t.sibling}o.tail!==null&&Pe()>Hd&&(e.flags|=64,i=!0,Ri(o,!1),e.lanes=33554432)}else{if(!i)if(t=Da(s),t!==null){if(e.flags|=64,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Ri(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Rt)return e=e.lastEffect=o.lastEffect,e!==null&&(e.nextEffect=null),null}else 2*Pe()-o.renderingStartTime>Hd&&n!==1073741824&&(e.flags|=64,i=!0,Ri(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=Pe(),n.sibling=null,e=pe.current,fe(pe,i?e&1|2:e&1),n):null;case 23:case 24:return Kd(),t!==null&&t.memoizedState!==null!=(e.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(e.flags|=4),null}throw Error(M(156,e.tag))}function BC(t){switch(t.tag){case 1:Ke(t.type)&&ya();var e=t.flags;return e&4096?(t.flags=e&-4097|64,t):null;case 3:if(ir(),ce(Je),ce(je),wd(),e=t.flags,e&64)throw Error(M(285));return t.flags=e&-4097|64,t;case 5:return gd(t),null;case 13:return ce(pe),e=t.flags,e&4096?(t.flags=e&-4097|64,t):null;case 19:return ce(pe),null;case 4:return ir(),null;case 10:return md(t),null;case 23:case 24:return Kd(),null;default:return null}}function Od(t,e){try{var n="",o=e;do n+=bx(o),o=o.return;while(o);var r=n}catch(i){r=`
126
+ `+r[s].replace(" at new "," at ");while(1<=s&&0<=a);break}}}finally{fu=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Gr(t):""}function wx(t){switch(t.tag){case 5:return Gr(t.type);case 16:return Gr("Lazy");case 13:return Gr("Suspense");case 19:return Gr("SuspenseList");case 0:case 2:case 15:return t=qs(t.type,!1),t;case 11:return t=qs(t.type.render,!1),t;case 22:return t=qs(t.type._render,!1),t;case 1:return t=qs(t.type,!0),t;default:return""}}function Fo(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 bn:return"Fragment";case ro:return"Portal";case Kr:return"Profiler";case ru:return"StrictMode";case Wr:return"Suspense";case Ks:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case su:return(t.displayName||"Context")+".Consumer";case iu:return(t._context.displayName||"Context")+".Provider";case Js:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case Ws:return Fo(t.type);case lu:return Fo(t._render);case au:e=t._payload,t=t._init;try{return Fo(t(e))}catch{}}return null}function wn(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function Og(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function vx(t){var e=Og(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 Gs(t){t._valueTracker||(t._valueTracker=vx(t))}function Tg(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),o="";return t&&(o=Og(t)?t.checked?"true":"false":t.value),t=o,t!==n?(e.setValue(t),!0):!1}function Qs(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 pu(t,e){var n=e.checked;return ce({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Mg(t,e){var n=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;n=wn(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 jg(t,e){e=e.checked,e!=null&&ou(t,"checked",e,!1)}function hu(t,e){jg(t,e);var n=wn(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")?gu(t,e.type,n):e.hasOwnProperty("defaultValue")&&gu(t,e.type,wn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Pg(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 gu(t,e,n){(e!=="number"||Qs(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function $x(t){var e="";return Ys.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}function yu(t,e){return t=ce({children:void 0},e),(e=$x(e.children))&&(t.children=e),t}function Ho(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=""+wn(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 bu(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(M(91));return ce({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Ig(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(M(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(M(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:wn(n)}}function Lg(t,e){var n=wn(e.value),o=wn(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 zg(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}var wu={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Bg(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 vu(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Bg(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Zs,Fg=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!==wu.svg||"innerHTML"in t)t.innerHTML=e;else{for(Zs=Zs||document.createElement("div"),Zs.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Zs.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Qr(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Zr={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},Sx=["Webkit","ms","Moz","O"];Object.keys(Zr).forEach(function(t){Sx.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Zr[e]=Zr[t]})});function Hg(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Zr.hasOwnProperty(t)&&Zr[t]?(""+e).trim():e+"px"}function Vg(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=Hg(n,e[n],o);n==="float"&&(n="cssFloat"),o?t.setProperty(n,r):t[n]=r}}var kx=ce({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 $u(t,e){if(e){if(kx[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(M(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(M(60));if(!(typeof e.dangerouslySetInnerHTML=="object"&&"__html"in e.dangerouslySetInnerHTML))throw Error(M(61))}if(e.style!=null&&typeof e.style!="object")throw Error(M(62))}}function Su(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 ku(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var xu=null,Vo=null,Uo=null;function Ug(t){if(t=yi(t)){if(typeof xu!="function")throw Error(M(280));var e=t.stateNode;e&&(e=ga(e),xu(t.stateNode,t.type,e))}}function _g(t){Vo?Uo?Uo.push(t):Uo=[t]:Vo=t}function Yg(){if(Vo){var t=Vo,e=Uo;if(Uo=Vo=null,Ug(t),e)for(t=0;t<e.length;t++)Ug(e[t])}}function Cu(t,e){return t(e)}function Jg(t,e,n,o,r){return t(e,n,o,r)}function Eu(){}var Kg=Cu,io=!1,Nu=!1;function Au(){(Vo!==null||Uo!==null)&&(Eu(),Yg())}function xx(t,e,n){if(Nu)return t(e,n);Nu=!0;try{return Kg(t,e,n)}finally{Nu=!1,Au()}}function Xr(t,e){var n=t.stateNode;if(n===null)return null;var o=ga(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(M(231,e,typeof n));return n}var Du=!1;if(Yt)try{var ei={};Object.defineProperty(ei,"passive",{get:function(){Du=!0}}),window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch{Du=!1}function Cx(t,e,n,o,r,i,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(u){this.onError(u)}}var ti=!1,Xs=null,ea=!1,Ru=null,Ex={onError:function(t){ti=!0,Xs=t}};function Nx(t,e,n,o,r,i,s,a,l){ti=!1,Xs=null,Cx.apply(Ex,arguments)}function Ax(t,e,n,o,r,i,s,a,l){if(Nx.apply(this,arguments),ti){if(ti){var c=Xs;ti=!1,Xs=null}else throw Error(M(198));ea||(ea=!0,Ru=c)}}function so(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 Wg(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 qg(t){if(so(t)!==t)throw Error(M(188))}function Dx(t){var e=t.alternate;if(!e){if(e=so(t),e===null)throw Error(M(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 qg(r),t;if(i===o)return qg(r),e;i=i.sibling}throw Error(M(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(M(189))}}if(n.alternate!==o)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?t:e}function Gg(t){if(t=Dx(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 Qg(t,e){for(var n=t.alternate;e!==null;){if(e===t||e===n)return!0;e=e.return}return!1}var Zg,Ou,Xg,ey,Tu=!1,Nt=[],vn=null,$n=null,Sn=null,ni=new Map,oi=new Map,ri=[],ty="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 Mu(t,e,n,o,r){return{blockedOn:t,domEventName:e,eventSystemFlags:n|16,nativeEvent:r,targetContainers:[o]}}function ny(t,e){switch(t){case"focusin":case"focusout":vn=null;break;case"dragenter":case"dragleave":$n=null;break;case"mouseover":case"mouseout":Sn=null;break;case"pointerover":case"pointerout":ni.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":oi.delete(e.pointerId)}}function ii(t,e,n,o,r,i){return t===null||t.nativeEvent!==i?(t=Mu(e,n,o,r,i),e!==null&&(e=yi(e),e!==null&&Ou(e)),t):(t.eventSystemFlags|=o,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function Rx(t,e,n,o,r){switch(e){case"focusin":return vn=ii(vn,t,e,n,o,r),!0;case"dragenter":return $n=ii($n,t,e,n,o,r),!0;case"mouseover":return Sn=ii(Sn,t,e,n,o,r),!0;case"pointerover":var i=r.pointerId;return ni.set(i,ii(ni.get(i)||null,t,e,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,oi.set(i,ii(oi.get(i)||null,t,e,n,o,r)),!0}return!1}function Ox(t){var e=ao(t.target);if(e!==null){var n=so(e);if(n!==null){if(e=n.tag,e===13){if(e=Wg(n),e!==null){t.blockedOn=e,ey(t.lanePriority,function(){ke.unstable_runWithPriority(t.priority,function(){Xg(n)})});return}}else if(e===3&&n.stateNode.hydrate){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ta(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Bu(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null)return e=yi(n),e!==null&&Ou(e),t.blockedOn=n,!1;e.shift()}return!0}function oy(t,e,n){ta(t)&&n.delete(e)}function Tx(){for(Tu=!1;0<Nt.length;){var t=Nt[0];if(t.blockedOn!==null){t=yi(t.blockedOn),t!==null&&Zg(t);break}for(var e=t.targetContainers;0<e.length;){var n=Bu(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null){t.blockedOn=n;break}e.shift()}t.blockedOn===null&&Nt.shift()}vn!==null&&ta(vn)&&(vn=null),$n!==null&&ta($n)&&($n=null),Sn!==null&&ta(Sn)&&(Sn=null),ni.forEach(oy),oi.forEach(oy)}function si(t,e){t.blockedOn===e&&(t.blockedOn=null,Tu||(Tu=!0,ke.unstable_scheduleCallback(ke.unstable_NormalPriority,Tx)))}function ry(t){function e(r){return si(r,t)}if(0<Nt.length){si(Nt[0],t);for(var n=1;n<Nt.length;n++){var o=Nt[n];o.blockedOn===t&&(o.blockedOn=null)}}for(vn!==null&&si(vn,t),$n!==null&&si($n,t),Sn!==null&&si(Sn,t),ni.forEach(e),oi.forEach(e),n=0;n<ri.length;n++)o=ri[n],o.blockedOn===t&&(o.blockedOn=null);for(;0<ri.length&&(n=ri[0],n.blockedOn===null);)Ox(n),n.blockedOn===null&&ri.shift()}function na(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var _o={animationend:na("Animation","AnimationEnd"),animationiteration:na("Animation","AnimationIteration"),animationstart:na("Animation","AnimationStart"),transitionend:na("Transition","TransitionEnd")},ju={},iy={};Yt&&(iy=document.createElement("div").style,"AnimationEvent"in window||(delete _o.animationend.animation,delete _o.animationiteration.animation,delete _o.animationstart.animation),"TransitionEvent"in window||delete _o.transitionend.transition);function oa(t){if(ju[t])return ju[t];if(!_o[t])return t;var e=_o[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in iy)return ju[t]=e[n];return t}var sy=oa("animationend"),ay=oa("animationiteration"),ly=oa("animationstart"),cy=oa("transitionend"),uy=new Map,Pu=new Map,Mx=["abort","abort",sy,"animationEnd",ay,"animationIteration",ly,"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",cy,"transitionEnd","waiting","waiting"];function Iu(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)),Pu.set(o,e),uy.set(o,r),no(r,[o])}}var jx=ke.unstable_now;jx();var ie=8;function Yo(t){if(1&t)return ie=15,1;if(2&t)return ie=14,2;if(4&t)return ie=13,4;var e=24&t;return e!==0?(ie=12,e):t&32?(ie=11,32):(e=192&t,e!==0?(ie=10,e):t&256?(ie=9,256):(e=3584&t,e!==0?(ie=8,e):t&4096?(ie=7,4096):(e=4186112&t,e!==0?(ie=6,e):(e=62914560&t,e!==0?(ie=5,e):t&67108864?(ie=4,67108864):t&134217728?(ie=3,134217728):(e=805306368&t,e!==0?(ie=2,e):1073741824&t?(ie=1,1073741824):(ie=8,t))))))}function Px(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 Ix(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(M(358,t))}}function ai(t,e){var n=t.pendingLanes;if(n===0)return ie=0;var o=0,r=0,i=t.expiredLanes,s=t.suspendedLanes,a=t.pingedLanes;if(i!==0)o=i,r=ie=15;else if(i=n&134217727,i!==0){var l=i&~s;l!==0?(o=Yo(l),r=ie):(a&=i,a!==0&&(o=Yo(a),r=ie))}else i=n&~s,i!==0?(o=Yo(i),r=ie):a!==0&&(o=Yo(a),r=ie);if(o===0)return 0;if(o=31-kn(o),o=n&((0>o?0:1<<o)<<1)-1,e!==0&&e!==o&&!(e&s)){if(Yo(e),r<=ie)return e;ie=r}if(e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=o;0<e;)n=31-kn(e),r=1<<n,o|=t[n],e&=~r;return o}function dy(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function ra(t,e){switch(t){case 15:return 1;case 14:return 2;case 12:return t=Jo(24&~e),t===0?ra(10,e):t;case 10:return t=Jo(192&~e),t===0?ra(8,e):t;case 8:return t=Jo(3584&~e),t===0&&(t=Jo(4186112&~e),t===0&&(t=512)),t;case 2:return e=Jo(805306368&~e),e===0&&(e=268435456),e}throw Error(M(358,t))}function Jo(t){return t&-t}function Lu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ia(t,e,n){t.pendingLanes|=e;var o=e-1;t.suspendedLanes&=o,t.pingedLanes&=o,t=t.eventTimes,e=31-kn(e),t[e]=n}var kn=Math.clz32?Math.clz32:Bx,Lx=Math.log,zx=Math.LN2;function Bx(t){return t===0?32:31-(Lx(t)/zx|0)|0}var Fx=ke.unstable_UserBlockingPriority,Hx=ke.unstable_runWithPriority,sa=!0;function Vx(t,e,n,o){io||Eu();var r=zu,i=io;io=!0;try{Jg(r,t,e,n,o)}finally{(io=i)||Au()}}function Ux(t,e,n,o){Hx(Fx,zu.bind(null,t,e,n,o))}function zu(t,e,n,o){if(sa){var r;if((r=(e&4)===0)&&0<Nt.length&&-1<ty.indexOf(t))t=Mu(null,t,e,n,o),Nt.push(t);else{var i=Bu(t,e,n,o);if(i===null)r&&ny(t,o);else{if(r){if(-1<ty.indexOf(t)){t=Mu(i,t,e,n,o),Nt.push(t);return}if(Rx(i,t,e,n,o))return;ny(t,o)}Fy(t,e,o,null,n)}}}}function Bu(t,e,n,o){var r=ku(o);if(r=ao(r),r!==null){var i=so(r);if(i===null)r=null;else{var s=i.tag;if(s===13){if(r=Wg(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 Fy(t,e,o,r,n),null}var xn=null,Fu=null,aa=null;function my(){if(aa)return aa;var t,e=Fu,n=e.length,o,r="value"in xn?xn.value:xn.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 aa=r.slice(t,1<o?1-o:void 0)}function la(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 ca(){return!0}function fy(){return!1}function tt(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)?ca:fy,this.isPropagationStopped=fy,this}return ce(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=ca)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ca)},persist:function(){},isPersistent:ca}),e}var Ko={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hu=tt(Ko),li=ce({},Ko,{view:0,detail:0}),_x=tt(li),Vu,Uu,ci,ua=ce({},li,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yu,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!==ci&&(ci&&t.type==="mousemove"?(Vu=t.screenX-ci.screenX,Uu=t.screenY-ci.screenY):Uu=Vu=0,ci=t),Vu)},movementY:function(t){return"movementY"in t?t.movementY:Uu}}),py=tt(ua),Yx=ce({},ua,{dataTransfer:0}),Jx=tt(Yx),Kx=ce({},li,{relatedTarget:0}),_u=tt(Kx),Wx=ce({},Ko,{animationName:0,elapsedTime:0,pseudoElement:0}),qx=tt(Wx),Gx=ce({},Ko,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Qx=tt(Gx),Zx=ce({},Ko,{data:0}),hy=tt(Zx),Xx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eC={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"},tC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nC(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=tC[t])?!!e[t]:!1}function Yu(){return nC}var oC=ce({},li,{key:function(t){if(t.key){var e=Xx[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=la(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?eC[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yu,charCode:function(t){return t.type==="keypress"?la(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?la(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),rC=tt(oC),iC=ce({},ua,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gy=tt(iC),sC=ce({},li,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yu}),aC=tt(sC),lC=ce({},Ko,{propertyName:0,elapsedTime:0,pseudoElement:0}),cC=tt(lC),uC=ce({},ua,{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}),dC=tt(uC),mC=[9,13,27,32],Ju=Yt&&"CompositionEvent"in window,ui=null;Yt&&"documentMode"in document&&(ui=document.documentMode);var fC=Yt&&"TextEvent"in window&&!ui,yy=Yt&&(!Ju||ui&&8<ui&&11>=ui),by=" ",wy=!1;function vy(t,e){switch(t){case"keyup":return mC.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $y(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Wo=!1;function pC(t,e){switch(t){case"compositionend":return $y(e);case"keypress":return e.which!==32?null:(wy=!0,by);case"textInput":return t=e.data,t===by&&wy?null:t;default:return null}}function hC(t,e){if(Wo)return t==="compositionend"||!Ju&&vy(t,e)?(t=my(),aa=Fu=xn=null,Wo=!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 yy&&e.locale!=="ko"?null:e.data;default:return null}}var gC={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 Sy(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!gC[t.type]:e==="textarea"}function ky(t,e,n,o){_g(o),e=ma(e,"onChange"),0<e.length&&(n=new Hu("onChange","change",null,n,o),t.push({event:n,listeners:e}))}var di=null,mi=null;function yC(t){Py(t,0)}function da(t){var e=Xo(t);if(Tg(e))return t}function bC(t,e){if(t==="change")return e}var xy=!1;if(Yt){var Ku;if(Yt){var Wu="oninput"in document;if(!Wu){var Cy=document.createElement("div");Cy.setAttribute("oninput","return;"),Wu=typeof Cy.oninput=="function"}Ku=Wu}else Ku=!1;xy=Ku&&(!document.documentMode||9<document.documentMode)}function Ey(){di&&(di.detachEvent("onpropertychange",Ny),mi=di=null)}function Ny(t){if(t.propertyName==="value"&&da(mi)){var e=[];if(ky(e,mi,t,ku(t)),t=yC,io)t(e);else{io=!0;try{Cu(t,e)}finally{io=!1,Au()}}}}function wC(t,e,n){t==="focusin"?(Ey(),di=e,mi=n,di.attachEvent("onpropertychange",Ny)):t==="focusout"&&Ey()}function vC(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return da(mi)}function $C(t,e){if(t==="click")return da(e)}function SC(t,e){if(t==="input"||t==="change")return da(e)}function kC(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ct=typeof Object.is=="function"?Object.is:kC,xC=Object.prototype.hasOwnProperty;function fi(t,e){if(ct(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(!xC.call(e,n[o])||!ct(t[n[o]],e[n[o]]))return!1;return!0}function Ay(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Dy(t,e){var n=Ay(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=Ay(n)}}function Ry(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ry(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Oy(){for(var t=window,e=Qs();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Qs(t.document)}return e}function qu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var CC=Yt&&"documentMode"in document&&11>=document.documentMode,qo=null,Gu=null,pi=null,Qu=!1;function Ty(t,e,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qu||qo==null||qo!==Qs(o)||(o=qo,"selectionStart"in o&&qu(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}),pi&&fi(pi,o)||(pi=o,o=ma(Gu,"onSelect"),0<o.length&&(e=new Hu("onSelect","select",null,e,n),t.push({event:e,listeners:o}),e.target=qo)))}Iu("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),Iu("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),Iu(Mx,2);for(var My="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Zu=0;Zu<My.length;Zu++)Pu.set(My[Zu],0);Bo("onMouseEnter",["mouseout","mouseover"]),Bo("onMouseLeave",["mouseout","mouseover"]),Bo("onPointerEnter",["pointerout","pointerover"]),Bo("onPointerLeave",["pointerout","pointerover"]),no("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),no("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),no("onBeforeInput",["compositionend","keypress","textInput","paste"]),no("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),no("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),no("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),EC=new Set("cancel close invalid load scroll toggle".split(" ").concat(hi));function jy(t,e,n){var o=t.type||"unknown-event";t.currentTarget=n,Ax(o,e,void 0,t),t.currentTarget=null}function Py(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var o=t[n],r=o.event;o=o.listeners;e:{var i=void 0;if(e)for(var s=o.length-1;0<=s;s--){var a=o[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&r.isPropagationStopped())break e;jy(r,a,c),i=l}else for(s=0;s<o.length;s++){if(a=o[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&r.isPropagationStopped())break e;jy(r,a,c),i=l}}}if(ea)throw t=Ru,ea=!1,Ru=null,t}function se(t,e){var n=Jy(e),o=t+"__bubble";n.has(o)||(By(e,t,2,!1),n.add(o))}var Iy="_reactListening"+Math.random().toString(36).slice(2);function Ly(t){t[Iy]||(t[Iy]=!0,Cg.forEach(function(e){EC.has(e)||zy(e,!1,t,null),zy(e,!0,t,null)}))}function zy(t,e,n,o){var r=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,i=n;t==="selectionchange"&&n.nodeType!==9&&(i=n.ownerDocument);var s=Jy(i),a=t+"__"+(e?"capture":"bubble");s.has(a)||(e&&(r|=4),By(i,t,r,e),s.add(a))}function By(t,e,n,o){var r=Pu.get(e);switch(r===void 0?2:r){case 0:r=Vx;break;case 1:r=Ux;break;default:r=zu}n=r.bind(null,e,n,t),r=void 0,!Du||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 Fy(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=ao(a),s===null)return;if(l=s.tag,l===5||l===6){o=i=s;continue e}a=a.parentNode}}o=o.return}xx(function(){var c=i,u=ku(n),d=[];e:{var m=uy.get(t);if(m!==void 0){var f=Hu,p=t;switch(t){case"keypress":if(la(n)===0)break e;case"keydown":case"keyup":f=rC;break;case"focusin":p="focus",f=_u;break;case"focusout":p="blur",f=_u;break;case"beforeblur":case"afterblur":f=_u;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=py;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Jx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=aC;break;case sy:case ay:case ly:f=qx;break;case cy:f=cC;break;case"scroll":f=_x;break;case"wheel":f=dC;break;case"copy":case"cut":case"paste":f=Qx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=gy}var g=(e&4)!==0,h=!g&&t==="scroll",y=g?m!==null?m+"Capture":null:m;g=[];for(var w=c,v;w!==null;){v=w;var $=v.stateNode;if(v.tag===5&&$!==null&&(v=$,y!==null&&($=Xr(w,y),$!=null&&g.push(gi(w,$,v)))),h)break;w=w.return}0<g.length&&(m=new f(m,p,null,n,u),d.push({event:m,listeners:g}))}}if(!(e&7)){e:{if(m=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",m&&!(e&16)&&(p=n.relatedTarget||n.fromElement)&&(ao(p)||p[Zo]))break e;if((f||m)&&(m=u.window===u?u:(m=u.ownerDocument)?m.defaultView||m.parentWindow:window,f?(p=n.relatedTarget||n.toElement,f=c,p=p?ao(p):null,p!==null&&(h=so(p),p!==h||p.tag!==5&&p.tag!==6)&&(p=null)):(f=null,p=c),f!==p)){if(g=py,$="onMouseLeave",y="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(g=gy,$="onPointerLeave",y="onPointerEnter",w="pointer"),h=f==null?m:Xo(f),v=p==null?m:Xo(p),m=new g($,w+"leave",f,n,u),m.target=h,m.relatedTarget=v,$=null,ao(u)===c&&(g=new g(y,w+"enter",p,n,u),g.target=v,g.relatedTarget=h,$=g),h=$,f&&p)t:{for(g=f,y=p,w=0,v=g;v;v=Go(v))w++;for(v=0,$=y;$;$=Go($))v++;for(;0<w-v;)g=Go(g),w--;for(;0<v-w;)y=Go(y),v--;for(;w--;){if(g===y||y!==null&&g===y.alternate)break t;g=Go(g),y=Go(y)}g=null}else g=null;f!==null&&Hy(d,m,f,g,!1),p!==null&&h!==null&&Hy(d,h,p,g,!0)}}e:{if(m=c?Xo(c):window,f=m.nodeName&&m.nodeName.toLowerCase(),f==="select"||f==="input"&&m.type==="file")var x=bC;else if(Sy(m))if(xy)x=SC;else{x=vC;var S=wC}else(f=m.nodeName)&&f.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(x=$C);if(x&&(x=x(t,c))){ky(d,x,n,u);break e}S&&S(t,m,c),t==="focusout"&&(S=m._wrapperState)&&S.controlled&&m.type==="number"&&gu(m,"number",m.value)}switch(S=c?Xo(c):window,t){case"focusin":(Sy(S)||S.contentEditable==="true")&&(qo=S,Gu=c,pi=null);break;case"focusout":pi=Gu=qo=null;break;case"mousedown":Qu=!0;break;case"contextmenu":case"mouseup":case"dragend":Qu=!1,Ty(d,n,u);break;case"selectionchange":if(CC)break;case"keydown":case"keyup":Ty(d,n,u)}var C;if(Ju)e:{switch(t){case"compositionstart":var D="onCompositionStart";break e;case"compositionend":D="onCompositionEnd";break e;case"compositionupdate":D="onCompositionUpdate";break e}D=void 0}else Wo?vy(t,n)&&(D="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(D="onCompositionStart");D&&(yy&&n.locale!=="ko"&&(Wo||D!=="onCompositionStart"?D==="onCompositionEnd"&&Wo&&(C=my()):(xn=u,Fu="value"in xn?xn.value:xn.textContent,Wo=!0)),S=ma(c,D),0<S.length&&(D=new hy(D,t,null,n,u),d.push({event:D,listeners:S}),C?D.data=C:(C=$y(n),C!==null&&(D.data=C)))),(C=fC?pC(t,n):hC(t,n))&&(c=ma(c,"onBeforeInput"),0<c.length&&(u=new hy("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=C))}Py(d,e)})}function gi(t,e,n){return{instance:t,listener:e,currentTarget:n}}function ma(t,e){for(var n=e+"Capture",o=[];t!==null;){var r=t,i=r.stateNode;r.tag===5&&i!==null&&(r=i,i=Xr(t,n),i!=null&&o.unshift(gi(t,i,r)),i=Xr(t,e),i!=null&&o.push(gi(t,i,r))),t=t.return}return o}function Go(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Hy(t,e,n,o,r){for(var i=e._reactName,s=[];n!==null&&n!==o;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===o)break;a.tag===5&&c!==null&&(a=c,r?(l=Xr(n,i),l!=null&&s.unshift(gi(n,l,a))):r||(l=Xr(n,i),l!=null&&s.push(gi(n,l,a)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}function fa(){}var Xu=null,ed=null;function Vy(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function td(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 Uy=typeof setTimeout=="function"?setTimeout:void 0,NC=typeof clearTimeout=="function"?clearTimeout:void 0;function nd(t){t.nodeType===1?t.textContent="":t.nodeType===9&&(t=t.body,t!=null&&(t.textContent=""))}function Qo(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break}return t}function _y(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 od=0;function AC(t){return{$$typeof:cu,toString:t,valueOf:t}}var pa=Math.random().toString(36).slice(2),Cn="__reactFiber$"+pa,ha="__reactProps$"+pa,Zo="__reactContainer$"+pa,Yy="__reactEvents$"+pa;function ao(t){var e=t[Cn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Zo]||n[Cn]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=_y(t);t!==null;){if(n=t[Cn])return n;t=_y(t)}return e}t=n,n=t.parentNode}return null}function yi(t){return t=t[Cn]||t[Zo],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Xo(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(M(33))}function ga(t){return t[ha]||null}function Jy(t){var e=t[Yy];return e===void 0&&(e=t[Yy]=new Set),e}var rd=[],er=-1;function En(t){return{current:t}}function ae(t){0>er||(t.current=rd[er],rd[er]=null,er--)}function me(t,e){er++,rd[er]=t.current,t.current=e}var Nn={},je=En(Nn),Je=En(!1),lo=Nn;function tr(t,e){var n=t.type.contextTypes;if(!n)return Nn;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 Ke(t){return t=t.childContextTypes,t!=null}function ya(){ae(Je),ae(je)}function Ky(t,e,n){if(je.current!==Nn)throw Error(M(168));me(je,e),me(Je,n)}function Wy(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(M(108,Fo(e)||"Unknown",r));return ce({},n,o)}function ba(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Nn,lo=je.current,me(je,t),me(Je,Je.current),!0}function qy(t,e,n){var o=t.stateNode;if(!o)throw Error(M(169));n?(t=Wy(t,e,lo),o.__reactInternalMemoizedMergedChildContext=t,ae(Je),ae(je),me(je,t)):ae(Je),me(Je,n)}var id=null,co=null,DC=ke.unstable_runWithPriority,sd=ke.unstable_scheduleCallback,ad=ke.unstable_cancelCallback,RC=ke.unstable_shouldYield,Gy=ke.unstable_requestPaint,ld=ke.unstable_now,OC=ke.unstable_getCurrentPriorityLevel,wa=ke.unstable_ImmediatePriority,Qy=ke.unstable_UserBlockingPriority,Zy=ke.unstable_NormalPriority,Xy=ke.unstable_LowPriority,e0=ke.unstable_IdlePriority,cd={},TC=Gy!==void 0?Gy:function(){},Jt=null,va=null,ud=!1,t0=ld(),Pe=1e4>t0?ld:function(){return ld()-t0};function nr(){switch(OC()){case wa:return 99;case Qy:return 98;case Zy:return 97;case Xy:return 96;case e0:return 95;default:throw Error(M(332))}}function n0(t){switch(t){case 99:return wa;case 98:return Qy;case 97:return Zy;case 96:return Xy;case 95:return e0;default:throw Error(M(332))}}function uo(t,e){return t=n0(t),DC(t,e)}function bi(t,e,n){return t=n0(t),sd(t,e,n)}function At(){if(va!==null){var t=va;va=null,ad(t)}o0()}function o0(){if(!ud&&Jt!==null){ud=!0;var t=0;try{var e=Jt;uo(99,function(){for(;t<e.length;t++){var n=e[t];do n=n(!0);while(n!==null)}}),Jt=null}catch(n){throw Jt!==null&&(Jt=Jt.slice(t+1)),sd(wa,At),n}finally{ud=!1}}}var MC=oo.ReactCurrentBatchConfig;function vt(t,e){if(t&&t.defaultProps){e=ce({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var $a=En(null),Sa=null,or=null,ka=null;function dd(){ka=or=Sa=null}function md(t){var e=$a.current;ae($a),t.type._context._currentValue=e}function r0(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 rr(t,e){Sa=t,ka=or=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&($t=!0),t.firstContext=null)}function ut(t,e){if(ka!==t&&e!==!1&&e!==0)if((typeof e!="number"||e===1073741823)&&(ka=t,e=1073741823),e={context:t,observedBits:e,next:null},or===null){if(Sa===null)throw Error(M(308));or=e,Sa.dependencies={lanes:0,firstContext:e,responders:null}}else or=or.next=e;return t._currentValue}var An=!1;function fd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function i0(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 Dn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Rn(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 s0(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 wi(t,e,n,o){var r=t.updateQueue;An=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var u=t.alternate;if(u!==null){u=u.updateQueue;var d=u.lastBaseUpdate;d!==s&&(d===null?u.firstBaseUpdate=c:d.next=c,u.lastBaseUpdate=l)}}if(i!==null){d=r.baseState,s=0,u=c=l=null;do{a=i.lane;var m=i.eventTime;if((o&a)===a){u!==null&&(u=u.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=ce({},d,a);break e;case 2:An=!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},u===null?(c=u=m,l=d):u=u.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(!0);u===null&&(l=d),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,Oi|=s,t.lanes=s,t.memoizedState=d}}function a0(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(M(191,r));r.call(o)}}}var l0=new Ys.Component().refs;function xa(t,e,n,o){e=t.memoizedState,n=n(o,e),n=n==null?e:ce({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Ca={isMounted:function(t){return(t=t._reactInternals)?so(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var o=nt(),r=Mn(t),i=Dn(o,r);i.payload=e,n!=null&&(i.callback=n),Rn(t,i),jn(t,r,o)},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var o=nt(),r=Mn(t),i=Dn(o,r);i.tag=1,i.payload=e,n!=null&&(i.callback=n),Rn(t,i),jn(t,r,o)},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=nt(),o=Mn(t),r=Dn(n,o);r.tag=2,e!=null&&(r.callback=e),Rn(t,r),jn(t,o,n)}};function c0(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?!fi(n,o)||!fi(r,i):!0}function u0(t,e,n){var o=!1,r=Nn,i=e.contextType;return typeof i=="object"&&i!==null?i=ut(i):(r=Ke(e)?lo:je.current,o=e.contextTypes,i=(o=o!=null)?tr(t,r):Nn),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Ca,t.stateNode=e,e._reactInternals=t,o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=i),e}function d0(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&&Ca.enqueueReplaceState(e,e.state,null)}function pd(t,e,n,o){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs=l0,fd(t);var i=e.contextType;typeof i=="object"&&i!==null?r.context=ut(i):(i=Ke(e)?lo:je.current,r.context=tr(t,i)),wi(t,n,r,o),r.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(xa(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&&Ca.enqueueReplaceState(r,r.state,null),wi(t,n,r,o),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4)}var Ea=Array.isArray;function vi(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(M(309));var o=n.stateNode}if(!o)throw Error(M(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===l0&&(s=o.refs={}),i===null?delete s[r]:s[r]=i},e._stringRef=r,e)}if(typeof t!="string")throw Error(M(284));if(!n._owner)throw Error(M(290,t))}return t}function Na(t,e){if(t.type!=="textarea")throw Error(M(31,Object.prototype.toString.call(e)==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":e))}function m0(t){function e(h,y){if(t){var w=h.lastEffect;w!==null?(w.nextEffect=y,h.lastEffect=y):h.firstEffect=h.lastEffect=y,y.nextEffect=null,y.flags=8}}function n(h,y){if(!t)return null;for(;y!==null;)e(h,y),y=y.sibling;return null}function o(h,y){for(h=new Map;y!==null;)y.key!==null?h.set(y.key,y):h.set(y.index,y),y=y.sibling;return h}function r(h,y){return h=Ln(h,y),h.index=0,h.sibling=null,h}function i(h,y,w){return h.index=w,t?(w=h.alternate,w!==null?(w=w.index,w<y?(h.flags=2,y):w):(h.flags=2,y)):y}function s(h){return t&&h.alternate===null&&(h.flags=2),h}function a(h,y,w,v){return y===null||y.tag!==6?(y=Gd(w,h.mode,v),y.return=h,y):(y=r(y,w),y.return=h,y)}function l(h,y,w,v){return y!==null&&y.elementType===w.type?(v=r(y,w.props),v.ref=vi(h,y,w),v.return=h,v):(v=Ya(w.type,w.key,w.props,null,h.mode,v),v.ref=vi(h,y,w),v.return=h,v)}function c(h,y,w,v){return y===null||y.tag!==4||y.stateNode.containerInfo!==w.containerInfo||y.stateNode.implementation!==w.implementation?(y=Qd(w,h.mode,v),y.return=h,y):(y=r(y,w.children||[]),y.return=h,y)}function u(h,y,w,v,$){return y===null||y.tag!==7?(y=mr(w,h.mode,v,$),y.return=h,y):(y=r(y,w),y.return=h,y)}function d(h,y,w){if(typeof y=="string"||typeof y=="number")return y=Gd(""+y,h.mode,w),y.return=h,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Jr:return w=Ya(y.type,y.key,y.props,null,h.mode,w),w.ref=vi(h,null,y),w.return=h,w;case ro:return y=Qd(y,h.mode,w),y.return=h,y}if(Ea(y)||qr(y))return y=mr(y,h.mode,w,null),y.return=h,y;Na(h,y)}return null}function m(h,y,w,v){var $=y!==null?y.key:null;if(typeof w=="string"||typeof w=="number")return $!==null?null:a(h,y,""+w,v);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Jr:return w.key===$?w.type===bn?u(h,y,w.props.children,v,$):l(h,y,w,v):null;case ro:return w.key===$?c(h,y,w,v):null}if(Ea(w)||qr(w))return $!==null?null:u(h,y,w,v,null);Na(h,w)}return null}function f(h,y,w,v,$){if(typeof v=="string"||typeof v=="number")return h=h.get(w)||null,a(y,h,""+v,$);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Jr:return h=h.get(v.key===null?w:v.key)||null,v.type===bn?u(y,h,v.props.children,$,v.key):l(y,h,v,$);case ro:return h=h.get(v.key===null?w:v.key)||null,c(y,h,v,$)}if(Ea(v)||qr(v))return h=h.get(w)||null,u(y,h,v,$,null);Na(y,v)}return null}function p(h,y,w,v){for(var $=null,x=null,S=y,C=y=0,D=null;S!==null&&C<w.length;C++){S.index>C?(D=S,S=null):D=S.sibling;var N=m(h,S,w[C],v);if(N===null){S===null&&(S=D);break}t&&S&&N.alternate===null&&e(h,S),y=i(N,y,C),x===null?$=N:x.sibling=N,x=N,S=D}if(C===w.length)return n(h,S),$;if(S===null){for(;C<w.length;C++)S=d(h,w[C],v),S!==null&&(y=i(S,y,C),x===null?$=S:x.sibling=S,x=S);return $}for(S=o(h,S);C<w.length;C++)D=f(S,h,C,w[C],v),D!==null&&(t&&D.alternate!==null&&S.delete(D.key===null?C:D.key),y=i(D,y,C),x===null?$=D:x.sibling=D,x=D);return t&&S.forEach(function(F){return e(h,F)}),$}function g(h,y,w,v){var $=qr(w);if(typeof $!="function")throw Error(M(150));if(w=$.call(w),w==null)throw Error(M(151));for(var x=$=null,S=y,C=y=0,D=null,N=w.next();S!==null&&!N.done;C++,N=w.next()){S.index>C?(D=S,S=null):D=S.sibling;var F=m(h,S,N.value,v);if(F===null){S===null&&(S=D);break}t&&S&&F.alternate===null&&e(h,S),y=i(F,y,C),x===null?$=F:x.sibling=F,x=F,S=D}if(N.done)return n(h,S),$;if(S===null){for(;!N.done;C++,N=w.next())N=d(h,N.value,v),N!==null&&(y=i(N,y,C),x===null?$=N:x.sibling=N,x=N);return $}for(S=o(h,S);!N.done;C++,N=w.next())N=f(S,h,C,N.value,v),N!==null&&(t&&N.alternate!==null&&S.delete(N.key===null?C:N.key),y=i(N,y,C),x===null?$=N:x.sibling=N,x=N);return t&&S.forEach(function(ne){return e(h,ne)}),$}return function(h,y,w,v){var $=typeof w=="object"&&w!==null&&w.type===bn&&w.key===null;$&&(w=w.props.children);var x=typeof w=="object"&&w!==null;if(x)switch(w.$$typeof){case Jr:e:{for(x=w.key,$=y;$!==null;){if($.key===x){switch($.tag){case 7:if(w.type===bn){n(h,$.sibling),y=r($,w.props.children),y.return=h,h=y;break e}break;default:if($.elementType===w.type){n(h,$.sibling),y=r($,w.props),y.ref=vi(h,$,w),y.return=h,h=y;break e}}n(h,$);break}else e(h,$);$=$.sibling}w.type===bn?(y=mr(w.props.children,h.mode,v,w.key),y.return=h,h=y):(v=Ya(w.type,w.key,w.props,null,h.mode,v),v.ref=vi(h,y,w),v.return=h,h=v)}return s(h);case ro:e:{for($=w.key;y!==null;){if(y.key===$)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(h,y.sibling),y=r(y,w.children||[]),y.return=h,h=y;break e}else{n(h,y);break}else e(h,y);y=y.sibling}y=Qd(w,h.mode,v),y.return=h,h=y}return s(h)}if(typeof w=="string"||typeof w=="number")return w=""+w,y!==null&&y.tag===6?(n(h,y.sibling),y=r(y,w),y.return=h,h=y):(n(h,y),y=Gd(w,h.mode,v),y.return=h,h=y),s(h);if(Ea(w))return p(h,y,w,v);if(qr(w))return g(h,y,w,v);if(x&&Na(h,w),typeof w>"u"&&!$)switch(h.tag){case 1:case 22:case 0:case 11:case 15:throw Error(M(152,Fo(h.type)||"Component"))}return n(h,y)}}var Aa=m0(!0),f0=m0(!1),$i={},Dt=En($i),Si=En($i),ki=En($i);function mo(t){if(t===$i)throw Error(M(174));return t}function hd(t,e){switch(me(ki,e),me(Si,t),me(Dt,$i),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:vu(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=vu(e,t)}ae(Dt),me(Dt,e)}function ir(){ae(Dt),ae(Si),ae(ki)}function p0(t){mo(ki.current);var e=mo(Dt.current),n=vu(e,t.type);e!==n&&(me(Si,t),me(Dt,n))}function gd(t){Si.current===t&&(ae(Dt),ae(Si))}var fe=En(0);function Da(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 Kt=null,On=null,Rt=!1;function h0(t,e){var n=ft(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 g0(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 yd(t){if(Rt){var e=On;if(e){var n=e;if(!g0(t,e)){if(e=Qo(n.nextSibling),!e||!g0(t,e)){t.flags=t.flags&-1025|2,Rt=!1,Kt=t;return}h0(Kt,n)}Kt=t,On=Qo(e.firstChild)}else t.flags=t.flags&-1025|2,Rt=!1,Kt=t}}function y0(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Kt=t}function Ra(t){if(t!==Kt)return!1;if(!Rt)return y0(t),Rt=!0,!1;var e=t.type;if(t.tag!==5||e!=="head"&&e!=="body"&&!td(e,t.memoizedProps))for(e=On;e;)h0(t,e),e=Qo(e.nextSibling);if(y0(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(M(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){On=Qo(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}On=null}}else On=Kt?Qo(t.stateNode.nextSibling):null;return!0}function bd(){On=Kt=null,Rt=!1}var sr=[];function wd(){for(var t=0;t<sr.length;t++)sr[t]._workInProgressVersionPrimary=null;sr.length=0}var xi=oo.ReactCurrentDispatcher,dt=oo.ReactCurrentBatchConfig,Ci=0,he=null,Ie=null,De=null,Oa=!1,Ei=!1;function We(){throw Error(M(321))}function vd(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ct(t[n],e[n]))return!1;return!0}function $d(t,e,n,o,r,i){if(Ci=i,he=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,xi.current=t===null||t.memoizedState===null?PC:IC,t=n(o,r),Ei){i=0;do{if(Ei=!1,!(25>i))throw Error(M(301));i+=1,De=Ie=null,e.updateQueue=null,xi.current=LC,t=n(o,r)}while(Ei)}if(xi.current=Pa,e=Ie!==null&&Ie.next!==null,Ci=0,De=Ie=he=null,Oa=!1,e)throw Error(M(300));return t}function fo(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return De===null?he.memoizedState=De=t:De=De.next=t,De}function po(){if(Ie===null){var t=he.alternate;t=t!==null?t.memoizedState:null}else t=Ie.next;var e=De===null?he.memoizedState:De.next;if(e!==null)De=e,Ie=t;else{if(t===null)throw Error(M(310));Ie=t,t={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},De===null?he.memoizedState=De=t:De=De.next=t}return De}function Ot(t,e){return typeof e=="function"?e(t):e}function Ni(t){var e=po(),n=e.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=t;var o=Ie,r=o.baseQueue,i=n.pending;if(i!==null){if(r!==null){var s=r.next;r.next=i.next,i.next=s}o.baseQueue=r=i,n.pending=null}if(r!==null){r=r.next,o=o.baseState;var a=s=i=null,l=r;do{var c=l.lane;if((Ci&c)===c)a!==null&&(a=a.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),o=l.eagerReducer===t?l.eagerState:t(o,l.action);else{var u={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};a===null?(s=a=u,i=o):a=a.next=u,he.lanes|=c,Oi|=c}l=l.next}while(l!==null&&l!==r);a===null?i=o:a.next=s,ct(o,e.memoizedState)||($t=!0),e.memoizedState=o,e.baseState=i,e.baseQueue=a,n.lastRenderedState=o}return[e.memoizedState,n.dispatch]}function Ai(t){var e=po(),n=e.queue;if(n===null)throw Error(M(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);ct(i,e.memoizedState)||($t=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,o]}function b0(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=(Ci&t)===t)&&(e._workInProgressVersionPrimary=o,sr.push(e))),t)return n(e._source);throw sr.push(e),Error(M(350))}function w0(t,e,n,o){var r=Ue;if(r===null)throw Error(M(349));var i=e._getVersion,s=i(e._source),a=xi.current,l=a.useState(function(){return b0(r,e,n)}),c=l[1],u=l[0];l=De;var d=t.memoizedState,m=d.refs,f=m.getSnapshot,p=d.source;d=d.subscribe;var g=he;return t.memoizedState={refs:m,source:e,subscribe:o},a.useEffect(function(){m.getSnapshot=n,m.setSnapshot=c;var h=i(e._source);if(!ct(s,h)){h=n(e._source),ct(u,h)||(c(h),h=Mn(g),r.mutableReadLanes|=h&r.pendingLanes),h=r.mutableReadLanes,r.entangledLanes|=h;for(var y=r.entanglements,w=h;0<w;){var v=31-kn(w),$=1<<v;y[v]|=h,w&=~$}}},[n,e,o]),a.useEffect(function(){return o(e._source,function(){var h=m.getSnapshot,y=m.setSnapshot;try{y(h(e._source));var w=Mn(g);r.mutableReadLanes|=w&r.pendingLanes}catch(v){y(function(){throw v})}})},[e,o]),ct(f,n)&&ct(p,e)&&ct(d,o)||(t={pending:null,dispatch:null,lastRenderedReducer:Ot,lastRenderedState:u},t.dispatch=c=Cd.bind(null,he,t),l.queue=t,l.baseQueue=null,u=b0(r,e,n),l.memoizedState=l.baseState=u),u}function v0(t,e,n){var o=po();return w0(o,t,e,n)}function Di(t){var e=fo();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Ot,lastRenderedState:t},t=t.dispatch=Cd.bind(null,he,t),[e.memoizedState,t]}function Ta(t,e,n,o){return t={tag:t,create:e,destroy:n,deps:o,next:null},e=he.updateQueue,e===null?(e={lastEffect:null},he.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 $0(t){var e=fo();return t={current:t},e.memoizedState=t}function Ma(){return po().memoizedState}function Sd(t,e,n,o){var r=fo();he.flags|=t,r.memoizedState=Ta(1|e,n,void 0,o===void 0?null:o)}function kd(t,e,n,o){var r=po();o=o===void 0?null:o;var i=void 0;if(Ie!==null){var s=Ie.memoizedState;if(i=s.destroy,o!==null&&vd(o,s.deps)){Ta(e,n,i,o);return}}he.flags|=t,r.memoizedState=Ta(1|e,n,i,o)}function S0(t,e){return Sd(516,4,t,e)}function ja(t,e){return kd(516,4,t,e)}function k0(t,e){return kd(4,2,t,e)}function x0(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 C0(t,e,n){return n=n!=null?n.concat([t]):null,kd(4,2,x0.bind(null,e,t),n)}function xd(){}function E0(t,e){var n=po();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&vd(e,o[1])?o[0]:(n.memoizedState=[t,e],t)}function N0(t,e){var n=po();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&vd(e,o[1])?o[0]:(t=t(),n.memoizedState=[t,e],t)}function jC(t,e){var n=nr();uo(98>n?98:n,function(){t(!0)}),uo(97<n?97:n,function(){var o=dt.transition;dt.transition=1;try{t(!1),e()}finally{dt.transition=o}})}function Cd(t,e,n){var o=nt(),r=Mn(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===he||s!==null&&s===he)Ei=Oa=!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,ct(l,a))return}catch{}finally{}jn(t,r,o)}}var Pa={readContext:ut,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useOpaqueIdentifier:We,unstable_isNewReconciler:!1},PC={readContext:ut,useCallback:function(t,e){return fo().memoizedState=[t,e===void 0?null:e],t},useContext:ut,useEffect:S0,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Sd(4,2,x0.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Sd(4,2,t,e)},useMemo:function(t,e){var n=fo();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var o=fo();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=Cd.bind(null,he,t),[o.memoizedState,t]},useRef:$0,useState:Di,useDebugValue:xd,useDeferredValue:function(t){var e=Di(t),n=e[0],o=e[1];return S0(function(){var r=dt.transition;dt.transition=1;try{o(t)}finally{dt.transition=r}},[t]),n},useTransition:function(){var t=Di(!1),e=t[0];return t=jC.bind(null,t[1]),$0(t),[t,e]},useMutableSource:function(t,e,n){var o=fo();return o.memoizedState={refs:{getSnapshot:e,setSnapshot:null},source:t,subscribe:n},w0(o,t,e,n)},useOpaqueIdentifier:function(){if(Rt){var t=!1,e=AC(function(){throw t||(t=!0,n("r:"+(od++).toString(36))),Error(M(355))}),n=Di(e)[1];return!(he.mode&2)&&(he.flags|=516,Ta(5,function(){n("r:"+(od++).toString(36))},void 0,null)),e}return e="r:"+(od++).toString(36),Di(e),e},unstable_isNewReconciler:!1},IC={readContext:ut,useCallback:E0,useContext:ut,useEffect:ja,useImperativeHandle:C0,useLayoutEffect:k0,useMemo:N0,useReducer:Ni,useRef:Ma,useState:function(){return Ni(Ot)},useDebugValue:xd,useDeferredValue:function(t){var e=Ni(Ot),n=e[0],o=e[1];return ja(function(){var r=dt.transition;dt.transition=1;try{o(t)}finally{dt.transition=r}},[t]),n},useTransition:function(){var t=Ni(Ot)[0];return[Ma().current,t]},useMutableSource:v0,useOpaqueIdentifier:function(){return Ni(Ot)[0]},unstable_isNewReconciler:!1},LC={readContext:ut,useCallback:E0,useContext:ut,useEffect:ja,useImperativeHandle:C0,useLayoutEffect:k0,useMemo:N0,useReducer:Ai,useRef:Ma,useState:function(){return Ai(Ot)},useDebugValue:xd,useDeferredValue:function(t){var e=Ai(Ot),n=e[0],o=e[1];return ja(function(){var r=dt.transition;dt.transition=1;try{o(t)}finally{dt.transition=r}},[t]),n},useTransition:function(){var t=Ai(Ot)[0];return[Ma().current,t]},useMutableSource:v0,useOpaqueIdentifier:function(){return Ai(Ot)[0]},unstable_isNewReconciler:!1},zC=oo.ReactCurrentOwner,$t=!1;function qe(t,e,n,o){e.child=t===null?f0(e,null,n,o):Aa(e,t.child,n,o)}function A0(t,e,n,o,r){n=n.render;var i=e.ref;return rr(e,r),o=$d(t,e,n,o,i,r),t!==null&&!$t?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Wt(t,e,r)):(e.flags|=1,qe(t,e,o,r),e.child)}function D0(t,e,n,o,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!Wd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,R0(t,e,s,o,r,i)):(t=Ya(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:fi,n(r,o)&&t.ref===e.ref)?Wt(t,e,i):(e.flags|=1,t=Ln(s,o),t.ref=e.ref,t.return=e,e.child=t)}function R0(t,e,n,o,r,i){if(t!==null&&fi(t.memoizedProps,o)&&t.ref===e.ref)if($t=!1,(i&r)!==0)t.flags&16384&&($t=!0);else return e.lanes=t.lanes,Wt(t,e,i);return Nd(t,e,n,o,i)}function Ed(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},_a(e,n);else if(n&1073741824)e.memoizedState={baseLanes:0},_a(e,i!==null?i.baseLanes:n);else return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t},_a(e,t),null;else i!==null?(o=i.baseLanes|n,e.memoizedState=null):o=n,_a(e,o);return qe(t,e,r,n),e.child}function O0(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=128)}function Nd(t,e,n,o,r){var i=Ke(n)?lo:je.current;return i=tr(e,i),rr(e,r),n=$d(t,e,n,o,i,r),t!==null&&!$t?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Wt(t,e,r)):(e.flags|=1,qe(t,e,n,r),e.child)}function T0(t,e,n,o,r){if(Ke(n)){var i=!0;ba(e)}else i=!1;if(rr(e,r),e.stateNode===null)t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),u0(e,n,o),pd(e,n,o,r),o=!0;else if(t===null){var s=e.stateNode,a=e.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=ut(c):(c=Ke(n)?lo:je.current,c=tr(e,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==o||l!==c)&&d0(e,s,o,c),An=!1;var m=e.memoizedState;s.state=m,wi(e,o,s,r),l=e.memoizedState,a!==o||m!==l||Je.current||An?(typeof u=="function"&&(xa(e,n,u,o),l=e.memoizedState),(a=An||c0(e,n,a,o,m,l,c))?(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=c,o=a):(typeof s.componentDidMount=="function"&&(e.flags|=4),o=!1)}else{s=e.stateNode,i0(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:vt(e.type,a),s.props=c,d=e.pendingProps,m=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=ut(l):(l=Ke(n)?lo:je.current,l=tr(e,l));var f=n.getDerivedStateFromProps;(u=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||m!==l)&&d0(e,s,o,l),An=!1,m=e.memoizedState,s.state=m,wi(e,o,s,r);var p=e.memoizedState;a!==d||m!==p||Je.current||An?(typeof f=="function"&&(xa(e,n,f,o),p=e.memoizedState),(c=An||c0(e,n,c,o,m,p,l))?(u||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=c):(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 Ad(t,e,n,o,i,r)}function Ad(t,e,n,o,r,i){O0(t,e);var s=(e.flags&64)!==0;if(!o&&!s)return r&&qy(e,n,!1),Wt(t,e,i);o=e.stateNode,zC.current=e;var a=s&&typeof n.getDerivedStateFromError!="function"?null:o.render();return e.flags|=1,t!==null&&s?(e.child=Aa(e,t.child,null,i),e.child=Aa(e,null,a,i)):qe(t,e,a,i),e.memoizedState=o.state,r&&qy(e,n,!0),e.child}function M0(t){var e=t.stateNode;e.pendingContext?Ky(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Ky(t,e.context,!1),hd(t,e.containerInfo)}var Ia={dehydrated:null,retryLane:0};function j0(t,e,n){var o=e.pendingProps,r=fe.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),me(fe,r&1),t===null?(o.fallback!==void 0&&yd(e),t=o.children,r=o.fallback,i?(t=P0(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Ia,t):typeof o.unstable_expectedLoadTime=="number"?(t=P0(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Ia,e.lanes=33554432,t):(n=qd({mode:"visible",children:t},e.mode,n,null),n.return=e,e.child=n)):t.memoizedState!==null?i?(o=L0(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=Ia,o):(n=I0(t,e,o.children,n),e.memoizedState=null,n):i?(o=L0(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=Ia,o):(n=I0(t,e,o.children,n),e.memoizedState=null,n)}function P0(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=qd(e,r,0,null),n=mr(n,r,o,null),i.return=t,n.return=t,i.sibling=n,t.child=i,n}function I0(t,e,n,o){var r=t.child;return t=r.sibling,n=Ln(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 L0(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=Ln(s,a),t!==null?o=Ln(t,o):(o=mr(o,i,r,null),o.flags|=2),o.return=e,n.return=e,n.sibling=o,e.child=n,o}function z0(t,e){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),r0(t.return,e)}function Dd(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 B0(t,e,n){var o=e.pendingProps,r=o.revealOrder,i=o.tail;if(qe(t,e,o.children,n),o=fe.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&&z0(t,n);else if(t.tag===19)z0(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(me(fe,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&&Da(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),Dd(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&&Da(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}Dd(e,!0,n,null,i,e.lastEffect);break;case"together":Dd(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Wt(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(M(153));if(e.child!==null){for(t=e.child,n=Ln(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Ln(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}return null}var F0,Rd,H0,V0;F0=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}},Rd=function(){},H0=function(t,e,n,o){var r=t.memoizedProps;if(r!==o){t=e.stateNode,mo(Dt.current);var i=null;switch(n){case"input":r=pu(t,r),o=pu(t,o),i=[];break;case"option":r=yu(t,r),o=yu(t,o),i=[];break;case"select":r=ce({},r,{value:void 0}),o=ce({},o,{value:void 0}),i=[];break;case"textarea":r=bu(t,r),o=bu(t,o),i=[];break;default:typeof r.onClick!="function"&&typeof o.onClick=="function"&&(t.onclick=fa)}$u(n,o);var s;n=null;for(c in r)if(!o.hasOwnProperty(c)&&r.hasOwnProperty(c)&&r[c]!=null)if(c==="style"){var a=r[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Yr.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var l=o[c];if(a=r!=null?r[c]:void 0,o.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Yr.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&se("scroll",t),i||a===l||(i=[])):typeof l=="object"&&l!==null&&l.$$typeof===cu?l.toString():(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(e.updateQueue=c)&&(e.flags|=4)}},V0=function(t,e,n,o){n!==o&&(e.flags|=4)};function Ri(t,e){if(!Rt)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 BC(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 Ke(e.type)&&ya(),null;case 3:return ir(),ae(Je),ae(je),wd(),o=e.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(Ra(e)?e.flags|=4:o.hydrate||(e.flags|=256)),Rd(e),null;case 5:gd(e);var r=mo(ki.current);if(n=e.type,t!==null&&e.stateNode!=null)H0(t,e,n,o,r),t.ref!==e.ref&&(e.flags|=128);else{if(!o){if(e.stateNode===null)throw Error(M(166));return null}if(t=mo(Dt.current),Ra(e)){o=e.stateNode,n=e.type;var i=e.memoizedProps;switch(o[Cn]=e,o[ha]=i,n){case"dialog":se("cancel",o),se("close",o);break;case"iframe":case"object":case"embed":se("load",o);break;case"video":case"audio":for(t=0;t<hi.length;t++)se(hi[t],o);break;case"source":se("error",o);break;case"img":case"image":case"link":se("error",o),se("load",o);break;case"details":se("toggle",o);break;case"input":Mg(o,i),se("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},se("invalid",o);break;case"textarea":Ig(o,i),se("invalid",o)}$u(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]):Yr.hasOwnProperty(s)&&r!=null&&s==="onScroll"&&se("scroll",o));switch(n){case"input":Gs(o),Pg(o,i,!0);break;case"textarea":Gs(o),zg(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=fa)}o=t,e.updateQueue=o,o!==null&&(e.flags|=4)}else{switch(s=r.nodeType===9?r:r.ownerDocument,t===wu.html&&(t=Bg(n)),t===wu.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[Cn]=e,t[ha]=o,F0(t,e,!1,!1),e.stateNode=t,s=Su(n,o),n){case"dialog":se("cancel",t),se("close",t),r=o;break;case"iframe":case"object":case"embed":se("load",t),r=o;break;case"video":case"audio":for(r=0;r<hi.length;r++)se(hi[r],t);r=o;break;case"source":se("error",t),r=o;break;case"img":case"image":case"link":se("error",t),se("load",t),r=o;break;case"details":se("toggle",t),r=o;break;case"input":Mg(t,o),r=pu(t,o),se("invalid",t);break;case"option":r=yu(t,o);break;case"select":t._wrapperState={wasMultiple:!!o.multiple},r=ce({},o,{value:void 0}),se("invalid",t);break;case"textarea":Ig(t,o),r=bu(t,o),se("invalid",t);break;default:r=o}$u(n,r);var a=r;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Vg(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Fg(t,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Qr(t,l):typeof l=="number"&&Qr(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Yr.hasOwnProperty(i)?l!=null&&i==="onScroll"&&se("scroll",t):l!=null&&ou(t,i,l,s))}switch(n){case"input":Gs(t),Pg(t,o,!1);break;case"textarea":Gs(t),zg(t);break;case"option":o.value!=null&&t.setAttribute("value",""+wn(o.value));break;case"select":t.multiple=!!o.multiple,i=o.value,i!=null?Ho(t,!!o.multiple,i,!1):o.defaultValue!=null&&Ho(t,!!o.multiple,o.defaultValue,!0);break;default:typeof r.onClick=="function"&&(t.onclick=fa)}Vy(n,o)&&(e.flags|=4)}e.ref!==null&&(e.flags|=128)}return null;case 6:if(t&&e.stateNode!=null)V0(t,e,t.memoizedProps,o);else{if(typeof o!="string"&&e.stateNode===null)throw Error(M(166));n=mo(ki.current),mo(Dt.current),Ra(e)?(o=e.stateNode,n=e.memoizedProps,o[Cn]=e,o.nodeValue!==n&&(e.flags|=4)):(o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[Cn]=e,e.stateNode=o)}return null;case 13:return ae(fe),o=e.memoizedState,e.flags&64?(e.lanes=n,e):(o=o!==null,n=!1,t===null?e.memoizedProps.fallback!==void 0&&Ra(e):n=t.memoizedState!==null,o&&!n&&e.mode&2&&(t===null&&e.memoizedProps.unstable_avoidThisFallback!==!0||fe.current&1?Re===0&&(Re=3):((Re===0||Re===3)&&(Re=4),Ue===null||!(Oi&134217727)&&!(lr&134217727)||ur(Ue,Le))),(o||n)&&(e.flags|=4),null);case 4:return ir(),Rd(e),t===null&&Ly(e.stateNode.containerInfo),null;case 10:return md(e),null;case 17:return Ke(e.type)&&ya(),null;case 19:if(ae(fe),o=e.memoizedState,o===null)return null;if(i=(e.flags&64)!==0,s=o.rendering,s===null)if(i)Ri(o,!1);else{if(Re!==0||t!==null&&t.flags&64)for(t=e.child;t!==null;){if(s=Da(t),s!==null){for(e.flags|=64,Ri(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 me(fe,fe.current&1|2),e.child}t=t.sibling}o.tail!==null&&Pe()>Hd&&(e.flags|=64,i=!0,Ri(o,!1),e.lanes=33554432)}else{if(!i)if(t=Da(s),t!==null){if(e.flags|=64,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Ri(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Rt)return e=e.lastEffect=o.lastEffect,e!==null&&(e.nextEffect=null),null}else 2*Pe()-o.renderingStartTime>Hd&&n!==1073741824&&(e.flags|=64,i=!0,Ri(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=Pe(),n.sibling=null,e=fe.current,me(fe,i?e&1|2:e&1),n):null;case 23:case 24:return Kd(),t!==null&&t.memoizedState!==null!=(e.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(e.flags|=4),null}throw Error(M(156,e.tag))}function FC(t){switch(t.tag){case 1:Ke(t.type)&&ya();var e=t.flags;return e&4096?(t.flags=e&-4097|64,t):null;case 3:if(ir(),ae(Je),ae(je),wd(),e=t.flags,e&64)throw Error(M(285));return t.flags=e&-4097|64,t;case 5:return gd(t),null;case 13:return ae(fe),e=t.flags,e&4096?(t.flags=e&-4097|64,t):null;case 19:return ae(fe),null;case 4:return ir(),null;case 10:return md(t),null;case 23:case 24:return Kd(),null;default:return null}}function Od(t,e){try{var n="",o=e;do n+=wx(o),o=o.return;while(o);var r=n}catch(i){r=`
127
127
  Error generating stack: `+i.message+`
128
- `+i.stack}return{value:t,source:e,stack:r}}function Td(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var FC=typeof WeakMap=="function"?WeakMap:Map;function U0(t,e,n){n=Dn(-1,n),n.tag=3,n.payload={element:null};var o=e.value;return n.callback=function(){Ba||(Ba=!0,Vd=o),Td(t,e)},n}function _0(t,e,n){n=Dn(-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"&&(Tt===null?Tt=new Set([this]):Tt.add(this),Td(t,e));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}var HC=typeof WeakSet=="function"?WeakSet:Set;function Y0(t){var e=t.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(n){Ln(t,n)}else e.current=null}function VC(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:vt(e.type,n),o),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&nd(e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(M(163))}function UC(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&&(sb(n,t),QC(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:vt(n.type,e.memoizedProps),t.componentDidUpdate(o,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),e=n.updateQueue,e!==null&&a0(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}a0(n,e,t)}return;case 5:t=n.stateNode,e===null&&n.flags&4&&Vy(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&&ry(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(M(163))}function J0(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=Hg("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 K0(t,e){if(co&&typeof co.onCommitFiberUnmount=="function")try{co.onCommitFiberUnmount(id,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)sb(e,n);else{o=e;try{r()}catch(i){Ln(o,i)}}n=n.next}while(n!==t)}break;case 1:if(Y0(e),t=e.stateNode,typeof t.componentWillUnmount=="function")try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(i){Ln(e,i)}break;case 5:Y0(e);break;case 4:Q0(t,e)}}function W0(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 q0(t){return t.tag===5||t.tag===3||t.tag===4}function G0(t){e:{for(var e=t.return;e!==null;){if(q0(e))break e;e=e.return}throw Error(M(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(M(161))}n.flags&16&&(Qr(e,""),n.flags&=-17);e:t:for(n=t;;){for(;n.sibling===null;){if(n.return===null||q0(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?Md(t,n,e):jd(t,n,e)}function Md(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=fa));else if(o!==4&&(t=t.child,t!==null))for(Md(t,e,n),t=t.sibling;t!==null;)Md(t,e,n),t=t.sibling}function jd(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(jd(t,e,n),t=t.sibling;t!==null;)jd(t,e,n),t=t.sibling}function Q0(t,e){for(var n=e,o=!1,r,i;;){if(!o){o=n.return;e:for(;;){if(o===null)throw Error(M(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(K0(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(K0(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 Pd(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[ha]=o,t==="input"&&o.type==="radio"&&o.name!=null&&jg(n,o),Su(t,r),e=Su(t,o),r=0;r<i.length;r+=2){var s=i[r],a=i[r+1];s==="style"?Vg(n,a):s==="dangerouslySetInnerHTML"?Fg(n,a):s==="children"?Qr(n,a):ou(n,s,a,e)}switch(t){case"input":hu(n,o);break;case"textarea":Ig(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,i=o.value,i!=null?Ho(n,!!o.multiple,i,!1):t!==!!o.multiple&&(o.defaultValue!=null?Ho(n,!!o.multiple,o.defaultValue,!0):Ho(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(e.stateNode===null)throw Error(M(162));e.stateNode.nodeValue=e.memoizedProps;return;case 3:n=e.stateNode,n.hydrate&&(n.hydrate=!1,ry(n.containerInfo));return;case 12:return;case 13:e.memoizedState!==null&&(Fd=Pe(),J0(e.child,!0)),Z0(e);return;case 19:Z0(e);return;case 17:return;case 23:case 24:J0(e,e.memoizedState!==null);return}throw Error(M(163))}function Z0(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new HC),e.forEach(function(o){var r=eE.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 YC=Math.ceil,Ia=oo.ReactCurrentDispatcher,Ld=oo.ReactCurrentOwner,U=0,Ue=null,we=null,Ie=0,ho=0,Id=En(0),Re=0,za=null,ar=0,Oi=0,lr=0,zd=0,Bd=null,Fd=0,Hd=1/0;function cr(){Hd=Pe()+500}var z=null,Ba=!1,Vd=null,Tt=null,Tn=!1,Ti=null,Mi=90,Ud=[],_d=[],qt=null,ji=0,Yd=null,Fa=-1,Gt=0,Ha=0,Pi=null,Va=!1;function nt(){return U&48?Pe():Fa!==-1?Fa:Fa=Pe()}function Mn(t){if(t=t.mode,!(t&2))return 1;if(!(t&4))return nr()===99?1:2;if(Gt===0&&(Gt=ar),TC.transition!==0){Ha!==0&&(Ha=Bd!==null?Bd.pendingLanes:0),t=Gt;var e=4186112&~Ha;return e&=-e,e===0&&(t=4186112&~t,e=t&-t,e===0&&(e=8192)),e}return t=nr(),U&4&&t===98?t=ra(12,Gt):(t=jx(t),t=ra(t,Gt)),t}function jn(t,e,n){if(50<ji)throw ji=0,Yd=null,Error(M(185));if(t=Ua(t,e),t===null)return null;ia(t,e,n),t===Ue&&(lr|=e,Re===4&&ur(t,Ie));var o=nr();e===1?U&8&&!(U&48)?Jd(t):(mt(t,n),U===0&&(cr(),At())):(!(U&4)||o!==98&&o!==99||(qt===null?qt=new Set([t]):qt.add(t)),mt(t,n)),Bd=t}function Ua(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 mt(t,e){for(var n=t.callbackNode,o=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var a=31-kn(s),l=1<<a,c=i[a];if(c===-1){if(!(l&o)||l&r){c=e,Yo(l);var u=se;i[a]=10<=u?c+250:6<=u?c+5e3:-1}}else c<=e&&(t.expiredLanes|=l);s&=~l}if(o=ai(t,t===Ue?Ie:0),e=se,o===0)n!==null&&(n!==cd&&ad(n),t.callbackNode=null,t.callbackPriority=0);else{if(n!==null){if(t.callbackPriority===e)return;n!==cd&&ad(n)}e===15?(n=Jd.bind(null,t),Jt===null?(Jt=[n],va=sd(wa,o0)):Jt.push(n),n=cd):e===14?n=bi(99,Jd.bind(null,t)):(n=Px(e),n=bi(n,X0.bind(null,t))),t.callbackPriority=e,t.callbackNode=n}}function X0(t){if(Fa=-1,Ha=Gt=0,U&48)throw Error(M(327));var e=t.callbackNode;if(Pn()&&t.callbackNode!==e)return null;var n=ai(t,t===Ue?Ie:0);if(n===0)return null;var o=n,r=U;U|=16;var i=ob();(Ue!==t||Ie!==o)&&(cr(),dr(t,o));do try{WC();break}catch(a){nb(t,a)}while(!0);if(dd(),Ia.current=i,U=r,we!==null?o=0:(Ue=null,Ie=0,o=Re),ar&lr)dr(t,0);else if(o!==0){if(o===2&&(U|=64,t.hydrate&&(t.hydrate=!1,nd(t.containerInfo)),n=dy(t),n!==0&&(o=Li(t,n))),o===1)throw e=za,dr(t,0),ur(t,n),mt(t,Pe()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=n,o){case 0:case 1:throw Error(M(345));case 2:go(t);break;case 3:if(ur(t,n),(n&62914560)===n&&(o=Fd+500-Pe(),10<o)){if(ai(t,0)!==0)break;if(r=t.suspendedLanes,(r&n)!==n){nt(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=Uy(go.bind(null,t),o);break}go(t);break;case 4:if(ur(t,n),(n&4186112)===n)break;for(o=t.eventTimes,r=-1;0<n;){var s=31-kn(n);i=1<<s,s=o[s],s>r&&(r=s),n&=~i}if(n=r,n=Pe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*YC(n/1960))-n,10<n){t.timeoutHandle=Uy(go.bind(null,t),n);break}go(t);break;case 5:go(t);break;default:throw Error(M(329))}}return mt(t,Pe()),t.callbackNode===e?X0.bind(null,t):null}function ur(t,e){for(e&=~zd,e&=~lr,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-kn(e),o=1<<n;t[n]=-1,e&=~o}}function Jd(t){if(U&48)throw Error(M(327));if(Pn(),t===Ue&&t.expiredLanes&Ie){var e=Ie,n=Li(t,e);ar&lr&&(e=ai(t,e),n=Li(t,e))}else e=ai(t,0),n=Li(t,e);if(t.tag!==0&&n===2&&(U|=64,t.hydrate&&(t.hydrate=!1,nd(t.containerInfo)),e=dy(t),e!==0&&(n=Li(t,e))),n===1)throw n=za,dr(t,0),ur(t,e),mt(t,Pe()),n;return t.finishedWork=t.current.alternate,t.finishedLanes=e,go(t),mt(t,Pe()),null}function JC(){if(qt!==null){var t=qt;qt=null,t.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,mt(e,Pe())})}At()}function eb(t,e){var n=U;U|=1;try{return t(e)}finally{U=n,U===0&&(cr(),At())}}function tb(t,e){var n=U;U&=-2,U|=8;try{return t(e)}finally{U=n,U===0&&(cr(),At())}}function _a(t,e){fe(Id,ho),ho|=e,ar|=e}function Kd(){ho=Id.current,ce(Id)}function dr(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,EC(n)),we!==null)for(n=we.return;n!==null;){var o=n;switch(o.tag){case 1:o=o.type.childContextTypes,o!=null&&ya();break;case 3:ir(),ce(Je),ce(je),wd();break;case 5:gd(o);break;case 4:ir();break;case 13:ce(pe);break;case 19:ce(pe);break;case 10:md(o);break;case 23:case 24:Kd()}n=n.return}Ue=t,we=In(t.current,null),Ie=ho=ar=e,Re=0,za=null,zd=lr=Oi=0}function nb(t,e){do{var n=we;try{if(dd(),xi.current=Pa,Oa){for(var o=ge.memoizedState;o!==null;){var r=o.queue;r!==null&&(r.pending=null),o=o.next}Oa=!1}if(Ci=0,De=Le=ge=null,Ei=!1,Ld.current=null,n===null||n.return===null){Re=1,za=e,we=null;break}e:{var i=t,s=n.return,a=n,l=e;if(e=Ie,a.flags|=2048,a.firstEffect=a.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l;if(!(a.mode&2)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.lanes=u.lanes):(a.updateQueue=null,a.memoizedState=null)}var d=(pe.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 g=m.memoizedProps;f=g.fallback===void 0?!1:g.unstable_avoidThisFallback!==!0?!0:!d}}if(f){var h=m.updateQueue;if(h===null){var y=new Set;y.add(c),m.updateQueue=y}else h.add(c);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=Dn(-1,1);w.tag=2,Rn(a,w)}a.lanes|=1;break e}l=void 0,a=e;var $=i.pingCache;if($===null?($=i.pingCache=new FC,l=new Set,$.set(c,l)):(l=$.get(c),l===void 0&&(l=new Set,$.set(c,l))),!l.has(a)){l.add(a);var v=XC.bind(null,i,c,a);c.then(v,v)}m.flags|=4096,m.lanes=e;break e}m=m.return}while(m!==null);l=Error((Fo(a.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
128
+ `+i.stack}return{value:t,source:e,stack:r}}function Td(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var HC=typeof WeakMap=="function"?WeakMap:Map;function U0(t,e,n){n=Dn(-1,n),n.tag=3,n.payload={element:null};var o=e.value;return n.callback=function(){Ba||(Ba=!0,Vd=o),Td(t,e)},n}function _0(t,e,n){n=Dn(-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"&&(Tt===null?Tt=new Set([this]):Tt.add(this),Td(t,e));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}var VC=typeof WeakSet=="function"?WeakSet:Set;function Y0(t){var e=t.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(n){In(t,n)}else e.current=null}function UC(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:vt(e.type,n),o),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&nd(e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(M(163))}function _C(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&&(sb(n,t),ZC(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:vt(n.type,e.memoizedProps),t.componentDidUpdate(o,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),e=n.updateQueue,e!==null&&a0(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}a0(n,e,t)}return;case 5:t=n.stateNode,e===null&&n.flags&4&&Vy(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&&ry(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(M(163))}function J0(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=Hg("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 K0(t,e){if(co&&typeof co.onCommitFiberUnmount=="function")try{co.onCommitFiberUnmount(id,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)sb(e,n);else{o=e;try{r()}catch(i){In(o,i)}}n=n.next}while(n!==t)}break;case 1:if(Y0(e),t=e.stateNode,typeof t.componentWillUnmount=="function")try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(i){In(e,i)}break;case 5:Y0(e);break;case 4:Q0(t,e)}}function W0(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 q0(t){return t.tag===5||t.tag===3||t.tag===4}function G0(t){e:{for(var e=t.return;e!==null;){if(q0(e))break e;e=e.return}throw Error(M(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(M(161))}n.flags&16&&(Qr(e,""),n.flags&=-17);e:t:for(n=t;;){for(;n.sibling===null;){if(n.return===null||q0(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?Md(t,n,e):jd(t,n,e)}function Md(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=fa));else if(o!==4&&(t=t.child,t!==null))for(Md(t,e,n),t=t.sibling;t!==null;)Md(t,e,n),t=t.sibling}function jd(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(jd(t,e,n),t=t.sibling;t!==null;)jd(t,e,n),t=t.sibling}function Q0(t,e){for(var n=e,o=!1,r,i;;){if(!o){o=n.return;e:for(;;){if(o===null)throw Error(M(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(K0(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(K0(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 Pd(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[ha]=o,t==="input"&&o.type==="radio"&&o.name!=null&&jg(n,o),Su(t,r),e=Su(t,o),r=0;r<i.length;r+=2){var s=i[r],a=i[r+1];s==="style"?Vg(n,a):s==="dangerouslySetInnerHTML"?Fg(n,a):s==="children"?Qr(n,a):ou(n,s,a,e)}switch(t){case"input":hu(n,o);break;case"textarea":Lg(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,i=o.value,i!=null?Ho(n,!!o.multiple,i,!1):t!==!!o.multiple&&(o.defaultValue!=null?Ho(n,!!o.multiple,o.defaultValue,!0):Ho(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(e.stateNode===null)throw Error(M(162));e.stateNode.nodeValue=e.memoizedProps;return;case 3:n=e.stateNode,n.hydrate&&(n.hydrate=!1,ry(n.containerInfo));return;case 12:return;case 13:e.memoizedState!==null&&(Fd=Pe(),J0(e.child,!0)),Z0(e);return;case 19:Z0(e);return;case 17:return;case 23:case 24:J0(e,e.memoizedState!==null);return}throw Error(M(163))}function Z0(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new VC),e.forEach(function(o){var r=tE.bind(null,t,o);n.has(o)||(n.add(o),o.then(r,r))})}}function YC(t,e){return t!==null&&(t=t.memoizedState,t===null||t.dehydrated!==null)?(e=e.memoizedState,e!==null&&e.dehydrated===null):!1}var JC=Math.ceil,La=oo.ReactCurrentDispatcher,Id=oo.ReactCurrentOwner,U=0,Ue=null,we=null,Le=0,ho=0,Ld=En(0),Re=0,za=null,ar=0,Oi=0,lr=0,zd=0,Bd=null,Fd=0,Hd=1/0;function cr(){Hd=Pe()+500}var z=null,Ba=!1,Vd=null,Tt=null,Tn=!1,Ti=null,Mi=90,Ud=[],_d=[],qt=null,ji=0,Yd=null,Fa=-1,Gt=0,Ha=0,Pi=null,Va=!1;function nt(){return U&48?Pe():Fa!==-1?Fa:Fa=Pe()}function Mn(t){if(t=t.mode,!(t&2))return 1;if(!(t&4))return nr()===99?1:2;if(Gt===0&&(Gt=ar),MC.transition!==0){Ha!==0&&(Ha=Bd!==null?Bd.pendingLanes:0),t=Gt;var e=4186112&~Ha;return e&=-e,e===0&&(t=4186112&~t,e=t&-t,e===0&&(e=8192)),e}return t=nr(),U&4&&t===98?t=ra(12,Gt):(t=Px(t),t=ra(t,Gt)),t}function jn(t,e,n){if(50<ji)throw ji=0,Yd=null,Error(M(185));if(t=Ua(t,e),t===null)return null;ia(t,e,n),t===Ue&&(lr|=e,Re===4&&ur(t,Le));var o=nr();e===1?U&8&&!(U&48)?Jd(t):(mt(t,n),U===0&&(cr(),At())):(!(U&4)||o!==98&&o!==99||(qt===null?qt=new Set([t]):qt.add(t)),mt(t,n)),Bd=t}function Ua(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 mt(t,e){for(var n=t.callbackNode,o=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var a=31-kn(s),l=1<<a,c=i[a];if(c===-1){if(!(l&o)||l&r){c=e,Yo(l);var u=ie;i[a]=10<=u?c+250:6<=u?c+5e3:-1}}else c<=e&&(t.expiredLanes|=l);s&=~l}if(o=ai(t,t===Ue?Le:0),e=ie,o===0)n!==null&&(n!==cd&&ad(n),t.callbackNode=null,t.callbackPriority=0);else{if(n!==null){if(t.callbackPriority===e)return;n!==cd&&ad(n)}e===15?(n=Jd.bind(null,t),Jt===null?(Jt=[n],va=sd(wa,o0)):Jt.push(n),n=cd):e===14?n=bi(99,Jd.bind(null,t)):(n=Ix(e),n=bi(n,X0.bind(null,t))),t.callbackPriority=e,t.callbackNode=n}}function X0(t){if(Fa=-1,Ha=Gt=0,U&48)throw Error(M(327));var e=t.callbackNode;if(Pn()&&t.callbackNode!==e)return null;var n=ai(t,t===Ue?Le:0);if(n===0)return null;var o=n,r=U;U|=16;var i=ob();(Ue!==t||Le!==o)&&(cr(),dr(t,o));do try{qC();break}catch(a){nb(t,a)}while(!0);if(dd(),La.current=i,U=r,we!==null?o=0:(Ue=null,Le=0,o=Re),ar&lr)dr(t,0);else if(o!==0){if(o===2&&(U|=64,t.hydrate&&(t.hydrate=!1,nd(t.containerInfo)),n=dy(t),n!==0&&(o=Ii(t,n))),o===1)throw e=za,dr(t,0),ur(t,n),mt(t,Pe()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=n,o){case 0:case 1:throw Error(M(345));case 2:go(t);break;case 3:if(ur(t,n),(n&62914560)===n&&(o=Fd+500-Pe(),10<o)){if(ai(t,0)!==0)break;if(r=t.suspendedLanes,(r&n)!==n){nt(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=Uy(go.bind(null,t),o);break}go(t);break;case 4:if(ur(t,n),(n&4186112)===n)break;for(o=t.eventTimes,r=-1;0<n;){var s=31-kn(n);i=1<<s,s=o[s],s>r&&(r=s),n&=~i}if(n=r,n=Pe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*JC(n/1960))-n,10<n){t.timeoutHandle=Uy(go.bind(null,t),n);break}go(t);break;case 5:go(t);break;default:throw Error(M(329))}}return mt(t,Pe()),t.callbackNode===e?X0.bind(null,t):null}function ur(t,e){for(e&=~zd,e&=~lr,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-kn(e),o=1<<n;t[n]=-1,e&=~o}}function Jd(t){if(U&48)throw Error(M(327));if(Pn(),t===Ue&&t.expiredLanes&Le){var e=Le,n=Ii(t,e);ar&lr&&(e=ai(t,e),n=Ii(t,e))}else e=ai(t,0),n=Ii(t,e);if(t.tag!==0&&n===2&&(U|=64,t.hydrate&&(t.hydrate=!1,nd(t.containerInfo)),e=dy(t),e!==0&&(n=Ii(t,e))),n===1)throw n=za,dr(t,0),ur(t,e),mt(t,Pe()),n;return t.finishedWork=t.current.alternate,t.finishedLanes=e,go(t),mt(t,Pe()),null}function KC(){if(qt!==null){var t=qt;qt=null,t.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,mt(e,Pe())})}At()}function eb(t,e){var n=U;U|=1;try{return t(e)}finally{U=n,U===0&&(cr(),At())}}function tb(t,e){var n=U;U&=-2,U|=8;try{return t(e)}finally{U=n,U===0&&(cr(),At())}}function _a(t,e){me(Ld,ho),ho|=e,ar|=e}function Kd(){ho=Ld.current,ae(Ld)}function dr(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,NC(n)),we!==null)for(n=we.return;n!==null;){var o=n;switch(o.tag){case 1:o=o.type.childContextTypes,o!=null&&ya();break;case 3:ir(),ae(Je),ae(je),wd();break;case 5:gd(o);break;case 4:ir();break;case 13:ae(fe);break;case 19:ae(fe);break;case 10:md(o);break;case 23:case 24:Kd()}n=n.return}Ue=t,we=Ln(t.current,null),Le=ho=ar=e,Re=0,za=null,zd=lr=Oi=0}function nb(t,e){do{var n=we;try{if(dd(),xi.current=Pa,Oa){for(var o=he.memoizedState;o!==null;){var r=o.queue;r!==null&&(r.pending=null),o=o.next}Oa=!1}if(Ci=0,De=Ie=he=null,Ei=!1,Id.current=null,n===null||n.return===null){Re=1,za=e,we=null;break}e:{var i=t,s=n.return,a=n,l=e;if(e=Le,a.flags|=2048,a.firstEffect=a.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l;if(!(a.mode&2)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.lanes=u.lanes):(a.updateQueue=null,a.memoizedState=null)}var d=(fe.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 g=m.memoizedProps;f=g.fallback===void 0?!1:g.unstable_avoidThisFallback!==!0?!0:!d}}if(f){var h=m.updateQueue;if(h===null){var y=new Set;y.add(c),m.updateQueue=y}else h.add(c);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=Dn(-1,1);w.tag=2,Rn(a,w)}a.lanes|=1;break e}l=void 0,a=e;var v=i.pingCache;if(v===null?(v=i.pingCache=new HC,l=new Set,v.set(c,l)):(l=v.get(c),l===void 0&&(l=new Set,v.set(c,l))),!l.has(a)){l.add(a);var $=eE.bind(null,i,c,a);c.then($,$)}m.flags|=4096,m.lanes=e;break e}m=m.return}while(m!==null);l=Error((Fo(a.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
129
129
 
130
- Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Re!==5&&(Re=2),l=Od(l,a),m=s;do{switch(m.tag){case 3:i=l,m.flags|=4096,e&=-e,m.lanes|=e;var x=U0(m,i,e);s0(m,x);break e;case 1:i=l;var S=m.type,C=m.stateNode;if(!(m.flags&64)&&(typeof S.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Tt===null||!Tt.has(C)))){m.flags|=4096,e&=-e,m.lanes|=e;var A=_0(m,i,e);s0(m,A);break e}}m=m.return}while(m!==null)}ib(n)}catch(N){e=N,we===n&&n!==null&&(we=n=n.return);continue}break}while(!0)}function ob(){var t=Ia.current;return Ia.current=Pa,t===null?Pa:t}function Li(t,e){var n=U;U|=16;var o=ob();Ue===t&&Ie===e||dr(t,e);do try{KC();break}catch(r){nb(t,r)}while(!0);if(dd(),U=n,Ia.current=o,we!==null)throw Error(M(261));return Ue=null,Ie=0,Re}function KC(){for(;we!==null;)rb(we)}function WC(){for(;we!==null&&!DC();)rb(we)}function rb(t){var e=lb(t.alternate,t,ho);t.memoizedProps=t.pendingProps,e===null?ib(t):we=e,Ld.current=null}function ib(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&2048){if(n=BC(e),n!==null){n.flags&=2047,we=n;return}t!==null&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}else{if(n=zC(n,e,ho),n!==null){we=n;return}if(n=e,n.tag!==24&&n.tag!==23||n.memoizedState===null||ho&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){we=e;return}we=e=t}while(e!==null);Re===0&&(Re=5)}function go(t){var e=nr();return uo(99,qC.bind(null,t,e)),null}function qC(t,e){do Pn();while(Ti!==null);if(U&48)throw Error(M(327));var n=t.finishedWork;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(M(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-kn(i),c=1<<l;r[l]=0,s[l]=-1,a[l]=-1,i&=~c}if(qt!==null&&!(o&24)&&qt.has(t)&&qt.delete(t),t===Ue&&(we=Ue=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=U,U|=32,Ld.current=null,Xu=sa,s=Oy(),qu(s)){if("selectionStart"in s)a={start:s.selectionStart,end:s.selectionEnd};else e:if(a=(a=s.ownerDocument)&&a.defaultView||window,(c=a.getSelection&&a.getSelection())&&c.rangeCount!==0){a=c.anchorNode,i=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var u=0,d=-1,m=-1,f=0,p=0,g=s,h=null;t:for(;;){for(var y;g!==a||i!==0&&g.nodeType!==3||(d=u+i),g!==l||c!==0&&g.nodeType!==3||(m=u+c),g.nodeType===3&&(u+=g.nodeValue.length),(y=g.firstChild)!==null;)h=g,g=y;for(;;){if(g===s)break t;if(h===a&&++f===i&&(d=u),h===l&&++p===c&&(m=u),(y=g.nextSibling)!==null)break;g=h,h=g.parentNode}g=y}a=d===-1||m===-1?null:{start:d,end:m}}else a=null;a=a||{start:0,end:0}}else a=null;ed={focusedElem:s,selectionRange:a},sa=!1,Pi=null,Va=!1,z=o;do try{GC()}catch(N){if(z===null)throw Error(M(330));Ln(z,N),z=z.nextEffect}while(z!==null);Pi=null,z=o;do try{for(s=t;z!==null;){var w=z.flags;if(w&16&&Qr(z.stateNode,""),w&128){var $=z.alternate;if($!==null){var v=$.ref;v!==null&&(typeof v=="function"?v(null):v.current=null)}}switch(w&1038){case 2:G0(z),z.flags&=-3;break;case 6:G0(z),z.flags&=-3,Pd(z.alternate,z);break;case 1024:z.flags&=-1025;break;case 1028:z.flags&=-1025,Pd(z.alternate,z);break;case 4:Pd(z.alternate,z);break;case 8:a=z,Q0(s,a);var x=a.alternate;W0(a),x!==null&&W0(x)}z=z.nextEffect}}catch(N){if(z===null)throw Error(M(330));Ln(z,N),z=z.nextEffect}while(z!==null);if(v=ed,$=Oy(),w=v.focusedElem,s=v.selectionRange,$!==w&&w&&w.ownerDocument&&Ry(w.ownerDocument.documentElement,w)){for(s!==null&&qu(w)&&($=s.start,v=s.end,v===void 0&&(v=$),"selectionStart"in w?(w.selectionStart=$,w.selectionEnd=Math.min(v,w.value.length)):(v=($=w.ownerDocument||document)&&$.defaultView||window,v.getSelection&&(v=v.getSelection(),a=w.textContent.length,x=Math.min(s.start,a),s=s.end===void 0?x:Math.min(s.end,a),!v.extend&&x>s&&(a=s,s=x,x=a),a=Dy(w,x),i=Dy(w,s),a&&i&&(v.rangeCount!==1||v.anchorNode!==a.node||v.anchorOffset!==a.offset||v.focusNode!==i.node||v.focusOffset!==i.offset)&&($=$.createRange(),$.setStart(a.node,a.offset),v.removeAllRanges(),x>s?(v.addRange($),v.extend(i.node,i.offset)):($.setEnd(i.node,i.offset),v.addRange($)))))),$=[],v=w;v=v.parentNode;)v.nodeType===1&&$.push({element:v,left:v.scrollLeft,top:v.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<$.length;w++)v=$[w],v.element.scrollLeft=v.left,v.element.scrollTop=v.top}sa=!!Xu,ed=Xu=null,t.current=n,z=o;do try{for(w=t;z!==null;){var S=z.flags;if(S&36&&UC(w,z.alternate,z),S&128){$=void 0;var C=z.ref;if(C!==null){var A=z.stateNode;switch(z.tag){case 5:$=A;break;default:$=A}typeof C=="function"?C($):C.current=$}}z=z.nextEffect}}catch(N){if(z===null)throw Error(M(330));Ln(z,N),z=z.nextEffect}while(z!==null);z=null,OC(),U=r}else t.current=n;if(Tn)Tn=!1,Ti=t,Mi=e;else for(z=o;z!==null;)e=z.nextEffect,z.nextEffect=null,z.flags&8&&(S=z,S.sibling=null,S.stateNode=null),z=e;if(o=t.pendingLanes,o===0&&(Tt=null),o===1?t===Yd?ji++:(ji=0,Yd=t):ji=0,n=n.stateNode,co&&typeof co.onCommitFiberRoot=="function")try{co.onCommitFiberRoot(id,n,void 0,(n.current.flags&64)===64)}catch{}if(mt(t,Pe()),Ba)throw Ba=!1,t=Vd,Vd=null,t;return U&8||At(),null}function GC(){for(;z!==null;){var t=z.alternate;Va||Pi===null||(z.flags&8?Qg(z,Pi)&&(Va=!0):z.tag===13&&_C(t,z)&&Qg(z,Pi)&&(Va=!0));var e=z.flags;e&256&&VC(t,z),!(e&512)||Tn||(Tn=!0,bi(97,function(){return Pn(),null})),z=z.nextEffect}}function Pn(){if(Mi!==90){var t=97<Mi?97:Mi;return Mi=90,uo(t,ZC)}return!1}function QC(t,e){Ud.push(e,t),Tn||(Tn=!0,bi(97,function(){return Pn(),null}))}function sb(t,e){_d.push(e,t),Tn||(Tn=!0,bi(97,function(){return Pn(),null}))}function ZC(){if(Ti===null)return!1;var t=Ti;if(Ti=null,U&48)throw Error(M(331));var e=U;U|=32;var n=_d;_d=[];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(M(330));Ln(i,l)}}for(n=Ud,Ud=[],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(M(330));Ln(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 U=e,At(),!0}function ab(t,e,n){e=Od(n,e),e=U0(t,e,1),Rn(t,e),e=nt(),t=Ua(t,1),t!==null&&(ia(t,1,e),mt(t,e))}function Ln(t,e){if(t.tag===3)ab(t,t,e);else for(var n=t.return;n!==null;){if(n.tag===3){ab(n,t,e);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Tt===null||!Tt.has(o))){t=Od(e,t);var r=_0(n,t,1);if(Rn(n,r),r=nt(),n=Ua(n,1),n!==null)ia(n,1,r),mt(n,r);else if(typeof o.componentDidCatch=="function"&&(Tt===null||!Tt.has(o)))try{o.componentDidCatch(e,t)}catch{}break}}n=n.return}}function XC(t,e,n){var o=t.pingCache;o!==null&&o.delete(e),e=nt(),t.pingedLanes|=t.suspendedLanes&n,Ue===t&&(Ie&n)===n&&(Re===4||Re===3&&(Ie&62914560)===Ie&&500>Pe()-Fd?dr(t,0):zd|=n),mt(t,e)}function eE(t,e){var n=t.stateNode;n!==null&&n.delete(e),e=0,e===0&&(e=t.mode,e&2?e&4?(Gt===0&&(Gt=ar),e=Jo(62914560&~Gt),e===0&&(e=4194304)):e=nr()===99?1:2:e=1),n=nt(),t=Ua(t,e),t!==null&&(ia(t,e,n),mt(t,n))}var lb;lb=function(t,e,n){var o=e.lanes;if(t!==null)if(t.memoizedProps!==e.pendingProps||Je.current)$t=!0;else if(n&o)$t=!!(t.flags&16384);else{switch($t=!1,e.tag){case 3:M0(e),bd();break;case 5:p0(e);break;case 1:Ke(e.type)&&ba(e);break;case 4:hd(e,e.stateNode.containerInfo);break;case 10:o=e.memoizedProps.value;var r=e.type._context;fe($a,r._currentValue),r._currentValue=o;break;case 13:if(e.memoizedState!==null)return n&e.child.childLanes?j0(t,e,n):(fe(pe,pe.current&1),e=Wt(t,e,n),e!==null?e.sibling:null);fe(pe,pe.current&1);break;case 19:if(o=(n&e.childLanes)!==0,t.flags&64){if(o)return B0(t,e,n);e.flags|=64}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),fe(pe,pe.current),o)break;return null;case 23:case 24:return e.lanes=0,Ed(t,e,n)}return Wt(t,e,n)}else $t=!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=tr(e,je.current),rr(e,n),r=$d(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,Ke(o)){var i=!0;ba(e)}else i=!1;e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,fd(e);var s=o.getDerivedStateFromProps;typeof s=="function"&&xa(e,o,s,t),r.updater=Ca,e.stateNode=r,r._reactInternals=e,pd(e,o,t,n),e=Ad(null,e,o,!0,i,n)}else e.tag=0,qe(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=nE(r),t=vt(r,t),i){case 0:e=Nd(null,e,r,t,n);break e;case 1:e=T0(null,e,r,t,n);break e;case 11:e=A0(null,e,r,t,n);break e;case 14:e=D0(null,e,r,vt(r.type,t),o,n);break e}throw Error(M(306,r,""))}return e;case 0:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:vt(o,r),Nd(t,e,o,r,n);case 1:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:vt(o,r),T0(t,e,o,r,n);case 3:if(M0(e),o=e.updateQueue,t===null||o===null)throw Error(M(282));if(o=e.pendingProps,r=e.memoizedState,r=r!==null?r.element:null,i0(t,e),wi(e,o,null,n),o=e.memoizedState.element,o===r)bd(),e=Wt(t,e,n);else{if(r=e.stateNode,(i=r.hydrate)&&(On=Qo(e.stateNode.containerInfo.firstChild),Kt=e,i=Rt=!0),i){if(t=r.mutableSourceEagerHydrationData,t!=null)for(r=0;r<t.length;r+=2)i=t[r],i._workInProgressVersionPrimary=t[r+1],sr.push(i);for(n=f0(e,null,o,n),e.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else qe(t,e,o,n),bd();e=e.child}return e;case 5:return p0(e),t===null&&yd(e),o=e.type,r=e.pendingProps,i=t!==null?t.memoizedProps:null,s=r.children,td(o,r)?s=null:i!==null&&td(o,i)&&(e.flags|=16),O0(t,e),qe(t,e,s,n),e.child;case 6:return t===null&&yd(e),null;case 13:return j0(t,e,n);case 4:return hd(e,e.stateNode.containerInfo),o=e.pendingProps,t===null?e.child=Aa(e,null,o,n):qe(t,e,o,n),e.child;case 11:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:vt(o,r),A0(t,e,o,r,n);case 7:return qe(t,e,e.pendingProps,n),e.child;case 8:return qe(t,e,e.pendingProps.children,n),e.child;case 12:return qe(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(fe($a,a._currentValue),a._currentValue=i,s!==null)if(a=s.value,i=ct(a,i)?0:(typeof o._calculateChangedBits=="function"?o._calculateChangedBits(a,i):1073741823)|0,i===0){if(s.children===r.children&&!Je.current){e=Wt(t,e,n);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var l=a.dependencies;if(l!==null){s=a.child;for(var c=l.firstContext;c!==null;){if(c.context===o&&c.observedBits&i){a.tag===1&&(c=Dn(-1,n&-n),c.tag=2,Rn(a,c)),a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),r0(a.return,n),l.lanes|=n;break}c=c.next}}else s=a.tag===10&&a.type===e.type?null:a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}qe(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps,o=i.children,rr(e,n),r=ut(r,i.unstable_observedBits),o=o(r),e.flags|=1,qe(t,e,o,n),e.child;case 14:return r=e.type,i=vt(r,e.pendingProps),i=vt(r.type,i),D0(t,e,r,i,o,n);case 15:return R0(t,e,e.type,e.pendingProps,o,n);case 17:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:vt(o,r),t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,Ke(o)?(t=!0,ba(e)):t=!1,rr(e,n),u0(e,o,r),pd(e,o,r,n),Ad(null,e,o,!0,t,n);case 19:return B0(t,e,n);case 23:return Ed(t,e,n);case 24:return Ed(t,e,n)}throw Error(M(156,e.tag))};function tE(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 ft(t,e,n,o){return new tE(t,e,n,o)}function Wd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function nE(t){if(typeof t=="function")return Wd(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Js)return 11;if(t===Ws)return 14}return 2}function In(t,e){var n=t.alternate;return n===null?(n=ft(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 Ya(t,e,n,o,r,i){var s=2;if(o=t,typeof t=="function")Wd(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case bn:return mr(n.children,r,i,e);case Dg:s=8,r|=16;break;case ru:s=8,r|=1;break;case Kr:return t=ft(12,n,e,r|8),t.elementType=Kr,t.type=Kr,t.lanes=i,t;case Wr:return t=ft(13,n,e,r),t.type=Wr,t.elementType=Wr,t.lanes=i,t;case Ks:return t=ft(19,n,e,r),t.elementType=Ks,t.lanes=i,t;case uu:return qd(n,r,i,e);case du:return t=ft(24,n,e,r),t.elementType=du,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case iu:s=10;break e;case su:s=9;break e;case Js:s=11;break e;case Ws:s=14;break e;case au:s=16,o=null;break e;case lu:s=22;break e}throw Error(M(130,t==null?t:typeof t,""))}return e=ft(s,n,e,r),e.elementType=t,e.type=o,e.lanes=i,e}function mr(t,e,n,o){return t=ft(7,t,o,e),t.lanes=n,t}function qd(t,e,n,o){return t=ft(23,t,o,e),t.elementType=uu,t.lanes=n,t}function Gd(t,e,n){return t=ft(6,t,null,e),t.lanes=n,t}function Qd(t,e,n){return e=ft(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function oE(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=Iu(0),this.expirationTimes=Iu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Iu(0),this.mutableSourceEagerHydrationData=null}function rE(t,e,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ro,key:o==null?null:""+o,children:t,containerInfo:e,implementation:n}}function Ja(t,e,n,o){var r=e.current,i=nt(),s=Mn(r);e:if(n){n=n._reactInternals;t:{if(so(n)!==n||n.tag!==1)throw Error(M(170));var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(Ke(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(M(171))}if(n.tag===1){var l=n.type;if(Ke(l)){n=Wy(n,l,a);break e}}n=a}else n=Nn;return e.context===null?e.context=n:e.pendingContext=n,e=Dn(i,s),e.payload={element:t},o=o===void 0?null:o,o!==null&&(e.callback=o),Rn(r,e),jn(r,s,i),s}function Zd(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 cb(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Xd(t,e){cb(t,e),(t=t.alternate)&&cb(t,e)}function iE(){return null}function em(t,e,n){var o=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new oE(t,e,n!=null&&n.hydrate===!0),e=ft(3,null,null,e===2?7:e===1?3:0),n.current=e,e.stateNode=n,fd(e),t[Zo]=n.current,Iy(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}em.prototype.render=function(t){Ja(t,this._internalRoot,null,null)},em.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Ja(null,t,null,function(){e[Zo]=null})};function Ii(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function sE(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 em(t,0,e?{hydrate:!0}:void 0)}function Ka(t,e,n,o,r){var i=n._reactRootContainer;if(i){var s=i._internalRoot;if(typeof r=="function"){var a=r;r=function(){var c=Zd(s);a.call(c)}}Ja(e,s,t,r)}else{if(i=n._reactRootContainer=sE(n,o),s=i._internalRoot,typeof r=="function"){var l=r;r=function(){var c=Zd(s);l.call(c)}}tb(function(){Ja(e,s,t,r)})}return Zd(s)}Zg=function(t){if(t.tag===13){var e=nt();jn(t,4,e),Xd(t,4)}},Ou=function(t){if(t.tag===13){var e=nt();jn(t,67108864,e),Xd(t,67108864)}},Xg=function(t){if(t.tag===13){var e=nt(),n=Mn(t);jn(t,n,e),Xd(t,n)}},ey=function(t,e){return e()},xu=function(t,e,n){switch(e){case"input":if(hu(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=ga(o);if(!r)throw Error(M(90));Tg(o),hu(o,r)}}}break;case"textarea":Ig(t,n);break;case"select":e=n.value,e!=null&&Ho(t,!!n.multiple,e,!1)}},Cu=eb,Jg=function(t,e,n,o,r){var i=U;U|=4;try{return uo(98,t.bind(null,e,n,o,r))}finally{U=i,U===0&&(cr(),At())}},Eu=function(){!(U&49)&&(JC(),Pn())},Kg=function(t,e){var n=U;U|=2;try{return t(e)}finally{U=n,U===0&&(cr(),At())}};function ub(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ii(e))throw Error(M(200));return rE(t,e,null,n)}var aE={Events:[yi,Xo,ga,_g,Yg,Pn,{current:!1}]},zi={findFiberByHostInstance:ao,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},lE={bundleType:zi.bundleType,version:zi.version,rendererPackageName:zi.rendererPackageName,rendererConfig:zi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:oo.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Gg(t),t===null?null:t.stateNode},findFiberByHostInstance:zi.findFiberByHostInstance||iE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wa.isDisabled&&Wa.supportsFiber)try{id=Wa.inject(lE),co=Wa}catch{}}lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=aE,lt.createPortal=ub,lt.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(M(188)):Error(M(268,Object.keys(t)));return t=Gg(e),t=t===null?null:t.stateNode,t},lt.flushSync=function(t,e){var n=U;if(n&48)return t(e);U|=1;try{if(t)return uo(99,t.bind(null,e))}finally{U=n,At()}},lt.hydrate=function(t,e,n){if(!Ii(e))throw Error(M(200));return Ka(null,t,e,!0,n)},lt.render=function(t,e,n){if(!Ii(e))throw Error(M(200));return Ka(null,t,e,!1,n)},lt.unmountComponentAtNode=function(t){if(!Ii(t))throw Error(M(40));return t._reactRootContainer?(tb(function(){Ka(null,null,t,!1,function(){t._reactRootContainer=null,t[Zo]=null})}),!0):!1},lt.unstable_batchedUpdates=eb,lt.unstable_createPortal=function(t,e){return ub(t,e,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},lt.unstable_renderSubtreeIntoContainer=function(t,e,n,o){if(!Ii(n))throw Error(M(200));if(t==null||t._reactInternals===void 0)throw Error(M(38));return Ka(t,e,n,!1,o)},lt.version="17.0.2";function db(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(db)}catch(t){console.error(t)}}db(),Sg.exports=lt;var tm=Sg.exports;const mb=zt(tm);function cE(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fb={exports:{}},nm={};/**
130
+ Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Re!==5&&(Re=2),l=Od(l,a),m=s;do{switch(m.tag){case 3:i=l,m.flags|=4096,e&=-e,m.lanes|=e;var x=U0(m,i,e);s0(m,x);break e;case 1:i=l;var S=m.type,C=m.stateNode;if(!(m.flags&64)&&(typeof S.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Tt===null||!Tt.has(C)))){m.flags|=4096,e&=-e,m.lanes|=e;var D=_0(m,i,e);s0(m,D);break e}}m=m.return}while(m!==null)}ib(n)}catch(N){e=N,we===n&&n!==null&&(we=n=n.return);continue}break}while(!0)}function ob(){var t=La.current;return La.current=Pa,t===null?Pa:t}function Ii(t,e){var n=U;U|=16;var o=ob();Ue===t&&Le===e||dr(t,e);do try{WC();break}catch(r){nb(t,r)}while(!0);if(dd(),U=n,La.current=o,we!==null)throw Error(M(261));return Ue=null,Le=0,Re}function WC(){for(;we!==null;)rb(we)}function qC(){for(;we!==null&&!RC();)rb(we)}function rb(t){var e=lb(t.alternate,t,ho);t.memoizedProps=t.pendingProps,e===null?ib(t):we=e,Id.current=null}function ib(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&2048){if(n=FC(e),n!==null){n.flags&=2047,we=n;return}t!==null&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}else{if(n=BC(n,e,ho),n!==null){we=n;return}if(n=e,n.tag!==24&&n.tag!==23||n.memoizedState===null||ho&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){we=e;return}we=e=t}while(e!==null);Re===0&&(Re=5)}function go(t){var e=nr();return uo(99,GC.bind(null,t,e)),null}function GC(t,e){do Pn();while(Ti!==null);if(U&48)throw Error(M(327));var n=t.finishedWork;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(M(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-kn(i),c=1<<l;r[l]=0,s[l]=-1,a[l]=-1,i&=~c}if(qt!==null&&!(o&24)&&qt.has(t)&&qt.delete(t),t===Ue&&(we=Ue=null,Le=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,o!==null){if(r=U,U|=32,Id.current=null,Xu=sa,s=Oy(),qu(s)){if("selectionStart"in s)a={start:s.selectionStart,end:s.selectionEnd};else e:if(a=(a=s.ownerDocument)&&a.defaultView||window,(c=a.getSelection&&a.getSelection())&&c.rangeCount!==0){a=c.anchorNode,i=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var u=0,d=-1,m=-1,f=0,p=0,g=s,h=null;t:for(;;){for(var y;g!==a||i!==0&&g.nodeType!==3||(d=u+i),g!==l||c!==0&&g.nodeType!==3||(m=u+c),g.nodeType===3&&(u+=g.nodeValue.length),(y=g.firstChild)!==null;)h=g,g=y;for(;;){if(g===s)break t;if(h===a&&++f===i&&(d=u),h===l&&++p===c&&(m=u),(y=g.nextSibling)!==null)break;g=h,h=g.parentNode}g=y}a=d===-1||m===-1?null:{start:d,end:m}}else a=null;a=a||{start:0,end:0}}else a=null;ed={focusedElem:s,selectionRange:a},sa=!1,Pi=null,Va=!1,z=o;do try{QC()}catch(N){if(z===null)throw Error(M(330));In(z,N),z=z.nextEffect}while(z!==null);Pi=null,z=o;do try{for(s=t;z!==null;){var w=z.flags;if(w&16&&Qr(z.stateNode,""),w&128){var v=z.alternate;if(v!==null){var $=v.ref;$!==null&&(typeof $=="function"?$(null):$.current=null)}}switch(w&1038){case 2:G0(z),z.flags&=-3;break;case 6:G0(z),z.flags&=-3,Pd(z.alternate,z);break;case 1024:z.flags&=-1025;break;case 1028:z.flags&=-1025,Pd(z.alternate,z);break;case 4:Pd(z.alternate,z);break;case 8:a=z,Q0(s,a);var x=a.alternate;W0(a),x!==null&&W0(x)}z=z.nextEffect}}catch(N){if(z===null)throw Error(M(330));In(z,N),z=z.nextEffect}while(z!==null);if($=ed,v=Oy(),w=$.focusedElem,s=$.selectionRange,v!==w&&w&&w.ownerDocument&&Ry(w.ownerDocument.documentElement,w)){for(s!==null&&qu(w)&&(v=s.start,$=s.end,$===void 0&&($=v),"selectionStart"in w?(w.selectionStart=v,w.selectionEnd=Math.min($,w.value.length)):($=(v=w.ownerDocument||document)&&v.defaultView||window,$.getSelection&&($=$.getSelection(),a=w.textContent.length,x=Math.min(s.start,a),s=s.end===void 0?x:Math.min(s.end,a),!$.extend&&x>s&&(a=s,s=x,x=a),a=Dy(w,x),i=Dy(w,s),a&&i&&($.rangeCount!==1||$.anchorNode!==a.node||$.anchorOffset!==a.offset||$.focusNode!==i.node||$.focusOffset!==i.offset)&&(v=v.createRange(),v.setStart(a.node,a.offset),$.removeAllRanges(),x>s?($.addRange(v),$.extend(i.node,i.offset)):(v.setEnd(i.node,i.offset),$.addRange(v)))))),v=[],$=w;$=$.parentNode;)$.nodeType===1&&v.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<v.length;w++)$=v[w],$.element.scrollLeft=$.left,$.element.scrollTop=$.top}sa=!!Xu,ed=Xu=null,t.current=n,z=o;do try{for(w=t;z!==null;){var S=z.flags;if(S&36&&_C(w,z.alternate,z),S&128){v=void 0;var C=z.ref;if(C!==null){var D=z.stateNode;switch(z.tag){case 5:v=D;break;default:v=D}typeof C=="function"?C(v):C.current=v}}z=z.nextEffect}}catch(N){if(z===null)throw Error(M(330));In(z,N),z=z.nextEffect}while(z!==null);z=null,TC(),U=r}else t.current=n;if(Tn)Tn=!1,Ti=t,Mi=e;else for(z=o;z!==null;)e=z.nextEffect,z.nextEffect=null,z.flags&8&&(S=z,S.sibling=null,S.stateNode=null),z=e;if(o=t.pendingLanes,o===0&&(Tt=null),o===1?t===Yd?ji++:(ji=0,Yd=t):ji=0,n=n.stateNode,co&&typeof co.onCommitFiberRoot=="function")try{co.onCommitFiberRoot(id,n,void 0,(n.current.flags&64)===64)}catch{}if(mt(t,Pe()),Ba)throw Ba=!1,t=Vd,Vd=null,t;return U&8||At(),null}function QC(){for(;z!==null;){var t=z.alternate;Va||Pi===null||(z.flags&8?Qg(z,Pi)&&(Va=!0):z.tag===13&&YC(t,z)&&Qg(z,Pi)&&(Va=!0));var e=z.flags;e&256&&UC(t,z),!(e&512)||Tn||(Tn=!0,bi(97,function(){return Pn(),null})),z=z.nextEffect}}function Pn(){if(Mi!==90){var t=97<Mi?97:Mi;return Mi=90,uo(t,XC)}return!1}function ZC(t,e){Ud.push(e,t),Tn||(Tn=!0,bi(97,function(){return Pn(),null}))}function sb(t,e){_d.push(e,t),Tn||(Tn=!0,bi(97,function(){return Pn(),null}))}function XC(){if(Ti===null)return!1;var t=Ti;if(Ti=null,U&48)throw Error(M(331));var e=U;U|=32;var n=_d;_d=[];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(M(330));In(i,l)}}for(n=Ud,Ud=[],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(M(330));In(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 U=e,At(),!0}function ab(t,e,n){e=Od(n,e),e=U0(t,e,1),Rn(t,e),e=nt(),t=Ua(t,1),t!==null&&(ia(t,1,e),mt(t,e))}function In(t,e){if(t.tag===3)ab(t,t,e);else for(var n=t.return;n!==null;){if(n.tag===3){ab(n,t,e);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Tt===null||!Tt.has(o))){t=Od(e,t);var r=_0(n,t,1);if(Rn(n,r),r=nt(),n=Ua(n,1),n!==null)ia(n,1,r),mt(n,r);else if(typeof o.componentDidCatch=="function"&&(Tt===null||!Tt.has(o)))try{o.componentDidCatch(e,t)}catch{}break}}n=n.return}}function eE(t,e,n){var o=t.pingCache;o!==null&&o.delete(e),e=nt(),t.pingedLanes|=t.suspendedLanes&n,Ue===t&&(Le&n)===n&&(Re===4||Re===3&&(Le&62914560)===Le&&500>Pe()-Fd?dr(t,0):zd|=n),mt(t,e)}function tE(t,e){var n=t.stateNode;n!==null&&n.delete(e),e=0,e===0&&(e=t.mode,e&2?e&4?(Gt===0&&(Gt=ar),e=Jo(62914560&~Gt),e===0&&(e=4194304)):e=nr()===99?1:2:e=1),n=nt(),t=Ua(t,e),t!==null&&(ia(t,e,n),mt(t,n))}var lb;lb=function(t,e,n){var o=e.lanes;if(t!==null)if(t.memoizedProps!==e.pendingProps||Je.current)$t=!0;else if(n&o)$t=!!(t.flags&16384);else{switch($t=!1,e.tag){case 3:M0(e),bd();break;case 5:p0(e);break;case 1:Ke(e.type)&&ba(e);break;case 4:hd(e,e.stateNode.containerInfo);break;case 10:o=e.memoizedProps.value;var r=e.type._context;me($a,r._currentValue),r._currentValue=o;break;case 13:if(e.memoizedState!==null)return n&e.child.childLanes?j0(t,e,n):(me(fe,fe.current&1),e=Wt(t,e,n),e!==null?e.sibling:null);me(fe,fe.current&1);break;case 19:if(o=(n&e.childLanes)!==0,t.flags&64){if(o)return B0(t,e,n);e.flags|=64}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),me(fe,fe.current),o)break;return null;case 23:case 24:return e.lanes=0,Ed(t,e,n)}return Wt(t,e,n)}else $t=!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=tr(e,je.current),rr(e,n),r=$d(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,Ke(o)){var i=!0;ba(e)}else i=!1;e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,fd(e);var s=o.getDerivedStateFromProps;typeof s=="function"&&xa(e,o,s,t),r.updater=Ca,e.stateNode=r,r._reactInternals=e,pd(e,o,t,n),e=Ad(null,e,o,!0,i,n)}else e.tag=0,qe(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=oE(r),t=vt(r,t),i){case 0:e=Nd(null,e,r,t,n);break e;case 1:e=T0(null,e,r,t,n);break e;case 11:e=A0(null,e,r,t,n);break e;case 14:e=D0(null,e,r,vt(r.type,t),o,n);break e}throw Error(M(306,r,""))}return e;case 0:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:vt(o,r),Nd(t,e,o,r,n);case 1:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:vt(o,r),T0(t,e,o,r,n);case 3:if(M0(e),o=e.updateQueue,t===null||o===null)throw Error(M(282));if(o=e.pendingProps,r=e.memoizedState,r=r!==null?r.element:null,i0(t,e),wi(e,o,null,n),o=e.memoizedState.element,o===r)bd(),e=Wt(t,e,n);else{if(r=e.stateNode,(i=r.hydrate)&&(On=Qo(e.stateNode.containerInfo.firstChild),Kt=e,i=Rt=!0),i){if(t=r.mutableSourceEagerHydrationData,t!=null)for(r=0;r<t.length;r+=2)i=t[r],i._workInProgressVersionPrimary=t[r+1],sr.push(i);for(n=f0(e,null,o,n),e.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else qe(t,e,o,n),bd();e=e.child}return e;case 5:return p0(e),t===null&&yd(e),o=e.type,r=e.pendingProps,i=t!==null?t.memoizedProps:null,s=r.children,td(o,r)?s=null:i!==null&&td(o,i)&&(e.flags|=16),O0(t,e),qe(t,e,s,n),e.child;case 6:return t===null&&yd(e),null;case 13:return j0(t,e,n);case 4:return hd(e,e.stateNode.containerInfo),o=e.pendingProps,t===null?e.child=Aa(e,null,o,n):qe(t,e,o,n),e.child;case 11:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:vt(o,r),A0(t,e,o,r,n);case 7:return qe(t,e,e.pendingProps,n),e.child;case 8:return qe(t,e,e.pendingProps.children,n),e.child;case 12:return qe(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(me($a,a._currentValue),a._currentValue=i,s!==null)if(a=s.value,i=ct(a,i)?0:(typeof o._calculateChangedBits=="function"?o._calculateChangedBits(a,i):1073741823)|0,i===0){if(s.children===r.children&&!Je.current){e=Wt(t,e,n);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var l=a.dependencies;if(l!==null){s=a.child;for(var c=l.firstContext;c!==null;){if(c.context===o&&c.observedBits&i){a.tag===1&&(c=Dn(-1,n&-n),c.tag=2,Rn(a,c)),a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),r0(a.return,n),l.lanes|=n;break}c=c.next}}else s=a.tag===10&&a.type===e.type?null:a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}qe(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps,o=i.children,rr(e,n),r=ut(r,i.unstable_observedBits),o=o(r),e.flags|=1,qe(t,e,o,n),e.child;case 14:return r=e.type,i=vt(r,e.pendingProps),i=vt(r.type,i),D0(t,e,r,i,o,n);case 15:return R0(t,e,e.type,e.pendingProps,o,n);case 17:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:vt(o,r),t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,Ke(o)?(t=!0,ba(e)):t=!1,rr(e,n),u0(e,o,r),pd(e,o,r,n),Ad(null,e,o,!0,t,n);case 19:return B0(t,e,n);case 23:return Ed(t,e,n);case 24:return Ed(t,e,n)}throw Error(M(156,e.tag))};function nE(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 ft(t,e,n,o){return new nE(t,e,n,o)}function Wd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function oE(t){if(typeof t=="function")return Wd(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Js)return 11;if(t===Ws)return 14}return 2}function Ln(t,e){var n=t.alternate;return n===null?(n=ft(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 Ya(t,e,n,o,r,i){var s=2;if(o=t,typeof t=="function")Wd(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case bn:return mr(n.children,r,i,e);case Dg:s=8,r|=16;break;case ru:s=8,r|=1;break;case Kr:return t=ft(12,n,e,r|8),t.elementType=Kr,t.type=Kr,t.lanes=i,t;case Wr:return t=ft(13,n,e,r),t.type=Wr,t.elementType=Wr,t.lanes=i,t;case Ks:return t=ft(19,n,e,r),t.elementType=Ks,t.lanes=i,t;case uu:return qd(n,r,i,e);case du:return t=ft(24,n,e,r),t.elementType=du,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case iu:s=10;break e;case su:s=9;break e;case Js:s=11;break e;case Ws:s=14;break e;case au:s=16,o=null;break e;case lu:s=22;break e}throw Error(M(130,t==null?t:typeof t,""))}return e=ft(s,n,e,r),e.elementType=t,e.type=o,e.lanes=i,e}function mr(t,e,n,o){return t=ft(7,t,o,e),t.lanes=n,t}function qd(t,e,n,o){return t=ft(23,t,o,e),t.elementType=uu,t.lanes=n,t}function Gd(t,e,n){return t=ft(6,t,null,e),t.lanes=n,t}function Qd(t,e,n){return e=ft(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function rE(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=Lu(0),this.expirationTimes=Lu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lu(0),this.mutableSourceEagerHydrationData=null}function iE(t,e,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ro,key:o==null?null:""+o,children:t,containerInfo:e,implementation:n}}function Ja(t,e,n,o){var r=e.current,i=nt(),s=Mn(r);e:if(n){n=n._reactInternals;t:{if(so(n)!==n||n.tag!==1)throw Error(M(170));var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(Ke(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(M(171))}if(n.tag===1){var l=n.type;if(Ke(l)){n=Wy(n,l,a);break e}}n=a}else n=Nn;return e.context===null?e.context=n:e.pendingContext=n,e=Dn(i,s),e.payload={element:t},o=o===void 0?null:o,o!==null&&(e.callback=o),Rn(r,e),jn(r,s,i),s}function Zd(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 cb(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Xd(t,e){cb(t,e),(t=t.alternate)&&cb(t,e)}function sE(){return null}function em(t,e,n){var o=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new rE(t,e,n!=null&&n.hydrate===!0),e=ft(3,null,null,e===2?7:e===1?3:0),n.current=e,e.stateNode=n,fd(e),t[Zo]=n.current,Ly(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}em.prototype.render=function(t){Ja(t,this._internalRoot,null,null)},em.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Ja(null,t,null,function(){e[Zo]=null})};function Li(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function aE(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 em(t,0,e?{hydrate:!0}:void 0)}function Ka(t,e,n,o,r){var i=n._reactRootContainer;if(i){var s=i._internalRoot;if(typeof r=="function"){var a=r;r=function(){var c=Zd(s);a.call(c)}}Ja(e,s,t,r)}else{if(i=n._reactRootContainer=aE(n,o),s=i._internalRoot,typeof r=="function"){var l=r;r=function(){var c=Zd(s);l.call(c)}}tb(function(){Ja(e,s,t,r)})}return Zd(s)}Zg=function(t){if(t.tag===13){var e=nt();jn(t,4,e),Xd(t,4)}},Ou=function(t){if(t.tag===13){var e=nt();jn(t,67108864,e),Xd(t,67108864)}},Xg=function(t){if(t.tag===13){var e=nt(),n=Mn(t);jn(t,n,e),Xd(t,n)}},ey=function(t,e){return e()},xu=function(t,e,n){switch(e){case"input":if(hu(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=ga(o);if(!r)throw Error(M(90));Tg(o),hu(o,r)}}}break;case"textarea":Lg(t,n);break;case"select":e=n.value,e!=null&&Ho(t,!!n.multiple,e,!1)}},Cu=eb,Jg=function(t,e,n,o,r){var i=U;U|=4;try{return uo(98,t.bind(null,e,n,o,r))}finally{U=i,U===0&&(cr(),At())}},Eu=function(){!(U&49)&&(KC(),Pn())},Kg=function(t,e){var n=U;U|=2;try{return t(e)}finally{U=n,U===0&&(cr(),At())}};function ub(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Li(e))throw Error(M(200));return iE(t,e,null,n)}var lE={Events:[yi,Xo,ga,_g,Yg,Pn,{current:!1}]},zi={findFiberByHostInstance:ao,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},cE={bundleType:zi.bundleType,version:zi.version,rendererPackageName:zi.rendererPackageName,rendererConfig:zi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:oo.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Gg(t),t===null?null:t.stateNode},findFiberByHostInstance:zi.findFiberByHostInstance||sE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wa.isDisabled&&Wa.supportsFiber)try{id=Wa.inject(cE),co=Wa}catch{}}lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lE,lt.createPortal=ub,lt.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(M(188)):Error(M(268,Object.keys(t)));return t=Gg(e),t=t===null?null:t.stateNode,t},lt.flushSync=function(t,e){var n=U;if(n&48)return t(e);U|=1;try{if(t)return uo(99,t.bind(null,e))}finally{U=n,At()}},lt.hydrate=function(t,e,n){if(!Li(e))throw Error(M(200));return Ka(null,t,e,!0,n)},lt.render=function(t,e,n){if(!Li(e))throw Error(M(200));return Ka(null,t,e,!1,n)},lt.unmountComponentAtNode=function(t){if(!Li(t))throw Error(M(40));return t._reactRootContainer?(tb(function(){Ka(null,null,t,!1,function(){t._reactRootContainer=null,t[Zo]=null})}),!0):!1},lt.unstable_batchedUpdates=eb,lt.unstable_createPortal=function(t,e){return ub(t,e,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},lt.unstable_renderSubtreeIntoContainer=function(t,e,n,o){if(!Li(n))throw Error(M(200));if(t==null||t._reactInternals===void 0)throw Error(M(38));return Ka(t,e,n,!1,o)},lt.version="17.0.2";function db(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(db)}catch(t){console.error(t)}}db(),Sg.exports=lt;var tm=Sg.exports;const mb=zt(tm);function uE(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fb={exports:{}},nm={};/**
131
131
  * @license React
132
132
  * use-sync-external-store-shim.production.min.js
133
133
  *
@@ -135,7 +135,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
135
135
  *
136
136
  * This source code is licensed under the MIT license found in the
137
137
  * LICENSE file in the root directory of this source tree.
138
- */var pb;function uE(){if(pb)return nm;pb=1;var t=G;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}}),g=p[0].inst,h=p[1];return i(function(){g.value=f,g.getSnapshot=m,l(g)&&h({inst:g})},[d,f,m]),r(function(){return l(g)&&h({inst:g}),d(function(){l(g)&&h({inst:g})})},[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 c(d,m){return m()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return nm.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,nm}fb.exports=uE();var om=fb.exports;const dE=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})},mE=({contentComponent:t})=>{const e=om.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return G.createElement(G.Fragment,null,Object.values(e))};function fE(){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]:mb.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 pE extends G.Component{constructor(e){var n;super(e),this.editorContentRef=G.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=fE(),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 G.createElement(G.Fragment,null,G.createElement("div",{ref:dE(n,this.editorContentRef),...o}),(e==null?void 0:e.contentComponent)&&G.createElement(mE,{contentComponent:e.contentComponent}))}}const hE=k.forwardRef((t,e)=>{const n=G.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return G.createElement(pE,{key:n,innerRef:e,...t})}),gE=G.memo(hE);var yE=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},bE=cE(yE),hb={exports:{}},rm={};/**
138
+ */var pb;function dE(){if(pb)return nm;pb=1;var t=q;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}}),g=p[0].inst,h=p[1];return i(function(){g.value=f,g.getSnapshot=m,l(g)&&h({inst:g})},[d,f,m]),r(function(){return l(g)&&h({inst:g}),d(function(){l(g)&&h({inst:g})})},[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 c(d,m){return m()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return nm.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,nm}fb.exports=dE();var om=fb.exports;const mE=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})},fE=({contentComponent:t})=>{const e=om.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return q.createElement(q.Fragment,null,Object.values(e))};function pE(){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]:mb.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 hE extends q.Component{constructor(e){var n;super(e),this.editorContentRef=q.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=pE(),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 q.createElement(q.Fragment,null,q.createElement("div",{ref:mE(n,this.editorContentRef),...o}),(e==null?void 0:e.contentComponent)&&q.createElement(fE,{contentComponent:e.contentComponent}))}}const gE=k.forwardRef((t,e)=>{const n=q.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return q.createElement(hE,{key:n,innerRef:e,...t})}),yE=q.memo(gE);var bE=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},wE=uE(bE),hb={exports:{}},rm={};/**
139
139
  * @license React
140
140
  * use-sync-external-store-shim/with-selector.production.min.js
141
141
  *
@@ -143,29 +143,29 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
143
143
  *
144
144
  * This source code is licensed under the MIT license found in the
145
145
  * LICENSE file in the root directory of this source tree.
146
- */var gb;function wE(){if(gb)return rm;gb=1;var t=G,e=om;function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var o=typeof Object.is=="function"?Object.is:n,r=e.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;return rm.useSyncExternalStoreWithSelector=function(c,u,d,m,f){var p=i(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=a(function(){function y(S){if(!w){if(w=!0,$=S,S=m(S),f!==void 0&&g.hasValue){var C=g.value;if(f(C,S))return v=C}return v=S}if(C=v,o($,S))return C;var A=m(S);return f!==void 0&&f(C,A)?C:($=S,v=A)}var w=!1,$,v,x=d===void 0?null:d;return[function(){return y(u())},x===null?void 0:function(){return y(x())}]},[u,d,m,f]);var h=r(c,p[0],p[1]);return s(function(){g.hasValue=!0,g.value=h},[h]),l(h),h},rm}hb.exports=wE();var vE=hb.exports;const $E=typeof window<"u"?k.useLayoutEffect:k.useEffect;class SE{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 kE(t){var e;const[n]=k.useState(()=>new SE(t.editor)),o=vE.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!==null&&e!==void 0?e:bE);return $E(()=>n.watch(t.editor),[t.editor,n]),k.useDebugValue(o),o}const xE=!1,im=typeof window>"u",CE=im||!!(typeof window<"u"&&window.next);class sm{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(){return this.options.current.immediatelyRender===void 0?im||CE?null:this.createEditor():(this.options.current.immediatelyRender,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 ux(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,n){return Object.keys(e).every(o=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(o)?!0:o==="extensions"&&e.extensions&&n.extensions?e.extensions.length!==n.extensions.length?!1:e.extensions.every((r,i)=>{var s;return r===((s=n.extensions)===null||s===void 0?void 0:s[i])}):e[o]===n[o])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?sm.compareOptions(this.options.current,this.editor.options)||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 EE(t={},e=[]){const n=k.useRef(t);n.current=t;const[o]=k.useState(()=>new sm(n)),r=om.useSyncExternalStore(o.subscribe,o.getEditor,o.getServerSnapshot);return k.useDebugValue(r),k.useEffect(o.onRender(e)),kE({editor:r,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1?null:t.immediatelyRender&&i===0?0:i+1}),r}k.createContext({editor:null}).Consumer;const NE=k.createContext({onDragStart:void 0}),AE=()=>k.useContext(NE);G.forwardRef((t,e)=>{const{onDragStart:n}=AE(),o=t.as||"div";return G.createElement(o,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});const qa=t=>k.createElement("svg",{id:"loader-1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 50 50",style:{enableBackground:"new 0 0 50 50"},xmlSpace:"preserve",...t},k.createElement("path",{d:"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"},k.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"0.6s",repeatCount:"indefinite"})));var DE=Object.defineProperty,RE=(t,e,n)=>e in t?DE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,am=(t,e,n)=>(RE(t,typeof e!="symbol"?e+"":e,n),n);let OE=class{constructor(){am(this,"current",this.detect()),am(this,"handoffState","pending"),am(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"}},Ga=new OE,Bi=(t,e)=>{Ga.isServer?k.useEffect(t,e):k.useLayoutEffect(t,e)};function fr(t){let e=k.useRef(t);return Bi(()=>{e.current=t},[t]),e}let Qt=function(t){let e=fr(t);return G.useCallback((...n)=>e.current(...n),[e])};function TE(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function Fi(){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 TE(()=>{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=Fi();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 yb(){let[t]=k.useState(Fi);return k.useEffect(()=>()=>t.dispose(),[t]),t}function ME(){let t=typeof document>"u";return"useSyncExternalStore"in vf?(e=>e.useSyncExternalStore)(vf)(()=>()=>{},()=>!1,()=>!t):!1}function bb(){let t=ME(),[e,n]=k.useState(Ga.isHandoffComplete);return e&&Ga.isHandoffComplete===!1&&n(!1),k.useEffect(()=>{e!==!0&&n(!0)},[e]),k.useEffect(()=>Ga.handoff(),[]),t?!1:e}function Mt(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,Mt),o}let jE=Symbol();function wb(...t){let e=k.useRef(t);k.useEffect(()=>{e.current=t},[t]);let n=Qt(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[jE]))?void 0:n}function Qa(...t){return Array.from(new Set(t.flatMap(e=>typeof e=="string"?e.split(" "):[]))).filter(Boolean).join(" ")}var vb=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(vb||{}),zn=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(zn||{});function $b({ourProps:t,theirProps:e,slot:n,defaultTag:o,features:r,visible:i=!0,name:s,mergeRefs:a}){a=a??PE;let l=Sb(e,t);if(i)return Za(l,n,o,s,a);let c=r??0;if(c&2){let{static:u=!1,...d}=l;if(u)return Za(d,n,o,s,a)}if(c&1){let{unmount:u=!0,...d}=l;return Mt(u?0:1,{0(){return null},1(){return Za({...d,hidden:!0,style:{display:"none"}},n,o,s,a)}})}return Za(l,n,o,s,a)}function Za(t,e={},n,o,r){let{as:i=n,children:s,refName:a="ref",...l}=cm(t,["unmount","static"]),c=t.ref!==void 0?{[a]:t.ref}:{},u=typeof s=="function"?s(e):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(e));let d={};if(e){let m=!1,f=[];for(let[p,g]of Object.entries(e))typeof g=="boolean"&&(m=!0),g===!0&&f.push(p);m&&(d["data-headlessui-state"]=f.join(" "))}if(i===k.Fragment&&Object.keys(kb(l)).length>0){if(!k.isValidElement(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(g=>` - ${g}`).join(`
146
+ */var gb;function vE(){if(gb)return rm;gb=1;var t=q,e=om;function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var o=typeof Object.is=="function"?Object.is:n,r=e.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;return rm.useSyncExternalStoreWithSelector=function(c,u,d,m,f){var p=i(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=a(function(){function y(S){if(!w){if(w=!0,v=S,S=m(S),f!==void 0&&g.hasValue){var C=g.value;if(f(C,S))return $=C}return $=S}if(C=$,o(v,S))return C;var D=m(S);return f!==void 0&&f(C,D)?C:(v=S,$=D)}var w=!1,v,$,x=d===void 0?null:d;return[function(){return y(u())},x===null?void 0:function(){return y(x())}]},[u,d,m,f]);var h=r(c,p[0],p[1]);return s(function(){g.hasValue=!0,g.value=h},[h]),l(h),h},rm}hb.exports=vE();var $E=hb.exports;const SE=typeof window<"u"?k.useLayoutEffect:k.useEffect;class kE{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 xE(t){var e;const[n]=k.useState(()=>new kE(t.editor)),o=$E.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!==null&&e!==void 0?e:wE);return SE(()=>n.watch(t.editor),[t.editor,n]),k.useDebugValue(o),o}const CE=!1,im=typeof window>"u",EE=im||!!(typeof window<"u"&&window.next);class sm{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(){return this.options.current.immediatelyRender===void 0?im||EE?null:this.createEditor():(this.options.current.immediatelyRender,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 dx(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,n){return Object.keys(e).every(o=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(o)?!0:o==="extensions"&&e.extensions&&n.extensions?e.extensions.length!==n.extensions.length?!1:e.extensions.every((r,i)=>{var s;return r===((s=n.extensions)===null||s===void 0?void 0:s[i])}):e[o]===n[o])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?sm.compareOptions(this.options.current,this.editor.options)||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 NE(t={},e=[]){const n=k.useRef(t);n.current=t;const[o]=k.useState(()=>new sm(n)),r=om.useSyncExternalStore(o.subscribe,o.getEditor,o.getServerSnapshot);return k.useDebugValue(r),k.useEffect(o.onRender(e)),xE({editor:r,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1?null:t.immediatelyRender&&i===0?0:i+1}),r}k.createContext({editor:null}).Consumer;const AE=k.createContext({onDragStart:void 0}),DE=()=>k.useContext(AE);q.forwardRef((t,e)=>{const{onDragStart:n}=DE(),o=t.as||"div";return q.createElement(o,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});const qa=t=>k.createElement("svg",{id:"loader-1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 50 50",style:{enableBackground:"new 0 0 50 50"},xmlSpace:"preserve",...t},k.createElement("path",{d:"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"},k.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"0.6s",repeatCount:"indefinite"})));var RE=Object.defineProperty,OE=(t,e,n)=>e in t?RE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,am=(t,e,n)=>(OE(t,typeof e!="symbol"?e+"":e,n),n);let TE=class{constructor(){am(this,"current",this.detect()),am(this,"handoffState","pending"),am(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"}},Ga=new TE,Bi=(t,e)=>{Ga.isServer?k.useEffect(t,e):k.useLayoutEffect(t,e)};function fr(t){let e=k.useRef(t);return Bi(()=>{e.current=t},[t]),e}let Qt=function(t){let e=fr(t);return q.useCallback((...n)=>e.current(...n),[e])};function ME(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function Fi(){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 ME(()=>{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=Fi();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 yb(){let[t]=k.useState(Fi);return k.useEffect(()=>()=>t.dispose(),[t]),t}function jE(){let t=typeof document>"u";return"useSyncExternalStore"in vf?(e=>e.useSyncExternalStore)(vf)(()=>()=>{},()=>!1,()=>!t):!1}function bb(){let t=jE(),[e,n]=k.useState(Ga.isHandoffComplete);return e&&Ga.isHandoffComplete===!1&&n(!1),k.useEffect(()=>{e!==!0&&n(!0)},[e]),k.useEffect(()=>Ga.handoff(),[]),t?!1:e}function Mt(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,Mt),o}let PE=Symbol();function wb(...t){let e=k.useRef(t);k.useEffect(()=>{e.current=t},[t]);let n=Qt(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[PE]))?void 0:n}function Qa(...t){return Array.from(new Set(t.flatMap(e=>typeof e=="string"?e.split(" "):[]))).filter(Boolean).join(" ")}var vb=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(vb||{}),zn=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(zn||{});function $b({ourProps:t,theirProps:e,slot:n,defaultTag:o,features:r,visible:i=!0,name:s,mergeRefs:a}){a=a??IE;let l=Sb(e,t);if(i)return Za(l,n,o,s,a);let c=r??0;if(c&2){let{static:u=!1,...d}=l;if(u)return Za(d,n,o,s,a)}if(c&1){let{unmount:u=!0,...d}=l;return Mt(u?0:1,{0(){return null},1(){return Za({...d,hidden:!0,style:{display:"none"}},n,o,s,a)}})}return Za(l,n,o,s,a)}function Za(t,e={},n,o,r){let{as:i=n,children:s,refName:a="ref",...l}=cm(t,["unmount","static"]),c=t.ref!==void 0?{[a]:t.ref}:{},u=typeof s=="function"?s(e):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(e));let d={};if(e){let m=!1,f=[];for(let[p,g]of Object.entries(e))typeof g=="boolean"&&(m=!0),g===!0&&f.push(p);m&&(d["data-headlessui-state"]=f.join(" "))}if(i===k.Fragment&&Object.keys(kb(l)).length>0){if(!k.isValidElement(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(g=>` - ${g}`).join(`
147
147
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>` - ${g}`).join(`
148
148
  `)].join(`
149
- `));let m=u.props,f=typeof(m==null?void 0:m.className)=="function"?(...g)=>Qa(m==null?void 0:m.className(...g),l.className):Qa(m==null?void 0:m.className,l.className),p=f?{className:f}:{};return k.cloneElement(u,Object.assign({},Sb(u.props,kb(cm(l,["ref"]))),d,c,{ref:r(u.ref,c.ref)},p))}return k.createElement(i,Object.assign({},cm(l,["ref"]),i!==k.Fragment&&c,i!==k.Fragment&&d),u)}function PE(...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 Sb(...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 lm(t){var e;return Object.assign(k.forwardRef(t),{displayName:(e=t.displayName)!=null?e:t.name})}function kb(t){let e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}function cm(t,e=[]){let n=Object.assign({},t);for(let o of e)o in n&&delete n[o];return n}let um=k.createContext(null);um.displayName="OpenClosedContext";var Zt=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(Zt||{});function xb(){return k.useContext(um)}function LE({value:t,children:e}){return G.createElement(um.Provider,{value:t},e)}function dm(){let t=k.useRef(!1);return Bi(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function IE(t=0){let[e,n]=k.useState(t),o=dm(),r=k.useCallback(l=>{o.current&&n(c=>c|l)},[e,o]),i=k.useCallback(l=>!!(e&l),[e]),s=k.useCallback(l=>{o.current&&n(c=>c&~l)},[n,o]),a=k.useCallback(l=>{o.current&&n(c=>c^l)},[n]);return{flags:e,addFlag:r,hasFlag:i,removeFlag:s,toggleFlag:a}}function zE(t){let e={called:!1};return(...n)=>{if(!e.called)return e.called=!0,t(...n)}}function mm(t,...e){t&&e.length>0&&t.classList.add(...e)}function fm(t,...e){t&&e.length>0&&t.classList.remove(...e)}function BE(t,e){let n=Fi();if(!t)return n.dispose;let{transitionDuration:o,transitionDelay:r}=getComputedStyle(t),[i,s]=[o,r].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,d)=>d-u);return c}),a=i+s;if(a!==0){n.group(c=>{c.setTimeout(()=>{e(),c.dispose()},a),c.addEventListener(t,"transitionrun",u=>{u.target===u.currentTarget&&c.dispose()})});let l=n.addEventListener(t,"transitionend",c=>{c.target===c.currentTarget&&(e(),l())})}else e();return n.add(()=>e()),n.dispose}function FE(t,e,n,o){let r=n?"enter":"leave",i=Fi(),s=o!==void 0?zE(o):()=>{};r==="enter"&&(t.removeAttribute("hidden"),t.style.display="");let a=Mt(r,{enter:()=>e.enter,leave:()=>e.leave}),l=Mt(r,{enter:()=>e.enterTo,leave:()=>e.leaveTo}),c=Mt(r,{enter:()=>e.enterFrom,leave:()=>e.leaveFrom});return fm(t,...e.base,...e.enter,...e.enterTo,...e.enterFrom,...e.leave,...e.leaveFrom,...e.leaveTo,...e.entered),mm(t,...e.base,...a,...c),i.nextFrame(()=>{fm(t,...e.base,...a,...c),mm(t,...e.base,...a,...l),BE(t,()=>(fm(t,...e.base,...a),mm(t,...e.base,...e.entered),s()))}),i.dispose}function HE({immediate:t,container:e,direction:n,classes:o,onStart:r,onStop:i}){let s=dm(),a=yb(),l=fr(n);Bi(()=>{t&&(l.current="enter")},[t]),Bi(()=>{let c=Fi();a.add(c.dispose);let u=e.current;if(u&&l.current!=="idle"&&s.current)return c.dispose(),r.current(l.current),c.add(FE(u,o.current,l.current==="enter",()=>{c.dispose(),i.current(l.current)})),c.dispose},[n])}function Bn(t=""){return t.split(/\s+/).filter(e=>e.length>1)}let Xa=k.createContext(null);Xa.displayName="TransitionContext";var VE=(t=>(t.Visible="visible",t.Hidden="hidden",t))(VE||{});function UE(){let t=k.useContext(Xa);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}function _E(){let t=k.useContext(el);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}let el=k.createContext(null);el.displayName="NestingContext";function tl(t){return"children"in t?tl(t.children):t.current.filter(({el:e})=>e.current!==null).filter(({state:e})=>e==="visible").length>0}function Cb(t,e){let n=fr(t),o=k.useRef([]),r=dm(),i=yb(),s=Qt((f,p=zn.Hidden)=>{let g=o.current.findIndex(({el:h})=>h===f);g!==-1&&(Mt(p,{[zn.Unmount](){o.current.splice(g,1)},[zn.Hidden](){o.current[g].state="hidden"}}),i.microTask(()=>{var h;!tl(o)&&r.current&&((h=n.current)==null||h.call(n))}))}),a=Qt(f=>{let p=o.current.find(({el:g})=>g===f);return p?p.state!=="visible"&&(p.state="visible"):o.current.push({el:f,state:"visible"}),()=>s(f,zn.Unmount)}),l=k.useRef([]),c=k.useRef(Promise.resolve()),u=k.useRef({enter:[],leave:[],idle:[]}),d=Qt((f,p,g)=>{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(u.current[p].map(([y,w])=>w)).then(()=>h())})]),p==="enter"?c.current=c.current.then(()=>e==null?void 0:e.wait.current).then(()=>g(p)):g(p)}),m=Qt((f,p,g)=>{Promise.all(u.current[p].splice(0).map(([h,y])=>y)).then(()=>{var h;(h=l.current.shift())==null||h()}).then(()=>g(p))});return k.useMemo(()=>({children:o,register:a,unregister:s,onStart:d,onStop:m,wait:c,chains:u}),[a,s,o,d,m,u,c])}function YE(){}let JE=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Eb(t){var e;let n={};for(let o of JE)n[o]=(e=t[o])!=null?e:YE;return n}function KE(t){let e=k.useRef(Eb(t));return k.useEffect(()=>{e.current=Eb(t)},[t]),e}let WE="div",Nb=vb.RenderStrategy;function qE(t,e){var n,o;let{beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a,enter:l,enterFrom:c,enterTo:u,entered:d,leave:m,leaveFrom:f,leaveTo:p,...g}=t,h=k.useRef(null),y=wb(h,e),w=(n=g.unmount)==null||n?zn.Unmount:zn.Hidden,{show:$,appear:v,initial:x}=UE(),[S,C]=k.useState($?"visible":"hidden"),A=_E(),{register:N,unregister:F}=A;k.useEffect(()=>N(h),[N,h]),k.useEffect(()=>{if(w===zn.Hidden&&h.current){if($&&S!=="visible"){C("visible");return}return Mt(S,{hidden:()=>F(h),visible:()=>N(h)})}},[S,h,N,F,$,w]);let J=fr({base:Bn(g.className),enter:Bn(l),enterFrom:Bn(c),enterTo:Bn(u),entered:Bn(d),leave:Bn(m),leaveFrom:Bn(f),leaveTo:Bn(p)}),ee=KE({beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a}),ne=bb();k.useEffect(()=>{if(ne&&S==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,S,ne]);let re=x&&!v,ae=v&&$&&x,me=!ne||re?"idle":$?"enter":"leave",E=IE(0),D=Qt(H=>Mt(H,{enter:()=>{E.addFlag(Zt.Opening),ee.current.beforeEnter()},leave:()=>{E.addFlag(Zt.Closing),ee.current.beforeLeave()},idle:()=>{}})),j=Qt(H=>Mt(H,{enter:()=>{E.removeFlag(Zt.Opening),ee.current.afterEnter()},leave:()=>{E.removeFlag(Zt.Closing),ee.current.afterLeave()},idle:()=>{}})),q=Cb(()=>{C("hidden"),F(h)},A),O=k.useRef(!1);HE({immediate:ae,container:h,classes:J,direction:me,onStart:fr(H=>{O.current=!0,q.onStart(h,H,D)}),onStop:fr(H=>{O.current=!1,q.onStop(h,H,j),H==="leave"&&!tl(q)&&(C("hidden"),F(h))})});let P=g,I={ref:y};return ae?P={...P,className:Qa(g.className,...J.current.enter,...J.current.enterFrom)}:O.current&&(P.className=Qa(g.className,(o=h.current)==null?void 0:o.className),P.className===""&&delete P.className),G.createElement(el.Provider,{value:q},G.createElement(LE,{value:Mt(S,{visible:Zt.Open,hidden:Zt.Closed})|E.flags},$b({ourProps:I,theirProps:P,defaultTag:WE,features:Nb,visible:S==="visible",name:"Transition.Child"})))}function GE(t,e){let{show:n,appear:o=!1,unmount:r=!0,...i}=t,s=k.useRef(null),a=wb(s,e);bb();let l=xb();if(n===void 0&&l!==null&&(n=(l&Zt.Open)===Zt.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=k.useState(n?"visible":"hidden"),d=Cb(()=>{u("hidden")}),[m,f]=k.useState(!0),p=k.useRef([n]);Bi(()=>{m!==!1&&p.current[p.current.length-1]!==n&&(p.current.push(n),f(!1))},[p,n]);let g=k.useMemo(()=>({show:n,appear:o,initial:m}),[n,o,m]);k.useEffect(()=>{if(n)u("visible");else if(!tl(d))u("hidden");else{let $=s.current;if(!$)return;let v=$.getBoundingClientRect();v.x===0&&v.y===0&&v.width===0&&v.height===0&&u("hidden")}},[n,d]);let h={unmount:r},y=Qt(()=>{var $;m&&f(!1),($=t.beforeEnter)==null||$.call(t)}),w=Qt(()=>{var $;m&&f(!1),($=t.beforeLeave)==null||$.call(t)});return G.createElement(el.Provider,{value:d},G.createElement(Xa.Provider,{value:g},$b({ourProps:{...h,as:k.Fragment,children:G.createElement(Ab,{ref:a,...h,...i,beforeEnter:y,beforeLeave:w})},theirProps:{},defaultTag:k.Fragment,features:Nb,visible:c==="visible",name:"Transition"})))}function QE(t,e){let n=k.useContext(Xa)!==null,o=xb()!==null;return G.createElement(G.Fragment,null,!n&&o?G.createElement(pm,{ref:e,...t}):G.createElement(Ab,{ref:e,...t}))}let pm=lm(GE),Ab=lm(qE),ZE=lm(QE),yo=Object.assign(pm,{Child:ZE,Root:pm});const XE=/^\s*>\s$/,eN=yn.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",Io(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[dx({find:XE,type:this.type})]}}),tN=yn.create({name:"doc",topNode:!0,content:"block+"}),nN=yn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Io(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:c,dispatch:u})=>{if(u&&l&&s){const d=l.filter(m=>a.includes(m.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),oN="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",rN="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو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",hm="numeric",gm="ascii",ym="alpha",Hi="asciinumeric",Vi="alphanumeric",bm="domain",Db="emoji",iN="scheme",sN="slashscheme",wm="whitespace";function aN(t,e){return t in e||(e[t]=[]),e[t]}function bo(t,e,n){e[hm]&&(e[Hi]=!0,e[Vi]=!0),e[gm]&&(e[Hi]=!0,e[ym]=!0),e[Hi]&&(e[Vi]=!0),e[ym]&&(e[Vi]=!0),e[Vi]&&(e[bm]=!0),e[Db]&&(e[bm]=!0);for(const o in e){const r=aN(o,n);r.indexOf(t)<0&&r.push(t)}}function lN(t,e){const n={};for(const o in e)e[o].indexOf(t)>=0&&(n[o]=!0);return n}function Ge(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}Ge.groups={},Ge.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=!1){return 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||Ge.groups;let r;return e&&e.j?r=e:(r=new Ge(e),n&&o&&bo(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||Ge.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 Ge,Object.assign(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new Ge,i){if(o)if(s.t&&typeof s.t=="string"){const l=Object.assign(lN(s.t,o),n);bo(i,l,o)}else n&&bo(i,n,o);s.t=i}return r.j[t]=s,s}};const K=(t,e,n,o,r)=>t.ta(e,n,o,r),he=(t,e,n,o,r)=>t.tr(e,n,o,r),Rb=(t,e,n,o,r)=>t.ts(e,n,o,r),T=(t,e,n,o,r)=>t.tt(e,n,o,r),Xt="WORD",vm="UWORD",Ob="ASCIINUMERICAL",Tb="ALPHANUMERICAL",Ui="LOCALHOST",$m="TLD",Sm="UTLD",nl="SCHEME",pr="SLASH_SCHEME",km="NUM",xm="WS",Cm="NL",_i="OPENBRACE",Yi="CLOSEBRACE",ol="OPENBRACKET",rl="CLOSEBRACKET",il="OPENPAREN",sl="CLOSEPAREN",al="OPENANGLEBRACKET",ll="CLOSEANGLEBRACKET",cl="FULLWIDTHLEFTPAREN",ul="FULLWIDTHRIGHTPAREN",dl="LEFTCORNERBRACKET",ml="RIGHTCORNERBRACKET",fl="LEFTWHITECORNERBRACKET",pl="RIGHTWHITECORNERBRACKET",hl="FULLWIDTHLESSTHAN",gl="FULLWIDTHGREATERTHAN",yl="AMPERSAND",bl="APOSTROPHE",wl="ASTERISK",Fn="AT",vl="BACKSLASH",$l="BACKTICK",Sl="CARET",Hn="COLON",Em="COMMA",kl="DOLLAR",jt="DOT",xl="EQUALS",Nm="EXCLAMATION",pt="HYPHEN",Ji="PERCENT",Cl="PIPE",El="PLUS",Nl="POUND",Ki="QUERY",Am="QUOTE",Mb="FULLWIDTHMIDDLEDOT",Dm="SEMI",Pt="SLASH",Wi="TILDE",Al="UNDERSCORE",jb="EMOJI",Dl="SYM";var Pb=Object.freeze({__proto__:null,ALPHANUMERICAL:Tb,AMPERSAND:yl,APOSTROPHE:bl,ASCIINUMERICAL:Ob,ASTERISK:wl,AT:Fn,BACKSLASH:vl,BACKTICK:$l,CARET:Sl,CLOSEANGLEBRACKET:ll,CLOSEBRACE:Yi,CLOSEBRACKET:rl,CLOSEPAREN:sl,COLON:Hn,COMMA:Em,DOLLAR:kl,DOT:jt,EMOJI:jb,EQUALS:xl,EXCLAMATION:Nm,FULLWIDTHGREATERTHAN:gl,FULLWIDTHLEFTPAREN:cl,FULLWIDTHLESSTHAN:hl,FULLWIDTHMIDDLEDOT:Mb,FULLWIDTHRIGHTPAREN:ul,HYPHEN:pt,LEFTCORNERBRACKET:dl,LEFTWHITECORNERBRACKET:fl,LOCALHOST:Ui,NL:Cm,NUM:km,OPENANGLEBRACKET:al,OPENBRACE:_i,OPENBRACKET:ol,OPENPAREN:il,PERCENT:Ji,PIPE:Cl,PLUS:El,POUND:Nl,QUERY:Ki,QUOTE:Am,RIGHTCORNERBRACKET:ml,RIGHTWHITECORNERBRACKET:pl,SCHEME:nl,SEMI:Dm,SLASH:Pt,SLASH_SCHEME:pr,SYM:Dl,TILDE:Wi,TLD:$m,UNDERSCORE:Al,UTLD:Sm,UWORD:vm,WORD:Xt,WS:xm});const en=/[a-z]/,qi=new RegExp("\\p{L}","u"),Rm=new RegExp("\\p{Emoji}","u"),tn=/\d/,Om=/\s/,Lb="\r",Tm=`
151
- `,cN="️",uN="‍",Mm="";let Rl=null,Ol=null;function dN(t=[]){const e={};Ge.groups=e;const n=new Ge;Rl==null&&(Rl=zb(oN)),Ol==null&&(Ol=zb(rN)),T(n,"'",bl),T(n,"{",_i),T(n,"}",Yi),T(n,"[",ol),T(n,"]",rl),T(n,"(",il),T(n,")",sl),T(n,"<",al),T(n,">",ll),T(n,"(",cl),T(n,")",ul),T(n,"「",dl),T(n,"」",ml),T(n,"『",fl),T(n,"』",pl),T(n,"<",hl),T(n,">",gl),T(n,"&",yl),T(n,"*",wl),T(n,"@",Fn),T(n,"`",$l),T(n,"^",Sl),T(n,":",Hn),T(n,",",Em),T(n,"$",kl),T(n,".",jt),T(n,"=",xl),T(n,"!",Nm),T(n,"-",pt),T(n,"%",Ji),T(n,"|",Cl),T(n,"+",El),T(n,"#",Nl),T(n,"?",Ki),T(n,'"',Am),T(n,"/",Pt),T(n,";",Dm),T(n,"~",Wi),T(n,"_",Al),T(n,"\\",vl),T(n,"・",Mb);const o=he(n,tn,km,{[hm]:!0});he(o,tn,o);const r=he(o,en,Ob,{[Hi]:!0}),i=he(o,qi,Tb,{[Vi]:!0}),s=he(n,en,Xt,{[gm]:!0});he(s,tn,r),he(s,en,s),he(r,tn,r),he(r,en,r);const a=he(n,qi,vm,{[ym]:!0});he(a,en),he(a,tn,i),he(a,qi,a),he(i,tn,i),he(i,en),he(i,qi,i);const l=T(n,Tm,Cm,{[wm]:!0}),c=T(n,Lb,xm,{[wm]:!0}),u=he(n,Om,xm,{[wm]:!0});T(n,Mm,u),T(c,Tm,l),T(c,Mm,u),he(c,Om,u),T(u,Lb),T(u,Tm),he(u,Om,u),T(u,Mm,u);const d=he(n,Rm,jb,{[Db]:!0});T(d,"#"),he(d,Rm,d),T(d,cN,d);const m=T(d,uN);T(m,"#"),he(m,Rm,d);const f=[[en,s],[tn,r]],p=[[en,null],[qi,a],[tn,i]];for(let g=0;g<Rl.length;g++)Vn(n,Rl[g],$m,Xt,f);for(let g=0;g<Ol.length;g++)Vn(n,Ol[g],Sm,vm,p);bo($m,{tld:!0,ascii:!0},e),bo(Sm,{utld:!0,alpha:!0},e),Vn(n,"file",nl,Xt,f),Vn(n,"mailto",nl,Xt,f),Vn(n,"http",pr,Xt,f),Vn(n,"https",pr,Xt,f),Vn(n,"ftp",pr,Xt,f),Vn(n,"ftps",pr,Xt,f),bo(nl,{scheme:!0,ascii:!0},e),bo(pr,{slashscheme:!0,ascii:!0},e),t=t.sort((g,h)=>g[0]>h[0]?1:-1);for(let g=0;g<t.length;g++){const h=t[g][0],w=t[g][1]?{[iN]:!0}:{[sN]:!0};h.indexOf("-")>=0?w[bm]=!0:en.test(h)?tn.test(h)?w[Hi]=!0:w[gm]=!0:w[hm]=!0,Rb(n,h,h,w)}return Rb(n,"localhost",Ui,{ascii:!0}),n.jd=new Ge(Dl),{start:n,tokens:Object.assign({groups:e},Pb)}}function Ib(t,e){const n=mN(e.replace(/[A-Z]/g,a=>a.toLowerCase())),o=n.length,r=[];let i=0,s=0;for(;s<o;){let a=t,l=null,c=0,u=null,d=-1,m=-1;for(;s<o&&(l=a.go(n[s]));)a=l,a.accepts()?(d=0,m=0,u=a):d>=0&&(d+=n[s].length,m++),c+=n[s].length,i+=n[s].length,s++;i-=d,s-=m,c-=d,r.push({t:u.t,v:e.slice(i-c,i),s:i-c,e:i})}return r}function mN(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 Vn(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 Ge(o),i.jr=r.slice(),t.j[l]=i),t=i}return i=new Ge(n),i.jr=r.slice(),t.j[e[s-1]]=i,i}function zb(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 Gi={defaultProtocol:"http",events:null,format:Bb,formatHref:Bb,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function jm(t,e=null){let n=Object.assign({},Gi);t&&(n=Object.assign(n,t instanceof jm?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}jm.prototype={o:Gi,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]:Gi[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 Bb(t){return t}function Fb(t,e){this.t="token",this.v=t,this.tk=e}Fb.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=Gi.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),o=t.get("formatHref",n,this),r=t.get("tagName",n,e),i=this.toFormattedString(t),s={},a=t.get("className",n,e),l=t.get("target",n,e),c=t.get("rel",n,e),u=t.getObj("attributes",n,e),d=t.getObj("events",n,e);return s.href=o,a&&(s.class=a),l&&(s.target=l),c&&(s.rel=c),u&&Object.assign(s,u),{tagName:r,attributes:s,content:i,eventListeners:d}}};function Tl(t,e){class n extends Fb{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 Hb=Tl("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Vb=Tl("text"),fN=Tl("nl"),Ml=Tl("url",{isLink:!0,toHref(t=Gi.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Ui&&t[1].t===Hn}}),ht=t=>new Ge(t);function pN({groups:t}){const e=t.domain.concat([yl,wl,Fn,vl,$l,Sl,kl,xl,pt,km,Ji,Cl,El,Nl,Pt,Dl,Wi,Al]),n=[bl,Hn,Em,jt,Nm,Ji,Ki,Am,Dm,al,ll,_i,Yi,rl,ol,il,sl,cl,ul,dl,ml,fl,pl,hl,gl],o=[yl,bl,wl,vl,$l,Sl,kl,xl,pt,_i,Yi,Ji,Cl,El,Nl,Ki,Pt,Dl,Wi,Al],r=ht(),i=T(r,Wi);K(i,o,i),K(i,t.domain,i);const s=ht(),a=ht(),l=ht();K(r,t.domain,s),K(r,t.scheme,a),K(r,t.slashscheme,l),K(s,o,i),K(s,t.domain,s);const c=T(s,Fn);T(i,Fn,c),T(a,Fn,c),T(l,Fn,c);const u=T(i,jt);K(u,o,i),K(u,t.domain,i);const d=ht();K(c,t.domain,d),K(d,t.domain,d);const m=T(d,jt);K(m,t.domain,d);const f=ht(Hb);K(m,t.tld,f),K(m,t.utld,f),T(c,Ui,f);const p=T(d,pt);T(p,pt,p),K(p,t.domain,d),K(f,t.domain,d),T(f,jt,m),T(f,pt,p);const g=T(f,Hn);K(g,t.numeric,Hb);const h=T(s,pt),y=T(s,jt);T(h,pt,h),K(h,t.domain,s),K(y,o,i),K(y,t.domain,s);const w=ht(Ml);K(y,t.tld,w),K(y,t.utld,w),K(w,t.domain,s),K(w,o,i),T(w,jt,y),T(w,pt,h),T(w,Fn,c);const $=T(w,Hn),v=ht(Ml);K($,t.numeric,v);const x=ht(Ml),S=ht();K(x,e,x),K(x,n,S),K(S,e,x),K(S,n,S),T(w,Pt,x),T(v,Pt,x);const C=T(a,Hn),A=T(l,Hn),N=T(A,Pt),F=T(N,Pt);K(a,t.domain,s),T(a,jt,y),T(a,pt,h),K(l,t.domain,s),T(l,jt,y),T(l,pt,h),K(C,t.domain,x),T(C,Pt,x),T(C,Ki,x),K(F,t.domain,x),K(F,e,x),T(F,Pt,x);const J=[[_i,Yi],[ol,rl],[il,sl],[al,ll],[cl,ul],[dl,ml],[fl,pl],[hl,gl]];for(let ee=0;ee<J.length;ee++){const[ne,re]=J[ee],ae=T(x,ne);T(S,ne,ae),T(ae,re,x);const me=ht(Ml);K(ae,e,me);const E=ht();K(ae,n),K(me,e,me),K(me,n,E),K(E,e,me),K(E,n,E),T(me,re,x),T(E,re,x)}return T(r,Ui,w),T(r,Cm,fN),{start:r,tokens:Pb}}function hN(t,e,n){let o=n.length,r=0,i=[],s=[];for(;r<o;){let a=t,l=null,c=null,u=0,d=null,m=-1;for(;r<o&&!(l=a.go(n[r].t));)s.push(n[r++]);for(;r<o&&(c=l||a.go(n[r].t));)l=null,a=c,a.accepts()?(m=0,d=a):m>=0&&m++,r++,u++;if(m<0)r-=u,r<o&&(s.push(n[r]),r++);else{s.length>0&&(i.push(Pm(Vb,e,s)),s=[]),r-=m,u-=m;const f=d.t,p=n.slice(r-u,r);i.push(Pm(f,e,p))}}return s.length>0&&i.push(Pm(Vb,e,s)),i}function Pm(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 gN=typeof console<"u"&&console&&console.warn||(()=>{}),yN="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",ue={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function bN(){return Ge.groups={},ue.scanner=null,ue.parser=null,ue.tokenQueue=[],ue.pluginQueue=[],ue.customSchemes=[],ue.initialized=!1,ue}function Ub(t,e=!1){if(ue.initialized&&gN(`linkifyjs: already initialized - will not register custom scheme "${t}" ${yN}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
149
+ `));let m=u.props,f=typeof(m==null?void 0:m.className)=="function"?(...g)=>Qa(m==null?void 0:m.className(...g),l.className):Qa(m==null?void 0:m.className,l.className),p=f?{className:f}:{};return k.cloneElement(u,Object.assign({},Sb(u.props,kb(cm(l,["ref"]))),d,c,{ref:r(u.ref,c.ref)},p))}return k.createElement(i,Object.assign({},cm(l,["ref"]),i!==k.Fragment&&c,i!==k.Fragment&&d),u)}function IE(...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 Sb(...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 lm(t){var e;return Object.assign(k.forwardRef(t),{displayName:(e=t.displayName)!=null?e:t.name})}function kb(t){let e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}function cm(t,e=[]){let n=Object.assign({},t);for(let o of e)o in n&&delete n[o];return n}let um=k.createContext(null);um.displayName="OpenClosedContext";var Zt=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(Zt||{});function xb(){return k.useContext(um)}function LE({value:t,children:e}){return q.createElement(um.Provider,{value:t},e)}function dm(){let t=k.useRef(!1);return Bi(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function zE(t=0){let[e,n]=k.useState(t),o=dm(),r=k.useCallback(l=>{o.current&&n(c=>c|l)},[e,o]),i=k.useCallback(l=>!!(e&l),[e]),s=k.useCallback(l=>{o.current&&n(c=>c&~l)},[n,o]),a=k.useCallback(l=>{o.current&&n(c=>c^l)},[n]);return{flags:e,addFlag:r,hasFlag:i,removeFlag:s,toggleFlag:a}}function BE(t){let e={called:!1};return(...n)=>{if(!e.called)return e.called=!0,t(...n)}}function mm(t,...e){t&&e.length>0&&t.classList.add(...e)}function fm(t,...e){t&&e.length>0&&t.classList.remove(...e)}function FE(t,e){let n=Fi();if(!t)return n.dispose;let{transitionDuration:o,transitionDelay:r}=getComputedStyle(t),[i,s]=[o,r].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,d)=>d-u);return c}),a=i+s;if(a!==0){n.group(c=>{c.setTimeout(()=>{e(),c.dispose()},a),c.addEventListener(t,"transitionrun",u=>{u.target===u.currentTarget&&c.dispose()})});let l=n.addEventListener(t,"transitionend",c=>{c.target===c.currentTarget&&(e(),l())})}else e();return n.add(()=>e()),n.dispose}function HE(t,e,n,o){let r=n?"enter":"leave",i=Fi(),s=o!==void 0?BE(o):()=>{};r==="enter"&&(t.removeAttribute("hidden"),t.style.display="");let a=Mt(r,{enter:()=>e.enter,leave:()=>e.leave}),l=Mt(r,{enter:()=>e.enterTo,leave:()=>e.leaveTo}),c=Mt(r,{enter:()=>e.enterFrom,leave:()=>e.leaveFrom});return fm(t,...e.base,...e.enter,...e.enterTo,...e.enterFrom,...e.leave,...e.leaveFrom,...e.leaveTo,...e.entered),mm(t,...e.base,...a,...c),i.nextFrame(()=>{fm(t,...e.base,...a,...c),mm(t,...e.base,...a,...l),FE(t,()=>(fm(t,...e.base,...a),mm(t,...e.base,...e.entered),s()))}),i.dispose}function VE({immediate:t,container:e,direction:n,classes:o,onStart:r,onStop:i}){let s=dm(),a=yb(),l=fr(n);Bi(()=>{t&&(l.current="enter")},[t]),Bi(()=>{let c=Fi();a.add(c.dispose);let u=e.current;if(u&&l.current!=="idle"&&s.current)return c.dispose(),r.current(l.current),c.add(HE(u,o.current,l.current==="enter",()=>{c.dispose(),i.current(l.current)})),c.dispose},[n])}function Bn(t=""){return t.split(/\s+/).filter(e=>e.length>1)}let Xa=k.createContext(null);Xa.displayName="TransitionContext";var UE=(t=>(t.Visible="visible",t.Hidden="hidden",t))(UE||{});function _E(){let t=k.useContext(Xa);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}function YE(){let t=k.useContext(el);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}let el=k.createContext(null);el.displayName="NestingContext";function tl(t){return"children"in t?tl(t.children):t.current.filter(({el:e})=>e.current!==null).filter(({state:e})=>e==="visible").length>0}function Cb(t,e){let n=fr(t),o=k.useRef([]),r=dm(),i=yb(),s=Qt((f,p=zn.Hidden)=>{let g=o.current.findIndex(({el:h})=>h===f);g!==-1&&(Mt(p,{[zn.Unmount](){o.current.splice(g,1)},[zn.Hidden](){o.current[g].state="hidden"}}),i.microTask(()=>{var h;!tl(o)&&r.current&&((h=n.current)==null||h.call(n))}))}),a=Qt(f=>{let p=o.current.find(({el:g})=>g===f);return p?p.state!=="visible"&&(p.state="visible"):o.current.push({el:f,state:"visible"}),()=>s(f,zn.Unmount)}),l=k.useRef([]),c=k.useRef(Promise.resolve()),u=k.useRef({enter:[],leave:[],idle:[]}),d=Qt((f,p,g)=>{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(u.current[p].map(([y,w])=>w)).then(()=>h())})]),p==="enter"?c.current=c.current.then(()=>e==null?void 0:e.wait.current).then(()=>g(p)):g(p)}),m=Qt((f,p,g)=>{Promise.all(u.current[p].splice(0).map(([h,y])=>y)).then(()=>{var h;(h=l.current.shift())==null||h()}).then(()=>g(p))});return k.useMemo(()=>({children:o,register:a,unregister:s,onStart:d,onStop:m,wait:c,chains:u}),[a,s,o,d,m,u,c])}function JE(){}let KE=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Eb(t){var e;let n={};for(let o of KE)n[o]=(e=t[o])!=null?e:JE;return n}function WE(t){let e=k.useRef(Eb(t));return k.useEffect(()=>{e.current=Eb(t)},[t]),e}let qE="div",Nb=vb.RenderStrategy;function GE(t,e){var n,o;let{beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a,enter:l,enterFrom:c,enterTo:u,entered:d,leave:m,leaveFrom:f,leaveTo:p,...g}=t,h=k.useRef(null),y=wb(h,e),w=(n=g.unmount)==null||n?zn.Unmount:zn.Hidden,{show:v,appear:$,initial:x}=_E(),[S,C]=k.useState(v?"visible":"hidden"),D=YE(),{register:N,unregister:F}=D;k.useEffect(()=>N(h),[N,h]),k.useEffect(()=>{if(w===zn.Hidden&&h.current){if(v&&S!=="visible"){C("visible");return}return Mt(S,{hidden:()=>F(h),visible:()=>N(h)})}},[S,h,N,F,v,w]);let ne=fr({base:Bn(g.className),enter:Bn(l),enterFrom:Bn(c),enterTo:Bn(u),entered:Bn(d),leave:Bn(m),leaveFrom:Bn(f),leaveTo:Bn(p)}),ee=WE({beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a}),oe=bb();k.useEffect(()=>{if(oe&&S==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,S,oe]);let ge=x&&!$,ue=$&&v&&x,de=!oe||ge?"idle":v?"enter":"leave",E=zE(0),A=Qt(H=>Mt(H,{enter:()=>{E.addFlag(Zt.Opening),ee.current.beforeEnter()},leave:()=>{E.addFlag(Zt.Closing),ee.current.beforeLeave()},idle:()=>{}})),j=Qt(H=>Mt(H,{enter:()=>{E.removeFlag(Zt.Opening),ee.current.afterEnter()},leave:()=>{E.removeFlag(Zt.Closing),ee.current.afterLeave()},idle:()=>{}})),W=Cb(()=>{C("hidden"),F(h)},D),O=k.useRef(!1);VE({immediate:ue,container:h,classes:ne,direction:de,onStart:fr(H=>{O.current=!0,W.onStart(h,H,A)}),onStop:fr(H=>{O.current=!1,W.onStop(h,H,j),H==="leave"&&!tl(W)&&(C("hidden"),F(h))})});let P=g,L={ref:y};return ue?P={...P,className:Qa(g.className,...ne.current.enter,...ne.current.enterFrom)}:O.current&&(P.className=Qa(g.className,(o=h.current)==null?void 0:o.className),P.className===""&&delete P.className),q.createElement(el.Provider,{value:W},q.createElement(LE,{value:Mt(S,{visible:Zt.Open,hidden:Zt.Closed})|E.flags},$b({ourProps:L,theirProps:P,defaultTag:qE,features:Nb,visible:S==="visible",name:"Transition.Child"})))}function QE(t,e){let{show:n,appear:o=!1,unmount:r=!0,...i}=t,s=k.useRef(null),a=wb(s,e);bb();let l=xb();if(n===void 0&&l!==null&&(n=(l&Zt.Open)===Zt.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=k.useState(n?"visible":"hidden"),d=Cb(()=>{u("hidden")}),[m,f]=k.useState(!0),p=k.useRef([n]);Bi(()=>{m!==!1&&p.current[p.current.length-1]!==n&&(p.current.push(n),f(!1))},[p,n]);let g=k.useMemo(()=>({show:n,appear:o,initial:m}),[n,o,m]);k.useEffect(()=>{if(n)u("visible");else if(!tl(d))u("hidden");else{let v=s.current;if(!v)return;let $=v.getBoundingClientRect();$.x===0&&$.y===0&&$.width===0&&$.height===0&&u("hidden")}},[n,d]);let h={unmount:r},y=Qt(()=>{var v;m&&f(!1),(v=t.beforeEnter)==null||v.call(t)}),w=Qt(()=>{var v;m&&f(!1),(v=t.beforeLeave)==null||v.call(t)});return q.createElement(el.Provider,{value:d},q.createElement(Xa.Provider,{value:g},$b({ourProps:{...h,as:k.Fragment,children:q.createElement(Ab,{ref:a,...h,...i,beforeEnter:y,beforeLeave:w})},theirProps:{},defaultTag:k.Fragment,features:Nb,visible:c==="visible",name:"Transition"})))}function ZE(t,e){let n=k.useContext(Xa)!==null,o=xb()!==null;return q.createElement(q.Fragment,null,!n&&o?q.createElement(pm,{ref:e,...t}):q.createElement(Ab,{ref:e,...t}))}let pm=lm(QE),Ab=lm(GE),XE=lm(ZE),yo=Object.assign(pm,{Child:XE,Root:pm});const eN=/^\s*>\s$/,tN=yn.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",Lo(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[mx({find:eN,type:this.type})]}}),nN=yn.create({name:"doc",topNode:!0,content:"block+"}),oN=yn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Lo(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:c,dispatch:u})=>{if(u&&l&&s){const d=l.filter(m=>a.includes(m.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),rN="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",iN="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو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",hm="numeric",gm="ascii",ym="alpha",Hi="asciinumeric",Vi="alphanumeric",bm="domain",Db="emoji",sN="scheme",aN="slashscheme",wm="whitespace";function lN(t,e){return t in e||(e[t]=[]),e[t]}function bo(t,e,n){e[hm]&&(e[Hi]=!0,e[Vi]=!0),e[gm]&&(e[Hi]=!0,e[ym]=!0),e[Hi]&&(e[Vi]=!0),e[ym]&&(e[Vi]=!0),e[Vi]&&(e[bm]=!0),e[Db]&&(e[bm]=!0);for(const o in e){const r=lN(o,n);r.indexOf(t)<0&&r.push(t)}}function cN(t,e){const n={};for(const o in e)e[o].indexOf(t)>=0&&(n[o]=!0);return n}function Ge(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}Ge.groups={},Ge.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=!1){return 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||Ge.groups;let r;return e&&e.j?r=e:(r=new Ge(e),n&&o&&bo(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||Ge.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 Ge,Object.assign(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new Ge,i){if(o)if(s.t&&typeof s.t=="string"){const l=Object.assign(cN(s.t,o),n);bo(i,l,o)}else n&&bo(i,n,o);s.t=i}return r.j[t]=s,s}};const J=(t,e,n,o,r)=>t.ta(e,n,o,r),pe=(t,e,n,o,r)=>t.tr(e,n,o,r),Rb=(t,e,n,o,r)=>t.ts(e,n,o,r),T=(t,e,n,o,r)=>t.tt(e,n,o,r),Xt="WORD",vm="UWORD",Ob="ASCIINUMERICAL",Tb="ALPHANUMERICAL",Ui="LOCALHOST",$m="TLD",Sm="UTLD",nl="SCHEME",pr="SLASH_SCHEME",km="NUM",xm="WS",Cm="NL",_i="OPENBRACE",Yi="CLOSEBRACE",ol="OPENBRACKET",rl="CLOSEBRACKET",il="OPENPAREN",sl="CLOSEPAREN",al="OPENANGLEBRACKET",ll="CLOSEANGLEBRACKET",cl="FULLWIDTHLEFTPAREN",ul="FULLWIDTHRIGHTPAREN",dl="LEFTCORNERBRACKET",ml="RIGHTCORNERBRACKET",fl="LEFTWHITECORNERBRACKET",pl="RIGHTWHITECORNERBRACKET",hl="FULLWIDTHLESSTHAN",gl="FULLWIDTHGREATERTHAN",yl="AMPERSAND",bl="APOSTROPHE",wl="ASTERISK",Fn="AT",vl="BACKSLASH",$l="BACKTICK",Sl="CARET",Hn="COLON",Em="COMMA",kl="DOLLAR",jt="DOT",xl="EQUALS",Nm="EXCLAMATION",pt="HYPHEN",Ji="PERCENT",Cl="PIPE",El="PLUS",Nl="POUND",Ki="QUERY",Am="QUOTE",Mb="FULLWIDTHMIDDLEDOT",Dm="SEMI",Pt="SLASH",Wi="TILDE",Al="UNDERSCORE",jb="EMOJI",Dl="SYM";var Pb=Object.freeze({__proto__:null,ALPHANUMERICAL:Tb,AMPERSAND:yl,APOSTROPHE:bl,ASCIINUMERICAL:Ob,ASTERISK:wl,AT:Fn,BACKSLASH:vl,BACKTICK:$l,CARET:Sl,CLOSEANGLEBRACKET:ll,CLOSEBRACE:Yi,CLOSEBRACKET:rl,CLOSEPAREN:sl,COLON:Hn,COMMA:Em,DOLLAR:kl,DOT:jt,EMOJI:jb,EQUALS:xl,EXCLAMATION:Nm,FULLWIDTHGREATERTHAN:gl,FULLWIDTHLEFTPAREN:cl,FULLWIDTHLESSTHAN:hl,FULLWIDTHMIDDLEDOT:Mb,FULLWIDTHRIGHTPAREN:ul,HYPHEN:pt,LEFTCORNERBRACKET:dl,LEFTWHITECORNERBRACKET:fl,LOCALHOST:Ui,NL:Cm,NUM:km,OPENANGLEBRACKET:al,OPENBRACE:_i,OPENBRACKET:ol,OPENPAREN:il,PERCENT:Ji,PIPE:Cl,PLUS:El,POUND:Nl,QUERY:Ki,QUOTE:Am,RIGHTCORNERBRACKET:ml,RIGHTWHITECORNERBRACKET:pl,SCHEME:nl,SEMI:Dm,SLASH:Pt,SLASH_SCHEME:pr,SYM:Dl,TILDE:Wi,TLD:$m,UNDERSCORE:Al,UTLD:Sm,UWORD:vm,WORD:Xt,WS:xm});const en=/[a-z]/,qi=new RegExp("\\p{L}","u"),Rm=new RegExp("\\p{Emoji}","u"),tn=/\d/,Om=/\s/,Ib="\r",Tm=`
151
+ `,uN="️",dN="‍",Mm="";let Rl=null,Ol=null;function mN(t=[]){const e={};Ge.groups=e;const n=new Ge;Rl==null&&(Rl=zb(rN)),Ol==null&&(Ol=zb(iN)),T(n,"'",bl),T(n,"{",_i),T(n,"}",Yi),T(n,"[",ol),T(n,"]",rl),T(n,"(",il),T(n,")",sl),T(n,"<",al),T(n,">",ll),T(n,"(",cl),T(n,")",ul),T(n,"「",dl),T(n,"」",ml),T(n,"『",fl),T(n,"』",pl),T(n,"<",hl),T(n,">",gl),T(n,"&",yl),T(n,"*",wl),T(n,"@",Fn),T(n,"`",$l),T(n,"^",Sl),T(n,":",Hn),T(n,",",Em),T(n,"$",kl),T(n,".",jt),T(n,"=",xl),T(n,"!",Nm),T(n,"-",pt),T(n,"%",Ji),T(n,"|",Cl),T(n,"+",El),T(n,"#",Nl),T(n,"?",Ki),T(n,'"',Am),T(n,"/",Pt),T(n,";",Dm),T(n,"~",Wi),T(n,"_",Al),T(n,"\\",vl),T(n,"・",Mb);const o=pe(n,tn,km,{[hm]:!0});pe(o,tn,o);const r=pe(o,en,Ob,{[Hi]:!0}),i=pe(o,qi,Tb,{[Vi]:!0}),s=pe(n,en,Xt,{[gm]:!0});pe(s,tn,r),pe(s,en,s),pe(r,tn,r),pe(r,en,r);const a=pe(n,qi,vm,{[ym]:!0});pe(a,en),pe(a,tn,i),pe(a,qi,a),pe(i,tn,i),pe(i,en),pe(i,qi,i);const l=T(n,Tm,Cm,{[wm]:!0}),c=T(n,Ib,xm,{[wm]:!0}),u=pe(n,Om,xm,{[wm]:!0});T(n,Mm,u),T(c,Tm,l),T(c,Mm,u),pe(c,Om,u),T(u,Ib),T(u,Tm),pe(u,Om,u),T(u,Mm,u);const d=pe(n,Rm,jb,{[Db]:!0});T(d,"#"),pe(d,Rm,d),T(d,uN,d);const m=T(d,dN);T(m,"#"),pe(m,Rm,d);const f=[[en,s],[tn,r]],p=[[en,null],[qi,a],[tn,i]];for(let g=0;g<Rl.length;g++)Vn(n,Rl[g],$m,Xt,f);for(let g=0;g<Ol.length;g++)Vn(n,Ol[g],Sm,vm,p);bo($m,{tld:!0,ascii:!0},e),bo(Sm,{utld:!0,alpha:!0},e),Vn(n,"file",nl,Xt,f),Vn(n,"mailto",nl,Xt,f),Vn(n,"http",pr,Xt,f),Vn(n,"https",pr,Xt,f),Vn(n,"ftp",pr,Xt,f),Vn(n,"ftps",pr,Xt,f),bo(nl,{scheme:!0,ascii:!0},e),bo(pr,{slashscheme:!0,ascii:!0},e),t=t.sort((g,h)=>g[0]>h[0]?1:-1);for(let g=0;g<t.length;g++){const h=t[g][0],w=t[g][1]?{[sN]:!0}:{[aN]:!0};h.indexOf("-")>=0?w[bm]=!0:en.test(h)?tn.test(h)?w[Hi]=!0:w[gm]=!0:w[hm]=!0,Rb(n,h,h,w)}return Rb(n,"localhost",Ui,{ascii:!0}),n.jd=new Ge(Dl),{start:n,tokens:Object.assign({groups:e},Pb)}}function Lb(t,e){const n=fN(e.replace(/[A-Z]/g,a=>a.toLowerCase())),o=n.length,r=[];let i=0,s=0;for(;s<o;){let a=t,l=null,c=0,u=null,d=-1,m=-1;for(;s<o&&(l=a.go(n[s]));)a=l,a.accepts()?(d=0,m=0,u=a):d>=0&&(d+=n[s].length,m++),c+=n[s].length,i+=n[s].length,s++;i-=d,s-=m,c-=d,r.push({t:u.t,v:e.slice(i-c,i),s:i-c,e:i})}return r}function fN(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 Vn(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 Ge(o),i.jr=r.slice(),t.j[l]=i),t=i}return i=new Ge(n),i.jr=r.slice(),t.j[e[s-1]]=i,i}function zb(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 Gi={defaultProtocol:"http",events:null,format:Bb,formatHref:Bb,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function jm(t,e=null){let n=Object.assign({},Gi);t&&(n=Object.assign(n,t instanceof jm?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}jm.prototype={o:Gi,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]:Gi[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 Bb(t){return t}function Fb(t,e){this.t="token",this.v=t,this.tk=e}Fb.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=Gi.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),o=t.get("formatHref",n,this),r=t.get("tagName",n,e),i=this.toFormattedString(t),s={},a=t.get("className",n,e),l=t.get("target",n,e),c=t.get("rel",n,e),u=t.getObj("attributes",n,e),d=t.getObj("events",n,e);return s.href=o,a&&(s.class=a),l&&(s.target=l),c&&(s.rel=c),u&&Object.assign(s,u),{tagName:r,attributes:s,content:i,eventListeners:d}}};function Tl(t,e){class n extends Fb{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 Hb=Tl("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Vb=Tl("text"),pN=Tl("nl"),Ml=Tl("url",{isLink:!0,toHref(t=Gi.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Ui&&t[1].t===Hn}}),ht=t=>new Ge(t);function hN({groups:t}){const e=t.domain.concat([yl,wl,Fn,vl,$l,Sl,kl,xl,pt,km,Ji,Cl,El,Nl,Pt,Dl,Wi,Al]),n=[bl,Hn,Em,jt,Nm,Ji,Ki,Am,Dm,al,ll,_i,Yi,rl,ol,il,sl,cl,ul,dl,ml,fl,pl,hl,gl],o=[yl,bl,wl,vl,$l,Sl,kl,xl,pt,_i,Yi,Ji,Cl,El,Nl,Ki,Pt,Dl,Wi,Al],r=ht(),i=T(r,Wi);J(i,o,i),J(i,t.domain,i);const s=ht(),a=ht(),l=ht();J(r,t.domain,s),J(r,t.scheme,a),J(r,t.slashscheme,l),J(s,o,i),J(s,t.domain,s);const c=T(s,Fn);T(i,Fn,c),T(a,Fn,c),T(l,Fn,c);const u=T(i,jt);J(u,o,i),J(u,t.domain,i);const d=ht();J(c,t.domain,d),J(d,t.domain,d);const m=T(d,jt);J(m,t.domain,d);const f=ht(Hb);J(m,t.tld,f),J(m,t.utld,f),T(c,Ui,f);const p=T(d,pt);T(p,pt,p),J(p,t.domain,d),J(f,t.domain,d),T(f,jt,m),T(f,pt,p);const g=T(f,Hn);J(g,t.numeric,Hb);const h=T(s,pt),y=T(s,jt);T(h,pt,h),J(h,t.domain,s),J(y,o,i),J(y,t.domain,s);const w=ht(Ml);J(y,t.tld,w),J(y,t.utld,w),J(w,t.domain,s),J(w,o,i),T(w,jt,y),T(w,pt,h),T(w,Fn,c);const v=T(w,Hn),$=ht(Ml);J(v,t.numeric,$);const x=ht(Ml),S=ht();J(x,e,x),J(x,n,S),J(S,e,x),J(S,n,S),T(w,Pt,x),T($,Pt,x);const C=T(a,Hn),D=T(l,Hn),N=T(D,Pt),F=T(N,Pt);J(a,t.domain,s),T(a,jt,y),T(a,pt,h),J(l,t.domain,s),T(l,jt,y),T(l,pt,h),J(C,t.domain,x),T(C,Pt,x),T(C,Ki,x),J(F,t.domain,x),J(F,e,x),T(F,Pt,x);const ne=[[_i,Yi],[ol,rl],[il,sl],[al,ll],[cl,ul],[dl,ml],[fl,pl],[hl,gl]];for(let ee=0;ee<ne.length;ee++){const[oe,ge]=ne[ee],ue=T(x,oe);T(S,oe,ue),T(ue,ge,x);const de=ht(Ml);J(ue,e,de);const E=ht();J(ue,n),J(de,e,de),J(de,n,E),J(E,e,de),J(E,n,E),T(de,ge,x),T(E,ge,x)}return T(r,Ui,w),T(r,Cm,pN),{start:r,tokens:Pb}}function gN(t,e,n){let o=n.length,r=0,i=[],s=[];for(;r<o;){let a=t,l=null,c=null,u=0,d=null,m=-1;for(;r<o&&!(l=a.go(n[r].t));)s.push(n[r++]);for(;r<o&&(c=l||a.go(n[r].t));)l=null,a=c,a.accepts()?(m=0,d=a):m>=0&&m++,r++,u++;if(m<0)r-=u,r<o&&(s.push(n[r]),r++);else{s.length>0&&(i.push(Pm(Vb,e,s)),s=[]),r-=m,u-=m;const f=d.t,p=n.slice(r-u,r);i.push(Pm(f,e,p))}}return s.length>0&&i.push(Pm(Vb,e,s)),i}function Pm(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 yN=typeof console<"u"&&console&&console.warn||(()=>{}),bN="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",le={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function wN(){return Ge.groups={},le.scanner=null,le.parser=null,le.tokenQueue=[],le.pluginQueue=[],le.customSchemes=[],le.initialized=!1,le}function Ub(t,e=!1){if(le.initialized&&yN(`linkifyjs: already initialized - will not register custom scheme "${t}" ${bN}`),!/^[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`);ue.customSchemes.push([t,e])}function wN(){ue.scanner=dN(ue.customSchemes);for(let t=0;t<ue.tokenQueue.length;t++)ue.tokenQueue[t][1]({scanner:ue.scanner});ue.parser=pN(ue.scanner.tokens);for(let t=0;t<ue.pluginQueue.length;t++)ue.pluginQueue[t][1]({scanner:ue.scanner,parser:ue.parser});return ue.initialized=!0,ue}function Lm(t){return ue.initialized||wN(),hN(ue.parser.start,t,Ib(ue.scanner.start,t))}Lm.scan=Ib;function _b(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const o=new jm(n),r=Lm(t),i=[];for(let s=0;s<r.length;s++){const a=r[s];a.isLink&&(!e||a.t===e)&&o.check(a)&&i.push(a.toFormattedObject(o))}return i}const Im="[\0-   ᠎ -\u2029  ]",vN=new RegExp(Im),$N=new RegExp(`${Im}$`),SN=new RegExp(Im,"g");function kN(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function xN(t){return new _e({key:new bt("autolink"),appendTransaction:(e,n,o)=>{const r=e.some(c=>c.docChanged)&&!n.doc.eq(o.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!r||i)return;const{tr:s}=o,a=jk(n.doc,[...e]);if(Vk(a).forEach(({newRange:c})=>{const u=Lk(o.doc,c,f=>f.isTextblock);let d,m;if(u.length>1)d=u[0],m=o.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ");else if(u.length){const f=o.doc.textBetween(c.from,c.to," "," ");if(!$N.test(f))return;d=u[0],m=o.doc.textBetween(d.pos,c.to,void 0," ")}if(d&&m){const f=m.split(vN).filter(Boolean);if(f.length<=0)return!1;const p=f[f.length-1],g=d.pos+m.lastIndexOf(p);if(!p)return!1;const h=Lm(p).map(y=>y.toObject(t.defaultProtocol));if(!kN(h))return!1;h.filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>o.schema.marks.code?!o.doc.rangeHasMark(y.from,y.to,o.schema.marks.code):!0).filter(y=>t.validate(y.value)).filter(y=>t.shouldAutoLink(y.value)).forEach(y=>{wg(y.from,y.to,o.doc).some(w=>w.mark.type===t.type)||s.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function CN(t){return new _e({key:new bt("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=bg(e.state,t.type.name),c=o.target,u=(r=c==null?void 0:c.href)!==null&&r!==void 0?r:l.href,d=(i=c==null?void 0:c.target)!==null&&i!==void 0?i:l.target;return c&&u?(window.open(u,d),!0):!1}}})}function EN(t){return new _e({key:new bt("handlePasteLink"),props:{handlePaste:(e,n,o)=>{const{state:r}=e,{selection:i}=r,{empty:s}=i;if(s)return!1;let a="";o.content.forEach(c=>{a+=c.textContent});const l=_b(a,{defaultProtocol:t.defaultProtocol}).find(c=>c.isLink&&c.value===a);return!a||!l?!1:t.editor.commands.setMark(t.type,{href:l.href})}}})}function wo(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(SN,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const NN=Vr.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){Ub(t);return}Ub(t.scheme,t.optionalSlashes)})},onDestroy(){bN()},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},isAllowedUri:(t,e)=>!!wo(t,e.protocols),validate:t=>!!t,shouldAutoLink: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||!this.options.isAllowedUri(e,{defaultValidate:n=>!!wo(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!wo(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Io(this.options.HTMLAttributes,t),0]:["a",Io(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:o=>!!wo(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:o=>!!wo(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[mx({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:o}=this.options,r=_b(t).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:s=>!!wo(s,n),protocols:n,defaultProtocol:o}));r.length&&r.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.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=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(xN({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:o=>this.options.isAllowedUri(o,{defaultValidate:r=>!!wo(r,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(CN({type:this.type})),this.options.linkOnPaste&&t.push(EN({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),AN=yn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Io(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),DN=at.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new _e({key:new bt("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=e,r=[];if(!n)return null;const i=this.editor.isEmpty;return t.descendants((s,a)=>{const l=o>=a&&o<=a+s.nodeSize,c=!s.isLeaf&&_s(s);if((l||!this.options.showOnlyCurrent)&&c){const u=[this.options.emptyNodeClass];i&&u.push(this.options.emptyEditorClass);const d=st.node(a,a+s.nodeSize,{class:u.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:s,pos:a,hasAnchor:l}):this.options.placeholder});r.push(d)}return this.options.includeChildren}),be.create(t,r)}}})]}}),RN=yn.create({name:"text",group:"inline"});function ON({placeholder:t,autofocus:e=!1,content:n=""}){return{extensions:[tN,RN,AN,NN.configure({openOnClick:!1}),DN.configure({placeholder:t,showOnlyWhenEditable:!1}),eN.configure({}),nN.configure({})],content:n,autofocus:e,editorProps:{attributes:{class:"gh-comment-content focus:outline-0","data-testid":"editor"}},parseOptions:{preserveWhitespace:"full"}}}function TN(t,e){const n=k.useRef(null),o=k.useCallback(r=>{n.current,r&&t&&t(r),n.current=r},[t,e]);return[n,o]}function MN(t){const{popup:e}=Y();return(e==null?void 0:e.type)===t}function jN(t){const{t:e}=Y();return k.useMemo(()=>gv(t,e),[t])}function zm(t,e=!1){const[n,o]=k.useState(e),r=k.useMemo(()=>({...ON(t)}),[t]),i=EE(r,[r]);return k.useEffect(()=>{if(i){const s=()=>{const a=!i.isEmpty;o(a)};return i.on("update",s),i.on("transaction",s),s(),()=>{i.off("update",s),i.off("transaction",s)}}},[i]),{editor:i,hasContent:n}}function PN(t,e){const n=k.useCallback(()=>{if(t.current)for(const i of Object.values(e))t.current.classList.add(...i.default.split(" ")),t.current.classList.remove(...i.outOfViewport.split(" "))},[t,e]),o=k.useCallback(i=>{if(t.current)for(const[s,a]of Object.entries(e))i[s]?(t.current.classList.add(...a.outOfViewport.split(" ")),t.current.classList.remove(...a.default.split(" "))):(t.current.classList.add(...a.default.split(" ")),t.current.classList.remove(...a.outOfViewport.split(" ")))},[t,e]),r=k.useCallback(()=>{if(t.current){const i=t.current.ownerDocument,s=i.defaultView||window;n();const a=t.current.getBoundingClientRect(),l={top:a.top<0,bottom:a.bottom>(s.innerHeight||i.documentElement.clientHeight),left:a.left<0,right:a.right>(s.innerWidth||i.documentElement.clientWidth)};o(l)}},[t]);k.useLayoutEffect(()=>{r()},[t]),k.useEffect(()=>(window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}),[])}const LN=({comment:t,submit:e,progress:n,setProgress:o,close:r,isOpen:i,editor:s,submitText:a,submitSize:l,openForm:c})=>{const{dispatchAction:u,t:d}=Y();let m=null;k.useEffect(()=>{if(s&&c){const g=()=>{const h=t&&c.type==="edit"?s.getHTML()!==t.html:!s.isEmpty;c.hasUnsavedChanges!==h&&u("setCommentFormHasUnsavedChanges",{id:c.id,hasUnsavedChanges:h})};return s.on("update",g),s.on("transaction",g),g(),()=>{s.off("update",g),s.off("transaction",g)}}},[s,t,c,u]),n==="sending"&&(m=b.jsx(qa,{className:"size-[24px] fill-white","data-testid":"button-spinner"}));const f=k.useCallback(g=>{if(s!=null&&s.isFocused){g.stopPropagation();return}},[s]),p=k.useCallback(async()=>{if(!(!s||s.isEmpty)){o("sending");try{await e({html:s.getHTML()})}catch{o("error");return}return r?r():(o("sent"),s.chain().clearContent().blur().run()),!1}},[o,s,e,r]);return k.useEffect(()=>{const g=h=>{if(h.metaKey||h.ctrlKey){h.key==="Enter"&&(s!=null&&s.isFocused)&&(p(),s==null||s.commands.blur());return}if(h.key==="Escape"){s!=null&&s.isFocused&&(r?r():s==null||s.commands.blur());return}};return window.addEventListener("keydown",g,{passive:!0}),()=>{window.removeEventListener("keydown",g,{passive:!0})}},[s,r,p]),b.jsxs(b.Fragment,{children:[b.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"}`,"data-testid":"form-editor",children:b.jsx(gE,{editor:s,onMouseDown:f,onTouchStart:f})}),b.jsxs("div",{className:"absolute bottom-1 right-1 flex space-x-4 transition-[opacity] duration-150 sm:bottom-2 sm:right-2",children:[r&&b.jsx("button",{className:"ml-2.5 font-sans text-sm font-medium text-neutral-900/50 outline-0 transition-all hover:text-neutral-900/70 dark:text-white/60 dark:hover:text-white/75",type:"button",onClick:r,children:d("Cancel")}),b.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 bg-[var(--gh-accent-color)] px-3 py-2 text-center font-sans text-base font-medium text-white outline-0 transition-colors duration-200 hover:brightness-105 disabled:bg-black/5 disabled:text-neutral-900/30 sm:text-sm dark:disabled:bg-white/15 dark:disabled:text-white/35`,"data-testid":"submit-form-button",disabled:!s||s.isEmpty,type:"button",onClick:p,children:[m&&b.jsx("span",{className:"mr-1",children:m}),a&&b.jsx("span",{children:a})]})]})]})},IN=({show:t,name:e,expertise:n,replyingToText:o,editName:r,editExpertise:i})=>{const{t:s}=Y(),a=!!o;return b.jsxs(yo,{"data-testid":"form-header",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:[b.jsxs("div",{className:"flex flex-wrap",children:[b.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",onMouseDown:r,children:e||"Anonymous"}),b.jsx("div",{className:"flex items-baseline justify-start",children:b.jsxs("button",{className:`group flex items-center justify-start whitespace-nowrap text-left font-sans text-base leading-snug text-neutral-900/50 transition duration-150 hover:text-black/75 sm:text-sm dark:text-white/60 dark:hover:text-white/75 ${!n&&"text-black/30 hover:text-black/50 dark:text-white/30 dark:hover:text-white/50"}`,"data-testid":"expertise-button",type:"button",onMouseDown:i,children:[b.jsxs("span",{children:[b.jsx("span",{className:"mx-[0.3em] hidden sm:inline",children:"·"}),n||s("Add your expertise")]}),n&&b.jsx(Sv,{className:"ml-1 size-[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"})]})})]}),a&&b.jsxs("div",{className:"mt-0.5 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60","data-testid":"replying-to",children:[b.jsxs("span",{children:[s("Reply to"),":"]})," ",b.jsx("span",{className:"font-semibold text-neutral-900/60 dark:text-white/70",children:o})]})]})},Bm=({comment:t,submit:e,submitText:n,submitSize:o,close:r,editor:i,reduced:s,isOpen:a,openForm:l})=>{const{member:c}=Y(),u=MN("addDetailsPopup"),[d,m]=k.useState("default"),f=k.useRef(null),p=c==null?void 0:c.name;(d==="sending"||p&&u)&&(a=!0);const g=h=>{if(i!=null&&i.isFocused){h.preventDefault();return}};return k.useEffect(()=>{i&&i.setEditable(!!p&&d!=="sending")},[i,p,d]),b.jsx("form",{ref:f,"data-testid":"form",onMouseDown:g,onTouchStart:g,children:b.jsx(LN,{close:r,comment:t,editor:i,isOpen:a,openForm:l,progress:d,reduced:s,setProgress:m,submit:e,submitSize:o,submitText:n})})},Yb=({editor:t,isOpen:e,reduced:n,openForm:o,children:r})=>{const{member:i,dispatchAction:s}=Y(),a=i==null?void 0:i.name,l=i==null?void 0:i.expertise;let c="";e&&(c=!!(o!=null&&o.in_reply_to_snippet)?"pl-[1px] pt-[68px] sm:pl-[44px] sm:pt-[56px]":"pl-[1px] pt-[48px] sm:pl-[44px] sm:pt-[40px]");const u=k.useCallback(p=>{var g;(g=t==null?void 0:t.commands)==null||g.blur(),s("openPopup",{type:"addDetailsPopup",expertiseAutofocus:p.expertiseAutofocus??!1,callback:function(h){t&&h&&(t.setEditable(!0),t.commands.focus())}})},[t,s]),d=k.useCallback(()=>{u({expertiseAutofocus:!1})},[u]),m=k.useCallback(()=>{u({expertiseAutofocus:!0})},[u]),f=k.useCallback(()=>{if(t&&!t.isFocused){if(!a){d();return}t.commands.focus()}},[t,d,a]);return b.jsx("div",{className:`-mx-2 mt-[-10px] rounded-md transition duration-200 ${e?"cursor-default":"cursor-pointer"}`,children:b.jsxs("div",{className:"relative w-full",onClick:f,children:[b.jsx("div",{className:"pr-[1px] font-sans leading-normal dark:text-neutral-300",children:b.jsx("div",{className:`relative mb-7 w-full pl-[40px] transition-[padding] delay-100 duration-150 sm:pl-[44px] ${n&&"pl-0"} ${c}`,children:r})}),b.jsxs("div",{className:"absolute left-0 top-1 flex h-11 w-full items-start justify-start sm:h-12",children:[b.jsx("div",{className:"pointer-events-none mr-2 grow-0 sm:mr-3",children:b.jsx(Gl,{member:i})}),b.jsx("div",{className:"grow-1 mt-0.5 w-full",children:b.jsx(IN,{editExpertise:m,editName:d,expertise:l,name:a,replyingToId:o==null?void 0:o.in_reply_to_id,replyingToText:o==null?void 0:o.in_reply_to_snippet,show:e})})]})]})})},zN=({comment:t,openForm:e,parent:n})=>{const{dispatchAction:o,t:r}=Y(),i=k.useMemo(()=>({placeholder:r("Edit this comment"),autofocus:!1,content:t.html}),[t]),{editor:s}=zm(i);k.useEffect(()=>{s&&s.chain().focus().command(({tr:c,commands:u})=>u.setTextSelection({from:c.doc.content.size,to:c.doc.content.size})).run()},[s]);const a=k.useCallback(async({html:c})=>{await o("editComment",{comment:{id:t.id,html:c},parent:n})},[n,t,o]),l=k.useCallback(()=>{o("closeCommentForm",e.id)},[o,e]);return b.jsx("div",{className:"relative w-full",children:b.jsx(Bm,{close:l,comment:t,editor:s,isOpen:!0,openForm:e,reduced:as(),submit:a,submitSize:"small",submitText:r("Save")})})},Jb=t=>k.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"black",...t},k.createElement("path",{d:"M8.00025 13.8739L2.46073 8.09636C1.97388 7.60989 1.65255 6.98248 1.54231 6.30312C1.43208 5.62376 1.53853 4.92694 1.84658 4.31148V4.31148C2.07887 3.84703 2.41819 3.44443 2.83659 3.13684C3.25499 2.82925 3.74049 2.62547 4.25308 2.54231C4.76567 2.45914 5.29069 2.49896 5.78488 2.65849C6.27906 2.81802 6.72827 3.09269 7.09549 3.45987L8.00025 4.36406L8.90502 3.45987C9.27224 3.09269 9.72145 2.81802 10.2156 2.65849C10.7098 2.49896 11.2348 2.45914 11.7474 2.54231C12.26 2.62547 12.7455 2.82925 13.1639 3.13684C13.5823 3.44443 13.9216 3.84703 14.1539 4.31148C14.4616 4.9267 14.5678 5.62311 14.4577 6.30208C14.3476 6.98105 14.0267 7.60817 13.5404 8.09462L8.00025 13.8739Z",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"})),BN=({comment:t})=>{const{dispatchAction:e,isMember:n,hasRequiredTier:o}=Y(),[r,i]=k.useState(""),[s,a]=k.useState(!1),l=n&&o,c=async()=>{if(!l){e("openPopup",{type:"ctaPopup"});return}t.liked?(a(!0),await e("unlikeComment",t),a(!1)):(a(!0),await e("likeComment",t),i("animate-heartbeat"),setTimeout(()=>{i("")},400),a(!1))};return b.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",disabled:s,type:"button",onClick:c,children:[b.jsx(Jb,{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]})},FN=({count:t,liked:e})=>b.jsxs("span",{className:`flex items-center font-sans text-base sm:text-sm ${e?"text-black/90 dark:text-white/90":"text-black/50 dark:text-white/60"}`,"data-testid":"like-count",children:[b.jsx(Jb,{className:`mr-[6px] ${e?"fill-black stroke-black dark:fill-white dark:stroke-white":"stroke-black/50 dark:stroke-white/60"}`}),t]}),Kb=({comment:t,close:e})=>{const{dispatchAction:n,t:o,adminUrl:r}=Y(),i=Ef(),s=()=>{n("hideComment",t),e()},a=()=>{n("showComment",t),e()},l=t.status!=="published",c=r?`${r}#/comments/?id=is:${t.id}`:null;return b.jsxs("div",{className:"flex w-full flex-col gap-0.5",children:[l?b.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700","data-testid":"show-button",type:"button",onClick:a,children:[b.jsx("span",{className:"hidden sm:inline",children:o("Show comment")}),b.jsx("span",{className:"sm:hidden",children:o("Show")})]}):b.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] text-red-600 transition-colors hover:bg-neutral-100 dark:text-red-500 dark:hover:bg-neutral-700","data-testid":"hide-button",type:"button",onClick:s,children:[b.jsx("span",{className:"hidden sm:inline",children:o("Hide comment")}),b.jsx("span",{className:"sm:hidden",children:o("Hide")})]}),(i==null?void 0:i.commentModeration)&&c&&b.jsx("a",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700","data-testid":"view-in-admin-button",href:c,rel:"noopener noreferrer",target:"_blank",onClick:e,children:o("View in admin")})]})},HN=({comment:t,close:e,toggleEdit:n})=>{const{dispatchAction:o,t:r}=Y(),i=()=>{o("openPopup",{type:"deletePopup",comment:t}),e()};return b.jsxs("div",{className:"flex w-full flex-col gap-0.5",children:[b.jsx("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700","data-testid":"edit",type:"button",onClick:n,children:r("Edit")}),b.jsx("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] text-red-600 transition-colors hover:bg-neutral-100 dark:text-red-500 dark:hover:bg-neutral-700","data-testid":"delete",type:"button",onClick:i,children:r("Delete")})]})},VN=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=Y(),r=()=>{n("openPopup",{type:"reportPopup",comment:t}),e()};return b.jsx("div",{className:"flex w-full flex-col gap-0.5",children:b.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700",type:"button",onClick:r,children:[b.jsx("span",{className:"hidden sm:inline",children:o("Report comment")}),b.jsx("span",{className:"sm:hidden",children:o("Report")})]})})},UN=({comment:t,close:e,toggleEdit:n})=>{var u;const{member:o,isAdmin:r}=Y(),i=o&&((u=t.member)==null?void 0:u.uuid)===(o==null?void 0:o.uuid),s=k.useRef(null),a=k.useRef(null);PN(a,{bottom:{default:"top-0",outOfViewport:"bottom-full mb-6"}}),k.useEffect(()=>{var f,p;const d=()=>{e()};window.addEventListener("click",d,{passive:!0});const m=(p=(f=s.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]),k.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 c=null;if(t.status==="published")i?c=b.jsx(HN,{close:e,comment:t,toggleEdit:n}):r?c=b.jsx(Kb,{close:e,comment:t}):c=b.jsx(VN,{close:e,comment:t});else if(r)c=b.jsx(Kb,{close:e,comment:t});else return null;return b.jsx("div",{ref:s,className:"relative","data-testid":"comment-context-menu",onClick:l,children:b.jsx("div",{ref:a,className:"absolute z-10 min-w-min whitespace-nowrap rounded bg-white p-1 font-sans text-sm shadow-lg outline-0 sm:min-w-[80px] dark:bg-neutral-800 dark:text-white","data-testid":"comment-context-menu-inner",children:c})})},_N=t=>k.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},k.createElement("path",{d:"M3 12C3.82843 12 4.5 11.3284 4.5 10.5C4.5 9.67157 3.82843 9 3 9C2.17157 9 1.5 9.67157 1.5 10.5C1.5 11.3284 2.17157 12 3 12Z"}),k.createElement("path",{d:"M8 12C8.82843 12 9.5 11.3284 9.5 10.5C9.5 9.67157 8.82843 9 8 9C7.17157 9 6.5 9.67157 6.5 10.5C6.5 11.3284 7.17157 12 8 12Z"}),k.createElement("path",{d:"M13 12C13.8284 12 14.5 11.3284 14.5 10.5C14.5 9.67157 13.8284 9 13 9C12.1716 9 11.5 9.67157 11.5 10.5C11.5 11.3284 12.1716 12 13 12Z"})),Fm=({comment:t,toggleEdit:e})=>{const[n,o]=k.useState(!1),r=()=>{o(s=>!s)},i=()=>{o(!1)};return b.jsxs("div",{"data-testid":"more-button",children:[b.jsx("button",{className:"outline-0",type:"button",onClick:r,children:b.jsx(_N,{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?b.jsx(UN,{close:i,comment:t,toggleEdit:e}):null]})},YN=({loadMore:t,count:e})=>{const{t:n}=Y(),o=e===1?n("Show 1 more reply"):n("Show {amount} more replies",{amount:ss(e)}),r=n("{amount} more",{amount:ss(e)});return b.jsx("div",{className:"flex w-full items-center justify-start","data-testid":"replies-pagination",children:b.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:b.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:["↓ ",b.jsx("span",{className:"ml-1 hidden sm:inline",children:o}),b.jsx("span",{className:"ml-1 inline sm:hidden",children:r})," "]})})})},JN=({comment:t})=>{const{dispatchAction:e}=Y(),n=t.count.replies-t.replies.length,o=()=>{e("loadMoreReplies",{comment:t})};return b.jsxs("div",{children:[t.replies.map(r=>b.jsx(Wb,{comment:r,parent:t},r.id)),n>0&&b.jsx(YN,{count:n,loadMore:o})]})},KN=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"black",width:16,height:16,viewBox:"0 0 16 16",...t},k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.3,d:"M1.333 7.206 6.539 2v3.254c3.645 0 8.461 1.432 8.461 7.81-1.757-2.994-3.58-3.905-8.46-3.905v3.254L1.332 7.206Z"})),WN=({disabled:t,isReplying:e,openReplyForm:n})=>{const{t:o,dispatchAction:r,isMember:i,hasRequiredTier:s}=Y(),a=i&&s,l=()=>{if(!a){r("openPopup",{type:"ctaPopup"});return}n()};return b.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:l,children:[b.jsx(KN,{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`}),o("Reply")]})},qN=({openForm:t,parent:e})=>{const{postId:n,dispatchAction:o,t:r}=Y(),[,i]=TN(ls),s=k.useMemo(()=>({placeholder:r("Reply to comment"),autofocus:!0}),[]),{editor:a}=zm(s),l=k.useCallback(async({html:d})=>{await o("addReply",{parent:e,reply:{post_id:n,in_reply_to_id:t.in_reply_to_id,status:"published",html:d}})},[e,n,t,o]),c=k.useCallback(()=>{o("closeCommentForm",t.id)},[o,t]),u=b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"hidden sm:inline",children:r("Add reply")}),b.jsx("span",{className:"sm:hidden",children:r("Reply")})]});return b.jsx("div",{ref:i,"data-testid":"reply-form",children:b.jsx("div",{className:"mt-[-16px] pr-2",children:b.jsx(Yb,{editor:a,isOpen:!0,openForm:t,reduced:as(),children:b.jsx(Bm,{close:c,editor:a,isOpen:!0,openForm:t,reduced:as(),submit:l,submitSize:"medium",submitText:u})})})})},Wb=({comment:t,parent:e})=>{const{commentsIsLoading:n}=Y();return b.jsx(yo,{className:`${n?"animate-pulse":""}`,"data-testid":"animated-comment",enter:"transition-opacity duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",id:t.id,leave:"transition-opacity duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!0,appear:!0,children:b.jsx(GN,{comment:t,parent:e})})},GN=({comment:t,parent:e})=>{const{dispatchAction:n,isAdmin:o}=Y(),{showDeletedMessage:r,showHiddenMessage:i,showCommentContent:s}=QN(t,o),a=k.useCallback(()=>{const l={id:t.id,type:"edit",hasUnsavedChanges:!1,in_reply_to_id:t.in_reply_to_id,in_reply_to_snippet:t.in_reply_to_snippet};n("openCommentForm",l)},[t.id,n]);return r||i?b.jsx(XN,{comment:t,openEditMode:a}):s&&!i?b.jsx(ZN,{comment:t,openEditMode:a,parent:e}):null},QN=(t,e)=>{const n=t.replies&&t.replies.length>0,o=t.status==="deleted",r=t.status==="hidden";return{showDeletedMessage:o&&n,showHiddenMessage:n&&r&&!e,showCommentContent:!o&&(e||t.status==="published")}},ZN=({comment:t,parent:e,openEditMode:n})=>{var y;const{dispatchAction:o,openCommentForms:r,isAdmin:i,commentIdToHighlight:s}=Y(),l=i&&t.status==="hidden"?"opacity-30":"",c=r.find(w=>w.id===t.id&&w.type==="edit"),u=!!c,d=r.find(w=>(w.id===t.id||w.parent_id===t.id)&&w.type==="reply"),m=d&&(!d.parent_id||d.parent_id===t.id),f=!!(d&&d.id===t.id),p=k.useCallback(async()=>{if(d&&d.id===t.id)o("closeCommentForm",d.id);else{const w={};e&&(w.in_reply_to_id=t.id,w.in_reply_to_snippet=$v(t));const $={id:t.id,parent_id:e==null?void 0:e.id,type:"reply",hasUnsavedChanges:!1,...w};await o("openCommentForm",$)}},[t,e,d,o]),g=m||t.replies&&t.replies.length>0,h=b.jsx(Gl,{member:t.member});return b.jsxs(Zb,{avatar:h,className:l,hasReplies:g,memberUuid:(y=t.member)==null?void 0:y.uuid,children:[b.jsx("div",{children:u?b.jsxs(b.Fragment,{children:[b.jsx(Qb,{className:l,comment:t}),b.jsx(zN,{comment:t,openForm:c,parent:e})]}):b.jsxs(b.Fragment,{children:[b.jsx(Qb,{className:l,comment:t}),b.jsx(rA,{className:l,html:t.html,isHighlighted:t.id===s}),b.jsx(iA,{comment:t,highlightReplyButton:f,openEditMode:n,openReplyForm:p,parent:e})]})}),b.jsx(qb,{comment:t}),m&&b.jsx(Gb,{comment:t,openForm:d})]})},XN=({comment:t,openEditMode:e})=>{const{isAdmin:n,openCommentForms:o,t:r}=Y(),i=n&&t.status!=="deleted"?b.jsx(Gl,{member:t.member}):b.jsx(jf,{}),s=t.replies&&t.replies.length>0,a=t.status==="hidden"?r("This comment has been hidden."):t.status==="deleted"?r("This comment has been removed."):"",l=o.find(d=>(d.id===t.id||d.parent_id===t.id)&&d.type==="reply"),c=l&&(!l.parent_id||l.parent_id===t.id),u=n&&t.status==="hidden";return b.jsxs(Zb,{avatar:i,hasReplies:s,children:[b.jsx("div",{className:"mt-[-3px] flex items-start",children:b.jsxs("div",{className:"flex h-10 flex-row items-center gap-4 pb-[8px] pr-4",children:[b.jsx("p",{className:"text-md mt-[4px] font-sans leading-normal text-neutral-900/40 sm:text-lg dark:text-white/60",children:a}),u&&b.jsx("div",{className:"mt-[4px]",children:b.jsx(Fm,{comment:t,toggleEdit:e})})]})}),b.jsx(qb,{comment:t}),c&&b.jsx(Gb,{comment:t,openForm:l})]})},eA=({comment:t})=>{var o;const{member:e}=Y(),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?b.jsxs("span",{className:"[overflow-wrap:anywhere]",children:[b.jsx("span",{className:"mx-[0.3em] hidden sm:inline-block",children:"·"}),n]}):null},tA=({comment:t})=>{const{t:e}=Y();return t.edited_at?b.jsxs("span",{children:[" (",e("edited"),")"]}):null},qb=({comment:t,className:e=""})=>t.replies&&t.replies.length>0?b.jsx("div",{className:`-ml-2 mb-4 mt-7 sm:mb-0 sm:mt-8 ${e}`,children:b.jsx(JN,{comment:t})}):null,Gb=({comment:t,openForm:e})=>b.jsx("div",{className:"my-8 sm:my-10",children:b.jsx(qN,{openForm:e,parent:t})}),nA=({comment:t})=>{const{t:e}=Y(),n=wv(t,e);return b.jsx("h4",{className:"font-sans text-base font-bold leading-snug text-neutral-900 sm:text-sm dark:text-white/85",children:n})},oA=({comment:t})=>{const{comments:e,t:n,pageUrl:o}=Y(),r=hv(e,t.in_reply_to_id);let i=t.in_reply_to_snippet;(!r||r.status!=="published")&&(i=`[${n("removed")}]`);const s=r&&r.status==="published",a="font-medium text-neutral-900/60 break-all transition-colors dark:text-white/70",l=`${a} hover:text-neutral-900/75 dark:hover:text-white/85`;return s?b.jsx("a",{className:l,"data-testid":"comment-in-reply-to",href:Rf(o,t.in_reply_to_id),target:"_parent",children:i}):b.jsx("span",{className:a,"data-testid":"comment-in-reply-to",children:i})},Qb=({comment:t,className:e=""})=>{var c;const{member:n,t:o,pageUrl:r}=Y(),i=jN(t.created_at),s=n&&t.member&&t.member.uuid===n.uuid?n.expertise:(c=t==null?void 0:t.member)==null?void 0:c.expertise,a=t.in_reply_to_id&&t.in_reply_to_snippet,l=b.jsxs("a",{className:"hover:underline",href:Rf(r,t.id),target:"_parent",title:yv(t.created_at),children:[b.jsx("span",{className:"mx-[0.3em]",children:"·"}),i]});return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:`mt-0.5 flex flex-wrap items-start sm:flex-row ${s?"flex-col":"flex-row"} ${a?"mb-0.5":"mb-2"} ${e}`,children:[b.jsx(nA,{comment:t}),b.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:b.jsxs("span",{children:[b.jsx(eA,{comment:t}),l,b.jsx(tA,{comment:t})]})})]}),a&&b.jsxs("div",{className:"mb-2 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60",children:[b.jsx("span",{children:o("Replied to")}),": ",b.jsx(oA,{comment:t})]})]})},rA=({html:t,className:e="",isHighlighted:n})=>{let o=t;if(n){const s=new DOMParser().parseFromString(t,"text/html");s.querySelectorAll("p").forEach(l=>{const c=s.createElement("mark");for(c.className="animate-[highlight_2.5s_ease-out] [animation-delay:1s] bg-yellow-300/40 -my-0.5 py-0.5 dark:text-white/85 dark:bg-yellow-500/40";l.firstChild;)c.appendChild(l.firstChild);l.appendChild(c)}),o=s.body.innerHTML}const r={__html:o};return b.jsx("div",{className:`mt mb-2 flex flex-row items-center gap-4 pr-4 ${e}`,children:b.jsx("div",{dangerouslySetInnerHTML:r,className:"gh-comment-content text-md -mx-1 text-pretty rounded-md px-1 font-sans leading-normal text-neutral-900 [overflow-wrap:anywhere] sm:text-lg dark:text-white/85","data-testid":"comment-content"})})},iA=({comment:t,openReplyForm:e,highlightReplyButton:n,openEditMode:o,className:r=""})=>{var y;const{member:i,t:s,isMember:a,isAdmin:l,isCommentingDisabled:c}=Y(),u=t.status==="published",d=i&&((y=t.member)==null?void 0:y.uuid)===(i==null?void 0:i.uuid),m=!c,f=!c,h=(l||a&&u)&&!(c&&d);return l&&t.status==="hidden"?b.jsxs("div",{className:`flex items-center gap-4 ${r}`,children:[b.jsx("span",{className:"font-sans text-base leading-snug text-red-600 sm:text-sm",children:s("Hidden for members")}),b.jsx(Fm,{comment:t,toggleEdit:o})]}):b.jsxs("div",{className:`flex items-center gap-4 ${r}`,children:[m?b.jsx(BN,{comment:t}):b.jsx(FN,{count:t.count.likes,liked:t.liked}),f&&b.jsx(WN,{isReplying:n,openReplyForm:e}),h&&b.jsx(Fm,{comment:t,toggleEdit:o})]})},sA=({hasReplies:t})=>t?b.jsx("div",{className:"mb-2 h-full w-px grow rounded bg-gradient-to-b from-neutral-900/15 from-70% to-transparent dark:from-white/20 dark:from-70%","data-testid":"replies-line"}):null,Zb=({children:t,avatar:e,hasReplies:n,className:o="",memberUuid:r=""})=>b.jsxs("div",{className:`flex w-full flex-row ${n===!0?"mb-0":"mb-7"}`,"data-member-uuid":r,"data-testid":"comment-component",children:[b.jsxs("div",{className:"mr-2 flex flex-col items-center justify-start sm:mr-3",children:[b.jsx("div",{className:`flex-0 mb-3 sm:mb-4 ${o}`,children:e}),b.jsx(sA,{hasReplies:n})]}),b.jsx("div",{className:"grow",children:t})]}),aA=()=>{const{accentColor:t,supportEmail:e,t:n}=Y(),o={color:t};return b.jsxs(b.Fragment,{children:[b.jsx("h1",{className:"mb-2 text-center font-sans text-2xl font-semibold tracking-tight text-neutral-900 dark:text-white/85",children:n("Commenting disabled")}),b.jsx("p",{className:"w-full text-balance text-center text-lg leading-normal text-neutral-900 sm:px-8 dark:text-white/85",children:e?b.jsxs(b.Fragment,{children:[n("You can't post comments in this publication.")," ",b.jsx("a",{className:"font-semibold hover:opacity-90",href:`mailto:${e}`,style:o,children:n("Contact support")})," ",n("for more information.")]}):n("You can't post comments in this publication.")})]})},lA=({showCount:t,count:e})=>{const{t:n}=Y();return t?e===1?b.jsx("div",{className:"text-md text-neutral-900/50 sm:text-lg dark:text-white/50","data-testid":"count",children:n("1 comment")}):b.jsx("div",{className:"text-md text-neutral-900/50 sm:text-lg dark:text-white/50","data-testid":"count",children:n("{amount} comments",{amount:ss(e)})}):null},cA=({title:t})=>{const{t:e}=Y();return t===null?b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"sm:hidden",children:e("Discussion")}),b.jsx("span",{className:"hidden sm:inline",children:e("Member discussion")})]}):b.jsx(b.Fragment,{children:t})},uA=({title:t,showCount:e,count:n})=>!t&&!e&&t!==null?null:b.jsxs("div",{className:"mb-7 flex w-full items-baseline justify-between font-sans",children:[b.jsx("h2",{className:"text-[2.2rem] font-bold tracking-tight text-neutral-900 sm:text-2xl dark:text-white","data-testid":"title",children:b.jsx(cA,{title:t})}),b.jsx(lA,{count:n,showCount:e})]}),dA=({commentsCount:t})=>{const{postId:e,dispatchAction:n,t:o}=Y(),r=k.useMemo(()=>({placeholder:o(t===0?"Start the conversation":"Join the discussion"),autofocus:!1}),[t]),{editor:i,hasContent:s}=zm(r),a=k.useCallback(async({html:d})=>{await n("addComment",{post_id:e,status:"published",html:d}),i==null||i.commands.clearContent()},[e,n,i]),l=k.useRef(null);k.useEffect(()=>{if(!i)return;const d=m=>{var g;if(!i||m.metaKey||m.ctrlKey)return;let f=document.activeElement;for(;f&&f.tagName==="IFRAME"&&f.contentDocument;)f=((g=f.contentDocument)==null?void 0:g.activeElement)??null;const p=f&&(f.tagName==="INPUT"||f.tagName==="TEXTAREA"||f.tagName==="IFRAME"||f.contentEditable==="true");if(m.key==="c"&&!(i!=null&&i.isFocused)&&!p){i==null||i.commands.focus(),l.current&&ls(l.current);return}};return window.addEventListener("keydown",d,{passive:!0}),()=>{window.removeEventListener("keydown",d,{passive:!0})}},[i]);const c={submitText:b.jsxs(b.Fragment,{children:[b.jsxs("span",{className:"hidden sm:inline",children:[o("Add comment")," "]}),b.jsx("span",{className:"sm:hidden",children:o("Comment")})]}),submitSize:"large",submit:a},u=(i==null?void 0:i.isFocused)||s;return b.jsx("div",{ref:l,className:"px-3 pb-2 pt-3","data-testid":"main-form",children:b.jsx(Yb,{editor:i,isOpen:u,reduced:!1,children:b.jsx(Bm,{editor:i,isOpen:u,reduced:!1,...c})})})},mA=()=>{const{pagination:t,dispatchAction:e,t:n}=Y(),o=()=>{e("loadMoreComments",{})};if(!t)return null;const r=t.total-t.page*t.limit;if(r<=0)return null;const i=n("Load more ({amount})",{amount:ss(r)});return b.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:o,children:b.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:i})})},hr="ghost-comments-root",fA=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},k.createElement("path",{d:"M23.25,7.311,12.53,18.03a.749.749,0,0,1-1.06,0L.75,7.311",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",fillRule:"evenodd"})),pA=()=>{var u;const{t}=Y(),e=pv(),[n,o]=k.useState(!1),[r,i]=k.useState("count__likes desc, created_at desc"),s=k.useRef(null),a=[{value:"count__likes desc, created_at desc",label:t("Best")},{value:"created_at desc",label:t("Newest")},{value:"created_at asc",label:t("Oldest")}],l=d=>{i(d),e(d),o(!1)};k.useEffect(()=>{var f,p;const d=()=>{o(!1)};window.addEventListener("click",d,{passive:!0});const m=(p=(f=s.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})}},[]);const c=d=>{d.stopPropagation()};return b.jsxs("div",{ref:s,className:"relative z-20","data-testid":"comments-sorting-form",onClick:c,children:[b.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:()=>o(!n),children:[(u=a.find(d=>d.value===r))==null?void 0:u.label,b.jsx("span",{className:"size-2 stroke-[3px]",children:b.jsx(fA,{})})]}),n&&b.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:b.jsx("div",{"aria-labelledby":"options-menu","aria-orientation":"vertical",className:"py-1","data-testid":"comments-sorting-form-dropdown",role:"menu",children:a.map(d=>b.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:()=>l(d.value),children:d.label},d.value))})})]})};function Xb(t){const e=t.defaultView;if(!(e!=null&&e.parent)||e.parent===e)return null;try{const n=e.parent.document.getElementsByTagName("iframe");for(const o of n)if(o.contentWindow===e)return o}catch{}return null}const hA=500;function ew(t,e){const n=t.clientHeight;let o=!1;const r=()=>{o||(o=!0,i.disconnect(),e())},i=new ResizeObserver(()=>{t.clientHeight!==n&&r()});i.observe(t);const s=setTimeout(r,hA);return()=>{clearTimeout(s),i.disconnect()}}const gA=()=>{const t=Ef(),{pagination:e,comments:n,commentCount:o,title:r,showCount:i,commentsIsLoading:s,t:a,dispatchAction:l,commentIdToScrollTo:c,showMissingCommentNotice:u,isMember:d,isPaidOnly:m,hasRequiredTier:f,isCommentingDisabled:p}=Y(),g=k.useRef(null),h=k.useCallback((C,A)=>{C.scrollIntoView({behavior:"smooth",block:"center"}),l("highlightComment",{commentId:A}),l("setScrollTarget",null)},[l]);k.useEffect(()=>{const C=document.getElementById(hr);C&&window.location.hash==="#ghost-comments"&&window.scrollY===0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{C.scrollIntoView()})})},[]),k.useEffect(()=>{const C=window.parent;if(!C)return;const A=()=>{const N=Of(C.location.hash);if(N&&g.current){const J=g.current.ownerDocument.getElementById(N);J&&h(J,N)}};return C.addEventListener("hashchange",A),()=>C.removeEventListener("hashchange",A)},[h]),k.useEffect(()=>{if(!c||s||!g.current)return;const C=g.current.ownerDocument,A=C.getElementById(c);if(!A)return;const N=Xb(C);if(N)return ew(N,()=>{h(A,c)});h(A,c)},[c,s,n,h]),k.useEffect(()=>{if(!u||s)return;const C=document.getElementById(hr);if(!C)return;const A=Xb(C.ownerDocument);if(A)return ew(A,()=>{ls(C)});ls(C)},[u,s]);const y=(e==null?void 0:e.total)===0,w=d&&f&&!p,$=w,v=!w&&p,x=!w&&!p,S=n.map(C=>b.jsx(Wb,{comment:C},C.id));return b.jsxs(b.Fragment,{children:[b.jsx(uA,{count:o,showCount:i,title:r}),u&&b.jsx("div",{className:"mb-6 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 font-sans text-sm text-amber-900 dark:border-amber-500/40 dark:bg-amber-500/15 dark:text-amber-100","data-testid":"missing-comment-notice",children:a("The linked comment is no longer available.")}),b.jsxs("div",{children:[$&&b.jsx(dA,{commentsCount:n.length}),v&&b.jsx("section",{className:"flex flex-col items-center py-6 sm:px-8 sm:py-10","data-testid":"commenting-disabled-box",children:b.jsx(aA,{})}),x&&b.jsx("section",{className:"flex flex-col items-center py-6 sm:px-8 sm:py-10","data-testid":"cta-box",children:b.jsx(Nf,{isFirst:y,isPaid:m})})]}),o>1&&b.jsx("div",{className:"z-20 mb-7 mt-3",children:b.jsxs("span",{className:"flex items-center gap-1.5 text-sm font-medium text-neutral-900 dark:text-neutral-100",children:[a("Sort by"),": ",b.jsx(pA,{})]})}),b.jsx("div",{ref:g,className:`z-10 transition-opacity duration-100 ${s?"opacity-50":""}`,"data-testid":"comment-elements",children:S}),b.jsx(mA,{}),t!=null&&t.testFlag?b.jsx("div",{"data-testid":"this-comes-from-a-flag",style:{display:"none"}}):null]})};function yA(){return b.jsx("div",{className:"flex h-32 w-full items-center justify-center","data-testid":"loading",children:b.jsx(qa,{className:"mb-6 size-12 fill-neutral-300/80 dark:fill-white/60"})})}const bA=({done:t})=>{const e=(c,u,d)=>{const m=[c,u,d].map(function(f){return f/=255,f<=.03928?f/12.92:Math.pow((f+.055)/1.055,2.4)});return m[0]*.2126+m[1]*.7152+m[2]*.0722},n=(c,u)=>{const d=e(c[0],c[1],c[2]),m=e(u[0],u[1],u[2]),f=Math.max(d,m),p=Math.min(d,m);return(f+.05)/(p+.05)},{accentColor:o,colorScheme:r}=Y(),i=k.useCallback(()=>{if(r==="light")return!1;if(r==="dark")return!0;{const c=document.getElementById(hr);if(!c||!c.parentElement)return!1;const u=getComputedStyle(c.parentElement).getPropertyValue("color"),d=u.substring(u.indexOf("(")+1,u.lastIndexOf(")")).split(/,\s*/),m=parseInt(d[0]),f=parseInt(d[1]),p=parseInt(d[2]);return n([255,255,255],[m,f,p])<5}},[r,n]),[s,a]=k.useState(i()?"dark":"");k.useEffect(()=>{a(i()?"dark":"")},[r,i]),k.useEffect(()=>{const c=document.getElementById(hr);if(c!=null&&c.parentElement){const u=new MutationObserver(()=>{a(i()?"dark":"")});return u.observe(c.parentElement,{attributes:!0,attributeFilter:["style","class"]}),()=>{u.disconnect()}}},[i]);const l={"--gh-accent-color":o??"black",paddingTop:0,paddingBottom:24};return b.jsx("section",{className:"ghost-display "+s,"data-loaded":t,"data-testid":"content-box",style:l,children:t?b.jsx(gA,{}):b.jsx(yA,{})})};class wA extends k.Component{constructor(n){super(n);$r(this,"node");$r(this,"iframeHtml");$r(this,"iframeHead");$r(this,"iframeRoot");$r(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 b.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...s,ref:this.setNode,frameBorder:"0",style:i,title:r,children:[this.iframeHead&&tm.createPortal(o,this.iframeHead),this.iframeRoot&&tm.createPortal(n,this.iframeRoot)]})}}const vA=k.forwardRef(function(e,n){return b.jsx(wA,{...e,innerRef:n})}),$A='*,: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}.container{width:100%}@media (min-width: 481px){.container{max-width:481px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1400px){.container{max-width:1400px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-left-4{left:-1.6rem}.bottom-1{bottom:.4rem}.bottom-full{bottom:100%}.left-0{left:0}.right-1{right:.4rem}.right-6{right:2.4rem}.top-0{top:0}.top-1{top:.4rem}.top-5{top:2rem}.z-10{z-index:10}.z-20{z-index:20}.-mx-1{margin-left:-.4rem;margin-right:-.4rem}.-mx-2{margin-left:-.8rem;margin-right:-.8rem}.-my-0\\.5{margin-top:-.2rem;margin-bottom:-.2rem}.mx-\\[0\\.3em\\]{margin-left:.3em;margin-right:.3em}.my-8{margin-top:3.2rem;margin-bottom:3.2rem}.-ml-2{margin-left:-.8rem}.mb-0{margin-bottom:0}.mb-0\\.5{margin-bottom:.2rem}.mb-1{margin-bottom:.4rem}.mb-1\\.5{margin-bottom:.6rem}.mb-10{margin-bottom:4rem}.mb-2{margin-bottom:.8rem}.mb-3{margin-bottom:1.2rem}.mb-4{margin-bottom:1.6rem}.mb-6{margin-bottom:2.4rem}.mb-7{margin-bottom:2.8rem}.mb-\\[12px\\]{margin-bottom:12px}.mb-\\[28px\\]{margin-bottom:28px}.mb-\\[8px\\]{margin-bottom:8px}.ml-1{margin-left:.4rem}.ml-2\\.5{margin-left:1rem}.ml-\\[48px\\]{margin-left:48px}.mr-1{margin-right:.4rem}.mr-2{margin-right:.8rem}.mr-\\[6px\\]{margin-right:6px}.mt-0\\.5{margin-top:.2rem}.mt-1\\.5{margin-top:.6rem}.mt-10{margin-top:4rem}.mt-3{margin-top:1.2rem}.mt-6{margin-top:2.4rem}.mt-7{margin-top:2.8rem}.mt-8{margin-top:3.2rem}.mt-\\[-10px\\]{margin-top:-10px}.mt-\\[-16px\\]{margin-top:-16px}.mt-\\[-1px\\]{margin-top:-1px}.mt-\\[-3px\\]{margin-top:-3px}.mt-\\[4px\\]{margin-top:4px}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.contents{display:contents}.hidden{display:none}.size-10{width:4rem;height:4rem}.size-12{width:4.8rem;height:4.8rem}.size-2{width:.8rem;height:.8rem}.size-5{width:2rem;height:2rem}.size-7{width:2.8rem;height:2.8rem}.size-\\[12px\\]{width:12px;height:12px}.size-\\[16px\\]{width:16px;height:16px}.size-\\[24px\\]{width:24px;height:24px}.h-10{height:4rem}.h-11{height:4.4rem}.h-32{height:12.8rem}.h-8{height:3.2rem}.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-36{width:14.4rem}.w-8{width:3.2rem}.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 highlight{to{background-color:transparent}}.animate-\\[highlight_2\\.5s_ease-out\\]{animation:highlight 2.5s ease-out}@keyframes heartbeat{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}.animate-heartbeat{animation:heartbeat .35s ease-in-out forwards}.animate-pulse{animation:pulse 1.5s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:.2rem}.gap-1\\.5{gap:.6rem}.gap-2{gap:.8rem}.gap-3{gap:1.2rem}.gap-4{gap:1.6rem}.gap-9{gap:3.6rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.6rem * var(--tw-space-x-reverse));margin-left:calc(1.6rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.text-pretty{text-wrap:pretty}.break-all{word-break:break-all}.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-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-black\\/10{border-color:#0000001a}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.bg-\\[var\\(--gh-accent-color\\)\\]{background-color:var(--gh-accent-color)}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-black\\/5{background-color:#0000000d}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-neutral-800{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/75{background-color:#ffffffbf}.bg-yellow-300\\/40{background-color:#fde04766}.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\\/15{--tw-gradient-from: rgb(23 23 23 / .15) 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)}.from-70\\%{--tw-gradient-from-position: 70%}.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-neutral-300\\/80{fill:#d4d4d4cc}.fill-white{fill:#fff}.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-1{padding-left:.4rem;padding-right:.4rem}.px-2{padding-left:.8rem;padding-right:.8rem}.px-2\\.5{padding-left:1rem;padding-right:1rem}.px-3{padding-left:1.2rem;padding-right:1.2rem}.px-4{padding-left:1.6rem;padding-right:1.6rem}.px-5{padding-left:2rem;padding-right:2rem}.px-8{padding-left:3.2rem;padding-right:3.2rem}.py-0\\.5{padding-top:.2rem;padding-bottom:.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-\\[68px\\]{padding-bottom:68px}.pb-\\[8px\\]{padding-bottom:8px}.pl-0{padding-left:0}.pl-\\[1px\\]{padding-left:1px}.pl-\\[40px\\]{padding-left:40px}.pr-0{padding-right:0}.pr-2{padding-right:.8rem}.pr-4{padding-right:1.6rem}.pr-\\[1px\\]{padding-right:1px}.pt-0{padding-top:0}.pt-10{padding-top:4rem}.pt-3{padding-top:1.2rem}.pt-6{padding-top:2.4rem}.pt-\\[48px\\]{padding-top:48px}.pt-\\[68px\\]{padding-top:68px}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:2.4rem}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-\\[2\\.2rem\\]{font-size:2.2rem}.text-base{font-size:1.3rem}.text-lg{font-size:1.65rem}.text-md{font-size:1.5rem}.text-sm{font-size:1.4rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-snug{line-height:1.375}.tracking-tight{letter-spacing:-.018em}.text-\\[rgba\\(0\\,0\\,0\\,0\\.4\\)\\]{color:#0006}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.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, 1))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-neutral-900\\/25{color:#17171740}.text-neutral-900\\/40{color:#17171766}.text-neutral-900\\/50{color:#17171780}.text-neutral-900\\/60{color:#17171799}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.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,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-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-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[border-color\\]{transition-property:border-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[padding\\]{transition-property:padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,fill,stroke,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,-webkit-text-decoration-color;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)}.\\[animation-delay\\:1s\\]{animation-delay:1s}.\\[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 var(--gh-accent-color);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\\/10:hover{background-color:#0000001a}.hover\\:bg-neutral-100:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.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, 1))}.hover\\:text-neutral-900\\/70:hover{color:#171717b3}.hover\\:text-neutral-900\\/75:hover{color:#171717bf}.hover\\:underline:hover{-webkit-text-decoration-line:underline;text-decoration-line:underline}.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, 1))}.focus\\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.focus\\:outline-0:focus{outline-width:0px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.disabled\\:bg-black\\/5:disabled{background-color:#0000000d}.disabled\\:text-neutral-900\\/30:disabled{color:#1717174d}.group:hover .group-hover\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:stroke-black\\/75{stroke:#000000bf}.group:hover .group-hover\\:opacity-100{opacity:1}.dark\\:border-amber-500\\/40:is(.dark *){border-color:#f59e0b66}.dark\\:bg-amber-500\\/15:is(.dark *){background-color:#f59e0b26}.dark\\:bg-neutral-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.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-yellow-500\\/40:is(.dark *){background-color:#eab30866}.dark\\:from-white\\/20:is(.dark *){--tw-gradient-from: rgb(255 255 255 / .2) 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\\:from-70\\%:is(.dark *){--tw-gradient-from-position: 70%}.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-amber-100:is(.dark *){--tw-text-opacity: 1;color:rgb(254 243 199 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-100:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-300:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-400:is(.dark *){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.dark\\:text-red-500:is(.dark *){--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\\:text-white\\/30:is(.dark *){color:#ffffff4d}.dark\\:text-white\\/50:is(.dark *){color:#ffffff80}.dark\\:text-white\\/60:is(.dark *){color:#fff9}.dark\\:text-white\\/70:is(.dark *){color:#ffffffb3}.dark\\:text-white\\/85:is(.dark *){color:#ffffffd9}.dark\\:text-white\\/90:is(.dark *){color:#ffffffe6}.dark\\:hover\\:bg-neutral-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.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, 1))}.dark\\:hover\\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\\:hover\\:text-white\\/50:hover:is(.dark *){color:#ffffff80}.dark\\:hover\\:text-white\\/75:hover:is(.dark *){color:#ffffffbf}.dark\\:hover\\:text-white\\/85:hover:is(.dark *){color:#ffffffd9}.dark\\:disabled\\:bg-white\\/15:disabled:is(.dark *){background-color:#ffffff26}.dark\\:disabled\\:text-white\\/35:disabled:is(.dark *){color:#ffffff59}.group:hover .dark\\:group-hover\\:stroke-white\\/75:is(.dark *){stroke:#ffffffbf}@media (min-width: 481px){.sm\\:bottom-2{bottom:.8rem}.sm\\:right-2{right:.8rem}.sm\\:right-8{right:3.2rem}.sm\\:top-9{top:3.6rem}.sm\\:my-10{margin-top:4rem;margin-bottom:4rem}.sm\\:mb-0{margin-bottom:0}.sm\\:mb-12{margin-bottom:4.8rem}.sm\\:mb-4{margin-bottom:1.6rem}.sm\\:mr-3{margin-right:1.2rem}.sm\\:mt-8{margin-top:3.2rem}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:inline{display:inline}.sm\\:hidden{display:none}.sm\\:h-12{height:4.8rem}.sm\\:h-auto{height:auto}.sm\\:w-\\[500px\\]{width:500px}.sm\\:w-\\[720px\\]{width:720px}.sm\\:w-auto{width:auto}.sm\\:w-fit{width:-webkit-fit-content;width:fit-content}.sm\\:min-w-\\[100px\\]{min-width:100px}.sm\\:min-w-\\[64px\\]{min-width:64px}.sm\\:min-w-\\[80px\\]{min-width:80px}.sm\\:flex-row{flex-direction:row}.sm\\:justify-normal{justify-content:normal}.sm\\:rounded-xl{border-radius:1.2rem}.sm\\:p-0{padding:0}.sm\\:p-8{padding:3.2rem}.sm\\:px-3{padding-left:1.2rem;padding-right:1.2rem}.sm\\:px-8{padding-left:3.2rem;padding-right:3.2rem}.sm\\:py-10{padding-top:4rem;padding-bottom:4rem}.sm\\:pl-0{padding-left:0}.sm\\:pl-\\[44px\\]{padding-left:44px}.sm\\:pr-10{padding-right:4rem}.sm\\:pr-4{padding-right:1.6rem}.sm\\:pt-0{padding-top:0}.sm\\:pt-\\[40px\\]{padding-top:40px}.sm\\:pt-\\[4vmin\\]{padding-top:4vmin}.sm\\:pt-\\[56px\\]{padding-top:56px}.sm\\:text-left{text-align:left}.sm\\:text-2xl{font-size:2.4rem}.sm\\:text-lg{font-size:1.65rem}.sm\\:text-sm{font-size:1.4rem}}',tw=G.forwardRef(function({children:e,onResize:n,style:o,title:r},i){const s=b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:$A}}),b.jsx("meta",{content:"width=device-width, initial-scale=1.0, maximum-scale=1.0",name:"viewport"})]});return b.jsx(vA,{ref:i,head:s,style:o,title:r,onResize:n,children:e})}),SA=G.forwardRef(function({children:e,style:n,title:o},r){const[i,s]=k.useState(n),a=k.useCallback(l=>{s(c=>({...c,height:`${l.scrollHeight}px`}))},[]);return b.jsx(tw,{ref:r,style:i,title:o,onResize:a,children:e})}),kA=G.forwardRef(function({children:e},n){const o={width:"100%",height:"400px"};return b.jsx(SA,{ref:n,style:o,title:"comments-frame",children:e})}),xA=({children:t,title:e})=>{const n={zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"};return b.jsx(tw,{style:n,title:e,children:t})},CA=({show:t,children:e,title:n,callback:o})=>{const{dispatchAction:r}=Y(),i=()=>{r("closePopup",{}),o&&o(!1)};return k.useEffect(()=>{const s=a=>{a.key==="Escape"&&i()};return window.addEventListener("keydown",s,{passive:!0}),()=>{window.removeEventListener("keydown",s,{passive:!0})}}),b.jsx(yo,{appear:!0,show:t,children:b.jsx(xA,{title:n,children:b.jsx("div",{children:b.jsx(yo.Child,{enter:"transition duration-200 linear",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition duration-200 linear",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:b.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:b.jsx(yo.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})})})})})})},EA=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gh-portal-closeicon",alt:"Close",...t},k.createElement("defs",null,k.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px !important;}")),k.createElement("path",{className:"a",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),jl=({close:t})=>b.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:b.jsx(EA,{className:"size-5 p-1 pr-0"})}),NA=t=>{const e=k.useRef(null),n=k.useRef(null),{dispatchAction:o,member:r,accentColor:i,t:s}=Y(),[a,l]=k.useState(r.name??""),[c,u]=k.useState(r.expertise??""),d=50;let m=d;r.expertise&&(m-=r.expertise.length);const[f,p]=k.useState(m),[g,h]=k.useState({name:"",expertise:""}),y=S=>{S.stopPropagation()},w=S=>{o("closePopup",{}),t.callback(S)},$=async()=>{var S;a.trim()!==""?(await o("updateMember",{name:a,expertise:c}),w(!0)):(h({name:s("Enter your name"),expertise:""}),l(""),(S=e.current)==null||S.focus())};k.useEffect(()=>{if(!as()){const S=setTimeout(()=>{var C,A;t.expertiseAutofocus?(C=n.current)==null||C.focus():(A=e.current)==null||A.focus()},200);return()=>{clearTimeout(S)}}},[e,n,t.expertiseAutofocus]);const v=()=>{const S=N=>b.jsx(yo,{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:b.jsxs("div",{className:"flex flex-row items-center justify-start gap-3 pr-4",children:[b.jsx("div",{className:"size-10 rounded-full border-2 border-white bg-cover bg-no-repeat",style:{backgroundImage:`url(${N.avatar})`}}),b.jsxs("div",{className:"flex flex-col items-start justify-center",children:[b.jsx("div",{className:"font-sans text-base font-semibold tracking-tight text-white",children:N.name}),b.jsx("div",{className:"font-sans text-sm tracking-tight text-neutral-400",children:N.expertise})]})]})},N.name),C=[],A=[{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 N=0;N<A.length;N++)C.push(S(A[N]));return C},x=Cf(s("{amount} characters left"),"{amount}",()=>b.jsx("b",{children:f}));return b.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:y,children:b.jsxs("div",{className:"flex",children:[b.jsx("div",{className:"hidden w-[50%] flex-col items-center justify-center bg-neutral-800 sm:block sm:p-8",children:b.jsx("div",{className:"mt-[-1px] flex flex-col gap-9 text-left",children:v()})}),b.jsxs("div",{className:"p-0 sm:p-8",children:[b.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"),b.jsx("span",{className:"hidden sm:inline",children:"."})]}),b.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.")}),b.jsxs("section",{className:"mt-8 text-left",children:[b.jsxs("div",{className:"mb-2 flex flex-row justify-between",children:[b.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Name")}),b.jsx(yo,{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:!!g.name,children:b.jsx("div",{className:"font-sans text-sm text-red-500",children:g.name})})]}),b.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 ${g.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:S=>{l(S.currentTarget.value)},onKeyDown:S=>{S.key==="Enter"&&(l(S.currentTarget.value),$().catch(console.error))}}),b.jsxs("div",{className:"mb-2 mt-6 flex flex-row justify-between",children:[b.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Expertise")}),b.jsx("div",{className:`font-sans text-base text-neutral-400 ${f===0&&"text-red-500"}`,children:x})]}),b.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:c,onChange:S=>{const C=S.currentTarget.value;p(d-C.length),u(C)},onKeyDown:S=>{S.key==="Enter"&&(u(S.currentTarget.value),$().catch(console.error))}}),b.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:()=>{$().catch(console.error)},children:s("Save")})]})]}),b.jsx(jl,{close:()=>w(!1)})]})})},AA=()=>{const{dispatchAction:t,isMember:e,isPaidOnly:n}=Y(),o=s=>{s.stopPropagation()},r=()=>{t("closePopup",{})},i=!e;return b.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:b.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[b.jsx("div",{className:"flex flex-col items-center pb-3 pt-6","data-testid":"cta-box",children:b.jsx(Nf,{isFirst:i,isPaid:n})}),b.jsx(jl,{close:r})]})})},nw=t=>k.createElement("svg",{width:"26px",height:"26px",viewBox:"-1 -1 26 26",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...t},k.createElement("g",{id:"check-circle",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},k.createElement("path",{className:"animated-check-circle",d:"M19.6004116,2.71490714 C17.5353801,1.0196018 14.8927356,0 12,0 C5.38938053,0 0,5.38938053 0,12 C0,18.6106195 5.38938053,24 12,24 C18.6106195,24 24,18.6106195 24,12 C24,9.71681416 23.3628319,7.59292035 22.2743363,5.78761062 L11.0442478,17.0442478 L5.49557522,11.4955752",id:"Shape",stroke:"#FFFFFF",strokeWidth:2}))),DA={addDetailsPopup:NA,reportPopup:({comment:t})=>{const{dispatchAction:e,t:n}=Y(),[o,r]=k.useState("default");let i="bg-red-600";o==="sent"&&(i="bg-green-600");let s=n("Report");const a=s;o==="sending"?s=n("Sending"):o==="sent"&&(s=n("Sent"));const l=b.jsx(qa,{className:"mr-2 size-[24px] fill-white"}),c=b.jsx(nw,{className:"mr-2 size-[16px]"});let u=null;o==="sending"?u=l:o==="sent"&&(u=c);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 b.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:b.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[b.jsx("h1",{className:"mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black",children:b.jsx("span",{children:n("Report this comment?")})}),b.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.")}),b.jsxs("div",{className:"mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row",children:[b.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:[b.jsxs("span",{className:"invisible whitespace-nowrap",children:[a,b.jsx("br",{}),b.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[l,n("Sending")]}),b.jsx("br",{}),b.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[c,n("Sent")]})]}),b.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[u,s]})]}),b.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")})]}),b.jsx(jl,{close:m})]})})},ctaPopup:AA,deletePopup:({comment:t})=>{const{dispatchAction:e,t:n}=Y(),[o,r]=k.useState("default"),[i,s]=k.useState(!1);let a="bg-red-600";o==="sent"&&(a="bg-green-600");let l=n("Delete");const c=l;o==="sending"?l=n("Deleting"):o==="sent"&&(l=n("Deleted"));const u=b.jsx(qa,{className:"mr-2 size-[24px] fill-white"}),d=b.jsx(nw,{className:"mr-2 size-[16px]"});let m=null;o==="sending"?m=u:o==="sent"&&(m=d);const f=h=>{h.stopPropagation()},p=()=>{e("closePopup",{})},g=h=>{h.stopPropagation(),!i&&(s(!0),r("sending"),setTimeout(()=>{r("sent"),e("deleteComment",t),setTimeout(()=>{p()},750)},1e3))};return b.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","data-testid":"delete-popup",onMouseDown:f,children:b.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[b.jsx("h1",{className:"mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black",children:b.jsx("span",{children:n("Are you sure?")})}),b.jsx("p",{className:"text-md px-4 font-sans leading-9 text-black sm:pl-0 sm:pr-4",children:n("Once deleted, this comment can’t be recovered.")}),b.jsxs("div",{className:"mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row",children:[b.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 ${a} opacity-100 hover:opacity-90`,"data-testid":"delete-popup-confirm",disabled:i,type:"button",onClick:g,children:[b.jsxs("span",{className:"invisible whitespace-nowrap",children:[c,b.jsx("br",{}),b.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[u,n("Deleting")]}),b.jsx("br",{}),b.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[d,n("Deleted")]})]}),b.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[m,l]})]}),b.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:p,children:n("Cancel")})]}),b.jsx(jl,{close:p})]})})}},RA=()=>{const{popup:t}=Y(),[e,n]=k.useState(t);if(k.useEffect(()=>{if(t!==null&&n(t),t===null){const a=setTimeout(()=>{n(null)},250);return()=>{clearTimeout(a)}}},[t,n]),!e||!e.type)return null;const{type:o,...r}=t??e,i=DA[o];if(!i)return console.warn("Unknown popup of type ",o),null;const s=t===e;return b.jsx(b.Fragment,{children:b.jsx(CA,{callback:r.callback,show:s,title:o,children:b.jsx(i,{...r})})})};var gr={exports:{}};const OA={"{amount} characters left":"{amount} karakters oor","{amount} comments":"{amount} kommentaar","{amount} hrs ago":"{amount} ure gelede","{amount} mins ago":"{amount} minute gelede","{amount} more":"{amount} meer","1 comment":"1 kommentaar","Add comment":"Voeg kommentaar by","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Voeg konteks by jou kommentaar, deel jou naam en kundigheid om 'n gesonde bespreking te bevorder.","Add reply":"Voeg antwoord by","Add your expertise":"","Already a member?":"Reeds 'n lid?",Anonymous:"Anoniem","Are you sure?":"","Become a member of {publication} to start commenting.":"Word 'n lid van {publication} om kommentaar te lewer.","Become a paid member of {publication} to start commenting.":"Word 'n betaalde lid van {publication} om kommentaar te lewer.",Best:"",Cancel:"Kanselleer",Comment:"Kommentaar","Commenting disabled":"","Complete your profile":"Voltooi jou profiel","Contact support":"",Delete:"Skrap",Deleted:"","Deleted member":"Geskrapte lid",Deleting:"",Discussion:"Bespreking",Edit:"Redigeer","Edit this comment":"Redigeer hierdie kommentaar",edited:"geredigeer","Enter your name":"Voer jou naam in",Expertise:"Kundigheid","for more information.":"","Founder @ Acme Inc":"Stigter @ Acme Inc","Full-time parent":"Voltydse ouer","Head of Marketing at Acme, Inc":"Hoof van Bemarking by Acme, Inc","Hidden for members":"",Hide:"Versteek","Hide comment":"Versteek kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Sluit aan by die bespreking","Just now":"Sopas","Load more ({amount})":"","Local resident":"Plaaslike inwoner","Member discussion":"Lidmaat bespreking",Name:"Naam",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Een uur gelede","One min ago":"Een minuut gelede",removed:"","Replied to":"",Reply:"Antwoord","Reply to":"","Reply to comment":"Antwoord op kommentaar",Report:"Rapporteer","Report comment":"Rapporteer kommentaar","Report this comment?":"Rapporteer hierdie kommentaar?",Save:"Stoor",Sending:"Besig om te stuur",Sent:"Gestuur",Show:"Wys","Show {amount} more replies":"Wys {amount} meer antwoorde","Show 1 more reply":"Wys nog 1 antwoord","Show comment":"Wys kommentaar","Sign in":"Teken in","Sign up now":"Sluit nou aan","Sort by":"","Start the conversation":"Begin die gesprek","The linked comment is no longer available.":"","This comment has been hidden.":"Hierdie kommentaar is weggesteek.","This comment has been removed.":"Hierdie kommentaar is verwyder.","Upgrade now":"Gradeer nou op","View in admin":"",Yesterday:"Gister","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Jou versoek sal aan die eienaar van hierdie webwerf gestuur word."},TA={"{amount} characters left":"الحروف المتبقية : {amount}","{amount} comments":"{amount} تعليق/ات","{amount} hrs ago":"منذ {amount} ساعات","{amount} mins ago":"منذ {amount} دقيقة","{amount} more":"{amount} المزيد","1 comment":"تعليق واحد","Add comment":"اضف تعليق","Add context to your comment, share your name and expertise to foster a healthy discussion.":"قم بإضافة سياق لتعليقك، شارك اسمك و مجال خبرتك لكي نرعى محادثة مثمرة","Add reply":"ردّ","Add your expertise":"","Already a member?":"هل انت مسجل بالفعل؟",Anonymous:"مجهول","Are you sure?":"","Become a member of {publication} to start commenting.":"يجب أن تصبح عضوًا فى {publication} لتستطيع التعليق","Become a paid member of {publication} to start commenting.":"يجب ان تكون عضويتك مدفوعة فى {publication} لكي تستطيع التعليق",Best:"",Cancel:"إلغاء",Comment:"تعليق","Commenting disabled":"","Complete your profile":"إكمال ملفك الشخصى","Contact support":"",Delete:"حذف",Deleted:"","Deleted member":"الاعضاء المحذوفين",Deleting:"",Discussion:"النقاش",Edit:"تعديل","Edit this comment":"عدّل هذا التعليق",edited:"تم التعديل","Enter your name":"اكتب اسمك",Expertise:"مجال تخصصك","for more information.":"","Founder @ Acme Inc":"مؤسس لدى شركة أكمي","Full-time parent":"أب بدوام كامل","Head of Marketing at Acme, Inc":"رئيس وحدة التسويق لدى شركة أكمى","Hidden for members":"",Hide:"اخفاء","Hide comment":"اخف التعليق","Jamie Larson":"فلان الفلانى","Join the discussion":"انضم للمحادثة","Just now":"الآن","Load more ({amount})":"","Local resident":"مقيم محلى","Member discussion":"مناقشة الاعضاء",Name:"الاسم",Neurosurgeon:"جراح المخ و الاعصاب",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"منذ ساعة واحدة","One min ago":" منذ دقيقة واحدة",removed:"","Replied to":"",Reply:"رد","Reply to":"","Reply to comment":"رد على هذا التعليق",Report:"الإبلاغ","Report comment":"ابلغ عن هذا التعليق","Report this comment?":"الإبلاغ عن التعليق؟",Save:"حفظ",Sending:"جارى الارسال",Sent:"تم الارسال",Show:"اظهر","Show {amount} more replies":"اظهر {amount} ردود","Show 1 more reply":"اظهر تعليق وحيد","Show comment":"اظهر التعليق","Sign in":"تسجيل الدخول","Sign up now":"قم بالتسجيل الآن","Sort by":"ترتيب بحسب","Start the conversation":"ابدأ النقاش","The linked comment is no longer available.":"","This comment has been hidden.":"تم اخفاء هذا التعليق","This comment has been removed.":"تم حذف هذا التعليق","Upgrade now":"قم بالترقية الآن","View in admin":"",Yesterday:"أمس","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"سيتم ارسال طلبك لصاحب الموقع"},MA={"{amount} characters left":"Остават {amount} знака","{amount} comments":"{amount} коментара","{amount} hrs ago":"Преди {amount} часа","{amount} mins ago":"Преди {amount} минути","{amount} more":"Още {amount}","1 comment":"1 коментар","Add comment":"Нов коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Добавете контекст към коментара си, споделете името си и опита си, за да насърчите полезна дискусия.","Add reply":"Отговор","Add your expertise":"Добавете компетенции","Already a member?":"Вече сте абонат?",Anonymous:"Анонимен","Are you sure?":"Убедени ли сте?","Become a member of {publication} to start commenting.":"Абонирайте се за {publication}, за да коментирате.","Become a paid member of {publication} to start commenting.":"Станете плащащ абонат на {publication}, за да коментирате.",Best:"Най-добрите",Cancel:"Отказ",Comment:"Коментар","Commenting disabled":"Коментирането е изключено","Complete your profile":"Попълнете профила си","Contact support":"Връзка с поддръжката",Delete:"Изтриване",Deleted:"Изтрито","Deleted member":"Изтрит абонат",Deleting:"Изтриване",Discussion:"Дискусия",Edit:"Редактиране","Edit this comment":"Редактиране на коментара",edited:"редактиран","Enter your name":"Попълнете името си",Expertise:"Компетенции","for more information.":"за повече информация.","Founder @ Acme Inc":"Основател на Компания ООД","Full-time parent":"Родител на пълно работно време","Head of Marketing at Acme, Inc":"Директор маркетинг в Компания ООД","Hidden for members":"Скрит за абонати",Hide:"Скриване","Hide comment":"Скриване на коментара","Jamie Larson":"Иван Иванов","Join the discussion":"Участвайте в дискусията","Just now":"Току-що","Load more ({amount})":"Още ({amount})","Local resident":"Местен жител","Member discussion":"Дискусия за абонатите",Name:"Име",Neurosurgeon:"Неврохирург",Newest:"Най-нови",Oldest:"Най-стари","Once deleted, this comment can’t be recovered.":"Веднъж изтрит, коментарът не може да бъде възстановен.","One hour ago":"Преди час","One min ago":"Преди минута",removed:"премахнат","Replied to":"Отговорено на",Reply:"Отговор","Reply to":"Отговор на","Reply to comment":"Отговор на коментара",Report:"Докладване","Report comment":"Докладване на коментара","Report this comment?":"Ще докладвате ли коментара?",Save:"Запис",Sending:"Изпращане",Sent:"Изпратен",Show:"Показване","Show {amount} more replies":"Покажи още {amount} отговора","Show 1 more reply":"Покажи още един отговор","Show comment":"Покажи коментар","Sign in":"Вход","Sign up now":"Регистрация","Sort by":"Сортиране по","Start the conversation":"Започнете дискусия","The linked comment is no longer available.":"Посоченият коментар вече не е наличен.","This comment has been hidden.":"Този коментар е скрит.","This comment has been removed.":"Този коментар е премахнат.","Upgrade now":"Надградете сега","View in admin":"Преглед в админ панела",Yesterday:"Вчера","You can't post comments in this publication.":"Не може да коментирате под тази публикация.","Your request will be sent to the owner of this site.":"Искането ще бъде изпратено до собственика на сайта."},jA={"{amount} characters left":"{amount} অক্ষর বাকি","{amount} comments":"{amount} মন্তব্য","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"{amount}টি আরও","1 comment":"১টি মন্তব্য","Add comment":"মন্তব্য যোগ করুন","Add context to your comment, share your name and expertise to foster a healthy discussion.":"আপনার মন্তব্যে প্রসঙ্গ যোগ করুন, একটি সুস্থ আলোচনা করতে আপনার নাম ও অভিজ্ঞতা শেয়ার করুন।","Add reply":"উত্তর যোগ করুন","Add your expertise":"","Already a member?":"ইত:পূর্বে সদস্য?",Anonymous:"অজ্ঞাতনামা","Are you sure?":"","Become a member of {publication} to start commenting.":"{publication} এর সদস্য হন মন্তব্য করার জন্য।","Become a paid member of {publication} to start commenting.":"{publication} এর পেইড সদস্য হন মন্তব্য করার জন্য।",Best:"",Cancel:"বাতিল করুন",Comment:"মন্তব্য","Commenting disabled":"","Complete your profile":"আপনার প্রোফাইল সম্পূর্ণ করুন","Contact support":"",Delete:"মুছে ফেলুন",Deleted:"","Deleted member":"মুছে ফেলা সদস্য",Deleting:"",Discussion:"আলোচনা",Edit:"সম্পাদনা","Edit this comment":"এই মন্তব্য সম্পাদনা করুন",edited:"","Enter your name":"আপনার নাম লিখুন",Expertise:"বিশেষজ্ঞতা","for more information.":"","Founder @ Acme Inc":"প্রতিষ্ঠাতা @ বাংলাদেশ ট্রেড হাব","Full-time parent":"পূর্ণকালীন অভিভাবক","Head of Marketing at Acme, Inc":"মার্কেটিং প্রধান @ বাংলাদেশ ট্রেড হাব","Hidden for members":"",Hide:"লুকান","Hide comment":"মন্তব্য লুকান","Jamie Larson":"শাহ নেওয়াজ","Join the discussion":"আলোচনায় যোগ দিন","Just now":"এখনই","Load more ({amount})":"","Local resident":"স্থানীয় বাসিন্দা","Member discussion":"সদস্য আলোচনা",Name:"নাম",Neurosurgeon:"নিউরোসার্জন",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"এক ঘণ্টা পূর্বে","One min ago":"",removed:"","Replied to":"",Reply:"উত্তর","Reply to":"","Reply to comment":"মন্তব্যের উত্তর দিন",Report:"প্রতিবেদন","Report comment":"মন্তব্য প্রতিবেদন করুন","Report this comment?":"এই মন্তব্য প্রতিবেদন করবেন?",Save:"সংরক্ষণ করুন",Sending:"পাঠানো হচ্ছে",Sent:"পাঠানো হয়েছে",Show:"দেখান","Show {amount} more replies":" আরো {amount}টি উত্তর দেখান","Show 1 more reply":"১টি আরো উত্তর দেখান","Show comment":"মন্তব্য দেখান","Sign in":"সাইন ইন করুন","Sign up now":"এখনই সাইন আপ করুন","Sort by":"","Start the conversation":"আলোচনা শুরু করুন","The linked comment is no longer available.":"","This comment has been hidden.":"এই মন্তব্য লুকানো হয়েছে।","This comment has been removed.":"এই মন্তব্য মুছে ফেলা হয়েছে।","Upgrade now":"এখনই আপগ্রেড করুন","View in admin":"",Yesterday:"গতকাল","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"আপনার অনুরোধ সাইটের মালিকের কাছে পাঠানো হবে।"},PA={"{amount} characters left":"Preostalo {amount} karaktera","{amount} comments":"{amount} komentara","{amount} hrs ago":"Prije {amount} sati","{amount} mins ago":"Prije {amount} minuta","{amount} more":"Još {amount}","1 comment":"1 komentar","Add comment":"Dodaj komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodaj kontekst svom komentaru, podijeli svoje ime i stručnost u svrhu kvalitetnije diskusije.","Add reply":"Objavi komentar","Add your expertise":"","Already a member?":"Već si član?",Anonymous:"Anoniman","Are you sure?":"","Become a member of {publication} to start commenting.":"Postani član portala {publication} za pristup diskusiji.","Become a paid member of {publication} to start commenting.":"Postani plaćeni član portala {publication} za pristup diskusiji.",Best:"",Cancel:"Otkaži",Comment:"Komentar","Commenting disabled":"","Complete your profile":"Dovrši svoj profil","Contact support":"",Delete:"Obriši",Deleted:"","Deleted member":"Obrisan član",Deleting:"",Discussion:"Diskusija",Edit:"Uredi","Edit this comment":"Uredi komentar",edited:"uređeno","Enter your name":"Unesi ime",Expertise:"Stručnost","for more information.":"","Founder @ Acme Inc":"Acme Inc osnivač","Full-time parent":"Full time roditelj","Head of Marketing at Acme, Inc":"Šef marketinga u kompaniji Acme d.o.o","Hidden for members":"",Hide:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Vanja Larsić","Join the discussion":"Pridruži se diskusiji","Just now":"Upravo sada","Load more ({amount})":"","Local resident":"Lokalni stanovnik","Member discussion":"Diskusija članova",Name:"Ime",Neurosurgeon:"Neurohirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prije jedan sat","One min ago":"Prije jedan minut",removed:"","Replied to":"",Reply:"Odgovori","Reply to":"","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Prijavi ovaj komentar?",Save:"Sačuvaj",Sending:"Šaljem",Sent:"Poslano",Show:"Prikaži","Show {amount} more replies":"Prikaži još {amount} odgovora","Show 1 more reply":"Prikaži još jedan odgovor","Show comment":"Prikaži komentar","Sign in":"Prijavi se","Sign up now":"Postani član","Sort by":"","Start the conversation":"Započni diskusiju","The linked comment is no longer available.":"","This comment has been hidden.":"Ovaj komentar je sakriven.","This comment has been removed.":"Ovaj komentar je uklonjen.","Upgrade now":"Nadogradi račun sada","View in admin":"",Yesterday:"Jučer","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Tvoj zahtjev je poslan vlasniku stranice."},LA={"{amount} characters left":"{amount} caràcters restants","{amount} comments":"{amount} comentaris","{amount} hrs ago":"Fa {amount} hores","{amount} mins ago":"Fa {amount} minuts","{amount} more":"{amount} més","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","Add your expertise":"","Already a member?":"Ja n'ets membre?",Anonymous:"Anònim","Are you sure?":"N'estàs segur?","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",Best:"",Cancel:"Cancel·la",Comment:"Comentari","Commenting disabled":"","Complete your profile":"Completa el teu perfil","Contact support":"",Delete:"Esborra",Deleted:"Esborrat","Deleted member":"Membre esborrat",Deleting:"Esborrant",Discussion:"Debat",Edit:"Edita","Edit this comment":"Edita aquest comentari",edited:"editat","Enter your name":"Escriu el teu nom",Expertise:"Expertesa","for more information.":"","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Pare a temps complet","Head of Marketing at Acme, Inc":"Cap de màrqueting a Acme, Inc","Hidden for members":"Ocult pels membres",Hide:"Oculta","Hide comment":"Oculta el comentari","Jamie Larson":"Jamie Larson","Join the discussion":"Uneix-te al debat","Just now":"Just ara","Load more ({amount})":"","Local resident":"Resident local","Member discussion":"Debat de membres",Name:"Nom",Neurosurgeon:"Neurocirurgià",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Un cop esborrat, aquest comentari no es pot recuperar","One hour ago":"Fa una hora","One min ago":"Fa un minut",removed:"Esborrat","Replied to":"Respost a",Reply:"Respon","Reply to":"Respon a","Reply to comment":"Respon al comentari",Report:"Reporta","Report comment":"Reporta comentari","Report this comment?":"Reporta aquest comentari?",Save:"Desa",Sending:"Enviant",Sent:"Enviat",Show:"Mostra","Show {amount} more replies":"Mostra {amount} respostes més","Show 1 more reply":"Mostra 1 resposta més","Show comment":"Mostra comentari","Sign in":"Inicia sessió","Sign up now":"Registra't ara","Sort by":"Ordena per","Start the conversation":"Comença la conversa","The linked comment is no longer available.":"","This comment has been hidden.":"Aquest comentari s'ha ocultat.","This comment has been removed.":"Aquest comentari s'ha esborrat.","Upgrade now":"Actualitza ara","View in admin":"",Yesterday:"Ahir","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"La teva sol·licitud s'enviarà al propietari d'aquest lloc."},IA={"{amount} characters left":"Zbývá {amount} znaků","{amount} comments":"{amount} komentářů","{amount} hrs ago":"Před {amount} hodinami","{amount} mins ago":"Před {amount} minutami","{amount} more":"Dalších {amount}","1 comment":"1 komentář","Add comment":"Přidat komentář","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Pro podporu zdravé diskuse přidejte ke svému komentáři kontext, své jméno a odbornost.","Add reply":"Přidat odpověď","Add your expertise":"","Already a member?":"Už jste členem?",Anonymous:"Anonymní","Are you sure?":"","Become a member of {publication} to start commenting.":"Staňte se členem {publication}, abyste mohli začít komentovat.","Become a paid member of {publication} to start commenting.":"Staňte se placeným členem {publication}, abyste mohli začít komentovat.",Best:"",Cancel:"Zrušit",Comment:"Komentář","Commenting disabled":"","Complete your profile":"Dokončete svůj profil","Contact support":"",Delete:"Smazat",Deleted:"","Deleted member":"Smazaný člen",Deleting:"",Discussion:"Diskuse",Edit:"Upravit","Edit this comment":"Upravit tento komentář",edited:"upraveno","Enter your name":"Zadejte své jméno",Expertise:"Odbornost","for more information.":"","Founder @ Acme Inc":"Zakladatel @ Acme Inc","Full-time parent":"Rodič na plný úvazek","Head of Marketing at Acme, Inc":"Vedoucí marketingu v Acme, Inc","Hidden for members":"",Hide:"Skrýt","Hide comment":"Skrýt komentář","Jamie Larson":"Jamie Larson","Join the discussion":"Připojte se k diskusi","Just now":"Právě teď","Load more ({amount})":"","Local resident":"Místní obyvatel","Member discussion":"Diskuse členů",Name:"Jméno",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Před jednou hodinou","One min ago":"Před jednou minutou",removed:"","Replied to":"",Reply:"Odpovědět","Reply to":"","Reply to comment":"Odpovědět na komentář",Report:"Nahlásit","Report comment":"Nahlásit komentář","Report this comment?":"Nahlásit tento komentář?",Save:"Uložit",Sending:"Odesílání",Sent:"Odesláno",Show:"Zobrazit","Show {amount} more replies":"Zobrazit {amount} dalších odpovědí","Show 1 more reply":"Zobrazit 1 další odpověď","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","The linked comment is no longer available.":"","This comment has been hidden.":"Tento komentář byl skryt.","This comment has been removed.":"Tento komentář byl odstraněn.","Upgrade now":"Upgradovat","View in admin":"",Yesterday:"Včera","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Vaše žádost bude odeslána vlastníkovi tohoto webu."},zA={"{amount} characters left":"{amount} tegn tilbage","{amount} comments":"{amount} kommentarer","{amount} hrs ago":"{amount} timer siden","{amount} mins ago":"{amount} minutter siden","{amount} more":"{amount} mere","1 comment":"1 kommentar","Add comment":"Tilføj kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Tilføj kontekst til din kommentar, del dit navn og ekspertise for at fremme en sund diskussion.","Add reply":"Tilføj svar","Add your expertise":"","Already a member?":"Allerede medlem?",Anonymous:"Anonym","Are you sure?":"Er du sikker?","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.",Best:"",Cancel:"Annuller",Comment:"Kommentér","Commenting disabled":"","Complete your profile":"Færdiggør din profil","Contact support":"",Delete:"Slet",Deleted:"Slettet","Deleted member":"Slettet medlem",Deleting:"Sletter",Discussion:"Diskussion",Edit:"Rediger","Edit this comment":"Rediger denne kommentar",edited:"redigeret","Enter your name":"Indtast dit navn",Expertise:"Ekspertise","for more information.":"","Founder @ Acme Inc":"Grundlægger @ Acme Inc","Full-time parent":"Forældre på fuld tid","Head of Marketing at Acme, Inc":"Chef for marking hos Acme, Inc","Hidden for members":"Skjult for medlemmer",Hide:"Skjul","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Bliv en del af diskussionen","Just now":"Lige nu","Load more ({amount})":"Indlæs mere ({amount})","Local resident":"Lokal borger","Member discussion":"Medlemsdiskussion",Name:"Navn",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Når den først er slettet, kan denne kommentar ikke gendannes.","One hour ago":"En time siden","One min ago":"Et minut siden",removed:"fjernet","Replied to":"Svarede",Reply:"Svar","Reply to":"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 1 more reply":"Vis 1 mere svar","Show comment":"Vis kommentar","Sign in":"Log ind","Sign up now":"Tilmed dig nu","Sort by":"Sorter efter","Start the conversation":"Start samtalen","The linked comment is no longer available.":"","This comment has been hidden.":"Denne kommentar er blevet skjult.","This comment has been removed.":"Denne kommentar er blevet fjernet.","Upgrade now":"Opgrader nu","View in admin":"",Yesterday:"I går","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Din anmodning vil blive sendt til ejeren af dette site."},BA={"{amount} characters left":"{amount} Zeichen übrig","{amount} comments":"{amount} Kommentare","{amount} hrs ago":"Vor {amount} Stunden","{amount} mins ago":"Vor {amount} Minuten","{amount} more":"{amount} weitere","1 comment":"1 Kommentar","Add comment":"Kommentar hinzufügen","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Füge deinem Kommentar Kontext hinzu, teile deinen Namen und deine Expertise, um eine gesunde Diskussion zu fördern.","Add reply":"Antwort hinzufügen","Add your expertise":"Ergänze deine Expertise","Already a member?":"Bist du bereits Mitglied?",Anonymous:"Anonym","Are you sure?":"Bist du sicher?","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.",Best:"Beste",Cancel:"Abbrechen",Comment:"Kommentar","Commenting disabled":"","Complete your profile":"Vervollständige dein Profil","Contact support":"",Delete:"Löschen",Deleted:"Gelöscht","Deleted member":"Gelöschtes Mitglied",Deleting:"Wird gelöscht",Discussion:"Diskussion",Edit:"Bearbeiten","Edit this comment":"Diesen Kommentar bearbeiten",edited:"bearbeitet","Enter your name":"Gib deinen Namen ein",Expertise:"Expertise","for more information.":"","Founder @ Acme Inc":"Gründer bei Acme Inc","Full-time parent":"Vollzeit-Elternteil","Head of Marketing at Acme, Inc":"Leiter Marketing bei Acme, Inc","Hidden for members":"Für Mitglieder verborgen",Hide:"Verbergen","Hide comment":"Kommentar verbergen","Jamie Larson":"Jamie Larson","Join the discussion":"Nimm an der Diskussion teil","Just now":"Gerade eben","Load more ({amount})":"Weitere laden ({amount})","Local resident":"Ortsansässiger","Member discussion":"Mitgliederdiskussion",Name:"Name",Neurosurgeon:"Neurochirurg",Newest:"Neuste",Oldest:"Älteste","Once deleted, this comment can’t be recovered.":"Der Kommentar kann nicht wiederhergestellt werden, sobald er gelöscht wurde.","One hour ago":"Vor einer Stunde","One min ago":"Vor einer Minute",removed:"entfernt","Replied to":"Antwort auf",Reply:"Antworten","Reply to":"Antwort auf","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 1 more reply":"1 weitere Antwort anzeigen","Show comment":"Kommentar anzeigen","Sign in":"Einloggen","Sign up now":"Jetzt registrieren","Sort by":"Sortiere nach","Start the conversation":"Beginne das Gespräch","The linked comment is no longer available.":"","This comment has been hidden.":"Dieser Kommentar wurde ausgeblendet.","This comment has been removed.":"Dieser Kommentar wurde entfernt.","Upgrade now":"Jetzt upgraden","View in admin":"",Yesterday:"Gestern","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Deine Anfrage wird an den Besitzer dieser Website gesendet."},FA={"{amount} characters left":"{amount} Zeichen übrig","{amount} comments":"{amount} Kommentare","{amount} hrs ago":"Vor {amount} Stunden","{amount} mins ago":"Vor {amount} Minuten","{amount} more":"{amount} mehr","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ügen Sie Kontext zu Ihrem Kommentar hinzu, teilen Sie Ihren Namen und Ihre Expertise, um eine gesunde Diskussion zu fördern.","Add reply":"Antwort hinzufügen","Add your expertise":"Fügen Sie Ihr Fachwissen hinzu","Already a member?":"Bereits ein Mitglied?",Anonymous:"Anonym","Are you sure?":"Sind Sie sicher?","Become a member of {publication} to start commenting.":"Werden Sie ein Mitglied bei {publication}, um Kommentare zu schreiben.","Become a paid member of {publication} to start commenting.":"Werden Sie ein zahlendes Mitglied bei {publication}, um Kommentare zu schreiben.",Best:"Beste",Cancel:"Abbrechen",Comment:"Kommentar","Commenting disabled":"Kommentare deaktiviert","Complete your profile":"Vervollständigen Sie Ihr Profil","Contact support":"Kontaktieren Sie den Support",Delete:"Löschen",Deleted:"Gelöscht","Deleted member":"Gelöschtes Mitglied",Deleting:"Löschen",Discussion:"Diskussion",Edit:"Bearbeiten","Edit this comment":"Kommentar bearbeiten",edited:"bearbeitet","Enter your name":"Geben Sie Ihren Namen ein",Expertise:"Expertise","for more information.":"für weitere Informationen.","Founder @ Acme Inc":"Gründer bei Acme Inc","Full-time parent":"Vollzeit-Elternteil","Head of Marketing at Acme, Inc":"Leiter Marketing bei Acme, Inc","Hidden for members":"Verborgen für Mitglieder",Hide:"Verbergen","Hide comment":"Kommentar verbergen","Jamie Larson":"Jamie Larson","Join the discussion":"An der Diskussion teilnehmen","Just now":"Gerade eben","Load more ({amount})":"Mehr laden ({amount})","Local resident":"Anwohner","Member discussion":"Mitgliederdiskussion",Name:"Name",Neurosurgeon:"Neurochirurg",Newest:"Neueste",Oldest:"Älteste","Once deleted, this comment can’t be recovered.":"Der Kommentar kann nicht wiederhergestellt werden, wenn er gelöscht wurde.","One hour ago":"Vor einer Stunde","One min ago":"Vor einer Minute",removed:"entfernt","Replied to":"Antwortet auf",Reply:"Antworten","Reply to":"Antwort auf","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 1 more reply":"1 weitere Antwort anzeigen","Show comment":"Kommentar anzeigen","Sign in":"Anmelden","Sign up now":"Jetzt registrieren","Sort by":"Sortiere nach","Start the conversation":"Beginnen Sie das Gespräch","The linked comment is no longer available.":"Der verlinkte Kommentar ist nicht mehr verfügbar.","This comment has been hidden.":"Dieser Kommentar wurde ausgeblendet.","This comment has been removed.":"Dieser Kommentar wurde entfernt.","Upgrade now":"Jetzt upgraden","View in admin":"Im Admin anzeigen",Yesterday:"Gestern","You can't post comments in this publication.":"Sie können in dieser Publikation keine Kommentare schreiben.","Your request will be sent to the owner of this site.":"Ihre Anfrage wird an den Seitenbesitzer gesendet."},HA={"{amount} characters left":"Απομένουν {amount} χαρακτήρες","{amount} comments":"{amount} σχόλια","{amount} hrs ago":"πριν από {amount} ώρες","{amount} mins ago":"πριν από {amount} λεπτά","{amount} more":"{amount} περισσότερα","1 comment":"1 σχόλιο","Add comment":"Προσθήκη σχολίου","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Προσθέστε περιεχόμενο στο σχόλιό σας, μοιραστείτε το όνομα και την εξειδίκευσή σας για να προωθήσετε μια υγιή συζήτηση.","Add reply":"Προσθήκη απάντησης","Add your expertise":"","Already a member?":"Ήδη μέλος;",Anonymous:"Ανώνυμος","Are you sure?":"","Become a member of {publication} to start commenting.":"Γίνετε μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.","Become a paid member of {publication} to start commenting.":"Γίνετε premium μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.",Best:"",Cancel:"Ακύρωση",Comment:"Σχόλιο","Commenting disabled":"","Complete your profile":"Ολοκληρώστε το προφίλ σας","Contact support":"",Delete:"Διαγραφή",Deleted:"","Deleted member":"Διαγραμμένο μέλος",Deleting:"",Discussion:"Συζήτηση",Edit:"Επεξεργασία","Edit this comment":"Επεξεργασία αυτού του σχολίου",edited:"Επεξεργασμένο","Enter your name":"Εισάγετε το όνομά σας",Expertise:"Εξειδίκευση","for more information.":"","Founder @ Acme Inc":"Ιδρυτής @ Acme Inc","Full-time parent":"Γονέας πλήρους απασχόλησης","Head of Marketing at Acme, Inc":"Επικεφαλής Μάρκετινγκ στην Acme, Inc","Hidden for members":"",Hide:"Απόκρυψη","Hide comment":"Απόκρυψη σχολίου","Jamie Larson":"Τζέιμι Λάρσον","Join the discussion":"Συμμετοχή στη συζήτηση","Just now":"Μόλις τώρα","Load more ({amount})":"","Local resident":"Τοπικός κάτοικος","Member discussion":"Συζήτηση μελών",Name:"Όνομα",Neurosurgeon:"Νευροχειρουργός",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Πριν από μία ώρα","One min ago":"Πριν από ένα λεπτό",removed:"","Replied to":"",Reply:"Απάντηση","Reply to":"","Reply to comment":"Απάντηση στο σχόλιο",Report:"Αναφορά","Report comment":"Αναφορά σχολίου","Report this comment?":"Αναφορά αυτού του σχολίου;",Save:"Αποθήκευση",Sending:"Αποστολή",Sent:"Απεστάλη",Show:"Εμφάνιση","Show {amount} more replies":"Εμφάνιση {amount} περισσότερων απαντήσεων","Show 1 more reply":"Εμφάνιση 1 ακόμα απάντησης","Show comment":"Εμφάνιση σχολίου","Sign in":"Σύνδεση","Sign up now":"Εγγραφείτε τώρα","Sort by":"","Start the conversation":"Ξεκινήστε τη συζήτηση","The linked comment is no longer available.":"","This comment has been hidden.":"Αυτό το σχόλιο έχει κρυφτεί.","This comment has been removed.":"Αυτό το σχόλιο έχει αφαιρεθεί.","Upgrade now":"Αναβάθμιση τώρα","View in admin":"",Yesterday:"Χθες","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Το αίτημά σας θα σταλεί στον ιδιοκτήτη αυτού του ιστότοπου."},VA={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"","Contact support":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","for more information.":"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":""},UA={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"","Contact support":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","for more information.":"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":""},_A={"{amount} characters left":"{amount} caracteres restantes","{amount} comments":"{amount} comentarios","{amount} hrs ago":"Hace {amount} horas","{amount} mins ago":"Hace {amount} minutos","{amount} more":"{amount} más","1 comment":"1 comentario","Add comment":"Añadir comentario","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Añade contexto a tu comentario, comparte tu nombre y experiencia para fomentar un debate sano.","Add reply":"Añadir respuesta","Add your expertise":"Añadir tu experiencia","Already a member?":"¿Ya eres miembro?",Anonymous:"Anónimo","Are you sure?":"¿Estás seguro?","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}.",Best:"Mejores",Cancel:"Cancelar",Comment:"Comentar","Commenting disabled":"","Complete your profile":"Completa tu perfil","Contact support":"",Delete:"Eliminar",Deleted:"Eliminado","Deleted member":"Eliminar miembro",Deleting:"Eliminando",Discussion:"Discusión",Edit:"Editar","Edit this comment":"Editar este comentario",edited:"editado","Enter your name":"Introduce tu nombre",Expertise:"Experiencia","for more information.":"","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Padre a tiempo completo","Head of Marketing at Acme, Inc":"Jefe de Marketing en Acme, Inc","Hidden for members":"Oculto para miembros",Hide:"Ocultar","Hide comment":"Ocultar comentario","Jamie Larson":"Carlos Rodriguez","Join the discussion":"Únete a la discusión","Just now":"Justo ahora","Load more ({amount})":"Cargar más ({amount})","Local resident":"Residente local","Member discussion":"Discusión de los miembros",Name:"Nombre",Neurosurgeon:"Neurocirujano",Newest:"Más nuevos",Oldest:"Más antiguos","Once deleted, this comment can’t be recovered.":"Este comentario no se puede recuperar una vez eliminado.","One hour ago":"Hace una hora","One min ago":"Hace un minuto",removed:"eliminado","Replied to":"En respuesta a",Reply:"Responder","Reply to":"Responder a","Reply to comment":"Responder al comentario",Report:"Reportar","Report comment":"Reportar comentario","Report this comment?":"¿Reportar este comentario?",Save:"Guardar",Sending:"Enviando",Sent:"Enviado",Show:"Mostrar","Show {amount} more replies":"Mostrar {amount} respuestas más","Show 1 more reply":"Mostrar 1 respuesta más","Show comment":"Mostrar comentario","Sign in":"Inicia sesión","Sign up now":"Regístrate ahora","Sort by":"Ordenar por","Start the conversation":"Comienza la conversación","The linked comment is no longer available.":"","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","View in admin":"",Yesterday:"Ayer","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Tu petición será enviada al dueño de este sitio web."},YA={"{amount} characters left":"{amount} tähemärki jäänud","{amount} comments":"{amount} kommentaari","{amount} hrs ago":"{amount} tundi tagasi","{amount} mins ago":"{amount} minutit tagasi","{amount} more":"{amount} veel","1 comment":"1 kommentaar","Add comment":"Lisa kommentaar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lisa oma kommentaarile konteksti, jaga oma nime ja kogemusi, et soodustada tervislikku arutelu.","Add reply":"Lisa vastus","Add your expertise":"","Already a member?":"Juba liige?",Anonymous:"Anonüümne","Are you sure?":"","Become a member of {publication} to start commenting.":"Kommenteerimise alustamiseks saage {publication} liikmeks.","Become a paid member of {publication} to start commenting.":"Kommenteerimise alustamiseks saage {publication} tasuliseks liikmeks.",Best:"",Cancel:"Tühista",Comment:"Kommentaar","Commenting disabled":"","Complete your profile":"Täida oma profiil","Contact support":"",Delete:"Kustuta",Deleted:"","Deleted member":"Kustutatud liige",Deleting:"",Discussion:"Arutelu",Edit:"Muuda","Edit this comment":"Muuda seda kommentaari",edited:"muudetud","Enter your name":"Sisesta oma nimi",Expertise:"Oskused","for more information.":"","Founder @ Acme Inc":"Asutaja @ Acme Inc","Full-time parent":"Täiskohaga lapsevanem","Head of Marketing at Acme, Inc":"Turundusjuht Acme, Inc-s","Hidden for members":"",Hide:"Peida","Hide comment":"Peida kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Liitu aruteluga","Just now":"Just praegu","Load more ({amount})":"","Local resident":"Kohalik elanik","Member discussion":"Liikmete arutelu",Name:"Nimi",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Üks tund tagasi","One min ago":"Üks minut tagasi",removed:"","Replied to":"",Reply:"Vasta","Reply to":"","Reply to comment":"Vasta kommentaarile",Report:"Teata","Report comment":"Teata kommentaarist","Report this comment?":"Teatada sellest kommentaarist?",Save:"Salvesta",Sending:"Saatmine",Sent:"Saadetud",Show:"Näita","Show {amount} more replies":"Näita {amount} vastust veel","Show 1 more reply":"Näita 1 vastus veel","Show comment":"Näita kommentaari","Sign in":"Logi sisse","Sign up now":"Registreeru nüüd","Sort by":"","Start the conversation":"Alusta vestlust","The linked comment is no longer available.":"","This comment has been hidden.":"See kommentaar on peidetud.","This comment has been removed.":"See kommentaar on eemaldatud.","Upgrade now":"Uuenda nüüd","View in admin":"",Yesterday:"Eile","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Teie taotlus saadetakse selle saidi omanikule."},JA={"{amount} characters left":"{amount} geratzen dira","{amount} comments":"{amount} iruzkin","{amount} hrs ago":"Duela {amount} ordu","{amount} mins ago":"Duela {amount} minutu","{amount} more":"{amount} gehiago","1 comment":"Iruzkin 1","Add comment":"Egin iruzkina","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Gehitu testuingurua zure iruzkinari, partekatu zure izena eta ezagutza eztabaida sanoa sustatzeko.","Add reply":"Erantzun","Add your expertise":"Gehitu zure ezagutza","Already a member?":"Kidea al zara?",Anonymous:"Anonimoa","Are you sure?":"Ziur al zaude?","Become a member of {publication} to start commenting.":"Egin zaitez {publication}(e)ko kide iruzkinak egiteko.","Become a paid member of {publication} to start commenting.":"Egin zaitez {publication}(e)ko ordainpeko kide iruzkinak egiteko.",Best:"Onena",Cancel:"Utzi",Comment:"Egin iruzkina","Commenting disabled":"","Complete your profile":"Bete zure profila","Contact support":"",Delete:"Ezabatu",Deleted:"Ezabatuta","Deleted member":"Ezabatutako kidea",Deleting:"Ezabatzen",Discussion:"Eztabaida",Edit:"Editatu","Edit this comment":"Editatu iruzkina",edited:"editatua","Enter your name":"Sartu zure izena",Expertise:"Ezagutza","for more information.":"","Founder @ Acme Inc":"FAGOR kooperatibaren fundatzailea","Full-time parent":"Lanaldi osoko gurasoa","Head of Marketing at Acme, Inc":"FAGOR kooperatibako marketin-zuzendaria","Hidden for members":"Ezkutatuta kideentzat",Hide:"Ezkutatu","Hide comment":"Ezkutatu iruzkina","Jamie Larson":"Lur Axpe","Join the discussion":"Batu eztabaidara","Just now":"Oraintxe bertan","Load more ({amount})":"Kargatu gehiago ({amount})","Local resident":"Bertoko bizilaguna","Member discussion":"Kideen eztabaida",Name:"Izena",Neurosurgeon:"Neurozirujaua",Newest:"Berriena",Oldest:"Zaharrena","Once deleted, this comment can’t be recovered.":"Ezabatuz gero, ezingo da berreskuratu.","One hour ago":"Duela ordubete","One min ago":"Duela minutu bat",removed:"kenduta","Replied to":"Honi erantzun dio",Reply:"Erantzun","Reply to":"Erantzun honi","Reply to comment":"Erantzun iruzkin honi",Report:"Salatu","Report comment":"Salatu iruzkina","Report this comment?":"Iruzkin hau salatu nahi al duzu?",Save:"Gorde",Sending:"Bidaltzen",Sent:"Bidalita",Show:"Erakutsi","Show {amount} more replies":"Erakutsi {amount} erantzun gehiago","Show 1 more reply":"Erakutsi erantzun bat gehiago","Show comment":"Erakutsi iruzkina","Sign in":"Hasi saioa","Sign up now":"Eman izena orain","Sort by":"Antolatu honen arabera","Start the conversation":"Hasi eztabaida","The linked comment is no longer available.":"","This comment has been hidden.":"Iruzkin hau ezkutatu da.","This comment has been removed.":"Iruzkin hau kendu da.","Upgrade now":"Ordaindu orain","View in admin":"",Yesterday:"Atzo","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Eskaera gune honetako arduradunari bidaliko zaio."},KA={"{amount} characters left":"{amount} حرف باقی‌مانده است","{amount} comments":"{amount} دیدگاه","{amount} hrs ago":"{amount} ساعت پیش","{amount} mins ago":"{amount} دقیقه پیش","{amount} more":"{amount} بیشتر","1 comment":"یک دیدگاه","Add comment":"دیدگاهی بفرستید","Add context to your comment, share your name and expertise to foster a healthy discussion.":"به دیدگاه خود موضوعیت ببخشید و با به اشتراک‌گذاری نام و تخصص خود یک گفتمان سالم ایجاد کنید.","Add reply":"پاسخی بدهید","Add your expertise":"","Already a member?":"عضو هستید؟",Anonymous:"ناشناس","Are you sure?":"","Become a member of {publication} to start commenting.":"عضو وب‌سایت {publication} شوید تا مجوز ارسال دیدگاه دریافت کنید.","Become a paid member of {publication} to start commenting.":"حق اشتراک وب‌سایت {publication} را پرداخت کنید تا مجوز ارسال دیدگاه دریافت کنید.",Best:"",Cancel:"انصراف",Comment:"دیدگاه","Commenting disabled":"","Complete your profile":"نمایه خود را کامل کنید","Contact support":"",Delete:"پاک کردن",Deleted:"","Deleted member":"حساب پاک‌شده",Deleting:"",Discussion:"گفتمان",Edit:"ویرایش","Edit this comment":"ویرایش این دیدگاه",edited:"ویرایش‌شده","Enter your name":"نام خود را بنویسید",Expertise:"تخصص","for more information.":"","Founder @ Acme Inc":"مدیر عامل یک شرکت خیالی","Full-time parent":" خانه‌دار تمام وقت","Head of Marketing at Acme, Inc":"سرپرست بخش بازاریابی یک شرکت خیالی","Hidden for members":"",Hide:"مخفی کردن","Hide comment":"مخفی کردن دیدگاه","Jamie Larson":"جیمی لارسن","Join the discussion":"به گفتمان بپیوندید","Just now":"پیوستن","Load more ({amount})":"","Local resident":"ساکن محلی","Member discussion":"گفتمان کاربران",Name:"نام",Neurosurgeon:"جراح مغز و اعصاب",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"یک ساعت پیش","One min ago":"یک دقیقه پیش",removed:"","Replied to":"",Reply:"پاسخ دادن","Reply to":"","Reply to comment":"پاسخ دادن به دیدگاه",Report:"گزارش","Report comment":"گزارش دیدگاه","Report this comment?":"می‌خواهید این دیدگاه را گزارش کنید؟",Save:"ذخیره کردن",Sending:"در حال ارسال",Sent:"ارسال شد",Show:"نمایش","Show {amount} more replies":"نمایش {amount} پاسخ بیشتر","Show 1 more reply":"نمایش یک دیدگاه بیشتر","Show comment":"نمایش دیدگاه","Sign in":"ورود به حساب","Sign up now":"ایجاد حساب","Sort by":"","Start the conversation":"گفت‌وگویی شروع کنید","The linked comment is no longer available.":"","This comment has been hidden.":"این دیدگاه مخفی شده است","This comment has been removed.":"این دیدگاه پاک شده است","Upgrade now":"ارتقاء دهید","View in admin":"",Yesterday:"دیروز","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"درخواست شما برای مدیر این وب‌سایت ارسال خواهد شد."},WA={"{amount} characters left":"{amount} merkkiä jäljellä","{amount} comments":"{amount} kommenttia","{amount} hrs ago":"{amount} tuntia sitten","{amount} mins ago":"{amount} minuuttia sitten","{amount} more":"{amount} vielä lisää","1 comment":"1 kommentti","Add comment":"Lisää kommentti","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lisää sisältöä kommenttiisi, jaa nimesi ja osaamisesi saadaksesi aikaan tervettä keskustelua.","Add reply":"Lisää vastaus","Add your expertise":"Lisää osaamisesi","Already a member?":"Oletko jo jäsen?",Anonymous:"Anonyymi","Are you sure?":"Oletko varma?","Become a member of {publication} to start commenting.":"Liity sivun {publication} jäseneksi pystyäksesi kommentoimaan.","Become a paid member of {publication} to start commenting.":"Ota maksullinen jäsenyys sivulle {publication}, jotta pystyt kommentoimaan.",Best:"Parhaat",Cancel:"Peruuta",Comment:"Kommentti","Commenting disabled":"","Complete your profile":"Täydennä profiilisi","Contact support":"",Delete:"Poista",Deleted:"Poistettu","Deleted member":"Poista jäsen",Deleting:"Poistetaan",Discussion:"Keskustelu",Edit:"Editoi","Edit this comment":"Editoi tätä kommenttia",edited:"editoitu","Enter your name":"Syötä nimesi",Expertise:"Osaaminen","for more information.":"","Founder @ Acme Inc":"Perustaja","Full-time parent":"Kokoaikainen vanhempi","Head of Marketing at Acme, Inc":"Markkinointijohtaja","Hidden for members":"Piilotettu jäseniltä",Hide:"Piilota","Hide comment":"Piilota kommentti","Jamie Larson":"Jamie Larson","Join the discussion":"Liity keskusteluun","Just now":"Juuri nyt","Load more ({amount})":"Lataa lisää ({amount})","Local resident":"Paikallinen","Member discussion":"Jäsenten keskustelu",Name:"Nimi",Neurosurgeon:"Neurokirurgi",Newest:"Uusin",Oldest:"Vanhin","Once deleted, this comment can’t be recovered.":"Jos poistat kommentin, sitä ei voi enää palauttaa.","One hour ago":"Tunti sitten","One min ago":"Minuutti sitten",removed:"poistettu","Replied to":"Vastattu:",Reply:"Vastaa","Reply to":"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 1 more reply":"Näytä 1 vastaus lisää","Show comment":"Näytä kommentti","Sign in":"Kirjaudu sisään","Sign up now":"Rekisteröidy nyt","Sort by":"Lajitteluperuste","Start the conversation":"Aloita keskustelu","The linked comment is no longer available.":"","This comment has been hidden.":"Tämä kommentti on piilotettu.","This comment has been removed.":"Tämä kommentti on poistettu.","Upgrade now":"Korota nyt","View in admin":"",Yesterday:"Eilen","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Sinun pyyntösi lähetetään sivun omistajalle."},qA={"{amount} characters left":"{amount} caractères restants","{amount} comments":"{amount} commentaires","{amount} hrs ago":"Il y a {amount} heures","{amount} mins ago":"Il y a {amount} minutes","{amount} more":"{amount} supplémentaire(s)","1 comment":"1 commentaire","Add comment":"Ajouter un commentaire","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Ajoutez un contexte à votre commentaire. Partagez votre nom et vos compétences pour favoriser une discussion saine.","Add reply":"Ajouter une réponse","Add your expertise":"Ajoutez vos compétences","Already a member?":"Déjà abonné(e) ?",Anonymous:"Anonyme","Are you sure?":"Êtes-vous certain(e) ?","Become a member of {publication} to start commenting.":"Abonnez-vous gratuitement à {publication} pour commencer à commenter.","Become a paid member of {publication} to start commenting.":"Choisissez un abonnement payant à {publication} pour commencer à commenter.",Best:"Meilleur",Cancel:"Annuler",Comment:"Commentaire","Commenting disabled":"","Complete your profile":"Complétez votre profil","Contact support":"",Delete:"Supprimer",Deleted:"Supprimé","Deleted member":"Abonné(e) supprimé(e)",Deleting:"Suppression en cours",Discussion:"Discussion",Edit:"Modifier","Edit this comment":"Modifier ce commentaire",edited:"modifié","Enter your name":"Entrez votre nom",Expertise:"Compétences","for more information.":"","Founder @ Acme Inc":"Fondateur @ Acme Inc","Full-time parent":"Parent à plein temps","Head of Marketing at Acme, Inc":"Responsable du marketing chez Acme, Inc","Hidden for members":"Masqué pour les abonnés",Hide:"Masquer","Hide comment":"Masquer le commentaire","Jamie Larson":"Jean Martin","Join the discussion":"Rejoindre la discussion","Just now":"À l'instant","Load more ({amount})":"Afficher plus ({amount})","Local resident":"Résident local","Member discussion":"Discussion entre abonnés",Name:"Nom",Neurosurgeon:"Neurochirurgien",Newest:"Plus récent",Oldest:"Plus ancien","Once deleted, this comment can’t be recovered.":"Une fois supprimé, ce commentaire ne pourra pas être restauré.","One hour ago":"Il y a une heure","One min ago":"Il y a une minute",removed:"supprimé","Replied to":"Répondu à",Reply:"Répondre","Reply to":"Répondre à","Reply to comment":"Répondre au commentaire",Report:"Signaler","Report comment":"Signaler le commentaire","Report this comment?":"Signaler ce commentaire ?",Save:"Enregistrer",Sending:"Envoi en cours",Sent:"Envoyé",Show:"Afficher","Show {amount} more replies":"Afficher {amount} réponses supplémentaires","Show 1 more reply":"Afficher 1 réponse supplémentaire","Show comment":"Afficher le commentaire","Sign in":"Se connecter","Sign up now":"S'inscrire maintenant","Sort by":"Trier par","Start the conversation":"Commencer la conversation","The linked comment is no longer available.":"","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","View in admin":"",Yesterday:"Hier","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Votre demande sera transférée au propriétaire de ce site."},GA={"{amount} characters left":"caractaran air fhàgail: {amount}","{amount} comments":"beachdan: {amount}","{amount} hrs ago":"o chionn {amount}u","{amount} mins ago":"o chionn {amount}m","{amount} more":"{amount} a bharrachd","1 comment":"1 bheachd","Add comment":"Fàg beachd air","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Cuir co-theacsa ris a' bheachd agad, cuir d' ainm is sàr-eòlas ris gus deasbad fallain a brosnachadh.","Add reply":"Cuir freagairt ris","Add your expertise":"","Already a member?":"’Eil thu nad bhall mar-thà?",Anonymous:"Gun ainm","Are you sure?":"A bheil thu cinnteach?","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.",Best:"",Cancel:"Sguir dheth",Comment:"Beachd","Commenting disabled":"","Complete your profile":"Lìon a-steach a' phròifil agad","Contact support":"",Delete:"Sguab às",Deleted:"Air a sguabadh às","Deleted member":"Ball air a sguabadh às",Deleting:"'Ga sguabadh às",Discussion:"Deasbad",Edit:"Deasaich","Edit this comment":"Deasaich am beachd seo",edited:"Air a dheasachadh","Enter your name":"Cuir a-steach d’ ainm",Expertise:"Sàr-eòlas","for more information.":"","Founder @ Acme Inc":"Neach-stèidheachaidh @ Acme Inc","Full-time parent":"Pàrant làn-ùine","Head of Marketing at Acme, Inc":"Àrd-cheann Margaidheachd aig Acme, Inc","Hidden for members":"Air am falach bho bhuill",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","Load more ({amount})":"Lùchdaich barrachd {amount}","Local resident":"Neach-còmhnaidh ionadail","Member discussion":"Deasbad",Name:"Ainm",Neurosurgeon:"Niùro-làmh-lèigh",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Cha ghabh a aiseag an dèidh sguabadh às","One hour ago":"O chionn uair a thìde","One min ago":"O chionn mionaid",removed:"air a sguabadh às","Replied to":"Air freagairt fhaighinn",Reply:"Cuir freagairt","Reply to":"Cuir freagairt gu","Reply to comment":"Cuir freagairt 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 1 more reply":"Seall beachd a bharrachd","Show comment":"Seall am beachd","Sign in":"Clàraich a-steach","Sign up now":"Clàraich a-nis","Sort by":"Seòrsaich a-rèir","Start the conversation":"Tòisich an deasbad","The linked comment is no longer available.":"","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","View in admin":"",Yesterday:"An-dè","You can't post comments in this publication.":"","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."},QA={"{amount} characters left":"נותרו עוד {amount} תווים","{amount} comments":"{amount} תגובות","{amount} hrs ago":"לפני {amount} שעות","{amount} mins ago":"לפני {amount} דקות","{amount} more":"עוד {amount}","1 comment":"תגובה אחת","Add comment":"הוסיפו תגובה","Add context to your comment, share your name and expertise to foster a healthy discussion.":"הוסיפו תוכן לתגובה שלכם, שתפו את שמכם ואת התמחותכם כדי לקדם דיון בריא.","Add reply":"הוסיפו תגובה","Add your expertise":"","Already a member?":"כבר רשומים?",Anonymous:"אנונימי","Are you sure?":"","Become a member of {publication} to start commenting.":"הירשמו כחברי {publication} כדי להתחיל להגיב.","Become a paid member of {publication} to start commenting.":"הירשמו כחברי משלמים של {publication} כדי להתחיל להגיב.",Best:"",Cancel:"ביטול",Comment:"תגובה","Commenting disabled":"","Complete your profile":"השלימו את הפרופיל שלכם","Contact support":"",Delete:"מחיקה",Deleted:"","Deleted member":"חבר שנמחק",Deleting:"",Discussion:"דיון",Edit:"עריכה","Edit this comment":"ערכו תגובה זו",edited:"נערך","Enter your name":"כתבו את שמכם",Expertise:"ניסיון","for more information.":"","Founder @ Acme Inc":"מייסד @ Acme Inc","Full-time parent":"הורה במשרה מלאה","Head of Marketing at Acme, Inc":"ראש אגף שיווק ב- Acme, Inc","Hidden for members":"",Hide:"הסתר","Hide comment":"הסתר תגובה","Jamie Larson":"ג׳יימי לרסון","Join the discussion":"הצטרפו לדיון","Just now":"ממש עכשיו","Load more ({amount})":"","Local resident":"תושב מקומי","Member discussion":"דיון חברים רשומים",Name:"שם",Neurosurgeon:"נוֹיְרוֹכִירוּרְג",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"לפני שעה","One min ago":"לפני דקה",removed:"","Replied to":"",Reply:"תגובה","Reply to":"","Reply to comment":"הגיבו לתגובה",Report:"דיווח","Report comment":"דווחו על תגובה","Report this comment?":"האם לדווח על תגובה זו?",Save:"שמירה",Sending:"שליחה",Sent:"שלחנו",Show:"להציג","Show {amount} more replies":"להציג עוד {amount} תגובות","Show 1 more reply":"להציג תגובה נוספת","Show comment":"להציג תגובה","Sign in":"היכנסו","Sign up now":"הירשמו עכשיו","Sort by":"למיין לפי","Start the conversation":"התחילו את השיחה","The linked comment is no longer available.":"","This comment has been hidden.":"התגובה הזו הוסתרה.","This comment has been removed.":"התגובה הזו הוסרה.","Upgrade now":"שדרגו עכשיו","View in admin":"",Yesterday:"אתמול","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"בקשתך תישלח לבעלים של האתר הזה."},ZA={"{amount} characters left":"{amount} अक्षर बाकी","{amount} comments":"{amount} टिप्पणियाँ","{amount} hrs ago":"{amount} घंटे पहले","{amount} mins ago":"{amount} मिनट पहले","{amount} more":"{amount} और","1 comment":"1 टिप्पणी","Add comment":"टिप्पणी जोड़ें","Add context to your comment, share your name and expertise to foster a healthy discussion.":"अपनी टिप्पणी में संदर्भ जोड़ें, स्वस्थ चर्चा के लिए अपना नाम और विशेषज्ञता साझा करें।","Add reply":"जवाब जोड़ें","Add your expertise":"अपनी विशेषज्ञता जोड़ें","Already a member?":"पहले से सदस्य हैं?",Anonymous:"अनाम","Are you sure?":"क्या आप सुनिश्चित हैं?","Become a member of {publication} to start commenting.":"टिप्पणी शुरू करने के लिए {publication} का सदस्य बनें।","Become a paid member of {publication} to start commenting.":"टिप्पणी शुरू करने के लिए {publication} के भुगतान सदस्य बनें।",Best:"सर्वश्रेष्ठ",Cancel:"रद्द करें",Comment:"टिप्पणी","Commenting disabled":"","Complete your profile":"अपनी प्रोफ़ाइल पूरी करें","Contact support":"",Delete:"हटाएं",Deleted:"हटा दिया गया","Deleted member":"हटाए गए सदस्य",Deleting:"हटाया जा रहा है",Discussion:"चर्चा",Edit:"संपादित करें","Edit this comment":"इस टिप्पणी को संपादित करें",edited:"संपादित किया गया","Enter your name":"अपना नाम दर्ज करें",Expertise:"विशेषज्ञता","for more information.":"","Founder @ Acme Inc":"संस्थापक @ Acme Inc","Full-time parent":"पूर्णकालिक माता-पिता","Head of Marketing at Acme, Inc":"Acme, Inc में विपणन प्रमुख","Hidden for members":"सदस्यों के लिए छिपाया गया",Hide:"छिपाएं","Hide comment":"टिप्पणी छिपाएं","Jamie Larson":"राहुल शर्मा","Join the discussion":"चर्चा में शामिल हों","Just now":"अभी","Load more ({amount})":"और लोड करें ({amount})","Local resident":"स्थानीय निवासी","Member discussion":"सदस्य चर्चा",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन",Newest:"नवीनतम",Oldest:"सबसे पुराना","Once deleted, this comment can’t be recovered.":"एक बार हटाए जाने के बाद, इस टिप्पणी को पुनः प्राप्त नहीं किया जा सकता।","One hour ago":"एक घंटा पहले","One min ago":"एक मिनट पहले",removed:"हटा दिया गया","Replied to":"को जवाब दिया",Reply:"जवाब दें","Reply to":"को जवाब दें","Reply to comment":"टिप्पणी का जवाब दें",Report:"रिपोर्ट","Report comment":"टिप्पणी की रिपोर्ट करें","Report this comment?":"क्या आप इस टिप्पणी की रिपोर्ट करना चाहते हैं?",Save:"सहेजें",Sending:"भेजा जा रहा है",Sent:"भेजा गया",Show:"दिखाएं","Show {amount} more replies":"{amount} और जवाब दिखाएं","Show 1 more reply":"1 और जवाब दिखाएं","Show comment":"टिप्पणी दिखाएं","Sign in":"साइन इन करें","Sign up now":"अभी साइनअप करें","Sort by":"क्रमबद्ध करें","Start the conversation":"बातचीत शुरू करें","The linked comment is no longer available.":"","This comment has been hidden.":"इस टिप्पणी को छिपा दिया गया है।","This comment has been removed.":"इस टिप्पणी को हटा दिया गया है।","Upgrade now":"अब उन्नत करें","View in admin":"",Yesterday:"कल","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"आपका अनुरोध इस साइट के मालिक को भेजा जाएगा।"},XA={"{amount} characters left":"{amount} znakova preostalo","{amount} comments":"{amount} komentara","{amount} hrs ago":"Prije {amount} sati","{amount} mins ago":"Prije {amount} minuta","{amount} more":"{amount} više","1 comment":"1 komentar","Add comment":"Dodaj komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dajte kontekts vašem komentaru, podijelite vaše ime i znanje za unaprijeđenje svake rasprave.","Add reply":"Dodaj odgovor","Add your expertise":"","Already a member?":"Već si član?",Anonymous:"Anonimus","Are you sure?":"","Become a member of {publication} to start commenting.":"Postani član {publication} za mogućnost komentiranja.","Become a paid member of {publication} to start commenting.":"Plati pretplatu na {publication} za mogućnost komentiranja.",Best:"",Cancel:"Prekini",Comment:"Komentar","Commenting disabled":"","Complete your profile":"Dovrši svoj profil","Contact support":"",Delete:"Obriši",Deleted:"","Deleted member":"Obrisan član",Deleting:"",Discussion:"Rasprava",Edit:"Uredi","Edit this comment":"Uredi ovaj komentar",edited:"uređen","Enter your name":"Unesite vaše ime",Expertise:"Stručnost","for more information.":"","Founder @ Acme Inc":"Osnivač Acme Inc","Full-time parent":"Full-time Roditelj","Head of Marketing at Acme, Inc":"Voditelj marketinga Acme, Inc","Hidden for members":"",Hide:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Jamie Larson","Join the discussion":"Pridruži se raspravi","Just now":"Upravo sada","Load more ({amount})":"","Local resident":"Lokalni stanovnik","Member discussion":"Rasprava članova",Name:"Ime",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prije jednog sata","One min ago":"Prije jedne minute",removed:"","Replied to":"",Reply:"Odgovori","Reply to":"","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Prijaviti ovaj komentar?",Save:"Spremi",Sending:"Slanje",Sent:"Poslano",Show:"Prikaži","Show {amount} more replies":"Prikaži još {amount} odgovora","Show 1 more reply":"Prikaži još jedan odgovor","Show comment":"Prikaži komentar","Sign in":"Prijava","Sign up now":"Registriraj se sada","Sort by":"","Start the conversation":"Pokreni razgovor","The linked comment is no longer available.":"","This comment has been hidden.":"Ovaj komentar je skriven","This comment has been removed.":"Ovaj komentar je maknut","Upgrade now":"Nadogradite sada","View in admin":"",Yesterday:"Jučer","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Vaš zahtjev će se poslati vasniku ovih web stranica."},eD={"{amount} characters left":"{amount} karakter maradt","{amount} comments":"{amount} hozzászólás","{amount} hrs ago":"{amount} órája","{amount} mins ago":"{amount} perce","{amount} more":"{amount} még","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.":"Segítsd a beszélgetést azzal, hogy megadod a nevedet és azt, hogy mihez értesz.","Add reply":"Válasz","Add your expertise":"Add meg a szakterületedet","Already a member?":"Van már fiókod?",Anonymous:"Anonim","Are you sure?":"Biztos vagy benne?","Become a member of {publication} to start commenting.":"Csatlakozz a támogató {publication} közösséghez, hogy hozzászólhass a tartalmakhoz.","Become a paid member of {publication} to start commenting.":"Csatlakozz a fizető {publication} közösséghez, hogy hozzászólhass a tartalmakhoz.",Best:"Legjobb",Cancel:"Mégse",Comment:"Hozzászólás","Commenting disabled":"","Complete your profile":"Profil befejezése","Contact support":"",Delete:"Törlés",Deleted:"Törölt","Deleted member":"Törölt tag",Deleting:"Törölni",Discussion:"Hozzászólások",Edit:"Szerkesztés","Edit this comment":"Hozzászólás szerkesztése",edited:"szerkesztve","Enter your name":"Add meg a nevedet",Expertise:"Foglalkozás","for more information.":"","Founder @ Acme Inc":"A(z) @ Sirály Kft. alapítója","Full-time parent":"Főállású szülő","Head of Marketing at Acme, Inc":"Marketingvezető — Sirály Kft.","Hidden for members":"A tagok számára elrejtve",Hide:"Elrejtés","Hide comment":"Hozzászólás elrejtése","Jamie Larson":"Kiss Sára","Join the discussion":"Csatlakozz a beszélgetéshez","Just now":"Épp most","Load more ({amount})":"Továbbiak betöltése ({amount})","Local resident":"Helyi lakos","Member discussion":"Tagok beszélgetése",Name:"Név",Neurosurgeon:"Idegsebész",Newest:"Legújabb",Oldest:"Legrégebbi","Once deleted, this comment can’t be recovered.":"A törlés után ez a hozzászólás nem állítható vissza.","One hour ago":"Egy órája","One min ago":"Egy perce",removed:"eltávolítva","Replied to":"Válaszolt erre",Reply:"Válasz","Reply to":"Válasz","Reply to comment":"Válasz a hozzászólásra",Report:"Jelentés","Report comment":"Hozzászólás jelentése","Report this comment?":"Szeretnéd jelenteni ezt a hozzászólást?",Save:"Mentés",Sending:"Küldés",Sent:"Elküldve",Show:"Mutat","Show {amount} more replies":"Mutass még {amount} választ","Show 1 more reply":"Mutass még egy választ","Show comment":"Hozzászólás mutatása","Sign in":"Bejelentkezés","Sign up now":"Regisztrálj most","Sort by":"Rendezés","Start the conversation":"Kezdd el a beszélgetést","The linked comment is no longer available.":"","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":"Előfizetéssel te is hozzászólhatsz","View in admin":"",Yesterday:"Tegnap","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"A kérésedet továbbítjuk a weboldal tulajdonosának."},tD={"{amount} characters left":"{amount} karakter tersisa","{amount} comments":"{amount} komentar","{amount} hrs ago":"{amount} jam yang lalu","{amount} mins ago":"{amount} menit yang lalu","{amount} more":"{amount} lagi","1 comment":"1 komentar","Add comment":"Tambahkan komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Tambahkan konteks pada komentar Anda, bagikan nama dan keahlian Anda untuk mendorong diskusi yang sehat.","Add reply":"Tambahkan balasan","Add your expertise":"Tambahkan keahlian Anda","Already a member?":"Sudah menjadi anggota?",Anonymous:"Anonim","Are you sure?":"Apakah Anda yakin?","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.",Best:"Terbaik",Cancel:"Batal",Comment:"Komentar","Commenting disabled":"","Complete your profile":"Lengkapi profil Anda","Contact support":"",Delete:"Hapus",Deleted:"Terhapus","Deleted member":"Anggota dihapus",Deleting:"Menghapus...",Discussion:"Diskusi",Edit:"Edit","Edit this comment":"Edit komentar ini",edited:"diedit","Enter your name":"Masukkan nama Anda",Expertise:"Keahlian","for more information.":"","Founder @ Acme Inc":"Founder @ Acme Inc","Full-time parent":"Orang tua penuh waktu","Head of Marketing at Acme, Inc":"Direktur Pemasaran di Acme, Inc","Hidden for members":"Tersembunyi bagi anggota",Hide:"Sembunyikan","Hide comment":"Sembunyikan komentar","Jamie Larson":"Sutan T. Alisjahbana","Join the discussion":"Bergabung dalam diskusi","Just now":"Baru saja","Load more ({amount})":"Tampilkan {amount} lagi","Local resident":"Penduduk lokal","Member discussion":"Diskusi anggota",Name:"Nama",Neurosurgeon:"Ahli Bedah Saraf",Newest:"Paling baru",Oldest:"Paling lama","Once deleted, this comment can’t be recovered.":"Setelah dihapus, komentar ini tidak dapat dipulihkan.","One hour ago":"Satu jam yang lalu","One min ago":"Satu menit yang lalu",removed:"","Replied to":"",Reply:"Balas","Reply to":"","Reply to comment":"Balas komentar",Report:"Laporkan","Report comment":"Laporkan komentar","Report this comment?":"Laporkan komentar ini?",Save:"Simpan",Sending:"Mengirim",Sent:"Terkirim",Show:"Tampilkan","Show {amount} more replies":"Tampilkan {amount} balasan lainnya","Show 1 more reply":"Tampilkan 1 balasan lainnya","Show comment":"Tampilkan komentar","Sign in":"Masuk","Sign up now":"Daftar sekarang","Sort by":"Urutkan berdasarkan","Start the conversation":"Mulai percakapan","The linked comment is no longer available.":"","This comment has been hidden.":"Komentar ini telah disembunyikan.","This comment has been removed.":"Komentar ini telah dihapus.","Upgrade now":"Daftar sekarang","View in admin":"",Yesterday:"Kemarin","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Permintaan Anda akan dikirim kepada pemilik situs ini."},nD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"","Contact support":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","for more information.":"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":""},oD={"{amount} characters left":"{amount} caratteri rimanenti","{amount} comments":"{amount} commenti","{amount} hrs ago":"{amount} ore fa","{amount} mins ago":"{amount} minuti fa","{amount} more":"{amount} in più","1 comment":"1 commento","Add comment":"Aggiungi commento","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Aggiungi dettagli al tuo commento, condividi il tuo nome e le tue competenze per incoraggiare una conversazione sana.","Add reply":"Aggiungi risposta","Add your expertise":"Aggiungi le tue competenze","Already a member?":"Sei già iscritto?",Anonymous:"Anonimo","Are you sure?":"Sei sicuro?","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.",Best:"Migliori",Cancel:"Annulla",Comment:"Commenta","Commenting disabled":"","Complete your profile":"Completa il tuo profilo","Contact support":"",Delete:"Elimina",Deleted:"Eliminato","Deleted member":"Utente eliminato",Deleting:"Eliminazione in corso",Discussion:"Discussione",Edit:"Modifica","Edit this comment":"Modifica questo commento",edited:"modificato","Enter your name":"Inserisci il tuo nome",Expertise:"Competenze","for more information.":"","Founder @ Acme Inc":"Megadirettore Galattico","Full-time parent":"Genitore a tempo pieno","Head of Marketing at Acme, Inc":"Ragioniere presso Megaditta","Hidden for members":"Nascosto per gli abbonati",Hide:"Nascondi","Hide comment":"Nascondi commento","Jamie Larson":"Andrea Rossi","Join the discussion":"Partecipa alla discussione","Just now":"Adesso","Load more ({amount})":"Caricane altri {amount}","Local resident":"Paesano","Member discussion":"Commenti",Name:"Nome",Neurosurgeon:"Neurochirurgo",Newest:"Più recenti",Oldest:"Più vecchi","Once deleted, this comment can’t be recovered.":"Una volta cancellato, non potrai più recuperare questo commento","One hour ago":"Un'ora fa","One min ago":"Un minuto fa",removed:"rimosso","Replied to":"Ha risposto a",Reply:"Rispondi","Reply to":"Rispondi a","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 1 more reply":"Mostra un'altra risposta","Show comment":"Mostra commento","Sign in":"Accedi","Sign up now":"Iscriviti ora","Sort by":"Ordina per","Start the conversation":"Commenta per primo","The linked comment is no longer available.":"","This comment has been hidden.":"Questo commento è stato nascosto.","This comment has been removed.":"Questo commento è stato rimosso.","Upgrade now":"Abbonati ora","View in admin":"Visualizza nell'area admin",Yesterday:"Ieri","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"La tua richiesta sarà inviata al proprietario del sito."},rD={"{amount} characters left":"残り{amount}文字","{amount} comments":"{amount}のコメント","{amount} hrs ago":"{amount}時間前","{amount} mins ago":"{amount}分前","{amount} more":"さらに{amount}個","1 comment":"1のコメント","Add comment":"コメントする","Add context to your comment, share your name and expertise to foster a healthy discussion.":"コメントはよく説明し、名前と専門分野を共有することで健全な議論をすすめましょう。","Add reply":"返信する","Add your expertise":"","Already a member?":"メンバーですか?",Anonymous:"匿名","Are you sure?":"","Become a member of {publication} to start commenting.":"{publication}のメンバーになってコメントを始めましょう。","Become a paid member of {publication} to start commenting.":"{publication}の有料メンバーになってコメントを始めましょう。",Best:"",Cancel:"キャンセル",Comment:"コメント","Commenting disabled":"","Complete your profile":"プロフィールを完成させる","Contact support":"",Delete:"削除",Deleted:"","Deleted member":"削除されたメンバー",Deleting:"",Discussion:"議論",Edit:"編集","Edit this comment":"このコメントを編集する",edited:"編集済み","Enter your name":"名前を記入",Expertise:"専門分野","for more information.":"","Founder @ Acme Inc":"創業者 @ Acme Inc","Full-time parent":"専業主婦・主夫","Head of Marketing at Acme, Inc":"マーケティング責任者 @ Acme, Inc","Hidden for members":"",Hide:"非表示にする","Hide comment":"コメントを非表示にする","Jamie Larson":"ジェイミー・ラーソン","Join the discussion":"議論に参加する","Just now":"今すぐ参加する","Load more ({amount})":"","Local resident":"地元住民","Member discussion":"メンバーによる議論",Name:"名前",Neurosurgeon:"脳神経外科医",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"1時間前","One min ago":"1分前",removed:"","Replied to":"",Reply:"返信する","Reply to":"","Reply to comment":"コメントに返信する",Report:"通報する","Report comment":"コメントを通報する","Report this comment?":"このコメントを通報しますか?",Save:"保存",Sending:"送信中",Sent:"送信完了",Show:"表示する","Show {amount} more replies":"{amount}個の返信を表示する","Show 1 more reply":"返信をもう1つ表示する","Show comment":"コメントを表示する","Sign in":"ログイン","Sign up now":"今すぐ新規登録する","Sort by":"","Start the conversation":"会話を始める","The linked comment is no longer available.":"","This comment has been hidden.":"このコメントは非表示にされました。","This comment has been removed.":"このコメントは削除されました。","Upgrade now":"今すぐアップデートする","View in admin":"",Yesterday:"昨日","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"あなたのリクエストはこのサイトの管理者に送信されます。"},iD={"{amount} characters left":"{amount}글자 남음","{amount} comments":"{amount}개의 댓글","{amount} hrs ago":"{amount}시간 전","{amount} mins ago":"{amount}분 전","{amount} more":"{amount}개 더보기","1 comment":"1개의 댓글","Add comment":"댓글 추가","Add context to your comment, share your name and expertise to foster a healthy discussion.":"건설적인 토론을 위해 댓글에 맥락을 추가하고, 이름과 전문 분야를 공유해 주세요.","Add reply":"답변 추가","Add your expertise":"","Already a member?":"이미 회원이신가요?",Anonymous:"익명","Are you sure?":"","Become a member of {publication} to start commenting.":"{publication}의 회원이 되어 댓글을 작성해 주세요.","Become a paid member of {publication} to start commenting.":"{publication}의 유료 회원이 되어 댓글을 작성해 주세요.",Best:"",Cancel:"취소",Comment:"댓글","Commenting disabled":"","Complete your profile":"프로필을 완성해 주세요","Contact support":"",Delete:"삭제",Deleted:"","Deleted member":"삭제된 회원",Deleting:"",Discussion:"댓글",Edit:"수정","Edit this comment":"댓글 수정",edited:"수정됨","Enter your name":"이름을 입력해 주세요",Expertise:"전문분야","for more information.":"","Founder @ Acme Inc":"Acme Inc 창업자","Full-time parent":"전업 부모","Head of Marketing at Acme, Inc":"Acme Inc 마케팅 책임자","Hidden for members":"",Hide:"숨기기","Hide comment":"댓글 숨기기","Jamie Larson":"제이미 라슨","Join the discussion":"댓글에 참여해 주세요","Just now":"방금 전","Load more ({amount})":"","Local resident":"지역 주민","Member discussion":"회원들의 댓글",Name:"이름",Neurosurgeon:"신경외과 의사",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"1시간 전","One min ago":"1분 전",removed:"","Replied to":"",Reply:"답변","Reply to":"","Reply to comment":"댓글에 답변",Report:"신고","Report comment":"댓글 신고","Report this comment?":"이 댓글을 신고하시겠어요?",Save:"저장",Sending:"전송중",Sent:"전송됨",Show:"보기","Show {amount} more replies":"{amount}개의 댓글 더 보기","Show 1 more reply":"1개의 댓글 더 보기","Show comment":"댓글 보기","Sign in":"로그인","Sign up now":"회원가입","Sort by":"정렬 기준","Start the conversation":"댓글을 작성해 주세요","The linked comment is no longer available.":"","This comment has been hidden.":"숨김처리 된 댓글이에요.","This comment has been removed.":"삭제 된 댓글이에요.","Upgrade now":"업그레이드","View in admin":"",Yesterday:"어제","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"운영자에게 요구사항이 전달되었어요."},sD={"{amount} characters left":"{amount} таңба қалды","{amount} comments":"{amount} пікір","{amount} hrs ago":"{amount} сағат бұрын","{amount} mins ago":"{amount} минут бұрын","{amount} more":"тағы {amount}","1 comment":"1 пікір","Add comment":"Пікір қосу","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Талқы қызық болуы үшін өзіңіз туралы мәліметтерді қосыңыз.","Add reply":"Жауап қосу","Add your expertise":"","Already a member?":"Әлдеқашан қосылдыңыз ба?",Anonymous:"Аноним","Are you sure?":"","Become a member of {publication} to start commenting.":"Пікір қалдыру үшін {publication} сайтына аккаунт қажет.","Become a paid member of {publication} to start commenting.":"Пікір қалдыру үшін {publication} сайтына ақылы аккаунт қажет.",Best:"",Cancel:"Бас тарту",Comment:"Пікір","Commenting disabled":"","Complete your profile":"Профиліңізді толтырыңыз","Contact support":"",Delete:"Жою",Deleted:"","Deleted member":"Жойылған аккаунт",Deleting:"",Discussion:"Талқы",Edit:"Өңдеу","Edit this comment":"Бұл пікірді өңдеу",edited:"Өңделді","Enter your name":"Есіміңізді жазыңыз",Expertise:"Қызмет","for more information.":"","Founder @ Acme Inc":"@ Acme Inc құрылтайшысы","Full-time parent":"Толық күн жұмыс істейтін ата-ана","Head of Marketing at Acme, Inc":"@ Acme маркетинг жетекшісі ","Hidden for members":"",Hide:"Жасыру","Hide comment":"Пікірді жасыру","Jamie Larson":"Пәленше Түгеншиев","Join the discussion":"Талқыға қосылу","Just now":"Дәл қазір","Load more ({amount})":"","Local resident":"Жергілікті тұрғын","Member discussion":"Мүшелер талқысы",Name:"Есімі",Neurosurgeon:"Нейрохирург",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Бір сағат бұрын","One min ago":"Бір минут бұрын",removed:"","Replied to":"",Reply:"Жауап беру","Reply to":"","Reply to comment":"Пікірге жауап беру",Report:"Шағымдану","Report comment":"Пікірге шағымдану","Report this comment?":"Осы пікірге шағым жіберілсін бе?",Save:"Сақтау",Sending:"Жіберілуде",Sent:"Жіберілді",Show:"Көрсету","Show {amount} more replies":"Тағы {amount} жауапты көрсету","Show 1 more reply":"Тағы 1 жауап көрсету","Show comment":"Пікірді көрсету","Sign in":"Кіру","Sign up now":"Қазір тіркелу","Sort by":"","Start the conversation":"Талқыны бастау","The linked comment is no longer available.":"","This comment has been hidden.":"Бұл пікір жасырылды.","This comment has been removed.":"Бұл пікір өшірілді.","Upgrade now":"Жаңарту ","View in admin":"",Yesterday:"Кеше","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Өтінішіңіз сайт иесіне жіберіледі."},aD={"{amount} characters left":"{amount} likę simboliai","{amount} comments":"{amount} komentarai","{amount} hrs ago":"Prieš {amount} val.","{amount} mins ago":"Prieš {amount} min.","{amount} more":"{amount} daugiau","1 comment":"1 komentaras","Add comment":"Rašyti komentarą","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Papildykite savo komentarą, prisistatykite ir pasidalinkite savo turimomis žiniomis, kad paskatintumėte prasmingą diskusiją.","Add reply":"Atsakyti","Add your expertise":"","Already a member?":"Jau turite paskyrą?",Anonymous:"Anoniminis","Are you sure?":"","Become a member of {publication} to start commenting.":"Užsiregistruokite {publication}, kad galėtumėte komentuoti.","Become a paid member of {publication} to start commenting.":"Tapkite {publication} prenumeratoriumi, kad galėtumėte komentuoti.",Best:"",Cancel:"Atšaukti",Comment:"Komentuoti","Commenting disabled":"","Complete your profile":"Pabaikite kurti savo profilį!","Contact support":"",Delete:"Ištrinti",Deleted:"","Deleted member":"Pašalintas narys",Deleting:"",Discussion:"Diskusija",Edit:"Redaguoti","Edit this comment":"Redaguoti šį komentarą",edited:"redaguotas","Enter your name":"Įrašykite savo vardą",Expertise:"Specializacija","for more information.":"","Founder @ Acme Inc":"Istorikas","Full-time parent":"Vaiką prižiūrintis tėvas","Head of Marketing at Acme, Inc":"Tyrinėtojas","Hidden for members":"",Hide:"Paslėpti","Hide comment":"Paslėpti komentarą","Jamie Larson":"Vardenis Pavardenis","Join the discussion":"Prisijunkite prie diskusijos","Just now":"Ką tik","Load more ({amount})":"","Local resident":"Vietinis gyventojas","Member discussion":"Komentarai",Name:"Vardas",Neurosurgeon:"Neurochirurgas",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prieš valandą","One min ago":"Prieš minutę",removed:"","Replied to":"",Reply:"Atsakyti","Reply to":"","Reply to comment":"Atsakyti į komentarą",Report:"Pranešti","Report comment":"Pranešti apie komentarą","Report this comment?":"Pranešti apie šį komentarą?",Save:"Išsaugoti",Sending:"Siunčiama",Sent:"Išsiųsta",Show:"Rodyti","Show {amount} more replies":"Rodyti daugiau atsakymų ({amount})","Show 1 more reply":"Rodyti dar 1 atsakymą","Show comment":"Rodyti komentarą","Sign in":"Prisijungti","Sign up now":"Registruotis","Sort by":"","Start the conversation":"Parašykite pirmąjį komentarą","The linked comment is no longer available.":"","This comment has been hidden.":"Šis komentaras buvo paslėptas.","This comment has been removed.":"Šis komentaras buvo pašalintas.","Upgrade now":"Prenumeruokite","View in admin":"",Yesterday:"Vakar","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Jūsų pranešimas bus išsiųstas svetainės savininkui."},lD={"{amount} characters left":"Atlikušas {amount} rakstzīmes","{amount} comments":"{amount} komentāri","{amount} hrs ago":"pirms {amount} stundām","{amount} mins ago":"Pirms {amount} minūtēm","{amount} more":"Vēl {amount}","1 comment":"1 komentārs","Add comment":"Pievienot komentāru","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Pievienojiet savam komentāram kontekstu, kopīgojiet savu vārdu un zināšanas, lai veicinātu veselīgu diskusiju.","Add reply":"Pievienot atbildi","Add your expertise":"","Already a member?":"Vai jau esat dalībnieks?",Anonymous:"Anonīms","Are you sure?":"Vai esat pārliecināts?","Become a member of {publication} to start commenting.":"Kļūstiet par {publication} dalībnieku, lai sāktu komentēt.","Become a paid member of {publication} to start commenting.":"Kļūstiet par apmaksātu {publication} dalībnieku, lai sāktu komentēt.",Best:"",Cancel:"Atcelt",Comment:"Komentēt","Commenting disabled":"","Complete your profile":"Pabeidziet savu profilu","Contact support":"",Delete:"Dzēst",Deleted:"Izdzēsts","Deleted member":"Dzēsts dalībnieks",Deleting:"Dzēšana",Discussion:"Diskusija",Edit:"Rediģēt","Edit this comment":"Rediģēt šo komentāru",edited:"rediģēts","Enter your name":"Ievadiet savu vārdu",Expertise:"Ekspertīze","for more information.":"","Founder @ Acme Inc":"Dibinātājs @ Acme Inc","Full-time parent":"Pilnas slodzes vecāks","Head of Marketing at Acme, Inc":"Mārketinga vadītājs uzņēmumā Acme, Inc","Hidden for members":"Paslēpts dalībniekiem",Hide:"Slēpt","Hide comment":"Slēpt komentāru","Jamie Larson":"Jānis Reikulis","Join the discussion":"Pievienojieties diskusijai","Just now":"Tikai tagad","Load more ({amount})":"","Local resident":"Vietējais iedzīvotājs","Member discussion":"Biedru diskusija",Name:"Vārds",Neurosurgeon:"Neiroķirurgs",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Pēc dzēšanas šo komentāru nevar atgūt.","One hour ago":"Pirms stundas","One min ago":"Pirms minūtes",removed:"noņemts","Replied to":"Atbildēja uz",Reply:"Atbildēt","Reply to":"Atbildēt uz","Reply to comment":"Atbildēt uz komentāru",Report:"Ziņojums","Report comment":"Ziņot par komentāru","Report this comment?":"Vai ziņot par šo komentāru?",Save:"Saglabāt",Sending:"Notiek nosūtīšana",Sent:"Nosūtīts",Show:"Rādīt","Show {amount} more replies":"Rādīt vēl {amount} atbildes","Show 1 more reply":"Rādīt vēl 1 atbildi","Show comment":"Rādīt komentāru","Sign in":"Pierakstīties","Sign up now":"Reģistrējieties tūlīt","Sort by":"Kārtot pēc","Start the conversation":"Sāciet sarunu","The linked comment is no longer available.":"","This comment has been hidden.":"Šis komentārs ir paslēpts.","This comment has been removed.":"Šis komentārs ir noņemts.","Upgrade now":"Jauniniet tūlīt","View in admin":"",Yesterday:"Vakar","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Jūsu pieprasījums tiks nosūtīts šīs vietnes īpašniekam."},cD={"{amount} characters left":"Преостануваат {amount} знаци.","{amount} comments":"{amount} коментари","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"Уште {amount}","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст за вашиот коментар, споделете го вашето име и експертиза за да одржите пристојна дискусија.","Add reply":"Одговорете","Add your expertise":"","Already a member?":"Веќе сте член?",Anonymous:"Анонимен","Are you sure?":"","Become a member of {publication} to start commenting.":"Станете член на {publication} за да можете да коментирате.","Become a paid member of {publication} to start commenting.":"Станете претплатен член на {publication} за да можеш да коментирате.",Best:"",Cancel:"Откажете",Comment:"Коментирајте","Commenting disabled":"","Complete your profile":"Комплетирајте го вашиот профил","Contact support":"",Delete:"Избришете",Deleted:"","Deleted member":"Избришан член",Deleting:"",Discussion:"Разговор",Edit:"Изменете","Edit this comment":"Изменете го овој коментар",edited:"","Enter your name":"Внесете го вашето име",Expertise:"Експертиза","for more information.":"","Founder @ Acme Inc":"Основач @ Примерна Компанија","Full-time parent":"Родител","Head of Marketing at Acme, Inc":"Раководител на Маркетинг во Примерна Компанија","Hidden for members":"",Hide:"Скријте","Hide comment":"Скријте го коментарот","Jamie Larson":"Петар Петровски","Join the discussion":"Приклучете се во разговорот","Just now":"Штотуку","Load more ({amount})":"","Local resident":"Локал жител","Member discussion":"Разговор на членовите",Name:"Име",Neurosurgeon:"Неврохирург",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Пред еден час","One min ago":"",removed:"","Replied to":"",Reply:"Одговорете","Reply to":"","Reply to comment":"Одговор на коментарот",Report:"Пријавете","Report comment":"Пријавете коментар","Report this comment?":"Пријавете го овој коментар?",Save:"Зачувајте",Sending:"Се испраќа",Sent:"Испратено",Show:"Покажи","Show {amount} more replies":"Покажи уште {amount} одговори","Show 1 more reply":"Покажи уште 1 одговор","Show comment":"Покажи коментар","Sign in":"Најавете се","Sign up now":"Регистрирајте се","Sort by":"","Start the conversation":"Започнете го разговорот","The linked comment is no longer available.":"","This comment has been hidden.":"Овој коментар беше скриен.","This comment has been removed.":"Овој коментар беше отстранет.","Upgrade now":"Надградете","View in admin":"",Yesterday:"Вчера","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Вашето барање ќе биде испратено на сопственикот на оваа страница."},uD={"{amount} characters left":"{amount} тэмдэгт үлдсэн","{amount} comments":"{amount} сэтгэгдэл","{amount} hrs ago":"{amount} цагийн өмнө","{amount} mins ago":"{amount} минутын өмнө","{amount} more":"{amount} илүү","1 comment":"1 сэтгэгдэл","Add comment":"Сэтгэгдэл нэмэх","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Сэтгэгдэлдээ илүү мэдээлэл оруулан, нэр болон мэргэжлээ хуваалцаж, үр бүтээлтэй хэлэлцүүлэг өрнүүлнэ үү.","Add reply":"Хариу нэмэх","Add your expertise":"","Already a member?":"Бүртгэлтэй юу?",Anonymous:"Нууц","Are you sure?":"Та итгэлтэй байна уу?","Become a member of {publication} to start commenting.":"Сэтгэгдэл бичихийн тулд {publication}-н гишүүн болно уу.","Become a paid member of {publication} to start commenting.":"Сэтгэгдэл бичихийн тулд {publication}-н төлбөртэй гишүүн болно уу.",Best:"",Cancel:"Цуцлах",Comment:"Сэтгэгдэл","Commenting disabled":"","Complete your profile":"Профайлаа бүрэн бөглөнө үү","Contact support":"",Delete:"Устгах",Deleted:"Устгагдсан","Deleted member":"Устгагдсан гишүүн",Deleting:"Устгаж байна",Discussion:"Хэлэлцүүлэг",Edit:"Засах","Edit this comment":"Энэхүү сэтгэгдлийг засах",edited:"засагдсан","Enter your name":"Нэрээ оруулна уу",Expertise:"Мэргэжил","for more information.":"","Founder @ Acme Inc":"Acme Inc-н үүсгэн байгуулагч","Full-time parent":"Бүтэн цагийн эцэг/эх","Head of Marketing at Acme, Inc":"Acme, Inc-н маркетингийн удирдлага","Hidden for members":"Гишүүдээс нуугдсан",Hide:"Нуух","Hide comment":"Сэтгэгдлийг нуух","Jamie Larson":"Доржийн Бат","Join the discussion":"Хэлэлцүүлэгт нэгдэх","Just now":"Дөнгөж сая","Load more ({amount})":"Дахин харах ({amount})","Local resident":"Орон нутгийн оршин суугч","Member discussion":"Гишүүдийн хэлэлцүүлэг",Name:"Нэр",Neurosurgeon:"Мэдрэлийн мэс засалч",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Устгасны дараа энэ сэтгэгдлийг сэргээх боломжгүй.","One hour ago":"Нэг цагийн өмнө","One min ago":"Нэг минутын өмнө",removed:"хасагдсан","Replied to":"Хариулсан",Reply:"Хариулах","Reply to":"Хариулах","Reply to comment":"Сэтгэгдэлд хариулах",Report:"Мэдэгдэх","Report comment":"Сэтгэгдлийг мэдэгдэх","Report this comment?":"Энэ сэтгэгдлийг мэдэгдэх үү?",Save:"Хадгалах",Sending:"Илгээж байна",Sent:"Илгээгдсэн",Show:"Харуулах","Show {amount} more replies":"{amount} хариултыг харуулах","Show 1 more reply":"1 хариултыг харуулах","Show comment":"Сэтгэгдлийг харуулах","Sign in":"Нэвтрэх","Sign up now":"Одоо бүртгүүлэх","Sort by":"Эрэмбэлэх","Start the conversation":"Яриаг эхлүүлэх","The linked comment is no longer available.":"","This comment has been hidden.":"Энэ сэтгэгдэл нуугдсан.","This comment has been removed.":"Энэ сэтгэгдэл хасагдсан.","Upgrade now":"Одоо шинэчлэх","View in admin":"",Yesterday:"Өчигдөр","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Таны хүсэлт энэ сайтын эзэмшигч рүү илгээгдэнэ."},dD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"","Contact support":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","for more information.":"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":""},mD={"{amount} characters left":"{amount} tegn igjen","{amount} comments":"{amount} kommentarer","{amount} hrs ago":"{amount} timer siden","{amount} mins ago":"{amount} minutter siden","{amount} more":"{amount} mer","1 comment":"1 kommentar","Add comment":"Legg til kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Legg til kontekst i kommentaren din, del navnet ditt og ekspertisen din for å fremme en god diskusjon.","Add reply":"Legg til svar","Add your expertise":"","Already a member?":"Allerede medlem?",Anonymous:"Anonym","Are you sure?":"Er du sikker?","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 et betalende medlem av {publication} for å begynne å kommentere.",Best:"",Cancel:"Avbryt",Comment:"Kommentar","Commenting disabled":"","Complete your profile":"Fullfør profilen din","Contact support":"",Delete:"Slett",Deleted:"Slettet","Deleted member":"Slettet medlem",Deleting:"Sletter",Discussion:"Diskusjon",Edit:"Rediger","Edit this comment":"Rediger denne kommentaren",edited:"redigert","Enter your name":"Skriv inn navnet ditt",Expertise:"Ekspertise","for more information.":"","Founder @ Acme Inc":"Grunnlegger @ Acme Inc","Full-time parent":"Forelder på heltid","Head of Marketing at Acme, Inc":"Markedsføringsleder hos Acme Inc","Hidden for members":"Skjult for medlemmer",Hide:"Skjul","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Delta i diskusjonen","Just now":"Akkurat nå","Load more ({amount})":"Last inn flere ({amount})","Local resident":"Lokal innbygger","Member discussion":"Medlemsdiskusjon",Name:"Navn",Neurosurgeon:"Nevrokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"En time siden","One min ago":"Ett minutt siden",removed:"fjernet","Replied to":"Svarte",Reply:"Svar","Reply to":"Svar på","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 1 more reply":"Vis ett svar til","Show comment":"Vis kommentar","Sign in":"Logg inn","Sign up now":"Registrer deg nå","Sort by":"Sorter etter","Start the conversation":"Start samtalen","The linked comment is no longer available.":"","This comment has been hidden.":"Denne kommentaren er skjult.","This comment has been removed.":"Denne kommentaren er fjernet.","Upgrade now":"Oppgrader nå","View in admin":"",Yesterday:"I går","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Din forespørsel vil bli sendt til eieren av dette nettstedet."},fD={"{amount} characters left":"{amount} अक्षर बाँकी","{amount} comments":"{amount} प्रतिक्रियाहरू","{amount} hrs ago":"{amount} घण्टा अघि","{amount} mins ago":"{amount} मिनेट अघि","{amount} more":"{amount} थप","1 comment":"१ प्रतिक्रिया","Add comment":"प्रतिक्रिया थप्नुहोस्","Add context to your comment, share your name and expertise to foster a healthy discussion.":"आफ्नो प्रतिक्रियालाई सन्दर्भ दिनुहोस्, स्वस्थ छलफलको लागि आफ्नो नाम र विशेषज्ञता साझा गर्नुहोस्।","Add reply":"प्रत्युत्तर थप्नुहोस्","Add your expertise":"आफ्नो विशेषज्ञता थप्नुहोस्","Already a member?":"पहिले नै सदस्य हुनुहुन्छ?",Anonymous:"अज्ञात","Are you sure?":"के तपाईं निश्चित हुनुहुन्छ?","Become a member of {publication} to start commenting.":"प्रतिक्रिया सुरु गर्न {publication} को सदस्य बन्नुहोस्।","Become a paid member of {publication} to start commenting.":"प्रतिक्रिया सुरु गर्न {publication} को सशुल्क सदस्य बन्नुहोस्।",Best:"उत्तम",Cancel:"रद्द गर्नुहोस्",Comment:"प्रतिक्रिया","Commenting disabled":"","Complete your profile":"आफ्नो प्रोफाइल पूरा गर्नुहोस्","Contact support":"",Delete:"मेटाउनुहोस्",Deleted:"मेटाइयो","Deleted member":"मेटाइएको सदस्य",Deleting:"मेटाइँदैछ",Discussion:"छलफल",Edit:"सम्पादन","Edit this comment":"यो प्रतिक्रिया सम्पादन गर्नुहोस्",edited:"सम्पादित","Enter your name":"आफ्नो नाम प्रविष्ट गर्नुहोस्",Expertise:"विशेषज्ञता","for more information.":"","Founder @ Acme Inc":"संस्थापक @ Acme Inc","Full-time parent":"पूर्ण-कालीन अभिभावक","Head of Marketing at Acme, Inc":"Acme, Inc मा मार्केटिङ प्रमुख","Hidden for members":"सदस्यहरूका लागि लुकाइएको",Hide:"लुकाउनुहोस्","Hide comment":"प्रतिक्रिया लुकाउनुहोस्","Jamie Larson":"जेमी लार्सन","Join the discussion":"छलफलमा सामेल हुनुहोस्","Just now":"भर्खरै","Load more ({amount})":"थप लोड गर्नुहोस् ({amount})","Local resident":"स्थानीय बासिन्दा","Member discussion":"सदस्य छलफल",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन",Newest:"सबैभन्दा नयाँ",Oldest:"सबैभन्दा पुरानो","Once deleted, this comment can’t be recovered.":"एक पटक मेटाइएपछि, यो प्रतिक्रिया पुन: प्राप्त गर्न सकिँदैन।","One hour ago":"एक घण्टा अघि","One min ago":"एक मिनेट अघि",removed:"हटाइयो","Replied to":"प्रत्युत्तर दिइयो",Reply:"प्रत्युत्तर दिनुहोस्","Reply to":"प्रत्युत्तर दिनुहोस्","Reply to comment":"प्रतिक्रियाको प्रत्युत्तर दिनुहोस्",Report:"रिपोर्ट गर्नुहोस्","Report comment":"प्रतिक्रिया रिपोर्ट गर्नुहोस्","Report this comment?":"यो प्रतिक्रिया रिपोर्ट गर्नुहुन्छ?",Save:"बचत गर्नुहोस्",Sending:"पठाइँदैछ",Sent:"पठाइयो",Show:"देखाउनुहोस्","Show {amount} more replies":"थप {amount} प्रत्युत्तरहरू देखाउनुहोस्","Show 1 more reply":"थप १ प्रत्युत्तर देखाउनुहोस्","Show comment":"प्रतिक्रिया देखाउनुहोस्","Sign in":"साइन इन गर्नुहोस्","Sign up now":"अहिले दर्ता गर्नुहोस्","Sort by":"क्रमबद्ध गर्नुहोस्","Start the conversation":"कुराकानी सुरु गर्नुहोस्","The linked comment is no longer available.":"","This comment has been hidden.":"यो प्रतिक्रिया लुकाइएको छ।","This comment has been removed.":"यो प्रतिक्रिया हटाइएको छ।","Upgrade now":"अहिले अपग्रेड गर्नुहोस्","View in admin":"",Yesterday:"हिजो","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"तपाईंको अनुरोध यस साइटको मालिकलाई पठाइनेछ।"},pD={"{amount} characters left":"Nog {amount} tekens over","{amount} comments":"{amount} reacties","{amount} hrs ago":"{amount} uur geleden","{amount} mins ago":"{amount} min geleden","{amount} more":"Nog {amount}","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","Add your expertise":"","Already a member?":"Al lid?",Anonymous:"Anoniem","Are you sure?":"Weet je het zeker?","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.",Best:"",Cancel:"Annuleren",Comment:"Verstuur","Commenting disabled":"","Complete your profile":"Vervolledig jouw profiel","Contact support":"",Delete:"Verwijderen",Deleted:"Verwijderd","Deleted member":"Verwijderd lid",Deleting:"Wordt verwijderd",Discussion:"Gesprek",Edit:"Bewerken","Edit this comment":"Bewerk deze reactie",edited:"bewerkt","Enter your name":"Vul je naam in",Expertise:"Expertise","for more information.":"","Founder @ Acme Inc":"Oprichter, Acme BV","Full-time parent":"Full-time ouder","Head of Marketing at Acme, Inc":"Acme BV, Hoofd Marketing","Hidden for members":"Verborgen voor leden",Hide:"Verbergen","Hide comment":"Verberg reactie","Jamie Larson":"Jan Jansen","Join the discussion":"Doe mee aan het gesprek","Just now":"Zojuist","Load more ({amount})":"Laad meer ({amount})","Local resident":"Lokale bewoner","Member discussion":"Gesprek",Name:"Naam",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Eenmaal verwijderd, kan deze reactie niet meer worden hersteld.","One hour ago":"Eén uur geleden","One min ago":"Eén min geleden",removed:"verwijderd","Replied to":"Geantwoord op",Reply:"Beantwoorden","Reply to":"Antwoord op","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 1 more reply":"Toon nog 1 antwoord","Show comment":"Toon reactie","Sign in":"Inloggen","Sign up now":"Registreren","Sort by":"Sorteren op","Start the conversation":"Begin het gesprek","The linked comment is no longer available.":"","This comment has been hidden.":"Deze reactie is verborgen.","This comment has been removed.":"Deze reactie is verwijderd.","Upgrade now":"Upgrade nu","View in admin":"",Yesterday:"Gisteren","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Jouw melding zal worden verzonden naar de eigenaar van deze site."},hD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"","Contact support":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","for more information.":"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":""},gD={"{amount} characters left":"{amount} ਅੱਖਰ ਬਾਕੀ","{amount} comments":"{amount} ਟਿੱਪਣੀਆਂ","{amount} hrs ago":"{amount} ਘੰਟੇ ਪਹਿਲਾਂ","{amount} mins ago":"{amount} ਮਿੰਟ ਪਹਿਲਾਂ","{amount} more":"{amount} ਹੋਰ","1 comment":"1 ਟਿੱਪਣੀ","Add comment":"ਟਿੱਪਣੀ ਸ਼ਾਮਲ ਕਰੋ","Add context to your comment, share your name and expertise to foster a healthy discussion.":"ਆਪਣੀ ਟਿੱਪਣੀ ਵਿੱਚ ਸੰਦਰਭ ਸ਼ਾਮਲ ਕਰੋ, ਸਿਹਤਮੰਦ ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਨੂੰ ਉਤਸ਼ਾਹਿਤ ਕਰਨ ਲਈ ਆਪਣਾ ਨਾਮ ਅਤੇ ਮੁਹਾਰਤ ਸਾਂਝੀ ਕਰੋ।","Add reply":"ਜਵਾਬ ਸ਼ਾਮਲ ਕਰੋ","Add your expertise":"ਆਪਣੀ ਮੁਹਾਰਤ ਸ਼ਾਮਲ ਕਰੋ","Already a member?":"ਪਹਿਲਾਂ ਤੋਂ ਹੀ ਮੈਂਬਰ ਹੋ?",Anonymous:"ਗੁਮਨਾਮ","Are you sure?":"ਕੀ ਤੁਹਾਨੂੰ ਯਕੀਨ ਹੈ?","Become a member of {publication} to start commenting.":"{publication} ਦੇ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।","Become a paid member of {publication} to start commenting.":"{publication} ਦੇ ਸਹਿਯੋਗੀ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।",Best:"ਸਭ ਤੋਂ ਵਧੀਆ",Cancel:"ਰੱਦ ਕਰੋ",Comment:"ਟਿੱਪਣੀ","Commenting disabled":"","Complete your profile":"ਆਪਣਾ ਨਿੱਜੀ ਪੰਨਾ ਪੂਰਾ ਕਰੋ","Contact support":"",Delete:"ਮਿਟਾਓ",Deleted:"ਮਿਟਾਇਆ ਗਿਆ","Deleted member":"ਮਿਟਾਇਆ ਗਿਆ ਮੈਂਬਰ",Deleting:"ਮਿਟਾਇਆ ਜਾ ਰਿਹਾ ਹੈ",Discussion:"ਵਿਚਾਰ-ਵਟਾਂਦਰਾ",Edit:"ਸੰਪਾਦਿਤ ਕਰੋ","Edit this comment":"ਇਸ ਟਿੱਪਣੀ ਨੂੰ ਸੰਪਾਦਿਤ ਕਰੋ",edited:"ਸੰਪਾਦਿਤ","Enter your name":"ਆਪਣਾ ਨਾਮ ਦਰਜ ਕਰੋ",Expertise:"ਮੁਹਾਰਤ","for more information.":"","Founder @ Acme Inc":"ਸੰਸਥਾਪਕ @ ਫਲਾਣੀ ਕੰਪਨੀ","Full-time parent":"ਘਰੇਲੂ ਮਾਪਾ","Head of Marketing at Acme, Inc":"ਮਾਰਕੀਟਿੰਗ ਮੁਖੀ, ਫਲਾਣੀ ਕੰਪਨੀ ਵਿਖੇ","Hidden for members":"ਮੈਂਬਰਾਂ ਲਈ ਛੁਪਾਇਆ ਗਿਆ",Hide:"ਛੁਪਾਓ","Hide comment":"ਟਿੱਪਣੀ ਛੁਪਾਓ","Jamie Larson":"ਫਲਾਣਾ ਫਲਾਣੀ","Join the discussion":"ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਵਿੱਚ ਸ਼ਾਮਲ ਹੋਵੋ","Just now":"ਹੁਣੇ ਹੁਣੇ","Load more ({amount})":"ਹੋਰ ਲੋਡ ਕਰੋ ({amount})","Local resident":"ਸਥਾਨਕ ਨਿਵਾਸੀ","Member discussion":"ਮੈਂਬਰ ਵਿਚਾਰ-ਵਟਾਂਦਰਾ",Name:"ਨਾਮ",Neurosurgeon:"ਨਿਊਰੋਸਰਜਨ",Newest:"ਸਭ ਤੋਂ ਨਵਾਂ",Oldest:"ਸਭ ਤੋਂ ਪੁਰਾਣਾ","Once deleted, this comment can’t be recovered.":"ਇੱਕ ਵਾਰ ਮਿਟਾਉਣ ਤੋਂ ਬਾਅਦ, ਇਹ ਟਿੱਪਣੀ ਮੁੜ ਪ੍ਰਾਪਤ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕਦੀ।","One hour ago":"ਇੱਕ ਘੰਟਾ ਪਹਿਲਾਂ","One min ago":"ਇੱਕ ਮਿੰਟ ਪਹਿਲਾਂ",removed:"ਹਟਾਇਆ ਗਿਆ","Replied to":"ਨੂੰ ਜਵਾਬ ਦਿੱਤਾ",Reply:"ਜਵਾਬ","Reply to":"ਨੂੰ ਜਵਾਬ ਦਿਓ","Reply to comment":"ਟਿੱਪਣੀ ਦਾ ਜਵਾਬ ਦਿਓ",Report:"ਰਿਪੋਰਟ ਕਰੋ","Report comment":"ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰੋ","Report this comment?":"ਕੀ ਇਸ ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰਨੀ ਹੈ?",Save:"ਸੁਰੱਖਿਅਤ ਕਰੋ",Sending:"ਭੇਜਿਆ ਜਾ ਰਿਹਾ ਹੈ",Sent:"ਭੇਜ ਦਿੱਤਾ ਗਿਆ",Show:"ਦਿਖਾਓ","Show {amount} more replies":"{amount} ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ","Show 1 more reply":"1 ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ","Show comment":"ਟਿੱਪਣੀ ਦਿਖਾਓ","Sign in":"ਸਾਈਨ ਇਨ ਕਰੋ","Sign up now":"ਹੁਣੇ ਸਾਈਨ ਅੱਪ ਕਰੋ","Sort by":"ਇਸ ਅਨੁਸਾਰ ਕ੍ਰਮਬੱਧ ਕਰੋ","Start the conversation":"ਗੱਲਬਾਤ ਸ਼ੁਰੂ ਕਰੋ","The linked comment is no longer available.":"","This comment has been hidden.":"ਇਹ ਟਿੱਪਣੀ ਛੁਪਾ ਦਿੱਤੀ ਗਈ ਹੈ।","This comment has been removed.":"ਇਹ ਟਿੱਪਣੀ ਹਟਾ ਦਿੱਤੀ ਗਈ ਹੈ।","Upgrade now":"ਹੁਣੇ ਅੱਪਗਰੇਡ ਕਰੋ","View in admin":"",Yesterday:"ਕੱਲ੍ਹ","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"ਤੁਹਾਡੀ ਬੇਨਤੀ ਇਸ ਸਾਈਟ ਦੇ ਸੰਚਾਲਕ ਨੂੰ ਭੇਜੀ ਜਾਵੇਗੀ।"},yD={"{amount} characters left":"Pozostało {amount} znaków","{amount} comments":"{amount} komentarzy","{amount} hrs ago":"{amount} godzin temu","{amount} mins ago":"{amount} minut temu","{amount} more":"{amount} więcej","1 comment":"1 komentarz","Add comment":"Dodaj komentarz","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodaj więcej informacji do Twojego komentarza, następnie udostępnij proszę Twoje imię i doświadczenie w celu wzbogacenia jakości dyskusji.","Add reply":"Dodaj odpowiedź","Add your expertise":"","Already a member?":"Posiadasz już konto?",Anonymous:"Anonimowy","Are you sure?":"Czy jesteś pewien?","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 społeczności płatnych subskrybentów {publication}, by zacząć komentować.",Best:"",Cancel:"Anuluj",Comment:"Skomentuj","Commenting disabled":"","Complete your profile":"Skompletuj Twój profil","Contact support":"",Delete:"Usuń",Deleted:"Usunięto","Deleted member":"Usunięte konto",Deleting:"Usuwanie",Discussion:"Dyskusja",Edit:"Edytuj","Edit this comment":"Edytuj komentarz",edited:"edytowano","Enter your name":"Podaj Twoje imię",Expertise:"Doświadczenie","for more information.":"","Founder @ Acme Inc":"Founder @ Acme Inc","Full-time parent":"Pełnoetatowy rodzic","Head of Marketing at Acme, Inc":"Head of Marketing at Acme, Inc","Hidden for members":"Ukryte dla członków",Hide:"Ukryj","Hide comment":"Ukryj komentarz","Jamie Larson":"Jamie Larson","Join the discussion":"Dołącz do dyskusji","Just now":"Przed chwilą","Load more ({amount})":"Załaduj więcej ({amount})","Local resident":"Lokalny rezydent","Member discussion":"Członek dyskusji",Name:"Imię",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Po usunięciu, nie będzie możliwe przywrócenie tego komentarza","One hour ago":"Godzinę temu","One min ago":"Minutę temu",removed:"usunięte","Replied to":"Odpowiedź na",Reply:"Odpowiedz","Reply to":"Odpowiedz na","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:"Pokaż","Show {amount} more replies":"Pokaż {amount} kolejnych odpowiedzi","Show 1 more reply":"Pokaż następną odpowiedź","Show comment":"Pokaż komentarz","Sign in":"Zaloguj się","Sign up now":"Zarejestruj się","Sort by":"Sortuj według","Start the conversation":"Rozpocznij dyskusję","The linked comment is no longer available.":"","This comment has been hidden.":"Komentarz został ukryty.","This comment has been removed.":"Komentarz został usunięty.","Upgrade now":"Ulepsz teraz","View in admin":"",Yesterday:"Wczoraj","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Twoje zgłoszenie zostało przesłane do administratora strony."},bD={"{amount} characters left":"Faltam {amount} caracteres ","{amount} comments":"{amount} comentários","{amount} hrs ago":"{amount} horas atrás","{amount} mins ago":"{amount} minutos atrás","{amount} more":"mais","1 comment":"Um comentário","Add comment":"Adicionar comentário","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adicione o seu comentário, partilhe o seu nome e expriência de modo a promover uma discussão saudável.","Add reply":"Adicionar resposta","Add your expertise":"","Already a member?":"Já é membro?",Anonymous:"Anónimo","Are you sure?":"Tem a certeza?","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. ",Best:"Melhores",Cancel:"Cancelar",Comment:"Comentar","Commenting disabled":"","Complete your profile":"Complete o seu perfil","Contact support":"",Delete:"Eliminar",Deleted:"Eliminado","Deleted member":"Membro eliminado",Deleting:"Eliminando",Discussion:"Discussão",Edit:"Editar","Edit this comment":"Editar este comentário",edited:"editado","Enter your name":"Insira o seu nome",Expertise:"Perícia","for more information.":"","Founder @ Acme Inc":"Fundador @ Amce Inc","Full-time parent":"Pai a tempo inteiro","Head of Marketing at Acme, Inc":"Responsável do Marketing @ Amce, Inc","Hidden for members":"Oculto para membros",Hide:"Esconder","Hide comment":"Esconder comentário","Jamie Larson":"Jane Doe","Join the discussion":"Junte-se à discussão","Just now":"Agora","Load more ({amount})":"","Local resident":"Residente local","Member discussion":"Discussão para membros",Name:"Nome",Neurosurgeon:"neurocirurgião",Newest:"Mais recentes",Oldest:"Mais antigos","Once deleted, this comment can’t be recovered.":"","One hour ago":"uma hora atrás","One min ago":"um minuto atrás",removed:"removido","Replied to":"Respondeu a",Reply:"Responder","Reply to":"Responder a","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 1 more reply":"Mostrar mais uma resposta","Show comment":"Mostrar comentário","Sign in":"Registar","Sign up now":"Registar agora","Sort by":"Organizar por","Start the conversation":"Comece a conversa","The linked comment is no longer available.":"","This comment has been hidden.":"Este comentário foi ocultado","This comment has been removed.":"Este comentário foi removido","Upgrade now":"Atualize agora","View in admin":"",Yesterday:"Ontem","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"O seu pedido será enviado para o dono deste site."},wD={"{amount} characters left":"{amount} caracteres restantes","{amount} comments":"{amount} comentários","{amount} hrs ago":"{amount} horas atrás","{amount} mins ago":"{amount} minutos atrás","{amount} more":"{amount} mais","1 comment":"1 comentário","Add comment":"Adicionar comentário","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adicione contexto ao seu comentário, compartilhe seu nome e sua especialidade para promover uma discussão saudável.","Add reply":"Adicionar resposta","Add your expertise":"Adicione sua especialidade","Already a member?":"Já é um membro?",Anonymous:"Anônimo","Are you sure?":"Você tem certeza?","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.",Best:"Melhores",Cancel:"Cancelar",Comment:"Comentar","Commenting disabled":"","Complete your profile":"Complete seu perfil","Contact support":"",Delete:"Excluir",Deleted:"Excluído","Deleted member":"Membro excluído",Deleting:"Excluindo",Discussion:"Discussão",Edit:"Editar","Edit this comment":"Editar este comentário",edited:"editado","Enter your name":"Digite seu nome",Expertise:"Especialidade","for more information.":"","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Pai/Mãe em tempo integral","Head of Marketing at Acme, Inc":"Chefe de Marketing na Acme, Inc","Hidden for members":"Oculto para membros",Hide:"Ocultar","Hide comment":"Ocultar comentário","Jamie Larson":"Cris Silva","Join the discussion":"Participe da discussão","Just now":"Agora mesmo","Load more ({amount})":"Carregar mais ({amount})","Local resident":"Residente local","Member discussion":"Discussão entre membros",Name:"Nome",Neurosurgeon:"Neurocirurgião",Newest:"Mais Recentes",Oldest:"Mais Antigos","Once deleted, this comment can’t be recovered.":"Após ser excluído, esse comentário não poderá ser recuperado.","One hour ago":"Uma hora atrás","One min ago":"Um minuto atrás",removed:"removido","Replied to":"Respondeu a",Reply:"Responder","Reply to":"Responder a","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:"Exibir","Show {amount} more replies":"Exibir mais {amount} respostas","Show 1 more reply":"Exibir 1 resposta adicional","Show comment":"Exibir comentário","Sign in":"Entrar","Sign up now":"Inscreva-se agora","Sort by":"Ordenar por","Start the conversation":"Iniciar a conversa","The linked comment is no longer available.":"","This comment has been hidden.":"Este comentário foi ocultado.","This comment has been removed.":"Este comentário foi removido.","Upgrade now":"Atualize agora","View in admin":"",Yesterday:"Ontem","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Sua solicitação será enviada ao proprietário deste site."},vD={"{amount} characters left":"{amount} caractere rămase","{amount} comments":"{amount} comentarii","{amount} hrs ago":"acum {amount} ore","{amount} mins ago":"acum {amount} minute","{amount} more":"încă {amount}","1 comment":"1 comentariu","Add comment":"Adaugă comentariu","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adăugați context comentariului dumneavoastră, împărtășiți-vă numele și expertiza pentru a favoriza o discuție sănătoasă.","Add reply":"Adaugă răspuns","Add your expertise":"","Already a member?":"Deja membru?",Anonymous:"Anonim","Are you sure?":"","Become a member of {publication} to start commenting.":"Deveniți membru al {publication} pentru a începe să comentați.","Become a paid member of {publication} to start commenting.":"Deveniți membru plătit al {publication} pentru a începe să comentați.",Best:"",Cancel:"Anulează",Comment:"Comentează","Commenting disabled":"","Complete your profile":"Completează-ți profilul","Contact support":"",Delete:"Șterge",Deleted:"","Deleted member":"Membru șters",Deleting:"",Discussion:"Discuție",Edit:"Editează","Edit this comment":"Editează acest comentariu",edited:"editat","Enter your name":"Introduceți numele dumneavoastră",Expertise:"Expertiză","for more information.":"","Founder @ Acme Inc":"Fondator @ Acme Inc","Full-time parent":"Părinte cu normă întreagă","Head of Marketing at Acme, Inc":"Șef de Marketing la Acme, Inc","Hidden for members":"",Hide:"Ascunde","Hide comment":"Ascunde comentariul","Jamie Larson":"Jamie Larson","Join the discussion":"Alătură-te discuției","Just now":"Chiar acum","Load more ({amount})":"","Local resident":"Rezident local","Member discussion":"Discuție membrii",Name:"Nume",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Acum o oră","One min ago":"Acum un minut",removed:"","Replied to":"",Reply:"Răspunde","Reply to":"","Reply to comment":"Răspunde la comentariu",Report:"Raportează","Report comment":"Raportează comentariul","Report this comment?":"Raportezi acest comentariu?",Save:"Salvează",Sending:"Se trimite",Sent:"Trimis",Show:"Arată","Show {amount} more replies":"Arată încă {amount} răspunsuri","Show 1 more reply":"Arată încă un răspuns","Show comment":"Arată comentariul","Sign in":"Autentificare","Sign up now":"Înregistrează-te acum","Sort by":"Ordonează după","Start the conversation":"Începe conversația","The linked comment is no longer available.":"","This comment has been hidden.":"Acest comentariu a fost ascuns.","This comment has been removed.":"Acest comentariu a fost eliminat.","Upgrade now":"Actualizează acum","View in admin":"",Yesterday:"Ieri","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Cererea dumneavoastră va fi trimisă proprietarului acestui site."},$D={"{amount} characters left":"{amount} символа(ов) осталось","{amount} comments":"{amount} комментария(ев)","{amount} hrs ago":"{amount} ч. назад","{amount} mins ago":"{amount} мин. назад","{amount} more":"ещё {amount}","1 comment":"1 комментарий","Add comment":"Добавить комментарий","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Дополните свой комментарий контекстом, добавив подробности о себе и своём опыте, чтобы обсуждение стало более интересным.","Add reply":"Добавить ответ","Add your expertise":"Добавить свой опыт","Already a member?":"Уже присоединились?",Anonymous:"Анонимный","Are you sure?":"Вы уверены?","Become a member of {publication} to start commenting.":"Присоединяйтесь к {publication} чтобы начать комментировать.","Become a paid member of {publication} to start commenting.":"Станьте платным участником {publication} чтобы начать комментировать.",Best:"Лучший",Cancel:"Отмена",Comment:"Комментарий","Commenting disabled":"","Complete your profile":"Заполните свой профиль","Contact support":"",Delete:"Удалить",Deleted:"Удалено","Deleted member":"Удалённый участник",Deleting:"Удаление",Discussion:"Обсуждение",Edit:"Редактировать","Edit this comment":"Редактировать этот комментарий",edited:"Отредактированно","Enter your name":"Введите ваше имя",Expertise:"Деятельность","for more information.":"","Founder @ Acme Inc":"Основатель @ Корпорация «Акме»","Full-time parent":"Родитель, работающий полный рабочий день","Head of Marketing at Acme, Inc":"Руководитель отдела маркетинга в Корпорации «Акме»","Hidden for members":"Скрыто для участников",Hide:"Скрыть","Hide comment":"Скрыть комментарий","Jamie Larson":"Павел Бид","Join the discussion":"Присоединиться к обсуждению","Just now":"Сейчас","Load more ({amount})":"Загрузить ещё ({amount})","Local resident":"Местный житель","Member discussion":"Обсуждение участников",Name:"Имя",Neurosurgeon:"Нейрохирург",Newest:"Сначала новые",Oldest:"Сначала старые","Once deleted, this comment can’t be recovered.":"После удаления этот комментарий не может быть восстановлен.","One hour ago":"Час назад","One min ago":"Минуту назад",removed:"удалён","Replied to":"Ответ на",Reply:"Ответить","Reply to":"Ответить на","Reply to comment":"Ответить на комментарий",Report:"Пожаловаться","Report comment":"Пожаловаться на комментарий","Report this comment?":"Пожаловаться на этот комментарий?",Save:"Сохранить",Sending:"Отправка",Sent:"Отправлено",Show:"Показать","Show {amount} more replies":"Показать ещё {amount} ответа(ов)","Show 1 more reply":"Показать ответ","Show comment":"Показать комментарий","Sign in":"Войти","Sign up now":"Зарегистрироваться","Sort by":"Сортировать по","Start the conversation":"Начать обсуждение","The linked comment is no longer available.":"","This comment has been hidden.":"Этот комментарий скрыт","This comment has been removed.":"Этот комментарий был удалён","Upgrade now":"Улучшить подписку","View in admin":"",Yesterday:"Вчера","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Ваш запрос будет отправлен владельцу сайта."},SD={"{amount} characters left":"තව වචන {amount} යි.","{amount} comments":"අදහ​ස් {amount} යි.","{amount} hrs ago":"පැය {amount} ට පෙ​ර","{amount} mins ago":"මිනිත්තු {amount} ට පෙ​ර","{amount} more":"","1 comment":"1 අදහසයි.","Add comment":"අදහස් එකතු කරන්​න","Add context to your comment, share your name and expertise to foster a healthy discussion.":"ඉතා හො​ඳ සාකච්ඡාවක් රැගෙ​න යාම සඳහා ඔබේ අදහසට අන්තර්ගත​ය එක් කර ඔබේ නම සහ විශේෂඥතාව බෙදා ගන්න","Add reply":"ප්‍රතිචාර එකතු කරන්​න","Add your expertise":"","Already a member?":"දැනටමත් සාමාජිකයෙක්ද ?",Anonymous:"නිර්නාමික","Are you sure?":"","Become a member of {publication} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි සාමාජිකයෙකු වන්න","Become a paid member of {publication} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි ගෙවීම් කරන ල​ද සාමාජිකයෙකු වන්න",Best:"",Cancel:"අවලංගු කරන්​න​",Comment:"අදහ​ස","Commenting disabled":"","Complete your profile":"ඔබගේ ගිණුම සම්පූර්ණ කරන්​න","Contact support":"",Delete:"Delete කරන්​න",Deleted:"","Deleted member":"සාමාජිකයාව delete කරන්​න",Deleting:"",Discussion:"සාකච්ඡා​ව",Edit:"සංස්කරණය කරන්න","Edit this comment":"අදහස සංස්කරණය කරන්න",edited:"සංස්කරණය කරන ලද.","Enter your name":"ඔබගේ නම සඳහන් කරන්​න",Expertise:"විශේෂඥතාව","for more information.":"","Founder @ Acme Inc":"Acme Inc හි නිර්මාතෘ","Full-time parent":"පූර්ණ කාලීන භාරකරුව​න්","Head of Marketing at Acme, Inc":"Acme, Inc හි අලෙවි ප්‍රධානී","Hidden for members":"",Hide:"සඟවන්න","Hide comment":"අදහස සඟවන්න","Jamie Larson":"ජේමි ලාර්සන්","Join the discussion":"සාකච්ඡාවට එක්වන්න","Just now":"මේ දැ​න්","Load more ({amount})":"","Local resident":"දේශීය පදිංචි","Member discussion":"සාමාජික සාකච්ඡාව",Name:"න​ම",Neurosurgeon:"ස්නායු ශ​ල්‍ය වෛ​ද්‍ය",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"පැයකට පෙ​ර","One min ago":"මිනිත්තුවකට පෙ​ර",removed:"","Replied to":"",Reply:"ප්‍රතිචාර දක්වන්​න","Reply to":"","Reply to comment":"අදහසට ‍රතිචාර දක්වන්​න",Report:"වාර්තා කරන්​න","Report comment":"අදහසට වාර්තා කරන්​න","Report this comment?":"මෙම අදහසට වාර්තා කරන්නෙහිද ?",Save:"සුරකින්​න",Sending:"යවමි​න්",Sent:"යැව්වා",Show:"පෙන්වන්​න","Show {amount} more replies":"තවත් පිළිතුරු {amount} පෙන්වන්න","Show 1 more reply":"තවත් පිළිතුරු 1ක් පෙන්වන්න","Show comment":"අදහස පෙන්වන්න","Sign in":"Sign in වෙන්​න","Sign up now":"දැන්ම Sign up වෙන්​න","Sort by":"","Start the conversation":"සංවාදය ආරම්භ කරන්න","The linked comment is no longer available.":"","This comment has been hidden.":"මෙම අදහස සඟවා ඇත.","This comment has been removed.":"මෙම අදහස ඉවත් කර ඇත.","Upgrade now":"දැන් upgrade කරන්න","View in admin":"",Yesterday:"ඊ​යෙ","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"ඔබගේ ඉල්ලීම මෙම අඩවියේ හිමිකරු වෙත යවනු ලැබේ."},kD={"{amount} characters left":"Zostáva {amount} znakov","{amount} comments":"{amount} komentárov","{amount} hrs ago":"Pred {amount} hodinami","{amount} mins ago":"Pred {amount} minútami","{amount} more":"{amount} ďalších","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ášho komentára, zdielajte svoje meno, a odbornosť pre podporu zdravej diskusie.","Add reply":"Pridať odpoveď","Add your expertise":"","Already a member?":"Už ste členom?",Anonymous:"Anonym","Are you sure?":"Ste si istý?","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ť",Best:"",Cancel:"Zrušiť",Comment:"Komentár","Commenting disabled":"","Complete your profile":"Dokončite váš profil","Contact support":"",Delete:"Vymazať",Deleted:"Vymazané","Deleted member":"Vymazaný člen",Deleting:"Vymazávam",Discussion:"Diskusia",Edit:"Upraviť","Edit this comment":"Upraviť komentár",edited:"upravený","Enter your name":"Zadajte vaše meno",Expertise:"Odbornosť","for more information.":"","Founder @ Acme Inc":"Zakladateľ @ Acme Inc","Full-time parent":"Rodič na plný úväzok","Head of Marketing at Acme, Inc":"Vedúci marketingu v spoločnosti Acme, Inc","Hidden for members":"Skryté pre členov",Hide:"Skryť","Hide comment":"Skryť komentár","Jamie Larson":"Jamie Larson","Join the discussion":"Zapojiť sa do diskusie","Just now":"Teraz","Load more ({amount})":"","Local resident":"Miestny obyvateľ","Member discussion":"Členská diskusia",Name:"Meno",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Po odstránení nebude možné tento komentár obnoviť.","One hour ago":"Pred hodinou","One min ago":"Pred minútou",removed:"odstránené","Replied to":"Odpoveď na",Reply:"Odpovedať","Reply to":"Odpovedať na","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 1 more reply":"Zobraziť 1 ďalšiu odpoveď","Show comment":"Zobraziť komentár","Sign in":"Prihlásiť","Sign up now":"Registrovať sa","Sort by":"Triediť podľa","Start the conversation":"Začať konverzáciu","The linked comment is no longer available.":"","This comment has been hidden.":"Tento komentár bol skrytý.","This comment has been removed.":"Tento komentár bol vymazaný.","Upgrade now":"Upraviť členstvo","View in admin":"",Yesterday:"Včera","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Vaša požiadavka bude odoslaná vlastníkovi stránky."},xD={"{amount} characters left":"Še {amount} znakov","{amount} comments":"{amount} komentarjev","{amount} hrs ago":"Pred {amount} urami","{amount} mins ago":"Pred {amount} minutami","{amount} more":"Še {amount}","1 comment":"1 komentar","Add comment":"Dodajte komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodajte kontekst svojemu komentarju, delite svoje ime in strokovno znanje za spodbujanje zdrave razprave.","Add reply":"Dodajte odgovor","Add your expertise":"","Already a member?":"Ste že član?",Anonymous:"Anonimno","Are you sure?":"Ste prepričani?","Become a member of {publication} to start commenting.":"Postanite član {publication}, da lahko začnete komentirati.","Become a paid member of {publication} to start commenting.":"Postanite plačljiv član {publication}, da lahko začnete komentirati.",Best:"",Cancel:"Prekliči",Comment:"Komentiraj","Commenting disabled":"","Complete your profile":"Dokončajte svoj profil","Contact support":"",Delete:"Izbriši",Deleted:"Izbrisano","Deleted member":"Izbrisan član",Deleting:"Brisanje",Discussion:"Razprava",Edit:"Uredi","Edit this comment":"Uredi ta komentar",edited:"urejeno","Enter your name":"Vnesite svoje ime",Expertise:"Strokovno znanje","for more information.":"","Founder @ Acme Inc":"Ustanovitelj pri Acme Inc","Full-time parent":"Starš s polnim delovnim časom","Head of Marketing at Acme, Inc":"Vodja marketinga pri Acme, Inc","Hidden for members":"Skrito za člane",Hide:"Skrij","Hide comment":"Skrij komentar","Jamie Larson":"Janez Novak","Join the discussion":"Pridružite se razpravi","Just now":"Pravkar","Load more ({amount})":"Naloži več ({amount})","Local resident":"Lokalni prebivalec","Member discussion":"Razprava članov",Name:"Ime",Neurosurgeon:"Nevrokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Ko je komentar izbrisan, ga ni mogoče več obnoviti.","One hour ago":"Pred eno uro","One min ago":"Pred eno minuto",removed:"odstranjeno","Replied to":"Odgovorjeno na",Reply:"Odgovori","Reply to":"Odgovori na","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Želite prijaviti ta komentar?",Save:"Shrani",Sending:"Pošiljanje",Sent:"Poslano",Show:"Prikaži","Show {amount} more replies":"Prikaži še {amount} odgovorov","Show 1 more reply":"Prikaži še 1 odgovor","Show comment":"Prikaži komentar","Sign in":"Prijavite se","Sign up now":"Registrirajte se zdaj","Sort by":"Razvrsti po","Start the conversation":"Začnite pogovor","The linked comment is no longer available.":"","This comment has been hidden.":"Ta komentar je bil skrit.","This comment has been removed.":"Ta komentar je bil odstranjen.","Upgrade now":"Nadgradite zdaj","View in admin":"",Yesterday:"Včeraj","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Vaša zahteva bo poslana lastniku te strani."},CD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"","Contact support":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","for more information.":"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":""},ED={"{amount} characters left":"preostalo je {amount} karaktera","{amount} comments":"{amount} komentara","{amount} hrs ago":"pre {amount} sati","{amount} mins ago":"pre {amount} minuta","{amount} more":"još {amount}","1 comment":"1 komentar","Add comment":"Dodajte komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodajte kontekst svom komentaru, podelite svoje ime i ekspertizu kako biste podstakli zdravu diskusiju.","Add reply":"Dodajte odgovor","Add your expertise":"Dodajte ekspertizu","Already a member?":"Već ste član?",Anonymous:"Anonimno","Are you sure?":"Da li ste sigurni?","Become a member of {publication} to start commenting.":"Postanite član {publication} da biste počeli sa komentarisanjem.","Become a paid member of {publication} to start commenting.":"Postanite plaćeni član {publication} da biste počeli sa komentarisanjem.",Best:"Najbolje",Cancel:"Otkažite",Comment:"Komentar","Commenting disabled":"Komentarisanje onemogućeno","Complete your profile":"Popunite svoj profil","Contact support":"Kontaktirajte podršku",Delete:"Obrišite",Deleted:"Obrisano","Deleted member":"Obrisan član",Deleting:"Brisanje",Discussion:"Diskusija",Edit:"Uredite","Edit this comment":"Uredite ovaj komentar",edited:"uređeno","Enter your name":"Unesite svoje ime",Expertise:"Ekspertiza","for more information.":"za više informacija.","Founder @ Acme Inc":"Osnivač @ Acme Inc","Full-time parent":"Roditelj punim radnim vremenom","Head of Marketing at Acme, Inc":"Šef marketinga u Acme, Inc","Hidden for members":"Sakriveno za članove",Hide:"Sakrijte","Hide comment":"Sakrijte komentar","Jamie Larson":"Pera Perić","Join the discussion":"Pridružite se diskusiji","Just now":"Upravo sada","Load more ({amount})":"Učitajte još ({amount})","Local resident":"Lokalni stanovnik","Member discussion":"Diskusija članova",Name:"Ime",Neurosurgeon:"Neurohirurg",Newest:"Najnovije",Oldest:"Najstarije","Once deleted, this comment can’t be recovered.":"Kada se obriše, ovaj komentar ne može biti vraćen.","One hour ago":"Pre sat","One min ago":"Pre minut",removed:"uklonjeno","Replied to":"Odgovoreno korisniku",Reply:"Odgovorite","Reply to":"Odgovorite korisniku","Reply to comment":"Odgovorite na komentar",Report:"Prijavite","Report comment":"Prijavite komentar","Report this comment?":"Prijavite ovaj komentar?",Save:"Sačuvajte",Sending:"Slanje",Sent:"Poslato",Show:"Prikažite","Show {amount} more replies":"Prikažite još {amount} odgovora","Show 1 more reply":"Prikažite još 1 odgovor","Show comment":"Prikažite komentar","Sign in":"Prijavite se","Sign up now":"Registrujte se sada","Sort by":"Sortirajte po","Start the conversation":"Počnite razgovor","The linked comment is no longer available.":"","This comment has been hidden.":"Ovaj komentar je sakriven.","This comment has been removed.":"Ovaj komentar je uklonjen.","Upgrade now":"Nadogradite sada","View in admin":"Pogledajte u admin",Yesterday:"Juče","You can't post comments in this publication.":"Ne možete objavljivati komentare u ovoj publikaciji.","Your request will be sent to the owner of this site.":"Vaš zahtev će biti poslat vlasniku ovog sajta."},ND={"{amount} characters left":"преостало је {amount} карактера","{amount} comments":"{amount} коментара","{amount} hrs ago":"пре {amount} сати","{amount} mins ago":"пре {amount} минута","{amount} more":"још {amount}","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст свом коментару, поделите своје име и експертизу како бисте подстакли здраву дискусију.","Add reply":"Додајте одговор","Add your expertise":"Додајте експертизу","Already a member?":"Већ сте члан?",Anonymous:"Анонимно","Are you sure?":"Да ли сте сигурни?","Become a member of {publication} to start commenting.":"Постаните члан {publication} да бисте почели са коментарисањем.","Become a paid member of {publication} to start commenting.":"Постаните плаћени члан {publication} да бисте почели са коментарисањем.",Best:"Најбоље",Cancel:"Откажите",Comment:"Коментар","Commenting disabled":"Коментарисање онемогућено","Complete your profile":"Попуните свој профил","Contact support":"Контактирајте подршку",Delete:"Обришите",Deleted:"Обрисано","Deleted member":"Обрисан члан",Deleting:"Брисање",Discussion:"Дискусија",Edit:"Уредите","Edit this comment":"Уредите овај коментар",edited:"уређено","Enter your name":"Унесите своје име",Expertise:"Експертиза","for more information.":"за више информација.","Founder @ Acme Inc":"Оснивач @ Acme Inc","Full-time parent":"Родитељ пуним радним временом","Head of Marketing at Acme, Inc":"Шеф маркетинга у Acme, Inc","Hidden for members":"Сакривено за чланове",Hide:"Сакријте","Hide comment":"Сакријте коментар","Jamie Larson":"Пера Перић","Join the discussion":"Придружите се дискусији","Just now":"Управо сада","Load more ({amount})":"Учитајте још ({amount})","Local resident":"Локални становник","Member discussion":"Дискусија чланова",Name:"Име",Neurosurgeon:"Неурохирург",Newest:"Најновије",Oldest:"Најстарије","Once deleted, this comment can’t be recovered.":"Када се обрише, овај коментар не може бити враћен.","One hour ago":"Пре сат","One min ago":"Пре минут",removed:"уклоњено","Replied to":"Одговорено кориснику",Reply:"Одговорите","Reply to":"Одговорите кориснику","Reply to comment":"Одговорите на коментар",Report:"Пријавите","Report comment":"Пријавите коментар","Report this comment?":"Пријавите овај коментар?",Save:"Сачувајте",Sending:"Слање",Sent:"Послато",Show:"Прикажите","Show {amount} more replies":"Прикажите још {amount} одговора","Show 1 more reply":"Прикажите још 1 одговор","Show comment":"Прикажите коментар","Sign in":"Пријавите се","Sign up now":"Региструјте се сада","Sort by":"Сортирајте по","Start the conversation":"Почните разговор","The linked comment is no longer available.":"","This comment has been hidden.":"Овај коментар је сакривен.","This comment has been removed.":"Овај коментар је уклоњен.","Upgrade now":"Надоградите сада","View in admin":"Погледајте у админ",Yesterday:"Јуче","You can't post comments in this publication.":"Не можете објављивати коментаре у овој публикацији.","Your request will be sent to the owner of this site.":"Ваш захтев ће бити послат власнику овог сајта."},AD={"{amount} characters left":"{amount} tecken kvar","{amount} comments":"{amount} kommentarer","{amount} hrs ago":"{amount} timmar sedan","{amount} mins ago":"{amount} minuter sedan","{amount} more":"{amount} fler","1 comment":"1 kommentar","Add comment":"Lägg till kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lägg till kontext till din kommentar, som ditt namn, din expertis för att skapa ett bra forum.","Add reply":"Lägg till svar","Add your expertise":"Lägg till din expertis","Already a member?":"Redan medlem?",Anonymous:"Anonym","Are you sure?":"Är du säker?","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 ",Best:"Mest populär",Cancel:"Avbryt",Comment:"Kommentar","Commenting disabled":"","Complete your profile":"Fyll i hela din profil","Contact support":"",Delete:"Ta bort",Deleted:"Borttaget","Deleted member":"Borttagen medlem",Deleting:"Tar bort",Discussion:"Diskussion",Edit:"Ändra","Edit this comment":"Ändra den här kommentaren",edited:"Ändrad","Enter your name":"Skriv ditt namn",Expertise:"Expertis","for more information.":"","Founder @ Acme Inc":"Grundare av Företaget AB","Full-time parent":"Hemmaförälder","Head of Marketing at Acme, Inc":"Marknadsföringschef på Företaget AB","Hidden for members":"Dolt för medlemmar",Hide:"Dölj","Hide comment":"Dölj kommentar","Jamie Larson":"Anders Andersson","Join the discussion":"Var med i diskussionen","Just now":"Nu precis","Load more ({amount})":"Ladda in fler ({amount})","Local resident":"Lokalboende","Member discussion":"Medlemsdiskussion",Name:"Namn",Neurosurgeon:"Neurokirurg",Newest:"Nyast",Oldest:"Äldst","Once deleted, this comment can’t be recovered.":"Kommentaren kan ej återskapas efter borttagning","One hour ago":"En timme sedan","One min ago":"En minut sedan",removed:"borttagen","Replied to":"Svarade",Reply:"Svar","Reply to":"Svara","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 1 more reply":"Visa 1 kommentar till","Show comment":"Visa kommentar","Sign in":"Logga in","Sign up now":"Registrera dig nu","Sort by":"Sortera efter","Start the conversation":"Inled konversationen","The linked comment is no longer available.":"","This comment has been hidden.":"Denna kommentar har dolts","This comment has been removed.":"Denna kommentar är borttagen","Upgrade now":"Uppgradera nu","View in admin":"",Yesterday:"I går","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Din anmälan skickas till ansvarig för webbplatsen"},DD={"{amount} characters left":"{amount} herufi zimebaki","{amount} comments":"{amount} maoni","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"{amount} zaidi","1 comment":"maoni 1","Add comment":"Ongeza maoni","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Ongeza muktadha kwa maoni yako, shiriki jina lako na utaalamu ili kuendeleza mjadala wenye afya.","Add reply":"Ongeza jibu","Add your expertise":"","Already a member?":"Tayari ni mwanachama?",Anonymous:"Asiyetambulika","Are you sure?":"","Become a member of {publication} to start commenting.":"Jiunge kama mwanachama wa {publication} ili kuanza kutoa maoni.","Become a paid member of {publication} to start commenting.":"Jiunge kama mwanachama anayelipa wa {publication} ili kuanza kutoa maoni.",Best:"",Cancel:"Ghairi",Comment:"Maoni","Commenting disabled":"","Complete your profile":"Kamilisha wasifu wako","Contact support":"",Delete:"Futa",Deleted:"","Deleted member":"Mwanachama aliyefutwa",Deleting:"",Discussion:"Majadiliano",Edit:"Hariri","Edit this comment":"Hariri maoni haya",edited:"","Enter your name":"Weka jina lako",Expertise:"Utaalamu","for more information.":"","Founder @ Acme Inc":"Mwanzilishi @ Acme Inc","Full-time parent":"Mzazi wa muda wote","Head of Marketing at Acme, Inc":"Mkuu wa Masoko katika Acme, Inc","Hidden for members":"",Hide:"Ficha","Hide comment":"Ficha maoni","Jamie Larson":"Jamie Larson","Join the discussion":"Jiunge na mjadala","Just now":"Hivi sasa","Load more ({amount})":"","Local resident":"Mkazi wa eneo","Member discussion":"Mjadala wa wanachama",Name:"Jina",Neurosurgeon:"Daktari wa ubongo",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Saa moja iliyopita","One min ago":"",removed:"","Replied to":"",Reply:"Jibu","Reply to":"","Reply to comment":"Jibu maoni",Report:"Ripoti","Report comment":"Ripoti maoni","Report this comment?":"Unataka kuripoti maoni haya?",Save:"Hifadhi",Sending:"Inatuma",Sent:"Imetumwa",Show:"Onyesha","Show {amount} more replies":"Onyesha majibu {amount} zaidi","Show 1 more reply":"Onyesha jibu 1 zaidi","Show comment":"Onyesha maoni","Sign in":"Ingia","Sign up now":"Jisajili sasa","Sort by":"","Start the conversation":"Anzisha mazungumzo","The linked comment is no longer available.":"","This comment has been hidden.":"Maoni haya yamefichwa.","This comment has been removed.":"Maoni haya yameondolewa.","Upgrade now":"Boresha sasa","View in admin":"",Yesterday:"Jana","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Ombi lako litatumwa kwa mmiliki wa tovuti hii."},RD={"{amount} characters left":"{amount} எழுத்துக்கள் எஞ்சியுள்ளன","{amount} comments":"{amount} கருத்துக்கள்","{amount} hrs ago":"{amount} மணி நேரத்திற்கு முன்பு","{amount} mins ago":"{amount} நிமிடங்களுக்கு முன்பு","{amount} more":"{amount} மேலும்","1 comment":"1 கருத்து","Add comment":"கருத்தைச் சேர்க்கவும்","Add context to your comment, share your name and expertise to foster a healthy discussion.":"உங்கள் கருத்துக்கு சூழலைச் சேர்க்கவும், ஆரோக்கியமான விவாதத்தை வளர்க்க உங்கள் பெயரையும் நிபுணத்துவத்தையும் பகிர்ந்து கொள்ளுங்கள்.","Add reply":"பதில் சேர்க்கவும்","Add your expertise":"","Already a member?":"ஏற்கனவே உறுப்பினரா?",Anonymous:"அடையாளம் தெரியாத","Are you sure?":"","Become a member of {publication} to start commenting.":"கருத்துத் தெரிவிக்க {publication} இல் உறுப்பினராகுங்கள்.","Become a paid member of {publication} to start commenting.":"கருத்துத் தெரிவிக்க {publication} இல் கட்டண உறுப்பினராகுங்கள்.",Best:"",Cancel:"ரத்து செய்",Comment:"கருத்து","Commenting disabled":"","Complete your profile":"உங்கள் சுயவிவரத்தை பூர்த்தி செய்யவும்","Contact support":"",Delete:"நீக்கவும்",Deleted:"","Deleted member":"நீக்கப்பட்ட உறுப்பினர்",Deleting:"",Discussion:"கலந்துரையாடல்",Edit:"திருத்தவும்","Edit this comment":"இந்தக் கருத்தைத் திருத்தவும்",edited:"திருத்தப்பட்டது","Enter your name":"உங்கள் பெயரை உள்ளிடுக",Expertise:"நிபுணத்துவம்","for more information.":"","Founder @ Acme Inc":"நிறுவனர் @ Acme Inc","Full-time parent":"முழுநேர பெற்றோர்","Head of Marketing at Acme, Inc":"Acme Inc நிறுவனத்தின் சந்தைப்படுத்தல் தலைவர்","Hidden for members":"",Hide:"மறைக்கவும்","Hide comment":"கருத்தை மறை","Jamie Larson":"ஜேமி லார்சன்","Join the discussion":"கலந்துரையாடலில் சேரவும்","Just now":"சற்றுமுன்னர்தான்","Load more ({amount})":"","Local resident":"உள்ளூர்வாசி","Member discussion":"உறுப்பினர் கருத்து",Name:"பெயர்",Neurosurgeon:"நரம்பியல் அறுவை சிகிச்சை நிபுணர்",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"ஒரு மணி முன்பு","One min ago":"ஒரு நிமிடம் முன்பு",removed:"","Replied to":"",Reply:"பதிலளிக்கவும்","Reply to":"","Reply to comment":"கருத்துக்கு பதிலளிக்கவும்",Report:"புகாரளி","Report comment":"கருத்தைப் புகாரளி","Report this comment?":"இந்தக் கருத்தைப் புகாரளிக்கவா?",Save:"சேமிக்க",Sending:"அனுப்புகிறது",Sent:"அனுப்பப்பட்டது",Show:"காட்டு","Show {amount} more replies":"முந்தைய {amount} மேலும் பதில்கள்க் காட்டு","Show 1 more reply":"மேலும் 1 பதிலைக் காட்டு","Show comment":"கருத்தைக் காட்டு","Sign in":"உள்நுழைக","Sign up now":"இப்பொழுதே பதிவு செய்யுங்கள்","Sort by":"","Start the conversation":"உரையாடலைத் தொடங்குங்கள்","The linked comment is no longer available.":"","This comment has been hidden.":"இந்தக் கருத்து மறைக்கப்பட்டது.","This comment has been removed.":"இந்தக் கருத்து நீக்கப்பட்டது.","Upgrade now":"இப்போதே மேம்படுத்தவும்","View in admin":"",Yesterday:"நேற்று","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"உங்கள் கோரிக்கை இந்த தளத்தின் உரிமையாளருக்கு அனுப்பப்படும்."},OD={"{amount} characters left":"คงเหลือ {amount} ตัวอักษร","{amount} comments":"{amount} ความคิดเห็น","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"อีก {amount}","1 comment":"1 ความคิดเห็น","Add comment":"แสดงความคิดเห็น","Add context to your comment, share your name and expertise to foster a healthy discussion.":"เพิ่มข้อมูลเสริมในความคิดเห็นของคุณ แชร์ชื่อและความเชี่ยวชาญเพื่อสนับสนุนการพูดคุยที่ดี","Add reply":"ตอบกลับ","Add your expertise":"","Already a member?":"เป็นสมาชิกอยู่แล้ว?",Anonymous:"ไม่ระบุชื่อ","Are you sure?":"","Become a member of {publication} to start commenting.":"เป็นสมาชิกของ {publication} เพื่อเริ่มแสดงความคิดเห็น","Become a paid member of {publication} to start commenting.":"เป็นสมาชิกแบบชำระเงินของ {publication} เพื่อเริ่มแสดงความคิดเห็น",Best:"",Cancel:"ยกเลิก",Comment:"ความคิดเห็น","Commenting disabled":"","Complete your profile":"กรอกโปรไฟล์ของคุณให้สมบูรณ์","Contact support":"",Delete:"ลบ",Deleted:"","Deleted member":"ผู้ใช้ที่ถูกลบ",Deleting:"",Discussion:"การสนทนา",Edit:"แก้ไข","Edit this comment":"แก้ไขความคิดเห็นนี้",edited:"","Enter your name":"ระบุชื่อของคุณ",Expertise:"ความเชี่ยวชาญ","for more information.":"","Founder @ Acme Inc":"ผู้ก่อตั้ง @ Acme Inc","Full-time parent":"ผู้ปกครองเต็มเวลา","Head of Marketing at Acme, Inc":"หัวหน้าฝ่ายการตลาด ณ Acme, Inc","Hidden for members":"",Hide:"ซ่อน","Hide comment":"ซ่อนข้อความ","Jamie Larson":"กนกพัฒน์ สัณห์ฤทัย","Join the discussion":"เข้าร่วมการสนทนา","Just now":"ตอนนี้","Load more ({amount})":"","Local resident":"ผู้อยู่อาศัยในท้องถิ่น","Member discussion":"การสนทนาของสมาชิก",Name:"ชื่อ",Neurosurgeon:"ศัลยแพทย์ระบบประสาท",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"1 ชั่วโมงที่แล้ว","One min ago":"",removed:"","Replied to":"",Reply:"ตอบกลับ","Reply to":"","Reply to comment":"ตอบกลับความคิดเห็น",Report:"รายงาน","Report comment":"รายงานความคิดเห็น","Report this comment?":"รายงานความคิดเห็นนี้?",Save:"บันทึก",Sending:"กำลังส่ง",Sent:"ส่งแล้ว",Show:"แสดง","Show {amount} more replies":"แสดง {amount} การตอบกลับเพิ่มเติม","Show 1 more reply":"แสดงอีก 1 การตอบกลับ","Show comment":"ดูความคิดเห็น","Sign in":"ลงชื่อเข้าใช้","Sign up now":"สมัครใช้งานตอนนี้เลย","Sort by":"","Start the conversation":"เริ่มการสนทนา","The linked comment is no longer available.":"","This comment has been hidden.":"ความคิดเห็นนี้ถูกซ่อน","This comment has been removed.":"ความคิดเห็นนี้ถูกลบ","Upgrade now":"อัพเกรดตอนนี้เลย","View in admin":"",Yesterday:"เมื่อวาน","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"คำขอของคุณจะถูกส่งไปยังผู้ดูแลเว็บไซต์"},TD={"{amount} characters left":"{amount} karakter kaldı","{amount} comments":"{amount} yorum","{amount} hrs ago":"{amount} saat önce","{amount} mins ago":"{amount} dakika önce","{amount} more":"Daha fazla {amount}","1 comment":"1 yorum","Add comment":"Yorum ekle","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Yorumunuza bağlam ekleyin, adınızı ve uzmanlık alanınızı paylaşarak sağlıklı bir tartışmayı teşvik edin.","Add reply":"Yanıt ekle","Add your expertise":"Uzmanlığınızı ekleyin","Already a member?":"Zaten üye misiniz?",Anonymous:"Anonim","Are you sure?":"Emin misin?","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.",Best:"En iyi",Cancel:"İptal et",Comment:"Yorum ekle","Commenting disabled":"","Complete your profile":"Profilinizi tamamlayın","Contact support":"",Delete:"Sil",Deleted:"Silindi","Deleted member":"Silinen üye",Deleting:"Siliniyor",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","for more information.":"","Founder @ Acme Inc":"Kurucu @ Firma Ünvan","Full-time parent":"Tam zamanlı ebeveyn","Head of Marketing at Acme, Inc":"Firma, Ünvan'da Pazarlama Müdürü","Hidden for members":"Üyeler için gizli",Hide:"Gizle","Hide comment":"Yorumu gizle","Jamie Larson":"Ahmet Yılmaz","Join the discussion":"Tartışmaya katıl","Just now":"Şu anda","Load more ({amount})":"Daha fazla yükle ({amount})","Local resident":"Yerel sakini","Member discussion":"Üye tartışması",Name:"Ad",Neurosurgeon:"Beyin cerrahı",Newest:"En yeni",Oldest:"En eski","Once deleted, this comment can’t be recovered.":"Bu yorum silindikten sonra kurtarılamaz.","One hour ago":"Bir saat önce","One min ago":"Bir dakika önce",removed:"kaldırıldı","Replied to":"Cevaplandı",Reply:"Cevapla","Reply to":"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 1 more reply":"1 cevap daha göster","Show comment":"Yorumu göster","Sign in":"Giriş yap","Sign up now":"Şimdi kayıt ol","Sort by":"Sırala","Start the conversation":"Bu konu hakkında düşüncelerini paylaş","The linked comment is no longer available.":"","This comment has been hidden.":"Bu yorum gizlendi.","This comment has been removed.":"Bu yorum kaldırıldı.","Upgrade now":"Şimdi yükselt","View in admin":"",Yesterday:"Dün","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Talebiniz bu sitenin sahibine gönderilecektir."},MD={"{amount} characters left":"{amount} символів залишилось","{amount} comments":"{amount} коментарів","{amount} hrs ago":"{amount} годин тому","{amount} mins ago":"{amount} хвилин тому","{amount} more":"ще {amount}","1 comment":"1 коментар","Add comment":"Додати коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додайте контекст до свого коментаря, поділіться своїм іменем і досвідом, щоб сприяти здоровій дискусії.","Add reply":"Додати відповідь","Add your expertise":"","Already a member?":"Ви є учасником?",Anonymous:"Анонім","Are you sure?":"","Become a member of {publication} to start commenting.":"Станьте учасником {publication} щоб почати коментувати.","Become a paid member of {publication} to start commenting.":"Станьте платним учасником {publication} щоб почати коментувати.",Best:"",Cancel:"Відмінити",Comment:"Коментувати","Commenting disabled":"","Complete your profile":"Заповніть свій профіль","Contact support":"",Delete:"Видалити",Deleted:"","Deleted member":"Видалений учасник",Deleting:"",Discussion:"Обговорення",Edit:"Редагувати","Edit this comment":"Редагувати цей коментар",edited:"Відредагований","Enter your name":"Введіть своє імʼя",Expertise:"Експертність","for more information.":"","Founder @ Acme Inc":"Засновник @ Acme Inc","Full-time parent":"Виховую дітей","Head of Marketing at Acme, Inc":"Голова продажів в Acme, Inc","Hidden for members":"",Hide:"Сховати","Hide comment":"Сховати коментар","Jamie Larson":"Ваше імʼя","Join the discussion":"Долучитися до обговорення","Just now":"Прямо зараз","Load more ({amount})":"","Local resident":"Місцевий експерт","Member discussion":"Обговорення учасників",Name:"Імʼя",Neurosurgeon:"Нейрохірург",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Одну годину тому","One min ago":"Одну хвилину тому",removed:"","Replied to":"",Reply:"Відповісти","Reply to":"","Reply to comment":"Відповісти на коментар",Report:"Поскаржитися","Report comment":"Поскаржитися на коментар","Report this comment?":"Поскаржитися на цей коментар?",Save:"Зберегти",Sending:"Відправка",Sent:"Відправлено",Show:"Показати","Show {amount} more replies":"Показати ще {amount} відповідей","Show 1 more reply":"Показати ще одну відповідь","Show comment":"Показати коментар","Sign in":"Увійти","Sign up now":"Зареєструватись зараз","Sort by":"","Start the conversation":"Почніть розмову","The linked comment is no longer available.":"","This comment has been hidden.":"Цей коментар було приховано.","This comment has been removed.":"Цей коментар було видалено.","Upgrade now":"Оновити зараз","View in admin":"",Yesterday:"Вчора","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Ваш запит буде надіслано власнику цього сайту."},jD={"{amount} characters left":"{amount} حروف باقی ہیں","{amount} comments":"{amount} تبادلے","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"1 تبادلہ","Add comment":"تبادلہ شامل کریں","Add context to your comment, share your name and expertise to foster a healthy discussion.":"اپنے تبادلے میں سیاق و سباق شامل کریں، اچھی گفتگو کو بڑھانے کے لئے اپنا نام اور ماہریت شیئر کریں۔","Add reply":"جواب شامل کریں","Add your expertise":"","Already a member?":"پہلے ہی رکن ہیں؟",Anonymous:"ناشناس","Are you sure?":"","Become a member of {publication} to start commenting.":"تبادلہ شروع کرنے کے لئے {publication} کا رکن بنیں۔","Become a paid member of {publication} to start commenting.":"تبادلہ شروع کرنے کے لئے {publication} کا ادائیگی رکن بنیں۔",Best:"",Cancel:"منسوخ کریں",Comment:"تبادلہ","Commenting disabled":"","Complete your profile":"اپنا پروفائل مکمل کریں","Contact support":"",Delete:"حذف کریں",Deleted:"","Deleted member":"حذف شدہ رکن",Deleting:"",Discussion:"تبادلہ",Edit:"ترتیب دیں","Edit this comment":"اس تبادلے کو ترتیب دیں",edited:"","Enter your name":"اپنا نام درج کریں",Expertise:"اہلیت","for more information.":"","Founder @ Acme Inc":"ناظم @ Acme Inc","Full-time parent":"پورے وقت کا والد یا والدہ","Head of Marketing at Acme, Inc":"Acme، Inc کے مارکیٹنگ کا سربراہ","Hidden for members":"",Hide:"چھپائیں","Hide comment":"تبادلہ چھپائیں","Jamie Larson":"جیمی لارسن","Join the discussion":"تبادلے میں شامل ہوں","Just now":"ابھی","Load more ({amount})":"","Local resident":"مقامی رہائشی","Member discussion":"رکن کا تبادلہ",Name:"نام",Neurosurgeon:"نیوروسرجن",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"ایک گھنٹہ پہلے","One min ago":"",removed:"","Replied to":"",Reply:"جواب","Reply to":"","Reply to comment":"تبادلے کا جواب دیں",Report:"رپورٹ","Report comment":"تبادلے کی رپورٹ","Report this comment?":"کیا آپ اس تبادلے کو رپورٹ کرنا چاہتے ہیں؟",Save:"محفوظ کریں",Sending:"بھیج رہا ہے",Sent:"بھیجا گیا",Show:"دکھائیں","Show {amount} more replies":"{amount} مزید جوابات دکھائیں","Show 1 more reply":"1 مزید جواب دکھائیں","Show comment":"تبادلہ دکھائیں","Sign in":"سائن ان کریں","Sign up now":"ابھی رجسٹر ہوں","Sort by":"","Start the conversation":"بات چیت شروع کریں","The linked comment is no longer available.":"","This comment has been hidden.":"یہ تبادلہ چھپا گیا ہے۔","This comment has been removed.":"یہ تبادلہ ہٹا دیا گیا ہے۔","Upgrade now":"اب اپ گریڈ کریں","View in admin":"",Yesterday:"کل","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"آپ کا درخواست اس سائٹ کے مالک کو بھیجا جائے گا۔"},PD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"","Contact support":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","for more information.":"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":""},LD={"{amount} characters left":"{amount} ký tự còn lại","{amount} comments":"{amount} bình luận","{amount} hrs ago":"{amount} giờ trước","{amount} mins ago":"{amount} phút trước","{amount} more":"{amount} nữa","1 comment":"1 bình luận","Add comment":"Thêm bình luận","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Thêm ngữ cảnh, tên và chuyên môn của bạn để thúc đẩy cuộc thảo luận lành mạnh.","Add reply":"Trả lời","Add your expertise":"Thêm chuyên môn của bạn","Already a member?":"Đã là thành viên?",Anonymous:"Ẩn danh","Are you sure?":"Bạn có chắc không?","Become a member of {publication} to start commenting.":"Trở thành thành viên của {publication} để có thể bình luận.","Become a paid member of {publication} to start commenting.":"Trở thành thành viên trả phí của {publication} để có thể bình luận.",Best:"Hay nhất",Cancel:"Hủy",Comment:"Bình luận","Commenting disabled":"","Complete your profile":"Hoàn tất hồ sơ của bạn","Contact support":"",Delete:"Xóa",Deleted:"Đã xóa","Deleted member":"Thành viên đã xóa",Deleting:"Đang 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","for more information.":"","Founder @ Acme Inc":"Nhà sáng lập @ Acme Inc","Full-time parent":"Phụ huynh toàn thời gian","Head of Marketing at Acme, Inc":"Trưởng phòng Marketing tại Acme, Inc","Hidden for members":"Ẩn với thành viên",Hide:"Ẩn","Hide comment":"Ẩn bình luận","Jamie Larson":"Nguyễn Minh Châu","Join the discussion":"Tham gia thảo luận","Just now":"Vừa xong","Load more ({amount})":"Hiện thêm ({amount})","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",Newest:"Mới nhất",Oldest:"Cũ nhất","Once deleted, this comment can’t be recovered.":"Một khi đã xóa, bình luận này không thể khôi phục.","One hour ago":"Một giờ trước","One min ago":"Một phút trước",removed:"đã xóa","Replied to":"Đã trả lời",Reply:"Trả lời","Reply to":"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 thêm {amount} trả lời khác","Show 1 more reply":"Xem thêm 1 trả lời","Show comment":"Xem bình luận","Sign in":"Đăng nhập","Sign up now":"Đăng ký ngay","Sort by":"Xếp theo","Start the conversation":"Bắt đầu cuộc trò chuyện","The linked comment is no longer available.":"","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","View in admin":"",Yesterday:"Hôm qua","You can't post comments in this publication.":"","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."},ID={"{amount} characters left":"还剩{amount}字","{amount} comments":"{amount}条评论","{amount} hrs ago":"{amount}小时前","{amount} mins ago":"{amount}分钟前","{amount} more":"还剩{amount}条评论","1 comment":"一条评论","Add comment":"添加评论","Add context to your comment, share your name and expertise to foster a healthy discussion.":"为评论补充更多的上下文信息、例如您的姓名与专业背景有助于营造健康的讨论氛围。","Add reply":"回复","Add your expertise":"添加您的专业背景","Already a member?":"已经是会员?",Anonymous:"匿名","Are you sure?":"确认?","Become a member of {publication} to start commenting.":"成为{publication}的会员以开始评论。","Become a paid member of {publication} to start commenting.":"成为{publication}的付费会员以开始评论。",Best:"最多赞",Cancel:"取消",Comment:"评论","Commenting disabled":"","Complete your profile":"完善您的个人资料","Contact support":"",Delete:"删除",Deleted:"已删除","Deleted member":"删除会员",Deleting:"删除中",Discussion:"讨论",Edit:"编辑","Edit this comment":"编辑此条评论",edited:"已编辑","Enter your name":"输入您的名字",Expertise:"专业背景","for more information.":"","Founder @ Acme Inc":"Acme Inc的创建者","Full-time parent":"全职父母","Head of Marketing at Acme, Inc":"Acme, Inc市场部负责人","Hidden for members":"对会员隐藏",Hide:"隐藏","Hide comment":"隐藏评论","Jamie Larson":"阿宇","Join the discussion":"加入讨论","Just now":"刚刚","Load more ({amount})":"加载更多({amount})条","Local resident":"本地居民","Member discussion":"会员讨论",Name:"名字",Neurosurgeon:"神经外科医生",Newest:"最新",Oldest:"最早","Once deleted, this comment can’t be recovered.":"此评论一经删除后将无法复原。","One hour ago":"一小时前","One min ago":"一分钟前",removed:"已移除","Replied to":"已回复",Reply:"回复","Reply to":"回复","Reply to comment":"回复评论",Report:"举报","Report comment":"举报评论","Report this comment?":"举报此评论?",Save:"保存",Sending:"正在发送",Sent:"已发送",Show:"显示","Show {amount} more replies":"显示更多{amount}条评论","Show 1 more reply":"显示下一条评论","Show comment":"显示评论","Sign in":"登录","Sign up now":"立刻注册","Sort by":"排序方式","Start the conversation":"开始对话","The linked comment is no longer available.":"","This comment has been hidden.":"该条评论已被隐藏。","This comment has been removed.":"该条评论已被移除。","Upgrade now":"立刻升级","View in admin":"",Yesterday:"昨天","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"您的请求将被发送给站点所有者。"},zD={"{amount} characters left":"還剩{amount}個字","{amount} comments":"{amount}則留言","{amount} hrs ago":"{amount}小時前","{amount} mins ago":"{amount}分鐘前","{amount} more":"還剩{amount}則留言","1 comment":"一則留言","Add comment":"留言","Add context to your comment, share your name and expertise to foster a healthy discussion.":"為您的留言補充背景,說明您的稱呼與專業背景都有助於健康的討論氛圍。","Add reply":"回覆","Add your expertise":"新增您的專業背景","Already a member?":"已經是會員?",Anonymous:"匿名","Are you sure?":"您確定嗎?","Become a member of {publication} to start commenting.":"成為{publication}的會員以開始留言。","Become a paid member of {publication} to start commenting.":"成為{publication}的付費會員以開始留言。",Best:"最多讚",Cancel:"取消",Comment:"留言","Commenting disabled":"","Complete your profile":"完成您的註冊資訊","Contact support":"",Delete:"刪除",Deleted:"已刪除","Deleted member":"刪除會員",Deleting:"刪除中",Discussion:"討論",Edit:"編輯","Edit this comment":"編輯此則留言",edited:"已編輯","Enter your name":"輸入您的稱呼",Expertise:"專業背景","for more information.":"","Founder @ Acme Inc":"Acme Inc的創辦人","Full-time parent":"全職父母","Head of Marketing at Acme, Inc":"Acme, Inc市場部負責人","Hidden for members":"對會員隱藏",Hide:"隱藏","Hide comment":"隱藏留言","Jamie Larson":"阿宇","Join the discussion":"加入討論","Just now":"剛剛","Load more ({amount})":"載入更多({amount})","Local resident":"本地居民","Member discussion":"會員討論",Name:"稱呼",Neurosurgeon:"神經外科醫生",Newest:"最新",Oldest:"最早","Once deleted, this comment can’t be recovered.":"此留言一經刪除後將無法復原。","One hour ago":"一小時前","One min ago":"一分鐘前",removed:"已移除","Replied to":"已回覆",Reply:"回覆","Reply to":"回覆","Reply to comment":"回覆留言",Report:"檢舉","Report comment":"檢舉留言","Report this comment?":"檢舉此留言?",Save:"儲存",Sending:"正在發送",Sent:"已發送",Show:"顯示","Show {amount} more replies":"顯示後續 {amount} 則留言","Show 1 more reply":"顯示下一則留言","Show comment":"顯示留言","Sign in":"登入","Sign up now":"立即註冊","Sort by":"排序方式","Start the conversation":"開始對話","The linked comment is no longer available.":"","This comment has been hidden.":"該則留言已被隱藏。","This comment has been removed.":"該則留言已被移除。","Upgrade now":"立即升級","View in admin":"",Yesterday:"昨天","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"您的請求將被發送給網站所有者。"};var ow;function rw(){return ow||(ow={"/ghost/i18n/locales/af/comments.json":function(){return OA},"/ghost/i18n/locales/ar/comments.json":function(){return TA},"/ghost/i18n/locales/bg/comments.json":function(){return MA},"/ghost/i18n/locales/bn/comments.json":function(){return jA},"/ghost/i18n/locales/bs/comments.json":function(){return PA},"/ghost/i18n/locales/ca/comments.json":function(){return LA},"/ghost/i18n/locales/cs/comments.json":function(){return IA},"/ghost/i18n/locales/da/comments.json":function(){return zA},"/ghost/i18n/locales/de/comments.json":function(){return BA},"/ghost/i18n/locales/de-CH/comments.json":function(){return FA},"/ghost/i18n/locales/el/comments.json":function(){return HA},"/ghost/i18n/locales/en/comments.json":function(){return VA},"/ghost/i18n/locales/eo/comments.json":function(){return UA},"/ghost/i18n/locales/es/comments.json":function(){return _A},"/ghost/i18n/locales/et/comments.json":function(){return YA},"/ghost/i18n/locales/eu/comments.json":function(){return JA},"/ghost/i18n/locales/fa/comments.json":function(){return KA},"/ghost/i18n/locales/fi/comments.json":function(){return WA},"/ghost/i18n/locales/fr/comments.json":function(){return qA},"/ghost/i18n/locales/gd/comments.json":function(){return GA},"/ghost/i18n/locales/he/comments.json":function(){return QA},"/ghost/i18n/locales/hi/comments.json":function(){return ZA},"/ghost/i18n/locales/hr/comments.json":function(){return XA},"/ghost/i18n/locales/hu/comments.json":function(){return eD},"/ghost/i18n/locales/id/comments.json":function(){return tD},"/ghost/i18n/locales/is/comments.json":function(){return nD},"/ghost/i18n/locales/it/comments.json":function(){return oD},"/ghost/i18n/locales/ja/comments.json":function(){return rD},"/ghost/i18n/locales/ko/comments.json":function(){return iD},"/ghost/i18n/locales/kz/comments.json":function(){return sD},"/ghost/i18n/locales/lt/comments.json":function(){return aD},"/ghost/i18n/locales/lv/comments.json":function(){return lD},"/ghost/i18n/locales/mk/comments.json":function(){return cD},"/ghost/i18n/locales/mn/comments.json":function(){return uD},"/ghost/i18n/locales/ms/comments.json":function(){return dD},"/ghost/i18n/locales/nb/comments.json":function(){return mD},"/ghost/i18n/locales/ne/comments.json":function(){return fD},"/ghost/i18n/locales/nl/comments.json":function(){return pD},"/ghost/i18n/locales/nn/comments.json":function(){return hD},"/ghost/i18n/locales/pa/comments.json":function(){return gD},"/ghost/i18n/locales/pl/comments.json":function(){return yD},"/ghost/i18n/locales/pt/comments.json":function(){return bD},"/ghost/i18n/locales/pt-BR/comments.json":function(){return wD},"/ghost/i18n/locales/ro/comments.json":function(){return vD},"/ghost/i18n/locales/ru/comments.json":function(){return $D},"/ghost/i18n/locales/si/comments.json":function(){return SD},"/ghost/i18n/locales/sk/comments.json":function(){return kD},"/ghost/i18n/locales/sl/comments.json":function(){return xD},"/ghost/i18n/locales/sq/comments.json":function(){return CD},"/ghost/i18n/locales/sr/comments.json":function(){return ED},"/ghost/i18n/locales/sr-Cyrl/comments.json":function(){return ND},"/ghost/i18n/locales/sv/comments.json":function(){return AD},"/ghost/i18n/locales/sw/comments.json":function(){return DD},"/ghost/i18n/locales/ta/comments.json":function(){return RD},"/ghost/i18n/locales/th/comments.json":function(){return OD},"/ghost/i18n/locales/tr/comments.json":function(){return TD},"/ghost/i18n/locales/uk/comments.json":function(){return MD},"/ghost/i18n/locales/ur/comments.json":function(){return jD},"/ghost/i18n/locales/uz/comments.json":function(){return PD},"/ghost/i18n/locales/vi/comments.json":function(){return LD},"/ghost/i18n/locales/zh/comments.json":function(){return ID},"/ghost/i18n/locales/zh-Hant/comments.json":function(){return zD}})}function vo(t){function e(n){var o=iw(n,t);if(o!==null)return rw()[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=iw(n,t);return o!==null?o:require.resolve(n)},e}function iw(t,e){var n=BD(t);t=Pl(t);var o;t[0]==="/"&&(e="");for(var r=rw(),i=["",".js",".json"];n?o=Pl(e+"/node_modules/"+t):o=Pl(e+"/"+t),!o.endsWith("/..");){for(var s=0;s<i.length;s++){var a=o+i[s];if(r[a])return a}if(!n)break;var l=Pl(e+"/..");if(l===e)break;e=l}return null}function BD(t){var e=t[0];if(e==="/"||e==="\\")return!1;var n=t[1],o=t[2];return!(e==="."&&(!n||n==="/"||n==="\\")||e==="."&&n==="."&&(!o||o==="/"||o==="\\")||n===":"&&(o==="/"||o==="\\"))}function Pl(t){t=t.replace(/\\/g,"/");for(var e=t.split("/"),n=e[0]==="",o=1;o<e.length;o++)(e[o]==="."||e[o]==="")&&e.splice(o--,1);for(var o=1;o<e.length;o++)e[o]===".."&&o>0&&e[o-1]!==".."&&e[o-1]!=="."&&(e.splice(--o,2),o--);return t=e.join("/"),n&&t[0]!=="/"?t="/"+t:t.length===0&&(t="."),t}var Qi={exports:{}};const _=t=>typeof t=="string",Zi=()=>{let t,e;const n=new Promise((o,r)=>{t=o,e=r});return n.resolve=t,n.reject=e,n},sw=t=>t==null?"":""+t,FD=(t,e,n)=>{t.forEach(o=>{e[o]&&(n[o]=e[o])})},HD=/###/g,aw=t=>t&&t.indexOf("###")>-1?t.replace(HD,"."):t,lw=t=>!t||_(t),Xi=(t,e,n)=>{const o=_(e)?e.split("."):e;let r=0;for(;r<o.length-1;){if(lw(t))return{};const i=aw(o[r]);!t[i]&&n&&(t[i]=new n),Object.prototype.hasOwnProperty.call(t,i)?t=t[i]:t={},++r}return lw(t)?{}:{obj:t,k:aw(o[r])}},cw=(t,e,n)=>{const{obj:o,k:r}=Xi(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=Xi(t,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=Xi(t,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},VD=(t,e,n,o)=>{const{obj:r,k:i}=Xi(t,e,Object);r[i]=r[i]||[],r[i].push(n)},Ll=(t,e)=>{const{obj:n,k:o}=Xi(t,e);if(n)return n[o]},UD=(t,e,n)=>{const o=Ll(t,n);return o!==void 0?o:Ll(e,n)},uw=(t,e,n)=>{for(const o in e)o!=="__proto__"&&o!=="constructor"&&(o in t?_(t[o])||t[o]instanceof String||_(e[o])||e[o]instanceof String?n&&(t[o]=e[o]):uw(t[o],e[o],n):t[o]=e[o]);return t},yr=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var _D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const YD=t=>_(t)?t.replace(/[&<>"'\/]/g,e=>_D[e]):t;class JD{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 KD=[" ",",","?","!",";"],WD=new JD(20),qD=(t,e,n)=>{e=e||"",n=n||"";const o=KD.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(o.length===0)return!0;const r=WD.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},Hm=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},Il=t=>t&&t.replace("_","-"),GD={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 zl{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||GD,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:(_(e[0])&&(e[0]=`${o}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new zl(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new zl(this.logger,e)}}var Lt=new zl;class Bl{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const r=this.observers[o].get(n)||0;this.observers[o].set(n,r+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a.apply(a,[e,...o])})}}class dw extends Bl{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):_(o)&&i?a.push(...o.split(i)):a.push(o)));const l=Ll(this.data,a);return!l&&!n&&!o&&e.indexOf(".")>-1&&(e=a[0],n=a[1],o=a.slice(2).join(".")),l||!s||!_(o)?l:Hm(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),cw(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)(_(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=Ll(this.data,a)||{};s.skipCopy||(o=JSON.parse(JSON.stringify(o))),r?uw(l,o,i):l={...l,...o},cw(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 mw={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 fw={};class Fl extends Bl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),FD(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Lt.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&&!qD(e,o,r);if(s&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:_(i)?[i]:i};const c=e.split(o);(o!==r||o===r&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),e=c.join(r)}return{key:e,namespaces:_(i)?[i]:i}}translate(e,n,o){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(e[e.length-1],n),l=a[a.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const v=n.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${v}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${v}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const d=this.resolve(e,n);let m=d&&d.res;const f=d&&d.usedKey||s,p=d&&d.exactUsedKey||s,g=Object.prototype.toString.apply(m),h=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,$=!_(m)&&typeof m!="boolean"&&typeof m!="number";if(w&&m&&$&&h.indexOf(g)<0&&!(_(y)&&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 v=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=v,d.usedParams=this.getUsedParamsDetails(n),d):v}if(i){const v=Array.isArray(m),x=v?[]:{},S=v?p:f;for(const C in m)if(Object.prototype.hasOwnProperty.call(m,C)){const A=`${S}${i}${C}`;x[C]=this.translate(A,{...n,joinArrays:!1,ns:a}),x[C]===A&&(x[C]=m[C])}m=x}}else if(w&&_(y)&&Array.isArray(m))m=m.join(y),m&&(m=this.extendTranslation(m,e,n,o));else{let v=!1,x=!1;const S=n.count!==void 0&&!_(n.count),C=Fl.hasDefaultValue(n),A=S?this.pluralResolver.getSuffix(c,n.count,n):"",N=n.ordinal&&S?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",F=S&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),J=F&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${A}`]||n[`defaultValue${N}`]||n.defaultValue;!this.isValidLookup(m)&&C&&(v=!0,m=J),this.isValidLookup(m)||(x=!0,m=s);const ne=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:m,re=C&&J!==m&&this.options.updateMissing;if(x||v||re){if(this.logger.log(re?"updateKey":"missingKey",c,l,s,re?J:m),i){const D=this.resolve(s,{...n,keySeparator:!1});D&&D.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 ae=[];const me=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&me&&me[0])for(let D=0;D<me.length;D++)ae.push(me[D]);else this.options.saveMissingTo==="all"?ae=this.languageUtils.toResolveHierarchy(n.lng||this.language):ae.push(n.lng||this.language);const E=(D,j,q)=>{const O=C&&q!==m?q:ne;this.options.missingKeyHandler?this.options.missingKeyHandler(D,l,j,O,re,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(D,l,j,O,re,n),this.emit("missingKey",D,l,j,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?ae.forEach(D=>{const j=this.pluralResolver.getSuffixes(D,n);F&&n[`defaultValue${this.options.pluralSeparator}zero`]&&j.indexOf(`${this.options.pluralSeparator}zero`)<0&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(q=>{E([D],s+q,n[`defaultValue${q}`]||J)})}):E(ae,s,J))}m=this.extendTranslation(m,e,n,d,o),x&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}:${s}`),(x||v)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,v?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 c=_(e)&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const m=e.match(this.interpolator.nestingRegexp);u=m&&m.length}let d=o.replace&&!_(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),c){const m=e.match(this.interpolator.nestingRegexp),f=m&&m.length;u<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=_(a)?[a]:a;return e!=null&&l&&l.length&&o.applyPostProcessor!==!1&&(e=mw.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 _(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(o))return;const c=this.extractFromKey(l,n),u=c.key;r=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const m=n.count!==void 0&&!_(n.count),f=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(_(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(h=>{this.isValidLookup(o)||(a=h,!fw[`${g[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(fw[`${g[0]}-${h}`]=!0,this.logger.warn(`key "${r}" for languages "${g.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!!!")),g.forEach(y=>{if(this.isValidLookup(o))return;s=y;const w=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(w,u,y,h,n);else{let v;m&&(v=this.pluralResolver.getSuffix(y,n.count,n));const x=`${this.options.pluralSeparator}zero`,S=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(w.push(u+v),n.ordinal&&v.indexOf(S)===0&&w.push(u+v.replace(S,this.options.pluralSeparator)),f&&w.push(u+x)),p){const C=`${u}${this.options.contextSeparator}${n.context}`;w.push(C),m&&(w.push(C+v),n.ordinal&&v.indexOf(S)===0&&w.push(C+v.replace(S,this.options.pluralSeparator)),f&&w.push(C+x))}}let $;for(;$=w.pop();)this.isValidLookup(o)||(i=$,o=this.getResource(y,h,$,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&&!_(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 Vm=t=>t.charAt(0).toUpperCase()+t.slice(1);class pw{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Lt.create("languageUtils")}getScriptPartFromCode(e){if(e=Il(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=Il(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(_(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]=Vm(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]=Vm(o[1].toLowerCase())),n.indexOf(o[2].toLowerCase())>-1&&(o[2]=Vm(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)),_(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 _(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))):_(e)&&i(this.formatLanguageCode(e)),o.forEach(s=>{r.indexOf(s)<0&&i(this.formatLanguageCode(s))}),r}}let QD=[{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}],ZD={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 XD=["v1","v2","v3"],eR=["v4"],hw={zero:0,one:1,two:2,few:3,many:4,other:5},tR=()=>{const t={};return QD.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:ZD[e.fc]}})}),t};class nR{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Lt.create("pluralResolver"),(!this.options.compatibilityJSON||eR.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=tR(),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()){const o=Il(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];let s;try{s=new Intl.PluralRules(o,{type:r})}catch{if(!e.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(l,n)}return this.pluralRulesCache[i]=s,s}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)=>hw[r]-hw[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!XD.includes(this.options.compatibilityJSON)}}const gw=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=UD(t,e,n);return!i&&r&&_(n)&&(i=Hm(t,n,o),i===void 0&&(i=Hm(e,n,o))),i},Um=t=>t.replace(/\$/g,"$$$$");class oR{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Lt.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:o,useRawValueToEscape:r,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:m,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:h,maxReplaces:y,alwaysFormat:w}=e.interpolation;this.escape=n!==void 0?n:YD,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=i?yr(i):s||"{{",this.suffix=a?yr(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=m?yr(m):f||yr("$t("),this.nestingSuffix=p?yr(p):g||yr(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=y||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||{},c=f=>{if(f.indexOf(this.formatSeparator)<0){const y=gw(n,l,f,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,o,{...r,...n,interpolationkey:f}):y}const p=f.split(this.formatSeparator),g=p.shift().trim(),h=p.join(this.formatSeparator).trim();return this.format(gw(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),h,o,{...r,...n,interpolationkey:g})};this.resetRegExp();const u=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=c(p),s===void 0)if(typeof u=="function"){const h=u(e,i,r);s=_(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!_(s)&&!this.useRawValueToEscape&&(s=sw(s));const g=f.safeValue(s);if(e=e.replace(i[0],g),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,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));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),c&&(s={...c,...s})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${u}${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&&!_(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const u=r[1].split(this.formatSeparator).map(d=>d.trim());r[1]=u.shift(),l=u,c=!0}if(i=n(a.call(this,r[1].trim(),s),s),i&&r[0]===e&&!_(i))return i;_(i)||(i=sw(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),c&&(i=l.reduce((u,d)=>this.format(u,d,o.lng,{...o,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const rR=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const o=t.split("(");e=o[0].toLowerCase().trim();const r=o[1].substring(0,o[1].length-1);e==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:e,formatOptions:n}},br=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(Il(o),r),e[s]=a),a(n)}};class iR{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Lt.create("formatter"),this.options=e,this.formats={number:br((n,o)=>{const r=new Intl.NumberFormat(n,{...o});return i=>r.format(i)}),currency:br((n,o)=>{const r=new Intl.NumberFormat(n,{...o,style:"currency"});return i=>r.format(i)}),datetime:br((n,o)=>{const r=new Intl.DateTimeFormat(n,{...o});return i=>r.format(i)}),relativetime:br((n,o)=>{const r=new Intl.RelativeTimeFormat(n,{...o});return i=>r.format(i,o.range||"day")}),list:br((n,o)=>{const r=new Intl.ListFormat(n,{...o});return i=>r.format(i)})},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()]=br(n)}format(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,l)=>{const{formatName:c,formatOptions:u}=rR(l);if(this.formats[c]){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[c](a,f,{...u,...r,...m})}catch(m){this.logger.warn(m)}return d}else this.logger.warn(`there was no format function for ${c}`);return a},e)}}const sR=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class aR extends Bl{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=Lt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(o,r.backend,r)}queueLoad(e,n,o,r){const i={},s={},a={},l={};return e.forEach(c=>{let u=!0;n.forEach(d=>{const m=`${c}|${d}`;!o.reload&&this.store.hasResourceBundle(c,d)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?s[m]===void 0&&(s[m]=!0):(this.state[m]=1,u=!1,s[m]===void 0&&(s[m]=!0),i[m]===void 0&&(i[m]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(a[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,n,o){const r=e.split("|"),i=r[0],s=r[1];n&&this.emit("failedLoading",i,s,n),!n&&o&&this.store.addResourceBundle(i,s,o,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&o&&(this.state[e]=0);const a={};this.queue.forEach(l=>{VD(l.loaded,[i],s),sR(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{a[c][d]===void 0&&(a[c][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=(c,u)=>{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(c&&u&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,o,r+1,i*2,s)},i);return}s(c,u)},l=this.backend[o].bind(this.backend);if(l.length===2){try{const c=l(e,n);c&&typeof c.then=="function"?c.then(u=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(e,n,a)}prepareLoading(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();_(e)&&(e=this.languageUtils.toResolveHierarchy(e)),_(n)&&(n=[n]);const i=this.queueLoad(e,n,o,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(e,n,o){this.prepareLoading(e,n,{},o)}reload(e,n,o){this.prepareLoading(e,n,{reload:!0},o)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const o=e.split("|"),r=o[0],i=o[1];this.read(r,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${r} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${r}`,a),this.loaded(e,s,a)})}saveMissing(e,n,o,r,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${o}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(e,n,o,r,l):u=c(e,n,o,r),u&&typeof u.then=="function"?u.then(d=>a(null,d)).catch(a):a(null,u)}catch(u){a(u)}else c(e,n,o,r,a,l)}!e||!e[0]||this.store.addResource(e[0],n,o,r)}}}const yw=()=>({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]),_(t[1])&&(e.defaultValue=t[1]),_(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}}),bw=t=>(_(t.ns)&&(t.ns=[t.ns]),_(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),_(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),Hl=()=>{},lR=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class es extends Bl{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=bw(e),this.services={},this.logger=Lt,this.modules={external:[]},lR(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&&(_(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=yw();this.options={...r,...this.options,...bw(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Lt.init(i(this.modules.logger),this.options):Lt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=iR);const d=new pw(this.options);this.store=new dw(this.options.resources,this.options);const m=this.services;m.logger=Lt,m.resourceStore=this.store,m.languageUtils=d,m.pluralResolver=new nR(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(m.formatter=i(u),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new oR(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new aR(i(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(f){for(var p=arguments.length,g=new Array(p>1?p-1:0),h=1;h<p;h++)g[h-1]=arguments[h];e.emit(f,...g)}),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 Fl(this.services,this.options),this.translator.on("*",function(f){for(var p=arguments.length,g=new Array(p>1?p-1:0),h=1;h<p;h++)g[h-1]=arguments[h];e.emit(f,...g)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Hl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return e.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return e.store[u](...arguments),e}});const l=Zi(),c=()=>{const u=(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 u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hl;const r=_(e)?e:this.language;if(typeof e=="function"&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(a)})}else o(null)}reloadResources(e,n,o){const r=Zi();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=Hl),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"&&mw.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=Zi();this.emit("languageChanging",e);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve(function(){return o.t(...arguments)}),n&&n(l,function(){return o.t(...arguments)})},a=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const c=_(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{s(u,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),r}getFixedT(e,n,o){var r=this;const i=function(s,a){let l;if(typeof a!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=r.options.overloadTranslationOptionHandler([s,a].concat(u))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||o||i.keyPrefix);const 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 _(e)?i.lng=e:i.lngs=e,i.ns=n,i.keyPrefix=o,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const o=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(o,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(o,e)&&(!r||s(i,e)))}loadNamespaces(e,n){const o=Zi();return this.options.ns?(_(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=Zi();_(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 pw(yw());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 es(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hl;const o=e.forkResourceStore;o&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new es(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 dw(this.store.data,r),i.services.resourceStore=i.store),i.translator=new Fl(i.services,r),i.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];i.emit(a,...c)}),i.init(r,n),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ww=es.createInstance();ww.createInstance=es.createInstance;var cR=ww;const wr=Ww(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var _m={exports:{}},Ym={},vw={exports:{}};(function(t){var e=wr,n=wr;function o(i){return n.existsSync(e.join(i,"package.json"))}function r(i,s){if(i=i||t.parent.filename,s=s||o,typeof i=="string"&&(i[i.length-1]!==e.sep&&(i+=e.sep),i=i.split(e.sep)),!i.length)throw new Error("package.json not found in path");i.pop();var a=i.join(e.sep);try{if(s(a))return a}catch{}return r(i,s)}t.exports=r})(vw);var uR=vw.exports,$w={exports:{}},Sw={},dR=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Jm={exports:{}};typeof Object.create=="function"?Jm.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Jm.exports=function(e,n){e.super_=n;var o=function(){};o.prototype=n.prototype,e.prototype=new o,e.prototype.constructor=e};var mR=Jm.exports;(function(t){var e=/%[sdj%]/g;t.format=function(E){if(!$(E)){for(var D=[],j=0;j<arguments.length;j++)D.push(r(arguments[j]));return D.join(" ")}for(var j=1,q=arguments,O=q.length,P=String(E).replace(e,function(H){if(H==="%%")return"%";if(j>=O)return H;switch(H){case"%s":return String(q[j++]);case"%d":return Number(q[j++]);case"%j":try{return JSON.stringify(q[j++])}catch{return"[Circular]"}default:return H}}),I=q[j];j<O;I=q[++j])h(I)||!C(I)?P+=" "+I:P+=" "+r(I);return P},t.deprecate=function(E,D){if(x(Ze.process))return function(){return t.deprecate(E,D).apply(this,arguments)};if(process.noDeprecation===!0)return E;var j=!1;function q(){if(!j){if(process.throwDeprecation)throw new Error(D);process.traceDeprecation?console.trace(D):console.error(D),j=!0}return E.apply(this,arguments)}return q};var n={},o;t.debuglog=function(E){if(x(o)&&(o=process.env.NODE_DEBUG||""),E=E.toUpperCase(),!n[E])if(new RegExp("\\b"+E+"\\b","i").test(o)){var D=process.pid;n[E]=function(){var j=t.format.apply(t,arguments);console.error("%s %d: %s",E,D,j)}}else n[E]=function(){};return n[E]};function r(E,D){var j={seen:[],stylize:s};return arguments.length>=3&&(j.depth=arguments[2]),arguments.length>=4&&(j.colors=arguments[3]),g(D)?j.showHidden=D:D&&t._extend(j,D),x(j.showHidden)&&(j.showHidden=!1),x(j.depth)&&(j.depth=2),x(j.colors)&&(j.colors=!1),x(j.customInspect)&&(j.customInspect=!0),j.colors&&(j.stylize=i),l(j,E,j.depth)}t.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(E,D){var j=r.styles[D];return j?"\x1B["+r.colors[j][0]+"m"+E+"\x1B["+r.colors[j][1]+"m":E}function s(E,D){return E}function a(E){var D={};return E.forEach(function(j,q){D[j]=!0}),D}function l(E,D,j){if(E.customInspect&&D&&F(D.inspect)&&D.inspect!==t.inspect&&!(D.constructor&&D.constructor.prototype===D)){var q=D.inspect(j,E);return $(q)||(q=l(E,q,j)),q}var O=c(E,D);if(O)return O;var P=Object.keys(D),I=a(P);if(E.showHidden&&(P=Object.getOwnPropertyNames(D)),N(D)&&(P.indexOf("message")>=0||P.indexOf("description")>=0))return u(D);if(P.length===0){if(F(D)){var H=D.name?": "+D.name:"";return E.stylize("[Function"+H+"]","special")}if(S(D))return E.stylize(RegExp.prototype.toString.call(D),"regexp");if(A(D))return E.stylize(Date.prototype.toString.call(D),"date");if(N(D))return u(D)}var Z="",ze=!1,gt=["{","}"];if(p(D)&&(ze=!0,gt=["[","]"]),F(D)){var $o=D.name?": "+D.name:"";Z=" [Function"+$o+"]"}if(S(D)&&(Z=" "+RegExp.prototype.toString.call(D)),A(D)&&(Z=" "+Date.prototype.toUTCString.call(D)),N(D)&&(Z=" "+u(D)),P.length===0&&(!ze||D.length==0))return gt[0]+Z+gt[1];if(j<0)return S(D)?E.stylize(RegExp.prototype.toString.call(D),"regexp"):E.stylize("[Object]","special");E.seen.push(D);var It;return ze?It=d(E,D,j,I,P):It=P.map(function($O){return m(E,D,j,I,$O,ze)}),E.seen.pop(),f(It,Z,gt)}function c(E,D){if(x(D))return E.stylize("undefined","undefined");if($(D)){var j="'"+JSON.stringify(D).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return E.stylize(j,"string")}if(w(D))return E.stylize(""+D,"number");if(g(D))return E.stylize(""+D,"boolean");if(h(D))return E.stylize("null","null")}function u(E){return"["+Error.prototype.toString.call(E)+"]"}function d(E,D,j,q,O){for(var P=[],I=0,H=D.length;I<H;++I)me(D,String(I))?P.push(m(E,D,j,q,String(I),!0)):P.push("");return O.forEach(function(Z){Z.match(/^\d+$/)||P.push(m(E,D,j,q,Z,!0))}),P}function m(E,D,j,q,O,P){var I,H,Z;if(Z=Object.getOwnPropertyDescriptor(D,O)||{value:D[O]},Z.get?Z.set?H=E.stylize("[Getter/Setter]","special"):H=E.stylize("[Getter]","special"):Z.set&&(H=E.stylize("[Setter]","special")),me(q,O)||(I="["+O+"]"),H||(E.seen.indexOf(Z.value)<0?(h(j)?H=l(E,Z.value,null):H=l(E,Z.value,j-1),H.indexOf(`
154
+ 3. "-" cannot repeat`);le.customSchemes.push([t,e])}function vN(){le.scanner=mN(le.customSchemes);for(let t=0;t<le.tokenQueue.length;t++)le.tokenQueue[t][1]({scanner:le.scanner});le.parser=hN(le.scanner.tokens);for(let t=0;t<le.pluginQueue.length;t++)le.pluginQueue[t][1]({scanner:le.scanner,parser:le.parser});return le.initialized=!0,le}function Im(t){return le.initialized||vN(),gN(le.parser.start,t,Lb(le.scanner.start,t))}Im.scan=Lb;function _b(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const o=new jm(n),r=Im(t),i=[];for(let s=0;s<r.length;s++){const a=r[s];a.isLink&&(!e||a.t===e)&&o.check(a)&&i.push(a.toFormattedObject(o))}return i}const Lm="[\0-   ᠎ -\u2029  ]",$N=new RegExp(Lm),SN=new RegExp(`${Lm}$`),kN=new RegExp(Lm,"g");function xN(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function CN(t){return new _e({key:new bt("autolink"),appendTransaction:(e,n,o)=>{const r=e.some(c=>c.docChanged)&&!n.doc.eq(o.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!r||i)return;const{tr:s}=o,a=Pk(n.doc,[...e]);if(Uk(a).forEach(({newRange:c})=>{const u=Lk(o.doc,c,f=>f.isTextblock);let d,m;if(u.length>1)d=u[0],m=o.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ");else if(u.length){const f=o.doc.textBetween(c.from,c.to," "," ");if(!SN.test(f))return;d=u[0],m=o.doc.textBetween(d.pos,c.to,void 0," ")}if(d&&m){const f=m.split($N).filter(Boolean);if(f.length<=0)return!1;const p=f[f.length-1],g=d.pos+m.lastIndexOf(p);if(!p)return!1;const h=Im(p).map(y=>y.toObject(t.defaultProtocol));if(!xN(h))return!1;h.filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>o.schema.marks.code?!o.doc.rangeHasMark(y.from,y.to,o.schema.marks.code):!0).filter(y=>t.validate(y.value)).filter(y=>t.shouldAutoLink(y.value)).forEach(y=>{wg(y.from,y.to,o.doc).some(w=>w.mark.type===t.type)||s.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function EN(t){return new _e({key:new bt("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=bg(e.state,t.type.name),c=o.target,u=(r=c==null?void 0:c.href)!==null&&r!==void 0?r:l.href,d=(i=c==null?void 0:c.target)!==null&&i!==void 0?i:l.target;return c&&u?(window.open(u,d),!0):!1}}})}function NN(t){return new _e({key:new bt("handlePasteLink"),props:{handlePaste:(e,n,o)=>{const{state:r}=e,{selection:i}=r,{empty:s}=i;if(s)return!1;let a="";o.content.forEach(c=>{a+=c.textContent});const l=_b(a,{defaultProtocol:t.defaultProtocol}).find(c=>c.isLink&&c.value===a);return!a||!l?!1:t.editor.commands.setMark(t.type,{href:l.href})}}})}function wo(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(kN,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const AN=Vr.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){Ub(t);return}Ub(t.scheme,t.optionalSlashes)})},onDestroy(){wN()},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},isAllowedUri:(t,e)=>!!wo(t,e.protocols),validate:t=>!!t,shouldAutoLink: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||!this.options.isAllowedUri(e,{defaultValidate:n=>!!wo(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!wo(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Lo(this.options.HTMLAttributes,t),0]:["a",Lo(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:o=>!!wo(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:o=>!!wo(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[fx({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:o}=this.options,r=_b(t).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:s=>!!wo(s,n),protocols:n,defaultProtocol:o}));r.length&&r.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.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=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(CN({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:o=>this.options.isAllowedUri(o,{defaultValidate:r=>!!wo(r,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(EN({type:this.type})),this.options.linkOnPaste&&t.push(NN({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),DN=yn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Lo(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),RN=at.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new _e({key:new bt("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=e,r=[];if(!n)return null;const i=this.editor.isEmpty;return t.descendants((s,a)=>{const l=o>=a&&o<=a+s.nodeSize,c=!s.isLeaf&&_s(s);if((l||!this.options.showOnlyCurrent)&&c){const u=[this.options.emptyNodeClass];i&&u.push(this.options.emptyEditorClass);const d=st.node(a,a+s.nodeSize,{class:u.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:s,pos:a,hasAnchor:l}):this.options.placeholder});r.push(d)}return this.options.includeChildren}),be.create(t,r)}}})]}}),ON=yn.create({name:"text",group:"inline"});function TN({placeholder:t,autofocus:e=!1,content:n=""}){return{extensions:[nN,ON,DN,AN.configure({openOnClick:!1}),RN.configure({placeholder:t,showOnlyWhenEditable:!1}),tN.configure({}),oN.configure({})],content:n,autofocus:e,editorProps:{attributes:{class:"gh-comment-content focus:outline-0","data-testid":"editor"}},parseOptions:{preserveWhitespace:"full"}}}function MN(t,e){const n=k.useRef(null),o=k.useCallback(r=>{n.current,r&&t&&t(r),n.current=r},[t,e]);return[n,o]}function jN(t){const{popup:e}=Y();return(e==null?void 0:e.type)===t}function PN(t){const{t:e}=Y();return k.useMemo(()=>yv(t,e),[t])}function zm(t,e=!1){const[n,o]=k.useState(e),r=k.useMemo(()=>({...TN(t)}),[t]),i=NE(r,[r]);return k.useEffect(()=>{if(i){const s=()=>{const a=!i.isEmpty;o(a)};return i.on("update",s),i.on("transaction",s),s(),()=>{i.off("update",s),i.off("transaction",s)}}},[i]),{editor:i,hasContent:n}}function IN(t,e){const n=k.useCallback(()=>{if(t.current)for(const i of Object.values(e))t.current.classList.add(...i.default.split(" ")),t.current.classList.remove(...i.outOfViewport.split(" "))},[t,e]),o=k.useCallback(i=>{if(t.current)for(const[s,a]of Object.entries(e))i[s]?(t.current.classList.add(...a.outOfViewport.split(" ")),t.current.classList.remove(...a.default.split(" "))):(t.current.classList.add(...a.default.split(" ")),t.current.classList.remove(...a.outOfViewport.split(" ")))},[t,e]),r=k.useCallback(()=>{if(t.current){const i=t.current.ownerDocument,s=i.defaultView||window;n();const a=t.current.getBoundingClientRect(),l={top:a.top<0,bottom:a.bottom>(s.innerHeight||i.documentElement.clientHeight),left:a.left<0,right:a.right>(s.innerWidth||i.documentElement.clientWidth)};o(l)}},[t]);k.useLayoutEffect(()=>{r()},[t]),k.useEffect(()=>(window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}),[])}const LN=({comment:t,submit:e,progress:n,setProgress:o,close:r,isOpen:i,editor:s,submitText:a,submitSize:l,openForm:c})=>{const{dispatchAction:u,t:d}=Y();let m=null;k.useEffect(()=>{if(s&&c){const g=()=>{const h=t&&c.type==="edit"?s.getHTML()!==t.html:!s.isEmpty;c.hasUnsavedChanges!==h&&u("setCommentFormHasUnsavedChanges",{id:c.id,hasUnsavedChanges:h})};return s.on("update",g),s.on("transaction",g),g(),()=>{s.off("update",g),s.off("transaction",g)}}},[s,t,c,u]),n==="sending"&&(m=b.jsx(qa,{className:"size-[24px] fill-white","data-testid":"button-spinner"}));const f=k.useCallback(g=>{if(s!=null&&s.isFocused){g.stopPropagation();return}},[s]),p=k.useCallback(async()=>{if(!(!s||s.isEmpty)){o("sending");try{await e({html:s.getHTML()})}catch{o("error");return}return r?r():(o("sent"),s.chain().clearContent().blur().run()),!1}},[o,s,e,r]);return k.useEffect(()=>{const g=h=>{if(h.metaKey||h.ctrlKey){h.key==="Enter"&&(s!=null&&s.isFocused)&&(p(),s==null||s.commands.blur());return}if(h.key==="Escape"){s!=null&&s.isFocused&&(r?r():s==null||s.commands.blur());return}};return window.addEventListener("keydown",g,{passive:!0}),()=>{window.removeEventListener("keydown",g,{passive:!0})}},[s,r,p]),b.jsxs(b.Fragment,{children:[b.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"}`,"data-testid":"form-editor",children:b.jsx(yE,{editor:s,onMouseDown:f,onTouchStart:f})}),b.jsxs("div",{className:"absolute bottom-1 right-1 flex space-x-4 transition-[opacity] duration-150 sm:bottom-2 sm:right-2",children:[r&&b.jsx("button",{className:"ml-2.5 font-sans text-sm font-medium text-neutral-900/50 outline-0 transition-all hover:text-neutral-900/70 dark:text-white/60 dark:hover:text-white/75",type:"button",onClick:r,children:d("Cancel")}),b.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 bg-[var(--gh-accent-color)] px-3 py-2 text-center font-sans text-base font-medium text-white outline-0 transition-colors duration-200 hover:brightness-105 disabled:bg-black/5 disabled:text-neutral-900/30 sm:text-sm dark:disabled:bg-white/15 dark:disabled:text-white/35`,"data-testid":"submit-form-button",disabled:!s||s.isEmpty,type:"button",onClick:p,children:[m&&b.jsx("span",{className:"mr-1",children:m}),a&&b.jsx("span",{children:a})]})]})]})},zN=({show:t,name:e,expertise:n,replyingToText:o,editName:r,editExpertise:i})=>{const{t:s}=Y(),a=!!o;return b.jsxs(yo,{"data-testid":"form-header",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:[b.jsxs("div",{className:"flex flex-wrap",children:[b.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",onMouseDown:r,children:e||"Anonymous"}),b.jsx("div",{className:"flex items-baseline justify-start",children:b.jsxs("button",{className:`group flex items-center justify-start whitespace-nowrap text-left font-sans text-base leading-snug text-neutral-900/50 transition duration-150 hover:text-black/75 sm:text-sm dark:text-white/60 dark:hover:text-white/75 ${!n&&"text-black/30 hover:text-black/50 dark:text-white/30 dark:hover:text-white/50"}`,"data-testid":"expertise-button",type:"button",onMouseDown:i,children:[b.jsxs("span",{children:[b.jsx("span",{className:"mx-[0.3em] hidden sm:inline",children:"·"}),n||s("Add your expertise")]}),n&&b.jsx(kv,{className:"ml-1 size-[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"})]})})]}),a&&b.jsxs("div",{className:"mt-0.5 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60","data-testid":"replying-to",children:[b.jsxs("span",{children:[s("Reply to"),":"]})," ",b.jsx("span",{className:"font-semibold text-neutral-900/60 dark:text-white/70",children:o})]})]})},Bm=({comment:t,submit:e,submitText:n,submitSize:o,close:r,editor:i,reduced:s,isOpen:a,openForm:l})=>{const{member:c}=Y(),u=jN("addDetailsPopup"),[d,m]=k.useState("default"),f=k.useRef(null),p=c==null?void 0:c.name;(d==="sending"||p&&u)&&(a=!0);const g=h=>{if(i!=null&&i.isFocused){h.preventDefault();return}};return k.useEffect(()=>{i&&i.setEditable(!!p&&d!=="sending")},[i,p,d]),b.jsx("form",{ref:f,"data-testid":"form",onMouseDown:g,onTouchStart:g,children:b.jsx(LN,{close:r,comment:t,editor:i,isOpen:a,openForm:l,progress:d,reduced:s,setProgress:m,submit:e,submitSize:o,submitText:n})})},Yb=({editor:t,isOpen:e,reduced:n,openForm:o,children:r})=>{const{member:i,dispatchAction:s}=Y(),a=i==null?void 0:i.name,l=i==null?void 0:i.expertise;let c="";e&&(c=!!(o!=null&&o.in_reply_to_snippet)?"pl-[1px] pt-[68px] sm:pl-[44px] sm:pt-[56px]":"pl-[1px] pt-[48px] sm:pl-[44px] sm:pt-[40px]");const u=k.useCallback(p=>{var g;(g=t==null?void 0:t.commands)==null||g.blur(),s("openPopup",{type:"addDetailsPopup",expertiseAutofocus:p.expertiseAutofocus??!1,callback:function(h){t&&h&&(t.setEditable(!0),t.commands.focus())}})},[t,s]),d=k.useCallback(()=>{u({expertiseAutofocus:!1})},[u]),m=k.useCallback(()=>{u({expertiseAutofocus:!0})},[u]),f=k.useCallback(()=>{if(t&&!t.isFocused){if(!a){d();return}t.commands.focus()}},[t,d,a]);return b.jsx("div",{className:`-mx-2 mt-[-10px] rounded-md transition duration-200 ${e?"cursor-default":"cursor-pointer"}`,children:b.jsxs("div",{className:"relative w-full",onClick:f,children:[b.jsx("div",{className:"pr-[1px] font-sans leading-normal dark:text-neutral-300",children:b.jsx("div",{className:`relative mb-7 w-full pl-[40px] transition-[padding] delay-100 duration-150 sm:pl-[44px] ${n&&"pl-0"} ${c}`,children:r})}),b.jsxs("div",{className:"absolute left-0 top-1 flex h-11 w-full items-start justify-start sm:h-12",children:[b.jsx("div",{className:"pointer-events-none mr-2 grow-0 sm:mr-3",children:b.jsx(Gl,{member:i})}),b.jsx("div",{className:"grow-1 mt-0.5 w-full",children:b.jsx(zN,{editExpertise:m,editName:d,expertise:l,name:a,replyingToId:o==null?void 0:o.in_reply_to_id,replyingToText:o==null?void 0:o.in_reply_to_snippet,show:e})})]})]})})},BN=({comment:t,openForm:e,parent:n})=>{const{dispatchAction:o,t:r}=Y(),i=k.useMemo(()=>({placeholder:r("Edit this comment"),autofocus:!1,content:t.html}),[t]),{editor:s}=zm(i);k.useEffect(()=>{s&&s.chain().focus().command(({tr:c,commands:u})=>u.setTextSelection({from:c.doc.content.size,to:c.doc.content.size})).run()},[s]);const a=k.useCallback(async({html:c})=>{await o("editComment",{comment:{id:t.id,html:c},parent:n})},[n,t,o]),l=k.useCallback(()=>{o("closeCommentForm",e.id)},[o,e]);return b.jsx("div",{className:"relative w-full",children:b.jsx(Bm,{close:l,comment:t,editor:s,isOpen:!0,openForm:e,reduced:as(),submit:a,submitSize:"small",submitText:r("Save")})})},Jb=t=>k.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"black",...t},k.createElement("path",{d:"M8.00025 13.8739L2.46073 8.09636C1.97388 7.60989 1.65255 6.98248 1.54231 6.30312C1.43208 5.62376 1.53853 4.92694 1.84658 4.31148V4.31148C2.07887 3.84703 2.41819 3.44443 2.83659 3.13684C3.25499 2.82925 3.74049 2.62547 4.25308 2.54231C4.76567 2.45914 5.29069 2.49896 5.78488 2.65849C6.27906 2.81802 6.72827 3.09269 7.09549 3.45987L8.00025 4.36406L8.90502 3.45987C9.27224 3.09269 9.72145 2.81802 10.2156 2.65849C10.7098 2.49896 11.2348 2.45914 11.7474 2.54231C12.26 2.62547 12.7455 2.82925 13.1639 3.13684C13.5823 3.44443 13.9216 3.84703 14.1539 4.31148C14.4616 4.9267 14.5678 5.62311 14.4577 6.30208C14.3476 6.98105 14.0267 7.60817 13.5404 8.09462L8.00025 13.8739Z",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"})),FN=({comment:t})=>{const{dispatchAction:e,isMember:n,hasRequiredTier:o}=Y(),[r,i]=k.useState(""),[s,a]=k.useState(!1),l=n&&o,c=async()=>{if(!l){e("openPopup",{type:"ctaPopup"});return}t.liked?(a(!0),await e("unlikeComment",t),a(!1)):(a(!0),await e("likeComment",t),i("animate-heartbeat"),setTimeout(()=>{i("")},400),a(!1))};return b.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",disabled:s,type:"button",onClick:c,children:[b.jsx(Jb,{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]})},HN=({count:t,liked:e})=>b.jsxs("span",{className:`flex items-center font-sans text-base sm:text-sm ${e?"text-black/90 dark:text-white/90":"text-black/50 dark:text-white/60"}`,"data-testid":"like-count",children:[b.jsx(Jb,{className:`mr-[6px] ${e?"fill-black stroke-black dark:fill-white dark:stroke-white":"stroke-black/50 dark:stroke-white/60"}`}),t]}),Kb=({comment:t,close:e})=>{const{dispatchAction:n,t:o,adminUrl:r}=Y(),i=Ef(),s=()=>{n("hideComment",t),e()},a=()=>{n("showComment",t),e()},l=t.status!=="published",c=r?`${r}#/comments/?id=is:${t.id}`:null;return b.jsxs("div",{className:"flex w-full flex-col gap-0.5",children:[l?b.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700","data-testid":"show-button",type:"button",onClick:a,children:[b.jsx("span",{className:"hidden sm:inline",children:o("Show comment")}),b.jsx("span",{className:"sm:hidden",children:o("Show")})]}):b.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] text-red-600 transition-colors hover:bg-neutral-100 dark:text-red-500 dark:hover:bg-neutral-700","data-testid":"hide-button",type:"button",onClick:s,children:[b.jsx("span",{className:"hidden sm:inline",children:o("Hide comment")}),b.jsx("span",{className:"sm:hidden",children:o("Hide")})]}),(i==null?void 0:i.commentModeration)&&c&&b.jsx("a",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700","data-testid":"view-in-admin-button",href:c,rel:"noopener noreferrer",target:"_blank",onClick:e,children:o("View in admin")})]})},VN=({comment:t,close:e,toggleEdit:n})=>{const{dispatchAction:o,t:r}=Y(),i=()=>{o("openPopup",{type:"deletePopup",comment:t}),e()};return b.jsxs("div",{className:"flex w-full flex-col gap-0.5",children:[b.jsx("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700","data-testid":"edit",type:"button",onClick:n,children:r("Edit")}),b.jsx("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] text-red-600 transition-colors hover:bg-neutral-100 dark:text-red-500 dark:hover:bg-neutral-700","data-testid":"delete",type:"button",onClick:i,children:r("Delete")})]})},UN=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=Y(),r=()=>{n("openPopup",{type:"reportPopup",comment:t}),e()};return b.jsx("div",{className:"flex w-full flex-col gap-0.5",children:b.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700",type:"button",onClick:r,children:[b.jsx("span",{className:"hidden sm:inline",children:o("Report comment")}),b.jsx("span",{className:"sm:hidden",children:o("Report")})]})})},_N=({comment:t,close:e,toggleEdit:n})=>{var u;const{member:o,isAdmin:r}=Y(),i=o&&((u=t.member)==null?void 0:u.uuid)===(o==null?void 0:o.uuid),s=k.useRef(null),a=k.useRef(null);IN(a,{bottom:{default:"top-0",outOfViewport:"bottom-full mb-6"}}),k.useEffect(()=>{var f,p;const d=()=>{e()};window.addEventListener("click",d,{passive:!0});const m=(p=(f=s.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]),k.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 c=null;if(t.status==="published")i?c=b.jsx(VN,{close:e,comment:t,toggleEdit:n}):r?c=b.jsx(Kb,{close:e,comment:t}):c=b.jsx(UN,{close:e,comment:t});else if(r)c=b.jsx(Kb,{close:e,comment:t});else return null;return b.jsx("div",{ref:s,className:"relative","data-testid":"comment-context-menu",onClick:l,children:b.jsx("div",{ref:a,className:"absolute z-10 min-w-min whitespace-nowrap rounded bg-white p-1 font-sans text-sm shadow-lg outline-0 sm:min-w-[80px] dark:bg-neutral-800 dark:text-white","data-testid":"comment-context-menu-inner",children:c})})},YN=t=>k.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},k.createElement("path",{d:"M3 12C3.82843 12 4.5 11.3284 4.5 10.5C4.5 9.67157 3.82843 9 3 9C2.17157 9 1.5 9.67157 1.5 10.5C1.5 11.3284 2.17157 12 3 12Z"}),k.createElement("path",{d:"M8 12C8.82843 12 9.5 11.3284 9.5 10.5C9.5 9.67157 8.82843 9 8 9C7.17157 9 6.5 9.67157 6.5 10.5C6.5 11.3284 7.17157 12 8 12Z"}),k.createElement("path",{d:"M13 12C13.8284 12 14.5 11.3284 14.5 10.5C14.5 9.67157 13.8284 9 13 9C12.1716 9 11.5 9.67157 11.5 10.5C11.5 11.3284 12.1716 12 13 12Z"})),Fm=({comment:t,toggleEdit:e})=>{const[n,o]=k.useState(!1),r=()=>{o(s=>!s)},i=()=>{o(!1)};return b.jsxs("div",{"data-testid":"more-button",children:[b.jsx("button",{className:"outline-0",type:"button",onClick:r,children:b.jsx(YN,{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?b.jsx(_N,{close:i,comment:t,toggleEdit:e}):null]})},JN=({loadMore:t,count:e})=>{const{t:n}=Y(),o=e===1?n("Show 1 more reply"):n("Show {amount} more replies",{amount:ss(e)}),r=n("{amount} more",{amount:ss(e)});return b.jsx("div",{className:"flex w-full items-center justify-start","data-testid":"replies-pagination",children:b.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:b.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:["↓ ",b.jsx("span",{className:"ml-1 hidden sm:inline",children:o}),b.jsx("span",{className:"ml-1 inline sm:hidden",children:r})," "]})})})},Wb=3,KN=({comment:t})=>{const{dispatchAction:e,commentIdToScrollTo:n}=Y(),o=k.useRef(new Set(t.replies.map(f=>f.id))),[r,i]=k.useState(()=>!!n&&t.replies.slice(Wb).some(f=>f.id===n)),s=t.replies.some(f=>!o.current.has(f.id)),a=r||s,l=t.count.replies>t.replies.length,c=a?t.replies:t.replies.slice(0,Wb),u=t.replies.length-c.length,d=l?t.count.replies-c.length:u,m=()=>{l&&e("loadMoreReplies",{comment:t,limit:"all"}),i(!0)};return b.jsxs("div",{children:[c.map(f=>b.jsx(qb,{comment:f,parent:t},f.id)),d>0&&b.jsx(JN,{count:d,loadMore:m})]})},WN=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"black",width:16,height:16,viewBox:"0 0 16 16",...t},k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.3,d:"M1.333 7.206 6.539 2v3.254c3.645 0 8.461 1.432 8.461 7.81-1.757-2.994-3.58-3.905-8.46-3.905v3.254L1.332 7.206Z"})),qN=({disabled:t,isReplying:e,openReplyForm:n})=>{const{t:o,dispatchAction:r,isMember:i,hasRequiredTier:s}=Y(),a=i&&s,l=()=>{if(!a){r("openPopup",{type:"ctaPopup"});return}n()};return b.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:l,children:[b.jsx(WN,{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`}),o("Reply")]})},GN=({openForm:t,parent:e})=>{const{postId:n,dispatchAction:o,t:r}=Y(),[,i]=MN(ls),s=k.useMemo(()=>({placeholder:r("Reply to comment"),autofocus:!0}),[]),{editor:a}=zm(s),l=k.useCallback(async({html:d})=>{await o("addReply",{parent:e,reply:{post_id:n,in_reply_to_id:t.in_reply_to_id,status:"published",html:d}})},[e,n,t,o]),c=k.useCallback(()=>{o("closeCommentForm",t.id)},[o,t]),u=b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"hidden sm:inline",children:r("Add reply")}),b.jsx("span",{className:"sm:hidden",children:r("Reply")})]});return b.jsx("div",{ref:i,"data-testid":"reply-form",children:b.jsx("div",{className:"mt-[-16px] pr-2",children:b.jsx(Yb,{editor:a,isOpen:!0,openForm:t,reduced:as(),children:b.jsx(Bm,{close:c,editor:a,isOpen:!0,openForm:t,reduced:as(),submit:l,submitSize:"medium",submitText:u})})})})},qb=({comment:t,parent:e})=>{const{commentsIsLoading:n}=Y();return b.jsx(yo,{className:`${n?"animate-pulse":""}`,"data-testid":"animated-comment",enter:"transition-opacity duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",id:t.id,leave:"transition-opacity duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!0,appear:!0,children:b.jsx(QN,{comment:t,parent:e})})},QN=({comment:t,parent:e})=>{const{dispatchAction:n,isAdmin:o}=Y(),{showDeletedMessage:r,showHiddenMessage:i,showCommentContent:s}=ZN(t,o),a=k.useCallback(()=>{const l={id:t.id,type:"edit",hasUnsavedChanges:!1,in_reply_to_id:t.in_reply_to_id,in_reply_to_snippet:t.in_reply_to_snippet};n("openCommentForm",l)},[t.id,n]);return r||i?b.jsx(eA,{comment:t,openEditMode:a}):s&&!i?b.jsx(XN,{comment:t,openEditMode:a,parent:e}):null},ZN=(t,e)=>{const n=t.replies&&t.replies.length>0,o=t.status==="deleted",r=t.status==="hidden";return{showDeletedMessage:o&&n,showHiddenMessage:n&&r&&!e,showCommentContent:!o&&(e||t.status==="published")}},XN=({comment:t,parent:e,openEditMode:n})=>{var y;const{dispatchAction:o,openCommentForms:r,isAdmin:i,commentIdToHighlight:s}=Y(),l=i&&t.status==="hidden"?"opacity-30":"",c=r.find(w=>w.id===t.id&&w.type==="edit"),u=!!c,d=r.find(w=>(w.id===t.id||w.parent_id===t.id)&&w.type==="reply"),m=d&&(!d.parent_id||d.parent_id===t.id),f=!!(d&&d.id===t.id),p=k.useCallback(async()=>{if(d&&d.id===t.id)o("closeCommentForm",d.id);else{const w={};e&&(w.in_reply_to_id=t.id,w.in_reply_to_snippet=Sv(t));const v={id:t.id,parent_id:e==null?void 0:e.id,type:"reply",hasUnsavedChanges:!1,...w};await o("openCommentForm",v)}},[t,e,d,o]),g=m||t.replies&&t.replies.length>0,h=b.jsx(Gl,{member:t.member});return b.jsxs(Xb,{avatar:h,className:l,hasReplies:g,memberUuid:(y=t.member)==null?void 0:y.uuid,children:[b.jsx("div",{children:u?b.jsxs(b.Fragment,{children:[b.jsx(Zb,{className:l,comment:t}),b.jsx(BN,{comment:t,openForm:c,parent:e})]}):b.jsxs(b.Fragment,{children:[b.jsx(Zb,{className:l,comment:t}),b.jsx(iA,{className:l,html:t.html,isHighlighted:t.id===s}),b.jsx(sA,{comment:t,highlightReplyButton:f,openEditMode:n,openReplyForm:p,parent:e})]})}),b.jsx(Gb,{comment:t}),m&&b.jsx(Qb,{comment:t,openForm:d})]})},eA=({comment:t,openEditMode:e})=>{const{isAdmin:n,openCommentForms:o,t:r}=Y(),i=n&&t.status!=="deleted"?b.jsx(Gl,{member:t.member}):b.jsx(jf,{}),s=t.replies&&t.replies.length>0,a=t.status==="hidden"?r("This comment has been hidden."):t.status==="deleted"?r("This comment has been removed."):"",l=o.find(d=>(d.id===t.id||d.parent_id===t.id)&&d.type==="reply"),c=l&&(!l.parent_id||l.parent_id===t.id),u=n&&t.status==="hidden";return b.jsxs(Xb,{avatar:i,hasReplies:s,children:[b.jsx("div",{className:"mt-[-3px] flex items-start",children:b.jsxs("div",{className:"flex h-10 flex-row items-center gap-4 pb-[8px] pr-4",children:[b.jsx("p",{className:"text-md mt-[4px] font-sans leading-normal text-neutral-900/40 sm:text-lg dark:text-white/60",children:a}),u&&b.jsx("div",{className:"mt-[4px]",children:b.jsx(Fm,{comment:t,toggleEdit:e})})]})}),b.jsx(Gb,{comment:t}),c&&b.jsx(Qb,{comment:t,openForm:l})]})},tA=({comment:t})=>{var o;const{member:e}=Y(),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?b.jsxs("span",{className:"[overflow-wrap:anywhere]",children:[b.jsx("span",{className:"mx-[0.3em] hidden sm:inline-block",children:"·"}),n]}):null},nA=({comment:t})=>{const{t:e}=Y();return t.edited_at?b.jsxs("span",{children:[" (",e("edited"),")"]}):null},Gb=({comment:t,className:e=""})=>t.replies&&t.replies.length>0?b.jsx("div",{className:`-ml-2 mb-4 mt-7 sm:mb-0 sm:mt-8 ${e}`,children:b.jsx(KN,{comment:t})}):null,Qb=({comment:t,openForm:e})=>b.jsx("div",{className:"my-8 sm:my-10",children:b.jsx(GN,{openForm:e,parent:t})}),oA=({comment:t})=>{const{t:e}=Y(),n=vv(t,e);return b.jsx("h4",{className:"font-sans text-base font-bold leading-snug text-neutral-900 sm:text-sm dark:text-white/85",children:n})},rA=({comment:t})=>{const{comments:e,t:n,pageUrl:o}=Y(),r=gv(e,t.in_reply_to_id);let i=t.in_reply_to_snippet;(!r||r.status!=="published")&&(i=`[${n("removed")}]`);const s=r&&r.status==="published",a="font-medium text-neutral-900/60 break-all transition-colors dark:text-white/70",l=`${a} hover:text-neutral-900/75 dark:hover:text-white/85`;return s?b.jsx("a",{className:l,"data-testid":"comment-in-reply-to",href:Rf(o,t.in_reply_to_id),target:"_parent",children:i}):b.jsx("span",{className:a,"data-testid":"comment-in-reply-to",children:i})},Zb=({comment:t,className:e=""})=>{var c;const{member:n,t:o,pageUrl:r}=Y(),i=PN(t.created_at),s=n&&t.member&&t.member.uuid===n.uuid?n.expertise:(c=t==null?void 0:t.member)==null?void 0:c.expertise,a=t.in_reply_to_id&&t.in_reply_to_snippet,l=b.jsxs("a",{className:"hover:underline",href:Rf(r,t.id),target:"_parent",title:bv(t.created_at),children:[b.jsx("span",{className:"mx-[0.3em]",children:"·"}),i]});return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:`mt-0.5 flex flex-wrap items-start sm:flex-row ${s?"flex-col":"flex-row"} ${a?"mb-0.5":"mb-2"} ${e}`,children:[b.jsx(oA,{comment:t}),b.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:b.jsxs("span",{children:[b.jsx(tA,{comment:t}),l,b.jsx(nA,{comment:t})]})})]}),a&&b.jsxs("div",{className:"mb-2 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60",children:[b.jsx("span",{children:o("Replied to")}),": ",b.jsx(rA,{comment:t})]})]})},iA=({html:t,className:e="",isHighlighted:n})=>{let o=t;if(n){const s=new DOMParser().parseFromString(t,"text/html");s.querySelectorAll("p").forEach(l=>{const c=s.createElement("mark");for(c.className="animate-[highlight_2.5s_ease-out] [animation-delay:1s] bg-yellow-300/40 -my-0.5 py-0.5 dark:text-white/85 dark:bg-yellow-500/40";l.firstChild;)c.appendChild(l.firstChild);l.appendChild(c)}),o=s.body.innerHTML}const r={__html:o};return b.jsx("div",{className:`mt mb-2 flex flex-row items-center gap-4 pr-4 ${e}`,children:b.jsx("div",{dangerouslySetInnerHTML:r,className:"gh-comment-content text-md -mx-1 text-pretty rounded-md px-1 font-sans leading-normal text-neutral-900 [overflow-wrap:anywhere] sm:text-lg dark:text-white/85","data-testid":"comment-content"})})},sA=({comment:t,openReplyForm:e,highlightReplyButton:n,openEditMode:o,className:r=""})=>{var y;const{member:i,t:s,isMember:a,isAdmin:l,isCommentingDisabled:c}=Y(),u=t.status==="published",d=i&&((y=t.member)==null?void 0:y.uuid)===(i==null?void 0:i.uuid),m=!c,f=!c,h=(l||a&&u)&&!(c&&d);return l&&t.status==="hidden"?b.jsxs("div",{className:`flex items-center gap-4 ${r}`,children:[b.jsx("span",{className:"font-sans text-base leading-snug text-red-600 sm:text-sm",children:s("Hidden for members")}),b.jsx(Fm,{comment:t,toggleEdit:o})]}):b.jsxs("div",{className:`flex items-center gap-4 ${r}`,children:[m?b.jsx(FN,{comment:t}):b.jsx(HN,{count:t.count.likes,liked:t.liked}),f&&b.jsx(qN,{isReplying:n,openReplyForm:e}),h&&b.jsx(Fm,{comment:t,toggleEdit:o})]})},aA=({hasReplies:t})=>t?b.jsx("div",{className:"mb-2 h-full w-px grow rounded bg-gradient-to-b from-neutral-900/15 from-70% to-transparent dark:from-white/20 dark:from-70%","data-testid":"replies-line"}):null,Xb=({children:t,avatar:e,hasReplies:n,className:o="",memberUuid:r=""})=>b.jsxs("div",{className:`flex w-full flex-row ${n===!0?"mb-0":"mb-7"}`,"data-member-uuid":r,"data-testid":"comment-component",children:[b.jsxs("div",{className:"mr-2 flex flex-col items-center justify-start sm:mr-3",children:[b.jsx("div",{className:`flex-0 mb-3 sm:mb-4 ${o}`,children:e}),b.jsx(aA,{hasReplies:n})]}),b.jsx("div",{className:"grow",children:t})]}),lA=()=>{const{accentColor:t,supportEmail:e,t:n}=Y(),o={color:t};return b.jsxs(b.Fragment,{children:[b.jsx("h1",{className:"mb-2 text-center font-sans text-2xl font-semibold tracking-tight text-neutral-900 dark:text-white/85",children:n("Commenting disabled")}),b.jsx("p",{className:"w-full text-balance text-center text-lg leading-normal text-neutral-900 sm:px-8 dark:text-white/85",children:e?b.jsxs(b.Fragment,{children:[n("You can't post comments in this publication.")," ",b.jsx("a",{className:"font-semibold hover:opacity-90",href:`mailto:${e}`,style:o,children:n("Contact support")})," ",n("for more information.")]}):n("You can't post comments in this publication.")})]})},cA=({showCount:t,count:e})=>{const{t:n}=Y();return t?e===1?b.jsx("div",{className:"text-md text-neutral-900/50 sm:text-lg dark:text-white/50","data-testid":"count",children:n("1 comment")}):b.jsx("div",{className:"text-md text-neutral-900/50 sm:text-lg dark:text-white/50","data-testid":"count",children:n("{amount} comments",{amount:ss(e)})}):null},uA=({title:t})=>{const{t:e}=Y();return t===null?b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"sm:hidden",children:e("Discussion")}),b.jsx("span",{className:"hidden sm:inline",children:e("Member discussion")})]}):b.jsx(b.Fragment,{children:t})},dA=({title:t,showCount:e,count:n})=>!t&&!e&&t!==null?null:b.jsxs("div",{className:"mb-7 flex w-full items-baseline justify-between font-sans",children:[b.jsx("h2",{className:"text-[2.2rem] font-bold tracking-tight text-neutral-900 sm:text-2xl dark:text-white","data-testid":"title",children:b.jsx(uA,{title:t})}),b.jsx(cA,{count:n,showCount:e})]}),mA=({commentsCount:t})=>{const{postId:e,dispatchAction:n,t:o}=Y(),r=k.useMemo(()=>({placeholder:o(t===0?"Start the conversation":"Join the discussion"),autofocus:!1}),[t]),{editor:i,hasContent:s}=zm(r),a=k.useCallback(async({html:d})=>{await n("addComment",{post_id:e,status:"published",html:d}),i==null||i.commands.clearContent()},[e,n,i]),l=k.useRef(null);k.useEffect(()=>{if(!i)return;const d=m=>{var g;if(!i||m.metaKey||m.ctrlKey)return;let f=document.activeElement;for(;f&&f.tagName==="IFRAME"&&f.contentDocument;)f=((g=f.contentDocument)==null?void 0:g.activeElement)??null;const p=f&&(f.tagName==="INPUT"||f.tagName==="TEXTAREA"||f.tagName==="IFRAME"||f.contentEditable==="true");if(m.key==="c"&&!(i!=null&&i.isFocused)&&!p){i==null||i.commands.focus(),l.current&&ls(l.current);return}};return window.addEventListener("keydown",d,{passive:!0}),()=>{window.removeEventListener("keydown",d,{passive:!0})}},[i]);const c={submitText:b.jsxs(b.Fragment,{children:[b.jsxs("span",{className:"hidden sm:inline",children:[o("Add comment")," "]}),b.jsx("span",{className:"sm:hidden",children:o("Comment")})]}),submitSize:"large",submit:a},u=(i==null?void 0:i.isFocused)||s;return b.jsx("div",{ref:l,className:"px-3 pb-2 pt-3","data-testid":"main-form",children:b.jsx(Yb,{editor:i,isOpen:u,reduced:!1,children:b.jsx(Bm,{editor:i,isOpen:u,reduced:!1,...c})})})},fA=()=>{const{pagination:t,dispatchAction:e,t:n}=Y(),o=()=>{e("loadMoreComments",{})};if(!t)return null;const r=t.total-t.page*t.limit;if(r<=0)return null;const i=n("Load more ({amount})",{amount:ss(r)});return b.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:o,children:b.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:i})})},hr="ghost-comments-root",pA=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},k.createElement("path",{d:"M23.25,7.311,12.53,18.03a.749.749,0,0,1-1.06,0L.75,7.311",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",fillRule:"evenodd"})),hA=()=>{var u;const{t}=Y(),e=hv(),[n,o]=k.useState(!1),[r,i]=k.useState("count__likes desc, created_at desc"),s=k.useRef(null),a=[{value:"count__likes desc, created_at desc",label:t("Best")},{value:"created_at desc",label:t("Newest")},{value:"created_at asc",label:t("Oldest")}],l=d=>{i(d),e(d),o(!1)};k.useEffect(()=>{var f,p;const d=()=>{o(!1)};window.addEventListener("click",d,{passive:!0});const m=(p=(f=s.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})}},[]);const c=d=>{d.stopPropagation()};return b.jsxs("div",{ref:s,className:"relative z-20","data-testid":"comments-sorting-form",onClick:c,children:[b.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:()=>o(!n),children:[(u=a.find(d=>d.value===r))==null?void 0:u.label,b.jsx("span",{className:"size-2 stroke-[3px]",children:b.jsx(pA,{})})]}),n&&b.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:b.jsx("div",{"aria-labelledby":"options-menu","aria-orientation":"vertical",className:"py-1","data-testid":"comments-sorting-form-dropdown",role:"menu",children:a.map(d=>b.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:()=>l(d.value),children:d.label},d.value))})})]})};function ew(t){const e=t.defaultView;if(!(e!=null&&e.parent)||e.parent===e)return null;try{const n=e.parent.document.getElementsByTagName("iframe");for(const o of n)if(o.contentWindow===e)return o}catch{}return null}const gA=500;function tw(t,e){const n=t.clientHeight;let o=!1;const r=()=>{o||(o=!0,i.disconnect(),e())},i=new ResizeObserver(()=>{t.clientHeight!==n&&r()});i.observe(t);const s=setTimeout(r,gA);return()=>{clearTimeout(s),i.disconnect()}}const yA=()=>{const t=Ef(),{pagination:e,comments:n,commentCount:o,title:r,showCount:i,commentsIsLoading:s,t:a,dispatchAction:l,commentIdToScrollTo:c,showMissingCommentNotice:u,isMember:d,isPaidOnly:m,hasRequiredTier:f,isCommentingDisabled:p}=Y(),g=k.useRef(null),h=k.useCallback((C,D)=>{C.scrollIntoView({behavior:"smooth",block:"center"}),l("highlightComment",{commentId:D}),l("setScrollTarget",null)},[l]);k.useEffect(()=>{const C=document.getElementById(hr);C&&window.location.hash==="#ghost-comments"&&window.scrollY===0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{C.scrollIntoView()})})},[]),k.useEffect(()=>{const C=window.parent;if(!C)return;const D=()=>{const N=Of(C.location.hash);if(N&&g.current){const ne=g.current.ownerDocument.getElementById(N);ne&&h(ne,N)}};return C.addEventListener("hashchange",D),()=>C.removeEventListener("hashchange",D)},[h]),k.useEffect(()=>{if(!c||s||!g.current)return;const C=g.current.ownerDocument,D=C.getElementById(c);if(!D)return;const N=ew(C);if(N)return tw(N,()=>{h(D,c)});h(D,c)},[c,s,n,h]),k.useEffect(()=>{if(!u||s)return;const C=document.getElementById(hr);if(!C)return;const D=ew(C.ownerDocument);if(D)return tw(D,()=>{ls(C)});ls(C)},[u,s]);const y=(e==null?void 0:e.total)===0,w=d&&f&&!p,v=w,$=!w&&p,x=!w&&!p,S=n.map(C=>b.jsx(qb,{comment:C},C.id));return b.jsxs(b.Fragment,{children:[b.jsx(dA,{count:o,showCount:i,title:r}),u&&b.jsx("div",{className:"mb-6 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 font-sans text-sm text-amber-900 dark:border-amber-500/40 dark:bg-amber-500/15 dark:text-amber-100","data-testid":"missing-comment-notice",children:a("The linked comment is no longer available.")}),b.jsxs("div",{children:[v&&b.jsx(mA,{commentsCount:n.length}),$&&b.jsx("section",{className:"flex flex-col items-center py-6 sm:px-8 sm:py-10","data-testid":"commenting-disabled-box",children:b.jsx(lA,{})}),x&&b.jsx("section",{className:"flex flex-col items-center py-6 sm:px-8 sm:py-10","data-testid":"cta-box",children:b.jsx(Nf,{isFirst:y,isPaid:m})})]}),o>1&&b.jsx("div",{className:"z-20 mb-7 mt-3",children:b.jsxs("span",{className:"flex items-center gap-1.5 text-sm font-medium text-neutral-900 dark:text-neutral-100",children:[a("Sort by"),": ",b.jsx(hA,{})]})}),b.jsx("div",{ref:g,className:`z-10 transition-opacity duration-100 ${s?"opacity-50":""}`,"data-testid":"comment-elements",children:S}),b.jsx(fA,{}),t!=null&&t.testFlag?b.jsx("div",{"data-testid":"this-comes-from-a-flag",style:{display:"none"}}):null]})};function bA(){return b.jsx("div",{className:"flex h-32 w-full items-center justify-center","data-testid":"loading",children:b.jsx(qa,{className:"mb-6 size-12 fill-neutral-300/80 dark:fill-white/60"})})}const wA=({done:t})=>{const e=(c,u,d)=>{const m=[c,u,d].map(function(f){return f/=255,f<=.03928?f/12.92:Math.pow((f+.055)/1.055,2.4)});return m[0]*.2126+m[1]*.7152+m[2]*.0722},n=(c,u)=>{const d=e(c[0],c[1],c[2]),m=e(u[0],u[1],u[2]),f=Math.max(d,m),p=Math.min(d,m);return(f+.05)/(p+.05)},{accentColor:o,colorScheme:r}=Y(),i=k.useCallback(()=>{if(r==="light")return!1;if(r==="dark")return!0;{const c=document.getElementById(hr);if(!c||!c.parentElement)return!1;const u=getComputedStyle(c.parentElement).getPropertyValue("color"),d=u.substring(u.indexOf("(")+1,u.lastIndexOf(")")).split(/,\s*/),m=parseInt(d[0]),f=parseInt(d[1]),p=parseInt(d[2]);return n([255,255,255],[m,f,p])<5}},[r,n]),[s,a]=k.useState(i()?"dark":"");k.useEffect(()=>{a(i()?"dark":"")},[r,i]),k.useEffect(()=>{const c=document.getElementById(hr);if(c!=null&&c.parentElement){const u=new MutationObserver(()=>{a(i()?"dark":"")});return u.observe(c.parentElement,{attributes:!0,attributeFilter:["style","class"]}),()=>{u.disconnect()}}},[i]);const l={"--gh-accent-color":o??"black",paddingTop:0,paddingBottom:24};return b.jsx("section",{className:"ghost-display "+s,"data-loaded":t,"data-testid":"content-box",style:l,children:t?b.jsx(yA,{}):b.jsx(bA,{})})};class vA extends k.Component{constructor(n){super(n);$r(this,"node");$r(this,"iframeHtml");$r(this,"iframeHead");$r(this,"iframeRoot");$r(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 b.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...s,ref:this.setNode,frameBorder:"0",style:i,title:r,children:[this.iframeHead&&tm.createPortal(o,this.iframeHead),this.iframeRoot&&tm.createPortal(n,this.iframeRoot)]})}}const $A=k.forwardRef(function(e,n){return b.jsx(vA,{...e,innerRef:n})}),SA='*,: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}.container{width:100%}@media (min-width: 481px){.container{max-width:481px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1400px){.container{max-width:1400px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-left-4{left:-1.6rem}.bottom-1{bottom:.4rem}.bottom-full{bottom:100%}.left-0{left:0}.right-1{right:.4rem}.right-6{right:2.4rem}.top-0{top:0}.top-1{top:.4rem}.top-5{top:2rem}.z-10{z-index:10}.z-20{z-index:20}.-mx-1{margin-left:-.4rem;margin-right:-.4rem}.-mx-2{margin-left:-.8rem;margin-right:-.8rem}.-my-0\\.5{margin-top:-.2rem;margin-bottom:-.2rem}.mx-\\[0\\.3em\\]{margin-left:.3em;margin-right:.3em}.my-8{margin-top:3.2rem;margin-bottom:3.2rem}.-ml-2{margin-left:-.8rem}.mb-0{margin-bottom:0}.mb-0\\.5{margin-bottom:.2rem}.mb-1{margin-bottom:.4rem}.mb-1\\.5{margin-bottom:.6rem}.mb-10{margin-bottom:4rem}.mb-2{margin-bottom:.8rem}.mb-3{margin-bottom:1.2rem}.mb-4{margin-bottom:1.6rem}.mb-6{margin-bottom:2.4rem}.mb-7{margin-bottom:2.8rem}.mb-\\[12px\\]{margin-bottom:12px}.mb-\\[28px\\]{margin-bottom:28px}.mb-\\[8px\\]{margin-bottom:8px}.ml-1{margin-left:.4rem}.ml-2\\.5{margin-left:1rem}.ml-\\[48px\\]{margin-left:48px}.mr-1{margin-right:.4rem}.mr-2{margin-right:.8rem}.mr-\\[6px\\]{margin-right:6px}.mt-0\\.5{margin-top:.2rem}.mt-1\\.5{margin-top:.6rem}.mt-10{margin-top:4rem}.mt-3{margin-top:1.2rem}.mt-6{margin-top:2.4rem}.mt-7{margin-top:2.8rem}.mt-8{margin-top:3.2rem}.mt-\\[-10px\\]{margin-top:-10px}.mt-\\[-16px\\]{margin-top:-16px}.mt-\\[-1px\\]{margin-top:-1px}.mt-\\[-3px\\]{margin-top:-3px}.mt-\\[4px\\]{margin-top:4px}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.contents{display:contents}.hidden{display:none}.size-10{width:4rem;height:4rem}.size-12{width:4.8rem;height:4.8rem}.size-2{width:.8rem;height:.8rem}.size-5{width:2rem;height:2rem}.size-7{width:2.8rem;height:2.8rem}.size-\\[12px\\]{width:12px;height:12px}.size-\\[16px\\]{width:16px;height:16px}.size-\\[24px\\]{width:24px;height:24px}.h-10{height:4rem}.h-11{height:4.4rem}.h-32{height:12.8rem}.h-8{height:3.2rem}.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-36{width:14.4rem}.w-8{width:3.2rem}.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 highlight{to{background-color:transparent}}.animate-\\[highlight_2\\.5s_ease-out\\]{animation:highlight 2.5s ease-out}@keyframes heartbeat{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}.animate-heartbeat{animation:heartbeat .35s ease-in-out forwards}.animate-pulse{animation:pulse 1.5s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:.2rem}.gap-1\\.5{gap:.6rem}.gap-2{gap:.8rem}.gap-3{gap:1.2rem}.gap-4{gap:1.6rem}.gap-9{gap:3.6rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.6rem * var(--tw-space-x-reverse));margin-left:calc(1.6rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.text-pretty{text-wrap:pretty}.break-all{word-break:break-all}.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-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-black\\/10{border-color:#0000001a}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.bg-\\[var\\(--gh-accent-color\\)\\]{background-color:var(--gh-accent-color)}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-black\\/5{background-color:#0000000d}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-neutral-800{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/75{background-color:#ffffffbf}.bg-yellow-300\\/40{background-color:#fde04766}.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\\/15{--tw-gradient-from: rgb(23 23 23 / .15) 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)}.from-70\\%{--tw-gradient-from-position: 70%}.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-neutral-300\\/80{fill:#d4d4d4cc}.fill-white{fill:#fff}.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-1{padding-left:.4rem;padding-right:.4rem}.px-2{padding-left:.8rem;padding-right:.8rem}.px-2\\.5{padding-left:1rem;padding-right:1rem}.px-3{padding-left:1.2rem;padding-right:1.2rem}.px-4{padding-left:1.6rem;padding-right:1.6rem}.px-5{padding-left:2rem;padding-right:2rem}.px-8{padding-left:3.2rem;padding-right:3.2rem}.py-0\\.5{padding-top:.2rem;padding-bottom:.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-\\[68px\\]{padding-bottom:68px}.pb-\\[8px\\]{padding-bottom:8px}.pl-0{padding-left:0}.pl-\\[1px\\]{padding-left:1px}.pl-\\[40px\\]{padding-left:40px}.pr-0{padding-right:0}.pr-2{padding-right:.8rem}.pr-4{padding-right:1.6rem}.pr-\\[1px\\]{padding-right:1px}.pt-0{padding-top:0}.pt-10{padding-top:4rem}.pt-3{padding-top:1.2rem}.pt-6{padding-top:2.4rem}.pt-\\[48px\\]{padding-top:48px}.pt-\\[68px\\]{padding-top:68px}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:2.4rem}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-\\[2\\.2rem\\]{font-size:2.2rem}.text-base{font-size:1.3rem}.text-lg{font-size:1.65rem}.text-md{font-size:1.5rem}.text-sm{font-size:1.4rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-snug{line-height:1.375}.tracking-tight{letter-spacing:-.018em}.text-\\[rgba\\(0\\,0\\,0\\,0\\.4\\)\\]{color:#0006}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.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, 1))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-neutral-900\\/25{color:#17171740}.text-neutral-900\\/40{color:#17171766}.text-neutral-900\\/50{color:#17171780}.text-neutral-900\\/60{color:#17171799}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.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,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-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-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[border-color\\]{transition-property:border-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[padding\\]{transition-property:padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,fill,stroke,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,-webkit-text-decoration-color;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)}.\\[animation-delay\\:1s\\]{animation-delay:1s}.\\[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 var(--gh-accent-color);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\\/10:hover{background-color:#0000001a}.hover\\:bg-neutral-100:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.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, 1))}.hover\\:text-neutral-900\\/70:hover{color:#171717b3}.hover\\:text-neutral-900\\/75:hover{color:#171717bf}.hover\\:underline:hover{-webkit-text-decoration-line:underline;text-decoration-line:underline}.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, 1))}.focus\\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.focus\\:outline-0:focus{outline-width:0px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.disabled\\:bg-black\\/5:disabled{background-color:#0000000d}.disabled\\:text-neutral-900\\/30:disabled{color:#1717174d}.group:hover .group-hover\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:stroke-black\\/75{stroke:#000000bf}.group:hover .group-hover\\:opacity-100{opacity:1}.dark\\:border-amber-500\\/40:is(.dark *){border-color:#f59e0b66}.dark\\:bg-amber-500\\/15:is(.dark *){background-color:#f59e0b26}.dark\\:bg-neutral-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.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-yellow-500\\/40:is(.dark *){background-color:#eab30866}.dark\\:from-white\\/20:is(.dark *){--tw-gradient-from: rgb(255 255 255 / .2) 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\\:from-70\\%:is(.dark *){--tw-gradient-from-position: 70%}.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-amber-100:is(.dark *){--tw-text-opacity: 1;color:rgb(254 243 199 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-100:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-300:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-400:is(.dark *){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.dark\\:text-red-500:is(.dark *){--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\\:text-white\\/30:is(.dark *){color:#ffffff4d}.dark\\:text-white\\/50:is(.dark *){color:#ffffff80}.dark\\:text-white\\/60:is(.dark *){color:#fff9}.dark\\:text-white\\/70:is(.dark *){color:#ffffffb3}.dark\\:text-white\\/85:is(.dark *){color:#ffffffd9}.dark\\:text-white\\/90:is(.dark *){color:#ffffffe6}.dark\\:hover\\:bg-neutral-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.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, 1))}.dark\\:hover\\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\\:hover\\:text-white\\/50:hover:is(.dark *){color:#ffffff80}.dark\\:hover\\:text-white\\/75:hover:is(.dark *){color:#ffffffbf}.dark\\:hover\\:text-white\\/85:hover:is(.dark *){color:#ffffffd9}.dark\\:disabled\\:bg-white\\/15:disabled:is(.dark *){background-color:#ffffff26}.dark\\:disabled\\:text-white\\/35:disabled:is(.dark *){color:#ffffff59}.group:hover .dark\\:group-hover\\:stroke-white\\/75:is(.dark *){stroke:#ffffffbf}@media (min-width: 481px){.sm\\:bottom-2{bottom:.8rem}.sm\\:right-2{right:.8rem}.sm\\:right-8{right:3.2rem}.sm\\:top-9{top:3.6rem}.sm\\:my-10{margin-top:4rem;margin-bottom:4rem}.sm\\:mb-0{margin-bottom:0}.sm\\:mb-12{margin-bottom:4.8rem}.sm\\:mb-4{margin-bottom:1.6rem}.sm\\:mr-3{margin-right:1.2rem}.sm\\:mt-8{margin-top:3.2rem}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:inline{display:inline}.sm\\:hidden{display:none}.sm\\:h-12{height:4.8rem}.sm\\:h-auto{height:auto}.sm\\:w-\\[500px\\]{width:500px}.sm\\:w-\\[720px\\]{width:720px}.sm\\:w-auto{width:auto}.sm\\:w-fit{width:-webkit-fit-content;width:fit-content}.sm\\:min-w-\\[100px\\]{min-width:100px}.sm\\:min-w-\\[64px\\]{min-width:64px}.sm\\:min-w-\\[80px\\]{min-width:80px}.sm\\:flex-row{flex-direction:row}.sm\\:justify-normal{justify-content:normal}.sm\\:rounded-xl{border-radius:1.2rem}.sm\\:p-0{padding:0}.sm\\:p-8{padding:3.2rem}.sm\\:px-3{padding-left:1.2rem;padding-right:1.2rem}.sm\\:px-8{padding-left:3.2rem;padding-right:3.2rem}.sm\\:py-10{padding-top:4rem;padding-bottom:4rem}.sm\\:pl-0{padding-left:0}.sm\\:pl-\\[44px\\]{padding-left:44px}.sm\\:pr-10{padding-right:4rem}.sm\\:pr-4{padding-right:1.6rem}.sm\\:pt-0{padding-top:0}.sm\\:pt-\\[40px\\]{padding-top:40px}.sm\\:pt-\\[4vmin\\]{padding-top:4vmin}.sm\\:pt-\\[56px\\]{padding-top:56px}.sm\\:text-left{text-align:left}.sm\\:text-2xl{font-size:2.4rem}.sm\\:text-lg{font-size:1.65rem}.sm\\:text-sm{font-size:1.4rem}}',nw=q.forwardRef(function({children:e,onResize:n,style:o,title:r},i){const s=b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:SA}}),b.jsx("meta",{content:"width=device-width, initial-scale=1.0, maximum-scale=1.0",name:"viewport"})]});return b.jsx($A,{ref:i,head:s,style:o,title:r,onResize:n,children:e})}),kA=q.forwardRef(function({children:e,style:n,title:o},r){const[i,s]=k.useState(n),a=k.useCallback(l=>{s(c=>({...c,height:`${l.scrollHeight}px`}))},[]);return b.jsx(nw,{ref:r,style:i,title:o,onResize:a,children:e})}),xA=q.forwardRef(function({children:e},n){const o={width:"100%",height:"400px"};return b.jsx(kA,{ref:n,style:o,title:"comments-frame",children:e})}),CA=({children:t,title:e})=>{const n={zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"};return b.jsx(nw,{style:n,title:e,children:t})},EA=({show:t,children:e,title:n,callback:o})=>{const{dispatchAction:r}=Y(),i=()=>{r("closePopup",{}),o&&o(!1)};return k.useEffect(()=>{const s=a=>{a.key==="Escape"&&i()};return window.addEventListener("keydown",s,{passive:!0}),()=>{window.removeEventListener("keydown",s,{passive:!0})}}),b.jsx(yo,{appear:!0,show:t,children:b.jsx(CA,{title:n,children:b.jsx("div",{children:b.jsx(yo.Child,{enter:"transition duration-200 linear",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition duration-200 linear",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:b.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:b.jsx(yo.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})})})})})})},NA=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gh-portal-closeicon",alt:"Close",...t},k.createElement("defs",null,k.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px !important;}")),k.createElement("path",{className:"a",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),jl=({close:t})=>b.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:b.jsx(NA,{className:"size-5 p-1 pr-0"})}),AA=t=>{const e=k.useRef(null),n=k.useRef(null),{dispatchAction:o,member:r,accentColor:i,t:s}=Y(),[a,l]=k.useState(r.name??""),[c,u]=k.useState(r.expertise??""),d=50;let m=d;r.expertise&&(m-=r.expertise.length);const[f,p]=k.useState(m),[g,h]=k.useState({name:"",expertise:""}),y=S=>{S.stopPropagation()},w=S=>{o("closePopup",{}),t.callback(S)},v=async()=>{var S;a.trim()!==""?(await o("updateMember",{name:a,expertise:c}),w(!0)):(h({name:s("Enter your name"),expertise:""}),l(""),(S=e.current)==null||S.focus())};k.useEffect(()=>{if(!as()){const S=setTimeout(()=>{var C,D;t.expertiseAutofocus?(C=n.current)==null||C.focus():(D=e.current)==null||D.focus()},200);return()=>{clearTimeout(S)}}},[e,n,t.expertiseAutofocus]);const $=()=>{const S=N=>b.jsx(yo,{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:b.jsxs("div",{className:"flex flex-row items-center justify-start gap-3 pr-4",children:[b.jsx("div",{className:"size-10 rounded-full border-2 border-white bg-cover bg-no-repeat",style:{backgroundImage:`url(${N.avatar})`}}),b.jsxs("div",{className:"flex flex-col items-start justify-center",children:[b.jsx("div",{className:"font-sans text-base font-semibold tracking-tight text-white",children:N.name}),b.jsx("div",{className:"font-sans text-sm tracking-tight text-neutral-400",children:N.expertise})]})]})},N.name),C=[],D=[{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 N=0;N<D.length;N++)C.push(S(D[N]));return C},x=Cf(s("{amount} characters left"),"{amount}",()=>b.jsx("b",{children:f}));return b.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:y,children:b.jsxs("div",{className:"flex",children:[b.jsx("div",{className:"hidden w-[50%] flex-col items-center justify-center bg-neutral-800 sm:block sm:p-8",children:b.jsx("div",{className:"mt-[-1px] flex flex-col gap-9 text-left",children:$()})}),b.jsxs("div",{className:"p-0 sm:p-8",children:[b.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"),b.jsx("span",{className:"hidden sm:inline",children:"."})]}),b.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.")}),b.jsxs("section",{className:"mt-8 text-left",children:[b.jsxs("div",{className:"mb-2 flex flex-row justify-between",children:[b.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Name")}),b.jsx(yo,{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:!!g.name,children:b.jsx("div",{className:"font-sans text-sm text-red-500",children:g.name})})]}),b.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 ${g.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:S=>{l(S.currentTarget.value)},onKeyDown:S=>{S.key==="Enter"&&(l(S.currentTarget.value),v().catch(console.error))}}),b.jsxs("div",{className:"mb-2 mt-6 flex flex-row justify-between",children:[b.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Expertise")}),b.jsx("div",{className:`font-sans text-base text-neutral-400 ${f===0&&"text-red-500"}`,children:x})]}),b.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:c,onChange:S=>{const C=S.currentTarget.value;p(d-C.length),u(C)},onKeyDown:S=>{S.key==="Enter"&&(u(S.currentTarget.value),v().catch(console.error))}}),b.jsx("button",{className:"text-md mt-10 flex h-[42px] w-full items-center justify-center rounded-md px-8 font-sans font-semibold text-white opacity-100 transition-opacity duration-200 ease-linear hover:opacity-90","data-testid":"save-button",style:{backgroundColor:i??"#000000"},type:"button",onClick:()=>{v().catch(console.error)},children:s("Save")})]})]}),b.jsx(jl,{close:()=>w(!1)})]})})},DA=()=>{const{dispatchAction:t,isMember:e,isPaidOnly:n}=Y(),o=s=>{s.stopPropagation()},r=()=>{t("closePopup",{})},i=!e;return b.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:b.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[b.jsx("div",{className:"flex flex-col items-center pb-3 pt-6","data-testid":"cta-box",children:b.jsx(Nf,{isFirst:i,isPaid:n})}),b.jsx(jl,{close:r})]})})},ow=t=>k.createElement("svg",{width:"26px",height:"26px",viewBox:"-1 -1 26 26",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...t},k.createElement("g",{id:"check-circle",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},k.createElement("path",{className:"animated-check-circle",d:"M19.6004116,2.71490714 C17.5353801,1.0196018 14.8927356,0 12,0 C5.38938053,0 0,5.38938053 0,12 C0,18.6106195 5.38938053,24 12,24 C18.6106195,24 24,18.6106195 24,12 C24,9.71681416 23.3628319,7.59292035 22.2743363,5.78761062 L11.0442478,17.0442478 L5.49557522,11.4955752",id:"Shape",stroke:"#FFFFFF",strokeWidth:2}))),RA={addDetailsPopup:AA,reportPopup:({comment:t})=>{const{dispatchAction:e,t:n}=Y(),[o,r]=k.useState("default");let i="bg-red-600";o==="sent"&&(i="bg-green-600");let s=n("Report");const a=s;o==="sending"?s=n("Sending"):o==="sent"&&(s=n("Sent"));const l=b.jsx(qa,{className:"mr-2 size-[24px] fill-white"}),c=b.jsx(ow,{className:"mr-2 size-[16px]"});let u=null;o==="sending"?u=l:o==="sent"&&(u=c);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 b.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:b.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[b.jsx("h1",{className:"mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black",children:b.jsx("span",{children:n("Report this comment?")})}),b.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.")}),b.jsxs("div",{className:"mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row",children:[b.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:[b.jsxs("span",{className:"invisible whitespace-nowrap",children:[a,b.jsx("br",{}),b.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[l,n("Sending")]}),b.jsx("br",{}),b.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[c,n("Sent")]})]}),b.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[u,s]})]}),b.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")})]}),b.jsx(jl,{close:m})]})})},ctaPopup:DA,deletePopup:({comment:t})=>{const{dispatchAction:e,t:n}=Y(),[o,r]=k.useState("default"),[i,s]=k.useState(!1);let a="bg-red-600";o==="sent"&&(a="bg-green-600");let l=n("Delete");const c=l;o==="sending"?l=n("Deleting"):o==="sent"&&(l=n("Deleted"));const u=b.jsx(qa,{className:"mr-2 size-[24px] fill-white"}),d=b.jsx(ow,{className:"mr-2 size-[16px]"});let m=null;o==="sending"?m=u:o==="sent"&&(m=d);const f=h=>{h.stopPropagation()},p=()=>{e("closePopup",{})},g=h=>{h.stopPropagation(),!i&&(s(!0),r("sending"),setTimeout(()=>{r("sent"),e("deleteComment",t),setTimeout(()=>{p()},750)},1e3))};return b.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","data-testid":"delete-popup",onMouseDown:f,children:b.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[b.jsx("h1",{className:"mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black",children:b.jsx("span",{children:n("Are you sure?")})}),b.jsx("p",{className:"text-md px-4 font-sans leading-9 text-black sm:pl-0 sm:pr-4",children:n("Once deleted, this comment can’t be recovered.")}),b.jsxs("div",{className:"mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row",children:[b.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 ${a} opacity-100 hover:opacity-90`,"data-testid":"delete-popup-confirm",disabled:i,type:"button",onClick:g,children:[b.jsxs("span",{className:"invisible whitespace-nowrap",children:[c,b.jsx("br",{}),b.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[u,n("Deleting")]}),b.jsx("br",{}),b.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[d,n("Deleted")]})]}),b.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[m,l]})]}),b.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:p,children:n("Cancel")})]}),b.jsx(jl,{close:p})]})})}},OA=()=>{const{popup:t}=Y(),[e,n]=k.useState(t);if(k.useEffect(()=>{if(t!==null&&n(t),t===null){const a=setTimeout(()=>{n(null)},250);return()=>{clearTimeout(a)}}},[t,n]),!e||!e.type)return null;const{type:o,...r}=t??e,i=RA[o];if(!i)return console.warn("Unknown popup of type ",o),null;const s=t===e;return b.jsx(b.Fragment,{children:b.jsx(EA,{callback:r.callback,show:s,title:o,children:b.jsx(i,{...r})})})};var gr={exports:{}};const TA={"{amount} characters left":"{amount} karakters oor","{amount} comments":"{amount} kommentaar","{amount} hrs ago":"{amount} ure gelede","{amount} mins ago":"{amount} minute gelede","{amount} more":"{amount} meer","1 comment":"1 kommentaar","Add comment":"Voeg kommentaar by","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Voeg konteks by jou kommentaar, deel jou naam en kundigheid om 'n gesonde bespreking te bevorder.","Add reply":"Voeg antwoord by","Add your expertise":"","Already a member?":"Reeds 'n lid?",Anonymous:"Anoniem","Are you sure?":"","Become a member of {publication} to start commenting.":"Word 'n lid van {publication} om kommentaar te lewer.","Become a paid member of {publication} to start commenting.":"Word 'n betaalde lid van {publication} om kommentaar te lewer.",Best:"",Cancel:"Kanselleer",Comment:"Kommentaar","Commenting disabled":"","Complete your profile":"Voltooi jou profiel","Contact support":"",Delete:"Skrap",Deleted:"","Deleted member":"Geskrapte lid",Deleting:"",Discussion:"Bespreking",Edit:"Redigeer","Edit this comment":"Redigeer hierdie kommentaar",edited:"geredigeer","Enter your name":"Voer jou naam in",Expertise:"Kundigheid","for more information.":"","Founder @ Acme Inc":"Stigter @ Acme Inc","Full-time parent":"Voltydse ouer","Head of Marketing at Acme, Inc":"Hoof van Bemarking by Acme, Inc","Hidden for members":"",Hide:"Versteek","Hide comment":"Versteek kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Sluit aan by die bespreking","Just now":"Sopas","Load more ({amount})":"","Local resident":"Plaaslike inwoner","Member discussion":"Lidmaat bespreking",Name:"Naam",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Een uur gelede","One min ago":"Een minuut gelede",removed:"","Replied to":"",Reply:"Antwoord","Reply to":"","Reply to comment":"Antwoord op kommentaar",Report:"Rapporteer","Report comment":"Rapporteer kommentaar","Report this comment?":"Rapporteer hierdie kommentaar?",Save:"Stoor",Sending:"Besig om te stuur",Sent:"Gestuur",Show:"Wys","Show {amount} more replies":"Wys {amount} meer antwoorde","Show 1 more reply":"Wys nog 1 antwoord","Show comment":"Wys kommentaar","Sign in":"Teken in","Sign up now":"Sluit nou aan","Sort by":"","Start the conversation":"Begin die gesprek","The linked comment is no longer available.":"","This comment has been hidden.":"Hierdie kommentaar is weggesteek.","This comment has been removed.":"Hierdie kommentaar is verwyder.","Upgrade now":"Gradeer nou op","View in admin":"",Yesterday:"Gister","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Jou versoek sal aan die eienaar van hierdie webwerf gestuur word."},MA={"{amount} characters left":"الحروف المتبقية : {amount}","{amount} comments":"{amount} تعليق/ات","{amount} hrs ago":"منذ {amount} ساعات","{amount} mins ago":"منذ {amount} دقيقة","{amount} more":"{amount} المزيد","1 comment":"تعليق واحد","Add comment":"اضف تعليق","Add context to your comment, share your name and expertise to foster a healthy discussion.":"قم بإضافة سياق لتعليقك، شارك اسمك و مجال خبرتك لكي نرعى محادثة مثمرة","Add reply":"ردّ","Add your expertise":"","Already a member?":"هل انت مسجل بالفعل؟",Anonymous:"مجهول","Are you sure?":"","Become a member of {publication} to start commenting.":"يجب أن تصبح عضوًا فى {publication} لتستطيع التعليق","Become a paid member of {publication} to start commenting.":"يجب ان تكون عضويتك مدفوعة فى {publication} لكي تستطيع التعليق",Best:"",Cancel:"إلغاء",Comment:"تعليق","Commenting disabled":"","Complete your profile":"إكمال ملفك الشخصى","Contact support":"",Delete:"حذف",Deleted:"","Deleted member":"الاعضاء المحذوفين",Deleting:"",Discussion:"النقاش",Edit:"تعديل","Edit this comment":"عدّل هذا التعليق",edited:"تم التعديل","Enter your name":"اكتب اسمك",Expertise:"مجال تخصصك","for more information.":"","Founder @ Acme Inc":"مؤسس لدى شركة أكمي","Full-time parent":"أب بدوام كامل","Head of Marketing at Acme, Inc":"رئيس وحدة التسويق لدى شركة أكمى","Hidden for members":"",Hide:"اخفاء","Hide comment":"اخف التعليق","Jamie Larson":"فلان الفلانى","Join the discussion":"انضم للمحادثة","Just now":"الآن","Load more ({amount})":"","Local resident":"مقيم محلى","Member discussion":"مناقشة الاعضاء",Name:"الاسم",Neurosurgeon:"جراح المخ و الاعصاب",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"منذ ساعة واحدة","One min ago":" منذ دقيقة واحدة",removed:"","Replied to":"",Reply:"رد","Reply to":"","Reply to comment":"رد على هذا التعليق",Report:"الإبلاغ","Report comment":"ابلغ عن هذا التعليق","Report this comment?":"الإبلاغ عن التعليق؟",Save:"حفظ",Sending:"جارى الارسال",Sent:"تم الارسال",Show:"اظهر","Show {amount} more replies":"اظهر {amount} ردود","Show 1 more reply":"اظهر تعليق وحيد","Show comment":"اظهر التعليق","Sign in":"تسجيل الدخول","Sign up now":"قم بالتسجيل الآن","Sort by":"ترتيب بحسب","Start the conversation":"ابدأ النقاش","The linked comment is no longer available.":"","This comment has been hidden.":"تم اخفاء هذا التعليق","This comment has been removed.":"تم حذف هذا التعليق","Upgrade now":"قم بالترقية الآن","View in admin":"",Yesterday:"أمس","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"سيتم ارسال طلبك لصاحب الموقع"},jA={"{amount} characters left":"Остават {amount} знака","{amount} comments":"{amount} коментара","{amount} hrs ago":"Преди {amount} часа","{amount} mins ago":"Преди {amount} минути","{amount} more":"Още {amount}","1 comment":"1 коментар","Add comment":"Нов коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Добавете контекст към коментара си, споделете името си и опита си, за да насърчите полезна дискусия.","Add reply":"Отговор","Add your expertise":"Добавете компетенции","Already a member?":"Вече сте абонат?",Anonymous:"Анонимен","Are you sure?":"Убедени ли сте?","Become a member of {publication} to start commenting.":"Абонирайте се за {publication}, за да коментирате.","Become a paid member of {publication} to start commenting.":"Станете плащащ абонат на {publication}, за да коментирате.",Best:"Най-добрите",Cancel:"Отказ",Comment:"Коментар","Commenting disabled":"Коментирането е изключено","Complete your profile":"Попълнете профила си","Contact support":"Връзка с поддръжката",Delete:"Изтриване",Deleted:"Изтрито","Deleted member":"Изтрит абонат",Deleting:"Изтриване",Discussion:"Дискусия",Edit:"Редактиране","Edit this comment":"Редактиране на коментара",edited:"редактиран","Enter your name":"Попълнете името си",Expertise:"Компетенции","for more information.":"за повече информация.","Founder @ Acme Inc":"Основател на Компания ООД","Full-time parent":"Родител на пълно работно време","Head of Marketing at Acme, Inc":"Директор маркетинг в Компания ООД","Hidden for members":"Скрит за абонати",Hide:"Скриване","Hide comment":"Скриване на коментара","Jamie Larson":"Иван Иванов","Join the discussion":"Участвайте в дискусията","Just now":"Току-що","Load more ({amount})":"Още ({amount})","Local resident":"Местен жител","Member discussion":"Дискусия за абонатите",Name:"Име",Neurosurgeon:"Неврохирург",Newest:"Най-нови",Oldest:"Най-стари","Once deleted, this comment can’t be recovered.":"Веднъж изтрит, коментарът не може да бъде възстановен.","One hour ago":"Преди час","One min ago":"Преди минута",removed:"премахнат","Replied to":"Отговорено на",Reply:"Отговор","Reply to":"Отговор на","Reply to comment":"Отговор на коментара",Report:"Докладване","Report comment":"Докладване на коментара","Report this comment?":"Ще докладвате ли коментара?",Save:"Запис",Sending:"Изпращане",Sent:"Изпратен",Show:"Показване","Show {amount} more replies":"Покажи още {amount} отговора","Show 1 more reply":"Покажи още един отговор","Show comment":"Покажи коментар","Sign in":"Вход","Sign up now":"Регистрация","Sort by":"Сортиране по","Start the conversation":"Започнете дискусия","The linked comment is no longer available.":"Посоченият коментар вече не е наличен.","This comment has been hidden.":"Този коментар е скрит.","This comment has been removed.":"Този коментар е премахнат.","Upgrade now":"Надградете сега","View in admin":"Преглед в админ панела",Yesterday:"Вчера","You can't post comments in this publication.":"Не може да коментирате под тази публикация.","Your request will be sent to the owner of this site.":"Искането ще бъде изпратено до собственика на сайта."},PA={"{amount} characters left":"{amount} অক্ষর বাকি","{amount} comments":"{amount} মন্তব্য","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"{amount}টি আরও","1 comment":"১টি মন্তব্য","Add comment":"মন্তব্য যোগ করুন","Add context to your comment, share your name and expertise to foster a healthy discussion.":"আপনার মন্তব্যে প্রসঙ্গ যোগ করুন, একটি সুস্থ আলোচনা করতে আপনার নাম ও অভিজ্ঞতা শেয়ার করুন।","Add reply":"উত্তর যোগ করুন","Add your expertise":"","Already a member?":"ইত:পূর্বে সদস্য?",Anonymous:"অজ্ঞাতনামা","Are you sure?":"","Become a member of {publication} to start commenting.":"{publication} এর সদস্য হন মন্তব্য করার জন্য।","Become a paid member of {publication} to start commenting.":"{publication} এর পেইড সদস্য হন মন্তব্য করার জন্য।",Best:"",Cancel:"বাতিল করুন",Comment:"মন্তব্য","Commenting disabled":"","Complete your profile":"আপনার প্রোফাইল সম্পূর্ণ করুন","Contact support":"",Delete:"মুছে ফেলুন",Deleted:"","Deleted member":"মুছে ফেলা সদস্য",Deleting:"",Discussion:"আলোচনা",Edit:"সম্পাদনা","Edit this comment":"এই মন্তব্য সম্পাদনা করুন",edited:"","Enter your name":"আপনার নাম লিখুন",Expertise:"বিশেষজ্ঞতা","for more information.":"","Founder @ Acme Inc":"প্রতিষ্ঠাতা @ বাংলাদেশ ট্রেড হাব","Full-time parent":"পূর্ণকালীন অভিভাবক","Head of Marketing at Acme, Inc":"মার্কেটিং প্রধান @ বাংলাদেশ ট্রেড হাব","Hidden for members":"",Hide:"লুকান","Hide comment":"মন্তব্য লুকান","Jamie Larson":"শাহ নেওয়াজ","Join the discussion":"আলোচনায় যোগ দিন","Just now":"এখনই","Load more ({amount})":"","Local resident":"স্থানীয় বাসিন্দা","Member discussion":"সদস্য আলোচনা",Name:"নাম",Neurosurgeon:"নিউরোসার্জন",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"এক ঘণ্টা পূর্বে","One min ago":"",removed:"","Replied to":"",Reply:"উত্তর","Reply to":"","Reply to comment":"মন্তব্যের উত্তর দিন",Report:"প্রতিবেদন","Report comment":"মন্তব্য প্রতিবেদন করুন","Report this comment?":"এই মন্তব্য প্রতিবেদন করবেন?",Save:"সংরক্ষণ করুন",Sending:"পাঠানো হচ্ছে",Sent:"পাঠানো হয়েছে",Show:"দেখান","Show {amount} more replies":" আরো {amount}টি উত্তর দেখান","Show 1 more reply":"১টি আরো উত্তর দেখান","Show comment":"মন্তব্য দেখান","Sign in":"সাইন ইন করুন","Sign up now":"এখনই সাইন আপ করুন","Sort by":"","Start the conversation":"আলোচনা শুরু করুন","The linked comment is no longer available.":"","This comment has been hidden.":"এই মন্তব্য লুকানো হয়েছে।","This comment has been removed.":"এই মন্তব্য মুছে ফেলা হয়েছে।","Upgrade now":"এখনই আপগ্রেড করুন","View in admin":"",Yesterday:"গতকাল","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"আপনার অনুরোধ সাইটের মালিকের কাছে পাঠানো হবে।"},IA={"{amount} characters left":"Preostalo {amount} karaktera","{amount} comments":"{amount} komentara","{amount} hrs ago":"Prije {amount} sati","{amount} mins ago":"Prije {amount} minuta","{amount} more":"Još {amount}","1 comment":"1 komentar","Add comment":"Dodaj komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodaj kontekst svom komentaru, podijeli svoje ime i stručnost u svrhu kvalitetnije diskusije.","Add reply":"Objavi komentar","Add your expertise":"","Already a member?":"Već si član?",Anonymous:"Anoniman","Are you sure?":"","Become a member of {publication} to start commenting.":"Postani član portala {publication} za pristup diskusiji.","Become a paid member of {publication} to start commenting.":"Postani plaćeni član portala {publication} za pristup diskusiji.",Best:"",Cancel:"Otkaži",Comment:"Komentar","Commenting disabled":"","Complete your profile":"Dovrši svoj profil","Contact support":"",Delete:"Obriši",Deleted:"","Deleted member":"Obrisan član",Deleting:"",Discussion:"Diskusija",Edit:"Uredi","Edit this comment":"Uredi komentar",edited:"uređeno","Enter your name":"Unesi ime",Expertise:"Stručnost","for more information.":"","Founder @ Acme Inc":"Acme Inc osnivač","Full-time parent":"Full time roditelj","Head of Marketing at Acme, Inc":"Šef marketinga u kompaniji Acme d.o.o","Hidden for members":"",Hide:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Vanja Larsić","Join the discussion":"Pridruži se diskusiji","Just now":"Upravo sada","Load more ({amount})":"","Local resident":"Lokalni stanovnik","Member discussion":"Diskusija članova",Name:"Ime",Neurosurgeon:"Neurohirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prije jedan sat","One min ago":"Prije jedan minut",removed:"","Replied to":"",Reply:"Odgovori","Reply to":"","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Prijavi ovaj komentar?",Save:"Sačuvaj",Sending:"Šaljem",Sent:"Poslano",Show:"Prikaži","Show {amount} more replies":"Prikaži još {amount} odgovora","Show 1 more reply":"Prikaži još jedan odgovor","Show comment":"Prikaži komentar","Sign in":"Prijavi se","Sign up now":"Postani član","Sort by":"","Start the conversation":"Započni diskusiju","The linked comment is no longer available.":"","This comment has been hidden.":"Ovaj komentar je sakriven.","This comment has been removed.":"Ovaj komentar je uklonjen.","Upgrade now":"Nadogradi račun sada","View in admin":"",Yesterday:"Jučer","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Tvoj zahtjev je poslan vlasniku stranice."},LA={"{amount} characters left":"{amount} caràcters restants","{amount} comments":"{amount} comentaris","{amount} hrs ago":"Fa {amount} hores","{amount} mins ago":"Fa {amount} minuts","{amount} more":"{amount} més","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","Add your expertise":"","Already a member?":"Ja n'ets membre?",Anonymous:"Anònim","Are you sure?":"N'estàs segur?","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",Best:"",Cancel:"Cancel·la",Comment:"Comentari","Commenting disabled":"","Complete your profile":"Completa el teu perfil","Contact support":"",Delete:"Esborra",Deleted:"Esborrat","Deleted member":"Membre esborrat",Deleting:"Esborrant",Discussion:"Debat",Edit:"Edita","Edit this comment":"Edita aquest comentari",edited:"editat","Enter your name":"Escriu el teu nom",Expertise:"Expertesa","for more information.":"","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Pare a temps complet","Head of Marketing at Acme, Inc":"Cap de màrqueting a Acme, Inc","Hidden for members":"Ocult pels membres",Hide:"Oculta","Hide comment":"Oculta el comentari","Jamie Larson":"Jamie Larson","Join the discussion":"Uneix-te al debat","Just now":"Just ara","Load more ({amount})":"","Local resident":"Resident local","Member discussion":"Debat de membres",Name:"Nom",Neurosurgeon:"Neurocirurgià",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Un cop esborrat, aquest comentari no es pot recuperar","One hour ago":"Fa una hora","One min ago":"Fa un minut",removed:"Esborrat","Replied to":"Respost a",Reply:"Respon","Reply to":"Respon a","Reply to comment":"Respon al comentari",Report:"Reporta","Report comment":"Reporta comentari","Report this comment?":"Reporta aquest comentari?",Save:"Desa",Sending:"Enviant",Sent:"Enviat",Show:"Mostra","Show {amount} more replies":"Mostra {amount} respostes més","Show 1 more reply":"Mostra 1 resposta més","Show comment":"Mostra comentari","Sign in":"Inicia sessió","Sign up now":"Registra't ara","Sort by":"Ordena per","Start the conversation":"Comença la conversa","The linked comment is no longer available.":"","This comment has been hidden.":"Aquest comentari s'ha ocultat.","This comment has been removed.":"Aquest comentari s'ha esborrat.","Upgrade now":"Actualitza ara","View in admin":"",Yesterday:"Ahir","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"La teva sol·licitud s'enviarà al propietari d'aquest lloc."},zA={"{amount} characters left":"Zbývá {amount} znaků","{amount} comments":"{amount} komentářů","{amount} hrs ago":"Před {amount} hodinami","{amount} mins ago":"Před {amount} minutami","{amount} more":"Dalších {amount}","1 comment":"1 komentář","Add comment":"Přidat komentář","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Pro podporu zdravé diskuse přidejte ke svému komentáři kontext, své jméno a odbornost.","Add reply":"Přidat odpověď","Add your expertise":"","Already a member?":"Už jste členem?",Anonymous:"Anonymní","Are you sure?":"","Become a member of {publication} to start commenting.":"Staňte se členem {publication}, abyste mohli začít komentovat.","Become a paid member of {publication} to start commenting.":"Staňte se placeným členem {publication}, abyste mohli začít komentovat.",Best:"",Cancel:"Zrušit",Comment:"Komentář","Commenting disabled":"","Complete your profile":"Dokončete svůj profil","Contact support":"",Delete:"Smazat",Deleted:"","Deleted member":"Smazaný člen",Deleting:"",Discussion:"Diskuse",Edit:"Upravit","Edit this comment":"Upravit tento komentář",edited:"upraveno","Enter your name":"Zadejte své jméno",Expertise:"Odbornost","for more information.":"","Founder @ Acme Inc":"Zakladatel @ Acme Inc","Full-time parent":"Rodič na plný úvazek","Head of Marketing at Acme, Inc":"Vedoucí marketingu v Acme, Inc","Hidden for members":"",Hide:"Skrýt","Hide comment":"Skrýt komentář","Jamie Larson":"Jamie Larson","Join the discussion":"Připojte se k diskusi","Just now":"Právě teď","Load more ({amount})":"","Local resident":"Místní obyvatel","Member discussion":"Diskuse členů",Name:"Jméno",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Před jednou hodinou","One min ago":"Před jednou minutou",removed:"","Replied to":"",Reply:"Odpovědět","Reply to":"","Reply to comment":"Odpovědět na komentář",Report:"Nahlásit","Report comment":"Nahlásit komentář","Report this comment?":"Nahlásit tento komentář?",Save:"Uložit",Sending:"Odesílání",Sent:"Odesláno",Show:"Zobrazit","Show {amount} more replies":"Zobrazit {amount} dalších odpovědí","Show 1 more reply":"Zobrazit 1 další odpověď","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","The linked comment is no longer available.":"","This comment has been hidden.":"Tento komentář byl skryt.","This comment has been removed.":"Tento komentář byl odstraněn.","Upgrade now":"Upgradovat","View in admin":"",Yesterday:"Včera","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Vaše žádost bude odeslána vlastníkovi tohoto webu."},BA={"{amount} characters left":"{amount} tegn tilbage","{amount} comments":"{amount} kommentarer","{amount} hrs ago":"{amount} timer siden","{amount} mins ago":"{amount} minutter siden","{amount} more":"{amount} mere","1 comment":"1 kommentar","Add comment":"Tilføj kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Tilføj kontekst til din kommentar, del dit navn og ekspertise for at fremme en sund diskussion.","Add reply":"Tilføj svar","Add your expertise":"","Already a member?":"Allerede medlem?",Anonymous:"Anonym","Are you sure?":"Er du sikker?","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.",Best:"",Cancel:"Annuller",Comment:"Kommentér","Commenting disabled":"","Complete your profile":"Færdiggør din profil","Contact support":"",Delete:"Slet",Deleted:"Slettet","Deleted member":"Slettet medlem",Deleting:"Sletter",Discussion:"Diskussion",Edit:"Rediger","Edit this comment":"Rediger denne kommentar",edited:"redigeret","Enter your name":"Indtast dit navn",Expertise:"Ekspertise","for more information.":"","Founder @ Acme Inc":"Grundlægger @ Acme Inc","Full-time parent":"Forældre på fuld tid","Head of Marketing at Acme, Inc":"Chef for marking hos Acme, Inc","Hidden for members":"Skjult for medlemmer",Hide:"Skjul","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Bliv en del af diskussionen","Just now":"Lige nu","Load more ({amount})":"Indlæs mere ({amount})","Local resident":"Lokal borger","Member discussion":"Medlemsdiskussion",Name:"Navn",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Når den først er slettet, kan denne kommentar ikke gendannes.","One hour ago":"En time siden","One min ago":"Et minut siden",removed:"fjernet","Replied to":"Svarede",Reply:"Svar","Reply to":"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 1 more reply":"Vis 1 mere svar","Show comment":"Vis kommentar","Sign in":"Log ind","Sign up now":"Tilmed dig nu","Sort by":"Sorter efter","Start the conversation":"Start samtalen","The linked comment is no longer available.":"","This comment has been hidden.":"Denne kommentar er blevet skjult.","This comment has been removed.":"Denne kommentar er blevet fjernet.","Upgrade now":"Opgrader nu","View in admin":"",Yesterday:"I går","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Din anmodning vil blive sendt til ejeren af dette site."},FA={"{amount} characters left":"{amount} Zeichen übrig","{amount} comments":"{amount} Kommentare","{amount} hrs ago":"Vor {amount} Stunden","{amount} mins ago":"Vor {amount} Minuten","{amount} more":"{amount} weitere","1 comment":"1 Kommentar","Add comment":"Kommentar hinzufügen","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Füge deinem Kommentar Kontext hinzu, teile deinen Namen und deine Expertise, um eine gesunde Diskussion zu fördern.","Add reply":"Antwort hinzufügen","Add your expertise":"Ergänze deine Expertise","Already a member?":"Bist du bereits Mitglied?",Anonymous:"Anonym","Are you sure?":"Bist du sicher?","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.",Best:"Beste",Cancel:"Abbrechen",Comment:"Kommentar","Commenting disabled":"","Complete your profile":"Vervollständige dein Profil","Contact support":"",Delete:"Löschen",Deleted:"Gelöscht","Deleted member":"Gelöschtes Mitglied",Deleting:"Wird gelöscht",Discussion:"Diskussion",Edit:"Bearbeiten","Edit this comment":"Diesen Kommentar bearbeiten",edited:"bearbeitet","Enter your name":"Gib deinen Namen ein",Expertise:"Expertise","for more information.":"","Founder @ Acme Inc":"Gründer bei Acme Inc","Full-time parent":"Vollzeit-Elternteil","Head of Marketing at Acme, Inc":"Leiter Marketing bei Acme, Inc","Hidden for members":"Für Mitglieder verborgen",Hide:"Verbergen","Hide comment":"Kommentar verbergen","Jamie Larson":"Jamie Larson","Join the discussion":"Nimm an der Diskussion teil","Just now":"Gerade eben","Load more ({amount})":"Weitere laden ({amount})","Local resident":"Ortsansässiger","Member discussion":"Mitgliederdiskussion",Name:"Name",Neurosurgeon:"Neurochirurg",Newest:"Neuste",Oldest:"Älteste","Once deleted, this comment can’t be recovered.":"Der Kommentar kann nicht wiederhergestellt werden, sobald er gelöscht wurde.","One hour ago":"Vor einer Stunde","One min ago":"Vor einer Minute",removed:"entfernt","Replied to":"Antwort auf",Reply:"Antworten","Reply to":"Antwort auf","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 1 more reply":"1 weitere Antwort anzeigen","Show comment":"Kommentar anzeigen","Sign in":"Einloggen","Sign up now":"Jetzt registrieren","Sort by":"Sortiere nach","Start the conversation":"Beginne das Gespräch","The linked comment is no longer available.":"","This comment has been hidden.":"Dieser Kommentar wurde ausgeblendet.","This comment has been removed.":"Dieser Kommentar wurde entfernt.","Upgrade now":"Jetzt upgraden","View in admin":"",Yesterday:"Gestern","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Deine Anfrage wird an den Besitzer dieser Website gesendet."},HA={"{amount} characters left":"{amount} Zeichen übrig","{amount} comments":"{amount} Kommentare","{amount} hrs ago":"Vor {amount} Stunden","{amount} mins ago":"Vor {amount} Minuten","{amount} more":"{amount} mehr","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ügen Sie Kontext zu Ihrem Kommentar hinzu, teilen Sie Ihren Namen und Ihre Expertise, um eine gesunde Diskussion zu fördern.","Add reply":"Antwort hinzufügen","Add your expertise":"Fügen Sie Ihr Fachwissen hinzu","Already a member?":"Bereits ein Mitglied?",Anonymous:"Anonym","Are you sure?":"Sind Sie sicher?","Become a member of {publication} to start commenting.":"Werden Sie ein Mitglied bei {publication}, um Kommentare zu schreiben.","Become a paid member of {publication} to start commenting.":"Werden Sie ein zahlendes Mitglied bei {publication}, um Kommentare zu schreiben.",Best:"Beste",Cancel:"Abbrechen",Comment:"Kommentar","Commenting disabled":"Kommentare deaktiviert","Complete your profile":"Vervollständigen Sie Ihr Profil","Contact support":"Kontaktieren Sie den Support",Delete:"Löschen",Deleted:"Gelöscht","Deleted member":"Gelöschtes Mitglied",Deleting:"Löschen",Discussion:"Diskussion",Edit:"Bearbeiten","Edit this comment":"Kommentar bearbeiten",edited:"bearbeitet","Enter your name":"Geben Sie Ihren Namen ein",Expertise:"Expertise","for more information.":"für weitere Informationen.","Founder @ Acme Inc":"Gründer bei Acme Inc","Full-time parent":"Vollzeit-Elternteil","Head of Marketing at Acme, Inc":"Leiter Marketing bei Acme, Inc","Hidden for members":"Verborgen für Mitglieder",Hide:"Verbergen","Hide comment":"Kommentar verbergen","Jamie Larson":"Jamie Larson","Join the discussion":"An der Diskussion teilnehmen","Just now":"Gerade eben","Load more ({amount})":"Mehr laden ({amount})","Local resident":"Anwohner","Member discussion":"Mitgliederdiskussion",Name:"Name",Neurosurgeon:"Neurochirurg",Newest:"Neueste",Oldest:"Älteste","Once deleted, this comment can’t be recovered.":"Der Kommentar kann nicht wiederhergestellt werden, wenn er gelöscht wurde.","One hour ago":"Vor einer Stunde","One min ago":"Vor einer Minute",removed:"entfernt","Replied to":"Antwortet auf",Reply:"Antworten","Reply to":"Antwort auf","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 1 more reply":"1 weitere Antwort anzeigen","Show comment":"Kommentar anzeigen","Sign in":"Anmelden","Sign up now":"Jetzt registrieren","Sort by":"Sortiere nach","Start the conversation":"Beginnen Sie das Gespräch","The linked comment is no longer available.":"Der verlinkte Kommentar ist nicht mehr verfügbar.","This comment has been hidden.":"Dieser Kommentar wurde ausgeblendet.","This comment has been removed.":"Dieser Kommentar wurde entfernt.","Upgrade now":"Jetzt upgraden","View in admin":"Im Admin anzeigen",Yesterday:"Gestern","You can't post comments in this publication.":"Sie können in dieser Publikation keine Kommentare schreiben.","Your request will be sent to the owner of this site.":"Ihre Anfrage wird an den Seitenbesitzer gesendet."},VA={"{amount} characters left":"Απομένουν {amount} χαρακτήρες","{amount} comments":"{amount} σχόλια","{amount} hrs ago":"πριν από {amount} ώρες","{amount} mins ago":"πριν από {amount} λεπτά","{amount} more":"{amount} περισσότερα","1 comment":"1 σχόλιο","Add comment":"Προσθήκη σχολίου","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Προσθέστε περιεχόμενο στο σχόλιό σας, μοιραστείτε το όνομα και την εξειδίκευσή σας για να προωθήσετε μια υγιή συζήτηση.","Add reply":"Προσθήκη απάντησης","Add your expertise":"","Already a member?":"Ήδη μέλος;",Anonymous:"Ανώνυμος","Are you sure?":"","Become a member of {publication} to start commenting.":"Γίνετε μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.","Become a paid member of {publication} to start commenting.":"Γίνετε premium μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.",Best:"",Cancel:"Ακύρωση",Comment:"Σχόλιο","Commenting disabled":"","Complete your profile":"Ολοκληρώστε το προφίλ σας","Contact support":"",Delete:"Διαγραφή",Deleted:"","Deleted member":"Διαγραμμένο μέλος",Deleting:"",Discussion:"Συζήτηση",Edit:"Επεξεργασία","Edit this comment":"Επεξεργασία αυτού του σχολίου",edited:"Επεξεργασμένο","Enter your name":"Εισάγετε το όνομά σας",Expertise:"Εξειδίκευση","for more information.":"","Founder @ Acme Inc":"Ιδρυτής @ Acme Inc","Full-time parent":"Γονέας πλήρους απασχόλησης","Head of Marketing at Acme, Inc":"Επικεφαλής Μάρκετινγκ στην Acme, Inc","Hidden for members":"",Hide:"Απόκρυψη","Hide comment":"Απόκρυψη σχολίου","Jamie Larson":"Τζέιμι Λάρσον","Join the discussion":"Συμμετοχή στη συζήτηση","Just now":"Μόλις τώρα","Load more ({amount})":"","Local resident":"Τοπικός κάτοικος","Member discussion":"Συζήτηση μελών",Name:"Όνομα",Neurosurgeon:"Νευροχειρουργός",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Πριν από μία ώρα","One min ago":"Πριν από ένα λεπτό",removed:"","Replied to":"",Reply:"Απάντηση","Reply to":"","Reply to comment":"Απάντηση στο σχόλιο",Report:"Αναφορά","Report comment":"Αναφορά σχολίου","Report this comment?":"Αναφορά αυτού του σχολίου;",Save:"Αποθήκευση",Sending:"Αποστολή",Sent:"Απεστάλη",Show:"Εμφάνιση","Show {amount} more replies":"Εμφάνιση {amount} περισσότερων απαντήσεων","Show 1 more reply":"Εμφάνιση 1 ακόμα απάντησης","Show comment":"Εμφάνιση σχολίου","Sign in":"Σύνδεση","Sign up now":"Εγγραφείτε τώρα","Sort by":"","Start the conversation":"Ξεκινήστε τη συζήτηση","The linked comment is no longer available.":"","This comment has been hidden.":"Αυτό το σχόλιο έχει κρυφτεί.","This comment has been removed.":"Αυτό το σχόλιο έχει αφαιρεθεί.","Upgrade now":"Αναβάθμιση τώρα","View in admin":"",Yesterday:"Χθες","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Το αίτημά σας θα σταλεί στον ιδιοκτήτη αυτού του ιστότοπου."},UA={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"","Contact support":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","for more information.":"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":""},_A={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"","Contact support":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","for more information.":"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":""},YA={"{amount} characters left":"{amount} caracteres restantes","{amount} comments":"{amount} comentarios","{amount} hrs ago":"Hace {amount} horas","{amount} mins ago":"Hace {amount} minutos","{amount} more":"{amount} más","1 comment":"1 comentario","Add comment":"Añadir comentario","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Añade contexto a tu comentario, comparte tu nombre y experiencia para fomentar un debate sano.","Add reply":"Añadir respuesta","Add your expertise":"Añadir tu experiencia","Already a member?":"¿Ya eres miembro?",Anonymous:"Anónimo","Are you sure?":"¿Estás seguro?","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}.",Best:"Mejores",Cancel:"Cancelar",Comment:"Comentar","Commenting disabled":"","Complete your profile":"Completa tu perfil","Contact support":"",Delete:"Eliminar",Deleted:"Eliminado","Deleted member":"Eliminar miembro",Deleting:"Eliminando",Discussion:"Discusión",Edit:"Editar","Edit this comment":"Editar este comentario",edited:"editado","Enter your name":"Introduce tu nombre",Expertise:"Experiencia","for more information.":"","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Padre a tiempo completo","Head of Marketing at Acme, Inc":"Jefe de Marketing en Acme, Inc","Hidden for members":"Oculto para miembros",Hide:"Ocultar","Hide comment":"Ocultar comentario","Jamie Larson":"Carlos Rodriguez","Join the discussion":"Únete a la discusión","Just now":"Justo ahora","Load more ({amount})":"Cargar más ({amount})","Local resident":"Residente local","Member discussion":"Discusión de los miembros",Name:"Nombre",Neurosurgeon:"Neurocirujano",Newest:"Más nuevos",Oldest:"Más antiguos","Once deleted, this comment can’t be recovered.":"Este comentario no se puede recuperar una vez eliminado.","One hour ago":"Hace una hora","One min ago":"Hace un minuto",removed:"eliminado","Replied to":"En respuesta a",Reply:"Responder","Reply to":"Responder a","Reply to comment":"Responder al comentario",Report:"Reportar","Report comment":"Reportar comentario","Report this comment?":"¿Reportar este comentario?",Save:"Guardar",Sending:"Enviando",Sent:"Enviado",Show:"Mostrar","Show {amount} more replies":"Mostrar {amount} respuestas más","Show 1 more reply":"Mostrar 1 respuesta más","Show comment":"Mostrar comentario","Sign in":"Inicia sesión","Sign up now":"Regístrate ahora","Sort by":"Ordenar por","Start the conversation":"Comienza la conversación","The linked comment is no longer available.":"","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","View in admin":"",Yesterday:"Ayer","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Tu petición será enviada al dueño de este sitio web."},JA={"{amount} characters left":"{amount} tähemärki jäänud","{amount} comments":"{amount} kommentaari","{amount} hrs ago":"{amount} tundi tagasi","{amount} mins ago":"{amount} minutit tagasi","{amount} more":"{amount} veel","1 comment":"1 kommentaar","Add comment":"Lisa kommentaar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lisa oma kommentaarile konteksti, jaga oma nime ja kogemusi, et soodustada tervislikku arutelu.","Add reply":"Lisa vastus","Add your expertise":"","Already a member?":"Juba liige?",Anonymous:"Anonüümne","Are you sure?":"","Become a member of {publication} to start commenting.":"Kommenteerimise alustamiseks saage {publication} liikmeks.","Become a paid member of {publication} to start commenting.":"Kommenteerimise alustamiseks saage {publication} tasuliseks liikmeks.",Best:"",Cancel:"Tühista",Comment:"Kommentaar","Commenting disabled":"","Complete your profile":"Täida oma profiil","Contact support":"",Delete:"Kustuta",Deleted:"","Deleted member":"Kustutatud liige",Deleting:"",Discussion:"Arutelu",Edit:"Muuda","Edit this comment":"Muuda seda kommentaari",edited:"muudetud","Enter your name":"Sisesta oma nimi",Expertise:"Oskused","for more information.":"","Founder @ Acme Inc":"Asutaja @ Acme Inc","Full-time parent":"Täiskohaga lapsevanem","Head of Marketing at Acme, Inc":"Turundusjuht Acme, Inc-s","Hidden for members":"",Hide:"Peida","Hide comment":"Peida kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Liitu aruteluga","Just now":"Just praegu","Load more ({amount})":"","Local resident":"Kohalik elanik","Member discussion":"Liikmete arutelu",Name:"Nimi",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Üks tund tagasi","One min ago":"Üks minut tagasi",removed:"","Replied to":"",Reply:"Vasta","Reply to":"","Reply to comment":"Vasta kommentaarile",Report:"Teata","Report comment":"Teata kommentaarist","Report this comment?":"Teatada sellest kommentaarist?",Save:"Salvesta",Sending:"Saatmine",Sent:"Saadetud",Show:"Näita","Show {amount} more replies":"Näita {amount} vastust veel","Show 1 more reply":"Näita 1 vastus veel","Show comment":"Näita kommentaari","Sign in":"Logi sisse","Sign up now":"Registreeru nüüd","Sort by":"","Start the conversation":"Alusta vestlust","The linked comment is no longer available.":"","This comment has been hidden.":"See kommentaar on peidetud.","This comment has been removed.":"See kommentaar on eemaldatud.","Upgrade now":"Uuenda nüüd","View in admin":"",Yesterday:"Eile","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Teie taotlus saadetakse selle saidi omanikule."},KA={"{amount} characters left":"{amount} geratzen dira","{amount} comments":"{amount} iruzkin","{amount} hrs ago":"Duela {amount} ordu","{amount} mins ago":"Duela {amount} minutu","{amount} more":"{amount} gehiago","1 comment":"Iruzkin 1","Add comment":"Egin iruzkina","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Gehitu testuingurua zure iruzkinari, partekatu zure izena eta ezagutza eztabaida sanoa sustatzeko.","Add reply":"Erantzun","Add your expertise":"Gehitu zure ezagutza","Already a member?":"Kidea al zara?",Anonymous:"Anonimoa","Are you sure?":"Ziur al zaude?","Become a member of {publication} to start commenting.":"Egin zaitez {publication}(e)ko kide iruzkinak egiteko.","Become a paid member of {publication} to start commenting.":"Egin zaitez {publication}(e)ko ordainpeko kide iruzkinak egiteko.",Best:"Onena",Cancel:"Utzi",Comment:"Egin iruzkina","Commenting disabled":"","Complete your profile":"Bete zure profila","Contact support":"",Delete:"Ezabatu",Deleted:"Ezabatuta","Deleted member":"Ezabatutako kidea",Deleting:"Ezabatzen",Discussion:"Eztabaida",Edit:"Editatu","Edit this comment":"Editatu iruzkina",edited:"editatua","Enter your name":"Sartu zure izena",Expertise:"Ezagutza","for more information.":"","Founder @ Acme Inc":"FAGOR kooperatibaren fundatzailea","Full-time parent":"Lanaldi osoko gurasoa","Head of Marketing at Acme, Inc":"FAGOR kooperatibako marketin-zuzendaria","Hidden for members":"Ezkutatuta kideentzat",Hide:"Ezkutatu","Hide comment":"Ezkutatu iruzkina","Jamie Larson":"Lur Axpe","Join the discussion":"Batu eztabaidara","Just now":"Oraintxe bertan","Load more ({amount})":"Kargatu gehiago ({amount})","Local resident":"Bertoko bizilaguna","Member discussion":"Kideen eztabaida",Name:"Izena",Neurosurgeon:"Neurozirujaua",Newest:"Berriena",Oldest:"Zaharrena","Once deleted, this comment can’t be recovered.":"Ezabatuz gero, ezingo da berreskuratu.","One hour ago":"Duela ordubete","One min ago":"Duela minutu bat",removed:"kenduta","Replied to":"Honi erantzun dio",Reply:"Erantzun","Reply to":"Erantzun honi","Reply to comment":"Erantzun iruzkin honi",Report:"Salatu","Report comment":"Salatu iruzkina","Report this comment?":"Iruzkin hau salatu nahi al duzu?",Save:"Gorde",Sending:"Bidaltzen",Sent:"Bidalita",Show:"Erakutsi","Show {amount} more replies":"Erakutsi {amount} erantzun gehiago","Show 1 more reply":"Erakutsi erantzun bat gehiago","Show comment":"Erakutsi iruzkina","Sign in":"Hasi saioa","Sign up now":"Eman izena orain","Sort by":"Antolatu honen arabera","Start the conversation":"Hasi eztabaida","The linked comment is no longer available.":"","This comment has been hidden.":"Iruzkin hau ezkutatu da.","This comment has been removed.":"Iruzkin hau kendu da.","Upgrade now":"Ordaindu orain","View in admin":"",Yesterday:"Atzo","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Eskaera gune honetako arduradunari bidaliko zaio."},WA={"{amount} characters left":"{amount} حرف باقی‌مانده است","{amount} comments":"{amount} دیدگاه","{amount} hrs ago":"{amount} ساعت پیش","{amount} mins ago":"{amount} دقیقه پیش","{amount} more":"{amount} بیشتر","1 comment":"یک دیدگاه","Add comment":"دیدگاهی بفرستید","Add context to your comment, share your name and expertise to foster a healthy discussion.":"به دیدگاه خود موضوعیت ببخشید و با به اشتراک‌گذاری نام و تخصص خود یک گفتمان سالم ایجاد کنید.","Add reply":"پاسخی بدهید","Add your expertise":"","Already a member?":"عضو هستید؟",Anonymous:"ناشناس","Are you sure?":"","Become a member of {publication} to start commenting.":"عضو وب‌سایت {publication} شوید تا مجوز ارسال دیدگاه دریافت کنید.","Become a paid member of {publication} to start commenting.":"حق اشتراک وب‌سایت {publication} را پرداخت کنید تا مجوز ارسال دیدگاه دریافت کنید.",Best:"",Cancel:"انصراف",Comment:"دیدگاه","Commenting disabled":"","Complete your profile":"نمایه خود را کامل کنید","Contact support":"",Delete:"پاک کردن",Deleted:"","Deleted member":"حساب پاک‌شده",Deleting:"",Discussion:"گفتمان",Edit:"ویرایش","Edit this comment":"ویرایش این دیدگاه",edited:"ویرایش‌شده","Enter your name":"نام خود را بنویسید",Expertise:"تخصص","for more information.":"","Founder @ Acme Inc":"مدیر عامل یک شرکت خیالی","Full-time parent":" خانه‌دار تمام وقت","Head of Marketing at Acme, Inc":"سرپرست بخش بازاریابی یک شرکت خیالی","Hidden for members":"",Hide:"مخفی کردن","Hide comment":"مخفی کردن دیدگاه","Jamie Larson":"جیمی لارسن","Join the discussion":"به گفتمان بپیوندید","Just now":"پیوستن","Load more ({amount})":"","Local resident":"ساکن محلی","Member discussion":"گفتمان کاربران",Name:"نام",Neurosurgeon:"جراح مغز و اعصاب",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"یک ساعت پیش","One min ago":"یک دقیقه پیش",removed:"","Replied to":"",Reply:"پاسخ دادن","Reply to":"","Reply to comment":"پاسخ دادن به دیدگاه",Report:"گزارش","Report comment":"گزارش دیدگاه","Report this comment?":"می‌خواهید این دیدگاه را گزارش کنید؟",Save:"ذخیره کردن",Sending:"در حال ارسال",Sent:"ارسال شد",Show:"نمایش","Show {amount} more replies":"نمایش {amount} پاسخ بیشتر","Show 1 more reply":"نمایش یک دیدگاه بیشتر","Show comment":"نمایش دیدگاه","Sign in":"ورود به حساب","Sign up now":"ایجاد حساب","Sort by":"","Start the conversation":"گفت‌وگویی شروع کنید","The linked comment is no longer available.":"","This comment has been hidden.":"این دیدگاه مخفی شده است","This comment has been removed.":"این دیدگاه پاک شده است","Upgrade now":"ارتقاء دهید","View in admin":"",Yesterday:"دیروز","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"درخواست شما برای مدیر این وب‌سایت ارسال خواهد شد."},qA={"{amount} characters left":"{amount} merkkiä jäljellä","{amount} comments":"{amount} kommenttia","{amount} hrs ago":"{amount} tuntia sitten","{amount} mins ago":"{amount} minuuttia sitten","{amount} more":"{amount} vielä lisää","1 comment":"1 kommentti","Add comment":"Lisää kommentti","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lisää sisältöä kommenttiisi, jaa nimesi ja osaamisesi saadaksesi aikaan tervettä keskustelua.","Add reply":"Lisää vastaus","Add your expertise":"Lisää osaamisesi","Already a member?":"Oletko jo jäsen?",Anonymous:"Anonyymi","Are you sure?":"Oletko varma?","Become a member of {publication} to start commenting.":"Liity sivun {publication} jäseneksi pystyäksesi kommentoimaan.","Become a paid member of {publication} to start commenting.":"Ota maksullinen jäsenyys sivulle {publication}, jotta pystyt kommentoimaan.",Best:"Parhaat",Cancel:"Peruuta",Comment:"Kommentti","Commenting disabled":"","Complete your profile":"Täydennä profiilisi","Contact support":"",Delete:"Poista",Deleted:"Poistettu","Deleted member":"Poista jäsen",Deleting:"Poistetaan",Discussion:"Keskustelu",Edit:"Editoi","Edit this comment":"Editoi tätä kommenttia",edited:"editoitu","Enter your name":"Syötä nimesi",Expertise:"Osaaminen","for more information.":"","Founder @ Acme Inc":"Perustaja","Full-time parent":"Kokoaikainen vanhempi","Head of Marketing at Acme, Inc":"Markkinointijohtaja","Hidden for members":"Piilotettu jäseniltä",Hide:"Piilota","Hide comment":"Piilota kommentti","Jamie Larson":"Jamie Larson","Join the discussion":"Liity keskusteluun","Just now":"Juuri nyt","Load more ({amount})":"Lataa lisää ({amount})","Local resident":"Paikallinen","Member discussion":"Jäsenten keskustelu",Name:"Nimi",Neurosurgeon:"Neurokirurgi",Newest:"Uusin",Oldest:"Vanhin","Once deleted, this comment can’t be recovered.":"Jos poistat kommentin, sitä ei voi enää palauttaa.","One hour ago":"Tunti sitten","One min ago":"Minuutti sitten",removed:"poistettu","Replied to":"Vastattu:",Reply:"Vastaa","Reply to":"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 1 more reply":"Näytä 1 vastaus lisää","Show comment":"Näytä kommentti","Sign in":"Kirjaudu sisään","Sign up now":"Rekisteröidy nyt","Sort by":"Lajitteluperuste","Start the conversation":"Aloita keskustelu","The linked comment is no longer available.":"","This comment has been hidden.":"Tämä kommentti on piilotettu.","This comment has been removed.":"Tämä kommentti on poistettu.","Upgrade now":"Korota nyt","View in admin":"",Yesterday:"Eilen","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Sinun pyyntösi lähetetään sivun omistajalle."},GA={"{amount} characters left":"{amount} caractères restants","{amount} comments":"{amount} commentaires","{amount} hrs ago":"Il y a {amount} heures","{amount} mins ago":"Il y a {amount} minutes","{amount} more":"{amount} supplémentaire(s)","1 comment":"1 commentaire","Add comment":"Ajouter un commentaire","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Ajoutez un contexte à votre commentaire. Partagez votre nom et vos compétences pour favoriser une discussion saine.","Add reply":"Ajouter une réponse","Add your expertise":"Ajoutez vos compétences","Already a member?":"Déjà abonné(e) ?",Anonymous:"Anonyme","Are you sure?":"Êtes-vous certain(e) ?","Become a member of {publication} to start commenting.":"Abonnez-vous gratuitement à {publication} pour commencer à commenter.","Become a paid member of {publication} to start commenting.":"Choisissez un abonnement payant à {publication} pour commencer à commenter.",Best:"Meilleur",Cancel:"Annuler",Comment:"Commentaire","Commenting disabled":"","Complete your profile":"Complétez votre profil","Contact support":"",Delete:"Supprimer",Deleted:"Supprimé","Deleted member":"Abonné(e) supprimé(e)",Deleting:"Suppression en cours",Discussion:"Discussion",Edit:"Modifier","Edit this comment":"Modifier ce commentaire",edited:"modifié","Enter your name":"Entrez votre nom",Expertise:"Compétences","for more information.":"","Founder @ Acme Inc":"Fondateur @ Acme Inc","Full-time parent":"Parent à plein temps","Head of Marketing at Acme, Inc":"Responsable du marketing chez Acme, Inc","Hidden for members":"Masqué pour les abonnés",Hide:"Masquer","Hide comment":"Masquer le commentaire","Jamie Larson":"Jean Martin","Join the discussion":"Rejoindre la discussion","Just now":"À l'instant","Load more ({amount})":"Afficher plus ({amount})","Local resident":"Résident local","Member discussion":"Discussion entre abonnés",Name:"Nom",Neurosurgeon:"Neurochirurgien",Newest:"Plus récent",Oldest:"Plus ancien","Once deleted, this comment can’t be recovered.":"Une fois supprimé, ce commentaire ne pourra pas être restauré.","One hour ago":"Il y a une heure","One min ago":"Il y a une minute",removed:"supprimé","Replied to":"Répondu à",Reply:"Répondre","Reply to":"Répondre à","Reply to comment":"Répondre au commentaire",Report:"Signaler","Report comment":"Signaler le commentaire","Report this comment?":"Signaler ce commentaire ?",Save:"Enregistrer",Sending:"Envoi en cours",Sent:"Envoyé",Show:"Afficher","Show {amount} more replies":"Afficher {amount} réponses supplémentaires","Show 1 more reply":"Afficher 1 réponse supplémentaire","Show comment":"Afficher le commentaire","Sign in":"Se connecter","Sign up now":"S'inscrire maintenant","Sort by":"Trier par","Start the conversation":"Commencer la conversation","The linked comment is no longer available.":"","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","View in admin":"",Yesterday:"Hier","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Votre demande sera transférée au propriétaire de ce site."},QA={"{amount} characters left":"caractaran air fhàgail: {amount}","{amount} comments":"beachdan: {amount}","{amount} hrs ago":"o chionn {amount}u","{amount} mins ago":"o chionn {amount}m","{amount} more":"{amount} a bharrachd","1 comment":"1 bheachd","Add comment":"Fàg beachd air","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Cuir co-theacsa ris a' bheachd agad, cuir d' ainm is sàr-eòlas ris gus deasbad fallain a brosnachadh.","Add reply":"Cuir freagairt ris","Add your expertise":"","Already a member?":"’Eil thu nad bhall mar-thà?",Anonymous:"Gun ainm","Are you sure?":"A bheil thu cinnteach?","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.",Best:"",Cancel:"Sguir dheth",Comment:"Beachd","Commenting disabled":"","Complete your profile":"Lìon a-steach a' phròifil agad","Contact support":"",Delete:"Sguab às",Deleted:"Air a sguabadh às","Deleted member":"Ball air a sguabadh às",Deleting:"'Ga sguabadh às",Discussion:"Deasbad",Edit:"Deasaich","Edit this comment":"Deasaich am beachd seo",edited:"Air a dheasachadh","Enter your name":"Cuir a-steach d’ ainm",Expertise:"Sàr-eòlas","for more information.":"","Founder @ Acme Inc":"Neach-stèidheachaidh @ Acme Inc","Full-time parent":"Pàrant làn-ùine","Head of Marketing at Acme, Inc":"Àrd-cheann Margaidheachd aig Acme, Inc","Hidden for members":"Air am falach bho bhuill",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","Load more ({amount})":"Lùchdaich barrachd {amount}","Local resident":"Neach-còmhnaidh ionadail","Member discussion":"Deasbad",Name:"Ainm",Neurosurgeon:"Niùro-làmh-lèigh",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Cha ghabh a aiseag an dèidh sguabadh às","One hour ago":"O chionn uair a thìde","One min ago":"O chionn mionaid",removed:"air a sguabadh às","Replied to":"Air freagairt fhaighinn",Reply:"Cuir freagairt","Reply to":"Cuir freagairt gu","Reply to comment":"Cuir freagairt 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 1 more reply":"Seall beachd a bharrachd","Show comment":"Seall am beachd","Sign in":"Clàraich a-steach","Sign up now":"Clàraich a-nis","Sort by":"Seòrsaich a-rèir","Start the conversation":"Tòisich an deasbad","The linked comment is no longer available.":"","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","View in admin":"",Yesterday:"An-dè","You can't post comments in this publication.":"","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."},ZA={"{amount} characters left":"נותרו עוד {amount} תווים","{amount} comments":"{amount} תגובות","{amount} hrs ago":"לפני {amount} שעות","{amount} mins ago":"לפני {amount} דקות","{amount} more":"עוד {amount}","1 comment":"תגובה אחת","Add comment":"הוסיפו תגובה","Add context to your comment, share your name and expertise to foster a healthy discussion.":"הוסיפו תוכן לתגובה שלכם, שתפו את שמכם ואת התמחותכם כדי לקדם דיון בריא.","Add reply":"הוסיפו תגובה","Add your expertise":"","Already a member?":"כבר רשומים?",Anonymous:"אנונימי","Are you sure?":"","Become a member of {publication} to start commenting.":"הירשמו כחברי {publication} כדי להתחיל להגיב.","Become a paid member of {publication} to start commenting.":"הירשמו כחברי משלמים של {publication} כדי להתחיל להגיב.",Best:"",Cancel:"ביטול",Comment:"תגובה","Commenting disabled":"","Complete your profile":"השלימו את הפרופיל שלכם","Contact support":"",Delete:"מחיקה",Deleted:"","Deleted member":"חבר שנמחק",Deleting:"",Discussion:"דיון",Edit:"עריכה","Edit this comment":"ערכו תגובה זו",edited:"נערך","Enter your name":"כתבו את שמכם",Expertise:"ניסיון","for more information.":"","Founder @ Acme Inc":"מייסד @ Acme Inc","Full-time parent":"הורה במשרה מלאה","Head of Marketing at Acme, Inc":"ראש אגף שיווק ב- Acme, Inc","Hidden for members":"",Hide:"הסתר","Hide comment":"הסתר תגובה","Jamie Larson":"ג׳יימי לרסון","Join the discussion":"הצטרפו לדיון","Just now":"ממש עכשיו","Load more ({amount})":"","Local resident":"תושב מקומי","Member discussion":"דיון חברים רשומים",Name:"שם",Neurosurgeon:"נוֹיְרוֹכִירוּרְג",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"לפני שעה","One min ago":"לפני דקה",removed:"","Replied to":"",Reply:"תגובה","Reply to":"","Reply to comment":"הגיבו לתגובה",Report:"דיווח","Report comment":"דווחו על תגובה","Report this comment?":"האם לדווח על תגובה זו?",Save:"שמירה",Sending:"שליחה",Sent:"שלחנו",Show:"להציג","Show {amount} more replies":"להציג עוד {amount} תגובות","Show 1 more reply":"להציג תגובה נוספת","Show comment":"להציג תגובה","Sign in":"היכנסו","Sign up now":"הירשמו עכשיו","Sort by":"למיין לפי","Start the conversation":"התחילו את השיחה","The linked comment is no longer available.":"","This comment has been hidden.":"התגובה הזו הוסתרה.","This comment has been removed.":"התגובה הזו הוסרה.","Upgrade now":"שדרגו עכשיו","View in admin":"",Yesterday:"אתמול","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"בקשתך תישלח לבעלים של האתר הזה."},XA={"{amount} characters left":"{amount} अक्षर बाकी","{amount} comments":"{amount} टिप्पणियाँ","{amount} hrs ago":"{amount} घंटे पहले","{amount} mins ago":"{amount} मिनट पहले","{amount} more":"{amount} और","1 comment":"1 टिप्पणी","Add comment":"टिप्पणी जोड़ें","Add context to your comment, share your name and expertise to foster a healthy discussion.":"अपनी टिप्पणी में संदर्भ जोड़ें, स्वस्थ चर्चा के लिए अपना नाम और विशेषज्ञता साझा करें।","Add reply":"जवाब जोड़ें","Add your expertise":"अपनी विशेषज्ञता जोड़ें","Already a member?":"पहले से सदस्य हैं?",Anonymous:"अनाम","Are you sure?":"क्या आप सुनिश्चित हैं?","Become a member of {publication} to start commenting.":"टिप्पणी शुरू करने के लिए {publication} का सदस्य बनें।","Become a paid member of {publication} to start commenting.":"टिप्पणी शुरू करने के लिए {publication} के भुगतान सदस्य बनें।",Best:"सर्वश्रेष्ठ",Cancel:"रद्द करें",Comment:"टिप्पणी","Commenting disabled":"","Complete your profile":"अपनी प्रोफ़ाइल पूरी करें","Contact support":"",Delete:"हटाएं",Deleted:"हटा दिया गया","Deleted member":"हटाए गए सदस्य",Deleting:"हटाया जा रहा है",Discussion:"चर्चा",Edit:"संपादित करें","Edit this comment":"इस टिप्पणी को संपादित करें",edited:"संपादित किया गया","Enter your name":"अपना नाम दर्ज करें",Expertise:"विशेषज्ञता","for more information.":"","Founder @ Acme Inc":"संस्थापक @ Acme Inc","Full-time parent":"पूर्णकालिक माता-पिता","Head of Marketing at Acme, Inc":"Acme, Inc में विपणन प्रमुख","Hidden for members":"सदस्यों के लिए छिपाया गया",Hide:"छिपाएं","Hide comment":"टिप्पणी छिपाएं","Jamie Larson":"राहुल शर्मा","Join the discussion":"चर्चा में शामिल हों","Just now":"अभी","Load more ({amount})":"और लोड करें ({amount})","Local resident":"स्थानीय निवासी","Member discussion":"सदस्य चर्चा",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन",Newest:"नवीनतम",Oldest:"सबसे पुराना","Once deleted, this comment can’t be recovered.":"एक बार हटाए जाने के बाद, इस टिप्पणी को पुनः प्राप्त नहीं किया जा सकता।","One hour ago":"एक घंटा पहले","One min ago":"एक मिनट पहले",removed:"हटा दिया गया","Replied to":"को जवाब दिया",Reply:"जवाब दें","Reply to":"को जवाब दें","Reply to comment":"टिप्पणी का जवाब दें",Report:"रिपोर्ट","Report comment":"टिप्पणी की रिपोर्ट करें","Report this comment?":"क्या आप इस टिप्पणी की रिपोर्ट करना चाहते हैं?",Save:"सहेजें",Sending:"भेजा जा रहा है",Sent:"भेजा गया",Show:"दिखाएं","Show {amount} more replies":"{amount} और जवाब दिखाएं","Show 1 more reply":"1 और जवाब दिखाएं","Show comment":"टिप्पणी दिखाएं","Sign in":"साइन इन करें","Sign up now":"अभी साइनअप करें","Sort by":"क्रमबद्ध करें","Start the conversation":"बातचीत शुरू करें","The linked comment is no longer available.":"","This comment has been hidden.":"इस टिप्पणी को छिपा दिया गया है।","This comment has been removed.":"इस टिप्पणी को हटा दिया गया है।","Upgrade now":"अब उन्नत करें","View in admin":"",Yesterday:"कल","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"आपका अनुरोध इस साइट के मालिक को भेजा जाएगा।"},eD={"{amount} characters left":"{amount} znakova preostalo","{amount} comments":"{amount} komentara","{amount} hrs ago":"Prije {amount} sati","{amount} mins ago":"Prije {amount} minuta","{amount} more":"{amount} više","1 comment":"1 komentar","Add comment":"Dodaj komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dajte kontekts vašem komentaru, podijelite vaše ime i znanje za unaprijeđenje svake rasprave.","Add reply":"Dodaj odgovor","Add your expertise":"","Already a member?":"Već si član?",Anonymous:"Anonimus","Are you sure?":"","Become a member of {publication} to start commenting.":"Postani član {publication} za mogućnost komentiranja.","Become a paid member of {publication} to start commenting.":"Plati pretplatu na {publication} za mogućnost komentiranja.",Best:"",Cancel:"Prekini",Comment:"Komentar","Commenting disabled":"","Complete your profile":"Dovrši svoj profil","Contact support":"",Delete:"Obriši",Deleted:"","Deleted member":"Obrisan član",Deleting:"",Discussion:"Rasprava",Edit:"Uredi","Edit this comment":"Uredi ovaj komentar",edited:"uređen","Enter your name":"Unesite vaše ime",Expertise:"Stručnost","for more information.":"","Founder @ Acme Inc":"Osnivač Acme Inc","Full-time parent":"Full-time Roditelj","Head of Marketing at Acme, Inc":"Voditelj marketinga Acme, Inc","Hidden for members":"",Hide:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Jamie Larson","Join the discussion":"Pridruži se raspravi","Just now":"Upravo sada","Load more ({amount})":"","Local resident":"Lokalni stanovnik","Member discussion":"Rasprava članova",Name:"Ime",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prije jednog sata","One min ago":"Prije jedne minute",removed:"","Replied to":"",Reply:"Odgovori","Reply to":"","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Prijaviti ovaj komentar?",Save:"Spremi",Sending:"Slanje",Sent:"Poslano",Show:"Prikaži","Show {amount} more replies":"Prikaži još {amount} odgovora","Show 1 more reply":"Prikaži još jedan odgovor","Show comment":"Prikaži komentar","Sign in":"Prijava","Sign up now":"Registriraj se sada","Sort by":"","Start the conversation":"Pokreni razgovor","The linked comment is no longer available.":"","This comment has been hidden.":"Ovaj komentar je skriven","This comment has been removed.":"Ovaj komentar je maknut","Upgrade now":"Nadogradite sada","View in admin":"",Yesterday:"Jučer","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Vaš zahtjev će se poslati vasniku ovih web stranica."},tD={"{amount} characters left":"{amount} karakter maradt","{amount} comments":"{amount} hozzászólás","{amount} hrs ago":"{amount} órája","{amount} mins ago":"{amount} perce","{amount} more":"{amount} még","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.":"Segítsd a beszélgetést azzal, hogy megadod a nevedet és azt, hogy mihez értesz.","Add reply":"Válasz","Add your expertise":"Add meg a szakterületedet","Already a member?":"Van már fiókod?",Anonymous:"Anonim","Are you sure?":"Biztos vagy benne?","Become a member of {publication} to start commenting.":"Csatlakozz a támogató {publication} közösséghez, hogy hozzászólhass a tartalmakhoz.","Become a paid member of {publication} to start commenting.":"Csatlakozz a fizető {publication} közösséghez, hogy hozzászólhass a tartalmakhoz.",Best:"Legjobb",Cancel:"Mégse",Comment:"Hozzászólás","Commenting disabled":"","Complete your profile":"Profil befejezése","Contact support":"",Delete:"Törlés",Deleted:"Törölt","Deleted member":"Törölt tag",Deleting:"Törölni",Discussion:"Hozzászólások",Edit:"Szerkesztés","Edit this comment":"Hozzászólás szerkesztése",edited:"szerkesztve","Enter your name":"Add meg a nevedet",Expertise:"Foglalkozás","for more information.":"","Founder @ Acme Inc":"A(z) @ Sirály Kft. alapítója","Full-time parent":"Főállású szülő","Head of Marketing at Acme, Inc":"Marketingvezető — Sirály Kft.","Hidden for members":"A tagok számára elrejtve",Hide:"Elrejtés","Hide comment":"Hozzászólás elrejtése","Jamie Larson":"Kiss Sára","Join the discussion":"Csatlakozz a beszélgetéshez","Just now":"Épp most","Load more ({amount})":"Továbbiak betöltése ({amount})","Local resident":"Helyi lakos","Member discussion":"Tagok beszélgetése",Name:"Név",Neurosurgeon:"Idegsebész",Newest:"Legújabb",Oldest:"Legrégebbi","Once deleted, this comment can’t be recovered.":"A törlés után ez a hozzászólás nem állítható vissza.","One hour ago":"Egy órája","One min ago":"Egy perce",removed:"eltávolítva","Replied to":"Válaszolt erre",Reply:"Válasz","Reply to":"Válasz","Reply to comment":"Válasz a hozzászólásra",Report:"Jelentés","Report comment":"Hozzászólás jelentése","Report this comment?":"Szeretnéd jelenteni ezt a hozzászólást?",Save:"Mentés",Sending:"Küldés",Sent:"Elküldve",Show:"Mutat","Show {amount} more replies":"Mutass még {amount} választ","Show 1 more reply":"Mutass még egy választ","Show comment":"Hozzászólás mutatása","Sign in":"Bejelentkezés","Sign up now":"Regisztrálj most","Sort by":"Rendezés","Start the conversation":"Kezdd el a beszélgetést","The linked comment is no longer available.":"","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":"Előfizetéssel te is hozzászólhatsz","View in admin":"",Yesterday:"Tegnap","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"A kérésedet továbbítjuk a weboldal tulajdonosának."},nD={"{amount} characters left":"{amount} karakter tersisa","{amount} comments":"{amount} komentar","{amount} hrs ago":"{amount} jam yang lalu","{amount} mins ago":"{amount} menit yang lalu","{amount} more":"{amount} lagi","1 comment":"1 komentar","Add comment":"Tambahkan komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Tambahkan konteks pada komentar Anda, bagikan nama dan keahlian Anda untuk mendorong diskusi yang sehat.","Add reply":"Tambahkan balasan","Add your expertise":"Tambahkan keahlian Anda","Already a member?":"Sudah menjadi anggota?",Anonymous:"Anonim","Are you sure?":"Apakah Anda yakin?","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.",Best:"Terbaik",Cancel:"Batal",Comment:"Komentar","Commenting disabled":"","Complete your profile":"Lengkapi profil Anda","Contact support":"",Delete:"Hapus",Deleted:"Terhapus","Deleted member":"Anggota dihapus",Deleting:"Menghapus...",Discussion:"Diskusi",Edit:"Edit","Edit this comment":"Edit komentar ini",edited:"diedit","Enter your name":"Masukkan nama Anda",Expertise:"Keahlian","for more information.":"","Founder @ Acme Inc":"Founder @ Acme Inc","Full-time parent":"Orang tua penuh waktu","Head of Marketing at Acme, Inc":"Direktur Pemasaran di Acme, Inc","Hidden for members":"Tersembunyi bagi anggota",Hide:"Sembunyikan","Hide comment":"Sembunyikan komentar","Jamie Larson":"Sutan T. Alisjahbana","Join the discussion":"Bergabung dalam diskusi","Just now":"Baru saja","Load more ({amount})":"Tampilkan {amount} lagi","Local resident":"Penduduk lokal","Member discussion":"Diskusi anggota",Name:"Nama",Neurosurgeon:"Ahli Bedah Saraf",Newest:"Paling baru",Oldest:"Paling lama","Once deleted, this comment can’t be recovered.":"Setelah dihapus, komentar ini tidak dapat dipulihkan.","One hour ago":"Satu jam yang lalu","One min ago":"Satu menit yang lalu",removed:"","Replied to":"",Reply:"Balas","Reply to":"","Reply to comment":"Balas komentar",Report:"Laporkan","Report comment":"Laporkan komentar","Report this comment?":"Laporkan komentar ini?",Save:"Simpan",Sending:"Mengirim",Sent:"Terkirim",Show:"Tampilkan","Show {amount} more replies":"Tampilkan {amount} balasan lainnya","Show 1 more reply":"Tampilkan 1 balasan lainnya","Show comment":"Tampilkan komentar","Sign in":"Masuk","Sign up now":"Daftar sekarang","Sort by":"Urutkan berdasarkan","Start the conversation":"Mulai percakapan","The linked comment is no longer available.":"","This comment has been hidden.":"Komentar ini telah disembunyikan.","This comment has been removed.":"Komentar ini telah dihapus.","Upgrade now":"Daftar sekarang","View in admin":"",Yesterday:"Kemarin","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Permintaan Anda akan dikirim kepada pemilik situs ini."},oD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"","Contact support":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","for more information.":"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":""},rD={"{amount} characters left":"{amount} caratteri rimanenti","{amount} comments":"{amount} commenti","{amount} hrs ago":"{amount} ore fa","{amount} mins ago":"{amount} minuti fa","{amount} more":"{amount} in più","1 comment":"1 commento","Add comment":"Aggiungi commento","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Aggiungi dettagli al tuo commento, condividi il tuo nome e le tue competenze per incoraggiare una conversazione sana.","Add reply":"Aggiungi risposta","Add your expertise":"Aggiungi le tue competenze","Already a member?":"Sei già iscritto?",Anonymous:"Anonimo","Are you sure?":"Sei sicuro?","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.",Best:"Migliori",Cancel:"Annulla",Comment:"Commenta","Commenting disabled":"","Complete your profile":"Completa il tuo profilo","Contact support":"",Delete:"Elimina",Deleted:"Eliminato","Deleted member":"Utente eliminato",Deleting:"Eliminazione in corso",Discussion:"Discussione",Edit:"Modifica","Edit this comment":"Modifica questo commento",edited:"modificato","Enter your name":"Inserisci il tuo nome",Expertise:"Competenze","for more information.":"","Founder @ Acme Inc":"Megadirettore Galattico","Full-time parent":"Genitore a tempo pieno","Head of Marketing at Acme, Inc":"Ragioniere presso Megaditta","Hidden for members":"Nascosto per gli abbonati",Hide:"Nascondi","Hide comment":"Nascondi commento","Jamie Larson":"Andrea Rossi","Join the discussion":"Partecipa alla discussione","Just now":"Adesso","Load more ({amount})":"Caricane altri {amount}","Local resident":"Paesano","Member discussion":"Commenti",Name:"Nome",Neurosurgeon:"Neurochirurgo",Newest:"Più recenti",Oldest:"Più vecchi","Once deleted, this comment can’t be recovered.":"Una volta cancellato, non potrai più recuperare questo commento","One hour ago":"Un'ora fa","One min ago":"Un minuto fa",removed:"rimosso","Replied to":"Ha risposto a",Reply:"Rispondi","Reply to":"Rispondi a","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 1 more reply":"Mostra un'altra risposta","Show comment":"Mostra commento","Sign in":"Accedi","Sign up now":"Iscriviti ora","Sort by":"Ordina per","Start the conversation":"Commenta per primo","The linked comment is no longer available.":"","This comment has been hidden.":"Questo commento è stato nascosto.","This comment has been removed.":"Questo commento è stato rimosso.","Upgrade now":"Abbonati ora","View in admin":"Visualizza nell'area admin",Yesterday:"Ieri","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"La tua richiesta sarà inviata al proprietario del sito."},iD={"{amount} characters left":"残り{amount}文字","{amount} comments":"{amount}のコメント","{amount} hrs ago":"{amount}時間前","{amount} mins ago":"{amount}分前","{amount} more":"さらに{amount}個","1 comment":"1のコメント","Add comment":"コメントする","Add context to your comment, share your name and expertise to foster a healthy discussion.":"コメントはよく説明し、名前と専門分野を共有することで健全な議論をすすめましょう。","Add reply":"返信する","Add your expertise":"","Already a member?":"メンバーですか?",Anonymous:"匿名","Are you sure?":"","Become a member of {publication} to start commenting.":"{publication}のメンバーになってコメントを始めましょう。","Become a paid member of {publication} to start commenting.":"{publication}の有料メンバーになってコメントを始めましょう。",Best:"",Cancel:"キャンセル",Comment:"コメント","Commenting disabled":"","Complete your profile":"プロフィールを完成させる","Contact support":"",Delete:"削除",Deleted:"","Deleted member":"削除されたメンバー",Deleting:"",Discussion:"議論",Edit:"編集","Edit this comment":"このコメントを編集する",edited:"編集済み","Enter your name":"名前を記入",Expertise:"専門分野","for more information.":"","Founder @ Acme Inc":"創業者 @ Acme Inc","Full-time parent":"専業主婦・主夫","Head of Marketing at Acme, Inc":"マーケティング責任者 @ Acme, Inc","Hidden for members":"",Hide:"非表示にする","Hide comment":"コメントを非表示にする","Jamie Larson":"ジェイミー・ラーソン","Join the discussion":"議論に参加する","Just now":"今すぐ参加する","Load more ({amount})":"","Local resident":"地元住民","Member discussion":"メンバーによる議論",Name:"名前",Neurosurgeon:"脳神経外科医",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"1時間前","One min ago":"1分前",removed:"","Replied to":"",Reply:"返信する","Reply to":"","Reply to comment":"コメントに返信する",Report:"通報する","Report comment":"コメントを通報する","Report this comment?":"このコメントを通報しますか?",Save:"保存",Sending:"送信中",Sent:"送信完了",Show:"表示する","Show {amount} more replies":"{amount}個の返信を表示する","Show 1 more reply":"返信をもう1つ表示する","Show comment":"コメントを表示する","Sign in":"ログイン","Sign up now":"今すぐ新規登録する","Sort by":"","Start the conversation":"会話を始める","The linked comment is no longer available.":"","This comment has been hidden.":"このコメントは非表示にされました。","This comment has been removed.":"このコメントは削除されました。","Upgrade now":"今すぐアップデートする","View in admin":"",Yesterday:"昨日","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"あなたのリクエストはこのサイトの管理者に送信されます。"},sD={"{amount} characters left":"{amount}글자 남음","{amount} comments":"{amount}개의 댓글","{amount} hrs ago":"{amount}시간 전","{amount} mins ago":"{amount}분 전","{amount} more":"{amount}개 더보기","1 comment":"1개의 댓글","Add comment":"댓글 추가","Add context to your comment, share your name and expertise to foster a healthy discussion.":"건설적인 토론을 위해 댓글에 맥락을 추가하고, 이름과 전문 분야를 공유해 주세요.","Add reply":"답변 추가","Add your expertise":"","Already a member?":"이미 회원이신가요?",Anonymous:"익명","Are you sure?":"","Become a member of {publication} to start commenting.":"{publication}의 회원이 되어 댓글을 작성해 주세요.","Become a paid member of {publication} to start commenting.":"{publication}의 유료 회원이 되어 댓글을 작성해 주세요.",Best:"",Cancel:"취소",Comment:"댓글","Commenting disabled":"","Complete your profile":"프로필을 완성해 주세요","Contact support":"",Delete:"삭제",Deleted:"","Deleted member":"삭제된 회원",Deleting:"",Discussion:"댓글",Edit:"수정","Edit this comment":"댓글 수정",edited:"수정됨","Enter your name":"이름을 입력해 주세요",Expertise:"전문분야","for more information.":"","Founder @ Acme Inc":"Acme Inc 창업자","Full-time parent":"전업 부모","Head of Marketing at Acme, Inc":"Acme Inc 마케팅 책임자","Hidden for members":"",Hide:"숨기기","Hide comment":"댓글 숨기기","Jamie Larson":"제이미 라슨","Join the discussion":"댓글에 참여해 주세요","Just now":"방금 전","Load more ({amount})":"","Local resident":"지역 주민","Member discussion":"회원들의 댓글",Name:"이름",Neurosurgeon:"신경외과 의사",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"1시간 전","One min ago":"1분 전",removed:"","Replied to":"",Reply:"답변","Reply to":"","Reply to comment":"댓글에 답변",Report:"신고","Report comment":"댓글 신고","Report this comment?":"이 댓글을 신고하시겠어요?",Save:"저장",Sending:"전송중",Sent:"전송됨",Show:"보기","Show {amount} more replies":"{amount}개의 댓글 더 보기","Show 1 more reply":"1개의 댓글 더 보기","Show comment":"댓글 보기","Sign in":"로그인","Sign up now":"회원가입","Sort by":"정렬 기준","Start the conversation":"댓글을 작성해 주세요","The linked comment is no longer available.":"","This comment has been hidden.":"숨김처리 된 댓글이에요.","This comment has been removed.":"삭제 된 댓글이에요.","Upgrade now":"업그레이드","View in admin":"",Yesterday:"어제","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"운영자에게 요구사항이 전달되었어요."},aD={"{amount} characters left":"{amount} таңба қалды","{amount} comments":"{amount} пікір","{amount} hrs ago":"{amount} сағат бұрын","{amount} mins ago":"{amount} минут бұрын","{amount} more":"тағы {amount}","1 comment":"1 пікір","Add comment":"Пікір қосу","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Талқы қызық болуы үшін өзіңіз туралы мәліметтерді қосыңыз.","Add reply":"Жауап қосу","Add your expertise":"","Already a member?":"Әлдеқашан қосылдыңыз ба?",Anonymous:"Аноним","Are you sure?":"","Become a member of {publication} to start commenting.":"Пікір қалдыру үшін {publication} сайтына аккаунт қажет.","Become a paid member of {publication} to start commenting.":"Пікір қалдыру үшін {publication} сайтына ақылы аккаунт қажет.",Best:"",Cancel:"Бас тарту",Comment:"Пікір","Commenting disabled":"","Complete your profile":"Профиліңізді толтырыңыз","Contact support":"",Delete:"Жою",Deleted:"","Deleted member":"Жойылған аккаунт",Deleting:"",Discussion:"Талқы",Edit:"Өңдеу","Edit this comment":"Бұл пікірді өңдеу",edited:"Өңделді","Enter your name":"Есіміңізді жазыңыз",Expertise:"Қызмет","for more information.":"","Founder @ Acme Inc":"@ Acme Inc құрылтайшысы","Full-time parent":"Толық күн жұмыс істейтін ата-ана","Head of Marketing at Acme, Inc":"@ Acme маркетинг жетекшісі ","Hidden for members":"",Hide:"Жасыру","Hide comment":"Пікірді жасыру","Jamie Larson":"Пәленше Түгеншиев","Join the discussion":"Талқыға қосылу","Just now":"Дәл қазір","Load more ({amount})":"","Local resident":"Жергілікті тұрғын","Member discussion":"Мүшелер талқысы",Name:"Есімі",Neurosurgeon:"Нейрохирург",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Бір сағат бұрын","One min ago":"Бір минут бұрын",removed:"","Replied to":"",Reply:"Жауап беру","Reply to":"","Reply to comment":"Пікірге жауап беру",Report:"Шағымдану","Report comment":"Пікірге шағымдану","Report this comment?":"Осы пікірге шағым жіберілсін бе?",Save:"Сақтау",Sending:"Жіберілуде",Sent:"Жіберілді",Show:"Көрсету","Show {amount} more replies":"Тағы {amount} жауапты көрсету","Show 1 more reply":"Тағы 1 жауап көрсету","Show comment":"Пікірді көрсету","Sign in":"Кіру","Sign up now":"Қазір тіркелу","Sort by":"","Start the conversation":"Талқыны бастау","The linked comment is no longer available.":"","This comment has been hidden.":"Бұл пікір жасырылды.","This comment has been removed.":"Бұл пікір өшірілді.","Upgrade now":"Жаңарту ","View in admin":"",Yesterday:"Кеше","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Өтінішіңіз сайт иесіне жіберіледі."},lD={"{amount} characters left":"{amount} likę simboliai","{amount} comments":"{amount} komentarai","{amount} hrs ago":"Prieš {amount} val.","{amount} mins ago":"Prieš {amount} min.","{amount} more":"{amount} daugiau","1 comment":"1 komentaras","Add comment":"Rašyti komentarą","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Papildykite savo komentarą, prisistatykite ir pasidalinkite savo turimomis žiniomis, kad paskatintumėte prasmingą diskusiją.","Add reply":"Atsakyti","Add your expertise":"","Already a member?":"Jau turite paskyrą?",Anonymous:"Anoniminis","Are you sure?":"","Become a member of {publication} to start commenting.":"Užsiregistruokite {publication}, kad galėtumėte komentuoti.","Become a paid member of {publication} to start commenting.":"Tapkite {publication} prenumeratoriumi, kad galėtumėte komentuoti.",Best:"",Cancel:"Atšaukti",Comment:"Komentuoti","Commenting disabled":"","Complete your profile":"Pabaikite kurti savo profilį!","Contact support":"",Delete:"Ištrinti",Deleted:"","Deleted member":"Pašalintas narys",Deleting:"",Discussion:"Diskusija",Edit:"Redaguoti","Edit this comment":"Redaguoti šį komentarą",edited:"redaguotas","Enter your name":"Įrašykite savo vardą",Expertise:"Specializacija","for more information.":"","Founder @ Acme Inc":"Istorikas","Full-time parent":"Vaiką prižiūrintis tėvas","Head of Marketing at Acme, Inc":"Tyrinėtojas","Hidden for members":"",Hide:"Paslėpti","Hide comment":"Paslėpti komentarą","Jamie Larson":"Vardenis Pavardenis","Join the discussion":"Prisijunkite prie diskusijos","Just now":"Ką tik","Load more ({amount})":"","Local resident":"Vietinis gyventojas","Member discussion":"Komentarai",Name:"Vardas",Neurosurgeon:"Neurochirurgas",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prieš valandą","One min ago":"Prieš minutę",removed:"","Replied to":"",Reply:"Atsakyti","Reply to":"","Reply to comment":"Atsakyti į komentarą",Report:"Pranešti","Report comment":"Pranešti apie komentarą","Report this comment?":"Pranešti apie šį komentarą?",Save:"Išsaugoti",Sending:"Siunčiama",Sent:"Išsiųsta",Show:"Rodyti","Show {amount} more replies":"Rodyti daugiau atsakymų ({amount})","Show 1 more reply":"Rodyti dar 1 atsakymą","Show comment":"Rodyti komentarą","Sign in":"Prisijungti","Sign up now":"Registruotis","Sort by":"","Start the conversation":"Parašykite pirmąjį komentarą","The linked comment is no longer available.":"","This comment has been hidden.":"Šis komentaras buvo paslėptas.","This comment has been removed.":"Šis komentaras buvo pašalintas.","Upgrade now":"Prenumeruokite","View in admin":"",Yesterday:"Vakar","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Jūsų pranešimas bus išsiųstas svetainės savininkui."},cD={"{amount} characters left":"Atlikušas {amount} rakstzīmes","{amount} comments":"{amount} komentāri","{amount} hrs ago":"pirms {amount} stundām","{amount} mins ago":"Pirms {amount} minūtēm","{amount} more":"Vēl {amount}","1 comment":"1 komentārs","Add comment":"Pievienot komentāru","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Pievienojiet savam komentāram kontekstu, kopīgojiet savu vārdu un zināšanas, lai veicinātu veselīgu diskusiju.","Add reply":"Pievienot atbildi","Add your expertise":"","Already a member?":"Vai jau esat dalībnieks?",Anonymous:"Anonīms","Are you sure?":"Vai esat pārliecināts?","Become a member of {publication} to start commenting.":"Kļūstiet par {publication} dalībnieku, lai sāktu komentēt.","Become a paid member of {publication} to start commenting.":"Kļūstiet par apmaksātu {publication} dalībnieku, lai sāktu komentēt.",Best:"",Cancel:"Atcelt",Comment:"Komentēt","Commenting disabled":"","Complete your profile":"Pabeidziet savu profilu","Contact support":"",Delete:"Dzēst",Deleted:"Izdzēsts","Deleted member":"Dzēsts dalībnieks",Deleting:"Dzēšana",Discussion:"Diskusija",Edit:"Rediģēt","Edit this comment":"Rediģēt šo komentāru",edited:"rediģēts","Enter your name":"Ievadiet savu vārdu",Expertise:"Ekspertīze","for more information.":"","Founder @ Acme Inc":"Dibinātājs @ Acme Inc","Full-time parent":"Pilnas slodzes vecāks","Head of Marketing at Acme, Inc":"Mārketinga vadītājs uzņēmumā Acme, Inc","Hidden for members":"Paslēpts dalībniekiem",Hide:"Slēpt","Hide comment":"Slēpt komentāru","Jamie Larson":"Jānis Reikulis","Join the discussion":"Pievienojieties diskusijai","Just now":"Tikai tagad","Load more ({amount})":"","Local resident":"Vietējais iedzīvotājs","Member discussion":"Biedru diskusija",Name:"Vārds",Neurosurgeon:"Neiroķirurgs",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Pēc dzēšanas šo komentāru nevar atgūt.","One hour ago":"Pirms stundas","One min ago":"Pirms minūtes",removed:"noņemts","Replied to":"Atbildēja uz",Reply:"Atbildēt","Reply to":"Atbildēt uz","Reply to comment":"Atbildēt uz komentāru",Report:"Ziņojums","Report comment":"Ziņot par komentāru","Report this comment?":"Vai ziņot par šo komentāru?",Save:"Saglabāt",Sending:"Notiek nosūtīšana",Sent:"Nosūtīts",Show:"Rādīt","Show {amount} more replies":"Rādīt vēl {amount} atbildes","Show 1 more reply":"Rādīt vēl 1 atbildi","Show comment":"Rādīt komentāru","Sign in":"Pierakstīties","Sign up now":"Reģistrējieties tūlīt","Sort by":"Kārtot pēc","Start the conversation":"Sāciet sarunu","The linked comment is no longer available.":"","This comment has been hidden.":"Šis komentārs ir paslēpts.","This comment has been removed.":"Šis komentārs ir noņemts.","Upgrade now":"Jauniniet tūlīt","View in admin":"",Yesterday:"Vakar","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Jūsu pieprasījums tiks nosūtīts šīs vietnes īpašniekam."},uD={"{amount} characters left":"Преостануваат {amount} знаци.","{amount} comments":"{amount} коментари","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"Уште {amount}","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст за вашиот коментар, споделете го вашето име и експертиза за да одржите пристојна дискусија.","Add reply":"Одговорете","Add your expertise":"","Already a member?":"Веќе сте член?",Anonymous:"Анонимен","Are you sure?":"","Become a member of {publication} to start commenting.":"Станете член на {publication} за да можете да коментирате.","Become a paid member of {publication} to start commenting.":"Станете претплатен член на {publication} за да можеш да коментирате.",Best:"",Cancel:"Откажете",Comment:"Коментирајте","Commenting disabled":"","Complete your profile":"Комплетирајте го вашиот профил","Contact support":"",Delete:"Избришете",Deleted:"","Deleted member":"Избришан член",Deleting:"",Discussion:"Разговор",Edit:"Изменете","Edit this comment":"Изменете го овој коментар",edited:"","Enter your name":"Внесете го вашето име",Expertise:"Експертиза","for more information.":"","Founder @ Acme Inc":"Основач @ Примерна Компанија","Full-time parent":"Родител","Head of Marketing at Acme, Inc":"Раководител на Маркетинг во Примерна Компанија","Hidden for members":"",Hide:"Скријте","Hide comment":"Скријте го коментарот","Jamie Larson":"Петар Петровски","Join the discussion":"Приклучете се во разговорот","Just now":"Штотуку","Load more ({amount})":"","Local resident":"Локал жител","Member discussion":"Разговор на членовите",Name:"Име",Neurosurgeon:"Неврохирург",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Пред еден час","One min ago":"",removed:"","Replied to":"",Reply:"Одговорете","Reply to":"","Reply to comment":"Одговор на коментарот",Report:"Пријавете","Report comment":"Пријавете коментар","Report this comment?":"Пријавете го овој коментар?",Save:"Зачувајте",Sending:"Се испраќа",Sent:"Испратено",Show:"Покажи","Show {amount} more replies":"Покажи уште {amount} одговори","Show 1 more reply":"Покажи уште 1 одговор","Show comment":"Покажи коментар","Sign in":"Најавете се","Sign up now":"Регистрирајте се","Sort by":"","Start the conversation":"Започнете го разговорот","The linked comment is no longer available.":"","This comment has been hidden.":"Овој коментар беше скриен.","This comment has been removed.":"Овој коментар беше отстранет.","Upgrade now":"Надградете","View in admin":"",Yesterday:"Вчера","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Вашето барање ќе биде испратено на сопственикот на оваа страница."},dD={"{amount} characters left":"{amount} тэмдэгт үлдсэн","{amount} comments":"{amount} сэтгэгдэл","{amount} hrs ago":"{amount} цагийн өмнө","{amount} mins ago":"{amount} минутын өмнө","{amount} more":"{amount} илүү","1 comment":"1 сэтгэгдэл","Add comment":"Сэтгэгдэл нэмэх","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Сэтгэгдэлдээ илүү мэдээлэл оруулан, нэр болон мэргэжлээ хуваалцаж, үр бүтээлтэй хэлэлцүүлэг өрнүүлнэ үү.","Add reply":"Хариу нэмэх","Add your expertise":"","Already a member?":"Бүртгэлтэй юу?",Anonymous:"Нууц","Are you sure?":"Та итгэлтэй байна уу?","Become a member of {publication} to start commenting.":"Сэтгэгдэл бичихийн тулд {publication}-н гишүүн болно уу.","Become a paid member of {publication} to start commenting.":"Сэтгэгдэл бичихийн тулд {publication}-н төлбөртэй гишүүн болно уу.",Best:"",Cancel:"Цуцлах",Comment:"Сэтгэгдэл","Commenting disabled":"","Complete your profile":"Профайлаа бүрэн бөглөнө үү","Contact support":"",Delete:"Устгах",Deleted:"Устгагдсан","Deleted member":"Устгагдсан гишүүн",Deleting:"Устгаж байна",Discussion:"Хэлэлцүүлэг",Edit:"Засах","Edit this comment":"Энэхүү сэтгэгдлийг засах",edited:"засагдсан","Enter your name":"Нэрээ оруулна уу",Expertise:"Мэргэжил","for more information.":"","Founder @ Acme Inc":"Acme Inc-н үүсгэн байгуулагч","Full-time parent":"Бүтэн цагийн эцэг/эх","Head of Marketing at Acme, Inc":"Acme, Inc-н маркетингийн удирдлага","Hidden for members":"Гишүүдээс нуугдсан",Hide:"Нуух","Hide comment":"Сэтгэгдлийг нуух","Jamie Larson":"Доржийн Бат","Join the discussion":"Хэлэлцүүлэгт нэгдэх","Just now":"Дөнгөж сая","Load more ({amount})":"Дахин харах ({amount})","Local resident":"Орон нутгийн оршин суугч","Member discussion":"Гишүүдийн хэлэлцүүлэг",Name:"Нэр",Neurosurgeon:"Мэдрэлийн мэс засалч",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Устгасны дараа энэ сэтгэгдлийг сэргээх боломжгүй.","One hour ago":"Нэг цагийн өмнө","One min ago":"Нэг минутын өмнө",removed:"хасагдсан","Replied to":"Хариулсан",Reply:"Хариулах","Reply to":"Хариулах","Reply to comment":"Сэтгэгдэлд хариулах",Report:"Мэдэгдэх","Report comment":"Сэтгэгдлийг мэдэгдэх","Report this comment?":"Энэ сэтгэгдлийг мэдэгдэх үү?",Save:"Хадгалах",Sending:"Илгээж байна",Sent:"Илгээгдсэн",Show:"Харуулах","Show {amount} more replies":"{amount} хариултыг харуулах","Show 1 more reply":"1 хариултыг харуулах","Show comment":"Сэтгэгдлийг харуулах","Sign in":"Нэвтрэх","Sign up now":"Одоо бүртгүүлэх","Sort by":"Эрэмбэлэх","Start the conversation":"Яриаг эхлүүлэх","The linked comment is no longer available.":"","This comment has been hidden.":"Энэ сэтгэгдэл нуугдсан.","This comment has been removed.":"Энэ сэтгэгдэл хасагдсан.","Upgrade now":"Одоо шинэчлэх","View in admin":"",Yesterday:"Өчигдөр","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Таны хүсэлт энэ сайтын эзэмшигч рүү илгээгдэнэ."},mD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"","Contact support":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","for more information.":"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":""},fD={"{amount} characters left":"{amount} tegn igjen","{amount} comments":"{amount} kommentarer","{amount} hrs ago":"{amount} timer siden","{amount} mins ago":"{amount} minutter siden","{amount} more":"{amount} mer","1 comment":"1 kommentar","Add comment":"Legg til kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Legg til kontekst i kommentaren din, del navnet ditt og ekspertisen din for å fremme en god diskusjon.","Add reply":"Legg til svar","Add your expertise":"","Already a member?":"Allerede medlem?",Anonymous:"Anonym","Are you sure?":"Er du sikker?","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 et betalende medlem av {publication} for å begynne å kommentere.",Best:"",Cancel:"Avbryt",Comment:"Kommentar","Commenting disabled":"","Complete your profile":"Fullfør profilen din","Contact support":"",Delete:"Slett",Deleted:"Slettet","Deleted member":"Slettet medlem",Deleting:"Sletter",Discussion:"Diskusjon",Edit:"Rediger","Edit this comment":"Rediger denne kommentaren",edited:"redigert","Enter your name":"Skriv inn navnet ditt",Expertise:"Ekspertise","for more information.":"","Founder @ Acme Inc":"Grunnlegger @ Acme Inc","Full-time parent":"Forelder på heltid","Head of Marketing at Acme, Inc":"Markedsføringsleder hos Acme Inc","Hidden for members":"Skjult for medlemmer",Hide:"Skjul","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Delta i diskusjonen","Just now":"Akkurat nå","Load more ({amount})":"Last inn flere ({amount})","Local resident":"Lokal innbygger","Member discussion":"Medlemsdiskusjon",Name:"Navn",Neurosurgeon:"Nevrokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"En time siden","One min ago":"Ett minutt siden",removed:"fjernet","Replied to":"Svarte",Reply:"Svar","Reply to":"Svar på","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 1 more reply":"Vis ett svar til","Show comment":"Vis kommentar","Sign in":"Logg inn","Sign up now":"Registrer deg nå","Sort by":"Sorter etter","Start the conversation":"Start samtalen","The linked comment is no longer available.":"","This comment has been hidden.":"Denne kommentaren er skjult.","This comment has been removed.":"Denne kommentaren er fjernet.","Upgrade now":"Oppgrader nå","View in admin":"",Yesterday:"I går","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Din forespørsel vil bli sendt til eieren av dette nettstedet."},pD={"{amount} characters left":"{amount} अक्षर बाँकी","{amount} comments":"{amount} प्रतिक्रियाहरू","{amount} hrs ago":"{amount} घण्टा अघि","{amount} mins ago":"{amount} मिनेट अघि","{amount} more":"{amount} थप","1 comment":"१ प्रतिक्रिया","Add comment":"प्रतिक्रिया थप्नुहोस्","Add context to your comment, share your name and expertise to foster a healthy discussion.":"आफ्नो प्रतिक्रियालाई सन्दर्भ दिनुहोस्, स्वस्थ छलफलको लागि आफ्नो नाम र विशेषज्ञता साझा गर्नुहोस्।","Add reply":"प्रत्युत्तर थप्नुहोस्","Add your expertise":"आफ्नो विशेषज्ञता थप्नुहोस्","Already a member?":"पहिले नै सदस्य हुनुहुन्छ?",Anonymous:"अज्ञात","Are you sure?":"के तपाईं निश्चित हुनुहुन्छ?","Become a member of {publication} to start commenting.":"प्रतिक्रिया सुरु गर्न {publication} को सदस्य बन्नुहोस्।","Become a paid member of {publication} to start commenting.":"प्रतिक्रिया सुरु गर्न {publication} को सशुल्क सदस्य बन्नुहोस्।",Best:"उत्तम",Cancel:"रद्द गर्नुहोस्",Comment:"प्रतिक्रिया","Commenting disabled":"","Complete your profile":"आफ्नो प्रोफाइल पूरा गर्नुहोस्","Contact support":"",Delete:"मेटाउनुहोस्",Deleted:"मेटाइयो","Deleted member":"मेटाइएको सदस्य",Deleting:"मेटाइँदैछ",Discussion:"छलफल",Edit:"सम्पादन","Edit this comment":"यो प्रतिक्रिया सम्पादन गर्नुहोस्",edited:"सम्पादित","Enter your name":"आफ्नो नाम प्रविष्ट गर्नुहोस्",Expertise:"विशेषज्ञता","for more information.":"","Founder @ Acme Inc":"संस्थापक @ Acme Inc","Full-time parent":"पूर्ण-कालीन अभिभावक","Head of Marketing at Acme, Inc":"Acme, Inc मा मार्केटिङ प्रमुख","Hidden for members":"सदस्यहरूका लागि लुकाइएको",Hide:"लुकाउनुहोस्","Hide comment":"प्रतिक्रिया लुकाउनुहोस्","Jamie Larson":"जेमी लार्सन","Join the discussion":"छलफलमा सामेल हुनुहोस्","Just now":"भर्खरै","Load more ({amount})":"थप लोड गर्नुहोस् ({amount})","Local resident":"स्थानीय बासिन्दा","Member discussion":"सदस्य छलफल",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन",Newest:"सबैभन्दा नयाँ",Oldest:"सबैभन्दा पुरानो","Once deleted, this comment can’t be recovered.":"एक पटक मेटाइएपछि, यो प्रतिक्रिया पुन: प्राप्त गर्न सकिँदैन।","One hour ago":"एक घण्टा अघि","One min ago":"एक मिनेट अघि",removed:"हटाइयो","Replied to":"प्रत्युत्तर दिइयो",Reply:"प्रत्युत्तर दिनुहोस्","Reply to":"प्रत्युत्तर दिनुहोस्","Reply to comment":"प्रतिक्रियाको प्रत्युत्तर दिनुहोस्",Report:"रिपोर्ट गर्नुहोस्","Report comment":"प्रतिक्रिया रिपोर्ट गर्नुहोस्","Report this comment?":"यो प्रतिक्रिया रिपोर्ट गर्नुहुन्छ?",Save:"बचत गर्नुहोस्",Sending:"पठाइँदैछ",Sent:"पठाइयो",Show:"देखाउनुहोस्","Show {amount} more replies":"थप {amount} प्रत्युत्तरहरू देखाउनुहोस्","Show 1 more reply":"थप १ प्रत्युत्तर देखाउनुहोस्","Show comment":"प्रतिक्रिया देखाउनुहोस्","Sign in":"साइन इन गर्नुहोस्","Sign up now":"अहिले दर्ता गर्नुहोस्","Sort by":"क्रमबद्ध गर्नुहोस्","Start the conversation":"कुराकानी सुरु गर्नुहोस्","The linked comment is no longer available.":"","This comment has been hidden.":"यो प्रतिक्रिया लुकाइएको छ।","This comment has been removed.":"यो प्रतिक्रिया हटाइएको छ।","Upgrade now":"अहिले अपग्रेड गर्नुहोस्","View in admin":"",Yesterday:"हिजो","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"तपाईंको अनुरोध यस साइटको मालिकलाई पठाइनेछ।"},hD={"{amount} characters left":"Nog {amount} tekens over","{amount} comments":"{amount} reacties","{amount} hrs ago":"{amount} uur geleden","{amount} mins ago":"{amount} min geleden","{amount} more":"Nog {amount}","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","Add your expertise":"","Already a member?":"Al lid?",Anonymous:"Anoniem","Are you sure?":"Weet je het zeker?","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.",Best:"",Cancel:"Annuleren",Comment:"Verstuur","Commenting disabled":"","Complete your profile":"Vervolledig jouw profiel","Contact support":"",Delete:"Verwijderen",Deleted:"Verwijderd","Deleted member":"Verwijderd lid",Deleting:"Wordt verwijderd",Discussion:"Gesprek",Edit:"Bewerken","Edit this comment":"Bewerk deze reactie",edited:"bewerkt","Enter your name":"Vul je naam in",Expertise:"Expertise","for more information.":"","Founder @ Acme Inc":"Oprichter, Acme BV","Full-time parent":"Full-time ouder","Head of Marketing at Acme, Inc":"Acme BV, Hoofd Marketing","Hidden for members":"Verborgen voor leden",Hide:"Verbergen","Hide comment":"Verberg reactie","Jamie Larson":"Jan Jansen","Join the discussion":"Doe mee aan het gesprek","Just now":"Zojuist","Load more ({amount})":"Laad meer ({amount})","Local resident":"Lokale bewoner","Member discussion":"Gesprek",Name:"Naam",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Eenmaal verwijderd, kan deze reactie niet meer worden hersteld.","One hour ago":"Eén uur geleden","One min ago":"Eén min geleden",removed:"verwijderd","Replied to":"Geantwoord op",Reply:"Beantwoorden","Reply to":"Antwoord op","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 1 more reply":"Toon nog 1 antwoord","Show comment":"Toon reactie","Sign in":"Inloggen","Sign up now":"Registreren","Sort by":"Sorteren op","Start the conversation":"Begin het gesprek","The linked comment is no longer available.":"","This comment has been hidden.":"Deze reactie is verborgen.","This comment has been removed.":"Deze reactie is verwijderd.","Upgrade now":"Upgrade nu","View in admin":"",Yesterday:"Gisteren","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Jouw melding zal worden verzonden naar de eigenaar van deze site."},gD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"","Contact support":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","for more information.":"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":""},yD={"{amount} characters left":"{amount} ਅੱਖਰ ਬਾਕੀ","{amount} comments":"{amount} ਟਿੱਪਣੀਆਂ","{amount} hrs ago":"{amount} ਘੰਟੇ ਪਹਿਲਾਂ","{amount} mins ago":"{amount} ਮਿੰਟ ਪਹਿਲਾਂ","{amount} more":"{amount} ਹੋਰ","1 comment":"1 ਟਿੱਪਣੀ","Add comment":"ਟਿੱਪਣੀ ਸ਼ਾਮਲ ਕਰੋ","Add context to your comment, share your name and expertise to foster a healthy discussion.":"ਆਪਣੀ ਟਿੱਪਣੀ ਵਿੱਚ ਸੰਦਰਭ ਸ਼ਾਮਲ ਕਰੋ, ਸਿਹਤਮੰਦ ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਨੂੰ ਉਤਸ਼ਾਹਿਤ ਕਰਨ ਲਈ ਆਪਣਾ ਨਾਮ ਅਤੇ ਮੁਹਾਰਤ ਸਾਂਝੀ ਕਰੋ।","Add reply":"ਜਵਾਬ ਸ਼ਾਮਲ ਕਰੋ","Add your expertise":"ਆਪਣੀ ਮੁਹਾਰਤ ਸ਼ਾਮਲ ਕਰੋ","Already a member?":"ਪਹਿਲਾਂ ਤੋਂ ਹੀ ਮੈਂਬਰ ਹੋ?",Anonymous:"ਗੁਮਨਾਮ","Are you sure?":"ਕੀ ਤੁਹਾਨੂੰ ਯਕੀਨ ਹੈ?","Become a member of {publication} to start commenting.":"{publication} ਦੇ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।","Become a paid member of {publication} to start commenting.":"{publication} ਦੇ ਸਹਿਯੋਗੀ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।",Best:"ਸਭ ਤੋਂ ਵਧੀਆ",Cancel:"ਰੱਦ ਕਰੋ",Comment:"ਟਿੱਪਣੀ","Commenting disabled":"","Complete your profile":"ਆਪਣਾ ਨਿੱਜੀ ਪੰਨਾ ਪੂਰਾ ਕਰੋ","Contact support":"",Delete:"ਮਿਟਾਓ",Deleted:"ਮਿਟਾਇਆ ਗਿਆ","Deleted member":"ਮਿਟਾਇਆ ਗਿਆ ਮੈਂਬਰ",Deleting:"ਮਿਟਾਇਆ ਜਾ ਰਿਹਾ ਹੈ",Discussion:"ਵਿਚਾਰ-ਵਟਾਂਦਰਾ",Edit:"ਸੰਪਾਦਿਤ ਕਰੋ","Edit this comment":"ਇਸ ਟਿੱਪਣੀ ਨੂੰ ਸੰਪਾਦਿਤ ਕਰੋ",edited:"ਸੰਪਾਦਿਤ","Enter your name":"ਆਪਣਾ ਨਾਮ ਦਰਜ ਕਰੋ",Expertise:"ਮੁਹਾਰਤ","for more information.":"","Founder @ Acme Inc":"ਸੰਸਥਾਪਕ @ ਫਲਾਣੀ ਕੰਪਨੀ","Full-time parent":"ਘਰੇਲੂ ਮਾਪਾ","Head of Marketing at Acme, Inc":"ਮਾਰਕੀਟਿੰਗ ਮੁਖੀ, ਫਲਾਣੀ ਕੰਪਨੀ ਵਿਖੇ","Hidden for members":"ਮੈਂਬਰਾਂ ਲਈ ਛੁਪਾਇਆ ਗਿਆ",Hide:"ਛੁਪਾਓ","Hide comment":"ਟਿੱਪਣੀ ਛੁਪਾਓ","Jamie Larson":"ਫਲਾਣਾ ਫਲਾਣੀ","Join the discussion":"ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਵਿੱਚ ਸ਼ਾਮਲ ਹੋਵੋ","Just now":"ਹੁਣੇ ਹੁਣੇ","Load more ({amount})":"ਹੋਰ ਲੋਡ ਕਰੋ ({amount})","Local resident":"ਸਥਾਨਕ ਨਿਵਾਸੀ","Member discussion":"ਮੈਂਬਰ ਵਿਚਾਰ-ਵਟਾਂਦਰਾ",Name:"ਨਾਮ",Neurosurgeon:"ਨਿਊਰੋਸਰਜਨ",Newest:"ਸਭ ਤੋਂ ਨਵਾਂ",Oldest:"ਸਭ ਤੋਂ ਪੁਰਾਣਾ","Once deleted, this comment can’t be recovered.":"ਇੱਕ ਵਾਰ ਮਿਟਾਉਣ ਤੋਂ ਬਾਅਦ, ਇਹ ਟਿੱਪਣੀ ਮੁੜ ਪ੍ਰਾਪਤ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕਦੀ।","One hour ago":"ਇੱਕ ਘੰਟਾ ਪਹਿਲਾਂ","One min ago":"ਇੱਕ ਮਿੰਟ ਪਹਿਲਾਂ",removed:"ਹਟਾਇਆ ਗਿਆ","Replied to":"ਨੂੰ ਜਵਾਬ ਦਿੱਤਾ",Reply:"ਜਵਾਬ","Reply to":"ਨੂੰ ਜਵਾਬ ਦਿਓ","Reply to comment":"ਟਿੱਪਣੀ ਦਾ ਜਵਾਬ ਦਿਓ",Report:"ਰਿਪੋਰਟ ਕਰੋ","Report comment":"ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰੋ","Report this comment?":"ਕੀ ਇਸ ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰਨੀ ਹੈ?",Save:"ਸੁਰੱਖਿਅਤ ਕਰੋ",Sending:"ਭੇਜਿਆ ਜਾ ਰਿਹਾ ਹੈ",Sent:"ਭੇਜ ਦਿੱਤਾ ਗਿਆ",Show:"ਦਿਖਾਓ","Show {amount} more replies":"{amount} ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ","Show 1 more reply":"1 ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ","Show comment":"ਟਿੱਪਣੀ ਦਿਖਾਓ","Sign in":"ਸਾਈਨ ਇਨ ਕਰੋ","Sign up now":"ਹੁਣੇ ਸਾਈਨ ਅੱਪ ਕਰੋ","Sort by":"ਇਸ ਅਨੁਸਾਰ ਕ੍ਰਮਬੱਧ ਕਰੋ","Start the conversation":"ਗੱਲਬਾਤ ਸ਼ੁਰੂ ਕਰੋ","The linked comment is no longer available.":"","This comment has been hidden.":"ਇਹ ਟਿੱਪਣੀ ਛੁਪਾ ਦਿੱਤੀ ਗਈ ਹੈ।","This comment has been removed.":"ਇਹ ਟਿੱਪਣੀ ਹਟਾ ਦਿੱਤੀ ਗਈ ਹੈ।","Upgrade now":"ਹੁਣੇ ਅੱਪਗਰੇਡ ਕਰੋ","View in admin":"",Yesterday:"ਕੱਲ੍ਹ","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"ਤੁਹਾਡੀ ਬੇਨਤੀ ਇਸ ਸਾਈਟ ਦੇ ਸੰਚਾਲਕ ਨੂੰ ਭੇਜੀ ਜਾਵੇਗੀ।"},bD={"{amount} characters left":"Pozostało {amount} znaków","{amount} comments":"{amount} komentarzy","{amount} hrs ago":"{amount} godzin temu","{amount} mins ago":"{amount} minut temu","{amount} more":"{amount} więcej","1 comment":"1 komentarz","Add comment":"Dodaj komentarz","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodaj więcej informacji do Twojego komentarza, następnie udostępnij proszę Twoje imię i doświadczenie w celu wzbogacenia jakości dyskusji.","Add reply":"Dodaj odpowiedź","Add your expertise":"","Already a member?":"Posiadasz już konto?",Anonymous:"Anonimowy","Are you sure?":"Czy jesteś pewien?","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 społeczności płatnych subskrybentów {publication}, by zacząć komentować.",Best:"",Cancel:"Anuluj",Comment:"Skomentuj","Commenting disabled":"","Complete your profile":"Skompletuj Twój profil","Contact support":"",Delete:"Usuń",Deleted:"Usunięto","Deleted member":"Usunięte konto",Deleting:"Usuwanie",Discussion:"Dyskusja",Edit:"Edytuj","Edit this comment":"Edytuj komentarz",edited:"edytowano","Enter your name":"Podaj Twoje imię",Expertise:"Doświadczenie","for more information.":"","Founder @ Acme Inc":"Founder @ Acme Inc","Full-time parent":"Pełnoetatowy rodzic","Head of Marketing at Acme, Inc":"Head of Marketing at Acme, Inc","Hidden for members":"Ukryte dla członków",Hide:"Ukryj","Hide comment":"Ukryj komentarz","Jamie Larson":"Jamie Larson","Join the discussion":"Dołącz do dyskusji","Just now":"Przed chwilą","Load more ({amount})":"Załaduj więcej ({amount})","Local resident":"Lokalny rezydent","Member discussion":"Członek dyskusji",Name:"Imię",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Po usunięciu, nie będzie możliwe przywrócenie tego komentarza","One hour ago":"Godzinę temu","One min ago":"Minutę temu",removed:"usunięte","Replied to":"Odpowiedź na",Reply:"Odpowiedz","Reply to":"Odpowiedz na","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:"Pokaż","Show {amount} more replies":"Pokaż {amount} kolejnych odpowiedzi","Show 1 more reply":"Pokaż następną odpowiedź","Show comment":"Pokaż komentarz","Sign in":"Zaloguj się","Sign up now":"Zarejestruj się","Sort by":"Sortuj według","Start the conversation":"Rozpocznij dyskusję","The linked comment is no longer available.":"","This comment has been hidden.":"Komentarz został ukryty.","This comment has been removed.":"Komentarz został usunięty.","Upgrade now":"Ulepsz teraz","View in admin":"",Yesterday:"Wczoraj","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Twoje zgłoszenie zostało przesłane do administratora strony."},wD={"{amount} characters left":"Faltam {amount} caracteres ","{amount} comments":"{amount} comentários","{amount} hrs ago":"{amount} horas atrás","{amount} mins ago":"{amount} minutos atrás","{amount} more":"mais","1 comment":"Um comentário","Add comment":"Adicionar comentário","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adicione o seu comentário, partilhe o seu nome e expriência de modo a promover uma discussão saudável.","Add reply":"Adicionar resposta","Add your expertise":"","Already a member?":"Já é membro?",Anonymous:"Anónimo","Are you sure?":"Tem a certeza?","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. ",Best:"Melhores",Cancel:"Cancelar",Comment:"Comentar","Commenting disabled":"","Complete your profile":"Complete o seu perfil","Contact support":"",Delete:"Eliminar",Deleted:"Eliminado","Deleted member":"Membro eliminado",Deleting:"Eliminando",Discussion:"Discussão",Edit:"Editar","Edit this comment":"Editar este comentário",edited:"editado","Enter your name":"Insira o seu nome",Expertise:"Perícia","for more information.":"","Founder @ Acme Inc":"Fundador @ Amce Inc","Full-time parent":"Pai a tempo inteiro","Head of Marketing at Acme, Inc":"Responsável do Marketing @ Amce, Inc","Hidden for members":"Oculto para membros",Hide:"Esconder","Hide comment":"Esconder comentário","Jamie Larson":"Jane Doe","Join the discussion":"Junte-se à discussão","Just now":"Agora","Load more ({amount})":"","Local resident":"Residente local","Member discussion":"Discussão para membros",Name:"Nome",Neurosurgeon:"neurocirurgião",Newest:"Mais recentes",Oldest:"Mais antigos","Once deleted, this comment can’t be recovered.":"","One hour ago":"uma hora atrás","One min ago":"um minuto atrás",removed:"removido","Replied to":"Respondeu a",Reply:"Responder","Reply to":"Responder a","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 1 more reply":"Mostrar mais uma resposta","Show comment":"Mostrar comentário","Sign in":"Registar","Sign up now":"Registar agora","Sort by":"Organizar por","Start the conversation":"Comece a conversa","The linked comment is no longer available.":"","This comment has been hidden.":"Este comentário foi ocultado","This comment has been removed.":"Este comentário foi removido","Upgrade now":"Atualize agora","View in admin":"",Yesterday:"Ontem","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"O seu pedido será enviado para o dono deste site."},vD={"{amount} characters left":"{amount} caracteres restantes","{amount} comments":"{amount} comentários","{amount} hrs ago":"{amount} horas atrás","{amount} mins ago":"{amount} minutos atrás","{amount} more":"{amount} mais","1 comment":"1 comentário","Add comment":"Adicionar comentário","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adicione contexto ao seu comentário, compartilhe seu nome e sua especialidade para promover uma discussão saudável.","Add reply":"Adicionar resposta","Add your expertise":"Adicione sua especialidade","Already a member?":"Já é um membro?",Anonymous:"Anônimo","Are you sure?":"Você tem certeza?","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.",Best:"Melhores",Cancel:"Cancelar",Comment:"Comentar","Commenting disabled":"","Complete your profile":"Complete seu perfil","Contact support":"",Delete:"Excluir",Deleted:"Excluído","Deleted member":"Membro excluído",Deleting:"Excluindo",Discussion:"Discussão",Edit:"Editar","Edit this comment":"Editar este comentário",edited:"editado","Enter your name":"Digite seu nome",Expertise:"Especialidade","for more information.":"","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Pai/Mãe em tempo integral","Head of Marketing at Acme, Inc":"Chefe de Marketing na Acme, Inc","Hidden for members":"Oculto para membros",Hide:"Ocultar","Hide comment":"Ocultar comentário","Jamie Larson":"Cris Silva","Join the discussion":"Participe da discussão","Just now":"Agora mesmo","Load more ({amount})":"Carregar mais ({amount})","Local resident":"Residente local","Member discussion":"Discussão entre membros",Name:"Nome",Neurosurgeon:"Neurocirurgião",Newest:"Mais Recentes",Oldest:"Mais Antigos","Once deleted, this comment can’t be recovered.":"Após ser excluído, esse comentário não poderá ser recuperado.","One hour ago":"Uma hora atrás","One min ago":"Um minuto atrás",removed:"removido","Replied to":"Respondeu a",Reply:"Responder","Reply to":"Responder a","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:"Exibir","Show {amount} more replies":"Exibir mais {amount} respostas","Show 1 more reply":"Exibir 1 resposta adicional","Show comment":"Exibir comentário","Sign in":"Entrar","Sign up now":"Inscreva-se agora","Sort by":"Ordenar por","Start the conversation":"Iniciar a conversa","The linked comment is no longer available.":"","This comment has been hidden.":"Este comentário foi ocultado.","This comment has been removed.":"Este comentário foi removido.","Upgrade now":"Atualize agora","View in admin":"",Yesterday:"Ontem","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Sua solicitação será enviada ao proprietário deste site."},$D={"{amount} characters left":"{amount} caractere rămase","{amount} comments":"{amount} comentarii","{amount} hrs ago":"acum {amount} ore","{amount} mins ago":"acum {amount} minute","{amount} more":"încă {amount}","1 comment":"1 comentariu","Add comment":"Adaugă comentariu","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adăugați context comentariului dumneavoastră, împărtășiți-vă numele și expertiza pentru a favoriza o discuție sănătoasă.","Add reply":"Adaugă răspuns","Add your expertise":"","Already a member?":"Deja membru?",Anonymous:"Anonim","Are you sure?":"","Become a member of {publication} to start commenting.":"Deveniți membru al {publication} pentru a începe să comentați.","Become a paid member of {publication} to start commenting.":"Deveniți membru plătit al {publication} pentru a începe să comentați.",Best:"",Cancel:"Anulează",Comment:"Comentează","Commenting disabled":"","Complete your profile":"Completează-ți profilul","Contact support":"",Delete:"Șterge",Deleted:"","Deleted member":"Membru șters",Deleting:"",Discussion:"Discuție",Edit:"Editează","Edit this comment":"Editează acest comentariu",edited:"editat","Enter your name":"Introduceți numele dumneavoastră",Expertise:"Expertiză","for more information.":"","Founder @ Acme Inc":"Fondator @ Acme Inc","Full-time parent":"Părinte cu normă întreagă","Head of Marketing at Acme, Inc":"Șef de Marketing la Acme, Inc","Hidden for members":"",Hide:"Ascunde","Hide comment":"Ascunde comentariul","Jamie Larson":"Jamie Larson","Join the discussion":"Alătură-te discuției","Just now":"Chiar acum","Load more ({amount})":"","Local resident":"Rezident local","Member discussion":"Discuție membrii",Name:"Nume",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Acum o oră","One min ago":"Acum un minut",removed:"","Replied to":"",Reply:"Răspunde","Reply to":"","Reply to comment":"Răspunde la comentariu",Report:"Raportează","Report comment":"Raportează comentariul","Report this comment?":"Raportezi acest comentariu?",Save:"Salvează",Sending:"Se trimite",Sent:"Trimis",Show:"Arată","Show {amount} more replies":"Arată încă {amount} răspunsuri","Show 1 more reply":"Arată încă un răspuns","Show comment":"Arată comentariul","Sign in":"Autentificare","Sign up now":"Înregistrează-te acum","Sort by":"Ordonează după","Start the conversation":"Începe conversația","The linked comment is no longer available.":"","This comment has been hidden.":"Acest comentariu a fost ascuns.","This comment has been removed.":"Acest comentariu a fost eliminat.","Upgrade now":"Actualizează acum","View in admin":"",Yesterday:"Ieri","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Cererea dumneavoastră va fi trimisă proprietarului acestui site."},SD={"{amount} characters left":"{amount} символа(ов) осталось","{amount} comments":"{amount} комментария(ев)","{amount} hrs ago":"{amount} ч. назад","{amount} mins ago":"{amount} мин. назад","{amount} more":"ещё {amount}","1 comment":"1 комментарий","Add comment":"Добавить комментарий","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Дополните свой комментарий контекстом, добавив подробности о себе и своём опыте, чтобы обсуждение стало более интересным.","Add reply":"Добавить ответ","Add your expertise":"Добавить свой опыт","Already a member?":"Уже присоединились?",Anonymous:"Анонимный","Are you sure?":"Вы уверены?","Become a member of {publication} to start commenting.":"Присоединяйтесь к {publication} чтобы начать комментировать.","Become a paid member of {publication} to start commenting.":"Станьте платным участником {publication} чтобы начать комментировать.",Best:"Лучший",Cancel:"Отмена",Comment:"Комментарий","Commenting disabled":"","Complete your profile":"Заполните свой профиль","Contact support":"",Delete:"Удалить",Deleted:"Удалено","Deleted member":"Удалённый участник",Deleting:"Удаление",Discussion:"Обсуждение",Edit:"Редактировать","Edit this comment":"Редактировать этот комментарий",edited:"Отредактированно","Enter your name":"Введите ваше имя",Expertise:"Деятельность","for more information.":"","Founder @ Acme Inc":"Основатель @ Корпорация «Акме»","Full-time parent":"Родитель, работающий полный рабочий день","Head of Marketing at Acme, Inc":"Руководитель отдела маркетинга в Корпорации «Акме»","Hidden for members":"Скрыто для участников",Hide:"Скрыть","Hide comment":"Скрыть комментарий","Jamie Larson":"Павел Бид","Join the discussion":"Присоединиться к обсуждению","Just now":"Сейчас","Load more ({amount})":"Загрузить ещё ({amount})","Local resident":"Местный житель","Member discussion":"Обсуждение участников",Name:"Имя",Neurosurgeon:"Нейрохирург",Newest:"Сначала новые",Oldest:"Сначала старые","Once deleted, this comment can’t be recovered.":"После удаления этот комментарий не может быть восстановлен.","One hour ago":"Час назад","One min ago":"Минуту назад",removed:"удалён","Replied to":"Ответ на",Reply:"Ответить","Reply to":"Ответить на","Reply to comment":"Ответить на комментарий",Report:"Пожаловаться","Report comment":"Пожаловаться на комментарий","Report this comment?":"Пожаловаться на этот комментарий?",Save:"Сохранить",Sending:"Отправка",Sent:"Отправлено",Show:"Показать","Show {amount} more replies":"Показать ещё {amount} ответа(ов)","Show 1 more reply":"Показать ответ","Show comment":"Показать комментарий","Sign in":"Войти","Sign up now":"Зарегистрироваться","Sort by":"Сортировать по","Start the conversation":"Начать обсуждение","The linked comment is no longer available.":"","This comment has been hidden.":"Этот комментарий скрыт","This comment has been removed.":"Этот комментарий был удалён","Upgrade now":"Улучшить подписку","View in admin":"",Yesterday:"Вчера","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Ваш запрос будет отправлен владельцу сайта."},kD={"{amount} characters left":"තව වචන {amount} යි.","{amount} comments":"අදහ​ස් {amount} යි.","{amount} hrs ago":"පැය {amount} ට පෙ​ර","{amount} mins ago":"මිනිත්තු {amount} ට පෙ​ර","{amount} more":"","1 comment":"1 අදහසයි.","Add comment":"අදහස් එකතු කරන්​න","Add context to your comment, share your name and expertise to foster a healthy discussion.":"ඉතා හො​ඳ සාකච්ඡාවක් රැගෙ​න යාම සඳහා ඔබේ අදහසට අන්තර්ගත​ය එක් කර ඔබේ නම සහ විශේෂඥතාව බෙදා ගන්න","Add reply":"ප්‍රතිචාර එකතු කරන්​න","Add your expertise":"","Already a member?":"දැනටමත් සාමාජිකයෙක්ද ?",Anonymous:"නිර්නාමික","Are you sure?":"","Become a member of {publication} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි සාමාජිකයෙකු වන්න","Become a paid member of {publication} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි ගෙවීම් කරන ල​ද සාමාජිකයෙකු වන්න",Best:"",Cancel:"අවලංගු කරන්​න​",Comment:"අදහ​ස","Commenting disabled":"","Complete your profile":"ඔබගේ ගිණුම සම්පූර්ණ කරන්​න","Contact support":"",Delete:"Delete කරන්​න",Deleted:"","Deleted member":"සාමාජිකයාව delete කරන්​න",Deleting:"",Discussion:"සාකච්ඡා​ව",Edit:"සංස්කරණය කරන්න","Edit this comment":"අදහස සංස්කරණය කරන්න",edited:"සංස්කරණය කරන ලද.","Enter your name":"ඔබගේ නම සඳහන් කරන්​න",Expertise:"විශේෂඥතාව","for more information.":"","Founder @ Acme Inc":"Acme Inc හි නිර්මාතෘ","Full-time parent":"පූර්ණ කාලීන භාරකරුව​න්","Head of Marketing at Acme, Inc":"Acme, Inc හි අලෙවි ප්‍රධානී","Hidden for members":"",Hide:"සඟවන්න","Hide comment":"අදහස සඟවන්න","Jamie Larson":"ජේමි ලාර්සන්","Join the discussion":"සාකච්ඡාවට එක්වන්න","Just now":"මේ දැ​න්","Load more ({amount})":"","Local resident":"දේශීය පදිංචි","Member discussion":"සාමාජික සාකච්ඡාව",Name:"න​ම",Neurosurgeon:"ස්නායු ශ​ල්‍ය වෛ​ද්‍ය",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"පැයකට පෙ​ර","One min ago":"මිනිත්තුවකට පෙ​ර",removed:"","Replied to":"",Reply:"ප්‍රතිචාර දක්වන්​න","Reply to":"","Reply to comment":"අදහසට ‍රතිචාර දක්වන්​න",Report:"වාර්තා කරන්​න","Report comment":"අදහසට වාර්තා කරන්​න","Report this comment?":"මෙම අදහසට වාර්තා කරන්නෙහිද ?",Save:"සුරකින්​න",Sending:"යවමි​න්",Sent:"යැව්වා",Show:"පෙන්වන්​න","Show {amount} more replies":"තවත් පිළිතුරු {amount} පෙන්වන්න","Show 1 more reply":"තවත් පිළිතුරු 1ක් පෙන්වන්න","Show comment":"අදහස පෙන්වන්න","Sign in":"Sign in වෙන්​න","Sign up now":"දැන්ම Sign up වෙන්​න","Sort by":"","Start the conversation":"සංවාදය ආරම්භ කරන්න","The linked comment is no longer available.":"","This comment has been hidden.":"මෙම අදහස සඟවා ඇත.","This comment has been removed.":"මෙම අදහස ඉවත් කර ඇත.","Upgrade now":"දැන් upgrade කරන්න","View in admin":"",Yesterday:"ඊ​යෙ","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"ඔබගේ ඉල්ලීම මෙම අඩවියේ හිමිකරු වෙත යවනු ලැබේ."},xD={"{amount} characters left":"Zostáva {amount} znakov","{amount} comments":"{amount} komentárov","{amount} hrs ago":"Pred {amount} hodinami","{amount} mins ago":"Pred {amount} minútami","{amount} more":"{amount} ďalších","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ášho komentára, zdielajte svoje meno, a odbornosť pre podporu zdravej diskusie.","Add reply":"Pridať odpoveď","Add your expertise":"","Already a member?":"Už ste členom?",Anonymous:"Anonym","Are you sure?":"Ste si istý?","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ť",Best:"",Cancel:"Zrušiť",Comment:"Komentár","Commenting disabled":"","Complete your profile":"Dokončite váš profil","Contact support":"",Delete:"Vymazať",Deleted:"Vymazané","Deleted member":"Vymazaný člen",Deleting:"Vymazávam",Discussion:"Diskusia",Edit:"Upraviť","Edit this comment":"Upraviť komentár",edited:"upravený","Enter your name":"Zadajte vaše meno",Expertise:"Odbornosť","for more information.":"","Founder @ Acme Inc":"Zakladateľ @ Acme Inc","Full-time parent":"Rodič na plný úväzok","Head of Marketing at Acme, Inc":"Vedúci marketingu v spoločnosti Acme, Inc","Hidden for members":"Skryté pre členov",Hide:"Skryť","Hide comment":"Skryť komentár","Jamie Larson":"Jamie Larson","Join the discussion":"Zapojiť sa do diskusie","Just now":"Teraz","Load more ({amount})":"","Local resident":"Miestny obyvateľ","Member discussion":"Členská diskusia",Name:"Meno",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Po odstránení nebude možné tento komentár obnoviť.","One hour ago":"Pred hodinou","One min ago":"Pred minútou",removed:"odstránené","Replied to":"Odpoveď na",Reply:"Odpovedať","Reply to":"Odpovedať na","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 1 more reply":"Zobraziť 1 ďalšiu odpoveď","Show comment":"Zobraziť komentár","Sign in":"Prihlásiť","Sign up now":"Registrovať sa","Sort by":"Triediť podľa","Start the conversation":"Začať konverzáciu","The linked comment is no longer available.":"","This comment has been hidden.":"Tento komentár bol skrytý.","This comment has been removed.":"Tento komentár bol vymazaný.","Upgrade now":"Upraviť členstvo","View in admin":"",Yesterday:"Včera","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Vaša požiadavka bude odoslaná vlastníkovi stránky."},CD={"{amount} characters left":"Še {amount} znakov","{amount} comments":"{amount} komentarjev","{amount} hrs ago":"Pred {amount} urami","{amount} mins ago":"Pred {amount} minutami","{amount} more":"Še {amount}","1 comment":"1 komentar","Add comment":"Dodajte komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodajte kontekst svojemu komentarju, delite svoje ime in strokovno znanje za spodbujanje zdrave razprave.","Add reply":"Dodajte odgovor","Add your expertise":"","Already a member?":"Ste že član?",Anonymous:"Anonimno","Are you sure?":"Ste prepričani?","Become a member of {publication} to start commenting.":"Postanite član {publication}, da lahko začnete komentirati.","Become a paid member of {publication} to start commenting.":"Postanite plačljiv član {publication}, da lahko začnete komentirati.",Best:"",Cancel:"Prekliči",Comment:"Komentiraj","Commenting disabled":"","Complete your profile":"Dokončajte svoj profil","Contact support":"",Delete:"Izbriši",Deleted:"Izbrisano","Deleted member":"Izbrisan član",Deleting:"Brisanje",Discussion:"Razprava",Edit:"Uredi","Edit this comment":"Uredi ta komentar",edited:"urejeno","Enter your name":"Vnesite svoje ime",Expertise:"Strokovno znanje","for more information.":"","Founder @ Acme Inc":"Ustanovitelj pri Acme Inc","Full-time parent":"Starš s polnim delovnim časom","Head of Marketing at Acme, Inc":"Vodja marketinga pri Acme, Inc","Hidden for members":"Skrito za člane",Hide:"Skrij","Hide comment":"Skrij komentar","Jamie Larson":"Janez Novak","Join the discussion":"Pridružite se razpravi","Just now":"Pravkar","Load more ({amount})":"Naloži več ({amount})","Local resident":"Lokalni prebivalec","Member discussion":"Razprava članov",Name:"Ime",Neurosurgeon:"Nevrokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Ko je komentar izbrisan, ga ni mogoče več obnoviti.","One hour ago":"Pred eno uro","One min ago":"Pred eno minuto",removed:"odstranjeno","Replied to":"Odgovorjeno na",Reply:"Odgovori","Reply to":"Odgovori na","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Želite prijaviti ta komentar?",Save:"Shrani",Sending:"Pošiljanje",Sent:"Poslano",Show:"Prikaži","Show {amount} more replies":"Prikaži še {amount} odgovorov","Show 1 more reply":"Prikaži še 1 odgovor","Show comment":"Prikaži komentar","Sign in":"Prijavite se","Sign up now":"Registrirajte se zdaj","Sort by":"Razvrsti po","Start the conversation":"Začnite pogovor","The linked comment is no longer available.":"","This comment has been hidden.":"Ta komentar je bil skrit.","This comment has been removed.":"Ta komentar je bil odstranjen.","Upgrade now":"Nadgradite zdaj","View in admin":"",Yesterday:"Včeraj","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Vaša zahteva bo poslana lastniku te strani."},ED={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"","Contact support":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","for more information.":"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":""},ND={"{amount} characters left":"preostalo je {amount} karaktera","{amount} comments":"{amount} komentara","{amount} hrs ago":"pre {amount} sati","{amount} mins ago":"pre {amount} minuta","{amount} more":"još {amount}","1 comment":"1 komentar","Add comment":"Dodajte komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodajte kontekst svom komentaru, podelite svoje ime i ekspertizu kako biste podstakli zdravu diskusiju.","Add reply":"Dodajte odgovor","Add your expertise":"Dodajte ekspertizu","Already a member?":"Već ste član?",Anonymous:"Anonimno","Are you sure?":"Da li ste sigurni?","Become a member of {publication} to start commenting.":"Postanite član {publication} da biste počeli sa komentarisanjem.","Become a paid member of {publication} to start commenting.":"Postanite plaćeni član {publication} da biste počeli sa komentarisanjem.",Best:"Najbolje",Cancel:"Otkažite",Comment:"Komentar","Commenting disabled":"Komentarisanje onemogućeno","Complete your profile":"Popunite svoj profil","Contact support":"Kontaktirajte podršku",Delete:"Obrišite",Deleted:"Obrisano","Deleted member":"Obrisan član",Deleting:"Brisanje",Discussion:"Diskusija",Edit:"Uredite","Edit this comment":"Uredite ovaj komentar",edited:"uređeno","Enter your name":"Unesite svoje ime",Expertise:"Ekspertiza","for more information.":"za više informacija.","Founder @ Acme Inc":"Osnivač @ Acme Inc","Full-time parent":"Roditelj punim radnim vremenom","Head of Marketing at Acme, Inc":"Šef marketinga u Acme, Inc","Hidden for members":"Sakriveno za članove",Hide:"Sakrijte","Hide comment":"Sakrijte komentar","Jamie Larson":"Pera Perić","Join the discussion":"Pridružite se diskusiji","Just now":"Upravo sada","Load more ({amount})":"Učitajte još ({amount})","Local resident":"Lokalni stanovnik","Member discussion":"Diskusija članova",Name:"Ime",Neurosurgeon:"Neurohirurg",Newest:"Najnovije",Oldest:"Najstarije","Once deleted, this comment can’t be recovered.":"Kada se obriše, ovaj komentar ne može biti vraćen.","One hour ago":"Pre sat","One min ago":"Pre minut",removed:"uklonjeno","Replied to":"Odgovoreno korisniku",Reply:"Odgovorite","Reply to":"Odgovorite korisniku","Reply to comment":"Odgovorite na komentar",Report:"Prijavite","Report comment":"Prijavite komentar","Report this comment?":"Prijavite ovaj komentar?",Save:"Sačuvajte",Sending:"Slanje",Sent:"Poslato",Show:"Prikažite","Show {amount} more replies":"Prikažite još {amount} odgovora","Show 1 more reply":"Prikažite još 1 odgovor","Show comment":"Prikažite komentar","Sign in":"Prijavite se","Sign up now":"Registrujte se sada","Sort by":"Sortirajte po","Start the conversation":"Počnite razgovor","The linked comment is no longer available.":"","This comment has been hidden.":"Ovaj komentar je sakriven.","This comment has been removed.":"Ovaj komentar je uklonjen.","Upgrade now":"Nadogradite sada","View in admin":"Pogledajte u admin",Yesterday:"Juče","You can't post comments in this publication.":"Ne možete objavljivati komentare u ovoj publikaciji.","Your request will be sent to the owner of this site.":"Vaš zahtev će biti poslat vlasniku ovog sajta."},AD={"{amount} characters left":"преостало је {amount} карактера","{amount} comments":"{amount} коментара","{amount} hrs ago":"пре {amount} сати","{amount} mins ago":"пре {amount} минута","{amount} more":"још {amount}","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст свом коментару, поделите своје име и експертизу како бисте подстакли здраву дискусију.","Add reply":"Додајте одговор","Add your expertise":"Додајте експертизу","Already a member?":"Већ сте члан?",Anonymous:"Анонимно","Are you sure?":"Да ли сте сигурни?","Become a member of {publication} to start commenting.":"Постаните члан {publication} да бисте почели са коментарисањем.","Become a paid member of {publication} to start commenting.":"Постаните плаћени члан {publication} да бисте почели са коментарисањем.",Best:"Најбоље",Cancel:"Откажите",Comment:"Коментар","Commenting disabled":"Коментарисање онемогућено","Complete your profile":"Попуните свој профил","Contact support":"Контактирајте подршку",Delete:"Обришите",Deleted:"Обрисано","Deleted member":"Обрисан члан",Deleting:"Брисање",Discussion:"Дискусија",Edit:"Уредите","Edit this comment":"Уредите овај коментар",edited:"уређено","Enter your name":"Унесите своје име",Expertise:"Експертиза","for more information.":"за више информација.","Founder @ Acme Inc":"Оснивач @ Acme Inc","Full-time parent":"Родитељ пуним радним временом","Head of Marketing at Acme, Inc":"Шеф маркетинга у Acme, Inc","Hidden for members":"Сакривено за чланове",Hide:"Сакријте","Hide comment":"Сакријте коментар","Jamie Larson":"Пера Перић","Join the discussion":"Придружите се дискусији","Just now":"Управо сада","Load more ({amount})":"Учитајте још ({amount})","Local resident":"Локални становник","Member discussion":"Дискусија чланова",Name:"Име",Neurosurgeon:"Неурохирург",Newest:"Најновије",Oldest:"Најстарије","Once deleted, this comment can’t be recovered.":"Када се обрише, овај коментар не може бити враћен.","One hour ago":"Пре сат","One min ago":"Пре минут",removed:"уклоњено","Replied to":"Одговорено кориснику",Reply:"Одговорите","Reply to":"Одговорите кориснику","Reply to comment":"Одговорите на коментар",Report:"Пријавите","Report comment":"Пријавите коментар","Report this comment?":"Пријавите овај коментар?",Save:"Сачувајте",Sending:"Слање",Sent:"Послато",Show:"Прикажите","Show {amount} more replies":"Прикажите још {amount} одговора","Show 1 more reply":"Прикажите још 1 одговор","Show comment":"Прикажите коментар","Sign in":"Пријавите се","Sign up now":"Региструјте се сада","Sort by":"Сортирајте по","Start the conversation":"Почните разговор","The linked comment is no longer available.":"","This comment has been hidden.":"Овај коментар је сакривен.","This comment has been removed.":"Овај коментар је уклоњен.","Upgrade now":"Надоградите сада","View in admin":"Погледајте у админ",Yesterday:"Јуче","You can't post comments in this publication.":"Не можете објављивати коментаре у овој публикацији.","Your request will be sent to the owner of this site.":"Ваш захтев ће бити послат власнику овог сајта."},DD={"{amount} characters left":"{amount} tecken kvar","{amount} comments":"{amount} kommentarer","{amount} hrs ago":"{amount} timmar sedan","{amount} mins ago":"{amount} minuter sedan","{amount} more":"{amount} fler","1 comment":"1 kommentar","Add comment":"Lägg till kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lägg till kontext till din kommentar, som ditt namn, din expertis för att skapa ett bra forum.","Add reply":"Lägg till svar","Add your expertise":"Lägg till din expertis","Already a member?":"Redan medlem?",Anonymous:"Anonym","Are you sure?":"Är du säker?","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 ",Best:"Mest populär",Cancel:"Avbryt",Comment:"Kommentar","Commenting disabled":"","Complete your profile":"Fyll i hela din profil","Contact support":"",Delete:"Ta bort",Deleted:"Borttaget","Deleted member":"Borttagen medlem",Deleting:"Tar bort",Discussion:"Diskussion",Edit:"Ändra","Edit this comment":"Ändra den här kommentaren",edited:"Ändrad","Enter your name":"Skriv ditt namn",Expertise:"Expertis","for more information.":"","Founder @ Acme Inc":"Grundare av Företaget AB","Full-time parent":"Hemmaförälder","Head of Marketing at Acme, Inc":"Marknadsföringschef på Företaget AB","Hidden for members":"Dolt för medlemmar",Hide:"Dölj","Hide comment":"Dölj kommentar","Jamie Larson":"Anders Andersson","Join the discussion":"Var med i diskussionen","Just now":"Nu precis","Load more ({amount})":"Ladda in fler ({amount})","Local resident":"Lokalboende","Member discussion":"Medlemsdiskussion",Name:"Namn",Neurosurgeon:"Neurokirurg",Newest:"Nyast",Oldest:"Äldst","Once deleted, this comment can’t be recovered.":"Kommentaren kan ej återskapas efter borttagning","One hour ago":"En timme sedan","One min ago":"En minut sedan",removed:"borttagen","Replied to":"Svarade",Reply:"Svar","Reply to":"Svara","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 1 more reply":"Visa 1 kommentar till","Show comment":"Visa kommentar","Sign in":"Logga in","Sign up now":"Registrera dig nu","Sort by":"Sortera efter","Start the conversation":"Inled konversationen","The linked comment is no longer available.":"","This comment has been hidden.":"Denna kommentar har dolts","This comment has been removed.":"Denna kommentar är borttagen","Upgrade now":"Uppgradera nu","View in admin":"",Yesterday:"I går","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Din anmälan skickas till ansvarig för webbplatsen"},RD={"{amount} characters left":"{amount} herufi zimebaki","{amount} comments":"{amount} maoni","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"{amount} zaidi","1 comment":"maoni 1","Add comment":"Ongeza maoni","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Ongeza muktadha kwa maoni yako, shiriki jina lako na utaalamu ili kuendeleza mjadala wenye afya.","Add reply":"Ongeza jibu","Add your expertise":"","Already a member?":"Tayari ni mwanachama?",Anonymous:"Asiyetambulika","Are you sure?":"","Become a member of {publication} to start commenting.":"Jiunge kama mwanachama wa {publication} ili kuanza kutoa maoni.","Become a paid member of {publication} to start commenting.":"Jiunge kama mwanachama anayelipa wa {publication} ili kuanza kutoa maoni.",Best:"",Cancel:"Ghairi",Comment:"Maoni","Commenting disabled":"","Complete your profile":"Kamilisha wasifu wako","Contact support":"",Delete:"Futa",Deleted:"","Deleted member":"Mwanachama aliyefutwa",Deleting:"",Discussion:"Majadiliano",Edit:"Hariri","Edit this comment":"Hariri maoni haya",edited:"","Enter your name":"Weka jina lako",Expertise:"Utaalamu","for more information.":"","Founder @ Acme Inc":"Mwanzilishi @ Acme Inc","Full-time parent":"Mzazi wa muda wote","Head of Marketing at Acme, Inc":"Mkuu wa Masoko katika Acme, Inc","Hidden for members":"",Hide:"Ficha","Hide comment":"Ficha maoni","Jamie Larson":"Jamie Larson","Join the discussion":"Jiunge na mjadala","Just now":"Hivi sasa","Load more ({amount})":"","Local resident":"Mkazi wa eneo","Member discussion":"Mjadala wa wanachama",Name:"Jina",Neurosurgeon:"Daktari wa ubongo",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Saa moja iliyopita","One min ago":"",removed:"","Replied to":"",Reply:"Jibu","Reply to":"","Reply to comment":"Jibu maoni",Report:"Ripoti","Report comment":"Ripoti maoni","Report this comment?":"Unataka kuripoti maoni haya?",Save:"Hifadhi",Sending:"Inatuma",Sent:"Imetumwa",Show:"Onyesha","Show {amount} more replies":"Onyesha majibu {amount} zaidi","Show 1 more reply":"Onyesha jibu 1 zaidi","Show comment":"Onyesha maoni","Sign in":"Ingia","Sign up now":"Jisajili sasa","Sort by":"","Start the conversation":"Anzisha mazungumzo","The linked comment is no longer available.":"","This comment has been hidden.":"Maoni haya yamefichwa.","This comment has been removed.":"Maoni haya yameondolewa.","Upgrade now":"Boresha sasa","View in admin":"",Yesterday:"Jana","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Ombi lako litatumwa kwa mmiliki wa tovuti hii."},OD={"{amount} characters left":"{amount} எழுத்துக்கள் எஞ்சியுள்ளன","{amount} comments":"{amount} கருத்துக்கள்","{amount} hrs ago":"{amount} மணி நேரத்திற்கு முன்பு","{amount} mins ago":"{amount} நிமிடங்களுக்கு முன்பு","{amount} more":"{amount} மேலும்","1 comment":"1 கருத்து","Add comment":"கருத்தைச் சேர்க்கவும்","Add context to your comment, share your name and expertise to foster a healthy discussion.":"உங்கள் கருத்துக்கு சூழலைச் சேர்க்கவும், ஆரோக்கியமான விவாதத்தை வளர்க்க உங்கள் பெயரையும் நிபுணத்துவத்தையும் பகிர்ந்து கொள்ளுங்கள்.","Add reply":"பதில் சேர்க்கவும்","Add your expertise":"","Already a member?":"ஏற்கனவே உறுப்பினரா?",Anonymous:"அடையாளம் தெரியாத","Are you sure?":"","Become a member of {publication} to start commenting.":"கருத்துத் தெரிவிக்க {publication} இல் உறுப்பினராகுங்கள்.","Become a paid member of {publication} to start commenting.":"கருத்துத் தெரிவிக்க {publication} இல் கட்டண உறுப்பினராகுங்கள்.",Best:"",Cancel:"ரத்து செய்",Comment:"கருத்து","Commenting disabled":"","Complete your profile":"உங்கள் சுயவிவரத்தை பூர்த்தி செய்யவும்","Contact support":"",Delete:"நீக்கவும்",Deleted:"","Deleted member":"நீக்கப்பட்ட உறுப்பினர்",Deleting:"",Discussion:"கலந்துரையாடல்",Edit:"திருத்தவும்","Edit this comment":"இந்தக் கருத்தைத் திருத்தவும்",edited:"திருத்தப்பட்டது","Enter your name":"உங்கள் பெயரை உள்ளிடுக",Expertise:"நிபுணத்துவம்","for more information.":"","Founder @ Acme Inc":"நிறுவனர் @ Acme Inc","Full-time parent":"முழுநேர பெற்றோர்","Head of Marketing at Acme, Inc":"Acme Inc நிறுவனத்தின் சந்தைப்படுத்தல் தலைவர்","Hidden for members":"",Hide:"மறைக்கவும்","Hide comment":"கருத்தை மறை","Jamie Larson":"ஜேமி லார்சன்","Join the discussion":"கலந்துரையாடலில் சேரவும்","Just now":"சற்றுமுன்னர்தான்","Load more ({amount})":"","Local resident":"உள்ளூர்வாசி","Member discussion":"உறுப்பினர் கருத்து",Name:"பெயர்",Neurosurgeon:"நரம்பியல் அறுவை சிகிச்சை நிபுணர்",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"ஒரு மணி முன்பு","One min ago":"ஒரு நிமிடம் முன்பு",removed:"","Replied to":"",Reply:"பதிலளிக்கவும்","Reply to":"","Reply to comment":"கருத்துக்கு பதிலளிக்கவும்",Report:"புகாரளி","Report comment":"கருத்தைப் புகாரளி","Report this comment?":"இந்தக் கருத்தைப் புகாரளிக்கவா?",Save:"சேமிக்க",Sending:"அனுப்புகிறது",Sent:"அனுப்பப்பட்டது",Show:"காட்டு","Show {amount} more replies":"முந்தைய {amount} மேலும் பதில்கள்க் காட்டு","Show 1 more reply":"மேலும் 1 பதிலைக் காட்டு","Show comment":"கருத்தைக் காட்டு","Sign in":"உள்நுழைக","Sign up now":"இப்பொழுதே பதிவு செய்யுங்கள்","Sort by":"","Start the conversation":"உரையாடலைத் தொடங்குங்கள்","The linked comment is no longer available.":"","This comment has been hidden.":"இந்தக் கருத்து மறைக்கப்பட்டது.","This comment has been removed.":"இந்தக் கருத்து நீக்கப்பட்டது.","Upgrade now":"இப்போதே மேம்படுத்தவும்","View in admin":"",Yesterday:"நேற்று","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"உங்கள் கோரிக்கை இந்த தளத்தின் உரிமையாளருக்கு அனுப்பப்படும்."},TD={"{amount} characters left":"คงเหลือ {amount} ตัวอักษร","{amount} comments":"{amount} ความคิดเห็น","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"อีก {amount}","1 comment":"1 ความคิดเห็น","Add comment":"แสดงความคิดเห็น","Add context to your comment, share your name and expertise to foster a healthy discussion.":"เพิ่มข้อมูลเสริมในความคิดเห็นของคุณ แชร์ชื่อและความเชี่ยวชาญเพื่อสนับสนุนการพูดคุยที่ดี","Add reply":"ตอบกลับ","Add your expertise":"","Already a member?":"เป็นสมาชิกอยู่แล้ว?",Anonymous:"ไม่ระบุชื่อ","Are you sure?":"","Become a member of {publication} to start commenting.":"เป็นสมาชิกของ {publication} เพื่อเริ่มแสดงความคิดเห็น","Become a paid member of {publication} to start commenting.":"เป็นสมาชิกแบบชำระเงินของ {publication} เพื่อเริ่มแสดงความคิดเห็น",Best:"",Cancel:"ยกเลิก",Comment:"ความคิดเห็น","Commenting disabled":"","Complete your profile":"กรอกโปรไฟล์ของคุณให้สมบูรณ์","Contact support":"",Delete:"ลบ",Deleted:"","Deleted member":"ผู้ใช้ที่ถูกลบ",Deleting:"",Discussion:"การสนทนา",Edit:"แก้ไข","Edit this comment":"แก้ไขความคิดเห็นนี้",edited:"","Enter your name":"ระบุชื่อของคุณ",Expertise:"ความเชี่ยวชาญ","for more information.":"","Founder @ Acme Inc":"ผู้ก่อตั้ง @ Acme Inc","Full-time parent":"ผู้ปกครองเต็มเวลา","Head of Marketing at Acme, Inc":"หัวหน้าฝ่ายการตลาด ณ Acme, Inc","Hidden for members":"",Hide:"ซ่อน","Hide comment":"ซ่อนข้อความ","Jamie Larson":"กนกพัฒน์ สัณห์ฤทัย","Join the discussion":"เข้าร่วมการสนทนา","Just now":"ตอนนี้","Load more ({amount})":"","Local resident":"ผู้อยู่อาศัยในท้องถิ่น","Member discussion":"การสนทนาของสมาชิก",Name:"ชื่อ",Neurosurgeon:"ศัลยแพทย์ระบบประสาท",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"1 ชั่วโมงที่แล้ว","One min ago":"",removed:"","Replied to":"",Reply:"ตอบกลับ","Reply to":"","Reply to comment":"ตอบกลับความคิดเห็น",Report:"รายงาน","Report comment":"รายงานความคิดเห็น","Report this comment?":"รายงานความคิดเห็นนี้?",Save:"บันทึก",Sending:"กำลังส่ง",Sent:"ส่งแล้ว",Show:"แสดง","Show {amount} more replies":"แสดง {amount} การตอบกลับเพิ่มเติม","Show 1 more reply":"แสดงอีก 1 การตอบกลับ","Show comment":"ดูความคิดเห็น","Sign in":"ลงชื่อเข้าใช้","Sign up now":"สมัครใช้งานตอนนี้เลย","Sort by":"","Start the conversation":"เริ่มการสนทนา","The linked comment is no longer available.":"","This comment has been hidden.":"ความคิดเห็นนี้ถูกซ่อน","This comment has been removed.":"ความคิดเห็นนี้ถูกลบ","Upgrade now":"อัพเกรดตอนนี้เลย","View in admin":"",Yesterday:"เมื่อวาน","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"คำขอของคุณจะถูกส่งไปยังผู้ดูแลเว็บไซต์"},MD={"{amount} characters left":"{amount} karakter kaldı","{amount} comments":"{amount} yorum","{amount} hrs ago":"{amount} saat önce","{amount} mins ago":"{amount} dakika önce","{amount} more":"Daha fazla {amount}","1 comment":"1 yorum","Add comment":"Yorum ekle","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Yorumunuza bağlam ekleyin, adınızı ve uzmanlık alanınızı paylaşarak sağlıklı bir tartışmayı teşvik edin.","Add reply":"Yanıt ekle","Add your expertise":"Uzmanlığınızı ekleyin","Already a member?":"Zaten üye misiniz?",Anonymous:"Anonim","Are you sure?":"Emin misin?","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.",Best:"En iyi",Cancel:"İptal et",Comment:"Yorum ekle","Commenting disabled":"","Complete your profile":"Profilinizi tamamlayın","Contact support":"",Delete:"Sil",Deleted:"Silindi","Deleted member":"Silinen üye",Deleting:"Siliniyor",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","for more information.":"","Founder @ Acme Inc":"Kurucu @ Firma Ünvan","Full-time parent":"Tam zamanlı ebeveyn","Head of Marketing at Acme, Inc":"Firma, Ünvan'da Pazarlama Müdürü","Hidden for members":"Üyeler için gizli",Hide:"Gizle","Hide comment":"Yorumu gizle","Jamie Larson":"Ahmet Yılmaz","Join the discussion":"Tartışmaya katıl","Just now":"Şu anda","Load more ({amount})":"Daha fazla yükle ({amount})","Local resident":"Yerel sakini","Member discussion":"Üye tartışması",Name:"Ad",Neurosurgeon:"Beyin cerrahı",Newest:"En yeni",Oldest:"En eski","Once deleted, this comment can’t be recovered.":"Bu yorum silindikten sonra kurtarılamaz.","One hour ago":"Bir saat önce","One min ago":"Bir dakika önce",removed:"kaldırıldı","Replied to":"Cevaplandı",Reply:"Cevapla","Reply to":"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 1 more reply":"1 cevap daha göster","Show comment":"Yorumu göster","Sign in":"Giriş yap","Sign up now":"Şimdi kayıt ol","Sort by":"Sırala","Start the conversation":"Bu konu hakkında düşüncelerini paylaş","The linked comment is no longer available.":"","This comment has been hidden.":"Bu yorum gizlendi.","This comment has been removed.":"Bu yorum kaldırıldı.","Upgrade now":"Şimdi yükselt","View in admin":"",Yesterday:"Dün","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Talebiniz bu sitenin sahibine gönderilecektir."},jD={"{amount} characters left":"{amount} символів залишилось","{amount} comments":"{amount} коментарів","{amount} hrs ago":"{amount} годин тому","{amount} mins ago":"{amount} хвилин тому","{amount} more":"ще {amount}","1 comment":"1 коментар","Add comment":"Додати коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додайте контекст до свого коментаря, поділіться своїм іменем і досвідом, щоб сприяти здоровій дискусії.","Add reply":"Додати відповідь","Add your expertise":"","Already a member?":"Ви є учасником?",Anonymous:"Анонім","Are you sure?":"","Become a member of {publication} to start commenting.":"Станьте учасником {publication} щоб почати коментувати.","Become a paid member of {publication} to start commenting.":"Станьте платним учасником {publication} щоб почати коментувати.",Best:"",Cancel:"Відмінити",Comment:"Коментувати","Commenting disabled":"","Complete your profile":"Заповніть свій профіль","Contact support":"",Delete:"Видалити",Deleted:"","Deleted member":"Видалений учасник",Deleting:"",Discussion:"Обговорення",Edit:"Редагувати","Edit this comment":"Редагувати цей коментар",edited:"Відредагований","Enter your name":"Введіть своє імʼя",Expertise:"Експертність","for more information.":"","Founder @ Acme Inc":"Засновник @ Acme Inc","Full-time parent":"Виховую дітей","Head of Marketing at Acme, Inc":"Голова продажів в Acme, Inc","Hidden for members":"",Hide:"Сховати","Hide comment":"Сховати коментар","Jamie Larson":"Ваше імʼя","Join the discussion":"Долучитися до обговорення","Just now":"Прямо зараз","Load more ({amount})":"","Local resident":"Місцевий експерт","Member discussion":"Обговорення учасників",Name:"Імʼя",Neurosurgeon:"Нейрохірург",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Одну годину тому","One min ago":"Одну хвилину тому",removed:"","Replied to":"",Reply:"Відповісти","Reply to":"","Reply to comment":"Відповісти на коментар",Report:"Поскаржитися","Report comment":"Поскаржитися на коментар","Report this comment?":"Поскаржитися на цей коментар?",Save:"Зберегти",Sending:"Відправка",Sent:"Відправлено",Show:"Показати","Show {amount} more replies":"Показати ще {amount} відповідей","Show 1 more reply":"Показати ще одну відповідь","Show comment":"Показати коментар","Sign in":"Увійти","Sign up now":"Зареєструватись зараз","Sort by":"","Start the conversation":"Почніть розмову","The linked comment is no longer available.":"","This comment has been hidden.":"Цей коментар було приховано.","This comment has been removed.":"Цей коментар було видалено.","Upgrade now":"Оновити зараз","View in admin":"",Yesterday:"Вчора","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"Ваш запит буде надіслано власнику цього сайту."},PD={"{amount} characters left":"{amount} حروف باقی ہیں","{amount} comments":"{amount} تبادلے","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"1 تبادلہ","Add comment":"تبادلہ شامل کریں","Add context to your comment, share your name and expertise to foster a healthy discussion.":"اپنے تبادلے میں سیاق و سباق شامل کریں، اچھی گفتگو کو بڑھانے کے لئے اپنا نام اور ماہریت شیئر کریں۔","Add reply":"جواب شامل کریں","Add your expertise":"","Already a member?":"پہلے ہی رکن ہیں؟",Anonymous:"ناشناس","Are you sure?":"","Become a member of {publication} to start commenting.":"تبادلہ شروع کرنے کے لئے {publication} کا رکن بنیں۔","Become a paid member of {publication} to start commenting.":"تبادلہ شروع کرنے کے لئے {publication} کا ادائیگی رکن بنیں۔",Best:"",Cancel:"منسوخ کریں",Comment:"تبادلہ","Commenting disabled":"","Complete your profile":"اپنا پروفائل مکمل کریں","Contact support":"",Delete:"حذف کریں",Deleted:"","Deleted member":"حذف شدہ رکن",Deleting:"",Discussion:"تبادلہ",Edit:"ترتیب دیں","Edit this comment":"اس تبادلے کو ترتیب دیں",edited:"","Enter your name":"اپنا نام درج کریں",Expertise:"اہلیت","for more information.":"","Founder @ Acme Inc":"ناظم @ Acme Inc","Full-time parent":"پورے وقت کا والد یا والدہ","Head of Marketing at Acme, Inc":"Acme، Inc کے مارکیٹنگ کا سربراہ","Hidden for members":"",Hide:"چھپائیں","Hide comment":"تبادلہ چھپائیں","Jamie Larson":"جیمی لارسن","Join the discussion":"تبادلے میں شامل ہوں","Just now":"ابھی","Load more ({amount})":"","Local resident":"مقامی رہائشی","Member discussion":"رکن کا تبادلہ",Name:"نام",Neurosurgeon:"نیوروسرجن",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"ایک گھنٹہ پہلے","One min ago":"",removed:"","Replied to":"",Reply:"جواب","Reply to":"","Reply to comment":"تبادلے کا جواب دیں",Report:"رپورٹ","Report comment":"تبادلے کی رپورٹ","Report this comment?":"کیا آپ اس تبادلے کو رپورٹ کرنا چاہتے ہیں؟",Save:"محفوظ کریں",Sending:"بھیج رہا ہے",Sent:"بھیجا گیا",Show:"دکھائیں","Show {amount} more replies":"{amount} مزید جوابات دکھائیں","Show 1 more reply":"1 مزید جواب دکھائیں","Show comment":"تبادلہ دکھائیں","Sign in":"سائن ان کریں","Sign up now":"ابھی رجسٹر ہوں","Sort by":"","Start the conversation":"بات چیت شروع کریں","The linked comment is no longer available.":"","This comment has been hidden.":"یہ تبادلہ چھپا گیا ہے۔","This comment has been removed.":"یہ تبادلہ ہٹا دیا گیا ہے۔","Upgrade now":"اب اپ گریڈ کریں","View in admin":"",Yesterday:"کل","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"آپ کا درخواست اس سائٹ کے مالک کو بھیجا جائے گا۔"},ID={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"","Contact support":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","for more information.":"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":""},LD={"{amount} characters left":"{amount} ký tự còn lại","{amount} comments":"{amount} bình luận","{amount} hrs ago":"{amount} giờ trước","{amount} mins ago":"{amount} phút trước","{amount} more":"{amount} nữa","1 comment":"1 bình luận","Add comment":"Thêm bình luận","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Thêm ngữ cảnh, tên và chuyên môn của bạn để thúc đẩy cuộc thảo luận lành mạnh.","Add reply":"Trả lời","Add your expertise":"Thêm chuyên môn của bạn","Already a member?":"Đã là thành viên?",Anonymous:"Ẩn danh","Are you sure?":"Bạn có chắc không?","Become a member of {publication} to start commenting.":"Trở thành thành viên của {publication} để có thể bình luận.","Become a paid member of {publication} to start commenting.":"Trở thành thành viên trả phí của {publication} để có thể bình luận.",Best:"Hay nhất",Cancel:"Hủy",Comment:"Bình luận","Commenting disabled":"","Complete your profile":"Hoàn tất hồ sơ của bạn","Contact support":"",Delete:"Xóa",Deleted:"Đã xóa","Deleted member":"Thành viên đã xóa",Deleting:"Đang 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","for more information.":"","Founder @ Acme Inc":"Nhà sáng lập @ Acme Inc","Full-time parent":"Phụ huynh toàn thời gian","Head of Marketing at Acme, Inc":"Trưởng phòng Marketing tại Acme, Inc","Hidden for members":"Ẩn với thành viên",Hide:"Ẩn","Hide comment":"Ẩn bình luận","Jamie Larson":"Nguyễn Minh Châu","Join the discussion":"Tham gia thảo luận","Just now":"Vừa xong","Load more ({amount})":"Hiện thêm ({amount})","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",Newest:"Mới nhất",Oldest:"Cũ nhất","Once deleted, this comment can’t be recovered.":"Một khi đã xóa, bình luận này không thể khôi phục.","One hour ago":"Một giờ trước","One min ago":"Một phút trước",removed:"đã xóa","Replied to":"Đã trả lời",Reply:"Trả lời","Reply to":"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 thêm {amount} trả lời khác","Show 1 more reply":"Xem thêm 1 trả lời","Show comment":"Xem bình luận","Sign in":"Đăng nhập","Sign up now":"Đăng ký ngay","Sort by":"Xếp theo","Start the conversation":"Bắt đầu cuộc trò chuyện","The linked comment is no longer available.":"","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","View in admin":"",Yesterday:"Hôm qua","You can't post comments in this publication.":"","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."},zD={"{amount} characters left":"还剩{amount}字","{amount} comments":"{amount}条评论","{amount} hrs ago":"{amount}小时前","{amount} mins ago":"{amount}分钟前","{amount} more":"还剩{amount}条评论","1 comment":"一条评论","Add comment":"添加评论","Add context to your comment, share your name and expertise to foster a healthy discussion.":"为评论补充更多的上下文信息、例如您的姓名与专业背景有助于营造健康的讨论氛围。","Add reply":"回复","Add your expertise":"添加您的专业背景","Already a member?":"已经是会员?",Anonymous:"匿名","Are you sure?":"确认?","Become a member of {publication} to start commenting.":"成为{publication}的会员以开始评论。","Become a paid member of {publication} to start commenting.":"成为{publication}的付费会员以开始评论。",Best:"最多赞",Cancel:"取消",Comment:"评论","Commenting disabled":"","Complete your profile":"完善您的个人资料","Contact support":"",Delete:"删除",Deleted:"已删除","Deleted member":"删除会员",Deleting:"删除中",Discussion:"讨论",Edit:"编辑","Edit this comment":"编辑此条评论",edited:"已编辑","Enter your name":"输入您的名字",Expertise:"专业背景","for more information.":"","Founder @ Acme Inc":"Acme Inc的创建者","Full-time parent":"全职父母","Head of Marketing at Acme, Inc":"Acme, Inc市场部负责人","Hidden for members":"对会员隐藏",Hide:"隐藏","Hide comment":"隐藏评论","Jamie Larson":"阿宇","Join the discussion":"加入讨论","Just now":"刚刚","Load more ({amount})":"加载更多({amount})条","Local resident":"本地居民","Member discussion":"会员讨论",Name:"名字",Neurosurgeon:"神经外科医生",Newest:"最新",Oldest:"最早","Once deleted, this comment can’t be recovered.":"此评论一经删除后将无法复原。","One hour ago":"一小时前","One min ago":"一分钟前",removed:"已移除","Replied to":"已回复",Reply:"回复","Reply to":"回复","Reply to comment":"回复评论",Report:"举报","Report comment":"举报评论","Report this comment?":"举报此评论?",Save:"保存",Sending:"正在发送",Sent:"已发送",Show:"显示","Show {amount} more replies":"显示更多{amount}条评论","Show 1 more reply":"显示下一条评论","Show comment":"显示评论","Sign in":"登录","Sign up now":"立刻注册","Sort by":"排序方式","Start the conversation":"开始对话","The linked comment is no longer available.":"","This comment has been hidden.":"该条评论已被隐藏。","This comment has been removed.":"该条评论已被移除。","Upgrade now":"立刻升级","View in admin":"",Yesterday:"昨天","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"您的请求将被发送给站点所有者。"},BD={"{amount} characters left":"還剩{amount}個字","{amount} comments":"{amount}則留言","{amount} hrs ago":"{amount}小時前","{amount} mins ago":"{amount}分鐘前","{amount} more":"還剩{amount}則留言","1 comment":"一則留言","Add comment":"留言","Add context to your comment, share your name and expertise to foster a healthy discussion.":"為您的留言補充背景,說明您的稱呼與專業背景都有助於健康的討論氛圍。","Add reply":"回覆","Add your expertise":"新增您的專業背景","Already a member?":"已經是會員?",Anonymous:"匿名","Are you sure?":"您確定嗎?","Become a member of {publication} to start commenting.":"成為{publication}的會員以開始留言。","Become a paid member of {publication} to start commenting.":"成為{publication}的付費會員以開始留言。",Best:"最多讚",Cancel:"取消",Comment:"留言","Commenting disabled":"","Complete your profile":"完成您的註冊資訊","Contact support":"",Delete:"刪除",Deleted:"已刪除","Deleted member":"刪除會員",Deleting:"刪除中",Discussion:"討論",Edit:"編輯","Edit this comment":"編輯此則留言",edited:"已編輯","Enter your name":"輸入您的稱呼",Expertise:"專業背景","for more information.":"","Founder @ Acme Inc":"Acme Inc的創辦人","Full-time parent":"全職父母","Head of Marketing at Acme, Inc":"Acme, Inc市場部負責人","Hidden for members":"對會員隱藏",Hide:"隱藏","Hide comment":"隱藏留言","Jamie Larson":"阿宇","Join the discussion":"加入討論","Just now":"剛剛","Load more ({amount})":"載入更多({amount})","Local resident":"本地居民","Member discussion":"會員討論",Name:"稱呼",Neurosurgeon:"神經外科醫生",Newest:"最新",Oldest:"最早","Once deleted, this comment can’t be recovered.":"此留言一經刪除後將無法復原。","One hour ago":"一小時前","One min ago":"一分鐘前",removed:"已移除","Replied to":"已回覆",Reply:"回覆","Reply to":"回覆","Reply to comment":"回覆留言",Report:"檢舉","Report comment":"檢舉留言","Report this comment?":"檢舉此留言?",Save:"儲存",Sending:"正在發送",Sent:"已發送",Show:"顯示","Show {amount} more replies":"顯示後續 {amount} 則留言","Show 1 more reply":"顯示下一則留言","Show comment":"顯示留言","Sign in":"登入","Sign up now":"立即註冊","Sort by":"排序方式","Start the conversation":"開始對話","The linked comment is no longer available.":"","This comment has been hidden.":"該則留言已被隱藏。","This comment has been removed.":"該則留言已被移除。","Upgrade now":"立即升級","View in admin":"",Yesterday:"昨天","You can't post comments in this publication.":"","Your request will be sent to the owner of this site.":"您的請求將被發送給網站所有者。"};var rw;function iw(){return rw||(rw={"/ghost/i18n/locales/af/comments.json":function(){return TA},"/ghost/i18n/locales/ar/comments.json":function(){return MA},"/ghost/i18n/locales/bg/comments.json":function(){return jA},"/ghost/i18n/locales/bn/comments.json":function(){return PA},"/ghost/i18n/locales/bs/comments.json":function(){return IA},"/ghost/i18n/locales/ca/comments.json":function(){return LA},"/ghost/i18n/locales/cs/comments.json":function(){return zA},"/ghost/i18n/locales/da/comments.json":function(){return BA},"/ghost/i18n/locales/de/comments.json":function(){return FA},"/ghost/i18n/locales/de-CH/comments.json":function(){return HA},"/ghost/i18n/locales/el/comments.json":function(){return VA},"/ghost/i18n/locales/en/comments.json":function(){return UA},"/ghost/i18n/locales/eo/comments.json":function(){return _A},"/ghost/i18n/locales/es/comments.json":function(){return YA},"/ghost/i18n/locales/et/comments.json":function(){return JA},"/ghost/i18n/locales/eu/comments.json":function(){return KA},"/ghost/i18n/locales/fa/comments.json":function(){return WA},"/ghost/i18n/locales/fi/comments.json":function(){return qA},"/ghost/i18n/locales/fr/comments.json":function(){return GA},"/ghost/i18n/locales/gd/comments.json":function(){return QA},"/ghost/i18n/locales/he/comments.json":function(){return ZA},"/ghost/i18n/locales/hi/comments.json":function(){return XA},"/ghost/i18n/locales/hr/comments.json":function(){return eD},"/ghost/i18n/locales/hu/comments.json":function(){return tD},"/ghost/i18n/locales/id/comments.json":function(){return nD},"/ghost/i18n/locales/is/comments.json":function(){return oD},"/ghost/i18n/locales/it/comments.json":function(){return rD},"/ghost/i18n/locales/ja/comments.json":function(){return iD},"/ghost/i18n/locales/ko/comments.json":function(){return sD},"/ghost/i18n/locales/kz/comments.json":function(){return aD},"/ghost/i18n/locales/lt/comments.json":function(){return lD},"/ghost/i18n/locales/lv/comments.json":function(){return cD},"/ghost/i18n/locales/mk/comments.json":function(){return uD},"/ghost/i18n/locales/mn/comments.json":function(){return dD},"/ghost/i18n/locales/ms/comments.json":function(){return mD},"/ghost/i18n/locales/nb/comments.json":function(){return fD},"/ghost/i18n/locales/ne/comments.json":function(){return pD},"/ghost/i18n/locales/nl/comments.json":function(){return hD},"/ghost/i18n/locales/nn/comments.json":function(){return gD},"/ghost/i18n/locales/pa/comments.json":function(){return yD},"/ghost/i18n/locales/pl/comments.json":function(){return bD},"/ghost/i18n/locales/pt/comments.json":function(){return wD},"/ghost/i18n/locales/pt-BR/comments.json":function(){return vD},"/ghost/i18n/locales/ro/comments.json":function(){return $D},"/ghost/i18n/locales/ru/comments.json":function(){return SD},"/ghost/i18n/locales/si/comments.json":function(){return kD},"/ghost/i18n/locales/sk/comments.json":function(){return xD},"/ghost/i18n/locales/sl/comments.json":function(){return CD},"/ghost/i18n/locales/sq/comments.json":function(){return ED},"/ghost/i18n/locales/sr/comments.json":function(){return ND},"/ghost/i18n/locales/sr-Cyrl/comments.json":function(){return AD},"/ghost/i18n/locales/sv/comments.json":function(){return DD},"/ghost/i18n/locales/sw/comments.json":function(){return RD},"/ghost/i18n/locales/ta/comments.json":function(){return OD},"/ghost/i18n/locales/th/comments.json":function(){return TD},"/ghost/i18n/locales/tr/comments.json":function(){return MD},"/ghost/i18n/locales/uk/comments.json":function(){return jD},"/ghost/i18n/locales/ur/comments.json":function(){return PD},"/ghost/i18n/locales/uz/comments.json":function(){return ID},"/ghost/i18n/locales/vi/comments.json":function(){return LD},"/ghost/i18n/locales/zh/comments.json":function(){return zD},"/ghost/i18n/locales/zh-Hant/comments.json":function(){return BD}})}function vo(t){function e(n){var o=sw(n,t);if(o!==null)return iw()[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=sw(n,t);return o!==null?o:require.resolve(n)},e}function sw(t,e){var n=FD(t);t=Pl(t);var o;t[0]==="/"&&(e="");for(var r=iw(),i=["",".js",".json"];n?o=Pl(e+"/node_modules/"+t):o=Pl(e+"/"+t),!o.endsWith("/..");){for(var s=0;s<i.length;s++){var a=o+i[s];if(r[a])return a}if(!n)break;var l=Pl(e+"/..");if(l===e)break;e=l}return null}function FD(t){var e=t[0];if(e==="/"||e==="\\")return!1;var n=t[1],o=t[2];return!(e==="."&&(!n||n==="/"||n==="\\")||e==="."&&n==="."&&(!o||o==="/"||o==="\\")||n===":"&&(o==="/"||o==="\\"))}function Pl(t){t=t.replace(/\\/g,"/");for(var e=t.split("/"),n=e[0]==="",o=1;o<e.length;o++)(e[o]==="."||e[o]==="")&&e.splice(o--,1);for(var o=1;o<e.length;o++)e[o]===".."&&o>0&&e[o-1]!==".."&&e[o-1]!=="."&&(e.splice(--o,2),o--);return t=e.join("/"),n&&t[0]!=="/"?t="/"+t:t.length===0&&(t="."),t}var Qi={exports:{}};const _=t=>typeof t=="string",Zi=()=>{let t,e;const n=new Promise((o,r)=>{t=o,e=r});return n.resolve=t,n.reject=e,n},aw=t=>t==null?"":""+t,HD=(t,e,n)=>{t.forEach(o=>{e[o]&&(n[o]=e[o])})},VD=/###/g,lw=t=>t&&t.indexOf("###")>-1?t.replace(VD,"."):t,cw=t=>!t||_(t),Xi=(t,e,n)=>{const o=_(e)?e.split("."):e;let r=0;for(;r<o.length-1;){if(cw(t))return{};const i=lw(o[r]);!t[i]&&n&&(t[i]=new n),Object.prototype.hasOwnProperty.call(t,i)?t=t[i]:t={},++r}return cw(t)?{}:{obj:t,k:lw(o[r])}},uw=(t,e,n)=>{const{obj:o,k:r}=Xi(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=Xi(t,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=Xi(t,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},UD=(t,e,n,o)=>{const{obj:r,k:i}=Xi(t,e,Object);r[i]=r[i]||[],r[i].push(n)},Il=(t,e)=>{const{obj:n,k:o}=Xi(t,e);if(n)return n[o]},_D=(t,e,n)=>{const o=Il(t,n);return o!==void 0?o:Il(e,n)},dw=(t,e,n)=>{for(const o in e)o!=="__proto__"&&o!=="constructor"&&(o in t?_(t[o])||t[o]instanceof String||_(e[o])||e[o]instanceof String?n&&(t[o]=e[o]):dw(t[o],e[o],n):t[o]=e[o]);return t},yr=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var YD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const JD=t=>_(t)?t.replace(/[&<>"'\/]/g,e=>YD[e]):t;class KD{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 WD=[" ",",","?","!",";"],qD=new KD(20),GD=(t,e,n)=>{e=e||"",n=n||"";const o=WD.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(o.length===0)return!0;const r=qD.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},Hm=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},Ll=t=>t&&t.replace("_","-"),QD={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 zl{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||QD,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:(_(e[0])&&(e[0]=`${o}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new zl(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new zl(this.logger,e)}}var It=new zl;class Bl{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const r=this.observers[o].get(n)||0;this.observers[o].set(n,r+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a.apply(a,[e,...o])})}}class mw extends Bl{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):_(o)&&i?a.push(...o.split(i)):a.push(o)));const l=Il(this.data,a);return!l&&!n&&!o&&e.indexOf(".")>-1&&(e=a[0],n=a[1],o=a.slice(2).join(".")),l||!s||!_(o)?l:Hm(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),uw(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)(_(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=Il(this.data,a)||{};s.skipCopy||(o=JSON.parse(JSON.stringify(o))),r?dw(l,o,i):l={...l,...o},uw(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 fw={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 pw={};class Fl extends Bl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),HD(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=It.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&&!GD(e,o,r);if(s&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:_(i)?[i]:i};const c=e.split(o);(o!==r||o===r&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),e=c.join(r)}return{key:e,namespaces:_(i)?[i]:i}}translate(e,n,o){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(e[e.length-1],n),l=a[a.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const $=n.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${$}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${$}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,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,g=Object.prototype.toString.apply(m),h=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!_(m)&&typeof m!="boolean"&&typeof m!="number";if(w&&m&&v&&h.indexOf(g)<0&&!(_(y)&&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 $=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=$,d.usedParams=this.getUsedParamsDetails(n),d):$}if(i){const $=Array.isArray(m),x=$?[]:{},S=$?p:f;for(const C in m)if(Object.prototype.hasOwnProperty.call(m,C)){const D=`${S}${i}${C}`;x[C]=this.translate(D,{...n,joinArrays:!1,ns:a}),x[C]===D&&(x[C]=m[C])}m=x}}else if(w&&_(y)&&Array.isArray(m))m=m.join(y),m&&(m=this.extendTranslation(m,e,n,o));else{let $=!1,x=!1;const S=n.count!==void 0&&!_(n.count),C=Fl.hasDefaultValue(n),D=S?this.pluralResolver.getSuffix(c,n.count,n):"",N=n.ordinal&&S?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",F=S&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),ne=F&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${D}`]||n[`defaultValue${N}`]||n.defaultValue;!this.isValidLookup(m)&&C&&($=!0,m=ne),this.isValidLookup(m)||(x=!0,m=s);const oe=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:m,ge=C&&ne!==m&&this.options.updateMissing;if(x||$||ge){if(this.logger.log(ge?"updateKey":"missingKey",c,l,s,ge?ne:m),i){const A=this.resolve(s,{...n,keySeparator:!1});A&&A.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 ue=[];const de=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&de&&de[0])for(let A=0;A<de.length;A++)ue.push(de[A]);else this.options.saveMissingTo==="all"?ue=this.languageUtils.toResolveHierarchy(n.lng||this.language):ue.push(n.lng||this.language);const E=(A,j,W)=>{const O=C&&W!==m?W:oe;this.options.missingKeyHandler?this.options.missingKeyHandler(A,l,j,O,ge,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(A,l,j,O,ge,n),this.emit("missingKey",A,l,j,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?ue.forEach(A=>{const j=this.pluralResolver.getSuffixes(A,n);F&&n[`defaultValue${this.options.pluralSeparator}zero`]&&j.indexOf(`${this.options.pluralSeparator}zero`)<0&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(W=>{E([A],s+W,n[`defaultValue${W}`]||ne)})}):E(ue,s,ne))}m=this.extendTranslation(m,e,n,d,o),x&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}:${s}`),(x||$)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,$?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 c=_(e)&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const m=e.match(this.interpolator.nestingRegexp);u=m&&m.length}let d=o.replace&&!_(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),c){const m=e.match(this.interpolator.nestingRegexp),f=m&&m.length;u<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=_(a)?[a]:a;return e!=null&&l&&l.length&&o.applyPostProcessor!==!1&&(e=fw.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 _(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(o))return;const c=this.extractFromKey(l,n),u=c.key;r=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const m=n.count!==void 0&&!_(n.count),f=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(_(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(h=>{this.isValidLookup(o)||(a=h,!pw[`${g[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(pw[`${g[0]}-${h}`]=!0,this.logger.warn(`key "${r}" for languages "${g.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!!!")),g.forEach(y=>{if(this.isValidLookup(o))return;s=y;const w=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(w,u,y,h,n);else{let $;m&&($=this.pluralResolver.getSuffix(y,n.count,n));const x=`${this.options.pluralSeparator}zero`,S=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(w.push(u+$),n.ordinal&&$.indexOf(S)===0&&w.push(u+$.replace(S,this.options.pluralSeparator)),f&&w.push(u+x)),p){const C=`${u}${this.options.contextSeparator}${n.context}`;w.push(C),m&&(w.push(C+$),n.ordinal&&$.indexOf(S)===0&&w.push(C+$.replace(S,this.options.pluralSeparator)),f&&w.push(C+x))}}let v;for(;v=w.pop();)this.isValidLookup(o)||(i=v,o=this.getResource(y,h,v,n))}))})}),{res:o,usedKey:r,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,o,r):this.resourceStore.getResource(e,n,o,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=e.replace&&!_(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 Vm=t=>t.charAt(0).toUpperCase()+t.slice(1);class hw{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=It.create("languageUtils")}getScriptPartFromCode(e){if(e=Ll(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=Ll(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(_(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]=Vm(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]=Vm(o[1].toLowerCase())),n.indexOf(o[2].toLowerCase())>-1&&(o[2]=Vm(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)),_(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 _(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))):_(e)&&i(this.formatLanguageCode(e)),o.forEach(s=>{r.indexOf(s)<0&&i(this.formatLanguageCode(s))}),r}}let ZD=[{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}],XD={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 eR=["v1","v2","v3"],tR=["v4"],gw={zero:0,one:1,two:2,few:3,many:4,other:5},nR=()=>{const t={};return ZD.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:XD[e.fc]}})}),t};class oR{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=It.create("pluralResolver"),(!this.options.compatibilityJSON||tR.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=nR(),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()){const o=Ll(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];let s;try{s=new Intl.PluralRules(o,{type:r})}catch{if(!e.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(l,n)}return this.pluralRulesCache[i]=s,s}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)=>gw[r]-gw[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!eR.includes(this.options.compatibilityJSON)}}const yw=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=_D(t,e,n);return!i&&r&&_(n)&&(i=Hm(t,n,o),i===void 0&&(i=Hm(e,n,o))),i},Um=t=>t.replace(/\$/g,"$$$$");class rR{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=It.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:o,useRawValueToEscape:r,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:m,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:h,maxReplaces:y,alwaysFormat:w}=e.interpolation;this.escape=n!==void 0?n:JD,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=i?yr(i):s||"{{",this.suffix=a?yr(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=m?yr(m):f||yr("$t("),this.nestingSuffix=p?yr(p):g||yr(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=y||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||{},c=f=>{if(f.indexOf(this.formatSeparator)<0){const y=yw(n,l,f,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,o,{...r,...n,interpolationkey:f}):y}const p=f.split(this.formatSeparator),g=p.shift().trim(),h=p.join(this.formatSeparator).trim();return this.format(yw(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),h,o,{...r,...n,interpolationkey:g})};this.resetRegExp();const u=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=c(p),s===void 0)if(typeof u=="function"){const h=u(e,i,r);s=_(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!_(s)&&!this.useRawValueToEscape&&(s=aw(s));const g=f.safeValue(s);if(e=e.replace(i[0],g),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,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));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),c&&(s={...c,...s})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${u}${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&&!_(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const u=r[1].split(this.formatSeparator).map(d=>d.trim());r[1]=u.shift(),l=u,c=!0}if(i=n(a.call(this,r[1].trim(),s),s),i&&r[0]===e&&!_(i))return i;_(i)||(i=aw(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),c&&(i=l.reduce((u,d)=>this.format(u,d,o.lng,{...o,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const iR=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const o=t.split("(");e=o[0].toLowerCase().trim();const r=o[1].substring(0,o[1].length-1);e==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:e,formatOptions:n}},br=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(Ll(o),r),e[s]=a),a(n)}};class sR{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=It.create("formatter"),this.options=e,this.formats={number:br((n,o)=>{const r=new Intl.NumberFormat(n,{...o});return i=>r.format(i)}),currency:br((n,o)=>{const r=new Intl.NumberFormat(n,{...o,style:"currency"});return i=>r.format(i)}),datetime:br((n,o)=>{const r=new Intl.DateTimeFormat(n,{...o});return i=>r.format(i)}),relativetime:br((n,o)=>{const r=new Intl.RelativeTimeFormat(n,{...o});return i=>r.format(i,o.range||"day")}),list:br((n,o)=>{const r=new Intl.ListFormat(n,{...o});return i=>r.format(i)})},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()]=br(n)}format(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,l)=>{const{formatName:c,formatOptions:u}=iR(l);if(this.formats[c]){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[c](a,f,{...u,...r,...m})}catch(m){this.logger.warn(m)}return d}else this.logger.warn(`there was no format function for ${c}`);return a},e)}}const aR=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class lR extends Bl{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=It.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(o,r.backend,r)}queueLoad(e,n,o,r){const i={},s={},a={},l={};return e.forEach(c=>{let u=!0;n.forEach(d=>{const m=`${c}|${d}`;!o.reload&&this.store.hasResourceBundle(c,d)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?s[m]===void 0&&(s[m]=!0):(this.state[m]=1,u=!1,s[m]===void 0&&(s[m]=!0),i[m]===void 0&&(i[m]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(a[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,n,o){const r=e.split("|"),i=r[0],s=r[1];n&&this.emit("failedLoading",i,s,n),!n&&o&&this.store.addResourceBundle(i,s,o,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&o&&(this.state[e]=0);const a={};this.queue.forEach(l=>{UD(l.loaded,[i],s),aR(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{a[c][d]===void 0&&(a[c][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=(c,u)=>{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(c&&u&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,o,r+1,i*2,s)},i);return}s(c,u)},l=this.backend[o].bind(this.backend);if(l.length===2){try{const c=l(e,n);c&&typeof c.then=="function"?c.then(u=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(e,n,a)}prepareLoading(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();_(e)&&(e=this.languageUtils.toResolveHierarchy(e)),_(n)&&(n=[n]);const i=this.queueLoad(e,n,o,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(e,n,o){this.prepareLoading(e,n,{},o)}reload(e,n,o){this.prepareLoading(e,n,{reload:!0},o)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const o=e.split("|"),r=o[0],i=o[1];this.read(r,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${r} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${r}`,a),this.loaded(e,s,a)})}saveMissing(e,n,o,r,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${o}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(e,n,o,r,l):u=c(e,n,o,r),u&&typeof u.then=="function"?u.then(d=>a(null,d)).catch(a):a(null,u)}catch(u){a(u)}else c(e,n,o,r,a,l)}!e||!e[0]||this.store.addResource(e[0],n,o,r)}}}const bw=()=>({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]),_(t[1])&&(e.defaultValue=t[1]),_(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}}),ww=t=>(_(t.ns)&&(t.ns=[t.ns]),_(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),_(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),Hl=()=>{},cR=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class es extends Bl{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ww(e),this.services={},this.logger=It,this.modules={external:[]},cR(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&&(_(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=bw();this.options={...r,...this.options,...ww(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?It.init(i(this.modules.logger),this.options):It.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=sR);const d=new hw(this.options);this.store=new mw(this.options.resources,this.options);const m=this.services;m.logger=It,m.resourceStore=this.store,m.languageUtils=d,m.pluralResolver=new oR(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(m.formatter=i(u),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new rR(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new lR(i(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(f){for(var p=arguments.length,g=new Array(p>1?p-1:0),h=1;h<p;h++)g[h-1]=arguments[h];e.emit(f,...g)}),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 Fl(this.services,this.options),this.translator.on("*",function(f){for(var p=arguments.length,g=new Array(p>1?p-1:0),h=1;h<p;h++)g[h-1]=arguments[h];e.emit(f,...g)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Hl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return e.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return e.store[u](...arguments),e}});const l=Zi(),c=()=>{const u=(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 u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hl;const r=_(e)?e:this.language;if(typeof e=="function"&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(a)})}else o(null)}reloadResources(e,n,o){const r=Zi();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=Hl),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"&&fw.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=Zi();this.emit("languageChanging",e);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve(function(){return o.t(...arguments)}),n&&n(l,function(){return o.t(...arguments)})},a=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const c=_(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{s(u,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),r}getFixedT(e,n,o){var r=this;const i=function(s,a){let l;if(typeof a!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=r.options.overloadTranslationOptionHandler([s,a].concat(u))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||o||i.keyPrefix);const 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 _(e)?i.lng=e:i.lngs=e,i.ns=n,i.keyPrefix=o,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const o=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(o,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(o,e)&&(!r||s(i,e)))}loadNamespaces(e,n){const o=Zi();return this.options.ns?(_(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=Zi();_(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 hw(bw());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 es(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hl;const o=e.forkResourceStore;o&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new es(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 mw(this.store.data,r),i.services.resourceStore=i.store),i.translator=new Fl(i.services,r),i.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];i.emit(a,...c)}),i.init(r,n),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const vw=es.createInstance();vw.createInstance=es.createInstance;var uR=vw;const wr=qw(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var _m={exports:{}},Ym={},$w={exports:{}};(function(t){var e=wr,n=wr;function o(i){return n.existsSync(e.join(i,"package.json"))}function r(i,s){if(i=i||t.parent.filename,s=s||o,typeof i=="string"&&(i[i.length-1]!==e.sep&&(i+=e.sep),i=i.split(e.sep)),!i.length)throw new Error("package.json not found in path");i.pop();var a=i.join(e.sep);try{if(s(a))return a}catch{}return r(i,s)}t.exports=r})($w);var dR=$w.exports,Sw={exports:{}},kw={},mR=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Jm={exports:{}};typeof Object.create=="function"?Jm.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Jm.exports=function(e,n){e.super_=n;var o=function(){};o.prototype=n.prototype,e.prototype=new o,e.prototype.constructor=e};var fR=Jm.exports;(function(t){var e=/%[sdj%]/g;t.format=function(E){if(!v(E)){for(var A=[],j=0;j<arguments.length;j++)A.push(r(arguments[j]));return A.join(" ")}for(var j=1,W=arguments,O=W.length,P=String(E).replace(e,function(H){if(H==="%%")return"%";if(j>=O)return H;switch(H){case"%s":return String(W[j++]);case"%d":return Number(W[j++]);case"%j":try{return JSON.stringify(W[j++])}catch{return"[Circular]"}default:return H}}),L=W[j];j<O;L=W[++j])h(L)||!C(L)?P+=" "+L:P+=" "+r(L);return P},t.deprecate=function(E,A){if(x(Ze.process))return function(){return t.deprecate(E,A).apply(this,arguments)};if(process.noDeprecation===!0)return E;var j=!1;function W(){if(!j){if(process.throwDeprecation)throw new Error(A);process.traceDeprecation?console.trace(A):console.error(A),j=!0}return E.apply(this,arguments)}return W};var n={},o;t.debuglog=function(E){if(x(o)&&(o=process.env.NODE_DEBUG||""),E=E.toUpperCase(),!n[E])if(new RegExp("\\b"+E+"\\b","i").test(o)){var A=process.pid;n[E]=function(){var j=t.format.apply(t,arguments);console.error("%s %d: %s",E,A,j)}}else n[E]=function(){};return n[E]};function r(E,A){var j={seen:[],stylize:s};return arguments.length>=3&&(j.depth=arguments[2]),arguments.length>=4&&(j.colors=arguments[3]),g(A)?j.showHidden=A:A&&t._extend(j,A),x(j.showHidden)&&(j.showHidden=!1),x(j.depth)&&(j.depth=2),x(j.colors)&&(j.colors=!1),x(j.customInspect)&&(j.customInspect=!0),j.colors&&(j.stylize=i),l(j,E,j.depth)}t.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(E,A){var j=r.styles[A];return j?"\x1B["+r.colors[j][0]+"m"+E+"\x1B["+r.colors[j][1]+"m":E}function s(E,A){return E}function a(E){var A={};return E.forEach(function(j,W){A[j]=!0}),A}function l(E,A,j){if(E.customInspect&&A&&F(A.inspect)&&A.inspect!==t.inspect&&!(A.constructor&&A.constructor.prototype===A)){var W=A.inspect(j,E);return v(W)||(W=l(E,W,j)),W}var O=c(E,A);if(O)return O;var P=Object.keys(A),L=a(P);if(E.showHidden&&(P=Object.getOwnPropertyNames(A)),N(A)&&(P.indexOf("message")>=0||P.indexOf("description")>=0))return u(A);if(P.length===0){if(F(A)){var H=A.name?": "+A.name:"";return E.stylize("[Function"+H+"]","special")}if(S(A))return E.stylize(RegExp.prototype.toString.call(A),"regexp");if(D(A))return E.stylize(Date.prototype.toString.call(A),"date");if(N(A))return u(A)}var Q="",ze=!1,gt=["{","}"];if(p(A)&&(ze=!0,gt=["[","]"]),F(A)){var $o=A.name?": "+A.name:"";Q=" [Function"+$o+"]"}if(S(A)&&(Q=" "+RegExp.prototype.toString.call(A)),D(A)&&(Q=" "+Date.prototype.toUTCString.call(A)),N(A)&&(Q=" "+u(A)),P.length===0&&(!ze||A.length==0))return gt[0]+Q+gt[1];if(j<0)return S(A)?E.stylize(RegExp.prototype.toString.call(A),"regexp"):E.stylize("[Object]","special");E.seen.push(A);var Lt;return ze?Lt=d(E,A,j,L,P):Lt=P.map(function(SO){return m(E,A,j,L,SO,ze)}),E.seen.pop(),f(Lt,Q,gt)}function c(E,A){if(x(A))return E.stylize("undefined","undefined");if(v(A)){var j="'"+JSON.stringify(A).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return E.stylize(j,"string")}if(w(A))return E.stylize(""+A,"number");if(g(A))return E.stylize(""+A,"boolean");if(h(A))return E.stylize("null","null")}function u(E){return"["+Error.prototype.toString.call(E)+"]"}function d(E,A,j,W,O){for(var P=[],L=0,H=A.length;L<H;++L)de(A,String(L))?P.push(m(E,A,j,W,String(L),!0)):P.push("");return O.forEach(function(Q){Q.match(/^\d+$/)||P.push(m(E,A,j,W,Q,!0))}),P}function m(E,A,j,W,O,P){var L,H,Q;if(Q=Object.getOwnPropertyDescriptor(A,O)||{value:A[O]},Q.get?Q.set?H=E.stylize("[Getter/Setter]","special"):H=E.stylize("[Getter]","special"):Q.set&&(H=E.stylize("[Setter]","special")),de(W,O)||(L="["+O+"]"),H||(E.seen.indexOf(Q.value)<0?(h(j)?H=l(E,Q.value,null):H=l(E,Q.value,j-1),H.indexOf(`
155
155
  `)>-1&&(P?H=H.split(`
156
156
  `).map(function(ze){return" "+ze}).join(`
157
157
  `).substr(2):H=`
158
158
  `+H.split(`
159
159
  `).map(function(ze){return" "+ze}).join(`
160
- `))):H=E.stylize("[Circular]","special")),x(I)){if(P&&O.match(/^\d+$/))return H;I=JSON.stringify(""+O),I.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(I=I.substr(1,I.length-2),I=E.stylize(I,"name")):(I=I.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),I=E.stylize(I,"string"))}return I+": "+H}function f(E,D,j){var q=E.reduce(function(O,P){return P.indexOf(`
161
- `)>=0,O+P.replace(/\u001b\[\d\d?m/g,"").length+1},0);return q>60?j[0]+(D===""?"":D+`
160
+ `))):H=E.stylize("[Circular]","special")),x(L)){if(P&&O.match(/^\d+$/))return H;L=JSON.stringify(""+O),L.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(L=L.substr(1,L.length-2),L=E.stylize(L,"name")):(L=L.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),L=E.stylize(L,"string"))}return L+": "+H}function f(E,A,j){var W=E.reduce(function(O,P){return P.indexOf(`
161
+ `)>=0,O+P.replace(/\u001b\[\d\d?m/g,"").length+1},0);return W>60?j[0]+(A===""?"":A+`
162
162
  `)+" "+E.join(`,
163
- `)+" "+j[1]:j[0]+D+" "+E.join(", ")+" "+j[1]}function p(E){return Array.isArray(E)}t.isArray=p;function g(E){return typeof E=="boolean"}t.isBoolean=g;function h(E){return E===null}t.isNull=h;function y(E){return E==null}t.isNullOrUndefined=y;function w(E){return typeof E=="number"}t.isNumber=w;function $(E){return typeof E=="string"}t.isString=$;function v(E){return typeof E=="symbol"}t.isSymbol=v;function x(E){return E===void 0}t.isUndefined=x;function S(E){return C(E)&&ee(E)==="[object RegExp]"}t.isRegExp=S;function C(E){return typeof E=="object"&&E!==null}t.isObject=C;function A(E){return C(E)&&ee(E)==="[object Date]"}t.isDate=A;function N(E){return C(E)&&(ee(E)==="[object Error]"||E instanceof Error)}t.isError=N;function F(E){return typeof E=="function"}t.isFunction=F;function J(E){return E===null||typeof E=="boolean"||typeof E=="number"||typeof E=="string"||typeof E=="symbol"||typeof E>"u"}t.isPrimitive=J,t.isBuffer=dR;function ee(E){return Object.prototype.toString.call(E)}function ne(E){return E<10?"0"+E.toString(10):E.toString(10)}var re=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ae(){var E=new Date,D=[ne(E.getHours()),ne(E.getMinutes()),ne(E.getSeconds())].join(":");return[E.getDate(),re[E.getMonth()],D].join(" ")}t.log=function(){console.log("%s - %s",ae(),t.format.apply(t,arguments))},t.inherits=mR,t._extend=function(E,D){if(!D||!C(D))return E;for(var j=Object.keys(D),q=j.length;q--;)E[j[q]]=D[j[q]];return E};function me(E,D){return Object.prototype.hasOwnProperty.call(E,D)}})(Sw);var fR=Vl;/*!
163
+ `)+" "+j[1]:j[0]+A+" "+E.join(", ")+" "+j[1]}function p(E){return Array.isArray(E)}t.isArray=p;function g(E){return typeof E=="boolean"}t.isBoolean=g;function h(E){return E===null}t.isNull=h;function y(E){return E==null}t.isNullOrUndefined=y;function w(E){return typeof E=="number"}t.isNumber=w;function v(E){return typeof E=="string"}t.isString=v;function $(E){return typeof E=="symbol"}t.isSymbol=$;function x(E){return E===void 0}t.isUndefined=x;function S(E){return C(E)&&ee(E)==="[object RegExp]"}t.isRegExp=S;function C(E){return typeof E=="object"&&E!==null}t.isObject=C;function D(E){return C(E)&&ee(E)==="[object Date]"}t.isDate=D;function N(E){return C(E)&&(ee(E)==="[object Error]"||E instanceof Error)}t.isError=N;function F(E){return typeof E=="function"}t.isFunction=F;function ne(E){return E===null||typeof E=="boolean"||typeof E=="number"||typeof E=="string"||typeof E=="symbol"||typeof E>"u"}t.isPrimitive=ne,t.isBuffer=mR;function ee(E){return Object.prototype.toString.call(E)}function oe(E){return E<10?"0"+E.toString(10):E.toString(10)}var ge=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ue(){var E=new Date,A=[oe(E.getHours()),oe(E.getMinutes()),oe(E.getSeconds())].join(":");return[E.getDate(),ge[E.getMonth()],A].join(" ")}t.log=function(){console.log("%s - %s",ue(),t.format.apply(t,arguments))},t.inherits=fR,t._extend=function(E,A){if(!A||!C(A))return E;for(var j=Object.keys(A),W=j.length;W--;)E[j[W]]=A[j[W]];return E};function de(E,A){return Object.prototype.hasOwnProperty.call(E,A)}})(kw);var pR=Vl;/*!
164
164
  * The buffer module from node.js, for the browser.
165
165
  *
166
166
  * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
167
167
  * @license MIT
168
- */function kw(t,e){if(t===e)return 0;for(var n=t.length,o=e.length,r=0,i=Math.min(n,o);r<i;++r)if(t[r]!==e[r]){n=t[r],o=e[r];break}return n<o?-1:o<n?1:0}function ts(t){return Ze.Buffer&&typeof Ze.Buffer.isBuffer=="function"?Ze.Buffer.isBuffer(t):!!(t!=null&&t._isBuffer)}var St=Sw,pR=Object.prototype.hasOwnProperty,xw=Array.prototype.slice,Cw=function(){return(function(){}).name==="foo"}();function Ew(t){return Object.prototype.toString.call(t)}function Nw(t){return ts(t)||typeof Ze.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t?!!(t instanceof DataView||t.buffer&&t.buffer instanceof ArrayBuffer):!1}var oe=$w.exports=Ow,hR=/\s*function\s+([^\(\s]*)\s*/;function Aw(t){if(St.isFunction(t)){if(Cw)return t.name;var e=t.toString(),n=e.match(hR);return n&&n[1]}}oe.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=gR(this),this.generatedMessage=!0);var n=e.stackStartFunction||Qe;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var o=new Error;if(o.stack){var r=o.stack,i=Aw(n),s=r.indexOf(`
168
+ */function xw(t,e){if(t===e)return 0;for(var n=t.length,o=e.length,r=0,i=Math.min(n,o);r<i;++r)if(t[r]!==e[r]){n=t[r],o=e[r];break}return n<o?-1:o<n?1:0}function ts(t){return Ze.Buffer&&typeof Ze.Buffer.isBuffer=="function"?Ze.Buffer.isBuffer(t):!!(t!=null&&t._isBuffer)}var St=kw,hR=Object.prototype.hasOwnProperty,Cw=Array.prototype.slice,Ew=function(){return(function(){}).name==="foo"}();function Nw(t){return Object.prototype.toString.call(t)}function Aw(t){return ts(t)||typeof Ze.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t?!!(t instanceof DataView||t.buffer&&t.buffer instanceof ArrayBuffer):!1}var te=Sw.exports=Tw,gR=/\s*function\s+([^\(\s]*)\s*/;function Dw(t){if(St.isFunction(t)){if(Ew)return t.name;var e=t.toString(),n=e.match(gR);return n&&n[1]}}te.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=yR(this),this.generatedMessage=!0);var n=e.stackStartFunction||Qe;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var o=new Error;if(o.stack){var r=o.stack,i=Dw(n),s=r.indexOf(`
169
169
  `+i);if(s>=0){var a=r.indexOf(`
170
- `,s+1);r=r.substring(a+1)}this.stack=r}}},St.inherits(oe.AssertionError,Error);function Dw(t,e){return typeof t=="string"?t.length<e?t:t.slice(0,e):t}function Rw(t){if(Cw||!St.isFunction(t))return St.inspect(t);var e=Aw(t),n=e?": "+e:"";return"[Function"+n+"]"}function gR(t){return Dw(Rw(t.actual),128)+" "+t.operator+" "+Dw(Rw(t.expected),128)}function Qe(t,e,n,o,r){throw new oe.AssertionError({message:n,actual:t,expected:e,operator:o,stackStartFunction:r})}oe.fail=Qe;function Ow(t,e){t||Qe(t,!0,e,"==",oe.ok)}oe.ok=Ow,oe.equal=function(e,n,o){e!=n&&Qe(e,n,o,"==",oe.equal)},oe.notEqual=function(e,n,o){e==n&&Qe(e,n,o,"!=",oe.notEqual)},oe.deepEqual=function(e,n,o){vr(e,n,!1)||Qe(e,n,o,"deepEqual",oe.deepEqual)},oe.deepStrictEqual=function(e,n,o){vr(e,n,!0)||Qe(e,n,o,"deepStrictEqual",oe.deepStrictEqual)};function vr(t,e,n,o){if(t===e)return!0;if(ts(t)&&ts(e))return kw(t,e)===0;if(St.isDate(t)&&St.isDate(e))return t.getTime()===e.getTime();if(St.isRegExp(t)&&St.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if((t===null||typeof t!="object")&&(e===null||typeof e!="object"))return n?t===e:t==e;if(Nw(t)&&Nw(e)&&Ew(t)===Ew(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return kw(new Uint8Array(t.buffer),new Uint8Array(e.buffer))===0;if(ts(t)!==ts(e))return!1;o=o||{actual:[],expected:[]};var r=o.actual.indexOf(t);return r!==-1&&r===o.expected.indexOf(e)?!0:(o.actual.push(t),o.expected.push(e),yR(t,e,n,o))}function Tw(t){return Object.prototype.toString.call(t)=="[object Arguments]"}function yR(t,e,n,o){if(t==null||e===null||e===void 0)return!1;if(St.isPrimitive(t)||St.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var r=Tw(t),i=Tw(e);if(r&&!i||!r&&i)return!1;if(r)return t=xw.call(t),e=xw.call(e),vr(t,e,n);var s=Iw(t),a=Iw(e),l,c;if(s.length!==a.length)return!1;for(s.sort(),a.sort(),c=s.length-1;c>=0;c--)if(s[c]!==a[c])return!1;for(c=s.length-1;c>=0;c--)if(l=s[c],!vr(t[l],e[l],n,o))return!1;return!0}oe.notDeepEqual=function(e,n,o){vr(e,n,!1)&&Qe(e,n,o,"notDeepEqual",oe.notDeepEqual)},oe.notDeepStrictEqual=Mw;function Mw(t,e,n){vr(t,e,!0)&&Qe(t,e,n,"notDeepStrictEqual",Mw)}oe.strictEqual=function(e,n,o){e!==n&&Qe(e,n,o,"===",oe.strictEqual)},oe.notStrictEqual=function(e,n,o){e===n&&Qe(e,n,o,"!==",oe.notStrictEqual)};function jw(t,e){if(!t||!e)return!1;if(Object.prototype.toString.call(e)=="[object RegExp]")return e.test(t);try{if(t instanceof e)return!0}catch{}return Error.isPrototypeOf(e)?!1:e.call({},t)===!0}function bR(t){var e;try{t()}catch(n){e=n}return e}function Pw(t,e,n,o){var r;if(typeof e!="function")throw new TypeError('"block" argument must be a function');typeof n=="string"&&(o=n,n=null),r=bR(e),o=(n&&n.name?" ("+n.name+").":".")+(o?" "+o:"."),t&&!r&&Qe(r,n,"Missing expected exception"+o);var i=typeof o=="string",s=!t&&St.isError(r),a=!t&&r&&!n;if((s&&i&&jw(r,n)||a)&&Qe(r,n,"Got unwanted exception"+o),t&&r&&n&&!jw(r,n)||!t&&r)throw r}oe.throws=function(t,e,n){Pw(!0,t,e,n)},oe.doesNotThrow=function(t,e,n){Pw(!1,t,e,n)},oe.ifError=function(t){if(t)throw t};function Lw(t,e){t||Qe(t,!0,e,"==",Lw)}oe.strict=fR(Lw,oe,{equal:oe.strictEqual,deepEqual:oe.deepStrictEqual,notEqual:oe.notStrictEqual,notDeepEqual:oe.notDeepStrictEqual}),oe.strict.strict=oe.strict;var Iw=Object.keys||function(t){var e=[];for(var n in t)pR.call(t,n)&&e.push(n);return e},wR=$w.exports,vR=wR,$R=function(t){var e,n,o,r,i;for(e=Error.prepareStackTrace,Error.prepareStackTrace=function(s,a){return Error.prepareStackTrace=e,a},n=new Error().stack,i=0;i<n.length&&n[i].getFileName()!==__filename;)i++;vR(i<n.length,"Unexpected: unable to find caller/index.js in the stack"),t=!t||isNaN(t)?1:t>n.length-2?n.length-2:t,n=n.slice(i+t+1);do r=n.shift(),o=r&&r.getFileName();while(n.length&&o==="module.js");return o};const SR=wr,kR=wr,zw=uR,xR=$R;Ym.getCallerRoot=function(){try{return zw(xR(2))}catch{return}},Ym.getProcessRoot=function(){let e=process.cwd();const n=kR.join(e,"current");try{SR.statSync(n).isDirectory()&&(e=n)}catch{}try{return zw(e)}catch{return}};var CR=Ym,Km={exports:{}},Wm,Bw;function ER(){if(Bw)return Wm;Bw=1;var t=1e3,e=t*60,n=e*60,o=n*24,r=o*7,i=o*365.25;Wm=function(u,d){d=d||{};var m=typeof u;if(m==="string"&&u.length>0)return s(u);if(m==="number"&&isFinite(u))return d.long?l(u):a(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function s(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var m=parseFloat(d[1]),f=(d[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return m*i;case"weeks":case"week":case"w":return m*r;case"days":case"day":case"d":return m*o;case"hours":case"hour":case"hrs":case"hr":case"h":return m*n;case"minutes":case"minute":case"mins":case"min":case"m":return m*e;case"seconds":case"second":case"secs":case"sec":case"s":return m*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function a(u){var d=Math.abs(u);return d>=o?Math.round(u/o)+"d":d>=n?Math.round(u/n)+"h":d>=e?Math.round(u/e)+"m":d>=t?Math.round(u/t)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=o?c(u,d,o,"day"):d>=n?c(u,d,n,"hour"):d>=e?c(u,d,e,"minute"):d>=t?c(u,d,t,"second"):u+" ms"}function c(u,d,m,f){var p=d>=m*1.5;return Math.round(u/m)+" "+f+(p?"s":"")}return Wm}function NR(t){n.debug=n,n.default=n,n.coerce=l,n.disable=s,n.enable=r,n.enabled=a,n.humanize=ER(),n.destroy=c,Object.keys(t).forEach(u=>{n[u]=t[u]}),n.names=[],n.skips=[],n.formatters={};function e(u){let d=0;for(let m=0;m<u.length;m++)d=(d<<5)-d+u.charCodeAt(m),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=e;function n(u){let d,m=null,f,p;function g(...h){if(!g.enabled)return;const y=g,w=Number(new Date),$=w-(d||w);y.diff=$,y.prev=d,y.curr=w,d=w,h[0]=n.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");let v=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,(S,C)=>{if(S==="%%")return"%";v++;const A=n.formatters[C];if(typeof A=="function"){const N=h[v];S=A.call(y,N),h.splice(v,1),v--}return S}),n.formatArgs.call(y,h),(y.log||n.log).apply(y,h)}return g.namespace=u,g.useColors=n.useColors(),g.color=n.selectColor(u),g.extend=o,g.destroy=n.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(f!==n.namespaces&&(f=n.namespaces,p=n.enabled(u)),p),set:h=>{m=h}}),typeof n.init=="function"&&n.init(g),g}function o(u,d){const m=n(this.namespace+(typeof d>"u"?":":d)+u);return m.log=this.log,m}function r(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];const d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const m of d)m[0]==="-"?n.skips.push(m.slice(1)):n.names.push(m)}function i(u,d){let m=0,f=0,p=-1,g=0;for(;m<u.length;)if(f<d.length&&(d[f]===u[m]||d[f]==="*"))d[f]==="*"?(p=f,g=m,f++):(m++,f++);else if(p!==-1)f=p+1,g++,m=g;else return!1;for(;f<d.length&&d[f]==="*";)f++;return f===d.length}function s(){const u=[...n.names,...n.skips.map(d=>"-"+d)].join(",");return n.enable(""),u}function a(u){for(const d of n.skips)if(i(u,d))return!1;for(const d of n.names)if(i(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var AR=NR;(function(t,e){e.formatArgs=o,e.save=r,e.load=i,e.useColors=n,e.storage=s(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let l;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(u++,m==="%c"&&(d=u))}),l.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function r(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function i(){let l;try{l=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function s(){try{return localStorage}catch{}}t.exports=AR(e);const{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(Km,Km.exports);var DR=Km.exports;const RR=CR,Fw=DR;_m.exports=function(e){const n=RR.getCallerRoot();let o;try{const r=vo("/node_modules/@tryghost/debug/lib")(n+"/package.json");r.alias?o=r.alias:o=r.name}catch{o="undefined"}return Fw(o+":"+e)},_m.exports._base=Fw;var OR=_m.exports,TR=OR;const MR=[{code:"af",label:"Afrikaans"},{code:"ar",label:"Arabic"},{code:"bg",label:"Bulgarian"},{code:"bn",label:"Bengali"},{code:"bs",label:"Bosnian"},{code:"ca",label:"Catalan"},{code:"cs",label:"Czech"},{code:"da",label:"Danish"},{code:"de",label:"German"},{code:"de-CH",label:"Swiss German"},{code:"el",label:"Greek"},{code:"en",label:"English"},{code:"eo",label:"Esperanto"},{code:"es",label:"Spanish"},{code:"et",label:"Estonian"},{code:"eu",label:"Basque"},{code:"fa",label:"Persian/Farsi"},{code:"fi",label:"Finnish"},{code:"fr",label:"French"},{code:"gd",label:"Gaelic (Scottish)"},{code:"he",label:"Hebrew"},{code:"hi",label:"Hindi"},{code:"hr",label:"Croatian"},{code:"hu",label:"Hungarian"},{code:"id",label:"Indonesian"},{code:"is",label:"Icelandic"},{code:"it",label:"Italian"},{code:"ja",label:"Japanese"},{code:"ko",label:"Korean"},{code:"kz",label:"Kazakh"},{code:"lt",label:"Lithuanian"},{code:"lv",label:"Latvian"},{code:"mk",label:"Macedonian"},{code:"mn",label:"Mongolian"},{code:"ms",label:"Malay"},{code:"nb",label:"Norwegian Bokmål"},{code:"ne",label:"Nepali"},{code:"nl",label:"Dutch"},{code:"nn",label:"Norwegian Nynorsk"},{code:"pa",label:"Punjabi"},{code:"pl",label:"Polish"},{code:"pt",label:"Portuguese"},{code:"pt-BR",label:"Portuguese (Brazil)"},{code:"ro",label:"Romanian"},{code:"ru",label:"Russian"},{code:"si",label:"Sinhala"},{code:"sk",label:"Slovak"},{code:"sl",label:"Slovenian"},{code:"sq",label:"Albanian"},{code:"sr",label:"Serbian"},{code:"sr-Cyrl",label:"Serbian (Cyrillic)"},{code:"sv",label:"Swedish"},{code:"sw",label:"Swahili"},{code:"ta",label:"Tamil"},{code:"th",label:"Thai"},{code:"tr",label:"Turkish"},{code:"uk",label:"Ukrainian"},{code:"ur",label:"Urdu"},{code:"uz",label:"Uzbek"},{code:"vi",label:"Vietnamese"},{code:"zh",label:"Chinese"},{code:"zh-Hant",label:"Traditional Chinese"}],jR=cR,Hw=wr,qm=wr,Gm=TR("i18n"),Vw=MR,Uw=Vw.map(t=>t.code);function _w(t,e){return t.reduce((n,o)=>{let r;try{r=vo("/ghost/i18n/lib")(`../locales/${o}/${e}.json`)}catch{r=vo("/ghost/i18n/lib")(`../locales/en/${e}.json`)}return n[o]={[e]:{...r,...r.default&&typeof r.default=="object"?r.default:{}}},n},{})}function PR(t,e){if(!e)return{[t]:{theme:{}}};let n=[];try{n=qm.readdirSync(e).filter(i=>i.endsWith(".json")).map(i=>i.replace(".json",""))}catch{n=[t,"en"]}return[...new Set([t,...n,"en"])].reduce((r,i)=>{let s,a=!1;const l=Hw.join(e,`${i}.json`);if(qm.existsSync(l))try{delete require.cache[vo("/ghost/i18n/lib").resolve(l)],s=vo("/ghost/i18n/lib")(l)}catch{Gm(`Error loading theme locale file: ${i}`),a=!0}else a=!0;if(a)if(i!=="en")try{const c=Hw.join(e,"en.json");qm.existsSync(c)?(delete require.cache[vo("/ghost/i18n/lib").resolve(c)],s=vo("/ghost/i18n/lib")(c)):s={}}catch{s={}}else Gm("Theme en.json file not found"),s={};return r[i]={theme:{...s,...s.default&&typeof s.default=="object"?s.default:{}}},r},{})}Qi.exports=(t="en",e="portal",n={})=>{const o=jR.createInstance(),r={prefix:"{",suffix:"}"};e==="theme"&&(r.escapeValue=!1);let i;return e!=="theme"?i=_w(Uw,e):(Gm(`generateThemeResources: ${t}, ${n.themePath}`),i=PR(t,n.themePath)),o.init({lng:t,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:e,defaultNS:e,interpolation:r,resources:i}),o},Qi.exports.SUPPORTED_LOCALES=Uw,Qi.exports.LOCALE_DATA=Vw,Qi.exports.generateResources=_w;var LR=Qi.exports;const ns=LR;gr.exports=ns,gr.exports.default=ns,gr.exports.LOCALE_DATA=ns.LOCALE_DATA,gr.exports.SUPPORTED_LOCALES=ns.SUPPORTED_LOCALES,gr.exports.generateResources=ns.generateResources;var IR=gr.exports;const zR=zt(IR);function BR({siteUrl:t=window.location.origin,apiUrl:e,apiKey:n}){const o="members/api";function r({type:c,resource:u,params:d=""}){return`${t.replace(/\/$/,"")}/${o}/${u}/${d}`}function i({resource:c,params:u={}}){if(e&&n){const d=new URLSearchParams({...u,key:n});return`${e.replace(/\/$/,"")}/${c}/?${d.toString()}`}return""}function s({url:c,method:u="GET",headers:d={},credentials:m=void 0,body:f=void 0}){return fetch(c,{method:u,headers:d,credentials:m,body:f})}let a=null;const l={site:{settings(){const c=i({resource:"settings"});return s({url:c,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(u){if(u.ok)return u.json();throw new Error("Failed to fetch site data")})}},member:{identity(){const c=r({type:"members",resource:"session"});return s({url:c,credentials:"same-origin"}).then(function(u){return!u.ok||u.status===204?null:u.text()})},sessionData(){const c=r({type:"members",resource:"member"});return s({url:c,credentials:"same-origin"}).then(function(u){return!u.ok||u.status===204?null:u.json()})},update({name:c,expertise:u}){const d=r({type:"members",resource:"member"});return s({url:d,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({name:c,expertise:u})}).then(function(f){return f.ok?f.json():null})}},comments:{async count({postId:c}){const u=c?`?ids=${c}`:"",d=r({type:"members",resource:"comments/counts",params:u}),f=await(await s({url:d,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"})).json();return c?f[c]:f},browse({page:c,postId:u,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",c.toString()),d&&f.set("order",d);const p=r({type:"members",resource:`comments/post/${u}`,params:`?${f.toString()}`}),g=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||g.then(h=>{const y=h.comments[0];y&&(a=y.created_at)}),g},async replies({commentId:c,afterReplyId:u,limit:d}){var g,h,y;if(d==="all"){const w=[];let $=u,v=!0;for(;v;){const x=await this.replies({commentId:c,afterReplyId:$,limit:100});w.push(...x.comments),v=!!((h=(g=x.meta)==null?void 0:g.pagination)!=null&&h.next)&&x.comments.length>0,x.comments.length>0&&($=(y=x.comments[x.comments.length-1])==null?void 0:y.id)}return{comments:w,meta:{pagination:{next:!1}}}}const m=new URLSearchParams;m.set("limit",(d??5).toString()),u&&m.set("filter",`id:>'${u}'`);const f=r({type:"members",resource:`comments/${c}/replies`,params:`?${m.toString()}`}),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:c}){const u={comments:[c]},d=r({type:"members",resource:"comments"});return s({url:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to add comment")})},edit({comment:c}){const u={comments:[c]},d=r({type:"members",resource:`comments/${c.id}`});return s({url:d,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to edit comment")})},read(c){const u=r({type:"members",resource:`comments/${c}`});return s({url:u,method:"GET",credentials:"same-origin"}).then(function(d){if(d.ok)return d.json();throw new Error("Failed to read comment")})},like({comment:c}){const u=r({type:"members",resource:`comments/${c.id}/like`});return s({url:u,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to like comment")})},unlike({comment:c}){const u={comments:[c]},d=r({type:"members",resource:`comments/${c.id}/like`});return s({url:d,method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(m){if(m.ok)return"Success";throw new Error("Failed to unlike comment")})},report({comment:c}){const u=r({type:"members",resource:`comments/${c.id}/report`});return s({url:u,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to report comment")})}},init:()=>{}};return l.init=async()=>{const[c]=await Promise.all([l.member.sessionData()]);let u={},d=null;try{const m=await l.site.settings();m.settings.labs&&Object.assign(u,m.settings.labs),d=m.settings.support_email_address||null}catch{u={}}return{member:c,labs:u,supportEmail:d}},l}async function FR({state:t,api:e,options:n,order:o}){var l;let r=1;t.pagination&&t.pagination.page&&(r=t.pagination.page+1);let i;return t.admin&&t.adminApi?i=await t.adminApi.browse({page:r,postId:n.postId,order:o||t.order,memberUuid:(l=t.member)==null?void 0:l.uuid}):i=await e.comments.browse({page:r,postId:n.postId,order:o||t.order}),{comments:[...t.comments,...i.comments].filter((c,u,d)=>d.findIndex(m=>m.id===c.id)===u),pagination:i.meta.pagination}}function HR({data:t}){return{commentsIsLoading:t}}async function VR({state:t,data:{order:e},options:n,api:o,dispatchAction:r}){var i;r("setCommentsIsLoading",!0);try{let s;return t.admin&&t.adminApi?s=await t.adminApi.browse({page:1,postId:n.postId,order:e,memberUuid:(i=t.member)==null?void 0:i.uuid}):s=await o.comments.browse({page:1,postId:n.postId,order:e}),{comments:[...s.comments],pagination:s.meta.pagination,order:e,commentsIsLoading:!1}}catch(s){throw console.error("Failed to set order:",s),t.commentsIsLoading=!1,s}}async function Yw({state:t,api:e,data:{comment:n,limit:o},isReply:r}){var l,c,u,d;const i=async(m,f)=>{var p;return t.admin&&t.adminApi&&!r?await t.adminApi.replies({commentId:n.id,afterReplyId:m,limit:f,memberUuid:(p=t.member)==null?void 0:p.uuid}):await e.comments.replies({commentId:n.id,afterReplyId:m,limit:f})};let s=n.replies&&n.replies.length>0?(l=n.replies[n.replies.length-1])==null?void 0:l.id:void 0,a=[];if(o==="all"){let m=!0;for(;m;){const f=await i(s,100);a.push(...f.comments),m=!!((u=(c=f.meta)==null?void 0:c.pagination)!=null&&u.next),f.comments&&f.comments.length>0?s=(d=f.comments[f.comments.length-1])==null?void 0:d.id:m=!1}}else a=(await i(s,o||100)).comments;return{comments:t.comments.map(m=>m.id===n.id?{...n,replies:[...n.replies,...a]}:m)}}async function UR({state:t,api:e,data:n}){const r=(await e.comments.add({comment:n})).comments[0];return{comments:[r,...t.comments],commentCount:t.commentCount+1,commentIdToScrollTo:r.id}}async function _R({state:t,api:e,data:{reply:n,parent:o}}){const i=(await e.comments.add({comment:{...n,parent_id:o.id}})).comments[0],s=await e.comments.replies({commentId:o.id,limit:"all"});return{comments:t.comments.map(a=>a.id===o.id?{...a,replies:s.comments,count:{...a.count,replies:s.comments.length}}:a),commentCount:t.commentCount+1,commentIdToScrollTo:i.id}}async function YR({state:t,data:e}){return t.adminApi&&await t.adminApi.hideComment(e.id),{comments:t.comments.map(n=>{const o=n.replies.map(r=>r.id===e.id?{...r,status:"hidden"}:r);return n.id===e.id?{...n,status:"hidden",replies:o}:{...n,replies:o}}),commentCount:t.commentCount-1}}async function JR({state:t,api:e,data:n}){var i;t.adminApi&&await t.adminApi.showComment({id:n.id});let o;t.admin&&t.adminApi?o=await t.adminApi.read({commentId:n.id,memberUuid:(i=t.member)==null?void 0:i.uuid}):o=await e.comments.read(n.id);const r=o.comments[0];return{comments:t.comments.map(s=>{const a=s.replies.map(l=>l.id===n.id?r:l);return s.id===n.id?r:{...s,replies:a}}),commentCount:t.commentCount+1}}async function KR({state:t,data:e}){return{comments:t.comments.map(n=>{const o=n.replies.map(r=>r.id===e.id?{...r,liked:e.liked,count:{...r.count,likes:e.liked?r.count.likes+1:r.count.likes-1}}:r);return n.id===e.id?{...n,liked:e.liked,replies:o,count:{...n.count,likes:e.liked?n.count.likes+1:n.count.likes-1}}:{...n,replies:o}})}}async function WR({api:t,data:e,dispatchAction:n}){n("updateCommentLikeState",{id:e.id,liked:!0});try{return await t.comments.like({comment:e}),{}}catch{n("updateCommentLikeState",{id:e.id,liked:!1})}}async function qR({api:t,data:e,dispatchAction:n}){n("updateCommentLikeState",{id:e.id,liked:!1});try{return await t.comments.unlike({comment:e}),{}}catch{n("updateCommentLikeState",{id:e.id,liked:!0})}}async function GR({api:t,data:e}){return await t.comments.report({comment:e}),{}}async function QR({state:t,api:e,data:n,dispatchAction:o}){await e.comments.edit({comment:{id:n.id,status:"deleted"}});const r=t.comments.find(i=>i.id===n.id);return r&&(!r.replies||r.replies.length===0)?(o("setOrder",{order:t.order}),null):{comments:t.comments.map(i=>{var u;if(i.id===n.id)return i.replies.length>0?{...i,status:"deleted"}:null;const s=i.replies.length,a=i.replies.filter(d=>d.id!==n.id),l=s!==a.length,c={...i,replies:a};return l&&((u=i.count)!=null&&u.replies)&&(i.count.replies=i.count.replies-1),c}).filter(Boolean),commentCount:t.commentCount-1}}async function ZR({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 XR({data:t,state:e,api:n}){var l,c;const{name:o,expertise:r}=t,i={},s=(l=e==null?void 0:e.member)==null?void 0:l.name;o&&s!==o&&(i.name=o);const a=(c=e==null?void 0:e.member)==null?void 0:c.expertise;if(r!==void 0&&a!==r&&(i.expertise=r),Object.keys(i).length>0)try{const u=await n.member.update(i);if(!u)throw new Error("Failed to update member");return{member:u,success:!0}}catch(u){return{success:!1,error:u}}return null}function eO({data:t}){return{popup:t}}function tO(){return{popup:null}}async function nO({data:t,api:e,state:n}){let o={};const r=t.parent_id||t.id;if(t.type==="reply"&&!n.openCommentForms.some(a=>a.id===r||a.parent_id===r)){const a=n.comments.find(l=>l.id===r);if(a)try{const l=await Yw({state:n,api:e,data:{comment:a,limit:"all"},isReply:!0});o={...o,...l}}catch(l){console.error("[Comments] Failed to load replies before opening form:",l)}}const i=n.openCommentForms.filter(a=>a.hasUnsavedChanges),s=i.findIndex(a=>a.id===t.id);return s>-1?(i[s]=t,{openCommentForms:i,...o}):{openCommentForms:[...i,t],...o}}function oO({data:t}){return{commentIdToHighlight:t}}function rO({data:{commentId:t},dispatchAction:e}){return setTimeout(()=>{e("setHighlightComment",null)},3e3),{commentIdToHighlight:t}}function iO({data:{id:t,hasUnsavedChanges:e},state:n}){return{openCommentForms:n.openCommentForms.map(r=>r.id===t?{...r,hasUnsavedChanges:e}:{...r})}}function sO({data:t,state:e}){return{openCommentForms:e.openCommentForms.filter(n=>n.id!==t)}}function aO({data:t}){return{commentIdToScrollTo:t}}const Jw={openPopup:eO,closePopup:tO,closeCommentForm:sO,setCommentFormHasUnsavedChanges:iO,setScrollTarget:aO},lO={addComment:UR,editComment:ZR,hideComment:YR,deleteComment:QR,showComment:JR,likeComment:WR,unlikeComment:qR,reportComment:GR,addReply:_R,loadMoreComments:FR,loadMoreReplies:Yw,openCommentForm:nO,updateMember:XR,setOrder:VR,highlightComment:rO,setHighlightComment:oO,setCommentsIsLoading:HR,updateCommentLikeState:KR};function cO(t){return!!Jw[t]}async function uO({action:t,data:e,state:n,api:o,adminApi:r,options:i,dispatchAction:s}){const a=lO[t];return a?await a({data:e,state:n,api:o,adminApi:r,options:i,dispatchAction:s})||{}:{}}function dO({action:t,data:e,state:n,api:o,adminApi:r,options:i}){const s=Jw[t];return s?s({data:e,state:n,api:o,adminApi:r,options:i})||{}:{}}function mO({adminUrl:t}){const e=document.querySelector('iframe[data-frame="admin-auth"]');let n=1;const o={},r=new URL(t).origin;let i=null;window.addEventListener("message",function(l){if(l.origin!==r)return;let c=null;try{c=JSON.parse(l.data)}catch{return}const u=o[c.uid];u&&(delete o[c.uid],u(c.error,c.result))});function s(l,c){return new Promise((u,d)=>{function m(f,p){return f?d(f):u(p)}n+=1,o[n]=m,e.contentWindow.postMessage(JSON.stringify({uid:n,action:l,...c}),r)})}return{async getUser(){const l=await s("getUser");return!l||!l.users?null:l.users[0]},async hideComment(l){return await s("hideComment",{id:l})},async showComment({id:l}){return await s("showComment",{id:l})},async browse({page:l,postId:c,order:u,memberUuid:d}){let m=null;i&&!u&&(m=`created_at:<=${i}`);const f=new URLSearchParams;f.set("limit","20"),m&&f.set("filter",m),f.set("page",l.toString()),u&&f.set("order",u),d&&f.set("impersonate_member_uuid",d);const p=await s("browseComments",{postId:c,params:f.toString()});if(!i){const g=p.comments[0];g&&(i=g.created_at)}return p},async replies({commentId:l,afterReplyId:c,limit:u,memberUuid:d}){const m=new URLSearchParams;return u&&m.set("limit",u.toString()),c&&m.set("filter",`id:>'${c}'`),d&&m.set("impersonate_member_uuid",d),await s("getReplies",{commentId:l,params:m.toString()})},async read({commentId:l,memberUuid:c}){const u=new URLSearchParams;return c&&u.set("impersonate_member_uuid",c),await s("readComment",{commentId:l,...u.toString()&&{params:u.toString()}})}}}function fO(t){const e=G.useCallback(()=>{const i=t.dataset,s=i.ghostComments||window.location.origin,a=i.key,l=i.api,c=i.admin,u=i.postId||"",d=i.colorScheme,m=i.avatarSaturation?parseInt(i.avatarSaturation):void 0,f=i.accentColor??"#000000",p=i.commentsEnabled,g=i.title==="null"?null:i.title??"",h=i.count==="true",y=i.publication??"";return{locale:i.locale??"en",siteUrl:s,apiKey:a,apiUrl:l,postId:u,adminUrl:c,colorScheme:d,avatarSaturation:m,accentColor:f,commentsEnabled:p,title:g,showCount:h,publication:y}},[t]),n=k.useMemo(()=>e(),[]),[o,r]=G.useState(n);return G.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 pO=["Owner","Administrator","Super Editor"];function Qm(t,e){return t.some(n=>{var o;return n.id===e||((o=n.replies)==null?void 0:o.some(r=>r.id===e))})}const hO=({scriptTag:t,initialCommentId:e,pageUrl:n})=>{const o=fO(t),[r,i]=k.useState({initStatus:"running",member:null,admin:null,comments:[],pagination:null,commentCount:0,openCommentForms:[],popup:null,labs:{},order:"count__likes desc, created_at desc",adminApi:null,commentsIsLoading:!1,commentIdToHighlight:null,commentIdToScrollTo:e,showMissingCommentNotice:!1,pageUrl:n,supportEmail:null,isMember:!1,isAdmin:!1,isPaidOnly:!1,hasRequiredTier:!0,isCommentingDisabled:!1}),s=G.createRef(),a=G.useMemo(()=>BR({siteUrl:o.siteUrl,apiUrl:o.apiUrl,apiKey:o.apiKey}),[o]),l=k.useCallback(v=>{i(x=>(typeof v=="function"&&(v=v(x)),{...x,...v}))},[i]),c=k.useCallback(async(v,x)=>{if(cO(v)){l(S=>dO({action:v,data:x,state:S,api:a,adminApi:S.adminApi,options:o}));return}return new Promise(S=>{l(C=>(uO({action:v,data:x,state:C,api:a,adminApi:C.adminApi,options:o,dispatchAction:c}).then(A=>{const N={...A};S(N),l(N)}).catch(console.error),{}))})},[a,o]),u=k.useMemo(()=>zR(o.locale,"comments"),[o.locale]),d={...o,...r,t:u.t,dispatchAction:c,openFormCount:k.useMemo(()=>r.openCommentForms.length,[r.openCommentForms])},m=async()=>{var v;if(!(r.adminApi||!o.adminUrl))try{const x=mO({adminUrl:o.adminUrl});let S=null;try{if(S=await x.getUser(),(!S||!S.roles.some(C=>pO.includes(C.name)))&&(S=null),S){const C=await x.browse({page:1,postId:o.postId,order:r.order,memberUuid:(v=r.member)==null?void 0:v.uuid});l(A=>A.pagination&&A.pagination.page>1||e?{adminApi:x,admin:S,isAdmin:!0}:{adminApi:x,admin:S,isAdmin:!0,comments:C.comments,pagination:C.meta.pagination})}}catch(C){console.warn("[Comments] Failed to fetch admin endpoint:",C)}l({adminApi:x,admin:S,isAdmin:!!S})}catch(x){console.error("[Comments] Failed to initialize admin authentication:",x)}},f=async()=>{const v=a.comments.browse({page:1,postId:o.postId,order:r.order}),x=a.comments.count({postId:o.postId}),[S,C]=await Promise.all([v,x]);return{comments:S.comments,pagination:S.meta.pagination,count:C}},p=async v=>{var x;try{const C=(x=(await a.comments.read(v)).comments)==null?void 0:x[0];return C&&C.status==="published"?C:null}catch{return null}},g=async(v,x,S,C)=>{let A=S,N=C;for(;!Qm(A,v)&&N.page<N.pages&&!(x&&A.some(J=>J.id===x));){const F=await a.comments.browse({page:N.page+1,postId:o.postId,order:r.order});A=[...A,...F.comments],N=F.meta.pagination}return{comments:A,pagination:N}},h=async(v,x)=>{var J,ee,ne;const S=x.find(re=>re.id===v);if(!(S&&S.count.replies>S.replies.length))return x;let A=[],N=!0,F;for(;N;){const re=await a.comments.replies({commentId:v,afterReplyId:F,limit:100});A=[...A,...re.comments],N=!!((ee=(J=re.meta)==null?void 0:J.pagination)!=null&&ee.next),re.comments.length>0?F=(ne=re.comments[re.comments.length-1])==null?void 0:ne.id:N=!1}return x.map(re=>re.id===v?{...re,replies:A}:re)},y=async(v,x,S,C)=>{const A=x.parent_id,{comments:N,pagination:F}=await g(v,A,S,C);let J=N;return A&&!Qm(J,v)&&(J=await h(A,J)),{comments:J,pagination:F,found:Qm(J,v)}},w=async()=>{try{const{member:v,labs:x,supportEmail:S}=await a.init(),{count:C,comments:A,pagination:N}=await f();let F=A,J=N,ee=!1;if(e&&J){const D=await p(e);if(D){const j=await y(e,D,F,J);F=j.comments,J=j.pagination,ee=j.found}}const re=!!v,ae=o.commentsEnabled==="paid",E=!!(v!=null&&v.paid)||!ae;l({member:v,initStatus:"success",comments:F,pagination:J,commentCount:C,order:"count__likes desc, created_at desc",labs:x,commentsIsLoading:!1,commentIdToHighlight:null,commentIdToScrollTo:ee?e:null,showMissingCommentNotice:!!e&&!ee,supportEmail:S,isMember:re,isPaidOnly:ae,hasRequiredTier:E,isCommentingDisabled:(v==null?void 0:v.can_comment)===!1})}catch(v){console.error("[Comments] Failed to initialize:",v),l({initStatus:"failed"})}};k.useEffect(()=>{if(e){w();return}const v=new IntersectionObserver(x=>{x.forEach(S=>{S.isIntersecting&&(w(),s.current&&v.unobserve(s.current))})},{root:null,rootMargin:"0px",threshold:.1});return s.current&&v.observe(s.current),()=>{s.current&&v.unobserve(s.current)}},[s.current,e]);const $=r.initStatus==="success";return b.jsxs(ql.Provider,{value:d,children:[b.jsx(kA,{ref:s,children:b.jsx(bA,{done:$})}),r.comments.length>0?b.jsx(lv,{adminUrl:o.adminUrl,onLoad:m}):null,b.jsx(RA,{})]})};function gO(){let t=document.currentScript;if(!t)throw new Error("[Comments-UI] Cannot find current script tag");return t}function yO(t){if(t.previousElementSibling&&t.previousElementSibling.id===hr)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=hr,t.parentElement.insertBefore(e,t),e}function bO(){const t=new URL(window.location.href);t.searchParams.get("token")&&(t.searchParams.delete("token"),window.history.replaceState({},document.title,t.href))}function wO(){const t=new URL(window.location.href);return t.hash="",t.toString()}function vO(){const t=gO(),e=yO(t),n=Of(window.location.hash),o=wO();try{bO(),mb.render(b.jsx(G.StrictMode,{children:b.jsx(hO,{initialCommentId:n,pageUrl:o,scriptTag:t})}),e)}catch(r){console.error(r)}}vO()});
170
+ `,s+1);r=r.substring(a+1)}this.stack=r}}},St.inherits(te.AssertionError,Error);function Rw(t,e){return typeof t=="string"?t.length<e?t:t.slice(0,e):t}function Ow(t){if(Ew||!St.isFunction(t))return St.inspect(t);var e=Dw(t),n=e?": "+e:"";return"[Function"+n+"]"}function yR(t){return Rw(Ow(t.actual),128)+" "+t.operator+" "+Rw(Ow(t.expected),128)}function Qe(t,e,n,o,r){throw new te.AssertionError({message:n,actual:t,expected:e,operator:o,stackStartFunction:r})}te.fail=Qe;function Tw(t,e){t||Qe(t,!0,e,"==",te.ok)}te.ok=Tw,te.equal=function(e,n,o){e!=n&&Qe(e,n,o,"==",te.equal)},te.notEqual=function(e,n,o){e==n&&Qe(e,n,o,"!=",te.notEqual)},te.deepEqual=function(e,n,o){vr(e,n,!1)||Qe(e,n,o,"deepEqual",te.deepEqual)},te.deepStrictEqual=function(e,n,o){vr(e,n,!0)||Qe(e,n,o,"deepStrictEqual",te.deepStrictEqual)};function vr(t,e,n,o){if(t===e)return!0;if(ts(t)&&ts(e))return xw(t,e)===0;if(St.isDate(t)&&St.isDate(e))return t.getTime()===e.getTime();if(St.isRegExp(t)&&St.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if((t===null||typeof t!="object")&&(e===null||typeof e!="object"))return n?t===e:t==e;if(Aw(t)&&Aw(e)&&Nw(t)===Nw(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return xw(new Uint8Array(t.buffer),new Uint8Array(e.buffer))===0;if(ts(t)!==ts(e))return!1;o=o||{actual:[],expected:[]};var r=o.actual.indexOf(t);return r!==-1&&r===o.expected.indexOf(e)?!0:(o.actual.push(t),o.expected.push(e),bR(t,e,n,o))}function Mw(t){return Object.prototype.toString.call(t)=="[object Arguments]"}function bR(t,e,n,o){if(t==null||e===null||e===void 0)return!1;if(St.isPrimitive(t)||St.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var r=Mw(t),i=Mw(e);if(r&&!i||!r&&i)return!1;if(r)return t=Cw.call(t),e=Cw.call(e),vr(t,e,n);var s=zw(t),a=zw(e),l,c;if(s.length!==a.length)return!1;for(s.sort(),a.sort(),c=s.length-1;c>=0;c--)if(s[c]!==a[c])return!1;for(c=s.length-1;c>=0;c--)if(l=s[c],!vr(t[l],e[l],n,o))return!1;return!0}te.notDeepEqual=function(e,n,o){vr(e,n,!1)&&Qe(e,n,o,"notDeepEqual",te.notDeepEqual)},te.notDeepStrictEqual=jw;function jw(t,e,n){vr(t,e,!0)&&Qe(t,e,n,"notDeepStrictEqual",jw)}te.strictEqual=function(e,n,o){e!==n&&Qe(e,n,o,"===",te.strictEqual)},te.notStrictEqual=function(e,n,o){e===n&&Qe(e,n,o,"!==",te.notStrictEqual)};function Pw(t,e){if(!t||!e)return!1;if(Object.prototype.toString.call(e)=="[object RegExp]")return e.test(t);try{if(t instanceof e)return!0}catch{}return Error.isPrototypeOf(e)?!1:e.call({},t)===!0}function wR(t){var e;try{t()}catch(n){e=n}return e}function Iw(t,e,n,o){var r;if(typeof e!="function")throw new TypeError('"block" argument must be a function');typeof n=="string"&&(o=n,n=null),r=wR(e),o=(n&&n.name?" ("+n.name+").":".")+(o?" "+o:"."),t&&!r&&Qe(r,n,"Missing expected exception"+o);var i=typeof o=="string",s=!t&&St.isError(r),a=!t&&r&&!n;if((s&&i&&Pw(r,n)||a)&&Qe(r,n,"Got unwanted exception"+o),t&&r&&n&&!Pw(r,n)||!t&&r)throw r}te.throws=function(t,e,n){Iw(!0,t,e,n)},te.doesNotThrow=function(t,e,n){Iw(!1,t,e,n)},te.ifError=function(t){if(t)throw t};function Lw(t,e){t||Qe(t,!0,e,"==",Lw)}te.strict=pR(Lw,te,{equal:te.strictEqual,deepEqual:te.deepStrictEqual,notEqual:te.notStrictEqual,notDeepEqual:te.notDeepStrictEqual}),te.strict.strict=te.strict;var zw=Object.keys||function(t){var e=[];for(var n in t)hR.call(t,n)&&e.push(n);return e},vR=Sw.exports,$R=vR,SR=function(t){var e,n,o,r,i;for(e=Error.prepareStackTrace,Error.prepareStackTrace=function(s,a){return Error.prepareStackTrace=e,a},n=new Error().stack,i=0;i<n.length&&n[i].getFileName()!==__filename;)i++;$R(i<n.length,"Unexpected: unable to find caller/index.js in the stack"),t=!t||isNaN(t)?1:t>n.length-2?n.length-2:t,n=n.slice(i+t+1);do r=n.shift(),o=r&&r.getFileName();while(n.length&&o==="module.js");return o};const kR=wr,xR=wr,Bw=dR,CR=SR;Ym.getCallerRoot=function(){try{return Bw(CR(2))}catch{return}},Ym.getProcessRoot=function(){let e=process.cwd();const n=xR.join(e,"current");try{kR.statSync(n).isDirectory()&&(e=n)}catch{}try{return Bw(e)}catch{return}};var ER=Ym,Km={exports:{}},Wm,Fw;function NR(){if(Fw)return Wm;Fw=1;var t=1e3,e=t*60,n=e*60,o=n*24,r=o*7,i=o*365.25;Wm=function(u,d){d=d||{};var m=typeof u;if(m==="string"&&u.length>0)return s(u);if(m==="number"&&isFinite(u))return d.long?l(u):a(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function s(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var m=parseFloat(d[1]),f=(d[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return m*i;case"weeks":case"week":case"w":return m*r;case"days":case"day":case"d":return m*o;case"hours":case"hour":case"hrs":case"hr":case"h":return m*n;case"minutes":case"minute":case"mins":case"min":case"m":return m*e;case"seconds":case"second":case"secs":case"sec":case"s":return m*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function a(u){var d=Math.abs(u);return d>=o?Math.round(u/o)+"d":d>=n?Math.round(u/n)+"h":d>=e?Math.round(u/e)+"m":d>=t?Math.round(u/t)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=o?c(u,d,o,"day"):d>=n?c(u,d,n,"hour"):d>=e?c(u,d,e,"minute"):d>=t?c(u,d,t,"second"):u+" ms"}function c(u,d,m,f){var p=d>=m*1.5;return Math.round(u/m)+" "+f+(p?"s":"")}return Wm}function AR(t){n.debug=n,n.default=n,n.coerce=l,n.disable=s,n.enable=r,n.enabled=a,n.humanize=NR(),n.destroy=c,Object.keys(t).forEach(u=>{n[u]=t[u]}),n.names=[],n.skips=[],n.formatters={};function e(u){let d=0;for(let m=0;m<u.length;m++)d=(d<<5)-d+u.charCodeAt(m),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=e;function n(u){let d,m=null,f,p;function g(...h){if(!g.enabled)return;const y=g,w=Number(new Date),v=w-(d||w);y.diff=v,y.prev=d,y.curr=w,d=w,h[0]=n.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");let $=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,(S,C)=>{if(S==="%%")return"%";$++;const D=n.formatters[C];if(typeof D=="function"){const N=h[$];S=D.call(y,N),h.splice($,1),$--}return S}),n.formatArgs.call(y,h),(y.log||n.log).apply(y,h)}return g.namespace=u,g.useColors=n.useColors(),g.color=n.selectColor(u),g.extend=o,g.destroy=n.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(f!==n.namespaces&&(f=n.namespaces,p=n.enabled(u)),p),set:h=>{m=h}}),typeof n.init=="function"&&n.init(g),g}function o(u,d){const m=n(this.namespace+(typeof d>"u"?":":d)+u);return m.log=this.log,m}function r(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];const d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const m of d)m[0]==="-"?n.skips.push(m.slice(1)):n.names.push(m)}function i(u,d){let m=0,f=0,p=-1,g=0;for(;m<u.length;)if(f<d.length&&(d[f]===u[m]||d[f]==="*"))d[f]==="*"?(p=f,g=m,f++):(m++,f++);else if(p!==-1)f=p+1,g++,m=g;else return!1;for(;f<d.length&&d[f]==="*";)f++;return f===d.length}function s(){const u=[...n.names,...n.skips.map(d=>"-"+d)].join(",");return n.enable(""),u}function a(u){for(const d of n.skips)if(i(u,d))return!1;for(const d of n.names)if(i(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var DR=AR;(function(t,e){e.formatArgs=o,e.save=r,e.load=i,e.useColors=n,e.storage=s(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let l;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(u++,m==="%c"&&(d=u))}),l.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function r(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function i(){let l;try{l=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function s(){try{return localStorage}catch{}}t.exports=DR(e);const{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(Km,Km.exports);var RR=Km.exports;const OR=ER,Hw=RR;_m.exports=function(e){const n=OR.getCallerRoot();let o;try{const r=vo("/node_modules/@tryghost/debug/lib")(n+"/package.json");r.alias?o=r.alias:o=r.name}catch{o="undefined"}return Hw(o+":"+e)},_m.exports._base=Hw;var TR=_m.exports,MR=TR;const jR=[{code:"af",label:"Afrikaans"},{code:"ar",label:"Arabic"},{code:"bg",label:"Bulgarian"},{code:"bn",label:"Bengali"},{code:"bs",label:"Bosnian"},{code:"ca",label:"Catalan"},{code:"cs",label:"Czech"},{code:"da",label:"Danish"},{code:"de",label:"German"},{code:"de-CH",label:"Swiss German"},{code:"el",label:"Greek"},{code:"en",label:"English"},{code:"eo",label:"Esperanto"},{code:"es",label:"Spanish"},{code:"et",label:"Estonian"},{code:"eu",label:"Basque"},{code:"fa",label:"Persian/Farsi"},{code:"fi",label:"Finnish"},{code:"fr",label:"French"},{code:"gd",label:"Gaelic (Scottish)"},{code:"he",label:"Hebrew"},{code:"hi",label:"Hindi"},{code:"hr",label:"Croatian"},{code:"hu",label:"Hungarian"},{code:"id",label:"Indonesian"},{code:"is",label:"Icelandic"},{code:"it",label:"Italian"},{code:"ja",label:"Japanese"},{code:"ko",label:"Korean"},{code:"kz",label:"Kazakh"},{code:"lt",label:"Lithuanian"},{code:"lv",label:"Latvian"},{code:"mk",label:"Macedonian"},{code:"mn",label:"Mongolian"},{code:"ms",label:"Malay"},{code:"nb",label:"Norwegian Bokmål"},{code:"ne",label:"Nepali"},{code:"nl",label:"Dutch"},{code:"nn",label:"Norwegian Nynorsk"},{code:"pa",label:"Punjabi"},{code:"pl",label:"Polish"},{code:"pt",label:"Portuguese"},{code:"pt-BR",label:"Portuguese (Brazil)"},{code:"ro",label:"Romanian"},{code:"ru",label:"Russian"},{code:"si",label:"Sinhala"},{code:"sk",label:"Slovak"},{code:"sl",label:"Slovenian"},{code:"sq",label:"Albanian"},{code:"sr",label:"Serbian"},{code:"sr-Cyrl",label:"Serbian (Cyrillic)"},{code:"sv",label:"Swedish"},{code:"sw",label:"Swahili"},{code:"ta",label:"Tamil"},{code:"th",label:"Thai"},{code:"tr",label:"Turkish"},{code:"uk",label:"Ukrainian"},{code:"ur",label:"Urdu"},{code:"uz",label:"Uzbek"},{code:"vi",label:"Vietnamese"},{code:"zh",label:"Chinese"},{code:"zh-Hant",label:"Traditional Chinese"}],PR=uR,Vw=wr,qm=wr,Gm=MR("i18n"),Uw=jR,_w=Uw.map(t=>t.code);function Yw(t,e){return t.reduce((n,o)=>{let r;try{r=vo("/ghost/i18n/lib")(`../locales/${o}/${e}.json`)}catch{r=vo("/ghost/i18n/lib")(`../locales/en/${e}.json`)}return n[o]={[e]:{...r,...r.default&&typeof r.default=="object"?r.default:{}}},n},{})}function IR(t,e){if(!e)return{[t]:{theme:{}}};let n=[];try{n=qm.readdirSync(e).filter(i=>i.endsWith(".json")).map(i=>i.replace(".json",""))}catch{n=[t,"en"]}return[...new Set([t,...n,"en"])].reduce((r,i)=>{let s,a=!1;const l=Vw.join(e,`${i}.json`);if(qm.existsSync(l))try{delete require.cache[vo("/ghost/i18n/lib").resolve(l)],s=vo("/ghost/i18n/lib")(l)}catch{Gm(`Error loading theme locale file: ${i}`),a=!0}else a=!0;if(a)if(i!=="en")try{const c=Vw.join(e,"en.json");qm.existsSync(c)?(delete require.cache[vo("/ghost/i18n/lib").resolve(c)],s=vo("/ghost/i18n/lib")(c)):s={}}catch{s={}}else Gm("Theme en.json file not found"),s={};return r[i]={theme:{...s,...s.default&&typeof s.default=="object"?s.default:{}}},r},{})}Qi.exports=(t="en",e="portal",n={})=>{const o=PR.createInstance(),r={prefix:"{",suffix:"}"};e==="theme"&&(r.escapeValue=!1);let i;return e!=="theme"?i=Yw(_w,e):(Gm(`generateThemeResources: ${t}, ${n.themePath}`),i=IR(t,n.themePath)),o.init({lng:t,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:e,defaultNS:e,interpolation:r,resources:i}),o},Qi.exports.SUPPORTED_LOCALES=_w,Qi.exports.LOCALE_DATA=Uw,Qi.exports.generateResources=Yw;var LR=Qi.exports;const ns=LR;gr.exports=ns,gr.exports.default=ns,gr.exports.LOCALE_DATA=ns.LOCALE_DATA,gr.exports.SUPPORTED_LOCALES=ns.SUPPORTED_LOCALES,gr.exports.generateResources=ns.generateResources;var zR=gr.exports;const BR=zt(zR);function FR({siteUrl:t=window.location.origin,apiUrl:e,apiKey:n}){const o="members/api";function r({type:c,resource:u,params:d=""}){return`${t.replace(/\/$/,"")}/${o}/${u}/${d}`}function i({resource:c,params:u={}}){if(e&&n){const d=new URLSearchParams({...u,key:n});return`${e.replace(/\/$/,"")}/${c}/?${d.toString()}`}return""}function s({url:c,method:u="GET",headers:d={},credentials:m=void 0,body:f=void 0}){return fetch(c,{method:u,headers:d,credentials:m,body:f})}let a=null;const l={site:{settings(){const c=i({resource:"settings"});return s({url:c,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(u){if(u.ok)return u.json();throw new Error("Failed to fetch site data")})}},member:{identity(){const c=r({type:"members",resource:"session"});return s({url:c,credentials:"same-origin"}).then(function(u){return!u.ok||u.status===204?null:u.text()})},sessionData(){const c=r({type:"members",resource:"member"});return s({url:c,credentials:"same-origin"}).then(function(u){return!u.ok||u.status===204?null:u.json()})},update({name:c,expertise:u}){const d=r({type:"members",resource:"member"});return s({url:d,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({name:c,expertise:u})}).then(function(f){return f.ok?f.json():null})}},comments:{async count({postId:c}){const u=c?`?ids=${c}`:"",d=r({type:"members",resource:"comments/counts",params:u}),f=await(await s({url:d,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"})).json();return c?f[c]:f},browse({page:c,postId:u,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",c.toString()),d&&f.set("order",d);const p=r({type:"members",resource:`comments/post/${u}`,params:`?${f.toString()}`}),g=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||g.then(h=>{const y=h.comments[0];y&&(a=y.created_at)}),g},async replies({commentId:c,afterReplyId:u,limit:d}){var g,h,y;if(d==="all"){const w=[];let v=u,$=!0;for(;$;){const x=await this.replies({commentId:c,afterReplyId:v,limit:100});w.push(...x.comments),$=!!((h=(g=x.meta)==null?void 0:g.pagination)!=null&&h.next)&&x.comments.length>0,x.comments.length>0&&(v=(y=x.comments[x.comments.length-1])==null?void 0:y.id)}return{comments:w,meta:{pagination:{next:!1}}}}const m=new URLSearchParams;m.set("limit",(d??5).toString()),u&&m.set("filter",`id:>'${u}'`);const f=r({type:"members",resource:`comments/${c}/replies`,params:`?${m.toString()}`}),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:c}){const u={comments:[c]},d=r({type:"members",resource:"comments"});return s({url:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to add comment")})},edit({comment:c}){const u={comments:[c]},d=r({type:"members",resource:`comments/${c.id}`});return s({url:d,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to edit comment")})},read(c){const u=r({type:"members",resource:`comments/${c}`});return s({url:u,method:"GET",credentials:"same-origin"}).then(function(d){if(d.ok)return d.json();throw new Error("Failed to read comment")})},like({comment:c}){const u=r({type:"members",resource:`comments/${c.id}/like`});return s({url:u,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to like comment")})},unlike({comment:c}){const u={comments:[c]},d=r({type:"members",resource:`comments/${c.id}/like`});return s({url:d,method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(m){if(m.ok)return"Success";throw new Error("Failed to unlike comment")})},report({comment:c}){const u=r({type:"members",resource:`comments/${c.id}/report`});return s({url:u,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to report comment")})}},init:()=>{}};return l.init=async()=>{const[c]=await Promise.all([l.member.sessionData()]);let u={},d=null;try{const m=await l.site.settings();m.settings.labs&&Object.assign(u,m.settings.labs),d=m.settings.support_email_address||null}catch{u={}}return{member:c,labs:u,supportEmail:d}},l}async function HR({state:t,api:e,options:n,order:o}){var l;let r=1;t.pagination&&t.pagination.page&&(r=t.pagination.page+1);let i;return t.admin&&t.adminApi?i=await t.adminApi.browse({page:r,postId:n.postId,order:o||t.order,memberUuid:(l=t.member)==null?void 0:l.uuid}):i=await e.comments.browse({page:r,postId:n.postId,order:o||t.order}),{comments:[...t.comments,...i.comments].filter((c,u,d)=>d.findIndex(m=>m.id===c.id)===u),pagination:i.meta.pagination}}function VR({data:t}){return{commentsIsLoading:t}}async function UR({state:t,data:{order:e},options:n,api:o,dispatchAction:r}){var i;r("setCommentsIsLoading",!0);try{let s;return t.admin&&t.adminApi?s=await t.adminApi.browse({page:1,postId:n.postId,order:e,memberUuid:(i=t.member)==null?void 0:i.uuid}):s=await o.comments.browse({page:1,postId:n.postId,order:e}),{comments:[...s.comments],pagination:s.meta.pagination,order:e,commentsIsLoading:!1}}catch(s){throw console.error("Failed to set order:",s),t.commentsIsLoading=!1,s}}async function Jw({state:t,api:e,data:{comment:n,limit:o},isReply:r}){var l,c,u,d;const i=async(m,f)=>{var p;return t.admin&&t.adminApi&&!r?await t.adminApi.replies({commentId:n.id,afterReplyId:m,limit:f,memberUuid:(p=t.member)==null?void 0:p.uuid}):await e.comments.replies({commentId:n.id,afterReplyId:m,limit:f})};let s=n.replies&&n.replies.length>0?(l=n.replies[n.replies.length-1])==null?void 0:l.id:void 0,a=[];if(o==="all"){let m=!0;for(;m;){const f=await i(s,100);a.push(...f.comments),m=!!((u=(c=f.meta)==null?void 0:c.pagination)!=null&&u.next),f.comments&&f.comments.length>0?s=(d=f.comments[f.comments.length-1])==null?void 0:d.id:m=!1}}else a=(await i(s,o||100)).comments;return{comments:t.comments.map(m=>m.id===n.id?{...n,replies:[...n.replies,...a]}:m)}}async function _R({state:t,api:e,data:n}){const r=(await e.comments.add({comment:n})).comments[0];return{comments:[r,...t.comments],commentCount:t.commentCount+1,commentIdToScrollTo:r.id}}async function YR({state:t,api:e,data:{reply:n,parent:o}}){const i=(await e.comments.add({comment:{...n,parent_id:o.id}})).comments[0],s=await e.comments.replies({commentId:o.id,limit:"all"});return{comments:t.comments.map(a=>a.id===o.id?{...a,replies:s.comments,count:{...a.count,replies:s.comments.length}}:a),commentCount:t.commentCount+1,commentIdToScrollTo:i.id}}async function JR({state:t,data:e}){return t.adminApi&&await t.adminApi.hideComment(e.id),{comments:t.comments.map(n=>{const o=n.replies.map(r=>r.id===e.id?{...r,status:"hidden"}:r);return n.id===e.id?{...n,status:"hidden",replies:o}:{...n,replies:o}}),commentCount:t.commentCount-1}}async function KR({state:t,api:e,data:n}){var i;t.adminApi&&await t.adminApi.showComment({id:n.id});let o;t.admin&&t.adminApi?o=await t.adminApi.read({commentId:n.id,memberUuid:(i=t.member)==null?void 0:i.uuid}):o=await e.comments.read(n.id);const r=o.comments[0];return{comments:t.comments.map(s=>{const a=s.replies.map(l=>l.id===n.id?r:l);return s.id===n.id?r:{...s,replies:a}}),commentCount:t.commentCount+1}}async function WR({state:t,data:e}){return{comments:t.comments.map(n=>{const o=n.replies.map(r=>r.id===e.id?{...r,liked:e.liked,count:{...r.count,likes:e.liked?r.count.likes+1:r.count.likes-1}}:r);return n.id===e.id?{...n,liked:e.liked,replies:o,count:{...n.count,likes:e.liked?n.count.likes+1:n.count.likes-1}}:{...n,replies:o}})}}async function qR({api:t,data:e,dispatchAction:n}){n("updateCommentLikeState",{id:e.id,liked:!0});try{return await t.comments.like({comment:e}),{}}catch{n("updateCommentLikeState",{id:e.id,liked:!1})}}async function GR({api:t,data:e,dispatchAction:n}){n("updateCommentLikeState",{id:e.id,liked:!1});try{return await t.comments.unlike({comment:e}),{}}catch{n("updateCommentLikeState",{id:e.id,liked:!0})}}async function QR({api:t,data:e}){return await t.comments.report({comment:e}),{}}async function ZR({state:t,api:e,data:n,dispatchAction:o}){await e.comments.edit({comment:{id:n.id,status:"deleted"}});const r=t.comments.find(i=>i.id===n.id);return r&&(!r.replies||r.replies.length===0)?(o("setOrder",{order:t.order}),null):{comments:t.comments.map(i=>{var u;if(i.id===n.id)return i.replies.length>0?{...i,status:"deleted"}:null;const s=i.replies.length,a=i.replies.filter(d=>d.id!==n.id),l=s!==a.length,c={...i,replies:a};return l&&((u=i.count)!=null&&u.replies)&&(i.count.replies=i.count.replies-1),c}).filter(Boolean),commentCount:t.commentCount-1}}async function XR({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 eO({data:t,state:e,api:n}){var l,c;const{name:o,expertise:r}=t,i={},s=(l=e==null?void 0:e.member)==null?void 0:l.name;o&&s!==o&&(i.name=o);const a=(c=e==null?void 0:e.member)==null?void 0:c.expertise;if(r!==void 0&&a!==r&&(i.expertise=r),Object.keys(i).length>0)try{const u=await n.member.update(i);if(!u)throw new Error("Failed to update member");return{member:u,success:!0}}catch(u){return{success:!1,error:u}}return null}function tO({data:t}){return{popup:t}}function nO(){return{popup:null}}async function oO({data:t,api:e,state:n}){let o={};const r=t.parent_id||t.id;if(t.type==="reply"&&!n.openCommentForms.some(a=>a.id===r||a.parent_id===r)){const a=n.comments.find(l=>l.id===r);if(a)try{const l=await Jw({state:n,api:e,data:{comment:a,limit:"all"},isReply:!0});o={...o,...l}}catch(l){console.error("[Comments] Failed to load replies before opening form:",l)}}const i=n.openCommentForms.filter(a=>a.hasUnsavedChanges),s=i.findIndex(a=>a.id===t.id);return s>-1?(i[s]=t,{openCommentForms:i,...o}):{openCommentForms:[...i,t],...o}}function rO({data:t}){return{commentIdToHighlight:t}}function iO({data:{commentId:t},dispatchAction:e}){return setTimeout(()=>{e("setHighlightComment",null)},3e3),{commentIdToHighlight:t}}function sO({data:{id:t,hasUnsavedChanges:e},state:n}){return{openCommentForms:n.openCommentForms.map(r=>r.id===t?{...r,hasUnsavedChanges:e}:{...r})}}function aO({data:t,state:e}){return{openCommentForms:e.openCommentForms.filter(n=>n.id!==t)}}function lO({data:t}){return{commentIdToScrollTo:t}}const Kw={openPopup:tO,closePopup:nO,closeCommentForm:aO,setCommentFormHasUnsavedChanges:sO,setScrollTarget:lO},cO={addComment:_R,editComment:XR,hideComment:JR,deleteComment:ZR,showComment:KR,likeComment:qR,unlikeComment:GR,reportComment:QR,addReply:YR,loadMoreComments:HR,loadMoreReplies:Jw,openCommentForm:oO,updateMember:eO,setOrder:UR,highlightComment:iO,setHighlightComment:rO,setCommentsIsLoading:VR,updateCommentLikeState:WR};function uO(t){return!!Kw[t]}async function dO({action:t,data:e,state:n,api:o,adminApi:r,options:i,dispatchAction:s}){const a=cO[t];return a?await a({data:e,state:n,api:o,adminApi:r,options:i,dispatchAction:s})||{}:{}}function mO({action:t,data:e,state:n,api:o,adminApi:r,options:i}){const s=Kw[t];return s?s({data:e,state:n,api:o,adminApi:r,options:i})||{}:{}}function fO({adminUrl:t}){const e=document.querySelector('iframe[data-frame="admin-auth"]');let n=1;const o={},r=new URL(t).origin;let i=null;window.addEventListener("message",function(l){if(l.origin!==r)return;let c=null;try{c=JSON.parse(l.data)}catch{return}const u=o[c.uid];u&&(delete o[c.uid],u(c.error,c.result))});function s(l,c){return new Promise((u,d)=>{function m(f,p){return f?d(f):u(p)}n+=1,o[n]=m,e.contentWindow.postMessage(JSON.stringify({uid:n,action:l,...c}),r)})}return{async getUser(){const l=await s("getUser");return!l||!l.users?null:l.users[0]},async hideComment(l){return await s("hideComment",{id:l})},async showComment({id:l}){return await s("showComment",{id:l})},async browse({page:l,postId:c,order:u,memberUuid:d}){let m=null;i&&!u&&(m=`created_at:<=${i}`);const f=new URLSearchParams;f.set("limit","20"),m&&f.set("filter",m),f.set("page",l.toString()),u&&f.set("order",u),d&&f.set("impersonate_member_uuid",d);const p=await s("browseComments",{postId:c,params:f.toString()});if(!i){const g=p.comments[0];g&&(i=g.created_at)}return p},async replies({commentId:l,afterReplyId:c,limit:u,memberUuid:d}){const m=new URLSearchParams;return u&&m.set("limit",u.toString()),c&&m.set("filter",`id:>'${c}'`),d&&m.set("impersonate_member_uuid",d),await s("getReplies",{commentId:l,params:m.toString()})},async read({commentId:l,memberUuid:c}){const u=new URLSearchParams;return c&&u.set("impersonate_member_uuid",c),await s("readComment",{commentId:l,...u.toString()&&{params:u.toString()}})}}}function pO(t){const e=q.useCallback(()=>{const i=t.dataset,s=i.ghostComments||window.location.origin,a=i.key,l=i.api,c=i.admin,u=i.postId||"",d=i.colorScheme,m=i.avatarSaturation?parseInt(i.avatarSaturation):void 0,f=i.accentColor??"#000000",p=i.commentsEnabled,g=i.title==="null"?null:i.title??"",h=i.count==="true",y=i.publication??"";return{locale:i.locale??"en",siteUrl:s,apiKey:a,apiUrl:l,postId:u,adminUrl:c,colorScheme:d,avatarSaturation:m,accentColor:f,commentsEnabled:p,title:g,showCount:h,publication:y}},[t]),n=k.useMemo(()=>e(),[]),[o,r]=q.useState(n);return q.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 hO=["Owner","Administrator","Super Editor"];function Qm(t,e){return t.some(n=>{var o;return n.id===e||((o=n.replies)==null?void 0:o.some(r=>r.id===e))})}const gO=({scriptTag:t,initialCommentId:e,pageUrl:n})=>{const o=pO(t),[r,i]=k.useState({initStatus:"running",member:null,admin:null,comments:[],pagination:null,commentCount:0,openCommentForms:[],popup:null,labs:{},order:"count__likes desc, created_at desc",adminApi:null,commentsIsLoading:!1,commentIdToHighlight:null,commentIdToScrollTo:e,showMissingCommentNotice:!1,pageUrl:n,supportEmail:null,isMember:!1,isAdmin:!1,isPaidOnly:!1,hasRequiredTier:!0,isCommentingDisabled:!1}),s=q.createRef(),a=q.useMemo(()=>FR({siteUrl:o.siteUrl,apiUrl:o.apiUrl,apiKey:o.apiKey}),[o]),l=k.useCallback(v=>{i($=>(typeof v=="function"&&(v=v($)),{...$,...v}))},[i]),c=k.useCallback(async(v,$)=>{if(uO(v)){l(x=>mO({action:v,data:$,state:x,api:a,adminApi:x.adminApi,options:o}));return}return new Promise(x=>{l(S=>(dO({action:v,data:$,state:S,api:a,adminApi:S.adminApi,options:o,dispatchAction:c}).then(C=>{const D={...C};x(D),l(D)}).catch(console.error),{}))})},[a,o]),u=k.useMemo(()=>BR(o.locale,"comments"),[o.locale]),d={...o,...r,t:u.t,dispatchAction:c,openFormCount:k.useMemo(()=>r.openCommentForms.length,[r.openCommentForms])},m=async()=>{var v;if(!(r.adminApi||!o.adminUrl))try{const $=fO({adminUrl:o.adminUrl});let x=null;try{if(x=await $.getUser(),(!x||!x.roles.some(S=>hO.includes(S.name)))&&(x=null),x){const S=await $.browse({page:1,postId:o.postId,order:r.order,memberUuid:(v=r.member)==null?void 0:v.uuid});l(C=>C.pagination&&C.pagination.page>1||e?{adminApi:$,admin:x,isAdmin:!0}:{adminApi:$,admin:x,isAdmin:!0,comments:S.comments,pagination:S.meta.pagination})}}catch(S){console.warn("[Comments] Failed to fetch admin endpoint:",S)}l({adminApi:$,admin:x,isAdmin:!!x})}catch($){console.error("[Comments] Failed to initialize admin authentication:",$)}},f=async()=>{const v=a.comments.browse({page:1,postId:o.postId,order:r.order}),$=a.comments.count({postId:o.postId}),[x,S]=await Promise.all([v,$]);return{comments:x.comments,pagination:x.meta.pagination,count:S}},p=async v=>{var $;try{const S=($=(await a.comments.read(v)).comments)==null?void 0:$[0];return S&&S.status==="published"?S:null}catch{return null}},g=async(v,$,x,S)=>{let C=x,D=S;for(;!Qm(C,v)&&D.page<D.pages&&!($&&C.some(F=>F.id===$));){const N=await a.comments.browse({page:D.page+1,postId:o.postId,order:r.order});C=[...C,...N.comments],D=N.meta.pagination}return{comments:C,pagination:D}},h=async(v,$,x,S)=>{const C=$.parent_id,{comments:D,pagination:N}=await g(v,C,x,S);let F=D;if(C&&!Qm(F,v)){const{comments:ne}=await a.comments.replies({commentId:C,limit:"all"});F=F.map(ee=>ee.id===C?{...ee,replies:ne}:ee)}return{comments:F,pagination:N,found:Qm(F,v)}},y=async()=>{try{const{member:v,labs:$,supportEmail:x}=await a.init(),{count:S,comments:C,pagination:D}=await f();let N=C,F=D,ne=!1;if(e&&F){const E=await p(e);if(E){const A=await h(e,E,N,F);N=A.comments,F=A.pagination,ne=A.found}}const oe=!!v,ge=o.commentsEnabled==="paid",de=!!(v!=null&&v.paid)||!ge;l({member:v,initStatus:"success",comments:N,pagination:F,commentCount:S,order:"count__likes desc, created_at desc",labs:$,commentsIsLoading:!1,commentIdToHighlight:null,commentIdToScrollTo:ne?e:null,showMissingCommentNotice:!!e&&!ne,supportEmail:x,isMember:oe,isPaidOnly:ge,hasRequiredTier:de,isCommentingDisabled:(v==null?void 0:v.can_comment)===!1})}catch(v){console.error("[Comments] Failed to initialize:",v),l({initStatus:"failed"})}};k.useEffect(()=>{if(e){y();return}const v=new IntersectionObserver($=>{$.forEach(x=>{x.isIntersecting&&(y(),s.current&&v.unobserve(s.current))})},{root:null,rootMargin:"0px",threshold:.1});return s.current&&v.observe(s.current),()=>{s.current&&v.unobserve(s.current)}},[s.current,e]);const w=r.initStatus==="success";return b.jsxs(ql.Provider,{value:d,children:[b.jsx(xA,{ref:s,children:b.jsx(wA,{done:w})}),r.comments.length>0?b.jsx(cv,{adminUrl:o.adminUrl,onLoad:m}):null,b.jsx(OA,{})]})};function yO(){let t=document.currentScript;if(!t)throw new Error("[Comments-UI] Cannot find current script tag");return t}function bO(t){if(t.previousElementSibling&&t.previousElementSibling.id===hr)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=hr,t.parentElement.insertBefore(e,t),e}function wO(){const t=new URL(window.location.href);t.searchParams.get("token")&&(t.searchParams.delete("token"),window.history.replaceState({},document.title,t.href))}function vO(){const t=new URL(window.location.href);return t.hash="",t.toString()}function $O(){const t=yO(),e=bO(t),n=Of(window.location.hash),o=vO();try{wO(),mb.render(b.jsx(q.StrictMode,{children:b.jsx(gO,{initialCommentId:n,pageUrl:o,scriptTag:t})}),e)}catch(r){console.error(r)}}$O()});
171
171
  //# sourceMappingURL=comments-ui.min.js.map