@confidencesystemsinc/sdk 2.0.13 → 2.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,35 +1,35 @@
1
- "use strict";require('./index.css');var q1=Object.defineProperty;var Rh=e=>{throw TypeError(e)};var V1=(e,t,n)=>t in e?q1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var D=(e,t,n)=>V1(e,typeof t!="symbol"?t+"":t,n),yl=(e,t,n)=>t.has(e)||Rh("Cannot "+n);var k=(e,t,n)=>(yl(e,t,"read from private field"),n?n.call(e):t.get(e)),ue=(e,t,n)=>t.has(e)?Rh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ne=(e,t,n,r)=>(yl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),be=(e,t,n)=>(yl(e,t,"access private method"),n);var ha=(e,t,n,r)=>({set _(o){ne(e,t,o,n)},get _(){return k(e,t,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),Wt=require("react-dom"),T=require("react"),Y1=require("react-dom/server");function g0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Q1=g0(Wt),C=g0(T);function G1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ma={exports:{}},pa={exports:{}},Ne={};/** @license React v16.13.1
1
+ "use strict";require('./index.css');var aw=Object.defineProperty;var jh=e=>{throw TypeError(e)};var cw=(e,t,n)=>t in e?aw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var F=(e,t,n)=>cw(e,typeof t!="symbol"?t+"":t,n),bl=(e,t,n)=>t.has(e)||jh("Cannot "+n);var T=(e,t,n)=>(bl(e,t,"read from private field"),n?n.call(e):t.get(e)),ue=(e,t,n)=>t.has(e)?jh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ne=(e,t,n,r)=>(bl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ve=(e,t,n)=>(bl(e,t,"access private method"),n);var ga=(e,t,n,r)=>({set _(o){ne(e,t,o,n)},get _(){return T(e,t,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),Wt=require("react-dom"),k=require("react"),lw=require("react-dom/server");function x0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const fw=x0(Wt),C=x0(k);function uw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ya={exports:{}},ba={exports:{}},Ne={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var Dh;function Z1(){if(Dh)return Ne;Dh=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(A){if(typeof A=="object"&&A!==null){var _=A.$$typeof;switch(_){case t:switch(A=A.type,A){case c:case l:case r:case i:case o:case u:return A;default:switch(A=A&&A.$$typeof,A){case a:case f:case m:case h:case s:return A;default:return _}}case n:return _}}}function w(A){return x(A)===l}return Ne.AsyncMode=c,Ne.ConcurrentMode=l,Ne.ContextConsumer=a,Ne.ContextProvider=s,Ne.Element=t,Ne.ForwardRef=f,Ne.Fragment=r,Ne.Lazy=m,Ne.Memo=h,Ne.Portal=n,Ne.Profiler=i,Ne.StrictMode=o,Ne.Suspense=u,Ne.isAsyncMode=function(A){return w(A)||x(A)===c},Ne.isConcurrentMode=w,Ne.isContextConsumer=function(A){return x(A)===a},Ne.isContextProvider=function(A){return x(A)===s},Ne.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},Ne.isForwardRef=function(A){return x(A)===f},Ne.isFragment=function(A){return x(A)===r},Ne.isLazy=function(A){return x(A)===m},Ne.isMemo=function(A){return x(A)===h},Ne.isPortal=function(A){return x(A)===n},Ne.isProfiler=function(A){return x(A)===i},Ne.isStrictMode=function(A){return x(A)===o},Ne.isSuspense=function(A){return x(A)===u},Ne.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===l||A===i||A===o||A===u||A===d||typeof A=="object"&&A!==null&&(A.$$typeof===m||A.$$typeof===h||A.$$typeof===s||A.$$typeof===a||A.$$typeof===f||A.$$typeof===p||A.$$typeof===y||A.$$typeof===b||A.$$typeof===g)},Ne.typeOf=x,Ne}var Oe={};/** @license React v16.13.1
8
+ */var zh;function dw(){if(zh)return Ne;zh=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(A){if(typeof A=="object"&&A!==null){var E=A.$$typeof;switch(E){case t:switch(A=A.type,A){case c:case l:case r:case i:case o:case u:return A;default:switch(A=A&&A.$$typeof,A){case a:case f:case m:case h:case s:return A;default:return E}}case n:return E}}}function w(A){return x(A)===l}return Ne.AsyncMode=c,Ne.ConcurrentMode=l,Ne.ContextConsumer=a,Ne.ContextProvider=s,Ne.Element=t,Ne.ForwardRef=f,Ne.Fragment=r,Ne.Lazy=m,Ne.Memo=h,Ne.Portal=n,Ne.Profiler=i,Ne.StrictMode=o,Ne.Suspense=u,Ne.isAsyncMode=function(A){return w(A)||x(A)===c},Ne.isConcurrentMode=w,Ne.isContextConsumer=function(A){return x(A)===a},Ne.isContextProvider=function(A){return x(A)===s},Ne.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},Ne.isForwardRef=function(A){return x(A)===f},Ne.isFragment=function(A){return x(A)===r},Ne.isLazy=function(A){return x(A)===m},Ne.isMemo=function(A){return x(A)===h},Ne.isPortal=function(A){return x(A)===n},Ne.isProfiler=function(A){return x(A)===i},Ne.isStrictMode=function(A){return x(A)===o},Ne.isSuspense=function(A){return x(A)===u},Ne.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===l||A===i||A===o||A===u||A===d||typeof A=="object"&&A!==null&&(A.$$typeof===m||A.$$typeof===h||A.$$typeof===s||A.$$typeof===a||A.$$typeof===f||A.$$typeof===g||A.$$typeof===y||A.$$typeof===b||A.$$typeof===p)},Ne.typeOf=x,Ne}var Oe={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var Fh;function J1(){return Fh||(Fh=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(G){return typeof G=="string"||typeof G=="function"||G===r||G===l||G===i||G===o||G===u||G===d||typeof G=="object"&&G!==null&&(G.$$typeof===m||G.$$typeof===h||G.$$typeof===s||G.$$typeof===a||G.$$typeof===f||G.$$typeof===p||G.$$typeof===y||G.$$typeof===b||G.$$typeof===g)}function w(G){if(typeof G=="object"&&G!==null){var qe=G.$$typeof;switch(qe){case t:var zt=G.type;switch(zt){case c:case l:case r:case i:case o:case u:return zt;default:var pt=zt&&zt.$$typeof;switch(pt){case a:case f:case m:case h:case s:return pt;default:return qe}}case n:return qe}}}var A=c,_=l,S=a,E=s,N=t,P=f,I=r,W=m,j=h,z=n,Y=i,Q=o,oe=u,M=!1;function re(G){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(G)||w(G)===c}function L(G){return w(G)===l}function F(G){return w(G)===a}function K(G){return w(G)===s}function U(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function J(G){return w(G)===f}function V(G){return w(G)===r}function ee(G){return w(G)===m}function te(G){return w(G)===h}function me(G){return w(G)===n}function ye(G){return w(G)===i}function pe(G){return w(G)===o}function ze(G){return w(G)===u}Oe.AsyncMode=A,Oe.ConcurrentMode=_,Oe.ContextConsumer=S,Oe.ContextProvider=E,Oe.Element=N,Oe.ForwardRef=P,Oe.Fragment=I,Oe.Lazy=W,Oe.Memo=j,Oe.Portal=z,Oe.Profiler=Y,Oe.StrictMode=Q,Oe.Suspense=oe,Oe.isAsyncMode=re,Oe.isConcurrentMode=L,Oe.isContextConsumer=F,Oe.isContextProvider=K,Oe.isElement=U,Oe.isForwardRef=J,Oe.isFragment=V,Oe.isLazy=ee,Oe.isMemo=te,Oe.isPortal=me,Oe.isProfiler=ye,Oe.isStrictMode=pe,Oe.isSuspense=ze,Oe.isValidElementType=x,Oe.typeOf=w})()),Oe}var jh;function y0(){return jh||(jh=1,process.env.NODE_ENV==="production"?pa.exports=Z1():pa.exports=J1()),pa.exports}/*
15
+ */var $h;function hw(){return $h||($h=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(Q){return typeof Q=="string"||typeof Q=="function"||Q===r||Q===l||Q===i||Q===o||Q===u||Q===d||typeof Q=="object"&&Q!==null&&(Q.$$typeof===m||Q.$$typeof===h||Q.$$typeof===s||Q.$$typeof===a||Q.$$typeof===f||Q.$$typeof===g||Q.$$typeof===y||Q.$$typeof===b||Q.$$typeof===p)}function w(Q){if(typeof Q=="object"&&Q!==null){var qe=Q.$$typeof;switch(qe){case t:var zt=Q.type;switch(zt){case c:case l:case r:case i:case o:case u:return zt;default:var pt=zt&&zt.$$typeof;switch(pt){case a:case f:case m:case h:case s:return pt;default:return qe}}case n:return qe}}}var A=c,E=l,_=a,S=s,O=t,P=f,I=r,$=m,D=h,j=n,K=i,G=o,oe=u,M=!1;function re(Q){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(Q)||w(Q)===c}function L(Q){return w(Q)===l}function z(Q){return w(Q)===a}function H(Q){return w(Q)===s}function W(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===t}function J(Q){return w(Q)===f}function Y(Q){return w(Q)===r}function ee(Q){return w(Q)===m}function te(Q){return w(Q)===h}function me(Q){return w(Q)===n}function ye(Q){return w(Q)===i}function pe(Q){return w(Q)===o}function ze(Q){return w(Q)===u}Oe.AsyncMode=A,Oe.ConcurrentMode=E,Oe.ContextConsumer=_,Oe.ContextProvider=S,Oe.Element=O,Oe.ForwardRef=P,Oe.Fragment=I,Oe.Lazy=$,Oe.Memo=D,Oe.Portal=j,Oe.Profiler=K,Oe.StrictMode=G,Oe.Suspense=oe,Oe.isAsyncMode=re,Oe.isConcurrentMode=L,Oe.isContextConsumer=z,Oe.isContextProvider=H,Oe.isElement=W,Oe.isForwardRef=J,Oe.isFragment=Y,Oe.isLazy=ee,Oe.isMemo=te,Oe.isPortal=me,Oe.isProfiler=ye,Oe.isStrictMode=pe,Oe.isSuspense=ze,Oe.isValidElementType=x,Oe.typeOf=w})()),Oe}var Bh;function w0(){return Bh||(Bh=1,process.env.NODE_ENV==="production"?ba.exports=dw():ba.exports=hw()),ba.exports}/*
16
16
  object-assign
17
17
  (c) Sindre Sorhus
18
18
  @license MIT
19
- */var bl,zh;function X1(){if(zh)return bl;zh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(s).map(function(f){return s[f]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return bl=o()?Object.assign:function(i,s){for(var a,c=r(i),l,f=1;f<arguments.length;f++){a=Object(arguments[f]);for(var u in a)t.call(a,u)&&(c[u]=a[u]);if(e){l=e(a);for(var d=0;d<l.length;d++)n.call(a,l[d])&&(c[l[d]]=a[l[d]])}}return c},bl}var vl,$h;function ed(){if($h)return vl;$h=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return vl=e,vl}var xl,Bh;function b0(){return Bh||(Bh=1,xl=Function.call.bind(Object.prototype.hasOwnProperty)),xl}var wl,Uh;function ew(){if(Uh)return wl;Uh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ed(),n={},r=b0();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,a,c,l){if(process.env.NODE_ENV!=="production"){for(var f in i)if(r(i,f)){var u;try{if(typeof i[f]!="function"){var d=Error((c||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=i[f](s,f,c,a,null,t)}catch(m){u=m}if(u&&!(u instanceof Error)&&e((c||"React class")+": type specification of "+a+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var h=l?l():"";e("Failed "+a+" type: "+u.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},wl=o,wl}var Al,Wh;function tw(){if(Wh)return Al;Wh=1;var e=y0(),t=X1(),n=ed(),r=b0(),o=ew(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var c="Warning: "+a;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return Al=function(a,c){var l=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function u(L){var F=L&&(l&&L[l]||L[f]);if(typeof F=="function")return F}var d="<<anonymous>>",h={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:b(),arrayOf:x,element:w(),elementType:A(),instanceOf:_,node:P(),objectOf:E,oneOf:S,oneOfType:N,shape:W,exact:j};function m(L,F){return L===F?L!==0||1/L===1/F:L!==L&&F!==F}function g(L,F){this.message=L,this.data=F&&typeof F=="object"?F:{},this.stack=""}g.prototype=Error.prototype;function p(L){if(process.env.NODE_ENV!=="production")var F={},K=0;function U(V,ee,te,me,ye,pe,ze){if(me=me||d,pe=pe||te,ze!==n){if(c){var G=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw G.name="Invariant Violation",G}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var qe=me+":"+te;!F[qe]&&K<3&&(i("You are manually calling a React.PropTypes validation function for the `"+pe+"` prop on `"+me+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),F[qe]=!0,K++)}}return ee[te]==null?V?ee[te]===null?new g("The "+ye+" `"+pe+"` is marked as required "+("in `"+me+"`, but its value is `null`.")):new g("The "+ye+" `"+pe+"` is marked as required in "+("`"+me+"`, but its value is `undefined`.")):null:L(ee,te,me,ye,pe)}var J=U.bind(null,!1);return J.isRequired=U.bind(null,!0),J}function y(L){function F(K,U,J,V,ee,te){var me=K[U],ye=Q(me);if(ye!==L){var pe=oe(me);return new g("Invalid "+V+" `"+ee+"` of type "+("`"+pe+"` supplied to `"+J+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return p(F)}function b(){return p(s)}function x(L){function F(K,U,J,V,ee){if(typeof L!="function")return new g("Property `"+ee+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var te=K[U];if(!Array.isArray(te)){var me=Q(te);return new g("Invalid "+V+" `"+ee+"` of type "+("`"+me+"` supplied to `"+J+"`, expected an array."))}for(var ye=0;ye<te.length;ye++){var pe=L(te,ye,J,V,ee+"["+ye+"]",n);if(pe instanceof Error)return pe}return null}return p(F)}function w(){function L(F,K,U,J,V){var ee=F[K];if(!a(ee)){var te=Q(ee);return new g("Invalid "+J+" `"+V+"` of type "+("`"+te+"` supplied to `"+U+"`, expected a single ReactElement."))}return null}return p(L)}function A(){function L(F,K,U,J,V){var ee=F[K];if(!e.isValidElementType(ee)){var te=Q(ee);return new g("Invalid "+J+" `"+V+"` of type "+("`"+te+"` supplied to `"+U+"`, expected a single ReactElement type."))}return null}return p(L)}function _(L){function F(K,U,J,V,ee){if(!(K[U]instanceof L)){var te=L.name||d,me=re(K[U]);return new g("Invalid "+V+" `"+ee+"` of type "+("`"+me+"` supplied to `"+J+"`, expected ")+("instance of `"+te+"`."))}return null}return p(F)}function S(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function F(K,U,J,V,ee){for(var te=K[U],me=0;me<L.length;me++)if(m(te,L[me]))return null;var ye=JSON.stringify(L,function(ze,G){var qe=oe(G);return qe==="symbol"?String(G):G});return new g("Invalid "+V+" `"+ee+"` of value `"+String(te)+"` "+("supplied to `"+J+"`, expected one of "+ye+"."))}return p(F)}function E(L){function F(K,U,J,V,ee){if(typeof L!="function")return new g("Property `"+ee+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var te=K[U],me=Q(te);if(me!=="object")return new g("Invalid "+V+" `"+ee+"` of type "+("`"+me+"` supplied to `"+J+"`, expected an object."));for(var ye in te)if(r(te,ye)){var pe=L(te,ye,J,V,ee+"."+ye,n);if(pe instanceof Error)return pe}return null}return p(F)}function N(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var F=0;F<L.length;F++){var K=L[F];if(typeof K!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(K)+" at index "+F+"."),s}function U(J,V,ee,te,me){for(var ye=[],pe=0;pe<L.length;pe++){var ze=L[pe],G=ze(J,V,ee,te,me,n);if(G==null)return null;G.data&&r(G.data,"expectedType")&&ye.push(G.data.expectedType)}var qe=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new g("Invalid "+te+" `"+me+"` supplied to "+("`"+ee+"`"+qe+"."))}return p(U)}function P(){function L(F,K,U,J,V){return z(F[K])?null:new g("Invalid "+J+" `"+V+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return p(L)}function I(L,F,K,U,J){return new g((L||"React class")+": "+F+" type `"+K+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function W(L){function F(K,U,J,V,ee){var te=K[U],me=Q(te);if(me!=="object")return new g("Invalid "+V+" `"+ee+"` of type `"+me+"` "+("supplied to `"+J+"`, expected `object`."));for(var ye in L){var pe=L[ye];if(typeof pe!="function")return I(J,V,ee,ye,oe(pe));var ze=pe(te,ye,J,V,ee+"."+ye,n);if(ze)return ze}return null}return p(F)}function j(L){function F(K,U,J,V,ee){var te=K[U],me=Q(te);if(me!=="object")return new g("Invalid "+V+" `"+ee+"` of type `"+me+"` "+("supplied to `"+J+"`, expected `object`."));var ye=t({},K[U],L);for(var pe in ye){var ze=L[pe];if(r(L,pe)&&typeof ze!="function")return I(J,V,ee,pe,oe(ze));if(!ze)return new g("Invalid "+V+" `"+ee+"` key `"+pe+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(K[U],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(L),null," "));var G=ze(te,pe,J,V,ee+"."+pe,n);if(G)return G}return null}return p(F)}function z(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(z);if(L===null||a(L))return!0;var F=u(L);if(F){var K=F.call(L),U;if(F!==L.entries){for(;!(U=K.next()).done;)if(!z(U.value))return!1}else for(;!(U=K.next()).done;){var J=U.value;if(J&&!z(J[1]))return!1}}else return!1;return!0;default:return!1}}function Y(L,F){return L==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function Q(L){var F=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":Y(F,L)?"symbol":F}function oe(L){if(typeof L>"u"||L===null)return""+L;var F=Q(L);if(F==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return F}function M(L){var F=oe(L);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function re(L){return!L.constructor||!L.constructor.name?d:L.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},Al}var Cl,Kh;function nw(){if(Kh)return Cl;Kh=1;var e=ed();function t(){}function n(){}return n.resetWarningCache=t,Cl=function(){function r(s,a,c,l,f,u){if(u!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Cl}var Hh;function rw(){if(Hh)return ma.exports;if(Hh=1,process.env.NODE_ENV!=="production"){var e=y0(),t=!0;ma.exports=tw()(e.isElement,t)}else ma.exports=nw()();return ma.exports}var ow=rw();const ge=G1(ow);var iw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function v0(e,t){return e(t={exports:{}},t.exports),t.exports}var sw=v0((function(e){(function(t){var n=function(p,y,b){if(!c(y)||f(y)||u(y)||d(y)||a(y))return y;var x,w=0,A=0;if(l(y))for(x=[],A=y.length;w<A;w++)x.push(n(p,y[w],b));else for(var _ in x={},y)Object.prototype.hasOwnProperty.call(y,_)&&(x[p(_,b)]=n(p,y[_],b));return x},r=function(p){return h(p)?p:(p=p.replace(/[\-_\s]+(.)?/g,(function(y,b){return b?b.toUpperCase():""}))).substr(0,1).toLowerCase()+p.substr(1)},o=function(p){var y=r(p);return y.substr(0,1).toUpperCase()+y.substr(1)},i=function(p,y){return(function(b,x){var w=(x=x||{}).separator||"_",A=x.split||/(?=[A-Z])/;return b.split(A).join(w)})(p,y).toLowerCase()},s=Object.prototype.toString,a=function(p){return typeof p=="function"},c=function(p){return p===Object(p)},l=function(p){return s.call(p)=="[object Array]"},f=function(p){return s.call(p)=="[object Date]"},u=function(p){return s.call(p)=="[object RegExp]"},d=function(p){return s.call(p)=="[object Boolean]"},h=function(p){return(p-=0)==p},m=function(p,y){var b=y&&"process"in y?y.process:y;return typeof b!="function"?p:function(x,w){return b(x,p,w)}},g={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(p,y){return n(m(r,y),p)},decamelizeKeys:function(p,y){return n(m(i,y),p,y)},pascalizeKeys:function(p,y){return n(m(o,y),p)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=g:t.humps=g})(iw)})).decamelize,aw=function(e){if(Array.isArray(e))return e},cw=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||a.return==null||a.return()}finally{if(o)throw i}}return n}},qh=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},lw=function(e,t){if(e){if(typeof e=="string")return qh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qh(e,t):void 0}},fw=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
21
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},uw=function(e,t){return aw(e)||cw(e,t)||lw(e,t)||fw()},x0=v0((function(e){function t(){return e.exports=t=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},t.apply(this,arguments)}e.exports=t})),dw=function(e,t){if(e==null)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},w0=function(e,t){if(e==null)return{};var n,r,o=dw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},hw=T.createContext(null);function A0(e){var t=e.children,n=t===void 0?"":t,r=w0(e,["children"]);return typeof n!="string"&&(n=Y1.renderToString(n)),T.createElement("template",x0({},r,{dangerouslySetInnerHTML:{__html:n}}))}function C0(e){var t=e.root,n=e.children;return Wt.createPortal(n===void 0?null:n,t)}function mw(e){var t=T.forwardRef((function(n,r){var o,i,s=n.mode,a=s===void 0?"open":s,c=n.delegatesFocus,l=c!==void 0&&c,f=n.styleSheets,u=f===void 0?[]:f,d=n.ssr,h=d!==void 0&&d,m=n.children,g=w0(n,["mode","delegatesFocus","styleSheets","ssr","children"]),p=(i=T.useRef((o=r)&&o.current),T.useEffect((function(){o&&(o.current=i.current)}),[o]),i),y=T.useState(null),b=uw(y,2),x=b[0],w=b[1],A="node_".concat(a).concat(l);return T.useLayoutEffect((function(){if(p.current)try{if(typeof r=="function"&&r(p.current),h){var _=p.current.shadowRoot;return void w(_)}var S=p.current.attachShadow({mode:a,delegatesFocus:l});u.length>0&&(S.adoptedStyleSheets=u),w(S)}catch(E){(function(N){var P=N.error,I=N.styleSheets,W=N.root;switch(P.name){case"NotSupportedError":I.length>0&&(W.adoptedStyleSheets=I);break;default:throw P}})({error:E,styleSheets:u,root:x})}}),[r,p,u]),T.createElement(T.Fragment,null,T.createElement(e.tag,x0({key:A,ref:p},g),(x||h)&&T.createElement(hw.Provider,{value:x},h?T.createElement(A0,{shadowroot:a,shadowrootmode:a},e.render({root:x,ssr:h,children:m})):T.createElement(C0,{root:x},e.render({root:x,ssr:h,children:m})))))}));return t.propTypes={mode:ge.oneOf(["open","closed"]),delegatesFocus:ge.bool,styleSheets:ge.arrayOf(ge.instanceOf(globalThis.CSSStyleSheet)),ssr:ge.bool,children:ge.node},t}A0.propTypes={children:ge.oneOfType([ge.string,ge.node])},C0.propTypes={root:ge.object.isRequired,children:ge.node};var _l=new Map;function pw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(e,{get:function(r,o){var i=sw(o,{separator:"-"}),s="".concat(t,"-").concat(i);return _l.has(s)||_l.set(s,mw({tag:i,render:n})),_l.get(s)}})}var $r=pw();const td="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGpSURBVHgBpVbRdYMwDDR9/S8jeARGYIRuUDpBuwHJBGQDskG6ASOQDcwGdANVLnJRHdmIRO/dI8D5zgIhpTAbAQAlHiqEJUyEa1EU30YRqFHj4Q1xzJIQF8QMSziGEAPi1eTNPhi/lwglomOCDWUZc/yGzkEIYQWtlpnNNxwSGimL2ijCi7DMLbveR2aVtHiMFypN/UZPlLUlHR6iWXuPWaQRsuXRpIjyTb1ZDWuBQVaPnvfAzLs9mcL/SoTNzXMCLJ9CiFZh1glmh9yCmkhldB7CgVzyvlCGlBlEnxJf+IkYo2uNINSy+1JxcDOv2acMD0DvT2HqSCxpRmt9Q/iS/J5NIrBP+kX+J9+pRXQC/Yj8Q3TtReCZJ7M0YpsyxcO7yUfKbBLZmEUFrGgSHOnx+jgn+M4/epMRnLME8/euNWYhgSondpIKJ2HqclxYmsi4JRRaW3a2KTakb5FU7rczS29WUvb9nkUD3D+e9o82WNuVA+XkgKUVOnhktLGK/DWOK4421sDaSy+5z0praqlF8Rnn2PlMhvUe3UJDogwtImRxRUzav4k8fgCQHVaVoXL9RAAAAABJRU5ErkJggg==";var Wi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},gw={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},bn,lo,i0,yw=(i0=class{constructor(){ue(this,bn,gw);ue(this,lo,!1)}setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&k(this,lo)&&e!==k(this,bn)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:k(this,bn),provider:e}),ne(this,bn,e),process.env.NODE_ENV!=="production"&&ne(this,lo,!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&ne(this,lo,!0),k(this,bn).setTimeout(e,t)}clearTimeout(e){k(this,bn).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!=="production"&&ne(this,lo,!0),k(this,bn).setInterval(e,t)}clearInterval(e){k(this,bn).clearInterval(e)}},bn=new WeakMap,lo=new WeakMap,i0),io=new yw;function bw(e){setTimeout(e,0)}var So=typeof window>"u"||"Deno"in globalThis;function kt(){}function vw(e,t){return typeof e=="function"?e(t):e}function yf(e){return typeof e=="number"&&e>=0&&e!==1/0}function _0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pr(e,t){return typeof e=="function"?e(t):e}function Vt(e,t){return typeof e=="function"?e(t):e}function Vh(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==nd(s,t.options))return!1}else if(!Ts(t.queryKey,s))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Yh(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ko(t.options.mutationKey)!==ko(i))return!1}else if(!Ts(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function nd(e,t){return((t==null?void 0:t.queryKeyHashFn)||ko)(e)}function ko(e){return JSON.stringify(e,(t,n)=>vf(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ts(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ts(e[n],t[n])):!1}var xw=Object.prototype.hasOwnProperty;function bf(e,t){if(e===t)return e;const n=Qh(e)&&Qh(t);if(!n&&!(vf(e)&&vf(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let c=0;for(let l=0;l<s;l++){const f=n?l:i[l],u=e[f],d=t[f];if(u===d){a[f]=u,(n?l<o:xw.call(e,f))&&c++;continue}if(u===null||d===null||typeof u!="object"||typeof d!="object"){a[f]=d;continue}const h=bf(u,d);a[f]=h,h===u&&c++}return o===s&&c===o?e:a}function Ja(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Qh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function vf(e){if(!Gh(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Gh(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Gh(e){return Object.prototype.toString.call(e)==="[object Object]"}function ww(e){return new Promise(t=>{io.setTimeout(t,e)})}function xf(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return bf(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return bf(e,t)}return t}function Aw(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Cw(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Xa=Symbol();function E0(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Xa&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Xa?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function rd(e,t){return typeof e=="function"?e(...t):!!e}function _w(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var fo,xr,Ai,s0,Ew=(s0=class extends Wi{constructor(){super();ue(this,fo);ue(this,xr);ue(this,Ai);ne(this,Ai,t=>{if(!So&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,xr)||this.setEventListener(k(this,Ai))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,xr))==null||t.call(this),ne(this,xr,void 0))}setEventListener(t){var n;ne(this,Ai,t),(n=k(this,xr))==null||n.call(this),ne(this,xr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,fo)!==t&&(ne(this,fo,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,fo)=="boolean"?k(this,fo):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},fo=new WeakMap,xr=new WeakMap,Ai=new WeakMap,s0),od=new Ew;function wf(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var Sw=bw;function kw(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=Sw;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||s()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ze=kw(),Ci,wr,_i,a0,Tw=(a0=class extends Wi{constructor(){super();ue(this,Ci,!0);ue(this,wr);ue(this,_i);ne(this,_i,t=>{if(!So&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){k(this,wr)||this.setEventListener(k(this,_i))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,wr))==null||t.call(this),ne(this,wr,void 0))}setEventListener(t){var n;ne(this,_i,t),(n=k(this,wr))==null||n.call(this),ne(this,wr,t(this.setOnline.bind(this)))}setOnline(t){k(this,Ci)!==t&&(ne(this,Ci,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,Ci)}},Ci=new WeakMap,wr=new WeakMap,_i=new WeakMap,a0),ec=new Tw;function Nw(e){return Math.min(1e3*2**e,3e4)}function S0(e){return(e??"online")==="online"?ec.isOnline():!0}var Af=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function k0(e){let t=!1,n=0,r;const o=wf(),i=()=>o.status!=="pending",s=g=>{var p;if(!i()){const y=new Af(g);d(y),(p=e.onCancel)==null||p.call(e,y)}},a=()=>{t=!0},c=()=>{t=!1},l=()=>od.isFocused()&&(e.networkMode==="always"||ec.isOnline())&&e.canRun(),f=()=>S0(e.networkMode)&&e.canRun(),u=g=>{i()||(r==null||r(),o.resolve(g))},d=g=>{i()||(r==null||r(),o.reject(g))},h=()=>new Promise(g=>{var p;r=y=>{(i()||l())&&g(y)},(p=e.onPause)==null||p.call(e)}).then(()=>{var g;r=void 0,i()||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(i())return;let g;const p=n===0?e.initialPromise:void 0;try{g=p??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(u).catch(y=>{var _;if(i())return;const b=e.retry??(So?0:3),x=e.retryDelay??Nw,w=typeof x=="function"?x(n,y):x,A=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,y);if(t||!A){d(y);return}n++,(_=e.onFail)==null||_.call(e,n,y),ww(w).then(()=>l()?void 0:h()).then(()=>{t?d(y):m()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:c,canStart:f,start:()=>(f()?m():h().then(m),o)}}var uo,c0,T0=(c0=class{constructor(){ue(this,uo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yf(this.gcTime)&&ne(this,uo,io.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(So?1/0:300*1e3))}clearGcTimeout(){k(this,uo)&&(io.clearTimeout(k(this,uo)),ne(this,uo,void 0))}},uo=new WeakMap,c0),ho,Ei,qt,mo,tt,Ks,po,sn,Un,l0,Ow=(l0=class extends T0{constructor(t){super();ue(this,sn);ue(this,ho);ue(this,Ei);ue(this,qt);ue(this,mo);ue(this,tt);ue(this,Ks);ue(this,po);ne(this,po,!1),ne(this,Ks,t.defaultOptions),this.setOptions(t.options),this.observers=[],ne(this,mo,t.client),ne(this,qt,k(this,mo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ne(this,ho,Jh(this.options)),this.state=t.state??k(this,ho),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,tt))==null?void 0:t.promise}setOptions(t){if(this.options={...k(this,Ks),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Jh(this.options);n.data!==void 0&&(this.setState(Zh(n.data,n.dataUpdatedAt)),ne(this,ho,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,qt).remove(this)}setData(t,n){const r=xf(this.state.data,t,this.options);return be(this,sn,Un).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){be(this,sn,Un).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=k(this,tt))==null?void 0:r.promise;return(o=k(this,tt))==null||o.cancel(t),n?n.then(kt).catch(kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,ho))}isActive(){return this.observers.some(t=>Vt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xa||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Pr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!_0(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,tt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,tt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,qt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(k(this,tt)&&(k(this,po)?k(this,tt).cancel({revert:!0}):k(this,tt).cancelRetry()),this.scheduleGc()),k(this,qt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||be(this,sn,Un).call(this,{type:"invalidate"})}async fetch(t,n){var c,l,f,u,d,h,m,g,p,y,b,x;if(this.state.fetchStatus!=="idle"&&((c=k(this,tt))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(k(this,tt))return k(this,tt).continueRetry(),k(this,tt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(A=>A.options.queryFn);w&&this.setOptions(w.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,o=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(ne(this,po,!0),r.signal)})},i=()=>{const w=E0(this.options,n),_=(()=>{const S={client:k(this,mo),queryKey:this.queryKey,meta:this.meta};return o(S),S})();return ne(this,po,!1),this.options.persister?this.options.persister(w,_,this):w(_)},a=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:k(this,mo),state:this.state,fetchFn:i};return o(w),w})();(l=this.options.behavior)==null||l.onFetch(a,this),ne(this,Ei,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&be(this,sn,Un).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta}),ne(this,tt,k0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:w=>{w instanceof Af&&w.revert&&this.setState({...k(this,Ei),fetchStatus:"idle"}),r.abort()},onFail:(w,A)=>{be(this,sn,Un).call(this,{type:"failed",failureCount:w,error:A})},onPause:()=>{be(this,sn,Un).call(this,{type:"pause"})},onContinue:()=>{be(this,sn,Un).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const w=await k(this,tt).start();if(w===void 0)throw process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(w),(h=(d=k(this,qt).config).onSuccess)==null||h.call(d,w,this),(g=(m=k(this,qt).config).onSettled)==null||g.call(m,w,this.state.error,this),w}catch(w){if(w instanceof Af){if(w.silent)return k(this,tt).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw be(this,sn,Un).call(this,{type:"error",error:w}),(y=(p=k(this,qt).config).onError)==null||y.call(p,w,this),(x=(b=k(this,qt).config).onSettled)==null||x.call(b,this.state.data,w,this),w}finally{this.scheduleGc()}}},ho=new WeakMap,Ei=new WeakMap,qt=new WeakMap,mo=new WeakMap,tt=new WeakMap,Ks=new WeakMap,po=new WeakMap,sn=new WeakSet,Un=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...N0(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...Zh(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ne(this,Ei,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ze.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,qt).notify({query:this,type:"updated",action:t})})},l0);function N0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:S0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Zh(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Jh(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Lt,Ee,Hs,Et,go,Si,Vn,Ar,qs,ki,Ti,yo,bo,Cr,Ni,Me,gs,Cf,_f,Ef,Sf,kf,Tf,Nf,P0,f0,O0=(f0=class extends Wi{constructor(t,n){super();ue(this,Me);ue(this,Lt);ue(this,Ee);ue(this,Hs);ue(this,Et);ue(this,go);ue(this,Si);ue(this,Vn);ue(this,Ar);ue(this,qs);ue(this,ki);ue(this,Ti);ue(this,yo);ue(this,bo);ue(this,Cr);ue(this,Ni,new Set);this.options=n,ne(this,Lt,t),ne(this,Ar,null),ne(this,Vn,wf()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,Ee).addObserver(this),Xh(k(this,Ee),this.options)?be(this,Me,gs).call(this):this.updateResult(),be(this,Me,Sf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Of(k(this,Ee),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Of(k(this,Ee),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,be(this,Me,kf).call(this),be(this,Me,Tf).call(this),k(this,Ee).removeObserver(this)}setOptions(t){const n=this.options,r=k(this,Ee);if(this.options=k(this,Lt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Vt(this.options.enabled,k(this,Ee))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");be(this,Me,Nf).call(this),k(this,Ee).setOptions(this.options),n._defaulted&&!Ja(this.options,n)&&k(this,Lt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,Ee),observer:this});const o=this.hasListeners();o&&em(k(this,Ee),r,this.options,n)&&be(this,Me,gs).call(this),this.updateResult(),o&&(k(this,Ee)!==r||Vt(this.options.enabled,k(this,Ee))!==Vt(n.enabled,k(this,Ee))||Pr(this.options.staleTime,k(this,Ee))!==Pr(n.staleTime,k(this,Ee)))&&be(this,Me,Cf).call(this);const i=be(this,Me,_f).call(this);o&&(k(this,Ee)!==r||Vt(this.options.enabled,k(this,Ee))!==Vt(n.enabled,k(this,Ee))||i!==k(this,Cr))&&be(this,Me,Ef).call(this,i)}getOptimisticResult(t){const n=k(this,Lt).getQueryCache().build(k(this,Lt),t),r=this.createResult(n,t);return Mw(this,r)&&(ne(this,Et,r),ne(this,Si,this.options),ne(this,go,k(this,Ee).state)),r}getCurrentResult(){return k(this,Et)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&k(this,Vn).status==="pending"&&k(this,Vn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){k(this,Ni).add(t)}getCurrentQuery(){return k(this,Ee)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=k(this,Lt).defaultQueryOptions(t),r=k(this,Lt).getQueryCache().build(k(this,Lt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return be(this,Me,gs).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Et)))}createResult(t,n){var N;const r=k(this,Ee),o=this.options,i=k(this,Et),s=k(this,go),a=k(this,Si),l=t!==r?t.state:k(this,Hs),{state:f}=t;let u={...f},d=!1,h;if(n._optimisticResults){const P=this.hasListeners(),I=!P&&Xh(t,n),W=P&&em(t,r,n,o);(I||W)&&(u={...u,...N0(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:p}=u;h=u.data;let y=!1;if(n.placeholderData!==void 0&&h===void 0&&p==="pending"){let P;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(P=i.data,y=!0):P=typeof n.placeholderData=="function"?n.placeholderData((N=k(this,Ti))==null?void 0:N.state.data,k(this,Ti)):n.placeholderData,P!==void 0&&(p="success",h=xf(i==null?void 0:i.data,P,n),d=!0)}if(n.select&&h!==void 0&&!y)if(i&&h===(s==null?void 0:s.data)&&n.select===k(this,qs))h=k(this,ki);else try{ne(this,qs,n.select),h=n.select(h),h=xf(i==null?void 0:i.data,h,n),ne(this,ki,h),ne(this,Ar,null)}catch(P){ne(this,Ar,P)}k(this,Ar)&&(m=k(this,Ar),h=k(this,ki),g=Date.now(),p="error");const b=u.fetchStatus==="fetching",x=p==="pending",w=p==="error",A=x&&b,_=h!==void 0,E={status:p,fetchStatus:u.fetchStatus,isPending:x,isSuccess:p==="success",isError:w,isInitialLoading:A,isLoading:A,data:h,dataUpdatedAt:u.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:w&&!_,isPaused:u.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:w&&_,isStale:id(t,n),refetch:this.refetch,promise:k(this,Vn),isEnabled:Vt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const P=j=>{E.status==="error"?j.reject(E.error):E.data!==void 0&&j.resolve(E.data)},I=()=>{const j=ne(this,Vn,E.promise=wf());P(j)},W=k(this,Vn);switch(W.status){case"pending":t.queryHash===r.queryHash&&P(W);break;case"fulfilled":(E.status==="error"||E.data!==W.value)&&I();break;case"rejected":(E.status!=="error"||E.error!==W.reason)&&I();break}}return E}updateResult(){const t=k(this,Et),n=this.createResult(k(this,Ee),this.options);if(ne(this,go,k(this,Ee).state),ne(this,Si,this.options),k(this,go).data!==void 0&&ne(this,Ti,k(this,Ee)),Ja(n,t))return;ne(this,Et,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!k(this,Ni).size)return!0;const s=new Set(i??k(this,Ni));return this.options.throwOnError&&s.add("error"),Object.keys(k(this,Et)).some(a=>{const c=a;return k(this,Et)[c]!==t[c]&&s.has(c)})};be(this,Me,P0).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&be(this,Me,Sf).call(this)}},Lt=new WeakMap,Ee=new WeakMap,Hs=new WeakMap,Et=new WeakMap,go=new WeakMap,Si=new WeakMap,Vn=new WeakMap,Ar=new WeakMap,qs=new WeakMap,ki=new WeakMap,Ti=new WeakMap,yo=new WeakMap,bo=new WeakMap,Cr=new WeakMap,Ni=new WeakMap,Me=new WeakSet,gs=function(t){be(this,Me,Nf).call(this);let n=k(this,Ee).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(kt)),n},Cf=function(){be(this,Me,kf).call(this);const t=Pr(this.options.staleTime,k(this,Ee));if(So||k(this,Et).isStale||!yf(t))return;const r=_0(k(this,Et).dataUpdatedAt,t)+1;ne(this,yo,io.setTimeout(()=>{k(this,Et).isStale||this.updateResult()},r))},_f=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,Ee)):this.options.refetchInterval)??!1},Ef=function(t){be(this,Me,Tf).call(this),ne(this,Cr,t),!(So||Vt(this.options.enabled,k(this,Ee))===!1||!yf(k(this,Cr))||k(this,Cr)===0)&&ne(this,bo,io.setInterval(()=>{(this.options.refetchIntervalInBackground||od.isFocused())&&be(this,Me,gs).call(this)},k(this,Cr)))},Sf=function(){be(this,Me,Cf).call(this),be(this,Me,Ef).call(this,be(this,Me,_f).call(this))},kf=function(){k(this,yo)&&(io.clearTimeout(k(this,yo)),ne(this,yo,void 0))},Tf=function(){k(this,bo)&&(io.clearInterval(k(this,bo)),ne(this,bo,void 0))},Nf=function(){const t=k(this,Lt).getQueryCache().build(k(this,Lt),this.options);if(t===k(this,Ee))return;const n=k(this,Ee);ne(this,Ee,t),ne(this,Hs,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},P0=function(t){Ze.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,Et))}),k(this,Lt).getQueryCache().notify({query:k(this,Ee),type:"observerResultsUpdated"})})},f0);function Pw(e,t){return Vt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Xh(e,t){return Pw(e,t)||e.state.data!==void 0&&Of(e,t,t.refetchOnMount)}function Of(e,t,n){if(Vt(t.enabled,e)!==!1&&Pr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&id(e,t)}return!1}function em(e,t,n,r){return(e!==t||Vt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&id(e,n)}function id(e,t){return Vt(t.enabled,e)!==!1&&e.isStaleByTime(Pr(t.staleTime,e))}function Mw(e,t){return!Ja(e.getCurrentResult(),t)}function tc(e){return{onFetch:(t,n)=>{var f,u,d,h,m;const r=t.options,o=(d=(u=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:u.fetchMore)==null?void 0:d.direction,i=((h=t.state.data)==null?void 0:h.pages)||[],s=((m=t.state.data)==null?void 0:m.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let g=!1;const p=x=>{_w(x,()=>t.signal,()=>g=!0)},y=E0(t.options,t.fetchOptions),b=async(x,w,A)=>{if(g)return Promise.reject();if(w==null&&x.pages.length)return Promise.resolve(x);const S=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:w,direction:A?"backward":"forward",meta:t.options.meta};return p(I),I})(),E=await y(S),{maxPages:N}=t.options,P=A?Cw:Aw;return{pages:P(x.pages,E,N),pageParams:P(x.pageParams,w,N)}};if(o&&i.length){const x=o==="backward",w=x?M0:Pf,A={pages:i,pageParams:s},_=w(r,A);a=await b(A,_,x)}else{const x=e??i.length;do{const w=c===0?s[0]??r.initialPageParam:Pf(r,a);if(c>0&&w==null)break;a=await b(a,w),c++}while(c<x)}return a};t.options.persister?t.fetchFn=()=>{var g,p;return(p=(g=t.options).persister)==null?void 0:p.call(g,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Pf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function M0(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function Iw(e,t){return t?Pf(e,t)!=null:!1}function Lw(e,t){return!t||!e.getPreviousPageParam?!1:M0(e,t)!=null}var Rw=class extends O0{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:tc()})}getOptimisticResult(e){return e.behavior=tc(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var m,g;const{state:n}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:i,isError:s,isRefetchError:a}=r,c=(g=(m=n.fetchMeta)==null?void 0:m.fetchMore)==null?void 0:g.direction,l=s&&c==="forward",f=o&&c==="forward",u=s&&c==="backward",d=o&&c==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Iw(t,n.data),hasPreviousPage:Lw(t,n.data),isFetchNextPageError:l,isFetchingNextPage:f,isFetchPreviousPageError:u,isFetchingPreviousPage:d,isRefetchError:a&&!l&&!u,isRefetching:i&&!f&&!d}}},Vs,vn,St,vo,xn,yr,u0,Dw=(u0=class extends T0{constructor(t){super();ue(this,xn);ue(this,Vs);ue(this,vn);ue(this,St);ue(this,vo);ne(this,Vs,t.client),this.mutationId=t.mutationId,ne(this,St,t.mutationCache),ne(this,vn,[]),this.state=t.state||I0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,vn).includes(t)||(k(this,vn).push(t),this.clearGcTimeout(),k(this,St).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ne(this,vn,k(this,vn).filter(n=>n!==t)),this.scheduleGc(),k(this,St).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,vn).length||(this.state.status==="pending"?this.scheduleGc():k(this,St).remove(this))}continue(){var t;return((t=k(this,vo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,c,l,f,u,d,h,m,g,p,y,b,x,w,A,_,S,E,N;const n=()=>{be(this,xn,yr).call(this,{type:"continue"})},r={client:k(this,Vs),meta:this.options.meta,mutationKey:this.options.mutationKey};ne(this,vo,k0({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,I)=>{be(this,xn,yr).call(this,{type:"failed",failureCount:P,error:I})},onPause:()=>{be(this,xn,yr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,St).canRun(this)}));const o=this.state.status==="pending",i=!k(this,vo).canStart();try{if(o)n();else{be(this,xn,yr).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(s=k(this,St).config).onMutate)==null?void 0:a.call(s,t,this,r));const I=await((l=(c=this.options).onMutate)==null?void 0:l.call(c,t,r));I!==this.state.context&&be(this,xn,yr).call(this,{type:"pending",context:I,variables:t,isPaused:i})}const P=await k(this,vo).start();return await((u=(f=k(this,St).config).onSuccess)==null?void 0:u.call(f,P,t,this.state.context,this,r)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,P,t,this.state.context,r)),await((g=(m=k(this,St).config).onSettled)==null?void 0:g.call(m,P,null,this.state.variables,this.state.context,this,r)),await((y=(p=this.options).onSettled)==null?void 0:y.call(p,P,null,t,this.state.context,r)),be(this,xn,yr).call(this,{type:"success",data:P}),P}catch(P){try{await((x=(b=k(this,St).config).onError)==null?void 0:x.call(b,P,t,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((A=(w=this.options).onError)==null?void 0:A.call(w,P,t,this.state.context,r))}catch(I){Promise.reject(I)}try{await((S=(_=k(this,St).config).onSettled)==null?void 0:S.call(_,void 0,P,this.state.variables,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((N=(E=this.options).onSettled)==null?void 0:N.call(E,void 0,P,t,this.state.context,r))}catch(I){Promise.reject(I)}throw be(this,xn,yr).call(this,{type:"error",error:P}),P}finally{k(this,St).runNext(this)}}},Vs=new WeakMap,vn=new WeakMap,St=new WeakMap,vo=new WeakMap,xn=new WeakSet,yr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ze.batch(()=>{k(this,vn).forEach(r=>{r.onMutationUpdate(t)}),k(this,St).notify({mutation:this,type:"updated",action:t})})},u0);function I0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Yn,an,Ys,d0,Fw=(d0=class extends Wi{constructor(t={}){super();ue(this,Yn);ue(this,an);ue(this,Ys);this.config=t,ne(this,Yn,new Set),ne(this,an,new Map),ne(this,Ys,0)}build(t,n,r){const o=new Dw({client:t,mutationCache:this,mutationId:++ha(this,Ys)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){k(this,Yn).add(t);const n=ga(t);if(typeof n=="string"){const r=k(this,an).get(n);r?r.push(t):k(this,an).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,Yn).delete(t)){const n=ga(t);if(typeof n=="string"){const r=k(this,an).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&k(this,an).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ga(t);if(typeof n=="string"){const r=k(this,an).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=ga(t);if(typeof n=="string"){const o=(r=k(this,an).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ze.batch(()=>{k(this,Yn).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,Yn).clear(),k(this,an).clear()})}getAll(){return Array.from(k(this,Yn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Yh(n,r))}findAll(t={}){return this.getAll().filter(n=>Yh(t,n))}notify(t){Ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ze.batch(()=>Promise.all(t.map(n=>n.continue().catch(kt))))}},Yn=new WeakMap,an=new WeakMap,Ys=new WeakMap,d0);function ga(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Qn,_r,Rt,Gn,er,Fa,Mf,h0,jw=(h0=class extends Wi{constructor(n,r){super();ue(this,er);ue(this,Qn);ue(this,_r);ue(this,Rt);ue(this,Gn);ne(this,Qn,n),this.setOptions(r),this.bindMethods(),be(this,er,Fa).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=k(this,Qn).defaultMutationOptions(n),Ja(this.options,r)||k(this,Qn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Rt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ko(r.mutationKey)!==ko(this.options.mutationKey)?this.reset():((o=k(this,Rt))==null?void 0:o.state.status)==="pending"&&k(this,Rt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=k(this,Rt))==null||n.removeObserver(this)}onMutationUpdate(n){be(this,er,Fa).call(this),be(this,er,Mf).call(this,n)}getCurrentResult(){return k(this,_r)}reset(){var n;(n=k(this,Rt))==null||n.removeObserver(this),ne(this,Rt,void 0),be(this,er,Fa).call(this),be(this,er,Mf).call(this)}mutate(n,r){var o;return ne(this,Gn,r),(o=k(this,Rt))==null||o.removeObserver(this),ne(this,Rt,k(this,Qn).getMutationCache().build(k(this,Qn),this.options)),k(this,Rt).addObserver(this),k(this,Rt).execute(n)}},Qn=new WeakMap,_r=new WeakMap,Rt=new WeakMap,Gn=new WeakMap,er=new WeakSet,Fa=function(){var r;const n=((r=k(this,Rt))==null?void 0:r.state)??I0();ne(this,_r,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Mf=function(n){Ze.batch(()=>{var r,o,i,s,a,c,l,f;if(k(this,Gn)&&this.hasListeners()){const u=k(this,_r).variables,d=k(this,_r).context,h={client:k(this,Qn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(o=(r=k(this,Gn)).onSuccess)==null||o.call(r,n.data,u,d,h)}catch(m){Promise.reject(m)}try{(s=(i=k(this,Gn)).onSettled)==null||s.call(i,n.data,null,u,d,h)}catch(m){Promise.reject(m)}}else if((n==null?void 0:n.type)==="error"){try{(c=(a=k(this,Gn)).onError)==null||c.call(a,n.error,u,d,h)}catch(m){Promise.reject(m)}try{(f=(l=k(this,Gn)).onSettled)==null||f.call(l,void 0,n.error,u,d,h)}catch(m){Promise.reject(m)}}}this.listeners.forEach(u=>{u(k(this,_r))})})},h0),wn,m0,zw=(m0=class extends Wi{constructor(t={}){super();ue(this,wn);this.config=t,ne(this,wn,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??nd(o,n);let s=this.get(i);return s||(s=new Ow({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){k(this,wn).has(t.queryHash)||(k(this,wn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,wn).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,wn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ze.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,wn).get(t)}getAll(){return[...k(this,wn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Vh(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Vh(t,r)):n}notify(t){Ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ze.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ze.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},wn=new WeakMap,m0),Ke,Er,Sr,Oi,Pi,kr,Mi,Ii,p0,L0=(p0=class{constructor(e={}){ue(this,Ke);ue(this,Er);ue(this,Sr);ue(this,Oi);ue(this,Pi);ue(this,kr);ue(this,Mi);ue(this,Ii);ne(this,Ke,e.queryCache||new zw),ne(this,Er,e.mutationCache||new Fw),ne(this,Sr,e.defaultOptions||{}),ne(this,Oi,new Map),ne(this,Pi,new Map),ne(this,kr,0)}mount(){ha(this,kr)._++,k(this,kr)===1&&(ne(this,Mi,od.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Ke).onFocus())})),ne(this,Ii,ec.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Ke).onOnline())})))}unmount(){var e,t;ha(this,kr)._--,k(this,kr)===0&&((e=k(this,Mi))==null||e.call(this),ne(this,Mi,void 0),(t=k(this,Ii))==null||t.call(this),ne(this,Ii,void 0))}isFetching(e){return k(this,Ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,Er).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Ke).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=k(this,Ke).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Pr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return k(this,Ke).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=k(this,Ke).get(r.queryHash),i=o==null?void 0:o.state.data,s=vw(t,i);if(s!==void 0)return k(this,Ke).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Ze.batch(()=>k(this,Ke).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Ke).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=k(this,Ke);Ze.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,Ke);return Ze.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ze.batch(()=>k(this,Ke).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(kt).catch(kt)}invalidateQueries(e,t={}){return Ze.batch(()=>(k(this,Ke).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ze.batch(()=>k(this,Ke).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(kt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=k(this,Ke).build(this,t);return n.isStaleByTime(Pr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(kt).catch(kt)}fetchInfiniteQuery(e){return e.behavior=tc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kt).catch(kt)}ensureInfiniteQueryData(e){return e.behavior=tc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ec.isOnline()?k(this,Er).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Ke)}getMutationCache(){return k(this,Er)}getDefaultOptions(){return k(this,Sr)}setDefaultOptions(e){ne(this,Sr,e)}setQueryDefaults(e,t){k(this,Oi).set(ko(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,Oi).values()],n={};return t.forEach(r=>{Ts(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){k(this,Pi).set(ko(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Pi).values()],n={};return t.forEach(r=>{Ts(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,Sr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=nd(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Xa&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,Sr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Ke).clear(),k(this,Er).clear()}},Ke=new WeakMap,Er=new WeakMap,Sr=new WeakMap,Oi=new WeakMap,Pi=new WeakMap,kr=new WeakMap,Mi=new WeakMap,Ii=new WeakMap,p0),R0=C.createContext(void 0),D0=e=>{const t=C.useContext(R0);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},$w=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(R0.Provider,{value:e,children:t})),F0=C.createContext(!1),Bw=()=>C.useContext(F0);F0.Provider;function Uw(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ww=C.createContext(Uw()),Kw=()=>C.useContext(Ww),Hw=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?rd(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},qw=e=>{C.useEffect(()=>{e.clearReset()},[e])},Vw=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||rd(n,[e.error,r])),Yw=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Qw=(e,t)=>e.isLoading&&e.isFetching&&!t,Gw=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,tm=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function j0(e,t,n){var d,h,m,g;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Bw(),o=Kw(),i=D0(n),s=i.defaultQueryOptions(e);(h=(d=i.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,s);const a=i.getQueryCache().get(s.queryHash);process.env.NODE_ENV!=="production"&&(s.queryFn||console.error(`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),s._optimisticResults=r?"isRestoring":"optimistic",Yw(s),Hw(s,o,a),qw(o);const c=!i.getQueryCache().get(s.queryHash),[l]=C.useState(()=>new t(i,s)),f=l.getOptimisticResult(s),u=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(p=>{const y=u?l.subscribe(Ze.batchCalls(p)):kt;return l.updateResult(),y},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),C.useEffect(()=>{l.setOptions(s)},[s,l]),Gw(s,f))throw tm(s,l,o);if(Vw({result:f,errorResetBoundary:o,throwOnError:s.throwOnError,query:a,suspense:s.suspense}))throw f.error;if((g=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||g.call(m,s,f),s.experimental_prefetchInRender&&!So&&Qw(f,r)){const p=c?tm(s,l,o):a==null?void 0:a.promise;p==null||p.catch(kt).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?f:l.trackResult(f)}function Tc(e,t){return j0(e,O0,t)}function sd(e,t){const n=D0(t),[r]=C.useState(()=>new jw(n,e));C.useEffect(()=>{r.setOptions(e)},[r,e]);const o=C.useSyncExternalStore(C.useCallback(s=>r.subscribe(Ze.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=C.useCallback((s,a)=>{r.mutate(s,a).catch(kt)},[r]);if(o.error&&rd(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function Zw(e,t){return j0(e,Rw,t)}const ad=T.createContext({queryClient:new L0});ad.Provider;const ir=()=>{const e=T.useContext(ad);if(!e)throw new Error("useConfidenceContext must be used within a ConfidenceContext");return e},cd=({children:e})=>{const[t]=T.useState(new L0);return v.jsx(ad.Provider,{value:{queryClient:t},children:v.jsx($w,{client:t,children:e})})},z0=T.createContext({isEmbedded:!1}),$0=z0.Provider,Nc=()=>T.useContext(z0),Ue={OPEN:"Open",IN_PROGRESS:"In progress",IN_REVIEW:"In review",COMPLETED:"Completed"},B0="https://marketplace.confidence.com/api",Ln=B0+"/confidence",nm=B0+"/dropbox/prod",Jw=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${Ln}/playbook-task-complete`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},Xw=()=>{const{queryClient:e}=ir(),t=sd({mutationFn:async r=>Jw(r)},e);return{completeTask:async r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task completed successfully")},onError:o=>{console.error("Error completing task:",o)}}),...t}},e2=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${Ln}/playbook-task-start`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},t2=()=>{const{queryClient:e}=ir(),t=sd({mutationFn:async r=>await e2(r)},e);return{startTask:r=>t.mutateAsync(r),...t}},U0=(e,t)=>{const{queryClient:n}=ir(),r=Tc({initialData:{},queryFn:()=>n.getQueryData(["PLAYBOOK_EXPANDED_TASKS",+e]),queryKey:["PLAYBOOK_EXPANDED_TASKS",+e]}),o=a=>{var c;return((c=r.data)==null?void 0:c[a.toString()])??!1},i=(a,c)=>{var l;n.setQueryData(["PLAYBOOK_EXPANDED_TASKS",+e],()=>({[a]:c!==void 0?c:!o(a)})),(l=t==null?void 0:t.onTaskExpanded)==null||l.call(t,a,o(a))},s=T.useMemo(()=>Object.values(r.data??{}).some(a=>a),[r.data]);return{isTaskExpanded:o,toggleTaskExpanded:i,isAtLeastOneTaskExpanded:s}},n2=async e=>{const t=new Headers;return t.append("Content-Type","application/json"),await(await fetch(`${Ln}/my-playbooks`,{method:"POST",headers:t,body:JSON.stringify(e)})).json()},If=50,W0=e=>["my-playbooks",e];function r2(){const e=new Date,t=new Date(e);t.setDate(t.getDate()-365);const n=r=>new Intl.DateTimeFormat("en-CA",{year:"numeric",month:"2-digit",day:"2-digit"}).format(r);return{createdDateFrom:n(t),createdDateTo:n(e)}}async function o2(e,t){try{const{createdDateFrom:n,createdDateTo:r}=r2();return await n2({username:e,searchTerm:"",statuses:["Not Started","In Progress","Paused","Review","Completed"],createdDateFrom:n,createdDateTo:r,sortByOrder:"desc",sortBy:"modifiedDate",start:t,limit:If})}catch(n){return console.error("Error getting my playbooks:",n),{myPlaybooks:[],numberofPlaybooks:0,companyName:""}}}function i2(e,t,n){var r;if((r=e.myPlaybooks)!=null&&r.length&&!(e.myPlaybooks.length<If))return n+If}const s2=({username:e})=>{var o;const{queryClient:t}=ir(),n=Zw({queryKey:W0(e),queryFn:({pageParam:i})=>o2(e,i),initialPageParam:0,getNextPageParam:i2},t);return{myPlaybooks:(o=n.data)==null?void 0:o.pages.flatMap(i=>i.myPlaybooks),fetchNextPage:n.fetchNextPage,hasNextPage:n.hasNextPage,isFetchingNextPage:n.isFetchingNextPage,isLoading:n.isLoading,error:n.error}},a2=(e,t,n)=>{const{queryClient:r}=ir(),{completeTask:o}=Xw(),{startTask:i}=t2(),{toggleTaskExpanded:s}=U0(e);return{completeTask:async(l,f)=>{const{status:u}=await o(l.toString());u&&(s(l,!1),r.setQueryData(["playbook",+e],d=>{if(!d)return d;const h=d.tasks.map(m=>m.sequenceOrder===f+1&&n.quickComplete?{...m,workflowStatus:Ue.IN_PROGRESS}:m.taskInstanceId===l?{...m,workflowStatus:u}:m);return{...d,tasks:h}}))},startTask:async(l,f)=>{const u=r.getQueryData(["playbook",+e]),d=(u==null?void 0:u.tasks)??[],h=d.length>0?Math.min(...d.map(p=>p.sequenceOrder)):null,m=h!==null&&f===h,{status:g}=await i(l.toString());g&&(m&&r.invalidateQueries({queryKey:W0(t)}),s(l,!0),r.setQueryData(["playbook",+e],p=>{if(!p)return p;const y=p.tasks.map(b=>b.taskInstanceId===l?{...b,workflowStatus:g}:b);return{...p,tasks:y}}))}}},c2=(e,t)=>{var i;const{queryClient:n}=ir(),r=Tc({queryFn:async()=>{const s=new Headers,a=await fetch(`${Ln}/playbook-details`,{method:"POST",cache:"no-store",headers:s,body:JSON.stringify({playbookInstanceId:+e,start:0,limit:50})});if(!a.ok)throw new Error("Network response was not ok");const c=await a.json();if(c.error)throw new Error(c.error);return c},queryKey:["playbook",+e]},n),o=a2(e,t,{quickComplete:(i=r.data)==null?void 0:i.quickComplete});return{playbook:r.data,isLoading:r.isLoading,error:r.error,actions:o}},di={START:"START",PAUSE:"PAUSE",COMPLETE:"COMPLETE",ADD_COMMENT:"ADD_COMMENT"},l2={START:"Start",PAUSE:"Pause",RESUME:"Resume",COMPLETE:"Complete"},f2=e=>{const{taskStatus:t,canStart:n}=e;return{buttons:T.useMemo(()=>t===Ue.OPEN&&n?[di.START]:t===Ue.IN_PROGRESS?[di.PAUSE,di.COMPLETE]:t===Ue.COMPLETED?[]:[],[e.taskStatus,e.canStart])}},K0=async e=>{const t=new Headers;return t.append("Content-Type","application/json"),await(await fetch(`${Ln}/playbook-initiate`,{method:"POST",headers:t,body:JSON.stringify(e)})).json()},Oc='/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{:root,:host{--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free";--fa-font-regular:normal 400 1em/1 "Font Awesome 6 Free";--fa-font-light:normal 300 1em/1 "Font Awesome 6 Pro";--fa-font-thin:normal 100 1em/1 "Font Awesome 6 Pro";--fa-font-duotone:normal 900 1em/1 "Font Awesome 6 Duotone";--fa-font-duotone-regular:normal 400 1em/1 "Font Awesome 6 Duotone";--fa-font-duotone-light:normal 300 1em/1 "Font Awesome 6 Duotone";--fa-font-duotone-thin:normal 100 1em/1 "Font Awesome 6 Duotone";--fa-font-brands:normal 400 1em/1 "Font Awesome 6 Brands";--fa-font-sharp-solid:normal 900 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-regular:normal 400 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-light:normal 300 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-thin:normal 100 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-duotone-solid:normal 900 1em/1 "Font Awesome 6 Sharp Duotone";--fa-font-sharp-duotone-regular:normal 400 1em/1 "Font Awesome 6 Sharp Duotone";--fa-font-sharp-duotone-light:normal 300 1em/1 "Font Awesome 6 Sharp Duotone";--fa-font-sharp-duotone-thin:normal 100 1em/1 "Font Awesome 6 Sharp Duotone"}svg.svg-inline--fa:not(:root),svg.svg-inline--fa:not(:host){box-sizing:content-box;overflow:visible}.svg-inline--fa{display:var(--fa-display,inline-block);vertical-align:-.125em;height:1em;overflow:visible}.svg-inline--fa.fa-2xs{vertical-align:.1em}.svg-inline--fa.fa-xs{vertical-align:0}.svg-inline--fa.fa-sm{vertical-align:-.07143em}.svg-inline--fa.fa-lg{vertical-align:-.2em}.svg-inline--fa.fa-xl{vertical-align:-.25em}.svg-inline--fa.fa-2xl{vertical-align:-.3125em}.svg-inline--fa.fa-pull-left{margin-right:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-pull-right{margin-left:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-li{width:var(--fa-li-width,2em);top:.25em}.svg-inline--fa.fa-fw{width:var(--fa-fw-width,1.25em)}.fa-layers svg.svg-inline--fa{margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}.fa-layers-counter,.fa-layers-text{text-align:center;display:inline-block;position:absolute}.fa-layers{text-align:center;vertical-align:-.125em;width:1em;height:1em;display:inline-block;position:relative}.fa-layers svg.svg-inline--fa{transform-origin:50%}.fa-layers-text{transform-origin:50%;top:50%;left:50%;transform:translate(-50%,-50%)}.fa-layers-counter{background-color:var(--fa-counter-background-color,#ff253a);border-radius:var(--fa-counter-border-radius,1em);box-sizing:border-box;color:var(--fa-inverse,#fff);line-height:var(--fa-counter-line-height,1);max-width:var(--fa-counter-max-width,5em);min-width:var(--fa-counter-min-width,1.5em);padding:var(--fa-counter-padding,.25em .5em);right:var(--fa-right,0);text-overflow:ellipsis;top:var(--fa-top,0);transform:scale(var(--fa-counter-scale,.25));transform-origin:100% 0;overflow:hidden}.fa-layers-bottom-right{bottom:var(--fa-bottom,0);right:var(--fa-right,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:100% 100%;top:auto}.fa-layers-bottom-left{bottom:var(--fa-bottom,0);left:var(--fa-left,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:0 100%;top:auto;right:auto}.fa-layers-top-right{top:var(--fa-top,0);right:var(--fa-right,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:100% 0}.fa-layers-top-left{left:var(--fa-left,0);right:auto;top:var(--fa-top,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:0 0}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{vertical-align:.225em;font-size:.625em;line-height:.1em}.fa-xs{vertical-align:.125em;font-size:.75em;line-height:.08333em}.fa-sm{vertical-align:.05357em;font-size:.875em;line-height:.07143em}.fa-lg{vertical-align:-.075em;font-size:1.25em;line-height:.05em}.fa-xl{vertical-align:-.125em;font-size:1.5em;line-height:.04167em}.fa-2xl{vertical-align:-.1875em;font-size:2em;line-height:.03125em}.fa-fw{text-align:center;width:1.25em}.fa-ul{margin-left:var(--fa-li-margin,2.5em);padding-left:0;list-style-type:none}.fa-ul>li{position:relative}.fa-li{left:calc(-1*var(--fa-li-width,2em));text-align:center;width:var(--fa-li-width,2em);line-height:inherit;position:absolute}.fa-border{border-color:var(--fa-border-color,#eee);border-radius:var(--fa-border-radius,.1em);border-style:var(--fa-border-style,solid);border-width:var(--fa-border-width,.08em);padding:var(--fa-border-padding,.2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin,.3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin,.3em)}.fa-beat{animation-name:fa-beat;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-bounce{animation-name:fa-bounce;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1))}.fa-fade{animation-name:fa-fade;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-beat-fade{animation-name:fa-beat-fade;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-flip{animation-name:fa-flip;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-shake{animation-name:fa-shake;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin{animation-name:fa-spin;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,2s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin-reverse{--fa-animation-direction:reverse}.fa-pulse,.fa-spin-pulse{animation-name:fa-spin;animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,steps(8))}@media(prefers-reduced-motion:reduce){.fa-beat,.fa-bounce,.fa-fade,.fa-beat-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{transition-duration:0s;transition-delay:0s;animation-duration:1ms;animation-iteration-count:1;animation-delay:-1ms}}@keyframes fa-beat{0%,90%{transform:scale(1)}45%{transform:scale(var(--fa-beat-scale,1.25))}}@keyframes fa-bounce{0%{transform:scale(1)translateY(0)}10%{transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9))translateY(0)}30%{transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1))translateY(var(--fa-bounce-height,-.5em))}50%{transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95))translateY(0)}57%{transform:scale(1)translateY(var(--fa-bounce-rebound,-.125em))}64%{transform:scale(1)translateY(0)}to{transform:scale(1)translateY(0)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity,.4);transform:scale(1)}50%{opacity:1;transform:scale(var(--fa-beat-fade-scale,1.125))}}@keyframes fa-flip{50%{transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@keyframes fa-shake{0%{transform:rotate(-15deg)}4%{transform:rotate(15deg)}8%,24%{transform:rotate(-18deg)}12%,28%{transform:rotate(18deg)}16%{transform:rotate(-22deg)}20%{transform:rotate(22deg)}32%{transform:rotate(-12deg)}36%{transform:rotate(12deg)}40%,to{transform:rotate(0)}}@keyframes fa-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fa-rotate-90{transform:rotate(90deg)}.fa-rotate-180{transform:rotate(180deg)}.fa-rotate-270{transform:rotate(270deg)}.fa-flip-horizontal{transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}.fa-rotate-by{transform:rotate(var(--fa-rotate-angle,0))}.fa-stack{vertical-align:middle;width:2.5em;height:2em;display:inline-block;position:relative}.fa-stack-1x,.fa-stack-2x{z-index:var(--fa-stack-z-index,auto);margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}.svg-inline--fa.fa-stack-1x{width:1.25em;height:1em}.svg-inline--fa.fa-stack-2x{width:2.5em;height:2em}.fa-inverse{color:var(--fa-inverse,#fff)}.sr-only,.fa-sr-only,.sr-only-focusable:not(:focus),.fa-sr-only-focusable:not(:focus){clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.svg-inline--fa .fa-primary{fill:var(--fa-primary-color,currentColor);opacity:var(--fa-primary-opacity,1)}.svg-inline--fa .fa-secondary{fill:var(--fa-secondary-color,currentColor);opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-primary{opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-secondary{opacity:var(--fa-primary-opacity,1)}.svg-inline--fa mask .fa-primary,.svg-inline--fa mask .fa-secondary{fill:#000}@layer theme{:root,:host{--cnf-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--cnf-color-red-500:oklch(63.7% .237 25.331);--cnf-color-blue-500:oklch(62.3% .214 259.815);--cnf-color-blue-600:oklch(54.6% .245 262.881);--cnf-spacing:.25rem;--cnf-container-md:28rem;--cnf-container-lg:32rem;--cnf-text-xs:.75rem;--cnf-text-xs--line-height:calc(1/.75);--cnf-text-sm:.875rem;--cnf-text-sm--line-height:calc(1.25/.875);--cnf-text-base:1rem;--cnf-text-base--line-height: 1.5 ;--cnf-text-lg:1.125rem;--cnf-text-lg--line-height:calc(1.75/1.125);--cnf-text-xl:1.25rem;--cnf-text-xl--line-height:calc(1.75/1.25);--cnf-text-2xl:1.5rem;--cnf-text-2xl--line-height:calc(2/1.5);--cnf-font-weight-normal:400;--cnf-font-weight-medium:500;--cnf-font-weight-semibold:600;--cnf-font-weight-bold:700;--cnf-radius-sm:.25rem;--cnf-radius-md:.375rem;--cnf-radius-lg:.5rem;--cnf-ease-out:cubic-bezier(0,0,.2,1);--cnf-ease-in-out:cubic-bezier(.4,0,.2,1);--cnf-animate-spin:spin 1s linear infinite;--cnf-animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--cnf-default-transition-duration:.15s;--cnf-default-transition-timing-function:cubic-bezier(.4,0,.2,1)}}@layer utilities{.cnf\\:pointer-events-none{pointer-events:none!important}.cnf\\:absolute{position:absolute!important}.cnf\\:fixed{position:fixed!important}.cnf\\:relative{position:relative!important}.cnf\\:sticky{position:sticky!important}.cnf\\:inset-0{inset:calc(var(--cnf-spacing)*0)!important}.cnf\\:top-0{top:calc(var(--cnf-spacing)*0)!important}.cnf\\:top-0\\.5{top:calc(var(--cnf-spacing)*.5)!important}.cnf\\:top-1{top:calc(var(--cnf-spacing)*1)!important}.cnf\\:top-3{top:calc(var(--cnf-spacing)*3)!important}.cnf\\:-right-0,.cnf\\:right-0{right:calc(var(--cnf-spacing)*0)!important}.cnf\\:bottom-0{bottom:calc(var(--cnf-spacing)*0)!important}.cnf\\:bottom-2{bottom:calc(var(--cnf-spacing)*2)!important}.cnf\\:left-0{left:calc(var(--cnf-spacing)*0)!important}.cnf\\:left-1{left:calc(var(--cnf-spacing)*1)!important}.cnf\\:left-1\\/2{left:50%!important}.cnf\\:left-4{left:calc(var(--cnf-spacing)*4)!important}.cnf\\:z-2{z-index:2!important}.cnf\\:z-10{z-index:10!important}.cnf\\:z-\\[9999999997\\],.cnf\\:z-\\[9999999998\\],.cnf\\:z-\\[9999999999\\]{z-index:2147483647!important}.cnf\\:m-0{margin:calc(var(--cnf-spacing)*0)!important}.cnf\\:mx-1{margin-inline:calc(var(--cnf-spacing)*1)!important}.cnf\\:mx-2{margin-inline:calc(var(--cnf-spacing)*2)!important}.cnf\\:mx-4{margin-inline:calc(var(--cnf-spacing)*4)!important}.cnf\\:mx-auto{margin-inline:auto!important}.cnf\\:my-1{margin-block:calc(var(--cnf-spacing)*1)!important}.cnf\\:my-2{margin-block:calc(var(--cnf-spacing)*2)!important}.cnf\\:-mt-\\[1px\\]{margin-top:-1px!important}.cnf\\:mt-0{margin-top:calc(var(--cnf-spacing)*0)!important}.cnf\\:mt-3{margin-top:calc(var(--cnf-spacing)*3)!important}.cnf\\:mr-2{margin-right:calc(var(--cnf-spacing)*2)!important}.cnf\\:-mb-3{margin-bottom:calc(var(--cnf-spacing)*-3)!important}.cnf\\:mb-1{margin-bottom:calc(var(--cnf-spacing)*1)!important}.cnf\\:mb-2{margin-bottom:calc(var(--cnf-spacing)*2)!important}.cnf\\:mb-4{margin-bottom:calc(var(--cnf-spacing)*4)!important}.cnf\\:ml-2{margin-left:calc(var(--cnf-spacing)*2)!important}.cnf\\:box-border{box-sizing:border-box!important}.cnf\\:block{display:block!important}.cnf\\:flex{display:flex!important}.cnf\\:hidden{display:none!important}.cnf\\:inline-flex{display:inline-flex!important}.cnf\\:size-4{width:calc(var(--cnf-spacing)*4)!important;height:calc(var(--cnf-spacing)*4)!important}.cnf\\:size-9{width:calc(var(--cnf-spacing)*9)!important;height:calc(var(--cnf-spacing)*9)!important}.cnf\\:size-full{width:100%!important;height:100%!important}.cnf\\:h-2{height:calc(var(--cnf-spacing)*2)!important}.cnf\\:h-3{height:calc(var(--cnf-spacing)*3)!important}.cnf\\:h-4{height:calc(var(--cnf-spacing)*4)!important}.cnf\\:h-16{height:calc(var(--cnf-spacing)*16)!important}.cnf\\:h-\\[18px\\]{height:18px!important}.cnf\\:h-\\[20px\\]{height:20px!important}.cnf\\:h-\\[22px\\]{height:22px!important}.cnf\\:h-\\[24px\\]{height:24px!important}.cnf\\:h-\\[30px\\]{height:30px!important}.cnf\\:h-\\[38px\\]{height:38px!important}.cnf\\:h-\\[40px\\]{height:40px!important}.cnf\\:h-\\[75px\\]{height:75px!important}.cnf\\:h-\\[100vh\\]{height:100vh!important}.cnf\\:h-\\[110px\\]{height:110px!important}.cnf\\:h-\\[calc\\(100vh-10rem\\)\\]{height:calc(100vh - 10rem)!important}.cnf\\:h-full{height:100%!important}.cnf\\:min-h-0{min-height:calc(var(--cnf-spacing)*0)!important}.cnf\\:min-h-16{min-height:calc(var(--cnf-spacing)*16)!important}.cnf\\:min-h-screen{min-height:100vh!important}.cnf\\:w-1\\/3{width:33.3333%!important}.cnf\\:w-3{width:calc(var(--cnf-spacing)*3)!important}.cnf\\:w-4{width:calc(var(--cnf-spacing)*4)!important}.cnf\\:w-16{width:calc(var(--cnf-spacing)*16)!important}.cnf\\:w-\\[20px\\]{width:20px!important}.cnf\\:w-\\[27px\\]{width:27px!important}.cnf\\:w-\\[38px\\]{width:38px!important}.cnf\\:w-\\[75px\\]{width:75px!important}.cnf\\:w-\\[calc\\(100vw-1rem\\)\\]{width:calc(100vw - 1rem)!important}.cnf\\:w-fit{width:fit-content!important}.cnf\\:w-full{width:100%!important}.cnf\\:w-screen{width:100vw!important}.cnf\\:max-w-400{max-width:calc(var(--cnf-spacing)*400)!important}.cnf\\:max-w-\\[300px\\]{max-width:300px!important}.cnf\\:max-w-\\[400px\\]{max-width:400px!important}.cnf\\:max-w-\\[420px\\]{max-width:420px!important}.cnf\\:max-w-full{max-width:100%!important}.cnf\\:max-w-lg{max-width:var(--cnf-container-lg)!important}.cnf\\:max-w-md{max-width:var(--cnf-container-md)!important}.cnf\\:min-w-0{min-width:calc(var(--cnf-spacing)*0)!important}.cnf\\:min-w-\\[106px\\]{min-width:106px!important}.cnf\\:min-w-\\[140px\\]{min-width:140px!important}.cnf\\:min-w-\\[160px\\]{min-width:160px!important}.cnf\\:min-w-\\[172px\\]{min-width:172px!important}.cnf\\:min-w-\\[270px\\]{min-width:270px!important}.cnf\\:min-w-fit{min-width:fit-content!important}.cnf\\:flex-1{flex:1!important}.cnf\\:flex-shrink-0,.cnf\\:shrink-0{flex-shrink:0!important}.cnf\\:-translate-x-1\\/2{--tw-translate-x: -50% !important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.cnf\\:translate-y-0{--tw-translate-y:calc(var(--cnf-spacing)*0)!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.cnf\\:translate-y-full{--tw-translate-y:100%!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.cnf\\:rotate-180{rotate:180deg!important}.cnf\\:animate-progress{animation:1.5s ease-in-out infinite progress!important}.cnf\\:animate-pulse{animation:var(--cnf-animate-pulse)!important}.cnf\\:animate-spin{animation:var(--cnf-animate-spin)!important}.cnf\\:cursor-not-allowed{cursor:not-allowed!important}.cnf\\:cursor-pointer{cursor:pointer!important}.cnf\\:cursor-zoom-in{cursor:zoom-in!important}.cnf\\:list-decimal{list-style-type:decimal!important}.cnf\\:list-disc{list-style-type:disc!important}.cnf\\:list-none{list-style-type:none!important}.cnf\\:flex-col{flex-direction:column!important}.cnf\\:flex-wrap{flex-wrap:wrap!important}.cnf\\:items-center{align-items:center!important}.cnf\\:items-start{align-items:flex-start!important}.cnf\\:items-stretch{align-items:stretch!important}.cnf\\:justify-between{justify-content:space-between!important}.cnf\\:justify-center{justify-content:center!important}.cnf\\:justify-end{justify-content:flex-end!important}.cnf\\:justify-start{justify-content:flex-start!important}.cnf\\:gap-1{gap:calc(var(--cnf-spacing)*1)!important}.cnf\\:gap-2{gap:calc(var(--cnf-spacing)*2)!important}.cnf\\:gap-3{gap:calc(var(--cnf-spacing)*3)!important}.cnf\\:gap-4{gap:calc(var(--cnf-spacing)*4)!important}.cnf\\:gap-8{gap:calc(var(--cnf-spacing)*8)!important}:where(.cnf\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--cnf-spacing)*2)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--cnf-spacing)*2)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.cnf\\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--cnf-spacing)*4)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--cnf-spacing)*4)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.cnf\\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--cnf-spacing)*1)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--cnf-spacing)*1)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.cnf\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--cnf-spacing)*2)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--cnf-spacing)*2)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.cnf\\:space-x-4>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--cnf-spacing)*4)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--cnf-spacing)*4)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.cnf\\:divide-y>:not(:last-child)){--tw-divide-y-reverse:0!important;border-bottom-style:var(--tw-border-style)!important;border-top-style:var(--tw-border-style)!important;border-top-width:calc(1px*var(--tw-divide-y-reverse))!important;border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))!important}:where(.cnf\\:divide-black\\/10>:not(:last-child)){border-color:oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1)!important}:where(.cnf\\:divide-gray-100>:not(:last-child)){border-color:#ebedef!important}.cnf\\:self-end{align-self:flex-end!important}.cnf\\:truncate{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.cnf\\:overflow-auto{overflow:auto!important}.cnf\\:overflow-hidden{overflow:hidden!important}.cnf\\:overflow-x-hidden{overflow-x:hidden!important}.cnf\\:overflow-y-auto{overflow-y:auto!important}.cnf\\:rounded{border-radius:.25rem!important}.cnf\\:rounded-full{border-radius:3.40282e38px!important}.cnf\\:rounded-lg{border-radius:var(--cnf-radius-lg)!important}.cnf\\:rounded-md{border-radius:var(--cnf-radius-md)!important}.cnf\\:rounded-none{border-radius:0!important}.cnf\\:rounded-sm{border-radius:var(--cnf-radius-sm)!important}.cnf\\:rounded-t-sm{border-top-left-radius:var(--cnf-radius-sm)!important;border-top-right-radius:var(--cnf-radius-sm)!important}.cnf\\:rounded-l-sm{border-top-left-radius:var(--cnf-radius-sm)!important;border-bottom-left-radius:var(--cnf-radius-sm)!important}.cnf\\:rounded-b-md{border-bottom-right-radius:var(--cnf-radius-md)!important;border-bottom-left-radius:var(--cnf-radius-md)!important}.cnf\\:border{border-style:var(--tw-border-style)!important;border-width:1px!important}.cnf\\:border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.cnf\\:border-2{border-style:var(--tw-border-style)!important;border-width:2px!important}.cnf\\:border-t{border-top-style:var(--tw-border-style)!important;border-top-width:1px!important}.cnf\\:border-b{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.cnf\\:border-l-1{border-left-style:var(--tw-border-style)!important;border-left-width:1px!important}.cnf\\:border-l-3{border-left-style:var(--tw-border-style)!important;border-left-width:3px!important}.cnf\\:border-none{--tw-border-style:none!important;border-style:none!important}.cnf\\:border-\\[\\#94C8FF\\]{border-color:#94c8ff!important}.cnf\\:border-\\[\\#A5DAB1\\]{border-color:#a5dab1!important}.cnf\\:border-\\[\\#C1C5C8\\]{border-color:#c1c5c8!important}.cnf\\:border-black\\/10{border-color:oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1)!important}.cnf\\:border-danger-200{border-color:#f0aab1!important}.cnf\\:border-danger-500{border-color:#dc3545!important}.cnf\\:border-gray-50{border-color:#f5f6f7!important}.cnf\\:border-gray-100{border-color:#ebedef!important}.cnf\\:border-gray-200{border-color:#ced1d6!important}.cnf\\:border-gray-300{border-color:#b0b5bd!important}.cnf\\:border-gray-400{border-color:#757e8c!important}.cnf\\:border-gray-700{border-color:#2c3544!important}.cnf\\:border-gray-800{border-color:#232b37!important}.cnf\\:border-info-500{border-color:#17a2b8!important}.cnf\\:border-orange-500{border-color:#ff7800!important}.cnf\\:border-primary-200{border-color:#94c8ff!important}.cnf\\:border-primary-600{border-color:#0069d9!important}.cnf\\:border-purple-500{border-color:#a855f7!important}.cnf\\:border-red-500{border-color:var(--cnf-color-red-500)!important}.cnf\\:border-secondary-500{border-color:#6c757d!important}.cnf\\:border-secondary-600{border-color:#5a6268!important}.cnf\\:border-steel-500{border-color:#556987!important}.cnf\\:border-success-200{border-color:#a5dab1!important}.cnf\\:border-success-600{border-color:#218838!important}.cnf\\:border-warning-200{border-color:#ffe597!important}.cnf\\:border-warning-500{border-color:#ffc107!important}.cnf\\:border-white{border-color:#fff!important}.cnf\\:border-t-blue-500{border-top-color:var(--cnf-color-blue-500)!important}.cnf\\:border-l-danger-500{border-left-color:#dc3545!important}.cnf\\:border-l-primary-500{border-left-color:#007bff!important}.cnf\\:border-l-success-500{border-left-color:#28a745!important}.cnf\\:border-l-warning-500{border-left-color:#ffc107!important}.cnf\\:bg-\\[\\#E6F2FF\\]{background-color:#e6f2ff!important}.cnf\\:bg-\\[\\#EAF6EC\\]{background-color:#eaf6ec!important}.cnf\\:bg-\\[\\#F0F1F2\\]{background-color:#f0f1f2!important}.cnf\\:bg-\\[\\#FFE600\\]{background-color:#ffe600!important}.cnf\\:bg-black\\/30{background-color:oklab(0% none none/.3)!important}.cnf\\:bg-blue-500{background-color:var(--cnf-color-blue-500)!important}.cnf\\:bg-danger-100{background-color:#f6ccd0!important}.cnf\\:bg-danger-500{background-color:#dc3545!important}.cnf\\:bg-dark{background-color:#1c232d!important}.cnf\\:bg-fiserv-orange-500{background-color:#f60!important}.cnf\\:bg-gray-50{background-color:#f5f6f7!important}.cnf\\:bg-gray-100{background-color:#ebedef!important}.cnf\\:bg-gray-200{background-color:#ced1d6!important}.cnf\\:bg-gray-400{background-color:#757e8c!important}.cnf\\:bg-gray-500{background-color:#3a475b!important}.cnf\\:bg-gray-800{background-color:#232b37!important}.cnf\\:bg-gray-900{background-color:#1c232d!important}.cnf\\:bg-info-500{background-color:#17a2b8!important}.cnf\\:bg-orange-500{background-color:#ff7800!important}.cnf\\:bg-primary-100{background-color:#bfdeff!important}.cnf\\:bg-primary-600{background-color:#0069d9!important}.cnf\\:bg-primary-800{background-color:#0054af!important}.cnf\\:bg-purple-500{background-color:#a855f7!important}.cnf\\:bg-secondary-500{background-color:#6c757d!important}.cnf\\:bg-steel-500{background-color:#556987!important}.cnf\\:bg-success-100{background-color:#c9e9d0!important}.cnf\\:bg-success-500{background-color:#28a745!important}.cnf\\:bg-success-600{background-color:#218838!important}.cnf\\:bg-warning-100{background-color:#ffefc1!important}.cnf\\:bg-warning-500{background-color:#ffc107!important}.cnf\\:bg-white{background-color:#fff!important}.cnf\\:bg-yellow{background-color:#ffe600!important}.cnf\\:object-contain{object-fit:contain!important}.cnf\\:object-cover{object-fit:cover!important}.cnf\\:object-center{object-position:center!important}.cnf\\:p-1{padding:calc(var(--cnf-spacing)*1)!important}.cnf\\:p-2{padding:calc(var(--cnf-spacing)*2)!important}.cnf\\:p-3{padding:calc(var(--cnf-spacing)*3)!important}.cnf\\:p-4{padding:calc(var(--cnf-spacing)*4)!important}.cnf\\:px-0{padding-inline:calc(var(--cnf-spacing)*0)!important}.cnf\\:px-1{padding-inline:calc(var(--cnf-spacing)*1)!important}.cnf\\:px-2{padding-inline:calc(var(--cnf-spacing)*2)!important}.cnf\\:px-3{padding-inline:calc(var(--cnf-spacing)*3)!important}.cnf\\:px-4{padding-inline:calc(var(--cnf-spacing)*4)!important}.cnf\\:px-\\[2px\\]{padding-inline:2px!important}.cnf\\:py-1{padding-block:calc(var(--cnf-spacing)*1)!important}.cnf\\:py-1\\.5{padding-block:calc(var(--cnf-spacing)*1.5)!important}.cnf\\:py-2{padding-block:calc(var(--cnf-spacing)*2)!important}.cnf\\:py-4{padding-block:calc(var(--cnf-spacing)*4)!important}.cnf\\:pt-2{padding-top:calc(var(--cnf-spacing)*2)!important}.cnf\\:pr-2{padding-right:calc(var(--cnf-spacing)*2)!important}.cnf\\:pb-1{padding-bottom:calc(var(--cnf-spacing)*1)!important}.cnf\\:pb-2{padding-bottom:calc(var(--cnf-spacing)*2)!important}.cnf\\:pb-\\[102px\\]{padding-bottom:102px!important}.cnf\\:pl-4{padding-left:calc(var(--cnf-spacing)*4)!important}.cnf\\:text-center{text-align:center!important}.cnf\\:text-left{text-align:left!important}.cnf\\:font-mono{font-family:var(--cnf-font-mono)!important}.cnf\\:text-2xl{font-size:var(--cnf-text-2xl)!important;line-height:var(--tw-leading,var(--cnf-text-2xl--line-height))!important}.cnf\\:text-base{font-size:var(--cnf-text-base)!important;line-height:var(--tw-leading,var(--cnf-text-base--line-height))!important}.cnf\\:text-lg{font-size:var(--cnf-text-lg)!important;line-height:var(--tw-leading,var(--cnf-text-lg--line-height))!important}.cnf\\:text-sm{font-size:var(--cnf-text-sm)!important;line-height:var(--tw-leading,var(--cnf-text-sm--line-height))!important}.cnf\\:text-sm\\/6{font-size:var(--cnf-text-sm)!important;line-height:calc(var(--cnf-spacing)*6)!important}.cnf\\:text-xl{font-size:var(--cnf-text-xl)!important;line-height:var(--tw-leading,var(--cnf-text-xl--line-height))!important}.cnf\\:text-xs{font-size:var(--cnf-text-xs)!important;line-height:var(--tw-leading,var(--cnf-text-xs--line-height))!important}.cnf\\:text-\\[10px\\]{font-size:10px!important}.cnf\\:leading-\\[18px\\]{--tw-leading:18px!important;line-height:18px!important}.cnf\\:leading-\\[22px\\]{--tw-leading:22px!important;line-height:22px!important}.cnf\\:leading-\\[24px\\]{--tw-leading:24px!important;line-height:24px!important}.cnf\\:font-bold{--tw-font-weight:var(--cnf-font-weight-bold)!important;font-weight:var(--cnf-font-weight-bold)!important}.cnf\\:font-medium{--tw-font-weight:var(--cnf-font-weight-medium)!important;font-weight:var(--cnf-font-weight-medium)!important}.cnf\\:font-normal{--tw-font-weight:var(--cnf-font-weight-normal)!important;font-weight:var(--cnf-font-weight-normal)!important}.cnf\\:font-semibold{--tw-font-weight:var(--cnf-font-weight-semibold)!important;font-weight:var(--cnf-font-weight-semibold)!important}.cnf\\:whitespace-nowrap{white-space:nowrap!important}.cnf\\:text-\\[\\#0069D9\\]{color:#0069d9!important}.cnf\\:text-black{color:#000!important}.cnf\\:text-blue-600{color:var(--cnf-color-blue-600)!important}.cnf\\:text-danger-500{color:#dc3545!important}.cnf\\:text-danger-600{color:#c82333!important}.cnf\\:text-danger-900{color:#721c24!important}.cnf\\:text-dark{color:#1c232d!important}.cnf\\:text-dark-300{color:#343a40!important}.cnf\\:text-fiserv-orange-500{color:#f60!important}.cnf\\:text-gray-50{color:#f5f6f7!important}.cnf\\:text-gray-200{color:#ced1d6!important}.cnf\\:text-gray-300{color:#b0b5bd!important}.cnf\\:text-gray-400{color:#757e8c!important}.cnf\\:text-gray-500{color:#3a475b!important}.cnf\\:text-gray-700{color:#2c3544!important}.cnf\\:text-gray-800{color:#232b37!important}.cnf\\:text-gray-900{color:#1c232d!important}.cnf\\:text-info-500{color:#17a2b8!important}.cnf\\:text-orange-500{color:#ff7800!important}.cnf\\:text-primary-600{color:#0069d9!important}.cnf\\:text-primary-900{color:#004085!important}.cnf\\:text-purple-500{color:#a855f7!important}.cnf\\:text-secondary{color:#6c757d!important}.cnf\\:text-secondary-400{color:#899197!important}.cnf\\:text-secondary-500{color:#6c757d!important}.cnf\\:text-secondary-600{color:#5a6268!important}.cnf\\:text-steel-500{color:#556987!important}.cnf\\:text-success-500{color:#28a745!important}.cnf\\:text-success-600{color:#218838!important}.cnf\\:text-success-900{color:#155724!important}.cnf\\:text-warning-500{color:#ffc107!important}.cnf\\:text-warning-600{color:#f59e0b!important}.cnf\\:text-warning-900{color:#935f07!important}.cnf\\:text-white{color:#fff!important}.cnf\\:text-yellow{color:#ffe600!important}.cnf\\:uppercase{text-transform:uppercase!important}.cnf\\:italic{font-style:italic!important}.cnf\\:line-through{text-decoration-line:line-through!important}.cnf\\:underline{text-decoration-line:underline!important}.cnf\\:opacity-0{opacity:0!important}.cnf\\:opacity-50{opacity:.5!important}.cnf\\:opacity-60{opacity:.6!important}.cnf\\:opacity-70{opacity:.7!important}.cnf\\:opacity-100{opacity:1!important}.cnf\\:shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.cnf\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.cnf\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.cnf\\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.cnf\\:shadow-dark\\/50{--tw-shadow-color:#1c232d80!important}@supports (color:color-mix(in lab,red,red)){.cnf\\:shadow-dark\\/50{--tw-shadow-color:color-mix(in oklab,oklab(25.3864% -.0047446 -.0210213/.5) var(--tw-shadow-alpha),transparent)!important}}.cnf\\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events!important;transition-timing-function:var(--tw-ease,var(--cnf-default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--cnf-default-transition-duration))!important}.cnf\\:transition-all{transition-property:all!important;transition-timing-function:var(--tw-ease,var(--cnf-default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--cnf-default-transition-duration))!important}.cnf\\:duration-300{--tw-duration:.3s!important;transition-duration:.3s!important}.cnf\\:ease-in-out{--tw-ease:var(--cnf-ease-in-out)!important;transition-timing-function:var(--cnf-ease-in-out)!important}.cnf\\:ease-out{--tw-ease:var(--cnf-ease-out)!important;transition-timing-function:var(--cnf-ease-out)!important}.cnf\\:outline-none{--tw-outline-style:none!important;outline-style:none!important}.cnf\\:\\[writing-mode\\:vertical-lr\\]{writing-mode:vertical-lr!important}@media(hover:hover){.cnf\\:hover\\:border-primary-500:hover{border-color:#007bff!important}.cnf\\:hover\\:bg-danger-500:hover{background-color:#dc3545!important}.cnf\\:hover\\:bg-dark:hover{background-color:#1c232d!important}.cnf\\:hover\\:bg-fiserv-orange-500:hover{background-color:#f60!important}.cnf\\:hover\\:bg-gray-50:hover{background-color:#f5f6f7!important}.cnf\\:hover\\:bg-gray-100:hover{background-color:#ebedef!important}.cnf\\:hover\\:bg-gray-200:hover{background-color:#ced1d6!important}.cnf\\:hover\\:bg-gray-400:hover{background-color:#757e8c!important}.cnf\\:hover\\:bg-gray-500:hover{background-color:#3a475b!important}.cnf\\:hover\\:bg-gray-800:hover{background-color:#232b37!important}.cnf\\:hover\\:bg-gray-900:hover{background-color:#1c232d!important}.cnf\\:hover\\:bg-info-500:hover{background-color:#17a2b8!important}.cnf\\:hover\\:bg-orange-500:hover{background-color:#ff7800!important}.cnf\\:hover\\:bg-primary-700:hover{background-color:#0062cc!important}.cnf\\:hover\\:bg-primary-800:hover{background-color:#0054af!important}.cnf\\:hover\\:bg-purple-500:hover{background-color:#a855f7!important}.cnf\\:hover\\:bg-secondary-500:hover{background-color:#6c757d!important}.cnf\\:hover\\:bg-steel-500:hover{background-color:#556987!important}.cnf\\:hover\\:bg-success-500:hover{background-color:#28a745!important}.cnf\\:hover\\:bg-transparent:hover{background-color:#0000!important}.cnf\\:hover\\:bg-warning-500:hover{background-color:#ffc107!important}.cnf\\:hover\\:bg-yellow:hover{background-color:#ffe600!important}.cnf\\:hover\\:text-black:hover{color:#000!important}.cnf\\:hover\\:text-blue-600:hover{color:var(--cnf-color-blue-600)!important}.cnf\\:hover\\:text-danger-600:hover{color:#c82333!important}.cnf\\:hover\\:text-danger-700:hover{color:#bd2130!important}.cnf\\:hover\\:text-danger-800:hover{color:#aa1927!important}.cnf\\:hover\\:text-dark:hover{color:#1c232d!important}.cnf\\:hover\\:text-fiserv-orange-800:hover{color:#bf4c00!important}.cnf\\:hover\\:text-gray-400:hover{color:#757e8c!important}.cnf\\:hover\\:text-gray-700:hover{color:#2c3544!important}.cnf\\:hover\\:text-gray-800:hover{color:#232b37!important}.cnf\\:hover\\:text-gray-900:hover{color:#1c232d!important}.cnf\\:hover\\:text-info-800:hover{color:#026777!important}.cnf\\:hover\\:text-orange-800:hover{color:#c75d00!important}.cnf\\:hover\\:text-primary-600:hover{color:#0069d9!important}.cnf\\:hover\\:text-primary-700:hover{color:#0062cc!important}.cnf\\:hover\\:text-primary-800:hover{color:#0054af!important}.cnf\\:hover\\:text-purple-800:hover{color:#6f33a7!important}.cnf\\:hover\\:text-secondary-800:hover{color:#444a50!important}.cnf\\:hover\\:text-steel-800:hover{color:#333f51!important}.cnf\\:hover\\:text-success-600:hover{color:#218838!important}.cnf\\:hover\\:text-success-700:hover{color:#1e7e34!important}.cnf\\:hover\\:text-success-800:hover{color:#106c25!important}.cnf\\:hover\\:text-warning-600:hover{color:#f59e0b!important}.cnf\\:hover\\:text-warning-700:hover{color:#dd8e0a!important}.cnf\\:hover\\:text-warning-800:hover{color:#b87708!important}.cnf\\:hover\\:text-white:hover{color:#fff!important}.cnf\\:hover\\:text-yellow:hover{color:#ffe600!important}}.cnf\\:focus\\:border-red-500:focus{border-color:var(--cnf-color-red-500)!important}.cnf\\:focus\\:outline:focus{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.cnf\\:focus\\:outline-2:focus{outline-style:var(--tw-outline-style)!important;outline-width:2px!important}.cnf\\:focus\\:outline-3:focus{outline-style:var(--tw-outline-style)!important;outline-width:3px!important}.cnf\\:focus\\:outline-primary-500\\/\\[\\.3\\]:focus{outline-color:#007bff4d!important}.cnf\\:focus\\:outline-primary-600:focus{outline-color:#0069d9!important}.cnf\\:active\\:bg-gray-50:active{background-color:#f5f6f7!important}.cnf\\:active\\:bg-gray-800:active{background-color:#232b37!important}.cnf\\:active\\:text-black:active{color:#000!important}.cnf\\:active\\:text-white:active{color:#fff!important}.cnf\\:disabled\\:pointer-events-none:disabled{pointer-events:none!important}.cnf\\:disabled\\:opacity-15:disabled{opacity:.15!important}.cnf\\:data-closed\\:opacity-0[data-closed]{opacity:0!important}.cnf\\:data-focus\\:-outline-offset-2[data-focus]{outline-offset:-2px!important}.cnf\\:data-focus\\:outline-primary-500[data-focus]{outline-color:#007bff!important}@media(min-width:48rem){.cnf\\:md\\:min-w-fit{min-width:fit-content!important}}}@layer base{.confidence-playbook{all:revert}.confidence-playbook *,.confidence-playbook :before,.confidence-playbook :after{box-sizing:border-box}.confidence-playbook,.confidence-playbook *,.confidence-playbook :after,.confidence-playbook :before,.confidence-playbook ::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}.confidence-playbook ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}.confidence-playbook{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}.confidence-playbook hr{height:0;color:inherit;border-top-width:1px}.confidence-playbook abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.confidence-playbook h1,.confidence-playbook h2,.confidence-playbook h3,.confidence-playbook h4,.confidence-playbook h5,.confidence-playbook h6{font-size:inherit;font-weight:inherit}.confidence-playbook a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}.confidence-playbook b,.confidence-playbook strong{font-weight:bolder}.confidence-playbook code,.confidence-playbook kbd,.confidence-playbook samp,.confidence-playbook pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}.confidence-playbook small{font-size:80%}.confidence-playbook sub,.confidence-playbook sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}.confidence-playbook sub{bottom:-.25em}.confidence-playbook sup{top:-.5em}.confidence-playbook table{text-indent:0;border-color:inherit;border-collapse:collapse}.confidence-playbook :-moz-focusring{outline:auto}.confidence-playbook progress{vertical-align:baseline}.confidence-playbook summary{display:list-item}.confidence-playbook ol,.confidence-playbook ul,.confidence-playbook menu{list-style:none}.confidence-playbook img,.confidence-playbook svg,.confidence-playbook video,.confidence-playbook canvas,.confidence-playbook audio,.confidence-playbook iframe,.confidence-playbook embed,.confidence-playbook object{vertical-align:middle;display:block}.confidence-playbook img,.confidence-playbook video{max-width:100%;height:auto}.confidence-playbook button,.confidence-playbook input,.confidence-playbook select,.confidence-playbook optgroup,.confidence-playbook textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.confidence-playbook ::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.confidence-playbook :where(select:is([multiple],[size])) optgroup{font-weight:bolder}.confidence-playbook :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}.confidence-playbook ::file-selector-button{margin-inline-end:4px}.confidence-playbook ::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){.confidence-playbook ::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){.confidence-playbook ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}.confidence-playbook textarea{resize:vertical}.confidence-playbook ::-webkit-search-decoration{-webkit-appearance:none}.confidence-playbook ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}.confidence-playbook ::-webkit-datetime-edit{display:inline-flex}.confidence-playbook ::-webkit-datetime-edit-fields-wrapper{padding:0}.confidence-playbook ::-webkit-datetime-edit{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-year-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-month-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-day-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-hour-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-minute-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-second-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-millisecond-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-meridiem-field{padding-block:0}.confidence-playbook ::-webkit-calendar-picker-indicator{line-height:1}.confidence-playbook :-moz-ui-invalid{box-shadow:none}.confidence-playbook button,.confidence-playbook input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}.confidence-playbook ::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}.confidence-playbook ::-webkit-inner-spin-button{height:auto}.confidence-playbook ::-webkit-outer-spin-button{height:auto}.confidence-playbook [hidden]:where(:not([hidden=until-found])){display:none!important}}.confidence-playbook *{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}.confidence-playbook{display:unset!important;color:#1c232d!important}@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid}}}@layer theme,base,components,utilities;.lexical-view-mode{word-break:break-word!important;color:#1c232d!important;width:100%!important}.lexical-view-mode ul{list-style:revert!important}.editable .lexical-view-mode:hover{cursor:text!important;background-color:#00000012!important;border-radius:1px!important;outline:4px solid #00000012!important}.lexical-view-mode .Collapsible__container{width:fit-content!important}.lexical-view-mode .Collapsible__title{color:#007bff!important;cursor:pointer!important;background-color:#0000!important;align-items:center!important;margin-bottom:4px!important;padding:0!important;list-style:none!important;display:flex!important}.lexical-view-mode .Collapsible__title:hover{color:#0069d9!important}.lexical-view-mode .Collapsible__title:hover .editor-paragraph{text-decoration:underline!important}.lexical-view-mode .Collapsible__title::marker{display:none!important}.lexical-view-mode .Collapsible__title::-webkit-details-marker{display:none!important}.lexical-view-mode .Collapsible__title:before{content:""!important;-moz-osx-font-smoothing:grayscale!important;-webkit-font-smoothing:antialiased!important;display:var(--fa-display,inline-block)!important;font-variant:normal!important;text-rendering:auto!important;background:#fff!important;border-radius:30px!important;margin-right:4px!important;font-family:"Font Awesome 5 Pro"!important;font-style:normal!important;font-weight:900!important;line-height:1!important}.lexical-view-mode .Collapsible__title:hover:before{color:#0069d9!important;border:3px solid #fff!important;margin-left:-3px!important;margin-right:1px!important}.lexical-view-mode hr{border:none!important;margin:5px 0!important;padding:3px 0!important}.lexical-view-mode hr:after{content:""!important;background-color:#0000001a!important;height:2px!important;line-height:2px!important;display:block!important}.lexical-view-mode .editor-line-spacer{background:0 0!important;border:1px dashed #0000!important;line-height:6px!important}.lexical-view-mode .other h2{margin-bottom:7px;color:#444!important;font-size:18px!important}.lexical-view-mode .other a{font-size:14px;color:#777!important;text-decoration:underline!important}.lexical-view-mode .other ul{list-style-type:none;margin:0!important;padding:0!important}.lexical-view-mode .ltr{text-align:left}.lexical-view-mode .rtl{text-align:right}.lexical-view-mode .editor-shell{color:#1c232d!important;border-radius:4px!important;width:100%!important;font-weight:400!important;position:relative!important}.lexical-view-mode .editor{position:relative;background:#fff!important}.lexical-view-mode .editor-input{caret-color:#444;resize:none!important;-moz-tab-size:1!important;tab-size:1!important;outline:0!important;min-height:150px!important;padding:12px!important;position:relative!important}.lexical-view-mode .editor-placeholder{pointer-events:none;color:#999!important;text-overflow:ellipsis!important;-webkit-user-select:none!important;user-select:none!important;font-size:15px!important;display:inline-block!important;position:absolute!important;top:15px!important;left:10px!important;overflow:hidden!important}.lexical-view-mode .editor-text-bold,.lexical-view-mode strong{font-weight:700!important}.lexical-view-mode .editor-text-italic{font-style:italic}.lexical-view-mode .editor-text-code{color:#d70c69;background-color:#0000001a!important;border-radius:4px!important;padding:1px .25rem!important;font-family:Menlo,Consolas,Monaco,monospace!important;font-size:85%!important}.lexical-view-mode .editor-link{word-break:break-word;color:#007bff!important;cursor:pointer!important;background-color:#0000!important;text-decoration:underline!important}.lexical-view-mode .editor-link:hover{color:#0062cc!important;text-decoration:underline!important}.lexical-view-mode .editor-code,.lexical-view-mode pre{word-break:break-word;-moz-tab-size:2!important;tab-size:2!important;background-color:#f0f2f5!important;border-radius:4px!important;margin:8px 0!important;padding:8px 8px 8px 52px!important;font-family:Menlo,Consolas,Monaco,monospace!important;font-size:13px!important;line-height:1.53!important;display:block!important;position:relative!important;overflow-x:auto!important}.lexical-view-mode .editor-code:before{min-width:25px;content:attr(data-gutter)!important;color:#777!important;white-space:pre-wrap!important;text-align:right!important;background-color:#eee!important;border-right:1px solid #ccc!important;padding:8px!important;position:absolute!important;top:0!important;left:0!important}.lexical-view-mode pre{white-space:pre-wrap!important;padding-left:8px!important}.lexical-view-mode pre:before{border-right:0!important;width:100%!important;height:23px!important}.lexical-view-mode .editor-code:after,.lexical-view-mode pre:after{color:#00000080;content:attr(data-highlight-language)!important;text-transform:uppercase!important;padding:3px!important;font-size:10px!important;position:absolute!important;top:0!important;right:3px!important}.lexical-view-mode .editor-tokenComment{color:#708090}.lexical-view-mode .editor-tokenPunctuation{color:#999}.lexical-view-mode .editor-tokenProperty{color:#905}.lexical-view-mode .editor-tokenSelector{color:#690}.lexical-view-mode .editor-tokenOperator{color:#9a6e3a}.lexical-view-mode .editor-tokenAttr{color:#07a}.lexical-view-mode .editor-tokenVariable{color:#e90}.lexical-view-mode .editor-tokenFunction{color:#dd4a68}.lexical-view-mode .editor-paragraph,.lexical-view-mode p{word-break:break-word;margin:0 0 .3rem!important;padding:0!important}.lexical-view-mode .editor-paragraph:last-child{margin-bottom:0}.lexical-view-mode .editor-heading-h1,.lexical-view-mode h1{line-height:100%;border-bottom:thin solid #0000001a!important;margin-top:1.2em!important;margin-bottom:.6em!important;padding-bottom:6px!important;font-size:24px!important}.lexical-view-mode .editor-heading-h2:first-child,.lexical-view-mode .editor-heading-h1:first-child,.lexical-view-mode h2:first-child,.lexical-view-mode h1:first-child{margin-top:0}.lexical-view-mode .editor-heading-h2,.lexical-view-mode h2{line-height:100%;border-bottom:thin solid #0000001a!important;margin-top:1.2em!important;margin-bottom:.6em!important;padding-bottom:6px!important;font-size:20px!important}.lexical-view-mode .editor-list-ol,.lexical-view-mode ol{margin:0 0 .3rem 15px!important;padding:0 0 0 15px!important;list-style-type:decimal!important;list-style-position:outside!important}.lexical-view-mode li ol{margin:0 0 0 20px!important}.lexical-view-mode .editor-list-ol2,.lexical-view-mode .editor-list-ol3,.lexical-view-mode .editor-list-ol4,.lexical-view-mode .editor-list-ol5,.lexical-view-mode .editor-list-ol6,.lexical-view-mode .editor-list-ol7{list-style-position:outside;padding:0!important}.lexical-view-mode .editor-list-ol2{list-style-type:lower-alpha}.lexical-view-mode .editor-list-ol3{list-style-type:lower-roman}.lexical-view-mode .editor-list-ol4{list-style-type:decimal}.lexical-view-mode .editor-list-ol5{list-style-type:lower-alpha}.lexical-view-mode .editor-list-ol6{list-style-type:lower-roman}.lexical-view-mode .editor-list-ol7{list-style-type:decimal}.lexical-view-mode .editor-list-ul,.lexical-view-mode ul{margin-bottom:.3rem;margin:0 0 0 15px!important;padding:0 0 0 5px!important;list-style-position:outside!important}.lexical-view-mode li ul{margin:0 0 0 15px!important;padding:0 0 0 3px!important}.lexical-view-mode .editor-list-item{padding-left:0;vertical-align:top!important;margin-bottom:12px!important;line-height:1.3!important}.lexical-view-mode .editor-nested-list-item{list-style-type:none}.lexical-view-mode code{color:inherit!important;word-wrap:break-word!important;white-space:break-spaces!important}.lexical-view-mode a>code{color:inherit}.lexical-view-mode pre::-webkit-scrollbar{width:10px;background:0 0!important}.lexical-view-mode pre::-webkit-scrollbar-thumb{background:#999}.lexical-view-mode img{cursor:zoom-in!important;border:1px solid #ccc!important;border-radius:4px!important;width:auto!important;max-width:250px!important;height:auto!important;max-height:250px!important;display:block!important}.lexical-view-mode img:hover,.lexical-view-mode img:focus{outline:3px solid #007bff4d}.lexical-view-mode iframe{background:#000!important;border:1px solid #ccc!important;width:fit-content!important;max-width:100%!important;height:fit-content!important}.lexical-view-mode .ql-align-left{text-align:left!important}.lexical-view-mode .ql-align-right{text-align:right!important}.lexical-view-mode .ql-align-center{text-align:center!important}.lexical-view-mode .ql-align-justify{text-align:justify!important}.lexical-view-mode .ql-size-small{font-size:.75em!important}.lexical-view-mode p>a,.lexical-view-mode li>a{color:#007bff!important;cursor:pointer!important;background-color:#0000!important;text-decoration:underline!important}.lexical-view-mode p>a:hover,.lexical-view-mode li>a:hover{color:#0062cc!important;text-decoration:underline!important}.lexical-view-mode .ql-size-large{font-size:1.25rem!important}.lexical-view-mode .ql-indent-1{margin-left:20px!important}.lexical-view-mode .ql-indent-2{margin-left:40px!important}.lexical-view-mode .ql-indent-3{margin-left:60px!important}.lexical-view-mode .ql-indent-4{margin-left:80px!important}.lexical-view-mode .ql-indent-5{margin-left:100px!important}.lexical-view-mode .ql-indent-6{margin-left:120px!important}.lexical-view-mode .ql-indent-7{margin-left:140px!important}.lexical-view-mode .ql-indent-8{margin-left:160px!important}.lexical-view-mode ol li.ql-indent-1,.lexical-view-mode ol li.ql-indent-2,.lexical-view-mode ol li.ql-indent-3,.lexical-view-mode ol li.ql-indent-4,.lexical-view-mode ol li.ql-indent-5,.lexical-view-mode ol li.ql-indent-6,.lexical-view-mode ol li.ql-indent-7,.lexical-view-mode ol li.ql-indent-8,.lexical-view-mode ul li.ql-indent-1,.lexical-view-mode ul li.ql-indent-2,.lexical-view-mode ul li.ql-indent-3,.lexical-view-mode ul li.ql-indent-4,.lexical-view-mode ul li.ql-indent-5,.lexical-view-mode ul li.ql-indent-6,.lexical-view-mode ul li.ql-indent-7,.lexical-view-mode ul li.ql-indent-8{margin-bottom:.3em!important}.lexical-view-mode ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-1!important;margin-left:0!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-1::marker{display:none}.lexical-view-mode ol li.ql-indent-1:before{content:counter(list-1,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-2!important;margin-left:20px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-2::marker{display:none}.lexical-view-mode ol li.ql-indent-2:before{content:counter(list-2,lower-roman)". "!important}.lexical-view-mode ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-3!important;margin-left:40px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-3::marker{display:none}.lexical-view-mode ol li.ql-indent-3:before{content:counter(list-3,decimal)". "!important}.lexical-view-mode ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-4!important;margin-left:60px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-4::marker{display:none}.lexical-view-mode ol li.ql-indent-4:before{content:counter(list-4,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9!important;counter-increment:list-5!important;margin-left:80px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-5::marker{display:none}.lexical-view-mode ol li.ql-indent-5:before{content:counter(list-5,lower-roman)". "!important}.lexical-view-mode ol li.ql-indent-6{counter-reset:list-7 list-8 list-9!important;counter-increment:list-6!important;margin-left:100px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-6::marker{display:none}.lexical-view-mode ol li.ql-indent-6:before{content:counter(list-6,decimal)". "!important}.lexical-view-mode ol li.ql-indent-7{counter-reset:list-8 list-9!important;counter-increment:list-7!important;margin-left:120px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-7::marker{display:none}.lexical-view-mode ol li.ql-indent-7:before{content:counter(list-7,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-8{counter-reset:list-9!important;counter-increment:list-8!important;margin-left:140px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-8::marker{display:none}.lexical-view-mode ol li.ql-indent-8:before{content:counter(list-8,lower-roman)". "!important}.lexical-view-mode ul li.ql-indent-3,.lexical-view-mode ul li.ql-indent-6{list-style-type:disc}.lexical-view-mode ul li.ql-indent-1,.lexical-view-mode ul li.ql-indent-4,.lexical-view-mode ul li.ql-indent-7{list-style-type:circle}.lexical-view-mode ul li.ql-indent-2,.lexical-view-mode ul li.ql-indent-5,.lexical-view-mode ul li.ql-indent-8{list-style-type:square}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes progress{0%{transform:translate(-100%)}to{transform:translate(300%)}}',u2=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},d2=(e,t)=>({classGroupId:e,validator:t}),H0=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),nc="-",rm=[],h2="arbitrary..",m2=e=>{const t=g2(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return p2(s);const a=s.split(nc),c=a[0]===""&&a.length>1?1:0;return q0(a,c,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const c=r[s],l=n[s];return c?l?u2(l,c):c:l||rm}return n[s]||rm}}},q0=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const l=q0(e,t+1,i);if(l)return l}const s=n.validators;if(s===null)return;const a=t===0?e.join(nc):e.slice(t).join(nc),c=s.length;for(let l=0;l<c;l++){const f=s[l];if(f.validator(a))return f.classGroupId}},p2=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?h2+r:void 0})(),g2=e=>{const{theme:t,classGroups:n}=e;return y2(n,t)},y2=(e,t)=>{const n=H0();for(const r in e){const o=e[r];ld(o,n,r,t)}return n},ld=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];b2(s,t,n,r)}},b2=(e,t,n,r)=>{if(typeof e=="string"){v2(e,t,n);return}if(typeof e=="function"){x2(e,t,n,r);return}w2(e,t,n,r)},v2=(e,t,n)=>{const r=e===""?t:V0(t,e);r.classGroupId=n},x2=(e,t,n,r)=>{if(A2(e)){ld(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(d2(n,e))},w2=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[a,c]=o[s];ld(c,V0(t,a),n,r)}},V0=(e,t)=>{let n=e;const r=t.split(nc),o=r.length;for(let i=0;i<o;i++){const s=r[i];let a=n.nextPart.get(s);a||(a=H0(),n.nextPart.set(s,a)),n=a}return n},A2=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,C2=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,s)=>{n[i]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=r[i])!==void 0)return o(i,s),s},set(i,s){i in n?n[i]=s:o(i,s)}}},Lf="!",om=":",_2=[],im=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),E2=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,c=0,l;const f=o.length;for(let g=0;g<f;g++){const p=o[g];if(s===0&&a===0){if(p===om){i.push(o.slice(c,g)),c=g+1;continue}if(p==="/"){l=g;continue}}p==="["?s++:p==="]"?s--:p==="("?a++:p===")"&&a--}const u=i.length===0?o:o.slice(c);let d=u,h=!1;u.endsWith(Lf)?(d=u.slice(0,-1),h=!0):u.startsWith(Lf)&&(d=u.slice(1),h=!0);const m=l&&l>c?l-c:void 0;return im(i,h,d,m)};if(t){const o=t+om,i=r;r=s=>s.startsWith(o)?i(s.slice(o.length)):im(_2,!1,s,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},S2=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const s=n[i],a=s[0]==="[",c=t.has(s);a||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},k2=e=>({cache:C2(e.cacheSize),parseClassName:E2(e),sortModifiers:S2(e),...m2(e)}),T2=/\s+/,N2=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(T2);let c="";for(let l=a.length-1;l>=0;l-=1){const f=a[l],{isExternal:u,modifiers:d,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:g}=n(f);if(u){c=f+(c.length>0?" "+c:c);continue}let p=!!g,y=r(p?m.substring(0,g):m);if(!y){if(!p){c=f+(c.length>0?" "+c:c);continue}if(y=r(m),!y){c=f+(c.length>0?" "+c:c);continue}p=!1}const b=d.length===0?"":d.length===1?d[0]:i(d).join(":"),x=h?b+Lf:b,w=x+y;if(s.indexOf(w)>-1)continue;s.push(w);const A=o(y,p);for(let _=0;_<A.length;++_){const S=A[_];s.push(x+S)}c=f+(c.length>0?" "+c:c)}return c},O2=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Y0(n))&&(o&&(o+=" "),o+=r);return o},Y0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Y0(e[r]))&&(n&&(n+=" "),n+=t);return n},P2=(e,...t)=>{let n,r,o,i;const s=c=>{const l=t.reduce((f,u)=>u(f),e());return n=k2(l),r=n.cache.get,o=n.cache.set,i=a,a(c)},a=c=>{const l=r(c);if(l)return l;const f=N2(c,n);return o(c,f),f};return i=s,(...c)=>i(O2(...c))},M2=[],Ge=e=>{const t=n=>n[e]||M2;return t.isThemeGetter=!0,t},Q0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,G0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,I2=/^\d+\/\d+$/,L2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,R2=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,D2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,F2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,j2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ei=e=>I2.test(e),we=e=>!!e&&!Number.isNaN(Number(e)),pr=e=>!!e&&Number.isInteger(Number(e)),El=e=>e.endsWith("%")&&we(e.slice(0,-1)),zn=e=>L2.test(e),z2=()=>!0,$2=e=>R2.test(e)&&!D2.test(e),Z0=()=>!1,B2=e=>F2.test(e),U2=e=>j2.test(e),W2=e=>!ae(e)&&!ce(e),K2=e=>Ki(e,ey,Z0),ae=e=>Q0.test(e),Jr=e=>Ki(e,ty,$2),Sl=e=>Ki(e,Q2,we),sm=e=>Ki(e,J0,Z0),H2=e=>Ki(e,X0,U2),ya=e=>Ki(e,ny,B2),ce=e=>G0.test(e),as=e=>Hi(e,ty),q2=e=>Hi(e,G2),am=e=>Hi(e,J0),V2=e=>Hi(e,ey),Y2=e=>Hi(e,X0),ba=e=>Hi(e,ny,!0),Ki=(e,t,n)=>{const r=Q0.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Hi=(e,t,n=!1)=>{const r=G0.exec(e);return r?r[1]?t(r[1]):n:!1},J0=e=>e==="position"||e==="percentage",X0=e=>e==="image"||e==="url",ey=e=>e==="length"||e==="size"||e==="bg-size",ty=e=>e==="length",Q2=e=>e==="number",G2=e=>e==="family-name",ny=e=>e==="shadow",Z2=()=>{const e=Ge("color"),t=Ge("font"),n=Ge("text"),r=Ge("font-weight"),o=Ge("tracking"),i=Ge("leading"),s=Ge("breakpoint"),a=Ge("container"),c=Ge("spacing"),l=Ge("radius"),f=Ge("shadow"),u=Ge("inset-shadow"),d=Ge("text-shadow"),h=Ge("drop-shadow"),m=Ge("blur"),g=Ge("perspective"),p=Ge("aspect"),y=Ge("ease"),b=Ge("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...w(),ce,ae],_=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],E=()=>[ce,ae,c],N=()=>[ei,"full","auto",...E()],P=()=>[pr,"none","subgrid",ce,ae],I=()=>["auto",{span:["full",pr,ce,ae]},pr,ce,ae],W=()=>[pr,"auto",ce,ae],j=()=>["auto","min","max","fr",ce,ae],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...E()],oe=()=>[ei,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],M=()=>[e,ce,ae],re=()=>[...w(),am,sm,{position:[ce,ae]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",V2,K2,{size:[ce,ae]}],K=()=>[El,as,Jr],U=()=>["","none","full",l,ce,ae],J=()=>["",we,as,Jr],V=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[we,El,am,sm],me=()=>["","none",m,ce,ae],ye=()=>["none",we,ce,ae],pe=()=>["none",we,ce,ae],ze=()=>[we,ce,ae],G=()=>[ei,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[zn],breakpoint:[zn],color:[z2],container:[zn],"drop-shadow":[zn],ease:["in","out","in-out"],font:[W2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[zn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[zn],shadow:[zn],spacing:["px",we],text:[zn],"text-shadow":[zn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ei,ae,ce,p]}],container:["container"],columns:[{columns:[we,ae,ce,a]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:A()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[pr,"auto",ce,ae]}],basis:[{basis:[ei,"full","auto",a,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[we,ei,"auto","initial","none",ae]}],grow:[{grow:["",we,ce,ae]}],shrink:[{shrink:["",we,ce,ae]}],order:[{order:[pr,"first","last","none",ce,ae]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:oe()}],w:[{w:[a,"screen",...oe()]}],"min-w":[{"min-w":[a,"screen","none",...oe()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...oe()]}],h:[{h:["screen","lh",...oe()]}],"min-h":[{"min-h":["screen","lh","none",...oe()]}],"max-h":[{"max-h":["screen","lh",...oe()]}],"font-size":[{text:["base",n,as,Jr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ce,Sl]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",El,ae]}],"font-family":[{font:[q2,ae,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ce,ae]}],"line-clamp":[{"line-clamp":[we,"none",ce,Sl]}],leading:[{leading:[i,...E()]}],"list-image":[{"list-image":["none",ce,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[we,"from-font","auto",ce,Jr]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[we,"auto",ce,ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,ae]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce,ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pr,ce,ae],radial:["",ce,ae],conic:[pr,ce,ae]},Y2,H2]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[we,ce,ae]}],"outline-w":[{outline:["",we,as,Jr]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",f,ba,ya]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",u,ba,ya]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[we,Jr]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",d,ba,ya]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[we,ce,ae]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[we]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[ce,ae]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[we]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,ae]}],filter:[{filter:["","none",ce,ae]}],blur:[{blur:me()}],brightness:[{brightness:[we,ce,ae]}],contrast:[{contrast:[we,ce,ae]}],"drop-shadow":[{"drop-shadow":["","none",h,ba,ya]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",we,ce,ae]}],"hue-rotate":[{"hue-rotate":[we,ce,ae]}],invert:[{invert:["",we,ce,ae]}],saturate:[{saturate:[we,ce,ae]}],sepia:[{sepia:["",we,ce,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,ae]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[we,ce,ae]}],"backdrop-contrast":[{"backdrop-contrast":[we,ce,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",we,ce,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[we,ce,ae]}],"backdrop-invert":[{"backdrop-invert":["",we,ce,ae]}],"backdrop-opacity":[{"backdrop-opacity":[we,ce,ae]}],"backdrop-saturate":[{"backdrop-saturate":[we,ce,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",we,ce,ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[we,"initial",ce,ae]}],ease:[{ease:["linear","initial",y,ce,ae]}],delay:[{delay:[we,ce,ae]}],animate:[{animate:["none",b,ce,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ce,ae]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[ce,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:G()}],"translate-x":[{"translate-x":G()}],"translate-y":[{"translate-y":G()}],"translate-z":[{"translate-z":G()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce,ae]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce,ae]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[we,as,Jr,Sl]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},hi=P2(Z2);function ry(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ry(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ns(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ry(e))&&(r&&(r+=" "),r+=t);return r}function xe(...e){return hi(Ns(e))}const cm="confidence_playbook_",J2="confidence_playbook_expanded_",oy=30;function iy(e,t){return t?`${cm}${e}_${t}`:`${cm}${e}`}function sy(e,t,n,r){const o={playbookInstanceId:t,email:n},i=iy(e,r),s=new Date;s.setDate(s.getDate()+oy),document.cookie=`${i}=${encodeURIComponent(JSON.stringify(o))}; expires=${s.toUTCString()}; path=/; SameSite=Lax`}function ay(e,t){const n=iy(e,t),r=document.cookie.split(";");for(const o of r){const[i,s]=o.trim().split("=");if(i===n&&s)try{return JSON.parse(decodeURIComponent(s))}catch{return null}}return null}function cy(e){return`${J2}${e}`}function X2(e,t){const n=cy(e),r=new Date;r.setDate(r.getDate()+oy),document.cookie=`${n}=${t?"1":"0"}; expires=${r.toUTCString()}; path=/; SameSite=Lax`}function eA(e){const t=cy(e),n=document.cookie.split(";");for(const r of n){const[o,i]=r.trim().split("=");if(o===t&&i!==void 0)return i==="1"}return null}const tA=typeof document<"u"?T.useLayoutEffect:()=>{},Br=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},so=e=>e&&"window"in e&&e.window===e?e:Br(e).defaultView||window;function nA(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function rA(e){return nA(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let oA=!1;function fd(){return oA}function ly(e,t){if(!fd())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:rA(n)?n=n.host:n=n.parentNode}return!1}const Rf=(e=document)=>{var t;if(!fd())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function fy(e){return fd()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function iA(e){if(sA())e.focus({preventScroll:!0});else{let t=aA(e);e.focus(),cA(t)}}let va=null;function sA(){if(va==null){va=!1;try{document.createElement("div").focus({get preventScroll(){return va=!0,!0}})}catch{}}return va}function aA(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function cA(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Pc(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function ud(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function sr(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Os=sr(function(){return ud(/^Mac/i)}),lA=sr(function(){return ud(/^iPhone/i)}),uy=sr(function(){return ud(/^iPad/i)||Os()&&navigator.maxTouchPoints>1}),fA=sr(function(){return lA()||uy()});sr(function(){return Os()||fA()});const uA=sr(function(){return Pc(/AppleWebKit/i)&&!dA()}),dA=sr(function(){return Pc(/Chrome/i)}),hA=sr(function(){return Pc(/Android/i)}),mA=sr(function(){return Pc(/Firefox/i)});function Ps(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:c}=t;mA()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Os()?i=!0:s=!0);let l=uA()&&Os()&&!uy()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:c}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});Ps.isOpening=n,iA(e),e.dispatchEvent(l),Ps.isOpening=!1}Ps.isOpening=!1;function dy(){let e=T.useRef(new Map),t=T.useCallback((o,i,s,a)=>{let c=a!=null&&a.once?(...l)=>{e.current.delete(s),s(...l)}:s;e.current.set(s,{type:i,eventTarget:o,fn:c,options:a}),o.addEventListener(i,c,a)},[]),n=T.useCallback((o,i,s,a)=>{var c;let l=((c=e.current.get(s))===null||c===void 0?void 0:c.fn)||s;o.removeEventListener(i,l,a),e.current.delete(s)},[]),r=T.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return T.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function pA(e){return e.pointerType===""&&e.isTrusted?!0:hA()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function hy(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function gA(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function my(e){let t=T.useRef({isFocused:!1,observer:null});return tA(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),T.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target,o=i=>{if(t.current.isFocused=!1,r.disabled){let s=hy(i);e==null||e(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let s=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let yA=!1,Qs=null,Df=new Set,xs=new Map,To=!1,Ff=!1;const bA={Tab:!0,Escape:!0};function dd(e,t){for(let n of Df)n(e,t)}function vA(e){return!(e.metaKey||!Os()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function rc(e){To=!0,!Ps.isOpening&&vA(e)&&(Qs="keyboard",dd("keyboard",e))}function Yt(e){Qs="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(To=!0,dd("pointer",e))}function py(e){!Ps.isOpening&&pA(e)&&(To=!0,Qs="virtual")}function gy(e){e.target===window||e.target===document||yA||!e.isTrusted||(!To&&!Ff&&(Qs="virtual",dd("virtual",e)),To=!1,Ff=!1)}function yy(){To=!1,Ff=!0}function jf(e){if(typeof window>"u"||typeof document>"u"||xs.get(so(e)))return;const t=so(e),n=Br(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){To=!0,r.apply(this,arguments)},n.addEventListener("keydown",rc,!0),n.addEventListener("keyup",rc,!0),n.addEventListener("click",py,!0),t.addEventListener("focus",gy,!0),t.addEventListener("blur",yy,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Yt,!0),n.addEventListener("pointermove",Yt,!0),n.addEventListener("pointerup",Yt,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Yt,!0),n.addEventListener("mousemove",Yt,!0),n.addEventListener("mouseup",Yt,!0)),t.addEventListener("beforeunload",()=>{by(e)},{once:!0}),xs.set(t,{focus:r})}const by=(e,t)=>{const n=so(e),r=Br(e);t&&r.removeEventListener("DOMContentLoaded",t),xs.has(n)&&(n.HTMLElement.prototype.focus=xs.get(n).focus,r.removeEventListener("keydown",rc,!0),r.removeEventListener("keyup",rc,!0),r.removeEventListener("click",py,!0),n.removeEventListener("focus",gy,!0),n.removeEventListener("blur",yy,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Yt,!0),r.removeEventListener("pointermove",Yt,!0),r.removeEventListener("pointerup",Yt,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Yt,!0),r.removeEventListener("mousemove",Yt,!0),r.removeEventListener("mouseup",Yt,!0)),xs.delete(n))};function xA(e){const t=Br(e);let n;return t.readyState!=="loading"?jf(e):(n=()=>{jf(e)},t.addEventListener("DOMContentLoaded",n)),()=>by(e,n)}typeof document<"u"&&xA();function vy(){return Qs!=="pointer"}const wA=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function AA(e,t,n){let r=Br(n==null?void 0:n.target);const o=typeof window<"u"?so(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?so(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?so(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?so(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!wA.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!bA[n.key])}function CA(e,t,n){jf(),T.useEffect(()=>{let r=(o,i)=>{AA(!!(n!=null&&n.isTextInput),o,i)&&e(vy())};return Df.add(r),()=>{Df.delete(r)}},t)}function _A(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=T.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),o&&o(!1),!0},[r,o]),s=my(i),a=T.useCallback(c=>{const l=Br(c.target),f=l?Rf(l):Rf();c.target===c.currentTarget&&f===fy(c.nativeEvent)&&(n&&n(c),o&&o(!0),s(c))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}function EA(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=T.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=dy(),c=T.useCallback(u=>{u.currentTarget.contains(u.target)&&i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(u),o&&o(!1))},[n,o,i,a]),l=my(c),f=T.useCallback(u=>{if(!u.currentTarget.contains(u.target))return;const d=Br(u.target),h=Rf(d);if(!i.current.isFocusWithin&&h===fy(u.nativeEvent)){r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,l(u);let m=u.currentTarget;s(d,"focus",g=>{if(i.current.isFocusWithin&&!ly(m,g.target)){let p=new d.defaultView.FocusEvent("blur",{relatedTarget:g.target});gA(p,m);let y=hy(p);c(y)}},{capture:!0})}},[r,o,l,s,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:c}}}let oc=!1,xa=0;function zf(){oc=!0,setTimeout(()=>{oc=!1},50)}function lm(e){e.pointerType==="touch"&&zf()}function SA(){if(!(typeof document>"u"))return xa===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",lm):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",zf)),xa++,()=>{xa--,!(xa>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",lm):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",zf))}}function kA(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=T.useState(!1),a=T.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;T.useEffect(SA,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=dy(),{hoverProps:f,triggerHoverEnd:u}=T.useMemo(()=>{let d=(g,p)=>{if(a.pointerType=p,o||p==="touch"||a.isHovered||!g.currentTarget.contains(g.target))return;a.isHovered=!0;let y=g.currentTarget;a.target=y,c(Br(g.target),"pointerover",b=>{a.isHovered&&a.target&&!ly(a.target,b.target)&&h(b,b.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:y,pointerType:p}),n&&n(!0),s(!0)},h=(g,p)=>{let y=a.target;a.pointerType="",a.target=null,!(p==="touch"||!a.isHovered||!y)&&(a.isHovered=!1,l(),r&&r({type:"hoverend",target:y,pointerType:p}),n&&n(!1),s(!1))},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=g=>{oc&&g.pointerType==="mouse"||d(g,g.pointerType)},m.onPointerLeave=g=>{!o&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(m.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=g=>{!a.ignoreEmulatedMouseEvents&&!oc&&d(g,"mouse"),a.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=g=>{!o&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[t,n,r,o,a,c,l]);return T.useEffect(()=>{o&&u({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:f,isHovered:i}}function TA(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=T.useRef({isFocused:!1,isFocusVisible:t||vy()}),[i,s]=T.useState(!1),[a,c]=T.useState(()=>o.current.isFocused&&o.current.isFocusVisible),l=T.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),f=T.useCallback(h=>{o.current.isFocused=h,s(h),l()},[l]);CA(h=>{o.current.isFocusVisible=h,l()},[],{isTextInput:n});let{focusProps:u}=_A({isDisabled:r,onFocusChange:f}),{focusWithinProps:d}=EA({isDisabled:!r,onFocusWithinChange:f});return{isFocused:i,isFocusVisible:a,focusProps:r?d:u}}var NA=Object.defineProperty,OA=(e,t,n)=>t in e?NA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kl=(e,t,n)=>(OA(e,typeof t!="symbol"?t+"":t,n),n);let PA=class{constructor(){kl(this,"current",this.detect()),kl(this,"handoffState","pending"),kl(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}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"}},MA=new PA,hd=(e,t)=>{MA.isServer?T.useEffect(e,t):T.useLayoutEffect(e,t)};function IA(e){let t=T.useRef(e);return hd(()=>{t.current=e},[e]),t}let Mc=function(e){let t=IA(e);return T.useCallback((...n)=>t.current(...n),[t])};function Ic(e){return T.useMemo(()=>e,Object.values(e))}let xy=T.createContext(void 0);function Lc(){return T.useContext(xy)}function LA({value:e,children:t}){return T.createElement(xy.Provider,{value:e},t)}function fm(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function wy(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,wy),r}var RA=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(RA||{}),DA=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(DA||{});function Gs(){let e=jA();return T.useCallback(t=>FA({mergeRefs:e,...t}),[e])}function FA({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??zA;let c=Ay(t,e);if(i)return wa(c,n,r,s,a);let l=o??0;if(l&2){let{static:f=!1,...u}=c;if(f)return wa(u,n,r,s,a)}if(l&1){let{unmount:f=!0,...u}=c;return wy(f?0:1,{0(){return null},1(){return wa({...u,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return wa(c,n,r,s,a)}function wa(e,t={},n,r,o){let{as:i=n,children:s,refName:a="ref",...c}=Tl(e,["unmount","static"]),l=e.ref!==void 0?{[a]:e.ref}:{},f=typeof s=="function"?s(t):s;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let u={};if(t){let d=!1,h=[];for(let[m,g]of Object.entries(t))typeof g=="boolean"&&(d=!0),g===!0&&h.push(m.replace(/([A-Z])/g,p=>`-${p.toLowerCase()}`));if(d){u["data-headlessui-state"]=h.join(" ");for(let m of h)u[`data-${m}`]=""}}if(ja(i)&&(Object.keys(ti(c)).length>0||Object.keys(ti(u)).length>0))if(!T.isValidElement(f)||Array.isArray(f)&&f.length>1||UA(f)){if(Object.keys(ti(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ti(c)).concat(Object.keys(ti(u))).map(d=>` - ${d}`).join(`
19
+ */var vl,Uh;function mw(){if(Uh)return vl;Uh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(s).map(function(f){return s[f]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return vl=o()?Object.assign:function(i,s){for(var a,c=r(i),l,f=1;f<arguments.length;f++){a=Object(arguments[f]);for(var u in a)t.call(a,u)&&(c[u]=a[u]);if(e){l=e(a);for(var d=0;d<l.length;d++)n.call(a,l[d])&&(c[l[d]]=a[l[d]])}}return c},vl}var xl,Wh;function td(){if(Wh)return xl;Wh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xl=e,xl}var wl,Kh;function A0(){return Kh||(Kh=1,wl=Function.call.bind(Object.prototype.hasOwnProperty)),wl}var Al,Hh;function pw(){if(Hh)return Al;Hh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=td(),n={},r=A0();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,a,c,l){if(process.env.NODE_ENV!=="production"){for(var f in i)if(r(i,f)){var u;try{if(typeof i[f]!="function"){var d=Error((c||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=i[f](s,f,c,a,null,t)}catch(m){u=m}if(u&&!(u instanceof Error)&&e((c||"React class")+": type specification of "+a+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var h=l?l():"";e("Failed "+a+" type: "+u.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Al=o,Al}var Cl,qh;function gw(){if(qh)return Cl;qh=1;var e=w0(),t=mw(),n=td(),r=A0(),o=pw(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var c="Warning: "+a;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return Cl=function(a,c){var l=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function u(L){var z=L&&(l&&L[l]||L[f]);if(typeof z=="function")return z}var d="<<anonymous>>",h={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:b(),arrayOf:x,element:w(),elementType:A(),instanceOf:E,node:P(),objectOf:S,oneOf:_,oneOfType:O,shape:$,exact:D};function m(L,z){return L===z?L!==0||1/L===1/z:L!==L&&z!==z}function p(L,z){this.message=L,this.data=z&&typeof z=="object"?z:{},this.stack=""}p.prototype=Error.prototype;function g(L){if(process.env.NODE_ENV!=="production")var z={},H=0;function W(Y,ee,te,me,ye,pe,ze){if(me=me||d,pe=pe||te,ze!==n){if(c){var Q=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Q.name="Invariant Violation",Q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var qe=me+":"+te;!z[qe]&&H<3&&(i("You are manually calling a React.PropTypes validation function for the `"+pe+"` prop on `"+me+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),z[qe]=!0,H++)}}return ee[te]==null?Y?ee[te]===null?new p("The "+ye+" `"+pe+"` is marked as required "+("in `"+me+"`, but its value is `null`.")):new p("The "+ye+" `"+pe+"` is marked as required in "+("`"+me+"`, but its value is `undefined`.")):null:L(ee,te,me,ye,pe)}var J=W.bind(null,!1);return J.isRequired=W.bind(null,!0),J}function y(L){function z(H,W,J,Y,ee,te){var me=H[W],ye=G(me);if(ye!==L){var pe=oe(me);return new p("Invalid "+Y+" `"+ee+"` of type "+("`"+pe+"` supplied to `"+J+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return g(z)}function b(){return g(s)}function x(L){function z(H,W,J,Y,ee){if(typeof L!="function")return new p("Property `"+ee+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var te=H[W];if(!Array.isArray(te)){var me=G(te);return new p("Invalid "+Y+" `"+ee+"` of type "+("`"+me+"` supplied to `"+J+"`, expected an array."))}for(var ye=0;ye<te.length;ye++){var pe=L(te,ye,J,Y,ee+"["+ye+"]",n);if(pe instanceof Error)return pe}return null}return g(z)}function w(){function L(z,H,W,J,Y){var ee=z[H];if(!a(ee)){var te=G(ee);return new p("Invalid "+J+" `"+Y+"` of type "+("`"+te+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return g(L)}function A(){function L(z,H,W,J,Y){var ee=z[H];if(!e.isValidElementType(ee)){var te=G(ee);return new p("Invalid "+J+" `"+Y+"` of type "+("`"+te+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return g(L)}function E(L){function z(H,W,J,Y,ee){if(!(H[W]instanceof L)){var te=L.name||d,me=re(H[W]);return new p("Invalid "+Y+" `"+ee+"` of type "+("`"+me+"` supplied to `"+J+"`, expected ")+("instance of `"+te+"`."))}return null}return g(z)}function _(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function z(H,W,J,Y,ee){for(var te=H[W],me=0;me<L.length;me++)if(m(te,L[me]))return null;var ye=JSON.stringify(L,function(ze,Q){var qe=oe(Q);return qe==="symbol"?String(Q):Q});return new p("Invalid "+Y+" `"+ee+"` of value `"+String(te)+"` "+("supplied to `"+J+"`, expected one of "+ye+"."))}return g(z)}function S(L){function z(H,W,J,Y,ee){if(typeof L!="function")return new p("Property `"+ee+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var te=H[W],me=G(te);if(me!=="object")return new p("Invalid "+Y+" `"+ee+"` of type "+("`"+me+"` supplied to `"+J+"`, expected an object."));for(var ye in te)if(r(te,ye)){var pe=L(te,ye,J,Y,ee+"."+ye,n);if(pe instanceof Error)return pe}return null}return g(z)}function O(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var z=0;z<L.length;z++){var H=L[z];if(typeof H!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(H)+" at index "+z+"."),s}function W(J,Y,ee,te,me){for(var ye=[],pe=0;pe<L.length;pe++){var ze=L[pe],Q=ze(J,Y,ee,te,me,n);if(Q==null)return null;Q.data&&r(Q.data,"expectedType")&&ye.push(Q.data.expectedType)}var qe=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new p("Invalid "+te+" `"+me+"` supplied to "+("`"+ee+"`"+qe+"."))}return g(W)}function P(){function L(z,H,W,J,Y){return j(z[H])?null:new p("Invalid "+J+" `"+Y+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return g(L)}function I(L,z,H,W,J){return new p((L||"React class")+": "+z+" type `"+H+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function $(L){function z(H,W,J,Y,ee){var te=H[W],me=G(te);if(me!=="object")return new p("Invalid "+Y+" `"+ee+"` of type `"+me+"` "+("supplied to `"+J+"`, expected `object`."));for(var ye in L){var pe=L[ye];if(typeof pe!="function")return I(J,Y,ee,ye,oe(pe));var ze=pe(te,ye,J,Y,ee+"."+ye,n);if(ze)return ze}return null}return g(z)}function D(L){function z(H,W,J,Y,ee){var te=H[W],me=G(te);if(me!=="object")return new p("Invalid "+Y+" `"+ee+"` of type `"+me+"` "+("supplied to `"+J+"`, expected `object`."));var ye=t({},H[W],L);for(var pe in ye){var ze=L[pe];if(r(L,pe)&&typeof ze!="function")return I(J,Y,ee,pe,oe(ze));if(!ze)return new p("Invalid "+Y+" `"+ee+"` key `"+pe+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(H[W],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var Q=ze(te,pe,J,Y,ee+"."+pe,n);if(Q)return Q}return null}return g(z)}function j(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(j);if(L===null||a(L))return!0;var z=u(L);if(z){var H=z.call(L),W;if(z!==L.entries){for(;!(W=H.next()).done;)if(!j(W.value))return!1}else for(;!(W=H.next()).done;){var J=W.value;if(J&&!j(J[1]))return!1}}else return!1;return!0;default:return!1}}function K(L,z){return L==="symbol"?!0:z?z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol:!1}function G(L){var z=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":K(z,L)?"symbol":z}function oe(L){if(typeof L>"u"||L===null)return""+L;var z=G(L);if(z==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return z}function M(L){var z=oe(L);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function re(L){return!L.constructor||!L.constructor.name?d:L.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},Cl}var El,Vh;function yw(){if(Vh)return El;Vh=1;var e=td();function t(){}function n(){}return n.resetWarningCache=t,El=function(){function r(s,a,c,l,f,u){if(u!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},El}var Yh;function bw(){if(Yh)return ya.exports;if(Yh=1,process.env.NODE_ENV!=="production"){var e=w0(),t=!0;ya.exports=gw()(e.isElement,t)}else ya.exports=yw()();return ya.exports}var vw=bw();const ge=uw(vw);var xw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function C0(e,t){return e(t={exports:{}},t.exports),t.exports}var ww=C0((function(e){(function(t){var n=function(g,y,b){if(!c(y)||f(y)||u(y)||d(y)||a(y))return y;var x,w=0,A=0;if(l(y))for(x=[],A=y.length;w<A;w++)x.push(n(g,y[w],b));else for(var E in x={},y)Object.prototype.hasOwnProperty.call(y,E)&&(x[g(E,b)]=n(g,y[E],b));return x},r=function(g){return h(g)?g:(g=g.replace(/[\-_\s]+(.)?/g,(function(y,b){return b?b.toUpperCase():""}))).substr(0,1).toLowerCase()+g.substr(1)},o=function(g){var y=r(g);return y.substr(0,1).toUpperCase()+y.substr(1)},i=function(g,y){return(function(b,x){var w=(x=x||{}).separator||"_",A=x.split||/(?=[A-Z])/;return b.split(A).join(w)})(g,y).toLowerCase()},s=Object.prototype.toString,a=function(g){return typeof g=="function"},c=function(g){return g===Object(g)},l=function(g){return s.call(g)=="[object Array]"},f=function(g){return s.call(g)=="[object Date]"},u=function(g){return s.call(g)=="[object RegExp]"},d=function(g){return s.call(g)=="[object Boolean]"},h=function(g){return(g-=0)==g},m=function(g,y){var b=y&&"process"in y?y.process:y;return typeof b!="function"?g:function(x,w){return b(x,g,w)}},p={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(g,y){return n(m(r,y),g)},decamelizeKeys:function(g,y){return n(m(i,y),g,y)},pascalizeKeys:function(g,y){return n(m(o,y),g)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=p:t.humps=p})(xw)})).decamelize,Aw=function(e){if(Array.isArray(e))return e},Cw=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||a.return==null||a.return()}finally{if(o)throw i}}return n}},Gh=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},Ew=function(e,t){if(e){if(typeof e=="string")return Gh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gh(e,t):void 0}},_w=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
21
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},Sw=function(e,t){return Aw(e)||Cw(e,t)||Ew(e,t)||_w()},E0=C0((function(e){function t(){return e.exports=t=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},t.apply(this,arguments)}e.exports=t})),kw=function(e,t){if(e==null)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},_0=function(e,t){if(e==null)return{};var n,r,o=kw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},Tw=k.createContext(null);function S0(e){var t=e.children,n=t===void 0?"":t,r=_0(e,["children"]);return typeof n!="string"&&(n=lw.renderToString(n)),k.createElement("template",E0({},r,{dangerouslySetInnerHTML:{__html:n}}))}function k0(e){var t=e.root,n=e.children;return Wt.createPortal(n===void 0?null:n,t)}function Nw(e){var t=k.forwardRef((function(n,r){var o,i,s=n.mode,a=s===void 0?"open":s,c=n.delegatesFocus,l=c!==void 0&&c,f=n.styleSheets,u=f===void 0?[]:f,d=n.ssr,h=d!==void 0&&d,m=n.children,p=_0(n,["mode","delegatesFocus","styleSheets","ssr","children"]),g=(i=k.useRef((o=r)&&o.current),k.useEffect((function(){o&&(o.current=i.current)}),[o]),i),y=k.useState(null),b=Sw(y,2),x=b[0],w=b[1],A="node_".concat(a).concat(l);return k.useLayoutEffect((function(){if(g.current)try{if(typeof r=="function"&&r(g.current),h){var E=g.current.shadowRoot;return void w(E)}var _=g.current.attachShadow({mode:a,delegatesFocus:l});u.length>0&&(_.adoptedStyleSheets=u),w(_)}catch(S){(function(O){var P=O.error,I=O.styleSheets,$=O.root;switch(P.name){case"NotSupportedError":I.length>0&&($.adoptedStyleSheets=I);break;default:throw P}})({error:S,styleSheets:u,root:x})}}),[r,g,u]),k.createElement(k.Fragment,null,k.createElement(e.tag,E0({key:A,ref:g},p),(x||h)&&k.createElement(Tw.Provider,{value:x},h?k.createElement(S0,{shadowroot:a,shadowrootmode:a},e.render({root:x,ssr:h,children:m})):k.createElement(k0,{root:x},e.render({root:x,ssr:h,children:m})))))}));return t.propTypes={mode:ge.oneOf(["open","closed"]),delegatesFocus:ge.bool,styleSheets:ge.arrayOf(ge.instanceOf(globalThis.CSSStyleSheet)),ssr:ge.bool,children:ge.node},t}S0.propTypes={children:ge.oneOfType([ge.string,ge.node])},k0.propTypes={root:ge.object.isRequired,children:ge.node};var _l=new Map;function Ow(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(e,{get:function(r,o){var i=ww(o,{separator:"-"}),s="".concat(t,"-").concat(i);return _l.has(s)||_l.set(s,Nw({tag:i,render:n})),_l.get(s)}})}var Br=Ow();const nd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGpSURBVHgBpVbRdYMwDDR9/S8jeARGYIRuUDpBuwHJBGQDskG6ASOQDcwGdANVLnJRHdmIRO/dI8D5zgIhpTAbAQAlHiqEJUyEa1EU30YRqFHj4Q1xzJIQF8QMSziGEAPi1eTNPhi/lwglomOCDWUZc/yGzkEIYQWtlpnNNxwSGimL2ijCi7DMLbveR2aVtHiMFypN/UZPlLUlHR6iWXuPWaQRsuXRpIjyTb1ZDWuBQVaPnvfAzLs9mcL/SoTNzXMCLJ9CiFZh1glmh9yCmkhldB7CgVzyvlCGlBlEnxJf+IkYo2uNINSy+1JxcDOv2acMD0DvT2HqSCxpRmt9Q/iS/J5NIrBP+kX+J9+pRXQC/Yj8Q3TtReCZJ7M0YpsyxcO7yUfKbBLZmEUFrGgSHOnx+jgn+M4/epMRnLME8/euNWYhgSondpIKJ2HqclxYmsi4JRRaW3a2KTakb5FU7rczS29WUvb9nkUD3D+e9o82WNuVA+XkgKUVOnhktLGK/DWOK4421sDaSy+5z0praqlF8Rnn2PlMhvUe3UJDogwtImRxRUzav4k8fgCQHVaVoXL9RAAAAABJRU5ErkJggg==";var Ki=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Pw={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},vn,fo,l0,Mw=(l0=class{constructor(){ue(this,vn,Pw);ue(this,fo,!1)}setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&T(this,fo)&&e!==T(this,vn)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:T(this,vn),provider:e}),ne(this,vn,e),process.env.NODE_ENV!=="production"&&ne(this,fo,!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&ne(this,fo,!0),T(this,vn).setTimeout(e,t)}clearTimeout(e){T(this,vn).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!=="production"&&ne(this,fo,!0),T(this,vn).setInterval(e,t)}clearInterval(e){T(this,vn).clearInterval(e)}},vn=new WeakMap,fo=new WeakMap,l0),so=new Mw;function Iw(e){setTimeout(e,0)}var ko=typeof window>"u"||"Deno"in globalThis;function kt(){}function Lw(e,t){return typeof e=="function"?e(t):e}function bf(e){return typeof e=="number"&&e>=0&&e!==1/0}function T0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Mr(e,t){return typeof e=="function"?e(t):e}function Vt(e,t){return typeof e=="function"?e(t):e}function Qh(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==rd(s,t.options))return!1}else if(!Ns(t.queryKey,s))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Zh(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(To(t.options.mutationKey)!==To(i))return!1}else if(!Ns(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function rd(e,t){return((t==null?void 0:t.queryKeyHashFn)||To)(e)}function To(e){return JSON.stringify(e,(t,n)=>xf(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ns(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ns(e[n],t[n])):!1}var Rw=Object.prototype.hasOwnProperty;function vf(e,t){if(e===t)return e;const n=Jh(e)&&Jh(t);if(!n&&!(xf(e)&&xf(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let c=0;for(let l=0;l<s;l++){const f=n?l:i[l],u=e[f],d=t[f];if(u===d){a[f]=u,(n?l<o:Rw.call(e,f))&&c++;continue}if(u===null||d===null||typeof u!="object"||typeof d!="object"){a[f]=d;continue}const h=vf(u,d);a[f]=h,h===u&&c++}return o===s&&c===o?e:a}function ec(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Jh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function xf(e){if(!Xh(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Xh(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Xh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Dw(e){return new Promise(t=>{so.setTimeout(t,e)})}function wf(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return vf(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return vf(e,t)}return t}function Fw(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function jw(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var tc=Symbol();function N0(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===tc&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===tc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function od(e,t){return typeof e=="function"?e(...t):!!e}function zw(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var uo,wr,Ci,f0,$w=(f0=class extends Ki{constructor(){super();ue(this,uo);ue(this,wr);ue(this,Ci);ne(this,Ci,t=>{if(!ko&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,wr)||this.setEventListener(T(this,Ci))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,wr))==null||t.call(this),ne(this,wr,void 0))}setEventListener(t){var n;ne(this,Ci,t),(n=T(this,wr))==null||n.call(this),ne(this,wr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,uo)!==t&&(ne(this,uo,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,uo)=="boolean"?T(this,uo):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},uo=new WeakMap,wr=new WeakMap,Ci=new WeakMap,f0),id=new $w;function Af(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var Bw=Iw;function Uw(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=Bw;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||s()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ze=Uw(),Ei,Ar,_i,u0,Ww=(u0=class extends Ki{constructor(){super();ue(this,Ei,!0);ue(this,Ar);ue(this,_i);ne(this,_i,t=>{if(!ko&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){T(this,Ar)||this.setEventListener(T(this,_i))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Ar))==null||t.call(this),ne(this,Ar,void 0))}setEventListener(t){var n;ne(this,_i,t),(n=T(this,Ar))==null||n.call(this),ne(this,Ar,t(this.setOnline.bind(this)))}setOnline(t){T(this,Ei)!==t&&(ne(this,Ei,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return T(this,Ei)}},Ei=new WeakMap,Ar=new WeakMap,_i=new WeakMap,u0),nc=new Ww;function Kw(e){return Math.min(1e3*2**e,3e4)}function O0(e){return(e??"online")==="online"?nc.isOnline():!0}var Cf=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function P0(e){let t=!1,n=0,r;const o=Af(),i=()=>o.status!=="pending",s=p=>{var g;if(!i()){const y=new Cf(p);d(y),(g=e.onCancel)==null||g.call(e,y)}},a=()=>{t=!0},c=()=>{t=!1},l=()=>id.isFocused()&&(e.networkMode==="always"||nc.isOnline())&&e.canRun(),f=()=>O0(e.networkMode)&&e.canRun(),u=p=>{i()||(r==null||r(),o.resolve(p))},d=p=>{i()||(r==null||r(),o.reject(p))},h=()=>new Promise(p=>{var g;r=y=>{(i()||l())&&p(y)},(g=e.onPause)==null||g.call(e)}).then(()=>{var p;r=void 0,i()||(p=e.onContinue)==null||p.call(e)}),m=()=>{if(i())return;let p;const g=n===0?e.initialPromise:void 0;try{p=g??e.fn()}catch(y){p=Promise.reject(y)}Promise.resolve(p).then(u).catch(y=>{var E;if(i())return;const b=e.retry??(ko?0:3),x=e.retryDelay??Kw,w=typeof x=="function"?x(n,y):x,A=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,y);if(t||!A){d(y);return}n++,(E=e.onFail)==null||E.call(e,n,y),Dw(w).then(()=>l()?void 0:h()).then(()=>{t?d(y):m()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:c,canStart:f,start:()=>(f()?m():h().then(m),o)}}var ho,d0,M0=(d0=class{constructor(){ue(this,ho)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bf(this.gcTime)&&ne(this,ho,so.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ko?1/0:300*1e3))}clearGcTimeout(){T(this,ho)&&(so.clearTimeout(T(this,ho)),ne(this,ho,void 0))}},ho=new WeakMap,d0),mo,Si,qt,po,nt,Hs,go,an,Wn,h0,Hw=(h0=class extends M0{constructor(t){super();ue(this,an);ue(this,mo);ue(this,Si);ue(this,qt);ue(this,po);ue(this,nt);ue(this,Hs);ue(this,go);ne(this,go,!1),ne(this,Hs,t.defaultOptions),this.setOptions(t.options),this.observers=[],ne(this,po,t.client),ne(this,qt,T(this,po).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ne(this,mo,tm(this.options)),this.state=t.state??T(this,mo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,nt))==null?void 0:t.promise}setOptions(t){if(this.options={...T(this,Hs),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=tm(this.options);n.data!==void 0&&(this.setState(em(n.data,n.dataUpdatedAt)),ne(this,mo,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,qt).remove(this)}setData(t,n){const r=wf(this.state.data,t,this.options);return ve(this,an,Wn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ve(this,an,Wn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=T(this,nt))==null?void 0:r.promise;return(o=T(this,nt))==null||o.cancel(t),n?n.then(kt).catch(kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,mo))}isActive(){return this.observers.some(t=>Vt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Mr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!T0(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,nt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,nt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,qt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,nt)&&(T(this,go)?T(this,nt).cancel({revert:!0}):T(this,nt).cancelRetry()),this.scheduleGc()),T(this,qt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ve(this,an,Wn).call(this,{type:"invalidate"})}async fetch(t,n){var c,l,f,u,d,h,m,p,g,y,b,x;if(this.state.fetchStatus!=="idle"&&((c=T(this,nt))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,nt))return T(this,nt).continueRetry(),T(this,nt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(A=>A.options.queryFn);w&&this.setOptions(w.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,o=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(ne(this,go,!0),r.signal)})},i=()=>{const w=N0(this.options,n),E=(()=>{const _={client:T(this,po),queryKey:this.queryKey,meta:this.meta};return o(_),_})();return ne(this,go,!1),this.options.persister?this.options.persister(w,E,this):w(E)},a=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,po),state:this.state,fetchFn:i};return o(w),w})();(l=this.options.behavior)==null||l.onFetch(a,this),ne(this,Si,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&ve(this,an,Wn).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta}),ne(this,nt,P0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:w=>{w instanceof Cf&&w.revert&&this.setState({...T(this,Si),fetchStatus:"idle"}),r.abort()},onFail:(w,A)=>{ve(this,an,Wn).call(this,{type:"failed",failureCount:w,error:A})},onPause:()=>{ve(this,an,Wn).call(this,{type:"pause"})},onContinue:()=>{ve(this,an,Wn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const w=await T(this,nt).start();if(w===void 0)throw process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(w),(h=(d=T(this,qt).config).onSuccess)==null||h.call(d,w,this),(p=(m=T(this,qt).config).onSettled)==null||p.call(m,w,this.state.error,this),w}catch(w){if(w instanceof Cf){if(w.silent)return T(this,nt).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw ve(this,an,Wn).call(this,{type:"error",error:w}),(y=(g=T(this,qt).config).onError)==null||y.call(g,w,this),(x=(b=T(this,qt).config).onSettled)==null||x.call(b,this.state.data,w,this),w}finally{this.scheduleGc()}}},mo=new WeakMap,Si=new WeakMap,qt=new WeakMap,po=new WeakMap,nt=new WeakMap,Hs=new WeakMap,go=new WeakMap,an=new WeakSet,Wn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...I0(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...em(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ne(this,Si,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ze.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,qt).notify({query:this,type:"updated",action:t})})},h0);function I0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:O0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function em(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function tm(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Lt,_e,qs,_t,yo,ki,Yn,Cr,Vs,Ti,Ni,bo,vo,Er,Oi,Me,ys,Ef,_f,Sf,kf,Tf,Nf,Of,R0,m0,L0=(m0=class extends Ki{constructor(t,n){super();ue(this,Me);ue(this,Lt);ue(this,_e);ue(this,qs);ue(this,_t);ue(this,yo);ue(this,ki);ue(this,Yn);ue(this,Cr);ue(this,Vs);ue(this,Ti);ue(this,Ni);ue(this,bo);ue(this,vo);ue(this,Er);ue(this,Oi,new Set);this.options=n,ne(this,Lt,t),ne(this,Cr,null),ne(this,Yn,Af()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,_e).addObserver(this),nm(T(this,_e),this.options)?ve(this,Me,ys).call(this):this.updateResult(),ve(this,Me,kf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pf(T(this,_e),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pf(T(this,_e),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ve(this,Me,Tf).call(this),ve(this,Me,Nf).call(this),T(this,_e).removeObserver(this)}setOptions(t){const n=this.options,r=T(this,_e);if(this.options=T(this,Lt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Vt(this.options.enabled,T(this,_e))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ve(this,Me,Of).call(this),T(this,_e).setOptions(this.options),n._defaulted&&!ec(this.options,n)&&T(this,Lt).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,_e),observer:this});const o=this.hasListeners();o&&rm(T(this,_e),r,this.options,n)&&ve(this,Me,ys).call(this),this.updateResult(),o&&(T(this,_e)!==r||Vt(this.options.enabled,T(this,_e))!==Vt(n.enabled,T(this,_e))||Mr(this.options.staleTime,T(this,_e))!==Mr(n.staleTime,T(this,_e)))&&ve(this,Me,Ef).call(this);const i=ve(this,Me,_f).call(this);o&&(T(this,_e)!==r||Vt(this.options.enabled,T(this,_e))!==Vt(n.enabled,T(this,_e))||i!==T(this,Er))&&ve(this,Me,Sf).call(this,i)}getOptimisticResult(t){const n=T(this,Lt).getQueryCache().build(T(this,Lt),t),r=this.createResult(n,t);return Vw(this,r)&&(ne(this,_t,r),ne(this,ki,this.options),ne(this,yo,T(this,_e).state)),r}getCurrentResult(){return T(this,_t)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&T(this,Yn).status==="pending"&&T(this,Yn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){T(this,Oi).add(t)}getCurrentQuery(){return T(this,_e)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=T(this,Lt).defaultQueryOptions(t),r=T(this,Lt).getQueryCache().build(T(this,Lt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ve(this,Me,ys).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,_t)))}createResult(t,n){var O;const r=T(this,_e),o=this.options,i=T(this,_t),s=T(this,yo),a=T(this,ki),l=t!==r?t.state:T(this,qs),{state:f}=t;let u={...f},d=!1,h;if(n._optimisticResults){const P=this.hasListeners(),I=!P&&nm(t,n),$=P&&rm(t,r,n,o);(I||$)&&(u={...u,...I0(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:m,errorUpdatedAt:p,status:g}=u;h=u.data;let y=!1;if(n.placeholderData!==void 0&&h===void 0&&g==="pending"){let P;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(P=i.data,y=!0):P=typeof n.placeholderData=="function"?n.placeholderData((O=T(this,Ni))==null?void 0:O.state.data,T(this,Ni)):n.placeholderData,P!==void 0&&(g="success",h=wf(i==null?void 0:i.data,P,n),d=!0)}if(n.select&&h!==void 0&&!y)if(i&&h===(s==null?void 0:s.data)&&n.select===T(this,Vs))h=T(this,Ti);else try{ne(this,Vs,n.select),h=n.select(h),h=wf(i==null?void 0:i.data,h,n),ne(this,Ti,h),ne(this,Cr,null)}catch(P){ne(this,Cr,P)}T(this,Cr)&&(m=T(this,Cr),h=T(this,Ti),p=Date.now(),g="error");const b=u.fetchStatus==="fetching",x=g==="pending",w=g==="error",A=x&&b,E=h!==void 0,S={status:g,fetchStatus:u.fetchStatus,isPending:x,isSuccess:g==="success",isError:w,isInitialLoading:A,isLoading:A,data:h,dataUpdatedAt:u.dataUpdatedAt,error:m,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:w&&!E,isPaused:u.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:w&&E,isStale:sd(t,n),refetch:this.refetch,promise:T(this,Yn),isEnabled:Vt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const P=D=>{S.status==="error"?D.reject(S.error):S.data!==void 0&&D.resolve(S.data)},I=()=>{const D=ne(this,Yn,S.promise=Af());P(D)},$=T(this,Yn);switch($.status){case"pending":t.queryHash===r.queryHash&&P($);break;case"fulfilled":(S.status==="error"||S.data!==$.value)&&I();break;case"rejected":(S.status!=="error"||S.error!==$.reason)&&I();break}}return S}updateResult(){const t=T(this,_t),n=this.createResult(T(this,_e),this.options);if(ne(this,yo,T(this,_e).state),ne(this,ki,this.options),T(this,yo).data!==void 0&&ne(this,Ni,T(this,_e)),ec(n,t))return;ne(this,_t,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!T(this,Oi).size)return!0;const s=new Set(i??T(this,Oi));return this.options.throwOnError&&s.add("error"),Object.keys(T(this,_t)).some(a=>{const c=a;return T(this,_t)[c]!==t[c]&&s.has(c)})};ve(this,Me,R0).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ve(this,Me,kf).call(this)}},Lt=new WeakMap,_e=new WeakMap,qs=new WeakMap,_t=new WeakMap,yo=new WeakMap,ki=new WeakMap,Yn=new WeakMap,Cr=new WeakMap,Vs=new WeakMap,Ti=new WeakMap,Ni=new WeakMap,bo=new WeakMap,vo=new WeakMap,Er=new WeakMap,Oi=new WeakMap,Me=new WeakSet,ys=function(t){ve(this,Me,Of).call(this);let n=T(this,_e).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(kt)),n},Ef=function(){ve(this,Me,Tf).call(this);const t=Mr(this.options.staleTime,T(this,_e));if(ko||T(this,_t).isStale||!bf(t))return;const r=T0(T(this,_t).dataUpdatedAt,t)+1;ne(this,bo,so.setTimeout(()=>{T(this,_t).isStale||this.updateResult()},r))},_f=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,_e)):this.options.refetchInterval)??!1},Sf=function(t){ve(this,Me,Nf).call(this),ne(this,Er,t),!(ko||Vt(this.options.enabled,T(this,_e))===!1||!bf(T(this,Er))||T(this,Er)===0)&&ne(this,vo,so.setInterval(()=>{(this.options.refetchIntervalInBackground||id.isFocused())&&ve(this,Me,ys).call(this)},T(this,Er)))},kf=function(){ve(this,Me,Ef).call(this),ve(this,Me,Sf).call(this,ve(this,Me,_f).call(this))},Tf=function(){T(this,bo)&&(so.clearTimeout(T(this,bo)),ne(this,bo,void 0))},Nf=function(){T(this,vo)&&(so.clearInterval(T(this,vo)),ne(this,vo,void 0))},Of=function(){const t=T(this,Lt).getQueryCache().build(T(this,Lt),this.options);if(t===T(this,_e))return;const n=T(this,_e);ne(this,_e,t),ne(this,qs,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},R0=function(t){Ze.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(T(this,_t))}),T(this,Lt).getQueryCache().notify({query:T(this,_e),type:"observerResultsUpdated"})})},m0);function qw(e,t){return Vt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function nm(e,t){return qw(e,t)||e.state.data!==void 0&&Pf(e,t,t.refetchOnMount)}function Pf(e,t,n){if(Vt(t.enabled,e)!==!1&&Mr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&sd(e,t)}return!1}function rm(e,t,n,r){return(e!==t||Vt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&sd(e,n)}function sd(e,t){return Vt(t.enabled,e)!==!1&&e.isStaleByTime(Mr(t.staleTime,e))}function Vw(e,t){return!ec(e.getCurrentResult(),t)}function rc(e){return{onFetch:(t,n)=>{var f,u,d,h,m;const r=t.options,o=(d=(u=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:u.fetchMore)==null?void 0:d.direction,i=((h=t.state.data)==null?void 0:h.pages)||[],s=((m=t.state.data)==null?void 0:m.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let p=!1;const g=x=>{zw(x,()=>t.signal,()=>p=!0)},y=N0(t.options,t.fetchOptions),b=async(x,w,A)=>{if(p)return Promise.reject();if(w==null&&x.pages.length)return Promise.resolve(x);const _=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:w,direction:A?"backward":"forward",meta:t.options.meta};return g(I),I})(),S=await y(_),{maxPages:O}=t.options,P=A?jw:Fw;return{pages:P(x.pages,S,O),pageParams:P(x.pageParams,w,O)}};if(o&&i.length){const x=o==="backward",w=x?D0:Mf,A={pages:i,pageParams:s},E=w(r,A);a=await b(A,E,x)}else{const x=e??i.length;do{const w=c===0?s[0]??r.initialPageParam:Mf(r,a);if(c>0&&w==null)break;a=await b(a,w),c++}while(c<x)}return a};t.options.persister?t.fetchFn=()=>{var p,g;return(g=(p=t.options).persister)==null?void 0:g.call(p,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Mf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function D0(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function Yw(e,t){return t?Mf(e,t)!=null:!1}function Gw(e,t){return!t||!e.getPreviousPageParam?!1:D0(e,t)!=null}var Qw=class extends L0{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:rc()})}getOptimisticResult(e){return e.behavior=rc(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var m,p;const{state:n}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:i,isError:s,isRefetchError:a}=r,c=(p=(m=n.fetchMeta)==null?void 0:m.fetchMore)==null?void 0:p.direction,l=s&&c==="forward",f=o&&c==="forward",u=s&&c==="backward",d=o&&c==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Yw(t,n.data),hasPreviousPage:Gw(t,n.data),isFetchNextPageError:l,isFetchingNextPage:f,isFetchPreviousPageError:u,isFetchingPreviousPage:d,isRefetchError:a&&!l&&!u,isRefetching:i&&!f&&!d}}},Ys,xn,St,xo,wn,br,p0,Zw=(p0=class extends M0{constructor(t){super();ue(this,wn);ue(this,Ys);ue(this,xn);ue(this,St);ue(this,xo);ne(this,Ys,t.client),this.mutationId=t.mutationId,ne(this,St,t.mutationCache),ne(this,xn,[]),this.state=t.state||F0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,xn).includes(t)||(T(this,xn).push(t),this.clearGcTimeout(),T(this,St).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ne(this,xn,T(this,xn).filter(n=>n!==t)),this.scheduleGc(),T(this,St).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,xn).length||(this.state.status==="pending"?this.scheduleGc():T(this,St).remove(this))}continue(){var t;return((t=T(this,xo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,c,l,f,u,d,h,m,p,g,y,b,x,w,A,E,_,S,O;const n=()=>{ve(this,wn,br).call(this,{type:"continue"})},r={client:T(this,Ys),meta:this.options.meta,mutationKey:this.options.mutationKey};ne(this,xo,P0({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,I)=>{ve(this,wn,br).call(this,{type:"failed",failureCount:P,error:I})},onPause:()=>{ve(this,wn,br).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,St).canRun(this)}));const o=this.state.status==="pending",i=!T(this,xo).canStart();try{if(o)n();else{ve(this,wn,br).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(s=T(this,St).config).onMutate)==null?void 0:a.call(s,t,this,r));const I=await((l=(c=this.options).onMutate)==null?void 0:l.call(c,t,r));I!==this.state.context&&ve(this,wn,br).call(this,{type:"pending",context:I,variables:t,isPaused:i})}const P=await T(this,xo).start();return await((u=(f=T(this,St).config).onSuccess)==null?void 0:u.call(f,P,t,this.state.context,this,r)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,P,t,this.state.context,r)),await((p=(m=T(this,St).config).onSettled)==null?void 0:p.call(m,P,null,this.state.variables,this.state.context,this,r)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,P,null,t,this.state.context,r)),ve(this,wn,br).call(this,{type:"success",data:P}),P}catch(P){try{await((x=(b=T(this,St).config).onError)==null?void 0:x.call(b,P,t,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((A=(w=this.options).onError)==null?void 0:A.call(w,P,t,this.state.context,r))}catch(I){Promise.reject(I)}try{await((_=(E=T(this,St).config).onSettled)==null?void 0:_.call(E,void 0,P,this.state.variables,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((O=(S=this.options).onSettled)==null?void 0:O.call(S,void 0,P,t,this.state.context,r))}catch(I){Promise.reject(I)}throw ve(this,wn,br).call(this,{type:"error",error:P}),P}finally{T(this,St).runNext(this)}}},Ys=new WeakMap,xn=new WeakMap,St=new WeakMap,xo=new WeakMap,wn=new WeakSet,br=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ze.batch(()=>{T(this,xn).forEach(r=>{r.onMutationUpdate(t)}),T(this,St).notify({mutation:this,type:"updated",action:t})})},p0);function F0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gn,cn,Gs,g0,Jw=(g0=class extends Ki{constructor(t={}){super();ue(this,Gn);ue(this,cn);ue(this,Gs);this.config=t,ne(this,Gn,new Set),ne(this,cn,new Map),ne(this,Gs,0)}build(t,n,r){const o=new Zw({client:t,mutationCache:this,mutationId:++ga(this,Gs)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){T(this,Gn).add(t);const n=va(t);if(typeof n=="string"){const r=T(this,cn).get(n);r?r.push(t):T(this,cn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,Gn).delete(t)){const n=va(t);if(typeof n=="string"){const r=T(this,cn).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&T(this,cn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=va(t);if(typeof n=="string"){const r=T(this,cn).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=va(t);if(typeof n=="string"){const o=(r=T(this,cn).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ze.batch(()=>{T(this,Gn).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,Gn).clear(),T(this,cn).clear()})}getAll(){return Array.from(T(this,Gn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Zh(n,r))}findAll(t={}){return this.getAll().filter(n=>Zh(t,n))}notify(t){Ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ze.batch(()=>Promise.all(t.map(n=>n.continue().catch(kt))))}},Gn=new WeakMap,cn=new WeakMap,Gs=new WeakMap,g0);function va(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Qn,_r,Rt,Zn,tr,$a,If,y0,Xw=(y0=class extends Ki{constructor(n,r){super();ue(this,tr);ue(this,Qn);ue(this,_r);ue(this,Rt);ue(this,Zn);ne(this,Qn,n),this.setOptions(r),this.bindMethods(),ve(this,tr,$a).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=T(this,Qn).defaultMutationOptions(n),ec(this.options,r)||T(this,Qn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,Rt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&To(r.mutationKey)!==To(this.options.mutationKey)?this.reset():((o=T(this,Rt))==null?void 0:o.state.status)==="pending"&&T(this,Rt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=T(this,Rt))==null||n.removeObserver(this)}onMutationUpdate(n){ve(this,tr,$a).call(this),ve(this,tr,If).call(this,n)}getCurrentResult(){return T(this,_r)}reset(){var n;(n=T(this,Rt))==null||n.removeObserver(this),ne(this,Rt,void 0),ve(this,tr,$a).call(this),ve(this,tr,If).call(this)}mutate(n,r){var o;return ne(this,Zn,r),(o=T(this,Rt))==null||o.removeObserver(this),ne(this,Rt,T(this,Qn).getMutationCache().build(T(this,Qn),this.options)),T(this,Rt).addObserver(this),T(this,Rt).execute(n)}},Qn=new WeakMap,_r=new WeakMap,Rt=new WeakMap,Zn=new WeakMap,tr=new WeakSet,$a=function(){var r;const n=((r=T(this,Rt))==null?void 0:r.state)??F0();ne(this,_r,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},If=function(n){Ze.batch(()=>{var r,o,i,s,a,c,l,f;if(T(this,Zn)&&this.hasListeners()){const u=T(this,_r).variables,d=T(this,_r).context,h={client:T(this,Qn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(o=(r=T(this,Zn)).onSuccess)==null||o.call(r,n.data,u,d,h)}catch(m){Promise.reject(m)}try{(s=(i=T(this,Zn)).onSettled)==null||s.call(i,n.data,null,u,d,h)}catch(m){Promise.reject(m)}}else if((n==null?void 0:n.type)==="error"){try{(c=(a=T(this,Zn)).onError)==null||c.call(a,n.error,u,d,h)}catch(m){Promise.reject(m)}try{(f=(l=T(this,Zn)).onSettled)==null||f.call(l,void 0,n.error,u,d,h)}catch(m){Promise.reject(m)}}}this.listeners.forEach(u=>{u(T(this,_r))})})},y0),An,b0,e2=(b0=class extends Ki{constructor(t={}){super();ue(this,An);this.config=t,ne(this,An,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??rd(o,n);let s=this.get(i);return s||(s=new Hw({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){T(this,An).has(t.queryHash)||(T(this,An).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,An).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,An).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ze.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,An).get(t)}getAll(){return[...T(this,An).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Qh(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Qh(t,r)):n}notify(t){Ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ze.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ze.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},An=new WeakMap,b0),Ke,Sr,kr,Pi,Mi,Tr,Ii,Li,v0,j0=(v0=class{constructor(e={}){ue(this,Ke);ue(this,Sr);ue(this,kr);ue(this,Pi);ue(this,Mi);ue(this,Tr);ue(this,Ii);ue(this,Li);ne(this,Ke,e.queryCache||new e2),ne(this,Sr,e.mutationCache||new Jw),ne(this,kr,e.defaultOptions||{}),ne(this,Pi,new Map),ne(this,Mi,new Map),ne(this,Tr,0)}mount(){ga(this,Tr)._++,T(this,Tr)===1&&(ne(this,Ii,id.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ke).onFocus())})),ne(this,Li,nc.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ke).onOnline())})))}unmount(){var e,t;ga(this,Tr)._--,T(this,Tr)===0&&((e=T(this,Ii))==null||e.call(this),ne(this,Ii,void 0),(t=T(this,Li))==null||t.call(this),ne(this,Li,void 0))}isFetching(e){return T(this,Ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Sr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Ke).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,Ke).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Mr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return T(this,Ke).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=T(this,Ke).get(r.queryHash),i=o==null?void 0:o.state.data,s=Lw(t,i);if(s!==void 0)return T(this,Ke).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Ze.batch(()=>T(this,Ke).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Ke).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,Ke);Ze.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,Ke);return Ze.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ze.batch(()=>T(this,Ke).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(kt).catch(kt)}invalidateQueries(e,t={}){return Ze.batch(()=>(T(this,Ke).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ze.batch(()=>T(this,Ke).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(kt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,Ke).build(this,t);return n.isStaleByTime(Mr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(kt).catch(kt)}fetchInfiniteQuery(e){return e.behavior=rc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kt).catch(kt)}ensureInfiniteQueryData(e){return e.behavior=rc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return nc.isOnline()?T(this,Sr).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Ke)}getMutationCache(){return T(this,Sr)}getDefaultOptions(){return T(this,kr)}setDefaultOptions(e){ne(this,kr,e)}setQueryDefaults(e,t){T(this,Pi).set(To(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Pi).values()],n={};return t.forEach(r=>{Ns(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){T(this,Mi).set(To(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Mi).values()],n={};return t.forEach(r=>{Ns(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,kr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=rd(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===tc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,kr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,Ke).clear(),T(this,Sr).clear()}},Ke=new WeakMap,Sr=new WeakMap,kr=new WeakMap,Pi=new WeakMap,Mi=new WeakMap,Tr=new WeakMap,Ii=new WeakMap,Li=new WeakMap,v0),z0=C.createContext(void 0),$0=e=>{const t=C.useContext(z0);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},t2=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(z0.Provider,{value:e,children:t})),B0=C.createContext(!1),n2=()=>C.useContext(B0);B0.Provider;function r2(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var o2=C.createContext(r2()),i2=()=>C.useContext(o2),s2=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?od(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},a2=e=>{C.useEffect(()=>{e.clearReset()},[e])},c2=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||od(n,[e.error,r])),l2=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},f2=(e,t)=>e.isLoading&&e.isFetching&&!t,u2=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,om=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function U0(e,t,n){var d,h,m,p;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=n2(),o=i2(),i=$0(n),s=i.defaultQueryOptions(e);(h=(d=i.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,s);const a=i.getQueryCache().get(s.queryHash);process.env.NODE_ENV!=="production"&&(s.queryFn||console.error(`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),s._optimisticResults=r?"isRestoring":"optimistic",l2(s),s2(s,o,a),a2(o);const c=!i.getQueryCache().get(s.queryHash),[l]=C.useState(()=>new t(i,s)),f=l.getOptimisticResult(s),u=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(g=>{const y=u?l.subscribe(Ze.batchCalls(g)):kt;return l.updateResult(),y},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),C.useEffect(()=>{l.setOptions(s)},[s,l]),u2(s,f))throw om(s,l,o);if(c2({result:f,errorResetBoundary:o,throwOnError:s.throwOnError,query:a,suspense:s.suspense}))throw f.error;if((p=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||p.call(m,s,f),s.experimental_prefetchInRender&&!ko&&f2(f,r)){const g=c?om(s,l,o):a==null?void 0:a.promise;g==null||g.catch(kt).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?f:l.trackResult(f)}function Oc(e,t){return U0(e,L0,t)}function ad(e,t){const n=$0(t),[r]=C.useState(()=>new Xw(n,e));C.useEffect(()=>{r.setOptions(e)},[r,e]);const o=C.useSyncExternalStore(C.useCallback(s=>r.subscribe(Ze.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=C.useCallback((s,a)=>{r.mutate(s,a).catch(kt)},[r]);if(o.error&&od(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function d2(e,t){return U0(e,Qw,t)}const cd=k.createContext({queryClient:new j0});cd.Provider;const sr=()=>{const e=k.useContext(cd);if(!e)throw new Error("useConfidenceContext must be used within a ConfidenceContext");return e},ld=({children:e})=>{const[t]=k.useState(new j0);return v.jsx(cd.Provider,{value:{queryClient:t},children:v.jsx(t2,{client:t,children:e})})},W0=k.createContext({isEmbedded:!1}),K0=W0.Provider,Pc=()=>k.useContext(W0),Ue={OPEN:"Open",IN_PROGRESS:"In progress",IN_REVIEW:"In review",COMPLETED:"Completed"},H0="https://marketplace.confidence.com/api",Rn=H0+"/confidence",im=H0+"/dropbox/prod",h2=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${Rn}/playbook-task-complete`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},m2=()=>{const{queryClient:e}=sr(),t=ad({mutationFn:async r=>h2(r)},e);return{completeTask:async r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task completed successfully")},onError:o=>{console.error("Error completing task:",o)}}),...t}},p2=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${Rn}/playbook-task-start`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},g2=()=>{const{queryClient:e}=sr(),t=ad({mutationFn:async r=>await p2(r)},e);return{startTask:r=>t.mutateAsync(r),...t}},q0=(e,t)=>{const{queryClient:n}=sr(),r=Oc({initialData:{},queryFn:()=>n.getQueryData(["PLAYBOOK_EXPANDED_TASKS",+e]),queryKey:["PLAYBOOK_EXPANDED_TASKS",+e]}),o=a=>{var c;return((c=r.data)==null?void 0:c[a.toString()])??!1},i=(a,c)=>{var l;n.setQueryData(["PLAYBOOK_EXPANDED_TASKS",+e],()=>({[a]:c!==void 0?c:!o(a)})),(l=t==null?void 0:t.onTaskExpanded)==null||l.call(t,a,o(a))},s=k.useMemo(()=>Object.values(r.data??{}).some(a=>a),[r.data]);return{isTaskExpanded:o,toggleTaskExpanded:i,isAtLeastOneTaskExpanded:s}},y2=async e=>{const t=new Headers;return t.append("Content-Type","application/json"),await(await fetch(`${Rn}/my-playbooks`,{method:"POST",headers:t,body:JSON.stringify(e)})).json()},Lf=50,V0=e=>["my-playbooks",e];function b2(){const e=new Date,t=new Date(e);t.setDate(t.getDate()-30);const n=r=>new Intl.DateTimeFormat("en-CA",{year:"numeric",month:"2-digit",day:"2-digit"}).format(r);return{createdDateFrom:n(t),createdDateTo:n(e)}}async function v2(e,t){try{const{createdDateFrom:n,createdDateTo:r}=b2();return await y2({username:e,searchTerm:"",statuses:["Not Started","In Progress","Paused","Review","Completed"],createdDateFrom:n,createdDateTo:r,sortByOrder:"desc",sortBy:"modifiedDate",start:t,limit:Lf})}catch(n){return console.error("Error getting my playbooks:",n),{myPlaybooks:[],numberofPlaybooks:0,companyName:""}}}function x2(e,t,n){var r;if((r=e.myPlaybooks)!=null&&r.length&&!(e.myPlaybooks.length<Lf))return n+Lf}const w2=({username:e})=>{var o;const{queryClient:t}=sr(),n=d2({queryKey:V0(e),queryFn:({pageParam:i})=>v2(e,i),initialPageParam:0,getNextPageParam:x2},t);return{myPlaybooks:(o=n.data)==null?void 0:o.pages.flatMap(i=>i.myPlaybooks),fetchNextPage:n.fetchNextPage,hasNextPage:n.hasNextPage,isFetchingNextPage:n.isFetchingNextPage,isLoading:n.isLoading,error:n.error}},A2=(e,t,n)=>{const{queryClient:r}=sr(),{completeTask:o}=m2(),{startTask:i}=g2(),{toggleTaskExpanded:s}=q0(e);return{completeTask:async(l,f)=>{const{status:u}=await o(l.toString());u&&(s(l,!1),r.setQueryData(["playbook",+e],d=>{if(!d)return d;const h=d.tasks.map(m=>m.sequenceOrder===f+1&&n.quickComplete?{...m,workflowStatus:Ue.IN_PROGRESS}:m.taskInstanceId===l?{...m,workflowStatus:u}:m);return{...d,tasks:h}}))},startTask:async(l,f)=>{const u=r.getQueryData(["playbook",+e]),d=(u==null?void 0:u.tasks)??[],h=d.length>0?Math.min(...d.map(g=>g.sequenceOrder)):null,m=h!==null&&f===h,{status:p}=await i(l.toString());p&&(m&&r.invalidateQueries({queryKey:V0(t)}),s(l,!0),r.setQueryData(["playbook",+e],g=>{if(!g)return g;const y=g.tasks.map(b=>b.taskInstanceId===l?{...b,workflowStatus:p}:b);return{...g,tasks:y}}))}}},C2=(e,t)=>{var i;const{queryClient:n}=sr(),r=Oc({queryFn:async()=>{const s=new Headers,a=await fetch(`${Rn}/playbook-details`,{method:"POST",cache:"no-store",headers:s,body:JSON.stringify({playbookInstanceId:+e,start:0,limit:50})});if(!a.ok)throw new Error("Network response was not ok");const c=await a.json();if(c.error)throw new Error(c.error);return c},queryKey:["playbook",+e]},n),o=A2(e,t,{quickComplete:(i=r.data)==null?void 0:i.quickComplete});return{playbook:r.data,isLoading:r.isLoading,error:r.error,actions:o}},hi={START:"START",PAUSE:"PAUSE",COMPLETE:"COMPLETE",ADD_COMMENT:"ADD_COMMENT"},E2={START:"Start",PAUSE:"Pause",RESUME:"Resume",COMPLETE:"Complete"},_2=e=>{const{taskStatus:t,canStart:n}=e;return{buttons:k.useMemo(()=>t===Ue.OPEN&&n?[hi.START]:t===Ue.IN_PROGRESS?[hi.PAUSE,hi.COMPLETE]:t===Ue.COMPLETED?[]:[],[e.taskStatus,e.canStart])}},Y0=async e=>{const t=new Headers;return t.append("Content-Type","application/json"),await(await fetch(`${Rn}/playbook-initiate`,{method:"POST",headers:t,body:JSON.stringify(e)})).json()},Mc='/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{:root,:host{--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free";--fa-font-regular:normal 400 1em/1 "Font Awesome 6 Free";--fa-font-light:normal 300 1em/1 "Font Awesome 6 Pro";--fa-font-thin:normal 100 1em/1 "Font Awesome 6 Pro";--fa-font-duotone:normal 900 1em/1 "Font Awesome 6 Duotone";--fa-font-duotone-regular:normal 400 1em/1 "Font Awesome 6 Duotone";--fa-font-duotone-light:normal 300 1em/1 "Font Awesome 6 Duotone";--fa-font-duotone-thin:normal 100 1em/1 "Font Awesome 6 Duotone";--fa-font-brands:normal 400 1em/1 "Font Awesome 6 Brands";--fa-font-sharp-solid:normal 900 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-regular:normal 400 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-light:normal 300 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-thin:normal 100 1em/1 "Font Awesome 6 Sharp";--fa-font-sharp-duotone-solid:normal 900 1em/1 "Font Awesome 6 Sharp Duotone";--fa-font-sharp-duotone-regular:normal 400 1em/1 "Font Awesome 6 Sharp Duotone";--fa-font-sharp-duotone-light:normal 300 1em/1 "Font Awesome 6 Sharp Duotone";--fa-font-sharp-duotone-thin:normal 100 1em/1 "Font Awesome 6 Sharp Duotone"}svg.svg-inline--fa:not(:root),svg.svg-inline--fa:not(:host){box-sizing:content-box;overflow:visible}.svg-inline--fa{display:var(--fa-display,inline-block);vertical-align:-.125em;height:1em;overflow:visible}.svg-inline--fa.fa-2xs{vertical-align:.1em}.svg-inline--fa.fa-xs{vertical-align:0}.svg-inline--fa.fa-sm{vertical-align:-.07143em}.svg-inline--fa.fa-lg{vertical-align:-.2em}.svg-inline--fa.fa-xl{vertical-align:-.25em}.svg-inline--fa.fa-2xl{vertical-align:-.3125em}.svg-inline--fa.fa-pull-left{margin-right:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-pull-right{margin-left:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-li{width:var(--fa-li-width,2em);top:.25em}.svg-inline--fa.fa-fw{width:var(--fa-fw-width,1.25em)}.fa-layers svg.svg-inline--fa{margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}.fa-layers-counter,.fa-layers-text{text-align:center;display:inline-block;position:absolute}.fa-layers{text-align:center;vertical-align:-.125em;width:1em;height:1em;display:inline-block;position:relative}.fa-layers svg.svg-inline--fa{transform-origin:50%}.fa-layers-text{transform-origin:50%;top:50%;left:50%;transform:translate(-50%,-50%)}.fa-layers-counter{background-color:var(--fa-counter-background-color,#ff253a);border-radius:var(--fa-counter-border-radius,1em);box-sizing:border-box;color:var(--fa-inverse,#fff);line-height:var(--fa-counter-line-height,1);max-width:var(--fa-counter-max-width,5em);min-width:var(--fa-counter-min-width,1.5em);padding:var(--fa-counter-padding,.25em .5em);right:var(--fa-right,0);text-overflow:ellipsis;top:var(--fa-top,0);transform:scale(var(--fa-counter-scale,.25));transform-origin:100% 0;overflow:hidden}.fa-layers-bottom-right{bottom:var(--fa-bottom,0);right:var(--fa-right,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:100% 100%;top:auto}.fa-layers-bottom-left{bottom:var(--fa-bottom,0);left:var(--fa-left,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:0 100%;top:auto;right:auto}.fa-layers-top-right{top:var(--fa-top,0);right:var(--fa-right,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:100% 0}.fa-layers-top-left{left:var(--fa-left,0);right:auto;top:var(--fa-top,0);transform:scale(var(--fa-layers-scale,.25));transform-origin:0 0}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{vertical-align:.225em;font-size:.625em;line-height:.1em}.fa-xs{vertical-align:.125em;font-size:.75em;line-height:.08333em}.fa-sm{vertical-align:.05357em;font-size:.875em;line-height:.07143em}.fa-lg{vertical-align:-.075em;font-size:1.25em;line-height:.05em}.fa-xl{vertical-align:-.125em;font-size:1.5em;line-height:.04167em}.fa-2xl{vertical-align:-.1875em;font-size:2em;line-height:.03125em}.fa-fw{text-align:center;width:1.25em}.fa-ul{margin-left:var(--fa-li-margin,2.5em);padding-left:0;list-style-type:none}.fa-ul>li{position:relative}.fa-li{left:calc(-1*var(--fa-li-width,2em));text-align:center;width:var(--fa-li-width,2em);line-height:inherit;position:absolute}.fa-border{border-color:var(--fa-border-color,#eee);border-radius:var(--fa-border-radius,.1em);border-style:var(--fa-border-style,solid);border-width:var(--fa-border-width,.08em);padding:var(--fa-border-padding,.2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin,.3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin,.3em)}.fa-beat{animation-name:fa-beat;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-bounce{animation-name:fa-bounce;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1))}.fa-fade{animation-name:fa-fade;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-beat-fade{animation-name:fa-beat-fade;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-flip{animation-name:fa-flip;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-shake{animation-name:fa-shake;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin{animation-name:fa-spin;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,2s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin-reverse{--fa-animation-direction:reverse}.fa-pulse,.fa-spin-pulse{animation-name:fa-spin;animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,steps(8))}@media(prefers-reduced-motion:reduce){.fa-beat,.fa-bounce,.fa-fade,.fa-beat-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{transition-duration:0s;transition-delay:0s;animation-duration:1ms;animation-iteration-count:1;animation-delay:-1ms}}@keyframes fa-beat{0%,90%{transform:scale(1)}45%{transform:scale(var(--fa-beat-scale,1.25))}}@keyframes fa-bounce{0%{transform:scale(1)translateY(0)}10%{transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9))translateY(0)}30%{transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1))translateY(var(--fa-bounce-height,-.5em))}50%{transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95))translateY(0)}57%{transform:scale(1)translateY(var(--fa-bounce-rebound,-.125em))}64%{transform:scale(1)translateY(0)}to{transform:scale(1)translateY(0)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity,.4);transform:scale(1)}50%{opacity:1;transform:scale(var(--fa-beat-fade-scale,1.125))}}@keyframes fa-flip{50%{transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@keyframes fa-shake{0%{transform:rotate(-15deg)}4%{transform:rotate(15deg)}8%,24%{transform:rotate(-18deg)}12%,28%{transform:rotate(18deg)}16%{transform:rotate(-22deg)}20%{transform:rotate(22deg)}32%{transform:rotate(-12deg)}36%{transform:rotate(12deg)}40%,to{transform:rotate(0)}}@keyframes fa-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fa-rotate-90{transform:rotate(90deg)}.fa-rotate-180{transform:rotate(180deg)}.fa-rotate-270{transform:rotate(270deg)}.fa-flip-horizontal{transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}.fa-rotate-by{transform:rotate(var(--fa-rotate-angle,0))}.fa-stack{vertical-align:middle;width:2.5em;height:2em;display:inline-block;position:relative}.fa-stack-1x,.fa-stack-2x{z-index:var(--fa-stack-z-index,auto);margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}.svg-inline--fa.fa-stack-1x{width:1.25em;height:1em}.svg-inline--fa.fa-stack-2x{width:2.5em;height:2em}.fa-inverse{color:var(--fa-inverse,#fff)}.sr-only,.fa-sr-only,.sr-only-focusable:not(:focus),.fa-sr-only-focusable:not(:focus){clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.svg-inline--fa .fa-primary{fill:var(--fa-primary-color,currentColor);opacity:var(--fa-primary-opacity,1)}.svg-inline--fa .fa-secondary{fill:var(--fa-secondary-color,currentColor);opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-primary{opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-secondary{opacity:var(--fa-primary-opacity,1)}.svg-inline--fa mask .fa-primary,.svg-inline--fa mask .fa-secondary{fill:#000}@layer theme{:root,:host{--cnf-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--cnf-color-red-500:oklch(63.7% .237 25.331);--cnf-color-blue-500:oklch(62.3% .214 259.815);--cnf-color-blue-600:oklch(54.6% .245 262.881);--cnf-spacing:.25rem;--cnf-container-md:28rem;--cnf-container-lg:32rem;--cnf-text-xs:.75rem;--cnf-text-xs--line-height:calc(1/.75);--cnf-text-sm:.875rem;--cnf-text-sm--line-height:calc(1.25/.875);--cnf-text-base:1rem;--cnf-text-base--line-height: 1.5 ;--cnf-text-lg:1.125rem;--cnf-text-lg--line-height:calc(1.75/1.125);--cnf-text-xl:1.25rem;--cnf-text-xl--line-height:calc(1.75/1.25);--cnf-text-2xl:1.5rem;--cnf-text-2xl--line-height:calc(2/1.5);--cnf-font-weight-normal:400;--cnf-font-weight-medium:500;--cnf-font-weight-semibold:600;--cnf-font-weight-bold:700;--cnf-radius-sm:.25rem;--cnf-radius-md:.375rem;--cnf-radius-lg:.5rem;--cnf-ease-out:cubic-bezier(0,0,.2,1);--cnf-ease-in-out:cubic-bezier(.4,0,.2,1);--cnf-animate-spin:spin 1s linear infinite;--cnf-animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--cnf-default-transition-duration:.15s;--cnf-default-transition-timing-function:cubic-bezier(.4,0,.2,1)}}@layer utilities{.cnf\\:pointer-events-auto{pointer-events:auto!important}.cnf\\:pointer-events-none{pointer-events:none!important}.cnf\\:absolute{position:absolute!important}.cnf\\:fixed{position:fixed!important}.cnf\\:relative{position:relative!important}.cnf\\:sticky{position:sticky!important}.cnf\\:inset-0{inset:calc(var(--cnf-spacing)*0)!important}.cnf\\:top-0{top:calc(var(--cnf-spacing)*0)!important}.cnf\\:top-0\\.5{top:calc(var(--cnf-spacing)*.5)!important}.cnf\\:top-1{top:calc(var(--cnf-spacing)*1)!important}.cnf\\:top-3{top:calc(var(--cnf-spacing)*3)!important}.cnf\\:-right-0{right:calc(var(--cnf-spacing)*0)!important}.cnf\\:bottom-0{bottom:calc(var(--cnf-spacing)*0)!important}.cnf\\:bottom-2{bottom:calc(var(--cnf-spacing)*2)!important}.cnf\\:left-0{left:calc(var(--cnf-spacing)*0)!important}.cnf\\:left-1{left:calc(var(--cnf-spacing)*1)!important}.cnf\\:left-1\\/2{left:50%!important}.cnf\\:left-4{left:calc(var(--cnf-spacing)*4)!important}.cnf\\:z-2{z-index:2!important}.cnf\\:z-10{z-index:10!important}.cnf\\:z-\\[9999999996\\],.cnf\\:z-\\[9999999997\\],.cnf\\:z-\\[9999999998\\],.cnf\\:z-\\[9999999999\\]{z-index:2147483647!important}.cnf\\:m-0{margin:calc(var(--cnf-spacing)*0)!important}.cnf\\:mx-1{margin-inline:calc(var(--cnf-spacing)*1)!important}.cnf\\:mx-2{margin-inline:calc(var(--cnf-spacing)*2)!important}.cnf\\:mx-4{margin-inline:calc(var(--cnf-spacing)*4)!important}.cnf\\:mx-auto{margin-inline:auto!important}.cnf\\:my-1{margin-block:calc(var(--cnf-spacing)*1)!important}.cnf\\:my-2{margin-block:calc(var(--cnf-spacing)*2)!important}.cnf\\:-mt-\\[1px\\]{margin-top:-1px!important}.cnf\\:mt-0{margin-top:calc(var(--cnf-spacing)*0)!important}.cnf\\:mt-3{margin-top:calc(var(--cnf-spacing)*3)!important}.cnf\\:mr-2{margin-right:calc(var(--cnf-spacing)*2)!important}.cnf\\:-mb-3{margin-bottom:calc(var(--cnf-spacing)*-3)!important}.cnf\\:mb-1{margin-bottom:calc(var(--cnf-spacing)*1)!important}.cnf\\:mb-2{margin-bottom:calc(var(--cnf-spacing)*2)!important}.cnf\\:mb-4{margin-bottom:calc(var(--cnf-spacing)*4)!important}.cnf\\:ml-2{margin-left:calc(var(--cnf-spacing)*2)!important}.cnf\\:box-border{box-sizing:border-box!important}.cnf\\:block{display:block!important}.cnf\\:flex{display:flex!important}.cnf\\:hidden{display:none!important}.cnf\\:inline-block{display:inline-block!important}.cnf\\:inline-flex{display:inline-flex!important}.cnf\\:size-4{width:calc(var(--cnf-spacing)*4)!important;height:calc(var(--cnf-spacing)*4)!important}.cnf\\:size-9{width:calc(var(--cnf-spacing)*9)!important;height:calc(var(--cnf-spacing)*9)!important}.cnf\\:size-full{width:100%!important;height:100%!important}.cnf\\:h-2{height:calc(var(--cnf-spacing)*2)!important}.cnf\\:h-3{height:calc(var(--cnf-spacing)*3)!important}.cnf\\:h-4{height:calc(var(--cnf-spacing)*4)!important}.cnf\\:h-5{height:calc(var(--cnf-spacing)*5)!important}.cnf\\:h-16{height:calc(var(--cnf-spacing)*16)!important}.cnf\\:h-\\[18px\\]{height:18px!important}.cnf\\:h-\\[20px\\]{height:20px!important}.cnf\\:h-\\[22px\\]{height:22px!important}.cnf\\:h-\\[24px\\]{height:24px!important}.cnf\\:h-\\[30px\\]{height:30px!important}.cnf\\:h-\\[38px\\]{height:38px!important}.cnf\\:h-\\[40px\\]{height:40px!important}.cnf\\:h-\\[75px\\]{height:75px!important}.cnf\\:h-\\[110px\\]{height:110px!important}.cnf\\:h-\\[calc\\(100vh-10rem\\)\\]{height:calc(100vh - 10rem)!important}.cnf\\:h-full{height:100%!important}.cnf\\:min-h-0{min-height:calc(var(--cnf-spacing)*0)!important}.cnf\\:min-h-16{min-height:calc(var(--cnf-spacing)*16)!important}.cnf\\:min-h-full{min-height:100%!important}.cnf\\:min-h-screen{min-height:100vh!important}.cnf\\:w-1\\/3{width:33.3333%!important}.cnf\\:w-3{width:calc(var(--cnf-spacing)*3)!important}.cnf\\:w-4{width:calc(var(--cnf-spacing)*4)!important}.cnf\\:w-16{width:calc(var(--cnf-spacing)*16)!important}.cnf\\:w-\\[20px\\]{width:20px!important}.cnf\\:w-\\[27px\\]{width:27px!important}.cnf\\:w-\\[38px\\]{width:38px!important}.cnf\\:w-\\[75px\\]{width:75px!important}.cnf\\:w-fit{width:fit-content!important}.cnf\\:w-full{width:100%!important}.cnf\\:w-px{width:1px!important}.cnf\\:w-screen{width:100vw!important}.cnf\\:max-w-400{max-width:calc(var(--cnf-spacing)*400)!important}.cnf\\:max-w-\\[300px\\]{max-width:300px!important}.cnf\\:max-w-\\[400px\\]{max-width:400px!important}.cnf\\:max-w-full{max-width:100%!important}.cnf\\:max-w-lg{max-width:var(--cnf-container-lg)!important}.cnf\\:max-w-md{max-width:var(--cnf-container-md)!important}.cnf\\:min-w-0{min-width:calc(var(--cnf-spacing)*0)!important}.cnf\\:min-w-\\[106px\\]{min-width:106px!important}.cnf\\:min-w-\\[140px\\]{min-width:140px!important}.cnf\\:min-w-\\[160px\\]{min-width:160px!important}.cnf\\:min-w-\\[172px\\]{min-width:172px!important}.cnf\\:min-w-fit{min-width:fit-content!important}.cnf\\:flex-1{flex:1!important}.cnf\\:flex-shrink-0,.cnf\\:shrink-0{flex-shrink:0!important}.cnf\\:-translate-x-1\\/2{--tw-translate-x: -50% !important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.cnf\\:translate-y-0{--tw-translate-y:calc(var(--cnf-spacing)*0)!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.cnf\\:translate-y-full{--tw-translate-y:100%!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.cnf\\:rotate-180{rotate:180deg!important}.cnf\\:\\[transform\\:translateZ\\(0\\)\\]{transform:translateZ(0)!important}.cnf\\:animate-progress{animation:1.5s ease-in-out infinite progress!important}.cnf\\:animate-pulse{animation:var(--cnf-animate-pulse)!important}.cnf\\:animate-spin{animation:var(--cnf-animate-spin)!important}.cnf\\:cursor-default{cursor:default!important}.cnf\\:cursor-not-allowed{cursor:not-allowed!important}.cnf\\:cursor-pointer{cursor:pointer!important}.cnf\\:cursor-zoom-in{cursor:zoom-in!important}.cnf\\:list-decimal{list-style-type:decimal!important}.cnf\\:list-disc{list-style-type:disc!important}.cnf\\:list-none{list-style-type:none!important}.cnf\\:flex-col{flex-direction:column!important}.cnf\\:flex-wrap{flex-wrap:wrap!important}.cnf\\:items-center{align-items:center!important}.cnf\\:items-start{align-items:flex-start!important}.cnf\\:items-stretch{align-items:stretch!important}.cnf\\:justify-between{justify-content:space-between!important}.cnf\\:justify-center{justify-content:center!important}.cnf\\:justify-end{justify-content:flex-end!important}.cnf\\:justify-start{justify-content:flex-start!important}.cnf\\:gap-1{gap:calc(var(--cnf-spacing)*1)!important}.cnf\\:gap-2{gap:calc(var(--cnf-spacing)*2)!important}.cnf\\:gap-3{gap:calc(var(--cnf-spacing)*3)!important}.cnf\\:gap-4{gap:calc(var(--cnf-spacing)*4)!important}.cnf\\:gap-8{gap:calc(var(--cnf-spacing)*8)!important}:where(.cnf\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--cnf-spacing)*2)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--cnf-spacing)*2)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.cnf\\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--cnf-spacing)*4)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--cnf-spacing)*4)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.cnf\\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--cnf-spacing)*1)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--cnf-spacing)*1)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.cnf\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--cnf-spacing)*2)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--cnf-spacing)*2)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.cnf\\:space-x-4>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--cnf-spacing)*4)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--cnf-spacing)*4)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.cnf\\:divide-y>:not(:last-child)){--tw-divide-y-reverse:0!important;border-bottom-style:var(--tw-border-style)!important;border-top-style:var(--tw-border-style)!important;border-top-width:calc(1px*var(--tw-divide-y-reverse))!important;border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))!important}:where(.cnf\\:divide-black\\/10>:not(:last-child)){border-color:oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1)!important}:where(.cnf\\:divide-gray-100>:not(:last-child)){border-color:#ebedef!important}.cnf\\:self-center{align-self:center!important}.cnf\\:self-end{align-self:flex-end!important}.cnf\\:truncate{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.cnf\\:overflow-auto{overflow:auto!important}.cnf\\:overflow-hidden{overflow:hidden!important}.cnf\\:overflow-x-hidden{overflow-x:hidden!important}.cnf\\:overflow-y-auto{overflow-y:auto!important}.cnf\\:rounded{border-radius:.25rem!important}.cnf\\:rounded-full{border-radius:3.40282e38px!important}.cnf\\:rounded-lg{border-radius:var(--cnf-radius-lg)!important}.cnf\\:rounded-md{border-radius:var(--cnf-radius-md)!important}.cnf\\:rounded-none{border-radius:0!important}.cnf\\:rounded-sm{border-radius:var(--cnf-radius-sm)!important}.cnf\\:rounded-t-sm{border-top-left-radius:var(--cnf-radius-sm)!important;border-top-right-radius:var(--cnf-radius-sm)!important}.cnf\\:rounded-l-sm{border-top-left-radius:var(--cnf-radius-sm)!important;border-bottom-left-radius:var(--cnf-radius-sm)!important}.cnf\\:rounded-b-md{border-bottom-right-radius:var(--cnf-radius-md)!important;border-bottom-left-radius:var(--cnf-radius-md)!important}.cnf\\:border{border-style:var(--tw-border-style)!important;border-width:1px!important}.cnf\\:border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.cnf\\:border-2{border-style:var(--tw-border-style)!important;border-width:2px!important}.cnf\\:border-t{border-top-style:var(--tw-border-style)!important;border-top-width:1px!important}.cnf\\:border-b{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.cnf\\:border-l-3{border-left-style:var(--tw-border-style)!important;border-left-width:3px!important}.cnf\\:border-none{--tw-border-style:none!important;border-style:none!important}.cnf\\:border-\\[\\#94C8FF\\]{border-color:#94c8ff!important}.cnf\\:border-\\[\\#A5DAB1\\]{border-color:#a5dab1!important}.cnf\\:border-\\[\\#C1C5C8\\]{border-color:#c1c5c8!important}.cnf\\:border-black\\/10{border-color:oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1)!important}.cnf\\:border-danger-200{border-color:#f0aab1!important}.cnf\\:border-danger-500{border-color:#dc3545!important}.cnf\\:border-gray-50{border-color:#f5f6f7!important}.cnf\\:border-gray-100{border-color:#ebedef!important}.cnf\\:border-gray-200{border-color:#ced1d6!important}.cnf\\:border-gray-300{border-color:#b0b5bd!important}.cnf\\:border-gray-400{border-color:#757e8c!important}.cnf\\:border-gray-700{border-color:#2c3544!important}.cnf\\:border-gray-800{border-color:#232b37!important}.cnf\\:border-info-500{border-color:#17a2b8!important}.cnf\\:border-orange-500{border-color:#ff7800!important}.cnf\\:border-primary-200{border-color:#94c8ff!important}.cnf\\:border-primary-600{border-color:#0069d9!important}.cnf\\:border-purple-500{border-color:#a855f7!important}.cnf\\:border-red-500{border-color:var(--cnf-color-red-500)!important}.cnf\\:border-secondary-500{border-color:#6c757d!important}.cnf\\:border-secondary-600{border-color:#5a6268!important}.cnf\\:border-steel-500{border-color:#556987!important}.cnf\\:border-success-200{border-color:#a5dab1!important}.cnf\\:border-success-600{border-color:#218838!important}.cnf\\:border-warning-200{border-color:#ffe597!important}.cnf\\:border-warning-500{border-color:#ffc107!important}.cnf\\:border-white{border-color:#fff!important}.cnf\\:border-t-blue-500{border-top-color:var(--cnf-color-blue-500)!important}.cnf\\:border-l-danger-500{border-left-color:#dc3545!important}.cnf\\:border-l-primary-500{border-left-color:#007bff!important}.cnf\\:border-l-success-500{border-left-color:#28a745!important}.cnf\\:border-l-warning-500{border-left-color:#ffc107!important}.cnf\\:bg-\\[\\#E6F2FF\\]{background-color:#e6f2ff!important}.cnf\\:bg-\\[\\#EAF6EC\\]{background-color:#eaf6ec!important}.cnf\\:bg-\\[\\#F0F1F2\\]{background-color:#f0f1f2!important}.cnf\\:bg-\\[\\#FFE600\\]{background-color:#ffe600!important}.cnf\\:bg-black\\/30{background-color:oklab(0% none none/.3)!important}.cnf\\:bg-black\\/40{background-color:oklab(0% none none/.4)!important}.cnf\\:bg-blue-500{background-color:var(--cnf-color-blue-500)!important}.cnf\\:bg-danger-100{background-color:#f6ccd0!important}.cnf\\:bg-danger-500{background-color:#dc3545!important}.cnf\\:bg-danger-600{background-color:#c82333!important}.cnf\\:bg-dark{background-color:#1c232d!important}.cnf\\:bg-fiserv-orange-500{background-color:#f60!important}.cnf\\:bg-gray-50{background-color:#f5f6f7!important}.cnf\\:bg-gray-100{background-color:#ebedef!important}.cnf\\:bg-gray-200{background-color:#ced1d6!important}.cnf\\:bg-gray-400{background-color:#757e8c!important}.cnf\\:bg-gray-500{background-color:#3a475b!important}.cnf\\:bg-gray-800{background-color:#232b37!important}.cnf\\:bg-gray-900{background-color:#1c232d!important}.cnf\\:bg-info-500{background-color:#17a2b8!important}.cnf\\:bg-orange-500{background-color:#ff7800!important}.cnf\\:bg-primary-100{background-color:#bfdeff!important}.cnf\\:bg-primary-600{background-color:#0069d9!important}.cnf\\:bg-primary-800{background-color:#0054af!important}.cnf\\:bg-purple-500{background-color:#a855f7!important}.cnf\\:bg-secondary-500{background-color:#6c757d!important}.cnf\\:bg-steel-500{background-color:#556987!important}.cnf\\:bg-success-100{background-color:#c9e9d0!important}.cnf\\:bg-success-500{background-color:#28a745!important}.cnf\\:bg-success-600{background-color:#218838!important}.cnf\\:bg-transparent{background-color:#0000!important}.cnf\\:bg-warning-100{background-color:#ffefc1!important}.cnf\\:bg-warning-500{background-color:#ffc107!important}.cnf\\:bg-warning-600{background-color:#f59e0b!important}.cnf\\:bg-white{background-color:#fff!important}.cnf\\:bg-yellow{background-color:#ffe600!important}.cnf\\:object-contain{object-fit:contain!important}.cnf\\:object-cover{object-fit:cover!important}.cnf\\:object-center{object-position:center!important}.cnf\\:p-0{padding:calc(var(--cnf-spacing)*0)!important}.cnf\\:p-1{padding:calc(var(--cnf-spacing)*1)!important}.cnf\\:p-2{padding:calc(var(--cnf-spacing)*2)!important}.cnf\\:p-3{padding:calc(var(--cnf-spacing)*3)!important}.cnf\\:p-4{padding:calc(var(--cnf-spacing)*4)!important}.cnf\\:px-0{padding-inline:calc(var(--cnf-spacing)*0)!important}.cnf\\:px-1{padding-inline:calc(var(--cnf-spacing)*1)!important}.cnf\\:px-2{padding-inline:calc(var(--cnf-spacing)*2)!important}.cnf\\:px-3{padding-inline:calc(var(--cnf-spacing)*3)!important}.cnf\\:px-4{padding-inline:calc(var(--cnf-spacing)*4)!important}.cnf\\:px-\\[2px\\]{padding-inline:2px!important}.cnf\\:py-1{padding-block:calc(var(--cnf-spacing)*1)!important}.cnf\\:py-1\\.5{padding-block:calc(var(--cnf-spacing)*1.5)!important}.cnf\\:py-2{padding-block:calc(var(--cnf-spacing)*2)!important}.cnf\\:py-4{padding-block:calc(var(--cnf-spacing)*4)!important}.cnf\\:pt-2{padding-top:calc(var(--cnf-spacing)*2)!important}.cnf\\:pr-2{padding-right:calc(var(--cnf-spacing)*2)!important}.cnf\\:pb-1{padding-bottom:calc(var(--cnf-spacing)*1)!important}.cnf\\:pb-2{padding-bottom:calc(var(--cnf-spacing)*2)!important}.cnf\\:pl-4{padding-left:calc(var(--cnf-spacing)*4)!important}.cnf\\:text-center{text-align:center!important}.cnf\\:text-left{text-align:left!important}.cnf\\:font-mono{font-family:var(--cnf-font-mono)!important}.cnf\\:text-2xl{font-size:var(--cnf-text-2xl)!important;line-height:var(--tw-leading,var(--cnf-text-2xl--line-height))!important}.cnf\\:text-base{font-size:var(--cnf-text-base)!important;line-height:var(--tw-leading,var(--cnf-text-base--line-height))!important}.cnf\\:text-lg{font-size:var(--cnf-text-lg)!important;line-height:var(--tw-leading,var(--cnf-text-lg--line-height))!important}.cnf\\:text-sm{font-size:var(--cnf-text-sm)!important;line-height:var(--tw-leading,var(--cnf-text-sm--line-height))!important}.cnf\\:text-sm\\/6{font-size:var(--cnf-text-sm)!important;line-height:calc(var(--cnf-spacing)*6)!important}.cnf\\:text-xl{font-size:var(--cnf-text-xl)!important;line-height:var(--tw-leading,var(--cnf-text-xl--line-height))!important}.cnf\\:text-xs{font-size:var(--cnf-text-xs)!important;line-height:var(--tw-leading,var(--cnf-text-xs--line-height))!important}.cnf\\:text-\\[10px\\]{font-size:10px!important}.cnf\\:leading-\\[18px\\]{--tw-leading:18px!important;line-height:18px!important}.cnf\\:leading-\\[22px\\]{--tw-leading:22px!important;line-height:22px!important}.cnf\\:leading-\\[24px\\]{--tw-leading:24px!important;line-height:24px!important}.cnf\\:font-bold{--tw-font-weight:var(--cnf-font-weight-bold)!important;font-weight:var(--cnf-font-weight-bold)!important}.cnf\\:font-medium{--tw-font-weight:var(--cnf-font-weight-medium)!important;font-weight:var(--cnf-font-weight-medium)!important}.cnf\\:font-normal{--tw-font-weight:var(--cnf-font-weight-normal)!important;font-weight:var(--cnf-font-weight-normal)!important}.cnf\\:font-semibold{--tw-font-weight:var(--cnf-font-weight-semibold)!important;font-weight:var(--cnf-font-weight-semibold)!important}.cnf\\:whitespace-nowrap{white-space:nowrap!important}.cnf\\:text-\\[\\#0069D9\\]{color:#0069d9!important}.cnf\\:text-black{color:#000!important}.cnf\\:text-blue-600{color:var(--cnf-color-blue-600)!important}.cnf\\:text-danger-500{color:#dc3545!important}.cnf\\:text-danger-600{color:#c82333!important}.cnf\\:text-danger-900{color:#721c24!important}.cnf\\:text-dark{color:#1c232d!important}.cnf\\:text-dark-300{color:#343a40!important}.cnf\\:text-fiserv-orange-500{color:#f60!important}.cnf\\:text-gray-50{color:#f5f6f7!important}.cnf\\:text-gray-200{color:#ced1d6!important}.cnf\\:text-gray-300{color:#b0b5bd!important}.cnf\\:text-gray-400{color:#757e8c!important}.cnf\\:text-gray-500{color:#3a475b!important}.cnf\\:text-gray-700{color:#2c3544!important}.cnf\\:text-gray-800{color:#232b37!important}.cnf\\:text-gray-900{color:#1c232d!important}.cnf\\:text-info-500{color:#17a2b8!important}.cnf\\:text-orange-500{color:#ff7800!important}.cnf\\:text-primary-600{color:#0069d9!important}.cnf\\:text-primary-900{color:#004085!important}.cnf\\:text-purple-500{color:#a855f7!important}.cnf\\:text-secondary{color:#6c757d!important}.cnf\\:text-secondary-400{color:#899197!important}.cnf\\:text-secondary-500{color:#6c757d!important}.cnf\\:text-secondary-600{color:#5a6268!important}.cnf\\:text-steel-500{color:#556987!important}.cnf\\:text-success-500{color:#28a745!important}.cnf\\:text-success-600{color:#218838!important}.cnf\\:text-success-900{color:#155724!important}.cnf\\:text-warning-500{color:#ffc107!important}.cnf\\:text-warning-600{color:#f59e0b!important}.cnf\\:text-warning-900{color:#935f07!important}.cnf\\:text-white{color:#fff!important}.cnf\\:text-yellow{color:#ffe600!important}.cnf\\:uppercase{text-transform:uppercase!important}.cnf\\:italic{font-style:italic!important}.cnf\\:line-through{text-decoration-line:line-through!important}.cnf\\:underline{text-decoration-line:underline!important}.cnf\\:opacity-0{opacity:0!important}.cnf\\:opacity-50{opacity:.5!important}.cnf\\:opacity-60{opacity:.6!important}.cnf\\:opacity-70{opacity:.7!important}.cnf\\:opacity-100{opacity:1!important}.cnf\\:shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.cnf\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.cnf\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.cnf\\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.cnf\\:shadow-dark\\/50{--tw-shadow-color:#1c232d80!important}@supports (color:color-mix(in lab,red,red)){.cnf\\:shadow-dark\\/50{--tw-shadow-color:color-mix(in oklab,oklab(25.3864% -.0047446 -.0210213/.5) var(--tw-shadow-alpha),transparent)!important}}.cnf\\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events!important;transition-timing-function:var(--tw-ease,var(--cnf-default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--cnf-default-transition-duration))!important}.cnf\\:transition-all{transition-property:all!important;transition-timing-function:var(--tw-ease,var(--cnf-default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--cnf-default-transition-duration))!important}.cnf\\:duration-300{--tw-duration:.3s!important;transition-duration:.3s!important}.cnf\\:ease-in-out{--tw-ease:var(--cnf-ease-in-out)!important;transition-timing-function:var(--cnf-ease-in-out)!important}.cnf\\:ease-out{--tw-ease:var(--cnf-ease-out)!important;transition-timing-function:var(--cnf-ease-out)!important}.cnf\\:outline-none{--tw-outline-style:none!important;outline-style:none!important}.cnf\\:\\[writing-mode\\:vertical-lr\\]{writing-mode:vertical-lr!important}@media(hover:hover){.cnf\\:hover\\:border-primary-500:hover{border-color:#007bff!important}.cnf\\:hover\\:bg-danger-200:hover{background-color:#f0aab1!important}.cnf\\:hover\\:bg-danger-500:hover{background-color:#dc3545!important}.cnf\\:hover\\:bg-danger-700:hover{background-color:#bd2130!important}.cnf\\:hover\\:bg-dark:hover{background-color:#1c232d!important}.cnf\\:hover\\:bg-fiserv-orange-500:hover{background-color:#f60!important}.cnf\\:hover\\:bg-gray-50:hover{background-color:#f5f6f7!important}.cnf\\:hover\\:bg-gray-100:hover{background-color:#ebedef!important}.cnf\\:hover\\:bg-gray-200:hover{background-color:#ced1d6!important}.cnf\\:hover\\:bg-gray-400:hover{background-color:#757e8c!important}.cnf\\:hover\\:bg-gray-500:hover{background-color:#3a475b!important}.cnf\\:hover\\:bg-gray-800:hover{background-color:#232b37!important}.cnf\\:hover\\:bg-gray-900:hover{background-color:#1c232d!important}.cnf\\:hover\\:bg-info-500:hover{background-color:#17a2b8!important}.cnf\\:hover\\:bg-orange-500:hover{background-color:#ff7800!important}.cnf\\:hover\\:bg-primary-200:hover{background-color:#94c8ff!important}.cnf\\:hover\\:bg-primary-700:hover{background-color:#0062cc!important}.cnf\\:hover\\:bg-primary-800:hover{background-color:#0054af!important}.cnf\\:hover\\:bg-purple-500:hover{background-color:#a855f7!important}.cnf\\:hover\\:bg-secondary-500:hover{background-color:#6c757d!important}.cnf\\:hover\\:bg-steel-500:hover{background-color:#556987!important}.cnf\\:hover\\:bg-success-200:hover{background-color:#a5dab1!important}.cnf\\:hover\\:bg-success-500:hover{background-color:#28a745!important}.cnf\\:hover\\:bg-success-700:hover{background-color:#1e7e34!important}.cnf\\:hover\\:bg-transparent:hover{background-color:#0000!important}.cnf\\:hover\\:bg-warning-200:hover{background-color:#ffe597!important}.cnf\\:hover\\:bg-warning-500:hover{background-color:#ffc107!important}.cnf\\:hover\\:bg-warning-700:hover{background-color:#dd8e0a!important}.cnf\\:hover\\:bg-yellow:hover{background-color:#ffe600!important}.cnf\\:hover\\:text-black:hover{color:#000!important}.cnf\\:hover\\:text-blue-600:hover{color:var(--cnf-color-blue-600)!important}.cnf\\:hover\\:text-danger-600:hover{color:#c82333!important}.cnf\\:hover\\:text-danger-700:hover{color:#bd2130!important}.cnf\\:hover\\:text-danger-800:hover{color:#aa1927!important}.cnf\\:hover\\:text-dark:hover{color:#1c232d!important}.cnf\\:hover\\:text-fiserv-orange-800:hover{color:#bf4c00!important}.cnf\\:hover\\:text-gray-400:hover{color:#757e8c!important}.cnf\\:hover\\:text-gray-700:hover{color:#2c3544!important}.cnf\\:hover\\:text-gray-800:hover{color:#232b37!important}.cnf\\:hover\\:text-gray-900:hover{color:#1c232d!important}.cnf\\:hover\\:text-info-800:hover{color:#026777!important}.cnf\\:hover\\:text-orange-800:hover{color:#c75d00!important}.cnf\\:hover\\:text-primary-600:hover{color:#0069d9!important}.cnf\\:hover\\:text-primary-700:hover{color:#0062cc!important}.cnf\\:hover\\:text-primary-800:hover{color:#0054af!important}.cnf\\:hover\\:text-purple-800:hover{color:#6f33a7!important}.cnf\\:hover\\:text-secondary-800:hover{color:#444a50!important}.cnf\\:hover\\:text-steel-800:hover{color:#333f51!important}.cnf\\:hover\\:text-success-600:hover{color:#218838!important}.cnf\\:hover\\:text-success-700:hover{color:#1e7e34!important}.cnf\\:hover\\:text-success-800:hover{color:#106c25!important}.cnf\\:hover\\:text-warning-600:hover{color:#f59e0b!important}.cnf\\:hover\\:text-warning-700:hover{color:#dd8e0a!important}.cnf\\:hover\\:text-warning-800:hover{color:#b87708!important}.cnf\\:hover\\:text-white:hover{color:#fff!important}.cnf\\:hover\\:text-yellow:hover{color:#ffe600!important}}.cnf\\:focus\\:border-red-500:focus{border-color:var(--cnf-color-red-500)!important}.cnf\\:focus\\:outline:focus{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.cnf\\:focus\\:outline-2:focus{outline-style:var(--tw-outline-style)!important;outline-width:2px!important}.cnf\\:focus\\:outline-3:focus{outline-style:var(--tw-outline-style)!important;outline-width:3px!important}.cnf\\:focus\\:outline-primary-500\\/\\[\\.3\\]:focus{outline-color:#007bff4d!important}.cnf\\:focus\\:outline-primary-600:focus{outline-color:#0069d9!important}.cnf\\:active\\:bg-gray-50:active{background-color:#f5f6f7!important}.cnf\\:active\\:bg-gray-800:active{background-color:#232b37!important}.cnf\\:active\\:text-black:active{color:#000!important}.cnf\\:active\\:text-white:active{color:#fff!important}.cnf\\:disabled\\:pointer-events-none:disabled{pointer-events:none!important}.cnf\\:disabled\\:opacity-15:disabled{opacity:.15!important}.cnf\\:data-closed\\:opacity-0[data-closed]{opacity:0!important}.cnf\\:data-focus\\:-outline-offset-2[data-focus]{outline-offset:-2px!important}.cnf\\:data-focus\\:outline-primary-500[data-focus]{outline-color:#007bff!important}@media(min-width:48rem){.cnf\\:md\\:min-w-fit{min-width:fit-content!important}}}@layer base{.confidence-playbook{all:revert}.confidence-playbook *,.confidence-playbook :before,.confidence-playbook :after{box-sizing:border-box}.confidence-playbook,.confidence-playbook *,.confidence-playbook :after,.confidence-playbook :before,.confidence-playbook ::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}.confidence-playbook ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}.confidence-playbook{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}.confidence-playbook hr{height:0;color:inherit;border-top-width:1px}.confidence-playbook abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.confidence-playbook h1,.confidence-playbook h2,.confidence-playbook h3,.confidence-playbook h4,.confidence-playbook h5,.confidence-playbook h6{font-size:inherit;font-weight:inherit}.confidence-playbook a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}.confidence-playbook b,.confidence-playbook strong{font-weight:bolder}.confidence-playbook code,.confidence-playbook kbd,.confidence-playbook samp,.confidence-playbook pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}.confidence-playbook small{font-size:80%}.confidence-playbook sub,.confidence-playbook sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}.confidence-playbook sub{bottom:-.25em}.confidence-playbook sup{top:-.5em}.confidence-playbook table{text-indent:0;border-color:inherit;border-collapse:collapse}.confidence-playbook :-moz-focusring{outline:auto}.confidence-playbook progress{vertical-align:baseline}.confidence-playbook summary{display:list-item}.confidence-playbook ol,.confidence-playbook ul,.confidence-playbook menu{list-style:none}.confidence-playbook img,.confidence-playbook svg,.confidence-playbook video,.confidence-playbook canvas,.confidence-playbook audio,.confidence-playbook iframe,.confidence-playbook embed,.confidence-playbook object{vertical-align:middle;display:block}.confidence-playbook img,.confidence-playbook video{max-width:100%;height:auto}.confidence-playbook button,.confidence-playbook input,.confidence-playbook select,.confidence-playbook optgroup,.confidence-playbook textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.confidence-playbook ::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.confidence-playbook :where(select:is([multiple],[size])) optgroup{font-weight:bolder}.confidence-playbook :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}.confidence-playbook ::file-selector-button{margin-inline-end:4px}.confidence-playbook ::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){.confidence-playbook ::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){.confidence-playbook ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}.confidence-playbook textarea{resize:vertical}.confidence-playbook ::-webkit-search-decoration{-webkit-appearance:none}.confidence-playbook ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}.confidence-playbook ::-webkit-datetime-edit{display:inline-flex}.confidence-playbook ::-webkit-datetime-edit-fields-wrapper{padding:0}.confidence-playbook ::-webkit-datetime-edit{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-year-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-month-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-day-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-hour-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-minute-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-second-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-millisecond-field{padding-block:0}.confidence-playbook ::-webkit-datetime-edit-meridiem-field{padding-block:0}.confidence-playbook ::-webkit-calendar-picker-indicator{line-height:1}.confidence-playbook :-moz-ui-invalid{box-shadow:none}.confidence-playbook button,.confidence-playbook input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}.confidence-playbook ::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}.confidence-playbook ::-webkit-inner-spin-button{height:auto}.confidence-playbook ::-webkit-outer-spin-button{height:auto}.confidence-playbook [hidden]:where(:not([hidden=until-found])){display:none!important}}.confidence-playbook *{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}.confidence-playbook{display:unset!important;color:#1c232d!important}@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid}}}@layer theme,base,components,utilities;.lexical-view-mode{word-break:break-word!important;color:#1c232d!important;width:100%!important}.lexical-view-mode ul{list-style:revert!important}.editable .lexical-view-mode:hover{cursor:text!important;background-color:#00000012!important;border-radius:1px!important;outline:4px solid #00000012!important}.lexical-view-mode .Collapsible__container{width:fit-content!important}.lexical-view-mode .Collapsible__title{color:#007bff!important;cursor:pointer!important;background-color:#0000!important;align-items:center!important;margin-bottom:4px!important;padding:0!important;list-style:none!important;display:flex!important}.lexical-view-mode .Collapsible__title:hover{color:#0069d9!important}.lexical-view-mode .Collapsible__title:hover .editor-paragraph{text-decoration:underline!important}.lexical-view-mode .Collapsible__title::marker{display:none!important}.lexical-view-mode .Collapsible__title::-webkit-details-marker{display:none!important}.lexical-view-mode .Collapsible__title:before{content:""!important;-moz-osx-font-smoothing:grayscale!important;-webkit-font-smoothing:antialiased!important;display:var(--fa-display,inline-block)!important;font-variant:normal!important;text-rendering:auto!important;background:#fff!important;border-radius:30px!important;margin-right:4px!important;font-family:"Font Awesome 5 Pro"!important;font-style:normal!important;font-weight:900!important;line-height:1!important}.lexical-view-mode .Collapsible__title:hover:before{color:#0069d9!important;border:3px solid #fff!important;margin-left:-3px!important;margin-right:1px!important}.lexical-view-mode hr{border:none!important;margin:5px 0!important;padding:3px 0!important}.lexical-view-mode hr:after{content:""!important;background-color:#0000001a!important;height:2px!important;line-height:2px!important;display:block!important}.lexical-view-mode .editor-line-spacer{background:0 0!important;border:1px dashed #0000!important;line-height:6px!important}.lexical-view-mode .other h2{margin-bottom:7px;color:#444!important;font-size:18px!important}.lexical-view-mode .other a{font-size:14px;color:#777!important;text-decoration:underline!important}.lexical-view-mode .other ul{list-style-type:none;margin:0!important;padding:0!important}.lexical-view-mode .ltr{text-align:left}.lexical-view-mode .rtl{text-align:right}.lexical-view-mode .editor-shell{color:#1c232d!important;border-radius:4px!important;width:100%!important;font-weight:400!important;position:relative!important}.lexical-view-mode .editor{position:relative;background:#fff!important}.lexical-view-mode .editor-input{caret-color:#444;resize:none!important;-moz-tab-size:1!important;tab-size:1!important;outline:0!important;min-height:150px!important;padding:12px!important;position:relative!important}.lexical-view-mode .editor-placeholder{pointer-events:none;color:#999!important;text-overflow:ellipsis!important;-webkit-user-select:none!important;user-select:none!important;font-size:15px!important;display:inline-block!important;position:absolute!important;top:15px!important;left:10px!important;overflow:hidden!important}.lexical-view-mode .editor-text-bold,.lexical-view-mode strong{font-weight:700!important}.lexical-view-mode .editor-text-italic{font-style:italic}.lexical-view-mode .editor-text-code{color:#d70c69;background-color:#0000001a!important;border-radius:4px!important;padding:1px .25rem!important;font-family:Menlo,Consolas,Monaco,monospace!important;font-size:85%!important}.lexical-view-mode .editor-link{word-break:break-word;color:#007bff!important;cursor:pointer!important;background-color:#0000!important;text-decoration:underline!important}.lexical-view-mode .editor-link:hover{color:#0062cc!important;text-decoration:underline!important}.lexical-view-mode .editor-code,.lexical-view-mode pre{word-break:break-word;-moz-tab-size:2!important;tab-size:2!important;background-color:#f0f2f5!important;border-radius:4px!important;margin:8px 0!important;padding:8px 8px 8px 52px!important;font-family:Menlo,Consolas,Monaco,monospace!important;font-size:13px!important;line-height:1.53!important;display:block!important;position:relative!important;overflow-x:auto!important}.lexical-view-mode .editor-code:before{min-width:25px;content:attr(data-gutter)!important;color:#777!important;white-space:pre-wrap!important;text-align:right!important;background-color:#eee!important;border-right:1px solid #ccc!important;padding:8px!important;position:absolute!important;top:0!important;left:0!important}.lexical-view-mode pre{white-space:pre-wrap!important;padding-left:8px!important}.lexical-view-mode pre:before{border-right:0!important;width:100%!important;height:23px!important}.lexical-view-mode .editor-code:after,.lexical-view-mode pre:after{color:#00000080;content:attr(data-highlight-language)!important;text-transform:uppercase!important;padding:3px!important;font-size:10px!important;position:absolute!important;top:0!important;right:3px!important}.lexical-view-mode .editor-tokenComment{color:#708090}.lexical-view-mode .editor-tokenPunctuation{color:#999}.lexical-view-mode .editor-tokenProperty{color:#905}.lexical-view-mode .editor-tokenSelector{color:#690}.lexical-view-mode .editor-tokenOperator{color:#9a6e3a}.lexical-view-mode .editor-tokenAttr{color:#07a}.lexical-view-mode .editor-tokenVariable{color:#e90}.lexical-view-mode .editor-tokenFunction{color:#dd4a68}.lexical-view-mode .editor-paragraph,.lexical-view-mode p{word-break:break-word;margin:0 0 .3rem!important;padding:0!important}.lexical-view-mode .editor-paragraph:last-child{margin-bottom:0}.lexical-view-mode .editor-heading-h1,.lexical-view-mode h1{line-height:100%;border-bottom:thin solid #0000001a!important;margin-top:1.2em!important;margin-bottom:.6em!important;padding-bottom:6px!important;font-size:24px!important}.lexical-view-mode .editor-heading-h2:first-child,.lexical-view-mode .editor-heading-h1:first-child,.lexical-view-mode h2:first-child,.lexical-view-mode h1:first-child{margin-top:0}.lexical-view-mode .editor-heading-h2,.lexical-view-mode h2{line-height:100%;border-bottom:thin solid #0000001a!important;margin-top:1.2em!important;margin-bottom:.6em!important;padding-bottom:6px!important;font-size:20px!important}.lexical-view-mode .editor-list-ol,.lexical-view-mode ol{margin:0 0 .3rem 15px!important;padding:0 0 0 15px!important;list-style-type:decimal!important;list-style-position:outside!important}.lexical-view-mode li ol{margin:0 0 0 20px!important}.lexical-view-mode .editor-list-ol2,.lexical-view-mode .editor-list-ol3,.lexical-view-mode .editor-list-ol4,.lexical-view-mode .editor-list-ol5,.lexical-view-mode .editor-list-ol6,.lexical-view-mode .editor-list-ol7{list-style-position:outside;padding:0!important}.lexical-view-mode .editor-list-ol2{list-style-type:lower-alpha}.lexical-view-mode .editor-list-ol3{list-style-type:lower-roman}.lexical-view-mode .editor-list-ol4{list-style-type:decimal}.lexical-view-mode .editor-list-ol5{list-style-type:lower-alpha}.lexical-view-mode .editor-list-ol6{list-style-type:lower-roman}.lexical-view-mode .editor-list-ol7{list-style-type:decimal}.lexical-view-mode .editor-list-ul,.lexical-view-mode ul{margin-bottom:.3rem;margin:0 0 0 15px!important;padding:0 0 0 5px!important;list-style-position:outside!important}.lexical-view-mode li ul{margin:0 0 0 15px!important;padding:0 0 0 3px!important}.lexical-view-mode .editor-list-item{padding-left:0;vertical-align:top!important;margin-bottom:12px!important;line-height:1.3!important}.lexical-view-mode .editor-nested-list-item{list-style-type:none}.lexical-view-mode code{color:inherit!important;word-wrap:break-word!important;white-space:break-spaces!important}.lexical-view-mode a>code{color:inherit}.lexical-view-mode pre::-webkit-scrollbar{width:10px;background:0 0!important}.lexical-view-mode pre::-webkit-scrollbar-thumb{background:#999}.lexical-view-mode img{cursor:zoom-in!important;border:1px solid #ccc!important;border-radius:4px!important;width:auto!important;max-width:250px!important;height:auto!important;max-height:250px!important;display:block!important}.lexical-view-mode img:hover,.lexical-view-mode img:focus{outline:3px solid #007bff4d}.lexical-view-mode iframe{background:#000!important;border:1px solid #ccc!important;width:fit-content!important;max-width:100%!important;height:fit-content!important}.lexical-view-mode .ql-align-left{text-align:left!important}.lexical-view-mode .ql-align-right{text-align:right!important}.lexical-view-mode .ql-align-center{text-align:center!important}.lexical-view-mode .ql-align-justify{text-align:justify!important}.lexical-view-mode .ql-size-small{font-size:.75em!important}.lexical-view-mode p>a,.lexical-view-mode li>a{color:#007bff!important;cursor:pointer!important;background-color:#0000!important;text-decoration:underline!important}.lexical-view-mode p>a:hover,.lexical-view-mode li>a:hover{color:#0062cc!important;text-decoration:underline!important}.lexical-view-mode .ql-size-large{font-size:1.25rem!important}.lexical-view-mode .ql-indent-1{margin-left:20px!important}.lexical-view-mode .ql-indent-2{margin-left:40px!important}.lexical-view-mode .ql-indent-3{margin-left:60px!important}.lexical-view-mode .ql-indent-4{margin-left:80px!important}.lexical-view-mode .ql-indent-5{margin-left:100px!important}.lexical-view-mode .ql-indent-6{margin-left:120px!important}.lexical-view-mode .ql-indent-7{margin-left:140px!important}.lexical-view-mode .ql-indent-8{margin-left:160px!important}.lexical-view-mode ol li.ql-indent-1,.lexical-view-mode ol li.ql-indent-2,.lexical-view-mode ol li.ql-indent-3,.lexical-view-mode ol li.ql-indent-4,.lexical-view-mode ol li.ql-indent-5,.lexical-view-mode ol li.ql-indent-6,.lexical-view-mode ol li.ql-indent-7,.lexical-view-mode ol li.ql-indent-8,.lexical-view-mode ul li.ql-indent-1,.lexical-view-mode ul li.ql-indent-2,.lexical-view-mode ul li.ql-indent-3,.lexical-view-mode ul li.ql-indent-4,.lexical-view-mode ul li.ql-indent-5,.lexical-view-mode ul li.ql-indent-6,.lexical-view-mode ul li.ql-indent-7,.lexical-view-mode ul li.ql-indent-8{margin-bottom:.3em!important}.lexical-view-mode ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-1!important;margin-left:0!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-1::marker{display:none}.lexical-view-mode ol li.ql-indent-1:before{content:counter(list-1,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-2!important;margin-left:20px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-2::marker{display:none}.lexical-view-mode ol li.ql-indent-2:before{content:counter(list-2,lower-roman)". "!important}.lexical-view-mode ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-3!important;margin-left:40px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-3::marker{display:none}.lexical-view-mode ol li.ql-indent-3:before{content:counter(list-3,decimal)". "!important}.lexical-view-mode ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-4!important;margin-left:60px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-4::marker{display:none}.lexical-view-mode ol li.ql-indent-4:before{content:counter(list-4,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9!important;counter-increment:list-5!important;margin-left:80px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-5::marker{display:none}.lexical-view-mode ol li.ql-indent-5:before{content:counter(list-5,lower-roman)". "!important}.lexical-view-mode ol li.ql-indent-6{counter-reset:list-7 list-8 list-9!important;counter-increment:list-6!important;margin-left:100px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-6::marker{display:none}.lexical-view-mode ol li.ql-indent-6:before{content:counter(list-6,decimal)". "!important}.lexical-view-mode ol li.ql-indent-7{counter-reset:list-8 list-9!important;counter-increment:list-7!important;margin-left:120px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-7::marker{display:none}.lexical-view-mode ol li.ql-indent-7:before{content:counter(list-7,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-8{counter-reset:list-9!important;counter-increment:list-8!important;margin-left:140px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-8::marker{display:none}.lexical-view-mode ol li.ql-indent-8:before{content:counter(list-8,lower-roman)". "!important}.lexical-view-mode ul li.ql-indent-3,.lexical-view-mode ul li.ql-indent-6{list-style-type:disc}.lexical-view-mode ul li.ql-indent-1,.lexical-view-mode ul li.ql-indent-4,.lexical-view-mode ul li.ql-indent-7{list-style-type:circle}.lexical-view-mode ul li.ql-indent-2,.lexical-view-mode ul li.ql-indent-5,.lexical-view-mode ul li.ql-indent-8{list-style-type:square}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes progress{0%{transform:translate(-100%)}to{transform:translate(300%)}}',S2=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},k2=(e,t)=>({classGroupId:e,validator:t}),G0=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),oc="-",sm=[],T2="arbitrary..",N2=e=>{const t=P2(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return O2(s);const a=s.split(oc),c=a[0]===""&&a.length>1?1:0;return Q0(a,c,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const c=r[s],l=n[s];return c?l?S2(l,c):c:l||sm}return n[s]||sm}}},Q0=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const l=Q0(e,t+1,i);if(l)return l}const s=n.validators;if(s===null)return;const a=t===0?e.join(oc):e.slice(t).join(oc),c=s.length;for(let l=0;l<c;l++){const f=s[l];if(f.validator(a))return f.classGroupId}},O2=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?T2+r:void 0})(),P2=e=>{const{theme:t,classGroups:n}=e;return M2(n,t)},M2=(e,t)=>{const n=G0();for(const r in e){const o=e[r];fd(o,n,r,t)}return n},fd=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];I2(s,t,n,r)}},I2=(e,t,n,r)=>{if(typeof e=="string"){L2(e,t,n);return}if(typeof e=="function"){R2(e,t,n,r);return}D2(e,t,n,r)},L2=(e,t,n)=>{const r=e===""?t:Z0(t,e);r.classGroupId=n},R2=(e,t,n,r)=>{if(F2(e)){fd(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(k2(n,e))},D2=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[a,c]=o[s];fd(c,Z0(t,a),n,r)}},Z0=(e,t)=>{let n=e;const r=t.split(oc),o=r.length;for(let i=0;i<o;i++){const s=r[i];let a=n.nextPart.get(s);a||(a=G0(),n.nextPart.set(s,a)),n=a}return n},F2=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,j2=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,s)=>{n[i]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=r[i])!==void 0)return o(i,s),s},set(i,s){i in n?n[i]=s:o(i,s)}}},Rf="!",am=":",z2=[],cm=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),$2=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,c=0,l;const f=o.length;for(let p=0;p<f;p++){const g=o[p];if(s===0&&a===0){if(g===am){i.push(o.slice(c,p)),c=p+1;continue}if(g==="/"){l=p;continue}}g==="["?s++:g==="]"?s--:g==="("?a++:g===")"&&a--}const u=i.length===0?o:o.slice(c);let d=u,h=!1;u.endsWith(Rf)?(d=u.slice(0,-1),h=!0):u.startsWith(Rf)&&(d=u.slice(1),h=!0);const m=l&&l>c?l-c:void 0;return cm(i,h,d,m)};if(t){const o=t+am,i=r;r=s=>s.startsWith(o)?i(s.slice(o.length)):cm(z2,!1,s,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},B2=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const s=n[i],a=s[0]==="[",c=t.has(s);a||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},U2=e=>({cache:j2(e.cacheSize),parseClassName:$2(e),sortModifiers:B2(e),...N2(e)}),W2=/\s+/,K2=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(W2);let c="";for(let l=a.length-1;l>=0;l-=1){const f=a[l],{isExternal:u,modifiers:d,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:p}=n(f);if(u){c=f+(c.length>0?" "+c:c);continue}let g=!!p,y=r(g?m.substring(0,p):m);if(!y){if(!g){c=f+(c.length>0?" "+c:c);continue}if(y=r(m),!y){c=f+(c.length>0?" "+c:c);continue}g=!1}const b=d.length===0?"":d.length===1?d[0]:i(d).join(":"),x=h?b+Rf:b,w=x+y;if(s.indexOf(w)>-1)continue;s.push(w);const A=o(y,g);for(let E=0;E<A.length;++E){const _=A[E];s.push(x+_)}c=f+(c.length>0?" "+c:c)}return c},H2=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=J0(n))&&(o&&(o+=" "),o+=r);return o},J0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=J0(e[r]))&&(n&&(n+=" "),n+=t);return n},q2=(e,...t)=>{let n,r,o,i;const s=c=>{const l=t.reduce((f,u)=>u(f),e());return n=U2(l),r=n.cache.get,o=n.cache.set,i=a,a(c)},a=c=>{const l=r(c);if(l)return l;const f=K2(c,n);return o(c,f),f};return i=s,(...c)=>i(H2(...c))},V2=[],Qe=e=>{const t=n=>n[e]||V2;return t.isThemeGetter=!0,t},X0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ey=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Y2=/^\d+\/\d+$/,G2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Q2=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Z2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,J2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,X2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ei=e=>Y2.test(e),we=e=>!!e&&!Number.isNaN(Number(e)),gr=e=>!!e&&Number.isInteger(Number(e)),Sl=e=>e.endsWith("%")&&we(e.slice(0,-1)),$n=e=>G2.test(e),eA=()=>!0,tA=e=>Q2.test(e)&&!Z2.test(e),ty=()=>!1,nA=e=>J2.test(e),rA=e=>X2.test(e),oA=e=>!ae(e)&&!ce(e),iA=e=>Hi(e,oy,ty),ae=e=>X0.test(e),Xr=e=>Hi(e,iy,tA),kl=e=>Hi(e,fA,we),lm=e=>Hi(e,ny,ty),sA=e=>Hi(e,ry,rA),xa=e=>Hi(e,sy,nA),ce=e=>ey.test(e),cs=e=>qi(e,iy),aA=e=>qi(e,uA),fm=e=>qi(e,ny),cA=e=>qi(e,oy),lA=e=>qi(e,ry),wa=e=>qi(e,sy,!0),Hi=(e,t,n)=>{const r=X0.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},qi=(e,t,n=!1)=>{const r=ey.exec(e);return r?r[1]?t(r[1]):n:!1},ny=e=>e==="position"||e==="percentage",ry=e=>e==="image"||e==="url",oy=e=>e==="length"||e==="size"||e==="bg-size",iy=e=>e==="length",fA=e=>e==="number",uA=e=>e==="family-name",sy=e=>e==="shadow",dA=()=>{const e=Qe("color"),t=Qe("font"),n=Qe("text"),r=Qe("font-weight"),o=Qe("tracking"),i=Qe("leading"),s=Qe("breakpoint"),a=Qe("container"),c=Qe("spacing"),l=Qe("radius"),f=Qe("shadow"),u=Qe("inset-shadow"),d=Qe("text-shadow"),h=Qe("drop-shadow"),m=Qe("blur"),p=Qe("perspective"),g=Qe("aspect"),y=Qe("ease"),b=Qe("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...w(),ce,ae],E=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],S=()=>[ce,ae,c],O=()=>[ei,"full","auto",...S()],P=()=>[gr,"none","subgrid",ce,ae],I=()=>["auto",{span:["full",gr,ce,ae]},gr,ce,ae],$=()=>[gr,"auto",ce,ae],D=()=>["auto","min","max","fr",ce,ae],j=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...S()],oe=()=>[ei,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],M=()=>[e,ce,ae],re=()=>[...w(),fm,lm,{position:[ce,ae]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",cA,iA,{size:[ce,ae]}],H=()=>[Sl,cs,Xr],W=()=>["","none","full",l,ce,ae],J=()=>["",we,cs,Xr],Y=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[we,Sl,fm,lm],me=()=>["","none",m,ce,ae],ye=()=>["none",we,ce,ae],pe=()=>["none",we,ce,ae],ze=()=>[we,ce,ae],Q=()=>[ei,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$n],breakpoint:[$n],color:[eA],container:[$n],"drop-shadow":[$n],ease:["in","out","in-out"],font:[oA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$n],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$n],shadow:[$n],spacing:["px",we],text:[$n],"text-shadow":[$n],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ei,ae,ce,g]}],container:["container"],columns:[{columns:[we,ae,ce,a]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:A()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[gr,"auto",ce,ae]}],basis:[{basis:[ei,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[we,ei,"auto","initial","none",ae]}],grow:[{grow:["",we,ce,ae]}],shrink:[{shrink:["",we,ce,ae]}],order:[{order:[gr,"first","last","none",ce,ae]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...j(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...j()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":j()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:oe()}],w:[{w:[a,"screen",...oe()]}],"min-w":[{"min-w":[a,"screen","none",...oe()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...oe()]}],h:[{h:["screen","lh",...oe()]}],"min-h":[{"min-h":["screen","lh","none",...oe()]}],"max-h":[{"max-h":["screen","lh",...oe()]}],"font-size":[{text:["base",n,cs,Xr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ce,kl]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Sl,ae]}],"font-family":[{font:[aA,ae,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ce,ae]}],"line-clamp":[{"line-clamp":[we,"none",ce,kl]}],leading:[{leading:[i,...S()]}],"list-image":[{"list-image":["none",ce,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[we,"from-font","auto",ce,Xr]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[we,"auto",ce,ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,ae]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce,ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},gr,ce,ae],radial:["",ce,ae],conic:[gr,ce,ae]},lA,sA]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[we,ce,ae]}],"outline-w":[{outline:["",we,cs,Xr]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",f,wa,xa]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",u,wa,xa]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[we,Xr]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",d,wa,xa]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[we,ce,ae]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[we]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[ce,ae]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[we]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,ae]}],filter:[{filter:["","none",ce,ae]}],blur:[{blur:me()}],brightness:[{brightness:[we,ce,ae]}],contrast:[{contrast:[we,ce,ae]}],"drop-shadow":[{"drop-shadow":["","none",h,wa,xa]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",we,ce,ae]}],"hue-rotate":[{"hue-rotate":[we,ce,ae]}],invert:[{invert:["",we,ce,ae]}],saturate:[{saturate:[we,ce,ae]}],sepia:[{sepia:["",we,ce,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,ae]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[we,ce,ae]}],"backdrop-contrast":[{"backdrop-contrast":[we,ce,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",we,ce,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[we,ce,ae]}],"backdrop-invert":[{"backdrop-invert":["",we,ce,ae]}],"backdrop-opacity":[{"backdrop-opacity":[we,ce,ae]}],"backdrop-saturate":[{"backdrop-saturate":[we,ce,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",we,ce,ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[we,"initial",ce,ae]}],ease:[{ease:["linear","initial",y,ce,ae]}],delay:[{delay:[we,ce,ae]}],animate:[{animate:["none",b,ce,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,ce,ae]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[ce,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Q()}],"translate-x":[{"translate-x":Q()}],"translate-y":[{"translate-y":Q()}],"translate-z":[{"translate-z":Q()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce,ae]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce,ae]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[we,cs,Xr,kl]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},mi=q2(dA);function ay(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ay(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Os(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ay(e))&&(r&&(r+=" "),r+=t);return r}function be(...e){return mi(Os(e))}const um="confidence_playbook_",hA="confidence_playbook_expanded_",cy=30;function ly(e,t){return t?`${um}${e}_${t}`:`${um}${e}`}function fy(e,t,n,r){const o={playbookInstanceId:t,email:n},i=ly(e,r),s=new Date;s.setDate(s.getDate()+cy),document.cookie=`${i}=${encodeURIComponent(JSON.stringify(o))}; expires=${s.toUTCString()}; path=/; SameSite=Lax`}function uy(e,t){const n=ly(e,t),r=document.cookie.split(";");for(const o of r){const[i,s]=o.trim().split("=");if(i===n&&s)try{return JSON.parse(decodeURIComponent(s))}catch{return null}}return null}function dy(e){return`${hA}${e}`}function mA(e,t){const n=dy(e),r=new Date;r.setDate(r.getDate()+cy),document.cookie=`${n}=${t?"1":"0"}; expires=${r.toUTCString()}; path=/; SameSite=Lax`}function pA(e){const t=dy(e),n=document.cookie.split(";");for(const r of n){const[o,i]=r.trim().split("=");if(o===t&&i!==void 0)return i==="1"}return null}const gA=typeof document<"u"?k.useLayoutEffect:()=>{},Ur=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ao=e=>e&&"window"in e&&e.window===e?e:Ur(e).defaultView||window;function yA(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function bA(e){return yA(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let vA=!1;function ud(){return vA}function hy(e,t){if(!ud())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:bA(n)?n=n.host:n=n.parentNode}return!1}const Df=(e=document)=>{var t;if(!ud())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function my(e){return ud()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function xA(e){if(wA())e.focus({preventScroll:!0});else{let t=AA(e);e.focus(),CA(t)}}let Aa=null;function wA(){if(Aa==null){Aa=!1;try{document.createElement("div").focus({get preventScroll(){return Aa=!0,!0}})}catch{}}return Aa}function AA(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function CA(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Ic(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function dd(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function ar(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Ps=ar(function(){return dd(/^Mac/i)}),EA=ar(function(){return dd(/^iPhone/i)}),py=ar(function(){return dd(/^iPad/i)||Ps()&&navigator.maxTouchPoints>1}),_A=ar(function(){return EA()||py()});ar(function(){return Ps()||_A()});const SA=ar(function(){return Ic(/AppleWebKit/i)&&!kA()}),kA=ar(function(){return Ic(/Chrome/i)}),TA=ar(function(){return Ic(/Android/i)}),NA=ar(function(){return Ic(/Firefox/i)});function Ms(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:c}=t;NA()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ps()?i=!0:s=!0);let l=SA()&&Ps()&&!py()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:c}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});Ms.isOpening=n,xA(e),e.dispatchEvent(l),Ms.isOpening=!1}Ms.isOpening=!1;function gy(){let e=k.useRef(new Map),t=k.useCallback((o,i,s,a)=>{let c=a!=null&&a.once?(...l)=>{e.current.delete(s),s(...l)}:s;e.current.set(s,{type:i,eventTarget:o,fn:c,options:a}),o.addEventListener(i,c,a)},[]),n=k.useCallback((o,i,s,a)=>{var c;let l=((c=e.current.get(s))===null||c===void 0?void 0:c.fn)||s;o.removeEventListener(i,l,a),e.current.delete(s)},[]),r=k.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return k.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function OA(e){return e.pointerType===""&&e.isTrusted?!0:TA()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function yy(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function PA(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function by(e){let t=k.useRef({isFocused:!1,observer:null});return gA(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),k.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target,o=i=>{if(t.current.isFocused=!1,r.disabled){let s=yy(i);e==null||e(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let s=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let MA=!1,Qs=null,Ff=new Set,ws=new Map,No=!1,jf=!1;const IA={Tab:!0,Escape:!0};function hd(e,t){for(let n of Ff)n(e,t)}function LA(e){return!(e.metaKey||!Ps()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ic(e){No=!0,!Ms.isOpening&&LA(e)&&(Qs="keyboard",hd("keyboard",e))}function Yt(e){Qs="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(No=!0,hd("pointer",e))}function vy(e){!Ms.isOpening&&OA(e)&&(No=!0,Qs="virtual")}function xy(e){e.target===window||e.target===document||MA||!e.isTrusted||(!No&&!jf&&(Qs="virtual",hd("virtual",e)),No=!1,jf=!1)}function wy(){No=!1,jf=!0}function zf(e){if(typeof window>"u"||typeof document>"u"||ws.get(ao(e)))return;const t=ao(e),n=Ur(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){No=!0,r.apply(this,arguments)},n.addEventListener("keydown",ic,!0),n.addEventListener("keyup",ic,!0),n.addEventListener("click",vy,!0),t.addEventListener("focus",xy,!0),t.addEventListener("blur",wy,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Yt,!0),n.addEventListener("pointermove",Yt,!0),n.addEventListener("pointerup",Yt,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Yt,!0),n.addEventListener("mousemove",Yt,!0),n.addEventListener("mouseup",Yt,!0)),t.addEventListener("beforeunload",()=>{Ay(e)},{once:!0}),ws.set(t,{focus:r})}const Ay=(e,t)=>{const n=ao(e),r=Ur(e);t&&r.removeEventListener("DOMContentLoaded",t),ws.has(n)&&(n.HTMLElement.prototype.focus=ws.get(n).focus,r.removeEventListener("keydown",ic,!0),r.removeEventListener("keyup",ic,!0),r.removeEventListener("click",vy,!0),n.removeEventListener("focus",xy,!0),n.removeEventListener("blur",wy,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Yt,!0),r.removeEventListener("pointermove",Yt,!0),r.removeEventListener("pointerup",Yt,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Yt,!0),r.removeEventListener("mousemove",Yt,!0),r.removeEventListener("mouseup",Yt,!0)),ws.delete(n))};function RA(e){const t=Ur(e);let n;return t.readyState!=="loading"?zf(e):(n=()=>{zf(e)},t.addEventListener("DOMContentLoaded",n)),()=>Ay(e,n)}typeof document<"u"&&RA();function Cy(){return Qs!=="pointer"}const DA=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function FA(e,t,n){let r=Ur(n==null?void 0:n.target);const o=typeof window<"u"?ao(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?ao(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?ao(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?ao(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!DA.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!IA[n.key])}function jA(e,t,n){zf(),k.useEffect(()=>{let r=(o,i)=>{FA(!!(n!=null&&n.isTextInput),o,i)&&e(Cy())};return Ff.add(r),()=>{Ff.delete(r)}},t)}function zA(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=k.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),o&&o(!1),!0},[r,o]),s=by(i),a=k.useCallback(c=>{const l=Ur(c.target),f=l?Df(l):Df();c.target===c.currentTarget&&f===my(c.nativeEvent)&&(n&&n(c),o&&o(!0),s(c))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}function $A(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=k.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=gy(),c=k.useCallback(u=>{u.currentTarget.contains(u.target)&&i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(u),o&&o(!1))},[n,o,i,a]),l=by(c),f=k.useCallback(u=>{if(!u.currentTarget.contains(u.target))return;const d=Ur(u.target),h=Df(d);if(!i.current.isFocusWithin&&h===my(u.nativeEvent)){r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,l(u);let m=u.currentTarget;s(d,"focus",p=>{if(i.current.isFocusWithin&&!hy(m,p.target)){let g=new d.defaultView.FocusEvent("blur",{relatedTarget:p.target});PA(g,m);let y=yy(g);c(y)}},{capture:!0})}},[r,o,l,s,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:c}}}let sc=!1,Ca=0;function $f(){sc=!0,setTimeout(()=>{sc=!1},50)}function dm(e){e.pointerType==="touch"&&$f()}function BA(){if(!(typeof document>"u"))return Ca===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",dm):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",$f)),Ca++,()=>{Ca--,!(Ca>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",dm):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",$f))}}function UA(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=k.useState(!1),a=k.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;k.useEffect(BA,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=gy(),{hoverProps:f,triggerHoverEnd:u}=k.useMemo(()=>{let d=(p,g)=>{if(a.pointerType=g,o||g==="touch"||a.isHovered||!p.currentTarget.contains(p.target))return;a.isHovered=!0;let y=p.currentTarget;a.target=y,c(Ur(p.target),"pointerover",b=>{a.isHovered&&a.target&&!hy(a.target,b.target)&&h(b,b.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:y,pointerType:g}),n&&n(!0),s(!0)},h=(p,g)=>{let y=a.target;a.pointerType="",a.target=null,!(g==="touch"||!a.isHovered||!y)&&(a.isHovered=!1,l(),r&&r({type:"hoverend",target:y,pointerType:g}),n&&n(!1),s(!1))},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=p=>{sc&&p.pointerType==="mouse"||d(p,p.pointerType)},m.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&h(p,p.pointerType)}):process.env.NODE_ENV==="test"&&(m.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=p=>{!a.ignoreEmulatedMouseEvents&&!sc&&d(p,"mouse"),a.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&h(p,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[t,n,r,o,a,c,l]);return k.useEffect(()=>{o&&u({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:f,isHovered:i}}function WA(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=k.useRef({isFocused:!1,isFocusVisible:t||Cy()}),[i,s]=k.useState(!1),[a,c]=k.useState(()=>o.current.isFocused&&o.current.isFocusVisible),l=k.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),f=k.useCallback(h=>{o.current.isFocused=h,s(h),l()},[l]);jA(h=>{o.current.isFocusVisible=h,l()},[],{isTextInput:n});let{focusProps:u}=zA({isDisabled:r,onFocusChange:f}),{focusWithinProps:d}=$A({isDisabled:!r,onFocusWithinChange:f});return{isFocused:i,isFocusVisible:a,focusProps:r?d:u}}var KA=Object.defineProperty,HA=(e,t,n)=>t in e?KA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tl=(e,t,n)=>(HA(e,typeof t!="symbol"?t+"":t,n),n);let qA=class{constructor(){Tl(this,"current",this.detect()),Tl(this,"handoffState","pending"),Tl(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}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"}},VA=new qA,md=(e,t)=>{VA.isServer?k.useEffect(e,t):k.useLayoutEffect(e,t)};function YA(e){let t=k.useRef(e);return md(()=>{t.current=e},[e]),t}let Lc=function(e){let t=YA(e);return k.useCallback((...n)=>t.current(...n),[t])};function Rc(e){return k.useMemo(()=>e,Object.values(e))}let Ey=k.createContext(void 0);function Dc(){return k.useContext(Ey)}function GA({value:e,children:t}){return k.createElement(Ey.Provider,{value:e},t)}function hm(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function _y(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,_y),r}var QA=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(QA||{}),ZA=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ZA||{});function Zs(){let e=XA();return k.useCallback(t=>JA({mergeRefs:e,...t}),[e])}function JA({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??eC;let c=Sy(t,e);if(i)return Ea(c,n,r,s,a);let l=o??0;if(l&2){let{static:f=!1,...u}=c;if(f)return Ea(u,n,r,s,a)}if(l&1){let{unmount:f=!0,...u}=c;return _y(f?0:1,{0(){return null},1(){return Ea({...u,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return Ea(c,n,r,s,a)}function Ea(e,t={},n,r,o){let{as:i=n,children:s,refName:a="ref",...c}=Nl(e,["unmount","static"]),l=e.ref!==void 0?{[a]:e.ref}:{},f=typeof s=="function"?s(t):s;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let u={};if(t){let d=!1,h=[];for(let[m,p]of Object.entries(t))typeof p=="boolean"&&(d=!0),p===!0&&h.push(m.replace(/([A-Z])/g,g=>`-${g.toLowerCase()}`));if(d){u["data-headlessui-state"]=h.join(" ");for(let m of h)u[`data-${m}`]=""}}if(Ba(i)&&(Object.keys(ti(c)).length>0||Object.keys(ti(u)).length>0))if(!k.isValidElement(f)||Array.isArray(f)&&f.length>1||rC(f)){if(Object.keys(ti(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ti(c)).concat(Object.keys(ti(u))).map(d=>` - ${d}`).join(`
22
22
  `),"","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(d=>` - ${d}`).join(`
23
23
  `)].join(`
24
- `))}else{let d=f.props,h=d==null?void 0:d.className,m=typeof h=="function"?(...y)=>fm(h(...y),c.className):fm(h,c.className),g=m?{className:m}:{},p=Ay(f.props,ti(Tl(c,["ref"])));for(let y in u)y in p&&delete u[y];return T.cloneElement(f,Object.assign({},p,u,l,{ref:o(BA(f),l.ref)},g))}return T.createElement(i,Object.assign({},Tl(c,["ref"]),!ja(i)&&l,!ja(i)&&u),f)}function jA(){let e=T.useRef([]),t=T.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function zA(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Ay(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function $A(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];for(let r in n)Object.assign(t,{[r](...o){let i=n[r];for(let s of i)s==null||s(...o)}});return t}function Zs(e){var t;return Object.assign(T.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ti(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Tl(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function BA(e){return T.version.split(".")[0]>="19"?e.props.ref:e.ref}function ja(e){return e===T.Fragment||e===Symbol.for("react.fragment")}function UA(e){return ja(e.type)}let WA="span";var Cy=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Cy||{});function KA(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Gs()({ourProps:i,theirProps:o,slot:{},defaultTag:WA,name:"Hidden"})}let HA=Zs(KA),qA=T.createContext(null);function VA(e){let[t,n]=T.useState(null);return T.createElement(qA.Provider,{value:{target:t}},e.children,T.createElement(HA,{features:Cy.Hidden,ref:n}))}let _y=T.createContext(void 0);function Ey(){return T.useContext(_y)}function YA({id:e,children:t}){return T.createElement(_y.Provider,{value:e},t)}function QA(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function Sy(e){return QA(e)&&"tagName"in e}function ky(e){return Sy(e)&&"accessKey"in e}function GA(e){return ky(e)&&e.nodeName==="INPUT"}function um(e){return ky(e)&&e.nodeName==="LABEL"}function ZA(e){return Sy(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}let JA=Symbol();function Ty(...e){let t=T.useRef(e);T.useEffect(()=>{t.current=e},[e]);let n=Mc(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[JA]))?void 0:n}let Rc=T.createContext(null);Rc.displayName="DescriptionContext";function Ny(){let e=T.useContext(Rc);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Ny),t}return e}function XA(){var e,t;return(t=(e=T.useContext(Rc))==null?void 0:e.value)!=null?t:void 0}function eC(){let[e,t]=T.useState([]);return[e.length>0?e.join(" "):void 0,T.useMemo(()=>function(n){let r=Mc(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),c=a.indexOf(i);return c!==-1&&a.splice(c,1),a}))),o=T.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return T.createElement(Rc.Provider,{value:o},n.children)},[t])]}let tC="p";function nC(e,t){let n=T.useId(),r=Lc(),{id:o=`headlessui-description-${n}`,...i}=e,s=Ny(),a=Ty(t);hd(()=>s.register(o),[o,s.register]);let c=Ic({...s.slot,disabled:r||!1}),l={ref:a,...s.props,id:o};return Gs()({ourProps:l,theirProps:i,slot:c,defaultTag:tC,name:s.name||"Description"})}let rC=Zs(nC),oC=Object.assign(rC,{}),Dc=T.createContext(null);Dc.displayName="LabelContext";function Oy(){let e=T.useContext(Dc);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Oy),t}return e}function Py(e){var t,n,r;let o=(n=(t=T.useContext(Dc))==null?void 0:t.value)!=null?n:void 0;return((r=void 0)!=null?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function iC({inherit:e=!1}={}){let t=Py(),[n,r]=T.useState([]),o=e?[t,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,T.useMemo(()=>function(i){let s=Mc(c=>(r(l=>[...l,c]),()=>r(l=>{let f=l.slice(),u=f.indexOf(c);return u!==-1&&f.splice(u,1),f}))),a=T.useMemo(()=>({register:s,slot:i.slot,name:i.name,props:i.props,value:i.value}),[s,i.slot,i.name,i.props,i.value]);return T.createElement(Dc.Provider,{value:a},i.children)},[r])]}let sC="label";function aC(e,t){var n;let r=T.useId(),o=Oy(),i=Ey(),s=Lc(),{id:a=`headlessui-label-${r}`,htmlFor:c=i??((n=o.props)==null?void 0:n.htmlFor),passive:l=!1,...f}=e,u=Ty(t);hd(()=>o.register(a),[a,o.register]);let d=Mc(g=>{let p=g.currentTarget;if(!(g.target!==g.currentTarget&&ZA(g.target))&&(um(p)&&g.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(g),um(p))){let y=document.getElementById(p.htmlFor);if(y){let b=y.getAttribute("disabled");if(b==="true"||b==="")return;let x=y.getAttribute("aria-disabled");if(x==="true"||x==="")return;(GA(y)&&(y.type==="file"||y.type==="radio"||y.type==="checkbox")||y.role==="radio"||y.role==="checkbox"||y.role==="switch")&&y.click(),y.focus({preventScroll:!0})}}}),h=Ic({...o.slot,disabled:s||!1}),m={ref:u,...o.props,id:a,htmlFor:c,onClick:d};return l&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in f&&delete f.onClick),Gs()({ourProps:m,theirProps:f,slot:h,defaultTag:c?sC:"div",name:o.name||"Label"})}let cC=Zs(aC),lC=Object.assign(cC,{});function Fc(){return typeof window<"u"}function qi(e){return My(e)?(e.nodeName||"").toLowerCase():"#document"}function Bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ar(e){var t;return(t=(My(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function My(e){return Fc()?e instanceof Node||e instanceof Bt(e).Node:!1}function He(e){return Fc()?e instanceof Element||e instanceof Bt(e).Element:!1}function un(e){return Fc()?e instanceof HTMLElement||e instanceof Bt(e).HTMLElement:!1}function $f(e){return!Fc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Bt(e).ShadowRoot}const fC=new Set(["inline","contents"]);function Js(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Gt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!fC.has(o)}const uC=new Set(["table","td","th"]);function dC(e){return uC.has(qi(e))}const hC=[":popover-open",":modal"];function jc(e){return hC.some(t=>{try{return e.matches(t)}catch{return!1}})}const mC=["transform","translate","scale","rotate","perspective"],pC=["transform","translate","scale","rotate","perspective","filter"],gC=["paint","layout","strict","content"];function md(e){const t=zc(),n=He(e)?Gt(e):e;return mC.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||pC.some(r=>(n.willChange||"").includes(r))||gC.some(r=>(n.contain||"").includes(r))}function yC(e){let t=tr(e);for(;un(t)&&!Xn(t);){if(md(t))return t;if(jc(t))return null;t=tr(t)}return null}function zc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const bC=new Set(["html","body","#document"]);function Xn(e){return bC.has(qi(e))}function Gt(e){return Bt(e).getComputedStyle(e)}function $c(e){return He(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tr(e){if(qi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$f(e)&&e.host||ar(e);return $f(t)?t.host:t}function Iy(e){const t=tr(e);return Xn(t)?e.ownerDocument?e.ownerDocument.body:e.body:un(t)&&Js(t)?t:Iy(t)}function mi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Iy(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Bt(o);if(i){const a=Bf(s);return t.concat(s,s.visualViewport||[],Js(o)?o:[],a&&n?mi(a):[])}return t.concat(o,mi(o,[],n))}function Bf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const dm=Math.min,ws=Math.max,ic=Math.round,kn=e=>({x:e,y:e});function Ly(e){return e.split("-")[0]}function vC(e){return e.split("-")[1]}function xC(e){return e==="x"?"y":"x"}function wC(e){return e==="y"?"height":"width"}const AC=new Set(["top","bottom"]);function Ry(e){return AC.has(Ly(e))?"y":"x"}function CC(e){return xC(Ry(e))}function Dy(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function hm(e,t,n){let{reference:r,floating:o}=e;const i=Ry(t),s=CC(t),a=wC(s),c=Ly(t),l=i==="y",f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let h;switch(c){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-o.width,y:u};break;default:h={x:r.x,y:r.y}}switch(vC(t)){case"start":h[s]-=d*(n&&l?-1:1);break;case"end":h[s]+=d*(n&&l?-1:1);break}return h}const _C=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=hm(l,r,c),d=r,h={},m=0;for(let g=0;g<a.length;g++){const{name:p,fn:y}=a[g],{x:b,y:x,data:w,reset:A}=await y({x:f,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:l,platform:s,elements:{reference:e,floating:t}});f=b??f,u=x??u,h={...h,[p]:{...h[p],...w}},A&&m<=50&&(m++,typeof A=="object"&&(A.placement&&(d=A.placement),A.rects&&(l=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:f,y:u}=hm(l,d,c)),g=-1)}return{x:f,y:u,placement:d,strategy:o,middlewareData:h}};function Fy(e){const t=Gt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=un(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=ic(n)!==i||ic(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function jy(e){return He(e)?e:e.contextElement}function pi(e){const t=jy(e);if(!un(t))return kn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Fy(t);let s=(i?ic(n.width):n.width)/r,a=(i?ic(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const EC=kn(0);function zy(e){const t=Bt(e);return!zc()||!t.visualViewport?EC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function SC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Bt(e)?!1:t}function Ms(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=jy(e);let s=kn(1);t&&(r?He(r)&&(s=pi(r)):s=pi(e));const a=SC(i,n,r)?zy(i):kn(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,f=o.width/s.x,u=o.height/s.y;if(i){const d=Bt(i),h=r&&He(r)?Bt(r):r;let m=d,g=Bf(m);for(;g&&r&&h!==m;){const p=pi(g),y=g.getBoundingClientRect(),b=Gt(g),x=y.left+(g.clientLeft+parseFloat(b.paddingLeft))*p.x,w=y.top+(g.clientTop+parseFloat(b.paddingTop))*p.y;c*=p.x,l*=p.y,f*=p.x,u*=p.y,c+=x,l+=w,m=Bt(g),g=Bf(m)}}return Dy({width:f,height:u,x:c,y:l})}function Bc(e,t){const n=$c(e).scrollLeft;return t?t.left+n:Ms(ar(e)).left+n}function $y(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Bc(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function kC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=ar(r),a=t?jc(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=kn(1);const f=kn(0),u=un(r);if((u||!u&&!i)&&((qi(r)!=="body"||Js(s))&&(c=$c(r)),un(r))){const h=Ms(r);l=pi(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const d=s&&!u&&!i?$y(s,c):kn(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x+d.x,y:n.y*l.y-c.scrollTop*l.y+f.y+d.y}}function TC(e){return Array.from(e.getClientRects())}function NC(e){const t=ar(e),n=$c(e),r=e.ownerDocument.body,o=ws(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ws(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Bc(e);const a=-n.scrollTop;return Gt(r).direction==="rtl"&&(s+=ws(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const mm=25;function OC(e,t){const n=Bt(e),r=ar(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const f=zc();(!f||f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=Bc(r);if(l<=0){const f=r.ownerDocument,u=f.body,d=getComputedStyle(u),h=f.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,m=Math.abs(r.clientWidth-u.clientWidth-h);m<=mm&&(i-=m)}else l<=mm&&(i+=l);return{width:i,height:s,x:a,y:c}}const PC=new Set(["absolute","fixed"]);function MC(e,t){const n=Ms(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=un(e)?pi(e):kn(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function pm(e,t,n){let r;if(t==="viewport")r=OC(e,n);else if(t==="document")r=NC(ar(e));else if(He(t))r=MC(t,n);else{const o=zy(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Dy(r)}function By(e,t){const n=tr(e);return n===t||!He(n)||Xn(n)?!1:Gt(n).position==="fixed"||By(n,t)}function IC(e,t){const n=t.get(e);if(n)return n;let r=mi(e,[],!1).filter(a=>He(a)&&qi(a)!=="body"),o=null;const i=Gt(e).position==="fixed";let s=i?tr(e):e;for(;He(s)&&!Xn(s);){const a=Gt(s),c=md(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&PC.has(o.position)||Js(s)&&!c&&By(e,s))?r=r.filter(f=>f!==s):o=a,s=tr(s)}return t.set(e,r),r}function LC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?jc(t)?[]:IC(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,f)=>{const u=pm(t,f,o);return l.top=ws(u.top,l.top),l.right=dm(u.right,l.right),l.bottom=dm(u.bottom,l.bottom),l.left=ws(u.left,l.left),l},pm(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function RC(e){const{width:t,height:n}=Fy(e);return{width:t,height:n}}function DC(e,t,n){const r=un(t),o=ar(t),i=n==="fixed",s=Ms(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=kn(0);function l(){c.x=Bc(o)}if(r||!r&&!i)if((qi(t)!=="body"||Js(o))&&(a=$c(t)),r){const h=Ms(t,!0,i,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&l();i&&!r&&o&&l();const f=o&&!r&&!i?$y(o,a):kn(0),u=s.left+a.scrollLeft-c.x-f.x,d=s.top+a.scrollTop-c.y-f.y;return{x:u,y:d,width:s.width,height:s.height}}function Nl(e){return Gt(e).position==="static"}function gm(e,t){if(!un(e)||Gt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ar(e)===n&&(n=n.ownerDocument.body),n}function Uy(e,t){const n=Bt(e);if(jc(e))return n;if(!un(e)){let o=tr(e);for(;o&&!Xn(o);){if(He(o)&&!Nl(o))return o;o=tr(o)}return n}let r=gm(e,t);for(;r&&dC(r)&&Nl(r);)r=gm(r,t);return r&&Xn(r)&&Nl(r)&&!md(r)?n:r||yC(e)||n}const FC=async function(e){const t=this.getOffsetParent||Uy,n=this.getDimensions,r=await n(e.floating);return{reference:DC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function jC(e){return Gt(e).direction==="rtl"}const zC={convertOffsetParentRelativeRectToViewportRelativeRect:kC,getDocumentElement:ar,getClippingRect:LC,getOffsetParent:Uy,getElementRects:FC,getClientRects:TC,getDimensions:RC,getScale:pi,isElement:He,isRTL:jC},$C=(e,t,n)=>{const r=new Map,o={platform:zC,...n},i={...o.platform,_c:r};return _C(e,t,{...o,platform:i})};var BC=typeof document<"u",UC=function(){},za=BC?T.useLayoutEffect:UC;function sc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!sc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!sc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Wy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ym(e,t){const n=Wy(e);return Math.round(t*n)/n}function Ol(e){const t=C.useRef(e);return za(()=>{t.current=e}),t}function WC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[f,u]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=C.useState(r);sc(d,r)||h(r);const[m,g]=C.useState(null),[p,y]=C.useState(null),b=C.useCallback(M=>{M!==_.current&&(_.current=M,g(M))},[]),x=C.useCallback(M=>{M!==S.current&&(S.current=M,y(M))},[]),w=i||m,A=s||p,_=C.useRef(null),S=C.useRef(null),E=C.useRef(f),N=c!=null,P=Ol(c),I=Ol(o),W=Ol(l),j=C.useCallback(()=>{if(!_.current||!S.current)return;const M={placement:t,strategy:n,middleware:d};I.current&&(M.platform=I.current),$C(_.current,S.current,M).then(re=>{const L={...re,isPositioned:W.current!==!1};z.current&&!sc(E.current,L)&&(E.current=L,Q1.flushSync(()=>{u(L)}))})},[d,t,n,I,W]);za(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,u(M=>({...M,isPositioned:!1})))},[l]);const z=C.useRef(!1);za(()=>(z.current=!0,()=>{z.current=!1}),[]),za(()=>{if(w&&(_.current=w),A&&(S.current=A),w&&A){if(P.current)return P.current(w,A,j);j()}},[w,A,j,P,N]);const Y=C.useMemo(()=>({reference:_,floating:S,setReference:b,setFloating:x}),[b,x]),Q=C.useMemo(()=>({reference:w,floating:A}),[w,A]),oe=C.useMemo(()=>{const M={position:n,left:0,top:0};if(!Q.floating)return M;const re=ym(Q.floating,f.x),L=ym(Q.floating,f.y);return a?{...M,transform:"translate("+re+"px, "+L+"px)",...Wy(Q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:L}},[n,a,Q.floating,f.x,f.y]);return C.useMemo(()=>({...f,update:j,refs:Y,elements:Q,floatingStyles:oe}),[f,j,Y,Q,oe])}let KC="div";function HC(e,t){let n=`headlessui-control-${T.useId()}`,[r,o]=iC(),[i,s]=eC(),a=Lc(),{disabled:c=a||!1,...l}=e,f=Ic({disabled:c}),u={ref:t,disabled:c||void 0,"aria-disabled":c||void 0},d=Gs();return T.createElement(LA,{value:c},T.createElement(o,{value:r},T.createElement(s,{value:i},T.createElement(YA,{id:n},d({ourProps:u,theirProps:{...l,children:T.createElement(VA,null,typeof l.children=="function"?l.children(f):l.children)},slot:f,defaultTag:KC,name:"Field"})))))}let qC=Zs(HC),VC="input";function YC(e,t){let n=T.useId(),r=Ey(),o=Lc(),{id:i=r||`headlessui-input-${n}`,disabled:s=o||!1,autoFocus:a=!1,invalid:c=!1,...l}=e,f=Py(),u=XA(),{isFocused:d,focusProps:h}=TA({autoFocus:a}),{isHovered:m,hoverProps:g}=kA({isDisabled:s}),p=$A({ref:t,id:i,"aria-labelledby":f,"aria-describedby":u,"aria-invalid":c?"true":void 0,disabled:s||void 0,autoFocus:a},h,g),y=Ic({disabled:s,invalid:c,hover:m,focus:d,autofocus:a});return Gs()({ourProps:p,theirProps:l,slot:y,defaultTag:VC,name:"Input"})}let QC=Zs(YC);const Ky=({type:e="text",className:t,label:n,description:r,error:o,containerClassName:i,...s})=>v.jsx("div",{className:xe("cnf:box-border cnf:w-full cnf:min-w-0 cnf:max-w-md cnf:px-4",i),children:v.jsxs(qC,{children:[n&&v.jsx(lC,{className:"cnf:font-medium cnf:text-gray-900",children:n}),r&&v.jsx(oC,{className:"cnf:text-sm cnf:text-secondary",children:r}),v.jsx(QC,{type:e,className:xe("cnf:mt-3 cnf:box-border cnf:block cnf:min-w-0 cnf:max-w-full cnf:w-full cnf:rounded-lg cnf:border cnf:border-gray-200 cnf:px-3 cnf:py-1.5 cnf:text-sm/6 cnf:text-gray-800","cnf:data-focus:-outline-offset-2 cnf:data-focus:outline-primary-500",t,o&&"cnf:border-red-500 cnf:focus:border-red-500"),...s})]})}),GC="cnf:whitespace-nowrap cnf:font-normal cnf:flex cnf:items-center cnf:justify-center",ZC="cnf:focus:outline cnf:focus:outline-3 cnf:focus:outline-primary-500/[.3]",JC="cnf:disabled:opacity-15 cnf:disabled:pointer-events-none",Hy=e=>e==="grayLight"||e==="warning",qy=(e,t)=>!t||t==="none"?"":e(),XC=(e,t)=>qy(()=>{const n=e==="gray400"?"gray":e,r=Hy(n)?"cnf:active:text-black":"cnf:active:text-white";return e==="primary"?t?`cnf:bg-${n}-800 cnf:text-white`:`cnf:hover:bg-${n}-800 cnf:active:bg-${n}-800 cnf:hover:text-white ${r}`:n==="grayDark"?t?"cnf:bg-gray-800 cnf:text-white":`cnf:hover:bg-gray-800 cnf:active:bg-gray-800 cnf:hover:text-white ${r}`:n==="grayLight"?t?"cnf:bg-gray-50 cnf:text-black":`cnf:hover:bg-gray-50 cnf:active:bg-gray-50 cnf:hover:text-black ${r}`:e==="gray400"?t?`cnf:bg-${n}-500 cnf:text-white`:`cnf:hover:bg-${n}-500 cnf:active:bg-${n}-500 cnf:hover:text-white ${r}`:t?`cnf:bg-${n}-700 cnf:text-white`:`cnf:hover:bg-${n}-600 cnf:active:bg-${n}-700 cnf:hover:text-white ${r}`},e),e_=e=>qy(()=>{const t=Hy(e)?"cnf:text-black":"cnf:text-white";return e==="primary"?`cnf:bg-primary-600 ${t}`:e==="gray400"?`cnf:bg-gray-400 ${t}`:`cnf:bg-${e}-500 ${t}`},e),t_=e=>e&&{dark:"cnf:text-dark cnf:hover:text-dark",yellow:"cnf:text-yellow cnf:hover:text-yellow",gray:"cnf:text-gray-500 cnf:hover:text-gray-800",primary:"cnf:text-primary-600 cnf:hover:text-primary-800",secondary:"cnf:text-secondary-500 cnf:hover:text-secondary-800",success:"cnf:text-success-500 cnf:hover:text-success-800",info:"cnf:text-info-500 cnf:hover:text-info-800",warning:"cnf:text-warning-500 cnf:hover:text-warning-800",danger:"cnf:text-danger-500 cnf:hover:text-danger-800",steel:"cnf:text-steel-500 cnf:hover:text-steel-800",orange:"cnf:text-orange-500 cnf:hover:text-orange-800",purple:"cnf:text-purple-500 cnf:hover:text-purple-800","fiserv-orange":"cnf:text-fiserv-orange-500 cnf:hover:text-fiserv-orange-800",grayDark:"cnf:text-gray-800 cnf:hover:text-gray-900",grayLight:"cnf:text-gray-50 cnf:hover:text-gray-400",gray400:"cnf:text-gray-400 cnf:hover:text-gray-700"}[e]||"",n_=(e,t)=>e&&{dark:t?"cnf:bg-dark cnf:text-white":"cnf:text-dark cnf:hover:bg-dark cnf:hover:text-white",yellow:t?"cnf:bg-yellow cnf:text-white":"cnf:text-yellow cnf:hover:bg-yellow cnf:hover:text-white",gray:t?"cnf:bg-gray-500 cnf:text-white":"cnf:text-gray-500 cnf:hover:bg-gray-500 cnf:hover:text-white",primary:t?"cnf:bg-primary-800 cnf:text-white":"cnf:text-primary-600 cnf:hover:bg-primary-800 cnf:hover:text-white",secondary:t?"cnf:bg-secondary-500 cnf:text-white":"cnf:text-secondary-500 cnf:hover:bg-secondary-500 cnf:hover:text-white",success:t?"cnf:bg-success-500 cnf:text-white":"cnf:text-success-500 cnf:hover:bg-success-500 cnf:hover:text-white",info:t?"cnf:bg-info-500 cnf:text-white":"cnf:text-info-500 cnf:hover:bg-info-500 cnf:hover:text-white",warning:t?"cnf:bg-warning-500 cnf:text-white":"cnf:text-warning-500 cnf:hover:bg-warning-500 cnf:hover:text-white",danger:t?"cnf:bg-danger-500 cnf:text-white":"cnf:text-danger-500 cnf:hover:bg-danger-500 cnf:hover:text-white",steel:t?"cnf:bg-steel-500 cnf:text-white":"cnf:text-steel-500 cnf:hover:bg-steel-500 cnf:hover:text-white",orange:t?"cnf:bg-orange-500 cnf:text-white":"cnf:text-orange-500 cnf:hover:bg-orange-500 cnf:hover:text-white",purple:t?"cnf:bg-purple-500 cnf:text-white":"cnf:text-purple-500 cnf:hover:bg-purple-500 cnf:hover:text-white","fiserv-orange":t?"cnf:bg-fiserv-orange-500 cnf:text-white":"cnf:text-fiserv-orange-500 cnf:hover:bg-fiserv-orange-500 cnf:hover:text-white",grayDark:t?"cnf:bg-gray-900 cnf:text-white":"cnf:text-gray-800 cnf:hover:bg-gray-900 cnf:hover:text-white",grayLight:t?"cnf:bg-gray-400 cnf:text-white":"cnf:text-gray-50 cnf:hover:bg-gray-400 cnf:hover:text-white",gray400:t?"cnf:bg-gray-500 cnf:text-white":"cnf:text-gray-400 cnf:hover:bg-gray-500 cnf:hover:text-white"}[e]||"",r_=(e,t)=>!e||e==="none"?"":e==="primary"?`cnf:border cnf:border-primary-600 ${t?"":"cnf:text-primary-600"}`:e==="grayDark"?`cnf:border cnf:border-gray-800 ${t?"":"cnf:text-gray-800"}`:e==="grayLight"?`cnf:border cnf:border-gray-50 ${t?"":"cnf:text-gray-400"}`:e==="gray400"?`cnf:border cnf:border-gray-400 ${t?"":"cnf:text-gray-400"}`:`cnf:border cnf:border-${e}-500 ${t?"":`cnf:text-${e}-500`}`,o_=(e,t)=>({solid:e_(e),link:t_(e),linkHoverSolid:n_(e,t),outline:r_(e,t)}),i_={none:"",default:"cnf:min-w-fit cnf:h-[40px] cnf:text-base cnf:px-3",base:"cnf:w-full cnf:md:min-w-fit cnf:h-[40px] cnf:text-base cnf:px-3",small:"cnf:min-w-[106px] cnf:h-[30px] cnf:text-sm cnf:px-2",normal:"cnf:min-w-[140px] cnf:h-[38px] cnf:text-base cnf:px-3",large:"cnf:min-w-[160px] cnf:h-[40px] cnf:text-lg cnf:px-3",NormalBlock:"cnf:w-full cnf:h-[40px] cnf:text-lg cnf:px-3",box:"cnf:w-[38px] cnf:h-[38px]",smallCollapse:"cnf:h-[30px] cnf:text-sm cnf:px-2",normalCollapse:"cnf:h-[38px] cnf:text-base cnf:px-3"},s_={none:"",default:"cnf:rounded",pill:"cnf:rounded-pill"},a_=({active:e=!1,children:t,color:n="primary",size:r="normal",category:o="solid",className:i,type:s="button",rounded:a="default",style:c={},primaryColor:l,...f},u)=>{var x;const d=JC,h=/link/.test(o)?null:XC(n,e),m=ZC,g=i_[r],p=(x=o_(n,e))==null?void 0:x[o],y=hi(h,p),b=s_[a];return v.jsx("button",{...f,style:{...c,transition:"color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out",backgroundColor:l?l+"!important":void 0},type:s,ref:u,className:hi(GC,m,d,g,y,b,i,"cnf:cursor-pointer"),children:t})},je=T.forwardRef(a_),c_=Oc.replace(/:root,\s*:host/g,":host"),l_=({isOpen:e,close:t,title:n,dismissOptions:r,confirmOptions:o,children:i,className:s})=>v.jsx(v.Fragment,{children:e&&Wt.createPortal(v.jsxs($r.div,{className:xe("cnf:transition cnf:duration-300 cnf:ease-out cnf:data-closed:opacity-0",s),style:{position:"fixed",inset:0,zIndex:2147483647},children:[v.jsx("div",{className:"cnf:fixed cnf:inset-0 cnf:bg-black/30"}),v.jsx("div",{className:"confidence-playbook cnf:fixed cnf:inset-0 cnf:flex cnf:w-screen cnf:items-center cnf:justify-center cnf:p-4",children:v.jsxs("div",{className:"cnf:max-w-lg cnf:divide-y cnf:divide-gray-100 cnf:bg-white cnf:rounded-sm cnf:shadow-xl",children:[n&&v.jsx("div",{className:"cnf:text-gray-900 cnf:p-4",children:n}),v.jsx("div",{className:"cnf:p-4",children:i}),r||o?v.jsxs("div",{className:"cnf:flex cnf:gap-4 cnf:p-4",children:[r?v.jsx(je,{className:"cnf:flex-1",onClick:()=>{r.onClick(),t()},size:"small",color:"secondary",children:r.label}):v.jsx(v.Fragment,{}),o?v.jsx(je,{className:"cnf:flex-1",disabled:o.disabled,onClick:()=>{o.onClick(),t()},size:"small",color:"primary",children:o.label}):v.jsx(v.Fragment,{})]}):v.jsx(v.Fragment,{})]})}),v.jsx("style",{type:"text/css",children:c_})]}),document.body,"confidence-modal")}),f_=({onConfirm:e,onClose:t,isOpen:n,title:r})=>{const[o,i]=T.useState(""),[s,a]=T.useState(!1),[c,l]=T.useState(!1),f=async()=>{if(o)try{a(!0),await e(o),i("")}catch{l(!0)}finally{a(!1)}else alert("Please enter a valid email address.")};return v.jsx(l_,{isOpen:n,close:t,dismissOptions:{label:"Cancel",onClick:t},confirmOptions:{label:"Initiate",onClick:f,disabled:s||!o||c},children:v.jsxs("div",{className:"cnf:flex cnf:min-w-0 cnf:w-full cnf:max-w-[400px] cnf:flex-col cnf:items-center cnf:gap-4",children:[v.jsxs("div",{children:[v.jsx("div",{className:"cnf:text-center cnf:text-2xl cnf:font-medium",children:c?"User already has access":r||"Access Playbook"}),v.jsx("div",{className:"cnf:text-center",children:c?v.jsxs(v.Fragment,{children:[v.jsx("b",{children:o})," has already accessed a playbook. Contact Confidence to speak to representative."]}):v.jsx(v.Fragment,{children:"Please enter your company email address to access this playbook."})})]}),v.jsx(Ky,{disabled:s||c,placeholder:"Enter company email address",onChange:u=>i(u.target.value)})]})})},u_=({btnClassName:e,buttonNode:t,size:n,playbookId:r,onInitiated:o,disabled:i,btnLabel:s="Run Playbook",btnColor:a="primary"})=>{const[c,l]=T.useState(!1),[f,u]=T.useState(!1);function d(){l(!0)}function h(){l(!1)}const m=async g=>{try{u(!0);const{playbookInstanceId:p,errorCode:y,details:b,message:x}=await K0({bank:"public-sdk",email:g,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"America/Los_Angeles",playbookUid:r})||{};if(y)throw new Error(`Error initiating playbook: ${x} (Code: ${y}) - Details: ${b}`);if(p==null)throw new Error("No playbook instance ID returned from playbook-initiate");o(p,g)}finally{u(!1)}};return v.jsxs(v.Fragment,{children:[t?{buttonNode:t}:v.jsxs(je,{onClick:d,className:xe(e,"confidence-playbook cnf:flex cnf:items-center cnf:gap-1"),color:a,size:n,disabled:i||f,children:[v.jsx("img",{src:td,alt:"Confidence Logo",className:"cnf:size-4 cnf:object-contain cnf:text-white"}),s]}),v.jsx(f_,{isOpen:c,onClose:h,onConfirm:async g=>{await m(g),h()}})]})};/*!
24
+ `))}else{let d=f.props,h=d==null?void 0:d.className,m=typeof h=="function"?(...y)=>hm(h(...y),c.className):hm(h,c.className),p=m?{className:m}:{},g=Sy(f.props,ti(Nl(c,["ref"])));for(let y in u)y in g&&delete u[y];return k.cloneElement(f,Object.assign({},g,u,l,{ref:o(nC(f),l.ref)},p))}return k.createElement(i,Object.assign({},Nl(c,["ref"]),!Ba(i)&&l,!Ba(i)&&u),f)}function XA(){let e=k.useRef([]),t=k.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function eC(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Sy(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function tC(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];for(let r in n)Object.assign(t,{[r](...o){let i=n[r];for(let s of i)s==null||s(...o)}});return t}function Js(e){var t;return Object.assign(k.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ti(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Nl(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function nC(e){return k.version.split(".")[0]>="19"?e.props.ref:e.ref}function Ba(e){return e===k.Fragment||e===Symbol.for("react.fragment")}function rC(e){return Ba(e.type)}let oC="span";var ky=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ky||{});function iC(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Zs()({ourProps:i,theirProps:o,slot:{},defaultTag:oC,name:"Hidden"})}let sC=Js(iC),aC=k.createContext(null);function cC(e){let[t,n]=k.useState(null);return k.createElement(aC.Provider,{value:{target:t}},e.children,k.createElement(sC,{features:ky.Hidden,ref:n}))}let Ty=k.createContext(void 0);function Ny(){return k.useContext(Ty)}function lC({id:e,children:t}){return k.createElement(Ty.Provider,{value:e},t)}function fC(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function Oy(e){return fC(e)&&"tagName"in e}function Py(e){return Oy(e)&&"accessKey"in e}function uC(e){return Py(e)&&e.nodeName==="INPUT"}function mm(e){return Py(e)&&e.nodeName==="LABEL"}function dC(e){return Oy(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}let hC=Symbol();function My(...e){let t=k.useRef(e);k.useEffect(()=>{t.current=e},[e]);let n=Lc(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[hC]))?void 0:n}let Fc=k.createContext(null);Fc.displayName="DescriptionContext";function Iy(){let e=k.useContext(Fc);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Iy),t}return e}function mC(){var e,t;return(t=(e=k.useContext(Fc))==null?void 0:e.value)!=null?t:void 0}function pC(){let[e,t]=k.useState([]);return[e.length>0?e.join(" "):void 0,k.useMemo(()=>function(n){let r=Lc(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),c=a.indexOf(i);return c!==-1&&a.splice(c,1),a}))),o=k.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return k.createElement(Fc.Provider,{value:o},n.children)},[t])]}let gC="p";function yC(e,t){let n=k.useId(),r=Dc(),{id:o=`headlessui-description-${n}`,...i}=e,s=Iy(),a=My(t);md(()=>s.register(o),[o,s.register]);let c=Rc({...s.slot,disabled:r||!1}),l={ref:a,...s.props,id:o};return Zs()({ourProps:l,theirProps:i,slot:c,defaultTag:gC,name:s.name||"Description"})}let bC=Js(yC),vC=Object.assign(bC,{}),jc=k.createContext(null);jc.displayName="LabelContext";function Ly(){let e=k.useContext(jc);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Ly),t}return e}function Ry(e){var t,n,r;let o=(n=(t=k.useContext(jc))==null?void 0:t.value)!=null?n:void 0;return((r=void 0)!=null?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function xC({inherit:e=!1}={}){let t=Ry(),[n,r]=k.useState([]),o=e?[t,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,k.useMemo(()=>function(i){let s=Lc(c=>(r(l=>[...l,c]),()=>r(l=>{let f=l.slice(),u=f.indexOf(c);return u!==-1&&f.splice(u,1),f}))),a=k.useMemo(()=>({register:s,slot:i.slot,name:i.name,props:i.props,value:i.value}),[s,i.slot,i.name,i.props,i.value]);return k.createElement(jc.Provider,{value:a},i.children)},[r])]}let wC="label";function AC(e,t){var n;let r=k.useId(),o=Ly(),i=Ny(),s=Dc(),{id:a=`headlessui-label-${r}`,htmlFor:c=i??((n=o.props)==null?void 0:n.htmlFor),passive:l=!1,...f}=e,u=My(t);md(()=>o.register(a),[a,o.register]);let d=Lc(p=>{let g=p.currentTarget;if(!(p.target!==p.currentTarget&&dC(p.target))&&(mm(g)&&p.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(p),mm(g))){let y=document.getElementById(g.htmlFor);if(y){let b=y.getAttribute("disabled");if(b==="true"||b==="")return;let x=y.getAttribute("aria-disabled");if(x==="true"||x==="")return;(uC(y)&&(y.type==="file"||y.type==="radio"||y.type==="checkbox")||y.role==="radio"||y.role==="checkbox"||y.role==="switch")&&y.click(),y.focus({preventScroll:!0})}}}),h=Rc({...o.slot,disabled:s||!1}),m={ref:u,...o.props,id:a,htmlFor:c,onClick:d};return l&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in f&&delete f.onClick),Zs()({ourProps:m,theirProps:f,slot:h,defaultTag:c?wC:"div",name:o.name||"Label"})}let CC=Js(AC),EC=Object.assign(CC,{});function zc(){return typeof window<"u"}function Vi(e){return Dy(e)?(e.nodeName||"").toLowerCase():"#document"}function Bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function cr(e){var t;return(t=(Dy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dy(e){return zc()?e instanceof Node||e instanceof Bt(e).Node:!1}function He(e){return zc()?e instanceof Element||e instanceof Bt(e).Element:!1}function dn(e){return zc()?e instanceof HTMLElement||e instanceof Bt(e).HTMLElement:!1}function Bf(e){return!zc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Bt(e).ShadowRoot}const _C=new Set(["inline","contents"]);function Xs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!_C.has(o)}const SC=new Set(["table","td","th"]);function kC(e){return SC.has(Vi(e))}const TC=[":popover-open",":modal"];function $c(e){return TC.some(t=>{try{return e.matches(t)}catch{return!1}})}const NC=["transform","translate","scale","rotate","perspective"],OC=["transform","translate","scale","rotate","perspective","filter"],PC=["paint","layout","strict","content"];function pd(e){const t=Bc(),n=He(e)?Qt(e):e;return NC.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||OC.some(r=>(n.willChange||"").includes(r))||PC.some(r=>(n.contain||"").includes(r))}function MC(e){let t=nr(e);for(;dn(t)&&!er(t);){if(pd(t))return t;if($c(t))return null;t=nr(t)}return null}function Bc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const IC=new Set(["html","body","#document"]);function er(e){return IC.has(Vi(e))}function Qt(e){return Bt(e).getComputedStyle(e)}function Uc(e){return He(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nr(e){if(Vi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bf(e)&&e.host||cr(e);return Bf(t)?t.host:t}function Fy(e){const t=nr(e);return er(t)?e.ownerDocument?e.ownerDocument.body:e.body:dn(t)&&Xs(t)?t:Fy(t)}function pi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Fy(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Bt(o);if(i){const a=Uf(s);return t.concat(s,s.visualViewport||[],Xs(o)?o:[],a&&n?pi(a):[])}return t.concat(o,pi(o,[],n))}function Uf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const pm=Math.min,As=Math.max,ac=Math.round,Tn=e=>({x:e,y:e});function jy(e){return e.split("-")[0]}function LC(e){return e.split("-")[1]}function RC(e){return e==="x"?"y":"x"}function DC(e){return e==="y"?"height":"width"}const FC=new Set(["top","bottom"]);function zy(e){return FC.has(jy(e))?"y":"x"}function jC(e){return RC(zy(e))}function $y(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function gm(e,t,n){let{reference:r,floating:o}=e;const i=zy(t),s=jC(t),a=DC(s),c=jy(t),l=i==="y",f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let h;switch(c){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-o.width,y:u};break;default:h={x:r.x,y:r.y}}switch(LC(t)){case"start":h[s]-=d*(n&&l?-1:1);break;case"end":h[s]+=d*(n&&l?-1:1);break}return h}const zC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=gm(l,r,c),d=r,h={},m=0;for(let p=0;p<a.length;p++){const{name:g,fn:y}=a[p],{x:b,y:x,data:w,reset:A}=await y({x:f,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:l,platform:s,elements:{reference:e,floating:t}});f=b??f,u=x??u,h={...h,[g]:{...h[g],...w}},A&&m<=50&&(m++,typeof A=="object"&&(A.placement&&(d=A.placement),A.rects&&(l=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:f,y:u}=gm(l,d,c)),p=-1)}return{x:f,y:u,placement:d,strategy:o,middlewareData:h}};function By(e){const t=Qt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=dn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=ac(n)!==i||ac(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Uy(e){return He(e)?e:e.contextElement}function gi(e){const t=Uy(e);if(!dn(t))return Tn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=By(t);let s=(i?ac(n.width):n.width)/r,a=(i?ac(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const $C=Tn(0);function Wy(e){const t=Bt(e);return!Bc()||!t.visualViewport?$C:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function BC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Bt(e)?!1:t}function Is(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Uy(e);let s=Tn(1);t&&(r?He(r)&&(s=gi(r)):s=gi(e));const a=BC(i,n,r)?Wy(i):Tn(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,f=o.width/s.x,u=o.height/s.y;if(i){const d=Bt(i),h=r&&He(r)?Bt(r):r;let m=d,p=Uf(m);for(;p&&r&&h!==m;){const g=gi(p),y=p.getBoundingClientRect(),b=Qt(p),x=y.left+(p.clientLeft+parseFloat(b.paddingLeft))*g.x,w=y.top+(p.clientTop+parseFloat(b.paddingTop))*g.y;c*=g.x,l*=g.y,f*=g.x,u*=g.y,c+=x,l+=w,m=Bt(p),p=Uf(m)}}return $y({width:f,height:u,x:c,y:l})}function Wc(e,t){const n=Uc(e).scrollLeft;return t?t.left+n:Is(cr(e)).left+n}function Ky(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Wc(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function UC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=cr(r),a=t?$c(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Tn(1);const f=Tn(0),u=dn(r);if((u||!u&&!i)&&((Vi(r)!=="body"||Xs(s))&&(c=Uc(r)),dn(r))){const h=Is(r);l=gi(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const d=s&&!u&&!i?Ky(s,c):Tn(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x+d.x,y:n.y*l.y-c.scrollTop*l.y+f.y+d.y}}function WC(e){return Array.from(e.getClientRects())}function KC(e){const t=cr(e),n=Uc(e),r=e.ownerDocument.body,o=As(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=As(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Wc(e);const a=-n.scrollTop;return Qt(r).direction==="rtl"&&(s+=As(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const ym=25;function HC(e,t){const n=Bt(e),r=cr(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const f=Bc();(!f||f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=Wc(r);if(l<=0){const f=r.ownerDocument,u=f.body,d=getComputedStyle(u),h=f.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,m=Math.abs(r.clientWidth-u.clientWidth-h);m<=ym&&(i-=m)}else l<=ym&&(i+=l);return{width:i,height:s,x:a,y:c}}const qC=new Set(["absolute","fixed"]);function VC(e,t){const n=Is(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=dn(e)?gi(e):Tn(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function bm(e,t,n){let r;if(t==="viewport")r=HC(e,n);else if(t==="document")r=KC(cr(e));else if(He(t))r=VC(t,n);else{const o=Wy(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return $y(r)}function Hy(e,t){const n=nr(e);return n===t||!He(n)||er(n)?!1:Qt(n).position==="fixed"||Hy(n,t)}function YC(e,t){const n=t.get(e);if(n)return n;let r=pi(e,[],!1).filter(a=>He(a)&&Vi(a)!=="body"),o=null;const i=Qt(e).position==="fixed";let s=i?nr(e):e;for(;He(s)&&!er(s);){const a=Qt(s),c=pd(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&qC.has(o.position)||Xs(s)&&!c&&Hy(e,s))?r=r.filter(f=>f!==s):o=a,s=nr(s)}return t.set(e,r),r}function GC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?$c(t)?[]:YC(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,f)=>{const u=bm(t,f,o);return l.top=As(u.top,l.top),l.right=pm(u.right,l.right),l.bottom=pm(u.bottom,l.bottom),l.left=As(u.left,l.left),l},bm(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function QC(e){const{width:t,height:n}=By(e);return{width:t,height:n}}function ZC(e,t,n){const r=dn(t),o=cr(t),i=n==="fixed",s=Is(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Tn(0);function l(){c.x=Wc(o)}if(r||!r&&!i)if((Vi(t)!=="body"||Xs(o))&&(a=Uc(t)),r){const h=Is(t,!0,i,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&l();i&&!r&&o&&l();const f=o&&!r&&!i?Ky(o,a):Tn(0),u=s.left+a.scrollLeft-c.x-f.x,d=s.top+a.scrollTop-c.y-f.y;return{x:u,y:d,width:s.width,height:s.height}}function Ol(e){return Qt(e).position==="static"}function vm(e,t){if(!dn(e)||Qt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return cr(e)===n&&(n=n.ownerDocument.body),n}function qy(e,t){const n=Bt(e);if($c(e))return n;if(!dn(e)){let o=nr(e);for(;o&&!er(o);){if(He(o)&&!Ol(o))return o;o=nr(o)}return n}let r=vm(e,t);for(;r&&kC(r)&&Ol(r);)r=vm(r,t);return r&&er(r)&&Ol(r)&&!pd(r)?n:r||MC(e)||n}const JC=async function(e){const t=this.getOffsetParent||qy,n=this.getDimensions,r=await n(e.floating);return{reference:ZC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function XC(e){return Qt(e).direction==="rtl"}const eE={convertOffsetParentRelativeRectToViewportRelativeRect:UC,getDocumentElement:cr,getClippingRect:GC,getOffsetParent:qy,getElementRects:JC,getClientRects:WC,getDimensions:QC,getScale:gi,isElement:He,isRTL:XC},tE=(e,t,n)=>{const r=new Map,o={platform:eE,...n},i={...o.platform,_c:r};return zC(e,t,{...o,platform:i})};var nE=typeof document<"u",rE=function(){},Ua=nE?k.useLayoutEffect:rE;function cc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!cc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!cc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Vy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xm(e,t){const n=Vy(e);return Math.round(t*n)/n}function Pl(e){const t=C.useRef(e);return Ua(()=>{t.current=e}),t}function oE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[f,u]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=C.useState(r);cc(d,r)||h(r);const[m,p]=C.useState(null),[g,y]=C.useState(null),b=C.useCallback(M=>{M!==E.current&&(E.current=M,p(M))},[]),x=C.useCallback(M=>{M!==_.current&&(_.current=M,y(M))},[]),w=i||m,A=s||g,E=C.useRef(null),_=C.useRef(null),S=C.useRef(f),O=c!=null,P=Pl(c),I=Pl(o),$=Pl(l),D=C.useCallback(()=>{if(!E.current||!_.current)return;const M={placement:t,strategy:n,middleware:d};I.current&&(M.platform=I.current),tE(E.current,_.current,M).then(re=>{const L={...re,isPositioned:$.current!==!1};j.current&&!cc(S.current,L)&&(S.current=L,fw.flushSync(()=>{u(L)}))})},[d,t,n,I,$]);Ua(()=>{l===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,u(M=>({...M,isPositioned:!1})))},[l]);const j=C.useRef(!1);Ua(()=>(j.current=!0,()=>{j.current=!1}),[]),Ua(()=>{if(w&&(E.current=w),A&&(_.current=A),w&&A){if(P.current)return P.current(w,A,D);D()}},[w,A,D,P,O]);const K=C.useMemo(()=>({reference:E,floating:_,setReference:b,setFloating:x}),[b,x]),G=C.useMemo(()=>({reference:w,floating:A}),[w,A]),oe=C.useMemo(()=>{const M={position:n,left:0,top:0};if(!G.floating)return M;const re=xm(G.floating,f.x),L=xm(G.floating,f.y);return a?{...M,transform:"translate("+re+"px, "+L+"px)",...Vy(G.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:L}},[n,a,G.floating,f.x,f.y]);return C.useMemo(()=>({...f,update:D,refs:K,elements:G,floatingStyles:oe}),[f,D,K,G,oe])}let iE="div";function sE(e,t){let n=`headlessui-control-${k.useId()}`,[r,o]=xC(),[i,s]=pC(),a=Dc(),{disabled:c=a||!1,...l}=e,f=Rc({disabled:c}),u={ref:t,disabled:c||void 0,"aria-disabled":c||void 0},d=Zs();return k.createElement(GA,{value:c},k.createElement(o,{value:r},k.createElement(s,{value:i},k.createElement(lC,{id:n},d({ourProps:u,theirProps:{...l,children:k.createElement(cC,null,typeof l.children=="function"?l.children(f):l.children)},slot:f,defaultTag:iE,name:"Field"})))))}let aE=Js(sE),cE="input";function lE(e,t){let n=k.useId(),r=Ny(),o=Dc(),{id:i=r||`headlessui-input-${n}`,disabled:s=o||!1,autoFocus:a=!1,invalid:c=!1,...l}=e,f=Ry(),u=mC(),{isFocused:d,focusProps:h}=WA({autoFocus:a}),{isHovered:m,hoverProps:p}=UA({isDisabled:s}),g=tC({ref:t,id:i,"aria-labelledby":f,"aria-describedby":u,"aria-invalid":c?"true":void 0,disabled:s||void 0,autoFocus:a},h,p),y=Rc({disabled:s,invalid:c,hover:m,focus:d,autofocus:a});return Zs()({ourProps:g,theirProps:l,slot:y,defaultTag:cE,name:"Input"})}let fE=Js(lE);const Yy=({type:e="text",className:t,label:n,description:r,error:o,containerClassName:i,...s})=>v.jsx("div",{className:be("cnf:box-border cnf:w-full cnf:min-w-0 cnf:max-w-md cnf:px-4",i),children:v.jsxs(aE,{children:[n&&v.jsx(EC,{className:"cnf:font-medium cnf:text-gray-900",children:n}),r&&v.jsx(vC,{className:"cnf:text-sm cnf:text-secondary",children:r}),v.jsx(fE,{type:e,className:be("cnf:mt-3 cnf:box-border cnf:block cnf:min-w-0 cnf:max-w-full cnf:w-full cnf:rounded-lg cnf:border cnf:border-gray-200 cnf:px-3 cnf:py-1.5 cnf:text-sm/6 cnf:text-gray-800","cnf:data-focus:-outline-offset-2 cnf:data-focus:outline-primary-500",t,o&&"cnf:border-red-500 cnf:focus:border-red-500"),...s})]})}),uE="cnf:whitespace-nowrap cnf:font-normal cnf:flex cnf:items-center cnf:justify-center",dE="cnf:focus:outline cnf:focus:outline-3 cnf:focus:outline-primary-500/[.3]",hE="cnf:disabled:opacity-15 cnf:disabled:pointer-events-none",Gy=e=>e==="grayLight"||e==="warning",Qy=(e,t)=>!t||t==="none"?"":e(),mE=(e,t)=>Qy(()=>{const n=e==="gray400"?"gray":e,r=Gy(n)?"cnf:active:text-black":"cnf:active:text-white";return e==="primary"?t?`cnf:bg-${n}-800 cnf:text-white`:`cnf:hover:bg-${n}-800 cnf:active:bg-${n}-800 cnf:hover:text-white ${r}`:n==="grayDark"?t?"cnf:bg-gray-800 cnf:text-white":`cnf:hover:bg-gray-800 cnf:active:bg-gray-800 cnf:hover:text-white ${r}`:n==="grayLight"?t?"cnf:bg-gray-50 cnf:text-black":`cnf:hover:bg-gray-50 cnf:active:bg-gray-50 cnf:hover:text-black ${r}`:e==="gray400"?t?`cnf:bg-${n}-500 cnf:text-white`:`cnf:hover:bg-${n}-500 cnf:active:bg-${n}-500 cnf:hover:text-white ${r}`:t?`cnf:bg-${n}-700 cnf:text-white`:`cnf:hover:bg-${n}-600 cnf:active:bg-${n}-700 cnf:hover:text-white ${r}`},e),pE=e=>Qy(()=>{const t=Gy(e)?"cnf:text-black":"cnf:text-white";return e==="primary"?`cnf:bg-primary-600 ${t}`:e==="gray400"?`cnf:bg-gray-400 ${t}`:`cnf:bg-${e}-500 ${t}`},e),gE=e=>e&&{dark:"cnf:text-dark cnf:hover:text-dark",yellow:"cnf:text-yellow cnf:hover:text-yellow",gray:"cnf:text-gray-500 cnf:hover:text-gray-800",primary:"cnf:text-primary-600 cnf:hover:text-primary-800",secondary:"cnf:text-secondary-500 cnf:hover:text-secondary-800",success:"cnf:text-success-500 cnf:hover:text-success-800",info:"cnf:text-info-500 cnf:hover:text-info-800",warning:"cnf:text-warning-500 cnf:hover:text-warning-800",danger:"cnf:text-danger-500 cnf:hover:text-danger-800",steel:"cnf:text-steel-500 cnf:hover:text-steel-800",orange:"cnf:text-orange-500 cnf:hover:text-orange-800",purple:"cnf:text-purple-500 cnf:hover:text-purple-800","fiserv-orange":"cnf:text-fiserv-orange-500 cnf:hover:text-fiserv-orange-800",grayDark:"cnf:text-gray-800 cnf:hover:text-gray-900",grayLight:"cnf:text-gray-50 cnf:hover:text-gray-400",gray400:"cnf:text-gray-400 cnf:hover:text-gray-700"}[e]||"",yE=(e,t)=>e&&{dark:t?"cnf:bg-dark cnf:text-white":"cnf:text-dark cnf:hover:bg-dark cnf:hover:text-white",yellow:t?"cnf:bg-yellow cnf:text-white":"cnf:text-yellow cnf:hover:bg-yellow cnf:hover:text-white",gray:t?"cnf:bg-gray-500 cnf:text-white":"cnf:text-gray-500 cnf:hover:bg-gray-500 cnf:hover:text-white",primary:t?"cnf:bg-primary-800 cnf:text-white":"cnf:text-primary-600 cnf:hover:bg-primary-800 cnf:hover:text-white",secondary:t?"cnf:bg-secondary-500 cnf:text-white":"cnf:text-secondary-500 cnf:hover:bg-secondary-500 cnf:hover:text-white",success:t?"cnf:bg-success-500 cnf:text-white":"cnf:text-success-500 cnf:hover:bg-success-500 cnf:hover:text-white",info:t?"cnf:bg-info-500 cnf:text-white":"cnf:text-info-500 cnf:hover:bg-info-500 cnf:hover:text-white",warning:t?"cnf:bg-warning-500 cnf:text-white":"cnf:text-warning-500 cnf:hover:bg-warning-500 cnf:hover:text-white",danger:t?"cnf:bg-danger-500 cnf:text-white":"cnf:text-danger-500 cnf:hover:bg-danger-500 cnf:hover:text-white",steel:t?"cnf:bg-steel-500 cnf:text-white":"cnf:text-steel-500 cnf:hover:bg-steel-500 cnf:hover:text-white",orange:t?"cnf:bg-orange-500 cnf:text-white":"cnf:text-orange-500 cnf:hover:bg-orange-500 cnf:hover:text-white",purple:t?"cnf:bg-purple-500 cnf:text-white":"cnf:text-purple-500 cnf:hover:bg-purple-500 cnf:hover:text-white","fiserv-orange":t?"cnf:bg-fiserv-orange-500 cnf:text-white":"cnf:text-fiserv-orange-500 cnf:hover:bg-fiserv-orange-500 cnf:hover:text-white",grayDark:t?"cnf:bg-gray-900 cnf:text-white":"cnf:text-gray-800 cnf:hover:bg-gray-900 cnf:hover:text-white",grayLight:t?"cnf:bg-gray-400 cnf:text-white":"cnf:text-gray-50 cnf:hover:bg-gray-400 cnf:hover:text-white",gray400:t?"cnf:bg-gray-500 cnf:text-white":"cnf:text-gray-400 cnf:hover:bg-gray-500 cnf:hover:text-white"}[e]||"",bE=(e,t)=>!e||e==="none"?"":e==="primary"?`cnf:border cnf:border-primary-600 ${t?"":"cnf:text-primary-600"}`:e==="grayDark"?`cnf:border cnf:border-gray-800 ${t?"":"cnf:text-gray-800"}`:e==="grayLight"?`cnf:border cnf:border-gray-50 ${t?"":"cnf:text-gray-400"}`:e==="gray400"?`cnf:border cnf:border-gray-400 ${t?"":"cnf:text-gray-400"}`:`cnf:border cnf:border-${e}-500 ${t?"":`cnf:text-${e}-500`}`,vE=(e,t)=>({solid:pE(e),link:gE(e),linkHoverSolid:yE(e,t),outline:bE(e,t)}),xE={none:"",default:"cnf:min-w-fit cnf:h-[40px] cnf:text-base cnf:px-3",base:"cnf:w-full cnf:md:min-w-fit cnf:h-[40px] cnf:text-base cnf:px-3",small:"cnf:min-w-[106px] cnf:h-[30px] cnf:text-sm cnf:px-2",normal:"cnf:min-w-[140px] cnf:h-[38px] cnf:text-base cnf:px-3",large:"cnf:min-w-[160px] cnf:h-[40px] cnf:text-lg cnf:px-3",NormalBlock:"cnf:w-full cnf:h-[40px] cnf:text-lg cnf:px-3",box:"cnf:w-[38px] cnf:h-[38px]",smallCollapse:"cnf:h-[30px] cnf:text-sm cnf:px-2",normalCollapse:"cnf:h-[38px] cnf:text-base cnf:px-3"},wE={none:"",default:"cnf:rounded",pill:"cnf:rounded-pill"},AE=({active:e=!1,children:t,color:n="primary",size:r="normal",category:o="solid",className:i,type:s="button",rounded:a="default",style:c={},primaryColor:l,...f},u)=>{var x;const d=hE,h=/link/.test(o)?null:mE(n,e),m=dE,p=xE[r],g=(x=vE(n,e))==null?void 0:x[o],y=mi(h,g),b=wE[a];return v.jsx("button",{...f,style:{...c,transition:"color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out",backgroundColor:l?l+"!important":void 0},type:s,ref:u,className:mi(uE,m,d,p,y,b,i,"cnf:cursor-pointer"),children:t})},et=k.forwardRef(AE),CE=Mc.replace(/:root,\s*:host/g,":host"),EE=({isOpen:e,close:t,title:n,dismissOptions:r,confirmOptions:o,children:i,className:s})=>v.jsx(v.Fragment,{children:e&&Wt.createPortal(v.jsxs(Br.div,{className:be("cnf:transition cnf:duration-300 cnf:ease-out cnf:data-closed:opacity-0",s),style:{position:"fixed",inset:0,zIndex:2147483647},children:[v.jsx("div",{className:"cnf:fixed cnf:inset-0 cnf:bg-black/30"}),v.jsx("div",{className:"confidence-playbook cnf:fixed cnf:inset-0 cnf:flex cnf:w-screen cnf:items-center cnf:justify-center cnf:p-4",children:v.jsxs("div",{className:"cnf:max-w-lg cnf:divide-y cnf:divide-gray-100 cnf:bg-white cnf:rounded-sm cnf:shadow-xl",children:[n&&v.jsx("div",{className:"cnf:text-gray-900 cnf:p-4",children:n}),v.jsx("div",{className:"cnf:p-4",children:i}),r||o?v.jsxs("div",{className:"cnf:flex cnf:gap-4 cnf:p-4",children:[r?v.jsx(et,{className:"cnf:flex-1",onClick:()=>{r.onClick(),t()},size:"small",color:"secondary",children:r.label}):v.jsx(v.Fragment,{}),o?v.jsx(et,{className:"cnf:flex-1",disabled:o.disabled,onClick:()=>{o.onClick(),t()},size:"small",color:"primary",children:o.label}):v.jsx(v.Fragment,{})]}):v.jsx(v.Fragment,{})]})}),v.jsx("style",{type:"text/css",children:CE})]}),document.body,"confidence-modal")}),_E=({onConfirm:e,onClose:t,isOpen:n,title:r})=>{const[o,i]=k.useState(""),[s,a]=k.useState(!1),[c,l]=k.useState(!1),f=async()=>{if(o)try{a(!0),await e(o),i("")}catch{l(!0)}finally{a(!1)}else alert("Please enter a valid email address.")};return v.jsx(EE,{isOpen:n,close:t,dismissOptions:{label:"Cancel",onClick:t},confirmOptions:{label:"Initiate",onClick:f,disabled:s||!o||c},children:v.jsxs("div",{className:"cnf:flex cnf:min-w-0 cnf:w-full cnf:max-w-[400px] cnf:flex-col cnf:items-center cnf:gap-4",children:[v.jsxs("div",{children:[v.jsx("div",{className:"cnf:text-center cnf:text-2xl cnf:font-medium",children:c?"User already has access":r||"Access Playbook"}),v.jsx("div",{className:"cnf:text-center",children:c?v.jsxs(v.Fragment,{children:[v.jsx("b",{children:o})," has already accessed a playbook. Contact Confidence to speak to representative."]}):v.jsx(v.Fragment,{children:"Please enter your company email address to access this playbook."})})]}),v.jsx(Yy,{disabled:s||c,placeholder:"Enter company email address",onChange:u=>i(u.target.value)})]})})},SE=({btnClassName:e,buttonNode:t,size:n,playbookId:r,onInitiated:o,disabled:i,btnLabel:s="Run Playbook",btnColor:a="primary"})=>{const[c,l]=k.useState(!1),[f,u]=k.useState(!1);function d(){l(!0)}function h(){l(!1)}const m=async p=>{try{u(!0);const{playbookInstanceId:g,errorCode:y,details:b,message:x}=await Y0({bank:"public-sdk",email:p,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"America/Los_Angeles",playbookUid:r})||{};if(y)throw new Error(`Error initiating playbook: ${x} (Code: ${y}) - Details: ${b}`);if(g==null)throw new Error("No playbook instance ID returned from playbook-initiate");o(g,p)}finally{u(!1)}};return v.jsxs(v.Fragment,{children:[t?{buttonNode:t}:v.jsxs(et,{onClick:d,className:be(e,"confidence-playbook cnf:flex cnf:items-center cnf:gap-1"),color:a,size:n,disabled:i||f,children:[v.jsx("img",{src:nd,alt:"Confidence Logo",className:"cnf:size-4 cnf:object-contain cnf:text-white"}),s]}),v.jsx(_E,{isOpen:c,onClose:h,onConfirm:async p=>{await m(p),h()}})]})};/*!
25
25
  * Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
26
26
  * License - https://fontawesome.com/license (Commercial License)
27
27
  * Copyright 2024 Fonticons, Inc.
28
- */const d_={prefix:"fas",iconName:"message",icon:[512,512,["comment-alt"],"f27a","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l96 0 0 80c0 6.1 3.4 11.6 8.8 14.3s11.9 2.1 16.8-1.5L309.3 416 448 416c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0z"]},h_={prefix:"fas",iconName:"info",icon:[192,512,[],"f129","M48 80a48 48 0 1 1 96 0A48 48 0 1 1 48 80zM0 224c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l0 224 32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 512c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0 0-192-32 0c-17.7 0-32-14.3-32-32z"]},m_={prefix:"fas",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM112 256l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},p_=m_,g_={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM200 352l16 0c22.1 0 40 17.9 40 40l0 8c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-8c0-4.4-3.6-8-8-8l-16 0c-4.4 0-8 3.6-8 8l0 80c0 4.4 3.6 8 8 8l16 0c4.4 0 8-3.6 8-8l0-8c0-8.8 7.2-16 16-16s16 7.2 16 16l0 8c0 22.1-17.9 40-40 40l-16 0c-22.1 0-40-17.9-40-40l0-80c0-22.1 17.9-40 40-40zm133.1 0l34.9 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-34.9 0c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1L304 512c-8.8 0-16-7.2-16-16s7.2-16 16-16l42.9 0c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16l0 31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66l0-31.6c0-8.8 7.2-16 16-16s16 7.2 16 16l0 31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6l0-31.6c0-8.8 7.2-16 16-16z"]},y_={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},Vy={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},b_=Vy,v_={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},Yy=v_,x_={prefix:"fas",iconName:"square-exclamation",icon:[448,512,["exclamation-square"],"f321","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm160 96c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM192 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},Qy={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},Gy=Qy,w_={prefix:"fas",iconName:"file-word",icon:[384,512,[],"f1c2","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM111 257.1l26.8 89.2 31.6-90.3c3.4-9.6 12.5-16.1 22.7-16.1s19.3 6.4 22.7 16.1l31.6 90.3L273 257.1c3.8-12.7 17.2-19.9 29.9-16.1s19.9 17.2 16.1 29.9l-48 160c-3 10-12 16.9-22.4 17.1s-19.8-6.2-23.2-16.1L192 336.6l-33.3 95.3c-3.4 9.8-12.8 16.3-23.2 16.1s-19.5-7.1-22.4-17.1l-48-160c-3.8-12.7 3.4-26.1 16.1-29.9s26.1 3.4 29.9 16.1z"]},A_={prefix:"fas",iconName:"file-powerpoint",icon:[384,512,[],"f1c4","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM136 240l68 0c42 0 76 34 76 76s-34 76-76 76l-44 0 0 32c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56 0-104c0-13.3 10.7-24 24-24zm68 104c15.5 0 28-12.5 28-28s-12.5-28-28-28l-44 0 0 56 44 0z"]},C_={prefix:"fas",iconName:"file-zipper",icon:[384,512,["file-archive"],"f1c6","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM96 48c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm-6.3 71.8c3.7-14 16.4-23.8 30.9-23.8l14.8 0c14.5 0 27.2 9.7 30.9 23.8l23.5 88.2c1.4 5.4 2.1 10.9 2.1 16.4c0 35.2-28.8 63.7-64 63.7s-64-28.5-64-63.7c0-5.5 .7-11.1 2.1-16.4l23.5-88.2zM112 336c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0z"]},__=C_,bm={prefix:"fas",iconName:"file-excel",icon:[384,512,[],"f1c3","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM155.7 250.2L192 302.1l36.3-51.9c7.6-10.9 22.6-13.5 33.4-5.9s13.5 22.6 5.9 33.4L221.3 344l46.4 66.2c7.6 10.9 5 25.8-5.9 33.4s-25.8 5-33.4-5.9L192 385.8l-36.3 51.9c-7.6 10.9-22.6 13.5-33.4 5.9s-13.5-22.6-5.9-33.4L162.7 344l-46.4-66.2c-7.6-10.9-5-25.8 5.9-33.4s25.8-5 33.4 5.9z"]},E_={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},S_={prefix:"fas",iconName:"file-audio",icon:[384,512,[],"f1c7","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zm2 226.3c37.1 22.4 62 63.1 62 109.7s-24.9 87.3-62 109.7c-7.6 4.6-17.4 2.1-22-5.4s-2.1-17.4 5.4-22C269.4 401.5 288 370.9 288 336s-18.6-65.5-46.5-82.3c-7.6-4.6-10-14.4-5.4-22s14.4-10 22-5.4zm-91.9 30.9c6 2.5 9.9 8.3 9.9 14.8l0 128c0 6.5-3.9 12.3-9.9 14.8s-12.9 1.1-17.4-3.5L113.4 376 80 376c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16l33.4 0 35.3-35.3c4.6-4.6 11.5-5.9 17.4-3.5zm51 34.9c6.6-5.9 16.7-5.3 22.6 1.3C249.8 304.6 256 319.6 256 336s-6.2 31.4-16.3 42.7c-5.9 6.6-16 7.1-22.6 1.3s-7.1-16-1.3-22.6c5.1-5.7 8.1-13.1 8.1-21.3s-3.1-15.7-8.1-21.3c-5.9-6.6-5.3-16.7 1.3-22.6z"]},k_={prefix:"fas",iconName:"file-code",icon:[384,512,[],"f1c9","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM153 289l-31 31 31 31c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L71 337c-9.4-9.4-9.4-24.6 0-33.9l48-48c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9zM265 255l48 48c9.4 9.4 9.4 24.6 0 33.9l-48 48c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l31-31-31-31c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z"]},T_={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},N_={prefix:"fas",iconName:"file-video",icon:[384,512,[],"f1c8","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM64 288c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32l0 96c0 17.7-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32l0-96zM300.9 397.9L256 368l0-64 44.9-29.9c2-1.3 4.4-2.1 6.8-2.1c6.8 0 12.3 5.5 12.3 12.3l0 103.4c0 6.8-5.5 12.3-12.3 12.3c-2.4 0-4.8-.7-6.8-2.1z"]},O_={prefix:"fas",iconName:"file-pdf",icon:[512,512,[],"f1c1","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"]},Zy={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},P_=Zy,M_={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},I_={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128z"]},Jy={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},L_={prefix:"fas",iconName:"list-ul",icon:[512,512,["list-dots"],"f0ca","M64 144a48 48 0 1 0 0-96 48 48 0 1 0 0 96zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM64 464a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm48-208a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z"]},Uc={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},Xy=Uc,eb={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},tb={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},R_=tb,D_={prefix:"fas",iconName:"exclamation",icon:[128,512,[10069,10071,61738],"21","M96 64c0-17.7-14.3-32-32-32S32 46.3 32 64l0 256c0 17.7 14.3 32 32 32s32-14.3 32-32L96 64zM64 480a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]};/*!
28
+ */const kE={prefix:"fas",iconName:"message",icon:[512,512,["comment-alt"],"f27a","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l96 0 0 80c0 6.1 3.4 11.6 8.8 14.3s11.9 2.1 16.8-1.5L309.3 416 448 416c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0z"]},TE={prefix:"fas",iconName:"info",icon:[192,512,[],"f129","M48 80a48 48 0 1 1 96 0A48 48 0 1 1 48 80zM0 224c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l0 224 32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 512c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0 0-192-32 0c-17.7 0-32-14.3-32-32z"]},NE={prefix:"fas",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM112 256l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},OE=NE,PE={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM200 352l16 0c22.1 0 40 17.9 40 40l0 8c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-8c0-4.4-3.6-8-8-8l-16 0c-4.4 0-8 3.6-8 8l0 80c0 4.4 3.6 8 8 8l16 0c4.4 0 8-3.6 8-8l0-8c0-8.8 7.2-16 16-16s16 7.2 16 16l0 8c0 22.1-17.9 40-40 40l-16 0c-22.1 0-40-17.9-40-40l0-80c0-22.1 17.9-40 40-40zm133.1 0l34.9 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-34.9 0c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1L304 512c-8.8 0-16-7.2-16-16s7.2-16 16-16l42.9 0c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16l0 31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66l0-31.6c0-8.8 7.2-16 16-16s16 7.2 16 16l0 31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6l0-31.6c0-8.8 7.2-16 16-16z"]},Zy={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},Jy={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},Xy=Jy,ME={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},eb=ME,IE={prefix:"fas",iconName:"square-exclamation",icon:[448,512,["exclamation-square"],"f321","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm160 96c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM192 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},tb={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},gd=tb,LE={prefix:"fas",iconName:"file-word",icon:[384,512,[],"f1c2","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM111 257.1l26.8 89.2 31.6-90.3c3.4-9.6 12.5-16.1 22.7-16.1s19.3 6.4 22.7 16.1l31.6 90.3L273 257.1c3.8-12.7 17.2-19.9 29.9-16.1s19.9 17.2 16.1 29.9l-48 160c-3 10-12 16.9-22.4 17.1s-19.8-6.2-23.2-16.1L192 336.6l-33.3 95.3c-3.4 9.8-12.8 16.3-23.2 16.1s-19.5-7.1-22.4-17.1l-48-160c-3.8-12.7 3.4-26.1 16.1-29.9s26.1 3.4 29.9 16.1z"]},RE={prefix:"fas",iconName:"file-powerpoint",icon:[384,512,[],"f1c4","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM136 240l68 0c42 0 76 34 76 76s-34 76-76 76l-44 0 0 32c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56 0-104c0-13.3 10.7-24 24-24zm68 104c15.5 0 28-12.5 28-28s-12.5-28-28-28l-44 0 0 56 44 0z"]},DE={prefix:"fas",iconName:"file-zipper",icon:[384,512,["file-archive"],"f1c6","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM96 48c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm-6.3 71.8c3.7-14 16.4-23.8 30.9-23.8l14.8 0c14.5 0 27.2 9.7 30.9 23.8l23.5 88.2c1.4 5.4 2.1 10.9 2.1 16.4c0 35.2-28.8 63.7-64 63.7s-64-28.5-64-63.7c0-5.5 .7-11.1 2.1-16.4l23.5-88.2zM112 336c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0z"]},FE=DE,wm={prefix:"fas",iconName:"file-excel",icon:[384,512,[],"f1c3","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM155.7 250.2L192 302.1l36.3-51.9c7.6-10.9 22.6-13.5 33.4-5.9s13.5 22.6 5.9 33.4L221.3 344l46.4 66.2c7.6 10.9 5 25.8-5.9 33.4s-25.8 5-33.4-5.9L192 385.8l-36.3 51.9c-7.6 10.9-22.6 13.5-33.4 5.9s-13.5-22.6-5.9-33.4L162.7 344l-46.4-66.2c-7.6-10.9-5-25.8 5.9-33.4s25.8-5 33.4 5.9z"]},jE={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},zE={prefix:"fas",iconName:"file-audio",icon:[384,512,[],"f1c7","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zm2 226.3c37.1 22.4 62 63.1 62 109.7s-24.9 87.3-62 109.7c-7.6 4.6-17.4 2.1-22-5.4s-2.1-17.4 5.4-22C269.4 401.5 288 370.9 288 336s-18.6-65.5-46.5-82.3c-7.6-4.6-10-14.4-5.4-22s14.4-10 22-5.4zm-91.9 30.9c6 2.5 9.9 8.3 9.9 14.8l0 128c0 6.5-3.9 12.3-9.9 14.8s-12.9 1.1-17.4-3.5L113.4 376 80 376c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16l33.4 0 35.3-35.3c4.6-4.6 11.5-5.9 17.4-3.5zm51 34.9c6.6-5.9 16.7-5.3 22.6 1.3C249.8 304.6 256 319.6 256 336s-6.2 31.4-16.3 42.7c-5.9 6.6-16 7.1-22.6 1.3s-7.1-16-1.3-22.6c5.1-5.7 8.1-13.1 8.1-21.3s-3.1-15.7-8.1-21.3c-5.9-6.6-5.3-16.7 1.3-22.6z"]},$E={prefix:"fas",iconName:"file-code",icon:[384,512,[],"f1c9","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM153 289l-31 31 31 31c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L71 337c-9.4-9.4-9.4-24.6 0-33.9l48-48c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9zM265 255l48 48c9.4 9.4 9.4 24.6 0 33.9l-48 48c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l31-31-31-31c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z"]},BE={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},UE={prefix:"fas",iconName:"file-video",icon:[384,512,[],"f1c8","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM64 288c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32l0 96c0 17.7-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32l0-96zM300.9 397.9L256 368l0-64 44.9-29.9c2-1.3 4.4-2.1 6.8-2.1c6.8 0 12.3 5.5 12.3 12.3l0 103.4c0 6.8-5.5 12.3-12.3 12.3c-2.4 0-4.8-.7-6.8-2.1z"]},WE={prefix:"fas",iconName:"file-pdf",icon:[512,512,[],"f1c1","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"]},nb={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},rb=nb,KE={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},HE={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128z"]},ob={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},qE={prefix:"fas",iconName:"list-ul",icon:[512,512,["list-dots"],"f0ca","M64 144a48 48 0 1 0 0-96 48 48 0 1 0 0 96zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM64 464a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm48-208a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z"]},Kc={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},ib=Kc,sb={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},VE={prefix:"fas",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480l0-83.6c0-4 1.5-7.8 4.2-10.8L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s5.9-22.8 16.1-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z"]},ab={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},cb=ab,YE={prefix:"fas",iconName:"exclamation",icon:[128,512,[10069,10071,61738],"21","M96 64c0-17.7-14.3-32-32-32S32 46.3 32 64l0 256c0 17.7 14.3 32 32 32s32-14.3 32-32L96 64zM64 480a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]};/*!
29
29
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
30
30
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
31
31
  * Copyright 2024 Fonticons, Inc.
32
- */function F_(e,t,n){return(t=z_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vm(Object(n),!0).forEach(function(r){F_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function j_(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function z_(e){var t=j_(e,"string");return typeof t=="symbol"?t:t+""}const xm=()=>{};let pd={},nb={},rb=null,ob={mark:xm,measure:xm};try{typeof window<"u"&&(pd=window),typeof document<"u"&&(nb=document),typeof MutationObserver<"u"&&(rb=MutationObserver),typeof performance<"u"&&(ob=performance)}catch{}const{userAgent:wm=""}=pd.navigator||{},Rr=pd,$e=nb,Am=rb,Aa=ob;Rr.document;const cr=!!$e.documentElement&&!!$e.head&&typeof $e.addEventListener=="function"&&typeof $e.createElement=="function",ib=~wm.indexOf("MSIE")||~wm.indexOf("Trident/");var $_=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,B_=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,sb={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},U_={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},ab=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",Wc="duotone",W_="sharp",K_="sharp-duotone",cb=[wt,Wc,W_,K_],H_={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},q_={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},V_=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),Y_={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},Q_=["fak","fa-kit","fakd","fa-kit-duotone"],Cm={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},G_=["kit"],Z_={kit:{"fa-kit":"fak"}},J_=["fak","fakd"],X_={kit:{fak:"fa-kit"}},_m={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Ca={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},eE=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],tE=["fak","fa-kit","fakd","fa-kit-duotone"],nE={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},rE={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},oE={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},Uf={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},iE=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],Wf=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...eE,...iE],sE=["solid","regular","light","thin","duotone","brands"],lb=[1,2,3,4,5,6,7,8,9,10],aE=lb.concat([11,12,13,14,15,16,17,18,19,20]),cE=[...Object.keys(oE),...sE,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Ca.GROUP,Ca.SWAP_OPACITY,Ca.PRIMARY,Ca.SECONDARY].concat(lb.map(e=>"".concat(e,"x"))).concat(aE.map(e=>"w-".concat(e))),lE={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const nr="___FONT_AWESOME___",Kf=16,fb="fa",ub="svg-inline--fa",No="data-fa-i2svg",Hf="data-fa-pseudo-element",fE="data-fa-pseudo-element-pending",gd="data-prefix",yd="data-icon",Em="fontawesome-i2svg",uE="async",dE=["HTML","HEAD","STYLE","SCRIPT"],db=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Xs(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const hb=H({},sb);hb[wt]=H(H(H(H({},{"fa-duotone":"duotone"}),sb[wt]),Cm.kit),Cm["kit-duotone"]);const hE=Xs(hb),qf=H({},Y_);qf[wt]=H(H(H(H({},{duotone:"fad"}),qf[wt]),_m.kit),_m["kit-duotone"]);const Sm=Xs(qf),Vf=H({},Uf);Vf[wt]=H(H({},Vf[wt]),X_.kit);const bd=Xs(Vf),Yf=H({},rE);Yf[wt]=H(H({},Yf[wt]),Z_.kit);Xs(Yf);const mE=$_,mb="fa-layers-text",pE=B_,gE=H({},H_);Xs(gE);const yE=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Pl=U_,bE=[...G_,...cE],As=Rr.FontAwesomeConfig||{};function vE(e){var t=$e.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function xE(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}$e&&typeof $e.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const o=xE(vE(n));o!=null&&(As[r]=o)});const pb={styleDefault:"solid",familyDefault:wt,cssPrefix:fb,replacementClass:ub,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};As.familyPrefix&&(As.cssPrefix=As.familyPrefix);const Li=H(H({},pb),As);Li.autoReplaceSvg||(Li.observeMutations=!1);const fe={};Object.keys(pb).forEach(e=>{Object.defineProperty(fe,e,{enumerable:!0,set:function(t){Li[e]=t,Cs.forEach(n=>n(fe))},get:function(){return Li[e]}})});Object.defineProperty(fe,"familyPrefix",{enumerable:!0,set:function(e){Li.cssPrefix=e,Cs.forEach(t=>t(fe))},get:function(){return Li.cssPrefix}});Rr.FontAwesomeConfig=fe;const Cs=[];function wE(e){return Cs.push(e),()=>{Cs.splice(Cs.indexOf(e),1)}}const gr=Kf,_n={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function AE(e){if(!e||!cr)return;const t=$e.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=$e.head.childNodes;let r=null;for(let o=n.length-1;o>-1;o--){const i=n[o],s=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=i)}return $e.head.insertBefore(t,r),e}const CE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Is(){let e=12,t="";for(;e-- >0;)t+=CE[Math.random()*62|0];return t}function Vi(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function vd(e){return e.classList?Vi(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function gb(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function _E(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(gb(e[n]),'" '),"").trim()}function Kc(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function xd(e){return e.size!==_n.size||e.x!==_n.x||e.y!==_n.y||e.rotate!==_n.rotate||e.flipX||e.flipY}function EE(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),c={transform:"".concat(i," ").concat(s," ").concat(a)},l={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:c,path:l}}function SE(e){let{transform:t,width:n=Kf,height:r=Kf,startCentered:o=!1}=e,i="";return o&&ib?i+="translate(".concat(t.x/gr-n/2,"em, ").concat(t.y/gr-r/2,"em) "):o?i+="translate(calc(-50% + ".concat(t.x/gr,"em), calc(-50% + ").concat(t.y/gr,"em)) "):i+="translate(".concat(t.x/gr,"em, ").concat(t.y/gr,"em) "),i+="scale(".concat(t.size/gr*(t.flipX?-1:1),", ").concat(t.size/gr*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var kE=`:root, :host {
32
+ */function GE(e,t,n){return(t=ZE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Am(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Am(Object(n),!0).forEach(function(r){GE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Am(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QE(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZE(e){var t=QE(e,"string");return typeof t=="symbol"?t:t+""}const Cm=()=>{};let yd={},lb={},fb=null,ub={mark:Cm,measure:Cm};try{typeof window<"u"&&(yd=window),typeof document<"u"&&(lb=document),typeof MutationObserver<"u"&&(fb=MutationObserver),typeof performance<"u"&&(ub=performance)}catch{}const{userAgent:Em=""}=yd.navigator||{},Dr=yd,$e=lb,_m=fb,_a=ub;Dr.document;const lr=!!$e.documentElement&&!!$e.head&&typeof $e.addEventListener=="function"&&typeof $e.createElement=="function",db=~Em.indexOf("MSIE")||~Em.indexOf("Trident/");var JE=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,XE=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,hb={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},e_={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},mb=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",Hc="duotone",t_="sharp",n_="sharp-duotone",pb=[wt,Hc,t_,n_],r_={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},o_={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},i_=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),s_={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},a_=["fak","fa-kit","fakd","fa-kit-duotone"],Sm={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},c_=["kit"],l_={kit:{"fa-kit":"fak"}},f_=["fak","fakd"],u_={kit:{fak:"fa-kit"}},km={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Sa={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},d_=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],h_=["fak","fa-kit","fakd","fa-kit-duotone"],m_={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},p_={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},g_={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},Wf={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},y_=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],Kf=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...d_,...y_],b_=["solid","regular","light","thin","duotone","brands"],gb=[1,2,3,4,5,6,7,8,9,10],v_=gb.concat([11,12,13,14,15,16,17,18,19,20]),x_=[...Object.keys(g_),...b_,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Sa.GROUP,Sa.SWAP_OPACITY,Sa.PRIMARY,Sa.SECONDARY].concat(gb.map(e=>"".concat(e,"x"))).concat(v_.map(e=>"w-".concat(e))),w_={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const rr="___FONT_AWESOME___",Hf=16,yb="fa",bb="svg-inline--fa",Oo="data-fa-i2svg",qf="data-fa-pseudo-element",A_="data-fa-pseudo-element-pending",bd="data-prefix",vd="data-icon",Tm="fontawesome-i2svg",C_="async",E_=["HTML","HEAD","STYLE","SCRIPT"],vb=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function ea(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const xb=q({},hb);xb[wt]=q(q(q(q({},{"fa-duotone":"duotone"}),hb[wt]),Sm.kit),Sm["kit-duotone"]);const __=ea(xb),Vf=q({},s_);Vf[wt]=q(q(q(q({},{duotone:"fad"}),Vf[wt]),km.kit),km["kit-duotone"]);const Nm=ea(Vf),Yf=q({},Wf);Yf[wt]=q(q({},Yf[wt]),u_.kit);const xd=ea(Yf),Gf=q({},p_);Gf[wt]=q(q({},Gf[wt]),l_.kit);ea(Gf);const S_=JE,wb="fa-layers-text",k_=XE,T_=q({},r_);ea(T_);const N_=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ml=e_,O_=[...c_,...x_],Cs=Dr.FontAwesomeConfig||{};function P_(e){var t=$e.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function M_(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}$e&&typeof $e.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const o=M_(P_(n));o!=null&&(Cs[r]=o)});const Ab={styleDefault:"solid",familyDefault:wt,cssPrefix:yb,replacementClass:bb,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Cs.familyPrefix&&(Cs.cssPrefix=Cs.familyPrefix);const Ri=q(q({},Ab),Cs);Ri.autoReplaceSvg||(Ri.observeMutations=!1);const fe={};Object.keys(Ab).forEach(e=>{Object.defineProperty(fe,e,{enumerable:!0,set:function(t){Ri[e]=t,Es.forEach(n=>n(fe))},get:function(){return Ri[e]}})});Object.defineProperty(fe,"familyPrefix",{enumerable:!0,set:function(e){Ri.cssPrefix=e,Es.forEach(t=>t(fe))},get:function(){return Ri.cssPrefix}});Dr.FontAwesomeConfig=fe;const Es=[];function I_(e){return Es.push(e),()=>{Es.splice(Es.indexOf(e),1)}}const yr=Hf,_n={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function L_(e){if(!e||!lr)return;const t=$e.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=$e.head.childNodes;let r=null;for(let o=n.length-1;o>-1;o--){const i=n[o],s=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=i)}return $e.head.insertBefore(t,r),e}const R_="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ls(){let e=12,t="";for(;e-- >0;)t+=R_[Math.random()*62|0];return t}function Yi(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function wd(e){return e.classList?Yi(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function Cb(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function D_(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(Cb(e[n]),'" '),"").trim()}function qc(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Ad(e){return e.size!==_n.size||e.x!==_n.x||e.y!==_n.y||e.rotate!==_n.rotate||e.flipX||e.flipY}function F_(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),c={transform:"".concat(i," ").concat(s," ").concat(a)},l={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:c,path:l}}function j_(e){let{transform:t,width:n=Hf,height:r=Hf,startCentered:o=!1}=e,i="";return o&&db?i+="translate(".concat(t.x/yr-n/2,"em, ").concat(t.y/yr-r/2,"em) "):o?i+="translate(calc(-50% + ".concat(t.x/yr,"em), calc(-50% + ").concat(t.y/yr,"em)) "):i+="translate(".concat(t.x/yr,"em, ").concat(t.y/yr,"em) "),i+="scale(".concat(t.size/yr*(t.flipX?-1:1),", ").concat(t.size/yr*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var z_=`:root, :host {
33
33
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
34
34
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
35
35
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
@@ -582,25 +582,25 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
582
582
  .svg-inline--fa mask .fa-primary,
583
583
  .svg-inline--fa mask .fa-secondary {
584
584
  fill: black;
585
- }`;function yb(){const e=fb,t=ub,n=fe.cssPrefix,r=fe.replacementClass;let o=kE;if(n!==e||r!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return o}let km=!1;function Ml(){fe.autoAddCss&&!km&&(AE(yb()),km=!0)}var TE={mixout(){return{dom:{css:yb,insertCss:Ml}}},hooks(){return{beforeDOMElementCreation(){Ml()},beforeI2svg(){Ml()}}}};const rr=Rr||{};rr[nr]||(rr[nr]={});rr[nr].styles||(rr[nr].styles={});rr[nr].hooks||(rr[nr].hooks={});rr[nr].shims||(rr[nr].shims=[]);var En=rr[nr];const bb=[],vb=function(){$e.removeEventListener("DOMContentLoaded",vb),ac=1,bb.map(e=>e())};let ac=!1;cr&&(ac=($e.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test($e.readyState),ac||$e.addEventListener("DOMContentLoaded",vb));function NE(e){cr&&(ac?setTimeout(e,0):bb.push(e))}function ea(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?gb(e):"<".concat(t," ").concat(_E(n),">").concat(r.map(ea).join(""),"</").concat(t,">")}function Tm(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Il=function(t,n,r,o){var i=Object.keys(t),s=i.length,a=n,c,l,f;for(r===void 0?(c=1,f=t[i[0]]):(c=0,f=r);c<s;c++)l=i[c],f=a(f,t[l],l,t);return f};function OE(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((o&1023)<<10)+(i&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}function Qf(e){const t=OE(e);return t.length===1?t[0].toString(16):null}function PE(e,t){const n=e.length;let r=e.charCodeAt(t),o;return r>=55296&&r<=56319&&n>t+1&&(o=e.charCodeAt(t+1),o>=56320&&o<=57343)?(r-55296)*1024+o-56320+65536:r}function Nm(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Gf(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,o=Nm(t);typeof En.hooks.addPack=="function"&&!r?En.hooks.addPack(e,Nm(t)):En.styles[e]=H(H({},En.styles[e]||{}),o),e==="fas"&&Gf("fa",t)}const{styles:Ls,shims:ME}=En,xb=Object.keys(bd),IE=xb.reduce((e,t)=>(e[t]=Object.keys(bd[t]),e),{});let wd=null,wb={},Ab={},Cb={},_b={},Eb={};function LE(e){return~bE.indexOf(e)}function RE(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!LE(o)?o:null}const Sb=()=>{const e=r=>Il(Ls,(o,i,s)=>(o[s]=Il(i,r,{}),o),{});wb=e((r,o,i)=>(o[3]&&(r[o[3]]=i),o[2]&&o[2].filter(a=>typeof a=="number").forEach(a=>{r[a.toString(16)]=i}),r)),Ab=e((r,o,i)=>(r[i]=i,o[2]&&o[2].filter(a=>typeof a=="string").forEach(a=>{r[a]=i}),r)),Eb=e((r,o,i)=>{const s=o[2];return r[i]=i,s.forEach(a=>{r[a]=i}),r});const t="far"in Ls||fe.autoFetchSvg,n=Il(ME,(r,o)=>{const i=o[0];let s=o[1];const a=o[2];return s==="far"&&!t&&(s="fas"),typeof i=="string"&&(r.names[i]={prefix:s,iconName:a}),typeof i=="number"&&(r.unicodes[i.toString(16)]={prefix:s,iconName:a}),r},{names:{},unicodes:{}});Cb=n.names,_b=n.unicodes,wd=Hc(fe.styleDefault,{family:fe.familyDefault})};wE(e=>{wd=Hc(e.styleDefault,{family:fe.familyDefault})});Sb();function Ad(e,t){return(wb[e]||{})[t]}function DE(e,t){return(Ab[e]||{})[t]}function ao(e,t){return(Eb[e]||{})[t]}function kb(e){return Cb[e]||{prefix:null,iconName:null}}function FE(e){const t=_b[e],n=Ad("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Dr(){return wd}const Tb=()=>({prefix:null,iconName:null,rest:[]});function jE(e){let t=wt;const n=xb.reduce((r,o)=>(r[o]="".concat(fe.cssPrefix,"-").concat(o),r),{});return cb.forEach(r=>{(e.includes(n[r])||e.some(o=>IE[r].includes(o)))&&(t=r)}),t}function Hc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=hE[n][e];if(n===Wc&&!e)return"fad";const o=Sm[n][e]||Sm[n][r],i=e in En.styles?e:null;return o||i||null}function zE(e){let t=[],n=null;return e.forEach(r=>{const o=RE(fe.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function Om(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function qc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const o=Wf.concat(tE),i=Om(e.filter(u=>o.includes(u))),s=Om(e.filter(u=>!Wf.includes(u))),a=i.filter(u=>(r=u,!ab.includes(u))),[c=null]=a,l=jE(i),f=H(H({},zE(s)),{},{prefix:Hc(c,{family:l})});return H(H(H({},f),WE({values:e,family:l,styles:Ls,config:fe,canonical:f,givenPrefix:r})),$E(n,r,f))}function $E(e,t,n){let{prefix:r,iconName:o}=n;if(e||!r||!o)return{prefix:r,iconName:o};const i=t==="fa"?kb(o):{},s=ao(r,o);return o=i.iconName||s||o,r=i.prefix||r,r==="far"&&!Ls.far&&Ls.fas&&!fe.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}const BE=cb.filter(e=>e!==wt||e!==Wc),UE=Object.keys(Uf).filter(e=>e!==wt).map(e=>Object.keys(Uf[e])).flat();function WE(e){const{values:t,family:n,canonical:r,givenPrefix:o="",styles:i={},config:s={}}=e,a=n===Wc,c=t.includes("fa-duotone")||t.includes("fad"),l=s.familyDefault==="duotone",f=r.prefix==="fad"||r.prefix==="fa-duotone";if(!a&&(c||l||f)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&BE.includes(n)&&(Object.keys(i).find(d=>UE.includes(d))||s.autoFetchSvg)){const d=V_.get(n).defaultShortPrefixId;r.prefix=d,r.iconName=ao(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||o==="fa")&&(r.prefix=Dr()||"fas"),r}class KE{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach(i=>{this.definitions[i]=H(H({},this.definitions[i]||{}),o[i]),Gf(i,o[i]);const s=bd[wt][i];s&&Gf(s,o[i]),Sb()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(o=>{const{prefix:i,iconName:s,icon:a}=r[o],c=a[2];t[i]||(t[i]={}),c.length>0&&c.forEach(l=>{typeof l=="string"&&(t[i][l]=a)}),t[i][s]=a}),t}}let Pm=[],fi={};const gi={},HE=Object.keys(gi);function qE(e,t){let{mixoutsTo:n}=t;return Pm=e,fi={},Object.keys(gi).forEach(r=>{HE.indexOf(r)===-1&&delete gi[r]}),Pm.forEach(r=>{const o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(i=>{typeof o[i]=="function"&&(n[i]=o[i]),typeof o[i]=="object"&&Object.keys(o[i]).forEach(s=>{n[i]||(n[i]={}),n[i][s]=o[i][s]})}),r.hooks){const i=r.hooks();Object.keys(i).forEach(s=>{fi[s]||(fi[s]=[]),fi[s].push(i[s])})}r.provides&&r.provides(gi)}),n}function Zf(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return(fi[e]||[]).forEach(s=>{t=s.apply(null,[t,...r])}),t}function Oo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(fi[e]||[]).forEach(i=>{i.apply(null,n)})}function Fr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return gi[e]?gi[e].apply(null,t):void 0}function Jf(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Dr();if(t)return t=ao(n,t)||t,Tm(Nb.definitions,n,t)||Tm(En.styles,n,t)}const Nb=new KE,VE=()=>{fe.autoReplaceSvg=!1,fe.observeMutations=!1,Oo("noAuto")},YE={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return cr?(Oo("beforeI2svg",e),Fr("pseudoElements2svg",e),Fr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;fe.autoReplaceSvg===!1&&(fe.autoReplaceSvg=!0),fe.observeMutations=!0,NE(()=>{GE({autoReplaceSvgRoot:t}),Oo("watch",e)})}},QE={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:ao(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=Hc(e[0]);return{prefix:n,iconName:ao(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(fe.cssPrefix,"-"))>-1||e.match(mE))){const t=qc(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Dr(),iconName:ao(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Dr();return{prefix:t,iconName:ao(t,e)||e}}}},Kt={noAuto:VE,config:fe,dom:YE,parse:QE,library:Nb,findIconDefinition:Jf,toHtml:ea},GE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=$e}=e;(Object.keys(En.styles).length>0||fe.autoFetchSvg)&&cr&&fe.autoReplaceSvg&&Kt.dom.i2svg({node:t})};function Vc(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>ea(n))}}),Object.defineProperty(e,"node",{get:function(){if(!cr)return;const n=$e.createElement("div");return n.innerHTML=e.html,n.children}}),e}function ZE(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:s}=e;if(xd(s)&&n.found&&!r.found){const{width:a,height:c}=n,l={x:a/c/2,y:.5};o.style=Kc(H(H({},i),{},{"transform-origin":"".concat(l.x+s.x/16,"em ").concat(l.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function JE(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const s=i===!0?"".concat(t,"-").concat(fe.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:H(H({},o),{},{id:s}),children:r}]}]}function Cd(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:s,title:a,maskId:c,titleId:l,extra:f,watchable:u=!1}=e,{width:d,height:h}=n.found?n:t,m=J_.includes(r),g=[fe.replacementClass,o?"".concat(fe.cssPrefix,"-").concat(o):""].filter(A=>f.classes.indexOf(A)===-1).filter(A=>A!==""||!!A).concat(f.classes).join(" ");let p={children:[],attributes:H(H({},f.attributes),{},{"data-prefix":r,"data-icon":o,class:g,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(h)})};const y=m&&!~f.classes.indexOf("fa-fw")?{width:"".concat(d/h*16*.0625,"em")}:{};u&&(p.attributes[No]=""),a&&(p.children.push({tag:"title",attributes:{id:p.attributes["aria-labelledby"]||"title-".concat(l||Is())},children:[a]}),delete p.attributes.title);const b=H(H({},p),{},{prefix:r,iconName:o,main:t,mask:n,maskId:c,transform:i,symbol:s,styles:H(H({},y),f.styles)}),{children:x,attributes:w}=n.found&&t.found?Fr("generateAbstractMask",b)||{children:[],attributes:{}}:Fr("generateAbstractIcon",b)||{children:[],attributes:{}};return b.children=x,b.attributes=w,s?JE(b):ZE(b)}function Mm(e){const{content:t,width:n,height:r,transform:o,title:i,extra:s,watchable:a=!1}=e,c=H(H(H({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});a&&(c[No]="");const l=H({},s.styles);xd(o)&&(l.transform=SE({transform:o,startCentered:!0,width:n,height:r}),l["-webkit-transform"]=l.transform);const f=Kc(l);f.length>0&&(c.style=f);const u=[];return u.push({tag:"span",attributes:c,children:[t]}),i&&u.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),u}function XE(e){const{content:t,title:n,extra:r}=e,o=H(H(H({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=Kc(r.styles);i.length>0&&(o.style=i);const s=[];return s.push({tag:"span",attributes:o,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}const{styles:Ll}=En;function Xf(e){const t=e[0],n=e[1],[r]=e.slice(4);let o=null;return Array.isArray(r)?o={tag:"g",attributes:{class:"".concat(fe.cssPrefix,"-").concat(Pl.GROUP)},children:[{tag:"path",attributes:{class:"".concat(fe.cssPrefix,"-").concat(Pl.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(fe.cssPrefix,"-").concat(Pl.PRIMARY),fill:"currentColor",d:r[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const e4={found:!1,width:512,height:512};function t4(e,t){!db&&!fe.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function eu(e,t){let n=t;return t==="fa"&&fe.styleDefault!==null&&(t=Dr()),new Promise((r,o)=>{if(n==="fa"){const i=kb(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Ll[t]&&Ll[t][e]){const i=Ll[t][e];return r(Xf(i))}t4(e,t),r(H(H({},e4),{},{icon:fe.showMissingIcons&&e?Fr("missingIconAbstract")||{}:{}}))})}const Im=()=>{},tu=fe.measurePerformance&&Aa&&Aa.mark&&Aa.measure?Aa:{mark:Im,measure:Im},ys='FA "6.7.2"',n4=e=>(tu.mark("".concat(ys," ").concat(e," begins")),()=>Ob(e)),Ob=e=>{tu.mark("".concat(ys," ").concat(e," ends")),tu.measure("".concat(ys," ").concat(e),"".concat(ys," ").concat(e," begins"),"".concat(ys," ").concat(e," ends"))};var _d={begin:n4,end:Ob};const $a=()=>{};function Lm(e){return typeof(e.getAttribute?e.getAttribute(No):null)=="string"}function r4(e){const t=e.getAttribute?e.getAttribute(gd):null,n=e.getAttribute?e.getAttribute(yd):null;return t&&n}function o4(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(fe.replacementClass)}function i4(){return fe.autoReplaceSvg===!0?Ba.replace:Ba[fe.autoReplaceSvg]||Ba.replace}function s4(e){return $e.createElementNS("http://www.w3.org/2000/svg",e)}function a4(e){return $e.createElement(e)}function Pb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?s4:a4}=t;if(typeof e=="string")return $e.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(i){r.setAttribute(i,e.attributes[i])}),(e.children||[]).forEach(function(i){r.appendChild(Pb(i,{ceFn:n}))}),r}function c4(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Ba={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Pb(n),t)}),t.getAttribute(No)===null&&fe.keepOriginalSource){let n=$e.createComment(c4(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~vd(t).indexOf(fe.replacementClass))return Ba.replace(e);const r=new RegExp("".concat(fe.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const i=n[0].attributes.class.split(" ").reduce((s,a)=>(a===fe.replacementClass||a.match(r)?s.toSvg.push(a):s.toNode.push(a),s),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}const o=n.map(i=>ea(i)).join(`
586
- `);t.setAttribute(No,""),t.innerHTML=o}};function Rm(e){e()}function Mb(e,t){const n=typeof t=="function"?t:$a;if(e.length===0)n();else{let r=Rm;fe.mutateApproach===uE&&(r=Rr.requestAnimationFrame||Rm),r(()=>{const o=i4(),i=_d.begin("mutate");e.map(o),i(),n()})}}let Ed=!1;function Ib(){Ed=!0}function nu(){Ed=!1}let cc=null;function Dm(e){if(!Am||!fe.observeMutations)return;const{treeCallback:t=$a,nodeCallback:n=$a,pseudoElementsCallback:r=$a,observeMutationsRoot:o=$e}=e;cc=new Am(i=>{if(Ed)return;const s=Dr();Vi(i).forEach(a=>{if(a.type==="childList"&&a.addedNodes.length>0&&!Lm(a.addedNodes[0])&&(fe.searchPseudoElements&&r(a.target),t(a.target)),a.type==="attributes"&&a.target.parentNode&&fe.searchPseudoElements&&r(a.target.parentNode),a.type==="attributes"&&Lm(a.target)&&~yE.indexOf(a.attributeName))if(a.attributeName==="class"&&r4(a.target)){const{prefix:c,iconName:l}=qc(vd(a.target));a.target.setAttribute(gd,c||s),l&&a.target.setAttribute(yd,l)}else o4(a.target)&&n(a.target)})}),cr&&cc.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function l4(){cc&&cc.disconnect()}function f4(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,o)=>{const i=o.split(":"),s=i[0],a=i.slice(1);return s&&a.length>0&&(r[s]=a.join(":").trim()),r},{})),n}function u4(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let o=qc(vd(e));return o.prefix||(o.prefix=Dr()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=DE(o.prefix,e.innerText)||Ad(o.prefix,Qf(e.innerText))),!o.iconName&&fe.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function d4(e){const t=Vi(e.attributes).reduce((o,i)=>(o.name!=="class"&&o.name!=="style"&&(o[i.name]=i.value),o),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return fe.autoA11y&&(n?t["aria-labelledby"]="".concat(fe.replacementClass,"-title-").concat(r||Is()):(t["aria-hidden"]="true",t.focusable="false")),t}function h4(){return{iconName:null,title:null,titleId:null,prefix:null,transform:_n,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Fm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=u4(e),i=d4(e),s=Zf("parseNodeAttributes",{},e);let a=t.styleParser?f4(e):[];return H({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:_n,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:a,attributes:i}},s)}const{styles:m4}=En;function Lb(e){const t=fe.autoReplaceSvg==="nest"?Fm(e,{styleParser:!1}):Fm(e);return~t.extra.classes.indexOf(mb)?Fr("generateLayersText",e,t):Fr("generateSvgReplacementMutation",e,t)}function p4(){return[...Q_,...Wf]}function jm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!cr)return Promise.resolve();const n=$e.documentElement.classList,r=f=>n.add("".concat(Em,"-").concat(f)),o=f=>n.remove("".concat(Em,"-").concat(f)),i=fe.autoFetchSvg?p4():ab.concat(Object.keys(m4));i.includes("fa")||i.push("fa");const s=[".".concat(mb,":not([").concat(No,"])")].concat(i.map(f=>".".concat(f,":not([").concat(No,"])"))).join(", ");if(s.length===0)return Promise.resolve();let a=[];try{a=Vi(e.querySelectorAll(s))}catch{}if(a.length>0)r("pending"),o("complete");else return Promise.resolve();const c=_d.begin("onTree"),l=a.reduce((f,u)=>{try{const d=Lb(u);d&&f.push(d)}catch(d){db||d.name==="MissingIcon"&&console.error(d)}return f},[]);return new Promise((f,u)=>{Promise.all(l).then(d=>{Mb(d,()=>{r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),c(),f()})}).catch(d=>{c(),u(d)})})}function g4(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Lb(e).then(n=>{n&&Mb([n],t)})}function y4(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:Jf(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:Jf(o||{})),e(r,H(H({},n),{},{mask:o}))}}const b4=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=_n,symbol:r=!1,mask:o=null,maskId:i=null,title:s=null,titleId:a=null,classes:c=[],attributes:l={},styles:f={}}=t;if(!e)return;const{prefix:u,iconName:d,icon:h}=e;return Vc(H({type:"icon"},e),()=>(Oo("beforeDOMElementCreation",{iconDefinition:e,params:t}),fe.autoA11y&&(s?l["aria-labelledby"]="".concat(fe.replacementClass,"-title-").concat(a||Is()):(l["aria-hidden"]="true",l.focusable="false")),Cd({icons:{main:Xf(h),mask:o?Xf(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:u,iconName:d,transform:H(H({},_n),n),symbol:r,title:s,maskId:i,titleId:a,extra:{attributes:l,styles:f,classes:c}})))};var v4={mixout(){return{icon:y4(b4)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=jm,e.nodeCallback=g4,e}}},provides(e){e.i2svg=function(t){const{node:n=$e,callback:r=()=>{}}=t;return jm(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:o,titleId:i,prefix:s,transform:a,symbol:c,mask:l,maskId:f,extra:u}=n;return new Promise((d,h)=>{Promise.all([eu(r,s),l.iconName?eu(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(m=>{let[g,p]=m;d([t,Cd({icons:{main:g,mask:p},prefix:s,iconName:r,transform:a,symbol:c,maskId:f,title:o,titleId:i,extra:u,watchable:!0})])}).catch(h)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:o,transform:i,styles:s}=t;const a=Kc(s);a.length>0&&(r.style=a);let c;return xd(i)&&(c=Fr("generateAbstractTransformGrouping",{main:o,transform:i,containerWidth:o.width,iconWidth:o.width})),n.push(c||o.icon),{children:n,attributes:r}}}},x4={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return Vc({type:"layer"},()=>{Oo("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(o=>{Array.isArray(o)?o.map(i=>{r=r.concat(i.abstract)}):r=r.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(fe.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},w4={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:o={},styles:i={}}=t;return Vc({type:"counter",content:e},()=>(Oo("beforeDOMElementCreation",{content:e,params:t}),XE({content:e.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(fe.cssPrefix,"-layers-counter"),...r]}})))}}}},A4={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=_n,title:r=null,classes:o=[],attributes:i={},styles:s={}}=t;return Vc({type:"text",content:e},()=>(Oo("beforeDOMElementCreation",{content:e,params:t}),Mm({content:e,transform:H(H({},_n),n),title:r,extra:{attributes:i,styles:s,classes:["".concat(fe.cssPrefix,"-layers-text"),...o]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:o,extra:i}=n;let s=null,a=null;if(ib){const c=parseInt(getComputedStyle(t).fontSize,10),l=t.getBoundingClientRect();s=l.width/c,a=l.height/c}return fe.autoA11y&&!r&&(i.attributes["aria-hidden"]="true"),Promise.resolve([t,Mm({content:t.innerHTML,width:s,height:a,transform:o,title:r,extra:i,watchable:!0})])}}};const C4=new RegExp('"',"ug"),zm=[1105920,1112319],$m=H(H(H(H({},{FontAwesome:{normal:"fas",400:"fas"}}),q_),lE),nE),ru=Object.keys($m).reduce((e,t)=>(e[t.toLowerCase()]=$m[t],e),{}),_4=Object.keys(ru).reduce((e,t)=>{const n=ru[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function E4(e){const t=e.replace(C4,""),n=PE(t,0),r=n>=zm[0]&&n<=zm[1],o=t.length===2?t[0]===t[1]:!1;return{value:Qf(o?t[0]:t),isSecondary:r||o}}function S4(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(ru[n]||{})[o]||_4[n]}function Bm(e,t){const n="".concat(fE).concat(t.replace(":","-"));return new Promise((r,o)=>{if(e.getAttribute(n)!==null)return r();const s=Vi(e.children).filter(d=>d.getAttribute(Hf)===t)[0],a=Rr.getComputedStyle(e,t),c=a.getPropertyValue("font-family"),l=c.match(pE),f=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(s&&!l)return e.removeChild(s),r();if(l&&u!=="none"&&u!==""){const d=a.getPropertyValue("content");let h=S4(c,f);const{value:m,isSecondary:g}=E4(d),p=l[0].startsWith("FontAwesome");let y=Ad(h,m),b=y;if(p){const x=FE(m);x.iconName&&x.prefix&&(y=x.iconName,h=x.prefix)}if(y&&!g&&(!s||s.getAttribute(gd)!==h||s.getAttribute(yd)!==b)){e.setAttribute(n,b),s&&e.removeChild(s);const x=h4(),{extra:w}=x;w.attributes[Hf]=t,eu(y,h).then(A=>{const _=Cd(H(H({},x),{},{icons:{main:A,mask:Tb()},prefix:h,iconName:b,extra:w,watchable:!0})),S=$e.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(S,e.firstChild):e.appendChild(S),S.outerHTML=_.map(E=>ea(E)).join(`
587
- `),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function k4(e){return Promise.all([Bm(e,"::before"),Bm(e,"::after")])}function T4(e){return e.parentNode!==document.head&&!~dE.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Hf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Um(e){if(cr)return new Promise((t,n)=>{const r=Vi(e.querySelectorAll("*")).filter(T4).map(k4),o=_d.begin("searchPseudoElements");Ib(),Promise.all(r).then(()=>{o(),nu(),t()}).catch(()=>{o(),nu(),n()})})}var N4={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Um,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=$e}=t;fe.searchPseudoElements&&Um(n)}}};let Wm=!1;var O4={mixout(){return{dom:{unwatch(){Ib(),Wm=!0}}}},hooks(){return{bootstrap(){Dm(Zf("mutationObserverCallbacks",{}))},noAuto(){l4()},watch(e){const{observeMutationsRoot:t}=e;Wm?nu():Dm(Zf("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Km=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const o=r.toLowerCase().split("-"),i=o[0];let s=o.slice(1).join("-");if(i&&s==="h")return n.flipX=!0,n;if(i&&s==="v")return n.flipY=!0,n;if(s=parseFloat(s),isNaN(s))return n;switch(i){case"grow":n.size=n.size+s;break;case"shrink":n.size=n.size-s;break;case"left":n.x=n.x-s;break;case"right":n.x=n.x+s;break;case"up":n.y=n.y-s;break;case"down":n.y=n.y+s;break;case"rotate":n.rotate=n.rotate+s;break}return n},t)};var P4={mixout(){return{parse:{transform:e=>Km(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Km(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:o,iconWidth:i}=t;const s={transform:"translate(".concat(o/2," 256)")},a="translate(".concat(r.x*32,", ").concat(r.y*32,") "),c="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),l="rotate(".concat(r.rotate," 0 0)"),f={transform:"".concat(a," ").concat(c," ").concat(l)},u={transform:"translate(".concat(i/2*-1," -256)")},d={outer:s,inner:f,path:u};return{tag:"g",attributes:H({},d.outer),children:[{tag:"g",attributes:H({},d.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:H(H({},n.icon.attributes),d.path)}]}]}}}};const Rl={x:0,y:0,width:"100%",height:"100%"};function Hm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function M4(e){return e.tag==="g"?e.children:[e]}var I4={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?qc(n.split(" ").map(o=>o.trim())):Tb();return r.prefix||(r.prefix=Dr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:o,mask:i,maskId:s,transform:a}=t;const{width:c,icon:l}=o,{width:f,icon:u}=i,d=EE({transform:a,containerWidth:f,iconWidth:c}),h={tag:"rect",attributes:H(H({},Rl),{},{fill:"white"})},m=l.children?{children:l.children.map(Hm)}:{},g={tag:"g",attributes:H({},d.inner),children:[Hm(H({tag:l.tag,attributes:H(H({},l.attributes),d.path)},m))]},p={tag:"g",attributes:H({},d.outer),children:[g]},y="mask-".concat(s||Is()),b="clip-".concat(s||Is()),x={tag:"mask",attributes:H(H({},Rl),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,p]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:M4(u)},x]};return n.push(w,{tag:"rect",attributes:H({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(y,")")},Rl)}),{children:n,attributes:r}}}},L4={provides(e){let t=!1;Rr.matchMedia&&(t=Rr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:H(H({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const i=H(H({},o),{},{attributeName:"opacity"}),s={tag:"circle",attributes:H(H({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||s.children.push({tag:"animate",attributes:H(H({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:H(H({},i),{},{values:"1;0;1;1;0;1;"})}),n.push(s),n.push({tag:"path",attributes:H(H({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:H(H({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:H(H({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:H(H({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},R4={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},D4=[TE,v4,x4,w4,A4,N4,O4,P4,I4,L4,R4];qE(D4,{mixoutsTo:Kt});Kt.noAuto;Kt.config;Kt.library;Kt.dom;const ou=Kt.parse;Kt.findIconDefinition;Kt.toHtml;const F4=Kt.icon;Kt.layer;Kt.text;Kt.counter;function iu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function j4(e){if(Array.isArray(e))return e}function z4(e){if(Array.isArray(e))return iu(e)}function br(e,t,n){return(t=V4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function B4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(f){l=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}function U4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
588
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
589
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qm(Object(n),!0).forEach(function(r){br(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function K4(e,t){if(e==null)return{};var n,r,o=H4(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function H4(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Vm(e,t){return j4(e)||B4(e,t)||Rb(e,t)||U4()}function su(e){return z4(e)||$4(e)||Rb(e)||W4()}function q4(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V4(e){var t=q4(e,"string");return typeof t=="symbol"?t:t+""}function lc(e){"@babel/helpers - typeof";return lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(e)}function Rb(e,t){if(e){if(typeof e=="string")return iu(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iu(e,t):void 0}}var Y4="7.0.0",au;try{var Q4=require("@fortawesome/fontawesome-svg-core/package.json");au=Q4.version}catch{au=typeof process<"u"&&process.env.FA_VERSION||"7.0.0"}function G4(e){var t=e.beat,n=e.fade,r=e.beatFade,o=e.bounce,i=e.shake,s=e.flash,a=e.spin,c=e.spinPulse,l=e.spinReverse,f=e.pulse,u=e.fixedWidth,d=e.inverse,h=e.border,m=e.listItem,g=e.flip,p=e.size,y=e.rotation,b=e.pull,x=e.swapOpacity,w=e.rotateBy,A=e.widthAuto,_=Z4(au,Y4),S=br(br(br(br(br(br({"fa-beat":t,"fa-fade":n,"fa-beat-fade":r,"fa-bounce":o,"fa-shake":i,"fa-flash":s,"fa-spin":a,"fa-spin-reverse":l,"fa-spin-pulse":c,"fa-pulse":f,"fa-fw":u,"fa-inverse":d,"fa-border":h,"fa-li":m,"fa-flip":g===!0,"fa-flip-horizontal":g==="horizontal"||g==="both","fa-flip-vertical":g==="vertical"||g==="both"},"fa-".concat(p),typeof p<"u"&&p!==null),"fa-rotate-".concat(y),typeof y<"u"&&y!==null&&y!==0),"fa-pull-".concat(b),typeof b<"u"&&b!==null),"fa-swap-opacity",x),"fa-rotate-by",_&&w),"fa-width-auto",_&&A);return Object.keys(S).map(function(E){return S[E]?E:null}).filter(function(E){return E})}function Z4(e,t){for(var n=e.split("-"),r=Vm(n,2),o=r[0],i=r[1],s=t.split("-"),a=Vm(s,2),c=a[0],l=a[1],f=o.split("."),u=c.split("."),d=0;d<Math.max(f.length,u.length);d++){var h=f[d]||"0",m=u[d]||"0",g=parseInt(h,10),p=parseInt(m,10);if(g!==p)return g>p}for(var y=0;y<Math.max(f.length,u.length);y++){var b=f[y]||"0",x=u[y]||"0";if(b!==x&&b.length!==x.length)return b.length<x.length}return!(i&&!l)}function J4(e){return e=e-0,e===e}function Db(e){return J4(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var X4=["style"];function eS(e){return e.charAt(0).toUpperCase()+e.slice(1)}function tS(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=Db(n.slice(0,r)),i=n.slice(r+1).trim();return o.startsWith("webkit")?t[eS(o)]=i:t[o]=i,t},{})}function Fb(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(c){return Fb(e,c)}),o=Object.keys(t.attributes||{}).reduce(function(c,l){var f=t.attributes[l];switch(l){case"class":c.attrs.className=f,delete t.attributes.class;break;case"style":c.attrs.style=tS(f);break;default:l.indexOf("aria-")===0||l.indexOf("data-")===0?c.attrs[l.toLowerCase()]=f:c.attrs[Db(l)]=f}return c},{attrs:{}}),i=n.style,s=i===void 0?{}:i,a=K4(n,X4);return o.attrs.style=An(An({},o.attrs.style),s),e.apply(void 0,[t.tag,An(An({},o.attrs),a)].concat(su(r)))}var jb=!1;try{jb=process.env.NODE_ENV==="production"}catch{}function nS(){if(!jb&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Ym(e){if(e&&lc(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(ou.icon)return ou.icon(e);if(e===null)return null;if(e&&lc(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Dl(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?br({},e,t):{}}var Qm={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,rotateBy:!1,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1,widthAuto:!1},Ce=T.forwardRef(function(e,t){var n=An(An({},Qm),e),r=n.icon,o=n.mask,i=n.symbol,s=n.className,a=n.title,c=n.titleId,l=n.maskId,f=Ym(r),u=Dl("classes",[].concat(su(G4(n)),su((s||"").split(" ")))),d=Dl("transform",typeof n.transform=="string"?ou.transform(n.transform):n.transform),h=Dl("mask",Ym(o)),m=F4(f,An(An(An(An({},u),d),h),{},{symbol:i,title:a,titleId:c,maskId:l}));if(!m)return nS("Could not find icon",f),null;var g=m.abstract,p={ref:t};return Object.keys(n).forEach(function(y){Qm.hasOwnProperty(y)||(p[y]=n[y])}),rS(g[0],p)});Ce.displayName="FontAwesomeIcon";Ce.propTypes={beat:ge.bool,border:ge.bool,beatFade:ge.bool,bounce:ge.bool,className:ge.string,fade:ge.bool,flash:ge.bool,mask:ge.oneOfType([ge.object,ge.array,ge.string]),maskId:ge.string,fixedWidth:ge.bool,inverse:ge.bool,flip:ge.oneOf([!0,!1,"horizontal","vertical","both"]),icon:ge.oneOfType([ge.object,ge.array,ge.string]),listItem:ge.bool,pull:ge.oneOf(["right","left"]),pulse:ge.bool,rotation:ge.oneOf([0,90,180,270]),rotateBy:ge.bool,shake:ge.bool,size:ge.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:ge.bool,spinPulse:ge.bool,spinReverse:ge.bool,symbol:ge.oneOfType([ge.bool,ge.string]),title:ge.string,titleId:ge.string,transform:ge.oneOfType([ge.string,ge.object]),swapOpacity:ge.bool,widthAuto:ge.bool};var rS=Fb.bind(null,T.createElement);const oS=async e=>await(await fetch(`${Ln}/playbook-task-details`,{method:"POST",body:JSON.stringify(e)})).json(),iS=({taskId:e,playbookId:t,enabled:n})=>{const{queryClient:r}=ir(),o=async()=>oS({taskId:+e,templateId:t.toString()}),i=["taskDetails",+e,t],s=Tc({queryKey:i,queryFn:o,enabled:n,staleTime:1/0},r),a=()=>{r.prefetchQuery({queryFn:o,queryKey:i,staleTime:1/0})};return{taskDetails:s.data,prefetchQuery:a,...s}},sS=({buttons:e,onButtonClick:t,disabled:n})=>v.jsx("div",{className:"cnf:flex cnf:items-center cnf:justify-end",children:e.map(r=>v.jsx(je,{size:"smallCollapse",className:"cnf:ml-2",disabled:n,onClick:()=>{t(r)},children:l2[r]},r))});function Gm(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&$f(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function cs(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Fl(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function aS(e){return e.matches("html,body")}function Zm(e){return(e==null?void 0:e.ownerDocument)||document}function Ua(e,t,n){return n===void 0&&(n=!0),e.filter(o=>{var i;return o.parentId===t&&(!n||((i=o.context)==null?void 0:i.open))}).flatMap(o=>[o,...Ua(e,o.id,n)])}function cS(e){return"nativeEvent"in e}var lS=typeof document<"u",fS=function(){},cu=lS?T.useLayoutEffect:fS;const uS={...C},dS=uS.useInsertionEffect,hS=dS||(e=>e());function si(e){const t=C.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return hS(()=>{t.current=e}),C.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const mS="data-floating-ui-focusable",Jm="active",Xm="selected",pS={...C};let ep=!1,gS=0;const tp=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+gS++;function yS(){const[e,t]=C.useState(()=>ep?tp():void 0);return cu(()=>{e==null&&t(tp())},[]),C.useEffect(()=>{ep=!0},[]),e}const bS=pS.useId,vS=bS||yS;let lu;process.env.NODE_ENV!=="production"&&(lu=new Set);function xS(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=lu)!=null&&e.has(o))){var i;(i=lu)==null||i.add(o),console.error(o)}}function wS(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const AS=C.createContext(null),CS=C.createContext(null),_S=()=>{var e;return((e=C.useContext(AS))==null?void 0:e.id)||null},zb=()=>C.useContext(CS);function ES(e){return"data-floating-ui-"+e}const SS={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},kS={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},np=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function $b(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:c=!0,outsidePressEvent:l="pointerdown",referencePress:f=!1,referencePressEvent:u="pointerdown",ancestorScroll:d=!1,bubbles:h,capture:m}=t,g=zb(),p=si(typeof c=="function"?c:()=>!1),y=typeof c=="function"?p:c,b=C.useRef(!1),{escapeKey:x,outsidePress:w}=np(h),{escapeKey:A,outsidePress:_}=np(m),S=C.useRef(!1),E=si(z=>{var Y;if(!n||!s||!a||z.key!=="Escape"||S.current)return;const Q=(Y=i.current.floatingContext)==null?void 0:Y.nodeId,oe=g?Ua(g.nodesRef.current,Q):[];if(!x&&(z.stopPropagation(),oe.length>0)){let M=!0;if(oe.forEach(re=>{var L;if((L=re.context)!=null&&L.open&&!re.context.dataRef.current.__escapeKeyBubbles){M=!1;return}}),!M)return}r(!1,cS(z)?z.nativeEvent:z,"escape-key")}),N=si(z=>{var Y;const Q=()=>{var oe;E(z),(oe=cs(z))==null||oe.removeEventListener("keydown",Q)};(Y=cs(z))==null||Y.addEventListener("keydown",Q)}),P=si(z=>{var Y;const Q=i.current.insideReactTree;i.current.insideReactTree=!1;const oe=b.current;if(b.current=!1,l==="click"&&oe||Q||typeof y=="function"&&!y(z))return;const M=cs(z),re="["+ES("inert")+"]",L=Zm(o.floating).querySelectorAll(re);let F=He(M)?M:null;for(;F&&!Xn(F);){const V=tr(F);if(Xn(V)||!He(V))break;F=V}if(L.length&&He(M)&&!aS(M)&&!Gm(M,o.floating)&&Array.from(L).every(V=>!Gm(F,V)))return;if(un(M)&&j){const V=Xn(M),ee=Gt(M),te=/auto|scroll/,me=V||te.test(ee.overflowX),ye=V||te.test(ee.overflowY),pe=me&&M.clientWidth>0&&M.scrollWidth>M.clientWidth,ze=ye&&M.clientHeight>0&&M.scrollHeight>M.clientHeight,G=ee.direction==="rtl",qe=ze&&(G?z.offsetX<=M.offsetWidth-M.clientWidth:z.offsetX>M.clientWidth),zt=pe&&z.offsetY>M.clientHeight;if(qe||zt)return}const K=(Y=i.current.floatingContext)==null?void 0:Y.nodeId,U=g&&Ua(g.nodesRef.current,K).some(V=>{var ee;return Fl(z,(ee=V.context)==null?void 0:ee.elements.floating)});if(Fl(z,o.floating)||Fl(z,o.domReference)||U)return;const J=g?Ua(g.nodesRef.current,K):[];if(J.length>0){let V=!0;if(J.forEach(ee=>{var te;if((te=ee.context)!=null&&te.open&&!ee.context.dataRef.current.__outsidePressBubbles){V=!1;return}}),!V)return}r(!1,z,"outside-press")}),I=si(z=>{var Y;const Q=()=>{var oe;P(z),(oe=cs(z))==null||oe.removeEventListener(l,Q)};(Y=cs(z))==null||Y.addEventListener(l,Q)});C.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=w;let z=-1;function Y(L){r(!1,L,"ancestor-scroll")}function Q(){window.clearTimeout(z),S.current=!0}function oe(){z=window.setTimeout(()=>{S.current=!1},zc()?5:0)}const M=Zm(o.floating);a&&(M.addEventListener("keydown",A?N:E,A),M.addEventListener("compositionstart",Q),M.addEventListener("compositionend",oe)),y&&M.addEventListener(l,_?I:P,_);let re=[];return d&&(He(o.domReference)&&(re=mi(o.domReference)),He(o.floating)&&(re=re.concat(mi(o.floating))),!He(o.reference)&&o.reference&&o.reference.contextElement&&(re=re.concat(mi(o.reference.contextElement)))),re=re.filter(L=>{var F;return L!==((F=M.defaultView)==null?void 0:F.visualViewport)}),re.forEach(L=>{L.addEventListener("scroll",Y,{passive:!0})}),()=>{a&&(M.removeEventListener("keydown",A?N:E,A),M.removeEventListener("compositionstart",Q),M.removeEventListener("compositionend",oe)),y&&M.removeEventListener(l,_?I:P,_),re.forEach(L=>{L.removeEventListener("scroll",Y)}),window.clearTimeout(z)}},[i,o,a,y,l,n,r,d,s,x,w,E,A,N,P,_,I]),C.useEffect(()=>{i.current.insideReactTree=!1},[i,y,l]);const W=C.useMemo(()=>({onKeyDown:E,...f&&{[SS[u]]:z=>{r(!1,z.nativeEvent,"reference-press")},...u!=="click"&&{onClick(z){r(!1,z.nativeEvent,"reference-press")}}}}),[E,r,f,u]),j=C.useMemo(()=>({onKeyDown:E,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[kS[l]]:()=>{i.current.insideReactTree=!0}}),[E,l,i]);return C.useMemo(()=>s?{reference:W,floating:j}:{},[s,W,j])}function TS(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=vS(),i=C.useRef({}),[s]=C.useState(()=>wS()),a=_S()!=null;if(process.env.NODE_ENV!=="production"){const h=r.reference;h&&!He(h)&&xS("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,l]=C.useState(r.reference),f=si((h,m,g)=>{i.current.openEvent=h?m:void 0,s.emit("openchange",{open:h,event:m,reason:g,nested:a}),n==null||n(h,m,g)}),u=C.useMemo(()=>({setPositionReference:l}),[]),d=C.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return C.useMemo(()=>({dataRef:i,open:t,onOpenChange:f,elements:d,events:s,floatingId:o,refs:u}),[t,f,d,s,o,u])}function Bb(e){e===void 0&&(e={});const{nodeId:t}=e,n=TS({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=C.useState(null),[a,c]=C.useState(null),f=(o==null?void 0:o.domReference)||i,u=C.useRef(null),d=zb();cu(()=>{f&&(u.current=f)},[f]);const h=WC({...e,elements:{...o,...a&&{reference:a}}}),m=C.useCallback(x=>{const w=He(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;c(w),h.refs.setReference(w)},[h.refs]),g=C.useCallback(x=>{(He(x)||x===null)&&(u.current=x,s(x)),(He(h.refs.reference.current)||h.refs.reference.current===null||x!==null&&!He(x))&&h.refs.setReference(x)},[h.refs]),p=C.useMemo(()=>({...h.refs,setReference:g,setPositionReference:m,domReference:u}),[h.refs,g,m]),y=C.useMemo(()=>({...h.elements,domReference:f}),[h.elements,f]),b=C.useMemo(()=>({...h,...r,refs:p,elements:y,nodeId:t}),[h,p,y,t,r]);return cu(()=>{r.dataRef.current.floatingContext=b;const x=d==null?void 0:d.nodesRef.current.find(w=>w.id===t);x&&(x.context=b)}),C.useMemo(()=>({...h,context:b,refs:p,elements:y}),[h,p,y,b])}function jl(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[Jm]:s,[Xm]:a,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[mS]:""},...i,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(c=>{let[l,f]=c;if(!(o&&[Jm,Xm].includes(l)))if(l.indexOf("on")===0){if(r.has(l)||r.set(l,[]),typeof f=="function"){var u;(u=r.get(l))==null||u.push(f),s[l]=function(){for(var d,h=arguments.length,m=new Array(h),g=0;g<h;g++)m[g]=arguments[g];return(d=r.get(l))==null?void 0:d.map(p=>p(...m)).find(p=>p!==void 0)}}}else s[l]=f}),s),{})}}function Ub(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),o=C.useCallback(a=>jl(a,e,"reference"),t),i=C.useCallback(a=>jl(a,e,"floating"),n),s=C.useCallback(a=>jl(a,e,"item"),r);return C.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}const NS={white:"cnf:bg-white cnf:text-dark-300 cnf:border cnf:border-gray-300",primary:"cnf:bg-primary-600",secondary:"cnf:bg-secondary-500",success:"cnf:bg-success-600",info:"cnf:bg-info-500",warning:"cnf:bg-warning-500 cnf:text-gray-800",danger:"cnf:bg-danger-500",steel:"cnf:bg-steel-500",orange:"cnf:bg-orange-500",purple:"cnf:bg-purple-500",grayDark:"cnf:bg-gray-900",grayLight:"cnf:bg-gray-100 cnf:text-gray-800"},OS={white:"cnf:text-white cnf:border cnf:border-white",primary:"cnf:text-primary-600 cnf:border cnf:border-primary-600",secondary:"cnf:text-secondary-500 cnf:border cnf:border-secondary-500",success:"cnf:text-success-600 cnf:border cnf:border-success-600",info:"cnf:text-info-500 cnf:border cnf:border-info-500",warning:"cnf:text-warning-500 cnf:border cnf:border-warning-500",danger:"cnf:text-danger-500 cnf:border cnf:border-danger-500",steel:"cnf:text-steel-500 cnf:border cnf:border-steel-500",orange:"cnf:text-orange-500 cnf:border cnf:border-orange-500",purple:"cnf:text-purple-500 cnf:border cnf:border-purple-500",grayDark:"cnf:text-gray-700 cnf:border cnf:border-gray-700",grayLight:"cnf:text-gray-500 cnf:border cnf:border-gray-100"},PS={white:"cnf:text-dark-300",primary:"cnf:text-white",secondary:"cnf:text-white",success:"cnf:text-white",info:"cnf:text-black",warning:"cnf:text-gray-800",danger:"cnf:text-white",steel:"cnf:text-white",orange:"cnf:text-black",purple:"cnf:text-white",grayDark:"cnf:text-white",grayLight:"cnf:text-gray-800"},MS={normal:"cnf:rounded",pill:"cnf:rounded-pill"},IS={big:"cnf:h-[24px] cnf:leading-[24px] cnf:text-md cnf:px-1",medium:"cnf:h-[22px] cnf:leading-[22px] cnf:text-sm cnf:px-[2px]",small:"cnf:h-[18px] cnf:leading-[18px] cnf:text-xs cnf:px-[2px]"},Wb=({category:e="solid",color:t="primary",roundness:n="normal",size:r="medium",textClassName:o="cnf:uppercase",children:i,className:s,...a})=>{const c=T.useMemo(()=>PS[t]??"cnf:text-white",[t]),l=T.useMemo(()=>hi(c,e==="outline"?OS[t]:NS[t],MS[n],IS[r]),[c,e,t,r,n]);return v.jsx("div",{className:hi("ui-badge cnf:flex cnf:items-center cnf:font-bold",l,s),style:a==null?void 0:a.style,"data-testid":"badge","data-category":e,"data-color":t,...a,children:v.jsx("p",{className:hi("cnf:mx-1",o),children:i})})},LS={default:"cnf:text-secondary-600 cnf:border-secondary-600",primary:"cnf:text-primary-600 cnf:border-primary-600",success:"cnf:text-success-600 cnf:border-success-600"},RS=({transition:e,onClick:t})=>v.jsxs("div",{className:xe("cnf:py-1 cnf:px-3 cnf:space-x-2 cnf:flex cnf:items-center cnf:hover:bg-gray-100 cnf:cursor-pointer",e.disabled&&"cnf:opacity-50 cnf:cursor-not-allowed cnf:hover:bg-transparent"),onClick:n=>{e.disabled||(n.stopPropagation(),t())},children:[v.jsx("span",{className:"cnf:text-base cnf:text-dark cnf:flex-1",children:e.action}),v.jsx(Ce,{icon:E_,className:"cnf:text-gray-400 cnf:size-4"}),v.jsx(Wb,{category:"outline",color:e.color,children:e.to})]}),DS=({title:e,variant:t="default",transitions:n,verificationType:r,taskVerified:o,onClick:i})=>{const[s,a]=T.useState(!1),{refs:c,floatingStyles:l,context:f}=Bb({strategy:"fixed",placement:"bottom-end",open:s,onOpenChange:a}),u=$b(f,{outsidePress:!0}),{getReferenceProps:d,getFloatingProps:h}=Ub([u]);return v.jsxs(v.Fragment,{children:[v.jsxs("div",{onClick:n!=null&&n.length?()=>a(m=>!m):void 0,ref:c.setReference,className:xe("cnf:px-1 cnf:uppercase cnf:border cnf:rounded-sm cnf:inline-flex cnf:items-center cnf:space-x-1 cnf:flex-shrink-0 cnf:whitespace-nowrap",n.length?"cnf:cursor-pointer":"cnf:pointer-events-none",LS[t]),...d(),children:[r===Kn.COMMENT&&v.jsx(Ce,{icon:o?Yy:x_,className:xe("cnf:size-4",e==="In progress"&&(o?"cnf:text-success-600":"cnf:text-danger-600"))}),v.jsx("span",{className:"cnf:text-sm cnf:font-bold",children:e}),n.length>0?v.jsx(Ce,{icon:Jy,className:"cnf:size-4"}):v.jsx(v.Fragment,{})]}),s&&n.length&&v.jsx("div",{ref:c.setFloating,style:l,className:xe("cnf:border cnf:border-gray-200 cnf:py-1.5 cnf:rounded-sm cnf:min-w-[172px] cnf:bg-white cnf:shadow-dark/50"),...h(),children:n.map(m=>v.jsx(RS,{transition:m,onClick:()=>{i==null||i(m.id),a(!1)}},m.id))})]})},rp=({description:e})=>{const t=T.useMemo(()=>{const n=/https:\/\/[^/]+\/api\/files/g,r=e==null?void 0:e.replaceAll(n,`${nm}`),o=r==null?void 0:r.replaceAll('src="/api/files',`src="${nm}`),a=new DOMParser().parseFromString(o,"text/html").querySelectorAll("img");return a==null||a.forEach(c=>{const l=c.getAttribute("src");l&&(new Image().src=l)}),o},[e]);return T.useEffect(()=>{},[t]),v.jsx("div",{className:"cnf:flex cnf:flex-col cnf:gap-4",children:v.jsx("div",{style:{display:"unset"},className:"lexical-view-mode",dangerouslySetInnerHTML:{__html:t}})})},FS={SEQUENTIAL:"Sequential"},jS={[Ue.IN_REVIEW]:"In Review"},zS={[Ue.OPEN]:"cnf:bg-secondary-500",[Ue.IN_PROGRESS]:"cnf:bg-primary-600",[Ue.IN_REVIEW]:"cnf:bg-success-600",[Ue.COMPLETED]:"cnf:bg-success-600"},$S=({playbookType:e,status:t,step:n,isSelected:r,onSelect:o})=>v.jsx("div",{className:Ns("cnf:flex cnf:flex-col cnf:items-center cnf:justify-center",r?"cnf:bg-[#FFE600]":zS[t],o&&"cnf:cursor-pointer"),onClick:i=>{i.stopPropagation(),o==null||o(i.shiftKey)},children:v.jsx("span",{className:Ns("cnf:text-orientation-mixed cnf:w-[27px] cnf:flex cnf:items-center cnf:whitespace-nowrap cnf:px-2 cnf:text-sm cnf:font-bold cnf:[writing-mode:vertical-lr]",r?"cnf:text-black":"cnf:text-white"),children:e===FS.SEQUENTIAL?`STEP ${n}`:(jS[t]||t).toUpperCase()})}),BS={[Ue.OPEN]:"secondary",[Ue.IN_PROGRESS]:"primary",[Ue.IN_REVIEW]:"success",[Ue.COMPLETED]:"success"},Kb=({status:e,category:t="outline",className:n=""})=>v.jsx(Wb,{category:t,color:BS[e],className:n,children:e}),dt={INFO:"Info",WARNING:"Warning",DANGER:"Danger",SUCCESS:"Success"};/*!
585
+ }`;function Eb(){const e=yb,t=bb,n=fe.cssPrefix,r=fe.replacementClass;let o=z_;if(n!==e||r!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return o}let Om=!1;function Il(){fe.autoAddCss&&!Om&&(L_(Eb()),Om=!0)}var $_={mixout(){return{dom:{css:Eb,insertCss:Il}}},hooks(){return{beforeDOMElementCreation(){Il()},beforeI2svg(){Il()}}}};const or=Dr||{};or[rr]||(or[rr]={});or[rr].styles||(or[rr].styles={});or[rr].hooks||(or[rr].hooks={});or[rr].shims||(or[rr].shims=[]);var Sn=or[rr];const _b=[],Sb=function(){$e.removeEventListener("DOMContentLoaded",Sb),lc=1,_b.map(e=>e())};let lc=!1;lr&&(lc=($e.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test($e.readyState),lc||$e.addEventListener("DOMContentLoaded",Sb));function B_(e){lr&&(lc?setTimeout(e,0):_b.push(e))}function ta(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?Cb(e):"<".concat(t," ").concat(D_(n),">").concat(r.map(ta).join(""),"</").concat(t,">")}function Pm(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Ll=function(t,n,r,o){var i=Object.keys(t),s=i.length,a=n,c,l,f;for(r===void 0?(c=1,f=t[i[0]]):(c=0,f=r);c<s;c++)l=i[c],f=a(f,t[l],l,t);return f};function U_(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((o&1023)<<10)+(i&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}function Qf(e){const t=U_(e);return t.length===1?t[0].toString(16):null}function W_(e,t){const n=e.length;let r=e.charCodeAt(t),o;return r>=55296&&r<=56319&&n>t+1&&(o=e.charCodeAt(t+1),o>=56320&&o<=57343)?(r-55296)*1024+o-56320+65536:r}function Mm(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Zf(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,o=Mm(t);typeof Sn.hooks.addPack=="function"&&!r?Sn.hooks.addPack(e,Mm(t)):Sn.styles[e]=q(q({},Sn.styles[e]||{}),o),e==="fas"&&Zf("fa",t)}const{styles:Rs,shims:K_}=Sn,kb=Object.keys(xd),H_=kb.reduce((e,t)=>(e[t]=Object.keys(xd[t]),e),{});let Cd=null,Tb={},Nb={},Ob={},Pb={},Mb={};function q_(e){return~O_.indexOf(e)}function V_(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!q_(o)?o:null}const Ib=()=>{const e=r=>Ll(Rs,(o,i,s)=>(o[s]=Ll(i,r,{}),o),{});Tb=e((r,o,i)=>(o[3]&&(r[o[3]]=i),o[2]&&o[2].filter(a=>typeof a=="number").forEach(a=>{r[a.toString(16)]=i}),r)),Nb=e((r,o,i)=>(r[i]=i,o[2]&&o[2].filter(a=>typeof a=="string").forEach(a=>{r[a]=i}),r)),Mb=e((r,o,i)=>{const s=o[2];return r[i]=i,s.forEach(a=>{r[a]=i}),r});const t="far"in Rs||fe.autoFetchSvg,n=Ll(K_,(r,o)=>{const i=o[0];let s=o[1];const a=o[2];return s==="far"&&!t&&(s="fas"),typeof i=="string"&&(r.names[i]={prefix:s,iconName:a}),typeof i=="number"&&(r.unicodes[i.toString(16)]={prefix:s,iconName:a}),r},{names:{},unicodes:{}});Ob=n.names,Pb=n.unicodes,Cd=Vc(fe.styleDefault,{family:fe.familyDefault})};I_(e=>{Cd=Vc(e.styleDefault,{family:fe.familyDefault})});Ib();function Ed(e,t){return(Tb[e]||{})[t]}function Y_(e,t){return(Nb[e]||{})[t]}function co(e,t){return(Mb[e]||{})[t]}function Lb(e){return Ob[e]||{prefix:null,iconName:null}}function G_(e){const t=Pb[e],n=Ed("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Fr(){return Cd}const Rb=()=>({prefix:null,iconName:null,rest:[]});function Q_(e){let t=wt;const n=kb.reduce((r,o)=>(r[o]="".concat(fe.cssPrefix,"-").concat(o),r),{});return pb.forEach(r=>{(e.includes(n[r])||e.some(o=>H_[r].includes(o)))&&(t=r)}),t}function Vc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=__[n][e];if(n===Hc&&!e)return"fad";const o=Nm[n][e]||Nm[n][r],i=e in Sn.styles?e:null;return o||i||null}function Z_(e){let t=[],n=null;return e.forEach(r=>{const o=V_(fe.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function Im(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function Yc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const o=Kf.concat(h_),i=Im(e.filter(u=>o.includes(u))),s=Im(e.filter(u=>!Kf.includes(u))),a=i.filter(u=>(r=u,!mb.includes(u))),[c=null]=a,l=Q_(i),f=q(q({},Z_(s)),{},{prefix:Vc(c,{family:l})});return q(q(q({},f),t4({values:e,family:l,styles:Rs,config:fe,canonical:f,givenPrefix:r})),J_(n,r,f))}function J_(e,t,n){let{prefix:r,iconName:o}=n;if(e||!r||!o)return{prefix:r,iconName:o};const i=t==="fa"?Lb(o):{},s=co(r,o);return o=i.iconName||s||o,r=i.prefix||r,r==="far"&&!Rs.far&&Rs.fas&&!fe.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}const X_=pb.filter(e=>e!==wt||e!==Hc),e4=Object.keys(Wf).filter(e=>e!==wt).map(e=>Object.keys(Wf[e])).flat();function t4(e){const{values:t,family:n,canonical:r,givenPrefix:o="",styles:i={},config:s={}}=e,a=n===Hc,c=t.includes("fa-duotone")||t.includes("fad"),l=s.familyDefault==="duotone",f=r.prefix==="fad"||r.prefix==="fa-duotone";if(!a&&(c||l||f)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&X_.includes(n)&&(Object.keys(i).find(d=>e4.includes(d))||s.autoFetchSvg)){const d=i_.get(n).defaultShortPrefixId;r.prefix=d,r.iconName=co(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||o==="fa")&&(r.prefix=Fr()||"fas"),r}class n4{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach(i=>{this.definitions[i]=q(q({},this.definitions[i]||{}),o[i]),Zf(i,o[i]);const s=xd[wt][i];s&&Zf(s,o[i]),Ib()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(o=>{const{prefix:i,iconName:s,icon:a}=r[o],c=a[2];t[i]||(t[i]={}),c.length>0&&c.forEach(l=>{typeof l=="string"&&(t[i][l]=a)}),t[i][s]=a}),t}}let Lm=[],ui={};const yi={},r4=Object.keys(yi);function o4(e,t){let{mixoutsTo:n}=t;return Lm=e,ui={},Object.keys(yi).forEach(r=>{r4.indexOf(r)===-1&&delete yi[r]}),Lm.forEach(r=>{const o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(i=>{typeof o[i]=="function"&&(n[i]=o[i]),typeof o[i]=="object"&&Object.keys(o[i]).forEach(s=>{n[i]||(n[i]={}),n[i][s]=o[i][s]})}),r.hooks){const i=r.hooks();Object.keys(i).forEach(s=>{ui[s]||(ui[s]=[]),ui[s].push(i[s])})}r.provides&&r.provides(yi)}),n}function Jf(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return(ui[e]||[]).forEach(s=>{t=s.apply(null,[t,...r])}),t}function Po(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(ui[e]||[]).forEach(i=>{i.apply(null,n)})}function jr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return yi[e]?yi[e].apply(null,t):void 0}function Xf(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Fr();if(t)return t=co(n,t)||t,Pm(Db.definitions,n,t)||Pm(Sn.styles,n,t)}const Db=new n4,i4=()=>{fe.autoReplaceSvg=!1,fe.observeMutations=!1,Po("noAuto")},s4={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return lr?(Po("beforeI2svg",e),jr("pseudoElements2svg",e),jr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;fe.autoReplaceSvg===!1&&(fe.autoReplaceSvg=!0),fe.observeMutations=!0,B_(()=>{c4({autoReplaceSvgRoot:t}),Po("watch",e)})}},a4={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:co(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=Vc(e[0]);return{prefix:n,iconName:co(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(fe.cssPrefix,"-"))>-1||e.match(S_))){const t=Yc(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Fr(),iconName:co(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Fr();return{prefix:t,iconName:co(t,e)||e}}}},Kt={noAuto:i4,config:fe,dom:s4,parse:a4,library:Db,findIconDefinition:Xf,toHtml:ta},c4=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=$e}=e;(Object.keys(Sn.styles).length>0||fe.autoFetchSvg)&&lr&&fe.autoReplaceSvg&&Kt.dom.i2svg({node:t})};function Gc(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>ta(n))}}),Object.defineProperty(e,"node",{get:function(){if(!lr)return;const n=$e.createElement("div");return n.innerHTML=e.html,n.children}}),e}function l4(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:s}=e;if(Ad(s)&&n.found&&!r.found){const{width:a,height:c}=n,l={x:a/c/2,y:.5};o.style=qc(q(q({},i),{},{"transform-origin":"".concat(l.x+s.x/16,"em ").concat(l.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function f4(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const s=i===!0?"".concat(t,"-").concat(fe.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:q(q({},o),{},{id:s}),children:r}]}]}function _d(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:s,title:a,maskId:c,titleId:l,extra:f,watchable:u=!1}=e,{width:d,height:h}=n.found?n:t,m=f_.includes(r),p=[fe.replacementClass,o?"".concat(fe.cssPrefix,"-").concat(o):""].filter(A=>f.classes.indexOf(A)===-1).filter(A=>A!==""||!!A).concat(f.classes).join(" ");let g={children:[],attributes:q(q({},f.attributes),{},{"data-prefix":r,"data-icon":o,class:p,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(h)})};const y=m&&!~f.classes.indexOf("fa-fw")?{width:"".concat(d/h*16*.0625,"em")}:{};u&&(g.attributes[Oo]=""),a&&(g.children.push({tag:"title",attributes:{id:g.attributes["aria-labelledby"]||"title-".concat(l||Ls())},children:[a]}),delete g.attributes.title);const b=q(q({},g),{},{prefix:r,iconName:o,main:t,mask:n,maskId:c,transform:i,symbol:s,styles:q(q({},y),f.styles)}),{children:x,attributes:w}=n.found&&t.found?jr("generateAbstractMask",b)||{children:[],attributes:{}}:jr("generateAbstractIcon",b)||{children:[],attributes:{}};return b.children=x,b.attributes=w,s?f4(b):l4(b)}function Rm(e){const{content:t,width:n,height:r,transform:o,title:i,extra:s,watchable:a=!1}=e,c=q(q(q({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});a&&(c[Oo]="");const l=q({},s.styles);Ad(o)&&(l.transform=j_({transform:o,startCentered:!0,width:n,height:r}),l["-webkit-transform"]=l.transform);const f=qc(l);f.length>0&&(c.style=f);const u=[];return u.push({tag:"span",attributes:c,children:[t]}),i&&u.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),u}function u4(e){const{content:t,title:n,extra:r}=e,o=q(q(q({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=qc(r.styles);i.length>0&&(o.style=i);const s=[];return s.push({tag:"span",attributes:o,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}const{styles:Rl}=Sn;function eu(e){const t=e[0],n=e[1],[r]=e.slice(4);let o=null;return Array.isArray(r)?o={tag:"g",attributes:{class:"".concat(fe.cssPrefix,"-").concat(Ml.GROUP)},children:[{tag:"path",attributes:{class:"".concat(fe.cssPrefix,"-").concat(Ml.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(fe.cssPrefix,"-").concat(Ml.PRIMARY),fill:"currentColor",d:r[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const d4={found:!1,width:512,height:512};function h4(e,t){!vb&&!fe.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function tu(e,t){let n=t;return t==="fa"&&fe.styleDefault!==null&&(t=Fr()),new Promise((r,o)=>{if(n==="fa"){const i=Lb(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Rl[t]&&Rl[t][e]){const i=Rl[t][e];return r(eu(i))}h4(e,t),r(q(q({},d4),{},{icon:fe.showMissingIcons&&e?jr("missingIconAbstract")||{}:{}}))})}const Dm=()=>{},nu=fe.measurePerformance&&_a&&_a.mark&&_a.measure?_a:{mark:Dm,measure:Dm},bs='FA "6.7.2"',m4=e=>(nu.mark("".concat(bs," ").concat(e," begins")),()=>Fb(e)),Fb=e=>{nu.mark("".concat(bs," ").concat(e," ends")),nu.measure("".concat(bs," ").concat(e),"".concat(bs," ").concat(e," begins"),"".concat(bs," ").concat(e," ends"))};var Sd={begin:m4,end:Fb};const Wa=()=>{};function Fm(e){return typeof(e.getAttribute?e.getAttribute(Oo):null)=="string"}function p4(e){const t=e.getAttribute?e.getAttribute(bd):null,n=e.getAttribute?e.getAttribute(vd):null;return t&&n}function g4(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(fe.replacementClass)}function y4(){return fe.autoReplaceSvg===!0?Ka.replace:Ka[fe.autoReplaceSvg]||Ka.replace}function b4(e){return $e.createElementNS("http://www.w3.org/2000/svg",e)}function v4(e){return $e.createElement(e)}function jb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?b4:v4}=t;if(typeof e=="string")return $e.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(i){r.setAttribute(i,e.attributes[i])}),(e.children||[]).forEach(function(i){r.appendChild(jb(i,{ceFn:n}))}),r}function x4(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Ka={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(jb(n),t)}),t.getAttribute(Oo)===null&&fe.keepOriginalSource){let n=$e.createComment(x4(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~wd(t).indexOf(fe.replacementClass))return Ka.replace(e);const r=new RegExp("".concat(fe.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const i=n[0].attributes.class.split(" ").reduce((s,a)=>(a===fe.replacementClass||a.match(r)?s.toSvg.push(a):s.toNode.push(a),s),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}const o=n.map(i=>ta(i)).join(`
586
+ `);t.setAttribute(Oo,""),t.innerHTML=o}};function jm(e){e()}function zb(e,t){const n=typeof t=="function"?t:Wa;if(e.length===0)n();else{let r=jm;fe.mutateApproach===C_&&(r=Dr.requestAnimationFrame||jm),r(()=>{const o=y4(),i=Sd.begin("mutate");e.map(o),i(),n()})}}let kd=!1;function $b(){kd=!0}function ru(){kd=!1}let fc=null;function zm(e){if(!_m||!fe.observeMutations)return;const{treeCallback:t=Wa,nodeCallback:n=Wa,pseudoElementsCallback:r=Wa,observeMutationsRoot:o=$e}=e;fc=new _m(i=>{if(kd)return;const s=Fr();Yi(i).forEach(a=>{if(a.type==="childList"&&a.addedNodes.length>0&&!Fm(a.addedNodes[0])&&(fe.searchPseudoElements&&r(a.target),t(a.target)),a.type==="attributes"&&a.target.parentNode&&fe.searchPseudoElements&&r(a.target.parentNode),a.type==="attributes"&&Fm(a.target)&&~N_.indexOf(a.attributeName))if(a.attributeName==="class"&&p4(a.target)){const{prefix:c,iconName:l}=Yc(wd(a.target));a.target.setAttribute(bd,c||s),l&&a.target.setAttribute(vd,l)}else g4(a.target)&&n(a.target)})}),lr&&fc.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function w4(){fc&&fc.disconnect()}function A4(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,o)=>{const i=o.split(":"),s=i[0],a=i.slice(1);return s&&a.length>0&&(r[s]=a.join(":").trim()),r},{})),n}function C4(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let o=Yc(wd(e));return o.prefix||(o.prefix=Fr()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=Y_(o.prefix,e.innerText)||Ed(o.prefix,Qf(e.innerText))),!o.iconName&&fe.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function E4(e){const t=Yi(e.attributes).reduce((o,i)=>(o.name!=="class"&&o.name!=="style"&&(o[i.name]=i.value),o),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return fe.autoA11y&&(n?t["aria-labelledby"]="".concat(fe.replacementClass,"-title-").concat(r||Ls()):(t["aria-hidden"]="true",t.focusable="false")),t}function _4(){return{iconName:null,title:null,titleId:null,prefix:null,transform:_n,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function $m(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=C4(e),i=E4(e),s=Jf("parseNodeAttributes",{},e);let a=t.styleParser?A4(e):[];return q({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:_n,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:a,attributes:i}},s)}const{styles:S4}=Sn;function Bb(e){const t=fe.autoReplaceSvg==="nest"?$m(e,{styleParser:!1}):$m(e);return~t.extra.classes.indexOf(wb)?jr("generateLayersText",e,t):jr("generateSvgReplacementMutation",e,t)}function k4(){return[...a_,...Kf]}function Bm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!lr)return Promise.resolve();const n=$e.documentElement.classList,r=f=>n.add("".concat(Tm,"-").concat(f)),o=f=>n.remove("".concat(Tm,"-").concat(f)),i=fe.autoFetchSvg?k4():mb.concat(Object.keys(S4));i.includes("fa")||i.push("fa");const s=[".".concat(wb,":not([").concat(Oo,"])")].concat(i.map(f=>".".concat(f,":not([").concat(Oo,"])"))).join(", ");if(s.length===0)return Promise.resolve();let a=[];try{a=Yi(e.querySelectorAll(s))}catch{}if(a.length>0)r("pending"),o("complete");else return Promise.resolve();const c=Sd.begin("onTree"),l=a.reduce((f,u)=>{try{const d=Bb(u);d&&f.push(d)}catch(d){vb||d.name==="MissingIcon"&&console.error(d)}return f},[]);return new Promise((f,u)=>{Promise.all(l).then(d=>{zb(d,()=>{r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),c(),f()})}).catch(d=>{c(),u(d)})})}function T4(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Bb(e).then(n=>{n&&zb([n],t)})}function N4(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:Xf(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:Xf(o||{})),e(r,q(q({},n),{},{mask:o}))}}const O4=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=_n,symbol:r=!1,mask:o=null,maskId:i=null,title:s=null,titleId:a=null,classes:c=[],attributes:l={},styles:f={}}=t;if(!e)return;const{prefix:u,iconName:d,icon:h}=e;return Gc(q({type:"icon"},e),()=>(Po("beforeDOMElementCreation",{iconDefinition:e,params:t}),fe.autoA11y&&(s?l["aria-labelledby"]="".concat(fe.replacementClass,"-title-").concat(a||Ls()):(l["aria-hidden"]="true",l.focusable="false")),_d({icons:{main:eu(h),mask:o?eu(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:u,iconName:d,transform:q(q({},_n),n),symbol:r,title:s,maskId:i,titleId:a,extra:{attributes:l,styles:f,classes:c}})))};var P4={mixout(){return{icon:N4(O4)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Bm,e.nodeCallback=T4,e}}},provides(e){e.i2svg=function(t){const{node:n=$e,callback:r=()=>{}}=t;return Bm(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:o,titleId:i,prefix:s,transform:a,symbol:c,mask:l,maskId:f,extra:u}=n;return new Promise((d,h)=>{Promise.all([tu(r,s),l.iconName?tu(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(m=>{let[p,g]=m;d([t,_d({icons:{main:p,mask:g},prefix:s,iconName:r,transform:a,symbol:c,maskId:f,title:o,titleId:i,extra:u,watchable:!0})])}).catch(h)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:o,transform:i,styles:s}=t;const a=qc(s);a.length>0&&(r.style=a);let c;return Ad(i)&&(c=jr("generateAbstractTransformGrouping",{main:o,transform:i,containerWidth:o.width,iconWidth:o.width})),n.push(c||o.icon),{children:n,attributes:r}}}},M4={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return Gc({type:"layer"},()=>{Po("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(o=>{Array.isArray(o)?o.map(i=>{r=r.concat(i.abstract)}):r=r.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(fe.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},I4={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:o={},styles:i={}}=t;return Gc({type:"counter",content:e},()=>(Po("beforeDOMElementCreation",{content:e,params:t}),u4({content:e.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(fe.cssPrefix,"-layers-counter"),...r]}})))}}}},L4={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=_n,title:r=null,classes:o=[],attributes:i={},styles:s={}}=t;return Gc({type:"text",content:e},()=>(Po("beforeDOMElementCreation",{content:e,params:t}),Rm({content:e,transform:q(q({},_n),n),title:r,extra:{attributes:i,styles:s,classes:["".concat(fe.cssPrefix,"-layers-text"),...o]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:o,extra:i}=n;let s=null,a=null;if(db){const c=parseInt(getComputedStyle(t).fontSize,10),l=t.getBoundingClientRect();s=l.width/c,a=l.height/c}return fe.autoA11y&&!r&&(i.attributes["aria-hidden"]="true"),Promise.resolve([t,Rm({content:t.innerHTML,width:s,height:a,transform:o,title:r,extra:i,watchable:!0})])}}};const R4=new RegExp('"',"ug"),Um=[1105920,1112319],Wm=q(q(q(q({},{FontAwesome:{normal:"fas",400:"fas"}}),o_),w_),m_),ou=Object.keys(Wm).reduce((e,t)=>(e[t.toLowerCase()]=Wm[t],e),{}),D4=Object.keys(ou).reduce((e,t)=>{const n=ou[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function F4(e){const t=e.replace(R4,""),n=W_(t,0),r=n>=Um[0]&&n<=Um[1],o=t.length===2?t[0]===t[1]:!1;return{value:Qf(o?t[0]:t),isSecondary:r||o}}function j4(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(ou[n]||{})[o]||D4[n]}function Km(e,t){const n="".concat(A_).concat(t.replace(":","-"));return new Promise((r,o)=>{if(e.getAttribute(n)!==null)return r();const s=Yi(e.children).filter(d=>d.getAttribute(qf)===t)[0],a=Dr.getComputedStyle(e,t),c=a.getPropertyValue("font-family"),l=c.match(k_),f=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(s&&!l)return e.removeChild(s),r();if(l&&u!=="none"&&u!==""){const d=a.getPropertyValue("content");let h=j4(c,f);const{value:m,isSecondary:p}=F4(d),g=l[0].startsWith("FontAwesome");let y=Ed(h,m),b=y;if(g){const x=G_(m);x.iconName&&x.prefix&&(y=x.iconName,h=x.prefix)}if(y&&!p&&(!s||s.getAttribute(bd)!==h||s.getAttribute(vd)!==b)){e.setAttribute(n,b),s&&e.removeChild(s);const x=_4(),{extra:w}=x;w.attributes[qf]=t,tu(y,h).then(A=>{const E=_d(q(q({},x),{},{icons:{main:A,mask:Rb()},prefix:h,iconName:b,extra:w,watchable:!0})),_=$e.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(_,e.firstChild):e.appendChild(_),_.outerHTML=E.map(S=>ta(S)).join(`
587
+ `),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function z4(e){return Promise.all([Km(e,"::before"),Km(e,"::after")])}function $4(e){return e.parentNode!==document.head&&!~E_.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(qf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Hm(e){if(lr)return new Promise((t,n)=>{const r=Yi(e.querySelectorAll("*")).filter($4).map(z4),o=Sd.begin("searchPseudoElements");$b(),Promise.all(r).then(()=>{o(),ru(),t()}).catch(()=>{o(),ru(),n()})})}var B4={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Hm,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=$e}=t;fe.searchPseudoElements&&Hm(n)}}};let qm=!1;var U4={mixout(){return{dom:{unwatch(){$b(),qm=!0}}}},hooks(){return{bootstrap(){zm(Jf("mutationObserverCallbacks",{}))},noAuto(){w4()},watch(e){const{observeMutationsRoot:t}=e;qm?ru():zm(Jf("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Vm=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const o=r.toLowerCase().split("-"),i=o[0];let s=o.slice(1).join("-");if(i&&s==="h")return n.flipX=!0,n;if(i&&s==="v")return n.flipY=!0,n;if(s=parseFloat(s),isNaN(s))return n;switch(i){case"grow":n.size=n.size+s;break;case"shrink":n.size=n.size-s;break;case"left":n.x=n.x-s;break;case"right":n.x=n.x+s;break;case"up":n.y=n.y-s;break;case"down":n.y=n.y+s;break;case"rotate":n.rotate=n.rotate+s;break}return n},t)};var W4={mixout(){return{parse:{transform:e=>Vm(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Vm(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:o,iconWidth:i}=t;const s={transform:"translate(".concat(o/2," 256)")},a="translate(".concat(r.x*32,", ").concat(r.y*32,") "),c="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),l="rotate(".concat(r.rotate," 0 0)"),f={transform:"".concat(a," ").concat(c," ").concat(l)},u={transform:"translate(".concat(i/2*-1," -256)")},d={outer:s,inner:f,path:u};return{tag:"g",attributes:q({},d.outer),children:[{tag:"g",attributes:q({},d.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:q(q({},n.icon.attributes),d.path)}]}]}}}};const Dl={x:0,y:0,width:"100%",height:"100%"};function Ym(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function K4(e){return e.tag==="g"?e.children:[e]}var H4={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?Yc(n.split(" ").map(o=>o.trim())):Rb();return r.prefix||(r.prefix=Fr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:o,mask:i,maskId:s,transform:a}=t;const{width:c,icon:l}=o,{width:f,icon:u}=i,d=F_({transform:a,containerWidth:f,iconWidth:c}),h={tag:"rect",attributes:q(q({},Dl),{},{fill:"white"})},m=l.children?{children:l.children.map(Ym)}:{},p={tag:"g",attributes:q({},d.inner),children:[Ym(q({tag:l.tag,attributes:q(q({},l.attributes),d.path)},m))]},g={tag:"g",attributes:q({},d.outer),children:[p]},y="mask-".concat(s||Ls()),b="clip-".concat(s||Ls()),x={tag:"mask",attributes:q(q({},Dl),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,g]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:K4(u)},x]};return n.push(w,{tag:"rect",attributes:q({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(y,")")},Dl)}),{children:n,attributes:r}}}},q4={provides(e){let t=!1;Dr.matchMedia&&(t=Dr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:q(q({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const i=q(q({},o),{},{attributeName:"opacity"}),s={tag:"circle",attributes:q(q({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||s.children.push({tag:"animate",attributes:q(q({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:q(q({},i),{},{values:"1;0;1;1;0;1;"})}),n.push(s),n.push({tag:"path",attributes:q(q({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:q(q({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:q(q({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:q(q({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},V4={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},Y4=[$_,P4,M4,I4,L4,B4,U4,W4,H4,q4,V4];o4(Y4,{mixoutsTo:Kt});Kt.noAuto;Kt.config;Kt.library;Kt.dom;const iu=Kt.parse;Kt.findIconDefinition;Kt.toHtml;const G4=Kt.icon;Kt.layer;Kt.text;Kt.counter;function su(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Q4(e){if(Array.isArray(e))return e}function Z4(e){if(Array.isArray(e))return su(e)}function vr(e,t,n){return(t=iS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function X4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(f){l=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}function eS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
588
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
589
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gm(Object(n),!0).forEach(function(r){vr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nS(e,t){if(e==null)return{};var n,r,o=rS(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Qm(e,t){return Q4(e)||X4(e,t)||Ub(e,t)||eS()}function au(e){return Z4(e)||J4(e)||Ub(e)||tS()}function oS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iS(e){var t=oS(e,"string");return typeof t=="symbol"?t:t+""}function uc(e){"@babel/helpers - typeof";return uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uc(e)}function Ub(e,t){if(e){if(typeof e=="string")return su(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?su(e,t):void 0}}var sS="7.0.0",cu;try{var aS=require("@fortawesome/fontawesome-svg-core/package.json");cu=aS.version}catch{cu=typeof process<"u"&&process.env.FA_VERSION||"7.0.0"}function cS(e){var t=e.beat,n=e.fade,r=e.beatFade,o=e.bounce,i=e.shake,s=e.flash,a=e.spin,c=e.spinPulse,l=e.spinReverse,f=e.pulse,u=e.fixedWidth,d=e.inverse,h=e.border,m=e.listItem,p=e.flip,g=e.size,y=e.rotation,b=e.pull,x=e.swapOpacity,w=e.rotateBy,A=e.widthAuto,E=lS(cu,sS),_=vr(vr(vr(vr(vr(vr({"fa-beat":t,"fa-fade":n,"fa-beat-fade":r,"fa-bounce":o,"fa-shake":i,"fa-flash":s,"fa-spin":a,"fa-spin-reverse":l,"fa-spin-pulse":c,"fa-pulse":f,"fa-fw":u,"fa-inverse":d,"fa-border":h,"fa-li":m,"fa-flip":p===!0,"fa-flip-horizontal":p==="horizontal"||p==="both","fa-flip-vertical":p==="vertical"||p==="both"},"fa-".concat(g),typeof g<"u"&&g!==null),"fa-rotate-".concat(y),typeof y<"u"&&y!==null&&y!==0),"fa-pull-".concat(b),typeof b<"u"&&b!==null),"fa-swap-opacity",x),"fa-rotate-by",E&&w),"fa-width-auto",E&&A);return Object.keys(_).map(function(S){return _[S]?S:null}).filter(function(S){return S})}function lS(e,t){for(var n=e.split("-"),r=Qm(n,2),o=r[0],i=r[1],s=t.split("-"),a=Qm(s,2),c=a[0],l=a[1],f=o.split("."),u=c.split("."),d=0;d<Math.max(f.length,u.length);d++){var h=f[d]||"0",m=u[d]||"0",p=parseInt(h,10),g=parseInt(m,10);if(p!==g)return p>g}for(var y=0;y<Math.max(f.length,u.length);y++){var b=f[y]||"0",x=u[y]||"0";if(b!==x&&b.length!==x.length)return b.length<x.length}return!(i&&!l)}function fS(e){return e=e-0,e===e}function Wb(e){return fS(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var uS=["style"];function dS(e){return e.charAt(0).toUpperCase()+e.slice(1)}function hS(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=Wb(n.slice(0,r)),i=n.slice(r+1).trim();return o.startsWith("webkit")?t[dS(o)]=i:t[o]=i,t},{})}function Kb(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(c){return Kb(e,c)}),o=Object.keys(t.attributes||{}).reduce(function(c,l){var f=t.attributes[l];switch(l){case"class":c.attrs.className=f,delete t.attributes.class;break;case"style":c.attrs.style=hS(f);break;default:l.indexOf("aria-")===0||l.indexOf("data-")===0?c.attrs[l.toLowerCase()]=f:c.attrs[Wb(l)]=f}return c},{attrs:{}}),i=n.style,s=i===void 0?{}:i,a=nS(n,uS);return o.attrs.style=Cn(Cn({},o.attrs.style),s),e.apply(void 0,[t.tag,Cn(Cn({},o.attrs),a)].concat(au(r)))}var Hb=!1;try{Hb=process.env.NODE_ENV==="production"}catch{}function mS(){if(!Hb&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Zm(e){if(e&&uc(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(iu.icon)return iu.icon(e);if(e===null)return null;if(e&&uc(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Fl(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?vr({},e,t):{}}var Jm={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,rotateBy:!1,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1,widthAuto:!1},Ee=k.forwardRef(function(e,t){var n=Cn(Cn({},Jm),e),r=n.icon,o=n.mask,i=n.symbol,s=n.className,a=n.title,c=n.titleId,l=n.maskId,f=Zm(r),u=Fl("classes",[].concat(au(cS(n)),au((s||"").split(" ")))),d=Fl("transform",typeof n.transform=="string"?iu.transform(n.transform):n.transform),h=Fl("mask",Zm(o)),m=G4(f,Cn(Cn(Cn(Cn({},u),d),h),{},{symbol:i,title:a,titleId:c,maskId:l}));if(!m)return mS("Could not find icon",f),null;var p=m.abstract,g={ref:t};return Object.keys(n).forEach(function(y){Jm.hasOwnProperty(y)||(g[y]=n[y])}),pS(p[0],g)});Ee.displayName="FontAwesomeIcon";Ee.propTypes={beat:ge.bool,border:ge.bool,beatFade:ge.bool,bounce:ge.bool,className:ge.string,fade:ge.bool,flash:ge.bool,mask:ge.oneOfType([ge.object,ge.array,ge.string]),maskId:ge.string,fixedWidth:ge.bool,inverse:ge.bool,flip:ge.oneOf([!0,!1,"horizontal","vertical","both"]),icon:ge.oneOfType([ge.object,ge.array,ge.string]),listItem:ge.bool,pull:ge.oneOf(["right","left"]),pulse:ge.bool,rotation:ge.oneOf([0,90,180,270]),rotateBy:ge.bool,shake:ge.bool,size:ge.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:ge.bool,spinPulse:ge.bool,spinReverse:ge.bool,symbol:ge.oneOfType([ge.bool,ge.string]),title:ge.string,titleId:ge.string,transform:ge.oneOfType([ge.string,ge.object]),swapOpacity:ge.bool,widthAuto:ge.bool};var pS=Kb.bind(null,k.createElement);const gS=async e=>await(await fetch(`${Rn}/playbook-task-details`,{method:"POST",body:JSON.stringify(e)})).json(),yS=({taskId:e,playbookId:t,enabled:n})=>{const{queryClient:r}=sr(),o=async()=>gS({taskId:+e,templateId:t.toString()}),i=["taskDetails",+e,t],s=Oc({queryKey:i,queryFn:o,enabled:n,staleTime:1/0},r),a=()=>{r.prefetchQuery({queryFn:o,queryKey:i,staleTime:1/0})};return{taskDetails:s.data,prefetchQuery:a,...s}},bS=({buttons:e,onButtonClick:t,disabled:n})=>v.jsx("div",{className:"cnf:flex cnf:items-center cnf:justify-end",children:e.map(r=>v.jsx(et,{size:"smallCollapse",className:"cnf:ml-2",disabled:n,onClick:()=>{t(r)},children:E2[r]},r))});function Xm(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Bf(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function ls(e){return"composedPath"in e?e.composedPath()[0]:e.target}function jl(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function vS(e){return e.matches("html,body")}function ep(e){return(e==null?void 0:e.ownerDocument)||document}function Ha(e,t,n){return n===void 0&&(n=!0),e.filter(o=>{var i;return o.parentId===t&&(!n||((i=o.context)==null?void 0:i.open))}).flatMap(o=>[o,...Ha(e,o.id,n)])}function xS(e){return"nativeEvent"in e}var wS=typeof document<"u",AS=function(){},lu=wS?k.useLayoutEffect:AS;const CS={...C},ES=CS.useInsertionEffect,_S=ES||(e=>e());function si(e){const t=C.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return _S(()=>{t.current=e}),C.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const SS="data-floating-ui-focusable",tp="active",np="selected",kS={...C};let rp=!1,TS=0;const op=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+TS++;function NS(){const[e,t]=C.useState(()=>rp?op():void 0);return lu(()=>{e==null&&t(op())},[]),C.useEffect(()=>{rp=!0},[]),e}const OS=kS.useId,PS=OS||NS;let fu;process.env.NODE_ENV!=="production"&&(fu=new Set);function MS(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=fu)!=null&&e.has(o))){var i;(i=fu)==null||i.add(o),console.error(o)}}function IS(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const LS=C.createContext(null),RS=C.createContext(null),DS=()=>{var e;return((e=C.useContext(LS))==null?void 0:e.id)||null},qb=()=>C.useContext(RS);function FS(e){return"data-floating-ui-"+e}const jS={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},zS={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ip=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function Vb(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:c=!0,outsidePressEvent:l="pointerdown",referencePress:f=!1,referencePressEvent:u="pointerdown",ancestorScroll:d=!1,bubbles:h,capture:m}=t,p=qb(),g=si(typeof c=="function"?c:()=>!1),y=typeof c=="function"?g:c,b=C.useRef(!1),{escapeKey:x,outsidePress:w}=ip(h),{escapeKey:A,outsidePress:E}=ip(m),_=C.useRef(!1),S=si(j=>{var K;if(!n||!s||!a||j.key!=="Escape"||_.current)return;const G=(K=i.current.floatingContext)==null?void 0:K.nodeId,oe=p?Ha(p.nodesRef.current,G):[];if(!x&&(j.stopPropagation(),oe.length>0)){let M=!0;if(oe.forEach(re=>{var L;if((L=re.context)!=null&&L.open&&!re.context.dataRef.current.__escapeKeyBubbles){M=!1;return}}),!M)return}r(!1,xS(j)?j.nativeEvent:j,"escape-key")}),O=si(j=>{var K;const G=()=>{var oe;S(j),(oe=ls(j))==null||oe.removeEventListener("keydown",G)};(K=ls(j))==null||K.addEventListener("keydown",G)}),P=si(j=>{var K;const G=i.current.insideReactTree;i.current.insideReactTree=!1;const oe=b.current;if(b.current=!1,l==="click"&&oe||G||typeof y=="function"&&!y(j))return;const M=ls(j),re="["+FS("inert")+"]",L=ep(o.floating).querySelectorAll(re);let z=He(M)?M:null;for(;z&&!er(z);){const Y=nr(z);if(er(Y)||!He(Y))break;z=Y}if(L.length&&He(M)&&!vS(M)&&!Xm(M,o.floating)&&Array.from(L).every(Y=>!Xm(z,Y)))return;if(dn(M)&&D){const Y=er(M),ee=Qt(M),te=/auto|scroll/,me=Y||te.test(ee.overflowX),ye=Y||te.test(ee.overflowY),pe=me&&M.clientWidth>0&&M.scrollWidth>M.clientWidth,ze=ye&&M.clientHeight>0&&M.scrollHeight>M.clientHeight,Q=ee.direction==="rtl",qe=ze&&(Q?j.offsetX<=M.offsetWidth-M.clientWidth:j.offsetX>M.clientWidth),zt=pe&&j.offsetY>M.clientHeight;if(qe||zt)return}const H=(K=i.current.floatingContext)==null?void 0:K.nodeId,W=p&&Ha(p.nodesRef.current,H).some(Y=>{var ee;return jl(j,(ee=Y.context)==null?void 0:ee.elements.floating)});if(jl(j,o.floating)||jl(j,o.domReference)||W)return;const J=p?Ha(p.nodesRef.current,H):[];if(J.length>0){let Y=!0;if(J.forEach(ee=>{var te;if((te=ee.context)!=null&&te.open&&!ee.context.dataRef.current.__outsidePressBubbles){Y=!1;return}}),!Y)return}r(!1,j,"outside-press")}),I=si(j=>{var K;const G=()=>{var oe;P(j),(oe=ls(j))==null||oe.removeEventListener(l,G)};(K=ls(j))==null||K.addEventListener(l,G)});C.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=w;let j=-1;function K(L){r(!1,L,"ancestor-scroll")}function G(){window.clearTimeout(j),_.current=!0}function oe(){j=window.setTimeout(()=>{_.current=!1},Bc()?5:0)}const M=ep(o.floating);a&&(M.addEventListener("keydown",A?O:S,A),M.addEventListener("compositionstart",G),M.addEventListener("compositionend",oe)),y&&M.addEventListener(l,E?I:P,E);let re=[];return d&&(He(o.domReference)&&(re=pi(o.domReference)),He(o.floating)&&(re=re.concat(pi(o.floating))),!He(o.reference)&&o.reference&&o.reference.contextElement&&(re=re.concat(pi(o.reference.contextElement)))),re=re.filter(L=>{var z;return L!==((z=M.defaultView)==null?void 0:z.visualViewport)}),re.forEach(L=>{L.addEventListener("scroll",K,{passive:!0})}),()=>{a&&(M.removeEventListener("keydown",A?O:S,A),M.removeEventListener("compositionstart",G),M.removeEventListener("compositionend",oe)),y&&M.removeEventListener(l,E?I:P,E),re.forEach(L=>{L.removeEventListener("scroll",K)}),window.clearTimeout(j)}},[i,o,a,y,l,n,r,d,s,x,w,S,A,O,P,E,I]),C.useEffect(()=>{i.current.insideReactTree=!1},[i,y,l]);const $=C.useMemo(()=>({onKeyDown:S,...f&&{[jS[u]]:j=>{r(!1,j.nativeEvent,"reference-press")},...u!=="click"&&{onClick(j){r(!1,j.nativeEvent,"reference-press")}}}}),[S,r,f,u]),D=C.useMemo(()=>({onKeyDown:S,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[zS[l]]:()=>{i.current.insideReactTree=!0}}),[S,l,i]);return C.useMemo(()=>s?{reference:$,floating:D}:{},[s,$,D])}function $S(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=PS(),i=C.useRef({}),[s]=C.useState(()=>IS()),a=DS()!=null;if(process.env.NODE_ENV!=="production"){const h=r.reference;h&&!He(h)&&MS("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,l]=C.useState(r.reference),f=si((h,m,p)=>{i.current.openEvent=h?m:void 0,s.emit("openchange",{open:h,event:m,reason:p,nested:a}),n==null||n(h,m,p)}),u=C.useMemo(()=>({setPositionReference:l}),[]),d=C.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return C.useMemo(()=>({dataRef:i,open:t,onOpenChange:f,elements:d,events:s,floatingId:o,refs:u}),[t,f,d,s,o,u])}function Yb(e){e===void 0&&(e={});const{nodeId:t}=e,n=$S({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=C.useState(null),[a,c]=C.useState(null),f=(o==null?void 0:o.domReference)||i,u=C.useRef(null),d=qb();lu(()=>{f&&(u.current=f)},[f]);const h=oE({...e,elements:{...o,...a&&{reference:a}}}),m=C.useCallback(x=>{const w=He(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;c(w),h.refs.setReference(w)},[h.refs]),p=C.useCallback(x=>{(He(x)||x===null)&&(u.current=x,s(x)),(He(h.refs.reference.current)||h.refs.reference.current===null||x!==null&&!He(x))&&h.refs.setReference(x)},[h.refs]),g=C.useMemo(()=>({...h.refs,setReference:p,setPositionReference:m,domReference:u}),[h.refs,p,m]),y=C.useMemo(()=>({...h.elements,domReference:f}),[h.elements,f]),b=C.useMemo(()=>({...h,...r,refs:g,elements:y,nodeId:t}),[h,g,y,t,r]);return lu(()=>{r.dataRef.current.floatingContext=b;const x=d==null?void 0:d.nodesRef.current.find(w=>w.id===t);x&&(x.context=b)}),C.useMemo(()=>({...h,context:b,refs:g,elements:y}),[h,g,y,b])}function zl(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[tp]:s,[np]:a,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[SS]:""},...i,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(c=>{let[l,f]=c;if(!(o&&[tp,np].includes(l)))if(l.indexOf("on")===0){if(r.has(l)||r.set(l,[]),typeof f=="function"){var u;(u=r.get(l))==null||u.push(f),s[l]=function(){for(var d,h=arguments.length,m=new Array(h),p=0;p<h;p++)m[p]=arguments[p];return(d=r.get(l))==null?void 0:d.map(g=>g(...m)).find(g=>g!==void 0)}}}else s[l]=f}),s),{})}}function Gb(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),o=C.useCallback(a=>zl(a,e,"reference"),t),i=C.useCallback(a=>zl(a,e,"floating"),n),s=C.useCallback(a=>zl(a,e,"item"),r);return C.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}const BS={white:"cnf:bg-white cnf:text-dark-300 cnf:border cnf:border-gray-300",primary:"cnf:bg-primary-600",secondary:"cnf:bg-secondary-500",success:"cnf:bg-success-600",info:"cnf:bg-info-500",warning:"cnf:bg-warning-500 cnf:text-gray-800",danger:"cnf:bg-danger-500",steel:"cnf:bg-steel-500",orange:"cnf:bg-orange-500",purple:"cnf:bg-purple-500",grayDark:"cnf:bg-gray-900",grayLight:"cnf:bg-gray-100 cnf:text-gray-800"},US={white:"cnf:text-white cnf:border cnf:border-white",primary:"cnf:text-primary-600 cnf:border cnf:border-primary-600",secondary:"cnf:text-secondary-500 cnf:border cnf:border-secondary-500",success:"cnf:text-success-600 cnf:border cnf:border-success-600",info:"cnf:text-info-500 cnf:border cnf:border-info-500",warning:"cnf:text-warning-500 cnf:border cnf:border-warning-500",danger:"cnf:text-danger-500 cnf:border cnf:border-danger-500",steel:"cnf:text-steel-500 cnf:border cnf:border-steel-500",orange:"cnf:text-orange-500 cnf:border cnf:border-orange-500",purple:"cnf:text-purple-500 cnf:border cnf:border-purple-500",grayDark:"cnf:text-gray-700 cnf:border cnf:border-gray-700",grayLight:"cnf:text-gray-500 cnf:border cnf:border-gray-100"},WS={white:"cnf:text-dark-300",primary:"cnf:text-white",secondary:"cnf:text-white",success:"cnf:text-white",info:"cnf:text-black",warning:"cnf:text-gray-800",danger:"cnf:text-white",steel:"cnf:text-white",orange:"cnf:text-black",purple:"cnf:text-white",grayDark:"cnf:text-white",grayLight:"cnf:text-gray-800"},KS={normal:"cnf:rounded",pill:"cnf:rounded-pill"},HS={big:"cnf:h-[24px] cnf:leading-[24px] cnf:text-md cnf:px-1",medium:"cnf:h-[22px] cnf:leading-[22px] cnf:text-sm cnf:px-[2px]",small:"cnf:h-[18px] cnf:leading-[18px] cnf:text-xs cnf:px-[2px]"},Qb=({category:e="solid",color:t="primary",roundness:n="normal",size:r="medium",textClassName:o="cnf:uppercase",children:i,className:s,...a})=>{const c=k.useMemo(()=>WS[t]??"cnf:text-white",[t]),l=k.useMemo(()=>mi(c,e==="outline"?US[t]:BS[t],KS[n],HS[r]),[c,e,t,r,n]);return v.jsx("div",{className:mi("ui-badge cnf:flex cnf:items-center cnf:font-bold",l,s),style:a==null?void 0:a.style,"data-testid":"badge","data-category":e,"data-color":t,...a,children:v.jsx("p",{className:mi("cnf:mx-1",o),children:i})})},qS={default:"cnf:text-secondary-600 cnf:border-secondary-600",primary:"cnf:text-primary-600 cnf:border-primary-600",success:"cnf:text-success-600 cnf:border-success-600"},VS=({transition:e,onClick:t})=>v.jsxs("div",{className:be("cnf:py-1 cnf:px-3 cnf:space-x-2 cnf:flex cnf:items-center cnf:hover:bg-gray-100 cnf:cursor-pointer",e.disabled&&"cnf:opacity-50 cnf:cursor-not-allowed cnf:hover:bg-transparent"),onClick:n=>{e.disabled||(n.stopPropagation(),t())},children:[v.jsx("span",{className:"cnf:text-base cnf:text-dark cnf:flex-1",children:e.action}),v.jsx(Ee,{icon:jE,className:"cnf:text-gray-400 cnf:size-4"}),v.jsx(Qb,{category:"outline",color:e.color,children:e.to})]}),YS=({title:e,variant:t="default",transitions:n,verificationType:r,taskVerified:o,onClick:i})=>{const[s,a]=k.useState(!1),{refs:c,floatingStyles:l,context:f}=Yb({strategy:"fixed",placement:"bottom-end",open:s,onOpenChange:a}),u=Vb(f,{outsidePress:!0}),{getReferenceProps:d,getFloatingProps:h}=Gb([u]);return v.jsxs(v.Fragment,{children:[v.jsxs("div",{onClick:n!=null&&n.length?()=>a(m=>!m):void 0,ref:c.setReference,className:be("cnf:px-1 cnf:uppercase cnf:border cnf:rounded-sm cnf:inline-flex cnf:items-center cnf:space-x-1 cnf:flex-shrink-0 cnf:whitespace-nowrap",n.length?"cnf:cursor-pointer":"cnf:pointer-events-none",qS[t]),...d(),children:[r===Hn.COMMENT&&v.jsx(Ee,{icon:o?eb:IE,className:be("cnf:size-4",e==="In progress"&&(o?"cnf:text-success-600":"cnf:text-danger-600"))}),v.jsx("span",{className:"cnf:text-sm cnf:font-bold",children:e}),n.length>0?v.jsx(Ee,{icon:ob,className:"cnf:size-4"}):v.jsx(v.Fragment,{})]}),s&&n.length&&v.jsx("div",{ref:c.setFloating,style:l,className:be("cnf:border cnf:border-gray-200 cnf:py-1.5 cnf:rounded-sm cnf:min-w-[172px] cnf:bg-white cnf:shadow-dark/50"),...h(),children:n.map(m=>v.jsx(VS,{transition:m,onClick:()=>{i==null||i(m.id),a(!1)}},m.id))})]})},sp=({description:e})=>{const t=k.useMemo(()=>{const n=/https:\/\/[^/]+\/api\/files/g,r=e==null?void 0:e.replaceAll(n,`${im}`),o=r==null?void 0:r.replaceAll('src="/api/files',`src="${im}`),a=new DOMParser().parseFromString(o,"text/html").querySelectorAll("img");return a==null||a.forEach(c=>{const l=c.getAttribute("src");l&&(new Image().src=l)}),o},[e]);return k.useEffect(()=>{},[t]),v.jsx("div",{className:"cnf:flex cnf:flex-col cnf:gap-4",children:v.jsx("div",{style:{display:"unset"},className:"lexical-view-mode",dangerouslySetInnerHTML:{__html:t}})})},GS={SEQUENTIAL:"Sequential"},QS={[Ue.IN_REVIEW]:"In Review"},ZS={[Ue.OPEN]:"cnf:bg-secondary-500",[Ue.IN_PROGRESS]:"cnf:bg-primary-600",[Ue.IN_REVIEW]:"cnf:bg-success-600",[Ue.COMPLETED]:"cnf:bg-success-600"},JS=({playbookType:e,status:t,step:n,isSelected:r,onSelect:o})=>v.jsx("div",{className:Os("cnf:flex cnf:flex-col cnf:items-center cnf:justify-center",r?"cnf:bg-[#FFE600]":ZS[t],o&&"cnf:cursor-pointer"),onClick:i=>{i.stopPropagation(),o==null||o(i.shiftKey)},children:v.jsx("span",{className:Os("cnf:text-orientation-mixed cnf:w-[27px] cnf:flex cnf:items-center cnf:whitespace-nowrap cnf:px-2 cnf:text-sm cnf:font-bold cnf:[writing-mode:vertical-lr]",r?"cnf:text-black":"cnf:text-white"),children:e===GS.SEQUENTIAL?`STEP ${n}`:(QS[t]||t).toUpperCase()})}),XS={[Ue.OPEN]:"secondary",[Ue.IN_PROGRESS]:"primary",[Ue.IN_REVIEW]:"success",[Ue.COMPLETED]:"success"},Zb=({status:e,category:t="outline",className:n=""})=>v.jsx(Qb,{category:t,color:XS[e],className:n,children:e}),Re={INFO:"Info",WARNING:"Warning",DANGER:"Danger",SUCCESS:"Success"};/*!
590
590
  * Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
591
591
  * License - https://fontawesome.com/license (Commercial License)
592
592
  * Copyright 2024 Fonticons, Inc.
593
- */const US={prefix:"far",iconName:"message",icon:[512,512,["comment-alt"],"f27a","M160 368c26.5 0 48 21.5 48 48l0 16 72.5-54.4c8.3-6.2 18.4-9.6 28.8-9.6L448 368c8.8 0 16-7.2 16-16l0-288c0-8.8-7.2-16-16-16L64 48c-8.8 0-16 7.2-16 16l0 288c0 8.8 7.2 16 16 16l96 0zm48 124l-.2 .2-5.1 3.8-17.1 12.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3l0-21.3 0-6.4 0-.3 0-4 0-48-48 0-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L448 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64l-138.7 0L208 492z"]},WS={prefix:"far",iconName:"strikethrough",icon:[512,512,[],"f0cc","M145.5 138c4-21.5 17.9-37.4 41.7-47.4c24.7-10.4 59.4-13.7 99.9-7.5c12.8 2 52.4 9.5 64.9 12.8c12.8 3.3 25.9-4.3 29.3-17.2s-4.3-25.9-17.2-29.3c-14.7-3.8-56.1-11.7-69.7-13.8c-46.2-7.1-90.4-4.1-125.7 10.7c-36.1 15.1-63.3 43.1-70.5 83.9c-.1 .4-.1 .9-.2 1.3c-2.8 23.4 .5 44.2 9.8 62.2c9.2 17.8 23.2 31.2 38.8 41.5c2.4 1.6 5 3.2 7.5 4.7L24 240c-13.3 0-24 10.7-24 24s10.7 24 24 24l464 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-192.2 0c-9.9-3.1-19.7-6-29.2-8.8l-.3-.1c-37.7-11.1-70.5-20.7-93.3-35.8c-10.9-7.2-18.2-14.9-22.6-23.5c-4.2-8.2-6.6-18.9-4.9-33.8zM364 337.1c3.7 8.6 5.5 20.1 2.6 36.3c-3.8 21.8-17.8 37.9-41.8 48c-24.7 10.4-59.4 13.7-99.8 7.5c-20.1-3.2-54.3-14.6-81.2-23.6c0 0 0 0 0 0s0 0 0 0c-5.9-2-11.4-3.8-16.3-5.4c-12.6-4.1-26.1 2.8-30.3 15.4s2.8 26.2 15.4 30.3c4 1.3 8.8 2.9 14 4.7c26.6 8.9 66.4 22.2 90.9 26.2l.1 0c46.2 7.1 90.4 4.1 125.7-10.7c36.1-15.1 63.3-43.1 70.5-83.9c4-22.9 2.4-43.5-5-61.7l-57.2 0c5.7 5.3 9.7 11 12.3 17.1z"]},KS={prefix:"far",iconName:"underline",icon:[448,512,[],"f0cd","M16 56c0-13.3 10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 61.9 50.1 112 112 112s112-50.1 112-112l0-144-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 88.4-71.6 160-160 160s-160-71.6-160-160L64 80 40 80C26.7 80 16 69.3 16 56zM0 456c0-13.3 10.7-24 24-24l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24z"]},HS={prefix:"far",iconName:"bold",icon:[384,512,[],"f032","M0 56C0 42.7 10.7 32 24 32l48 0 16 0 124 0c68.5 0 124 55.5 124 124c0 34.7-14.3 66.2-37.3 88.7C339.7 264.9 368 307.1 368 356c0 68.5-55.5 124-124 124L88 480l-16 0-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-176L48 80 24 80C10.7 80 0 69.3 0 56zM212 232c42 0 76-34 76-76s-34-76-76-76L96 80l0 152 116 0zM96 280l0 152 148 0c42 0 76-34 76-76s-34-76-76-76l-32 0L96 280z"]},qS={prefix:"far",iconName:"image",icon:[512,512,[],"f03e","M448 80c8.8 0 16 7.2 16 16l0 319.8-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3L48 96c0-8.8 7.2-16 16-16l384 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},VS={prefix:"far",iconName:"text-slash",icon:[640,512,["remove-format"],"f87d","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-281.9-221L396.4 80l124.8 0-8.5 34.2c-3.2 12.9 4.6 25.9 17.5 29.1s25.9-4.6 29.1-17.5l11-44.1C576.6 56.5 557.5 32 531.5 32l-335 0c-18.4 0-34.4 12.5-38.8 30.3l-7.5 30.1L38.8 5.1zM191.5 124.8L202.7 80l143.8 0L308.1 216.2 191.5 124.8zm57.4 300.7l-1.8 6.5L192 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l160 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-55.1 0 23.6-83.5-40.8-32.1L248.9 425.5z"]},YS={prefix:"far",iconName:"italic",icon:[384,512,[],"f033","M128 56c0-13.3 10.7-24 24-24l208 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-68.7 0L144.7 432l87.3 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24s10.7-24 24-24l68.7 0L239.3 80 152 80c-13.3 0-24-10.7-24-24z"]},QS={prefix:"far",iconName:"list-ol",icon:[512,512,["list-1-2","list-numeric"],"f0cb","M24 56c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24l0 120 16 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l16 0 0-96-8 0C34.7 80 24 69.3 24 56zM86.7 341.2c-6.5-7.4-18.3-6.9-24 1.2L51.5 357.9c-7.7 10.8-22.7 13.3-33.5 5.6s-13.3-22.7-5.6-33.5l11.1-15.6c23.7-33.2 72.3-35.6 99.2-4.9c21.3 24.4 20.8 60.9-1.1 84.7L86.8 432l33.2 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-88 0c-9.5 0-18.2-5.6-22-14.4s-2.1-18.9 4.3-25.9l72-78c5.3-5.8 5.4-14.6 .3-20.5zM216 72l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-272 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm0 160l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-272 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm0 160l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-272 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},GS={prefix:"far",iconName:"code",icon:[640,512,[],"f121","M399.1 1.1c-12.7-3.9-26.1 3.1-30 15.8l-144 464c-3.9 12.7 3.1 26.1 15.8 30s26.1-3.1 30-15.8l144-464c3.9-12.7-3.1-26.1-15.8-30zm71.4 118.5c-9.1 9.7-8.6 24.9 1.1 33.9L580.9 256 471.6 358.5c-9.7 9.1-10.2 24.3-1.1 33.9s24.3 10.2 33.9 1.1l128-120c4.8-4.5 7.6-10.9 7.6-17.5s-2.7-13-7.6-17.5l-128-120c-9.7-9.1-24.9-8.6-33.9 1.1zm-301 0c-9.1-9.7-24.3-10.2-33.9-1.1l-128 120C2.7 243 0 249.4 0 256s2.7 13 7.6 17.5l128 120c9.7 9.1 24.9 8.6 33.9-1.1s8.6-24.9-1.1-33.9L59.1 256 168.4 153.5c9.7-9.1 10.2-24.3 1.1-33.9z"]},ZS={prefix:"far",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]},JS={prefix:"far",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M580.3 267.2c56.2-56.2 56.2-147.3 0-203.5C526.8 10.2 440.9 7.3 383.9 57.2l-6.1 5.4c-10 8.7-11 23.9-2.3 33.9s23.9 11 33.9 2.3l6.1-5.4c38-33.2 95.2-31.3 130.9 4.4c37.4 37.4 37.4 98.1 0 135.6L433.1 346.6c-37.4 37.4-98.2 37.4-135.6 0c-35.7-35.7-37.6-92.9-4.4-130.9l4.7-5.4c8.7-10 7.7-25.1-2.3-33.9s-25.1-7.7-33.9 2.3l-4.7 5.4c-49.8 57-46.9 142.9 6.6 196.4c56.2 56.2 147.3 56.2 203.5 0L580.3 267.2zM59.7 244.8C3.5 301 3.5 392.1 59.7 448.2c53.6 53.6 139.5 56.4 196.5 6.5l6.1-5.4c10-8.7 11-23.9 2.3-33.9s-23.9-11-33.9-2.3l-6.1 5.4c-38 33.2-95.2 31.3-130.9-4.4c-37.4-37.4-37.4-98.1 0-135.6L207 165.4c37.4-37.4 98.1-37.4 135.6 0c35.7 35.7 37.6 92.9 4.4 130.9l-5.4 6.1c-8.7 10-7.7 25.1 2.3 33.9s25.1 7.7 33.9-2.3l5.4-6.1c49.9-57 47-142.9-6.5-196.5c-56.2-56.2-147.3-56.2-203.5 0L59.7 244.8z"]},XS={prefix:"far",iconName:"font",icon:[448,512,[],"f031","M246.2 46.9C242.5 37.9 233.8 32 224 32s-18.5 5.9-22.2 14.9L44.6 432 24 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l112 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-39.5 0 32.7-80 189.8 0 32.7 80L312 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l112 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-20.6 0L246.2 46.9zM299.3 304l-150.6 0L224 119.5 299.3 304z"]},ek={prefix:"far",iconName:"list-ul",icon:[512,512,["list-dots"],"f0ca","M64 64a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm120 8c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L184 72zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0zM96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM64 384a32 32 0 1 0 0 64 32 32 0 1 0 0-64z"]},tk={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},op=({onMouseOver:e,onClick:t,commentsCount:n=0,commentType:r})=>{var a,c;const o=n>0,i={[dt.INFO]:{icon:h_,color:"cnf:text-primary-600 cnf:hover:text-primary-600"},[dt.WARNING]:{icon:D_,color:"cnf:text-warning-600 cnf:hover:text-warning-600"},[dt.DANGER]:{icon:Uc,color:"cnf:text-danger-600 cnf:hover:text-danger-600"},[dt.SUCCESS]:{icon:eb,color:"cnf:text-success-600 cnf:hover:text-success-600"}},s=l=>{l.preventDefault(),l.stopPropagation(),t()};return v.jsxs(je,{size:"smallCollapse",category:"link",onMouseOver:e,onClick:s,className:xe("cnf:relative",(a=i[r])==null?void 0:a.color),title:"View comments",children:[v.jsx("div",{className:"cnf:relative cnf:flex cnf:items-center cnf:justify-center",children:o?v.jsxs(v.Fragment,{children:[v.jsx(Ce,{icon:d_,size:"lg"}),v.jsx(Ce,{icon:(c=i[r])==null?void 0:c.icon,className:"cnf:font-bold cnf:absolute cnf:left-1/2 cnf:-translate-x-1/2 cnf:top-0.5",size:"xs",color:"white"})]}):v.jsx(Ce,{icon:US,size:"lg"})}),o&&v.jsx("span",{className:"cnf:absolute cnf:top-0.5 cnf:-right-0 cnf:flex cnf:h-3 cnf:w-3 cnf:items-center cnf:justify-center cnf:rounded-full cnf:bg-primary-600 cnf:text-[10px] cnf:text-white",children:n})]})},nk=document.getElementById("lexical-root")??(()=>{const e=document.createElement("div");return e.id="lexical-root",e.style.position="relative",e.style.zIndex="2147483647",document.body.appendChild(e),e})();/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:Hb,setPrototypeOf:ip,isFrozen:rk,getPrototypeOf:ok,getOwnPropertyDescriptor:ik}=Object;let{freeze:Nt,seal:Zt,create:fu}=Object,{apply:uu,construct:du}=typeof Reflect<"u"&&Reflect;Nt||(Nt=function(t){return t});Zt||(Zt=function(t){return t});uu||(uu=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return t.apply(n,o)});du||(du=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const _a=Ot(Array.prototype.forEach),sk=Ot(Array.prototype.lastIndexOf),sp=Ot(Array.prototype.pop),ls=Ot(Array.prototype.push),ak=Ot(Array.prototype.splice),Wa=Ot(String.prototype.toLowerCase),zl=Ot(String.prototype.toString),$l=Ot(String.prototype.match),fs=Ot(String.prototype.replace),ck=Ot(String.prototype.indexOf),lk=Ot(String.prototype.trim),rn=Ot(Object.prototype.hasOwnProperty),Ct=Ot(RegExp.prototype.test),us=fk(TypeError);function Ot(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return uu(e,t,r)}}function fk(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return du(e,n)}}function _e(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wa;ip&&ip(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(rk(t)||(t[r]=i),o=i)}e[o]=!0}return e}function uk(e){for(let t=0;t<e.length;t++)rn(e,t)||(e[t]=null);return e}function gn(e){const t=fu(null);for(const[n,r]of Hb(e))rn(e,n)&&(Array.isArray(r)?t[n]=uk(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=gn(r):t[n]=r);return t}function ds(e,t){for(;e!==null;){const r=ik(e,t);if(r){if(r.get)return Ot(r.get);if(typeof r.value=="function")return Ot(r.value)}e=ok(e)}function n(){return null}return n}const ap=Nt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Bl=Nt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ul=Nt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),dk=Nt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Wl=Nt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),hk=Nt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),cp=Nt(["#text"]),lp=Nt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Kl=Nt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),fp=Nt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ea=Nt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),mk=Zt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pk=Zt(/<%[\w\W]*|[\w\W]*%>/gm),gk=Zt(/\$\{[\w\W]*/gm),yk=Zt(/^data-[\-\w.\u00B7-\uFFFF]+$/),bk=Zt(/^aria-[\-\w]+$/),qb=Zt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vk=Zt(/^(?:\w+script|data):/i),xk=Zt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Vb=Zt(/^html$/i),wk=Zt(/^[a-z][.\w]*(-[.\w]+)+$/i);var up=Object.freeze({__proto__:null,ARIA_ATTR:bk,ATTR_WHITESPACE:xk,CUSTOM_ELEMENT:wk,DATA_ATTR:yk,DOCTYPE_NAME:Vb,ERB_EXPR:pk,IS_ALLOWED_URI:qb,IS_SCRIPT_OR_DATA:vk,MUSTACHE_EXPR:mk,TMPLIT_EXPR:gk});const hs={element:1,text:3,progressingInstruction:7,comment:8,document:9},Ak=function(){return typeof window>"u"?null:window},Ck=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},dp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Yb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ak();const t=de=>Yb(de);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==hs.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:c,NodeFilter:l,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:d,trustedTypes:h}=e,m=c.prototype,g=ds(m,"cloneNode"),p=ds(m,"remove"),y=ds(m,"nextSibling"),b=ds(m,"childNodes"),x=ds(m,"parentNode");if(typeof s=="function"){const de=n.createElement("template");de.content&&de.content.ownerDocument&&(n=de.content.ownerDocument)}let w,A="";const{implementation:_,createNodeIterator:S,createDocumentFragment:E,getElementsByTagName:N}=n,{importNode:P}=r;let I=dp();t.isSupported=typeof Hb=="function"&&typeof x=="function"&&_&&_.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:W,ERB_EXPR:j,TMPLIT_EXPR:z,DATA_ATTR:Y,ARIA_ATTR:Q,IS_SCRIPT_OR_DATA:oe,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:re}=up;let{IS_ALLOWED_URI:L}=up,F=null;const K=_e({},[...ap,...Bl,...Ul,...Wl,...cp]);let U=null;const J=_e({},[...lp,...Kl,...fp,...Ea]);let V=Object.seal(fu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ee=null,te=null;const me=Object.seal(fu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ye=!0,pe=!0,ze=!1,G=!0,qe=!1,zt=!0,pt=!1,Yo=!1,is=!1,Rn=!1,Yr=!1,Qo=!1,se=!0,De=!1;const ct="user-content-";let Mt=!0,et=!1,Ht={},At=null;const dr=_e({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Go=null;const $t=_e({},["audio","video","img","source","image","track"]);let Qr=null;const hr=_e({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gr="http://www.w3.org/1998/Math/MathML",mr="http://www.w3.org/2000/svg",Dn="http://www.w3.org/1999/xhtml";let Zo=Dn,dl=!1,hl=null;const z1=_e({},[Gr,mr,Dn],zl);let ua=_e({},["mi","mo","mn","ms","mtext"]),da=_e({},["annotation-xml"]);const $1=_e({},["title","style","font","a","script"]);let ss=null;const B1=["application/xhtml+xml","text/html"],U1="text/html";let Qe=null,Jo=null;const W1=n.createElement("form"),Ch=function(O){return O instanceof RegExp||O instanceof Function},ml=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Jo&&Jo===O)){if((!O||typeof O!="object")&&(O={}),O=gn(O),ss=B1.indexOf(O.PARSER_MEDIA_TYPE)===-1?U1:O.PARSER_MEDIA_TYPE,Qe=ss==="application/xhtml+xml"?zl:Wa,F=rn(O,"ALLOWED_TAGS")?_e({},O.ALLOWED_TAGS,Qe):K,U=rn(O,"ALLOWED_ATTR")?_e({},O.ALLOWED_ATTR,Qe):J,hl=rn(O,"ALLOWED_NAMESPACES")?_e({},O.ALLOWED_NAMESPACES,zl):z1,Qr=rn(O,"ADD_URI_SAFE_ATTR")?_e(gn(hr),O.ADD_URI_SAFE_ATTR,Qe):hr,Go=rn(O,"ADD_DATA_URI_TAGS")?_e(gn($t),O.ADD_DATA_URI_TAGS,Qe):$t,At=rn(O,"FORBID_CONTENTS")?_e({},O.FORBID_CONTENTS,Qe):dr,ee=rn(O,"FORBID_TAGS")?_e({},O.FORBID_TAGS,Qe):gn({}),te=rn(O,"FORBID_ATTR")?_e({},O.FORBID_ATTR,Qe):gn({}),Ht=rn(O,"USE_PROFILES")?O.USE_PROFILES:!1,ye=O.ALLOW_ARIA_ATTR!==!1,pe=O.ALLOW_DATA_ATTR!==!1,ze=O.ALLOW_UNKNOWN_PROTOCOLS||!1,G=O.ALLOW_SELF_CLOSE_IN_ATTR!==!1,qe=O.SAFE_FOR_TEMPLATES||!1,zt=O.SAFE_FOR_XML!==!1,pt=O.WHOLE_DOCUMENT||!1,Rn=O.RETURN_DOM||!1,Yr=O.RETURN_DOM_FRAGMENT||!1,Qo=O.RETURN_TRUSTED_TYPE||!1,is=O.FORCE_BODY||!1,se=O.SANITIZE_DOM!==!1,De=O.SANITIZE_NAMED_PROPS||!1,Mt=O.KEEP_CONTENT!==!1,et=O.IN_PLACE||!1,L=O.ALLOWED_URI_REGEXP||qb,Zo=O.NAMESPACE||Dn,ua=O.MATHML_TEXT_INTEGRATION_POINTS||ua,da=O.HTML_INTEGRATION_POINTS||da,V=O.CUSTOM_ELEMENT_HANDLING||{},O.CUSTOM_ELEMENT_HANDLING&&Ch(O.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=O.CUSTOM_ELEMENT_HANDLING.tagNameCheck),O.CUSTOM_ELEMENT_HANDLING&&Ch(O.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=O.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),O.CUSTOM_ELEMENT_HANDLING&&typeof O.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=O.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),qe&&(pe=!1),Yr&&(Rn=!0),Ht&&(F=_e({},cp),U=[],Ht.html===!0&&(_e(F,ap),_e(U,lp)),Ht.svg===!0&&(_e(F,Bl),_e(U,Kl),_e(U,Ea)),Ht.svgFilters===!0&&(_e(F,Ul),_e(U,Kl),_e(U,Ea)),Ht.mathMl===!0&&(_e(F,Wl),_e(U,fp),_e(U,Ea))),O.ADD_TAGS&&(typeof O.ADD_TAGS=="function"?me.tagCheck=O.ADD_TAGS:(F===K&&(F=gn(F)),_e(F,O.ADD_TAGS,Qe))),O.ADD_ATTR&&(typeof O.ADD_ATTR=="function"?me.attributeCheck=O.ADD_ATTR:(U===J&&(U=gn(U)),_e(U,O.ADD_ATTR,Qe))),O.ADD_URI_SAFE_ATTR&&_e(Qr,O.ADD_URI_SAFE_ATTR,Qe),O.FORBID_CONTENTS&&(At===dr&&(At=gn(At)),_e(At,O.FORBID_CONTENTS,Qe)),O.ADD_FORBID_CONTENTS&&(At===dr&&(At=gn(At)),_e(At,O.ADD_FORBID_CONTENTS,Qe)),Mt&&(F["#text"]=!0),pt&&_e(F,["html","head","body"]),F.table&&(_e(F,["tbody"]),delete ee.tbody),O.TRUSTED_TYPES_POLICY){if(typeof O.TRUSTED_TYPES_POLICY.createHTML!="function")throw us('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof O.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw us('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=O.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=Ck(h,o)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));Nt&&Nt(O),Jo=O}},_h=_e({},[...Bl,...Ul,...dk]),Eh=_e({},[...Wl,...hk]),K1=function(O){let q=x(O);(!q||!q.tagName)&&(q={namespaceURI:Zo,tagName:"template"});const le=Wa(O.tagName),Be=Wa(q.tagName);return hl[O.namespaceURI]?O.namespaceURI===mr?q.namespaceURI===Dn?le==="svg":q.namespaceURI===Gr?le==="svg"&&(Be==="annotation-xml"||ua[Be]):!!_h[le]:O.namespaceURI===Gr?q.namespaceURI===Dn?le==="math":q.namespaceURI===mr?le==="math"&&da[Be]:!!Eh[le]:O.namespaceURI===Dn?q.namespaceURI===mr&&!da[Be]||q.namespaceURI===Gr&&!ua[Be]?!1:!Eh[le]&&($1[le]||!_h[le]):!!(ss==="application/xhtml+xml"&&hl[O.namespaceURI]):!1},pn=function(O){ls(t.removed,{element:O});try{x(O).removeChild(O)}catch{p(O)}},Zr=function(O,q){try{ls(t.removed,{attribute:q.getAttributeNode(O),from:q})}catch{ls(t.removed,{attribute:null,from:q})}if(q.removeAttribute(O),O==="is")if(Rn||Yr)try{pn(q)}catch{}else try{q.setAttribute(O,"")}catch{}},Sh=function(O){let q=null,le=null;if(is)O="<remove></remove>"+O;else{const Ve=$l(O,/^[\r\n\t ]+/);le=Ve&&Ve[0]}ss==="application/xhtml+xml"&&Zo===Dn&&(O='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+O+"</body></html>");const Be=w?w.createHTML(O):O;if(Zo===Dn)try{q=new d().parseFromString(Be,ss)}catch{}if(!q||!q.documentElement){q=_.createDocument(Zo,"template",null);try{q.documentElement.innerHTML=dl?A:Be}catch{}}const gt=q.body||q.documentElement;return O&&le&&gt.insertBefore(n.createTextNode(le),gt.childNodes[0]||null),Zo===Dn?N.call(q,pt?"html":"body")[0]:pt?q.documentElement:gt},kh=function(O){return S.call(O.ownerDocument||O,O,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},pl=function(O){return O instanceof u&&(typeof O.nodeName!="string"||typeof O.textContent!="string"||typeof O.removeChild!="function"||!(O.attributes instanceof f)||typeof O.removeAttribute!="function"||typeof O.setAttribute!="function"||typeof O.namespaceURI!="string"||typeof O.insertBefore!="function"||typeof O.hasChildNodes!="function")},Th=function(O){return typeof a=="function"&&O instanceof a};function Fn(de,O,q){_a(de,le=>{le.call(t,O,q,Jo)})}const Nh=function(O){let q=null;if(Fn(I.beforeSanitizeElements,O,null),pl(O))return pn(O),!0;const le=Qe(O.nodeName);if(Fn(I.uponSanitizeElement,O,{tagName:le,allowedTags:F}),zt&&O.hasChildNodes()&&!Th(O.firstElementChild)&&Ct(/<[/\w!]/g,O.innerHTML)&&Ct(/<[/\w!]/g,O.textContent)||O.nodeType===hs.progressingInstruction||zt&&O.nodeType===hs.comment&&Ct(/<[/\w]/g,O.data))return pn(O),!0;if(!(me.tagCheck instanceof Function&&me.tagCheck(le))&&(!F[le]||ee[le])){if(!ee[le]&&Ph(le)&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,le)||V.tagNameCheck instanceof Function&&V.tagNameCheck(le)))return!1;if(Mt&&!At[le]){const Be=x(O)||O.parentNode,gt=b(O)||O.childNodes;if(gt&&Be){const Ve=gt.length;for(let It=Ve-1;It>=0;--It){const jn=g(gt[It],!0);jn.__removalCount=(O.__removalCount||0)+1,Be.insertBefore(jn,y(O))}}}return pn(O),!0}return O instanceof c&&!K1(O)||(le==="noscript"||le==="noembed"||le==="noframes")&&Ct(/<\/no(script|embed|frames)/i,O.innerHTML)?(pn(O),!0):(qe&&O.nodeType===hs.text&&(q=O.textContent,_a([W,j,z],Be=>{q=fs(q,Be," ")}),O.textContent!==q&&(ls(t.removed,{element:O.cloneNode()}),O.textContent=q)),Fn(I.afterSanitizeElements,O,null),!1)},Oh=function(O,q,le){if(se&&(q==="id"||q==="name")&&(le in n||le in W1))return!1;if(!(pe&&!te[q]&&Ct(Y,q))){if(!(ye&&Ct(Q,q))){if(!(me.attributeCheck instanceof Function&&me.attributeCheck(q,O))){if(!U[q]||te[q]){if(!(Ph(O)&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,O)||V.tagNameCheck instanceof Function&&V.tagNameCheck(O))&&(V.attributeNameCheck instanceof RegExp&&Ct(V.attributeNameCheck,q)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(q,O))||q==="is"&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,le)||V.tagNameCheck instanceof Function&&V.tagNameCheck(le))))return!1}else if(!Qr[q]){if(!Ct(L,fs(le,M,""))){if(!((q==="src"||q==="xlink:href"||q==="href")&&O!=="script"&&ck(le,"data:")===0&&Go[O])){if(!(ze&&!Ct(oe,fs(le,M,"")))){if(le)return!1}}}}}}}return!0},Ph=function(O){return O!=="annotation-xml"&&$l(O,re)},Mh=function(O){Fn(I.beforeSanitizeAttributes,O,null);const{attributes:q}=O;if(!q||pl(O))return;const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let Be=q.length;for(;Be--;){const gt=q[Be],{name:Ve,namespaceURI:It,value:jn}=gt,Xo=Qe(Ve),gl=jn;let lt=Ve==="value"?gl:lk(gl);if(le.attrName=Xo,le.attrValue=lt,le.keepAttr=!0,le.forceKeepAttr=void 0,Fn(I.uponSanitizeAttribute,O,le),lt=le.attrValue,De&&(Xo==="id"||Xo==="name")&&(Zr(Ve,O),lt=ct+lt),zt&&Ct(/((--!?|])>)|<\/(style|title|textarea)/i,lt)){Zr(Ve,O);continue}if(Xo==="attributename"&&$l(lt,"href")){Zr(Ve,O);continue}if(le.forceKeepAttr)continue;if(!le.keepAttr){Zr(Ve,O);continue}if(!G&&Ct(/\/>/i,lt)){Zr(Ve,O);continue}qe&&_a([W,j,z],Lh=>{lt=fs(lt,Lh," ")});const Ih=Qe(O.nodeName);if(!Oh(Ih,Xo,lt)){Zr(Ve,O);continue}if(w&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!It)switch(h.getAttributeType(Ih,Xo)){case"TrustedHTML":{lt=w.createHTML(lt);break}case"TrustedScriptURL":{lt=w.createScriptURL(lt);break}}if(lt!==gl)try{It?O.setAttributeNS(It,Ve,lt):O.setAttribute(Ve,lt),pl(O)?pn(O):sp(t.removed)}catch{Zr(Ve,O)}}Fn(I.afterSanitizeAttributes,O,null)},H1=function de(O){let q=null;const le=kh(O);for(Fn(I.beforeSanitizeShadowDOM,O,null);q=le.nextNode();)Fn(I.uponSanitizeShadowNode,q,null),Nh(q),Mh(q),q.content instanceof i&&de(q.content);Fn(I.afterSanitizeShadowDOM,O,null)};return t.sanitize=function(de){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,le=null,Be=null,gt=null;if(dl=!de,dl&&(de="<!-->"),typeof de!="string"&&!Th(de))if(typeof de.toString=="function"){if(de=de.toString(),typeof de!="string")throw us("dirty is not a string, aborting")}else throw us("toString is not a function");if(!t.isSupported)return de;if(Yo||ml(O),t.removed=[],typeof de=="string"&&(et=!1),et){if(de.nodeName){const jn=Qe(de.nodeName);if(!F[jn]||ee[jn])throw us("root node is forbidden and cannot be sanitized in-place")}}else if(de instanceof a)q=Sh("<!---->"),le=q.ownerDocument.importNode(de,!0),le.nodeType===hs.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?q=le:q.appendChild(le);else{if(!Rn&&!qe&&!pt&&de.indexOf("<")===-1)return w&&Qo?w.createHTML(de):de;if(q=Sh(de),!q)return Rn?null:Qo?A:""}q&&is&&pn(q.firstChild);const Ve=kh(et?de:q);for(;Be=Ve.nextNode();)Nh(Be),Mh(Be),Be.content instanceof i&&H1(Be.content);if(et)return de;if(Rn){if(Yr)for(gt=E.call(q.ownerDocument);q.firstChild;)gt.appendChild(q.firstChild);else gt=q;return(U.shadowroot||U.shadowrootmode)&&(gt=P.call(r,gt,!0)),gt}let It=pt?q.outerHTML:q.innerHTML;return pt&&F["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&Ct(Vb,q.ownerDocument.doctype.name)&&(It="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
594
- `+It),qe&&_a([W,j,z],jn=>{It=fs(It,jn," ")}),w&&Qo?w.createHTML(It):It},t.setConfig=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ml(de),Yo=!0},t.clearConfig=function(){Jo=null,Yo=!1},t.isValidAttribute=function(de,O,q){Jo||ml({});const le=Qe(de),Be=Qe(O);return Oh(le,Be,q)},t.addHook=function(de,O){typeof O=="function"&&ls(I[de],O)},t.removeHook=function(de,O){if(O!==void 0){const q=sk(I[de],O);return q===-1?void 0:ak(I[de],q,1)[0]}return sp(I[de])},t.removeHooks=function(de){I[de]=[]},t.removeAllHooks=function(){I=dp()},t}var hu=Yb();const _k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABpCAYAAAB/GGzVAAAEtWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgdGlmZjpJbWFnZUxlbmd0aD0iMTA1IgogICB0aWZmOkltYWdlV2lkdGg9IjIwMCIKICAgdGlmZjpSZXNvbHV0aW9uVW5pdD0iMiIKICAgdGlmZjpYUmVzb2x1dGlvbj0iNzIvMSIKICAgdGlmZjpZUmVzb2x1dGlvbj0iNzIvMSIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjIwMCIKICAgZXhpZjpQaXhlbFlEaW1lbnNpb249IjEwNSIKICAgZXhpZjpDb2xvclNwYWNlPSIxIgogICBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIgogICBwaG90b3Nob3A6SUNDUHJvZmlsZT0ic1JHQiBJRUM2MTk2Ni0yLjEiCiAgIHhtcDpNb2RpZnlEYXRlPSIyMDI1LTA1LTE0VDExOjUwOjIwLTA0OjAwIgogICB4bXA6TWV0YWRhdGFEYXRlPSIyMDI1LTA1LTE0VDExOjUwOjIwLTA0OjAwIj4KICAgPHhtcE1NOkhpc3Rvcnk+CiAgICA8cmRmOlNlcT4KICAgICA8cmRmOmxpCiAgICAgIHN0RXZ0OmFjdGlvbj0icHJvZHVjZWQiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFmZmluaXR5IFBob3RvIDIgMi42LjIiCiAgICAgIHN0RXZ0OndoZW49IjIwMjUtMDUtMTRUMTE6NTA6MjAtMDQ6MDAiLz4KICAgIDwvcmRmOlNlcT4KICAgPC94bXBNTTpIaXN0b3J5PgogIDwvcmRmOkRlc2NyaXB0aW9uPgogPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KPD94cGFja2V0IGVuZD0iciI/PpjjR1oAAAGCaUNDUHNSR0IgSUVDNjE5NjYtMi4xAAAokXWRzStEURiHH8M0YhjFwkKZNKzQDDWxUUZCSRqjfG3u3Jk7o+bjdu9Mkq2yVZTY+FrwF7BV1koRKVmzJTboeu/M1EzinM77Pv3Oed/O+R1wRFJq2qzxQzqTM8JjIe/c/ILX9YKTRjz00q6opj48PT3Jv+Pjjio73/TYvf4/9+eoj8VNFapqhYdU3cgJjwtPruR0m7eFW9SkEhM+Fe425ILCt7YeLfKzzYkif9lsRMIj4GgS9iYqOFrBatJIC8vL8aVTebV0H/sl7nhmdkZyh6w2TMKMEcLLBKOMECTAoMQgPfSJQwHx7u96f6F+iqzUqhJ1VjFYJkGSHN2i5qV7XLImelxmilXb/9++mlp/X7G7OwTOJ8t66wTXFnxvWtbnoWV9H0H1I1xkyvXZAxh4F32zrPn2wbMOZ5dlLboD5xvQ+qArhlKQqmU5NA1eT6BhHpqvoW6x6Flpn+N7iKzJV13B7h50yXnP0g9yqmfr0vdvXAAAAAlwSFlzAAALEwAACxMBAJqcGAAAFnlJREFUeJztnXm4XEWVwH95gQAhCbJKQVEsogKKKCAugEZDWCQsAh+o7AwooI4DguOniCJLHBAIMoojqCwjoLIG2ZR12FSCQRAiEAJUSkpCQCAkZH1v/jjVdL/u6tfbvbe3+/u+/vr1Xet131NV59RZRtGlWOdXAw4FjgS2BwaAvwFXAL8wWr3axubl9Aij2t2AZrDOrwk8DLyryiGvANsYrf6RXatqY51fGVgFGAOsDIxGBLvAELA8vJYCS4xWS7NuZxKEDmxL4DPAmsBM4Faj1SttbViDdJ2AWOfHAH8B3hc2LQVuARYDewGrh+3zgfcYrf6VeSNLsM5/ENgb2APYiAYFBPDA3cD1wJ+MVisya3yTWOc3Av4PMAz//94ADjda3dCWhjVBNwrIAcBvw8fbgWOMVnPDvnWAc4HDwv4TjFbTMm7fDsD+wMeArYC1E7z8AmAW0kFcA9xrtFqe4PVbxjq/NzLNnVDlEA9sZrRanF2rmqcbBeRK4PPh4xZGq6fK9q8HvACsCjxstNoh5fYMAO8F9gSOQqYVWTEXuBy4AfiL0Woww3tXYJ0/FrgQWKnGoScarc7PoEkt040C8hiwNeCNVhtUOeZ3yAO7yGi1euyYBNqxEvBuZMTaI417NMhfgWOBR7PuncN3MRU4qc5TbjRa7ZtikxJjoPYhHUdBaR1rna8m4OPDeyrTD+v8FsBjyEPZCcIBsA1wP/C4df4zWd3UOr8KcDPw9QZOez6d1iRPraGwE/kzsB2wBrAj8lC8jXX+PcBO4eOfkryxdX5L4CxE6a63c1kGPAL8ERGoF4F5iMK6IOxfjijsKwPjkPn7uoAC3g98FNFpxtS412hgc+Am6/z9wLeMVg/U2c6Gsc6vD/wa+EQDpy1CRt2uoBunWJ8C7gofnwWOBu4DBoFtgR8DHwn7DzZaXZnAPVcDjgO+R3F0qsYg8AwiENOBO41WryfQhjHAJGAK0jFsTW0hHQQuAM5M2rwaOovrgC0aPPVUo9XpSbalEazzo4FdgMOBTZHR7FeICbrCQth1AgJvK+qfo9j+QWAF0gMXmAF8rFUrj3V+c+A2qq+5FFiAjG4nG61mtnLPOtu1GXAeMBEZTUfidWBn4IlWFfkwrd0aeJCiSb1efm60OrqV+7eKdf4k4JzIrlORjmTY99ONOgiI9F9e8nmA4cJxDzAxAeE4BniUkYVjMfDdcMyuWQgHgNFqTlB0N0VG0ZEU8zWQad53Erj1gUhH0Khw3A58OYH7N411fjvEmFCgdI3sNIpT87fpyhGkgHV+R2AfxNVkNKI4TwfuMFoNtXDdMchU7XCGC14py5Ev++LCOkw7sc6vBRwBnIKsXFdjOnBQM5Yu6/x3gW9RWxcq525gitFqUaP3TBLr/DmIpW0ZMlX9A7A7stAMcLrR6tTSc7paQNIgLDZeipiJY6xAplxfNVo9l1W76sU6vwEy9dqf6kaYWcBu9Qp20MF+hIxUjXIXMrK23QPAOv8LxHfvTWBTo9V867xCDCcAPzVaHVd6TrdOsVIh+HjdTnXheAM42mg1pROFA8Bo9aLR6nOIIvpSlcO2BGYF/WpEwsh0H80Jx0PA7p0gHIG/hvdxwJnWeQOcXLL/sfIT8hEkEBwJZ1L08SqnoV63E7DOvwOx0FRbF3nUaPWhEc7fBLgX8alqlGeAHYxWrzVxbipY58cCTwMbhk0rkKk5yJR5I6PVP0vPyUcQwDo/HlFiY8IxBFwEbNdNwgEQHs4DgG8jD0Mp/wL+vdq51vnJiKWqGeF4CrEgdoxwAAQdaHfgibCpIBxzgO3LhQPyEQTr/ATEnj8psnsZ8H2j1RnZtipZgmn2GOCHyDrOY8CeRisXOXY04ut2CeJ53CiPAzsnsfaTFsE1ZjJiAXwBuK3aNLCvBSQ8DBcQNz+uQDyFf5ltq9LDOr8P4lC5b8zKF6aZ3wS+3+QtHLCt0erl5lvZWXSjq0mSnAgcH9m+ArH3d03cQj0YrW4EbhzhkF8DzToRLgQ+0UvCAX08gljnP4AE9ZSvQg8C3wDOb7f7eFYE0/Z0xN+rGeYDHzVaPZtcqzqDvhSQYM14Etg4srvCFt7LhACvGxDHyGZ4EdjFaDUruVZ1Dn1nxQoK67eJC8e9xKdcPYl1fgrwAM0LxwJgr14VDujDEcQ6/2HE07a8c1gBvMto9UL2rcqW0EmchehgjbqNlPIRo9Wfk2lVZ9KPSvpUKoVjOWL27AfhGA/8D3AQzc8gFiEr5D0tHNBnAmKdP4j4escdwJ0ZNydzrPMbAz8n/h3Uy+vAF4xW9yXTqs6mrwQEmVKU8yrw2Q7yF0qFIBwPUHSzaIYlyNrQLTWP7BH6Rkm3zu+BuMWXc1G3pKBpFuv8JCTrZCvCAXCI0eq3tQ/rHSoExDp/mnV+kXX+onY0KA3CCvG5VP6/c4Gz6zh/fev8tmG9oKuwzp+CeCiPa+Eyy4BDgGsTaVQXEZtiTQJWAw5G4rB7AUM8KvAco9Ub1U6yzm8P/Bfw6bBp0Dr/e+AM4MFWgrLSJqz1/AQJ+mqFxYhZ/Mqs/99gbVsHWcxdAryUdSrWftFBTqLSnLmcYobGCqzzGyKRcKU97wDiDborMNU6P9VotTDhtrZMGOnuRxLatcIK4Ayj1Xmtt6p+rPPjEJeX7zG8Y3vLOv9LpIP6ZxYC2/M6SAj4iQX7XBRzbw7nDCC5nqpNSwaQXnVWWFfpGKzzWyPu5q0KB4jj4tSaRyWIdf7jwHNIzoHyUX81ZCF3DjAtOJumyijr/DTE9bfAJsBYxCfp7yXbH0USD3dULthaBOW83OqyBElb+nyVcyYgP9JaddxiEfBL4KR2K/vW+UMQ7+R62j0Sg0giih9k+Xtb5w9E3OwLqZVeRTqq2UiusF2QBHkFrgYOTbONKwFfQvLYljOAJF8usBUSnvhi5NhOZvfItnlIEuWRqNfLYCziLj/ZOn+s0eruRhqXBCG+4QTgTKonmaiXQSRALGvh2AD4b0Q4liP606nlcSXW+X2R+PiNkNRPs0kmW0uUUdb5I5Evt8BmSEqXQYqRV4NITqML02pIGgQlbzbyP5VyntGqaqrM8MA9FTmvHqYBp2Slm4SEChcC/5bA5YaQ3/mYBK5VN2FKez/iTTwIfMdoddYIx6+NhM6uhfiDrZ9WxpSKXjKkrNwRWGC0qpbCvisIOXRjjnS6VnEd6/ynkRX2Rv3VhoB/IK4rFUkAksQ6vzriAfCRWsfWyUXA14xWy6rca0kao4p1fl1kSrs6YhiZVEsBDyPJ9eHjD41WJ490fLP0upL+yci25+qpPGW0ugvJMdUoowANPGKd/0nQZxIn5CB+mOSE43IkK2RMOLYCLOklftuCYiK6y+qxToUiPLPDx/3TUthjAlLoISq+qC4k9vA8FdkWJQzzzc5vV0LWkR6xzu8aphGJEFbGZ5BcLZJbgC/GpoXW+W2Q5A1rIUm006DUEnh/1aMqKQRojaO5+PmaxH60K5F8SqelccOM2SSyraHYhZCwYSoyN26GzZGV7ItDGp6msc4PWOcPRaZ+tZJo18sfjFZ7Gq2WRO63KTKFK0RdpmXSLjUsVLRjBAqd+ChSmg3FLnoxku2hqxTyKsQK7Pylieucgqyot8JRwOwwd26Wc4FftNiOUu5GUrdW406Gl5DbNNQDSZrS5YT3N3BewbdsKcW6MYlSsZIe5n9vpXGzNrBeZNuTjV4kxKZ/K1i3WlEG1wZ+Y52fDnyp3pIE1vlVkbp/+5FcT/kQcKDRaqTfutz3bACpqvW3hNpQYAYycqyCuDjdVuuEYIAp5DF7MC0XlJ5V0sPDHJvSNJ1YwGj1DVov/rIykjd3tnX+C6GdVQkuL7chCeCS+r3+igQ8za9xXKzWvE6oDaXMp1h1ar+QlLwqwc/sGsR9aAkproP0rIAgC0nlJtq3Wk1oZrQ6CZl+tuoHVEgL+rtg168gxHA8SNwa1yxPAh8eyUmzhNgIt36CbQEg6D9HIjrFWOD31vkdYpapYBK+heLocbPR6u/lxyVFLwtIbHqVVM6mExD3kiTYDXjWOn9Y6Ubr/LZIruBmUn9WYw7wyZgptwpvRraNVFqhaYxWDwGFyrdjkeCuP1vnj7bOb2Odn2yd/xWS87fQYcxGdLvU6GVv3piVJxHdymi1wjp/dLheEmsDawCXWecPRkoXbI1kN1wtgWsX+CdShqDWtKqUmG9ZzC0pKb6N5Ayeijyb2yJGoxj3IX5YqaY47eURJJatIzFnwmDM+CqSACEpdkX0jXNIVjg8koGkUf0rZtpOsl3DMFotN1r9ADEn/47hFaBApmAzEUPJpCySbPTyCBKbRiTa+xmthqzzxyP6xIF0Zhqll5HM9LWcM2PEVqdT91g2Ws0A9gq+dFsgyw4LgRlZx9/0soDE5s+JTw+MVoNh8W41pDx0J7EQ6WmbEQ6IewZn5uEbRulZNLi4myS9PMWaF9nWapxElKD07gdclcb1m2QZUvDn8RauEQsYS7ScdKfTywIyl0pT7PjglZo4IW3QEYwQxpshC4FPGa0eaPE6sfLSsY6nZ+lZAQkrqzFbfzMxHo3c82DE4a5dCR0WIxVlWxUOgHUj27qqylar9KyABGK9XVIesFHCdGsyYsdvBwcbre5p9SKhoGlsBOm5Egcj0esCElNOP5j2TUNs+mTq8ClKmEOMVtcldK1dqbTKzTVaLUjo+l1BrwvI85FtW2dx4yAkByDF6tNmGRLP8asEr7lXZFszntBdTa8LyMzItvdkdfNgs9+PYmx/GixHYrirrTg3TMhEOTGyqyezuVvnR1nnx8eC2npdQO6KbNu8mnNgGhit3gQKuZ7S4HSjVauxKuVMCK9yenUE+S7y+1SUxe51Afkb4oNUygDwlSwbETxnd0DKLyfJ94DTE74miKdsbA2k4ViaLuFrSKzOZ8t39LSAhECn6ZFdR4ZpRJZtmY9Mt+YkcLlBJDfUGSml3/wGlQr6341WNoV7dQKjy97fpqcFJHBrZNs7idv4UyU4C+6NLOQ1yyDwG+CENGqahACtPSO7Wg0U6yhCfP9Aud5Rvr1tvlgh4dmxwCeQUMuZwM9S8ND8Y2TbqsAxtCExhdHqiVBZdgbNecZehaSATatE9S6RbW8h3rU9gXX+TGRBtzBKFrwrtqdEV7TOX5i592lIJj0NMYGWPyDLEcX6OKNVElORwj2vRaY3pSwCNm4wPiIxrPOTgetorG7HFYg5NxWP2uA9OwOJwyjlaeB93ZaXOUZIcVozL1pgSaZTLOv8ekhPVPB+BfH5n4e4ZqyELFA9Yp1/X/QizfEdKr1Qx9JG71uj1R+QeJJ6H/Y7kI4jTXfzvagUDoDTekE4Ai8hMTwzkYTsj1KMe1lYsm0mcHamI4h1/kaKD+WLyFThjrBvMyS738eRoW8BYIxWryVw31WRXnCjsl1zkCzvbUuSZ50/AimsOVJn9QLw/mAyTrMtd1O5/vGC0WqTNO/bbqzzbyARqA8YrXYq3ZfZCGKd35Ki8vccsGVBOADClOpTiHUGpMGtVkcqXHsx8TSimxEv7JkllyMjajWdwgLbZyAcExF9sJxO8E5uG1lOsc5AzGhLkTiFCk/b0JOfSTEJ2GHlx7TAFQxPUFbgK2GEaQtB2b4KEdbJwOeRDB+HIh3Kx9LWk0Iandgo9ho9Zr2qwlDZ+9tkYsUK6VsKaSufNlo9U+1Yo9XLIbHaAcAHrfNjkkgKFsJjf0xlxkgNXGKdPyxFy9CIhLWMF8KrHRyFhLWWc261Klw9xs+QTunm8h1ZjSCjKS7C1OMN+nx4H6BogkuCHxP3izoQ+ECC9+kaQsm2C4nkEEMenJ7HaHWy0WqdkDBiGFkJyDKKKXfKFeUYBVv8m8gwnwihp47pHCsD91rn35nUvbqBsBgWy/U7hKQl7avowRiZCEh4MC8PHze0zlfNJRUW0QoxG7en4EpxJ5LRsJwJwE+SLFPQBUxDFsfKmQn8PuO2dCRZPgznICloRgFnW+f3LE8tGYb7S0s2XZJ0I4J7xpeJZ1ncD0nY1tME9+5Dkfol5bwK7JtWMuhuI+t1kBMRQSkI5r3Ios2byMN5KKKrDAE3AvulVQs7FKG5lcrUNkPAQcA1WdThbgfW+Q8h2d3LSxkMAScaraZl36rOJGsBGQD+g9qmw9uBfWJFXRJuzwVEYgAomqLvSfP+7cA6vx2StjPmB3YpcHQaTpDdSqbz7WBGPR9ZkJpOZfbDh5HSvp9JWzgC/0ncHX4McJt1fv8M2pAZ1vmdEFefmHA8hdR6z4WjhLamygwlyd6LTHOebSEDYCttUMhU792R3cuAY4xWl2XbqmQJToiTgKsZXjGqwEvAtkarFzNtWBfQiblkMyd4GD+JxInEOBWY2o0Oe8EQsi8iHLGF4deR3L19lc6nXnIBCVjn10dirlVk9xCSDG5KnYVnOoKg812MZHyMTaeXARONVg9m2a5uop9s/iMSXCp2I54qaBSwMzDDOj8ly3Y1i3X+w4hOdxTx33kxsEsuHCOTjyBlWOc3B26gWOKrnOXARciUK3OdqRZhungskqkjViMFwAF7GK2SLsbZc+QCEiGEA9+LrDJX+44GkanLdVnXrIgRyjN/GvFYKK9OW8rjiIdw29vcDeRTrAihNPKOyKJmNQaAy4CnrfPHt9NFJdRefwq4iZGF4xJy4WiIfASpgXV+T6RgZ60sKM8hq/+XGK3SzKRYaJcBvoRYqLaqcfibwBcR74C2RU92I7mA1IF1fg3gp0hisXL3jHIGETeOq4E/AU8m0WOHKdQWSAK6/RGP51iJtPK23Ax82WjVV2ULkiIXkAawzn8c+F9gE+r/7pYB9wDXI3rNq8CSsH1FeBUYQNYqVkYEcQKwExJZuDf1B7gNAfOBo4xWPZOupx3kAtIgITx3IhKr3UjKHpAHd0l4LQ+vkQRkFRr/jRYgddyvznWN1skFpEms8+OQXv3rxFPlZM0ziBPo9XmgU3LkAtIiwXo1EVGCdwY2yPD285FKVpcCN+WOhsmTC0jCWOd3R0aVbRAdopZS3whLkSnUHGS0uLYb/cO6iVxAUiJU050AfAiYAuyBKPeN4pEqVTcheYZf77cyaO0kF5AMCUKzHlKvfTySsaWglBesWouQ6rz/Al7uJufInJycnJycnJycnJycnJycnJycnJycnA4jXwdpghBxuB4SnLR2eC/8PR4p7zYWWUUfgxQNLYS/rkQxUC0WEruMYp2KpSXvS5E48sL7AqRk2CvhNb/0lS8mJkMuIGUEb12N+FStD2yM1M7YLGzfEHhH2xpYPwuQMndzkUQUz4V3H15zc2/f2vS1gISEahOQaMF9kUCkHeifUOTHgWuAaxFher1dRYQ6lb4VEOu8RmpjbA+sQf8IRYwhxL1lFnC80Wpmm9vTMfSlgIQS0zMQ3SBnOEuAI41WV7W7IZ1Av/aar9K+eoCdzjzEnT6HPh1BCljnDwe+iaQbHU9/dhiDiDXsNeAC4Ed55pMifS0g8HZy5wmIHrIbsDuSgG1CO9uVMouRBBK3IbVY5iEKeh58VUbfC0iMYN1aBzHzrodYuTakaObdIGxbBzH5dsrI8xqyDvIK8I/wcuE1Hylz8BIwL7dW1UcuIC0SRqA1EYFZCxl5xiIZT8aFvycgBoFRSPGaUeEVMxIspZjp5C3EwrSQ4YuDC4ksFOYjQPL8P/fGGg4HNsWXAAAAAElFTkSuQmCC",mu=e=>btoa(String.fromCharCode(...new TextEncoder().encode(e))),Hl=e=>atob(e),Ek=async({username:e,action:t,taskInstanceId:n,timezone:r,commentId:o,comment:i,commentType:s,hasAssets:a,taskVerified:c})=>{const l={...t?{action:t}:{},taskInstanceId:n,taskVerified:c,timezone:r,commentId:o,...i?{comment:mu(i)}:{},commentType:s,hasAssets:a},f=new Headers;return f.append("Content-Type","application/json"),f.append("username",e||""),await(await fetch(`${Ln}/manage-comment`,{method:"POST",headers:f,body:JSON.stringify(l)})).json()},Qb=e=>{switch(e==null?void 0:e.toLowerCase()){case"pdf":case"application/pdf":return O_;case"xls":case"xlt":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xml":case"xlam":case"xla":case"xlw":case"xlr":return bm;case"csv":return g_;case"dif":case"fods":case"numbers":case"numbers-tef":case"ods":case"ots":case"sxc":case"tsv":return bm;case"doc":case"docx":case"docm ":case"dot":case"dotx":case"dotm":case"docb":return w_;case"aba":case"md":case"odt":case"ott":case"rtf":case"txt":case"wps":return p_;case"odp":case"otp":case"pot":case"potm":case"potx":case"pps":case"ppsm":case"ppsx":case"ppt":case"pptm":case"pptx":return A_;case"3g2":case"3gp":case"asf":case"avi":case"f4v":case"flv":case"h264":case"h265":case"m4v":case"mjpeg":case"mk3d":case"mks":case"mkv":case"mov":case"mp4":case"mxf":case"qt":case"rm":case"rmvb":case"rv":case"srt":case"vob":case"vp6":case"vp8":case"vp9":case"webm":case"wmv":case"xvid":return N_;case"aac":case"ac3":case"alac":case"flac":case"m3u":case"mid":case"mka":case"mp3":case"mpc":case"ogg":case"opus":case"ra":case"sdt":case"stap":case"wav":case"wma":return S_;case"adb":case"ads":case"ahk":case"applescript":case"as":case"au3":case"bat":case"bas":case"btm":case"class":case"cljs":case"cmd":case"coffee":case"c":case"cpp":case"cs":case"css":case"ino":case"egt":case"erb":case"go":case"hta":case"html":case"ibi":case"ici":case"ijs":case"itcl":case"jar":case"java":case"js":case"jsx":case"jsp":case"less":case"lua":case"m":case"mrc":case"nuc":case"nud":case"o":case"pde":case"php":case"pl":case"pm":case"ps1":case"ps1xml":case"psc1":case"psd1":case"py":case"pyc":case"pyo":case"rb":case"rdp":case"red":case"rs":case"sb2/sb3":case"scpt":case"scptd":case"sdl":case"sh":case"syjs":case"sypy":case"dcl":case"tns":case"vbs":return k_;case"7z":case"arc":case"arj":case"b6z":case"bz2":case"daa":case"dar":case"deb":case"gz":case"ice":case"mpkg":case"rar":case"tar":case"tbz":case"tgs":case"xapk":case"zim":case"zip":return __;default:return I_}},Sk=(e,t)=>{const n=URL.createObjectURL(e);return{sequenceOrder:t,originFile:e,name:e.name,url:n,type:e.type,mimeType:e.type,uploading:{value:0,title:"Uploading..."}}},Ka=e=>e.assetPath.includes("blob:")?e.assetPath:kk({assetPath:e.assetPath,mimeType:e.mimeType,fileName:e.name}),kk=({assetPath:e,mimeType:t,fileName:n})=>e?`${Ln}/comment-attachment/?path=${e}&mimeType=${t}&fileName=${n}`:"",Sd=e=>e.startsWith("image/"),Tk=async e=>new Promise((t,n)=>{const r=new FileReader;r.readAsArrayBuffer(e),r.onerror=()=>n(new Error("Unable to convert file to base64")),r.onload=()=>{const o=r.result,i=btoa(new Uint8Array(o).reduce((s,a)=>s+String.fromCharCode(a),""));return t(i)}}),Nk=(e,t)=>e.type?e.type:(t==null?void 0:t.toLowerCase())==="msg"?"application/vnd.ms-outlook":"application/octet-stream",Ok=async(e,t,n,r)=>{var m;const o=e.name.split(".").pop(),i=Nk(e,o),s=await Tk(e),a=((m=e.name)==null?void 0:m.split("."))||[];a.pop();const c=a.join("_").replaceAll(".","_")||`file_${Date.now()}.${o}`,l=s.length,f={assetType:"open_playbook_task_comment",commentId:t,fileEncoded:s,fileExtension:o,fileMimetype:i,fileName:c,fileSize:l,sequenceOrder:n},u=new Headers;return u.append("Content-Type","application/json"),u.append("username",r||""),await(await fetch(`${Ln}/upload-comment-asset`,{method:"POST",headers:u,body:JSON.stringify(f)})).json()},hp=async({taskInstanceId:e,username:t})=>{const n=new Headers;return n.append("Content-Type","application/json"),n.append("username",t),await(await fetch(`${Ln}/comments/${e}`,{method:"GET",headers:n})).json()},Po=e=>["comments",+e],Pk=({taskInstanceId:e,enabled:t,username:n})=>{var a;const{queryClient:r}=ir(),o={queryKey:Po(e),queryFn:async()=>await hp({taskInstanceId:e.toString(),username:n}),enabled:t&&!!n,staleTime:1/0},i=Tc(o,r),s=c=>{r.prefetchQuery({...o,queryKey:Po(c),queryFn:async()=>await hp({taskInstanceId:c.toString(),username:n})})};return{comments:((a=i.data)==null?void 0:a.taskComments)||[],...i,isLoading:i.isLoading,prefetchQuery:s}},Mk=(e,t,n,r)=>{const o=Po(t),i=e.getQueryData(o);e.setQueryData(o,{taskComments:[...(i==null?void 0:i.taskComments)||[],r],playbookInstanceId:n,taskInstanceId:t})},Ik=(e,t,n)=>{const r=Po(t),o=e.getQueryData(r);if(o){const i=o.taskComments.filter(s=>s.commentId!==n);e.setQueryData(r,{...o,taskComments:i})}},Lk=(e,t,n)=>{const r=Po(t),o=e.getQueryData(r);if(o){const i=o.taskComments.map(s=>s.commentId===n.commentId?n:s);e.setQueryData(r,{...o,taskComments:i})}},Rk=({playbookInstanceId:e})=>{const{queryClient:t}=ir(),n=sd({mutationFn:async o=>{const{action:i,taskInstanceId:s,timezone:a,commentId:c,comment:l,commentType:f,hasAssets:u,attachments:d,username:h,taskVerified:m}=o,g=await Ek({username:h,...i==="delete"?{action:i}:{},taskInstanceId:s,timezone:a,commentId:c,comment:l,commentType:f,hasAssets:u,taskVerified:m});return g.commentId&&u&&d&&await Promise.all(d.map(p=>Ok(p.originFile,g.commentId,p.sequenceOrder,h))),g},onMutate:async o=>{var u;const{action:i,taskInstanceId:s}=o,a=["comments",s],c=`temp-${crypto.randomUUID()}`,l=`temp-asset-${crypto.randomUUID()}`;await t.cancelQueries({queryKey:a});const f=t.getQueryData(a);return i==="delete"&&o.commentId&&Ik(t,s,o.commentId),i==="add"&&Mk(t,s,+e,{commentId:c,author:o.username,comment:mu(o.comment??""),createdDate:new Date().toISOString(),edited:!1,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentType:o.commentType||"Info",taskAssets:((u=o.attachments)==null?void 0:u.map(d=>({assetId:l,assetPath:d.url,mimeType:d.mimeType,name:d.name,url:d.url,uploading:!0})))??[]}),i==="edit"&&o.commentId&&Lk(t,s,{author:o.username,comment:mu(o.comment??""),createdDate:new Date().toISOString(),edited:!0,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentId:o.commentId,commentType:o.commentType||"Info"}),{previousComments:f,taskInstanceId:s}},onError:(o,i,s)=>{s!=null&&s.previousComments&&t.setQueryData(Po(s.taskInstanceId),s.previousComments)},onSettled:(o,i,s)=>{t.invalidateQueries({queryKey:Po(s.taskInstanceId)}),t.invalidateQueries({queryKey:["playbook",+e]})}});return{manageComment:async o=>n.mutateAsync(o),...n}};function Ha(e){return e?e.replace(/<[^>]*>/g,"").replace(/&nbsp;/g," ").trim().length===0:!0}const Gb="carousel",Zb="controller",Dk="navigation",Fk="no-scroll",kd="portal",jk="root",Jb="toolbar",mp="zoom",ql="loading",Vl="error",Yl="complete",zk="placeholder",$k=e=>`active-slide-${e}`,Bk="fullsize",Td="flex_center",Uk="no_scroll",Xb="no_scroll_padding",Nd="slide",ev="slide_wrapper",Wk="slide_wrapper_interactive",no="prev",ro="next",pp="swipe",Ri="close",tv="onPointerDown",nv="onPointerMove",rv="onPointerUp",ov="onPointerLeave",iv="onPointerCancel",Od="onKeyDown",Kk="onKeyUp",Pd="onWheel",Hk="Escape",qk="ArrowLeft",Vk="ArrowRight",Yk="button",pu="icon",sv="contain",gp="cover",av="Unknown action type",cv="yarl__";function Tn(...e){return[...e].filter(Boolean).join(" ")}function Se(e){return`${cv}${e}`}function Dt(e){return`--${cv}${e}`}function ta(e,t){return`${e}${t?`_${t}`:""}`}function Md(e){return t=>ta(e,t)}function Di(e,t){var n;return(n=e==null?void 0:e[t])!==null&&n!==void 0?n:t}function Qk(e,t,n){return Di(e,"{index} of {total}").replace(/\{index}/g,`${Fd(n,t.length)+1}`).replace(/\{total}/g,`${t.length}`)}function Id(...e){return()=>{e.forEach(t=>{t()})}}function lr(e,t,n){return()=>{const r=C.useContext(n);if(!r)throw new Error(`${e} must be used within a ${t}.Provider`);return r}}function Ld(){return typeof window<"u"}function Rd(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}function Yi(e){return e.type===void 0||e.type==="image"}function Dd(e,t){return e.imageFit===gp||e.imageFit!==sv&&t===gp}function Yc(e){return typeof e=="string"?Number.parseInt(e,10):e}function fc(e){if(typeof e=="number")return{pixel:e};if(typeof e=="string"){const t=Yc(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function Gk(e,t){const n=fc(t),r=n.percent!==void 0?e.width/100*n.percent:n.pixel;return{width:Math.max(e.width-2*r,0),height:Math.max(e.height-2*r,0)}}function Zk(){return(Ld()?window==null?void 0:window.devicePixelRatio:void 0)||1}function Fd(e,t){return t>0?(e%t+t)%t:0}function lv(e){return e.length>0}function fv(e,t){return e[Fd(t,e.length)]}function gu(e,t){return lv(e)?fv(e,t):void 0}function Jk(e){return Yi(e)?e.src:void 0}function Xk(e,t,n){if(!n)return e;const{buttons:r,...o}=e,i=r.findIndex(a=>a===t),s=C.isValidElement(n)?C.cloneElement(n,{key:t},null):n;if(i>=0){const a=[...r];return a.splice(i,1,s),{buttons:a,...o}}return{buttons:[s,...r],...o}}function e3(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}const t3=Number(C.version.split(".")[0])>=19;function n3(e){return{inert:t3?e:e?"":void 0}}function r3(e){e.scrollTop}const yu={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[Ri]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:sv,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,preventDefaultWheelX:!0,preventDefaultWheelY:!1,disableSwipeNavigation:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function Ur(e,t){return{name:e,component:t}}function nt(e,t){return{module:e,children:t}}function uv(e,t,n){return e.module.name===t?n(e):e.children?[nt(e.module,e.children.flatMap(r=>{var o;return(o=uv(r,t,n))!==null&&o!==void 0?o:[]}))]:[e]}function ni(e,t,n){return e.flatMap(r=>{var o;return(o=uv(r,t,n))!==null&&o!==void 0?o:[]})}function o3(e,t=[],n=[]){let r=e;const o=h=>{const m=[...r];for(;m.length>0;){const g=m.pop();if((g==null?void 0:g.module.name)===h)return!0;g!=null&&g.children&&m.push(...g.children)}return!1},i=(h,m)=>{if(h===""){r=[nt(m,r)];return}r=ni(r,h,g=>[nt(m,[g])])},s=(h,m)=>{r=ni(r,h,g=>[nt(g.module,[nt(m,g.children)])])},a=(h,m,g)=>{r=ni(r,h,p=>{var y;return[nt(p.module,[...g?[nt(m)]:[],...(y=p.children)!==null&&y!==void 0?y:[],...g?[]:[nt(m)]])]})},c=(h,m,g)=>{r=ni(r,h,p=>[...g?[nt(m)]:[],p,...g?[]:[nt(m)]])},l=h=>{s(Zb,h)},f=(h,m)=>{r=ni(r,h,g=>[nt(m,g.children)])},u=h=>{r=ni(r,h,m=>m.children)},d=h=>{n.push(h)};return t.forEach(h=>{h({contains:o,addParent:i,append:s,addChild:a,addSibling:c,addModule:l,replace:f,remove:u,augment:d})}),{config:r,augmentation:h=>n.reduce((m,g)=>g(m),h)}}const dv=C.createContext(null),hv=lr("useA11yContext","A11yContext",dv);function i3({children:e}){const[t,n]=C.useState(!1),[r,o]=C.useState(!1),i=C.useMemo(()=>({focusWithin:t,trackFocusWithin:(a,c)=>{const l=f=>u=>{var d;u.currentTarget.contains(u.relatedTarget)||n(f),(d=f?a:c)===null||d===void 0||d(u)};return{onFocus:l(!0),onBlur:l(!1)}},autoPlaying:r,setAutoPlaying:o}),[t,r]);return C.createElement(dv.Provider,{value:i},e)}const mv=C.createContext(null),Qc=lr("useDocument","DocumentContext",mv);function s3({nodeRef:e,children:t}){const n=C.useMemo(()=>{const r=i=>{var s;return((s=i||e.current)===null||s===void 0?void 0:s.ownerDocument)||document};return{getOwnerDocument:r,getOwnerWindow:i=>{var s;return((s=r(i))===null||s===void 0?void 0:s.defaultView)||window}}},[e]);return C.createElement(mv.Provider,{value:n},t)}const pv=C.createContext(null),Gc=lr("useEvents","EventsContext",pv);function a3({children:e}){const[t]=C.useState({});C.useEffect(()=>()=>{Object.keys(t).forEach(r=>delete t[r])},[t]);const n=C.useMemo(()=>{const r=(s,a)=>{var c;(c=t[s])===null||c===void 0||c.splice(0,t[s].length,...t[s].filter(l=>l!==a))};return{publish:(...[s,a])=>{var c;(c=t[s])===null||c===void 0||c.forEach(l=>l(a))},subscribe:(s,a)=>(t[s]||(t[s]=[]),t[s].push(a),()=>r(s,a)),unsubscribe:r}},[t]);return C.createElement(pv.Provider,{value:n},e)}const gv=C.createContext(null),Xt=lr("useLightboxProps","LightboxPropsContext",gv);function c3({children:e,...t}){return C.createElement(gv.Provider,{value:t},e)}const yv=C.createContext(null),Wr=lr("useLightboxState","LightboxStateContext",yv),bv=C.createContext(null),l3=lr("useLightboxDispatch","LightboxDispatchContext",bv);function f3(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(t==null?void 0:t.increment)||0,o=e.globalIndex+r,i=Fd(o,n.length),s=gu(n,i),a=r||t.duration!==void 0?{increment:r,duration:t.duration,easing:t.easing}:void 0;return{slides:n,currentIndex:i,globalIndex:o,currentSlide:s,animation:a}}case"update":return t.slides!==e.slides||t.index!==e.currentIndex?{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:gu(t.slides,t.index)}:e;default:throw new Error(av)}}function u3({slides:e,index:t,children:n}){const[r,o]=C.useReducer(f3,{slides:e,currentIndex:t,globalIndex:t,currentSlide:gu(e,t)});C.useEffect(()=>{o({type:"update",slides:e,index:t})},[e,t]);const i=C.useMemo(()=>({...r,state:r,dispatch:o}),[r,o]);return C.createElement(bv.Provider,{value:o},C.createElement(yv.Provider,{value:i},n))}const vv=C.createContext(null),Zc=lr("useTimeouts","TimeoutsContext",vv);function d3({children:e}){const[t]=C.useState([]);C.useEffect(()=>()=>{t.forEach(r=>window.clearTimeout(r)),t.splice(0,t.length)},[t]);const n=C.useMemo(()=>{const r=s=>{t.splice(0,t.length,...t.filter(a=>a!==s))};return{setTimeout:(s,a)=>{const c=window.setTimeout(()=>{r(c),s()},a);return t.push(c),c},clearTimeout:s=>{s!==void 0&&(r(s),window.clearTimeout(s))}}},[t]);return C.createElement(vv.Provider,{value:n},e)}const jd=C.forwardRef(function({label:t,className:n,icon:r,renderIcon:o,onClick:i,style:s,...a},c){const{styles:l,labels:f}=Xt(),u=Di(f,t);return C.createElement("button",{ref:c,type:"button",title:u,"aria-label":u,className:Tn(Se(Yk),n),onClick:i,style:{...s,...l.button},...a},o?o():C.createElement(r,{className:Se(pu),style:l.icon}))});function h3(e,t){const n=r=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...r},t);return n.displayName=e,n}function Ko(e,t){return h3(e,C.createElement("g",{fill:"currentColor"},C.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const m3=Ko("Close",C.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),p3=Ko("Previous",C.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),g3=Ko("Next",C.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),y3=Ko("Loading",C.createElement(C.Fragment,null,Array.from({length:8}).map((e,t,n)=>C.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(t+1),transform:`rotate(${360/n.length*t}, 12, 12)`})))),b3=Ko("Error",C.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),Pn=Ld()?C.useLayoutEffect:C.useEffect;function zd(){const[e,t]=C.useState(!1);return C.useEffect(()=>{var n,r;const o=(n=window.matchMedia)===null||n===void 0?void 0:n.call(window,"(prefers-reduced-motion: reduce)");t(o==null?void 0:o.matches);const i=s=>t(s.matches);return(r=o==null?void 0:o.addEventListener)===null||r===void 0||r.call(o,"change",i),()=>{var s;return(s=o==null?void 0:o.removeEventListener)===null||s===void 0?void 0:s.call(o,"change",i)}},[]),e}function v3(e){let t=0,n=0,r=0;const i=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(i){const s=i[1].split(",").map(Yc);s.length===6?(t=s[4],n=s[5]):s.length===16&&(t=s[12],n=s[13],r=s[14])}return{x:t,y:n,z:r}}function yp(e,t){const n=C.useRef(void 0),r=C.useRef(void 0),o=zd();return Pn(()=>{var i,s,a;if(e.current&&n.current!==void 0&&!o){const{keyframes:c,duration:l,easing:f,onfinish:u}=t(n.current,e.current.getBoundingClientRect(),v3(e.current))||{};if(c&&l){(i=r.current)===null||i===void 0||i.cancel(),r.current=void 0;try{r.current=(a=(s=e.current).animate)===null||a===void 0?void 0:a.call(s,c,{duration:l,easing:f})}catch(d){console.error(d)}r.current&&(r.current.onfinish=()=>{r.current=void 0,u==null||u()})}}n.current=void 0}),{prepareAnimation:i=>{n.current=i},isAnimationPlaying:()=>{var i;return((i=r.current)===null||i===void 0?void 0:i.playState)==="running"}}}function xv(){const e=C.useRef(null),t=C.useRef(void 0),[n,r]=C.useState();return{setContainerRef:C.useCallback(i=>{e.current=i,t.current&&(t.current.disconnect(),t.current=void 0);const s=()=>{if(i){const a=window.getComputedStyle(i),c=l=>parseFloat(l)||0;r({width:Math.round(i.clientWidth-c(a.paddingLeft)-c(a.paddingRight)),height:Math.round(i.clientHeight-c(a.paddingTop)-c(a.paddingBottom))})}else r(void 0)};s(),i&&typeof ResizeObserver<"u"&&(t.current=new ResizeObserver(s),t.current.observe(i))},[]),containerRef:e,containerRect:n}}function qa(){const e=C.useRef(void 0),{setTimeout:t,clearTimeout:n}=Zc();return C.useCallback((r,o)=>{n(e.current),e.current=t(r,o>0?o:0)},[t,n])}function Le(e){const t=C.useRef(e);return Pn(()=>{t.current=e}),C.useCallback((...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function bp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function bu(e,t){return C.useMemo(()=>e==null&&t==null?null:n=>{bp(e,n),bp(t,n)},[e,t])}function x3(e,t=!1){const n=C.useRef(!1);Pn(()=>{t&&n.current&&(n.current=!1,e())},[t,e]);const r=C.useCallback(()=>{n.current=!0},[]),o=C.useCallback(()=>{n.current=!1},[]);return{onFocus:r,onBlur:o}}function $d(){const[e,t]=C.useState(!1);return Pn(()=>{t(window.getComputedStyle(window.document.documentElement).direction==="rtl")},[]),e}function w3(){const[e]=C.useState({}),t=C.useCallback((o,i)=>{var s;(s=e[o])===null||s===void 0||s.forEach(a=>{i.isPropagationStopped()||a(i)})},[e]),n=C.useMemo(()=>({onPointerDown:o=>t(tv,o),onPointerMove:o=>t(nv,o),onPointerUp:o=>t(rv,o),onPointerLeave:o=>t(ov,o),onPointerCancel:o=>t(iv,o),onKeyDown:o=>t(Od,o),onKeyUp:o=>t(Kk,o),onWheel:o=>t(Pd,o)}),[t]),r=C.useCallback((o,i)=>(e[o]||(e[o]=[]),e[o].unshift(i),()=>{const s=e[o];s&&s.splice(0,s.length,...s.filter(a=>a!==i))}),[e]);return{registerSensors:n,subscribeSensors:r}}function vp(e,t){const n=C.useRef(0),r=qa(),o=Le((...i)=>{n.current=Date.now(),e(i)});return C.useCallback((...i)=>{r(()=>{o(i)},t-(Date.now()-n.current))},[t,o,r])}const Ql=Md("slide"),Gl=Md("slide_image");function uc({slide:e,offset:t,render:n,rect:r,imageFit:o,imageProps:i,onClick:s,onLoad:a,onError:c,style:l}){var f,u,d,h,m,g,p,y;const[b,x]=C.useState(ql),{publish:w}=Gc(),{setTimeout:A}=Zc(),_=C.useRef(null);C.useEffect(()=>{t===0&&w($k(b))},[t,b,w]);const S=Le(K=>{("decode"in K?K.decode():Promise.resolve()).catch(()=>{}).then(()=>{K.parentNode&&(x(Yl),A(()=>{a==null||a(K)},0))})}),E=C.useCallback(K=>{_.current=K,K!=null&&K.complete&&S(K)},[S]),N=C.useCallback(K=>{S(K.currentTarget)},[S]),P=Le(()=>{x(Vl),c==null||c()}),I=Dd(e,o),W=(K,U)=>Number.isFinite(K)?K:U,j=W(Math.max(...((u=(f=e.srcSet)===null||f===void 0?void 0:f.map(K=>K.width))!==null&&u!==void 0?u:[]).concat(e.width?[e.width]:[]).filter(Boolean)),((d=_.current)===null||d===void 0?void 0:d.naturalWidth)||0),z=W(Math.max(...((m=(h=e.srcSet)===null||h===void 0?void 0:h.map(K=>K.height))!==null&&m!==void 0?m:[]).concat(e.height?[e.height]:[]).filter(Boolean)),((g=_.current)===null||g===void 0?void 0:g.naturalHeight)||0),Y=j&&z?{maxWidth:`min(${j}px, 100%)`,maxHeight:`min(${z}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},Q=(p=e.srcSet)===null||p===void 0?void 0:p.sort((K,U)=>K.width-U.width).map(K=>`${K.src} ${K.width}w`).join(", "),oe=()=>r&&!I&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,M=Q&&r&&Ld()?`${Math.round(Math.min(oe(),r.width))}px`:void 0,{style:re,className:L,...F}=i||{};return C.createElement(C.Fragment,null,C.createElement("img",{ref:E,onLoad:N,onError:P,onClick:s,draggable:!1,className:Tn(Se(Gl()),I&&Se(Gl("cover")),b!==Yl&&Se(Gl("loading")),L),style:{...Y,...l,...re},...F,alt:(y=e.alt)!==null&&y!==void 0?y:"",sizes:M,srcSet:Q,src:e.src}),b!==Yl&&C.createElement("div",{className:Se(Ql(zk))},b===ql&&(n!=null&&n.iconLoading?n.iconLoading():C.createElement(y3,{className:Tn(Se(pu),Se(Ql(ql)))})),b===Vl&&(n!=null&&n.iconError?n.iconError():C.createElement(b3,{className:Tn(Se(pu),Se(Ql(Vl)))}))))}const A3=C.forwardRef(function({className:t,children:n,onFocus:r,onBlur:o,...i},s){const a=C.useRef(null),{trackFocusWithin:c}=hv();return C.createElement(s3,{nodeRef:a},C.createElement("div",{ref:bu(s,a),className:Tn(Se("root"),t),...c(r,o),...i},n))});var yt;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"})(yt||(yt={}));function wv(e,t,n,r,o){C.useEffect(()=>o?()=>{}:Id(e(tv,t),e(nv,n),e(rv,r),e(ov,r),e(iv,r)),[e,t,n,r,o])}var on;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"})(on||(on={}));const Zl=30;function C3({disableSwipeNavigation:e,closeOnBackdropClick:t},n,r,o,i,s,a,c,l,f,u,d,h,m,g,p){const y=C.useRef(0),b=C.useRef([]),x=C.useRef(void 0),w=C.useRef(0),A=C.useRef(on.NONE),_=C.useCallback(j=>{x.current===j.pointerId&&(x.current=void 0,A.current=on.NONE);const z=b.current;z.splice(0,z.length,...z.filter(Y=>Y.pointerId!==j.pointerId))},[]),S=C.useCallback(j=>{_(j),j.persist(),b.current.push(j)},[_]),E=C.useCallback(j=>b.current.find(({pointerId:z})=>j.pointerId===z),[]),N=Le(j=>{S(j)}),P=(j,z)=>u&&j>z||f&&j<-z,I=Le(j=>{const z=E(j);if(z)if(x.current===j.pointerId){const Y=Date.now()-w.current,Q=y.current;A.current===on.SWIPE?Math.abs(Q)>.3*o||Math.abs(Q)>5&&Y<i?c(Q,Y):l(Q):A.current===on.PULL&&(P(Q,2*Zl)?m(Q,Y):g(Q)),y.current=0,A.current=on.NONE}else{const{target:Y}=j;t&&Y instanceof HTMLElement&&Y===z.target&&(Y.classList.contains(Se(Nd))||Y.classList.contains(Se(ev)))&&p()}_(j)}),W=Le(j=>{const z=E(j);if(z){const Y=x.current===j.pointerId;if(j.buttons===0){Y&&y.current!==0?I(j):_(z);return}const Q=j.clientX-z.clientX,oe=j.clientY-z.clientY;if(x.current===void 0){const M=re=>{S(j),x.current=j.pointerId,w.current=Date.now(),A.current=re};Math.abs(Q)>Math.abs(oe)&&Math.abs(Q)>Zl&&r(Q)?e||(M(on.SWIPE),s()):Math.abs(oe)>Math.abs(Q)&&P(oe,Zl)&&(M(on.PULL),d())}else Y&&(A.current===on.SWIPE?(y.current=Q,a(Q)):A.current===on.PULL&&(y.current=oe,h(oe)))}});wv(n,N,W,I)}function _3({preventDefaultWheelX:e,preventDefaultWheelY:t}){const n=C.useRef(null),r=Le(o=>{const i=Math.abs(o.deltaX)>Math.abs(o.deltaY);(i&&e||!i&&t||o.ctrlKey)&&o.preventDefault()});return C.useCallback(o=>{var i;o?o.addEventListener("wheel",r,{passive:!1}):(i=n.current)===null||i===void 0||i.removeEventListener("wheel",r),n.current=o},[r])}function E3(e,t,n,r,o,i,s,a,c){const l=C.useRef(0),f=C.useRef(0),u=C.useRef(void 0),d=C.useRef(void 0),h=C.useRef(0),m=C.useRef(void 0),g=C.useRef(0),{setTimeout:p,clearTimeout:y}=Zc(),b=C.useCallback(()=>{u.current&&(y(u.current),u.current=void 0)},[y]),x=C.useCallback(()=>{d.current&&(y(d.current),d.current=void 0)},[y]),w=Le(()=>{e!==yt.SWIPE&&(l.current=0,g.current=0,b(),x())});C.useEffect(w,[e,w]);const A=Le(S=>{d.current=void 0,l.current===S&&c(l.current)}),_=Le(S=>{if(S.ctrlKey||Math.abs(S.deltaY)>Math.abs(S.deltaX))return;const E=N=>{h.current=N,y(m.current),m.current=N>0?p(()=>{h.current=0,m.current=void 0},300):void 0};if(e===yt.NONE){if(Math.abs(S.deltaX)<=1.2*Math.abs(h.current)){E(S.deltaX);return}if(!n(-S.deltaX))return;if(f.current+=S.deltaX,b(),Math.abs(f.current)>30)f.current=0,E(0),g.current=Date.now(),i();else{const N=f.current;u.current=p(()=>{u.current=void 0,N===f.current&&(f.current=0)},o)}}else if(e===yt.SWIPE){let N=l.current-S.deltaX;if(N=Math.min(Math.abs(N),r)*Math.sign(N),l.current=N,s(N),x(),Math.abs(N)>.2*r){E(S.deltaX),a(N,Date.now()-g.current);return}d.current=p(()=>A(N),2*o)}else E(S.deltaX)});C.useEffect(()=>t(Pd,_),[t,_])}const xp=Md("container"),Av=C.createContext(null),fr=lr("useController","ControllerContext",Av);function S3({children:e,...t}){var n;const{carousel:r,animation:o,controller:i,on:s,styles:a,render:c}=t,{closeOnPullUp:l,closeOnPullDown:f,preventDefaultWheelX:u,preventDefaultWheelY:d}=i,[h,m]=C.useState(),g=Wr(),p=l3(),[y,b]=C.useState(yt.NONE),x=C.useRef(0),w=C.useRef(0),A=C.useRef(1),{registerSensors:_,subscribeSensors:S}=w3(),{subscribe:E,publish:N}=Gc(),P=qa(),I=qa(),W=qa(),{containerRef:j,setContainerRef:z,containerRect:Y}=xv(),Q=bu(_3({preventDefaultWheelX:u,preventDefaultWheelY:d}),z),oe=C.useRef(null),M=bu(oe,void 0),{getOwnerDocument:re}=Qc(),L=$d(),F=se=>(L?-1:1)*(typeof se=="number"?se:1),K=Le(()=>{var se;return(se=j.current)===null||se===void 0?void 0:se.focus()}),U=Le(()=>t),J=Le(()=>g),V=C.useCallback(se=>N(no,se),[N]),ee=C.useCallback(se=>N(ro,se),[N]),te=C.useCallback(()=>N(Ri),[N]),me=se=>!(r.finite&&(F(se)>0&&g.currentIndex===0||F(se)<0&&g.currentIndex===g.slides.length-1)),ye=se=>{var De;x.current=se,(De=j.current)===null||De===void 0||De.style.setProperty(Dt("swipe_offset"),`${Math.round(se)}px`)},pe=se=>{var De,ct;w.current=se,A.current=(()=>{const Ht=f&&se>0?se:l&&se<0?-se:0;return Math.min(Math.max(Rd(1-Ht/60*(1-.5),2),.5),1)})(),(De=j.current)===null||De===void 0||De.style.setProperty(Dt("pull_offset"),`${Math.round(se)}px`),(ct=j.current)===null||ct===void 0||ct.style.setProperty(Dt("pull_opacity"),`${A.current}`)},{prepareAnimation:ze}=yp(oe,(se,De,ct)=>{if(oe.current&&Y)return{keyframes:[{transform:`translate(0, ${se.rect.y-De.y+ct.y}px)`,opacity:se.opacity},{transform:"translate(0, 0)",opacity:1}],duration:se.duration,easing:o.easing.fade}}),G=(se,De)=>{if(l||f){pe(se);let ct=0;oe.current&&(ct=o.fade*(De?2:1),ze({rect:oe.current.getBoundingClientRect(),opacity:A.current,duration:ct})),W(()=>{pe(0),b(yt.NONE)},ct),b(yt.ANIMATION),De||te()}},{prepareAnimation:qe,isAnimationPlaying:zt}=yp(oe,(se,De,ct)=>{var Mt;if(oe.current&&Y&&(!((Mt=g.animation)===null||Mt===void 0)&&Mt.duration)){const et=fc(r.spacing),Ht=(et.percent?et.percent*Y.width/100:et.pixel)||0;return{keyframes:[{transform:`translate(${F(g.globalIndex-se.index)*(Y.width+Ht)+se.rect.x-De.x+ct.x}px, 0)`},{transform:"translate(0, 0)"}],duration:g.animation.duration,easing:g.animation.easing}}}),pt=Le(se=>{var De,ct;const Mt=se.offset||0,et=Mt?o.swipe:(De=o.navigation)!==null&&De!==void 0?De:o.swipe,Ht=!Mt&&!zt()?o.easing.navigation:o.easing.swipe;let{direction:At}=se;const dr=(ct=se.count)!==null&&ct!==void 0?ct:1;let Go=yt.ANIMATION,$t=et*dr;if(!At){const hr=Y==null?void 0:Y.width,Gr=se.duration||0,mr=hr?et/hr*Math.abs(Mt):et;dr!==0?(Gr<mr?$t=$t/mr*Math.max(Gr,mr/5):hr&&($t=et/hr*(hr-Math.abs(Mt))),At=F(Mt)>0?no:ro):$t=et/2}let Qr=0;At===no?me(F(1))?Qr=-dr:(Go=yt.NONE,$t=et):At===ro&&(me(F(-1))?Qr=dr:(Go=yt.NONE,$t=et)),$t=Math.round($t),I(()=>{ye(0),b(yt.NONE)},$t),oe.current&&qe({rect:oe.current.getBoundingClientRect(),index:g.globalIndex}),b(Go),N(pp,{type:"swipe",increment:Qr,duration:$t,easing:Ht})});C.useEffect(()=>{var se,De;!((se=g.animation)===null||se===void 0)&&se.increment&&(!((De=g.animation)===null||De===void 0)&&De.duration)&&P(()=>p({type:"swipe",increment:0}),g.animation.duration)},[g.animation,p,P]);const Yo=[S,me,(Y==null?void 0:Y.width)||0,o.swipe,()=>b(yt.SWIPE),se=>ye(se),(se,De)=>pt({offset:se,duration:De,count:1}),se=>pt({offset:se,count:0})],is=[()=>{f&&b(yt.PULL)},se=>pe(se),se=>G(se),se=>G(se,!0)];C3(i,...Yo,l,f,...is,te),E3(y,...Yo);const Rn=Le(()=>{i.focus&&re().querySelector(`.${Se(kd)} .${Se(xp())}`)&&K()});C.useEffect(Rn,[Rn]);const Yr=Le(()=>{var se;(se=s.view)===null||se===void 0||se.call(s,{index:g.currentIndex})});C.useEffect(Yr,[g.globalIndex,Yr]),C.useEffect(()=>Id(E(no,se=>pt({direction:no,...se})),E(ro,se=>pt({direction:ro,...se})),E(pp,se=>p(se))),[E,pt,p]);const Qo=C.useMemo(()=>({prev:V,next:ee,close:te,focus:K,slideRect:Y?Gk(Y,r.padding):{width:0,height:0},containerRect:Y||{width:0,height:0},subscribeSensors:S,containerRef:j,setCarouselRef:M,toolbarWidth:h,setToolbarWidth:m}),[V,ee,te,K,S,Y,j,M,h,m,r.padding]);return C.useImperativeHandle(i.ref,()=>({prev:V,next:ee,close:te,focus:K,getLightboxProps:U,getLightboxState:J}),[V,ee,te,K,U,J]),C.createElement("div",{ref:Q,className:Tn(Se(xp()),Se(Td)),style:{...y===yt.SWIPE?{[Dt("swipe_offset")]:`${Math.round(x.current)}px`}:null,...y===yt.PULL?{[Dt("pull_offset")]:`${Math.round(w.current)}px`,[Dt("pull_opacity")]:`${A.current}`}:null,...i.touchAction!=="none"?{[Dt("controller_touch_action")]:i.touchAction}:null,...a.container},tabIndex:-1,..._},Y&&C.createElement(Av.Provider,{value:Qo},e,(n=c.controls)===null||n===void 0?void 0:n.call(c)))}const k3=Ur(Zb,S3);function Xr(e){return ta(Gb,e)}function wp(e){return ta(Nd,e)}function T3({slide:e,offset:t}){const n=C.useRef(null),{currentIndex:r,slides:o}=Wr(),{slideRect:i,focus:s}=fr(),{render:a,carousel:{imageFit:c,imageProps:l},on:{click:f},styles:{slide:u},labels:d}=Xt(),{getOwnerDocument:h}=Qc(),m=t!==0;C.useEffect(()=>{var p;m&&(!((p=n.current)===null||p===void 0)&&p.contains(h().activeElement))&&s()},[m,s,h]);const g=()=>{var p,y,b,x;let w=(p=a.slide)===null||p===void 0?void 0:p.call(a,{slide:e,offset:t,rect:i});return!w&&Yi(e)&&(w=C.createElement(uc,{slide:e,offset:t,render:a,rect:i,imageFit:c,imageProps:l,onClick:m?void 0:()=>f==null?void 0:f({index:r})})),w?C.createElement(C.Fragment,null,(y=a.slideHeader)===null||y===void 0?void 0:y.call(a,{slide:e}),((b=a.slideContainer)!==null&&b!==void 0?b:(({children:A})=>A))({slide:e,children:w}),(x=a.slideFooter)===null||x===void 0?void 0:x.call(a,{slide:e})):null};return C.createElement("div",{ref:n,className:Tn(Se(wp()),!m&&Se(wp("current")),Se(Td)),...n3(m),style:u,role:"group","aria-roledescription":Di(d,"Slide"),"aria-label":Qk(d,o,r+t)},g())}function N3(){const e=Xt().styles.slide;return C.createElement("div",{className:Se(Nd),style:e})}function O3({carousel:e,labels:t}){const{slides:n,currentIndex:r,globalIndex:o}=Wr(),{setCarouselRef:i}=fr(),{autoPlaying:s,focusWithin:a}=hv(),c=fc(e.spacing),l=fc(e.padding),f=e3(e,n,1),u=[];if(lv(n))for(let d=r-f;d<=r+f;d+=1){const h=fv(n,d),m=o-r+d,g=e.finite&&(d<0||d>n.length-1);u.push(g?{key:m}:{key:[`${m}`,Jk(h)].filter(Boolean).join("|"),offset:d-r,slide:h})}return C.createElement("div",{ref:i,className:Tn(Se(Xr()),u.length>0&&Se(Xr("with_slides"))),style:{[`${Dt(Xr("slides_count"))}`]:u.length,[`${Dt(Xr("spacing_px"))}`]:c.pixel||0,[`${Dt(Xr("spacing_percent"))}`]:c.percent||0,[`${Dt(Xr("padding_px"))}`]:l.pixel||0,[`${Dt(Xr("padding_percent"))}`]:l.percent||0},role:"region","aria-live":s&&!a?"off":"polite","aria-roledescription":Di(t,"Carousel"),"aria-label":Di(t,"Photo gallery")},u.map(({key:d,slide:h,offset:m})=>h?C.createElement(T3,{key:d,slide:h,offset:m}):C.createElement(N3,{key:d})))}const P3=Ur(Gb,O3);function Cv(){const{carousel:e}=Xt(),{slides:t,currentIndex:n}=Wr(),r=t.length===0||e.finite&&n===0,o=t.length===0||e.finite&&n===t.length-1;return{prevDisabled:r,nextDisabled:o}}function M3(e){var t;const n=$d(),{publish:r}=Gc(),{animation:o}=Xt(),{prevDisabled:i,nextDisabled:s}=Cv(),a=((t=o.navigation)!==null&&t!==void 0?t:o.swipe)/2,c=vp(()=>r(no),a),l=vp(()=>r(ro),a),f=Le(u=>{switch(u.key){case Hk:r(Ri);break;case qk:(n?s:i)||(n?l:c)();break;case Vk:(n?i:s)||(n?c:l)();break}});C.useEffect(()=>e(Od,f),[e,f])}function Ap({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:i,style:s}){return C.createElement(jd,{label:e,icon:t,renderIcon:n,className:Se(`navigation_${r}`),disabled:i,onClick:o,style:s,...x3(fr().focus,i)})}function I3({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:i,next:s,subscribeSensors:a}=fr(),{prevDisabled:c,nextDisabled:l}=Cv();return M3(a),C.createElement(C.Fragment,null,e?e():C.createElement(Ap,{label:"Previous",action:no,icon:p3,renderIcon:n,style:o.navigationPrev,disabled:c,onClick:i}),t?t():C.createElement(Ap,{label:"Next",action:ro,icon:g3,renderIcon:r,style:o.navigationNext,disabled:l,onClick:s}))}const L3=Ur(Dk,I3),Cp=Se(Uk),R3=Se(Xb);function D3(e){return"style"in e}function _p(e,t,n){const r=window.getComputedStyle(e),o=n?"padding-left":"padding-right",i=n?r.paddingLeft:r.paddingRight,s=e.style.getPropertyValue(o);return e.style.setProperty(o,`${(Yc(i)||0)+t}px`),()=>{s?e.style.setProperty(o,s):e.style.removeProperty(o)}}function F3({noScroll:{disabled:e},children:t}){const n=$d(),{getOwnerDocument:r,getOwnerWindow:o}=Qc();return C.useEffect(()=>{if(e)return()=>{};const i=[],s=o(),{body:a,documentElement:c}=r(),l=Math.round(s.innerWidth-c.clientWidth);if(l>0){i.push(_p(a,l,n));const f=a.getElementsByTagName("*");for(let u=0;u<f.length;u+=1){const d=f[u];D3(d)&&s.getComputedStyle(d).getPropertyValue("position")==="fixed"&&!d.classList.contains(R3)&&i.push(_p(d,l,n))}}return a.classList.add(Cp),()=>{a.classList.remove(Cp),i.forEach(f=>f())}},[n,e,r,o]),C.createElement(C.Fragment,null,t)}const j3=Ur(Fk,F3);function Ep(e){return ta(kd,e)}function Sp(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}function z3({children:e,animation:t,styles:n,className:r,on:o,portal:i,close:s,labels:a}){const[c,l]=C.useState(!1),[f,u]=C.useState(!1),d=C.useRef([]),h=C.useRef(null),{setTimeout:m}=Zc(),{subscribe:g}=Gc(),y=zd()?0:t.fade;C.useEffect(()=>(l(!0),()=>{l(!1),u(!1)}),[]);const b=Le(()=>{d.current.forEach(_=>_()),d.current=[]}),x=Le(()=>{var _;u(!1),b(),(_=o.exiting)===null||_===void 0||_.call(o),m(()=>{var S;(S=o.exited)===null||S===void 0||S.call(o),s()},y)});C.useEffect(()=>g(Ri,x),[g,x]);const w=Le(_=>{var S,E,N;r3(_),u(!0),(S=o.entering)===null||S===void 0||S.call(o);const P=(N=(E=_.parentNode)===null||E===void 0?void 0:E.children)!==null&&N!==void 0?N:[];for(let I=0;I<P.length;I+=1){const W=P[I];["TEMPLATE","SCRIPT","STYLE"].indexOf(W.tagName)===-1&&W!==_&&(d.current.push(Sp(W,"inert","")),d.current.push(Sp(W,"aria-hidden","true")))}d.current.push(()=>{var I,W;(W=(I=h.current)===null||I===void 0?void 0:I.focus)===null||W===void 0||W.call(I)}),m(()=>{var I;(I=o.entered)===null||I===void 0||I.call(o)},y)}),A=C.useCallback(_=>{_?w(_):b()},[w,b]);return c?Wt.createPortal(C.createElement(A3,{ref:A,className:Tn(r,Se(Ep()),Se(Xb),f&&Se(Ep("open"))),"aria-modal":!0,role:"dialog","aria-label":Di(a,"Lightbox"),style:{...t.fade!==yu.animation.fade?{[Dt("fade_animation_duration")]:`${y}ms`}:null,...t.easing.fade!==yu.animation.easing.fade?{[Dt("fade_animation_timing_function")]:t.easing.fade}:null,...n.root},onFocus:_=>{h.current||(h.current=_.relatedTarget)}},e),i.root||document.body):null}const $3=Ur(kd,z3);function B3({children:e}){return C.createElement(C.Fragment,null,e)}const U3=Ur(jk,B3);function W3(e){return ta(Jb,e)}function K3({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:i}=fr(),{setContainerRef:s,containerRect:a}=xv();Pn(()=>{i(a==null?void 0:a.width)},[i,a==null?void 0:a.width]);const c=()=>t?t():C.createElement(jd,{key:Ri,label:"Close",icon:m3,renderIcon:n,onClick:o});return C.createElement("div",{ref:s,style:r.toolbar,className:Se(W3())},e==null?void 0:e.map(l=>l===Ri?c():l))}const H3=Ur(Jb,K3);function _v(e,t){var n;return C.createElement(e.module.component,{key:e.module.name,...t},(n=e.children)===null||n===void 0?void 0:n.map(r=>_v(r,t)))}function q3(e,t={}){const{easing:n,...r}=e,{easing:o,...i}=t;return{easing:{...n,...o},...r,...i}}function V3({carousel:e,animation:t,render:n,toolbar:r,controller:o,noScroll:i,on:s,plugins:a,slides:c,index:l,...f}){const{animation:u,carousel:d,render:h,toolbar:m,controller:g,noScroll:p,on:y,slides:b,index:x,plugins:w,...A}=yu,{config:_,augmentation:S}=o3([nt($3,[nt(j3,[nt(k3,[nt(P3),nt(H3),nt(L3)])])])],a||w),E=S({animation:q3(u,t),carousel:{...d,...e},render:{...h,...n},toolbar:{...m,...r},controller:{...g,...o},noScroll:{...p,...i},on:{...y,...s},...A,...f});return E.open?C.createElement(c3,{...E},C.createElement(u3,{slides:c||b,index:Yc(l||x)},C.createElement(d3,null,C.createElement(a3,null,C.createElement(i3,null,_v(nt(U3,_),E)))))):null}const Y3={minZoom:1,maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,pinchZoomV4:!1,scrollToZoom:!1};function Q3(e){return Math.min(Math.max(e,Number.EPSILON),1)}function Ev(e){const{minZoom:t,...n}={...Y3,...e};return{minZoom:Q3(t),...n}}function G3(e,t,n,r){const o=C.useRef(void 0),i=C.useRef(void 0),{zoom:s}=Xt().animation,a=zd(),c=Le(()=>{var l,f,u;if((l=o.current)===null||l===void 0||l.cancel(),o.current=void 0,i.current&&(r!=null&&r.current)){try{o.current=(u=(f=r.current).animate)===null||u===void 0?void 0:u.call(f,[{transform:i.current},{transform:`scale(${e}) translateX(${t}px) translateY(${n}px)`}],{duration:a?0:s??500,easing:o.current?"ease-out":"ease-in-out"})}catch(d){console.error(d)}i.current=void 0,o.current&&(o.current.onfinish=()=>{o.current=void 0})}});return Pn(c,[e,t,n,c]),C.useCallback(()=>{i.current=r!=null&&r.current?window.getComputedStyle(r.current).transform:void 0},[r])}function Z3(e,t){const{on:n}=Xt(),r=Le(()=>{var o;t||(o=n.zoom)===null||o===void 0||o.call(n,{zoom:e})});C.useEffect(r,[e,r])}function Jc(){const{zoom:e}=Xt();return Ev(e)}function J3(e,t){var n,r;let o={width:0,height:0},i={width:0,height:0};const{currentSlide:s}=Wr(),{imageFit:a}=Xt().carousel,{maxZoomPixelRatio:c}=Jc();if(e&&s){const f={...s,...t};if(Yi(f)){const u=Dd(f,a),d=Math.max(...(((n=f.srcSet)===null||n===void 0?void 0:n.map(m=>m.width))||[]).concat(f.width?[f.width]:[])),h=Math.max(...(((r=f.srcSet)===null||r===void 0?void 0:r.map(m=>m.height))||[]).concat(f.height?[f.height]:[]));d>0&&h>0&&e.width>0&&e.height>0&&(i=u?{width:Math.round(Math.min(d,e.width/e.height*h)),height:Math.round(Math.min(h,e.height/e.width*d))}:{width:d,height:h},i={width:i.width*c,height:i.height*c},o=u?{width:Math.min(e.width,i.width,d),height:Math.min(e.height,i.height,h)}:{width:Math.round(Math.min(e.width,e.height/h*d,d)),height:Math.round(Math.min(e.height,e.width/d*h,h))})}}const l=o.width?Math.max(Rd(i.width/o.width,5),1):1;return{imageRect:o,maxZoom:l}}function kp(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)}function Tp(e,t,n=100,r=2){return e*Math.min(1+Math.abs(t/n),r)**Math.sign(t)}function X3(e,t,n,r,o,i,s,a,c){const l=C.useRef([]),f=C.useRef(0),u=C.useRef(void 0),{globalIndex:d}=Wr(),{getOwnerWindow:h}=Qc(),{containerRef:m,subscribeSensors:g}=fr(),{keyboardMoveDistance:p,zoomInMultiplier:y,wheelZoomDistanceFactor:b,scrollToZoom:x,doubleTapDelay:w,doubleClickDelay:A,doubleClickMaxStops:_,pinchZoomDistanceFactor:S,pinchZoomV4:E}=Jc(),N=C.useCallback(M=>{if(m.current){const{pageX:re,pageY:L}=M,{scrollX:F,scrollY:K}=h(),{left:U,top:J,width:V,height:ee}=m.current.getBoundingClientRect();return[re-U-F-V/2,L-J-K-ee/2]}return[]},[m,h]),P=Le(M=>{const{key:re,metaKey:L,ctrlKey:F}=M,K=L||F,U=()=>{M.preventDefault(),M.stopPropagation()};if(e>1){const J=(V,ee)=>{U(),a(V,ee)};re==="ArrowDown"?J(0,p):re==="ArrowUp"?J(0,-p):re==="ArrowLeft"?J(-p,0):re==="ArrowRight"&&J(p,0)}re==="+"||K&&re==="="?(U(),o()):re==="-"||K&&re==="_"?(U(),i()):K&&re==="0"&&(U(),s(1))}),I=Le(M=>{if((M.ctrlKey||x)&&Math.abs(M.deltaY)>Math.abs(M.deltaX)){M.stopPropagation(),s(Tp(e,-M.deltaY,b),!0,...N(M));return}e>1&&(M.stopPropagation(),x||a(M.deltaX,M.deltaY))}),W=C.useCallback(M=>{const re=l.current;re.splice(0,re.length,...re.filter(L=>L.pointerId!==M.pointerId))},[]),j=C.useCallback(M=>{W(M),M.persist(),l.current.push(M)},[W]),z=Le(M=>{var re;const L=l.current;if(M.pointerType==="mouse"&&M.buttons>1||!(!((re=c==null?void 0:c.current)===null||re===void 0)&&re.contains(M.target)))return;e>1&&M.stopPropagation();const{timeStamp:F}=M;if(L.length===0&&F-f.current<(M.pointerType==="touch"?w:A)){f.current=0;const K=e>=1?e!==n?e*Math.max(n**(1/_),y):1:e!==t?e/Math.max(t**(-1/_),y):1;s(K,!1,...N(M))}else f.current=F;if(j(M),L.length===2){const K=kp(L[0],L[1]);u.current={previousDistance:K,initialDistance:Math.max(K,1),initialZoom:e}}}),Y=Le(M=>{const re=l.current,L=re.find(F=>F.pointerId===M.pointerId);if(re.length===2&&u.current){M.stopPropagation(),j(M);const F=kp(re[0],re[1]),K=E?u.current.initialZoom/u.current.initialDistance*F:Tp(e,F-u.current.previousDistance,S);s(K,!0,...re.map(U=>N(U)).reduce((U,J)=>J.map((V,ee)=>U[ee]+V/2))),u.current.previousDistance=F;return}e>1&&(M.stopPropagation(),L&&(re.length===1&&a((L.clientX-M.clientX)/e,(L.clientY-M.clientY)/e),j(M)))}),Q=C.useCallback(M=>{const re=l.current;re.length===2&&re.find(L=>L.pointerId===M.pointerId)&&(u.current=void 0),W(M)},[W]),oe=C.useCallback(()=>{const M=l.current;M.splice(0,M.length),f.current=0,u.current=void 0},[]);wv(g,z,Y,Q,r),C.useEffect(oe,[d,oe]),C.useEffect(()=>r?()=>{}:Id(oe,g(Od,P),g(Pd,I)),[r,g,oe,P,I])}function eT(e,t,n){const[r,o]=C.useState(1),[i,s]=C.useState(0),[a,c]=C.useState(0),l=G3(r,i,a,n),{currentSlide:f,globalIndex:u}=Wr(),{containerRect:d,slideRect:h}=fr(),{minZoom:m,zoomInMultiplier:g}=Jc(),p=f&&Yi(f)?f.src:void 0,y=!p||!(n!=null&&n.current);Pn(()=>{o(1),s(0),c(0)},[u,p]);const b=C.useCallback((S,E,N)=>{const P=N||r,I=i-(S||0),W=a-(E||0),j=(e.width*P-h.width)/2/P,z=(e.height*P-h.height)/2/P;s(Math.min(Math.abs(I),Math.max(j,0))*Math.sign(I)),c(Math.min(Math.abs(W),Math.max(z,0))*Math.sign(W))},[r,i,a,h,e.width,e.height]),x=C.useCallback((S,E,N,P)=>{const I=Rd(S+.01<t?S-.01>m?S:m:t,5);E||l(),b(N?N*(1/r-1/I):0,P?P*(1/r-1/I):0,I),o(I)},[r,m,t,b,l]),w=Le(()=>{r>1&&(r>t&&x(t,!0),b())});Pn(w,[d.width,d.height,w]);const A=C.useCallback(()=>{const S=r*g;x(r<1&&S>1?1:S)},[r,g,x]),_=C.useCallback(()=>{const S=r/g;x(r>1&&S<1?1:S)},[r,g,x]);return{zoom:r,offsetX:i,offsetY:a,disabled:y,changeOffsets:b,changeZoom:x,zoomIn:A,zoomOut:_}}const Sv=C.createContext(null),Bd=lr("useZoom","ZoomControllerContext",Sv);function tT({children:e}){const[t,n]=C.useState(),{slideRect:r}=fr(),{ref:o,minZoom:i}=Jc(),{imageRect:s,maxZoom:a}=J3(r,t==null?void 0:t.imageDimensions),{zoom:c,offsetX:l,offsetY:f,disabled:u,changeZoom:d,changeOffsets:h,zoomIn:m,zoomOut:g}=eT(s,a,t==null?void 0:t.zoomWrapperRef);Z3(c,u),X3(c,i,a,u,m,g,d,h,t==null?void 0:t.zoomWrapperRef);const p=C.useMemo(()=>({zoom:c,minZoom:i,maxZoom:a,offsetX:l,offsetY:f,disabled:u,zoomIn:m,zoomOut:g,changeZoom:d}),[c,i,a,l,f,u,m,g,d]);C.useImperativeHandle(o,()=>p,[p]);const y=C.useMemo(()=>({...p,setZoomWrapper:n}),[p,n]);return C.createElement(Sv.Provider,{value:y},e)}const nT=Ko("ZoomIn",C.createElement(C.Fragment,null,C.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),C.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))),rT=Ko("ZoomOut",C.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"})),Np=C.forwardRef(function({zoomIn:t,onLoseFocus:n},r){const o=C.useRef(!1),i=C.useRef(!1),{zoom:s,minZoom:a,maxZoom:c,zoomIn:l,zoomOut:f,disabled:u}=Bd(),{render:d}=Xt(),h=u||(t?s>=c:s<=a);return C.useEffect(()=>{h&&o.current&&i.current&&n(),h||(o.current=!0)},[h,n]),C.createElement(jd,{ref:r,disabled:h,label:t?"Zoom in":"Zoom out",icon:t?nT:rT,renderIcon:t?d.iconZoomIn:d.iconZoomOut,onClick:t?l:f,onFocus:()=>{i.current=!0},onBlur:()=>{i.current=!1}})});function oT(){const e=C.useRef(null),t=C.useRef(null),{focus:n}=fr(),r=C.useCallback(s=>{var a,c;!((a=s.current)===null||a===void 0)&&a.disabled?n():(c=s.current)===null||c===void 0||c.focus()},[n]),o=C.useCallback(()=>r(e),[r]),i=C.useCallback(()=>r(t),[r]);return C.createElement(C.Fragment,null,C.createElement(Np,{zoomIn:!0,ref:e,onLoseFocus:i}),C.createElement(Np,{ref:t,onLoseFocus:o}))}function iT(){const{render:e}=Xt(),t=Bd();return e.buttonZoom?C.createElement(C.Fragment,null,e.buttonZoom(t)):C.createElement(oT,null)}function sT(e){var t;return(((t=e.srcSet)===null||t===void 0?void 0:t.length)||0)>0}function aT({current:e,preload:t},{type:n,source:r}){switch(n){case"fetch":return e?{current:e,preload:r}:{current:r};case"done":return r===t?{current:r}:{current:e,preload:t};default:throw new Error(av)}}function cT(e){var t,n;const[{current:r,preload:o},i]=C.useReducer(aT,{}),{slide:s,rect:a,imageFit:c,render:l,interactive:f}=e,u=s.srcSet.sort((A,_)=>A.width-_.width),d=(t=s.width)!==null&&t!==void 0?t:u[u.length-1].width,h=(n=s.height)!==null&&n!==void 0?n:u[u.length-1].height,m=Dd(s,c),g=Math.max(...u.map(A=>A.width)),p=Math.min((m?Math.max:Math.min)(a.width,d*(a.height/h)),g),y=Zk(),b=Le(()=>{var A;const _=(A=u.find(S=>S.width>=p*y))!==null&&A!==void 0?A:u[u.length-1];(!r||u.findIndex(S=>S.src===r)<u.findIndex(S=>S===_))&&i({type:"fetch",source:_.src})});Pn(b,[a.width,a.height,y,b]);const x=Le(A=>i({type:"done",source:A})),w={WebkitTransform:f?"initial":"translateZ(0)"};return m||Object.assign(w,a.width/a.height<d/h?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),C.createElement(C.Fragment,null,o&&o!==r&&C.createElement(uc,{key:"preload",...e,offset:void 0,slide:{...s,src:o,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...w},onLoad:()=>x(o),render:{...l,iconLoading:()=>null,iconError:()=>null}}),r&&C.createElement(uc,{key:"current",...e,slide:{...s,src:r,srcSet:void 0},style:w}))}function lT({render:e,slide:t,offset:n,rect:r}){var o;const[i,s]=C.useState(),a=C.useRef(null),{zoom:c,maxZoom:l,offsetX:f,offsetY:u,setZoomWrapper:d}=Bd(),h=c>1,{carousel:m,on:g}=Xt(),{currentIndex:p}=Wr();Pn(()=>n===0?(d({zoomWrapperRef:a,imageDimensions:i}),()=>d(void 0)):()=>{},[n,i,d]);let y=(o=e.slide)===null||o===void 0?void 0:o.call(e,{slide:t,offset:n,rect:r,zoom:c,maxZoom:l});if(!y&&Yi(t)){const b={slide:t,offset:n,rect:r,render:e,imageFit:m.imageFit,imageProps:m.imageProps,onClick:n===0?()=>{var x;return(x=g.click)===null||x===void 0?void 0:x.call(g,{index:p})}:void 0};y=sT(t)?C.createElement(cT,{...b,slide:t,interactive:h,rect:n===0?{width:r.width*c,height:r.height*c}:r}):C.createElement(uc,{onLoad:x=>s({width:x.naturalWidth,height:x.naturalHeight}),...b})}return y?C.createElement("div",{ref:a,className:Tn(Se(Bk),Se(Td),Se(ev),h&&Se(Wk)),style:n===0?{transform:`scale(${c}) translateX(${f}px) translateY(${u}px)`}:void 0},y):null}const fT=({augment:e,addModule:t})=>{e(({zoom:n,toolbar:r,render:o,controller:i,...s})=>{const a=Ev(n);return{zoom:a,toolbar:Xk(r,mp,C.createElement(iT,null)),render:{...o,slide:c=>{var l;return Yi(c.slide)?C.createElement(lT,{render:o,...c}):(l=o.slide)===null||l===void 0?void 0:l.call(o,c)}},controller:{...i,preventDefaultWheelY:a.scrollToZoom},...s}}),t(Ur(mp,tT))},kv="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQECAgICAgICAgICAgMDAwMDAwMDAwMBAQEBAQEBAQEBAQICAQICAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDA//CABEIAZABkAMBEQACEQEDEQH/xAAdAAEAAgIDAQEAAAAAAAAAAAAAAQcGCAIDBQQK/9oACAEBAAAAAP29AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4dNV5jnPJLHuX1AAAAAAAp7Xb50ofbsraAAAAAABS2usgGz1qAAAAAAYjp7xEwTH0bme8AAAAADVqsgEoXNsYAAAAAHVov1AA9bdwAAAAAMX00kTAHXvN6AAAAAAw/T0ADhu964AAAAA87RznACYd29PMAAAAANOMUACbB2wAAAAABUGtiUCYRtZY4AAAAAOOpmBAlC0doQAAAAAHwaqYOAsjaL6AAAAAADrpOlfGmeGQXjcUgAAAAAA4YpjfLJ8okAAAAAAAAAAAAAAefUdfY/1Z9Z2a+jHl4RV+E9+R2JbP1gAAAAU9r18kB197p5iY9LZC0AAAAAoOiRJBMJQGxlzAAAAFZasyAAA5bb5yAAABx0vx8AACUZrt6AAABgGpcgATAJiNzcmAAABRNCQAAAGyVwAAAA1zpmYJgJgmBMF+3qAAADXCnBMEwmEwAX3e4AAANcKdgAACUL7vcAAAFB0SBMAAJjYy5gAAAY9pz8hMBMJhMJiY9Tcv0wAAAMZpbyISIkAHvXX7oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf/xAAZAQEBAQEBAQAAAAAAAAAAAAAAAQQDAgX/2gAIAQIQAAAA0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB679vTxyzwAAAAAAO+uorzk4gAAAAAGjUKlTHxAAAAAA976IqWfP8gAAAAA2dwRYubKAAAAAD6SyksL5+cAAAAAHv6EsKio+dAAAAAB03WUEsX53kAAAAAX6JZZSD5oAAAAAN/SUEscsQAAAAAO+xLKQuHkAAAAABt7ADhjAAAAAAXb0spHLHAAAAAABo0e0vjNwAAAAAAAe/bx4AAAAAAAAAAAAAAC9+vq8uPOL17dJ548YAAAAB31epZSFQvnJxAAAADTpLCpUKi4+AAAAB22iKlhYsqMPMAAAB9D2lioqFErlhAAAA67kqWKlSpYV8/wAAAAA06VCWVKRUpj4AAAA16JSWUlhUFmbMAAADXolSyywWKlJmzAAAA16BFSyyiKlZcwAAANOmhFlhQIuTOAAAD19AsssKgqF8/PgAAAHvR6AAAeM/kAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/xAAYAQEBAQEBAAAAAAAAAAAAAAAAAQMEAv/aAAgBAxAAAADiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACZZ+b6960AAAAAAMsYsVvoAAAAAAZYVCo6NAAAAAAPPNCyyxeqgAAAAA587LFlS6bgAAAAA47LAFvUAAAAAHnlCossdgAAAAAeeUsFQddAAAAADjWLFip2AAAAAA5fIWWWNOgAAAAAGfOsFljp9gAAAAAc3iwomnQAAAAAAc3gBp0AAAAAABjlLF21AAAAAAAefL16AAAAAAAAAAAAAABlnHvT1U8ePD171AAAAAZ4IALLK30AAAADHFZRFgLG+oAAABnz0ikVKSk6fYAAADl81FIFCVPXUAAAB45lQFlgpLHV6AAABjjUsWVLFlRZdtQAAAY40gLLKQF12AAABhnFQqWURZTXYAAAGGSkBYssWU12AAABjjYsUSxUWU21AAABOVFiywqFlHVQAAAPOUAAAXagAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB//EAE4QAAIBAQMFCgcMBwgDAAAAAAECAwQABREGEiExURMWIjJAQWFxlNQUMEJQUnKBFSMzU2JzgpGSobGyICSTorPBwhA0Q1VkdJDwYGOj/9oACAEBAAE/Af8AgJrbxoruTPrKhIceIp4UkmHNHEuMj+wWrMtJDit30oUfHVZxbrEEZ0e1/Zae/r5qDi9fMnNm0+bTr/8AMBvvs1RUvjn1NS2PpVEx/F7JU1UZBSqqkI1FaiYfg9oMob5p+LXSSj0alUnH1sBJ+9aiy0GhLxpM3mM9ISy9bQOc8exm6rUtbS10e60k8c6c5RtKnY6nB426CAfNV+ZTrRs9Hd+bLVLiss54UNM3OgH+LULs4qnXstLLLUSNPPI80z8aWRs5zhqGPMo5gNA/Tp6moo5hPSzPBMPLQ8YejIpxSRDsYEWuPKSK8s2mqgsFdhoA+BqcNZhJOIfah07MebzPlLf5p8+7aF8KhlHhNQp00yMPgoyNVQ68/kKdpGHR4nVgQSCCGUqSGVhpDKw0qynUbZOX97op4JVMBXQpiG1CriGjdVHNKnlj2jRq8y33eYuuhkn0GZ/eaZD5U7g5pPyIwCx6BZmZmZ3Znd2Z3djizuxzmdjzlj4uGaWnljqIGzJoXWSJ9jDbtVhoI5xa7a+O8qKCsj0bovDTnilU5ssZ9Vx7Rp8y5V13hV5+Dq2MNAu5jZ4RIA8zdajNX2HxuR1cY6qe73bgVKmeEbJ4gBKF+ciwP0PMjusaPI3FRWdvVUYn7hZ5Wnkknc4tPJJM3XK5c/m8bQVHgldR1PNDUws3qFsyQfs3PmS+pDFdF4uNYo5x9pCn9Xjm4rdR/C1K5lpaaQ65IIXPW0asfx8x5QLnXLeQ/wBK5+zg38vHNxW9U/hagGbQ0S7KSmH1QoPMdXD4RS1MHx1PNF+0jZP52GOGnjDQesa/v8bHEZ5IoFGLTSxwgbd1dU/nZQFUKNAUADqGgeZL7o/Ab1rIcOA8nhMOzc6gmTAepJnL7PG5MUfhd7xOfg6NTVP6/wAHCPttj9HzLlddpqaVK+JcZqLO3XDW1I2mQ9O4sM7qx8ZjhpPNpNsmLtNBd4eVc2prCJ5QeMiYYQRHpSPSdjMfMpAIIIBBGBB0gg6wRzg2v65mumpzolPgFQx8HfSRC5xJpXPMV8jHjL0g+LyauQ1861tQv6lTvigYaKqdDoUY64YWHC5i2jb5nqaaCsgkpqmMSwyrmuh+sEEaVZTpBGkG183HUXRIWGdNQsfeqnDSmOqKpw0K45m4rdB0eJuPJ6a9CtRUB4Lv153FlqvkQ86xbX+ztEUUcEaQwoscUahERRgqqowAA80MqurI6q6MCrKwDKynQVZToIIteeR8bkzXXIsB1mkmzjAfmpBi8OOzhL1Wq6CtoDhWU0sGnDdGGdC2HozJnRn68ba9P9uOGs4Wo7rvC8CPBKWR1Jw3ZhuVOOuZ8FOHycTa7MkaenKzXi61kowIhAIpEI9JW4VR9LBfk2Aw0DQBoAHN5rIDAhgGB1gjEHrBtPcNz1JzpaCDO9KIGBuvGEx4mzZH3OdQqk9Wpb+sNZMkLnU6VqZOh6mTA/YzDanuS6aU50NBThvSdN1cdTS57C2r/wAZqaumo4zNVTxwRjypGC49CjWzdA02rMs6dCVoaaSoPxsx3CL6KYNMw6wtp8qr5lJzJoadT5MMCnD6c26nGxvq9213nV/RkC/lUW9172/zOu/bt/PRaiywrYcFrYUrE+MTCCf2jAwv9S2psqrnqNDztSt6NVGYx+0XPh/etFWUk/wNTTy4/FzRv+Vj/bLXUUAJmq6aLD4yeNfxa1TlZdEGIikkrG2U8ZzcfnZNzj+om1bldeFQClKkdDGfKHv1RgflsojQ9Snrt7rXt/mdd2h7LfV8LpF5Vej0nV/zo2NoMrL4iPvj09UuyWEIftwGPT7Dajyyo5cFroZKRtW6JjUQdZKqJU+yR02gnhqY1mp5Y5om1SROHU+1SdPmC+sqY6QvS3dmVFUMVkmPCp6c6iugjdphsGgc+y1RUT1cpnqpnnmPlyHHN6EXQsadCgD9PNXXgMerT9dgzrxZJV9WR1/BrFnbjPI3rSO34tbNUeSAduGn9OkrKqgl3ajneB/KzdMcnRLEeBIOvTa5cpYLxzaeqC01dqVcfeaj5hmJIfah07MeXZS5QtnPdt3yFc0lKypQ4EHU1NC3Mw8thq1DTjhoGrm5uR/jrBGIII1EEaQQbZN5QGqzbvr3xqgP1edtHhSKMcx+bwhAPpjTrx5ZlNe7XdSiCnfNrKvOVGB4UEI+Fn6G04J8o481v+/928lBZSrozI6MHR1ODI6nFXUjUynVa4L191aIPJm+FQHcqpRoBbWkqjmSZdPQcRzcqJABJOAAxJOgADWTa9K9ryr6irPEZsynU+TTx4iIdBbjHpbk+T9f7n3nCzHCCpwpajZhIRuUh+blw+iTyrKaqNLc9TmnB6jNpUI1jdzhJh0iENym5qs112UdSxxkeELKf/bETFKT0l0PKctpeBd0GOuSeZh82iRr/FPKcjJc67qiHnhrH+zLHHIP3seU5an9coF/005+uVB/LlORB97vIbJaY/XHIP6eU5a/3+h/2k38ZeU5EcW8/nKX8kvKctf79Q/7Sb+MvKciOLefzlL+SXlOW0DY3fVAcEbvTs2xnzZYwfWCNynIuBkoquoOqepzU2lYECE9W6MR7OU3pQJedDPSPwS4zopPipk4UUnsbXtGNp4JqWaSnqIzFPEc2RD9zKfKjcaVYaCOT0dHPeFTHSUy4yya2w4EMflTSnyUT7zoGm1HSxUVLBSQj3uCMIu1vSdvlOxJPSeVXldFFeiBaqPhqMI54zmTxeq+nFeg4r0WqMi61W/VaunmTm3dXgk6uAJUPXotvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZR9pfu9t6N9bKPtL93tvRvrZR9pfu9t6N87KLtL93tvRvrZRdpfu9t6N87KLtL93tvRvnZRdpfu9t6N87KPtL93tvRvrZRdpfu9t6N87KLtL93tTZF1LNjWVkUaaODTK0kjbRnyqip9lrUF3Ud2xbjSRCMNgZHJLSysBhnSSHhMfuHN/waf/EACsQAQABAgUCBgMBAQEBAAAAAAERACEQMUFR8GFxgZGhscHhUNHxQCCQYP/aAAgBAQABPxD/AMCTpIspVmBbNmQNUpmX6EyIsPHOXjUhB75CPV/ut60wl7lVZ1VWaug0Xy+YilNTICUENIp4CkLAmCIyIJTnM2oVn8AlU7cHkj8Vb+4plwDEy+1TRrHTWaLqFj2EFYCuFTXvRradWu/btT/aiGKArDMUmLsKSlOmIJlaGEqQXQn8Qn0MRUiFJSl0xLygAAIAsbds5XDn8rtWX6/dc8Yx4UKkPCoy4EBBES1WnATEBQILKO1y8T8NDstokBcM7o4ZlKTe95eVSqqtbV9V+65yNq1237eu9eFba4W7e/SMEsnhq2wyllWVHOixiw6KbW5YCxYyJ+FZYgkMpVforuVy1b88q5zOudcM+bYX52Kt/fnDrn6dMLyCqqAYmBlPwhmYeC6LcLZUMoVTdZ2c7MKGs/n5w5zvh3+/1XOThbmvW1c5NdnkemDSyQRaTzuofwjDwBXS+HUydaCACxEW2iK9tK967Rr9da5fp71zKPnCc+vxXLauHdwyM86nasjCaIoTZGnDlq3UPF/BkAnZbSPSg2+a2+OlfON6a52w3w/UVzSrU0ly6pjyp1Jlmc5Qnrb8Ha8YkYhQJmxepALQhyS0UdQJhaueFeOG3Jivhwi086+9Gfrf0mK5/MGoBVmoUi9RVhXsIHgH4RgYMsJmwZiUb4c8Z86y2krzwvz5rwrxw57107en6pgl1NxMuElbtX4VSZYCrhABYTpr9pzMnav3zwrnn9Vn9edc3w5zthl27e1c0y/tXzy/dIDAAU6F1e1J3L8lndWEQQIDl+FRM4YAQhIBhHOnjSRXAQVAK8hEuK15512rk+PrXtauc8K5wrnPKuR7UiOPnRoLDCskXhH8Mwi0jCSIAVFgQiINRlfFC7gZFmIQYcw8ywnv1+K5H6x229qtrprl1ntQkg6sVvku6c5SZoCwu4sHWAD8QfIZ5qIr6EREpXDlBKJi8zWSNo09LSHuUjsQuyoQAROiIztGEWy5Ns6QFAbqAeLW3LwiSoQjToiafg6+FI3EIZPUUAAAAAACAAsAfizilAwHMAiNMQ0MpC6luoy0moSzCQ6EmDqtBE4ZQug5TslZBfiZC8rZ1EaAAAAAAEAFgAsAf/MyMOtxZzGdoCtChjqQdMNlGRRh9Sz49Jfqt2qaSzK+ghQoFG4I51y5JJHRkaOElumyQRDbu0EI8F5HaYJ6JoATcl/7YTK7YKJH5pMi8Qatss6OAow+xo2VdaB6xSYjIYum1BpqrlHzSotISC6SA8VFmEBPYakB1IdKmlaXAtcFp3JQaKzaKFIgE3G5r+AkomRlzmIc2nzyNUsat6CrGBtCG1dWvv2bYTXLX4YSPZkEO2ajoENBs9AqIg/YLyYmhkmqAC7sS4+Xf9tfX9rP53jhhMIWxQDfe1Q0RvTKmYKHhZACLlOozH+0C0SoSQN2WvM8SUAAAFgLQGkGVc3w38q2rpFejU74bZ8+sLX48vXPP+V5Zc7VpOEVztFeW33WaMoEQQpWAyRIRyo+VYjJBLZPK2h0Jf64nACoEBCUYM21EygAAm2sqzmqt0rKt1w5zejn78Ky9vCo+uNda5yK5414kbZVzw74+dcgrTDnL1zrhz907EFRkzSSKMmpUAhJAwXI4mQh/qAmWQAEobABdpkm+hvhCUCpGtjzvXPn2qdf+M+czp9utadtviuda126ciufz/nk+tGlcv71zt+6efQRYBUwtOlzN3/qfHe4i4XUA2iaICCwWA0NIrLOudMPnnrTzv8AVcjnavTL1rnNa2w5ztjznStuedc52rjhE1H9vatWt8qSRJSSJG5OSJkmnWrtoIldoBJ4/wCmIG624gTJvF2o9518K8PvD7qPbDn7r6ijhr9Vz+43w5rhNdeccY74bca5wqelVCWxGhoT/wBN3SHjaJ/a3nOua1/OmF9NdvWta7u9tcf38VffLU7VznnWWXHP0r68a3j7rfkca512rf5rz+q8PHpllW/POnar10H4ox/rEbc9a729PSuc8688PPx+ay0ry564etePjhGHDvWXNa5H7w/nO9cmveuc64X/AOrdjzzw/f7xy8/5715cKyvp6fyu3GP3hx5tWdPLfOJpWnxXPciuvPKutd3bm9eujG1Z/v8A197gNprEYbQfUrhzvUZVpzTH2r1z7Vz+Y/NbWttNPNfCufzDrz6rn8r+Y855V00rryfPAgQO8Oiziwuq/wBLxA6iVUCywYAuo1pI+w2zsQawCkw5naunj2rpWm9dfrD+71z62ip235OlTXhzeufVTzX7mnnn8V5861vq+/fvh0328Yz61fKp4VpTwmSyRoGCCdbxTIKVAMzmF9w8tU/1JxXXYGUICOZs3ZXpFq8BOp7deHEsU8y/4xYsU4X54CnCvbEUOfJ9KkE/98bFGjR4WlSQFJZYN9TFFR9SLJzN018ClayhBQVRCwWkQBb/AMNP/8QAMREAAQICBwcEAgIDAAAAAAAAAQIDABEQEhMhMDFhBCAyQFBRcUFCUoEikZCxM2Ch/9oACAECAQE/AP4CUpUrhEJ2ce5UBpA9sBIGQiqn4iC0g+39QrZ/iYUkpMlDpTbNb8lZQAAJASG+UhQIIuhxoovF6ekNNT/NWW7nvOt1DWHD0ZtFdQHpEpZDDIBEjlC0lCik9FYTVRP1NP3geKH0zAWPTogvMoAkAMHSJUrFZKhp0RsTWga46rlEa9Da/wAifOJ2pVxK89DSZKB1wvXcJkCeitqrIB9cGe48qSCPU9FYXIlJyP8AdPnCeXWVdkOjNOVxfxYbzlUVRxHo4JSQQb4bcCxL3dt+6hx0IuF6oJJMyb+kZZQh8i5f7hKkqvSZ0ihTiU5mFvk3JEh/3pocWMlGLdzSLdzSC4s5qP8ArQSVGQEzCdnJ4jKAy2JTE4s2/iIs0fAQphJmUmUFlY9JwUqGaTSEqOSTAYWcxKEsJGZmYs0fAQW0fAQWEeIUwocJnBBBkRf0BtkqvVlASEiQF29fRIdokO27fSpIUJEQ40UXpvTzzLWS1fXJeKP6h1qr+SeHnGUV1TPCML6xCJw6ioq7h5tCaiQOXdTWQe45plNZwaUnDvw3E1VqGvM7OL1GjXAz357n3ubQPzB05nZ+FXmjxjecHaM08zs/Crzi/eJtHs5nZ+FXnkO5wdozRzOzniGF274+0GakjTmUKqKCoBCgCDdRLlVKCBM5QolRJPNIWpBuMJ2hPuBi3b1i3b1i3b7mLdvWLdvWLdvWLdvuYt29Yt2+5i3b1i3b1i3b1i3b1i3b1i3b7mLdvuYt29Yt29Yt2+5/UW7fcwdoHtF8KUpZmo/waf/EADIRAAECAwYFAwMEAwEAAAAAAAEAAhARMQMgIUFhcRITUFGBMkCxQlLwIpCRoTBgYnL/2gAIAQMBAT8A/YJLmtqUbUn0hcbzVyxzcpnuUHvH1IWv3BAg4g9KfaSwbVVMyvCwjhAEtIIMimWgdgcHdItHy/S2qpkso5XO6Ks38QkfV0Z7uFpOa3qtV5xhRfMN4+FMgzFU13EAei2hm6WQhouyzjip94y7QsnYkZHosySSqqtLku4hj4WirDVAyc0zz6I/BrtlkIYxEKx3MOyKFB0N/odsgtoUhNVXfupCHlZw84JtBt0MiYIQ/uPeanASyhO6MZDPorxJxwvFYrwvNxgm4adFtWzHEKi7RYXcYWbeFuNT0Z7eA/8AK2W0PC8r4UlRYrVWbeI8RoOjkAiRonNLP/Nz4uYJrC/E+lASwFOkuss2lFpHqaqw0gGud6Qm2QHqx6aWMNWrlM1XKZqgxoo3/WiQKlG1H0iaNo/uAuJ/3FcT/uKFqRPixCFow5yUwaGJcBUo2rBTFG1caYBcTvuK43/cULV1ckLUGokgQcQegPtJYNqjMmZMzDFbQptDBY+ISVFnCUQS0zacUy0DsDg731o+rWrZbI/0vm53WBJhisIaw7qVyzfP9Lq+8tHcIkPUbsrud4w8LuprJVpVMdxN192TxEuWUDc1W0ahb0ub3dIWbi1wJofdWhkwyqgskY6Ka8XMIaIXJow+YZJhm0H3NsfSIUyu+V8Lz/gBj5UoZQsjgRr7m1q27NTzRqtL1LlY63LH6vc2tW7KizhotLtZxyxhvHDuq3NIWP1e5tfU3aHiG1zutoZx1WynhDNTj4jZfV7m2HpNzNfN/S/8QncsRgT7lzeJpCxEwaxwu94z/lbLWO6l/KrDRYLugCTwtCAAAAp7pzGuqjYnIhcp+i5TspLlP0XKfp+eFyn6LlO0/PC5T9PzwuU/Rcp+i5T9Fynafnhcp+FPzwuU/Rcp2i5T8KLlO0XKdKWC5T9Fy36LlPPZCyOZ/hNaGiQH7Gn/2Q==",uT=({src:e,alt:t,size:n=40})=>v.jsx("img",{src:e||kv,alt:t,width:n,height:n,className:"cnf:rounded-full cnf:object-cover cnf:border cnf:border-gray-200"}),dT=(...e)=>t=>{e.forEach(n=>n==null?void 0:n(t))},vu=({placement:e="bottom-end",children:t,trigger:n,title:r,minWidth:o="172px"})=>{const[i,s]=T.useState(!1),{refs:a,floatingStyles:c,context:l}=Bb({strategy:"fixed",placement:e,open:i,onOpenChange:s}),f=$b(l,{outsidePress:!0}),{getReferenceProps:u,getFloatingProps:d}=Ub([f]),h=T.Children.map(t,m=>{if(!T.isValidElement(m))return m;const g=m.props;return T.cloneElement(m,{onClick:dT(g.onClick,()=>s(!1))})});return v.jsxs(v.Fragment,{children:[T.cloneElement(n,{ref:a.setReference,...u(),onClick:()=>s(m=>!m),title:i?`Close ${r??"context menu"}`:`Open ${r??"context menu"}`}),i&&v.jsx("div",{ref:a.setFloating,style:{...c,minWidth:o},className:xe("cnf:border cnf:border-gray-200 cnf:rounded-sm cnf:bg-white cnf:z-[9999999999]"),...d(),children:h})]})},hT=({commentType:e,onEdit:t,onSaveCommentType:n,onDelete:r,taskVerified:o,isUsernameAuthor:i})=>v.jsxs(vu,{trigger:v.jsx(je,{category:"link",size:"none",className:"cnf:text-gray-400",disabled:!i,children:v.jsx(Ce,{icon:M_})}),children:[v.jsxs("ul",{className:"cnf:py-2 cnf:m-0",children:[v.jsx("li",{children:v.jsx("button",{type:"button",className:"cnf:w-full cnf:text-left cnf:py-1 cnf:px-2 cnf:hover:bg-gray-100 cnf:hover:text-primary-600 cnf:cursor-pointer",onClick:t,title:"Edit comment",children:"Edit"})}),!o&&v.jsx("li",{children:v.jsx("button",{type:"button",className:"cnf:w-full cnf:text-left cnf:py-1 cnf:px-2 cnf:hover:bg-gray-100 cnf:hover:text-primary-600 cnf:cursor-pointer",onClick:r,title:"Delete comment",children:"Delete"})})]}),v.jsx("ul",{className:"cnf:border-t cnf:border-gray-200 cnf:flex cnf:items-center cnf:justify-center cnf:gap-2 cnf:py-2",children:L1.map(s=>v.jsx("li",{children:v.jsx(je,{category:"link",size:"smallCollapse",title:s.title,onClick:()=>{n==null||n(s.type)},className:xe(s.color,e===s.type?s.color:"cnf:text-gray-400"),children:v.jsx(Ce,{icon:s.icon,size:"lg"})})},s.type))})]}),Tv=T.createContext(null);function mT(e,t){return{getTheme:function(){return t??null}}}function ht(){const e=T.useContext(Tv);return e==null&&(function(t,...n){const r=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of n)o.append("v",i);throw r.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(8),e}function B(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Nv(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const mn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,pT=mn&&"documentMode"in document?document.documentMode:null,cn=mn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Mo=mn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),dc=!(!mn||!("InputEvent"in window)||pT)&&"getTargetRanges"in new window.InputEvent("input"),na=mn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Qi=mn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,gT=mn&&/Android/.test(navigator.userAgent),Ov=mn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Op=mn&&gT&&Ov,ra=mn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&cn&&!Ov;function Pv(...e){const t=[];for(const n of e)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))t.push(r);return t}const yT=0,bT=1,vT=2,Mv=128,xT=1,wT=2,AT=3,CT=4,_T=5,ET=6,Xc=na||Qi||ra?" ":"​",jr=`
593
+ */const ek={prefix:"far",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M170.5 51.6L151.5 80l145 0-19-28.4c-1.5-2.2-4-3.6-6.7-3.6l-93.7 0c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80 368 80l48 0 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-8 0 0 304c0 44.2-35.8 80-80 80l-224 0c-44.2 0-80-35.8-80-80l0-304-8 0c-13.3 0-24-10.7-24-24S10.7 80 24 80l8 0 48 0 13.8 0 36.7-55.1C140.9 9.4 158.4 0 177.1 0l93.7 0c18.7 0 36.2 9.4 46.6 24.9zM80 128l0 304c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-304L80 128zm80 64l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16z"]},tk={prefix:"far",iconName:"message",icon:[512,512,["comment-alt"],"f27a","M160 368c26.5 0 48 21.5 48 48l0 16 72.5-54.4c8.3-6.2 18.4-9.6 28.8-9.6L448 368c8.8 0 16-7.2 16-16l0-288c0-8.8-7.2-16-16-16L64 48c-8.8 0-16 7.2-16 16l0 288c0 8.8 7.2 16 16 16l96 0zm48 124l-.2 .2-5.1 3.8-17.1 12.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3l0-21.3 0-6.4 0-.3 0-4 0-48-48 0-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L448 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64l-138.7 0L208 492z"]},nk={prefix:"far",iconName:"strikethrough",icon:[512,512,[],"f0cc","M145.5 138c4-21.5 17.9-37.4 41.7-47.4c24.7-10.4 59.4-13.7 99.9-7.5c12.8 2 52.4 9.5 64.9 12.8c12.8 3.3 25.9-4.3 29.3-17.2s-4.3-25.9-17.2-29.3c-14.7-3.8-56.1-11.7-69.7-13.8c-46.2-7.1-90.4-4.1-125.7 10.7c-36.1 15.1-63.3 43.1-70.5 83.9c-.1 .4-.1 .9-.2 1.3c-2.8 23.4 .5 44.2 9.8 62.2c9.2 17.8 23.2 31.2 38.8 41.5c2.4 1.6 5 3.2 7.5 4.7L24 240c-13.3 0-24 10.7-24 24s10.7 24 24 24l464 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-192.2 0c-9.9-3.1-19.7-6-29.2-8.8l-.3-.1c-37.7-11.1-70.5-20.7-93.3-35.8c-10.9-7.2-18.2-14.9-22.6-23.5c-4.2-8.2-6.6-18.9-4.9-33.8zM364 337.1c3.7 8.6 5.5 20.1 2.6 36.3c-3.8 21.8-17.8 37.9-41.8 48c-24.7 10.4-59.4 13.7-99.8 7.5c-20.1-3.2-54.3-14.6-81.2-23.6c0 0 0 0 0 0s0 0 0 0c-5.9-2-11.4-3.8-16.3-5.4c-12.6-4.1-26.1 2.8-30.3 15.4s2.8 26.2 15.4 30.3c4 1.3 8.8 2.9 14 4.7c26.6 8.9 66.4 22.2 90.9 26.2l.1 0c46.2 7.1 90.4 4.1 125.7-10.7c36.1-15.1 63.3-43.1 70.5-83.9c4-22.9 2.4-43.5-5-61.7l-57.2 0c5.7 5.3 9.7 11 12.3 17.1z"]},rk={prefix:"far",iconName:"underline",icon:[448,512,[],"f0cd","M16 56c0-13.3 10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 61.9 50.1 112 112 112s112-50.1 112-112l0-144-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 88.4-71.6 160-160 160s-160-71.6-160-160L64 80 40 80C26.7 80 16 69.3 16 56zM0 456c0-13.3 10.7-24 24-24l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24z"]},ok={prefix:"far",iconName:"bold",icon:[384,512,[],"f032","M0 56C0 42.7 10.7 32 24 32l48 0 16 0 124 0c68.5 0 124 55.5 124 124c0 34.7-14.3 66.2-37.3 88.7C339.7 264.9 368 307.1 368 356c0 68.5-55.5 124-124 124L88 480l-16 0-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-176L48 80 24 80C10.7 80 0 69.3 0 56zM212 232c42 0 76-34 76-76s-34-76-76-76L96 80l0 152 116 0zM96 280l0 152 148 0c42 0 76-34 76-76s-34-76-76-76l-32 0L96 280z"]},ik={prefix:"far",iconName:"image",icon:[512,512,[],"f03e","M448 80c8.8 0 16 7.2 16 16l0 319.8-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3L48 96c0-8.8 7.2-16 16-16l384 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},sk={prefix:"far",iconName:"text-slash",icon:[640,512,["remove-format"],"f87d","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-281.9-221L396.4 80l124.8 0-8.5 34.2c-3.2 12.9 4.6 25.9 17.5 29.1s25.9-4.6 29.1-17.5l11-44.1C576.6 56.5 557.5 32 531.5 32l-335 0c-18.4 0-34.4 12.5-38.8 30.3l-7.5 30.1L38.8 5.1zM191.5 124.8L202.7 80l143.8 0L308.1 216.2 191.5 124.8zm57.4 300.7l-1.8 6.5L192 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l160 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-55.1 0 23.6-83.5-40.8-32.1L248.9 425.5z"]},ak={prefix:"far",iconName:"italic",icon:[384,512,[],"f033","M128 56c0-13.3 10.7-24 24-24l208 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-68.7 0L144.7 432l87.3 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24s10.7-24 24-24l68.7 0L239.3 80 152 80c-13.3 0-24-10.7-24-24z"]},ck={prefix:"far",iconName:"list-ol",icon:[512,512,["list-1-2","list-numeric"],"f0cb","M24 56c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24l0 120 16 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l16 0 0-96-8 0C34.7 80 24 69.3 24 56zM86.7 341.2c-6.5-7.4-18.3-6.9-24 1.2L51.5 357.9c-7.7 10.8-22.7 13.3-33.5 5.6s-13.3-22.7-5.6-33.5l11.1-15.6c23.7-33.2 72.3-35.6 99.2-4.9c21.3 24.4 20.8 60.9-1.1 84.7L86.8 432l33.2 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-88 0c-9.5 0-18.2-5.6-22-14.4s-2.1-18.9 4.3-25.9l72-78c5.3-5.8 5.4-14.6 .3-20.5zM216 72l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-272 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm0 160l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-272 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm0 160l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-272 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},lk={prefix:"far",iconName:"code",icon:[640,512,[],"f121","M399.1 1.1c-12.7-3.9-26.1 3.1-30 15.8l-144 464c-3.9 12.7 3.1 26.1 15.8 30s26.1-3.1 30-15.8l144-464c3.9-12.7-3.1-26.1-15.8-30zm71.4 118.5c-9.1 9.7-8.6 24.9 1.1 33.9L580.9 256 471.6 358.5c-9.7 9.1-10.2 24.3-1.1 33.9s24.3 10.2 33.9 1.1l128-120c4.8-4.5 7.6-10.9 7.6-17.5s-2.7-13-7.6-17.5l-128-120c-9.7-9.1-24.9-8.6-33.9 1.1zm-301 0c-9.1-9.7-24.3-10.2-33.9-1.1l-128 120C2.7 243 0 249.4 0 256s2.7 13 7.6 17.5l128 120c9.7 9.1 24.9 8.6 33.9-1.1s8.6-24.9-1.1-33.9L59.1 256 168.4 153.5c9.7-9.1 10.2-24.3 1.1-33.9z"]},fk={prefix:"far",iconName:"font-case",icon:[640,512,[],"f866","M198.4 47.5C194.9 38.2 186 32 176 32s-18.9 6.2-22.4 15.5l-152 400c-4.7 12.4 1.5 26.3 13.9 31s26.3-1.5 31-13.9L83.1 368l185.8 0 36.7 96.5c4.7 12.4 18.6 18.6 31 13.9s18.6-18.6 13.9-31l-152-400zM250.7 320l-149.3 0L176 123.6 250.7 320zM616 160c-13.3 0-24 10.7-24 24l0 8.8c-22.1-20.4-51.6-32.8-84-32.8c-68.5 0-124 55.5-124 124l0 72c0 68.5 55.5 124 124 124c32.4 0 61.9-12.4 84-32.8l0 8.8c0 13.3 10.7 24 24 24s24-10.7 24-24l0-272c0-13.3-10.7-24-24-24zM432 284c0-42 34-76 76-76s76 34 76 76l0 72c0 42-34 76-76 76s-76-34-76-76l0-72z"]},uk={prefix:"far",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]},dk={prefix:"far",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M580.3 267.2c56.2-56.2 56.2-147.3 0-203.5C526.8 10.2 440.9 7.3 383.9 57.2l-6.1 5.4c-10 8.7-11 23.9-2.3 33.9s23.9 11 33.9 2.3l6.1-5.4c38-33.2 95.2-31.3 130.9 4.4c37.4 37.4 37.4 98.1 0 135.6L433.1 346.6c-37.4 37.4-98.2 37.4-135.6 0c-35.7-35.7-37.6-92.9-4.4-130.9l4.7-5.4c8.7-10 7.7-25.1-2.3-33.9s-25.1-7.7-33.9 2.3l-4.7 5.4c-49.8 57-46.9 142.9 6.6 196.4c56.2 56.2 147.3 56.2 203.5 0L580.3 267.2zM59.7 244.8C3.5 301 3.5 392.1 59.7 448.2c53.6 53.6 139.5 56.4 196.5 6.5l6.1-5.4c10-8.7 11-23.9 2.3-33.9s-23.9-11-33.9-2.3l-6.1 5.4c-38 33.2-95.2 31.3-130.9-4.4c-37.4-37.4-37.4-98.1 0-135.6L207 165.4c37.4-37.4 98.1-37.4 135.6 0c35.7 35.7 37.6 92.9 4.4 130.9l-5.4 6.1c-8.7 10-7.7 25.1 2.3 33.9s25.1 7.7 33.9-2.3l5.4-6.1c49.9-57 47-142.9-6.5-196.5c-56.2-56.2-147.3-56.2-203.5 0L59.7 244.8z"]},hk={prefix:"far",iconName:"list-ul",icon:[512,512,["list-dots"],"f0ca","M64 64a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm120 8c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L184 72zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0zM96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM64 384a32 32 0 1 0 0 64 32 32 0 1 0 0-64z"]},mk={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},ap=({onMouseOver:e,onClick:t,commentsCount:n=0,commentType:r})=>{var a,c;const o=n>0,i={[Re.INFO]:{icon:TE,color:"cnf:text-primary-600 cnf:hover:text-primary-600"},[Re.WARNING]:{icon:YE,color:"cnf:text-warning-600 cnf:hover:text-warning-600"},[Re.DANGER]:{icon:Kc,color:"cnf:text-danger-600 cnf:hover:text-danger-600"},[Re.SUCCESS]:{icon:sb,color:"cnf:text-success-600 cnf:hover:text-success-600"}},s=l=>{l.preventDefault(),l.stopPropagation(),t()};return v.jsxs(et,{size:"smallCollapse",category:"link",onMouseOver:e,onClick:s,className:be("cnf:relative",(a=i[r])==null?void 0:a.color),title:"View comments",children:[v.jsx("div",{className:"cnf:relative cnf:flex cnf:items-center cnf:justify-center",children:o?v.jsxs(v.Fragment,{children:[v.jsx(Ee,{icon:kE,size:"lg"}),v.jsx(Ee,{icon:(c=i[r])==null?void 0:c.icon,className:"cnf:font-bold cnf:absolute cnf:left-1/2 cnf:-translate-x-1/2 cnf:top-0.5",size:"xs",color:"white"})]}):v.jsx(Ee,{icon:tk,size:"lg"})}),o&&v.jsx("span",{className:"cnf:absolute cnf:top-0.5 cnf:-right-0 cnf:flex cnf:h-3 cnf:w-3 cnf:items-center cnf:justify-center cnf:rounded-full cnf:bg-primary-600 cnf:text-[10px] cnf:text-white",children:n})]})},pk=document.getElementById("lexical-root")??(()=>{const e=document.createElement("div");return e.id="lexical-root",e.style.position="relative",e.style.zIndex="2147483647",document.body.appendChild(e),e})();/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:Jb,setPrototypeOf:cp,isFrozen:gk,getPrototypeOf:yk,getOwnPropertyDescriptor:bk}=Object;let{freeze:Nt,seal:Zt,create:uu}=Object,{apply:du,construct:hu}=typeof Reflect<"u"&&Reflect;Nt||(Nt=function(t){return t});Zt||(Zt=function(t){return t});du||(du=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return t.apply(n,o)});hu||(hu=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const ka=Ot(Array.prototype.forEach),vk=Ot(Array.prototype.lastIndexOf),lp=Ot(Array.prototype.pop),fs=Ot(Array.prototype.push),xk=Ot(Array.prototype.splice),qa=Ot(String.prototype.toLowerCase),$l=Ot(String.prototype.toString),Bl=Ot(String.prototype.match),us=Ot(String.prototype.replace),wk=Ot(String.prototype.indexOf),Ak=Ot(String.prototype.trim),on=Ot(Object.prototype.hasOwnProperty),Ct=Ot(RegExp.prototype.test),ds=Ck(TypeError);function Ot(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return du(e,t,r)}}function Ck(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return hu(e,n)}}function Ce(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qa;cp&&cp(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(gk(t)||(t[r]=i),o=i)}e[o]=!0}return e}function Ek(e){for(let t=0;t<e.length;t++)on(e,t)||(e[t]=null);return e}function yn(e){const t=uu(null);for(const[n,r]of Jb(e))on(e,n)&&(Array.isArray(r)?t[n]=Ek(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=yn(r):t[n]=r);return t}function hs(e,t){for(;e!==null;){const r=bk(e,t);if(r){if(r.get)return Ot(r.get);if(typeof r.value=="function")return Ot(r.value)}e=yk(e)}function n(){return null}return n}const fp=Nt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ul=Nt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Wl=Nt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_k=Nt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Kl=Nt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Sk=Nt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),up=Nt(["#text"]),dp=Nt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Hl=Nt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),hp=Nt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ta=Nt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),kk=Zt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Tk=Zt(/<%[\w\W]*|[\w\W]*%>/gm),Nk=Zt(/\$\{[\w\W]*/gm),Ok=Zt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Pk=Zt(/^aria-[\-\w]+$/),Xb=Zt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Mk=Zt(/^(?:\w+script|data):/i),Ik=Zt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ev=Zt(/^html$/i),Lk=Zt(/^[a-z][.\w]*(-[.\w]+)+$/i);var mp=Object.freeze({__proto__:null,ARIA_ATTR:Pk,ATTR_WHITESPACE:Ik,CUSTOM_ELEMENT:Lk,DATA_ATTR:Ok,DOCTYPE_NAME:ev,ERB_EXPR:Tk,IS_ALLOWED_URI:Xb,IS_SCRIPT_OR_DATA:Mk,MUSTACHE_EXPR:kk,TMPLIT_EXPR:Nk});const ms={element:1,text:3,progressingInstruction:7,comment:8,document:9},Rk=function(){return typeof window>"u"?null:window},Dk=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},pp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function tv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rk();const t=de=>tv(de);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==ms.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:c,NodeFilter:l,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:d,trustedTypes:h}=e,m=c.prototype,p=hs(m,"cloneNode"),g=hs(m,"remove"),y=hs(m,"nextSibling"),b=hs(m,"childNodes"),x=hs(m,"parentNode");if(typeof s=="function"){const de=n.createElement("template");de.content&&de.content.ownerDocument&&(n=de.content.ownerDocument)}let w,A="";const{implementation:E,createNodeIterator:_,createDocumentFragment:S,getElementsByTagName:O}=n,{importNode:P}=r;let I=pp();t.isSupported=typeof Jb=="function"&&typeof x=="function"&&E&&E.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$,ERB_EXPR:D,TMPLIT_EXPR:j,DATA_ATTR:K,ARIA_ATTR:G,IS_SCRIPT_OR_DATA:oe,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:re}=mp;let{IS_ALLOWED_URI:L}=mp,z=null;const H=Ce({},[...fp,...Ul,...Wl,...Kl,...up]);let W=null;const J=Ce({},[...dp,...Hl,...hp,...Ta]);let Y=Object.seal(uu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ee=null,te=null;const me=Object.seal(uu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ye=!0,pe=!0,ze=!1,Q=!0,qe=!1,zt=!0,pt=!1,Yo=!1,ss=!1,Dn=!1,Gr=!1,Go=!1,se=!0,Fe=!1;const lt="user-content-";let Mt=!0,tt=!1,Ht={},At=null;const hr=Ce({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qo=null;const $t=Ce({},["audio","video","img","source","image","track"]);let Qr=null;const mr=Ce({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Zr="http://www.w3.org/1998/Math/MathML",pr="http://www.w3.org/2000/svg",Fn="http://www.w3.org/1999/xhtml";let Zo=Fn,hl=!1,ml=null;const ew=Ce({},[Zr,pr,Fn],$l);let ma=Ce({},["mi","mo","mn","ms","mtext"]),pa=Ce({},["annotation-xml"]);const tw=Ce({},["title","style","font","a","script"]);let as=null;const nw=["application/xhtml+xml","text/html"],rw="text/html";let Ge=null,Jo=null;const ow=n.createElement("form"),Sh=function(N){return N instanceof RegExp||N instanceof Function},pl=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Jo&&Jo===N)){if((!N||typeof N!="object")&&(N={}),N=yn(N),as=nw.indexOf(N.PARSER_MEDIA_TYPE)===-1?rw:N.PARSER_MEDIA_TYPE,Ge=as==="application/xhtml+xml"?$l:qa,z=on(N,"ALLOWED_TAGS")?Ce({},N.ALLOWED_TAGS,Ge):H,W=on(N,"ALLOWED_ATTR")?Ce({},N.ALLOWED_ATTR,Ge):J,ml=on(N,"ALLOWED_NAMESPACES")?Ce({},N.ALLOWED_NAMESPACES,$l):ew,Qr=on(N,"ADD_URI_SAFE_ATTR")?Ce(yn(mr),N.ADD_URI_SAFE_ATTR,Ge):mr,Qo=on(N,"ADD_DATA_URI_TAGS")?Ce(yn($t),N.ADD_DATA_URI_TAGS,Ge):$t,At=on(N,"FORBID_CONTENTS")?Ce({},N.FORBID_CONTENTS,Ge):hr,ee=on(N,"FORBID_TAGS")?Ce({},N.FORBID_TAGS,Ge):yn({}),te=on(N,"FORBID_ATTR")?Ce({},N.FORBID_ATTR,Ge):yn({}),Ht=on(N,"USE_PROFILES")?N.USE_PROFILES:!1,ye=N.ALLOW_ARIA_ATTR!==!1,pe=N.ALLOW_DATA_ATTR!==!1,ze=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,qe=N.SAFE_FOR_TEMPLATES||!1,zt=N.SAFE_FOR_XML!==!1,pt=N.WHOLE_DOCUMENT||!1,Dn=N.RETURN_DOM||!1,Gr=N.RETURN_DOM_FRAGMENT||!1,Go=N.RETURN_TRUSTED_TYPE||!1,ss=N.FORCE_BODY||!1,se=N.SANITIZE_DOM!==!1,Fe=N.SANITIZE_NAMED_PROPS||!1,Mt=N.KEEP_CONTENT!==!1,tt=N.IN_PLACE||!1,L=N.ALLOWED_URI_REGEXP||Xb,Zo=N.NAMESPACE||Fn,ma=N.MATHML_TEXT_INTEGRATION_POINTS||ma,pa=N.HTML_INTEGRATION_POINTS||pa,Y=N.CUSTOM_ELEMENT_HANDLING||{},N.CUSTOM_ELEMENT_HANDLING&&Sh(N.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=N.CUSTOM_ELEMENT_HANDLING.tagNameCheck),N.CUSTOM_ELEMENT_HANDLING&&Sh(N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),qe&&(pe=!1),Gr&&(Dn=!0),Ht&&(z=Ce({},up),W=[],Ht.html===!0&&(Ce(z,fp),Ce(W,dp)),Ht.svg===!0&&(Ce(z,Ul),Ce(W,Hl),Ce(W,Ta)),Ht.svgFilters===!0&&(Ce(z,Wl),Ce(W,Hl),Ce(W,Ta)),Ht.mathMl===!0&&(Ce(z,Kl),Ce(W,hp),Ce(W,Ta))),N.ADD_TAGS&&(typeof N.ADD_TAGS=="function"?me.tagCheck=N.ADD_TAGS:(z===H&&(z=yn(z)),Ce(z,N.ADD_TAGS,Ge))),N.ADD_ATTR&&(typeof N.ADD_ATTR=="function"?me.attributeCheck=N.ADD_ATTR:(W===J&&(W=yn(W)),Ce(W,N.ADD_ATTR,Ge))),N.ADD_URI_SAFE_ATTR&&Ce(Qr,N.ADD_URI_SAFE_ATTR,Ge),N.FORBID_CONTENTS&&(At===hr&&(At=yn(At)),Ce(At,N.FORBID_CONTENTS,Ge)),N.ADD_FORBID_CONTENTS&&(At===hr&&(At=yn(At)),Ce(At,N.ADD_FORBID_CONTENTS,Ge)),Mt&&(z["#text"]=!0),pt&&Ce(z,["html","head","body"]),z.table&&(Ce(z,["tbody"]),delete ee.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw ds('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ds('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=N.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=Dk(h,o)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));Nt&&Nt(N),Jo=N}},kh=Ce({},[...Ul,...Wl,..._k]),Th=Ce({},[...Kl,...Sk]),iw=function(N){let V=x(N);(!V||!V.tagName)&&(V={namespaceURI:Zo,tagName:"template"});const le=qa(N.tagName),Be=qa(V.tagName);return ml[N.namespaceURI]?N.namespaceURI===pr?V.namespaceURI===Fn?le==="svg":V.namespaceURI===Zr?le==="svg"&&(Be==="annotation-xml"||ma[Be]):!!kh[le]:N.namespaceURI===Zr?V.namespaceURI===Fn?le==="math":V.namespaceURI===pr?le==="math"&&pa[Be]:!!Th[le]:N.namespaceURI===Fn?V.namespaceURI===pr&&!pa[Be]||V.namespaceURI===Zr&&!ma[Be]?!1:!Th[le]&&(tw[le]||!kh[le]):!!(as==="application/xhtml+xml"&&ml[N.namespaceURI]):!1},gn=function(N){fs(t.removed,{element:N});try{x(N).removeChild(N)}catch{g(N)}},Jr=function(N,V){try{fs(t.removed,{attribute:V.getAttributeNode(N),from:V})}catch{fs(t.removed,{attribute:null,from:V})}if(V.removeAttribute(N),N==="is")if(Dn||Gr)try{gn(V)}catch{}else try{V.setAttribute(N,"")}catch{}},Nh=function(N){let V=null,le=null;if(ss)N="<remove></remove>"+N;else{const Ve=Bl(N,/^[\r\n\t ]+/);le=Ve&&Ve[0]}as==="application/xhtml+xml"&&Zo===Fn&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Be=w?w.createHTML(N):N;if(Zo===Fn)try{V=new d().parseFromString(Be,as)}catch{}if(!V||!V.documentElement){V=E.createDocument(Zo,"template",null);try{V.documentElement.innerHTML=hl?A:Be}catch{}}const gt=V.body||V.documentElement;return N&&le&&gt.insertBefore(n.createTextNode(le),gt.childNodes[0]||null),Zo===Fn?O.call(V,pt?"html":"body")[0]:pt?V.documentElement:gt},Oh=function(N){return _.call(N.ownerDocument||N,N,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},gl=function(N){return N instanceof u&&(typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||!(N.attributes instanceof f)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function")},Ph=function(N){return typeof a=="function"&&N instanceof a};function jn(de,N,V){ka(de,le=>{le.call(t,N,V,Jo)})}const Mh=function(N){let V=null;if(jn(I.beforeSanitizeElements,N,null),gl(N))return gn(N),!0;const le=Ge(N.nodeName);if(jn(I.uponSanitizeElement,N,{tagName:le,allowedTags:z}),zt&&N.hasChildNodes()&&!Ph(N.firstElementChild)&&Ct(/<[/\w!]/g,N.innerHTML)&&Ct(/<[/\w!]/g,N.textContent)||N.nodeType===ms.progressingInstruction||zt&&N.nodeType===ms.comment&&Ct(/<[/\w]/g,N.data))return gn(N),!0;if(!(me.tagCheck instanceof Function&&me.tagCheck(le))&&(!z[le]||ee[le])){if(!ee[le]&&Lh(le)&&(Y.tagNameCheck instanceof RegExp&&Ct(Y.tagNameCheck,le)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(le)))return!1;if(Mt&&!At[le]){const Be=x(N)||N.parentNode,gt=b(N)||N.childNodes;if(gt&&Be){const Ve=gt.length;for(let It=Ve-1;It>=0;--It){const zn=p(gt[It],!0);zn.__removalCount=(N.__removalCount||0)+1,Be.insertBefore(zn,y(N))}}}return gn(N),!0}return N instanceof c&&!iw(N)||(le==="noscript"||le==="noembed"||le==="noframes")&&Ct(/<\/no(script|embed|frames)/i,N.innerHTML)?(gn(N),!0):(qe&&N.nodeType===ms.text&&(V=N.textContent,ka([$,D,j],Be=>{V=us(V,Be," ")}),N.textContent!==V&&(fs(t.removed,{element:N.cloneNode()}),N.textContent=V)),jn(I.afterSanitizeElements,N,null),!1)},Ih=function(N,V,le){if(se&&(V==="id"||V==="name")&&(le in n||le in ow))return!1;if(!(pe&&!te[V]&&Ct(K,V))){if(!(ye&&Ct(G,V))){if(!(me.attributeCheck instanceof Function&&me.attributeCheck(V,N))){if(!W[V]||te[V]){if(!(Lh(N)&&(Y.tagNameCheck instanceof RegExp&&Ct(Y.tagNameCheck,N)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(N))&&(Y.attributeNameCheck instanceof RegExp&&Ct(Y.attributeNameCheck,V)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(V,N))||V==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&Ct(Y.tagNameCheck,le)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(le))))return!1}else if(!Qr[V]){if(!Ct(L,us(le,M,""))){if(!((V==="src"||V==="xlink:href"||V==="href")&&N!=="script"&&wk(le,"data:")===0&&Qo[N])){if(!(ze&&!Ct(oe,us(le,M,"")))){if(le)return!1}}}}}}}return!0},Lh=function(N){return N!=="annotation-xml"&&Bl(N,re)},Rh=function(N){jn(I.beforeSanitizeAttributes,N,null);const{attributes:V}=N;if(!V||gl(N))return;const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let Be=V.length;for(;Be--;){const gt=V[Be],{name:Ve,namespaceURI:It,value:zn}=gt,Xo=Ge(Ve),yl=zn;let ft=Ve==="value"?yl:Ak(yl);if(le.attrName=Xo,le.attrValue=ft,le.keepAttr=!0,le.forceKeepAttr=void 0,jn(I.uponSanitizeAttribute,N,le),ft=le.attrValue,Fe&&(Xo==="id"||Xo==="name")&&(Jr(Ve,N),ft=lt+ft),zt&&Ct(/((--!?|])>)|<\/(style|title|textarea)/i,ft)){Jr(Ve,N);continue}if(Xo==="attributename"&&Bl(ft,"href")){Jr(Ve,N);continue}if(le.forceKeepAttr)continue;if(!le.keepAttr){Jr(Ve,N);continue}if(!Q&&Ct(/\/>/i,ft)){Jr(Ve,N);continue}qe&&ka([$,D,j],Fh=>{ft=us(ft,Fh," ")});const Dh=Ge(N.nodeName);if(!Ih(Dh,Xo,ft)){Jr(Ve,N);continue}if(w&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!It)switch(h.getAttributeType(Dh,Xo)){case"TrustedHTML":{ft=w.createHTML(ft);break}case"TrustedScriptURL":{ft=w.createScriptURL(ft);break}}if(ft!==yl)try{It?N.setAttributeNS(It,Ve,ft):N.setAttribute(Ve,ft),gl(N)?gn(N):lp(t.removed)}catch{Jr(Ve,N)}}jn(I.afterSanitizeAttributes,N,null)},sw=function de(N){let V=null;const le=Oh(N);for(jn(I.beforeSanitizeShadowDOM,N,null);V=le.nextNode();)jn(I.uponSanitizeShadowNode,V,null),Mh(V),Rh(V),V.content instanceof i&&de(V.content);jn(I.afterSanitizeShadowDOM,N,null)};return t.sanitize=function(de){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=null,le=null,Be=null,gt=null;if(hl=!de,hl&&(de="<!-->"),typeof de!="string"&&!Ph(de))if(typeof de.toString=="function"){if(de=de.toString(),typeof de!="string")throw ds("dirty is not a string, aborting")}else throw ds("toString is not a function");if(!t.isSupported)return de;if(Yo||pl(N),t.removed=[],typeof de=="string"&&(tt=!1),tt){if(de.nodeName){const zn=Ge(de.nodeName);if(!z[zn]||ee[zn])throw ds("root node is forbidden and cannot be sanitized in-place")}}else if(de instanceof a)V=Nh("<!---->"),le=V.ownerDocument.importNode(de,!0),le.nodeType===ms.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?V=le:V.appendChild(le);else{if(!Dn&&!qe&&!pt&&de.indexOf("<")===-1)return w&&Go?w.createHTML(de):de;if(V=Nh(de),!V)return Dn?null:Go?A:""}V&&ss&&gn(V.firstChild);const Ve=Oh(tt?de:V);for(;Be=Ve.nextNode();)Mh(Be),Rh(Be),Be.content instanceof i&&sw(Be.content);if(tt)return de;if(Dn){if(Gr)for(gt=S.call(V.ownerDocument);V.firstChild;)gt.appendChild(V.firstChild);else gt=V;return(W.shadowroot||W.shadowrootmode)&&(gt=P.call(r,gt,!0)),gt}let It=pt?V.outerHTML:V.innerHTML;return pt&&z["!doctype"]&&V.ownerDocument&&V.ownerDocument.doctype&&V.ownerDocument.doctype.name&&Ct(ev,V.ownerDocument.doctype.name)&&(It="<!DOCTYPE "+V.ownerDocument.doctype.name+`>
594
+ `+It),qe&&ka([$,D,j],zn=>{It=us(It,zn," ")}),w&&Go?w.createHTML(It):It},t.setConfig=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pl(de),Yo=!0},t.clearConfig=function(){Jo=null,Yo=!1},t.isValidAttribute=function(de,N,V){Jo||pl({});const le=Ge(de),Be=Ge(N);return Ih(le,Be,V)},t.addHook=function(de,N){typeof N=="function"&&fs(I[de],N)},t.removeHook=function(de,N){if(N!==void 0){const V=vk(I[de],N);return V===-1?void 0:xk(I[de],V,1)[0]}return lp(I[de])},t.removeHooks=function(de){I[de]=[]},t.removeAllHooks=function(){I=pp()},t}var mu=tv();const Fk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABpCAYAAAB/GGzVAAAEtWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgdGlmZjpJbWFnZUxlbmd0aD0iMTA1IgogICB0aWZmOkltYWdlV2lkdGg9IjIwMCIKICAgdGlmZjpSZXNvbHV0aW9uVW5pdD0iMiIKICAgdGlmZjpYUmVzb2x1dGlvbj0iNzIvMSIKICAgdGlmZjpZUmVzb2x1dGlvbj0iNzIvMSIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjIwMCIKICAgZXhpZjpQaXhlbFlEaW1lbnNpb249IjEwNSIKICAgZXhpZjpDb2xvclNwYWNlPSIxIgogICBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIgogICBwaG90b3Nob3A6SUNDUHJvZmlsZT0ic1JHQiBJRUM2MTk2Ni0yLjEiCiAgIHhtcDpNb2RpZnlEYXRlPSIyMDI1LTA1LTE0VDExOjUwOjIwLTA0OjAwIgogICB4bXA6TWV0YWRhdGFEYXRlPSIyMDI1LTA1LTE0VDExOjUwOjIwLTA0OjAwIj4KICAgPHhtcE1NOkhpc3Rvcnk+CiAgICA8cmRmOlNlcT4KICAgICA8cmRmOmxpCiAgICAgIHN0RXZ0OmFjdGlvbj0icHJvZHVjZWQiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFmZmluaXR5IFBob3RvIDIgMi42LjIiCiAgICAgIHN0RXZ0OndoZW49IjIwMjUtMDUtMTRUMTE6NTA6MjAtMDQ6MDAiLz4KICAgIDwvcmRmOlNlcT4KICAgPC94bXBNTTpIaXN0b3J5PgogIDwvcmRmOkRlc2NyaXB0aW9uPgogPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KPD94cGFja2V0IGVuZD0iciI/PpjjR1oAAAGCaUNDUHNSR0IgSUVDNjE5NjYtMi4xAAAokXWRzStEURiHH8M0YhjFwkKZNKzQDDWxUUZCSRqjfG3u3Jk7o+bjdu9Mkq2yVZTY+FrwF7BV1koRKVmzJTboeu/M1EzinM77Pv3Oed/O+R1wRFJq2qzxQzqTM8JjIe/c/ILX9YKTRjz00q6opj48PT3Jv+Pjjio73/TYvf4/9+eoj8VNFapqhYdU3cgJjwtPruR0m7eFW9SkEhM+Fe425ILCt7YeLfKzzYkif9lsRMIj4GgS9iYqOFrBatJIC8vL8aVTebV0H/sl7nhmdkZyh6w2TMKMEcLLBKOMECTAoMQgPfSJQwHx7u96f6F+iqzUqhJ1VjFYJkGSHN2i5qV7XLImelxmilXb/9++mlp/X7G7OwTOJ8t66wTXFnxvWtbnoWV9H0H1I1xkyvXZAxh4F32zrPn2wbMOZ5dlLboD5xvQ+qArhlKQqmU5NA1eT6BhHpqvoW6x6Flpn+N7iKzJV13B7h50yXnP0g9yqmfr0vdvXAAAAAlwSFlzAAALEwAACxMBAJqcGAAAFnlJREFUeJztnXm4XEWVwH95gQAhCbJKQVEsogKKKCAugEZDWCQsAh+o7AwooI4DguOniCJLHBAIMoojqCwjoLIG2ZR12FSCQRAiEAJUSkpCQCAkZH1v/jjVdL/u6tfbvbe3+/u+/vr1Xet131NV59RZRtGlWOdXAw4FjgS2BwaAvwFXAL8wWr3axubl9Aij2t2AZrDOrwk8DLyryiGvANsYrf6RXatqY51fGVgFGAOsDIxGBLvAELA8vJYCS4xWS7NuZxKEDmxL4DPAmsBM4Faj1SttbViDdJ2AWOfHAH8B3hc2LQVuARYDewGrh+3zgfcYrf6VeSNLsM5/ENgb2APYiAYFBPDA3cD1wJ+MVisya3yTWOc3Av4PMAz//94ADjda3dCWhjVBNwrIAcBvw8fbgWOMVnPDvnWAc4HDwv4TjFbTMm7fDsD+wMeArYC1E7z8AmAW0kFcA9xrtFqe4PVbxjq/NzLNnVDlEA9sZrRanF2rmqcbBeRK4PPh4xZGq6fK9q8HvACsCjxstNoh5fYMAO8F9gSOQqYVWTEXuBy4AfiL0Woww3tXYJ0/FrgQWKnGoScarc7PoEkt040C8hiwNeCNVhtUOeZ3yAO7yGi1euyYBNqxEvBuZMTaI417NMhfgWOBR7PuncN3MRU4qc5TbjRa7ZtikxJjoPYhHUdBaR1rna8m4OPDeyrTD+v8FsBjyEPZCcIBsA1wP/C4df4zWd3UOr8KcDPw9QZOez6d1iRPraGwE/kzsB2wBrAj8lC8jXX+PcBO4eOfkryxdX5L4CxE6a63c1kGPAL8ERGoF4F5iMK6IOxfjijsKwPjkPn7uoAC3g98FNFpxtS412hgc+Am6/z9wLeMVg/U2c6Gsc6vD/wa+EQDpy1CRt2uoBunWJ8C7gofnwWOBu4DBoFtgR8DHwn7DzZaXZnAPVcDjgO+R3F0qsYg8AwiENOBO41WryfQhjHAJGAK0jFsTW0hHQQuAM5M2rwaOovrgC0aPPVUo9XpSbalEazzo4FdgMOBTZHR7FeICbrCQth1AgJvK+qfo9j+QWAF0gMXmAF8rFUrj3V+c+A2qq+5FFiAjG4nG61mtnLPOtu1GXAeMBEZTUfidWBn4IlWFfkwrd0aeJCiSb1efm60OrqV+7eKdf4k4JzIrlORjmTY99ONOgiI9F9e8nmA4cJxDzAxAeE4BniUkYVjMfDdcMyuWQgHgNFqTlB0N0VG0ZEU8zWQad53Erj1gUhH0Khw3A58OYH7N411fjvEmFCgdI3sNIpT87fpyhGkgHV+R2AfxNVkNKI4TwfuMFoNtXDdMchU7XCGC14py5Ev++LCOkw7sc6vBRwBnIKsXFdjOnBQM5Yu6/x3gW9RWxcq525gitFqUaP3TBLr/DmIpW0ZMlX9A7A7stAMcLrR6tTSc7paQNIgLDZeipiJY6xAplxfNVo9l1W76sU6vwEy9dqf6kaYWcBu9Qp20MF+hIxUjXIXMrK23QPAOv8LxHfvTWBTo9V867xCDCcAPzVaHVd6TrdOsVIh+HjdTnXheAM42mg1pROFA8Bo9aLR6nOIIvpSlcO2BGYF/WpEwsh0H80Jx0PA7p0gHIG/hvdxwJnWeQOcXLL/sfIT8hEkEBwJZ1L08SqnoV63E7DOvwOx0FRbF3nUaPWhEc7fBLgX8alqlGeAHYxWrzVxbipY58cCTwMbhk0rkKk5yJR5I6PVP0vPyUcQwDo/HlFiY8IxBFwEbNdNwgEQHs4DgG8jD0Mp/wL+vdq51vnJiKWqGeF4CrEgdoxwAAQdaHfgibCpIBxzgO3LhQPyEQTr/ATEnj8psnsZ8H2j1RnZtipZgmn2GOCHyDrOY8CeRisXOXY04ut2CeJ53CiPAzsnsfaTFsE1ZjJiAXwBuK3aNLCvBSQ8DBcQNz+uQDyFf5ltq9LDOr8P4lC5b8zKF6aZ3wS+3+QtHLCt0erl5lvZWXSjq0mSnAgcH9m+ArH3d03cQj0YrW4EbhzhkF8DzToRLgQ+0UvCAX08gljnP4AE9ZSvQg8C3wDOb7f7eFYE0/Z0xN+rGeYDHzVaPZtcqzqDvhSQYM14Etg4srvCFt7LhACvGxDHyGZ4EdjFaDUruVZ1Dn1nxQoK67eJC8e9xKdcPYl1fgrwAM0LxwJgr14VDujDEcQ6/2HE07a8c1gBvMto9UL2rcqW0EmchehgjbqNlPIRo9Wfk2lVZ9KPSvpUKoVjOWL27AfhGA/8D3AQzc8gFiEr5D0tHNBnAmKdP4j4escdwJ0ZNydzrPMbAz8n/h3Uy+vAF4xW9yXTqs6mrwQEmVKU8yrw2Q7yF0qFIBwPUHSzaIYlyNrQLTWP7BH6Rkm3zu+BuMWXc1G3pKBpFuv8JCTrZCvCAXCI0eq3tQ/rHSoExDp/mnV+kXX+onY0KA3CCvG5VP6/c4Gz6zh/fev8tmG9oKuwzp+CeCiPa+Eyy4BDgGsTaVQXEZtiTQJWAw5G4rB7AUM8KvAco9Ub1U6yzm8P/Bfw6bBp0Dr/e+AM4MFWgrLSJqz1/AQJ+mqFxYhZ/Mqs/99gbVsHWcxdAryUdSrWftFBTqLSnLmcYobGCqzzGyKRcKU97wDiDborMNU6P9VotTDhtrZMGOnuRxLatcIK4Ayj1Xmtt6p+rPPjEJeX7zG8Y3vLOv9LpIP6ZxYC2/M6SAj4iQX7XBRzbw7nDCC5nqpNSwaQXnVWWFfpGKzzWyPu5q0KB4jj4tSaRyWIdf7jwHNIzoHyUX81ZCF3DjAtOJumyijr/DTE9bfAJsBYxCfp7yXbH0USD3dULthaBOW83OqyBElb+nyVcyYgP9JaddxiEfBL4KR2K/vW+UMQ7+R62j0Sg0giih9k+Xtb5w9E3OwLqZVeRTqq2UiusF2QBHkFrgYOTbONKwFfQvLYljOAJF8usBUSnvhi5NhOZvfItnlIEuWRqNfLYCziLj/ZOn+s0eruRhqXBCG+4QTgTKonmaiXQSRALGvh2AD4b0Q4liP606nlcSXW+X2R+PiNkNRPs0kmW0uUUdb5I5Evt8BmSEqXQYqRV4NITqML02pIGgQlbzbyP5VyntGqaqrM8MA9FTmvHqYBp2Slm4SEChcC/5bA5YaQ3/mYBK5VN2FKez/iTTwIfMdoddYIx6+NhM6uhfiDrZ9WxpSKXjKkrNwRWGC0qpbCvisIOXRjjnS6VnEd6/ynkRX2Rv3VhoB/IK4rFUkAksQ6vzriAfCRWsfWyUXA14xWy6rca0kao4p1fl1kSrs6YhiZVEsBDyPJ9eHjD41WJ490fLP0upL+yci25+qpPGW0ugvJMdUoowANPGKd/0nQZxIn5CB+mOSE43IkK2RMOLYCLOklftuCYiK6y+qxToUiPLPDx/3TUthjAlLoISq+qC4k9vA8FdkWJQzzzc5vV0LWkR6xzu8aphGJEFbGZ5BcLZJbgC/GpoXW+W2Q5A1rIUm006DUEnh/1aMqKQRojaO5+PmaxH60K5F8SqelccOM2SSyraHYhZCwYSoyN26GzZGV7ItDGp6msc4PWOcPRaZ+tZJo18sfjFZ7Gq2WRO63KTKFK0RdpmXSLjUsVLRjBAqd+ChSmg3FLnoxku2hqxTyKsQK7Pylieucgqyot8JRwOwwd26Wc4FftNiOUu5GUrdW406Gl5DbNNQDSZrS5YT3N3BewbdsKcW6MYlSsZIe5n9vpXGzNrBeZNuTjV4kxKZ/K1i3WlEG1wZ+Y52fDnyp3pIE1vlVkbp/+5FcT/kQcKDRaqTfutz3bACpqvW3hNpQYAYycqyCuDjdVuuEYIAp5DF7MC0XlJ5V0sPDHJvSNJ1YwGj1DVov/rIykjd3tnX+C6GdVQkuL7chCeCS+r3+igQ8za9xXKzWvE6oDaXMp1h1ar+QlLwqwc/sGsR9aAkproP0rIAgC0nlJtq3Wk1oZrQ6CZl+tuoHVEgL+rtg168gxHA8SNwa1yxPAh8eyUmzhNgIt36CbQEg6D9HIjrFWOD31vkdYpapYBK+heLocbPR6u/lxyVFLwtIbHqVVM6mExD3kiTYDXjWOn9Y6Ubr/LZIruBmUn9WYw7wyZgptwpvRraNVFqhaYxWDwGFyrdjkeCuP1vnj7bOb2Odn2yd/xWS87fQYcxGdLvU6GVv3piVJxHdymi1wjp/dLheEmsDawCXWecPRkoXbI1kN1wtgWsX+CdShqDWtKqUmG9ZzC0pKb6N5Ayeijyb2yJGoxj3IX5YqaY47eURJJatIzFnwmDM+CqSACEpdkX0jXNIVjg8koGkUf0rZtpOsl3DMFotN1r9ADEn/47hFaBApmAzEUPJpCySbPTyCBKbRiTa+xmthqzzxyP6xIF0Zhqll5HM9LWcM2PEVqdT91g2Ws0A9gq+dFsgyw4LgRlZx9/0soDE5s+JTw+MVoNh8W41pDx0J7EQ6WmbEQ6IewZn5uEbRulZNLi4myS9PMWaF9nWapxElKD07gdclcb1m2QZUvDn8RauEQsYS7ScdKfTywIyl0pT7PjglZo4IW3QEYwQxpshC4FPGa0eaPE6sfLSsY6nZ+lZAQkrqzFbfzMxHo3c82DE4a5dCR0WIxVlWxUOgHUj27qqylar9KyABGK9XVIesFHCdGsyYsdvBwcbre5p9SKhoGlsBOm5Egcj0esCElNOP5j2TUNs+mTq8ClKmEOMVtcldK1dqbTKzTVaLUjo+l1BrwvI85FtW2dx4yAkByDF6tNmGRLP8asEr7lXZFszntBdTa8LyMzItvdkdfNgs9+PYmx/GixHYrirrTg3TMhEOTGyqyezuVvnR1nnx8eC2npdQO6KbNu8mnNgGhit3gQKuZ7S4HSjVauxKuVMCK9yenUE+S7y+1SUxe51Afkb4oNUygDwlSwbETxnd0DKLyfJ94DTE74miKdsbA2k4ViaLuFrSKzOZ8t39LSAhECn6ZFdR4ZpRJZtmY9Mt+YkcLlBJDfUGSml3/wGlQr6341WNoV7dQKjy97fpqcFJHBrZNs7idv4UyU4C+6NLOQ1yyDwG+CENGqahACtPSO7Wg0U6yhCfP9Aud5Rvr1tvlgh4dmxwCeQUMuZwM9S8ND8Y2TbqsAxtCExhdHqiVBZdgbNecZehaSATatE9S6RbW8h3rU9gXX+TGRBtzBKFrwrtqdEV7TOX5i592lIJj0NMYGWPyDLEcX6OKNVElORwj2vRaY3pSwCNm4wPiIxrPOTgetorG7HFYg5NxWP2uA9OwOJwyjlaeB93ZaXOUZIcVozL1pgSaZTLOv8ekhPVPB+BfH5n4e4ZqyELFA9Yp1/X/QizfEdKr1Qx9JG71uj1R+QeJJ6H/Y7kI4jTXfzvagUDoDTekE4Ai8hMTwzkYTsj1KMe1lYsm0mcHamI4h1/kaKD+WLyFThjrBvMyS738eRoW8BYIxWryVw31WRXnCjsl1zkCzvbUuSZ50/AimsOVJn9QLw/mAyTrMtd1O5/vGC0WqTNO/bbqzzbyARqA8YrXYq3ZfZCGKd35Ki8vccsGVBOADClOpTiHUGpMGtVkcqXHsx8TSimxEv7JkllyMjajWdwgLbZyAcExF9sJxO8E5uG1lOsc5AzGhLkTiFCk/b0JOfSTEJ2GHlx7TAFQxPUFbgK2GEaQtB2b4KEdbJwOeRDB+HIh3Kx9LWk0Iandgo9ho9Zr2qwlDZ+9tkYsUK6VsKaSufNlo9U+1Yo9XLIbHaAcAHrfNjkkgKFsJjf0xlxkgNXGKdPyxFy9CIhLWMF8KrHRyFhLWWc261Klw9xs+QTunm8h1ZjSCjKS7C1OMN+nx4H6BogkuCHxP3izoQ+ECC9+kaQsm2C4nkEEMenJ7HaHWy0WqdkDBiGFkJyDKKKXfKFeUYBVv8m8gwnwihp47pHCsD91rn35nUvbqBsBgWy/U7hKQl7avowRiZCEh4MC8PHze0zlfNJRUW0QoxG7en4EpxJ5LRsJwJwE+SLFPQBUxDFsfKmQn8PuO2dCRZPgznICloRgFnW+f3LE8tGYb7S0s2XZJ0I4J7xpeJZ1ncD0nY1tME9+5Dkfol5bwK7JtWMuhuI+t1kBMRQSkI5r3Ios2byMN5KKKrDAE3AvulVQs7FKG5lcrUNkPAQcA1WdThbgfW+Q8h2d3LSxkMAScaraZl36rOJGsBGQD+g9qmw9uBfWJFXRJuzwVEYgAomqLvSfP+7cA6vx2StjPmB3YpcHQaTpDdSqbz7WBGPR9ZkJpOZfbDh5HSvp9JWzgC/0ncHX4McJt1fv8M2pAZ1vmdEFefmHA8hdR6z4WjhLamygwlyd6LTHOebSEDYCttUMhU792R3cuAY4xWl2XbqmQJToiTgKsZXjGqwEvAtkarFzNtWBfQiblkMyd4GD+JxInEOBWY2o0Oe8EQsi8iHLGF4deR3L19lc6nXnIBCVjn10dirlVk9xCSDG5KnYVnOoKg812MZHyMTaeXARONVg9m2a5uop9s/iMSXCp2I54qaBSwMzDDOj8ly3Y1i3X+w4hOdxTx33kxsEsuHCOTjyBlWOc3B26gWOKrnOXARciUK3OdqRZhungskqkjViMFwAF7GK2SLsbZc+QCEiGEA9+LrDJX+44GkanLdVnXrIgRyjN/GvFYKK9OW8rjiIdw29vcDeRTrAihNPKOyKJmNQaAy4CnrfPHt9NFJdRefwq4iZGF4xJy4WiIfASpgXV+T6RgZ60sKM8hq/+XGK3SzKRYaJcBvoRYqLaqcfibwBcR74C2RU92I7mA1IF1fg3gp0hisXL3jHIGETeOq4E/AU8m0WOHKdQWSAK6/RGP51iJtPK23Ax82WjVV2ULkiIXkAawzn8c+F9gE+r/7pYB9wDXI3rNq8CSsH1FeBUYQNYqVkYEcQKwExJZuDf1B7gNAfOBo4xWPZOupx3kAtIgITx3IhKr3UjKHpAHd0l4LQ+vkQRkFRr/jRYgddyvznWN1skFpEms8+OQXv3rxFPlZM0ziBPo9XmgU3LkAtIiwXo1EVGCdwY2yPD285FKVpcCN+WOhsmTC0jCWOd3R0aVbRAdopZS3whLkSnUHGS0uLYb/cO6iVxAUiJU050AfAiYAuyBKPeN4pEqVTcheYZf77cyaO0kF5AMCUKzHlKvfTySsaWglBesWouQ6rz/Al7uJufInJycnJycnJycnJycnJycnJycnJycnA4jXwdpghBxuB4SnLR2eC/8PR4p7zYWWUUfgxQNLYS/rkQxUC0WEruMYp2KpSXvS5E48sL7AqRk2CvhNb/0lS8mJkMuIGUEb12N+FStD2yM1M7YLGzfEHhH2xpYPwuQMndzkUQUz4V3H15zc2/f2vS1gISEahOQaMF9kUCkHeifUOTHgWuAaxFher1dRYQ6lb4VEOu8RmpjbA+sQf8IRYwhxL1lFnC80Wpmm9vTMfSlgIQS0zMQ3SBnOEuAI41WV7W7IZ1Av/aar9K+eoCdzjzEnT6HPh1BCljnDwe+iaQbHU9/dhiDiDXsNeAC4Ed55pMifS0g8HZy5wmIHrIbsDuSgG1CO9uVMouRBBK3IbVY5iEKeh58VUbfC0iMYN1aBzHzrodYuTakaObdIGxbBzH5dsrI8xqyDvIK8I/wcuE1Hylz8BIwL7dW1UcuIC0SRqA1EYFZCxl5xiIZT8aFvycgBoFRSPGaUeEVMxIspZjp5C3EwrSQ4YuDC4ksFOYjQPL8P/fGGg4HNsWXAAAAAElFTkSuQmCC",pu=e=>btoa(String.fromCharCode(...new TextEncoder().encode(e))),ql=e=>atob(e),jk=async({username:e,action:t,taskInstanceId:n,timezone:r,commentId:o,comment:i,commentType:s,hasAssets:a,taskVerified:c})=>{const l={...t?{action:t}:{},taskInstanceId:n,taskVerified:c,timezone:r,commentId:o,...i?{comment:pu(i)}:{},commentType:s,hasAssets:a},f=new Headers;return f.append("Content-Type","application/json"),f.append("username",e||""),await(await fetch(`${Rn}/manage-comment`,{method:"POST",headers:f,body:JSON.stringify(l)})).json()},nv=e=>{switch(e==null?void 0:e.toLowerCase()){case"pdf":case"application/pdf":return WE;case"xls":case"xlt":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xml":case"xlam":case"xla":case"xlw":case"xlr":return wm;case"csv":return PE;case"dif":case"fods":case"numbers":case"numbers-tef":case"ods":case"ots":case"sxc":case"tsv":return wm;case"doc":case"docx":case"docm ":case"dot":case"dotx":case"dotm":case"docb":return LE;case"aba":case"md":case"odt":case"ott":case"rtf":case"txt":case"wps":return OE;case"odp":case"otp":case"pot":case"potm":case"potx":case"pps":case"ppsm":case"ppsx":case"ppt":case"pptm":case"pptx":return RE;case"3g2":case"3gp":case"asf":case"avi":case"f4v":case"flv":case"h264":case"h265":case"m4v":case"mjpeg":case"mk3d":case"mks":case"mkv":case"mov":case"mp4":case"mxf":case"qt":case"rm":case"rmvb":case"rv":case"srt":case"vob":case"vp6":case"vp8":case"vp9":case"webm":case"wmv":case"xvid":return UE;case"aac":case"ac3":case"alac":case"flac":case"m3u":case"mid":case"mka":case"mp3":case"mpc":case"ogg":case"opus":case"ra":case"sdt":case"stap":case"wav":case"wma":return zE;case"adb":case"ads":case"ahk":case"applescript":case"as":case"au3":case"bat":case"bas":case"btm":case"class":case"cljs":case"cmd":case"coffee":case"c":case"cpp":case"cs":case"css":case"ino":case"egt":case"erb":case"go":case"hta":case"html":case"ibi":case"ici":case"ijs":case"itcl":case"jar":case"java":case"js":case"jsx":case"jsp":case"less":case"lua":case"m":case"mrc":case"nuc":case"nud":case"o":case"pde":case"php":case"pl":case"pm":case"ps1":case"ps1xml":case"psc1":case"psd1":case"py":case"pyc":case"pyo":case"rb":case"rdp":case"red":case"rs":case"sb2/sb3":case"scpt":case"scptd":case"sdl":case"sh":case"syjs":case"sypy":case"dcl":case"tns":case"vbs":return $E;case"7z":case"arc":case"arj":case"b6z":case"bz2":case"daa":case"dar":case"deb":case"gz":case"ice":case"mpkg":case"rar":case"tar":case"tbz":case"tgs":case"xapk":case"zim":case"zip":return FE;default:return HE}},zk=(e,t)=>{const n=URL.createObjectURL(e);return{sequenceOrder:t,originFile:e,name:e.name,url:n,type:e.type,mimeType:e.type,uploading:{value:0,title:"Uploading..."}}},Va=e=>e.assetPath.includes("blob:")?e.assetPath:$k({assetPath:e.assetPath,mimeType:e.mimeType,fileName:e.name}),$k=({assetPath:e,mimeType:t,fileName:n})=>e?`${Rn}/comment-attachment/?path=${e}&mimeType=${t}&fileName=${n}`:"",Td=e=>e.startsWith("image/"),Bk=async e=>new Promise((t,n)=>{const r=new FileReader;r.readAsArrayBuffer(e),r.onerror=()=>n(new Error("Unable to convert file to base64")),r.onload=()=>{const o=r.result,i=btoa(new Uint8Array(o).reduce((s,a)=>s+String.fromCharCode(a),""));return t(i)}}),Uk=(e,t)=>e.type?e.type:(t==null?void 0:t.toLowerCase())==="msg"?"application/vnd.ms-outlook":"application/octet-stream",Wk=async(e,t,n,r)=>{var m;const o=e.name.split(".").pop(),i=Uk(e,o),s=await Bk(e),a=((m=e.name)==null?void 0:m.split("."))||[];a.pop();const c=a.join("_").replaceAll(".","_")||`file_${Date.now()}.${o}`,l=s.length,f={assetType:"open_playbook_task_comment",commentId:t,fileEncoded:s,fileExtension:o,fileMimetype:i,fileName:c,fileSize:l,sequenceOrder:n},u=new Headers;return u.append("Content-Type","application/json"),u.append("username",r||""),await(await fetch(`${Rn}/upload-comment-asset`,{method:"POST",headers:u,body:JSON.stringify(f)})).json()},gp=async({taskInstanceId:e,username:t})=>{const n=new Headers;return n.append("Content-Type","application/json"),n.append("username",t),await(await fetch(`${Rn}/comments/${e}`,{method:"GET",headers:n})).json()},Mo=e=>["comments",+e],Kk=({taskInstanceId:e,enabled:t,username:n})=>{var a;const{queryClient:r}=sr(),o={queryKey:Mo(e),queryFn:async()=>await gp({taskInstanceId:e.toString(),username:n}),enabled:t&&!!n,staleTime:1/0},i=Oc(o,r),s=c=>{r.prefetchQuery({...o,queryKey:Mo(c),queryFn:async()=>await gp({taskInstanceId:c.toString(),username:n})})};return{comments:((a=i.data)==null?void 0:a.taskComments)||[],...i,isLoading:i.isLoading,prefetchQuery:s}},Hk=(e,t,n,r)=>{const o=Mo(t),i=e.getQueryData(o);e.setQueryData(o,{taskComments:[...(i==null?void 0:i.taskComments)||[],r],playbookInstanceId:n,taskInstanceId:t})},qk=(e,t,n)=>{const r=Mo(t),o=e.getQueryData(r);if(o){const i=o.taskComments.filter(s=>s.commentId!==n);e.setQueryData(r,{...o,taskComments:i})}},Vk=(e,t,n)=>{const r=Mo(t),o=e.getQueryData(r);if(o){const i=o.taskComments.map(s=>s.commentId===n.commentId?n:s);e.setQueryData(r,{...o,taskComments:i})}},Yk=({playbookInstanceId:e})=>{const{queryClient:t}=sr(),n=ad({mutationFn:async o=>{const{action:i,taskInstanceId:s,timezone:a,commentId:c,comment:l,commentType:f,hasAssets:u,attachments:d,username:h,taskVerified:m}=o,p=await jk({username:h,...i==="delete"?{action:i}:{},taskInstanceId:s,timezone:a,commentId:c,comment:l,commentType:f,hasAssets:u,taskVerified:m});return p.commentId&&u&&d&&await Promise.all(d.map(g=>Wk(g.originFile,p.commentId,g.sequenceOrder,h))),p},onMutate:async o=>{var u;const{action:i,taskInstanceId:s}=o,a=["comments",s],c=`temp-${crypto.randomUUID()}`,l=`temp-asset-${crypto.randomUUID()}`;await t.cancelQueries({queryKey:a});const f=t.getQueryData(a);return i==="delete"&&o.commentId&&qk(t,s,o.commentId),i==="add"&&Hk(t,s,+e,{commentId:c,author:o.username,comment:pu(o.comment??""),createdDate:new Date().toISOString(),edited:!1,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentType:o.commentType||"Info",taskAssets:((u=o.attachments)==null?void 0:u.map(d=>({assetId:l,assetPath:d.url,mimeType:d.mimeType,name:d.name,url:d.url,uploading:!0})))??[]}),i==="edit"&&o.commentId&&Vk(t,s,{author:o.username,comment:pu(o.comment??""),createdDate:new Date().toISOString(),edited:!0,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentId:o.commentId,commentType:o.commentType||"Info"}),{previousComments:f,taskInstanceId:s}},onError:(o,i,s)=>{s!=null&&s.previousComments&&t.setQueryData(Mo(s.taskInstanceId),s.previousComments)},onSettled:(o,i,s)=>{t.invalidateQueries({queryKey:Mo(s.taskInstanceId)}),t.invalidateQueries({queryKey:["playbook",+e]})}});return{manageComment:async o=>n.mutateAsync(o),...n}};function ai(e){return e?e.replace(/<[^>]*>/g,"").replace(/&nbsp;/g," ").trim().length===0:!0}const rv="carousel",ov="controller",Gk="navigation",Qk="no-scroll",Nd="portal",Zk="root",iv="toolbar",yp="zoom",Vl="loading",Yl="error",Gl="complete",Jk="placeholder",Xk=e=>`active-slide-${e}`,e3="fullsize",Od="flex_center",t3="no_scroll",sv="no_scroll_padding",Pd="slide",av="slide_wrapper",n3="slide_wrapper_interactive",ro="prev",oo="next",bp="swipe",Di="close",cv="onPointerDown",lv="onPointerMove",fv="onPointerUp",uv="onPointerLeave",dv="onPointerCancel",Md="onKeyDown",r3="onKeyUp",Id="onWheel",o3="Escape",i3="ArrowLeft",s3="ArrowRight",a3="button",gu="icon",hv="contain",vp="cover",mv="Unknown action type",pv="yarl__";function Nn(...e){return[...e].filter(Boolean).join(" ")}function Se(e){return`${pv}${e}`}function Dt(e){return`--${pv}${e}`}function na(e,t){return`${e}${t?`_${t}`:""}`}function Ld(e){return t=>na(e,t)}function Fi(e,t){var n;return(n=e==null?void 0:e[t])!==null&&n!==void 0?n:t}function c3(e,t,n){return Fi(e,"{index} of {total}").replace(/\{index}/g,`${zd(n,t.length)+1}`).replace(/\{total}/g,`${t.length}`)}function Rd(...e){return()=>{e.forEach(t=>{t()})}}function fr(e,t,n){return()=>{const r=C.useContext(n);if(!r)throw new Error(`${e} must be used within a ${t}.Provider`);return r}}function Dd(){return typeof window<"u"}function Fd(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}function Gi(e){return e.type===void 0||e.type==="image"}function jd(e,t){return e.imageFit===vp||e.imageFit!==hv&&t===vp}function Qc(e){return typeof e=="string"?Number.parseInt(e,10):e}function dc(e){if(typeof e=="number")return{pixel:e};if(typeof e=="string"){const t=Qc(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function l3(e,t){const n=dc(t),r=n.percent!==void 0?e.width/100*n.percent:n.pixel;return{width:Math.max(e.width-2*r,0),height:Math.max(e.height-2*r,0)}}function f3(){return(Dd()?window==null?void 0:window.devicePixelRatio:void 0)||1}function zd(e,t){return t>0?(e%t+t)%t:0}function gv(e){return e.length>0}function yv(e,t){return e[zd(t,e.length)]}function yu(e,t){return gv(e)?yv(e,t):void 0}function u3(e){return Gi(e)?e.src:void 0}function d3(e,t,n){if(!n)return e;const{buttons:r,...o}=e,i=r.findIndex(a=>a===t),s=C.isValidElement(n)?C.cloneElement(n,{key:t},null):n;if(i>=0){const a=[...r];return a.splice(i,1,s),{buttons:a,...o}}return{buttons:[s,...r],...o}}function h3(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}const m3=Number(C.version.split(".")[0])>=19;function p3(e){return{inert:m3?e:e?"":void 0}}function g3(e){e.scrollTop}const bu={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[Di]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:hv,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,preventDefaultWheelX:!0,preventDefaultWheelY:!1,disableSwipeNavigation:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function Wr(e,t){return{name:e,component:t}}function rt(e,t){return{module:e,children:t}}function bv(e,t,n){return e.module.name===t?n(e):e.children?[rt(e.module,e.children.flatMap(r=>{var o;return(o=bv(r,t,n))!==null&&o!==void 0?o:[]}))]:[e]}function ni(e,t,n){return e.flatMap(r=>{var o;return(o=bv(r,t,n))!==null&&o!==void 0?o:[]})}function y3(e,t=[],n=[]){let r=e;const o=h=>{const m=[...r];for(;m.length>0;){const p=m.pop();if((p==null?void 0:p.module.name)===h)return!0;p!=null&&p.children&&m.push(...p.children)}return!1},i=(h,m)=>{if(h===""){r=[rt(m,r)];return}r=ni(r,h,p=>[rt(m,[p])])},s=(h,m)=>{r=ni(r,h,p=>[rt(p.module,[rt(m,p.children)])])},a=(h,m,p)=>{r=ni(r,h,g=>{var y;return[rt(g.module,[...p?[rt(m)]:[],...(y=g.children)!==null&&y!==void 0?y:[],...p?[]:[rt(m)]])]})},c=(h,m,p)=>{r=ni(r,h,g=>[...p?[rt(m)]:[],g,...p?[]:[rt(m)]])},l=h=>{s(ov,h)},f=(h,m)=>{r=ni(r,h,p=>[rt(m,p.children)])},u=h=>{r=ni(r,h,m=>m.children)},d=h=>{n.push(h)};return t.forEach(h=>{h({contains:o,addParent:i,append:s,addChild:a,addSibling:c,addModule:l,replace:f,remove:u,augment:d})}),{config:r,augmentation:h=>n.reduce((m,p)=>p(m),h)}}const vv=C.createContext(null),xv=fr("useA11yContext","A11yContext",vv);function b3({children:e}){const[t,n]=C.useState(!1),[r,o]=C.useState(!1),i=C.useMemo(()=>({focusWithin:t,trackFocusWithin:(a,c)=>{const l=f=>u=>{var d;u.currentTarget.contains(u.relatedTarget)||n(f),(d=f?a:c)===null||d===void 0||d(u)};return{onFocus:l(!0),onBlur:l(!1)}},autoPlaying:r,setAutoPlaying:o}),[t,r]);return C.createElement(vv.Provider,{value:i},e)}const wv=C.createContext(null),Zc=fr("useDocument","DocumentContext",wv);function v3({nodeRef:e,children:t}){const n=C.useMemo(()=>{const r=i=>{var s;return((s=i||e.current)===null||s===void 0?void 0:s.ownerDocument)||document};return{getOwnerDocument:r,getOwnerWindow:i=>{var s;return((s=r(i))===null||s===void 0?void 0:s.defaultView)||window}}},[e]);return C.createElement(wv.Provider,{value:n},t)}const Av=C.createContext(null),Jc=fr("useEvents","EventsContext",Av);function x3({children:e}){const[t]=C.useState({});C.useEffect(()=>()=>{Object.keys(t).forEach(r=>delete t[r])},[t]);const n=C.useMemo(()=>{const r=(s,a)=>{var c;(c=t[s])===null||c===void 0||c.splice(0,t[s].length,...t[s].filter(l=>l!==a))};return{publish:(...[s,a])=>{var c;(c=t[s])===null||c===void 0||c.forEach(l=>l(a))},subscribe:(s,a)=>(t[s]||(t[s]=[]),t[s].push(a),()=>r(s,a)),unsubscribe:r}},[t]);return C.createElement(Av.Provider,{value:n},e)}const Cv=C.createContext(null),Xt=fr("useLightboxProps","LightboxPropsContext",Cv);function w3({children:e,...t}){return C.createElement(Cv.Provider,{value:t},e)}const Ev=C.createContext(null),Kr=fr("useLightboxState","LightboxStateContext",Ev),_v=C.createContext(null),A3=fr("useLightboxDispatch","LightboxDispatchContext",_v);function C3(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(t==null?void 0:t.increment)||0,o=e.globalIndex+r,i=zd(o,n.length),s=yu(n,i),a=r||t.duration!==void 0?{increment:r,duration:t.duration,easing:t.easing}:void 0;return{slides:n,currentIndex:i,globalIndex:o,currentSlide:s,animation:a}}case"update":return t.slides!==e.slides||t.index!==e.currentIndex?{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:yu(t.slides,t.index)}:e;default:throw new Error(mv)}}function E3({slides:e,index:t,children:n}){const[r,o]=C.useReducer(C3,{slides:e,currentIndex:t,globalIndex:t,currentSlide:yu(e,t)});C.useEffect(()=>{o({type:"update",slides:e,index:t})},[e,t]);const i=C.useMemo(()=>({...r,state:r,dispatch:o}),[r,o]);return C.createElement(_v.Provider,{value:o},C.createElement(Ev.Provider,{value:i},n))}const Sv=C.createContext(null),Xc=fr("useTimeouts","TimeoutsContext",Sv);function _3({children:e}){const[t]=C.useState([]);C.useEffect(()=>()=>{t.forEach(r=>window.clearTimeout(r)),t.splice(0,t.length)},[t]);const n=C.useMemo(()=>{const r=s=>{t.splice(0,t.length,...t.filter(a=>a!==s))};return{setTimeout:(s,a)=>{const c=window.setTimeout(()=>{r(c),s()},a);return t.push(c),c},clearTimeout:s=>{s!==void 0&&(r(s),window.clearTimeout(s))}}},[t]);return C.createElement(Sv.Provider,{value:n},e)}const $d=C.forwardRef(function({label:t,className:n,icon:r,renderIcon:o,onClick:i,style:s,...a},c){const{styles:l,labels:f}=Xt(),u=Fi(f,t);return C.createElement("button",{ref:c,type:"button",title:u,"aria-label":u,className:Nn(Se(a3),n),onClick:i,style:{...s,...l.button},...a},o?o():C.createElement(r,{className:Se(gu),style:l.icon}))});function S3(e,t){const n=r=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...r},t);return n.displayName=e,n}function Ho(e,t){return S3(e,C.createElement("g",{fill:"currentColor"},C.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const k3=Ho("Close",C.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),T3=Ho("Previous",C.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),N3=Ho("Next",C.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),O3=Ho("Loading",C.createElement(C.Fragment,null,Array.from({length:8}).map((e,t,n)=>C.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(t+1),transform:`rotate(${360/n.length*t}, 12, 12)`})))),P3=Ho("Error",C.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),Mn=Dd()?C.useLayoutEffect:C.useEffect;function Bd(){const[e,t]=C.useState(!1);return C.useEffect(()=>{var n,r;const o=(n=window.matchMedia)===null||n===void 0?void 0:n.call(window,"(prefers-reduced-motion: reduce)");t(o==null?void 0:o.matches);const i=s=>t(s.matches);return(r=o==null?void 0:o.addEventListener)===null||r===void 0||r.call(o,"change",i),()=>{var s;return(s=o==null?void 0:o.removeEventListener)===null||s===void 0?void 0:s.call(o,"change",i)}},[]),e}function M3(e){let t=0,n=0,r=0;const i=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(i){const s=i[1].split(",").map(Qc);s.length===6?(t=s[4],n=s[5]):s.length===16&&(t=s[12],n=s[13],r=s[14])}return{x:t,y:n,z:r}}function xp(e,t){const n=C.useRef(void 0),r=C.useRef(void 0),o=Bd();return Mn(()=>{var i,s,a;if(e.current&&n.current!==void 0&&!o){const{keyframes:c,duration:l,easing:f,onfinish:u}=t(n.current,e.current.getBoundingClientRect(),M3(e.current))||{};if(c&&l){(i=r.current)===null||i===void 0||i.cancel(),r.current=void 0;try{r.current=(a=(s=e.current).animate)===null||a===void 0?void 0:a.call(s,c,{duration:l,easing:f})}catch(d){console.error(d)}r.current&&(r.current.onfinish=()=>{r.current=void 0,u==null||u()})}}n.current=void 0}),{prepareAnimation:i=>{n.current=i},isAnimationPlaying:()=>{var i;return((i=r.current)===null||i===void 0?void 0:i.playState)==="running"}}}function kv(){const e=C.useRef(null),t=C.useRef(void 0),[n,r]=C.useState();return{setContainerRef:C.useCallback(i=>{e.current=i,t.current&&(t.current.disconnect(),t.current=void 0);const s=()=>{if(i){const a=window.getComputedStyle(i),c=l=>parseFloat(l)||0;r({width:Math.round(i.clientWidth-c(a.paddingLeft)-c(a.paddingRight)),height:Math.round(i.clientHeight-c(a.paddingTop)-c(a.paddingBottom))})}else r(void 0)};s(),i&&typeof ResizeObserver<"u"&&(t.current=new ResizeObserver(s),t.current.observe(i))},[]),containerRef:e,containerRect:n}}function Ya(){const e=C.useRef(void 0),{setTimeout:t,clearTimeout:n}=Xc();return C.useCallback((r,o)=>{n(e.current),e.current=t(r,o>0?o:0)},[t,n])}function Le(e){const t=C.useRef(e);return Mn(()=>{t.current=e}),C.useCallback((...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function wp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function vu(e,t){return C.useMemo(()=>e==null&&t==null?null:n=>{wp(e,n),wp(t,n)},[e,t])}function I3(e,t=!1){const n=C.useRef(!1);Mn(()=>{t&&n.current&&(n.current=!1,e())},[t,e]);const r=C.useCallback(()=>{n.current=!0},[]),o=C.useCallback(()=>{n.current=!1},[]);return{onFocus:r,onBlur:o}}function Ud(){const[e,t]=C.useState(!1);return Mn(()=>{t(window.getComputedStyle(window.document.documentElement).direction==="rtl")},[]),e}function L3(){const[e]=C.useState({}),t=C.useCallback((o,i)=>{var s;(s=e[o])===null||s===void 0||s.forEach(a=>{i.isPropagationStopped()||a(i)})},[e]),n=C.useMemo(()=>({onPointerDown:o=>t(cv,o),onPointerMove:o=>t(lv,o),onPointerUp:o=>t(fv,o),onPointerLeave:o=>t(uv,o),onPointerCancel:o=>t(dv,o),onKeyDown:o=>t(Md,o),onKeyUp:o=>t(r3,o),onWheel:o=>t(Id,o)}),[t]),r=C.useCallback((o,i)=>(e[o]||(e[o]=[]),e[o].unshift(i),()=>{const s=e[o];s&&s.splice(0,s.length,...s.filter(a=>a!==i))}),[e]);return{registerSensors:n,subscribeSensors:r}}function Ap(e,t){const n=C.useRef(0),r=Ya(),o=Le((...i)=>{n.current=Date.now(),e(i)});return C.useCallback((...i)=>{r(()=>{o(i)},t-(Date.now()-n.current))},[t,o,r])}const Ql=Ld("slide"),Zl=Ld("slide_image");function hc({slide:e,offset:t,render:n,rect:r,imageFit:o,imageProps:i,onClick:s,onLoad:a,onError:c,style:l}){var f,u,d,h,m,p,g,y;const[b,x]=C.useState(Vl),{publish:w}=Jc(),{setTimeout:A}=Xc(),E=C.useRef(null);C.useEffect(()=>{t===0&&w(Xk(b))},[t,b,w]);const _=Le(H=>{("decode"in H?H.decode():Promise.resolve()).catch(()=>{}).then(()=>{H.parentNode&&(x(Gl),A(()=>{a==null||a(H)},0))})}),S=C.useCallback(H=>{E.current=H,H!=null&&H.complete&&_(H)},[_]),O=C.useCallback(H=>{_(H.currentTarget)},[_]),P=Le(()=>{x(Yl),c==null||c()}),I=jd(e,o),$=(H,W)=>Number.isFinite(H)?H:W,D=$(Math.max(...((u=(f=e.srcSet)===null||f===void 0?void 0:f.map(H=>H.width))!==null&&u!==void 0?u:[]).concat(e.width?[e.width]:[]).filter(Boolean)),((d=E.current)===null||d===void 0?void 0:d.naturalWidth)||0),j=$(Math.max(...((m=(h=e.srcSet)===null||h===void 0?void 0:h.map(H=>H.height))!==null&&m!==void 0?m:[]).concat(e.height?[e.height]:[]).filter(Boolean)),((p=E.current)===null||p===void 0?void 0:p.naturalHeight)||0),K=D&&j?{maxWidth:`min(${D}px, 100%)`,maxHeight:`min(${j}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},G=(g=e.srcSet)===null||g===void 0?void 0:g.sort((H,W)=>H.width-W.width).map(H=>`${H.src} ${H.width}w`).join(", "),oe=()=>r&&!I&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,M=G&&r&&Dd()?`${Math.round(Math.min(oe(),r.width))}px`:void 0,{style:re,className:L,...z}=i||{};return C.createElement(C.Fragment,null,C.createElement("img",{ref:S,onLoad:O,onError:P,onClick:s,draggable:!1,className:Nn(Se(Zl()),I&&Se(Zl("cover")),b!==Gl&&Se(Zl("loading")),L),style:{...K,...l,...re},...z,alt:(y=e.alt)!==null&&y!==void 0?y:"",sizes:M,srcSet:G,src:e.src}),b!==Gl&&C.createElement("div",{className:Se(Ql(Jk))},b===Vl&&(n!=null&&n.iconLoading?n.iconLoading():C.createElement(O3,{className:Nn(Se(gu),Se(Ql(Vl)))})),b===Yl&&(n!=null&&n.iconError?n.iconError():C.createElement(P3,{className:Nn(Se(gu),Se(Ql(Yl)))}))))}const R3=C.forwardRef(function({className:t,children:n,onFocus:r,onBlur:o,...i},s){const a=C.useRef(null),{trackFocusWithin:c}=xv();return C.createElement(v3,{nodeRef:a},C.createElement("div",{ref:vu(s,a),className:Nn(Se("root"),t),...c(r,o),...i},n))});var yt;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"})(yt||(yt={}));function Tv(e,t,n,r,o){C.useEffect(()=>o?()=>{}:Rd(e(cv,t),e(lv,n),e(fv,r),e(uv,r),e(dv,r)),[e,t,n,r,o])}var sn;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"})(sn||(sn={}));const Jl=30;function D3({disableSwipeNavigation:e,closeOnBackdropClick:t},n,r,o,i,s,a,c,l,f,u,d,h,m,p,g){const y=C.useRef(0),b=C.useRef([]),x=C.useRef(void 0),w=C.useRef(0),A=C.useRef(sn.NONE),E=C.useCallback(D=>{x.current===D.pointerId&&(x.current=void 0,A.current=sn.NONE);const j=b.current;j.splice(0,j.length,...j.filter(K=>K.pointerId!==D.pointerId))},[]),_=C.useCallback(D=>{E(D),D.persist(),b.current.push(D)},[E]),S=C.useCallback(D=>b.current.find(({pointerId:j})=>D.pointerId===j),[]),O=Le(D=>{_(D)}),P=(D,j)=>u&&D>j||f&&D<-j,I=Le(D=>{const j=S(D);if(j)if(x.current===D.pointerId){const K=Date.now()-w.current,G=y.current;A.current===sn.SWIPE?Math.abs(G)>.3*o||Math.abs(G)>5&&K<i?c(G,K):l(G):A.current===sn.PULL&&(P(G,2*Jl)?m(G,K):p(G)),y.current=0,A.current=sn.NONE}else{const{target:K}=D;t&&K instanceof HTMLElement&&K===j.target&&(K.classList.contains(Se(Pd))||K.classList.contains(Se(av)))&&g()}E(D)}),$=Le(D=>{const j=S(D);if(j){const K=x.current===D.pointerId;if(D.buttons===0){K&&y.current!==0?I(D):E(j);return}const G=D.clientX-j.clientX,oe=D.clientY-j.clientY;if(x.current===void 0){const M=re=>{_(D),x.current=D.pointerId,w.current=Date.now(),A.current=re};Math.abs(G)>Math.abs(oe)&&Math.abs(G)>Jl&&r(G)?e||(M(sn.SWIPE),s()):Math.abs(oe)>Math.abs(G)&&P(oe,Jl)&&(M(sn.PULL),d())}else K&&(A.current===sn.SWIPE?(y.current=G,a(G)):A.current===sn.PULL&&(y.current=oe,h(oe)))}});Tv(n,O,$,I)}function F3({preventDefaultWheelX:e,preventDefaultWheelY:t}){const n=C.useRef(null),r=Le(o=>{const i=Math.abs(o.deltaX)>Math.abs(o.deltaY);(i&&e||!i&&t||o.ctrlKey)&&o.preventDefault()});return C.useCallback(o=>{var i;o?o.addEventListener("wheel",r,{passive:!1}):(i=n.current)===null||i===void 0||i.removeEventListener("wheel",r),n.current=o},[r])}function j3(e,t,n,r,o,i,s,a,c){const l=C.useRef(0),f=C.useRef(0),u=C.useRef(void 0),d=C.useRef(void 0),h=C.useRef(0),m=C.useRef(void 0),p=C.useRef(0),{setTimeout:g,clearTimeout:y}=Xc(),b=C.useCallback(()=>{u.current&&(y(u.current),u.current=void 0)},[y]),x=C.useCallback(()=>{d.current&&(y(d.current),d.current=void 0)},[y]),w=Le(()=>{e!==yt.SWIPE&&(l.current=0,p.current=0,b(),x())});C.useEffect(w,[e,w]);const A=Le(_=>{d.current=void 0,l.current===_&&c(l.current)}),E=Le(_=>{if(_.ctrlKey||Math.abs(_.deltaY)>Math.abs(_.deltaX))return;const S=O=>{h.current=O,y(m.current),m.current=O>0?g(()=>{h.current=0,m.current=void 0},300):void 0};if(e===yt.NONE){if(Math.abs(_.deltaX)<=1.2*Math.abs(h.current)){S(_.deltaX);return}if(!n(-_.deltaX))return;if(f.current+=_.deltaX,b(),Math.abs(f.current)>30)f.current=0,S(0),p.current=Date.now(),i();else{const O=f.current;u.current=g(()=>{u.current=void 0,O===f.current&&(f.current=0)},o)}}else if(e===yt.SWIPE){let O=l.current-_.deltaX;if(O=Math.min(Math.abs(O),r)*Math.sign(O),l.current=O,s(O),x(),Math.abs(O)>.2*r){S(_.deltaX),a(O,Date.now()-p.current);return}d.current=g(()=>A(O),2*o)}else S(_.deltaX)});C.useEffect(()=>t(Id,E),[t,E])}const Cp=Ld("container"),Nv=C.createContext(null),ur=fr("useController","ControllerContext",Nv);function z3({children:e,...t}){var n;const{carousel:r,animation:o,controller:i,on:s,styles:a,render:c}=t,{closeOnPullUp:l,closeOnPullDown:f,preventDefaultWheelX:u,preventDefaultWheelY:d}=i,[h,m]=C.useState(),p=Kr(),g=A3(),[y,b]=C.useState(yt.NONE),x=C.useRef(0),w=C.useRef(0),A=C.useRef(1),{registerSensors:E,subscribeSensors:_}=L3(),{subscribe:S,publish:O}=Jc(),P=Ya(),I=Ya(),$=Ya(),{containerRef:D,setContainerRef:j,containerRect:K}=kv(),G=vu(F3({preventDefaultWheelX:u,preventDefaultWheelY:d}),j),oe=C.useRef(null),M=vu(oe,void 0),{getOwnerDocument:re}=Zc(),L=Ud(),z=se=>(L?-1:1)*(typeof se=="number"?se:1),H=Le(()=>{var se;return(se=D.current)===null||se===void 0?void 0:se.focus()}),W=Le(()=>t),J=Le(()=>p),Y=C.useCallback(se=>O(ro,se),[O]),ee=C.useCallback(se=>O(oo,se),[O]),te=C.useCallback(()=>O(Di),[O]),me=se=>!(r.finite&&(z(se)>0&&p.currentIndex===0||z(se)<0&&p.currentIndex===p.slides.length-1)),ye=se=>{var Fe;x.current=se,(Fe=D.current)===null||Fe===void 0||Fe.style.setProperty(Dt("swipe_offset"),`${Math.round(se)}px`)},pe=se=>{var Fe,lt;w.current=se,A.current=(()=>{const Ht=f&&se>0?se:l&&se<0?-se:0;return Math.min(Math.max(Fd(1-Ht/60*(1-.5),2),.5),1)})(),(Fe=D.current)===null||Fe===void 0||Fe.style.setProperty(Dt("pull_offset"),`${Math.round(se)}px`),(lt=D.current)===null||lt===void 0||lt.style.setProperty(Dt("pull_opacity"),`${A.current}`)},{prepareAnimation:ze}=xp(oe,(se,Fe,lt)=>{if(oe.current&&K)return{keyframes:[{transform:`translate(0, ${se.rect.y-Fe.y+lt.y}px)`,opacity:se.opacity},{transform:"translate(0, 0)",opacity:1}],duration:se.duration,easing:o.easing.fade}}),Q=(se,Fe)=>{if(l||f){pe(se);let lt=0;oe.current&&(lt=o.fade*(Fe?2:1),ze({rect:oe.current.getBoundingClientRect(),opacity:A.current,duration:lt})),$(()=>{pe(0),b(yt.NONE)},lt),b(yt.ANIMATION),Fe||te()}},{prepareAnimation:qe,isAnimationPlaying:zt}=xp(oe,(se,Fe,lt)=>{var Mt;if(oe.current&&K&&(!((Mt=p.animation)===null||Mt===void 0)&&Mt.duration)){const tt=dc(r.spacing),Ht=(tt.percent?tt.percent*K.width/100:tt.pixel)||0;return{keyframes:[{transform:`translate(${z(p.globalIndex-se.index)*(K.width+Ht)+se.rect.x-Fe.x+lt.x}px, 0)`},{transform:"translate(0, 0)"}],duration:p.animation.duration,easing:p.animation.easing}}}),pt=Le(se=>{var Fe,lt;const Mt=se.offset||0,tt=Mt?o.swipe:(Fe=o.navigation)!==null&&Fe!==void 0?Fe:o.swipe,Ht=!Mt&&!zt()?o.easing.navigation:o.easing.swipe;let{direction:At}=se;const hr=(lt=se.count)!==null&&lt!==void 0?lt:1;let Qo=yt.ANIMATION,$t=tt*hr;if(!At){const mr=K==null?void 0:K.width,Zr=se.duration||0,pr=mr?tt/mr*Math.abs(Mt):tt;hr!==0?(Zr<pr?$t=$t/pr*Math.max(Zr,pr/5):mr&&($t=tt/mr*(mr-Math.abs(Mt))),At=z(Mt)>0?ro:oo):$t=tt/2}let Qr=0;At===ro?me(z(1))?Qr=-hr:(Qo=yt.NONE,$t=tt):At===oo&&(me(z(-1))?Qr=hr:(Qo=yt.NONE,$t=tt)),$t=Math.round($t),I(()=>{ye(0),b(yt.NONE)},$t),oe.current&&qe({rect:oe.current.getBoundingClientRect(),index:p.globalIndex}),b(Qo),O(bp,{type:"swipe",increment:Qr,duration:$t,easing:Ht})});C.useEffect(()=>{var se,Fe;!((se=p.animation)===null||se===void 0)&&se.increment&&(!((Fe=p.animation)===null||Fe===void 0)&&Fe.duration)&&P(()=>g({type:"swipe",increment:0}),p.animation.duration)},[p.animation,g,P]);const Yo=[_,me,(K==null?void 0:K.width)||0,o.swipe,()=>b(yt.SWIPE),se=>ye(se),(se,Fe)=>pt({offset:se,duration:Fe,count:1}),se=>pt({offset:se,count:0})],ss=[()=>{f&&b(yt.PULL)},se=>pe(se),se=>Q(se),se=>Q(se,!0)];D3(i,...Yo,l,f,...ss,te),j3(y,...Yo);const Dn=Le(()=>{i.focus&&re().querySelector(`.${Se(Nd)} .${Se(Cp())}`)&&H()});C.useEffect(Dn,[Dn]);const Gr=Le(()=>{var se;(se=s.view)===null||se===void 0||se.call(s,{index:p.currentIndex})});C.useEffect(Gr,[p.globalIndex,Gr]),C.useEffect(()=>Rd(S(ro,se=>pt({direction:ro,...se})),S(oo,se=>pt({direction:oo,...se})),S(bp,se=>g(se))),[S,pt,g]);const Go=C.useMemo(()=>({prev:Y,next:ee,close:te,focus:H,slideRect:K?l3(K,r.padding):{width:0,height:0},containerRect:K||{width:0,height:0},subscribeSensors:_,containerRef:D,setCarouselRef:M,toolbarWidth:h,setToolbarWidth:m}),[Y,ee,te,H,_,K,D,M,h,m,r.padding]);return C.useImperativeHandle(i.ref,()=>({prev:Y,next:ee,close:te,focus:H,getLightboxProps:W,getLightboxState:J}),[Y,ee,te,H,W,J]),C.createElement("div",{ref:G,className:Nn(Se(Cp()),Se(Od)),style:{...y===yt.SWIPE?{[Dt("swipe_offset")]:`${Math.round(x.current)}px`}:null,...y===yt.PULL?{[Dt("pull_offset")]:`${Math.round(w.current)}px`,[Dt("pull_opacity")]:`${A.current}`}:null,...i.touchAction!=="none"?{[Dt("controller_touch_action")]:i.touchAction}:null,...a.container},tabIndex:-1,...E},K&&C.createElement(Nv.Provider,{value:Go},e,(n=c.controls)===null||n===void 0?void 0:n.call(c)))}const $3=Wr(ov,z3);function eo(e){return na(rv,e)}function Ep(e){return na(Pd,e)}function B3({slide:e,offset:t}){const n=C.useRef(null),{currentIndex:r,slides:o}=Kr(),{slideRect:i,focus:s}=ur(),{render:a,carousel:{imageFit:c,imageProps:l},on:{click:f},styles:{slide:u},labels:d}=Xt(),{getOwnerDocument:h}=Zc(),m=t!==0;C.useEffect(()=>{var g;m&&(!((g=n.current)===null||g===void 0)&&g.contains(h().activeElement))&&s()},[m,s,h]);const p=()=>{var g,y,b,x;let w=(g=a.slide)===null||g===void 0?void 0:g.call(a,{slide:e,offset:t,rect:i});return!w&&Gi(e)&&(w=C.createElement(hc,{slide:e,offset:t,render:a,rect:i,imageFit:c,imageProps:l,onClick:m?void 0:()=>f==null?void 0:f({index:r})})),w?C.createElement(C.Fragment,null,(y=a.slideHeader)===null||y===void 0?void 0:y.call(a,{slide:e}),((b=a.slideContainer)!==null&&b!==void 0?b:(({children:A})=>A))({slide:e,children:w}),(x=a.slideFooter)===null||x===void 0?void 0:x.call(a,{slide:e})):null};return C.createElement("div",{ref:n,className:Nn(Se(Ep()),!m&&Se(Ep("current")),Se(Od)),...p3(m),style:u,role:"group","aria-roledescription":Fi(d,"Slide"),"aria-label":c3(d,o,r+t)},p())}function U3(){const e=Xt().styles.slide;return C.createElement("div",{className:Se(Pd),style:e})}function W3({carousel:e,labels:t}){const{slides:n,currentIndex:r,globalIndex:o}=Kr(),{setCarouselRef:i}=ur(),{autoPlaying:s,focusWithin:a}=xv(),c=dc(e.spacing),l=dc(e.padding),f=h3(e,n,1),u=[];if(gv(n))for(let d=r-f;d<=r+f;d+=1){const h=yv(n,d),m=o-r+d,p=e.finite&&(d<0||d>n.length-1);u.push(p?{key:m}:{key:[`${m}`,u3(h)].filter(Boolean).join("|"),offset:d-r,slide:h})}return C.createElement("div",{ref:i,className:Nn(Se(eo()),u.length>0&&Se(eo("with_slides"))),style:{[`${Dt(eo("slides_count"))}`]:u.length,[`${Dt(eo("spacing_px"))}`]:c.pixel||0,[`${Dt(eo("spacing_percent"))}`]:c.percent||0,[`${Dt(eo("padding_px"))}`]:l.pixel||0,[`${Dt(eo("padding_percent"))}`]:l.percent||0},role:"region","aria-live":s&&!a?"off":"polite","aria-roledescription":Fi(t,"Carousel"),"aria-label":Fi(t,"Photo gallery")},u.map(({key:d,slide:h,offset:m})=>h?C.createElement(B3,{key:d,slide:h,offset:m}):C.createElement(U3,{key:d})))}const K3=Wr(rv,W3);function Ov(){const{carousel:e}=Xt(),{slides:t,currentIndex:n}=Kr(),r=t.length===0||e.finite&&n===0,o=t.length===0||e.finite&&n===t.length-1;return{prevDisabled:r,nextDisabled:o}}function H3(e){var t;const n=Ud(),{publish:r}=Jc(),{animation:o}=Xt(),{prevDisabled:i,nextDisabled:s}=Ov(),a=((t=o.navigation)!==null&&t!==void 0?t:o.swipe)/2,c=Ap(()=>r(ro),a),l=Ap(()=>r(oo),a),f=Le(u=>{switch(u.key){case o3:r(Di);break;case i3:(n?s:i)||(n?l:c)();break;case s3:(n?i:s)||(n?c:l)();break}});C.useEffect(()=>e(Md,f),[e,f])}function _p({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:i,style:s}){return C.createElement($d,{label:e,icon:t,renderIcon:n,className:Se(`navigation_${r}`),disabled:i,onClick:o,style:s,...I3(ur().focus,i)})}function q3({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:i,next:s,subscribeSensors:a}=ur(),{prevDisabled:c,nextDisabled:l}=Ov();return H3(a),C.createElement(C.Fragment,null,e?e():C.createElement(_p,{label:"Previous",action:ro,icon:T3,renderIcon:n,style:o.navigationPrev,disabled:c,onClick:i}),t?t():C.createElement(_p,{label:"Next",action:oo,icon:N3,renderIcon:r,style:o.navigationNext,disabled:l,onClick:s}))}const V3=Wr(Gk,q3),Sp=Se(t3),Y3=Se(sv);function G3(e){return"style"in e}function kp(e,t,n){const r=window.getComputedStyle(e),o=n?"padding-left":"padding-right",i=n?r.paddingLeft:r.paddingRight,s=e.style.getPropertyValue(o);return e.style.setProperty(o,`${(Qc(i)||0)+t}px`),()=>{s?e.style.setProperty(o,s):e.style.removeProperty(o)}}function Q3({noScroll:{disabled:e},children:t}){const n=Ud(),{getOwnerDocument:r,getOwnerWindow:o}=Zc();return C.useEffect(()=>{if(e)return()=>{};const i=[],s=o(),{body:a,documentElement:c}=r(),l=Math.round(s.innerWidth-c.clientWidth);if(l>0){i.push(kp(a,l,n));const f=a.getElementsByTagName("*");for(let u=0;u<f.length;u+=1){const d=f[u];G3(d)&&s.getComputedStyle(d).getPropertyValue("position")==="fixed"&&!d.classList.contains(Y3)&&i.push(kp(d,l,n))}}return a.classList.add(Sp),()=>{a.classList.remove(Sp),i.forEach(f=>f())}},[n,e,r,o]),C.createElement(C.Fragment,null,t)}const Z3=Wr(Qk,Q3);function Tp(e){return na(Nd,e)}function Np(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}function J3({children:e,animation:t,styles:n,className:r,on:o,portal:i,close:s,labels:a}){const[c,l]=C.useState(!1),[f,u]=C.useState(!1),d=C.useRef([]),h=C.useRef(null),{setTimeout:m}=Xc(),{subscribe:p}=Jc(),y=Bd()?0:t.fade;C.useEffect(()=>(l(!0),()=>{l(!1),u(!1)}),[]);const b=Le(()=>{d.current.forEach(E=>E()),d.current=[]}),x=Le(()=>{var E;u(!1),b(),(E=o.exiting)===null||E===void 0||E.call(o),m(()=>{var _;(_=o.exited)===null||_===void 0||_.call(o),s()},y)});C.useEffect(()=>p(Di,x),[p,x]);const w=Le(E=>{var _,S,O;g3(E),u(!0),(_=o.entering)===null||_===void 0||_.call(o);const P=(O=(S=E.parentNode)===null||S===void 0?void 0:S.children)!==null&&O!==void 0?O:[];for(let I=0;I<P.length;I+=1){const $=P[I];["TEMPLATE","SCRIPT","STYLE"].indexOf($.tagName)===-1&&$!==E&&(d.current.push(Np($,"inert","")),d.current.push(Np($,"aria-hidden","true")))}d.current.push(()=>{var I,$;($=(I=h.current)===null||I===void 0?void 0:I.focus)===null||$===void 0||$.call(I)}),m(()=>{var I;(I=o.entered)===null||I===void 0||I.call(o)},y)}),A=C.useCallback(E=>{E?w(E):b()},[w,b]);return c?Wt.createPortal(C.createElement(R3,{ref:A,className:Nn(r,Se(Tp()),Se(sv),f&&Se(Tp("open"))),"aria-modal":!0,role:"dialog","aria-label":Fi(a,"Lightbox"),style:{...t.fade!==bu.animation.fade?{[Dt("fade_animation_duration")]:`${y}ms`}:null,...t.easing.fade!==bu.animation.easing.fade?{[Dt("fade_animation_timing_function")]:t.easing.fade}:null,...n.root},onFocus:E=>{h.current||(h.current=E.relatedTarget)}},e),i.root||document.body):null}const X3=Wr(Nd,J3);function eT({children:e}){return C.createElement(C.Fragment,null,e)}const tT=Wr(Zk,eT);function nT(e){return na(iv,e)}function rT({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:i}=ur(),{setContainerRef:s,containerRect:a}=kv();Mn(()=>{i(a==null?void 0:a.width)},[i,a==null?void 0:a.width]);const c=()=>t?t():C.createElement($d,{key:Di,label:"Close",icon:k3,renderIcon:n,onClick:o});return C.createElement("div",{ref:s,style:r.toolbar,className:Se(nT())},e==null?void 0:e.map(l=>l===Di?c():l))}const oT=Wr(iv,rT);function Pv(e,t){var n;return C.createElement(e.module.component,{key:e.module.name,...t},(n=e.children)===null||n===void 0?void 0:n.map(r=>Pv(r,t)))}function iT(e,t={}){const{easing:n,...r}=e,{easing:o,...i}=t;return{easing:{...n,...o},...r,...i}}function sT({carousel:e,animation:t,render:n,toolbar:r,controller:o,noScroll:i,on:s,plugins:a,slides:c,index:l,...f}){const{animation:u,carousel:d,render:h,toolbar:m,controller:p,noScroll:g,on:y,slides:b,index:x,plugins:w,...A}=bu,{config:E,augmentation:_}=y3([rt(X3,[rt(Z3,[rt($3,[rt(K3),rt(oT),rt(V3)])])])],a||w),S=_({animation:iT(u,t),carousel:{...d,...e},render:{...h,...n},toolbar:{...m,...r},controller:{...p,...o},noScroll:{...g,...i},on:{...y,...s},...A,...f});return S.open?C.createElement(w3,{...S},C.createElement(E3,{slides:c||b,index:Qc(l||x)},C.createElement(_3,null,C.createElement(x3,null,C.createElement(b3,null,Pv(rt(tT,E),S)))))):null}const aT={minZoom:1,maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,pinchZoomV4:!1,scrollToZoom:!1};function cT(e){return Math.min(Math.max(e,Number.EPSILON),1)}function Mv(e){const{minZoom:t,...n}={...aT,...e};return{minZoom:cT(t),...n}}function lT(e,t,n,r){const o=C.useRef(void 0),i=C.useRef(void 0),{zoom:s}=Xt().animation,a=Bd(),c=Le(()=>{var l,f,u;if((l=o.current)===null||l===void 0||l.cancel(),o.current=void 0,i.current&&(r!=null&&r.current)){try{o.current=(u=(f=r.current).animate)===null||u===void 0?void 0:u.call(f,[{transform:i.current},{transform:`scale(${e}) translateX(${t}px) translateY(${n}px)`}],{duration:a?0:s??500,easing:o.current?"ease-out":"ease-in-out"})}catch(d){console.error(d)}i.current=void 0,o.current&&(o.current.onfinish=()=>{o.current=void 0})}});return Mn(c,[e,t,n,c]),C.useCallback(()=>{i.current=r!=null&&r.current?window.getComputedStyle(r.current).transform:void 0},[r])}function fT(e,t){const{on:n}=Xt(),r=Le(()=>{var o;t||(o=n.zoom)===null||o===void 0||o.call(n,{zoom:e})});C.useEffect(r,[e,r])}function el(){const{zoom:e}=Xt();return Mv(e)}function uT(e,t){var n,r;let o={width:0,height:0},i={width:0,height:0};const{currentSlide:s}=Kr(),{imageFit:a}=Xt().carousel,{maxZoomPixelRatio:c}=el();if(e&&s){const f={...s,...t};if(Gi(f)){const u=jd(f,a),d=Math.max(...(((n=f.srcSet)===null||n===void 0?void 0:n.map(m=>m.width))||[]).concat(f.width?[f.width]:[])),h=Math.max(...(((r=f.srcSet)===null||r===void 0?void 0:r.map(m=>m.height))||[]).concat(f.height?[f.height]:[]));d>0&&h>0&&e.width>0&&e.height>0&&(i=u?{width:Math.round(Math.min(d,e.width/e.height*h)),height:Math.round(Math.min(h,e.height/e.width*d))}:{width:d,height:h},i={width:i.width*c,height:i.height*c},o=u?{width:Math.min(e.width,i.width,d),height:Math.min(e.height,i.height,h)}:{width:Math.round(Math.min(e.width,e.height/h*d,d)),height:Math.round(Math.min(e.height,e.width/d*h,h))})}}const l=o.width?Math.max(Fd(i.width/o.width,5),1):1;return{imageRect:o,maxZoom:l}}function Op(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)}function Pp(e,t,n=100,r=2){return e*Math.min(1+Math.abs(t/n),r)**Math.sign(t)}function dT(e,t,n,r,o,i,s,a,c){const l=C.useRef([]),f=C.useRef(0),u=C.useRef(void 0),{globalIndex:d}=Kr(),{getOwnerWindow:h}=Zc(),{containerRef:m,subscribeSensors:p}=ur(),{keyboardMoveDistance:g,zoomInMultiplier:y,wheelZoomDistanceFactor:b,scrollToZoom:x,doubleTapDelay:w,doubleClickDelay:A,doubleClickMaxStops:E,pinchZoomDistanceFactor:_,pinchZoomV4:S}=el(),O=C.useCallback(M=>{if(m.current){const{pageX:re,pageY:L}=M,{scrollX:z,scrollY:H}=h(),{left:W,top:J,width:Y,height:ee}=m.current.getBoundingClientRect();return[re-W-z-Y/2,L-J-H-ee/2]}return[]},[m,h]),P=Le(M=>{const{key:re,metaKey:L,ctrlKey:z}=M,H=L||z,W=()=>{M.preventDefault(),M.stopPropagation()};if(e>1){const J=(Y,ee)=>{W(),a(Y,ee)};re==="ArrowDown"?J(0,g):re==="ArrowUp"?J(0,-g):re==="ArrowLeft"?J(-g,0):re==="ArrowRight"&&J(g,0)}re==="+"||H&&re==="="?(W(),o()):re==="-"||H&&re==="_"?(W(),i()):H&&re==="0"&&(W(),s(1))}),I=Le(M=>{if((M.ctrlKey||x)&&Math.abs(M.deltaY)>Math.abs(M.deltaX)){M.stopPropagation(),s(Pp(e,-M.deltaY,b),!0,...O(M));return}e>1&&(M.stopPropagation(),x||a(M.deltaX,M.deltaY))}),$=C.useCallback(M=>{const re=l.current;re.splice(0,re.length,...re.filter(L=>L.pointerId!==M.pointerId))},[]),D=C.useCallback(M=>{$(M),M.persist(),l.current.push(M)},[$]),j=Le(M=>{var re;const L=l.current;if(M.pointerType==="mouse"&&M.buttons>1||!(!((re=c==null?void 0:c.current)===null||re===void 0)&&re.contains(M.target)))return;e>1&&M.stopPropagation();const{timeStamp:z}=M;if(L.length===0&&z-f.current<(M.pointerType==="touch"?w:A)){f.current=0;const H=e>=1?e!==n?e*Math.max(n**(1/E),y):1:e!==t?e/Math.max(t**(-1/E),y):1;s(H,!1,...O(M))}else f.current=z;if(D(M),L.length===2){const H=Op(L[0],L[1]);u.current={previousDistance:H,initialDistance:Math.max(H,1),initialZoom:e}}}),K=Le(M=>{const re=l.current,L=re.find(z=>z.pointerId===M.pointerId);if(re.length===2&&u.current){M.stopPropagation(),D(M);const z=Op(re[0],re[1]),H=S?u.current.initialZoom/u.current.initialDistance*z:Pp(e,z-u.current.previousDistance,_);s(H,!0,...re.map(W=>O(W)).reduce((W,J)=>J.map((Y,ee)=>W[ee]+Y/2))),u.current.previousDistance=z;return}e>1&&(M.stopPropagation(),L&&(re.length===1&&a((L.clientX-M.clientX)/e,(L.clientY-M.clientY)/e),D(M)))}),G=C.useCallback(M=>{const re=l.current;re.length===2&&re.find(L=>L.pointerId===M.pointerId)&&(u.current=void 0),$(M)},[$]),oe=C.useCallback(()=>{const M=l.current;M.splice(0,M.length),f.current=0,u.current=void 0},[]);Tv(p,j,K,G,r),C.useEffect(oe,[d,oe]),C.useEffect(()=>r?()=>{}:Rd(oe,p(Md,P),p(Id,I)),[r,p,oe,P,I])}function hT(e,t,n){const[r,o]=C.useState(1),[i,s]=C.useState(0),[a,c]=C.useState(0),l=lT(r,i,a,n),{currentSlide:f,globalIndex:u}=Kr(),{containerRect:d,slideRect:h}=ur(),{minZoom:m,zoomInMultiplier:p}=el(),g=f&&Gi(f)?f.src:void 0,y=!g||!(n!=null&&n.current);Mn(()=>{o(1),s(0),c(0)},[u,g]);const b=C.useCallback((_,S,O)=>{const P=O||r,I=i-(_||0),$=a-(S||0),D=(e.width*P-h.width)/2/P,j=(e.height*P-h.height)/2/P;s(Math.min(Math.abs(I),Math.max(D,0))*Math.sign(I)),c(Math.min(Math.abs($),Math.max(j,0))*Math.sign($))},[r,i,a,h,e.width,e.height]),x=C.useCallback((_,S,O,P)=>{const I=Fd(_+.01<t?_-.01>m?_:m:t,5);S||l(),b(O?O*(1/r-1/I):0,P?P*(1/r-1/I):0,I),o(I)},[r,m,t,b,l]),w=Le(()=>{r>1&&(r>t&&x(t,!0),b())});Mn(w,[d.width,d.height,w]);const A=C.useCallback(()=>{const _=r*p;x(r<1&&_>1?1:_)},[r,p,x]),E=C.useCallback(()=>{const _=r/p;x(r>1&&_<1?1:_)},[r,p,x]);return{zoom:r,offsetX:i,offsetY:a,disabled:y,changeOffsets:b,changeZoom:x,zoomIn:A,zoomOut:E}}const Iv=C.createContext(null),Wd=fr("useZoom","ZoomControllerContext",Iv);function mT({children:e}){const[t,n]=C.useState(),{slideRect:r}=ur(),{ref:o,minZoom:i}=el(),{imageRect:s,maxZoom:a}=uT(r,t==null?void 0:t.imageDimensions),{zoom:c,offsetX:l,offsetY:f,disabled:u,changeZoom:d,changeOffsets:h,zoomIn:m,zoomOut:p}=hT(s,a,t==null?void 0:t.zoomWrapperRef);fT(c,u),dT(c,i,a,u,m,p,d,h,t==null?void 0:t.zoomWrapperRef);const g=C.useMemo(()=>({zoom:c,minZoom:i,maxZoom:a,offsetX:l,offsetY:f,disabled:u,zoomIn:m,zoomOut:p,changeZoom:d}),[c,i,a,l,f,u,m,p,d]);C.useImperativeHandle(o,()=>g,[g]);const y=C.useMemo(()=>({...g,setZoomWrapper:n}),[g,n]);return C.createElement(Iv.Provider,{value:y},e)}const pT=Ho("ZoomIn",C.createElement(C.Fragment,null,C.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),C.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))),gT=Ho("ZoomOut",C.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"})),Mp=C.forwardRef(function({zoomIn:t,onLoseFocus:n},r){const o=C.useRef(!1),i=C.useRef(!1),{zoom:s,minZoom:a,maxZoom:c,zoomIn:l,zoomOut:f,disabled:u}=Wd(),{render:d}=Xt(),h=u||(t?s>=c:s<=a);return C.useEffect(()=>{h&&o.current&&i.current&&n(),h||(o.current=!0)},[h,n]),C.createElement($d,{ref:r,disabled:h,label:t?"Zoom in":"Zoom out",icon:t?pT:gT,renderIcon:t?d.iconZoomIn:d.iconZoomOut,onClick:t?l:f,onFocus:()=>{i.current=!0},onBlur:()=>{i.current=!1}})});function yT(){const e=C.useRef(null),t=C.useRef(null),{focus:n}=ur(),r=C.useCallback(s=>{var a,c;!((a=s.current)===null||a===void 0)&&a.disabled?n():(c=s.current)===null||c===void 0||c.focus()},[n]),o=C.useCallback(()=>r(e),[r]),i=C.useCallback(()=>r(t),[r]);return C.createElement(C.Fragment,null,C.createElement(Mp,{zoomIn:!0,ref:e,onLoseFocus:i}),C.createElement(Mp,{ref:t,onLoseFocus:o}))}function bT(){const{render:e}=Xt(),t=Wd();return e.buttonZoom?C.createElement(C.Fragment,null,e.buttonZoom(t)):C.createElement(yT,null)}function vT(e){var t;return(((t=e.srcSet)===null||t===void 0?void 0:t.length)||0)>0}function xT({current:e,preload:t},{type:n,source:r}){switch(n){case"fetch":return e?{current:e,preload:r}:{current:r};case"done":return r===t?{current:r}:{current:e,preload:t};default:throw new Error(mv)}}function wT(e){var t,n;const[{current:r,preload:o},i]=C.useReducer(xT,{}),{slide:s,rect:a,imageFit:c,render:l,interactive:f}=e,u=s.srcSet.sort((A,E)=>A.width-E.width),d=(t=s.width)!==null&&t!==void 0?t:u[u.length-1].width,h=(n=s.height)!==null&&n!==void 0?n:u[u.length-1].height,m=jd(s,c),p=Math.max(...u.map(A=>A.width)),g=Math.min((m?Math.max:Math.min)(a.width,d*(a.height/h)),p),y=f3(),b=Le(()=>{var A;const E=(A=u.find(_=>_.width>=g*y))!==null&&A!==void 0?A:u[u.length-1];(!r||u.findIndex(_=>_.src===r)<u.findIndex(_=>_===E))&&i({type:"fetch",source:E.src})});Mn(b,[a.width,a.height,y,b]);const x=Le(A=>i({type:"done",source:A})),w={WebkitTransform:f?"initial":"translateZ(0)"};return m||Object.assign(w,a.width/a.height<d/h?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),C.createElement(C.Fragment,null,o&&o!==r&&C.createElement(hc,{key:"preload",...e,offset:void 0,slide:{...s,src:o,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...w},onLoad:()=>x(o),render:{...l,iconLoading:()=>null,iconError:()=>null}}),r&&C.createElement(hc,{key:"current",...e,slide:{...s,src:r,srcSet:void 0},style:w}))}function AT({render:e,slide:t,offset:n,rect:r}){var o;const[i,s]=C.useState(),a=C.useRef(null),{zoom:c,maxZoom:l,offsetX:f,offsetY:u,setZoomWrapper:d}=Wd(),h=c>1,{carousel:m,on:p}=Xt(),{currentIndex:g}=Kr();Mn(()=>n===0?(d({zoomWrapperRef:a,imageDimensions:i}),()=>d(void 0)):()=>{},[n,i,d]);let y=(o=e.slide)===null||o===void 0?void 0:o.call(e,{slide:t,offset:n,rect:r,zoom:c,maxZoom:l});if(!y&&Gi(t)){const b={slide:t,offset:n,rect:r,render:e,imageFit:m.imageFit,imageProps:m.imageProps,onClick:n===0?()=>{var x;return(x=p.click)===null||x===void 0?void 0:x.call(p,{index:g})}:void 0};y=vT(t)?C.createElement(wT,{...b,slide:t,interactive:h,rect:n===0?{width:r.width*c,height:r.height*c}:r}):C.createElement(hc,{onLoad:x=>s({width:x.naturalWidth,height:x.naturalHeight}),...b})}return y?C.createElement("div",{ref:a,className:Nn(Se(e3),Se(Od),Se(av),h&&Se(n3)),style:n===0?{transform:`scale(${c}) translateX(${f}px) translateY(${u}px)`}:void 0},y):null}const CT=({augment:e,addModule:t})=>{e(({zoom:n,toolbar:r,render:o,controller:i,...s})=>{const a=Mv(n);return{zoom:a,toolbar:d3(r,yp,C.createElement(bT,null)),render:{...o,slide:c=>{var l;return Gi(c.slide)?C.createElement(AT,{render:o,...c}):(l=o.slide)===null||l===void 0?void 0:l.call(o,c)}},controller:{...i,preventDefaultWheelY:a.scrollToZoom},...s}}),t(Wr(yp,mT))},Lv="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQECAgICAgICAgICAgMDAwMDAwMDAwMBAQEBAQEBAQEBAQICAQICAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDA//CABEIAZABkAMBEQACEQEDEQH/xAAdAAEAAgIDAQEAAAAAAAAAAAAAAQcGCAIDBQQK/9oACAEBAAAAAP29AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4dNV5jnPJLHuX1AAAAAAAp7Xb50ofbsraAAAAAABS2usgGz1qAAAAAAYjp7xEwTH0bme8AAAAADVqsgEoXNsYAAAAAHVov1AA9bdwAAAAAMX00kTAHXvN6AAAAAAw/T0ADhu964AAAAA87RznACYd29PMAAAAANOMUACbB2wAAAAABUGtiUCYRtZY4AAAAAOOpmBAlC0doQAAAAAHwaqYOAsjaL6AAAAAADrpOlfGmeGQXjcUgAAAAAA4YpjfLJ8okAAAAAAAAAAAAAAefUdfY/1Z9Z2a+jHl4RV+E9+R2JbP1gAAAAU9r18kB197p5iY9LZC0AAAAAoOiRJBMJQGxlzAAAAFZasyAAA5bb5yAAABx0vx8AACUZrt6AAABgGpcgATAJiNzcmAAABRNCQAAAGyVwAAAA1zpmYJgJgmBMF+3qAAADXCnBMEwmEwAX3e4AAANcKdgAACUL7vcAAAFB0SBMAAJjYy5gAAAY9pz8hMBMJhMJiY9Tcv0wAAAMZpbyISIkAHvXX7oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf/xAAZAQEBAQEBAQAAAAAAAAAAAAAAAQQDAgX/2gAIAQIQAAAA0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB679vTxyzwAAAAAAO+uorzk4gAAAAAGjUKlTHxAAAAAA976IqWfP8gAAAAA2dwRYubKAAAAAD6SyksL5+cAAAAAHv6EsKio+dAAAAAB03WUEsX53kAAAAAX6JZZSD5oAAAAAN/SUEscsQAAAAAO+xLKQuHkAAAAABt7ADhjAAAAAAXb0spHLHAAAAAABo0e0vjNwAAAAAAAe/bx4AAAAAAAAAAAAAAC9+vq8uPOL17dJ548YAAAAB31epZSFQvnJxAAAADTpLCpUKi4+AAAAB22iKlhYsqMPMAAAB9D2lioqFErlhAAAA67kqWKlSpYV8/wAAAAA06VCWVKRUpj4AAAA16JSWUlhUFmbMAAADXolSyywWKlJmzAAAA16BFSyyiKlZcwAAANOmhFlhQIuTOAAAD19AsssKgqF8/PgAAAHvR6AAAeM/kAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/xAAYAQEBAQEBAAAAAAAAAAAAAAAAAQMEAv/aAAgBAxAAAADiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACZZ+b6960AAAAAAMsYsVvoAAAAAAZYVCo6NAAAAAAPPNCyyxeqgAAAAA587LFlS6bgAAAAA47LAFvUAAAAAHnlCossdgAAAAAeeUsFQddAAAAADjWLFip2AAAAAA5fIWWWNOgAAAAAGfOsFljp9gAAAAAc3iwomnQAAAAAAc3gBp0AAAAAABjlLF21AAAAAAAefL16AAAAAAAAAAAAAABlnHvT1U8ePD171AAAAAZ4IALLK30AAAADHFZRFgLG+oAAABnz0ikVKSk6fYAAADl81FIFCVPXUAAAB45lQFlgpLHV6AAABjjUsWVLFlRZdtQAAAY40gLLKQF12AAABhnFQqWURZTXYAAAGGSkBYssWU12AAABjjYsUSxUWU21AAABOVFiywqFlHVQAAAPOUAAAXagAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB//EAE4QAAIBAQMFCgcMBwgDAAAAAAECAwQABREGEiExURMWIjJAQWFxlNQUMEJQUnKBFSMzU2JzgpGSobGyICSTorPBwhA0Q1VkdJDwYGOj/9oACAEBAAE/Af8AgJrbxoruTPrKhIceIp4UkmHNHEuMj+wWrMtJDit30oUfHVZxbrEEZ0e1/Zae/r5qDi9fMnNm0+bTr/8AMBvvs1RUvjn1NS2PpVEx/F7JU1UZBSqqkI1FaiYfg9oMob5p+LXSSj0alUnH1sBJ+9aiy0GhLxpM3mM9ISy9bQOc8exm6rUtbS10e60k8c6c5RtKnY6nB426CAfNV+ZTrRs9Hd+bLVLiss54UNM3OgH+LULs4qnXstLLLUSNPPI80z8aWRs5zhqGPMo5gNA/Tp6moo5hPSzPBMPLQ8YejIpxSRDsYEWuPKSK8s2mqgsFdhoA+BqcNZhJOIfah07MebzPlLf5p8+7aF8KhlHhNQp00yMPgoyNVQ68/kKdpGHR4nVgQSCCGUqSGVhpDKw0qynUbZOX97op4JVMBXQpiG1CriGjdVHNKnlj2jRq8y33eYuuhkn0GZ/eaZD5U7g5pPyIwCx6BZmZmZ3Znd2Z3djizuxzmdjzlj4uGaWnljqIGzJoXWSJ9jDbtVhoI5xa7a+O8qKCsj0bovDTnilU5ssZ9Vx7Rp8y5V13hV5+Dq2MNAu5jZ4RIA8zdajNX2HxuR1cY6qe73bgVKmeEbJ4gBKF+ciwP0PMjusaPI3FRWdvVUYn7hZ5Wnkknc4tPJJM3XK5c/m8bQVHgldR1PNDUws3qFsyQfs3PmS+pDFdF4uNYo5x9pCn9Xjm4rdR/C1K5lpaaQ65IIXPW0asfx8x5QLnXLeQ/wBK5+zg38vHNxW9U/hagGbQ0S7KSmH1QoPMdXD4RS1MHx1PNF+0jZP52GOGnjDQesa/v8bHEZ5IoFGLTSxwgbd1dU/nZQFUKNAUADqGgeZL7o/Ab1rIcOA8nhMOzc6gmTAepJnL7PG5MUfhd7xOfg6NTVP6/wAHCPttj9HzLlddpqaVK+JcZqLO3XDW1I2mQ9O4sM7qx8ZjhpPNpNsmLtNBd4eVc2prCJ5QeMiYYQRHpSPSdjMfMpAIIIBBGBB0gg6wRzg2v65mumpzolPgFQx8HfSRC5xJpXPMV8jHjL0g+LyauQ1861tQv6lTvigYaKqdDoUY64YWHC5i2jb5nqaaCsgkpqmMSwyrmuh+sEEaVZTpBGkG183HUXRIWGdNQsfeqnDSmOqKpw0K45m4rdB0eJuPJ6a9CtRUB4Lv153FlqvkQ86xbX+ztEUUcEaQwoscUahERRgqqowAA80MqurI6q6MCrKwDKynQVZToIIteeR8bkzXXIsB1mkmzjAfmpBi8OOzhL1Wq6CtoDhWU0sGnDdGGdC2HozJnRn68ba9P9uOGs4Wo7rvC8CPBKWR1Jw3ZhuVOOuZ8FOHycTa7MkaenKzXi61kowIhAIpEI9JW4VR9LBfk2Aw0DQBoAHN5rIDAhgGB1gjEHrBtPcNz1JzpaCDO9KIGBuvGEx4mzZH3OdQqk9Wpb+sNZMkLnU6VqZOh6mTA/YzDanuS6aU50NBThvSdN1cdTS57C2r/wAZqaumo4zNVTxwRjypGC49CjWzdA02rMs6dCVoaaSoPxsx3CL6KYNMw6wtp8qr5lJzJoadT5MMCnD6c26nGxvq9213nV/RkC/lUW9172/zOu/bt/PRaiywrYcFrYUrE+MTCCf2jAwv9S2psqrnqNDztSt6NVGYx+0XPh/etFWUk/wNTTy4/FzRv+Vj/bLXUUAJmq6aLD4yeNfxa1TlZdEGIikkrG2U8ZzcfnZNzj+om1bldeFQClKkdDGfKHv1RgflsojQ9Snrt7rXt/mdd2h7LfV8LpF5Vej0nV/zo2NoMrL4iPvj09UuyWEIftwGPT7Dajyyo5cFroZKRtW6JjUQdZKqJU+yR02gnhqY1mp5Y5om1SROHU+1SdPmC+sqY6QvS3dmVFUMVkmPCp6c6iugjdphsGgc+y1RUT1cpnqpnnmPlyHHN6EXQsadCgD9PNXXgMerT9dgzrxZJV9WR1/BrFnbjPI3rSO34tbNUeSAduGn9OkrKqgl3ajneB/KzdMcnRLEeBIOvTa5cpYLxzaeqC01dqVcfeaj5hmJIfah07MeXZS5QtnPdt3yFc0lKypQ4EHU1NC3Mw8thq1DTjhoGrm5uR/jrBGIII1EEaQQbZN5QGqzbvr3xqgP1edtHhSKMcx+bwhAPpjTrx5ZlNe7XdSiCnfNrKvOVGB4UEI+Fn6G04J8o481v+/928lBZSrozI6MHR1ODI6nFXUjUynVa4L191aIPJm+FQHcqpRoBbWkqjmSZdPQcRzcqJABJOAAxJOgADWTa9K9ryr6irPEZsynU+TTx4iIdBbjHpbk+T9f7n3nCzHCCpwpajZhIRuUh+blw+iTyrKaqNLc9TmnB6jNpUI1jdzhJh0iENym5qs112UdSxxkeELKf/bETFKT0l0PKctpeBd0GOuSeZh82iRr/FPKcjJc67qiHnhrH+zLHHIP3seU5an9coF/005+uVB/LlORB97vIbJaY/XHIP6eU5a/3+h/2k38ZeU5EcW8/nKX8kvKctf79Q/7Sb+MvKciOLefzlL+SXlOW0DY3fVAcEbvTs2xnzZYwfWCNynIuBkoquoOqepzU2lYECE9W6MR7OU3pQJedDPSPwS4zopPipk4UUnsbXtGNp4JqWaSnqIzFPEc2RD9zKfKjcaVYaCOT0dHPeFTHSUy4yya2w4EMflTSnyUT7zoGm1HSxUVLBSQj3uCMIu1vSdvlOxJPSeVXldFFeiBaqPhqMI54zmTxeq+nFeg4r0WqMi61W/VaunmTm3dXgk6uAJUPXotvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZRdpfu9t6N9bKLtL93tvRvrZR9pfu9t6N9bKPtL93tvRvrZR9pfu9t6N87KLtL93tvRvrZRdpfu9t6N87KLtL93tvRvnZRdpfu9t6N87KPtL93tvRvrZRdpfu9t6N87KLtL93tTZF1LNjWVkUaaODTK0kjbRnyqip9lrUF3Ud2xbjSRCMNgZHJLSysBhnSSHhMfuHN/waf/EACsQAQABAgUCBgMBAQEBAAAAAAERACEQMUFR8GFxgZGhscHhUNHxQCCQYP/aAAgBAQABPxD/AMCTpIspVmBbNmQNUpmX6EyIsPHOXjUhB75CPV/ut60wl7lVZ1VWaug0Xy+YilNTICUENIp4CkLAmCIyIJTnM2oVn8AlU7cHkj8Vb+4plwDEy+1TRrHTWaLqFj2EFYCuFTXvRradWu/btT/aiGKArDMUmLsKSlOmIJlaGEqQXQn8Qn0MRUiFJSl0xLygAAIAsbds5XDn8rtWX6/dc8Yx4UKkPCoy4EBBES1WnATEBQILKO1y8T8NDstokBcM7o4ZlKTe95eVSqqtbV9V+65yNq1237eu9eFba4W7e/SMEsnhq2wyllWVHOixiw6KbW5YCxYyJ+FZYgkMpVforuVy1b88q5zOudcM+bYX52Kt/fnDrn6dMLyCqqAYmBlPwhmYeC6LcLZUMoVTdZ2c7MKGs/n5w5zvh3+/1XOThbmvW1c5NdnkemDSyQRaTzuofwjDwBXS+HUydaCACxEW2iK9tK967Rr9da5fp71zKPnCc+vxXLauHdwyM86nasjCaIoTZGnDlq3UPF/BkAnZbSPSg2+a2+OlfON6a52w3w/UVzSrU0ly6pjyp1Jlmc5Qnrb8Ha8YkYhQJmxepALQhyS0UdQJhaueFeOG3Jivhwi086+9Gfrf0mK5/MGoBVmoUi9RVhXsIHgH4RgYMsJmwZiUb4c8Z86y2krzwvz5rwrxw57107en6pgl1NxMuElbtX4VSZYCrhABYTpr9pzMnav3zwrnn9Vn9edc3w5zthl27e1c0y/tXzy/dIDAAU6F1e1J3L8lndWEQQIDl+FRM4YAQhIBhHOnjSRXAQVAK8hEuK15512rk+PrXtauc8K5wrnPKuR7UiOPnRoLDCskXhH8Mwi0jCSIAVFgQiINRlfFC7gZFmIQYcw8ywnv1+K5H6x229qtrprl1ntQkg6sVvku6c5SZoCwu4sHWAD8QfIZ5qIr6EREpXDlBKJi8zWSNo09LSHuUjsQuyoQAROiIztGEWy5Ns6QFAbqAeLW3LwiSoQjToiafg6+FI3EIZPUUAAAAAACAAsAfizilAwHMAiNMQ0MpC6luoy0moSzCQ6EmDqtBE4ZQug5TslZBfiZC8rZ1EaAAAAAAEAFgAsAf/MyMOtxZzGdoCtChjqQdMNlGRRh9Sz49Jfqt2qaSzK+ghQoFG4I51y5JJHRkaOElumyQRDbu0EI8F5HaYJ6JoATcl/7YTK7YKJH5pMi8Qatss6OAow+xo2VdaB6xSYjIYum1BpqrlHzSotISC6SA8VFmEBPYakB1IdKmlaXAtcFp3JQaKzaKFIgE3G5r+AkomRlzmIc2nzyNUsat6CrGBtCG1dWvv2bYTXLX4YSPZkEO2ajoENBs9AqIg/YLyYmhkmqAC7sS4+Xf9tfX9rP53jhhMIWxQDfe1Q0RvTKmYKHhZACLlOozH+0C0SoSQN2WvM8SUAAAFgLQGkGVc3w38q2rpFejU74bZ8+sLX48vXPP+V5Zc7VpOEVztFeW33WaMoEQQpWAyRIRyo+VYjJBLZPK2h0Jf64nACoEBCUYM21EygAAm2sqzmqt0rKt1w5zejn78Ky9vCo+uNda5yK5414kbZVzw74+dcgrTDnL1zrhz907EFRkzSSKMmpUAhJAwXI4mQh/qAmWQAEobABdpkm+hvhCUCpGtjzvXPn2qdf+M+czp9utadtviuda126ciufz/nk+tGlcv71zt+6efQRYBUwtOlzN3/qfHe4i4XUA2iaICCwWA0NIrLOudMPnnrTzv8AVcjnavTL1rnNa2w5ztjznStuedc52rjhE1H9vatWt8qSRJSSJG5OSJkmnWrtoIldoBJ4/wCmIG624gTJvF2o9518K8PvD7qPbDn7r6ijhr9Vz+43w5rhNdeccY74bca5wqelVCWxGhoT/wBN3SHjaJ/a3nOua1/OmF9NdvWta7u9tcf38VffLU7VznnWWXHP0r68a3j7rfkca512rf5rz+q8PHpllW/POnar10H4ox/rEbc9a729PSuc8688PPx+ay0ry564etePjhGHDvWXNa5H7w/nO9cmveuc64X/AOrdjzzw/f7xy8/5715cKyvp6fyu3GP3hx5tWdPLfOJpWnxXPciuvPKutd3bm9eujG1Z/v8A197gNprEYbQfUrhzvUZVpzTH2r1z7Vz+Y/NbWttNPNfCufzDrz6rn8r+Y855V00rryfPAgQO8Oiziwuq/wBLxA6iVUCywYAuo1pI+w2zsQawCkw5naunj2rpWm9dfrD+71z62ip235OlTXhzeufVTzX7mnnn8V5861vq+/fvh0328Yz61fKp4VpTwmSyRoGCCdbxTIKVAMzmF9w8tU/1JxXXYGUICOZs3ZXpFq8BOp7deHEsU8y/4xYsU4X54CnCvbEUOfJ9KkE/98bFGjR4WlSQFJZYN9TFFR9SLJzN018ClayhBQVRCwWkQBb/AMNP/8QAMREAAQICBwcEAgIDAAAAAAAAAQIDABEQEhMhMDFhBCAyQFBRcUFCUoEikZCxM2Ch/9oACAECAQE/AP4CUpUrhEJ2ce5UBpA9sBIGQiqn4iC0g+39QrZ/iYUkpMlDpTbNb8lZQAAJASG+UhQIIuhxoovF6ekNNT/NWW7nvOt1DWHD0ZtFdQHpEpZDDIBEjlC0lCik9FYTVRP1NP3geKH0zAWPTogvMoAkAMHSJUrFZKhp0RsTWga46rlEa9Da/wAifOJ2pVxK89DSZKB1wvXcJkCeitqrIB9cGe48qSCPU9FYXIlJyP8AdPnCeXWVdkOjNOVxfxYbzlUVRxHo4JSQQb4bcCxL3dt+6hx0IuF6oJJMyb+kZZQh8i5f7hKkqvSZ0ihTiU5mFvk3JEh/3pocWMlGLdzSLdzSC4s5qP8ArQSVGQEzCdnJ4jKAy2JTE4s2/iIs0fAQphJmUmUFlY9JwUqGaTSEqOSTAYWcxKEsJGZmYs0fAQW0fAQWEeIUwocJnBBBkRf0BtkqvVlASEiQF29fRIdokO27fSpIUJEQ40UXpvTzzLWS1fXJeKP6h1qr+SeHnGUV1TPCML6xCJw6ioq7h5tCaiQOXdTWQe45plNZwaUnDvw3E1VqGvM7OL1GjXAz357n3ubQPzB05nZ+FXmjxjecHaM08zs/Crzi/eJtHs5nZ+FXnkO5wdozRzOzniGF274+0GakjTmUKqKCoBCgCDdRLlVKCBM5QolRJPNIWpBuMJ2hPuBi3b1i3b1i3b7mLdvWLdvWLdvWLdvuYt29Yt2+5i3b1i3b1i3b1i3b1i3b1i3b7mLdvuYt29Yt29Yt2+5/UW7fcwdoHtF8KUpZmo/waf/EADIRAAECAwYFAwMEAwEAAAAAAAEAAhARMQMgIUFhcRITUFGBMkCxQlLwIpCRoTBgYnL/2gAIAQMBAT8A/YJLmtqUbUn0hcbzVyxzcpnuUHvH1IWv3BAg4g9KfaSwbVVMyvCwjhAEtIIMimWgdgcHdItHy/S2qpkso5XO6Ks38QkfV0Z7uFpOa3qtV5xhRfMN4+FMgzFU13EAei2hm6WQhouyzjip94y7QsnYkZHosySSqqtLku4hj4WirDVAyc0zz6I/BrtlkIYxEKx3MOyKFB0N/odsgtoUhNVXfupCHlZw84JtBt0MiYIQ/uPeanASyhO6MZDPorxJxwvFYrwvNxgm4adFtWzHEKi7RYXcYWbeFuNT0Z7eA/8AK2W0PC8r4UlRYrVWbeI8RoOjkAiRonNLP/Nz4uYJrC/E+lASwFOkuss2lFpHqaqw0gGud6Qm2QHqx6aWMNWrlM1XKZqgxoo3/WiQKlG1H0iaNo/uAuJ/3FcT/uKFqRPixCFow5yUwaGJcBUo2rBTFG1caYBcTvuK43/cULV1ckLUGokgQcQegPtJYNqjMmZMzDFbQptDBY+ISVFnCUQS0zacUy0DsDg731o+rWrZbI/0vm53WBJhisIaw7qVyzfP9Lq+8tHcIkPUbsrud4w8LuprJVpVMdxN192TxEuWUDc1W0ahb0ub3dIWbi1wJofdWhkwyqgskY6Ka8XMIaIXJow+YZJhm0H3NsfSIUyu+V8Lz/gBj5UoZQsjgRr7m1q27NTzRqtL1LlY63LH6vc2tW7KizhotLtZxyxhvHDuq3NIWP1e5tfU3aHiG1zutoZx1WynhDNTj4jZfV7m2HpNzNfN/S/8QncsRgT7lzeJpCxEwaxwu94z/lbLWO6l/KrDRYLugCTwtCAAAAp7pzGuqjYnIhcp+i5TspLlP0XKfp+eFyn6LlO0/PC5T9PzwuU/Rcp+i5T9Fynafnhcp+FPzwuU/Rcp2i5T8KLlO0XKdKWC5T9Fy36LlPPZCyOZ/hNaGiQH7Gn/2Q==",ET=({src:e,alt:t,size:n=40})=>v.jsx("img",{src:e||Lv,alt:t,width:n,height:n,className:"cnf:rounded-full cnf:object-cover cnf:border cnf:border-gray-200"}),_T=(...e)=>t=>{e.forEach(n=>n==null?void 0:n(t))},xu=({placement:e="bottom-end",children:t,trigger:n,title:r,minWidth:o="172px"})=>{const[i,s]=k.useState(!1),{refs:a,floatingStyles:c,context:l}=Yb({strategy:"fixed",placement:e,open:i,onOpenChange:s}),f=Vb(l,{outsidePress:!0}),{getReferenceProps:u,getFloatingProps:d}=Gb([f]),h=k.Children.map(t,m=>{if(!k.isValidElement(m))return m;const p=m.props;return k.cloneElement(m,{onClick:_T(p.onClick,()=>s(!1))})});return v.jsxs(v.Fragment,{children:[k.cloneElement(n,{ref:a.setReference,...u(),onClick:()=>s(m=>!m),title:i?`Close ${r??"context menu"}`:`Open ${r??"context menu"}`}),i&&v.jsx("div",{ref:a.setFloating,style:{...c,minWidth:o},className:be("cnf:border cnf:border-gray-200 cnf:rounded-sm cnf:bg-white cnf:z-[9999999999]"),...d(),children:h})]})},Rv=k.createContext(null);function ST(e,t){return{getTheme:function(){return t??null}}}function ht(){const e=k.useContext(Rv);return e==null&&(function(t,...n){const r=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of n)o.append("v",i);throw r.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(8),e}function U(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Dv(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const pn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,kT=pn&&"documentMode"in document?document.documentMode:null,ln=pn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Io=pn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),mc=!(!pn||!("InputEvent"in window)||kT)&&"getTargetRanges"in new window.InputEvent("input"),ra=pn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Qi=pn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,TT=pn&&/Android/.test(navigator.userAgent),Fv=pn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Ip=pn&&TT&&Fv,oa=pn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&ln&&!Fv;function jv(...e){const t=[];for(const n of e)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))t.push(r);return t}const NT=0,OT=1,PT=2,zv=128,MT=1,IT=2,LT=3,RT=4,DT=5,FT=6,tl=ra||Qi||oa?" ":"​",zr=`
595
595
 
596
- `,ST=Mo?" ":Xc,Io={bold:1,capitalize:1024,code:16,highlight:Mv,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},kT={directionless:1,unmergeable:2},Pp={center:2,end:6,justify:4,left:1,right:3,start:5},TT={[wT]:"center",[ET]:"end",[CT]:"justify",[xT]:"left",[AT]:"right",[_T]:"start"},NT={normal:0,segmented:2,token:1},OT={[yT]:"normal",[vT]:"segmented",[bT]:"token"},Mp="$config";function Iv(e,t,n,r,o,i){let s=e.getFirstChild();for(;s!==null;){const a=s.__key;s.__parent===t&&(R(s)&&Iv(s,a,n,r,o,i),n.has(a)||i.delete(a),o.push(a)),s=s.getNextSibling()}}let xu=!1,Ud=0;function PT(e){Ud=e.timeStamp}function Jl(e,t,n){const r=e.nodeName==="BR",o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&al(e,n)!==void 0}function MT(e,t,n){const r=tn(en(n));let o=null,i=null;r!==null&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const s=e.nodeValue;s!==null&&sh(t,s,o,i,!1)}function IT(e,t,n){if($(e)){const r=e.anchor.getNode();if(r.is(n)&&e.format!==r.getFormat())return!1}return ur(t)&&n.isAttached()}function LT(e,t,n,r){for(let o=e;o&&!$6(o);o=ca(o)){const i=al(o,t);if(i!==void 0){const s=Xe(i,n);if(s)return Te(s)||!mt(o)?void 0:[o,s]}else if(o===r)return[r,$x(n)]}}function Lv(e,t,n){xu=!0;const r=performance.now()-Ud>100;try{Nn(e,()=>{const o=Z()||(function(d){return d.getEditorState().read(()=>{const h=Z();return h!==null?h.clone():null})})(e),i=new Map,s=e.getRootElement(),a=e._editorState,c=e._blockCursorElement;let l=!1,f="";for(let d=0;d<t.length;d++){const h=t[d],m=h.type,g=h.target,p=LT(g,e,a,s);if(!p)continue;const[y,b]=p;if(m==="characterData")r&&X(b)&&ur(g)&&IT(o,g,b)&&MT(g,b,e);else if(m==="childList"){l=!0;const x=h.addedNodes;for(let _=0;_<x.length;_++){const S=x[_],E=jx(S),N=S.parentNode;if(N!=null&&S!==c&&E===null&&!Jl(S,N,e)){if(Mo){const P=(mt(S)?S.innerText:null)||S.nodeValue;P&&(f+=P)}N.removeChild(S)}}const w=h.removedNodes,A=w.length;if(A>0){let _=0;for(let S=0;S<A;S++){const E=w[S];(Jl(E,g,e)||c===E)&&(g.appendChild(E),_++)}A!==_&&i.set(y,b)}}}if(i.size>0)for(const[d,h]of i)h.reconcileObservedMutation(d,e);const u=n.takeRecords();if(u.length>0){for(let d=0;d<u.length;d++){const h=u[d],m=h.addedNodes,g=h.target;for(let p=0;p<m.length;p++){const y=m[p],b=y.parentNode;b==null||y.nodeName!=="BR"||Jl(y,g,e)||b.removeChild(y)}}n.takeRecords()}o!==null&&(l&&Pt(o),Mo&&Kx(e)&&o.insertRawText(f))})}finally{xu=!1}}function Rv(e){const t=e._observer;t!==null&&Lv(e,t.takeRecords(),t)}function Dv(e){(function(t){Ud===0&&en(t).addEventListener("textInput",PT,!0)})(e),e._observer=new MutationObserver((t,n)=>{Lv(e,t,n)})}function RT(e){const t=new Map,n=new Set;for(let r=typeof e=="function"?e:e.replace;r.prototype&&r.prototype.getType!==void 0;r=Object.getPrototypeOf(r)){const{ownNodeConfig:o}=ll(r);if(o&&o.stateConfigs)for(const i of o.stateConfigs){let s;"stateConfig"in i?(s=i.stateConfig,i.flat&&n.add(s.key)):s=i,t.set(s.key,s)}}return{flatKeys:n,sharedConfigMap:t}}let DT=class Fv{constructor(t,n,r=void 0,o=new Map,i=void 0){D(this,"node");D(this,"knownState");D(this,"unknownState");D(this,"sharedNodeState");D(this,"size");this.node=t,this.sharedNodeState=n,this.unknownState=r,this.knownState=o;const{sharedConfigMap:s}=this.sharedNodeState,a=i!==void 0?i:(function(c,l,f){let u=f.size;if(l)for(const d in l){const h=c.get(d);h&&f.has(h)||u++}return u})(s,r,o);this.size=a}getValue(t){const n=this.knownState.get(t);if(n!==void 0)return n;this.sharedNodeState.sharedConfigMap.set(t.key,t);let r=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const o=this.unknownState[t.key];o!==void 0&&(r=t.parse(o)),this.updateFromKnown(t,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState},n={};for(const[r,o]of this.knownState)r.isEqual(o,r.defaultValue)?delete t[r.key]:t[r.key]=r.unparse(o);for(const r of this.sharedNodeState.flatKeys)r in t&&(n[r]=t[r],delete t[r]);return Ip(t)&&(n.$=t),n}getWritable(t){if(this.node===t)return this;const{sharedNodeState:n,unknownState:r}=this,o=new Map(this.knownState);return new Fv(t,n,(function(i,s,a){let c;if(a)for(const[l,f]of Object.entries(a)){const u=i.get(l);u?s.has(u)||s.set(u,u.parse(f)):(c=c||{},c[l]=f)}return c})(n.sharedConfigMap,o,r),o,this.size)}updateFromKnown(t,n){const r=t.key;this.sharedNodeState.sharedConfigMap.set(r,t);const{knownState:o,unknownState:i}=this;o.has(t)||i&&r in i||(i&&(delete i[r],this.unknownState=Ip(i)),this.size++),o.set(t,n)}updateFromUnknown(t,n){const r=this.sharedNodeState.sharedConfigMap.get(t);r?this.updateFromKnown(r,r.parse(n)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=n)}updateFromJSON(t){const{knownState:n}=this;for(const r of n.keys())n.set(r,r.defaultValue);if(this.size=n.size,this.unknownState=void 0,t)for(const[r,o]of Object.entries(t))this.updateFromUnknown(r,o)}};function FT(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new DT(t,jv(t));return t.__state=n,n}function jv(e){return e.__state?e.__state.sharedNodeState:Ix(lh(),e.getType()).sharedNodeState}function Ip(e){if(e)for(const t in e)return e}function Lp(e,t,n){for(const[r,o]of t.knownState){if(e.has(r.key))continue;e.add(r.key);const i=n?n.getValue(r):r.defaultValue;if(i!==o&&!r.isEqual(i,o))return!0}return!1}function Rp(e,t,n){const{unknownState:r}=t,o=n?n.unknownState:void 0;if(r){for(const[i,s]of Object.entries(r))if(!e.has(i)&&(e.add(i),s!==(o?o[i]:void 0)))return!0}return!1}function Dp(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Fp(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,s=t.__format,a=t.__style,c=e.__state,l=t.__state;return(n===null||n===i)&&(r===null||r===s)&&(o===null||o===a)&&(e.__state===null||c===l||(function(f,u){if(f===u)return!0;if(f&&u&&f.size!==u.size)return!1;const d=new Set;return!(f&&Lp(d,f,u)||u&&Lp(d,u,f)||f&&Rp(d,f,u)||u&&Rp(d,u,f))})(c,l))}function jp(e,t){const n=e.mergeWithSibling(t),r=Re()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function zp(e){let t,n,r=e;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&X(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(Fp(t,r)){r=jp(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(Fp(r,n)){r=jp(r,n);break}break}n.remove()}}else r.remove()}function Fi(e){return $p(e.anchor),$p(e.focus),e}function $p(e){for(;e.type==="element";){const t=e.getNode(),n=e.offset;let r,o;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),o=!0):(r=t.getChildAtIndex(n),o=!1),X(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!R(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Lo,vt,Rs,el,wu,Au,Ro,ln,Cu,Ds,Je="",yn=null,to=null,qn="",ai=!1,hc=!1;function mc(e,t){const n=Ro.get(e);if(t!==null){const r=ku(e);r.parentNode===t&&t.removeChild(r)}if(ln.has(e)||vt._keyToDOMMap.delete(e),R(n)){const r=gc(n,Ro);_u(r,0,r.length-1,null)}n!==void 0&&ah(Ds,Rs,el,n,"destroyed")}function _u(e,t,n,r){let o=t;for(;o<=n;++o){const i=e[o];i!==void 0&&mc(i,r)}}function eo(e,t){e.setProperty("text-align",t)}const jT="40px";function zv(e,t){const n=Lo.theme.indent;if(typeof n=="string"){const o=e.classList.contains(n);t>0&&!o?e.classList.add(n):t<1&&o&&e.classList.remove(n)}const r=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||jT;e.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * ${r})`)}function $v(e,t){const n=e.style;t===0?eo(n,""):t===1?eo(n,"left"):t===2?eo(n,"center"):t===3?eo(n,"right"):t===4?eo(n,"justify"):t===5?eo(n,"start"):t===6&&eo(n,"end")}function Eu(e,t){const n=(function(r){const o=r.__dir;if(o!==null)return o;if(Ye(r))return null;const i=r.getParentOrThrow();return Ye(i)&&i.__dir===null?"auto":null})(t);n!==null?e.dir=n:e.removeAttribute("dir")}function pc(e,t){const n=ln.get(e);n===void 0&&B(60);const r=n.createDOM(Lo,vt);if((function(o,i,s){const a=s._keyToDOMMap;(function(c,l,f){const u=`__lexicalKey_${l._key}`;c[u]=f})(i,s,o),a.set(o,i)})(e,r,vt),X(n)?r.setAttribute("data-lexical-text","true"):Te(n)&&r.setAttribute("data-lexical-decorator","true"),R(n)){const o=n.__indent,i=n.__size;if(Eu(r,n),o!==0&&zv(r,o),i!==0){const a=i-1;Su(gc(n,ln),n,0,a,n.getDOMSlot(r))}const s=n.__format;s!==0&&$v(r,s),n.isInline()||Bv(null,n,r),cl(n)&&(Je+=jr,qn+=jr)}else{const o=n.getTextContent();if(Te(n)){const i=n.decorate(vt,Lo);i!==null&&Uv(e,i),r.contentEditable="false"}Je+=o,qn+=o}return t!==null&&t.insertChild(r),ah(Ds,Rs,el,n,"created"),r}function Su(e,t,n,r,o){const i=Je;Je="";let s=n;for(;s<=r;++s){pc(e[s],o);const a=ln.get(e[s]);a!==null&&X(a)&&yn===null&&(yn=a.getFormat(),to=a.getStyle())}cl(t)&&(Je+=jr),o.element.__lexicalTextContent=Je,Je=i+Je}function Bp(e,t){if(e){const n=e.__last;if(n){const r=t.get(n);if(r)return Ao(r)?"line-break":Te(r)&&r.isInline()?"decorator":null}return"empty"}return null}function Bv(e,t,n){const r=Bp(e,Ro),o=Bp(t,ln);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function zT(e,t,n){var r;yn=null,to=null,(function(o,i,s){const a=Je,c=o.__size,l=i.__size;Je="";const f=s.element;if(c===1&&l===1){const u=o.__first,d=i.__first;if(u===d)bs(u,f);else{const m=ku(u),g=pc(d,null);try{f.replaceChild(g,m)}catch(p){if(typeof p=="object"&&p!=null){const y=`${p.toString()} Parent: ${f.tagName}, new child: {tag: ${g.tagName} key: ${d}}, old child: {tag: ${m.tagName}, key: ${u}}.`;throw new Error(y)}throw p}mc(u,null)}const h=ln.get(d);X(h)&&yn===null&&(yn=h.getFormat(),to=h.getStyle())}else{const u=gc(o,Ro),d=gc(i,ln);if(u.length!==c&&B(227),d.length!==l&&B(228),c===0)l!==0&&Su(d,i,0,l-1,s);else if(l===0){if(c!==0){const h=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;_u(u,0,c-1,h?null:f),h&&(f.textContent="")}}else(function(h,m,g,p,y,b){const x=p-1,w=y-1;let A,_,S=b.getFirstChild(),E=0,N=0;for(;E<=x&&N<=w;){const W=m[E],j=g[N];if(W===j)S=Xl(bs(j,b.element)),E++,N++;else{A===void 0&&(A=new Set(m)),_===void 0&&(_=new Set(g));const Y=_.has(W),Q=A.has(j);if(Y)if(Q){const oe=jo(vt,j);oe===S?S=Xl(bs(j,b.element)):(b.withBefore(S).insertChild(oe),bs(j,b.element)),E++,N++}else pc(j,b.withBefore(S)),N++;else S=Xl(ku(W)),mc(W,b.element),E++}const z=ln.get(j);z!==null&&X(z)&&yn===null&&(yn=z.getFormat(),to=z.getStyle())}const P=E>x,I=N>w;if(P&&!I){const W=g[w+1],j=W===void 0?null:vt.getElementByKey(W);Su(g,h,N,w,b.withBefore(j))}else I&&!P&&_u(m,E,x,b.element)})(i,u,d,c,l,s)}cl(i)&&(Je+=jr),f.__lexicalTextContent=Je,Je=a+Je})(e,t,t.getDOMSlot(n)),r=t,yn==null||yn===r.__textFormat||hc||r.setTextFormat(yn),(function(o){to==null||to===o.__textStyle||hc||o.setTextStyle(to)})(t)}function gc(e,t){const n=[];let r=e.__first;for(;r!==null;){const o=t.get(r);o===void 0&&B(101),n.push(r),r=o.__next}return n}function bs(e,t){const n=Ro.get(e);let r=ln.get(e);n!==void 0&&r!==void 0||B(61);const o=ai||Au.has(e)||wu.has(e),i=jo(vt,e);if(n===r&&!o){if(R(n)){const s=i.__lexicalTextContent;s!==void 0&&(Je+=s,qn+=s)}else{const s=n.getTextContent();qn+=s,Je+=s}return i}if(n!==r&&o&&ah(Ds,Rs,el,r,"updated"),r.updateDOM(n,i,Lo)){const s=pc(e,null);return t===null&&B(62),t.replaceChild(s,i),mc(e,null),s}if(R(n)&&R(r)){const s=r.__indent;(ai||s!==n.__indent)&&zv(i,s);const a=r.__format;if((ai||a!==n.__format)&&$v(i,a),o&&(zT(n,r,i),Ye(r)||r.isInline()||Bv(n,r,i)),cl(r)&&(Je+=jr,qn+=jr),(ai||r.__dir!==n.__dir)&&(Eu(i,r),Ye(r)&&!ai))for(const c of r.getChildren())R(c)&&Eu(jo(vt,c.getKey()),c)}else{const s=r.getTextContent();if(Te(r)){const a=r.decorate(vt,Lo);a!==null&&Uv(e,a)}Je+=s,qn+=s}if(!hc&&Ye(r)&&r.__cachedText!==qn){const s=r.getWritable();s.__cachedText=qn,r=s}return i}function Uv(e,t){let n=vt._pendingDecorators;const r=vt._decorators;if(n===null){if(r[e]===t)return;n=zx(vt)}n[e]=t}function Xl(e){let t=e.nextSibling;return t!==null&&t===vt._blockCursorElement&&(t=t.nextSibling),t}function $T(e,t,n,r,o,i){Je="",qn="",ai=r===2,vt=n,Lo=n._config,Rs=n._nodes,el=vt._listeners.mutation,wu=o,Au=i,Ro=e._nodeMap,ln=t._nodeMap,hc=t._readOnly,Cu=new Map(n._keyToDOMMap);const s=new Map;return Ds=s,bs("root",null),vt=void 0,Rs=void 0,wu=void 0,Au=void 0,Ro=void 0,ln=void 0,Lo=void 0,Cu=void 0,Ds=void 0,s}function ku(e){const t=Cu.get(e);return t===void 0&&B(75,e),t}function he(e){return{type:e}}const tl=he("SELECTION_CHANGE_COMMAND"),BT=he("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Wd=he("CLICK_COMMAND"),Wv=he("BEFORE_INPUT_COMMAND"),Kv=he("INPUT_COMMAND"),Hv=he("COMPOSITION_START_COMMAND"),qv=he("COMPOSITION_END_COMMAND"),xo=he("DELETE_CHARACTER_COMMAND"),yi=he("INSERT_LINE_BREAK_COMMAND"),Fs=he("INSERT_PARAGRAPH_COMMAND"),bi=he("CONTROLLED_TEXT_INSERTION_COMMAND"),nl=he("PASTE_COMMAND"),Tu=he("REMOVE_TEXT_COMMAND"),js=he("DELETE_WORD_COMMAND"),zs=he("DELETE_LINE_COMMAND"),Sn=he("FORMAT_TEXT_COMMAND"),Kd=he("UNDO_COMMAND"),Hd=he("REDO_COMMAND"),Vv=he("KEYDOWN_COMMAND"),Yv=he("KEY_ARROW_RIGHT_COMMAND"),UT=he("MOVE_TO_END"),Qv=he("KEY_ARROW_LEFT_COMMAND"),WT=he("MOVE_TO_START"),Gv=he("KEY_ARROW_UP_COMMAND"),Zv=he("KEY_ARROW_DOWN_COMMAND"),$s=he("KEY_ENTER_COMMAND"),Jv=he("KEY_SPACE_COMMAND"),Xv=he("KEY_BACKSPACE_COMMAND"),qd=he("KEY_ESCAPE_COMMAND"),ex=he("KEY_DELETE_COMMAND"),tx=he("KEY_TAB_COMMAND"),KT=he("INSERT_TAB_COMMAND"),HT=he("INDENT_CONTENT_COMMAND"),Up=he("OUTDENT_CONTENT_COMMAND"),nx=he("DROP_COMMAND"),qT=he("FORMAT_ELEMENT_COMMAND"),rx=he("DRAGSTART_COMMAND"),ox=he("DRAGOVER_COMMAND"),VT=he("DRAGEND_COMMAND"),rl=he("COPY_COMMAND"),Vd=he("CUT_COMMAND"),Nu=he("SELECT_ALL_COMMAND"),YT=he("CLEAR_EDITOR_COMMAND"),QT=he("CLEAR_HISTORY_COMMAND"),Sa=he("CAN_REDO_COMMAND"),ka=he("CAN_UNDO_COMMAND"),GT=he("FOCUS_COMMAND"),ZT=he("BLUR_COMMAND"),JT=he("KEY_MODIFIER_COMMAND"),$n=Object.freeze({}),Ou=[["keydown",function(e,t){Bs=e.timeStamp,ix=e.key,!t.isComposing()&&ie(t,Vv,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;ts(n)&&r!=="touch"&&r!=="pen"&&e.button===0&&Nn(t,()=>{Lx(n)||(Iu=!0)})}],["compositionstart",function(e,t){ie(t,Hv,e)}],["compositionend",function(e,t){Mo?vs=!0:Qi||!na&&!ra?ie(t,qv,e):(Lu=!0,Ru=e.data)}],["input",function(e,t){e.stopPropagation(),Nn(t,()=>{t.dispatchCommand(Kv,e)},{event:e}),ci=null}],["click",function(e,t){Nn(t,()=>{const n=Z(),r=tn(en(t)),o=Ji();if(r){if($(n)){const i=n.anchor,s=i.getNode();if(i.type==="element"&&i.offset===0&&n.isCollapsed()&&!Ye(s)&&We().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&o!==null&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(e.detail===3&&!n.isCollapsed()&&s!==n.focus.getNode()){const a=at(s,c=>R(c)&&!c.isInline());R(a)&&a.select(0)}}else if(e.pointerType==="touch"||e.pointerType==="pen"){const i=r.anchorNode;(mt(i)||ur(i))&&Pt(Qd(o,r,t,e))}}ie(t,Wd,e)})}],["cut",$n],["copy",$n],["dragstart",$n],["dragover",$n],["dragend",$n],["paste",$n],["focus",$n],["blur",$n],["drop",$n]];dc&&Ou.push(["beforeinput",(e,t)=>(function(n,r){const o=n.inputType;o==="deleteCompositionText"||Mo&&Kx(r)||o!=="insertCompositionText"&&ie(r,Wv,n)})(e,t)]);let Bs=0,ix=null,sx=0,ci=null;const Pu=new WeakMap,yc=new WeakMap;let Mu=!1,Iu=!1,_s=!1,vs=!1,Lu=!1,Ru="",oo=null,ax=[0,"",0,"root",0];function cx(e,t,n,r,o){const i=e.anchor,s=e.focus,a=i.getNode(),c=Re(),l=tn(en(c)),f=l!==null?l.anchorNode:null,u=i.key,d=c.getElementByKey(u),h=n.length;return u!==s.key||!X(a)||(!o&&(!dc||sx<r+50)||a.isDirty()&&h<2||Bx(n))&&i.offset!==s.offset&&!a.isComposing()||Hn(a)||a.isDirty()&&h>1||(o||!dc)&&d!==null&&!a.isComposing()&&f!==ji(d)||l!==null&&t!==null&&(!t.collapsed||t.startContainer!==l.anchorNode||t.startOffset!==l.anchorOffset)||a.getFormat()!==e.format||a.getStyle()!==e.style||(function(m,g){if(g.isSegmented())return!0;if(!m.isCollapsed())return!1;const p=m.anchor.offset,y=g.getParentOrThrow(),b=Co(g);return p===0?!g.canInsertTextBefore()||!y.canInsertTextBefore()&&!g.isComposing()||b||(function(x){const w=x.getPreviousSibling();return(X(w)||R(w)&&w.isInline())&&!w.canInsertTextAfter()})(g):p===g.getTextContentSize()&&(!g.canInsertTextAfter()||!y.canInsertTextAfter()&&!g.isComposing()||b)})(e,a)}function Wp(e,t){return ur(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function Kp(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=e;Mu&&(Mu=!1,Wp(r,o)&&Wp(i,s)&&!oo)||Nn(t,()=>{if(!n)return void Pt(null);if(!aa(t,r,i))return;let a=Z();if(oo&&$(a)&&a.isCollapsed()){const c=a.anchor,l=oo.anchor;(c.key===l.key&&c.offset===l.offset+1||c.offset===1&&l.getNode().is(c.getNode().getPreviousSibling()))&&(a=oo.clone(),Pt(a))}if(oo=null,$(a)){const c=a.anchor,l=c.getNode();if(a.isCollapsed()){e.type==="Range"&&e.anchorNode===e.focusNode&&(a.dirty=!0);const f=en(t).event,u=f?f.timeStamp:performance.now(),[d,h,m,g,p]=ax,y=We(),b=t.isComposing()===!1&&y.getTextContent()==="";if(u<p+200&&c.offset===m&&c.key===g)Va(a,d,h);else if(c.type==="text")X(l)||B(141),lx(a,l);else if(c.type==="element"&&!b){R(l)||B(259);const x=c.getNode();x.isEmpty()?(function(w,A){const _=A.getTextFormat(),S=A.getTextStyle();Va(w,_,S)})(a,x):Va(a,0,"")}}else{const f=c.key,u=a.focus.key,d=a.getNodes(),h=d.length,m=a.isBackward(),g=m?s:o,p=m?o:s,y=m?u:f,b=m?f:u;let x=2047,w=!1;for(let A=0;A<h;A++){const _=d[A],S=_.getTextContentSize();if(X(_)&&S!==0&&!(A===0&&_.__key===y&&g===S||A===h-1&&_.__key===b&&p===0)&&(w=!0,x&=_.getFormat(),x===0))break}a.format=w?x:0}}ie(t,tl,void 0)})}function Va(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function lx(e,t){Va(e,t.getFormat(),t.getStyle())}function fx(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return t.length===0?null:t[0]}function XT(e){const t=e.inputType,n=fx(e),r=Re(),o=Z();if(t==="deleteContentBackward"){if(o===null){const u=Ji();if(!$(u))return!0;Pt(u.clone())}if($(o)){const u=o.anchor.key===o.focus.key;if(i=e.timeStamp,ix==="MediaLast"&&i<Bs+30&&r.isComposing()&&u){if(ut(null),Bs=0,setTimeout(()=>{Nn(r,()=>{ut(null)})},30),$(o)){const d=o.anchor.getNode();d.markDirty(),X(d)||B(142),lx(o,d)}}else{ut(null),e.preventDefault();const d=o.anchor.getNode(),h=d.getTextContent(),m=d.canInsertTextAfter(),g=o.anchor.offset===0&&o.focus.offset===h.length;let p=Op&&u&&!g&&m;if(p&&o.isCollapsed()&&(p=!Te(Bu(o.anchor,!0))),!p){ie(r,xo,!0);const y=Z();Op&&$(y)&&y.isCollapsed()&&(oo=y,setTimeout(()=>oo=null))}}return!0}}var i;if(!$(o))return!0;const s=e.data;ci!==null&&ih(!1,r,ci),o.dirty&&ci===null||!o.isCollapsed()||Ye(o.anchor.getNode())||n===null||o.applyDOMRange(n),ci=null;const a=o.anchor,c=o.focus,l=a.getNode(),f=c.getNode();if(t==="insertText"||t==="insertTranspose"){if(s===`
597
- `)e.preventDefault(),ie(r,yi,!1);else if(s===jr)e.preventDefault(),ie(r,Fs,void 0);else if(s==null&&e.dataTransfer){const u=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(u)}else s!=null&&cx(o,n,s,e.timeStamp,!0)?(e.preventDefault(),ie(r,bi,s)):ci=s;return sx=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ie(r,bi,e);break;case"insertFromComposition":ut(null),ie(r,bi,e);break;case"insertLineBreak":ut(null),ie(r,yi,!1);break;case"insertParagraph":ut(null),_s&&!Qi?(_s=!1,ie(r,yi,!1)):ie(r,Fs,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ie(r,nl,e);break;case"deleteByComposition":(function(u,d){return u!==d||R(u)||R(d)||!Co(u)||!Co(d)})(l,f)&&ie(r,Tu,e);break;case"deleteByDrag":case"deleteByCut":ie(r,Tu,e);break;case"deleteContent":ie(r,xo,!1);break;case"deleteWordBackward":ie(r,js,!0);break;case"deleteWordForward":ie(r,js,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ie(r,zs,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ie(r,zs,!1);break;case"formatStrikeThrough":ie(r,Sn,"strikethrough");break;case"formatBold":ie(r,Sn,"bold");break;case"formatItalic":ie(r,Sn,"italic");break;case"formatUnderline":ie(r,Sn,"underline");break;case"historyUndo":ie(r,Kd,void 0);break;case"historyRedo":ie(r,Hd,void 0)}return!0}function e6(e){if(mt(e.target)&&Lx(e.target))return!0;const t=Re(),n=Z(),r=e.data,o=fx(e);if(r!=null&&$(n)&&cx(n,o,r,e.timeStamp,!1)){vs&&(bc(t,r),vs=!1);const i=n.anchor.getNode(),s=tn(en(t));if(s===null)return!0;const a=n.isBackward(),c=a?n.anchor.offset:n.focus.offset,l=a?n.focus.offset:n.anchor.offset;dc&&!n.isCollapsed()&&X(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,c)+r+i.getTextContent().slice(c+l)===Wx(s.anchorNode)||ie(t,bi,r);const f=r.length;Mo&&f>1&&e.inputType==="insertCompositionText"&&!t.isComposing()&&(n.anchor.offset-=f),na||Qi||ra||!t.isComposing()||(Bs=0,ut(null))}else ih(!1,t,r!==null?r:void 0),vs&&(bc(t,r||void 0),vs=!1);return(function(){bt();const i=Re();Rv(i)})(),!0}function t6(e){const t=Re(),n=Z();if($(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();ut(r.key),(e.timeStamp<Bs+30||r.type==="element"||!n.isCollapsed()||o.getFormat()!==n.format||X(o)&&o.getStyle()!==n.style)&&ie(t,bi,ST)}return!0}function n6(e){return bc(Re(),e.data),!0}function bc(e,t){const n=e._compositionKey;if(ut(null),n!==null&&t!=null){if(t===""){const r=Xe(n),o=ji(e.getElementByKey(n));return void(o!==null&&o.nodeValue!==null&&X(r)&&sh(r,o.nodeValue,null,null,!0))}if(t[t.length-1]===`
598
- `){const r=Z();if($(r)){const o=r.focus;return r.anchor.set(o.key,o.offset,o.type),void ie(e,$s,null)}}}ih(!0,e,t)}function r6(e){const t=Re();if(e.key==null)return!0;if(Lu&&pg(e))return Nn(t,()=>{bc(t,Ru)}),Lu=!1,Ru="",!0;if((function(n){return Ie(n,"ArrowRight",{shiftKey:"any"})})(e))ie(t,Yv,e);else if((function(n){return Ie(n,"ArrowRight",Wn)})(e))ie(t,UT,e);else if((function(n){return Ie(n,"ArrowLeft",{shiftKey:"any"})})(e))ie(t,Qv,e);else if((function(n){return Ie(n,"ArrowLeft",Wn)})(e))ie(t,WT,e);else if((function(n){return Ie(n,"ArrowUp",{altKey:"any",shiftKey:"any"})})(e))ie(t,Gv,e);else if((function(n){return Ie(n,"ArrowDown",{altKey:"any",shiftKey:"any"})})(e))ie(t,Zv,e);else if((function(n){return Ie(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})})(e))_s=!0,ie(t,$s,e);else if((function(n){return n.key===" "})(e))ie(t,Jv,e);else if((function(n){return cn&&Ie(n,"o",{ctrlKey:!0})})(e))e.preventDefault(),_s=!0,ie(t,yi,!0);else if((function(n){return Ie(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})})(e))_s=!1,ie(t,$s,e);else if((function(n){return Ie(n,"Backspace",{shiftKey:"any"})||cn&&Ie(n,"h",{ctrlKey:!0})})(e))pg(e)?ie(t,Xv,e):(e.preventDefault(),ie(t,xo,!0));else if((function(n){return n.key==="Escape"})(e))ie(t,qd,e);else if((function(n){return Ie(n,"Delete",{})||cn&&Ie(n,"d",{ctrlKey:!0})})(e))(function(n){return n.key==="Delete"})(e)?ie(t,ex,e):(e.preventDefault(),ie(t,xo,!1));else if((function(n){return Ie(n,"Backspace",mg)})(e))e.preventDefault(),ie(t,js,!0);else if((function(n){return Ie(n,"Delete",mg)})(e))e.preventDefault(),ie(t,js,!1);else if((function(n){return cn&&Ie(n,"Backspace",{metaKey:!0})})(e))e.preventDefault(),ie(t,zs,!0);else if((function(n){return cn&&(Ie(n,"Delete",{metaKey:!0})||Ie(n,"k",{ctrlKey:!0}))})(e))e.preventDefault(),ie(t,zs,!1);else if((function(n){return Ie(n,"b",Wn)})(e))e.preventDefault(),ie(t,Sn,"bold");else if((function(n){return Ie(n,"u",Wn)})(e))e.preventDefault(),ie(t,Sn,"underline");else if((function(n){return Ie(n,"i",Wn)})(e))e.preventDefault(),ie(t,Sn,"italic");else if((function(n){return Ie(n,"Tab",{shiftKey:"any"})})(e))ie(t,tx,e);else if((function(n){return Ie(n,"z",Wn)})(e))e.preventDefault(),ie(t,Kd,void 0);else if((function(n){return cn?Ie(n,"z",{metaKey:!0,shiftKey:!0}):Ie(n,"y",{ctrlKey:!0})||Ie(n,"z",{ctrlKey:!0,shiftKey:!0})})(e))e.preventDefault(),ie(t,Hd,void 0);else{const n=t._editorState._selection;n===null||$(n)?gg(e)&&(e.preventDefault(),ie(t,Nu,e)):(function(r){return Ie(r,"c",Wn)})(e)?(e.preventDefault(),ie(t,rl,e)):(function(r){return Ie(r,"x",Wn)})(e)?(e.preventDefault(),ie(t,Vd,e)):gg(e)&&(e.preventDefault(),ie(t,Nu,e))}return(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(e)&&t.dispatchCommand(JT,e),!0}function ux(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}const vi=new Map;function dx(e){const t=D6(e.target);if(t===null)return;const n=Rx(t.anchorNode);if(n===null)return;Iu&&(Iu=!1,Nn(n,()=>{const c=Ji(),l=t.anchorNode;(mt(l)||ur(l))&&Pt(Qd(c,t,n,e))}));const r=oh(n),o=r[r.length-1],i=o._key,s=vi.get(i),a=s||o;a!==n&&Kp(t,a,!1),Kp(t,n,!0),n!==o?vi.set(i,n):s&&vi.delete(i)}function Hp(e){e._lexicalHandled=!0}function qp(e){return e._lexicalHandled===!0}function o6(e){const t=Pu.get(e);if(t===void 0)return;const n=yc.get(t);if(n===void 0)return;const r=n-1;r>=0||B(164),Pu.delete(e),yc.set(t,r),r===0&&t.removeEventListener("selectionchange",dx);const o=sl(e);rh(o)?((function(s){if(s._parentEditor!==null){const a=oh(s),c=a[a.length-1]._key;vi.get(c)===s&&vi.delete(c)}else vi.delete(s._key)})(o),e.__lexicalEditor=null):o&&B(198);const i=ux(e);for(let s=0;s<i.length;s++)i[s]();e.__lexicalEventHandles=[]}function Du(e,t,n){bt();const r=e.__key,o=e.getParent();if(o===null)return;const i=(function(a){const c=Z();if(!$(c)||!R(a))return c;const{anchor:l,focus:f}=c,u=l.getNode(),d=f.getNode();return Uu(u,a)&&l.set(a.__key,0,"element"),Uu(d,a)&&f.set(a.__key,0,"element"),c})(e);let s=!1;if($(i)&&t){const a=i.anchor,c=i.focus;a.key===r&&(wc(a,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),c.key===r&&(wc(c,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else ot(i)&&t&&e.isSelected()&&e.selectPrevious();if($(i)&&t&&!s){const a=e.getIndexWithinParent();_o(e),xc(i,o,a,-1)}else _o(e);n||jt(o)||o.canBeEmpty()||!o.isEmpty()||Du(o,t),t&&i&&Ye(o)&&o.isEmpty()&&o.selectEnd()}const hx=Symbol.for("ephemeral");function vc(e){return e[hx]||!1}class fn{constructor(t){D(this,"__type");D(this,"__key");D(this,"__parent");D(this,"__prev");D(this,"__next");D(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),N6(this,t)}static getType(){const{ownNodeType:t}=ll(this);return t===void 0&&B(64,this.name),t}static clone(t){B(65,this.name)}$config(){return{}}config(t,n){const r=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:r,type:t}),{[t]:n}}afterCloneFrom(t){this.__key===t.__key?(this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state):t.__state&&(this.__state=t.__state.getWritable(this))}getType(){return this.__type}isInline(){B(137,this.constructor.name)}isAttached(){let t=this.__key;for(;t!==null;){if(t==="root")return!0;const n=Xe(t);if(n===null)break;t=n.__parent}return!1}isSelected(t){const n=t||Z();if(n==null)return!1;const r=n.getNodes().some(o=>o.__key===this.__key);if(X(this))return r;if($(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const o=this.getParent();if(Te(this)&&this.isInline()&&o){const i=n.isBackward()?n.focus:n.anchor;if(o.is(i.getNode())&&i.offset===o.getChildrenSize()&&this.is(o.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(t===null)return-1;let n=t.getFirstChild(),r=0;for(;n!==null;){if(this.is(n))return r;r++,n=n.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return t===null?null:Xe(t)}getParentOrThrow(){const t=this.getParent();return t===null&&B(66,this.__key),t}getTopLevelElement(){let t=this;for(;t!==null;){const n=t.getParent();if(jt(n))return R(t)||t===this&&Te(t)||B(194),t;t=n}return null}getTopLevelElementOrThrow(){const t=this.getTopLevelElement();return t===null&&B(67,this.__key),t}getParents(){const t=[];let n=this.getParent();for(;n!==null;)t.push(n),n=n.getParent();return t}getParentKeys(){const t=[];let n=this.getParent();for(;n!==null;)t.push(n.__key),n=n.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return t===null?null:Xe(t)}getPreviousSiblings(){const t=[],n=this.getParent();if(n===null)return t;let r=n.getFirstChild();for(;r!==null&&!r.is(this);)t.push(r),r=r.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return t===null?null:Xe(t)}getNextSiblings(){const t=[];let n=this.getNextSibling();for(;n!==null;)t.push(n),n=n.getNextSibling();return t}getCommonAncestor(t){const n=R(this)?this:this.getParent(),r=R(t)?t:t.getParent(),o=n&&r?Qa(n,r):null;return o?o.commonAncestor:null}is(t){return t!=null&&this.__key===t.__key}isBefore(t){const n=Qa(this,t);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Gx(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&B(279),!1)))}isParentOf(t){const n=Qa(this,t);return n!==null&&n.type==="ancestor"}getNodesBetween(t){const n=this.isBefore(t),r=[],o=new Set;let i=this;for(;i!==null;){const s=i.__key;if(o.has(s)||(o.add(s),r.push(i)),i===t)break;const a=R(i)?n?i.getFirstChild():i.getLastChild():null;if(a!==null){i=a;continue}const c=n?i.getNextSibling():i.getPreviousSibling();if(c!==null){i=c;continue}const l=i.getParentOrThrow();if(o.has(l.__key)||r.push(l),l===t)break;let f=null,u=l;do{if(u===null&&B(68),f=n?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),u===null)break;f!==null||o.has(u.__key)||r.push(u)}while(f===null);i=f}return n||r.reverse(),r}isDirty(){const t=Re()._dirtyLeaves;return t!==null&&t.has(this.__key)}getLatest(){if(vc(this))return this;const t=Xe(this.__key);return t===null&&B(113),t}getWritable(){if(vc(this))return this;bt();const t=Hr(),n=Re(),r=t._nodeMap,o=this.__key,i=this.getLatest(),s=n._cloneNotNeeded,a=Z();if(a!==null&&a.setCachedNodes(null),s.has(o))return Cc(i),i;const c=Vx(i);return s.add(o),Cc(c),r.set(o,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(t,n){B(70)}updateDOM(t,n,r){B(71)}exportDOM(t){return{element:this.createDOM(t._config,t)}}exportJSON(){const t=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...t}}static importJSON(t){B(18,this.name)}updateFromJSON(t){return(function(n,r){const o=n.getWritable(),i=r.$;let s=i;for(const a of jv(o).flatKeys)a in r&&(s!==void 0&&s!==i||(s={...i}),s[a]=r[a]);return(o.__state||s)&&FT(n).updateFromJSON(s),o})(this,t)}static transform(){return null}remove(t){Du(this,!0,t)}replace(t,n){bt();let r=Z();r!==null&&(r=r.clone()),sf(this,t);const o=this.getLatest(),i=this.__key,s=t.__key,a=t.getWritable(),c=this.getParentOrThrow().getWritable(),l=c.__size;_o(a);const f=o.getPreviousSibling(),u=o.getNextSibling(),d=o.__prev,h=o.__next,m=o.__parent;if(Du(o,!1,!0),f===null?c.__first=s:f.getWritable().__next=s,a.__prev=d,u===null?c.__last=s:u.getWritable().__prev=s,a.__next=h,a.__parent=m,c.__size=l,n&&(R(this)&&R(a)||B(139),this.getChildren().forEach(g=>{a.append(g)})),$(r)){Pt(r);const g=r.anchor,p=r.focus;g.key===i&&Gp(g,a),p.key===i&&Gp(p,a)}return Tr()===i&&ut(s),a}insertAfter(t,n=!0){bt(),sf(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.getParent(),s=Z();let a=!1,c=!1;if(i!==null){const h=t.getIndexWithinParent();if(_o(o),$(s)){const m=i.__key,g=s.anchor,p=s.focus;a=g.type==="element"&&g.key===m&&g.offset===h+1,c=p.type==="element"&&p.key===m&&p.offset===h+1}}const l=this.getNextSibling(),f=this.getParentOrThrow().getWritable(),u=o.__key,d=r.__next;if(l===null?f.__last=u:l.getWritable().__prev=u,f.__size++,r.__next=u,o.__next=d,o.__prev=r.__key,o.__parent=r.__parent,n&&$(s)){const h=this.getIndexWithinParent();xc(s,f,h+1);const m=f.__key;a&&s.anchor.set(m,h+2,"element"),c&&s.focus.set(m,h+2,"element")}return t}insertBefore(t,n=!0){bt(),sf(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.__key;_o(o);const s=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),c=r.__prev,l=this.getIndexWithinParent();s===null?a.__first=i:s.getWritable().__next=i,a.__size++,r.__prev=i,o.__prev=c,o.__next=r.__key,o.__parent=r.__parent;const f=Z();return n&&$(f)&&xc(f,this.getParentOrThrow(),l),t}isParentRequired(){return!1}createParentElementNode(){return Tt()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,n){bt();const r=this.getPreviousSibling(),o=this.getParentOrThrow();if(r===null)return o.select(0,0);if(R(r))return r.select();if(!X(r)){const i=r.getIndexWithinParent()+1;return o.select(i,i)}return r.select(t,n)}selectNext(t,n){bt();const r=this.getNextSibling(),o=this.getParentOrThrow();if(r===null)return o.select();if(R(r))return r.select(0,0);if(!X(r)){const i=r.getIndexWithinParent();return o.select(i,i)}return r.select(t,n)}markDirty(){this.getWritable()}reconcileObservedMutation(t,n){this.markDirty()}}D(fn,"importDOM");const Fu="historic",i6="history-push",wo="history-merge",s6="paste",a6="collaboration",c6="skip-scroll-into-view",l6="skip-dom-selection",f6="skip-selection-focus";class Gi extends fn{static getType(){return"linebreak"}static clone(t){return new Gi(t.__key)}constructor(t){super(t)}getTextContent(){return`
599
- `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:t=>(function(n){const r=n.parentElement;if(r!==null&&_c(r)){const o=r.firstChild;if(o===n||o.nextSibling===n&&Ta(o)){const i=r.lastChild;if(i===n||i.previousSibling===n&&Ta(i))return!0}}return!1})(t)||(function(n){const r=n.parentElement;if(r!==null&&_c(r)){const o=r.firstChild;if(o===n||o.nextSibling===n&&Ta(o))return!1;const i=r.lastChild;if(i===n||i.previousSibling===n&&Ta(i))return!0}return!1})(t)?null:{conversion:u6,priority:0}}}static importJSON(t){return Do().updateFromJSON(t)}}function u6(e){return{node:Do()}}function Do(){return qr(new Gi)}function Ao(e){return e instanceof Gi}function Ta(e){return ur(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function ef(e,t){return 16&t?"code":t&Mv?"mark":32&t?"sub":64&t?"sup":null}function tf(e,t){return 1&t?"strong":2&t?"em":"span"}function mx(e,t,n,r,o){const i=r.classList;let s=xi(o,"base");s!==void 0&&i.add(...s),s=xi(o,"underlineStrikethrough");let a=!1;const c=8&t&&4&t;s!==void 0&&(8&n&&4&n?(a=!0,c||i.add(...s)):c&&i.remove(...s));for(const l in Io){const f=Io[l];if(s=xi(o,l),s!==void 0)if(n&f){if(a&&(l==="underline"||l==="strikethrough")){t&f&&i.remove(...s);continue}((t&f)===0||c&&l==="underline"||l==="strikethrough")&&i.add(...s)}else t&f&&i.remove(...s)}}function px(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?Xc:"");if(r==null)t.textContent=i;else{const s=r.nodeValue;if(s!==i)if(o||Mo){const[a,c,l]=(function(f,u){const d=f.length,h=u.length;let m=0,g=0;for(;m<d&&m<h&&f[m]===u[m];)m++;for(;g+m<d&&g+m<h&&f[d-g-1]===u[h-g-1];)g++;return[m,d-m-g,u.slice(m,h-g)]})(s,i);c!==0&&r.deleteData(a,c),r.insertData(a,l)}else r.nodeValue=i}}function Vp(e,t,n,r,o,i){px(o,e,t);const s=i.theme.text;s!==void 0&&mx(0,0,r,e,s)}function Na(e,t){const n=document.createElement(t);return n.appendChild(e),n}class Kr extends fn{constructor(n="",r){super(r);D(this,"__text");D(this,"__format");D(this,"__style");D(this,"__mode");D(this,"__detail");this.__text=n,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(n){return new Kr(n.__text,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__text=n.__text,this.__format=n.__format,this.__style=n.__style,this.__mode=n.__mode,this.__detail=n.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const n=this.getLatest();return OT[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Tr()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const r=Io[n];return(this.getFormat()&r)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,r){return Ac(this.getLatest().__format,n,r)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,r){const o=this.__format,i=ef(0,o),s=tf(0,o),a=i===null?s:i,c=document.createElement(a);let l=c;this.hasFormat("code")&&c.setAttribute("spellcheck","false"),i!==null&&(l=document.createElement(s),c.appendChild(l)),Vp(l,this,0,o,this.__text,n);const f=this.__style;return f!==""&&(c.style.cssText=f),c}updateDOM(n,r,o){const i=this.__text,s=n.__format,a=this.__format,c=ef(0,s),l=ef(0,a),f=tf(0,s),u=tf(0,a);if((c===null?f:c)!==(l===null?u:l))return!0;if(c===l&&f!==u){const p=r.firstChild;p==null&&B(48);const y=document.createElement(u);return Vp(y,this,0,a,i,o),r.replaceChild(y,p),!1}let d=r;l!==null&&c!==null&&(d=r.firstChild,d==null&&B(49)),px(i,d,this);const h=o.theme.text;h!==void 0&&s!==a&&mx(0,s,a,d,h);const m=n.__style,g=this.__style;return m!==g&&(r.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:p6,priority:0}),b:()=>({conversion:h6,priority:0}),code:()=>({conversion:Bn,priority:0}),em:()=>({conversion:Bn,priority:0}),i:()=>({conversion:Bn,priority:0}),mark:()=>({conversion:Bn,priority:0}),s:()=>({conversion:Bn,priority:0}),span:()=>({conversion:d6,priority:0}),strong:()=>({conversion:Bn,priority:0}),sub:()=>({conversion:Bn,priority:0}),sup:()=>({conversion:Bn,priority:0}),u:()=>({conversion:Bn,priority:0})}}static importJSON(n){return rt().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTextContent(n.text).setFormat(n.format).setDetail(n.detail).setMode(n.mode).setStyle(n.style)}exportDOM(n){let{element:r}=super.exportDOM(n);return mt(r)||B(132),r.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?r.style.textTransform="lowercase":this.hasFormat("uppercase")?r.style.textTransform="uppercase":this.hasFormat("capitalize")&&(r.style.textTransform="capitalize"),this.hasFormat("bold")&&(r=Na(r,"b")),this.hasFormat("italic")&&(r=Na(r,"i")),this.hasFormat("strikethrough")&&(r=Na(r,"s")),this.hasFormat("underline")&&(r=Na(r,"u")),{element:r}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(n,r){}setFormat(n){const r=this.getWritable();return r.__format=typeof n=="string"?Io[n]:n,r}setDetail(n){const r=this.getWritable();return r.__detail=typeof n=="string"?kT[n]:n,r}setStyle(n){const r=this.getWritable();return r.__style=n,r}toggleFormat(n){const r=Ac(this.getFormat(),n,null);return this.setFormat(r)}toggleDirectionless(){const n=this.getWritable();return n.__detail^=1,n}toggleUnmergeable(){const n=this.getWritable();return n.__detail^=2,n}setMode(n){const r=NT[n];if(this.__mode===r)return this;const o=this.getWritable();return o.__mode=r,o}setTextContent(n){if(this.__text===n)return this;const r=this.getWritable();return r.__text=n,r}select(n,r){bt();let o=n,i=r;const s=Z(),a=this.getTextContent(),c=this.__key;if(typeof a=="string"){const l=a.length;o===void 0&&(o=l),i===void 0&&(i=l)}else o=0,i=0;if(!$(s))return vx(c,o,c,i,"text","text");{const l=Tr();l!==s.anchor.key&&l!==s.focus.key||ut(c),s.setTextNodeRange(this,o,this,i)}return s}selectStart(){return this.select(0,0)}selectEnd(){const n=this.getTextContentSize();return this.select(n,n)}spliceText(n,r,o,i){const s=this.getWritable(),a=s.__text,c=o.length;let l=n;l<0&&(l=c+l,l<0&&(l=0));const f=Z();if(i&&$(f)){const d=n+c;f.setTextNodeRange(s,d,s,d)}const u=a.slice(0,l)+o+a.slice(l+r);return s.__text=u,s}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){bt();const r=this.getLatest(),o=r.getTextContent();if(o==="")return[];const i=r.__key,s=Tr(),a=o.length;n.sort((N,P)=>N-P),n.push(a);const c=[],l=n.length;for(let N=0,P=0;N<a&&P<=l;P++){const I=n[P];I>N&&(c.push(o.slice(N,I)),N=I)}const f=c.length;if(f===1)return[r];const u=c[0],d=r.getParent();let h;const m=r.getFormat(),g=r.getStyle(),p=r.__detail;let y=!1,b=null,x=null;const w=Z();if($(w)){const[N,P]=w.isBackward()?[w.focus,w.anchor]:[w.anchor,w.focus];N.type==="text"&&N.key===i&&(b=N),P.type==="text"&&P.key===i&&(x=P)}r.isSegmented()?(h=rt(u),h.__format=m,h.__style=g,h.__detail=p,h.__state=Dp(r,h),y=!0):h=r.setTextContent(u);const A=[h];for(let N=1;N<f;N++){const P=rt(c[N]);P.__format=m,P.__style=g,P.__detail=p,P.__state=Dp(r,P);const I=P.__key;s===i&&ut(I),A.push(P)}const _=b?b.offset:null,S=x?x.offset:null;let E=0;for(const N of A){if(!b&&!x)break;const P=E+N.getTextContentSize();if(b!==null&&_!==null&&_<=P&&_>=E&&(b.set(N.getKey(),_-E,"text"),_<P&&(b=null)),x!==null&&S!==null&&S<=P&&S>=E){x.set(N.getKey(),S-E,"text");break}E=P}if(d!==null){(function(I){const W=I.getPreviousSibling(),j=I.getNextSibling();W!==null&&Cc(W),j!==null&&Cc(j)})(this);const N=d.getWritable(),P=this.getIndexWithinParent();y?(N.splice(P,0,A),this.remove()):N.splice(P,1,A),$(w)&&xc(w,d,P,f-1)}return A}mergeWithSibling(n){const r=n===this.getPreviousSibling();r||n===this.getNextSibling()||B(50);const o=this.__key,i=n.__key,s=this.__text,a=s.length;Tr()===i&&ut(o);const c=Z();if($(c)){const d=c.anchor,h=c.focus;d!==null&&d.key===i&&rg(d,r,o,n,a),h!==null&&h.key===i&&rg(h,r,o,n,a)}const l=n.__text,f=r?l+s:s+l;this.setTextContent(f);const u=this.getWritable();return n.remove(),u}isTextEntity(){return!1}}function d6(e){return{forChild:Yd(e.style),node:null}}function h6(e){const t=e,n=t.style.fontWeight==="normal";return{forChild:Yd(t.style,n?void 0:"bold"),node:null}}const Yp=new WeakMap;function m6(e){if(!mt(e))return!1;if(e.nodeName==="PRE")return!0;const t=e.style.whiteSpace;return typeof t=="string"&&t.startsWith("pre")}function p6(e){const t=e;e.parentElement===null&&B(129);let n=t.textContent||"";if((function(r){let o,i=r.parentNode;const s=[r];for(;i!==null&&(o=Yp.get(i))===void 0&&!m6(i);)s.push(i),i=i.parentNode;const a=o===void 0?i:o;for(let c=0;c<s.length;c++)Yp.set(s[c],a);return a})(t)!==null){const r=n.split(/(\r?\n|\t)/),o=[],i=r.length;for(let s=0;s<i;s++){const a=r[s];a===`
596
+ `,jT=Io?" ":tl,Lo={bold:1,capitalize:1024,code:16,highlight:zv,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},zT={directionless:1,unmergeable:2},Lp={center:2,end:6,justify:4,left:1,right:3,start:5},$T={[IT]:"center",[FT]:"end",[RT]:"justify",[MT]:"left",[LT]:"right",[DT]:"start"},BT={normal:0,segmented:2,token:1},UT={[NT]:"normal",[PT]:"segmented",[OT]:"token"},Rp="$config";function $v(e,t,n,r,o,i){let s=e.getFirstChild();for(;s!==null;){const a=s.__key;s.__parent===t&&(R(s)&&$v(s,a,n,r,o,i),n.has(a)||i.delete(a),o.push(a)),s=s.getNextSibling()}}let wu=!1,Kd=0;function WT(e){Kd=e.timeStamp}function Xl(e,t,n){const r=e.nodeName==="BR",o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&ll(e,n)!==void 0}function KT(e,t,n){const r=tn(en(n));let o=null,i=null;r!==null&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const s=e.nodeValue;s!==null&&ch(t,s,o,i,!1)}function HT(e,t,n){if(B(e)){const r=e.anchor.getNode();if(r.is(n)&&e.format!==r.getFormat())return!1}return dr(t)&&n.isAttached()}function qT(e,t,n,r){for(let o=e;o&&!J6(o);o=la(o)){const i=ll(o,t);if(i!==void 0){const s=Xe(i,n);if(s)return Te(s)||!mt(o)?void 0:[o,s]}else if(o===r)return[r,Vx(n)]}}function Bv(e,t,n){wu=!0;const r=performance.now()-Kd>100;try{On(e,()=>{const o=Z()||(function(d){return d.getEditorState().read(()=>{const h=Z();return h!==null?h.clone():null})})(e),i=new Map,s=e.getRootElement(),a=e._editorState,c=e._blockCursorElement;let l=!1,f="";for(let d=0;d<t.length;d++){const h=t[d],m=h.type,p=h.target,g=qT(p,e,a,s);if(!g)continue;const[y,b]=g;if(m==="characterData")r&&X(b)&&dr(p)&&HT(o,p,b)&&KT(p,b,e);else if(m==="childList"){l=!0;const x=h.addedNodes;for(let E=0;E<x.length;E++){const _=x[E],S=Hx(_),O=_.parentNode;if(O!=null&&_!==c&&S===null&&!Xl(_,O,e)){if(Io){const P=(mt(_)?_.innerText:null)||_.nodeValue;P&&(f+=P)}O.removeChild(_)}}const w=h.removedNodes,A=w.length;if(A>0){let E=0;for(let _=0;_<A;_++){const S=w[_];(Xl(S,p,e)||c===S)&&(p.appendChild(S),E++)}A!==E&&i.set(y,b)}}}if(i.size>0)for(const[d,h]of i)h.reconcileObservedMutation(d,e);const u=n.takeRecords();if(u.length>0){for(let d=0;d<u.length;d++){const h=u[d],m=h.addedNodes,p=h.target;for(let g=0;g<m.length;g++){const y=m[g],b=y.parentNode;b==null||y.nodeName!=="BR"||Xl(y,p,e)||b.removeChild(y)}}n.takeRecords()}o!==null&&(l&&Pt(o),Io&&Zx(e)&&o.insertRawText(f))})}finally{wu=!1}}function Uv(e){const t=e._observer;t!==null&&Bv(e,t.takeRecords(),t)}function Wv(e){(function(t){Kd===0&&en(t).addEventListener("textInput",WT,!0)})(e),e._observer=new MutationObserver((t,n)=>{Bv(e,t,n)})}function VT(e){const t=new Map,n=new Set;for(let r=typeof e=="function"?e:e.replace;r.prototype&&r.prototype.getType!==void 0;r=Object.getPrototypeOf(r)){const{ownNodeConfig:o}=ul(r);if(o&&o.stateConfigs)for(const i of o.stateConfigs){let s;"stateConfig"in i?(s=i.stateConfig,i.flat&&n.add(s.key)):s=i,t.set(s.key,s)}}return{flatKeys:n,sharedConfigMap:t}}let YT=class Kv{constructor(t,n,r=void 0,o=new Map,i=void 0){F(this,"node");F(this,"knownState");F(this,"unknownState");F(this,"sharedNodeState");F(this,"size");this.node=t,this.sharedNodeState=n,this.unknownState=r,this.knownState=o;const{sharedConfigMap:s}=this.sharedNodeState,a=i!==void 0?i:(function(c,l,f){let u=f.size;if(l)for(const d in l){const h=c.get(d);h&&f.has(h)||u++}return u})(s,r,o);this.size=a}getValue(t){const n=this.knownState.get(t);if(n!==void 0)return n;this.sharedNodeState.sharedConfigMap.set(t.key,t);let r=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const o=this.unknownState[t.key];o!==void 0&&(r=t.parse(o)),this.updateFromKnown(t,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState},n={};for(const[r,o]of this.knownState)r.isEqual(o,r.defaultValue)?delete t[r.key]:t[r.key]=r.unparse(o);for(const r of this.sharedNodeState.flatKeys)r in t&&(n[r]=t[r],delete t[r]);return Dp(t)&&(n.$=t),n}getWritable(t){if(this.node===t)return this;const{sharedNodeState:n,unknownState:r}=this,o=new Map(this.knownState);return new Kv(t,n,(function(i,s,a){let c;if(a)for(const[l,f]of Object.entries(a)){const u=i.get(l);u?s.has(u)||s.set(u,u.parse(f)):(c=c||{},c[l]=f)}return c})(n.sharedConfigMap,o,r),o,this.size)}updateFromKnown(t,n){const r=t.key;this.sharedNodeState.sharedConfigMap.set(r,t);const{knownState:o,unknownState:i}=this;o.has(t)||i&&r in i||(i&&(delete i[r],this.unknownState=Dp(i)),this.size++),o.set(t,n)}updateFromUnknown(t,n){const r=this.sharedNodeState.sharedConfigMap.get(t);r?this.updateFromKnown(r,r.parse(n)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=n)}updateFromJSON(t){const{knownState:n}=this;for(const r of n.keys())n.set(r,r.defaultValue);if(this.size=n.size,this.unknownState=void 0,t)for(const[r,o]of Object.entries(t))this.updateFromUnknown(r,o)}};function GT(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new YT(t,Hv(t));return t.__state=n,n}function Hv(e){return e.__state?e.__state.sharedNodeState:$x(uh(),e.getType()).sharedNodeState}function Dp(e){if(e)for(const t in e)return e}function Fp(e,t,n){for(const[r,o]of t.knownState){if(e.has(r.key))continue;e.add(r.key);const i=n?n.getValue(r):r.defaultValue;if(i!==o&&!r.isEqual(i,o))return!0}return!1}function jp(e,t,n){const{unknownState:r}=t,o=n?n.unknownState:void 0;if(r){for(const[i,s]of Object.entries(r))if(!e.has(i)&&(e.add(i),s!==(o?o[i]:void 0)))return!0}return!1}function zp(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function $p(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,s=t.__format,a=t.__style,c=e.__state,l=t.__state;return(n===null||n===i)&&(r===null||r===s)&&(o===null||o===a)&&(e.__state===null||c===l||(function(f,u){if(f===u)return!0;if(f&&u&&f.size!==u.size)return!1;const d=new Set;return!(f&&Fp(d,f,u)||u&&Fp(d,u,f)||f&&jp(d,f,u)||u&&jp(d,u,f))})(c,l))}function Bp(e,t){const n=e.mergeWithSibling(t),r=De()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Up(e){let t,n,r=e;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&X(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if($p(t,r)){r=Bp(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if($p(r,n)){r=Bp(r,n);break}break}n.remove()}}else r.remove()}function ji(e){return Wp(e.anchor),Wp(e.focus),e}function Wp(e){for(;e.type==="element";){const t=e.getNode(),n=e.offset;let r,o;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),o=!0):(r=t.getChildAtIndex(n),o=!1),X(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!R(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Ro,vt,Ds,nl,Au,Cu,Do,fn,Eu,Fs,Je="",bn=null,no=null,Vn="",ci=!1,pc=!1;function gc(e,t){const n=Do.get(e);if(t!==null){const r=Tu(e);r.parentNode===t&&t.removeChild(r)}if(fn.has(e)||vt._keyToDOMMap.delete(e),R(n)){const r=bc(n,Do);_u(r,0,r.length-1,null)}n!==void 0&&lh(Fs,Ds,nl,n,"destroyed")}function _u(e,t,n,r){let o=t;for(;o<=n;++o){const i=e[o];i!==void 0&&gc(i,r)}}function to(e,t){e.setProperty("text-align",t)}const QT="40px";function qv(e,t){const n=Ro.theme.indent;if(typeof n=="string"){const o=e.classList.contains(n);t>0&&!o?e.classList.add(n):t<1&&o&&e.classList.remove(n)}const r=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||QT;e.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * ${r})`)}function Vv(e,t){const n=e.style;t===0?to(n,""):t===1?to(n,"left"):t===2?to(n,"center"):t===3?to(n,"right"):t===4?to(n,"justify"):t===5?to(n,"start"):t===6&&to(n,"end")}function Su(e,t){const n=(function(r){const o=r.__dir;if(o!==null)return o;if(Ye(r))return null;const i=r.getParentOrThrow();return Ye(i)&&i.__dir===null?"auto":null})(t);n!==null?e.dir=n:e.removeAttribute("dir")}function yc(e,t){const n=fn.get(e);n===void 0&&U(60);const r=n.createDOM(Ro,vt);if((function(o,i,s){const a=s._keyToDOMMap;(function(c,l,f){const u=`__lexicalKey_${l._key}`;c[u]=f})(i,s,o),a.set(o,i)})(e,r,vt),X(n)?r.setAttribute("data-lexical-text","true"):Te(n)&&r.setAttribute("data-lexical-decorator","true"),R(n)){const o=n.__indent,i=n.__size;if(Su(r,n),o!==0&&qv(r,o),i!==0){const a=i-1;ku(bc(n,fn),n,0,a,n.getDOMSlot(r))}const s=n.__format;s!==0&&Vv(r,s),n.isInline()||Yv(null,n,r),fl(n)&&(Je+=zr,Vn+=zr)}else{const o=n.getTextContent();if(Te(n)){const i=n.decorate(vt,Ro);i!==null&&Gv(e,i),r.contentEditable="false"}Je+=o,Vn+=o}return t!==null&&t.insertChild(r),lh(Fs,Ds,nl,n,"created"),r}function ku(e,t,n,r,o){const i=Je;Je="";let s=n;for(;s<=r;++s){yc(e[s],o);const a=fn.get(e[s]);a!==null&&X(a)&&bn===null&&(bn=a.getFormat(),no=a.getStyle())}fl(t)&&(Je+=zr),o.element.__lexicalTextContent=Je,Je=i+Je}function Kp(e,t){if(e){const n=e.__last;if(n){const r=t.get(n);if(r)return Co(r)?"line-break":Te(r)&&r.isInline()?"decorator":null}return"empty"}return null}function Yv(e,t,n){const r=Kp(e,Do),o=Kp(t,fn);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function ZT(e,t,n){var r;bn=null,no=null,(function(o,i,s){const a=Je,c=o.__size,l=i.__size;Je="";const f=s.element;if(c===1&&l===1){const u=o.__first,d=i.__first;if(u===d)vs(u,f);else{const m=Tu(u),p=yc(d,null);try{f.replaceChild(p,m)}catch(g){if(typeof g=="object"&&g!=null){const y=`${g.toString()} Parent: ${f.tagName}, new child: {tag: ${p.tagName} key: ${d}}, old child: {tag: ${m.tagName}, key: ${u}}.`;throw new Error(y)}throw g}gc(u,null)}const h=fn.get(d);X(h)&&bn===null&&(bn=h.getFormat(),no=h.getStyle())}else{const u=bc(o,Do),d=bc(i,fn);if(u.length!==c&&U(227),d.length!==l&&U(228),c===0)l!==0&&ku(d,i,0,l-1,s);else if(l===0){if(c!==0){const h=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;_u(u,0,c-1,h?null:f),h&&(f.textContent="")}}else(function(h,m,p,g,y,b){const x=g-1,w=y-1;let A,E,_=b.getFirstChild(),S=0,O=0;for(;S<=x&&O<=w;){const $=m[S],D=p[O];if($===D)_=ef(vs(D,b.element)),S++,O++;else{A===void 0&&(A=new Set(m)),E===void 0&&(E=new Set(p));const K=E.has($),G=A.has(D);if(K)if(G){const oe=zo(vt,D);oe===_?_=ef(vs(D,b.element)):(b.withBefore(_).insertChild(oe),vs(D,b.element)),S++,O++}else yc(D,b.withBefore(_)),O++;else _=ef(Tu($)),gc($,b.element),S++}const j=fn.get(D);j!==null&&X(j)&&bn===null&&(bn=j.getFormat(),no=j.getStyle())}const P=S>x,I=O>w;if(P&&!I){const $=p[w+1],D=$===void 0?null:vt.getElementByKey($);ku(p,h,O,w,b.withBefore(D))}else I&&!P&&_u(m,S,x,b.element)})(i,u,d,c,l,s)}fl(i)&&(Je+=zr),f.__lexicalTextContent=Je,Je=a+Je})(e,t,t.getDOMSlot(n)),r=t,bn==null||bn===r.__textFormat||pc||r.setTextFormat(bn),(function(o){no==null||no===o.__textStyle||pc||o.setTextStyle(no)})(t)}function bc(e,t){const n=[];let r=e.__first;for(;r!==null;){const o=t.get(r);o===void 0&&U(101),n.push(r),r=o.__next}return n}function vs(e,t){const n=Do.get(e);let r=fn.get(e);n!==void 0&&r!==void 0||U(61);const o=ci||Cu.has(e)||Au.has(e),i=zo(vt,e);if(n===r&&!o){if(R(n)){const s=i.__lexicalTextContent;s!==void 0&&(Je+=s,Vn+=s)}else{const s=n.getTextContent();Vn+=s,Je+=s}return i}if(n!==r&&o&&lh(Fs,Ds,nl,r,"updated"),r.updateDOM(n,i,Ro)){const s=yc(e,null);return t===null&&U(62),t.replaceChild(s,i),gc(e,null),s}if(R(n)&&R(r)){const s=r.__indent;(ci||s!==n.__indent)&&qv(i,s);const a=r.__format;if((ci||a!==n.__format)&&Vv(i,a),o&&(ZT(n,r,i),Ye(r)||r.isInline()||Yv(n,r,i)),fl(r)&&(Je+=zr,Vn+=zr),(ci||r.__dir!==n.__dir)&&(Su(i,r),Ye(r)&&!ci))for(const c of r.getChildren())R(c)&&Su(zo(vt,c.getKey()),c)}else{const s=r.getTextContent();if(Te(r)){const a=r.decorate(vt,Ro);a!==null&&Gv(e,a)}Je+=s,Vn+=s}if(!pc&&Ye(r)&&r.__cachedText!==Vn){const s=r.getWritable();s.__cachedText=Vn,r=s}return i}function Gv(e,t){let n=vt._pendingDecorators;const r=vt._decorators;if(n===null){if(r[e]===t)return;n=qx(vt)}n[e]=t}function ef(e){let t=e.nextSibling;return t!==null&&t===vt._blockCursorElement&&(t=t.nextSibling),t}function JT(e,t,n,r,o,i){Je="",Vn="",ci=r===2,vt=n,Ro=n._config,Ds=n._nodes,nl=vt._listeners.mutation,Au=o,Cu=i,Do=e._nodeMap,fn=t._nodeMap,pc=t._readOnly,Eu=new Map(n._keyToDOMMap);const s=new Map;return Fs=s,vs("root",null),vt=void 0,Ds=void 0,Au=void 0,Cu=void 0,Do=void 0,fn=void 0,Ro=void 0,Eu=void 0,Fs=void 0,s}function Tu(e){const t=Eu.get(e);return t===void 0&&U(75,e),t}function he(e){return{type:e}}const rl=he("SELECTION_CHANGE_COMMAND"),XT=he("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Hd=he("CLICK_COMMAND"),Qv=he("BEFORE_INPUT_COMMAND"),Zv=he("INPUT_COMMAND"),Jv=he("COMPOSITION_START_COMMAND"),Xv=he("COMPOSITION_END_COMMAND"),wo=he("DELETE_CHARACTER_COMMAND"),bi=he("INSERT_LINE_BREAK_COMMAND"),js=he("INSERT_PARAGRAPH_COMMAND"),vi=he("CONTROLLED_TEXT_INSERTION_COMMAND"),ol=he("PASTE_COMMAND"),Nu=he("REMOVE_TEXT_COMMAND"),zs=he("DELETE_WORD_COMMAND"),$s=he("DELETE_LINE_COMMAND"),kn=he("FORMAT_TEXT_COMMAND"),qd=he("UNDO_COMMAND"),Vd=he("REDO_COMMAND"),ex=he("KEYDOWN_COMMAND"),tx=he("KEY_ARROW_RIGHT_COMMAND"),e6=he("MOVE_TO_END"),nx=he("KEY_ARROW_LEFT_COMMAND"),t6=he("MOVE_TO_START"),rx=he("KEY_ARROW_UP_COMMAND"),ox=he("KEY_ARROW_DOWN_COMMAND"),Bs=he("KEY_ENTER_COMMAND"),ix=he("KEY_SPACE_COMMAND"),sx=he("KEY_BACKSPACE_COMMAND"),Yd=he("KEY_ESCAPE_COMMAND"),ax=he("KEY_DELETE_COMMAND"),cx=he("KEY_TAB_COMMAND"),n6=he("INSERT_TAB_COMMAND"),r6=he("INDENT_CONTENT_COMMAND"),Hp=he("OUTDENT_CONTENT_COMMAND"),lx=he("DROP_COMMAND"),o6=he("FORMAT_ELEMENT_COMMAND"),fx=he("DRAGSTART_COMMAND"),ux=he("DRAGOVER_COMMAND"),i6=he("DRAGEND_COMMAND"),il=he("COPY_COMMAND"),Gd=he("CUT_COMMAND"),Ou=he("SELECT_ALL_COMMAND"),s6=he("CLEAR_EDITOR_COMMAND"),a6=he("CLEAR_HISTORY_COMMAND"),Na=he("CAN_REDO_COMMAND"),Oa=he("CAN_UNDO_COMMAND"),c6=he("FOCUS_COMMAND"),l6=he("BLUR_COMMAND"),f6=he("KEY_MODIFIER_COMMAND"),Bn=Object.freeze({}),Pu=[["keydown",function(e,t){Us=e.timeStamp,dx=e.key,!t.isComposing()&&ie(t,ex,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;ns(n)&&r!=="touch"&&r!=="pen"&&e.button===0&&On(t,()=>{Bx(n)||(Lu=!0)})}],["compositionstart",function(e,t){ie(t,Jv,e)}],["compositionend",function(e,t){Io?xs=!0:Qi||!ra&&!oa?ie(t,Xv,e):(Ru=!0,Du=e.data)}],["input",function(e,t){e.stopPropagation(),On(t,()=>{t.dispatchCommand(Zv,e)},{event:e}),li=null}],["click",function(e,t){On(t,()=>{const n=Z(),r=tn(en(t)),o=Xi();if(r){if(B(n)){const i=n.anchor,s=i.getNode();if(i.type==="element"&&i.offset===0&&n.isCollapsed()&&!Ye(s)&&We().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&o!==null&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(e.detail===3&&!n.isCollapsed()&&s!==n.focus.getNode()){const a=ct(s,c=>R(c)&&!c.isInline());R(a)&&a.select(0)}}else if(e.pointerType==="touch"||e.pointerType==="pen"){const i=r.anchorNode;(mt(i)||dr(i))&&Pt(Zd(o,r,t,e))}}ie(t,Hd,e)})}],["cut",Bn],["copy",Bn],["dragstart",Bn],["dragover",Bn],["dragend",Bn],["paste",Bn],["focus",Bn],["blur",Bn],["drop",Bn]];mc&&Pu.push(["beforeinput",(e,t)=>(function(n,r){const o=n.inputType;o==="deleteCompositionText"||Io&&Zx(r)||o!=="insertCompositionText"&&ie(r,Qv,n)})(e,t)]);let Us=0,dx=null,hx=0,li=null;const Mu=new WeakMap,vc=new WeakMap;let Iu=!1,Lu=!1,_s=!1,xs=!1,Ru=!1,Du="",io=null,mx=[0,"",0,"root",0];function px(e,t,n,r,o){const i=e.anchor,s=e.focus,a=i.getNode(),c=De(),l=tn(en(c)),f=l!==null?l.anchorNode:null,u=i.key,d=c.getElementByKey(u),h=n.length;return u!==s.key||!X(a)||(!o&&(!mc||hx<r+50)||a.isDirty()&&h<2||Yx(n))&&i.offset!==s.offset&&!a.isComposing()||qn(a)||a.isDirty()&&h>1||(o||!mc)&&d!==null&&!a.isComposing()&&f!==zi(d)||l!==null&&t!==null&&(!t.collapsed||t.startContainer!==l.anchorNode||t.startOffset!==l.anchorOffset)||a.getFormat()!==e.format||a.getStyle()!==e.style||(function(m,p){if(p.isSegmented())return!0;if(!m.isCollapsed())return!1;const g=m.anchor.offset,y=p.getParentOrThrow(),b=Eo(p);return g===0?!p.canInsertTextBefore()||!y.canInsertTextBefore()&&!p.isComposing()||b||(function(x){const w=x.getPreviousSibling();return(X(w)||R(w)&&w.isInline())&&!w.canInsertTextAfter()})(p):g===p.getTextContentSize()&&(!p.canInsertTextAfter()||!y.canInsertTextAfter()&&!p.isComposing()||b)})(e,a)}function qp(e,t){return dr(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function Vp(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=e;Iu&&(Iu=!1,qp(r,o)&&qp(i,s)&&!io)||On(t,()=>{if(!n)return void Pt(null);if(!ca(t,r,i))return;let a=Z();if(io&&B(a)&&a.isCollapsed()){const c=a.anchor,l=io.anchor;(c.key===l.key&&c.offset===l.offset+1||c.offset===1&&l.getNode().is(c.getNode().getPreviousSibling()))&&(a=io.clone(),Pt(a))}if(io=null,B(a)){const c=a.anchor,l=c.getNode();if(a.isCollapsed()){e.type==="Range"&&e.anchorNode===e.focusNode&&(a.dirty=!0);const f=en(t).event,u=f?f.timeStamp:performance.now(),[d,h,m,p,g]=mx,y=We(),b=t.isComposing()===!1&&y.getTextContent()==="";if(u<g+200&&c.offset===m&&c.key===p)Ga(a,d,h);else if(c.type==="text")X(l)||U(141),gx(a,l);else if(c.type==="element"&&!b){R(l)||U(259);const x=c.getNode();x.isEmpty()?(function(w,A){const E=A.getTextFormat(),_=A.getTextStyle();Ga(w,E,_)})(a,x):Ga(a,0,"")}}else{const f=c.key,u=a.focus.key,d=a.getNodes(),h=d.length,m=a.isBackward(),p=m?s:o,g=m?o:s,y=m?u:f,b=m?f:u;let x=2047,w=!1;for(let A=0;A<h;A++){const E=d[A],_=E.getTextContentSize();if(X(E)&&_!==0&&!(A===0&&E.__key===y&&p===_||A===h-1&&E.__key===b&&g===0)&&(w=!0,x&=E.getFormat(),x===0))break}a.format=w?x:0}}ie(t,rl,void 0)})}function Ga(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function gx(e,t){Ga(e,t.getFormat(),t.getStyle())}function yx(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return t.length===0?null:t[0]}function u6(e){const t=e.inputType,n=yx(e),r=De(),o=Z();if(t==="deleteContentBackward"){if(o===null){const u=Xi();if(!B(u))return!0;Pt(u.clone())}if(B(o)){const u=o.anchor.key===o.focus.key;if(i=e.timeStamp,dx==="MediaLast"&&i<Us+30&&r.isComposing()&&u){if(dt(null),Us=0,setTimeout(()=>{On(r,()=>{dt(null)})},30),B(o)){const d=o.anchor.getNode();d.markDirty(),X(d)||U(142),gx(o,d)}}else{dt(null),e.preventDefault();const d=o.anchor.getNode(),h=d.getTextContent(),m=d.canInsertTextAfter(),p=o.anchor.offset===0&&o.focus.offset===h.length;let g=Ip&&u&&!p&&m;if(g&&o.isCollapsed()&&(g=!Te(Uu(o.anchor,!0))),!g){ie(r,wo,!0);const y=Z();Ip&&B(y)&&y.isCollapsed()&&(io=y,setTimeout(()=>io=null))}}return!0}}var i;if(!B(o))return!0;const s=e.data;li!==null&&ah(!1,r,li),o.dirty&&li===null||!o.isCollapsed()||Ye(o.anchor.getNode())||n===null||o.applyDOMRange(n),li=null;const a=o.anchor,c=o.focus,l=a.getNode(),f=c.getNode();if(t==="insertText"||t==="insertTranspose"){if(s===`
597
+ `)e.preventDefault(),ie(r,bi,!1);else if(s===zr)e.preventDefault(),ie(r,js,void 0);else if(s==null&&e.dataTransfer){const u=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(u)}else s!=null&&px(o,n,s,e.timeStamp,!0)?(e.preventDefault(),ie(r,vi,s)):li=s;return hx=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ie(r,vi,e);break;case"insertFromComposition":dt(null),ie(r,vi,e);break;case"insertLineBreak":dt(null),ie(r,bi,!1);break;case"insertParagraph":dt(null),_s&&!Qi?(_s=!1,ie(r,bi,!1)):ie(r,js,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ie(r,ol,e);break;case"deleteByComposition":(function(u,d){return u!==d||R(u)||R(d)||!Eo(u)||!Eo(d)})(l,f)&&ie(r,Nu,e);break;case"deleteByDrag":case"deleteByCut":ie(r,Nu,e);break;case"deleteContent":ie(r,wo,!1);break;case"deleteWordBackward":ie(r,zs,!0);break;case"deleteWordForward":ie(r,zs,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ie(r,$s,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ie(r,$s,!1);break;case"formatStrikeThrough":ie(r,kn,"strikethrough");break;case"formatBold":ie(r,kn,"bold");break;case"formatItalic":ie(r,kn,"italic");break;case"formatUnderline":ie(r,kn,"underline");break;case"historyUndo":ie(r,qd,void 0);break;case"historyRedo":ie(r,Vd,void 0)}return!0}function d6(e){if(mt(e.target)&&Bx(e.target))return!0;const t=De(),n=Z(),r=e.data,o=yx(e);if(r!=null&&B(n)&&px(n,o,r,e.timeStamp,!1)){xs&&(xc(t,r),xs=!1);const i=n.anchor.getNode(),s=tn(en(t));if(s===null)return!0;const a=n.isBackward(),c=a?n.anchor.offset:n.focus.offset,l=a?n.focus.offset:n.anchor.offset;mc&&!n.isCollapsed()&&X(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,c)+r+i.getTextContent().slice(c+l)===Qx(s.anchorNode)||ie(t,vi,r);const f=r.length;Io&&f>1&&e.inputType==="insertCompositionText"&&!t.isComposing()&&(n.anchor.offset-=f),ra||Qi||oa||!t.isComposing()||(Us=0,dt(null))}else ah(!1,t,r!==null?r:void 0),xs&&(xc(t,r||void 0),xs=!1);return(function(){bt();const i=De();Uv(i)})(),!0}function h6(e){const t=De(),n=Z();if(B(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();dt(r.key),(e.timeStamp<Us+30||r.type==="element"||!n.isCollapsed()||o.getFormat()!==n.format||X(o)&&o.getStyle()!==n.style)&&ie(t,vi,jT)}return!0}function m6(e){return xc(De(),e.data),!0}function xc(e,t){const n=e._compositionKey;if(dt(null),n!==null&&t!=null){if(t===""){const r=Xe(n),o=zi(e.getElementByKey(n));return void(o!==null&&o.nodeValue!==null&&X(r)&&ch(r,o.nodeValue,null,null,!0))}if(t[t.length-1]===`
598
+ `){const r=Z();if(B(r)){const o=r.focus;return r.anchor.set(o.key,o.offset,o.type),void ie(e,Bs,null)}}}ah(!0,e,t)}function p6(e){const t=De();if(e.key==null)return!0;if(Ru&&bg(e))return On(t,()=>{xc(t,Du)}),Ru=!1,Du="",!0;if((function(n){return Ie(n,"ArrowRight",{shiftKey:"any"})})(e))ie(t,tx,e);else if((function(n){return Ie(n,"ArrowRight",Kn)})(e))ie(t,e6,e);else if((function(n){return Ie(n,"ArrowLeft",{shiftKey:"any"})})(e))ie(t,nx,e);else if((function(n){return Ie(n,"ArrowLeft",Kn)})(e))ie(t,t6,e);else if((function(n){return Ie(n,"ArrowUp",{altKey:"any",shiftKey:"any"})})(e))ie(t,rx,e);else if((function(n){return Ie(n,"ArrowDown",{altKey:"any",shiftKey:"any"})})(e))ie(t,ox,e);else if((function(n){return Ie(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})})(e))_s=!0,ie(t,Bs,e);else if((function(n){return n.key===" "})(e))ie(t,ix,e);else if((function(n){return ln&&Ie(n,"o",{ctrlKey:!0})})(e))e.preventDefault(),_s=!0,ie(t,bi,!0);else if((function(n){return Ie(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})})(e))_s=!1,ie(t,Bs,e);else if((function(n){return Ie(n,"Backspace",{shiftKey:"any"})||ln&&Ie(n,"h",{ctrlKey:!0})})(e))bg(e)?ie(t,sx,e):(e.preventDefault(),ie(t,wo,!0));else if((function(n){return n.key==="Escape"})(e))ie(t,Yd,e);else if((function(n){return Ie(n,"Delete",{})||ln&&Ie(n,"d",{ctrlKey:!0})})(e))(function(n){return n.key==="Delete"})(e)?ie(t,ax,e):(e.preventDefault(),ie(t,wo,!1));else if((function(n){return Ie(n,"Backspace",yg)})(e))e.preventDefault(),ie(t,zs,!0);else if((function(n){return Ie(n,"Delete",yg)})(e))e.preventDefault(),ie(t,zs,!1);else if((function(n){return ln&&Ie(n,"Backspace",{metaKey:!0})})(e))e.preventDefault(),ie(t,$s,!0);else if((function(n){return ln&&(Ie(n,"Delete",{metaKey:!0})||Ie(n,"k",{ctrlKey:!0}))})(e))e.preventDefault(),ie(t,$s,!1);else if((function(n){return Ie(n,"b",Kn)})(e))e.preventDefault(),ie(t,kn,"bold");else if((function(n){return Ie(n,"u",Kn)})(e))e.preventDefault(),ie(t,kn,"underline");else if((function(n){return Ie(n,"i",Kn)})(e))e.preventDefault(),ie(t,kn,"italic");else if((function(n){return Ie(n,"Tab",{shiftKey:"any"})})(e))ie(t,cx,e);else if((function(n){return Ie(n,"z",Kn)})(e))e.preventDefault(),ie(t,qd,void 0);else if((function(n){return ln?Ie(n,"z",{metaKey:!0,shiftKey:!0}):Ie(n,"y",{ctrlKey:!0})||Ie(n,"z",{ctrlKey:!0,shiftKey:!0})})(e))e.preventDefault(),ie(t,Vd,void 0);else{const n=t._editorState._selection;n===null||B(n)?vg(e)&&(e.preventDefault(),ie(t,Ou,e)):(function(r){return Ie(r,"c",Kn)})(e)?(e.preventDefault(),ie(t,il,e)):(function(r){return Ie(r,"x",Kn)})(e)?(e.preventDefault(),ie(t,Gd,e)):vg(e)&&(e.preventDefault(),ie(t,Ou,e))}return(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(e)&&t.dispatchCommand(f6,e),!0}function bx(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}const xi=new Map;function vx(e){const t=Y6(e.target);if(t===null)return;const n=Ux(t.anchorNode);if(n===null)return;Lu&&(Lu=!1,On(n,()=>{const c=Xi(),l=t.anchorNode;(mt(l)||dr(l))&&Pt(Zd(c,t,n,e))}));const r=sh(n),o=r[r.length-1],i=o._key,s=xi.get(i),a=s||o;a!==n&&Vp(t,a,!1),Vp(t,n,!0),n!==o?xi.set(i,n):s&&xi.delete(i)}function Yp(e){e._lexicalHandled=!0}function Gp(e){return e._lexicalHandled===!0}function g6(e){const t=Mu.get(e);if(t===void 0)return;const n=vc.get(t);if(n===void 0)return;const r=n-1;r>=0||U(164),Mu.delete(e),vc.set(t,r),r===0&&t.removeEventListener("selectionchange",vx);const o=cl(e);ih(o)?((function(s){if(s._parentEditor!==null){const a=sh(s),c=a[a.length-1]._key;xi.get(c)===s&&xi.delete(c)}else xi.delete(s._key)})(o),e.__lexicalEditor=null):o&&U(198);const i=bx(e);for(let s=0;s<i.length;s++)i[s]();e.__lexicalEventHandles=[]}function Fu(e,t,n){bt();const r=e.__key,o=e.getParent();if(o===null)return;const i=(function(a){const c=Z();if(!B(c)||!R(a))return c;const{anchor:l,focus:f}=c,u=l.getNode(),d=f.getNode();return Wu(u,a)&&l.set(a.__key,0,"element"),Wu(d,a)&&f.set(a.__key,0,"element"),c})(e);let s=!1;if(B(i)&&t){const a=i.anchor,c=i.focus;a.key===r&&(Cc(a,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),c.key===r&&(Cc(c,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else it(i)&&t&&e.isSelected()&&e.selectPrevious();if(B(i)&&t&&!s){const a=e.getIndexWithinParent();_o(e),Ac(i,o,a,-1)}else _o(e);n||jt(o)||o.canBeEmpty()||!o.isEmpty()||Fu(o,t),t&&i&&Ye(o)&&o.isEmpty()&&o.selectEnd()}const xx=Symbol.for("ephemeral");function wc(e){return e[xx]||!1}class un{constructor(t){F(this,"__type");F(this,"__key");F(this,"__parent");F(this,"__prev");F(this,"__next");F(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),B6(this,t)}static getType(){const{ownNodeType:t}=ul(this);return t===void 0&&U(64,this.name),t}static clone(t){U(65,this.name)}$config(){return{}}config(t,n){const r=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:r,type:t}),{[t]:n}}afterCloneFrom(t){this.__key===t.__key?(this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state):t.__state&&(this.__state=t.__state.getWritable(this))}getType(){return this.__type}isInline(){U(137,this.constructor.name)}isAttached(){let t=this.__key;for(;t!==null;){if(t==="root")return!0;const n=Xe(t);if(n===null)break;t=n.__parent}return!1}isSelected(t){const n=t||Z();if(n==null)return!1;const r=n.getNodes().some(o=>o.__key===this.__key);if(X(this))return r;if(B(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const o=this.getParent();if(Te(this)&&this.isInline()&&o){const i=n.isBackward()?n.focus:n.anchor;if(o.is(i.getNode())&&i.offset===o.getChildrenSize()&&this.is(o.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(t===null)return-1;let n=t.getFirstChild(),r=0;for(;n!==null;){if(this.is(n))return r;r++,n=n.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return t===null?null:Xe(t)}getParentOrThrow(){const t=this.getParent();return t===null&&U(66,this.__key),t}getTopLevelElement(){let t=this;for(;t!==null;){const n=t.getParent();if(jt(n))return R(t)||t===this&&Te(t)||U(194),t;t=n}return null}getTopLevelElementOrThrow(){const t=this.getTopLevelElement();return t===null&&U(67,this.__key),t}getParents(){const t=[];let n=this.getParent();for(;n!==null;)t.push(n),n=n.getParent();return t}getParentKeys(){const t=[];let n=this.getParent();for(;n!==null;)t.push(n.__key),n=n.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return t===null?null:Xe(t)}getPreviousSiblings(){const t=[],n=this.getParent();if(n===null)return t;let r=n.getFirstChild();for(;r!==null&&!r.is(this);)t.push(r),r=r.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return t===null?null:Xe(t)}getNextSiblings(){const t=[];let n=this.getNextSibling();for(;n!==null;)t.push(n),n=n.getNextSibling();return t}getCommonAncestor(t){const n=R(this)?this:this.getParent(),r=R(t)?t:t.getParent(),o=n&&r?Za(n,r):null;return o?o.commonAncestor:null}is(t){return t!=null&&this.__key===t.__key}isBefore(t){const n=Za(this,t);return n!==null&&(n.type==="descendant"||(n.type==="branch"?r1(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&U(279),!1)))}isParentOf(t){const n=Za(this,t);return n!==null&&n.type==="ancestor"}getNodesBetween(t){const n=this.isBefore(t),r=[],o=new Set;let i=this;for(;i!==null;){const s=i.__key;if(o.has(s)||(o.add(s),r.push(i)),i===t)break;const a=R(i)?n?i.getFirstChild():i.getLastChild():null;if(a!==null){i=a;continue}const c=n?i.getNextSibling():i.getPreviousSibling();if(c!==null){i=c;continue}const l=i.getParentOrThrow();if(o.has(l.__key)||r.push(l),l===t)break;let f=null,u=l;do{if(u===null&&U(68),f=n?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),u===null)break;f!==null||o.has(u.__key)||r.push(u)}while(f===null);i=f}return n||r.reverse(),r}isDirty(){const t=De()._dirtyLeaves;return t!==null&&t.has(this.__key)}getLatest(){if(wc(this))return this;const t=Xe(this.__key);return t===null&&U(113),t}getWritable(){if(wc(this))return this;bt();const t=qr(),n=De(),r=t._nodeMap,o=this.__key,i=this.getLatest(),s=n._cloneNotNeeded,a=Z();if(a!==null&&a.setCachedNodes(null),s.has(o))return _c(i),i;const c=e1(i);return s.add(o),_c(c),r.set(o,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(t,n){U(70)}updateDOM(t,n,r){U(71)}exportDOM(t){return{element:this.createDOM(t._config,t)}}exportJSON(){const t=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...t}}static importJSON(t){U(18,this.name)}updateFromJSON(t){return(function(n,r){const o=n.getWritable(),i=r.$;let s=i;for(const a of Hv(o).flatKeys)a in r&&(s!==void 0&&s!==i||(s={...i}),s[a]=r[a]);return(o.__state||s)&&GT(n).updateFromJSON(s),o})(this,t)}static transform(){return null}remove(t){Fu(this,!0,t)}replace(t,n){bt();let r=Z();r!==null&&(r=r.clone()),af(this,t);const o=this.getLatest(),i=this.__key,s=t.__key,a=t.getWritable(),c=this.getParentOrThrow().getWritable(),l=c.__size;_o(a);const f=o.getPreviousSibling(),u=o.getNextSibling(),d=o.__prev,h=o.__next,m=o.__parent;if(Fu(o,!1,!0),f===null?c.__first=s:f.getWritable().__next=s,a.__prev=d,u===null?c.__last=s:u.getWritable().__prev=s,a.__next=h,a.__parent=m,c.__size=l,n&&(R(this)&&R(a)||U(139),this.getChildren().forEach(p=>{a.append(p)})),B(r)){Pt(r);const p=r.anchor,g=r.focus;p.key===i&&Xp(p,a),g.key===i&&Xp(g,a)}return Nr()===i&&dt(s),a}insertAfter(t,n=!0){bt(),af(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.getParent(),s=Z();let a=!1,c=!1;if(i!==null){const h=t.getIndexWithinParent();if(_o(o),B(s)){const m=i.__key,p=s.anchor,g=s.focus;a=p.type==="element"&&p.key===m&&p.offset===h+1,c=g.type==="element"&&g.key===m&&g.offset===h+1}}const l=this.getNextSibling(),f=this.getParentOrThrow().getWritable(),u=o.__key,d=r.__next;if(l===null?f.__last=u:l.getWritable().__prev=u,f.__size++,r.__next=u,o.__next=d,o.__prev=r.__key,o.__parent=r.__parent,n&&B(s)){const h=this.getIndexWithinParent();Ac(s,f,h+1);const m=f.__key;a&&s.anchor.set(m,h+2,"element"),c&&s.focus.set(m,h+2,"element")}return t}insertBefore(t,n=!0){bt(),af(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.__key;_o(o);const s=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),c=r.__prev,l=this.getIndexWithinParent();s===null?a.__first=i:s.getWritable().__next=i,a.__size++,r.__prev=i,o.__prev=c,o.__next=r.__key,o.__parent=r.__parent;const f=Z();return n&&B(f)&&Ac(f,this.getParentOrThrow(),l),t}isParentRequired(){return!1}createParentElementNode(){return Tt()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,n){bt();const r=this.getPreviousSibling(),o=this.getParentOrThrow();if(r===null)return o.select(0,0);if(R(r))return r.select();if(!X(r)){const i=r.getIndexWithinParent()+1;return o.select(i,i)}return r.select(t,n)}selectNext(t,n){bt();const r=this.getNextSibling(),o=this.getParentOrThrow();if(r===null)return o.select();if(R(r))return r.select(0,0);if(!X(r)){const i=r.getIndexWithinParent();return o.select(i,i)}return r.select(t,n)}markDirty(){this.getWritable()}reconcileObservedMutation(t,n){this.markDirty()}}F(un,"importDOM");const ju="historic",y6="history-push",Ao="history-merge",b6="paste",v6="collaboration",x6="skip-scroll-into-view",w6="skip-dom-selection",A6="skip-selection-focus";class Zi extends un{static getType(){return"linebreak"}static clone(t){return new Zi(t.__key)}constructor(t){super(t)}getTextContent(){return`
599
+ `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:t=>(function(n){const r=n.parentElement;if(r!==null&&Sc(r)){const o=r.firstChild;if(o===n||o.nextSibling===n&&Pa(o)){const i=r.lastChild;if(i===n||i.previousSibling===n&&Pa(i))return!0}}return!1})(t)||(function(n){const r=n.parentElement;if(r!==null&&Sc(r)){const o=r.firstChild;if(o===n||o.nextSibling===n&&Pa(o))return!1;const i=r.lastChild;if(i===n||i.previousSibling===n&&Pa(i))return!0}return!1})(t)?null:{conversion:C6,priority:0}}}static importJSON(t){return Fo().updateFromJSON(t)}}function C6(e){return{node:Fo()}}function Fo(){return Vr(new Zi)}function Co(e){return e instanceof Zi}function Pa(e){return dr(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function tf(e,t){return 16&t?"code":t&zv?"mark":32&t?"sub":64&t?"sup":null}function nf(e,t){return 1&t?"strong":2&t?"em":"span"}function wx(e,t,n,r,o){const i=r.classList;let s=wi(o,"base");s!==void 0&&i.add(...s),s=wi(o,"underlineStrikethrough");let a=!1;const c=8&t&&4&t;s!==void 0&&(8&n&&4&n?(a=!0,c||i.add(...s)):c&&i.remove(...s));for(const l in Lo){const f=Lo[l];if(s=wi(o,l),s!==void 0)if(n&f){if(a&&(l==="underline"||l==="strikethrough")){t&f&&i.remove(...s);continue}((t&f)===0||c&&l==="underline"||l==="strikethrough")&&i.add(...s)}else t&f&&i.remove(...s)}}function Ax(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?tl:"");if(r==null)t.textContent=i;else{const s=r.nodeValue;if(s!==i)if(o||Io){const[a,c,l]=(function(f,u){const d=f.length,h=u.length;let m=0,p=0;for(;m<d&&m<h&&f[m]===u[m];)m++;for(;p+m<d&&p+m<h&&f[d-p-1]===u[h-p-1];)p++;return[m,d-m-p,u.slice(m,h-p)]})(s,i);c!==0&&r.deleteData(a,c),r.insertData(a,l)}else r.nodeValue=i}}function Qp(e,t,n,r,o,i){Ax(o,e,t);const s=i.theme.text;s!==void 0&&wx(0,0,r,e,s)}function Ma(e,t){const n=document.createElement(t);return n.appendChild(e),n}class Hr extends un{constructor(n="",r){super(r);F(this,"__text");F(this,"__format");F(this,"__style");F(this,"__mode");F(this,"__detail");this.__text=n,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(n){return new Hr(n.__text,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__text=n.__text,this.__format=n.__format,this.__style=n.__style,this.__mode=n.__mode,this.__detail=n.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const n=this.getLatest();return UT[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Nr()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const r=Lo[n];return(this.getFormat()&r)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,r){return Ec(this.getLatest().__format,n,r)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,r){const o=this.__format,i=tf(0,o),s=nf(0,o),a=i===null?s:i,c=document.createElement(a);let l=c;this.hasFormat("code")&&c.setAttribute("spellcheck","false"),i!==null&&(l=document.createElement(s),c.appendChild(l)),Qp(l,this,0,o,this.__text,n);const f=this.__style;return f!==""&&(c.style.cssText=f),c}updateDOM(n,r,o){const i=this.__text,s=n.__format,a=this.__format,c=tf(0,s),l=tf(0,a),f=nf(0,s),u=nf(0,a);if((c===null?f:c)!==(l===null?u:l))return!0;if(c===l&&f!==u){const g=r.firstChild;g==null&&U(48);const y=document.createElement(u);return Qp(y,this,0,a,i,o),r.replaceChild(y,g),!1}let d=r;l!==null&&c!==null&&(d=r.firstChild,d==null&&U(49)),Ax(i,d,this);const h=o.theme.text;h!==void 0&&s!==a&&wx(0,s,a,d,h);const m=n.__style,p=this.__style;return m!==p&&(r.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:k6,priority:0}),b:()=>({conversion:_6,priority:0}),code:()=>({conversion:Un,priority:0}),em:()=>({conversion:Un,priority:0}),i:()=>({conversion:Un,priority:0}),mark:()=>({conversion:Un,priority:0}),s:()=>({conversion:Un,priority:0}),span:()=>({conversion:E6,priority:0}),strong:()=>({conversion:Un,priority:0}),sub:()=>({conversion:Un,priority:0}),sup:()=>({conversion:Un,priority:0}),u:()=>({conversion:Un,priority:0})}}static importJSON(n){return ot().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTextContent(n.text).setFormat(n.format).setDetail(n.detail).setMode(n.mode).setStyle(n.style)}exportDOM(n){let{element:r}=super.exportDOM(n);return mt(r)||U(132),r.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?r.style.textTransform="lowercase":this.hasFormat("uppercase")?r.style.textTransform="uppercase":this.hasFormat("capitalize")&&(r.style.textTransform="capitalize"),this.hasFormat("bold")&&(r=Ma(r,"b")),this.hasFormat("italic")&&(r=Ma(r,"i")),this.hasFormat("strikethrough")&&(r=Ma(r,"s")),this.hasFormat("underline")&&(r=Ma(r,"u")),{element:r}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(n,r){}setFormat(n){const r=this.getWritable();return r.__format=typeof n=="string"?Lo[n]:n,r}setDetail(n){const r=this.getWritable();return r.__detail=typeof n=="string"?zT[n]:n,r}setStyle(n){const r=this.getWritable();return r.__style=n,r}toggleFormat(n){const r=Ec(this.getFormat(),n,null);return this.setFormat(r)}toggleDirectionless(){const n=this.getWritable();return n.__detail^=1,n}toggleUnmergeable(){const n=this.getWritable();return n.__detail^=2,n}setMode(n){const r=BT[n];if(this.__mode===r)return this;const o=this.getWritable();return o.__mode=r,o}setTextContent(n){if(this.__text===n)return this;const r=this.getWritable();return r.__text=n,r}select(n,r){bt();let o=n,i=r;const s=Z(),a=this.getTextContent(),c=this.__key;if(typeof a=="string"){const l=a.length;o===void 0&&(o=l),i===void 0&&(i=l)}else o=0,i=0;if(!B(s))return Sx(c,o,c,i,"text","text");{const l=Nr();l!==s.anchor.key&&l!==s.focus.key||dt(c),s.setTextNodeRange(this,o,this,i)}return s}selectStart(){return this.select(0,0)}selectEnd(){const n=this.getTextContentSize();return this.select(n,n)}spliceText(n,r,o,i){const s=this.getWritable(),a=s.__text,c=o.length;let l=n;l<0&&(l=c+l,l<0&&(l=0));const f=Z();if(i&&B(f)){const d=n+c;f.setTextNodeRange(s,d,s,d)}const u=a.slice(0,l)+o+a.slice(l+r);return s.__text=u,s}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){bt();const r=this.getLatest(),o=r.getTextContent();if(o==="")return[];const i=r.__key,s=Nr(),a=o.length;n.sort((O,P)=>O-P),n.push(a);const c=[],l=n.length;for(let O=0,P=0;O<a&&P<=l;P++){const I=n[P];I>O&&(c.push(o.slice(O,I)),O=I)}const f=c.length;if(f===1)return[r];const u=c[0],d=r.getParent();let h;const m=r.getFormat(),p=r.getStyle(),g=r.__detail;let y=!1,b=null,x=null;const w=Z();if(B(w)){const[O,P]=w.isBackward()?[w.focus,w.anchor]:[w.anchor,w.focus];O.type==="text"&&O.key===i&&(b=O),P.type==="text"&&P.key===i&&(x=P)}r.isSegmented()?(h=ot(u),h.__format=m,h.__style=p,h.__detail=g,h.__state=zp(r,h),y=!0):h=r.setTextContent(u);const A=[h];for(let O=1;O<f;O++){const P=ot(c[O]);P.__format=m,P.__style=p,P.__detail=g,P.__state=zp(r,P);const I=P.__key;s===i&&dt(I),A.push(P)}const E=b?b.offset:null,_=x?x.offset:null;let S=0;for(const O of A){if(!b&&!x)break;const P=S+O.getTextContentSize();if(b!==null&&E!==null&&E<=P&&E>=S&&(b.set(O.getKey(),E-S,"text"),E<P&&(b=null)),x!==null&&_!==null&&_<=P&&_>=S){x.set(O.getKey(),_-S,"text");break}S=P}if(d!==null){(function(I){const $=I.getPreviousSibling(),D=I.getNextSibling();$!==null&&_c($),D!==null&&_c(D)})(this);const O=d.getWritable(),P=this.getIndexWithinParent();y?(O.splice(P,0,A),this.remove()):O.splice(P,1,A),B(w)&&Ac(w,d,P,f-1)}return A}mergeWithSibling(n){const r=n===this.getPreviousSibling();r||n===this.getNextSibling()||U(50);const o=this.__key,i=n.__key,s=this.__text,a=s.length;Nr()===i&&dt(o);const c=Z();if(B(c)){const d=c.anchor,h=c.focus;d!==null&&d.key===i&&sg(d,r,o,n,a),h!==null&&h.key===i&&sg(h,r,o,n,a)}const l=n.__text,f=r?l+s:s+l;this.setTextContent(f);const u=this.getWritable();return n.remove(),u}isTextEntity(){return!1}}function E6(e){return{forChild:Qd(e.style),node:null}}function _6(e){const t=e,n=t.style.fontWeight==="normal";return{forChild:Qd(t.style,n?void 0:"bold"),node:null}}const Zp=new WeakMap;function S6(e){if(!mt(e))return!1;if(e.nodeName==="PRE")return!0;const t=e.style.whiteSpace;return typeof t=="string"&&t.startsWith("pre")}function k6(e){const t=e;e.parentElement===null&&U(129);let n=t.textContent||"";if((function(r){let o,i=r.parentNode;const s=[r];for(;i!==null&&(o=Zp.get(i))===void 0&&!S6(i);)s.push(i),i=i.parentNode;const a=o===void 0?i:o;for(let c=0;c<s.length;c++)Zp.set(s[c],a);return a})(t)!==null){const r=n.split(/(\r?\n|\t)/),o=[],i=r.length;for(let s=0;s<i;s++){const a=r[s];a===`
600
600
  `||a===`\r
601
- `?o.push(Do()):a===" "?o.push(oa()):a!==""&&o.push(rt(a))}return{node:o}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let r=t,o=!0;for(;r!==null&&(r=Qp(r,!1))!==null;){const i=r.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(n=n.slice(1)),o=!1;break}}o&&(n=n.slice(1))}if(n[n.length-1]===" "){let r=t,o=!0;for(;r!==null&&(r=Qp(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){o=!1;break}o&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:rt(n)}}function Qp(e,t){let n=e;for(;;){let r;for(;(r=t?n.nextSibling:n.previousSibling)===null;){const i=n.parentElement;if(i===null)return null;n=i}if(n=r,mt(n)){const i=n.style.display;if(i===""&&!Hu(n)||i!==""&&!i.startsWith("inline"))return null}let o=n;for(;(o=t?n.firstChild:n.lastChild)!==null;)n=o;if(ur(n))return n;if(n.nodeName==="BR")return null}}const g6={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Bn(e){const t=g6[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:Yd(e.style,t),node:null}}function rt(e=""){return qr(new Kr(e))}function X(e){return e instanceof Kr}function Yd(e,t){const n=e.fontWeight,r=e.textDecoration.split(" "),o=n==="700"||n==="bold",i=r.includes("line-through"),s=e.fontStyle==="italic",a=r.includes("underline"),c=e.verticalAlign;return l=>(X(l)&&(o&&!l.hasFormat("bold")&&l.toggleFormat("bold"),i&&!l.hasFormat("strikethrough")&&l.toggleFormat("strikethrough"),s&&!l.hasFormat("italic")&&l.toggleFormat("italic"),a&&!l.hasFormat("underline")&&l.toggleFormat("underline"),c!=="sub"||l.hasFormat("subscript")||l.toggleFormat("subscript"),c!=="super"||l.hasFormat("superscript")||l.toggleFormat("superscript"),t&&!l.hasFormat(t)&&l.toggleFormat(t)),l)}class Zi extends Kr{static getType(){return"tab"}static clone(t){return new Zi(t.__key)}constructor(t){super(" ",t),this.__detail=2}static importDOM(){return null}createDOM(t){const n=super.createDOM(t),r=xi(t.theme,"tab");return r!==void 0&&n.classList.add(...r),n}static importJSON(t){return oa().updateFromJSON(t)}setTextContent(t){return t!==" "&&t!==""&&Nv(126),super.setTextContent(" ")}spliceText(t,n,r,o){return r===""&&n===0||r===" "&&n===1||B(286),this}setDetail(t){return t!==2&&B(127),this}setMode(t){return t!=="normal"&&B(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function oa(){return qr(new Zi)}function gx(e){return e instanceof Zi}class y6{constructor(t,n,r){D(this,"key");D(this,"offset");D(this,"type");D(this,"_selection");this._selection=null,this.key=t,this.offset=n,this.type=r}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){return this.key===t.key?this.offset<t.offset:Qx(Qt(or(this,"next")),Qt(or(t,"next")))<0}getNode(){const t=Xe(this.key);return t===null&&B(20),t}set(t,n,r,o){const i=this._selection,s=this.key;o&&this.key===t&&this.offset===n&&this.type===r||(this.key=t,this.offset=n,this.type=r,ia()||(Tr()===s&&ut(t),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}}function Mn(e,t,n){return new y6(e,t,n)}function nf(e,t){let n=t.__key,r=e.offset,o="element";if(X(t)){o="text";const i=t.getTextContentSize();r>i&&(r=i)}else if(!R(t)){const i=t.getNextSibling();if(X(i))n=i.__key,r=0,o="text";else{const s=t.getParent();s&&(n=s.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,o)}function Gp(e,t){if(R(t)){const n=t.getLastDescendant();R(n)||X(n)?nf(e,n):nf(e,t)}else nf(e,t)}class ol{constructor(t){D(this,"_nodes");D(this,"_cachedNodes");D(this,"dirty");this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!ot(t))return!1;const n=this._nodes,r=t._nodes;return n.size===r.size&&Array.from(n).every(o=>r.has(o))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new ol(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const n=this.getNodes(),r=n.length,o=n[r-1];let i;if(X(o))i=o.select();else{const s=o.getIndexWithinParent()+1;i=o.getParentOrThrow().select(s,s)}i.insertNodes(t);for(let s=0;s<r;s++)n[s].remove()}getNodes(){const t=this._cachedNodes;if(t!==null)return t;const n=this._nodes,r=[];for(const o of n){const i=Xe(o);i!==null&&r.push(i)}return ia()||(this._cachedNodes=r),r}getTextContent(){const t=this.getNodes();let n="";for(let r=0;r<t.length;r++)n+=t[r].getTextContent();return n}deleteNodes(){const t=this.getNodes();if((Z()||Ji())===this&&t[0]){const n=xt(t[0],"next");Q6(zr(n,n))}for(const n of t)n.remove()}}function $(e){return e instanceof Ho}class Ho{constructor(t,n,r,o){D(this,"format");D(this,"style");D(this,"anchor");D(this,"focus");D(this,"_cachedNodes");D(this,"dirty");this.anchor=t,this.focus=n,t._selection=this,n._selection=this,this._cachedNodes=null,this.format=r,this.style=o,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return!!$(t)&&this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const t=this._cachedNodes;if(t!==null)return t;const n=(function(r){const o=[],[i,s]=r.getTextSlices();i&&o.push(i.caret.origin);const a=new Set,c=new Set;for(const l of r)if(On(l)){const{origin:f}=l;o.length===0?a.add(f):(c.add(f),o.push(f))}else{const{origin:f}=l;R(f)&&c.has(f)||o.push(f)}if(s&&o.push(s.caret.origin),$i(r.focus)&&R(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let l=dn(r.focus.origin,"previous");On(l)&&a.has(l.origin)&&!l.origin.isEmpty()&&l.origin.is(o[o.length-1]);l=dh(l))a.delete(l.origin),o.pop();for(;o.length>1;){const l=o[o.length-1];if(!R(l)||c.has(l)||l.isEmpty()||a.has(l))break;o.pop()}if(o.length===0&&r.isCollapsed()){const l=Qt(r.anchor),f=Qt(r.anchor.getFlipped()),u=h=>Mr(h)?h.origin:h.getNodeAtCaret(),d=u(l)||u(f)||(r.anchor.getNodeAtCaret()?l.origin:f.origin);o.push(d)}return o})(Jx(Ag(this),"next"));return ia()||(this._cachedNodes=n),n}setTextNodeRange(t,n,r,o){this.anchor.set(t.__key,n,"text"),this.focus.set(r.__key,o,"text")}getTextContent(){const t=this.getNodes();if(t.length===0)return"";const n=t[0],r=t[t.length-1],o=this.anchor,i=this.focus,s=o.isBefore(i),[a,c]=ju(this);let l="",f=!0;for(let u=0;u<t.length;u++){const d=t[u];if(R(d)&&!d.isInline())f||(l+=`
602
- `),f=!d.isEmpty();else if(f=!1,X(d)){let h=d.getTextContent();d===n?d===r?o.type==="element"&&i.type==="element"&&i.offset!==o.offset||(h=a<c?h.slice(a,c):h.slice(c,a)):h=s?h.slice(a):h.slice(c):d===r&&(h=s?h.slice(0,c):h.slice(0,a)),l+=h}else!Te(d)&&!Ao(d)||d===r&&this.isCollapsed()||(l+=d.getTextContent())}return l}applyDOMRange(t){const n=Re(),r=n.getEditorState()._selection,o=bx(t.startContainer,t.startOffset,t.endContainer,t.endOffset,n,r);if(o===null)return;const[i,s]=o;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(s.key,s.offset,s.type,!0),Fi(this)}clone(){const t=this.anchor,n=this.focus;return new Ho(Mn(t.key,t.offset,t.type),Mn(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(t){this.format=Ac(this.format,t,null),this.dirty=!0}setFormat(t){this.format=t,this.dirty=!0}setStyle(t){this.style=t,this.dirty=!0}hasFormat(t){const n=Io[t];return(this.format&n)!==0}insertRawText(t){const n=t.split(/(\r?\n|\t)/),r=[],o=n.length;for(let i=0;i<o;i++){const s=n[i];s===`
601
+ `?o.push(Fo()):a===" "?o.push(ia()):a!==""&&o.push(ot(a))}return{node:o}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let r=t,o=!0;for(;r!==null&&(r=Jp(r,!1))!==null;){const i=r.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(n=n.slice(1)),o=!1;break}}o&&(n=n.slice(1))}if(n[n.length-1]===" "){let r=t,o=!0;for(;r!==null&&(r=Jp(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){o=!1;break}o&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:ot(n)}}function Jp(e,t){let n=e;for(;;){let r;for(;(r=t?n.nextSibling:n.previousSibling)===null;){const i=n.parentElement;if(i===null)return null;n=i}if(n=r,mt(n)){const i=n.style.display;if(i===""&&!qu(n)||i!==""&&!i.startsWith("inline"))return null}let o=n;for(;(o=t?n.firstChild:n.lastChild)!==null;)n=o;if(dr(n))return n;if(n.nodeName==="BR")return null}}const T6={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Un(e){const t=T6[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:Qd(e.style,t),node:null}}function ot(e=""){return Vr(new Hr(e))}function X(e){return e instanceof Hr}function Qd(e,t){const n=e.fontWeight,r=e.textDecoration.split(" "),o=n==="700"||n==="bold",i=r.includes("line-through"),s=e.fontStyle==="italic",a=r.includes("underline"),c=e.verticalAlign;return l=>(X(l)&&(o&&!l.hasFormat("bold")&&l.toggleFormat("bold"),i&&!l.hasFormat("strikethrough")&&l.toggleFormat("strikethrough"),s&&!l.hasFormat("italic")&&l.toggleFormat("italic"),a&&!l.hasFormat("underline")&&l.toggleFormat("underline"),c!=="sub"||l.hasFormat("subscript")||l.toggleFormat("subscript"),c!=="super"||l.hasFormat("superscript")||l.toggleFormat("superscript"),t&&!l.hasFormat(t)&&l.toggleFormat(t)),l)}class Ji extends Hr{static getType(){return"tab"}static clone(t){return new Ji(t.__key)}constructor(t){super(" ",t),this.__detail=2}static importDOM(){return null}createDOM(t){const n=super.createDOM(t),r=wi(t.theme,"tab");return r!==void 0&&n.classList.add(...r),n}static importJSON(t){return ia().updateFromJSON(t)}setTextContent(t){return t!==" "&&t!==""&&Dv(126),super.setTextContent(" ")}spliceText(t,n,r,o){return r===""&&n===0||r===" "&&n===1||U(286),this}setDetail(t){return t!==2&&U(127),this}setMode(t){return t!=="normal"&&U(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function ia(){return Vr(new Ji)}function Cx(e){return e instanceof Ji}class N6{constructor(t,n,r){F(this,"key");F(this,"offset");F(this,"type");F(this,"_selection");this._selection=null,this.key=t,this.offset=n,this.type=r}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){return this.key===t.key?this.offset<t.offset:n1(Gt(ir(this,"next")),Gt(ir(t,"next")))<0}getNode(){const t=Xe(this.key);return t===null&&U(20),t}set(t,n,r,o){const i=this._selection,s=this.key;o&&this.key===t&&this.offset===n&&this.type===r||(this.key=t,this.offset=n,this.type=r,sa()||(Nr()===s&&dt(t),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}}function In(e,t,n){return new N6(e,t,n)}function rf(e,t){let n=t.__key,r=e.offset,o="element";if(X(t)){o="text";const i=t.getTextContentSize();r>i&&(r=i)}else if(!R(t)){const i=t.getNextSibling();if(X(i))n=i.__key,r=0,o="text";else{const s=t.getParent();s&&(n=s.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,o)}function Xp(e,t){if(R(t)){const n=t.getLastDescendant();R(n)||X(n)?rf(e,n):rf(e,t)}else rf(e,t)}class sl{constructor(t){F(this,"_nodes");F(this,"_cachedNodes");F(this,"dirty");this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!it(t))return!1;const n=this._nodes,r=t._nodes;return n.size===r.size&&Array.from(n).every(o=>r.has(o))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new sl(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const n=this.getNodes(),r=n.length,o=n[r-1];let i;if(X(o))i=o.select();else{const s=o.getIndexWithinParent()+1;i=o.getParentOrThrow().select(s,s)}i.insertNodes(t);for(let s=0;s<r;s++)n[s].remove()}getNodes(){const t=this._cachedNodes;if(t!==null)return t;const n=this._nodes,r=[];for(const o of n){const i=Xe(o);i!==null&&r.push(i)}return sa()||(this._cachedNodes=r),r}getTextContent(){const t=this.getNodes();let n="";for(let r=0;r<t.length;r++)n+=t[r].getTextContent();return n}deleteNodes(){const t=this.getNodes();if((Z()||Xi())===this&&t[0]){const n=xt(t[0],"next");aN($r(n,n))}for(const n of t)n.remove()}}function B(e){return e instanceof qo}class qo{constructor(t,n,r,o){F(this,"format");F(this,"style");F(this,"anchor");F(this,"focus");F(this,"_cachedNodes");F(this,"dirty");this.anchor=t,this.focus=n,t._selection=this,n._selection=this,this._cachedNodes=null,this.format=r,this.style=o,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return!!B(t)&&this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const t=this._cachedNodes;if(t!==null)return t;const n=(function(r){const o=[],[i,s]=r.getTextSlices();i&&o.push(i.caret.origin);const a=new Set,c=new Set;for(const l of r)if(Pn(l)){const{origin:f}=l;o.length===0?a.add(f):(c.add(f),o.push(f))}else{const{origin:f}=l;R(f)&&c.has(f)||o.push(f)}if(s&&o.push(s.caret.origin),Bi(r.focus)&&R(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let l=hn(r.focus.origin,"previous");Pn(l)&&a.has(l.origin)&&!l.origin.isEmpty()&&l.origin.is(o[o.length-1]);l=mh(l))a.delete(l.origin),o.pop();for(;o.length>1;){const l=o[o.length-1];if(!R(l)||c.has(l)||l.isEmpty()||a.has(l))break;o.pop()}if(o.length===0&&r.isCollapsed()){const l=Gt(r.anchor),f=Gt(r.anchor.getFlipped()),u=h=>Ir(h)?h.origin:h.getNodeAtCaret(),d=u(l)||u(f)||(r.anchor.getNodeAtCaret()?l.origin:f.origin);o.push(d)}return o})(i1(_g(this),"next"));return sa()||(this._cachedNodes=n),n}setTextNodeRange(t,n,r,o){this.anchor.set(t.__key,n,"text"),this.focus.set(r.__key,o,"text")}getTextContent(){const t=this.getNodes();if(t.length===0)return"";const n=t[0],r=t[t.length-1],o=this.anchor,i=this.focus,s=o.isBefore(i),[a,c]=zu(this);let l="",f=!0;for(let u=0;u<t.length;u++){const d=t[u];if(R(d)&&!d.isInline())f||(l+=`
602
+ `),f=!d.isEmpty();else if(f=!1,X(d)){let h=d.getTextContent();d===n?d===r?o.type==="element"&&i.type==="element"&&i.offset!==o.offset||(h=a<c?h.slice(a,c):h.slice(c,a)):h=s?h.slice(a):h.slice(c):d===r&&(h=s?h.slice(0,c):h.slice(0,a)),l+=h}else!Te(d)&&!Co(d)||d===r&&this.isCollapsed()||(l+=d.getTextContent())}return l}applyDOMRange(t){const n=De(),r=n.getEditorState()._selection,o=_x(t.startContainer,t.startOffset,t.endContainer,t.endOffset,n,r);if(o===null)return;const[i,s]=o;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(s.key,s.offset,s.type,!0),ji(this)}clone(){const t=this.anchor,n=this.focus;return new qo(In(t.key,t.offset,t.type),In(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(t){this.format=Ec(this.format,t,null),this.dirty=!0}setFormat(t){this.format=t,this.dirty=!0}setStyle(t){this.style=t,this.dirty=!0}hasFormat(t){const n=Lo[t];return(this.format&n)!==0}insertRawText(t){const n=t.split(/(\r?\n|\t)/),r=[],o=n.length;for(let i=0;i<o;i++){const s=n[i];s===`
603
603
  `||s===`\r
604
- `?r.push(Do()):s===" "?r.push(oa()):r.push(rt(s))}this.insertNodes(r)}insertText(t){const n=this.anchor,r=this.focus,o=this.format,i=this.style;let s=n,a=r;!this.isCollapsed()&&r.isBefore(n)&&(s=r,a=n),s.type==="element"&&(function(p,y,b,x){const w=p.getNode(),A=w.getChildAtIndex(p.offset),_=rt();if(_.setFormat(b),_.setStyle(x),Xd(A))A.splice(0,0,[_]);else{const S=Ye(w)?Tt().append(_):_;A===null?w.append(S):A.insertBefore(S)}p.is(y)&&y.set(_.__key,0,"text"),p.set(_.__key,0,"text")})(s,a,o,i),a.type==="element"&&Uo(a,Qt(or(a,"next")));const c=s.offset;let l=a.offset;const f=this.getNodes(),u=f.length;let d=f[0];X(d)||B(26);const h=d.getTextContent().length,m=d.getParentOrThrow();let g=f[u-1];if(u===1&&a.type==="element"&&(l=h,a.set(s.key,l,"text")),this.isCollapsed()&&c===h&&(Hn(d)||!d.canInsertTextAfter()||!m.canInsertTextAfter()&&d.getNextSibling()===null)){let p=d.getNextSibling();if(X(p)&&p.canInsertTextBefore()&&!Hn(p)||(p=rt(),p.setFormat(o),p.setStyle(i),m.canInsertTextAfter()?d.insertAfter(p):m.insertAfter(p)),p.select(0,0),d=p,t!=="")return void this.insertText(t)}else if(this.isCollapsed()&&c===0&&(Hn(d)||!d.canInsertTextBefore()||!m.canInsertTextBefore()&&d.getPreviousSibling()===null)){let p=d.getPreviousSibling();if(X(p)&&!Hn(p)||(p=rt(),p.setFormat(o),m.canInsertTextBefore()?d.insertBefore(p):m.insertBefore(p)),p.select(),d=p,t!=="")return void this.insertText(t)}else if(d.isSegmented()&&c!==h){const p=rt(d.getTextContent());p.setFormat(o),d.replace(p),d=p}else if(!this.isCollapsed()&&t!==""){const p=g.getParent();if(!m.canInsertTextBefore()||!m.canInsertTextAfter()||R(p)&&(!p.canInsertTextBefore()||!p.canInsertTextAfter()))return this.insertText(""),yx(this.anchor,this.focus,null),void this.insertText(t)}if(u===1){if(Co(d)){const x=rt(t);return x.select(),void d.replace(x)}const p=d.getFormat(),y=d.getStyle();if(c!==l||p===o&&y===i){if(gx(d)){const x=rt(t);return x.setFormat(o),x.setStyle(i),x.select(),void d.replace(x)}}else{if(d.getTextContent()!==""){const x=rt(t);if(x.setFormat(o),x.setStyle(i),x.select(),c===0)d.insertBefore(x,!1);else{const[w]=d.splitText(c);w.insertAfter(x,!1)}return void(x.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length))}d.setFormat(o),d.setStyle(i)}const b=l-c;d=d.spliceText(c,b,t,!0),d.getTextContent()===""?d.remove():this.anchor.type==="text"&&(d.isComposing()?this.anchor.offset-=t.length:(this.format=p,this.style=y))}else{const p=new Set([...d.getParentKeys(),...g.getParentKeys()]),y=R(d)?d:d.getParentOrThrow();let b=R(g)?g:g.getParentOrThrow(),x=g;if(!y.is(b)&&b.isInline())do x=b,b=b.getParentOrThrow();while(b.isInline());if(a.type==="text"&&(l!==0||g.getTextContent()==="")||a.type==="element"&&g.getIndexWithinParent()<l)if(X(g)&&!Co(g)&&l!==g.getTextContentSize()){if(g.isSegmented()){const E=rt(g.getTextContent());g.replace(E),g=E}Ye(a.getNode())||a.type!=="text"||(g=g.spliceText(0,l,"")),p.add(g.__key)}else{const E=g.getParentOrThrow();E.canBeEmpty()||E.getChildrenSize()!==1?g.remove():E.remove()}else p.add(g.__key);const w=b.getChildren(),A=new Set(f),_=y.is(b),S=y.isInline()&&d.getNextSibling()===null?y:d;for(let E=w.length-1;E>=0;E--){const N=w[E];if(N.is(d)||R(N)&&N.isParentOf(d))break;N.isAttached()&&(!A.has(N)||N.is(x)?_||S.insertAfter(N,!1):N.remove())}if(!_){let E=b,N=null;for(;E!==null;){const P=E.getChildren(),I=P.length;(I===0||P[I-1].is(N))&&(p.delete(E.__key),N=E),E=E.getParent()}}if(Co(d))if(c===h)d.select();else{const E=rt(t);E.select(),d.replace(E)}else d=d.spliceText(c,h-c,t,!0),d.getTextContent()===""?d.remove():d.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length);for(let E=1;E<u;E++){const N=f[E],P=N.__key;p.has(P)||N.remove()}}}removeText(){const t=Z()===this;Ga(this,G6(Ag(this))),t&&Z()!==this&&Pt(this)}formatText(t,n=null){if(this.isCollapsed())return this.toggleFormat(t),void ut(null);const r=this.getNodes(),o=[];for(const w of r)X(w)&&o.push(w);const i=w=>{r.forEach(A=>{if(R(A)){const _=A.getFormatFlags(t,w);A.setTextFormat(_)}})},s=o.length;if(s===0)return this.toggleFormat(t),ut(null),void i(n);const a=this.anchor,c=this.focus,l=this.isBackward(),f=l?c:a,u=l?a:c;let d=0,h=o[0],m=f.type==="element"?0:f.offset;if(f.type==="text"&&m===h.getTextContentSize()&&(d=1,h=o[1],m=0),h==null)return;const g=h.getFormatFlags(t,n);i(g);const p=s-1;let y=o[p];const b=u.type==="text"?u.offset:y.getTextContentSize();if(h.is(y)){if(m===b)return;if(Hn(h)||m===0&&b===h.getTextContentSize())h.setFormat(g);else{const w=h.splitText(m,b),A=m===0?w[0]:w[1];A.setFormat(g),f.type==="text"&&f.set(A.__key,0,"text"),u.type==="text"&&u.set(A.__key,b-m,"text")}return void(this.format=g)}m===0||Hn(h)||([,h]=h.splitText(m),m=0),h.setFormat(g);const x=y.getFormatFlags(t,g);b>0&&(b===y.getTextContentSize()||Hn(y)||([y]=y.splitText(b)),y.setFormat(x));for(let w=d+1;w<p;w++){const A=o[w],_=A.getFormatFlags(t,x);A.setFormat(_)}f.type==="text"&&f.set(h.__key,m,"text"),u.type==="text"&&u.set(y.__key,b,"text"),this.format=g|x}insertNodes(t){if(t.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const m=Z();return $(m)||B(134),m.insertNodes(t)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=at(n,vr),o=t[t.length-1];if(R(r)&&"__language"in r){if("__language"in t[0])this.insertText(t[0].getTextContent());else{const m=rf(this);r.splice(m,0,t),o.selectEnd()}return}if(!t.some(m=>(R(m)||Te(m))&&!m.isInline())){R(r)||B(211,n.constructor.name,n.getType());const m=rf(this);return r.splice(m,0,t),void o.selectEnd()}const i=(function(m){const g=Tt();let p=null;for(let y=0;y<m.length;y++){const b=m[y],x=Ao(b);if(x||Te(b)&&b.isInline()||R(b)&&b.isInline()||X(b)||b.isParentRequired()){if(p===null&&(p=b.createParentElementNode(),g.append(p),x))continue;p!==null&&p.append(b)}else g.append(b),p=null}return g})(t),s=i.getLastDescendant(),a=i.getChildren(),c=!R(r)||!r.isEmpty()?this.insertParagraph():null,l=a[a.length-1];let f=a[0];var u;R(u=f)&&vr(u)&&!u.isEmpty()&&R(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(R(r)||B(211,n.constructor.name,n.getType()),r.append(...f.getChildren()),f=a[1]),f&&(r===null&&B(212,n.constructor.name,n.getType()),(function(m,g){const p=g.getParentOrThrow().getLastChild();let y=g;const b=[g];for(;y!==p;)y.getNextSibling()||B(140),y=y.getNextSibling(),b.push(y);let x=m;for(const w of b)x=x.insertAfter(w)})(r,f));const d=at(s,vr);c&&R(d)&&(c.canMergeWhenEmpty()||vr(l))&&(d.append(...c.getChildren()),c.remove()),R(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const h=R(r)?r.getLastChild():null;Ao(h)&&d!==r&&h.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Tt();return We().splice(this.anchor.offset,0,[s]),s.select(),s}const t=rf(this),n=at(this.anchor.getNode(),vr);R(n)||B(213);const r=n.getChildAtIndex(t),o=r?[r,...r.getNextSiblings()]:[],i=n.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(t){const n=Do();if(this.insertNodes([n]),t){const r=n.getParentOrThrow(),o=n.getIndexWithinParent();r.select(o,o)}}extract(){const t=[...this.getNodes()],n=t.length;let r=t[0],o=t[n-1];const[i,s]=ju(this),a=this.isBackward(),[c,l]=a?[this.focus,this.anchor]:[this.anchor,this.focus],[f,u]=a?[s,i]:[i,s];if(n===0)return[];if(n===1){if(X(r)&&!this.isCollapsed()){const d=r.splitText(f,u),h=f===0?d[0]:d[1];return h?(c.set(h.getKey(),0,"text"),l.set(h.getKey(),h.getTextContentSize(),"text"),[h]):[]}return[r]}if(X(r)&&(f===r.getTextContentSize()?t.shift():f!==0&&([,r]=r.splitText(f),t[0]=r,c.set(r.getKey(),0,"text"))),X(o)){const d=o.getTextContent().length;u===0?t.pop():u!==d&&([o]=o.splitText(u),t[t.length-1]=o,l.set(o.getKey(),o.getTextContentSize(),"text"))}return t}modify(t,n,r){if(og(this,t,n,r))return;const o=t==="move",i=Re(),s=tn(en(i));if(!s)return;const a=i._blockCursorElement,c=i._rootElement,l=this.focus.getNode();if(c===null||a===null||!R(l)||l.isInline()||l.canBeEmpty()||Wu(a,i,c),this.dirty){let f=jo(i,this.anchor.key),u=jo(i,this.focus.key);this.anchor.type==="text"&&(f=ji(f)),this.focus.type==="text"&&(u=ji(u)),f&&u&&Ax(s,f,this.anchor.offset,u,this.focus.offset)}if((function(f,u,d,h){f.modify(u,d,h)})(s,t,n?"backward":"forward",r),s.rangeCount>0){const f=s.getRangeAt(0),u=this.anchor.getNode(),d=Ye(u)?u:L6(u);if(this.applyDOMRange(f),this.dirty=!0,!o){const h=this.getNodes(),m=[];let g=!1;for(let p=0;p<h.length;p++){const y=h[p];Uu(y,d)?m.push(y):g=!0}if(g&&m.length>0)if(n){const p=m[0];R(p)?p.selectStart():p.getParentOrThrow().selectStart()}else{const p=m[m.length-1];R(p)?p.selectEnd():p.getParentOrThrow().selectEnd()}s.anchorNode===f.startContainer&&s.anchorOffset===f.startOffset||(function(p){const y=p.focus,b=p.anchor,x=b.key,w=b.offset,A=b.type;b.set(y.key,y.offset,y.type,!0),y.set(x,w,A,!0)})(this)}}r==="lineboundary"&&og(this,t,n,r,"decorators")}forwardDeletion(t,n,r){if(!r&&(t.type==="element"&&R(n)&&t.offset===n.getChildrenSize()||t.type==="text"&&t.offset===n.getTextContentSize())){const o=n.getParent(),i=n.getNextSibling()||(o===null?null:o.getNextSibling());if(R(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(t){const n=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let o=r.getNode();if(this.forwardDeletion(r,o,t))return;const i=mh(or(r,t?"previous":"next"));if(i.getTextSlices().every(a=>a===null||a.distance===0)){let a={type:"initial"};for(const c of i.iterNodeCarets("shadowRoot"))if(On(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(a.type==="merge-block")break;if(R(i.anchor.origin)&&i.anchor.origin.isEmpty()){const l=Qt(c);Ga(this,zr(l,l)),i.anchor.origin.remove()}return}a.type!=="merge-next-block"&&a.type!=="merge-block"||(a={block:a.block,caret:c,type:"merge-block"})}}else{if(a.type==="merge-block")break;if($i(c)){if(R(c.origin)){if(c.origin.isInline()){if(!c.origin.isParentOf(i.anchor.origin))break}else a={block:c.origin,type:"merge-next-block"};continue}if(Te(c.origin)){if(!c.origin.isIsolated())if(a.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&R(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const l=wx();l.add(c.origin.getKey()),Pt(l)}else c.origin.remove();return}break}}if(a.type==="merge-block"){const{caret:c,block:l}=a;return Ga(this,zr(!c.origin.isEmpty()&&l.isEmpty()?ph(xt(l,c.direction)):i.anchor,c)),this.removeText()}}const s=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&r.offset===0&&Jp(this,r.getNode()))return}else{const a=s.type==="text"?s.getNode():null;if(o=r.type==="text"?r.getNode():null,a!==null&&a.isSegmented()){const c=s.offset,l=a.getTextContentSize();if(a.is(o)||t&&c!==l||!t&&c!==0)return void Xp(a,t,c)}else if(o!==null&&o.isSegmented()){const c=r.offset,l=o.getTextContentSize();if(o.is(a)||t&&c!==0||!t&&c!==l)return void Xp(o,t,c)}(function(c,l){const f=c.anchor,u=c.focus,d=f.getNode(),h=u.getNode();if(d===h&&f.type==="text"&&u.type==="text"){const m=f.offset,g=u.offset,p=m<g,y=p?m:g,b=p?g:m,x=b-1;y!==x&&(function(w){return!(Bx(w)||b6(w))})(d.getTextContent().slice(y,b))&&(l?u.set(u.key,x,u.type):f.set(f.key,x,f.type))}})(this,t)}}if(this.removeText(),t&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&Ye(r.getParent())&&r.getPreviousSibling()===null&&Jp(this,r)}}deleteLine(t){this.isCollapsed()&&this.modify("extend",t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):this.removeText()}deleteWord(t){if(this.isCollapsed()){const n=this.anchor,r=n.getNode();if(this.forwardDeletion(n,r,t))return;this.modify("extend",t,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function ot(e){return e instanceof ol}function Zp(e){const t=e.offset;if(e.type==="text")return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function ju(e){const t=e.getStartEndPoints();if(t===null)return[0,0];const[n,r]=t;return n.type==="element"&&r.type==="element"&&n.key===r.key&&n.offset===r.offset?[0,0]:[Zp(n),Zp(r)]}function Jp(e,t){for(let n=t;n;n=n.getParent()){if(R(n)){if(n.collapseAtStart(e))return!0;if(jt(n))break}if(n.getPreviousSibling())break}return!1}const b6=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch{}return()=>!1})();function Xp(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,a=0;for(let l=0;l<i;l++){const f=l===i-1;if(a=s,s+=o[l].length,t&&s===n||s>n||f){o.splice(l,1),f&&(a=void 0);break}}const c=o.join("").trim();c===""?r.remove():(r.setTextContent(c),r.select(a,a))}function eg(e,t,n,r){let o,i=t;if(mt(e)){let s=!1;const a=e.childNodes,c=a.length,l=r._blockCursorElement;i===c&&(s=!0,i=c-1);let f=a[i],u=!1;if(f===l)f=a[i+1],u=!0;else if(l!==null){const d=l.parentNode;e===d&&t>Array.prototype.indexOf.call(d.children,l)&&i--}if(o=ui(f),X(o))i=Ir(o,s?"next":"previous");else{let d=ui(e);if(d===null)return null;if(R(d)){const h=r.getElementByKey(d.getKey());h===null&&B(214),[d,i]=d.getDOMSlot(h).resolveChildIndex(d,h,e,t),R(d)||B(215),s&&i>=d.getChildrenSize()&&(i=Math.max(0,d.getChildrenSize()-1));let g=d.getChildAtIndex(i);if(R(g)&&(function(p,y,b){const x=p.getParent();return b===null||x===null||!x.canBeEmpty()||x!==b.getNode()})(g,0,n)){const p=s?g.getLastDescendant():g.getFirstDescendant();p===null?d=g:(g=p,d=R(g)?g:g.getParentOrThrow()),i=0}X(g)?(o=g,d=null,i=Ir(g,s?"next":"previous")):g!==d&&s&&!u&&(R(d)||B(216),i=Math.min(d.getChildrenSize(),i+1))}else{const h=d.getIndexWithinParent();i=t===0&&Te(d)&&ui(e)===d?h:h+1,d=d.getParentOrThrow()}if(R(d))return Mn(d.__key,i,"element")}}else o=ui(e);return X(o)?Mn(o.__key,Ir(o,i,"clamp"),"text"):null}function tg(e,t,n){const r=e.offset,o=e.getNode();if(r===0){const i=o.getPreviousSibling(),s=o.getParent();if(t){if((n||!t)&&i===null&&R(s)&&s.isInline()){const a=s.getPreviousSibling();X(a)&&e.set(a.__key,a.getTextContent().length,"text")}}else R(i)&&!n&&i.isInline()?e.set(i.__key,i.getChildrenSize(),"element"):X(i)&&e.set(i.__key,i.getTextContent().length,"text")}else if(r===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(t&&R(i)&&i.isInline())e.set(i.__key,0,"element");else if((n||t)&&i===null&&R(s)&&s.isInline()&&!s.canInsertTextAfter()){const a=s.getNextSibling();X(a)&&e.set(a.__key,0,"text")}}}function yx(e,t,n){if(e.type==="text"&&t.type==="text"){const r=e.isBefore(t),o=e.is(t);tg(e,r,o),tg(t,!r,o),o&&t.set(e.key,e.offset,e.type);const i=Re();if(i.isComposing()&&i._compositionKey!==e.key&&$(n)){const s=n.anchor,a=n.focus;e.set(s.key,s.offset,s.type,!0),t.set(a.key,a.offset,a.type,!0)}}}function bx(e,t,n,r,o,i){if(e===null||n===null||!aa(o,e,n))return null;const s=eg(e,t,$(i)?i.anchor:null,o);if(s===null)return null;const a=eg(n,r,$(i)?i.focus:null,o);if(a===null)return null;if(s.type==="element"&&a.type==="element"){const c=ui(e),l=ui(n);if(Te(c)&&Te(l))return null}return yx(s,a,i),[s,a]}function zu(e){return R(e)&&!e.isInline()}function vx(e,t,n,r,o,i){const s=Hr(),a=new Ho(Mn(e,t,o),Mn(n,r,i),0,"");return a.dirty=!0,s._selection=a,a}function xx(){const e=Mn("root",0,"element"),t=Mn("root",0,"element");return new Ho(e,t,0,"")}function wx(){return new ol(new Set)}function Qd(e,t,n,r){const o=n._window;if(o===null)return null;const i=r||o.event,s=i?i.type:void 0,a=s==="selectionchange",c=!xu&&(a||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let l,f,u,d;if($(e)&&!c)return e.clone();if(t===null)return null;if(l=t.anchorNode,f=t.focusNode,u=t.anchorOffset,d=t.focusOffset,(a||s===void 0)&&$(e)&&!aa(n,l,f))return e.clone();const h=bx(l,u,f,d,n,e);if(h===null)return null;const[m,g]=h;return new Ho(m,g,$(e)?e.format:0,$(e)?e.style:"")}function Z(){return Hr()._selection}function Ji(){return Re()._editorState._selection}function xc(e,t,n,r=1){const o=e.anchor,i=e.focus,s=o.getNode(),a=i.getNode();if(!t.is(s)&&!t.is(a))return;const c=t.__key;if(e.isCollapsed()){const l=o.offset;if(n<=l&&r>0||n<l&&r<0){const f=Math.max(0,l+r);o.set(c,f,"element"),i.set(c,f,"element"),ng(e)}}else{const l=e.isBackward(),f=l?i:o,u=f.getNode(),d=l?o:i,h=d.getNode();if(t.is(u)){const m=f.offset;(n<=m&&r>0||n<m&&r<0)&&f.set(c,Math.max(0,m+r),"element")}if(t.is(h)){const m=d.offset;(n<=m&&r>0||n<m&&r<0)&&d.set(c,Math.max(0,m+r),"element")}}ng(e)}function ng(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),s=r.getNode();if(e.isCollapsed()){if(!R(i))return;const a=i.getChildrenSize(),c=n>=a,l=c?i.getChildAtIndex(a-1):i.getChildAtIndex(n);if(X(l)){let f=0;c&&(f=l.getTextContentSize()),t.set(l.__key,f,"text"),r.set(l.__key,f,"text")}return}if(R(i)){const a=i.getChildrenSize(),c=n>=a,l=c?i.getChildAtIndex(a-1):i.getChildAtIndex(n);if(X(l)){let f=0;c&&(f=l.getTextContentSize()),t.set(l.__key,f,"text")}}if(R(s)){const a=s.getChildrenSize(),c=o>=a,l=c?s.getChildAtIndex(a-1):s.getChildAtIndex(o);if(X(l)){let f=0;c&&(f=l.getTextContentSize()),r.set(l.__key,f,"text")}}}function wc(e,t,n,r,o){let i=null,s=0,a=null;r!==null?(i=r.__key,X(r)?(s=r.getTextContentSize(),a="text"):R(r)&&(s=r.getChildrenSize(),a="element")):o!==null&&(i=o.__key,X(o)?a="text":R(o)&&(a="element")),i!==null&&a!==null?e.set(i,s,a):(s=t.getIndexWithinParent(),s===-1&&(s=n.getChildrenSize()),e.set(n.__key,s,"element"))}function rg(e,t,n,r,o){e.type==="text"?e.set(n,e.offset+(t?0:o),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function Ax(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch{}}function v6(e,t,n,r,o,i,s){const a=r.anchorNode,c=r.focusNode,l=r.anchorOffset,f=r.focusOffset,u=document.activeElement;if(o.has(a6)&&u!==i||u!==null&&nh(u))return;if(!$(t))return void(e!==null&&aa(n,a,c)&&r.removeAllRanges());const d=t.anchor,h=t.focus,m=d.key,g=h.key,p=jo(n,m),y=jo(n,g),b=d.offset,x=h.offset,w=t.format,A=t.style,_=t.isCollapsed();let S=p,E=y,N=!1;if(d.type==="text"){S=ji(p);const Y=d.getNode();N=Y.getFormat()!==w||Y.getStyle()!==A}else $(e)&&e.anchor.type==="text"&&(N=!0);var P,I,W,j,z;if(h.type==="text"&&(E=ji(y)),S!==null&&E!==null&&(_&&(e===null||N||$(e)&&(e.format!==w||e.style!==A))&&(P=w,I=A,W=b,j=m,z=performance.now(),ax=[P,I,W,j,z]),l!==b||f!==x||a!==S||c!==E||r.type==="Range"&&_||(u!==null&&i.contains(u)||o.has(f6)||i.focus({preventScroll:!0}),d.type==="element"))){if(Ax(r,S,b,E,x),!o.has(c6)&&t.isCollapsed()&&i!==null&&i===document.activeElement){const Y=$(t)&&t.anchor.type==="element"?S.childNodes[b]||null:r.rangeCount>0?r.getRangeAt(0):null;if(Y!==null){let Q;if(Y instanceof Text){const oe=document.createRange();oe.selectNode(Y),Q=oe.getBoundingClientRect()}else Q=Y.getBoundingClientRect();(function(oe,M,re){const L=Hx(re),F=ch(L);if(L===null||F===null)return;let{top:K,bottom:U}=M,J=0,V=0,ee=re;for(;ee!==null;){const te=ee===L.body;if(te)J=0,V=en(oe).innerHeight;else{const ye=ee.getBoundingClientRect();J=ye.top,V=ye.bottom}let me=0;if(K<J?me=-(J-K):U>V&&(me=U-V),me!==0)if(te)F.scrollBy(0,me);else{const ye=ee.scrollTop;ee.scrollTop+=me;const pe=ee.scrollTop-ye;K-=pe,U-=pe}if(te)break;ee=ca(ee)}})(n,Q,i)}}Mu=!0}}function Cx(e){let t=Z()||Ji();t===null&&(t=We().selectEnd()),t.insertNodes(e)}function rf(e){let t=e;e.isCollapsed()||t.removeText();const n=Z();$(n)&&(t=n),$(t)||B(161);const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!vr(o);){const s=o;if([o,i]=x6(o,i),s.is(o))break}return i}function x6(e,t){const n=e.getParent();if(!n){const o=Tt();return We().append(o),o.select(),[We(),0]}if(X(e)){const o=e.splitText(t);if(o.length===0)return[n,e.getIndexWithinParent()];const i=t===0?0:1;return[n,o[0].getIndexWithinParent()+i]}if(!R(e)||t===0)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const o=new Ho(Mn(e.__key,t,"element"),Mn(e.__key,t,"element"),0,""),i=e.insertNewAfter(o);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function og(e,t,n,r,o="decorators-and-blocks"){if(t==="move"&&r==="character"&&!e.isCollapsed()){const[f,u]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return u.set(f.key,f.offset,f.type),!0}const i=or(e.focus,n?"previous":"next"),s=r==="lineboundary",a=t==="move";let c=i,l=o==="decorators-and-blocks";if(!Zx(c)){for(const f of c){l=!1;const{origin:u}=f;if(!Te(u)||u.isIsolated()||(c=f,!s||!u.isInline()))break}if(l)for(const f of mh(i).iterNodeCarets(t==="extend"?"shadowRoot":"root")){if(On(f))f.origin.isInline()||(c=f);else{if(R(f.origin))continue;Te(f.origin)&&!f.origin.isInline()&&(c=f)}break}}if(c===i)return!1;if(a&&!s&&Te(c.origin)&&c.origin.isKeyboardSelectable()){const f=wx();return f.add(c.origin.getKey()),Pt(f),!0}return c=Qt(c),a&&Uo(e.anchor,c),Uo(e.focus,c),l||!s}let it=null,st=null,Ft=!1,of=!1,Ya=0;const ig={characterData:!0,childList:!0,subtree:!0};function ia(){return Ft||it!==null&&it._readOnly}function bt(){Ft&&B(13)}function _x(){Ya>99&&B(14)}function Hr(){return it===null&&B(195,Ex()),it}function Re(){return st===null&&B(196,Ex()),st}function Ex(){let e=0;const t=new Set,n=Fo.version;if(typeof window<"u")for(const o of document.querySelectorAll("[contenteditable]")){const i=sl(o);if(rh(i))e++;else if(i){let s=String(i.constructor.version||"<0.17.1");s===n&&(s+=" (separately built, likely a bundler configuration issue)"),t.add(s)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function w6(){return st}function sg(e,t,n){const r=t.__type,o=Ix(e,r);let i=n.get(r);i===void 0&&(i=Array.from(o.transforms),n.set(r,i));const s=i.length;for(let a=0;a<s&&(i[a](t),t.isAttached());a++);}function ag(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function Sx(e,t){if(!t)return;const n=e._updateTags;let r=t;Array.isArray(t)||(r=[t]);for(const o of r)n.add(o)}function A6(e){return Gd(e,Re()._nodes)}function Gd(e,t){const n=e.type,r=t.get(n);r===void 0&&B(17,n);const o=r.klass;e.type!==o.getType()&&B(18,o.name);const i=o.importJSON(e),s=e.children;if(R(i)&&Array.isArray(s))for(let a=0;a<s.length;a++){const c=Gd(s[a],t);i.append(c)}return i}function cg(e,t,n){const r=it,o=Ft,i=st;it=t,Ft=!0,st=e;try{return n()}finally{it=r,Ft=o,st=i}}function Zn(e,t){const n=e._pendingEditorState,r=e._rootElement,o=e._headless||r===null;if(n===null)return;const i=e._editorState,s=i._selection,a=n._selection,c=e._dirtyType!==0,l=it,f=Ft,u=st,d=e._updating,h=e._observer;let m=null;if(e._pendingEditorState=null,e._editorState=n,!o&&c&&h!==null){st=e,it=n,Ft=!1,e._updating=!0;try{const _=e._dirtyType,S=e._dirtyElements,E=e._dirtyLeaves;h.disconnect(),m=$T(i,n,e,_,S,E)}catch(_){if(_ instanceof Error&&e._onError(_),of)throw _;return Px(e,null,r,n),Dv(e),e._dirtyType=2,of=!0,Zn(e,i),void(of=!1)}finally{h.observe(r,ig),e._updating=d,it=l,Ft=f,st=u}}n._readOnly||(n._readOnly=!0);const g=e._dirtyLeaves,p=e._dirtyElements,y=e._normalizedNodes,b=e._updateTags,x=e._deferred;c&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),(function(_,S){const E=_._decorators;let N=_._pendingDecorators||E;const P=S._nodeMap;let I;for(I in N)P.has(I)||(N===E&&(N=zx(_)),delete N[I])})(e,n);const w=o?null:tn(en(e));if(e._editable&&w!==null&&(c||a===null||a.dirty||!a.is(s))&&r!==null&&!b.has(l6)){st=e,it=n;try{if(h!==null&&h.disconnect(),c||a===null||a.dirty){const _=e._blockCursorElement;_!==null&&Wu(_,e,r),v6(s,a,e,w,b,r)}(function(_,S,E){let N=_._blockCursorElement;if($(E)&&E.isCollapsed()&&E.anchor.type==="element"&&S.contains(document.activeElement)){const P=E.anchor,I=P.getNode(),W=P.offset;let j=!1,z=null;if(W===I.getChildrenSize())af(I.getChildAtIndex(W-1))&&(j=!0);else{const Y=I.getChildAtIndex(W);if(Y!==null&&af(Y)){const Q=Y.getPreviousSibling();(Q===null||af(Q))&&(j=!0,z=_.getElementByKey(Y.__key))}}if(j){const Y=_.getElementByKey(I.__key);return N===null&&(_._blockCursorElement=N=(function(Q){const oe=Q.theme,M=document.createElement("div");M.contentEditable="false",M.setAttribute("data-lexical-cursor","true");let re=oe.blockCursor;if(re!==void 0){if(typeof re=="string"){const L=Pv(re);re=oe.blockCursor=L}re!==void 0&&M.classList.add(...re)}return M})(_._config)),S.style.caretColor="transparent",void(z===null?Y.appendChild(N):Y.insertBefore(N,z))}}N!==null&&Wu(N,_,S)})(e,r,a)}finally{h!==null&&h.observe(r,ig),st=u,it=l}}m!==null&&(function(_,S,E,N,P){const I=Array.from(_._listeners.mutation),W=I.length;for(let j=0;j<W;j++){const[z,Y]=I[j];for(const Q of Y){const oe=S.get(Q);oe!==void 0&&z(oe,{dirtyLeaves:N,prevEditorState:P,updateTags:E})}}})(e,m,b,g,i),$(a)||a===null||s!==null&&s.is(a)||e.dispatchCommand(tl,void 0);const A=e._pendingDecorators;A!==null&&(e._decorators=A,e._pendingDecorators=null,Es("decorator",e,!0,A)),(function(_,S,E){const N=dg(S),P=dg(E);N!==P&&Es("textcontent",_,!0,P)})(e,t||i,n),Es("update",e,!0,{dirtyElements:p,dirtyLeaves:g,editorState:n,mutatedNodes:m,normalizedNodes:y,prevEditorState:t||i,tags:b}),(function(_,S){if(_._deferred=[],S.length!==0){const E=_._updating;_._updating=!0;try{for(let N=0;N<S.length;N++)S[N]()}finally{_._updating=E}}})(e,x),(function(_){const S=_._updates;if(S.length!==0){const E=S.shift();if(E){const[N,P]=E;il(_,N,P)}}})(e)}function Es(e,t,n,...r){const o=t._updating;t._updating=n;try{const i=Array.from(t._listeners[e]);for(let s=0;s<i.length;s++)i[s].apply(null,r)}finally{t._updating=o}}function lg(e,t){const n=e._updates;let r=t||!1;for(;n.length!==0;){const o=n.shift();if(o){const[i,s]=o,a=e._pendingEditorState;let c;s!==void 0&&(c=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete&&(a===null&&B(191),a._flushSync=!0),c&&e._deferred.push(c),Sx(e,s.tag)),a==null?il(e,i,s):i()}}return r}function il(e,t,n){const r=e._updateTags;let o,i=!1,s=!1;n!==void 0&&(o=n.onUpdate,Sx(e,n.tag),i=n.skipTransforms||!1,s=n.discrete||!1),o&&e._deferred.push(o);const a=e._editorState;let c=e._pendingEditorState,l=!1;(c===null||c._readOnly)&&(c=e._pendingEditorState=Tx(c||a),l=!0),c._flushSync=s;const f=it,u=Ft,d=st,h=e._updating;it=c,Ft=!1,e._updating=!0,st=e;const m=e._headless||e.getRootElement()===null;eh(null);try{l&&(m?a._selection!==null&&(c._selection=a._selection.clone()):c._selection=(function(b,x){const w=b.getEditorState()._selection,A=tn(en(b));return $(w)||w==null?Qd(w,A,b,x):w.clone()})(e,n&&n.event||null));const p=e._compositionKey;t(),i=lg(e,i),(function(b,x){const w=x.getEditorState()._selection,A=b._selection;if($(A)){const _=A.anchor,S=A.focus;let E;if(_.type==="text"&&(E=_.getNode(),E.selectionTransform(w,A)),S.type==="text"){const N=S.getNode();E!==N&&N.selectionTransform(w,A)}}})(c,e),e._dirtyType!==0&&(i?(function(b,x){const w=x._dirtyLeaves,A=b._nodeMap;for(const _ of w){const S=A.get(_);X(S)&&S.isAttached()&&S.isSimpleText()&&!S.isUnmergeable()&&zp(S)}})(c,e):(function(b,x){const w=x._dirtyLeaves,A=x._dirtyElements,_=b._nodeMap,S=Tr(),E=new Map;let N=w,P=N.size,I=A,W=I.size;for(;P>0||W>0;){if(P>0){x._dirtyLeaves=new Set;for(const j of N){const z=_.get(j);X(z)&&z.isAttached()&&z.isSimpleText()&&!z.isUnmergeable()&&zp(z),z!==void 0&&ag(z,S)&&sg(x,z,E),w.add(j)}if(N=x._dirtyLeaves,P=N.size,P>0){Ya++;continue}}x._dirtyLeaves=new Set,x._dirtyElements=new Map,I.delete("root")&&I.set("root",!0);for(const j of I){const z=j[0],Y=j[1];if(A.set(z,Y),!Y)continue;const Q=_.get(z);Q!==void 0&&ag(Q,S)&&sg(x,Q,E)}N=x._dirtyLeaves,P=N.size,I=x._dirtyElements,W=I.size,Ya++}x._dirtyLeaves=w,x._dirtyElements=A})(c,e),lg(e),(function(b,x,w,A){const _=b._nodeMap,S=x._nodeMap,E=[];for(const[N]of A){const P=S.get(N);P!==void 0&&(P.isAttached()||(R(P)&&Iv(P,N,_,S,E,A),_.has(N)||A.delete(N),E.push(N)))}for(const N of E)S.delete(N);for(const N of w){const P=S.get(N);P===void 0||P.isAttached()||(_.has(N)||w.delete(N),S.delete(N))}})(a,c,e._dirtyLeaves,e._dirtyElements)),p!==e._compositionKey&&(c._flushSync=!0);const y=c._selection;if($(y)){const b=c._nodeMap,x=y.anchor.key,w=y.focus.key;b.get(x)!==void 0&&b.get(w)!==void 0||B(19)}else ot(y)&&y._nodes.size===0&&(c._selection=null)}catch(p){return p instanceof Error&&e._onError(p),e._pendingEditorState=a,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Zn(e)}finally{it=f,Ft=u,st=d,e._updating=h,Ya=0}e._dirtyType!==0||e._deferred.length>0||(function(p,y){const b=y.getEditorState()._selection,x=p._selection;if(x!==null){if(x.dirty||!x.is(b))return!0}else if(b!==null)return!0;return!1})(c,e)?c._flushSync?(c._flushSync=!1,Zn(e)):l&&T6(()=>{Zn(e)}):(c._flushSync=!1,l&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Nn(e,t,n){st===e&&n===void 0?t():il(e,t,n)}class Ss{constructor(t,n,r){D(this,"element");D(this,"before");D(this,"after");this.element=t,this.before=n||null,this.after=r||null}withBefore(t){return new Ss(this.element,t,this.after)}withAfter(t){return new Ss(this.element,this.before,t)}withElement(t){return this.element===t?this:new Ss(t,this.before,this.after)}insertChild(t){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&B(222),this.element.insertBefore(t,n),this}removeChild(t){return t.parentElement!==this.element&&B(223),this.element.removeChild(t),this}replaceChild(t,n){return n.parentElement!==this.element&&B(224),this.element.replaceChild(t,n),this}getFirstChild(){const t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(t===null)this.removeManagedLineBreak();else{const n=t==="decorator"&&(ra||Qi||na);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const n=this.element,r=t.nodeName==="IMG"?t.nextSibling:null;r&&n.removeChild(r),n.removeChild(t),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(t){const n=this.getManagedLineBreak();if(n){if(t===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,o=this.before,i=document.createElement("br");if(r.insertBefore(i,o),t){const s=document.createElement("img");s.setAttribute("data-lexical-linebreak","true"),s.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",s.alt="",r.insertBefore(s,i),r.__lexicalLineBreak=s}else r.__lexicalLineBreak=i}getFirstChildOffset(){let t=0;for(let n=this.after;n!==null;n=n.previousSibling)t++;return t}resolveChildIndex(t,n,r,o){if(r===this.element){const c=this.getFirstChildOffset();return[t,Math.min(c+t.getChildrenSize(),Math.max(c,o))]}const i=fg(n,r);i.push(o);const s=fg(n,this.element);let a=t.getIndexWithinParent();for(let c=0;c<s.length;c++){const l=i[c],f=s[c];if(l===void 0||l<f)break;if(l>f){a+=1;break}}return[t.getParentOrThrow(),a]}}function fg(e,t){const n=[];let r=t;for(;r!==e&&r!==null;r=r.parentNode){let o=0;for(let i=r.previousSibling;i!==null;i=i.previousSibling)o++;n.push(o)}return r!==e&&B(225),n.reverse()}class In extends fn{constructor(n){super(n);D(this,"__first");D(this,"__last");D(this,"__size");D(this,"__format");D(this,"__style");D(this,"__indent");D(this,"__dir");D(this,"__textFormat");D(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(n){super.afterCloneFrom(n),this.__key===n.__key&&(this.__first=n.__first,this.__last=n.__last,this.__size=n.__size),this.__indent=n.__indent,this.__format=n.__format,this.__style=n.__style,this.__dir=n.__dir,this.__textFormat=n.__textFormat,this.__textStyle=n.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const n=this.getFormat();return TT[n]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const n=[];let r=this.getFirstChild();for(;r!==null;)n.push(r),r=r.getNextSibling();return n}getChildrenKeys(){const n=[];let r=this.getFirstChild();for(;r!==null;)n.push(r.__key),r=r.getNextSibling();return n}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const n=Re()._dirtyElements;return n!==null&&n.has(this.__key)}isLastChild(){const n=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(n)}getAllTextNodes(){const n=[];let r=this.getFirstChild();for(;r!==null;){if(X(r)&&n.push(r),R(r)){const o=r.getAllTextNodes();n.push(...o)}r=r.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;R(n);){const r=n.getFirstChild();if(r===null)break;n=r}return n}getLastDescendant(){let n=this.getLastChild();for(;R(n);){const r=n.getLastChild();if(r===null)break;n=r}return n}getDescendantByIndex(n){const r=this.getChildren(),o=r.length;if(n>=o){const s=r[o-1];return R(s)&&s.getLastDescendant()||s||null}const i=r[n];return R(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:Xe(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&B(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:Xe(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&B(96,this.__key),n}getChildAtIndex(n){const r=this.getChildrenSize();let o,i;if(n<r/2){for(o=this.getFirstChild(),i=0;o!==null&&i<=n;){if(i===n)return o;o=o.getNextSibling(),i++}return null}for(o=this.getLastChild(),i=r-1;o!==null&&i>=n;){if(i===n)return o;o=o.getPreviousSibling(),i--}return null}getTextContent(){let n="";const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];n+=s.getTextContent(),R(s)&&i!==o-1&&!s.isInline()&&(n+=jr)}return n}getTextContentSize(){let n=0;const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];n+=s.getTextContentSize(),R(s)&&i!==o-1&&!s.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const r=Pp[n];return(this.getFormat()&r)!==0}return!1}hasTextFormat(n){const r=Io[n];return(this.getTextFormat()&r)!==0}getFormatFlags(n,r){return Ac(this.getLatest().__textFormat,n,r)}getTextStyle(){return this.getLatest().__textStyle}select(n,r){bt();const o=Z();let i=n,s=r;const a=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&r===0){const l=this.getFirstChild();if(X(l)||R(l))return l.select(0,0)}else if(!(n!==void 0&&n!==a||r!==void 0&&r!==a)){const l=this.getLastChild();if(X(l)||R(l))return l.select()}}i===void 0&&(i=a),s===void 0&&(s=a);const c=this.__key;return $(o)?(o.anchor.set(c,i,"element"),o.focus.set(c,s,"element"),o.dirty=!0,o):vx(c,i,c,s,"element","element")}selectStart(){const n=this.getFirstDescendant();return n?n.selectStart():this.select()}selectEnd(){const n=this.getLastDescendant();return n?n.selectEnd():this.select()}clear(){const n=this.getWritable();return this.getChildren().forEach(r=>r.remove()),n}append(...n){return this.splice(this.getChildrenSize(),0,n)}setDirection(n){const r=this.getWritable();return r.__dir=n,r}setFormat(n){return this.getWritable().__format=n!==""?Pp[n]:0,this}setStyle(n){return this.getWritable().__style=n||"",this}setTextFormat(n){const r=this.getWritable();return r.__textFormat=n,r}setTextStyle(n){const r=this.getWritable();return r.__textStyle=n,r}setIndent(n){return this.getWritable().__indent=n,this}splice(n,r,o){vc(this)&&B(324,this.__key,this.__type);const i=this.getChildrenSize(),s=this.getWritable();n+r<=i||B(226,String(n),String(r),String(i));const a=s.__key,c=[],l=[],f=this.getChildAtIndex(n+r);let u=null,d=i-r+o.length;if(n!==0)if(n===i)u=this.getLastChild();else{const m=this.getChildAtIndex(n);m!==null&&(u=m.getPreviousSibling())}if(r>0){let m=u===null?this.getFirstChild():u.getNextSibling();for(let g=0;g<r;g++){m===null&&B(100);const p=m.getNextSibling(),y=m.__key;_o(m.getWritable()),l.push(y),m=p}}let h=u;for(const m of o){h!==null&&m.is(h)&&(u=h=h.getPreviousSibling());const g=m.getWritable();g.__parent===a&&d--,_o(g);const p=m.__key;if(h===null)s.__first=p,g.__prev=null;else{const y=h.getWritable();y.__next=p,g.__prev=y.__key}m.__key===a&&B(76),g.__parent=a,c.push(p),h=m}if(n+r===i)h!==null&&(h.getWritable().__next=null,s.__last=h.__key);else if(f!==null){const m=f.getWritable();if(h!==null){const g=h.getWritable();m.__prev=h.__key,g.__next=f.__key}else m.__prev=null}if(s.__size=d,l.length){const m=Z();if($(m)){const g=new Set(l),p=new Set(c),{anchor:y,focus:b}=m;ug(y,g,p)&&wc(y,y.getNode(),this,u,f),ug(b,g,p)&&wc(b,b.getNode(),this,u,f),d!==0||this.canBeEmpty()||jt(this)||this.remove()}}return s}getDOMSlot(n){return new Ss(n)}exportDOM(n){const{element:r}=super.exportDOM(n);if(mt(r)){const o=this.getIndent();o>0&&(r.style.paddingInlineStart=40*o+"px");const i=this.getDirection();i&&(r.dir=i)}return{element:r}}exportJSON(){const n={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},r=this.getTextFormat(),o=this.getTextStyle();return r===0&&o===""||jt(this)||this.getChildren().some(X)||(r!==0&&(n.textFormat=r),o!==""&&(n.textStyle=o)),n}updateFromJSON(n){return super.updateFromJSON(n).setFormat(n.format).setIndent(n.indent).setDirection(n.direction).setTextFormat(n.textFormat||0).setTextStyle(n.textStyle||"")}insertNewAfter(n,r){return null}canIndent(){return!0}collapseAtStart(n){return!1}excludeFromCopy(n){return!1}canReplaceWith(n){return!0}canInsertAfter(n){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(n){return!1}extractWithChild(n,r,o){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,r){const o=this.getDOMSlot(n);let i=o.getFirstChild();for(let s=this.getFirstChild();s;s=s.getNextSibling()){const a=r.getElementByKey(s.getKey());a!==null&&(i==null?(o.insertChild(a),i=a):i!==a&&o.replaceChild(a,i),i=i.nextSibling)}}}function R(e){return e instanceof In}function ug(e,t,n){let r=e.getNode();for(;r;){const o=r.__key;if(t.has(o)&&!n.has(o))return!0;r=r.getParent()}return!1}class kx extends fn{decorate(t,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Te(e){return e instanceof kx}class Xi extends In{constructor(){super("root");D(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new Xi}getTopLevelElementOrThrow(){B(51)}getTextContent(){const n=this.__cachedText;return!ia()&&Re()._dirtyType!==0||n===null?super.getTextContent():n}remove(){B(52)}replace(n){B(53)}insertBefore(n){B(54)}insertAfter(n){B(55)}updateDOM(n,r){return!1}splice(n,r,o){for(const i of o)R(i)||Te(i)||B(282);return super.splice(n,r,o)}static importJSON(n){return We().updateFromJSON(n)}collapseAtStart(){return!0}}function Ye(e){return e instanceof Xi}function Tx(e){return new sa(new Map(e._nodeMap))}function Zd(){return new sa(new Map([["root",new Xi]]))}function Nx(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&B(130,n.name),R(e)){const r=t.children;Array.isArray(r)||B(59,n.name);const o=e.getChildren();for(let i=0;i<o.length;i++){const s=Nx(o[i]);r.push(s)}}return t}function C6(e){return e instanceof sa}class sa{constructor(t,n){D(this,"_nodeMap");D(this,"_selection");D(this,"_flushSync");D(this,"_readOnly");this._nodeMap=t,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(t,n){return cg(n&&n.editor||null,this,t)}clone(t){const n=new sa(this._nodeMap,t===void 0?this._selection:t);return n._readOnly=!0,n}toJSON(){return cg(null,this,()=>({root:Nx(We())}))}}class Jd extends In{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class es extends In{static getType(){return"paragraph"}static clone(t){return new es(t.__key)}createDOM(t){const n=document.createElement("p"),r=xi(t.theme,"paragraph");return r!==void 0&&n.classList.add(...r),n}updateDOM(t,n,r){return!1}static importDOM(){return{p:t=>({conversion:_6,priority:0})}}exportDOM(t){const{element:n}=super.exportDOM(t);if(mt(n)){this.isEmpty()&&n.append(document.createElement("br"));const r=this.getFormatType();r&&(n.style.textAlign=r)}return{element:n}}static importJSON(t){return Tt().updateFromJSON(t)}exportJSON(){const t=super.exportJSON();if(t.textFormat===void 0||t.textStyle===void 0){const n=this.getChildren().find(X);n?(t.textFormat=n.getFormat(),t.textStyle=n.getStyle()):(t.textFormat=this.getTextFormat(),t.textStyle=this.getTextStyle())}return t}insertNewAfter(t,n){const r=Tt();r.setTextFormat(t.format),r.setTextStyle(t.style);const o=this.getDirection();return r.setDirection(o),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,n),r}collapseAtStart(){const t=this.getChildren();if(t.length===0||X(t[0])&&t[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function _6(e){const t=Tt();return e.style&&(t.setFormat(e.style.textAlign),z6(e,t)),{node:t}}function Tt(){return qr(new es)}function Xd(e){return e instanceof es}const Ae=0,Jn=1,E6=3,Ox=4;function Px(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=Zd(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;i!==null&&(i.disconnect(),e._observer=null),t!==null&&(t.textContent=""),n!==null&&(n.textContent="",o.set("root",n))}function S6(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:o}=ll(r),i=r.transform;if(!n.has(i)){n.add(i);const s=r.transform();s&&t.add(s)}if(o){const s=o.$transform;s&&t.add(s),r=o.extends}else{const s=Object.getPrototypeOf(r);r=s.prototype instanceof fn&&s!==fn?s:void 0}}return t}function Mx(e){const t=e||{},n=w6(),r=t.theme||{},o=e===void 0?n:t.parentEditor||null,i=t.disableEvents||!1,s=Zd(),a=t.namespace||(o!==null?o._config.namespace:Ux()),c=t.editorState,l=[Xi,Kr,Gi,Zi,es,Jd,...t.nodes||[]],{onError:f,html:u}=t,d=t.editable===void 0||t.editable;let h;if(e===void 0&&n!==null)h=n._nodes;else{h=new Map;for(let g=0;g<l.length;g++){let p=l[g],y=null,b=null;if(typeof p!="function"){const A=p;p=A.replace,y=A.with,b=A.withKlass||null}ll(p);const x=p.getType(),w=S6(p);h.set(x,{exportDOM:u&&u.export?u.export.get(p):void 0,klass:p,replace:y,replaceWithKlass:b,sharedNodeState:RT(l[g]),transforms:w})}}const m=new Fo(s,o,h,{disableEvents:i,namespace:a,theme:r},f||console.error,(function(g,p){const y=new Map,b=new Set,x=w=>{Object.keys(w).forEach(A=>{let _=y.get(A);_===void 0&&(_=[],y.set(A,_)),_.push(w[A])})};return g.forEach(w=>{const A=w.klass.importDOM;if(A==null||b.has(A))return;b.add(A);const _=A.call(w.klass);_!==null&&x(_)}),p&&x(p),y})(h,u?u.import:void 0),d,e);return c!==void 0&&(m._pendingEditorState=c,m._dirtyType=2),(function(g){g.registerCommand(Wv,XT,Ae),g.registerCommand(Kv,e6,Ae),g.registerCommand(Hv,t6,Ae),g.registerCommand(qv,n6,Ae),g.registerCommand(Vv,r6,Ae)})(m),m}class Fo{constructor(t,n,r,o,i,s,a,c){D(this,"_headless");D(this,"_parentEditor");D(this,"_rootElement");D(this,"_editorState");D(this,"_pendingEditorState");D(this,"_compositionKey");D(this,"_deferred");D(this,"_keyToDOMMap");D(this,"_updates");D(this,"_updating");D(this,"_listeners");D(this,"_commands");D(this,"_nodes");D(this,"_decorators");D(this,"_pendingDecorators");D(this,"_config");D(this,"_dirtyType");D(this,"_cloneNotNeeded");D(this,"_dirtyLeaves");D(this,"_dirtyElements");D(this,"_normalizedNodes");D(this,"_updateTags");D(this,"_observer");D(this,"_key");D(this,"_onError");D(this,"_htmlConversions");D(this,"_window");D(this,"_editable");D(this,"_blockCursorElement");D(this,"_createEditorArgs");this._createEditorArgs=c,this._parentEditor=n,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=o,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Ux(),this._onError=i,this._htmlConversions=s,this._editable=a,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(t){const n=this._listeners.update;return n.add(t),()=>{n.delete(t)}}registerEditableListener(t){const n=this._listeners.editable;return n.add(t),()=>{n.delete(t)}}registerDecoratorListener(t){const n=this._listeners.decorator;return n.add(t),()=>{n.delete(t)}}registerTextContentListener(t){const n=this._listeners.textcontent;return n.add(t),()=>{n.delete(t)}}registerRootListener(t){const n=this._listeners.root;return t(this._rootElement,null),n.add(t),()=>{t(null,this._rootElement),n.delete(t)}}registerCommand(t,n,r){r===void 0&&B(35);const o=this._commands;o.has(t)||o.set(t,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(t);i===void 0&&B(36,String(t));const s=i[r];return s.add(n),()=>{s.delete(n),i.every(a=>a.size===0)&&o.delete(t)}}registerMutationListener(t,n,r){const o=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;let s=i.get(n);s===void 0&&(s=new Set,i.set(n,s)),s.add(o);const a=r&&r.skipInitialization;return a!==void 0&&a||this.initializeMutationListener(n,o),()=>{s.delete(o),s.size===0&&i.delete(n)}}getRegisteredNode(t){const n=this._nodes.get(t.getType());return n===void 0&&B(37,t.name),n}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,n){const r=this._editorState,o=vg(r).get(n.getType());if(!o)return;const i=new Map;for(const s of o.keys())i.set(s,"created");i.size>0&&t(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(t,n){const r=this.getRegisteredNode(t);return r.transforms.add(n),r}registerNodeTransform(t,n){const r=this.registerNodeTransformToKlass(t,n),o=[r],i=r.replaceWithKlass;if(i!=null){const s=this.registerNodeTransformToKlass(i,n);o.push(s)}return(function(s,a){const c=vg(s.getEditorState()),l=[];for(const f of a){const u=c.get(f);u&&l.push(u)}l.length!==0&&s.update(()=>{for(const f of l)for(const u of f.keys()){const d=Xe(u);d&&d.markDirty()}},s._pendingEditorState===null?{tag:wo}:void 0)})(this,o.map(s=>s.klass.getType())),()=>{o.forEach(s=>s.transforms.delete(n))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,n){return ie(this,t,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const n=this._rootElement;if(t!==n){const r=xi(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=t,Px(this,n,t,o),n!==null&&(this._config.disableEvents||o6(n),r!=null&&n.classList.remove(...r)),t!==null){const i=ch(t),s=t.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,Dv(this),this._updateTags.add(wo),Zn(this),this._config.disableEvents||(function(a,c){const l=a.ownerDocument;Pu.set(a,l);const f=yc.get(l)??0;f<1&&l.addEventListener("selectionchange",dx),yc.set(l,f+1),a.__lexicalEditor=c;const u=ux(a);for(let d=0;d<Ou.length;d++){const[h,m]=Ou[d],g=typeof m=="function"?p=>{qp(p)||(Hp(p),(c.isEditable()||h==="click")&&m(p,c))}:p=>{if(qp(p))return;Hp(p);const y=c.isEditable();switch(h){case"cut":return y&&ie(c,Vd,p);case"copy":return ie(c,rl,p);case"paste":return y&&ie(c,nl,p);case"dragstart":return y&&ie(c,rx,p);case"dragover":return y&&ie(c,ox,p);case"dragend":return y&&ie(c,VT,p);case"focus":return y&&ie(c,GT,p);case"blur":return y&&ie(c,ZT,p);case"drop":return y&&ie(c,nx,p)}};a.addEventListener(h,g),u.push(()=>{a.removeEventListener(h,g)})}})(t,this),r!=null&&t.classList.add(...r)}else this._window=null,this._updateTags.add(wo),Zn(this);Es("root",this,!1,t,n)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(t,n){t.isEmpty()&&B(38);let r=t;r._readOnly&&(r=Tx(t),r._selection=t._selection?t._selection.clone():null),Rv(this);const o=this._pendingEditorState,i=this._updateTags,s=n!==void 0?n.tag:null;o===null||o.isEmpty()||(s!=null&&i.add(s),Zn(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||Zn(this)}parseEditorState(t,n){return(function(r,o,i){const s=Zd(),a=it,c=Ft,l=st,f=o._dirtyElements,u=o._dirtyLeaves,d=o._cloneNotNeeded,h=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,it=s,Ft=!1,st=o,eh(null);try{const m=o._nodes;Gd(r.root,m),i&&i(),s._readOnly=!0}catch(m){m instanceof Error&&o._onError(m)}finally{o._dirtyElements=f,o._dirtyLeaves=u,o._cloneNotNeeded=d,o._dirtyType=h,it=a,Ft=c,st=l}return s})(typeof t=="string"?JSON.parse(t):t,this,n)}read(t){return Zn(this),this.getEditorState().read(t,{editor:this})}update(t,n){(function(r,o,i){r._updating?r._updates.push([o,i]):il(r,o,i)})(this,t,n)}focus(t,n={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Nn(this,()=>{const o=Z(),i=We();o!==null?o.dirty||Pt(o.clone()):i.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),M6("focus"),I6(()=>{r.removeAttribute("autocapitalize"),t&&t()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;t!==null&&t.blur();const n=tn(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,Es("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}D(Fo,"version");Fo.version="0.39.0+prod.esm";let $u=null;function eh(e){$u=e}let k6=1;function Ix(e,t){const n=th(e,t);return n===void 0&&B(30,t),n}function th(e,t){return e._nodes.get(t)}const T6=typeof queueMicrotask=="function"?queueMicrotask:e=>{Promise.resolve().then(e)};function Lx(e){return Te(zi(e))}function nh(e){const t=document.activeElement;if(!mt(t))return!1;const n=t.nodeName;return Te(zi(e))&&(n==="INPUT"||n==="TEXTAREA"||t.contentEditable==="true"&&sl(t)==null)}function aa(e,t,n){const r=e.getRootElement();try{return r!==null&&r.contains(t)&&r.contains(n)&&t!==null&&!nh(t)&&Rx(t)===e}catch{return!1}}function rh(e){return e instanceof Fo}function Rx(e){let t=e;for(;t!=null;){const n=sl(t);if(rh(n))return n;t=ca(t)}return null}function sl(e){return e?e.__lexicalEditor:null}function Co(e){return gx(e)||e.isToken()}function Hn(e){return Co(e)||e.isSegmented()}function ur(e){return ts(e)&&e.nodeType===3}function Dx(e){return ts(e)&&e.nodeType===9}function ji(e){let t=e;for(;t!=null;){if(ur(t))return t;t=t.firstChild}return null}function Ac(e,t,n){const r=Io[t];if(n!==null&&(e&r)===(n&r))return e;let o=e^r;return t==="subscript"?o&=-65:t==="superscript"?o&=-33:t==="lowercase"?(o&=-513,o&=-1025):t==="uppercase"?(o&=-257,o&=-1025):t==="capitalize"&&(o&=-257,o&=-513),o}function Fx(e){return X(e)||Ao(e)||Te(e)}function N6(e,t){const n=(function(){const s=$u;return $u=null,s})();if((t=t||n&&n.__key)!=null)return void(e.__key=t);bt(),_x();const r=Re(),o=Hr(),i=""+k6++;o._nodeMap.set(i,e),R(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function _o(e){const t=e.getParent();if(t!==null){const n=e.getWritable(),r=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling(),s=i!==null?i.__key:null,a=o!==null?o.__key:null,c=o!==null?o.getWritable():null,l=i!==null?i.getWritable():null;o===null&&(r.__first=s),i===null&&(r.__last=a),c!==null&&(c.__next=s),l!==null&&(l.__prev=a),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Cc(e){_x(),vc(e)&&B(323,e.__key,e.__type);const t=e.getLatest(),n=t.__parent,r=Hr(),o=Re(),i=r._nodeMap,s=o._dirtyElements;n!==null&&(function(c,l,f){let u=c;for(;u!==null;){if(f.has(u))return;const d=l.get(u);if(d===void 0)break;f.set(u,!1),u=d.__parent}})(n,i,s);const a=t.__key;o._dirtyType=1,R(e)?s.set(a,!0):o._dirtyLeaves.add(a)}function ut(e){bt();const t=Re(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,n!==null){const r=Xe(n);r!==null&&r.getWritable()}if(e!==null){const r=Xe(e);r!==null&&r.getWritable()}}}function Tr(){return ia()?null:Re()._compositionKey}function Xe(e,t){const n=(t||Hr())._nodeMap.get(e);return n===void 0?null:n}function jx(e,t){const n=al(e,Re());return n!==void 0?Xe(n,t):null}function al(e,t){return e[`__lexicalKey_${t._key}`]}function zi(e,t){let n=e;for(;n!=null;){const r=jx(n,t);if(r!==null)return r;n=ca(n)}return null}function zx(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function dg(e){return e.read(()=>We().getTextContent())}function We(){return $x(Hr())}function $x(e){return e._nodeMap.get("root")}function Pt(e){bt();const t=Hr();e!==null&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function ui(e){const t=Re(),n=(function(r,o){let i=r;for(;i!=null;){const s=al(i,o);if(s!==void 0)return s;i=ca(i)}return null})(e,t);return n===null?e===t.getRootElement()?Xe("root"):null:Xe(n)}function Bx(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function oh(e){const t=[];let n=e;for(;n!==null;)t.push(n),n=n._parentEditor;return t}function Ux(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Wx(e){return ur(e)?e.nodeValue:null}function ih(e,t,n){const r=tn(en(t));if(r===null)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(o!==null){let a=Wx(o);const c=zi(o);if(a!==null&&X(c)){if(a===Xc&&n){const l=n.length;a=n,i=l,s=l}a!==null&&sh(c,a,i,s,e)}}}function sh(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let a=t;(s||o)&&t[t.length-1]===Xc&&(a=t.slice(0,-1));const c=i.getTextContent();if(o||a!==c){if(a===""){if(ut(null),na||Qi||ra)i.remove();else{const g=Re();setTimeout(()=>{g.update(()=>{i.isAttached()&&i.remove()})},20)}return}const l=i.getParent(),f=Ji(),u=i.getTextContentSize(),d=Tr(),h=i.getKey();if(i.isToken()||d!==null&&h===d&&!s||$(f)&&(l!==null&&!l.canInsertTextBefore()&&f.anchor.offset===0||f.anchor.key===e.__key&&f.anchor.offset===0&&!i.canInsertTextBefore()&&!s||f.focus.key===e.__key&&f.focus.offset===u&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const m=Z();if(!$(m)||n===null||r===null)return void hg(i,a,m);if(m.setTextNodeRange(i,n,i,r),i.isSegmented()){const g=rt(i.getTextContent());i.replace(g),i=g}hg(i,a,m)}}}function hg(e,t,n){if(e.setTextContent(t),$(n)){const r=e.getKey();for(const o of["anchor","focus"]){const i=n[o];i.type==="text"&&i.key===r&&(i.offset=Ir(e,i.offset,"clamp"))}}}function Oa(e,t,n){const r=t[n]||!1;return r==="any"||r===e[n]}function O6(e,t){return Oa(e,t,"altKey")&&Oa(e,t,"ctrlKey")&&Oa(e,t,"shiftKey")&&Oa(e,t,"metaKey")}function Ie(e,t,n){return O6(e,n)&&e.key.toLowerCase()===t.toLowerCase()}const Wn={ctrlKey:!cn,metaKey:cn},mg={altKey:cn,ctrlKey:!cn};function pg(e){return e.key==="Backspace"}function gg(e){return Ie(e,"a",Wn)}function P6(e){const t=We();if($(e)){const n=e.anchor,r=e.focus,o=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(o.getKey(),0,"element"),r.set(o.getKey(),o.getChildrenSize(),"element"),Fi(e),e}{const n=t.select(0,t.getChildrenSize());return Pt(Fi(n)),n}}function xi(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});const n=e.__lexicalClassNameCache,r=n[t];if(r!==void 0)return r;const o=e[t];if(typeof o=="string"){const i=Pv(o);return n[t]=i,i}return o}function ah(e,t,n,r,o){if(n.size===0)return;const i=r.__type,s=r.__key,a=t.get(i);a===void 0&&B(33,i);const c=a.klass;let l=e.get(c);l===void 0&&(l=new Map,e.set(c,l));const f=l.get(s),u=f==="destroyed"&&o==="created";(f===void 0||u)&&l.set(s,u?"updated":o)}function yg(e,t,n){const r=e.getParent();let o=n,i=e;return r!==null&&(t&&n===0?(o=i.getIndexWithinParent(),i=r):t||n!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?o-1:o)}function Bu(e,t){const n=e.offset;if(e.type==="element")return yg(e.getNode(),t,n);{const r=e.getNode();if(t&&n===0||!t&&n===r.getTextContentSize()){const o=t?r.getPreviousSibling():r.getNextSibling();return o===null?yg(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):o}}return null}function Kx(e){const t=en(e).event,n=t&&t.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function ie(e,t,n){return(function(r,o,i){const s=oh(r);for(let a=4;a>=0;a--)for(let c=0;c<s.length;c++){const l=s[c],f=l._commands.get(o);if(f!==void 0){const u=f[a];if(u!==void 0){const d=Array.from(u),h=d.length;let m=!1;if(Nn(l,()=>{for(let g=0;g<h;g++)if(d[g](i,r))return void(m=!0)}),m)return m}}}return!1})(e,t,n)}function cl(e){return!Ye(e)&&!e.isLastChild()&&!e.isInline()}function jo(e,t){const n=e._keyToDOMMap.get(t);return n===void 0&&B(75,t),n}function ca(e){const t=e.assignedSlot||e.parentElement;return Ku(t)?t.host:t}function Hx(e){return Dx(e)?e:mt(e)?e.ownerDocument:null}function M6(e){bt(),Re()._updateTags.add(e)}function I6(e){bt(),Re()._deferred.push(e)}function Uu(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function ch(e){const t=Hx(e);return t?t.defaultView:null}function en(e){const t=e._window;return t===null&&B(78),t}function L6(e){let t=e.getParentOrThrow();for(;t!==null;){if(jt(t))return t;t=t.getParentOrThrow()}return t}function jt(e){return Ye(e)||R(e)&&e.isShadowRoot()}function qr(e){const t=Re(),n=e.getType(),r=th(t,n);r===void 0&&B(200,e.constructor.name,n);const{replace:o,replaceWithKlass:i}=r;if(o!==null){const s=o(e),a=s.constructor;return i!==null?s instanceof i||B(201,i.name,i.getType(),a.name,a.getType(),e.constructor.name,n):s instanceof e.constructor&&a!==e.constructor||B(202,a.name,a.getType(),e.constructor.name,n),s.__key===e.__key&&B(203,e.constructor.name,n,a.name,a.getType()),s}return e}function sf(e,t){!Ye(e.getParent())||R(t)||Te(t)||B(99)}function R6(e){const t=Xe(e);return t===null&&B(63,e),t}function af(e){return(Te(e)||R(e)&&!e.canBeEmpty())&&!e.isInline()}function Wu(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;r!==null&&r.removeChild(e)}function tn(e){return mn?(e||window).getSelection():null}function D6(e){const t=ch(e);return t?t.getSelection():null}function qx(e){return mt(e)&&e.tagName==="A"}function mt(e){return ts(e)&&e.nodeType===1}function ts(e){return typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeType=="number"}function Ku(e){return ts(e)&&e.nodeType===11}function Hu(e){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return e.nodeName.match(t)!==null}function _c(e){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return e.nodeName.match(t)!==null}function vr(e){if(Te(e)&&!e.isInline())return!0;if(!R(e)||jt(e))return!1;const t=e.getFirstChild(),n=t===null||Ao(t)||X(t)||t.isInline();return!e.isInline()&&e.canBeEmpty()!==!1&&n}function lh(){return Re()}const bg=new WeakMap,F6=new Map;function vg(e){if(!e._readOnly&&e.isEmpty())return F6;e._readOnly||B(192);let t=bg.get(e);return t||(t=(function(n){const r=new Map;for(const[o,i]of n._nodeMap){const s=i.__type;let a=r.get(s);a||(a=new Map,r.set(s,a)),a.set(o,i)}return r})(e),bg.set(e,t)),t}function Vx(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function j6(e){return(t=Vx(e))[hx]=!0,t;var t}function z6(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function $6(e){return e.__lexicalUnmanaged===!0}function ms(e,t){return(function(n,r){return Object.prototype.hasOwnProperty.call(n,r)})(e,t)&&e[t]!==fn[t]}function ll(e){const t=Mp in e.prototype?e.prototype[Mp]():void 0,n=(function(s){if(!(s===fn||s.prototype instanceof fn)){let a="<unknown>",c="<unknown>";try{a=s.getType()}catch{}try{Fo.version&&(c=JSON.parse(Fo.version))}catch{}B(290,s.name,a,c)}return s===kx||s===In||s===fn})(e),r=!n&&ms(e,"getType")?e.getType():void 0;let o,i=r;if(t)if(r)o=t[r];else for(const[s,a]of Object.entries(t))i=s,o=a;if(!n&&i&&(ms(e,"getType")||(e.getType=()=>i),ms(e,"clone")||(e.clone=s=>(eh(s),new e)),ms(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(s=>new e().updateFromJSON(s))),!ms(e,"importDOM")&&o)){const{importDOM:s}=o;s&&(e.importDOM=()=>s)}return{ownNodeConfig:o,ownNodeType:i}}const at=(e,t)=>{let n=e;for(;n!=null&&!Ye(n);){if(t(n))return n;n=n.getParent()}return null},B6={next:"previous",previous:"next"};class fh{constructor(t){D(this,"origin");this.origin=t}[Symbol.iterator](){return Yx({hasNext:$i,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return xt(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return xt(this.origin,this.direction)}remove(){const t=this.getNodeAtCaret();return t&&t.remove(),this}replaceOrInsert(t,n){const r=this.getNodeAtCaret();return t.is(this.origin)||t.is(r)||(r===null?this.insert(t):r.replace(t,n)),this}splice(t,n,r="next"){const o=r===this.direction?n:Array.from(n).reverse();let i=this;const s=this.getParentAtCaret(),a=new Map;for(let c=i.getAdjacentCaret();c!==null&&a.size<t;c=c.getAdjacentCaret()){const l=c.origin.getWritable();a.set(l.getKey(),l)}for(const c of o){if(a.size>0){const l=i.getNodeAtCaret();if(l){if(a.delete(l.getKey()),a.delete(c.getKey()),!(l.is(c)||i.origin.is(c))){const f=c.getParent();f&&f.is(s)&&c.remove(),l.replace(c)}}else l===null&&B(263,Array.from(a).join(" "))}else i.insert(c);i=xt(c,this.direction)}for(const c of a.values())c.remove();return this}}class Us extends fh{constructor(){super(...arguments);D(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:dn(n,this.direction)}getParentCaret(n="root"){return xt(uh(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=ns(this.direction);return xt(this.getNodeAtCaret(),n)||dn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Us&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const U6={root:Ye,shadowRoot:jt};function ns(e){return B6[e]}function uh(e,t="root"){return U6[t](e)?null:e}class zo extends fh{constructor(){super(...arguments);D(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:xt(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return R(this.origin)?dn(this.origin,this.direction):null}getParentCaret(n="root"){return xt(uh(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=ns(this.direction);return xt(this.getNodeAtCaret(),n)||dn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof zo&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof zo||n instanceof $o)&&this.direction===n.direction&&this.origin.is(n.origin)}}class $o extends fh{constructor(n,r){super(n);D(this,"type","text");D(this,"offset");this.offset=r}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:Bo(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return xt(uh(this.getParentAtCaret(),n),this.direction)}getFlipped(){return Bo(this.origin,ns(this.direction),this.offset)}isSamePointCaret(n){return n instanceof $o&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof zo||n instanceof $o)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return xt(this.origin,this.direction)}}function Mr(e){return e instanceof $o}function $i(e){return e instanceof zo}function On(e){return e instanceof Us}const W6={next:class extends $o{constructor(){super(...arguments);D(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends $o{constructor(){super(...arguments);D(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},K6={next:class extends zo{constructor(){super(...arguments);D(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends zo{constructor(){super(...arguments);D(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},H6={next:class extends Us{constructor(){super(...arguments);D(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends Us{constructor(){super(...arguments);D(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function xt(e,t){return e?new K6[t](e):null}function Bo(e,t,n){return e?new W6[t](e,Ir(e,n)):null}function Ir(e,t,n="error"){const r=e.getTextContentSize();let o=t==="next"?r:t==="previous"?0:t;return(o<0||o>r)&&(n!=="clamp"&&Nv(284,String(t),String(r),e.getKey()),o=o<0?0:r),o}function xg(e,t){return new V6(e,t)}function dn(e,t){return R(e)?new H6[t](e):null}function q6(e){return e&&e.getChildCaret()||e}function dh(e){return e&&q6(e.getAdjacentCaret())}class hh{constructor(t,n,r){D(this,"type","node-caret-range");D(this,"direction");D(this,"anchor");D(this,"focus");this.anchor=t,this.focus=n,this.direction=r}getLatest(){const t=this.anchor.getLatest(),n=this.focus.getLatest();return t===this.anchor&&n===this.focus?this:new hh(t,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=o=>{const i=this[o].getLatest();return Mr(i)?(function(s,a){const{direction:c,origin:l}=s,f=Ir(l,a==="focus"?ns(c):c);return xg(s,f-s.offset)})(i,o):null},n=t("anchor"),r=t("focus");if(n&&r){const{caret:o}=n,{caret:i}=r;if(o.isSameNodeCaret(i))return[xg(o,i.offset-o.offset),null]}return[n,r]}iterNodeCarets(t="root"){const n=Mr(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),o=Mr(r),i=s=>s.isSameNodeCaret(r)?null:dh(s)||s.getParentCaret(t);return Yx({hasNext:s=>s!==null&&!(o&&r.isSameNodeCaret(s)),initial:n.isSameNodeCaret(r)?null:i(n),map:s=>s,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class V6{constructor(t,n){D(this,"type","slice");D(this,"caret");D(this,"distance");this.caret=t,this.distance=n}getSliceIndices(){const{distance:t,caret:{offset:n}}=this,r=n+t;return r<n?[r,n]:[n,r]}getTextContent(){const[t,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(t,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:t,direction:n}}=this,[r,o]=this.getSliceIndices(),i=t.getTextContent();return Bo(t.setTextContent(i.slice(0,r)+i.slice(o)),n,r)}}function mh(e){return zr(e,xt(We(),e.direction))}function Y6(e){return zr(e,e)}function zr(e,t){return e.direction!==t.direction&&B(265),new hh(e,t,e.direction)}function Yx(e){const{initial:t,hasNext:n,step:r,map:o}=e;let i=t;return{[Symbol.iterator](){return this},next(){if(!n(i))return{done:!0,value:void 0};const s={done:!1,value:o(i)};return i=r(i),s}}}function Qx(e,t){const n=Qa(e.origin,t.origin);switch(n===null&&B(275,e.origin.getKey(),t.origin.getKey()),n.type){case"same":{const r=e.type==="text",o=t.type==="text";return r&&o?(function(i,s){return Math.sign(i-s)})(e.offset,t.offset):e.type===t.type?0:r?-1:o?1:e.type==="child"?-1:1}case"ancestor":return e.type==="child"?-1:1;case"descendant":return t.type==="child"?1:-1;case"branch":return Gx(n)}}function Gx(e){const{a:t,b:n}=e,r=t.__key,o=n.__key;let i=t,s=n;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return i===null?1:-1}function Pa(e,t){return t.is(e)}function wg(e){return R(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function Qa(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[r,o]=wg(e);r;o=r,r=r.getParent())n.set(r,o);for(let[r,o]=wg(t);r;o=r,r=r.getParent()){const i=n.get(r);if(i!==void 0)return i===null?(Pa(e,r)||B(276),{commonAncestor:r,type:"ancestor"}):o===null?(Pa(t,r)||B(277),{commonAncestor:r,type:"descendant"}):((R(i)||Pa(e,i))&&(R(o)||Pa(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||B(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function or(e,t){const{type:n,key:r,offset:o}=e,i=R6(e.key);return n==="text"?(X(i)||B(266,i.getType(),r),Bo(i,t,o)):(R(i)||B(267,i.getType(),r),Z6(i,e.offset,t))}function Uo(e,t){const{origin:n,direction:r}=t,o=r==="next";Mr(t)?e.set(n.getKey(),t.offset,"text"):$i(t)?X(n)?e.set(n.getKey(),Ir(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(On(t)&&R(n)||B(268),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function Q6(e){const t=Z(),n=$(t)?t:xx();return Ga(n,e),Pt(n),n}function Ga(e,t){Uo(e.anchor,t.anchor),Uo(e.focus,t.focus)}function Ag(e){const{anchor:t,focus:n}=e,r=or(t,"next"),o=or(n,"next"),i=Qx(r,o)<=0?"next":"previous";return zr(Bi(r,i),Bi(o,i))}function ph(e){const{direction:t,origin:n}=e,r=xt(n,ns(t)).getNodeAtCaret();return r?xt(r,t):dn(n.getParentOrThrow(),t)}function Cg(e,t="root"){const n=[e];for(let r=On(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(ph(r));return n}function cf(e){return!!e&&e.origin.isAttached()}function G6(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=Jx(e,r),s=Cg(i.anchor,n),a=Cg(i.focus.getFlipped(),n),c=new Set,l=[];for(const m of i.iterNodeCarets(n))if(On(m))c.add(m.origin.getKey());else if($i(m)){const{origin:g}=m;R(g)&&!c.has(g.getKey())||l.push(g)}for(const m of l)m.remove();for(const m of i.getTextSlices()){if(!m)continue;const{origin:g}=m.caret,p=g.getTextContentSize(),y=ph(xt(g,r)),b=g.getMode();if(Math.abs(m.distance)===p&&o==="removeEmptySlices"||b==="token"&&m.distance!==0)y.remove();else if(m.distance!==0){o="removeEmptySlices";let x=m.removeTextSlice();const w=m.caret.origin;if(b==="segmented"){const A=x.origin,_=rt(A.getTextContent()).setStyle(A.getStyle()).setFormat(A.getFormat());y.replaceOrInsert(_),x=Bo(_,r,x.offset)}w.is(s[0].origin)&&(s[0]=x),w.is(a[0].origin)&&(a[0]=x.getFlipped())}}let f,u;for(const m of s)if(cf(m)){f=Qt(m);break}for(const m of a)if(cf(m)){u=Qt(m);break}const d=(function(m,g,p){if(!m||!g)return null;const y=m.getParentAtCaret(),b=g.getParentAtCaret();if(!y||!b)return null;const x=y.getParents().reverse();x.push(y);const w=b.getParents().reverse();w.push(b);const A=Math.min(x.length,w.length);let _;for(_=0;_<A&&x[_]===w[_];_++);const S=(P,I)=>{let W;for(let j=_;j<P.length;j++){const z=P[j];if(jt(z))return;!W&&I(z)&&(W=z)}return W},E=S(x,vr),N=E&&S(w,P=>p.has(P.getKey())&&vr(P));return E&&N?[E,N]:null})(f,u,c);if(d){const[m,g]=d;dn(m,"previous").splice(0,g.getChildren()),g.remove()}const h=[f,u,...s,...a].find(cf);if(h)return Y6(Bi(Qt(h),e.direction));B(269,JSON.stringify(s.map(m=>m.origin.__key)))}function Qt(e){const t=(function(o){let i=o;for(;On(i);){const s=dh(i);if(!On(s))break;i=s}return i})(e.getLatest()),{direction:n}=t;if(X(t.origin))return Mr(t)?t:Bo(t.origin,n,n);const r=t.getAdjacentCaret();return $i(r)&&X(r.origin)?Bo(r.origin,n,ns(n)):t}function Zx(e){return Mr(e)&&e.offset!==Ir(e.origin,e.direction)}function Bi(e,t){return e.direction===t?e:e.getFlipped()}function Jx(e,t){return e.direction===t?e:zr(Bi(e.focus,t),Bi(e.anchor,t))}function Z6(e,t,n){let r=dn(e,"next");for(let o=0;o<t;o++){const i=r.getAdjacentCaret();if(i===null)break;r=i}return Bi(r,n)}function J6(...e){return e}function X6(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}const Xx=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,eN=Xx?T.useLayoutEffect:T.useEffect,Ma={tag:wo};function tN({initialConfig:e,children:t}){const n=T.useMemo(()=>{const{theme:r,namespace:o,nodes:i,onError:s,editorState:a,html:c}=e,l=mT(null,r),f=Mx({editable:e.editable,html:c,namespace:o,nodes:i,onError:u=>s(u,f),theme:r});return(function(u,d){if(d!==null){if(d===void 0)u.update(()=>{const h=We();if(h.isEmpty()){const m=Tt();h.append(m);const g=Xx?document.activeElement:null;(Z()!==null||g!==null&&g===u.getRootElement())&&m.select()}},Ma);else if(d!==null)switch(typeof d){case"string":{const h=u.parseEditorState(d);u.setEditorState(h,Ma);break}case"object":u.setEditorState(d,Ma);break;case"function":u.update(()=>{We().isEmpty()&&d(u)},Ma)}}})(f,a),[f,l]},[]);return eN(()=>{const r=e.editable,[o]=n;o.setEditable(r===void 0||r)},[]),v.jsx(Tv.Provider,{value:n,children:t})}const nN=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function rN(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function oN(){return(function(e){const[t]=ht(),n=T.useMemo(()=>e(t),[t,e]),[r,o]=T.useState(()=>n.initialValueFn()),i=T.useRef(r);return nN(()=>{const{initialValueFn:s,subscribe:a}=n,c=s();return i.current!==c&&(i.current=c,o(c)),a(l=>{i.current=l,o(l)})},[n,e]),r})(rN)}function iN(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const qu=new Map;function e1(e){const t={};if(!e)return t;const n=e.split(";");for(const r of n)if(r!==""){const[o,i]=r.split(/:([^]+)/);o&&i&&(t[o.trim()]=i.trim())}return t}function _g(e){let t=qu.get(e);return t===void 0&&(t=e1(e),qu.set(e,t)),t}function t1(e){const t=lh().getElementByKey(e.getKey());if(t===null)return null;const n=t.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(t)}function n1(e){return t1(Ye(e)?e:e.getParentOrThrow())}function Eg(e){const t=n1(e);return t!==null&&t.direction==="rtl"}function r1(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!Hn(t)&&r!==null){const[o,i]=r,s=e.isBackward(),a=o.getNode(),c=i.getNode(),l=t.is(a),f=t.is(c);if(l||f){const[u,d]=ju(e),h=a.is(c),m=t.is(s?c:a),g=t.is(s?a:c);let p,y=0;h?(y=u>d?d:u,p=u>d?u:d):m?(y=s?d:u,p=void 0):g&&(y=0,p=s?u:d);const b=t.__text.slice(y,p);b!==t.__text&&(n==="clone"&&(t=j6(t)),t.__text=b)}}return t}function Sg(e){if(e.type==="text")return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return R(t)||iN(177),e.offset===t.getChildrenSize()}function sN(e){const t=e.getStyle(),n=e1(t);qu.set(t,n)}function o1(e){const t=i1(e);return t!==null&&t.writingMode==="vertical-rl"}function i1(e){const t=e.anchor.getNode();return R(t)?t1(t):n1(t)}function kg(e,t){let n=o1(e)?!t:t;s1(e)&&(n=!n);const r=or(e.focus,n?"previous":"next");if(Zx(r))return!1;for(const o of mh(r)){if(On(o))return!o.origin.isInline();if(!R(o.origin)){if(Te(o.origin))return!0;break}}return!1}function aN(e,t,n,r){e.modify(t?"extend":"move",n,r)}function s1(e){const t=i1(e);return t!==null&&t.direction==="rtl"}function Tg(e,t,n){const r=s1(e);let o;o=o1(e)||r?!n:n,aN(e,t,o,"character")}function cN(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const a1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,lN=a1&&"documentMode"in document?document.documentMode:null;!(!a1||!("InputEvent"in window)||lN)&&"getTargetRanges"in new window.InputEvent("input");function c1(...e){const t=[];for(const n of e)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))t.push(r);return t}function hn(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function gh(e,...t){const n=c1(...t);n.length>0&&e.classList.add(...n)}function l1(e,...t){const n=c1(...t);n.length>0&&e.classList.remove(...n)}function fN(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function uN(e){const t=at(e,n=>R(n)&&!n.isInline());return R(t)||cN(4,e.__key),t}function Nr(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}const dN=Symbol.for("preact-signals");function fl(){if(Lr>1)return void Lr--;let e,t=!1;for(;ks!==void 0;){let n=ks;for(ks=void 0,Vu++;n!==void 0;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&f1(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(Vu=0,Lr--,t)throw e}function hN(e){if(Lr>0)return e();Lr++;try{return e()}finally{fl()}}let Pe,ks;function Ng(e){const t=Pe;Pe=void 0;try{return e()}finally{Pe=t}}let Lr=0,Vu=0,Za=0;function Og(e){if(Pe===void 0)return;let t=e.n;return t===void 0||t.t!==Pe?(t={i:0,S:e,p:Pe.s,n:void 0,t:Pe,e:void 0,x:void 0,r:t},Pe.s!==void 0&&(Pe.s.n=t),Pe.s=t,e.n=t,32&Pe.f&&e.S(t),t):t.i===-1?(t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=Pe.s,t.n=void 0,Pe.s.n=t,Pe.s=t),t):void 0}function _t(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}function mN(e,t){return new _t(e,t)}function f1(e){for(let t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Pg(e){for(let t=e.s;t!==void 0;t=t.n){const n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function u1(e){let t,n=e.s;for(;n!==void 0;){const r=n.p;n.i===-1?(n.S.U(n),r!==void 0&&(r.n=n.n),n.n!==void 0&&(n.n.p=r)):t=n,n.S.n=n.r,n.r!==void 0&&(n.r=void 0),n=r}e.s=t}function ri(e,t){_t.call(this,void 0),this.x=e,this.s=void 0,this.g=Za-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}function d1(e){const t=e.u;if(e.u=void 0,typeof t=="function"){Lr++;const n=Pe;Pe=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,yh(e),r}finally{Pe=n,fl()}}}function yh(e){for(let t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,d1(e)}function pN(e){if(Pe!==this)throw new Error("Out-of-order effect");u1(this),Pe=e,this.f&=-2,8&this.f&&yh(this),fl()}function li(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}function Ws(e,t){const n=new li(e,t);try{n.c()}catch(o){throw n.d(),o}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function h1(e,t={}){const n={};for(const r in e){const o=t[r],i=mN(o===void 0?e[r]:o);n[r]=i}return n}_t.prototype.brand=dN,_t.prototype.h=function(){return!0},_t.prototype.S=function(e){const t=this.t;t!==e&&e.e===void 0&&(e.x=t,this.t=e,t!==void 0?t.e=e:Ng(()=>{var n;(n=this.W)==null||n.call(this)}))},_t.prototype.U=function(e){if(this.t!==void 0){const t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&Ng(()=>{var r;(r=this.Z)==null||r.call(this)}))}},_t.prototype.subscribe=function(e){return Ws(()=>{const t=this.value,n=Pe;Pe=void 0;try{e(t)}finally{Pe=n}},{name:"sub"})},_t.prototype.valueOf=function(){return this.value},_t.prototype.toString=function(){return this.value+""},_t.prototype.toJSON=function(){return this.value},_t.prototype.peek=function(){const e=Pe;Pe=void 0;try{return this.value}finally{Pe=e}},Object.defineProperty(_t.prototype,"value",{get(){const e=Og(this);return e!==void 0&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(Vu>100)throw new Error("Cycle detected");this.v=e,this.i++,Za++,Lr++;try{for(let t=this.t;t!==void 0;t=t.x)t.t.N()}finally{fl()}}}}),ri.prototype=new _t,ri.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Za))return!0;if(this.g=Za,this.f|=1,this.i>0&&!f1(this))return this.f&=-2,!0;const e=Pe;try{Pg(this),Pe=this;const t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return Pe=e,u1(this),this.f&=-2,!0},ri.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(let t=this.s;t!==void 0;t=t.n)t.S.S(t)}_t.prototype.S.call(this,e)},ri.prototype.U=function(e){if(this.t!==void 0&&(_t.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(let t=this.s;t!==void 0;t=t.n)t.S.U(t)}},ri.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(ri.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=Og(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),li.prototype.c=function(){const e=this.S();try{if(8&this.f||this.x===void 0)return;const t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},li.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,d1(this),Pg(this),Lr++;const e=Pe;return Pe=this,pN.bind(this,e)},li.prototype.N=function(){2&this.f||(this.f|=2,this.o=ks,ks=this)},li.prototype.d=function(){this.f|=8,1&this.f||yh(this)},li.prototype.dispose=function(){this.d()};function gN(e){return(typeof e.nodes=="function"?e.nodes():e.nodes)||[]}function Fe(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function m1(e,t){if(e&&t&&!Array.isArray(t)&&typeof e=="object"&&typeof t=="object"){const n=e,r=t;for(const o in r)n[o]=m1(n[o],r[o]);return e}return t}const bh=0,Yu=1,p1=2,lf=3,Ia=4,oi=5,ff=6,ps=7;function uf(e){return e.id===bh}function g1(e){return e.id===p1}function yN(e){return(function(t){return t.id===Yu})(e)||Fe(305,String(e.id),String(Yu)),Object.assign(e,{id:p1})}const bN=new Set;class vN{constructor(t,n){D(this,"builder");D(this,"configs");D(this,"_dependency");D(this,"_peerNameSet");D(this,"extension");D(this,"state");D(this,"_signal");this.builder=t,this.extension=n,this.configs=new Set,this.state={id:bh}}mergeConfigs(){let t=this.extension.config||{};const n=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):X6;for(const r of this.configs)t=n(t,r);return t}init(t){const n=this.state;g1(n)||Fe(306,String(n.id));const r={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},o={...r,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},i=(function(a,c,l){return Object.assign(a,{config:c,id:lf,registerState:l})})(n,this.mergeConfigs(),r);let s;this.state=i,this.extension.init&&(s=this.extension.init(t,i.config,r)),this.state=(function(a,c,l){return Object.assign(a,{id:Ia,initResult:c,registerState:l})})(i,s,o)}build(t){const n=this.state;let r;n.id!==Ia&&Fe(307,String(n.id),String(oi)),this.extension.build&&(r=this.extension.build(t,n.config,n.registerState));const o={...n.registerState,getOutput:()=>r,getSignal:this.getSignal.bind(this)};this.state=(function(i,s,a){return Object.assign(i,{id:oi,output:s,registerState:a})})(n,r,o)}register(t,n){this._signal=n;const r=this.state;r.id!==oi&&Fe(308,String(r.id),String(oi));const o=this.extension.register&&this.extension.register(t,r.config,r.registerState);return this.state=(function(i){return Object.assign(i,{id:ff})})(r),()=>{const i=this.state;i.id!==ps&&Fe(309,String(r.id),String(ps)),this.state=(function(s){return Object.assign(s,{id:oi})})(i),o&&o()}}afterRegistration(t){const n=this.state;let r;return n.id!==ff&&Fe(310,String(n.id),String(ff)),this.extension.afterRegistration&&(r=this.extension.afterRegistration(t,n.config,n.registerState)),this.state=(function(o){return Object.assign(o,{id:ps})})(n),r}getSignal(){return this._signal===void 0&&Fe(311),this._signal}getInitResult(){this.extension.init===void 0&&Fe(312,this.extension.name);const t=this.state;return(function(n){return n.id>=Ia})(t)||Fe(313,String(t.id),String(Ia)),t.initResult}getInitPeer(t){const n=this.builder.extensionNameMap.get(t);return n?n.getExtensionInitDependency():void 0}getExtensionInitDependency(){const t=this.state;return(function(n){return n.id>=lf})(t)||Fe(314,String(t.id),String(lf)),{config:t.config}}getPeer(t){const n=this.builder.extensionNameMap.get(t);return n?n.getExtensionDependency():void 0}getInitDependency(t){const n=this.builder.getExtensionRep(t);return n===void 0&&Fe(315,this.extension.name,t.name),n.getExtensionInitDependency()}getDependency(t){const n=this.builder.getExtensionRep(t);return n===void 0&&Fe(315,this.extension.name,t.name),n.getExtensionDependency()}getState(){const t=this.state;return(function(n){return n.id>=ps})(t)||Fe(316,String(t.id),String(ps)),t}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||bN}getPeerNameSet(){let t=this._peerNameSet;return t||(t=new Set((this.extension.peerDependencies||[]).map(([n])=>n)),this._peerNameSet=t),t}getExtensionDependency(){if(!this._dependency){const t=this.state;(function(n){return n.id>=oi})(t)||Fe(317,this.extension.name),this._dependency={config:t.config,init:t.initResult,output:t.output}}return this._dependency}}const Mg={tag:wo};function xN(){const e=We();e.isEmpty()&&e.append(Tt())}const wN={config:{setOptions:Mg,updateOptions:Mg},init:({$initialEditorState:e=xN})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){const o=r.getInitResult();if(!o.initialized){o.initialized=!0;const{$initialEditorState:i}=o;if(C6(i))e.setEditorState(i,n);else if(typeof i=="function")e.update(()=>{i(e)},t);else if(i&&(typeof i=="string"||typeof i=="object")){const s=e.parseEditorState(i);e.setEditorState(s,n)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[Xi,Kr,Gi,Zi,es]},Ig=Symbol.for("@lexical/extension/LexicalBuilder");function Lg(){}function AN(e){throw e}function La(e){return Array.isArray(e)?e:[e]}const df="0.39.0+prod.esm";class wi{constructor(t){D(this,"roots");D(this,"extensionNameMap");D(this,"outgoingConfigEdges");D(this,"incomingEdges");D(this,"conflicts");D(this,"_sortedExtensionReps");D(this,"PACKAGE_VERSION");this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=df,this.roots=t;for(const n of t)this.addExtension(n)}static fromExtensions(t){const n=[La(wN)];for(const r of t)n.push(La(r));return new wi(n)}static maybeFromEditor(t){const n=t[Ig];return n&&(n.PACKAGE_VERSION!==df&&Fe(292,n.PACKAGE_VERSION,df),n instanceof wi||Fe(293)),n}static fromEditor(t){const n=wi.maybeFromEditor(t);return n===void 0&&Fe(294),n}constructEditor(){const{$initialEditorState:t,onError:n,...r}=this.buildCreateEditorArgs(),o=Object.assign(Mx({...r,...n?{onError:i=>{n(i,o)}}:{}}),{[Ig]:this});for(const i of this.sortedExtensionReps())i.build(o);return o}buildEditor(){let t=Lg;function n(){try{t()}finally{t=Lg}}const r=Object.assign(this.constructEditor(),{dispose:n,[Symbol.dispose]:n});return t=hn(this.registerEditor(r),()=>r.setRootElement(null)),r}hasExtensionByName(t){return this.extensionNameMap.has(t)}getExtensionRep(t){const n=this.extensionNameMap.get(t.name);if(n)return n.extension!==t&&Fe(295,t.name),n}addEdge(t,n,r){const o=this.outgoingConfigEdges.get(t);o?o.set(n,r):this.outgoingConfigEdges.set(t,new Map([[n,r]]));const i=this.incomingEdges.get(n);i?i.add(t):this.incomingEdges.set(n,new Set([t]))}addExtension(t){this._sortedExtensionReps!==void 0&&Fe(296);const n=La(t),[r]=n;typeof r.name!="string"&&Fe(297,typeof r.name);let o=this.extensionNameMap.get(r.name);if(o!==void 0&&o.extension!==r&&Fe(298,r.name),!o){o=new vN(this,r),this.extensionNameMap.set(r.name,o);const i=this.conflicts.get(r.name);typeof i=="string"&&Fe(299,r.name,i);for(const s of r.conflictsWith||[])this.extensionNameMap.has(s)&&Fe(299,r.name,s),this.conflicts.set(s,r.name);for(const s of r.dependencies||[]){const a=La(s);this.addEdge(r.name,a[0].name,a.slice(1)),this.addExtension(a)}for(const[s,a]of r.peerDependencies||[])this.addEdge(r.name,s,a?[a]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const t=[],n=(r,o)=>{let i=r.state;if(g1(i))return;const s=r.extension.name;var a;uf(i)||Fe(300,s,o||"[unknown]"),uf(a=i)||Fe(304,String(a.id),String(bh)),i=Object.assign(a,{id:Yu}),r.state=i;const c=this.outgoingConfigEdges.get(s);if(c)for(const l of c.keys()){const f=this.extensionNameMap.get(l);f&&n(f,s)}i=yN(i),r.state=i,t.push(r)};for(const r of this.extensionNameMap.values())uf(r.state)&&n(r);for(const r of t)for(const[o,i]of this.outgoingConfigEdges.get(r.extension.name)||[])if(i.length>0){const s=this.extensionNameMap.get(o);if(s)for(const a of i)s.configs.add(a)}for(const[r,...o]of this.roots)if(o.length>0){const i=this.extensionNameMap.get(r.name);i===void 0&&Fe(301,r.name);for(const s of o)i.configs.add(s)}return this._sortedExtensionReps=t,this._sortedExtensionReps}registerEditor(t){const n=this.sortedExtensionReps(),r=new AbortController,o=[()=>r.abort()],i=r.signal;for(const s of n){const a=s.register(t,i);a&&o.push(a)}for(const s of n){const a=s.afterRegistration(t);a&&o.push(a)}return hn(...o)}buildCreateEditorArgs(){const t={},n=new Set,r=new Map,o=new Map,i={},s={},a=this.sortedExtensionReps();for(const f of a){const{extension:u}=f;if(u.onError!==void 0&&(t.onError=u.onError),u.disableEvents!==void 0&&(t.disableEvents=u.disableEvents),u.parentEditor!==void 0&&(t.parentEditor=u.parentEditor),u.editable!==void 0&&(t.editable=u.editable),u.namespace!==void 0&&(t.namespace=u.namespace),u.$initialEditorState!==void 0&&(t.$initialEditorState=u.$initialEditorState),u.nodes)for(const d of gN(u)){if(typeof d!="function"){const h=r.get(d.replace);h&&Fe(302,u.name,d.replace.name,h.extension.name),r.set(d.replace,f)}n.add(d)}if(u.html){if(u.html.export)for(const[d,h]of u.html.export.entries())o.set(d,h);u.html.import&&Object.assign(i,u.html.import)}u.theme&&m1(s,u.theme)}Object.keys(s).length>0&&(t.theme=s),n.size&&(t.nodes=[...n]);const c=Object.keys(i).length>0,l=o.size>0;(c||l)&&(t.html={},c&&(t.html.import=i),l&&(t.html.export=o));for(const f of a)f.init(t);return t.onError||(t.onError=AN),t}}function CN(e,t){const n=wi.fromEditor(e).extensionNameMap.get(t);return n?n.getExtensionDependency():void 0}const _N={name:"@lexical/react/ReactProvider"};function EN(){return We().getTextContent()}function SN(e,t=!0){if(e)return!1;let n=EN();return t&&(n=n.trim()),n===""}function kN(e){if(!SN(e,!1))return!1;const t=We().getChildren(),n=t.length;if(n>1)return!1;for(let r=0;r<n;r++){const o=t[r];if(Te(o))return!1;if(R(o)){if(!Xd(o)||o.__indent!==0)return!1;const i=o.getChildren(),s=i.length;for(let a=0;a<s;a++){const c=i[r];if(!X(c))return!1}}}return!0}function y1(e){return()=>kN(e)}function TN(e){const t=window.location.origin,n=r=>{if(r.origin!==t)return;const o=e.getRootElement();if(document.activeElement!==o)return;const i=r.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){const a=s.payload;if(a&&a.functionId==="makeChanges"){const c=a.args;if(c){const[l,f,u,d,h]=c;e.update(()=>{const m=Z();if($(m)){const g=m.anchor;let p=g.getNode(),y=0,b=0;if(X(p)&&l>=0&&f>=0&&(y=l,b=l+f,m.setTextNodeRange(p,y,p,b)),y===b&&u===""||(m.insertRawText(u),p=g.getNode()),X(p)){y=d,b=d+h;const x=p.getTextContentSize();y=y>x?x:y,b=b>x?x:b,m.setTextNodeRange(p,y,p,b)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function b1(e,t){const n=Dx(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const i of n)if(!w1.has(i.nodeName)){const s=A1(i,e,o,!1);s!==null&&(r=r.concat(s))}return(function(i){for(const s of i)s.getNextSibling()instanceof Jd&&s.insertAfter(Do());for(const s of i){const a=s.getChildren();for(const c of a)s.insertBefore(c);s.remove()}})(o),r}function v1(e,t){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),r=We().getChildren();for(let o=0;o<r.length;o++)x1(e,r[o],n,t);return n.innerHTML}function x1(e,t,n,r=null){let o=r===null||t.isSelected(r);const i=R(t)&&t.excludeFromCopy("html");let s=t;r!==null&&X(t)&&(s=r1(r,t,"clone"));const a=R(s)?s.getChildren():[],c=th(e,s.getType());let l;l=c&&c.exportDOM!==void 0?c.exportDOM(e,s):s.exportDOM(e);const{element:f,after:u}=l;if(!f)return!1;const d=document.createDocumentFragment();for(let h=0;h<a.length;h++){const m=a[h],g=x1(e,m,d,r);!o&&R(t)&&g&&t.extractWithChild(m,r,"html")&&(o=!0)}if(o&&!i){if((mt(f)||Ku(f))&&f.append(d),n.append(f),u){const h=u.call(s,f);h&&(Ku(f)?f.replaceChildren(h):f.replaceWith(h))}}else n.append(d);return o}const w1=new Set(["STYLE","SCRIPT"]);function A1(e,t,n,r,o=new Map,i){let s=[];if(w1.has(e.nodeName))return s;let a=null;const c=(function(m,g){const{nodeName:p}=m,y=g._htmlConversions.get(p.toLowerCase());let b=null;if(y!==void 0)for(const x of y){const w=x(m);w!==null&&(b===null||(b.priority||0)<=(w.priority||0))&&(b=w)}return b!==null?b.conversion:null})(e,t),l=c?c(e):null;let f=null;if(l!==null){f=l.after;const m=l.node;if(a=Array.isArray(m)?m[m.length-1]:m,a!==null){for(const[,g]of o)if(a=g(a,i),!a)break;a&&s.push(...Array.isArray(m)?m:[a])}l.forChild!=null&&o.set(e.nodeName,l.forChild)}const u=e.childNodes;let d=[];const h=(a==null||!jt(a))&&(a!=null&&zu(a)||r);for(let m=0;m<u.length;m++)d.push(...A1(u[m],t,n,h,new Map(o),a));return f!=null&&(d=f(d)),_c(e)&&(d=NN(e,d,h?()=>{const m=new Jd;return n.push(m),m}:Tt)),a==null?d.length>0?s=s.concat(d):_c(e)&&(function(m){return m.nextSibling==null||m.previousSibling==null?!1:Hu(m.nextSibling)&&Hu(m.previousSibling)})(e)&&(s=s.concat(Do())):R(a)&&a.append(...d),s}function NN(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let s=0;s<t.length;s++){const a=t[s];if(zu(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),s===t.length-1||s<t.length-1&&zu(t[s+1])){const c=n();c.setFormat(r),c.append(...i),o.push(c),i=[]}}return o}function Ec(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function ON(e,t=Z()){return t==null&&Ec(166),$(t)&&t.isCollapsed()||t.getNodes().length===0?"":v1(e,t)}function PN(e,t=Z()){return t==null&&Ec(166),$(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(MN(e,t))}function Rg(e,t,n){const r=e.getData("application/x-lexical-editor");if(r)try{const a=JSON.parse(r);if(a.namespace===n._config.namespace&&Array.isArray(a.nodes))return Dg(n,IN(a.nodes),t)}catch(a){console.error(a)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{const a=new DOMParser().parseFromString((function(c){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:l=>l}).createHTML(c):c})(o),"text/html");return Dg(n,b1(n,a),t)}catch(a){console.error(a)}const s=i||e.getData("text/uri-list");if(s!=null)if($(t)){const a=s.split(/(\r?\n|\t)/);a[a.length-1]===""&&a.pop();for(let c=0;c<a.length;c++){const l=Z();if($(l)){const f=a[c];f===`
604
+ `?r.push(Fo()):s===" "?r.push(ia()):r.push(ot(s))}this.insertNodes(r)}insertText(t){const n=this.anchor,r=this.focus,o=this.format,i=this.style;let s=n,a=r;!this.isCollapsed()&&r.isBefore(n)&&(s=r,a=n),s.type==="element"&&(function(g,y,b,x){const w=g.getNode(),A=w.getChildAtIndex(g.offset),E=ot();if(E.setFormat(b),E.setStyle(x),th(A))A.splice(0,0,[E]);else{const _=Ye(w)?Tt().append(E):E;A===null?w.append(_):A.insertBefore(_)}g.is(y)&&y.set(E.__key,0,"text"),g.set(E.__key,0,"text")})(s,a,o,i),a.type==="element"&&Wo(a,Gt(ir(a,"next")));const c=s.offset;let l=a.offset;const f=this.getNodes(),u=f.length;let d=f[0];X(d)||U(26);const h=d.getTextContent().length,m=d.getParentOrThrow();let p=f[u-1];if(u===1&&a.type==="element"&&(l=h,a.set(s.key,l,"text")),this.isCollapsed()&&c===h&&(qn(d)||!d.canInsertTextAfter()||!m.canInsertTextAfter()&&d.getNextSibling()===null)){let g=d.getNextSibling();if(X(g)&&g.canInsertTextBefore()&&!qn(g)||(g=ot(),g.setFormat(o),g.setStyle(i),m.canInsertTextAfter()?d.insertAfter(g):m.insertAfter(g)),g.select(0,0),d=g,t!=="")return void this.insertText(t)}else if(this.isCollapsed()&&c===0&&(qn(d)||!d.canInsertTextBefore()||!m.canInsertTextBefore()&&d.getPreviousSibling()===null)){let g=d.getPreviousSibling();if(X(g)&&!qn(g)||(g=ot(),g.setFormat(o),m.canInsertTextBefore()?d.insertBefore(g):m.insertBefore(g)),g.select(),d=g,t!=="")return void this.insertText(t)}else if(d.isSegmented()&&c!==h){const g=ot(d.getTextContent());g.setFormat(o),d.replace(g),d=g}else if(!this.isCollapsed()&&t!==""){const g=p.getParent();if(!m.canInsertTextBefore()||!m.canInsertTextAfter()||R(g)&&(!g.canInsertTextBefore()||!g.canInsertTextAfter()))return this.insertText(""),Ex(this.anchor,this.focus,null),void this.insertText(t)}if(u===1){if(Eo(d)){const x=ot(t);return x.select(),void d.replace(x)}const g=d.getFormat(),y=d.getStyle();if(c!==l||g===o&&y===i){if(Cx(d)){const x=ot(t);return x.setFormat(o),x.setStyle(i),x.select(),void d.replace(x)}}else{if(d.getTextContent()!==""){const x=ot(t);if(x.setFormat(o),x.setStyle(i),x.select(),c===0)d.insertBefore(x,!1);else{const[w]=d.splitText(c);w.insertAfter(x,!1)}return void(x.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length))}d.setFormat(o),d.setStyle(i)}const b=l-c;d=d.spliceText(c,b,t,!0),d.getTextContent()===""?d.remove():this.anchor.type==="text"&&(d.isComposing()?this.anchor.offset-=t.length:(this.format=g,this.style=y))}else{const g=new Set([...d.getParentKeys(),...p.getParentKeys()]),y=R(d)?d:d.getParentOrThrow();let b=R(p)?p:p.getParentOrThrow(),x=p;if(!y.is(b)&&b.isInline())do x=b,b=b.getParentOrThrow();while(b.isInline());if(a.type==="text"&&(l!==0||p.getTextContent()==="")||a.type==="element"&&p.getIndexWithinParent()<l)if(X(p)&&!Eo(p)&&l!==p.getTextContentSize()){if(p.isSegmented()){const S=ot(p.getTextContent());p.replace(S),p=S}Ye(a.getNode())||a.type!=="text"||(p=p.spliceText(0,l,"")),g.add(p.__key)}else{const S=p.getParentOrThrow();S.canBeEmpty()||S.getChildrenSize()!==1?p.remove():S.remove()}else g.add(p.__key);const w=b.getChildren(),A=new Set(f),E=y.is(b),_=y.isInline()&&d.getNextSibling()===null?y:d;for(let S=w.length-1;S>=0;S--){const O=w[S];if(O.is(d)||R(O)&&O.isParentOf(d))break;O.isAttached()&&(!A.has(O)||O.is(x)?E||_.insertAfter(O,!1):O.remove())}if(!E){let S=b,O=null;for(;S!==null;){const P=S.getChildren(),I=P.length;(I===0||P[I-1].is(O))&&(g.delete(S.__key),O=S),S=S.getParent()}}if(Eo(d))if(c===h)d.select();else{const S=ot(t);S.select(),d.replace(S)}else d=d.spliceText(c,h-c,t,!0),d.getTextContent()===""?d.remove():d.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length);for(let S=1;S<u;S++){const O=f[S],P=O.__key;g.has(P)||O.remove()}}}removeText(){const t=Z()===this;Ja(this,cN(_g(this))),t&&Z()!==this&&Pt(this)}formatText(t,n=null){if(this.isCollapsed())return this.toggleFormat(t),void dt(null);const r=this.getNodes(),o=[];for(const w of r)X(w)&&o.push(w);const i=w=>{r.forEach(A=>{if(R(A)){const E=A.getFormatFlags(t,w);A.setTextFormat(E)}})},s=o.length;if(s===0)return this.toggleFormat(t),dt(null),void i(n);const a=this.anchor,c=this.focus,l=this.isBackward(),f=l?c:a,u=l?a:c;let d=0,h=o[0],m=f.type==="element"?0:f.offset;if(f.type==="text"&&m===h.getTextContentSize()&&(d=1,h=o[1],m=0),h==null)return;const p=h.getFormatFlags(t,n);i(p);const g=s-1;let y=o[g];const b=u.type==="text"?u.offset:y.getTextContentSize();if(h.is(y)){if(m===b)return;if(qn(h)||m===0&&b===h.getTextContentSize())h.setFormat(p);else{const w=h.splitText(m,b),A=m===0?w[0]:w[1];A.setFormat(p),f.type==="text"&&f.set(A.__key,0,"text"),u.type==="text"&&u.set(A.__key,b-m,"text")}return void(this.format=p)}m===0||qn(h)||([,h]=h.splitText(m),m=0),h.setFormat(p);const x=y.getFormatFlags(t,p);b>0&&(b===y.getTextContentSize()||qn(y)||([y]=y.splitText(b)),y.setFormat(x));for(let w=d+1;w<g;w++){const A=o[w],E=A.getFormatFlags(t,x);A.setFormat(E)}f.type==="text"&&f.set(h.__key,m,"text"),u.type==="text"&&u.set(y.__key,b,"text"),this.format=p|x}insertNodes(t){if(t.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const m=Z();return B(m)||U(134),m.insertNodes(t)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=ct(n,xr),o=t[t.length-1];if(R(r)&&"__language"in r){if("__language"in t[0])this.insertText(t[0].getTextContent());else{const m=of(this);r.splice(m,0,t),o.selectEnd()}return}if(!t.some(m=>(R(m)||Te(m))&&!m.isInline())){R(r)||U(211,n.constructor.name,n.getType());const m=of(this);return r.splice(m,0,t),void o.selectEnd()}const i=(function(m){const p=Tt();let g=null;for(let y=0;y<m.length;y++){const b=m[y],x=Co(b);if(x||Te(b)&&b.isInline()||R(b)&&b.isInline()||X(b)||b.isParentRequired()){if(g===null&&(g=b.createParentElementNode(),p.append(g),x))continue;g!==null&&g.append(b)}else p.append(b),g=null}return p})(t),s=i.getLastDescendant(),a=i.getChildren(),c=!R(r)||!r.isEmpty()?this.insertParagraph():null,l=a[a.length-1];let f=a[0];var u;R(u=f)&&xr(u)&&!u.isEmpty()&&R(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(R(r)||U(211,n.constructor.name,n.getType()),r.append(...f.getChildren()),f=a[1]),f&&(r===null&&U(212,n.constructor.name,n.getType()),(function(m,p){const g=p.getParentOrThrow().getLastChild();let y=p;const b=[p];for(;y!==g;)y.getNextSibling()||U(140),y=y.getNextSibling(),b.push(y);let x=m;for(const w of b)x=x.insertAfter(w)})(r,f));const d=ct(s,xr);c&&R(d)&&(c.canMergeWhenEmpty()||xr(l))&&(d.append(...c.getChildren()),c.remove()),R(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const h=R(r)?r.getLastChild():null;Co(h)&&d!==r&&h.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Tt();return We().splice(this.anchor.offset,0,[s]),s.select(),s}const t=of(this),n=ct(this.anchor.getNode(),xr);R(n)||U(213);const r=n.getChildAtIndex(t),o=r?[r,...r.getNextSiblings()]:[],i=n.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(t){const n=Fo();if(this.insertNodes([n]),t){const r=n.getParentOrThrow(),o=n.getIndexWithinParent();r.select(o,o)}}extract(){const t=[...this.getNodes()],n=t.length;let r=t[0],o=t[n-1];const[i,s]=zu(this),a=this.isBackward(),[c,l]=a?[this.focus,this.anchor]:[this.anchor,this.focus],[f,u]=a?[s,i]:[i,s];if(n===0)return[];if(n===1){if(X(r)&&!this.isCollapsed()){const d=r.splitText(f,u),h=f===0?d[0]:d[1];return h?(c.set(h.getKey(),0,"text"),l.set(h.getKey(),h.getTextContentSize(),"text"),[h]):[]}return[r]}if(X(r)&&(f===r.getTextContentSize()?t.shift():f!==0&&([,r]=r.splitText(f),t[0]=r,c.set(r.getKey(),0,"text"))),X(o)){const d=o.getTextContent().length;u===0?t.pop():u!==d&&([o]=o.splitText(u),t[t.length-1]=o,l.set(o.getKey(),o.getTextContentSize(),"text"))}return t}modify(t,n,r){if(ag(this,t,n,r))return;const o=t==="move",i=De(),s=tn(en(i));if(!s)return;const a=i._blockCursorElement,c=i._rootElement,l=this.focus.getNode();if(c===null||a===null||!R(l)||l.isInline()||l.canBeEmpty()||Ku(a,i,c),this.dirty){let f=zo(i,this.anchor.key),u=zo(i,this.focus.key);this.anchor.type==="text"&&(f=zi(f)),this.focus.type==="text"&&(u=zi(u)),f&&u&&Nx(s,f,this.anchor.offset,u,this.focus.offset)}if((function(f,u,d,h){f.modify(u,d,h)})(s,t,n?"backward":"forward",r),s.rangeCount>0){const f=s.getRangeAt(0),u=this.anchor.getNode(),d=Ye(u)?u:q6(u);if(this.applyDOMRange(f),this.dirty=!0,!o){const h=this.getNodes(),m=[];let p=!1;for(let g=0;g<h.length;g++){const y=h[g];Wu(y,d)?m.push(y):p=!0}if(p&&m.length>0)if(n){const g=m[0];R(g)?g.selectStart():g.getParentOrThrow().selectStart()}else{const g=m[m.length-1];R(g)?g.selectEnd():g.getParentOrThrow().selectEnd()}s.anchorNode===f.startContainer&&s.anchorOffset===f.startOffset||(function(g){const y=g.focus,b=g.anchor,x=b.key,w=b.offset,A=b.type;b.set(y.key,y.offset,y.type,!0),y.set(x,w,A,!0)})(this)}}r==="lineboundary"&&ag(this,t,n,r,"decorators")}forwardDeletion(t,n,r){if(!r&&(t.type==="element"&&R(n)&&t.offset===n.getChildrenSize()||t.type==="text"&&t.offset===n.getTextContentSize())){const o=n.getParent(),i=n.getNextSibling()||(o===null?null:o.getNextSibling());if(R(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(t){const n=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let o=r.getNode();if(this.forwardDeletion(r,o,t))return;const i=gh(ir(r,t?"previous":"next"));if(i.getTextSlices().every(a=>a===null||a.distance===0)){let a={type:"initial"};for(const c of i.iterNodeCarets("shadowRoot"))if(Pn(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(a.type==="merge-block")break;if(R(i.anchor.origin)&&i.anchor.origin.isEmpty()){const l=Gt(c);Ja(this,$r(l,l)),i.anchor.origin.remove()}return}a.type!=="merge-next-block"&&a.type!=="merge-block"||(a={block:a.block,caret:c,type:"merge-block"})}}else{if(a.type==="merge-block")break;if(Bi(c)){if(R(c.origin)){if(c.origin.isInline()){if(!c.origin.isParentOf(i.anchor.origin))break}else a={block:c.origin,type:"merge-next-block"};continue}if(Te(c.origin)){if(!c.origin.isIsolated())if(a.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&R(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const l=Tx();l.add(c.origin.getKey()),Pt(l)}else c.origin.remove();return}break}}if(a.type==="merge-block"){const{caret:c,block:l}=a;return Ja(this,$r(!c.origin.isEmpty()&&l.isEmpty()?yh(xt(l,c.direction)):i.anchor,c)),this.removeText()}}const s=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&r.offset===0&&tg(this,r.getNode()))return}else{const a=s.type==="text"?s.getNode():null;if(o=r.type==="text"?r.getNode():null,a!==null&&a.isSegmented()){const c=s.offset,l=a.getTextContentSize();if(a.is(o)||t&&c!==l||!t&&c!==0)return void ng(a,t,c)}else if(o!==null&&o.isSegmented()){const c=r.offset,l=o.getTextContentSize();if(o.is(a)||t&&c!==0||!t&&c!==l)return void ng(o,t,c)}(function(c,l){const f=c.anchor,u=c.focus,d=f.getNode(),h=u.getNode();if(d===h&&f.type==="text"&&u.type==="text"){const m=f.offset,p=u.offset,g=m<p,y=g?m:p,b=g?p:m,x=b-1;y!==x&&(function(w){return!(Yx(w)||O6(w))})(d.getTextContent().slice(y,b))&&(l?u.set(u.key,x,u.type):f.set(f.key,x,f.type))}})(this,t)}}if(this.removeText(),t&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&Ye(r.getParent())&&r.getPreviousSibling()===null&&tg(this,r)}}deleteLine(t){this.isCollapsed()&&this.modify("extend",t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):this.removeText()}deleteWord(t){if(this.isCollapsed()){const n=this.anchor,r=n.getNode();if(this.forwardDeletion(n,r,t))return;this.modify("extend",t,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function it(e){return e instanceof sl}function eg(e){const t=e.offset;if(e.type==="text")return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function zu(e){const t=e.getStartEndPoints();if(t===null)return[0,0];const[n,r]=t;return n.type==="element"&&r.type==="element"&&n.key===r.key&&n.offset===r.offset?[0,0]:[eg(n),eg(r)]}function tg(e,t){for(let n=t;n;n=n.getParent()){if(R(n)){if(n.collapseAtStart(e))return!0;if(jt(n))break}if(n.getPreviousSibling())break}return!1}const O6=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch{}return()=>!1})();function ng(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,a=0;for(let l=0;l<i;l++){const f=l===i-1;if(a=s,s+=o[l].length,t&&s===n||s>n||f){o.splice(l,1),f&&(a=void 0);break}}const c=o.join("").trim();c===""?r.remove():(r.setTextContent(c),r.select(a,a))}function rg(e,t,n,r){let o,i=t;if(mt(e)){let s=!1;const a=e.childNodes,c=a.length,l=r._blockCursorElement;i===c&&(s=!0,i=c-1);let f=a[i],u=!1;if(f===l)f=a[i+1],u=!0;else if(l!==null){const d=l.parentNode;e===d&&t>Array.prototype.indexOf.call(d.children,l)&&i--}if(o=di(f),X(o))i=Lr(o,s?"next":"previous");else{let d=di(e);if(d===null)return null;if(R(d)){const h=r.getElementByKey(d.getKey());h===null&&U(214),[d,i]=d.getDOMSlot(h).resolveChildIndex(d,h,e,t),R(d)||U(215),s&&i>=d.getChildrenSize()&&(i=Math.max(0,d.getChildrenSize()-1));let p=d.getChildAtIndex(i);if(R(p)&&(function(g,y,b){const x=g.getParent();return b===null||x===null||!x.canBeEmpty()||x!==b.getNode()})(p,0,n)){const g=s?p.getLastDescendant():p.getFirstDescendant();g===null?d=p:(p=g,d=R(p)?p:p.getParentOrThrow()),i=0}X(p)?(o=p,d=null,i=Lr(p,s?"next":"previous")):p!==d&&s&&!u&&(R(d)||U(216),i=Math.min(d.getChildrenSize(),i+1))}else{const h=d.getIndexWithinParent();i=t===0&&Te(d)&&di(e)===d?h:h+1,d=d.getParentOrThrow()}if(R(d))return In(d.__key,i,"element")}}else o=di(e);return X(o)?In(o.__key,Lr(o,i,"clamp"),"text"):null}function og(e,t,n){const r=e.offset,o=e.getNode();if(r===0){const i=o.getPreviousSibling(),s=o.getParent();if(t){if((n||!t)&&i===null&&R(s)&&s.isInline()){const a=s.getPreviousSibling();X(a)&&e.set(a.__key,a.getTextContent().length,"text")}}else R(i)&&!n&&i.isInline()?e.set(i.__key,i.getChildrenSize(),"element"):X(i)&&e.set(i.__key,i.getTextContent().length,"text")}else if(r===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(t&&R(i)&&i.isInline())e.set(i.__key,0,"element");else if((n||t)&&i===null&&R(s)&&s.isInline()&&!s.canInsertTextAfter()){const a=s.getNextSibling();X(a)&&e.set(a.__key,0,"text")}}}function Ex(e,t,n){if(e.type==="text"&&t.type==="text"){const r=e.isBefore(t),o=e.is(t);og(e,r,o),og(t,!r,o),o&&t.set(e.key,e.offset,e.type);const i=De();if(i.isComposing()&&i._compositionKey!==e.key&&B(n)){const s=n.anchor,a=n.focus;e.set(s.key,s.offset,s.type,!0),t.set(a.key,a.offset,a.type,!0)}}}function _x(e,t,n,r,o,i){if(e===null||n===null||!ca(o,e,n))return null;const s=rg(e,t,B(i)?i.anchor:null,o);if(s===null)return null;const a=rg(n,r,B(i)?i.focus:null,o);if(a===null)return null;if(s.type==="element"&&a.type==="element"){const c=di(e),l=di(n);if(Te(c)&&Te(l))return null}return Ex(s,a,i),[s,a]}function $u(e){return R(e)&&!e.isInline()}function Sx(e,t,n,r,o,i){const s=qr(),a=new qo(In(e,t,o),In(n,r,i),0,"");return a.dirty=!0,s._selection=a,a}function kx(){const e=In("root",0,"element"),t=In("root",0,"element");return new qo(e,t,0,"")}function Tx(){return new sl(new Set)}function Zd(e,t,n,r){const o=n._window;if(o===null)return null;const i=r||o.event,s=i?i.type:void 0,a=s==="selectionchange",c=!wu&&(a||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let l,f,u,d;if(B(e)&&!c)return e.clone();if(t===null)return null;if(l=t.anchorNode,f=t.focusNode,u=t.anchorOffset,d=t.focusOffset,(a||s===void 0)&&B(e)&&!ca(n,l,f))return e.clone();const h=_x(l,u,f,d,n,e);if(h===null)return null;const[m,p]=h;return new qo(m,p,B(e)?e.format:0,B(e)?e.style:"")}function Z(){return qr()._selection}function Xi(){return De()._editorState._selection}function Ac(e,t,n,r=1){const o=e.anchor,i=e.focus,s=o.getNode(),a=i.getNode();if(!t.is(s)&&!t.is(a))return;const c=t.__key;if(e.isCollapsed()){const l=o.offset;if(n<=l&&r>0||n<l&&r<0){const f=Math.max(0,l+r);o.set(c,f,"element"),i.set(c,f,"element"),ig(e)}}else{const l=e.isBackward(),f=l?i:o,u=f.getNode(),d=l?o:i,h=d.getNode();if(t.is(u)){const m=f.offset;(n<=m&&r>0||n<m&&r<0)&&f.set(c,Math.max(0,m+r),"element")}if(t.is(h)){const m=d.offset;(n<=m&&r>0||n<m&&r<0)&&d.set(c,Math.max(0,m+r),"element")}}ig(e)}function ig(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),s=r.getNode();if(e.isCollapsed()){if(!R(i))return;const a=i.getChildrenSize(),c=n>=a,l=c?i.getChildAtIndex(a-1):i.getChildAtIndex(n);if(X(l)){let f=0;c&&(f=l.getTextContentSize()),t.set(l.__key,f,"text"),r.set(l.__key,f,"text")}return}if(R(i)){const a=i.getChildrenSize(),c=n>=a,l=c?i.getChildAtIndex(a-1):i.getChildAtIndex(n);if(X(l)){let f=0;c&&(f=l.getTextContentSize()),t.set(l.__key,f,"text")}}if(R(s)){const a=s.getChildrenSize(),c=o>=a,l=c?s.getChildAtIndex(a-1):s.getChildAtIndex(o);if(X(l)){let f=0;c&&(f=l.getTextContentSize()),r.set(l.__key,f,"text")}}}function Cc(e,t,n,r,o){let i=null,s=0,a=null;r!==null?(i=r.__key,X(r)?(s=r.getTextContentSize(),a="text"):R(r)&&(s=r.getChildrenSize(),a="element")):o!==null&&(i=o.__key,X(o)?a="text":R(o)&&(a="element")),i!==null&&a!==null?e.set(i,s,a):(s=t.getIndexWithinParent(),s===-1&&(s=n.getChildrenSize()),e.set(n.__key,s,"element"))}function sg(e,t,n,r,o){e.type==="text"?e.set(n,e.offset+(t?0:o),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function Nx(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch{}}function P6(e,t,n,r,o,i,s){const a=r.anchorNode,c=r.focusNode,l=r.anchorOffset,f=r.focusOffset,u=document.activeElement;if(o.has(v6)&&u!==i||u!==null&&oh(u))return;if(!B(t))return void(e!==null&&ca(n,a,c)&&r.removeAllRanges());const d=t.anchor,h=t.focus,m=d.key,p=h.key,g=zo(n,m),y=zo(n,p),b=d.offset,x=h.offset,w=t.format,A=t.style,E=t.isCollapsed();let _=g,S=y,O=!1;if(d.type==="text"){_=zi(g);const K=d.getNode();O=K.getFormat()!==w||K.getStyle()!==A}else B(e)&&e.anchor.type==="text"&&(O=!0);var P,I,$,D,j;if(h.type==="text"&&(S=zi(y)),_!==null&&S!==null&&(E&&(e===null||O||B(e)&&(e.format!==w||e.style!==A))&&(P=w,I=A,$=b,D=m,j=performance.now(),mx=[P,I,$,D,j]),l!==b||f!==x||a!==_||c!==S||r.type==="Range"&&E||(u!==null&&i.contains(u)||o.has(A6)||i.focus({preventScroll:!0}),d.type==="element"))){if(Nx(r,_,b,S,x),!o.has(x6)&&t.isCollapsed()&&i!==null&&i===document.activeElement){const K=B(t)&&t.anchor.type==="element"?_.childNodes[b]||null:r.rangeCount>0?r.getRangeAt(0):null;if(K!==null){let G;if(K instanceof Text){const oe=document.createRange();oe.selectNode(K),G=oe.getBoundingClientRect()}else G=K.getBoundingClientRect();(function(oe,M,re){const L=Jx(re),z=fh(L);if(L===null||z===null)return;let{top:H,bottom:W}=M,J=0,Y=0,ee=re;for(;ee!==null;){const te=ee===L.body;if(te)J=0,Y=en(oe).innerHeight;else{const ye=ee.getBoundingClientRect();J=ye.top,Y=ye.bottom}let me=0;if(H<J?me=-(J-H):W>Y&&(me=W-Y),me!==0)if(te)z.scrollBy(0,me);else{const ye=ee.scrollTop;ee.scrollTop+=me;const pe=ee.scrollTop-ye;H-=pe,W-=pe}if(te)break;ee=la(ee)}})(n,G,i)}}Iu=!0}}function Ox(e){let t=Z()||Xi();t===null&&(t=We().selectEnd()),t.insertNodes(e)}function of(e){let t=e;e.isCollapsed()||t.removeText();const n=Z();B(n)&&(t=n),B(t)||U(161);const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!xr(o);){const s=o;if([o,i]=M6(o,i),s.is(o))break}return i}function M6(e,t){const n=e.getParent();if(!n){const o=Tt();return We().append(o),o.select(),[We(),0]}if(X(e)){const o=e.splitText(t);if(o.length===0)return[n,e.getIndexWithinParent()];const i=t===0?0:1;return[n,o[0].getIndexWithinParent()+i]}if(!R(e)||t===0)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const o=new qo(In(e.__key,t,"element"),In(e.__key,t,"element"),0,""),i=e.insertNewAfter(o);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function ag(e,t,n,r,o="decorators-and-blocks"){if(t==="move"&&r==="character"&&!e.isCollapsed()){const[f,u]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return u.set(f.key,f.offset,f.type),!0}const i=ir(e.focus,n?"previous":"next"),s=r==="lineboundary",a=t==="move";let c=i,l=o==="decorators-and-blocks";if(!o1(c)){for(const f of c){l=!1;const{origin:u}=f;if(!Te(u)||u.isIsolated()||(c=f,!s||!u.isInline()))break}if(l)for(const f of gh(i).iterNodeCarets(t==="extend"?"shadowRoot":"root")){if(Pn(f))f.origin.isInline()||(c=f);else{if(R(f.origin))continue;Te(f.origin)&&!f.origin.isInline()&&(c=f)}break}}if(c===i)return!1;if(a&&!s&&Te(c.origin)&&c.origin.isKeyboardSelectable()){const f=Tx();return f.add(c.origin.getKey()),Pt(f),!0}return c=Gt(c),a&&Wo(e.anchor,c),Wo(e.focus,c),l||!s}let st=null,at=null,Ft=!1,sf=!1,Qa=0;const cg={characterData:!0,childList:!0,subtree:!0};function sa(){return Ft||st!==null&&st._readOnly}function bt(){Ft&&U(13)}function Px(){Qa>99&&U(14)}function qr(){return st===null&&U(195,Mx()),st}function De(){return at===null&&U(196,Mx()),at}function Mx(){let e=0;const t=new Set,n=jo.version;if(typeof window<"u")for(const o of document.querySelectorAll("[contenteditable]")){const i=cl(o);if(ih(i))e++;else if(i){let s=String(i.constructor.version||"<0.17.1");s===n&&(s+=" (separately built, likely a bundler configuration issue)"),t.add(s)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function I6(){return at}function lg(e,t,n){const r=t.__type,o=$x(e,r);let i=n.get(r);i===void 0&&(i=Array.from(o.transforms),n.set(r,i));const s=i.length;for(let a=0;a<s&&(i[a](t),t.isAttached());a++);}function fg(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function Ix(e,t){if(!t)return;const n=e._updateTags;let r=t;Array.isArray(t)||(r=[t]);for(const o of r)n.add(o)}function L6(e){return Jd(e,De()._nodes)}function Jd(e,t){const n=e.type,r=t.get(n);r===void 0&&U(17,n);const o=r.klass;e.type!==o.getType()&&U(18,o.name);const i=o.importJSON(e),s=e.children;if(R(i)&&Array.isArray(s))for(let a=0;a<s.length;a++){const c=Jd(s[a],t);i.append(c)}return i}function ug(e,t,n){const r=st,o=Ft,i=at;st=t,Ft=!0,at=e;try{return n()}finally{st=r,Ft=o,at=i}}function Jn(e,t){const n=e._pendingEditorState,r=e._rootElement,o=e._headless||r===null;if(n===null)return;const i=e._editorState,s=i._selection,a=n._selection,c=e._dirtyType!==0,l=st,f=Ft,u=at,d=e._updating,h=e._observer;let m=null;if(e._pendingEditorState=null,e._editorState=n,!o&&c&&h!==null){at=e,st=n,Ft=!1,e._updating=!0;try{const E=e._dirtyType,_=e._dirtyElements,S=e._dirtyLeaves;h.disconnect(),m=JT(i,n,e,E,_,S)}catch(E){if(E instanceof Error&&e._onError(E),sf)throw E;return jx(e,null,r,n),Wv(e),e._dirtyType=2,sf=!0,Jn(e,i),void(sf=!1)}finally{h.observe(r,cg),e._updating=d,st=l,Ft=f,at=u}}n._readOnly||(n._readOnly=!0);const p=e._dirtyLeaves,g=e._dirtyElements,y=e._normalizedNodes,b=e._updateTags,x=e._deferred;c&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),(function(E,_){const S=E._decorators;let O=E._pendingDecorators||S;const P=_._nodeMap;let I;for(I in O)P.has(I)||(O===S&&(O=qx(E)),delete O[I])})(e,n);const w=o?null:tn(en(e));if(e._editable&&w!==null&&(c||a===null||a.dirty||!a.is(s))&&r!==null&&!b.has(w6)){at=e,st=n;try{if(h!==null&&h.disconnect(),c||a===null||a.dirty){const E=e._blockCursorElement;E!==null&&Ku(E,e,r),P6(s,a,e,w,b,r)}(function(E,_,S){let O=E._blockCursorElement;if(B(S)&&S.isCollapsed()&&S.anchor.type==="element"&&_.contains(document.activeElement)){const P=S.anchor,I=P.getNode(),$=P.offset;let D=!1,j=null;if($===I.getChildrenSize())cf(I.getChildAtIndex($-1))&&(D=!0);else{const K=I.getChildAtIndex($);if(K!==null&&cf(K)){const G=K.getPreviousSibling();(G===null||cf(G))&&(D=!0,j=E.getElementByKey(K.__key))}}if(D){const K=E.getElementByKey(I.__key);return O===null&&(E._blockCursorElement=O=(function(G){const oe=G.theme,M=document.createElement("div");M.contentEditable="false",M.setAttribute("data-lexical-cursor","true");let re=oe.blockCursor;if(re!==void 0){if(typeof re=="string"){const L=jv(re);re=oe.blockCursor=L}re!==void 0&&M.classList.add(...re)}return M})(E._config)),_.style.caretColor="transparent",void(j===null?K.appendChild(O):K.insertBefore(O,j))}}O!==null&&Ku(O,E,_)})(e,r,a)}finally{h!==null&&h.observe(r,cg),at=u,st=l}}m!==null&&(function(E,_,S,O,P){const I=Array.from(E._listeners.mutation),$=I.length;for(let D=0;D<$;D++){const[j,K]=I[D];for(const G of K){const oe=_.get(G);oe!==void 0&&j(oe,{dirtyLeaves:O,prevEditorState:P,updateTags:S})}}})(e,m,b,p,i),B(a)||a===null||s!==null&&s.is(a)||e.dispatchCommand(rl,void 0);const A=e._pendingDecorators;A!==null&&(e._decorators=A,e._pendingDecorators=null,Ss("decorator",e,!0,A)),(function(E,_,S){const O=pg(_),P=pg(S);O!==P&&Ss("textcontent",E,!0,P)})(e,t||i,n),Ss("update",e,!0,{dirtyElements:g,dirtyLeaves:p,editorState:n,mutatedNodes:m,normalizedNodes:y,prevEditorState:t||i,tags:b}),(function(E,_){if(E._deferred=[],_.length!==0){const S=E._updating;E._updating=!0;try{for(let O=0;O<_.length;O++)_[O]()}finally{E._updating=S}}})(e,x),(function(E){const _=E._updates;if(_.length!==0){const S=_.shift();if(S){const[O,P]=S;al(E,O,P)}}})(e)}function Ss(e,t,n,...r){const o=t._updating;t._updating=n;try{const i=Array.from(t._listeners[e]);for(let s=0;s<i.length;s++)i[s].apply(null,r)}finally{t._updating=o}}function dg(e,t){const n=e._updates;let r=t||!1;for(;n.length!==0;){const o=n.shift();if(o){const[i,s]=o,a=e._pendingEditorState;let c;s!==void 0&&(c=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete&&(a===null&&U(191),a._flushSync=!0),c&&e._deferred.push(c),Ix(e,s.tag)),a==null?al(e,i,s):i()}}return r}function al(e,t,n){const r=e._updateTags;let o,i=!1,s=!1;n!==void 0&&(o=n.onUpdate,Ix(e,n.tag),i=n.skipTransforms||!1,s=n.discrete||!1),o&&e._deferred.push(o);const a=e._editorState;let c=e._pendingEditorState,l=!1;(c===null||c._readOnly)&&(c=e._pendingEditorState=Rx(c||a),l=!0),c._flushSync=s;const f=st,u=Ft,d=at,h=e._updating;st=c,Ft=!1,e._updating=!0,at=e;const m=e._headless||e.getRootElement()===null;nh(null);try{l&&(m?a._selection!==null&&(c._selection=a._selection.clone()):c._selection=(function(b,x){const w=b.getEditorState()._selection,A=tn(en(b));return B(w)||w==null?Zd(w,A,b,x):w.clone()})(e,n&&n.event||null));const g=e._compositionKey;t(),i=dg(e,i),(function(b,x){const w=x.getEditorState()._selection,A=b._selection;if(B(A)){const E=A.anchor,_=A.focus;let S;if(E.type==="text"&&(S=E.getNode(),S.selectionTransform(w,A)),_.type==="text"){const O=_.getNode();S!==O&&O.selectionTransform(w,A)}}})(c,e),e._dirtyType!==0&&(i?(function(b,x){const w=x._dirtyLeaves,A=b._nodeMap;for(const E of w){const _=A.get(E);X(_)&&_.isAttached()&&_.isSimpleText()&&!_.isUnmergeable()&&Up(_)}})(c,e):(function(b,x){const w=x._dirtyLeaves,A=x._dirtyElements,E=b._nodeMap,_=Nr(),S=new Map;let O=w,P=O.size,I=A,$=I.size;for(;P>0||$>0;){if(P>0){x._dirtyLeaves=new Set;for(const D of O){const j=E.get(D);X(j)&&j.isAttached()&&j.isSimpleText()&&!j.isUnmergeable()&&Up(j),j!==void 0&&fg(j,_)&&lg(x,j,S),w.add(D)}if(O=x._dirtyLeaves,P=O.size,P>0){Qa++;continue}}x._dirtyLeaves=new Set,x._dirtyElements=new Map,I.delete("root")&&I.set("root",!0);for(const D of I){const j=D[0],K=D[1];if(A.set(j,K),!K)continue;const G=E.get(j);G!==void 0&&fg(G,_)&&lg(x,G,S)}O=x._dirtyLeaves,P=O.size,I=x._dirtyElements,$=I.size,Qa++}x._dirtyLeaves=w,x._dirtyElements=A})(c,e),dg(e),(function(b,x,w,A){const E=b._nodeMap,_=x._nodeMap,S=[];for(const[O]of A){const P=_.get(O);P!==void 0&&(P.isAttached()||(R(P)&&$v(P,O,E,_,S,A),E.has(O)||A.delete(O),S.push(O)))}for(const O of S)_.delete(O);for(const O of w){const P=_.get(O);P===void 0||P.isAttached()||(E.has(O)||w.delete(O),_.delete(O))}})(a,c,e._dirtyLeaves,e._dirtyElements)),g!==e._compositionKey&&(c._flushSync=!0);const y=c._selection;if(B(y)){const b=c._nodeMap,x=y.anchor.key,w=y.focus.key;b.get(x)!==void 0&&b.get(w)!==void 0||U(19)}else it(y)&&y._nodes.size===0&&(c._selection=null)}catch(g){return g instanceof Error&&e._onError(g),e._pendingEditorState=a,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Jn(e)}finally{st=f,Ft=u,at=d,e._updating=h,Qa=0}e._dirtyType!==0||e._deferred.length>0||(function(g,y){const b=y.getEditorState()._selection,x=g._selection;if(x!==null){if(x.dirty||!x.is(b))return!0}else if(b!==null)return!0;return!1})(c,e)?c._flushSync?(c._flushSync=!1,Jn(e)):l&&$6(()=>{Jn(e)}):(c._flushSync=!1,l&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function On(e,t,n){at===e&&n===void 0?t():al(e,t,n)}class ks{constructor(t,n,r){F(this,"element");F(this,"before");F(this,"after");this.element=t,this.before=n||null,this.after=r||null}withBefore(t){return new ks(this.element,t,this.after)}withAfter(t){return new ks(this.element,this.before,t)}withElement(t){return this.element===t?this:new ks(t,this.before,this.after)}insertChild(t){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&U(222),this.element.insertBefore(t,n),this}removeChild(t){return t.parentElement!==this.element&&U(223),this.element.removeChild(t),this}replaceChild(t,n){return n.parentElement!==this.element&&U(224),this.element.replaceChild(t,n),this}getFirstChild(){const t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(t===null)this.removeManagedLineBreak();else{const n=t==="decorator"&&(oa||Qi||ra);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const n=this.element,r=t.nodeName==="IMG"?t.nextSibling:null;r&&n.removeChild(r),n.removeChild(t),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(t){const n=this.getManagedLineBreak();if(n){if(t===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,o=this.before,i=document.createElement("br");if(r.insertBefore(i,o),t){const s=document.createElement("img");s.setAttribute("data-lexical-linebreak","true"),s.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",s.alt="",r.insertBefore(s,i),r.__lexicalLineBreak=s}else r.__lexicalLineBreak=i}getFirstChildOffset(){let t=0;for(let n=this.after;n!==null;n=n.previousSibling)t++;return t}resolveChildIndex(t,n,r,o){if(r===this.element){const c=this.getFirstChildOffset();return[t,Math.min(c+t.getChildrenSize(),Math.max(c,o))]}const i=hg(n,r);i.push(o);const s=hg(n,this.element);let a=t.getIndexWithinParent();for(let c=0;c<s.length;c++){const l=i[c],f=s[c];if(l===void 0||l<f)break;if(l>f){a+=1;break}}return[t.getParentOrThrow(),a]}}function hg(e,t){const n=[];let r=t;for(;r!==e&&r!==null;r=r.parentNode){let o=0;for(let i=r.previousSibling;i!==null;i=i.previousSibling)o++;n.push(o)}return r!==e&&U(225),n.reverse()}class Ln extends un{constructor(n){super(n);F(this,"__first");F(this,"__last");F(this,"__size");F(this,"__format");F(this,"__style");F(this,"__indent");F(this,"__dir");F(this,"__textFormat");F(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(n){super.afterCloneFrom(n),this.__key===n.__key&&(this.__first=n.__first,this.__last=n.__last,this.__size=n.__size),this.__indent=n.__indent,this.__format=n.__format,this.__style=n.__style,this.__dir=n.__dir,this.__textFormat=n.__textFormat,this.__textStyle=n.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const n=this.getFormat();return $T[n]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const n=[];let r=this.getFirstChild();for(;r!==null;)n.push(r),r=r.getNextSibling();return n}getChildrenKeys(){const n=[];let r=this.getFirstChild();for(;r!==null;)n.push(r.__key),r=r.getNextSibling();return n}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const n=De()._dirtyElements;return n!==null&&n.has(this.__key)}isLastChild(){const n=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(n)}getAllTextNodes(){const n=[];let r=this.getFirstChild();for(;r!==null;){if(X(r)&&n.push(r),R(r)){const o=r.getAllTextNodes();n.push(...o)}r=r.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;R(n);){const r=n.getFirstChild();if(r===null)break;n=r}return n}getLastDescendant(){let n=this.getLastChild();for(;R(n);){const r=n.getLastChild();if(r===null)break;n=r}return n}getDescendantByIndex(n){const r=this.getChildren(),o=r.length;if(n>=o){const s=r[o-1];return R(s)&&s.getLastDescendant()||s||null}const i=r[n];return R(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:Xe(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&U(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:Xe(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&U(96,this.__key),n}getChildAtIndex(n){const r=this.getChildrenSize();let o,i;if(n<r/2){for(o=this.getFirstChild(),i=0;o!==null&&i<=n;){if(i===n)return o;o=o.getNextSibling(),i++}return null}for(o=this.getLastChild(),i=r-1;o!==null&&i>=n;){if(i===n)return o;o=o.getPreviousSibling(),i--}return null}getTextContent(){let n="";const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];n+=s.getTextContent(),R(s)&&i!==o-1&&!s.isInline()&&(n+=zr)}return n}getTextContentSize(){let n=0;const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];n+=s.getTextContentSize(),R(s)&&i!==o-1&&!s.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const r=Lp[n];return(this.getFormat()&r)!==0}return!1}hasTextFormat(n){const r=Lo[n];return(this.getTextFormat()&r)!==0}getFormatFlags(n,r){return Ec(this.getLatest().__textFormat,n,r)}getTextStyle(){return this.getLatest().__textStyle}select(n,r){bt();const o=Z();let i=n,s=r;const a=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&r===0){const l=this.getFirstChild();if(X(l)||R(l))return l.select(0,0)}else if(!(n!==void 0&&n!==a||r!==void 0&&r!==a)){const l=this.getLastChild();if(X(l)||R(l))return l.select()}}i===void 0&&(i=a),s===void 0&&(s=a);const c=this.__key;return B(o)?(o.anchor.set(c,i,"element"),o.focus.set(c,s,"element"),o.dirty=!0,o):Sx(c,i,c,s,"element","element")}selectStart(){const n=this.getFirstDescendant();return n?n.selectStart():this.select()}selectEnd(){const n=this.getLastDescendant();return n?n.selectEnd():this.select()}clear(){const n=this.getWritable();return this.getChildren().forEach(r=>r.remove()),n}append(...n){return this.splice(this.getChildrenSize(),0,n)}setDirection(n){const r=this.getWritable();return r.__dir=n,r}setFormat(n){return this.getWritable().__format=n!==""?Lp[n]:0,this}setStyle(n){return this.getWritable().__style=n||"",this}setTextFormat(n){const r=this.getWritable();return r.__textFormat=n,r}setTextStyle(n){const r=this.getWritable();return r.__textStyle=n,r}setIndent(n){return this.getWritable().__indent=n,this}splice(n,r,o){wc(this)&&U(324,this.__key,this.__type);const i=this.getChildrenSize(),s=this.getWritable();n+r<=i||U(226,String(n),String(r),String(i));const a=s.__key,c=[],l=[],f=this.getChildAtIndex(n+r);let u=null,d=i-r+o.length;if(n!==0)if(n===i)u=this.getLastChild();else{const m=this.getChildAtIndex(n);m!==null&&(u=m.getPreviousSibling())}if(r>0){let m=u===null?this.getFirstChild():u.getNextSibling();for(let p=0;p<r;p++){m===null&&U(100);const g=m.getNextSibling(),y=m.__key;_o(m.getWritable()),l.push(y),m=g}}let h=u;for(const m of o){h!==null&&m.is(h)&&(u=h=h.getPreviousSibling());const p=m.getWritable();p.__parent===a&&d--,_o(p);const g=m.__key;if(h===null)s.__first=g,p.__prev=null;else{const y=h.getWritable();y.__next=g,p.__prev=y.__key}m.__key===a&&U(76),p.__parent=a,c.push(g),h=m}if(n+r===i)h!==null&&(h.getWritable().__next=null,s.__last=h.__key);else if(f!==null){const m=f.getWritable();if(h!==null){const p=h.getWritable();m.__prev=h.__key,p.__next=f.__key}else m.__prev=null}if(s.__size=d,l.length){const m=Z();if(B(m)){const p=new Set(l),g=new Set(c),{anchor:y,focus:b}=m;mg(y,p,g)&&Cc(y,y.getNode(),this,u,f),mg(b,p,g)&&Cc(b,b.getNode(),this,u,f),d!==0||this.canBeEmpty()||jt(this)||this.remove()}}return s}getDOMSlot(n){return new ks(n)}exportDOM(n){const{element:r}=super.exportDOM(n);if(mt(r)){const o=this.getIndent();o>0&&(r.style.paddingInlineStart=40*o+"px");const i=this.getDirection();i&&(r.dir=i)}return{element:r}}exportJSON(){const n={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},r=this.getTextFormat(),o=this.getTextStyle();return r===0&&o===""||jt(this)||this.getChildren().some(X)||(r!==0&&(n.textFormat=r),o!==""&&(n.textStyle=o)),n}updateFromJSON(n){return super.updateFromJSON(n).setFormat(n.format).setIndent(n.indent).setDirection(n.direction).setTextFormat(n.textFormat||0).setTextStyle(n.textStyle||"")}insertNewAfter(n,r){return null}canIndent(){return!0}collapseAtStart(n){return!1}excludeFromCopy(n){return!1}canReplaceWith(n){return!0}canInsertAfter(n){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(n){return!1}extractWithChild(n,r,o){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,r){const o=this.getDOMSlot(n);let i=o.getFirstChild();for(let s=this.getFirstChild();s;s=s.getNextSibling()){const a=r.getElementByKey(s.getKey());a!==null&&(i==null?(o.insertChild(a),i=a):i!==a&&o.replaceChild(a,i),i=i.nextSibling)}}}function R(e){return e instanceof Ln}function mg(e,t,n){let r=e.getNode();for(;r;){const o=r.__key;if(t.has(o)&&!n.has(o))return!0;r=r.getParent()}return!1}class Lx extends un{decorate(t,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Te(e){return e instanceof Lx}class es extends Ln{constructor(){super("root");F(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new es}getTopLevelElementOrThrow(){U(51)}getTextContent(){const n=this.__cachedText;return!sa()&&De()._dirtyType!==0||n===null?super.getTextContent():n}remove(){U(52)}replace(n){U(53)}insertBefore(n){U(54)}insertAfter(n){U(55)}updateDOM(n,r){return!1}splice(n,r,o){for(const i of o)R(i)||Te(i)||U(282);return super.splice(n,r,o)}static importJSON(n){return We().updateFromJSON(n)}collapseAtStart(){return!0}}function Ye(e){return e instanceof es}function Rx(e){return new aa(new Map(e._nodeMap))}function Xd(){return new aa(new Map([["root",new es]]))}function Dx(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&U(130,n.name),R(e)){const r=t.children;Array.isArray(r)||U(59,n.name);const o=e.getChildren();for(let i=0;i<o.length;i++){const s=Dx(o[i]);r.push(s)}}return t}function R6(e){return e instanceof aa}class aa{constructor(t,n){F(this,"_nodeMap");F(this,"_selection");F(this,"_flushSync");F(this,"_readOnly");this._nodeMap=t,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(t,n){return ug(n&&n.editor||null,this,t)}clone(t){const n=new aa(this._nodeMap,t===void 0?this._selection:t);return n._readOnly=!0,n}toJSON(){return ug(null,this,()=>({root:Dx(We())}))}}class eh extends Ln{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class ts extends Ln{static getType(){return"paragraph"}static clone(t){return new ts(t.__key)}createDOM(t){const n=document.createElement("p"),r=wi(t.theme,"paragraph");return r!==void 0&&n.classList.add(...r),n}updateDOM(t,n,r){return!1}static importDOM(){return{p:t=>({conversion:D6,priority:0})}}exportDOM(t){const{element:n}=super.exportDOM(t);if(mt(n)){this.isEmpty()&&n.append(document.createElement("br"));const r=this.getFormatType();r&&(n.style.textAlign=r)}return{element:n}}static importJSON(t){return Tt().updateFromJSON(t)}exportJSON(){const t=super.exportJSON();if(t.textFormat===void 0||t.textStyle===void 0){const n=this.getChildren().find(X);n?(t.textFormat=n.getFormat(),t.textStyle=n.getStyle()):(t.textFormat=this.getTextFormat(),t.textStyle=this.getTextStyle())}return t}insertNewAfter(t,n){const r=Tt();r.setTextFormat(t.format),r.setTextStyle(t.style);const o=this.getDirection();return r.setDirection(o),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,n),r}collapseAtStart(){const t=this.getChildren();if(t.length===0||X(t[0])&&t[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function D6(e){const t=Tt();return e.style&&(t.setFormat(e.style.textAlign),Z6(e,t)),{node:t}}function Tt(){return Vr(new ts)}function th(e){return e instanceof ts}const Ae=0,Xn=1,F6=3,Fx=4;function jx(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=Xd(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;i!==null&&(i.disconnect(),e._observer=null),t!==null&&(t.textContent=""),n!==null&&(n.textContent="",o.set("root",n))}function j6(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:o}=ul(r),i=r.transform;if(!n.has(i)){n.add(i);const s=r.transform();s&&t.add(s)}if(o){const s=o.$transform;s&&t.add(s),r=o.extends}else{const s=Object.getPrototypeOf(r);r=s.prototype instanceof un&&s!==un?s:void 0}}return t}function zx(e){const t=e||{},n=I6(),r=t.theme||{},o=e===void 0?n:t.parentEditor||null,i=t.disableEvents||!1,s=Xd(),a=t.namespace||(o!==null?o._config.namespace:Gx()),c=t.editorState,l=[es,Hr,Zi,Ji,ts,eh,...t.nodes||[]],{onError:f,html:u}=t,d=t.editable===void 0||t.editable;let h;if(e===void 0&&n!==null)h=n._nodes;else{h=new Map;for(let p=0;p<l.length;p++){let g=l[p],y=null,b=null;if(typeof g!="function"){const A=g;g=A.replace,y=A.with,b=A.withKlass||null}ul(g);const x=g.getType(),w=j6(g);h.set(x,{exportDOM:u&&u.export?u.export.get(g):void 0,klass:g,replace:y,replaceWithKlass:b,sharedNodeState:VT(l[p]),transforms:w})}}const m=new jo(s,o,h,{disableEvents:i,namespace:a,theme:r},f||console.error,(function(p,g){const y=new Map,b=new Set,x=w=>{Object.keys(w).forEach(A=>{let E=y.get(A);E===void 0&&(E=[],y.set(A,E)),E.push(w[A])})};return p.forEach(w=>{const A=w.klass.importDOM;if(A==null||b.has(A))return;b.add(A);const E=A.call(w.klass);E!==null&&x(E)}),g&&x(g),y})(h,u?u.import:void 0),d,e);return c!==void 0&&(m._pendingEditorState=c,m._dirtyType=2),(function(p){p.registerCommand(Qv,u6,Ae),p.registerCommand(Zv,d6,Ae),p.registerCommand(Jv,h6,Ae),p.registerCommand(Xv,m6,Ae),p.registerCommand(ex,p6,Ae)})(m),m}class jo{constructor(t,n,r,o,i,s,a,c){F(this,"_headless");F(this,"_parentEditor");F(this,"_rootElement");F(this,"_editorState");F(this,"_pendingEditorState");F(this,"_compositionKey");F(this,"_deferred");F(this,"_keyToDOMMap");F(this,"_updates");F(this,"_updating");F(this,"_listeners");F(this,"_commands");F(this,"_nodes");F(this,"_decorators");F(this,"_pendingDecorators");F(this,"_config");F(this,"_dirtyType");F(this,"_cloneNotNeeded");F(this,"_dirtyLeaves");F(this,"_dirtyElements");F(this,"_normalizedNodes");F(this,"_updateTags");F(this,"_observer");F(this,"_key");F(this,"_onError");F(this,"_htmlConversions");F(this,"_window");F(this,"_editable");F(this,"_blockCursorElement");F(this,"_createEditorArgs");this._createEditorArgs=c,this._parentEditor=n,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=o,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Gx(),this._onError=i,this._htmlConversions=s,this._editable=a,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(t){const n=this._listeners.update;return n.add(t),()=>{n.delete(t)}}registerEditableListener(t){const n=this._listeners.editable;return n.add(t),()=>{n.delete(t)}}registerDecoratorListener(t){const n=this._listeners.decorator;return n.add(t),()=>{n.delete(t)}}registerTextContentListener(t){const n=this._listeners.textcontent;return n.add(t),()=>{n.delete(t)}}registerRootListener(t){const n=this._listeners.root;return t(this._rootElement,null),n.add(t),()=>{t(null,this._rootElement),n.delete(t)}}registerCommand(t,n,r){r===void 0&&U(35);const o=this._commands;o.has(t)||o.set(t,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(t);i===void 0&&U(36,String(t));const s=i[r];return s.add(n),()=>{s.delete(n),i.every(a=>a.size===0)&&o.delete(t)}}registerMutationListener(t,n,r){const o=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;let s=i.get(n);s===void 0&&(s=new Set,i.set(n,s)),s.add(o);const a=r&&r.skipInitialization;return a!==void 0&&a||this.initializeMutationListener(n,o),()=>{s.delete(o),s.size===0&&i.delete(n)}}getRegisteredNode(t){const n=this._nodes.get(t.getType());return n===void 0&&U(37,t.name),n}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,n){const r=this._editorState,o=Ag(r).get(n.getType());if(!o)return;const i=new Map;for(const s of o.keys())i.set(s,"created");i.size>0&&t(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(t,n){const r=this.getRegisteredNode(t);return r.transforms.add(n),r}registerNodeTransform(t,n){const r=this.registerNodeTransformToKlass(t,n),o=[r],i=r.replaceWithKlass;if(i!=null){const s=this.registerNodeTransformToKlass(i,n);o.push(s)}return(function(s,a){const c=Ag(s.getEditorState()),l=[];for(const f of a){const u=c.get(f);u&&l.push(u)}l.length!==0&&s.update(()=>{for(const f of l)for(const u of f.keys()){const d=Xe(u);d&&d.markDirty()}},s._pendingEditorState===null?{tag:Ao}:void 0)})(this,o.map(s=>s.klass.getType())),()=>{o.forEach(s=>s.transforms.delete(n))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,n){return ie(this,t,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const n=this._rootElement;if(t!==n){const r=wi(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=t,jx(this,n,t,o),n!==null&&(this._config.disableEvents||g6(n),r!=null&&n.classList.remove(...r)),t!==null){const i=fh(t),s=t.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,Wv(this),this._updateTags.add(Ao),Jn(this),this._config.disableEvents||(function(a,c){const l=a.ownerDocument;Mu.set(a,l);const f=vc.get(l)??0;f<1&&l.addEventListener("selectionchange",vx),vc.set(l,f+1),a.__lexicalEditor=c;const u=bx(a);for(let d=0;d<Pu.length;d++){const[h,m]=Pu[d],p=typeof m=="function"?g=>{Gp(g)||(Yp(g),(c.isEditable()||h==="click")&&m(g,c))}:g=>{if(Gp(g))return;Yp(g);const y=c.isEditable();switch(h){case"cut":return y&&ie(c,Gd,g);case"copy":return ie(c,il,g);case"paste":return y&&ie(c,ol,g);case"dragstart":return y&&ie(c,fx,g);case"dragover":return y&&ie(c,ux,g);case"dragend":return y&&ie(c,i6,g);case"focus":return y&&ie(c,c6,g);case"blur":return y&&ie(c,l6,g);case"drop":return y&&ie(c,lx,g)}};a.addEventListener(h,p),u.push(()=>{a.removeEventListener(h,p)})}})(t,this),r!=null&&t.classList.add(...r)}else this._window=null,this._updateTags.add(Ao),Jn(this);Ss("root",this,!1,t,n)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(t,n){t.isEmpty()&&U(38);let r=t;r._readOnly&&(r=Rx(t),r._selection=t._selection?t._selection.clone():null),Uv(this);const o=this._pendingEditorState,i=this._updateTags,s=n!==void 0?n.tag:null;o===null||o.isEmpty()||(s!=null&&i.add(s),Jn(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||Jn(this)}parseEditorState(t,n){return(function(r,o,i){const s=Xd(),a=st,c=Ft,l=at,f=o._dirtyElements,u=o._dirtyLeaves,d=o._cloneNotNeeded,h=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,st=s,Ft=!1,at=o,nh(null);try{const m=o._nodes;Jd(r.root,m),i&&i(),s._readOnly=!0}catch(m){m instanceof Error&&o._onError(m)}finally{o._dirtyElements=f,o._dirtyLeaves=u,o._cloneNotNeeded=d,o._dirtyType=h,st=a,Ft=c,at=l}return s})(typeof t=="string"?JSON.parse(t):t,this,n)}read(t){return Jn(this),this.getEditorState().read(t,{editor:this})}update(t,n){(function(r,o,i){r._updating?r._updates.push([o,i]):al(r,o,i)})(this,t,n)}focus(t,n={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),On(this,()=>{const o=Z(),i=We();o!==null?o.dirty||Pt(o.clone()):i.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),K6("focus"),H6(()=>{r.removeAttribute("autocapitalize"),t&&t()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;t!==null&&t.blur();const n=tn(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,Ss("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}F(jo,"version");jo.version="0.39.0+prod.esm";let Bu=null;function nh(e){Bu=e}let z6=1;function $x(e,t){const n=rh(e,t);return n===void 0&&U(30,t),n}function rh(e,t){return e._nodes.get(t)}const $6=typeof queueMicrotask=="function"?queueMicrotask:e=>{Promise.resolve().then(e)};function Bx(e){return Te($i(e))}function oh(e){const t=document.activeElement;if(!mt(t))return!1;const n=t.nodeName;return Te($i(e))&&(n==="INPUT"||n==="TEXTAREA"||t.contentEditable==="true"&&cl(t)==null)}function ca(e,t,n){const r=e.getRootElement();try{return r!==null&&r.contains(t)&&r.contains(n)&&t!==null&&!oh(t)&&Ux(t)===e}catch{return!1}}function ih(e){return e instanceof jo}function Ux(e){let t=e;for(;t!=null;){const n=cl(t);if(ih(n))return n;t=la(t)}return null}function cl(e){return e?e.__lexicalEditor:null}function Eo(e){return Cx(e)||e.isToken()}function qn(e){return Eo(e)||e.isSegmented()}function dr(e){return ns(e)&&e.nodeType===3}function Wx(e){return ns(e)&&e.nodeType===9}function zi(e){let t=e;for(;t!=null;){if(dr(t))return t;t=t.firstChild}return null}function Ec(e,t,n){const r=Lo[t];if(n!==null&&(e&r)===(n&r))return e;let o=e^r;return t==="subscript"?o&=-65:t==="superscript"?o&=-33:t==="lowercase"?(o&=-513,o&=-1025):t==="uppercase"?(o&=-257,o&=-1025):t==="capitalize"&&(o&=-257,o&=-513),o}function Kx(e){return X(e)||Co(e)||Te(e)}function B6(e,t){const n=(function(){const s=Bu;return Bu=null,s})();if((t=t||n&&n.__key)!=null)return void(e.__key=t);bt(),Px();const r=De(),o=qr(),i=""+z6++;o._nodeMap.set(i,e),R(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function _o(e){const t=e.getParent();if(t!==null){const n=e.getWritable(),r=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling(),s=i!==null?i.__key:null,a=o!==null?o.__key:null,c=o!==null?o.getWritable():null,l=i!==null?i.getWritable():null;o===null&&(r.__first=s),i===null&&(r.__last=a),c!==null&&(c.__next=s),l!==null&&(l.__prev=a),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function _c(e){Px(),wc(e)&&U(323,e.__key,e.__type);const t=e.getLatest(),n=t.__parent,r=qr(),o=De(),i=r._nodeMap,s=o._dirtyElements;n!==null&&(function(c,l,f){let u=c;for(;u!==null;){if(f.has(u))return;const d=l.get(u);if(d===void 0)break;f.set(u,!1),u=d.__parent}})(n,i,s);const a=t.__key;o._dirtyType=1,R(e)?s.set(a,!0):o._dirtyLeaves.add(a)}function dt(e){bt();const t=De(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,n!==null){const r=Xe(n);r!==null&&r.getWritable()}if(e!==null){const r=Xe(e);r!==null&&r.getWritable()}}}function Nr(){return sa()?null:De()._compositionKey}function Xe(e,t){const n=(t||qr())._nodeMap.get(e);return n===void 0?null:n}function Hx(e,t){const n=ll(e,De());return n!==void 0?Xe(n,t):null}function ll(e,t){return e[`__lexicalKey_${t._key}`]}function $i(e,t){let n=e;for(;n!=null;){const r=Hx(n,t);if(r!==null)return r;n=la(n)}return null}function qx(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function pg(e){return e.read(()=>We().getTextContent())}function We(){return Vx(qr())}function Vx(e){return e._nodeMap.get("root")}function Pt(e){bt();const t=qr();e!==null&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function di(e){const t=De(),n=(function(r,o){let i=r;for(;i!=null;){const s=ll(i,o);if(s!==void 0)return s;i=la(i)}return null})(e,t);return n===null?e===t.getRootElement()?Xe("root"):null:Xe(n)}function Yx(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function sh(e){const t=[];let n=e;for(;n!==null;)t.push(n),n=n._parentEditor;return t}function Gx(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Qx(e){return dr(e)?e.nodeValue:null}function ah(e,t,n){const r=tn(en(t));if(r===null)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(o!==null){let a=Qx(o);const c=$i(o);if(a!==null&&X(c)){if(a===tl&&n){const l=n.length;a=n,i=l,s=l}a!==null&&ch(c,a,i,s,e)}}}function ch(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let a=t;(s||o)&&t[t.length-1]===tl&&(a=t.slice(0,-1));const c=i.getTextContent();if(o||a!==c){if(a===""){if(dt(null),ra||Qi||oa)i.remove();else{const p=De();setTimeout(()=>{p.update(()=>{i.isAttached()&&i.remove()})},20)}return}const l=i.getParent(),f=Xi(),u=i.getTextContentSize(),d=Nr(),h=i.getKey();if(i.isToken()||d!==null&&h===d&&!s||B(f)&&(l!==null&&!l.canInsertTextBefore()&&f.anchor.offset===0||f.anchor.key===e.__key&&f.anchor.offset===0&&!i.canInsertTextBefore()&&!s||f.focus.key===e.__key&&f.focus.offset===u&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const m=Z();if(!B(m)||n===null||r===null)return void gg(i,a,m);if(m.setTextNodeRange(i,n,i,r),i.isSegmented()){const p=ot(i.getTextContent());i.replace(p),i=p}gg(i,a,m)}}}function gg(e,t,n){if(e.setTextContent(t),B(n)){const r=e.getKey();for(const o of["anchor","focus"]){const i=n[o];i.type==="text"&&i.key===r&&(i.offset=Lr(e,i.offset,"clamp"))}}}function Ia(e,t,n){const r=t[n]||!1;return r==="any"||r===e[n]}function U6(e,t){return Ia(e,t,"altKey")&&Ia(e,t,"ctrlKey")&&Ia(e,t,"shiftKey")&&Ia(e,t,"metaKey")}function Ie(e,t,n){return U6(e,n)&&e.key.toLowerCase()===t.toLowerCase()}const Kn={ctrlKey:!ln,metaKey:ln},yg={altKey:ln,ctrlKey:!ln};function bg(e){return e.key==="Backspace"}function vg(e){return Ie(e,"a",Kn)}function W6(e){const t=We();if(B(e)){const n=e.anchor,r=e.focus,o=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(o.getKey(),0,"element"),r.set(o.getKey(),o.getChildrenSize(),"element"),ji(e),e}{const n=t.select(0,t.getChildrenSize());return Pt(ji(n)),n}}function wi(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});const n=e.__lexicalClassNameCache,r=n[t];if(r!==void 0)return r;const o=e[t];if(typeof o=="string"){const i=jv(o);return n[t]=i,i}return o}function lh(e,t,n,r,o){if(n.size===0)return;const i=r.__type,s=r.__key,a=t.get(i);a===void 0&&U(33,i);const c=a.klass;let l=e.get(c);l===void 0&&(l=new Map,e.set(c,l));const f=l.get(s),u=f==="destroyed"&&o==="created";(f===void 0||u)&&l.set(s,u?"updated":o)}function xg(e,t,n){const r=e.getParent();let o=n,i=e;return r!==null&&(t&&n===0?(o=i.getIndexWithinParent(),i=r):t||n!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?o-1:o)}function Uu(e,t){const n=e.offset;if(e.type==="element")return xg(e.getNode(),t,n);{const r=e.getNode();if(t&&n===0||!t&&n===r.getTextContentSize()){const o=t?r.getPreviousSibling():r.getNextSibling();return o===null?xg(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):o}}return null}function Zx(e){const t=en(e).event,n=t&&t.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function ie(e,t,n){return(function(r,o,i){const s=sh(r);for(let a=4;a>=0;a--)for(let c=0;c<s.length;c++){const l=s[c],f=l._commands.get(o);if(f!==void 0){const u=f[a];if(u!==void 0){const d=Array.from(u),h=d.length;let m=!1;if(On(l,()=>{for(let p=0;p<h;p++)if(d[p](i,r))return void(m=!0)}),m)return m}}}return!1})(e,t,n)}function fl(e){return!Ye(e)&&!e.isLastChild()&&!e.isInline()}function zo(e,t){const n=e._keyToDOMMap.get(t);return n===void 0&&U(75,t),n}function la(e){const t=e.assignedSlot||e.parentElement;return Hu(t)?t.host:t}function Jx(e){return Wx(e)?e:mt(e)?e.ownerDocument:null}function K6(e){bt(),De()._updateTags.add(e)}function H6(e){bt(),De()._deferred.push(e)}function Wu(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function fh(e){const t=Jx(e);return t?t.defaultView:null}function en(e){const t=e._window;return t===null&&U(78),t}function q6(e){let t=e.getParentOrThrow();for(;t!==null;){if(jt(t))return t;t=t.getParentOrThrow()}return t}function jt(e){return Ye(e)||R(e)&&e.isShadowRoot()}function Vr(e){const t=De(),n=e.getType(),r=rh(t,n);r===void 0&&U(200,e.constructor.name,n);const{replace:o,replaceWithKlass:i}=r;if(o!==null){const s=o(e),a=s.constructor;return i!==null?s instanceof i||U(201,i.name,i.getType(),a.name,a.getType(),e.constructor.name,n):s instanceof e.constructor&&a!==e.constructor||U(202,a.name,a.getType(),e.constructor.name,n),s.__key===e.__key&&U(203,e.constructor.name,n,a.name,a.getType()),s}return e}function af(e,t){!Ye(e.getParent())||R(t)||Te(t)||U(99)}function V6(e){const t=Xe(e);return t===null&&U(63,e),t}function cf(e){return(Te(e)||R(e)&&!e.canBeEmpty())&&!e.isInline()}function Ku(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;r!==null&&r.removeChild(e)}function tn(e){return pn?(e||window).getSelection():null}function Y6(e){const t=fh(e);return t?t.getSelection():null}function Xx(e){return mt(e)&&e.tagName==="A"}function mt(e){return ns(e)&&e.nodeType===1}function ns(e){return typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeType=="number"}function Hu(e){return ns(e)&&e.nodeType===11}function qu(e){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return e.nodeName.match(t)!==null}function Sc(e){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return e.nodeName.match(t)!==null}function xr(e){if(Te(e)&&!e.isInline())return!0;if(!R(e)||jt(e))return!1;const t=e.getFirstChild(),n=t===null||Co(t)||X(t)||t.isInline();return!e.isInline()&&e.canBeEmpty()!==!1&&n}function uh(){return De()}const wg=new WeakMap,G6=new Map;function Ag(e){if(!e._readOnly&&e.isEmpty())return G6;e._readOnly||U(192);let t=wg.get(e);return t||(t=(function(n){const r=new Map;for(const[o,i]of n._nodeMap){const s=i.__type;let a=r.get(s);a||(a=new Map,r.set(s,a)),a.set(o,i)}return r})(e),wg.set(e,t)),t}function e1(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function Q6(e){return(t=e1(e))[xx]=!0,t;var t}function Z6(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function J6(e){return e.__lexicalUnmanaged===!0}function ps(e,t){return(function(n,r){return Object.prototype.hasOwnProperty.call(n,r)})(e,t)&&e[t]!==un[t]}function ul(e){const t=Rp in e.prototype?e.prototype[Rp]():void 0,n=(function(s){if(!(s===un||s.prototype instanceof un)){let a="<unknown>",c="<unknown>";try{a=s.getType()}catch{}try{jo.version&&(c=JSON.parse(jo.version))}catch{}U(290,s.name,a,c)}return s===Lx||s===Ln||s===un})(e),r=!n&&ps(e,"getType")?e.getType():void 0;let o,i=r;if(t)if(r)o=t[r];else for(const[s,a]of Object.entries(t))i=s,o=a;if(!n&&i&&(ps(e,"getType")||(e.getType=()=>i),ps(e,"clone")||(e.clone=s=>(nh(s),new e)),ps(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(s=>new e().updateFromJSON(s))),!ps(e,"importDOM")&&o)){const{importDOM:s}=o;s&&(e.importDOM=()=>s)}return{ownNodeConfig:o,ownNodeType:i}}const ct=(e,t)=>{let n=e;for(;n!=null&&!Ye(n);){if(t(n))return n;n=n.getParent()}return null},X6={next:"previous",previous:"next"};class dh{constructor(t){F(this,"origin");this.origin=t}[Symbol.iterator](){return t1({hasNext:Bi,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return xt(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return xt(this.origin,this.direction)}remove(){const t=this.getNodeAtCaret();return t&&t.remove(),this}replaceOrInsert(t,n){const r=this.getNodeAtCaret();return t.is(this.origin)||t.is(r)||(r===null?this.insert(t):r.replace(t,n)),this}splice(t,n,r="next"){const o=r===this.direction?n:Array.from(n).reverse();let i=this;const s=this.getParentAtCaret(),a=new Map;for(let c=i.getAdjacentCaret();c!==null&&a.size<t;c=c.getAdjacentCaret()){const l=c.origin.getWritable();a.set(l.getKey(),l)}for(const c of o){if(a.size>0){const l=i.getNodeAtCaret();if(l){if(a.delete(l.getKey()),a.delete(c.getKey()),!(l.is(c)||i.origin.is(c))){const f=c.getParent();f&&f.is(s)&&c.remove(),l.replace(c)}}else l===null&&U(263,Array.from(a).join(" "))}else i.insert(c);i=xt(c,this.direction)}for(const c of a.values())c.remove();return this}}class Ws extends dh{constructor(){super(...arguments);F(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:hn(n,this.direction)}getParentCaret(n="root"){return xt(hh(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=rs(this.direction);return xt(this.getNodeAtCaret(),n)||hn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Ws&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const eN={root:Ye,shadowRoot:jt};function rs(e){return X6[e]}function hh(e,t="root"){return eN[t](e)?null:e}class $o extends dh{constructor(){super(...arguments);F(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:xt(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return R(this.origin)?hn(this.origin,this.direction):null}getParentCaret(n="root"){return xt(hh(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=rs(this.direction);return xt(this.getNodeAtCaret(),n)||hn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof $o&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof $o||n instanceof Bo)&&this.direction===n.direction&&this.origin.is(n.origin)}}class Bo extends dh{constructor(n,r){super(n);F(this,"type","text");F(this,"offset");this.offset=r}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:Uo(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return xt(hh(this.getParentAtCaret(),n),this.direction)}getFlipped(){return Uo(this.origin,rs(this.direction),this.offset)}isSamePointCaret(n){return n instanceof Bo&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof $o||n instanceof Bo)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return xt(this.origin,this.direction)}}function Ir(e){return e instanceof Bo}function Bi(e){return e instanceof $o}function Pn(e){return e instanceof Ws}const tN={next:class extends Bo{constructor(){super(...arguments);F(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends Bo{constructor(){super(...arguments);F(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},nN={next:class extends $o{constructor(){super(...arguments);F(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends $o{constructor(){super(...arguments);F(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},rN={next:class extends Ws{constructor(){super(...arguments);F(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends Ws{constructor(){super(...arguments);F(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function xt(e,t){return e?new nN[t](e):null}function Uo(e,t,n){return e?new tN[t](e,Lr(e,n)):null}function Lr(e,t,n="error"){const r=e.getTextContentSize();let o=t==="next"?r:t==="previous"?0:t;return(o<0||o>r)&&(n!=="clamp"&&Dv(284,String(t),String(r),e.getKey()),o=o<0?0:r),o}function Cg(e,t){return new iN(e,t)}function hn(e,t){return R(e)?new rN[t](e):null}function oN(e){return e&&e.getChildCaret()||e}function mh(e){return e&&oN(e.getAdjacentCaret())}class ph{constructor(t,n,r){F(this,"type","node-caret-range");F(this,"direction");F(this,"anchor");F(this,"focus");this.anchor=t,this.focus=n,this.direction=r}getLatest(){const t=this.anchor.getLatest(),n=this.focus.getLatest();return t===this.anchor&&n===this.focus?this:new ph(t,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=o=>{const i=this[o].getLatest();return Ir(i)?(function(s,a){const{direction:c,origin:l}=s,f=Lr(l,a==="focus"?rs(c):c);return Cg(s,f-s.offset)})(i,o):null},n=t("anchor"),r=t("focus");if(n&&r){const{caret:o}=n,{caret:i}=r;if(o.isSameNodeCaret(i))return[Cg(o,i.offset-o.offset),null]}return[n,r]}iterNodeCarets(t="root"){const n=Ir(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),o=Ir(r),i=s=>s.isSameNodeCaret(r)?null:mh(s)||s.getParentCaret(t);return t1({hasNext:s=>s!==null&&!(o&&r.isSameNodeCaret(s)),initial:n.isSameNodeCaret(r)?null:i(n),map:s=>s,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class iN{constructor(t,n){F(this,"type","slice");F(this,"caret");F(this,"distance");this.caret=t,this.distance=n}getSliceIndices(){const{distance:t,caret:{offset:n}}=this,r=n+t;return r<n?[r,n]:[n,r]}getTextContent(){const[t,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(t,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:t,direction:n}}=this,[r,o]=this.getSliceIndices(),i=t.getTextContent();return Uo(t.setTextContent(i.slice(0,r)+i.slice(o)),n,r)}}function gh(e){return $r(e,xt(We(),e.direction))}function sN(e){return $r(e,e)}function $r(e,t){return e.direction!==t.direction&&U(265),new ph(e,t,e.direction)}function t1(e){const{initial:t,hasNext:n,step:r,map:o}=e;let i=t;return{[Symbol.iterator](){return this},next(){if(!n(i))return{done:!0,value:void 0};const s={done:!1,value:o(i)};return i=r(i),s}}}function n1(e,t){const n=Za(e.origin,t.origin);switch(n===null&&U(275,e.origin.getKey(),t.origin.getKey()),n.type){case"same":{const r=e.type==="text",o=t.type==="text";return r&&o?(function(i,s){return Math.sign(i-s)})(e.offset,t.offset):e.type===t.type?0:r?-1:o?1:e.type==="child"?-1:1}case"ancestor":return e.type==="child"?-1:1;case"descendant":return t.type==="child"?1:-1;case"branch":return r1(n)}}function r1(e){const{a:t,b:n}=e,r=t.__key,o=n.__key;let i=t,s=n;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return i===null?1:-1}function La(e,t){return t.is(e)}function Eg(e){return R(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function Za(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[r,o]=Eg(e);r;o=r,r=r.getParent())n.set(r,o);for(let[r,o]=Eg(t);r;o=r,r=r.getParent()){const i=n.get(r);if(i!==void 0)return i===null?(La(e,r)||U(276),{commonAncestor:r,type:"ancestor"}):o===null?(La(t,r)||U(277),{commonAncestor:r,type:"descendant"}):((R(i)||La(e,i))&&(R(o)||La(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||U(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function ir(e,t){const{type:n,key:r,offset:o}=e,i=V6(e.key);return n==="text"?(X(i)||U(266,i.getType(),r),Uo(i,t,o)):(R(i)||U(267,i.getType(),r),lN(i,e.offset,t))}function Wo(e,t){const{origin:n,direction:r}=t,o=r==="next";Ir(t)?e.set(n.getKey(),t.offset,"text"):Bi(t)?X(n)?e.set(n.getKey(),Lr(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(Pn(t)&&R(n)||U(268),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function aN(e){const t=Z(),n=B(t)?t:kx();return Ja(n,e),Pt(n),n}function Ja(e,t){Wo(e.anchor,t.anchor),Wo(e.focus,t.focus)}function _g(e){const{anchor:t,focus:n}=e,r=ir(t,"next"),o=ir(n,"next"),i=n1(r,o)<=0?"next":"previous";return $r(Ui(r,i),Ui(o,i))}function yh(e){const{direction:t,origin:n}=e,r=xt(n,rs(t)).getNodeAtCaret();return r?xt(r,t):hn(n.getParentOrThrow(),t)}function Sg(e,t="root"){const n=[e];for(let r=Pn(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(yh(r));return n}function lf(e){return!!e&&e.origin.isAttached()}function cN(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=i1(e,r),s=Sg(i.anchor,n),a=Sg(i.focus.getFlipped(),n),c=new Set,l=[];for(const m of i.iterNodeCarets(n))if(Pn(m))c.add(m.origin.getKey());else if(Bi(m)){const{origin:p}=m;R(p)&&!c.has(p.getKey())||l.push(p)}for(const m of l)m.remove();for(const m of i.getTextSlices()){if(!m)continue;const{origin:p}=m.caret,g=p.getTextContentSize(),y=yh(xt(p,r)),b=p.getMode();if(Math.abs(m.distance)===g&&o==="removeEmptySlices"||b==="token"&&m.distance!==0)y.remove();else if(m.distance!==0){o="removeEmptySlices";let x=m.removeTextSlice();const w=m.caret.origin;if(b==="segmented"){const A=x.origin,E=ot(A.getTextContent()).setStyle(A.getStyle()).setFormat(A.getFormat());y.replaceOrInsert(E),x=Uo(E,r,x.offset)}w.is(s[0].origin)&&(s[0]=x),w.is(a[0].origin)&&(a[0]=x.getFlipped())}}let f,u;for(const m of s)if(lf(m)){f=Gt(m);break}for(const m of a)if(lf(m)){u=Gt(m);break}const d=(function(m,p,g){if(!m||!p)return null;const y=m.getParentAtCaret(),b=p.getParentAtCaret();if(!y||!b)return null;const x=y.getParents().reverse();x.push(y);const w=b.getParents().reverse();w.push(b);const A=Math.min(x.length,w.length);let E;for(E=0;E<A&&x[E]===w[E];E++);const _=(P,I)=>{let $;for(let D=E;D<P.length;D++){const j=P[D];if(jt(j))return;!$&&I(j)&&($=j)}return $},S=_(x,xr),O=S&&_(w,P=>g.has(P.getKey())&&xr(P));return S&&O?[S,O]:null})(f,u,c);if(d){const[m,p]=d;hn(m,"previous").splice(0,p.getChildren()),p.remove()}const h=[f,u,...s,...a].find(lf);if(h)return sN(Ui(Gt(h),e.direction));U(269,JSON.stringify(s.map(m=>m.origin.__key)))}function Gt(e){const t=(function(o){let i=o;for(;Pn(i);){const s=mh(i);if(!Pn(s))break;i=s}return i})(e.getLatest()),{direction:n}=t;if(X(t.origin))return Ir(t)?t:Uo(t.origin,n,n);const r=t.getAdjacentCaret();return Bi(r)&&X(r.origin)?Uo(r.origin,n,rs(n)):t}function o1(e){return Ir(e)&&e.offset!==Lr(e.origin,e.direction)}function Ui(e,t){return e.direction===t?e:e.getFlipped()}function i1(e,t){return e.direction===t?e:$r(Ui(e.focus,t),Ui(e.anchor,t))}function lN(e,t,n){let r=hn(e,"next");for(let o=0;o<t;o++){const i=r.getAdjacentCaret();if(i===null)break;r=i}return Ui(r,n)}function fN(...e){return e}function uN(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}function dN(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Vu=new Map;function s1(e){const t={};if(!e)return t;const n=e.split(";");for(const r of n)if(r!==""){const[o,i]=r.split(/:([^]+)/);o&&i&&(t[o.trim()]=i.trim())}return t}function kg(e){let t=Vu.get(e);return t===void 0&&(t=s1(e),Vu.set(e,t)),t}function a1(e){const t=uh().getElementByKey(e.getKey());if(t===null)return null;const n=t.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(t)}function c1(e){return a1(Ye(e)?e:e.getParentOrThrow())}function Tg(e){const t=c1(e);return t!==null&&t.direction==="rtl"}function l1(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!qn(t)&&r!==null){const[o,i]=r,s=e.isBackward(),a=o.getNode(),c=i.getNode(),l=t.is(a),f=t.is(c);if(l||f){const[u,d]=zu(e),h=a.is(c),m=t.is(s?c:a),p=t.is(s?a:c);let g,y=0;h?(y=u>d?d:u,g=u>d?u:d):m?(y=s?d:u,g=void 0):p&&(y=0,g=s?u:d);const b=t.__text.slice(y,g);b!==t.__text&&(n==="clone"&&(t=Q6(t)),t.__text=b)}}return t}function Ng(e){if(e.type==="text")return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return R(t)||dN(177),e.offset===t.getChildrenSize()}function hN(e){const t=e.getStyle(),n=s1(t);Vu.set(t,n)}function f1(e){const t=u1(e);return t!==null&&t.writingMode==="vertical-rl"}function u1(e){const t=e.anchor.getNode();return R(t)?a1(t):c1(t)}function Og(e,t){let n=f1(e)?!t:t;d1(e)&&(n=!n);const r=ir(e.focus,n?"previous":"next");if(o1(r))return!1;for(const o of gh(r)){if(Pn(o))return!o.origin.isInline();if(!R(o.origin)){if(Te(o.origin))return!0;break}}return!1}function mN(e,t,n,r){e.modify(t?"extend":"move",n,r)}function d1(e){const t=u1(e);return t!==null&&t.direction==="rtl"}function Pg(e,t,n){const r=d1(e);let o;o=f1(e)||r?!n:n,mN(e,t,o,"character")}function pN(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const h1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,gN=h1&&"documentMode"in document?document.documentMode:null;!(!h1||!("InputEvent"in window)||gN)&&"getTargetRanges"in new window.InputEvent("input");function m1(...e){const t=[];for(const n of e)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))t.push(r);return t}function mn(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function bh(e,...t){const n=m1(...t);n.length>0&&e.classList.add(...n)}function p1(e,...t){const n=m1(...t);n.length>0&&e.classList.remove(...n)}function yN(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function bN(e){const t=ct(e,n=>R(n)&&!n.isInline());return R(t)||pN(4,e.__key),t}function Or(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}const vN=Symbol.for("preact-signals");function dl(){if(Rr>1)return void Rr--;let e,t=!1;for(;Ts!==void 0;){let n=Ts;for(Ts=void 0,Yu++;n!==void 0;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&g1(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(Yu=0,Rr--,t)throw e}function xN(e){if(Rr>0)return e();Rr++;try{return e()}finally{dl()}}let Pe,Ts;function Mg(e){const t=Pe;Pe=void 0;try{return e()}finally{Pe=t}}let Rr=0,Yu=0,Xa=0;function Ig(e){if(Pe===void 0)return;let t=e.n;return t===void 0||t.t!==Pe?(t={i:0,S:e,p:Pe.s,n:void 0,t:Pe,e:void 0,x:void 0,r:t},Pe.s!==void 0&&(Pe.s.n=t),Pe.s=t,e.n=t,32&Pe.f&&e.S(t),t):t.i===-1?(t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=Pe.s,t.n=void 0,Pe.s.n=t,Pe.s=t),t):void 0}function Et(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}function wN(e,t){return new Et(e,t)}function g1(e){for(let t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Lg(e){for(let t=e.s;t!==void 0;t=t.n){const n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function y1(e){let t,n=e.s;for(;n!==void 0;){const r=n.p;n.i===-1?(n.S.U(n),r!==void 0&&(r.n=n.n),n.n!==void 0&&(n.n.p=r)):t=n,n.S.n=n.r,n.r!==void 0&&(n.r=void 0),n=r}e.s=t}function ri(e,t){Et.call(this,void 0),this.x=e,this.s=void 0,this.g=Xa-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}function b1(e){const t=e.u;if(e.u=void 0,typeof t=="function"){Rr++;const n=Pe;Pe=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,vh(e),r}finally{Pe=n,dl()}}}function vh(e){for(let t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,b1(e)}function AN(e){if(Pe!==this)throw new Error("Out-of-order effect");y1(this),Pe=e,this.f&=-2,8&this.f&&vh(this),dl()}function fi(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}function Ks(e,t){const n=new fi(e,t);try{n.c()}catch(o){throw n.d(),o}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function v1(e,t={}){const n={};for(const r in e){const o=t[r],i=wN(o===void 0?e[r]:o);n[r]=i}return n}Et.prototype.brand=vN,Et.prototype.h=function(){return!0},Et.prototype.S=function(e){const t=this.t;t!==e&&e.e===void 0&&(e.x=t,this.t=e,t!==void 0?t.e=e:Mg(()=>{var n;(n=this.W)==null||n.call(this)}))},Et.prototype.U=function(e){if(this.t!==void 0){const t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&Mg(()=>{var r;(r=this.Z)==null||r.call(this)}))}},Et.prototype.subscribe=function(e){return Ks(()=>{const t=this.value,n=Pe;Pe=void 0;try{e(t)}finally{Pe=n}},{name:"sub"})},Et.prototype.valueOf=function(){return this.value},Et.prototype.toString=function(){return this.value+""},Et.prototype.toJSON=function(){return this.value},Et.prototype.peek=function(){const e=Pe;Pe=void 0;try{return this.value}finally{Pe=e}},Object.defineProperty(Et.prototype,"value",{get(){const e=Ig(this);return e!==void 0&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(Yu>100)throw new Error("Cycle detected");this.v=e,this.i++,Xa++,Rr++;try{for(let t=this.t;t!==void 0;t=t.x)t.t.N()}finally{dl()}}}}),ri.prototype=new Et,ri.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Xa))return!0;if(this.g=Xa,this.f|=1,this.i>0&&!g1(this))return this.f&=-2,!0;const e=Pe;try{Lg(this),Pe=this;const t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return Pe=e,y1(this),this.f&=-2,!0},ri.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(let t=this.s;t!==void 0;t=t.n)t.S.S(t)}Et.prototype.S.call(this,e)},ri.prototype.U=function(e){if(this.t!==void 0&&(Et.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(let t=this.s;t!==void 0;t=t.n)t.S.U(t)}},ri.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(ri.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=Ig(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),fi.prototype.c=function(){const e=this.S();try{if(8&this.f||this.x===void 0)return;const t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},fi.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,b1(this),Lg(this),Rr++;const e=Pe;return Pe=this,AN.bind(this,e)},fi.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ts,Ts=this)},fi.prototype.d=function(){this.f|=8,1&this.f||vh(this)},fi.prototype.dispose=function(){this.d()};function CN(e){return(typeof e.nodes=="function"?e.nodes():e.nodes)||[]}function je(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function x1(e,t){if(e&&t&&!Array.isArray(t)&&typeof e=="object"&&typeof t=="object"){const n=e,r=t;for(const o in r)n[o]=x1(n[o],r[o]);return e}return t}const xh=0,Gu=1,w1=2,ff=3,Ra=4,oi=5,uf=6,gs=7;function df(e){return e.id===xh}function A1(e){return e.id===w1}function EN(e){return(function(t){return t.id===Gu})(e)||je(305,String(e.id),String(Gu)),Object.assign(e,{id:w1})}const _N=new Set;class SN{constructor(t,n){F(this,"builder");F(this,"configs");F(this,"_dependency");F(this,"_peerNameSet");F(this,"extension");F(this,"state");F(this,"_signal");this.builder=t,this.extension=n,this.configs=new Set,this.state={id:xh}}mergeConfigs(){let t=this.extension.config||{};const n=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):uN;for(const r of this.configs)t=n(t,r);return t}init(t){const n=this.state;A1(n)||je(306,String(n.id));const r={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},o={...r,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},i=(function(a,c,l){return Object.assign(a,{config:c,id:ff,registerState:l})})(n,this.mergeConfigs(),r);let s;this.state=i,this.extension.init&&(s=this.extension.init(t,i.config,r)),this.state=(function(a,c,l){return Object.assign(a,{id:Ra,initResult:c,registerState:l})})(i,s,o)}build(t){const n=this.state;let r;n.id!==Ra&&je(307,String(n.id),String(oi)),this.extension.build&&(r=this.extension.build(t,n.config,n.registerState));const o={...n.registerState,getOutput:()=>r,getSignal:this.getSignal.bind(this)};this.state=(function(i,s,a){return Object.assign(i,{id:oi,output:s,registerState:a})})(n,r,o)}register(t,n){this._signal=n;const r=this.state;r.id!==oi&&je(308,String(r.id),String(oi));const o=this.extension.register&&this.extension.register(t,r.config,r.registerState);return this.state=(function(i){return Object.assign(i,{id:uf})})(r),()=>{const i=this.state;i.id!==gs&&je(309,String(r.id),String(gs)),this.state=(function(s){return Object.assign(s,{id:oi})})(i),o&&o()}}afterRegistration(t){const n=this.state;let r;return n.id!==uf&&je(310,String(n.id),String(uf)),this.extension.afterRegistration&&(r=this.extension.afterRegistration(t,n.config,n.registerState)),this.state=(function(o){return Object.assign(o,{id:gs})})(n),r}getSignal(){return this._signal===void 0&&je(311),this._signal}getInitResult(){this.extension.init===void 0&&je(312,this.extension.name);const t=this.state;return(function(n){return n.id>=Ra})(t)||je(313,String(t.id),String(Ra)),t.initResult}getInitPeer(t){const n=this.builder.extensionNameMap.get(t);return n?n.getExtensionInitDependency():void 0}getExtensionInitDependency(){const t=this.state;return(function(n){return n.id>=ff})(t)||je(314,String(t.id),String(ff)),{config:t.config}}getPeer(t){const n=this.builder.extensionNameMap.get(t);return n?n.getExtensionDependency():void 0}getInitDependency(t){const n=this.builder.getExtensionRep(t);return n===void 0&&je(315,this.extension.name,t.name),n.getExtensionInitDependency()}getDependency(t){const n=this.builder.getExtensionRep(t);return n===void 0&&je(315,this.extension.name,t.name),n.getExtensionDependency()}getState(){const t=this.state;return(function(n){return n.id>=gs})(t)||je(316,String(t.id),String(gs)),t}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||_N}getPeerNameSet(){let t=this._peerNameSet;return t||(t=new Set((this.extension.peerDependencies||[]).map(([n])=>n)),this._peerNameSet=t),t}getExtensionDependency(){if(!this._dependency){const t=this.state;(function(n){return n.id>=oi})(t)||je(317,this.extension.name),this._dependency={config:t.config,init:t.initResult,output:t.output}}return this._dependency}}const Rg={tag:Ao};function kN(){const e=We();e.isEmpty()&&e.append(Tt())}const TN={config:{setOptions:Rg,updateOptions:Rg},init:({$initialEditorState:e=kN})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){const o=r.getInitResult();if(!o.initialized){o.initialized=!0;const{$initialEditorState:i}=o;if(R6(i))e.setEditorState(i,n);else if(typeof i=="function")e.update(()=>{i(e)},t);else if(i&&(typeof i=="string"||typeof i=="object")){const s=e.parseEditorState(i);e.setEditorState(s,n)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[es,Hr,Zi,Ji,ts]},Dg=Symbol.for("@lexical/extension/LexicalBuilder");function Fg(){}function NN(e){throw e}function Da(e){return Array.isArray(e)?e:[e]}const hf="0.39.0+prod.esm";class Ai{constructor(t){F(this,"roots");F(this,"extensionNameMap");F(this,"outgoingConfigEdges");F(this,"incomingEdges");F(this,"conflicts");F(this,"_sortedExtensionReps");F(this,"PACKAGE_VERSION");this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=hf,this.roots=t;for(const n of t)this.addExtension(n)}static fromExtensions(t){const n=[Da(TN)];for(const r of t)n.push(Da(r));return new Ai(n)}static maybeFromEditor(t){const n=t[Dg];return n&&(n.PACKAGE_VERSION!==hf&&je(292,n.PACKAGE_VERSION,hf),n instanceof Ai||je(293)),n}static fromEditor(t){const n=Ai.maybeFromEditor(t);return n===void 0&&je(294),n}constructEditor(){const{$initialEditorState:t,onError:n,...r}=this.buildCreateEditorArgs(),o=Object.assign(zx({...r,...n?{onError:i=>{n(i,o)}}:{}}),{[Dg]:this});for(const i of this.sortedExtensionReps())i.build(o);return o}buildEditor(){let t=Fg;function n(){try{t()}finally{t=Fg}}const r=Object.assign(this.constructEditor(),{dispose:n,[Symbol.dispose]:n});return t=mn(this.registerEditor(r),()=>r.setRootElement(null)),r}hasExtensionByName(t){return this.extensionNameMap.has(t)}getExtensionRep(t){const n=this.extensionNameMap.get(t.name);if(n)return n.extension!==t&&je(295,t.name),n}addEdge(t,n,r){const o=this.outgoingConfigEdges.get(t);o?o.set(n,r):this.outgoingConfigEdges.set(t,new Map([[n,r]]));const i=this.incomingEdges.get(n);i?i.add(t):this.incomingEdges.set(n,new Set([t]))}addExtension(t){this._sortedExtensionReps!==void 0&&je(296);const n=Da(t),[r]=n;typeof r.name!="string"&&je(297,typeof r.name);let o=this.extensionNameMap.get(r.name);if(o!==void 0&&o.extension!==r&&je(298,r.name),!o){o=new SN(this,r),this.extensionNameMap.set(r.name,o);const i=this.conflicts.get(r.name);typeof i=="string"&&je(299,r.name,i);for(const s of r.conflictsWith||[])this.extensionNameMap.has(s)&&je(299,r.name,s),this.conflicts.set(s,r.name);for(const s of r.dependencies||[]){const a=Da(s);this.addEdge(r.name,a[0].name,a.slice(1)),this.addExtension(a)}for(const[s,a]of r.peerDependencies||[])this.addEdge(r.name,s,a?[a]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const t=[],n=(r,o)=>{let i=r.state;if(A1(i))return;const s=r.extension.name;var a;df(i)||je(300,s,o||"[unknown]"),df(a=i)||je(304,String(a.id),String(xh)),i=Object.assign(a,{id:Gu}),r.state=i;const c=this.outgoingConfigEdges.get(s);if(c)for(const l of c.keys()){const f=this.extensionNameMap.get(l);f&&n(f,s)}i=EN(i),r.state=i,t.push(r)};for(const r of this.extensionNameMap.values())df(r.state)&&n(r);for(const r of t)for(const[o,i]of this.outgoingConfigEdges.get(r.extension.name)||[])if(i.length>0){const s=this.extensionNameMap.get(o);if(s)for(const a of i)s.configs.add(a)}for(const[r,...o]of this.roots)if(o.length>0){const i=this.extensionNameMap.get(r.name);i===void 0&&je(301,r.name);for(const s of o)i.configs.add(s)}return this._sortedExtensionReps=t,this._sortedExtensionReps}registerEditor(t){const n=this.sortedExtensionReps(),r=new AbortController,o=[()=>r.abort()],i=r.signal;for(const s of n){const a=s.register(t,i);a&&o.push(a)}for(const s of n){const a=s.afterRegistration(t);a&&o.push(a)}return mn(...o)}buildCreateEditorArgs(){const t={},n=new Set,r=new Map,o=new Map,i={},s={},a=this.sortedExtensionReps();for(const f of a){const{extension:u}=f;if(u.onError!==void 0&&(t.onError=u.onError),u.disableEvents!==void 0&&(t.disableEvents=u.disableEvents),u.parentEditor!==void 0&&(t.parentEditor=u.parentEditor),u.editable!==void 0&&(t.editable=u.editable),u.namespace!==void 0&&(t.namespace=u.namespace),u.$initialEditorState!==void 0&&(t.$initialEditorState=u.$initialEditorState),u.nodes)for(const d of CN(u)){if(typeof d!="function"){const h=r.get(d.replace);h&&je(302,u.name,d.replace.name,h.extension.name),r.set(d.replace,f)}n.add(d)}if(u.html){if(u.html.export)for(const[d,h]of u.html.export.entries())o.set(d,h);u.html.import&&Object.assign(i,u.html.import)}u.theme&&x1(s,u.theme)}Object.keys(s).length>0&&(t.theme=s),n.size&&(t.nodes=[...n]);const c=Object.keys(i).length>0,l=o.size>0;(c||l)&&(t.html={},c&&(t.html.import=i),l&&(t.html.export=o));for(const f of a)f.init(t);return t.onError||(t.onError=NN),t}}function ON(e,t){const n=Ai.fromEditor(e).extensionNameMap.get(t);return n?n.getExtensionDependency():void 0}function Pr(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Qu(e){let t=1,n=e.getParent();for(;n!=null;){if(ke(n)){const r=n.getParent();if(xe(r)){t++,n=r.getParent();continue}Pr(40)}return t}return t}function Zu(e){let t=e.getParent();xe(t)||Pr(40);let n=t;for(;n!==null;)n=n.getParent(),xe(n)&&(t=n);return t}function C1(e){let t=[];const n=e.getChildren().filter(ke);for(let r=0;r<n.length;r++){const o=n[r],i=o.getFirstChild();xe(i)?t=t.concat(C1(i)):t.push(o)}return t}function En(e){return ke(e)&&xe(e.getFirstChild())}function jg(e){return Jt().append(e)}function E1(e,t){return ke(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function zg(e){const t=Z();if(t!==null){let n=t.getNodes();if(B(t)){const o=t.getStartEndPoints();o===null&&Pr(143);const[i]=o,s=i.getNode(),a=s.getParent();if(jt(s)){const c=s.getFirstChild();if(c)n=c.selectStart().getNodes();else{const l=Tt();s.append(l),n=l.select().getNodes()}}else if(E1(s,n)){const c=Ut(e);if(jt(a)){s.replace(c);const l=Jt();R(s)&&(l.setFormat(s.getFormatType()),l.setIndent(s.getIndent())),c.append(l)}else if(ke(s)){const l=s.getParentOrThrow();Ko(c,l.getChildren()),l.replace(c)}return}}const r=new Set;for(let o=0;o<n.length;o++){const i=n[o];if(R(i)&&i.isEmpty()&&!ke(i)&&!r.has(i.getKey())){$g(i,e);continue}let s=Kx(i)?i.getParent():ke(i)&&i.isEmpty()?i:null;for(;s!=null;){const a=s.getKey();if(xe(s)){if(!r.has(a)){const c=Ut(e);Ko(c,s.getChildren()),s.replace(c),r.add(a)}break}{const c=s.getParent();if(jt(c)&&!r.has(a)){r.add(a),$g(s,e);break}s=c}}}}}function Ko(e,t){e.splice(e.getChildrenSize(),0,t)}function $g(e,t){if(xe(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=Jt();let i;if(Ko(o,e.getChildren()),xe(n)&&t===n.getListType())n.append(o),xe(r)&&t===r.getListType()&&(Ko(n,r.getChildren()),r.remove()),i=n;else if(xe(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const s=Ut(t);s.append(o),e.replace(s),i=s}return o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),e.remove(),i}function wh(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&En(n)&&En(r)&&(wh(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function PN(){const e=Z();if(B(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(E1(r,n))t.add(Zu(r));else for(let o=0;o<n.length;o++){const i=n[o];if(Kx(i)){const s=yN(i,os);s!=null&&t.add(Zu(s))}}for(const o of t){let i=o;const s=C1(o);for(const a of s){const c=Tt().setTextStyle(e.style).setTextFormat(e.format);Ko(c,a.getChildren()),i.insertAfter(c),i=c,a.__key===e.anchor.key&&Wo(e.anchor,Gt(hn(c,"next"))),a.__key===e.focus.key&&Wo(e.focus,Gt(hn(c,"next"))),a.remove()}o.remove()}}}function _1(e){const t=e.getListType()!=="check";let n=e.getStart();for(const r of e.getChildren())ke(r)&&(r.getValue()!==n&&r.setValue(n),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),xe(r.getFirstChild())||n++)}function MN(e){const t=new Set;if(En(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(En(r)&&En(o)){const i=o.getFirstChild();if(xe(i)){i.append(e);const s=r.getFirstChild();xe(s)&&(Ko(i,s.getChildren()),r.remove(),t.add(r.getKey()))}}else if(En(r)){const i=r.getFirstChild();if(xe(i)){const s=i.getFirstChild();s!==null&&s.insertBefore(e)}}else if(En(o)){const i=o.getFirstChild();xe(i)&&i.append(e)}else if(xe(n)){const i=Jt().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),s=Ut(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());i.append(s),s.append(e),o?o.insertAfter(i):r?r.insertBefore(i):n.append(i)}}function IN(e){if(En(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(xe(n?n.getParent():void 0)&&ke(n)&&xe(t)){const r=t?t.getFirstChild():void 0,o=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(o))n.insertAfter(e),t.isEmpty()&&n.remove();else{const i=t.getListType(),s=Jt(),a=Ut(i);s.append(a),e.getPreviousSiblings().forEach(f=>a.append(f));const c=Jt(),l=Ut(i);c.append(l),Ko(l,e.getNextSiblings()),n.insertBefore(s),n.insertAfter(c),n.replace(e)}}}function LN(){const e=Z();if(!B(e)||!e.isCollapsed())return!1;const t=e.anchor.getNode();if(!ke(t)||t.getChildrenSize()!==0)return!1;const n=Zu(t),r=t.getParent();xe(r)||Pr(40);const o=r.getParent();let i;if(jt(o))i=Tt(),n.insertAfter(i);else{if(!ke(o))return!1;i=Jt(),o.insertAfter(i)}i.setTextStyle(e.style).setTextFormat(e.format).select();const s=t.getNextSiblings();if(s.length>0){const a=Ut(r.getListType());if(ke(i)){const c=Jt();c.append(a),i.insertAfter(c)}else i.insertAfter(a);a.append(...s)}return(function(a){let c=a;for(;c.getNextSibling()==null&&c.getPreviousSibling()==null;){const l=c.getParent();if(l==null||!ke(l)&&!xe(l))break;c=l}c.remove()})(t),!0}function kc(...e){const t=[];for(const n of e)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))t.push(r);return t}class os extends Ln{constructor(n=1,r=void 0,o){super(o);F(this,"__value");F(this,"__checked");this.__value=n===void 0?1:n,this.__checked=r}$config(){return this.config("listitem",{$transform:n=>{if(n.__checked==null)return;const r=n.getParent();xe(r)&&r.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Ln,importDOM:{li:()=>({conversion:RN,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__value=n.__value,this.__checked=n.__checked}createDOM(n){const r=document.createElement("li");return this.updateListItemDOM(null,r,n),r}updateListItemDOM(n,r,o){(function(a,c,l){const f=c.getParent();!xe(f)||f.getListType()!=="check"||xe(c.getFirstChild())?(a.removeAttribute("role"),a.removeAttribute("tabIndex"),a.removeAttribute("aria-checked")):(a.setAttribute("role","checkbox"),a.setAttribute("tabIndex","-1"),l&&c.__checked===l.__checked||a.setAttribute("aria-checked",c.getChecked()?"true":"false"))})(r,this,n),r.value=this.__value,(function(a,c,l){const f=[],u=[],d=c.list,h=d?d.listitem:void 0;let m;if(d&&d.nested&&(m=d.nested.listitem),h!==void 0&&f.push(...kc(h)),d){const p=l.getParent(),g=xe(p)&&p.getListType()==="check",y=l.getChecked();g&&!y||u.push(d.listitemUnchecked),g&&y||u.push(d.listitemChecked),g&&f.push(y?d.listitemChecked:d.listitemUnchecked)}if(m!==void 0){const p=kc(m);l.getChildren().some(g=>xe(g))?f.push(...p):u.push(...p)}u.length>0&&p1(a,...u),f.length>0&&bh(a,...f)})(r,o.theme,this);const i=n?n.__style:"",s=this.__style;i!==s&&(s===""?r.removeAttribute("style"):r.style.cssText=s),(function(a,c,l){const f=kg(c.__textStyle);for(const u in f)a.style.setProperty(`--listitem-marker-${u}`,f[u]);if(l)for(const u in kg(l.__textStyle))u in f||a.style.removeProperty(`--listitem-marker-${u}`)})(r,this,n)}updateDOM(n,r,o){const i=r;return this.updateListItemDOM(n,i,o),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const r=this.createDOM(n._config),o=this.getFormatType();o&&(r.style.textAlign=o);const i=this.getDirection();return i&&(r.dir=i),{element:r}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...n){for(let r=0;r<n.length;r++){const o=n[r];if(R(o)&&this.canMergeWith(o)){const i=o.getChildren();this.append(...i),o.remove()}else super.append(o)}return this}replace(n,r){if(ke(n))return super.replace(n);this.setIndent(0);const o=this.getParentOrThrow();if(!xe(o))return n;if(o.__first===this.getKey())o.insertBefore(n);else if(o.__last===this.getKey())o.insertAfter(n);else{const i=Ut(o.getListType());let s=this.getNextSibling();for(;s;){const a=s;s=s.getNextSibling(),i.append(a)}o.insertAfter(n),n.insertAfter(i)}return r&&(R(n)||Pr(139),this.getChildren().forEach(i=>{n.append(i)})),this.remove(),o.getChildrenSize()===0&&o.remove(),n}insertAfter(n,r=!0){const o=this.getParentOrThrow();if(xe(o)||Pr(39),ke(n))return super.insertAfter(n,r);const i=this.getNextSiblings();if(o.insertAfter(n,r),i.length!==0){const s=Ut(o.getListType());i.forEach(a=>s.append(a)),n.insertAfter(s,r)}return n}remove(n){const r=this.getPreviousSibling(),o=this.getNextSibling();super.remove(n),r&&o&&En(r)&&En(o)&&(wh(r.getFirstChild(),o.getFirstChild()),o.remove())}insertNewAfter(n,r=!0){const o=Jt().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(o,r),o}collapseAtStart(n){const r=Tt();this.getChildren().forEach(a=>r.append(a));const o=this.getParentOrThrow(),i=o.getParentOrThrow(),s=ke(i);if(o.getChildrenSize()===1)if(s)o.remove(),i.select();else{o.insertBefore(r),o.remove();const a=n.anchor,c=n.focus,l=r.getKey();a.type==="element"&&a.getNode().is(this)&&a.set(l,a.offset,"element"),c.type==="element"&&c.getNode().is(this)&&c.set(l,c.offset,"element")}else o.insertBefore(r),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(n){const r=this.getWritable();return r.__value=n,r}getChecked(){const n=this.getLatest();let r;const o=this.getParent();return xe(o)&&(r=o.getListType()),r==="check"?!!n.__checked:void 0}setChecked(n){const r=this.getWritable();return r.__checked=n,r}toggleChecked(){const n=this.getWritable();return n.setChecked(!n.__checked)}getIndent(){const n=this.getParent();if(n===null||!this.isAttached())return this.getLatest().__indent;let r=n.getParentOrThrow(),o=0;for(;ke(r);)r=r.getParentOrThrow().getParentOrThrow(),o++;return o}setIndent(n){typeof n!="number"&&Pr(117),(n=Math.floor(n))>=0||Pr(199);let r=this.getIndent();for(;r!==n;)r<n?(MN(this),r++):(IN(this),r--);return this}canInsertAfter(n){return ke(n)}canReplaceWith(n){return ke(n)}canMergeWith(n){return ke(n)||th(n)}extractWithChild(n,r){if(!B(r))return!1;const o=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(o)&&this.isParentOf(i)&&this.getTextContent().length===r.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Ut("bullet")}canMergeWhenEmpty(){return!0}}function RN(e){if(e.classList.contains("task-list-item")){for(const n of e.children)if(n.tagName==="INPUT")return Bg(n)}if(e.classList.contains("joplin-checkbox")){for(const n of e.children)if(n.classList.contains("checkbox-wrapper")&&n.children.length>0&&n.children[0].tagName==="INPUT")return Bg(n.children[0])}const t=e.getAttribute("aria-checked");return{node:Jt(t==="true"||t!=="false"&&void 0)}}function Bg(e){return e.getAttribute("type")!=="checkbox"?{node:null}:{node:Jt(e.hasAttribute("checked"))}}function Jt(e){return Vr(new os(void 0,e))}function ke(e){return e instanceof os}class fa extends Ln{constructor(n="number",r=1,o){super(o);F(this,"__tag");F(this,"__start");F(this,"__listType");const i=FN[n]||n;this.__listType=i,this.__tag=i==="number"?"ol":"ul",this.__start=r}$config(){return this.config("list",{$transform:n=>{(function(r){const o=r.getNextSibling();xe(o)&&r.getListType()===o.getListType()&&wh(r,o)})(n),_1(n)},extends:Ln,importDOM:{ol:()=>({conversion:Wg,priority:0}),ul:()=>({conversion:Wg,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__listType=n.__listType,this.__tag=n.__tag,this.__start=n.__start}getTag(){return this.getLatest().__tag}setListType(n){const r=this.getWritable();return r.__listType=n,r.__tag=n==="number"?"ol":"ul",r}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(n){const r=this.getWritable();return r.__start=n,r}createDOM(n,r){const o=this.__tag,i=document.createElement(o);return this.__start!==1&&i.setAttribute("start",String(this.__start)),i.__lexicalListType=this.__listType,Ug(i,n.theme,this),i}updateDOM(n,r,o){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Ug(r,o.theme,this),!1)}updateFromJSON(n){return super.updateFromJSON(n).setListType(n.listType).setStart(n.start)}exportDOM(n){const r=this.createDOM(n._config,n);return mt(r)&&(this.__start!==1&&r.setAttribute("start",String(this.__start)),this.__listType==="check"&&r.setAttribute("__lexicalListType","check")),{element:r}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(n,r,o){let i=o;for(let s=0;s<o.length;s++){const a=o[s];ke(a)||(i===o&&(i=[...o]),i[s]=Jt().append(!R(a)||xe(a)||a.isInline()?a:ot(a.getTextContent())))}return super.splice(n,r,i)}extractWithChild(n){return ke(n)}}function Ug(e,t,n){const r=[],o=[],i=t.list;if(i!==void 0){const s=i[`${n.__tag}Depth`]||[],a=Qu(n)-1,c=a%s.length,l=s[c],f=i[n.__tag];let u;const d=i.nested,h=i.checklist;if(d!==void 0&&d.list&&(u=d.list),f!==void 0&&r.push(f),h!==void 0&&n.__listType==="check"&&r.push(h),l!==void 0){r.push(...kc(l));for(let m=0;m<s.length;m++)m!==c&&o.push(n.__tag+m)}if(u!==void 0){const m=kc(u);a>1?r.push(...m):o.push(...m)}}o.length>0&&p1(e,...o),r.length>0&&bh(e,...r)}function DN(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(ke(r)){t.push(r);const o=r.getChildren();o.length>1&&o.forEach(i=>{xe(i)&&t.push(jg(i))})}else t.push(jg(r))}return t}function Wg(e){const t=e.nodeName.toLowerCase();let n=null;return t==="ol"?n=Ut("number",e.start):t==="ul"&&(n=(function(r){if(r.getAttribute("__lexicallisttype")==="check"||r.classList.contains("contains-task-list")||r.getAttribute("data-is-checklist")==="1")return!0;for(const o of r.childNodes)if(mt(o)&&o.hasAttribute("aria-checked"))return!0;return!1})(e)?Ut("check"):Ut("bullet")),{after:DN,node:n}}const FN={ol:"number",ul:"bullet"};function Ut(e="number",t=1){return Vr(new fa(e,t))}function xe(e){return e instanceof fa}const jN=he("UPDATE_LIST_START_COMMAND"),S1=he("INSERT_UNORDERED_LIST_COMMAND"),k1=he("INSERT_ORDERED_LIST_COMMAND"),Ju=he("REMOVE_LIST_COMMAND");function zN(e){return mn(e.registerCommand(k1,()=>(zg("number"),!0),Xn),e.registerCommand(jN,t=>{const{listNodeKey:n,newStart:r}=t,o=Xe(n);return!!xe(o)&&(o.getListType()==="number"&&(o.setStart(r),_1(o)),!0)},Xn),e.registerCommand(S1,()=>(zg("bullet"),!0),Xn),e.registerCommand(Ju,()=>(PN(),!0),Xn),e.registerCommand(js,()=>LN(),Xn),e.registerNodeTransform(os,t=>{const n=t.getFirstChild();if(n){if(X(n)){const r=n.getStyle(),o=n.getFormat();t.getTextStyle()!==r&&t.setTextStyle(r),t.getTextFormat()!==o&&t.setTextFormat(o)}}else{const r=Z();B(r)&&(r.style!==t.getTextStyle()||r.format!==t.getTextFormat())&&r.isCollapsed()&&t.is(r.anchor.getNode())&&t.setTextStyle(r.style).setTextFormat(r.format)}}),e.registerNodeTransform(Hr,t=>{const n=t.getParent();if(ke(n)&&t.is(n.getFirstChild())){const r=t.getStyle(),o=t.getFormat();r===n.getTextStyle()&&o===n.getTextFormat()||n.setTextStyle(r).setTextFormat(o)}}))}function $N(e){const t=n=>{const r=n.getParent();if(xe(n.getFirstChild())||!xe(r))return;const o=ct(n,i=>ke(i)&&xe(i.getParent())&&ke(i.getPreviousSibling()));if(o===null&&n.getIndent()>0)n.setIndent(0);else if(ke(o)){const i=o.getPreviousSibling();if(ke(i)){const s=(function(c){let l=c,f=l.getFirstChild();for(;xe(f);){const u=f.getLastChild();if(!ke(u))break;l=u,f=l.getFirstChild()}return l})(i),a=s.getParent();if(xe(a)){const c=Qu(a);c+1<Qu(r)&&n.setIndent(c)}}}};return e.registerNodeTransform(fa,n=>{const r=[n];for(;r.length>0;){const o=r.shift();if(xe(o)){for(const i of o.getChildren())if(ke(i)){t(i);const s=i.getFirstChild();xe(s)&&r.push(s)}}}})}const BN=new Set(["http:","https:","mailto:","sms:","tel:"]);let ua=class T1 extends Ln{constructor(n="",r={},o){super(o);F(this,"__url");F(this,"__target");F(this,"__rel");F(this,"__title");const{target:i=null,rel:s=null,title:a=null}=r;this.__url=n,this.__target=i,this.__rel=s,this.__title=a}static getType(){return"link"}static clone(n){return new T1(n.__url,{rel:n.__rel,target:n.__target,title:n.__title},n.__key)}createDOM(n){const r=document.createElement("a");return this.updateLinkDOM(null,r,n),bh(r,n.theme.link),r}updateLinkDOM(n,r,o){if(Xx(r)){n&&n.__url===this.__url||(r.href=this.sanitizeUrl(this.__url));for(const i of["target","rel","title"]){const s=`__${i}`,a=this[s];n&&n[s]===a||(a?r[i]=a:r.removeAttribute(i))}}}updateDOM(n,r,o){return this.updateLinkDOM(n,r,o),!1}static importDOM(){return{a:n=>({conversion:UN,priority:1})}}static importJSON(n){return So().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setURL(n.url).setRel(n.rel||null).setTarget(n.target||null).setTitle(n.title||null)}sanitizeUrl(n){n=qg(n);try{const r=new URL(qg(n));if(!BN.has(r.protocol))return"about:blank"}catch{return n}return n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(n){const r=this.getWritable();return r.__url=n,r}getTarget(){return this.getLatest().__target}setTarget(n){const r=this.getWritable();return r.__target=n,r}getRel(){return this.getLatest().__rel}setRel(n){const r=this.getWritable();return r.__rel=n,r}getTitle(){return this.getLatest().__title}setTitle(n){const r=this.getWritable();return r.__title=n,r}insertNewAfter(n,r=!0){const o=So(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(o,r),o}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,r,o){if(!B(r))return!1;const i=r.anchor.getNode(),s=r.focus.getNode();return this.isParentOf(i)&&this.isParentOf(s)&&r.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}};function UN(e){let t=null;if(Xx(e)){const n=e.textContent;(n!==null&&n!==""||e.children.length>0)&&(t=So(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function So(e="",t){return Vr(new ua(e,t))}function ut(e){return e instanceof ua}let N1=class O1 extends ua{constructor(n="",r={},o){super(n,r,o);F(this,"__isUnlinked");this.__isUnlinked=r.isUnlinked!==void 0&&r.isUnlinked!==null&&r.isUnlinked}static getType(){return"autolink"}static clone(n){return new O1(n.__url,{isUnlinked:n.__isUnlinked,rel:n.__rel,target:n.__target,title:n.__title},n.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(n){const r=this.getWritable();return r.__isUnlinked=n,r}createDOM(n){return this.__isUnlinked?document.createElement("span"):super.createDOM(n)}updateDOM(n,r,o){return super.updateDOM(n,r,o)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return Kg().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setIsUnlinked(n.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(n,r=!0){const o=this.getParentOrThrow().insertNewAfter(n,r);if(R(o)){const i=Kg(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return o.append(i),i}return null}};function Kg(e="",t){return Vr(new N1(e,t))}function lo(e){return e instanceof N1}const Wi=he("TOGGLE_LINK_COMMAND");function Hg(e,t){if(e.type==="element"){const n=e.getNode();return R(n)||(function(r,...o){const i=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",r);for(const a of o)s.append("v",a);throw i.search=s.toString(),Error(`Minified Lexical error #${r}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(252),n.getChildren()[e.offset+t]||null}return null}function mf(e,t={}){let n;if(e&&typeof e=="object"){const{url:f,...u}=e;n=f,t={...u,...t}}else n=e;const{target:r,title:o}=t,i=t.rel===void 0?"noreferrer":t.rel,s=Z();if(s===null||!B(s)&&!it(s))return;if(it(s)){const f=s.getNodes();return f.length===0?void 0:void f.forEach(u=>{if(n===null){const d=ct(u,h=>!lo(h)&&ut(h));d&&(d.insertBefore(u),d.getChildren().length===0&&d.remove())}else{const d=ct(u,h=>!lo(h)&&ut(h));if(d)d.setURL(n),r!==void 0&&d.setTarget(r),i!==void 0&&d.setRel(i);else{const h=So(n,{rel:i,target:r});u.insertBefore(h),h.append(u)}}})}const a=s.extract();if(n===null){const f=new Set;return void a.forEach(u=>{const d=u.getParent();if(ut(d)&&!lo(d)){const h=d.getKey();if(f.has(h))return;(function(m,p){const g=new Set(p.filter(_=>m.isParentOf(_)).map(_=>_.getKey())),y=m.getChildren(),b=y.filter(_=>g.has(_.getKey()));if(b.length===y.length)return y.forEach(_=>m.insertBefore(_)),void m.remove();const x=y.findIndex(_=>g.has(_.getKey())),w=y.findLastIndex(_=>g.has(_.getKey())),A=x===0,E=w===y.length-1;if(A)b.forEach(_=>m.insertBefore(_));else if(E)for(let _=b.length-1;_>=0;_--)m.insertAfter(b[_]);else{for(let S=b.length-1;S>=0;S--)m.insertAfter(b[S]);const _=y.slice(w+1);if(_.length>0){const S=So(m.getURL(),{rel:m.getRel(),target:m.getTarget(),title:m.getTitle()});b[b.length-1].insertAfter(S),_.forEach(O=>S.append(O))}}})(d,a),f.add(h)}})}const c=new Set,l=f=>{c.has(f.getKey())||(c.add(f.getKey()),f.setURL(n),r!==void 0&&f.setTarget(r),i!==void 0&&f.setRel(i),o!==void 0&&f.setTitle(o))};if(a.length===1){const f=a[0],u=ct(f,ut);if(u!==null)return l(u)}(function(f){const u=Z();if(!B(u))return f();const d=ji(u),h=d.isBackward(),m=Hg(d.anchor,h?-1:0),p=Hg(d.focus,h?0:-1);if(f(),m||p){const g=Z();if(B(g)){const y=g.clone();if(m){const b=m.getParent();b&&y.anchor.set(b.getKey(),m.getIndexWithinParent()+(h?1:0),"element")}if(p){const b=p.getParent();b&&y.focus.set(b.getKey(),p.getIndexWithinParent()+(h?0:1),"element")}Pt(ji(y))}}})(()=>{let f=null;for(const u of a){if(!u.isAttached())continue;const d=ct(u,ut);if(d){l(d);continue}if(R(u)){if(!u.isInline())continue;if(ut(u)){if(!(lo(u)||f!==null&&f.getParentOrThrow().isParentOf(u))){l(u),f=u;continue}for(const m of u.getChildren())u.insertBefore(m);u.remove();continue}}const h=u.getPreviousSibling();ut(h)&&h.is(f)?h.append(u):(f=So(n,{rel:i,target:r,title:o}),u.insertAfter(f),f.append(u))}})}const WN=/^\+?[0-9\s()-]{5,}$/;function qg(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:WN.test(e)?`tel:${e}`:`https://${e}`}function KN(e,t){return mn(Ks(()=>e.registerCommand(Wi,n=>{const r=t.validateUrl.peek(),o=t.attributes.peek();if(n===null)return mf(null),!0;if(typeof n=="string")return!(r!==void 0&&!r(n))&&(mf(n,o),!0);{const{url:i,target:s,rel:a,title:c}=n;return mf(i,{...o,rel:a,target:s,title:c}),!0}},Xn)),Ks(()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(ol,o=>{const i=Z();if(!B(i)||i.isCollapsed()||!Or(o,ClipboardEvent)||o.clipboardData===null)return!1;const s=o.clipboardData.getData("text");return!!n(s)&&!i.getNodes().some(a=>R(a))&&(e.dispatchCommand(Wi,{...r,url:s}),o.preventDefault(),!0)},Xn)}))}const rn={icon:"cnf:cursor-pointer cnf:shrink-0 cnf:p-2",formatMenuRow:"cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2",formatMenuToggleBase:"cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:hover:bg-gray-100",formatMenuToggleOn:"cnf:text-white cnf:bg-primary-600 cnf:hover:bg-primary-700",formatMenuToggleOff:"cnf:text-gray-400 cnf:hover:text-gray-400",formatMenuClear:"cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:text-gray-400 cnf:hover:text-gray-400 cnf:hover:bg-gray-100"},HN=[{format:"bold",title:"Bold",label:"Bold",icon:ok},{format:"italic",title:"Italic",label:"Italic",icon:ak},{format:"underline",title:"Underline",label:"Underline",icon:rk},{format:"strikethrough",title:"Strikethrough",label:"Strikethrough",icon:nk},{format:"code",title:"Monospace",label:"Monospace",icon:lk}],P1={[Re.INFO]:{selectedLiBg:"cnf:bg-primary-600 cnf:hover:bg-primary-700",accentButton:"cnf:text-primary-600 cnf:hover:text-primary-600",selectedAccentButton:"cnf:text-white cnf:hover:text-white",icon:rb},[Re.SUCCESS]:{selectedLiBg:"cnf:bg-success-600 cnf:hover:bg-success-700",accentButton:"cnf:text-success-600 cnf:hover:text-success-600",selectedAccentButton:"cnf:text-white cnf:hover:text-white",icon:gd},[Re.WARNING]:{selectedLiBg:"cnf:bg-warning-600 cnf:hover:bg-warning-700",accentButton:"cnf:text-warning-600 cnf:hover:text-warning-600",selectedAccentButton:"cnf:text-white cnf:hover:text-white",icon:Xy},[Re.DANGER]:{selectedLiBg:"cnf:bg-danger-600 cnf:hover:bg-danger-700",accentButton:"cnf:text-danger-600 cnf:hover:text-danger-600",selectedAccentButton:"cnf:text-white cnf:hover:text-white",icon:cb}},M1=[Re.INFO,Re.SUCCESS,Re.WARNING,Re.DANGER];function Vg(){return v.jsx("span",{"aria-hidden":!0,className:"cnf:inline-block cnf:w-px cnf:h-5 cnf:shrink-0 cnf:self-center cnf:bg-gray-200"})}function qN({commentType:e,onCommentTypeChange:t,isCommentTypeEditable:n=!0,actions:r,setIsLinkEditMode:o,onAddAttachments:i}){const[s]=ht(),[a,c]=k.useState({bold:!1,italic:!1,underline:!1,strikethrough:!1,code:!1}),[l,f]=k.useState(null),u=k.useRef(null),d=k.useRef(null),h=Ch[e];k.useLayoutEffect(()=>s.registerUpdateListener(({editorState:b})=>{b.read(()=>{const x=Z();if(!B(x))return;c({bold:x.hasFormat("bold"),italic:x.hasFormat("italic"),underline:x.hasFormat("underline"),strikethrough:x.hasFormat("strikethrough"),code:x.hasFormat("code")});let w=x.anchor.getNode(),A=null;for(;w;){if(xe(w)){const E=w.getListType();A=E==="bullet"||E==="number"?E:null;break}if(ke(w)){w=w.getParent();continue}w=w.getParent()}f(A)})}),[s]);const m=b=>{s.dispatchCommand(kn,b)},p=()=>{l!=="bullet"?s.dispatchCommand(S1,void 0):s.dispatchCommand(Ju,void 0)},g=()=>{l!=="number"?s.dispatchCommand(k1,void 0):s.dispatchCommand(Ju,void 0)},y=()=>{s.update(()=>{const b=Z();if(!B(b))return;["bold","italic","underline","strikethrough","code"].forEach(w=>{b.hasFormat(w)&&s.dispatchCommand(kn,w)})})};return v.jsxs("div",{className:be("cnf:flex cnf:items-center cnf:w-full",r?"cnf:justify-between":"cnf:justify-end"),children:[v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:gap-1",children:[v.jsx(xu,{placement:"top-start",minWidth:"fit-content",title:"text formatting menu",trigger:v.jsx("button",{type:"button",title:"Text formatting",className:rn.formatMenuRow,children:v.jsx(Ee,{icon:fk})}),children:v.jsxs("ul",{className:"cnf:flex cnf:items-start cnf:flex-col",children:[HN.map(({format:b,title:x,label:w,icon:A})=>v.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:v.jsxs("button",{type:"button",title:x,onClick:()=>m(b),className:be(rn.formatMenuToggleBase,a[b]?rn.formatMenuToggleOn:rn.formatMenuToggleOff),children:[v.jsx(Ee,{icon:A,className:"cnf:mr-2"}),w]})},b)),v.jsx("hr",{className:"cnf:w-full cnf:border-gray-200"}),v.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:v.jsxs("button",{type:"button",title:"Clear formatting",onClick:y,className:rn.formatMenuClear,children:[v.jsx(Ee,{icon:sk,className:"cnf:mr-2"}),"Clear formatting"]})})]})}),v.jsx("button",{type:"button",title:"Format bullet list",className:rn.icon,onClick:p,children:v.jsx(Ee,{icon:hk})}),v.jsx("button",{type:"button",title:"Format numbered list",className:rn.icon,onClick:g,children:v.jsx(Ee,{icon:ck})}),v.jsx("button",{type:"button",title:"Format link",className:rn.icon,onClick:()=>{o(!0),s.dispatchCommand(Wi,"https://")},children:v.jsx(Ee,{icon:dk})}),i&&v.jsxs(v.Fragment,{children:[v.jsx(Vg,{}),v.jsx("button",{type:"button",title:"Add image",className:rn.icon,onClick:()=>{var b;(b=u.current)==null||b.click()},children:v.jsx(Ee,{icon:ik})}),v.jsx("button",{type:"button",title:"Add file",className:rn.icon,onClick:()=>{var b;(b=d.current)==null||b.click()},children:v.jsx(Ee,{icon:uk})})]}),n&&v.jsxs(v.Fragment,{children:[v.jsx(Vg,{}),v.jsx(xu,{placement:"top-end",title:"comment type menu",trigger:v.jsx("button",{type:"button",className:be(h.iconColor,rn.icon),children:v.jsx(Ee,{icon:h.icon})}),children:v.jsx("ul",{className:"cnf:flex cnf:items-center cnf:justify-between cnf:p-2",children:M1.map(b=>{const x=P1[b],w=e===b;return v.jsx("li",{className:be("cnf:p-2 cnf:rounded-sm",w?x.selectedLiBg:"cnf:bg-transparent"),children:v.jsx(et,{category:"link",size:"none",title:`Change comment type to ${b}`,className:be(x.accentButton,w?x.selectedAccentButton:"cnf:text-gray-400"),onClick:()=>t==null?void 0:t(b),children:v.jsx(Ee,{icon:x.icon})})},b)})})})]})]}),r,v.jsx("input",{type:"file",hidden:!0,id:"image-input",multiple:!0,ref:u,accept:"image/*",onChange:b=>{const x=b.target.files;x&&(i==null||i(x))}}),v.jsx("input",{type:"file",hidden:!0,id:"file-input",multiple:!0,ref:d,accept:"*",onChange:b=>{const x=b.target.files;x&&(i==null||i(x))}})]})}const VN={[Re.INFO]:"cnf:text-primary-600 cnf:hover:bg-primary-200 cnf:hover:text-primary-600",[Re.SUCCESS]:"cnf:text-success-600 cnf:hover:bg-success-200 cnf:hover:text-success-600",[Re.WARNING]:"cnf:text-warning-600 cnf:hover:bg-warning-200 cnf:hover:text-warning-600",[Re.DANGER]:"cnf:text-danger-600 cnf:hover:bg-danger-200 cnf:hover:text-danger-600"},YN=({commentType:e,onEdit:t,onSaveCommentType:n,onDelete:r,taskVerified:o,disabled:i})=>v.jsxs(xu,{trigger:v.jsx(et,{category:"link",size:"none",className:be(VN[e],"cnf:p-1 cnf:rounded-sm"),disabled:i,children:v.jsx(Ee,{icon:KE})}),children:[v.jsxs("ul",{className:"cnf:py-2 cnf:m-0",children:[v.jsx("li",{children:v.jsxs("button",{type:"button",className:"cnf:w-full cnf:text-left cnf:py-1 cnf:px-2 cnf:hover:bg-gray-100 cnf:cursor-pointer",onClick:t,title:"Edit comment",children:[v.jsx(Ee,{icon:Zy,className:"cnf:mr-2 cnf:text-gray-400"}),"Edit"]})}),!o&&v.jsx("li",{children:v.jsxs("button",{type:"button",className:"cnf:w-full cnf:text-left cnf:py-1 cnf:px-2 cnf:hover:bg-gray-100 cnf:cursor-pointer",onClick:r,title:"Delete comment",children:[v.jsx(Ee,{icon:ek,className:"cnf:mr-2 cnf:text-gray-400"}),"Delete"]})})]}),v.jsx("ul",{className:"cnf:border-t cnf:border-gray-200 cnf:flex cnf:items-center cnf:justify-between cnf:p-2",children:M1.map(s=>{const a=P1[s],c=e===s;return v.jsx("li",{className:be("cnf:p-2 cnf:rounded-sm",c?a.selectedLiBg:"cnf:bg-transparent"),children:v.jsx(et,{category:"link",size:"none",title:`Change comment type to ${s}`,className:be(a.accentButton,c?a.selectedAccentButton:"cnf:text-gray-400"),onClick:()=>n(s),children:v.jsx(Ee,{icon:a.icon})})},s)})})]}),I1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,GN=I1?k.useLayoutEffect:k.useEffect,Fa={tag:Ao};function QN({initialConfig:e,children:t}){const n=k.useMemo(()=>{const{theme:r,namespace:o,nodes:i,onError:s,editorState:a,html:c}=e,l=ST(null,r),f=zx({editable:e.editable,html:c,namespace:o,nodes:i,onError:u=>s(u,f),theme:r});return(function(u,d){if(d!==null){if(d===void 0)u.update(()=>{const h=We();if(h.isEmpty()){const m=Tt();h.append(m);const p=I1?document.activeElement:null;(Z()!==null||p!==null&&p===u.getRootElement())&&m.select()}},Fa);else if(d!==null)switch(typeof d){case"string":{const h=u.parseEditorState(d);u.setEditorState(h,Fa);break}case"object":u.setEditorState(d,Fa);break;case"function":u.update(()=>{We().isEmpty()&&d(u)},Fa)}}})(f,a),[f,l]},[]);return GN(()=>{const r=e.editable,[o]=n;o.setEditable(r===void 0||r)},[]),v.jsx(Rv.Provider,{value:n,children:t})}const ZN=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?k.useLayoutEffect:k.useEffect;function JN(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function XN(){return(function(e){const[t]=ht(),n=k.useMemo(()=>e(t),[t,e]),[r,o]=k.useState(()=>n.initialValueFn()),i=k.useRef(r);return ZN(()=>{const{initialValueFn:s,subscribe:a}=n,c=s();return i.current!==c&&(i.current=c,o(c)),a(l=>{i.current=l,o(l)})},[n,e]),r})(JN)}const e5={name:"@lexical/react/ReactProvider"};function t5(){return We().getTextContent()}function n5(e,t=!0){if(e)return!1;let n=t5();return t&&(n=n.trim()),n===""}function r5(e){if(!n5(e,!1))return!1;const t=We().getChildren(),n=t.length;if(n>1)return!1;for(let r=0;r<n;r++){const o=t[r];if(Te(o))return!1;if(R(o)){if(!th(o)||o.__indent!==0)return!1;const i=o.getChildren(),s=i.length;for(let a=0;a<s;a++){const c=i[r];if(!X(c))return!1}}}return!0}function L1(e){return()=>r5(e)}function o5(e){const t=window.location.origin,n=r=>{if(r.origin!==t)return;const o=e.getRootElement();if(document.activeElement!==o)return;const i=r.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){const a=s.payload;if(a&&a.functionId==="makeChanges"){const c=a.args;if(c){const[l,f,u,d,h]=c;e.update(()=>{const m=Z();if(B(m)){const p=m.anchor;let g=p.getNode(),y=0,b=0;if(X(g)&&l>=0&&f>=0&&(y=l,b=l+f,m.setTextNodeRange(g,y,g,b)),y===b&&u===""||(m.insertRawText(u),g=p.getNode()),X(g)){y=d,b=d+h;const x=g.getTextContentSize();y=y>x?x:y,b=b>x?x:b,m.setTextNodeRange(g,y,g,b)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function R1(e,t){const n=Wx(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const i of n)if(!j1.has(i.nodeName)){const s=z1(i,e,o,!1);s!==null&&(r=r.concat(s))}return(function(i){for(const s of i)s.getNextSibling()instanceof eh&&s.insertAfter(Fo());for(const s of i){const a=s.getChildren();for(const c of a)s.insertBefore(c);s.remove()}})(o),r}function D1(e,t){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),r=We().getChildren();for(let o=0;o<r.length;o++)F1(e,r[o],n,t);return n.innerHTML}function F1(e,t,n,r=null){let o=r===null||t.isSelected(r);const i=R(t)&&t.excludeFromCopy("html");let s=t;r!==null&&X(t)&&(s=l1(r,t,"clone"));const a=R(s)?s.getChildren():[],c=rh(e,s.getType());let l;l=c&&c.exportDOM!==void 0?c.exportDOM(e,s):s.exportDOM(e);const{element:f,after:u}=l;if(!f)return!1;const d=document.createDocumentFragment();for(let h=0;h<a.length;h++){const m=a[h],p=F1(e,m,d,r);!o&&R(t)&&p&&t.extractWithChild(m,r,"html")&&(o=!0)}if(o&&!i){if((mt(f)||Hu(f))&&f.append(d),n.append(f),u){const h=u.call(s,f);h&&(Hu(f)?f.replaceChildren(h):f.replaceWith(h))}}else n.append(d);return o}const j1=new Set(["STYLE","SCRIPT"]);function z1(e,t,n,r,o=new Map,i){let s=[];if(j1.has(e.nodeName))return s;let a=null;const c=(function(m,p){const{nodeName:g}=m,y=p._htmlConversions.get(g.toLowerCase());let b=null;if(y!==void 0)for(const x of y){const w=x(m);w!==null&&(b===null||(b.priority||0)<=(w.priority||0))&&(b=w)}return b!==null?b.conversion:null})(e,t),l=c?c(e):null;let f=null;if(l!==null){f=l.after;const m=l.node;if(a=Array.isArray(m)?m[m.length-1]:m,a!==null){for(const[,p]of o)if(a=p(a,i),!a)break;a&&s.push(...Array.isArray(m)?m:[a])}l.forChild!=null&&o.set(e.nodeName,l.forChild)}const u=e.childNodes;let d=[];const h=(a==null||!jt(a))&&(a!=null&&$u(a)||r);for(let m=0;m<u.length;m++)d.push(...z1(u[m],t,n,h,new Map(o),a));return f!=null&&(d=f(d)),Sc(e)&&(d=i5(e,d,h?()=>{const m=new eh;return n.push(m),m}:Tt)),a==null?d.length>0?s=s.concat(d):Sc(e)&&(function(m){return m.nextSibling==null||m.previousSibling==null?!1:qu(m.nextSibling)&&qu(m.previousSibling)})(e)&&(s=s.concat(Fo())):R(a)&&a.append(...d),s}function i5(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let s=0;s<t.length;s++){const a=t[s];if($u(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),s===t.length-1||s<t.length-1&&$u(t[s+1])){const c=n();c.setFormat(r),c.append(...i),o.push(c),i=[]}}return o}function Tc(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function s5(e,t=Z()){return t==null&&Tc(166),B(t)&&t.isCollapsed()||t.getNodes().length===0?"":D1(e,t)}function a5(e,t=Z()){return t==null&&Tc(166),B(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(c5(e,t))}function Yg(e,t,n){const r=e.getData("application/x-lexical-editor");if(r)try{const a=JSON.parse(r);if(a.namespace===n._config.namespace&&Array.isArray(a.nodes))return Gg(n,l5(a.nodes),t)}catch(a){console.error(a)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{const a=new DOMParser().parseFromString((function(c){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:l=>l}).createHTML(c):c})(o),"text/html");return Gg(n,R1(n,a),t)}catch(a){console.error(a)}const s=i||e.getData("text/uri-list");if(s!=null)if(B(t)){const a=s.split(/(\r?\n|\t)/);a[a.length-1]===""&&a.pop();for(let c=0;c<a.length;c++){const l=Z();if(B(l)){const f=a[c];f===`
605
605
  `||f===`\r
606
- `?l.insertParagraph():f===" "?l.insertNodes([oa()]):l.insertText(f)}}}else t.insertRawText(s)}function Dg(e,t,n){e.dispatchCommand(BT,{nodes:t,selection:n})||(n.insertNodes(t),(function(r){if($(r)&&r.isCollapsed()){const o=r.anchor;let i=null;const s=or(o,"previous");if(s)if(Mr(s))i=s.origin;else{const a=zr(s,dn(We(),"next").getFlipped());for(const c of a){if(X(c.origin)){i=c.origin;break}if(R(c.origin)&&!c.origin.isInline())break}}if(i&&X(i)){const a=i.getFormat(),c=i.getStyle();r.format===a&&r.style===c||(r.format=a,r.style=c,r.dirty=!0)}}})(n))}function C1(e,t,n,r=[]){let o=t===null||n.isSelected(t);const i=R(n)&&n.excludeFromCopy("html");let s=n;t!==null&&X(s)&&(s=r1(t,s,"clone"));const a=R(s)?s.getChildren():[],c=(function(l){const f=l.exportJSON(),u=l.constructor;if(f.type!==u.getType()&&Ec(58,u.name),R(l)){const d=f.children;Array.isArray(d)||Ec(59,u.name)}return f})(s);X(s)&&s.getTextContentSize()===0&&(o=!1);for(let l=0;l<a.length;l++){const f=a[l],u=C1(e,t,f,c.children);!o&&R(n)&&u&&n.extractWithChild(f,t,"clone")&&(o=!0)}if(o&&!i)r.push(c);else if(Array.isArray(c.children))for(let l=0;l<c.children.length;l++){const f=c.children[l];r.push(f)}return o}function MN(e,t){const n=[],r=We().getChildren();for(let o=0;o<r.length;o++)C1(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}function IN(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=A6(r);X(o)&&sN(o),t.push(o)}return t}let ii=null;async function Fg(e,t,n){if(ii!==null)return!1;if(t!==null)return new Promise((l,f)=>{e.update(()=>{l(jg(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,s=tn(o);if(r===null||s===null)return!1;const a=i.createElement("span");a.style.cssText="position: fixed; top: -1000px;",a.append(i.createTextNode("#")),r.append(a);const c=new Range;return c.setStart(a,0),c.setEnd(a,1),s.removeAllRanges(),s.addRange(c),new Promise((l,f)=>{const u=e.registerCommand(rl,d=>(Nr(d,ClipboardEvent)&&(u(),ii!==null&&(o.clearTimeout(ii),ii=null),l(jg(e,d,n))),!0),Ox);ii=o.setTimeout(()=>{u(),ii=null,l(!1)},50),i.execCommand("copy"),a.remove()})}function jg(e,t,n){if(n===void 0){const o=tn(e._window),i=Z();if(!i||i.isCollapsed()||!o)return!1;const s=o.anchorNode,a=o.focusNode;if(s!==null&&a!==null&&!aa(e,s,a))return!1;n=LN(i)}t.preventDefault();const r=t.clipboardData;return r!==null&&(RN(r,n),!0)}const _1=[["text/html",ON],["application/x-lexical-editor",PN]];function LN(e=Z()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=lh();for(const[r,o]of _1){const i=o(n,e);i!==null&&(t[r]=i)}}return t}function RN(e,t){for(const[n]of _1)t[n]===void 0&&e.setData(n,"");for(const n in t){const r=t[n];r!==void 0&&e.setData(n,r)}}function zg(e,t){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(e,t);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(e,t);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const qo=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,DN=qo&&"documentMode"in document?document.documentMode:null,FN=qo&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),jN=!(!qo||!("InputEvent"in window)||DN)&&"getTargetRanges"in new window.InputEvent("input"),zN=qo&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),$g=qo&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,$N=qo&&/^(?=.*Chrome).*/i.test(navigator.userAgent),BN=qo&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&FN&&!$N,Bg=he("DRAG_DROP_PASTE_FILE");function Ra(e){let t=null;if(Nr(e,DragEvent)?t=e.dataTransfer:Nr(e,ClipboardEvent)&&(t=e.clipboardData),t===null)return[!1,[],!1];const n=t.types,r=n.includes("Files"),o=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),o]}function Ug(e){const t=Z();if(!$(t))return!1;const n=new Set,r=t.getNodes();for(let o=0;o<r.length;o++){const i=r[o],s=i.getKey();if(n.has(s))continue;const a=at(i,l=>R(l)&&!l.isInline());if(a===null)continue;const c=a.getKey();a.canIndent()&&!n.has(c)&&(n.add(c),e(a))}return n.size>0}function Wg(e){const t=zi(e);return Te(t)}function hf(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function UN(e){return hn(e.registerCommand(Wd,t=>{const n=Z();return!!ot(n)&&(n.clear(),!0)},Ae),e.registerCommand(xo,t=>{const n=Z();return $(n)?(n.deleteCharacter(t),!0):!!ot(n)&&(n.deleteNodes(),!0)},Ae),e.registerCommand(js,t=>{const n=Z();return!!$(n)&&(n.deleteWord(t),!0)},Ae),e.registerCommand(zs,t=>{const n=Z();return!!$(n)&&(n.deleteLine(t),!0)},Ae),e.registerCommand(bi,t=>{const n=Z();if(typeof t=="string")n!==null&&n.insertText(t);else{if(n===null)return!1;const r=t.dataTransfer;if(r!=null)Rg(r,n,e);else if($(n)){const o=t.data;return o&&n.insertText(o),!0}}return!0},Ae),e.registerCommand(Tu,()=>{const t=Z();return!!$(t)&&(t.removeText(),!0)},Ae),e.registerCommand(Sn,t=>{const n=Z();return!!$(n)&&(n.formatText(t),!0)},Ae),e.registerCommand(qT,t=>{const n=Z();if(!$(n)&&!ot(n))return!1;const r=n.getNodes();for(const o of r){const i=at(o,s=>R(s)&&!s.isInline());i!==null&&i.setFormat(t)}return!0},Ae),e.registerCommand(yi,t=>{const n=Z();return!!$(n)&&(n.insertLineBreak(t),!0)},Ae),e.registerCommand(Fs,()=>{const t=Z();return!!$(t)&&(t.insertParagraph(),!0)},Ae),e.registerCommand(KT,()=>(Cx([oa()]),!0),Ae),e.registerCommand(HT,()=>Ug(t=>{const n=t.getIndent();t.setIndent(n+1)}),Ae),e.registerCommand(Up,()=>Ug(t=>{const n=t.getIndent();n>0&&t.setIndent(Math.max(0,n-1))}),Ae),e.registerCommand(Gv,t=>{const n=Z();if(ot(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),r[0].selectPrevious(),!0}else if($(n)){const r=Bu(n.focus,!0);if(!t.shiftKey&&Te(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),t.preventDefault(),!0}return!1},Ae),e.registerCommand(Zv,t=>{const n=Z();if(ot(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),r[0].selectNext(0,0),!0}else if($(n)){if((function(o){const i=o.focus;return i.key==="root"&&i.offset===We().getChildrenSize()})(n))return t.preventDefault(),!0;const r=Bu(n.focus,!1);if(!t.shiftKey&&Te(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),t.preventDefault(),!0}return!1},Ae),e.registerCommand(Qv,t=>{const n=Z();if(ot(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),Eg(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!$(n))return!1;if(kg(n,!0)){const r=t.shiftKey;return t.preventDefault(),Tg(n,r,!0),!0}return!1},Ae),e.registerCommand(Yv,t=>{const n=Z();if(ot(n)){const o=n.getNodes();if(o.length>0)return t.preventDefault(),Eg(o[0])?o[0].selectPrevious():o[0].selectNext(0,0),!0}if(!$(n))return!1;const r=t.shiftKey;return!!kg(n,!1)&&(t.preventDefault(),Tg(n,r,!1),!0)},Ae),e.registerCommand(Xv,t=>{if(Wg(t.target))return!1;const n=Z();if($(n)){if((function(r){if(!r.isCollapsed())return!1;const{anchor:o}=r;if(o.offset!==0)return!1;const i=o.getNode();if(Ye(i))return!1;const s=uN(i);return s.getIndent()>0&&(s.is(i)||i.is(s.getFirstDescendant()))})(n))return t.preventDefault(),e.dispatchCommand(Up,void 0);if($g&&navigator.language==="ko-KR")return!1}else if(!ot(n))return!1;return t.preventDefault(),e.dispatchCommand(xo,!0)},Ae),e.registerCommand(ex,t=>{if(Wg(t.target))return!1;const n=Z();return!(!$(n)&&!ot(n))&&(t.preventDefault(),e.dispatchCommand(xo,!1))},Ae),e.registerCommand($s,t=>{const n=Z();if(!$(n))return!1;if(hf(n),t!==null){if(($g||zN||BN)&&jN)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(yi,!1)}return e.dispatchCommand(Fs,void 0)},Ae),e.registerCommand(qd,()=>{const t=Z();return!!$(t)&&(e.blur(),!0)},Ae),e.registerCommand(nx,t=>{const[,n]=Ra(t);if(n.length>0){const o=zg(t.clientX,t.clientY);if(o!==null){const{offset:i,node:s}=o,a=zi(s);if(a!==null){const c=xx();if(X(a))c.anchor.set(a.getKey(),i,"text"),c.focus.set(a.getKey(),i,"text");else{const f=a.getParentOrThrow().getKey(),u=a.getIndexWithinParent()+1;c.anchor.set(f,u,"element"),c.focus.set(f,u,"element")}const l=Fi(c);Pt(l)}e.dispatchCommand(Bg,n)}return t.preventDefault(),!0}const r=Z();return!!$(r)},Ae),e.registerCommand(rx,t=>{const[n]=Ra(t),r=Z();return!(n&&!$(r))},Ae),e.registerCommand(ox,t=>{const[n]=Ra(t),r=Z();if(n&&!$(r))return!1;const o=zg(t.clientX,t.clientY);if(o!==null){const i=zi(o.node);Te(i)&&t.preventDefault()}return!0},Ae),e.registerCommand(Nu,()=>(P6(),!0),Ae),e.registerCommand(rl,t=>(Fg(e,Nr(t,ClipboardEvent)?t:null),!0),Ae),e.registerCommand(Vd,t=>((async function(n,r){await Fg(r,Nr(n,ClipboardEvent)?n:null),r.update(()=>{const o=Z();$(o)?o.removeText():ot(o)&&o.getNodes().forEach(i=>i.remove())})})(t,e),!0),Ae),e.registerCommand(nl,t=>{const[,n,r]=Ra(t);return n.length>0&&!r?(e.dispatchCommand(Bg,n),!0):ts(t.target)&&nh(t.target)?!1:Z()!==null&&((function(o,i){o.preventDefault(),i.update(()=>{const s=Z(),a=Nr(o,InputEvent)||Nr(o,KeyboardEvent)?null:o.clipboardData;a!=null&&s!==null&&Rg(a,s,i)},{tag:s6})})(t,e),!0)},Ae),e.registerCommand(Jv,t=>{const n=Z();return $(n)&&hf(n),!1},Ae),e.registerCommand(tx,t=>{const n=Z();return $(n)&&hf(n),!1},Ae))}function WN(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const vh=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function KN({editor:e,ErrorBoundary:t}){return(function(n,r){const[o,i]=T.useState(()=>n.getDecorators());return vh(()=>n.registerDecoratorListener(s=>{Wt.flushSync(()=>{i(s)})}),[n]),T.useEffect(()=>{i(n.getDecorators())},[n]),T.useMemo(()=>{const s=[],a=Object.keys(o);for(let c=0;c<a.length;c++){const l=a[c],f=v.jsx(r,{onError:d=>n._onError(d),children:v.jsx(T.Suspense,{fallback:null,children:o[l]})}),u=n.getElementByKey(l);u!==null&&s.push(Wt.createPortal(f,u,l))}return s},[r,o,n])})(e,t)}function HN({editor:e,ErrorBoundary:t}){return(function(n){const r=wi.maybeFromEditor(n);if(r&&r.hasExtensionByName(_N.name)){for(const o of["@lexical/plain-text","@lexical/rich-text"])r.hasExtensionByName(o)&&WN(320,o);return!0}return!1})(e)?null:v.jsx(KN,{editor:e,ErrorBoundary:t})}function Kg(e){return e.getEditorState().read(y1(e.isComposing()))}function qN({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=ht();return(function(o){vh(()=>hn(UN(o),TN(o)),[o])})(r),v.jsxs(v.Fragment,{children:[e,v.jsx(VN,{content:t}),v.jsx(HN,{editor:r,ErrorBoundary:n})]})}function VN({content:e}){const[t]=ht(),n=(function(o){const[i,s]=T.useState(()=>Kg(o));return vh(()=>{function a(){const c=Kg(o);s(c)}return a(),hn(o.registerUpdateListener(()=>{a()}),o.registerEditableListener(()=>{a()}))},[o]),i})(t),r=oN();return n?typeof e=="function"?e(r):e:null}function YN(e,t,n,r,o){if(e===null||n.size===0&&r.size===0&&!o)return 0;const i=t._selection,s=e._selection;if(o)return 1;if(!($(i)&&$(s)&&s.isCollapsed()&&i.isCollapsed()))return 0;const a=(function(y,b,x){const w=y._nodeMap,A=[];for(const _ of b){const S=w.get(_);S!==void 0&&A.push(S)}for(const[_,S]of x){if(!S)continue;const E=w.get(_);E===void 0||Ye(E)||A.push(E)}return A})(t,n,r);if(a.length===0)return 0;if(a.length>1){const y=t._nodeMap,b=y.get(i.anchor.key),x=y.get(s.anchor.key);return b&&x&&!e._nodeMap.has(b.__key)&&X(b)&&b.__text.length===1&&i.anchor.offset===1?2:0}const c=a[0],l=e._nodeMap.get(c.__key);if(!X(l)||!X(c)||l.__mode!==c.__mode)return 0;const f=l.__text,u=c.__text;if(f===u)return 0;const d=i.anchor,h=s.anchor;if(d.key!==h.key||d.type!=="text")return 0;const m=d.offset,g=h.offset,p=u.length-f.length;return p===1&&g===m-1?2:p===-1&&g===m+1?3:p===-1&&g===m?4:0}function QN(e,t){let n=Date.now(),r=0;return(o,i,s,a,c,l)=>{const f=Date.now();if(l.has(Fu))return r=0,n=f,2;const u=YN(o,i,a,c,e.isComposing()),d=(()=>{const h=s===null||s.editor===e,m=l.has(i6);if(!m&&h&&l.has(wo))return 0;if(o===null)return 1;const g=i._selection;if(!(a.size>0||c.size>0))return g!==null?0:2;const p=typeof t=="number"?t:t.peek();return m===!1&&u!==0&&u===r&&f<n+p&&h||a.size===1&&(function(y,b,x){const w=b._nodeMap.get(y),A=x._nodeMap.get(y),_=b._selection,S=x._selection;return!($(_)&&$(S)&&_.anchor.type==="element"&&_.focus.type==="element"&&S.anchor.type==="text"&&S.focus.type==="text"||!X(w)||!X(A)||w.__parent!==A.__parent)&&JSON.stringify(b.read(()=>w.exportJSON()))===JSON.stringify(x.read(()=>A.exportJSON()))})(Array.from(a)[0],o,i)?0:1})();return n=f,r=u,d}}function Hg(e){e.undoStack=[],e.redoStack=[],e.current=null}function E1(e,t,n){const r=QN(e,n);return hn(e.registerCommand(Kd,()=>((function(i,s){const a=s.redoStack,c=s.undoStack;if(c.length!==0){const l=s.current,f=c.pop();l!==null&&(a.push(l),i.dispatchCommand(Sa,!0)),c.length===0&&i.dispatchCommand(ka,!1),s.current=f||null,f&&f.editor.setEditorState(f.editorState,{tag:Fu})}})(e,t),!0),Ae),e.registerCommand(Hd,()=>((function(i,s){const a=s.redoStack,c=s.undoStack;if(a.length!==0){const l=s.current;l!==null&&(c.push(l),i.dispatchCommand(ka,!0));const f=a.pop();a.length===0&&i.dispatchCommand(Sa,!1),s.current=f||null,f&&f.editor.setEditorState(f.editorState,{tag:Fu})}})(e,t),!0),Ae),e.registerCommand(YT,()=>(Hg(t),!1),Ae),e.registerCommand(QT,()=>(Hg(t),e.dispatchCommand(Sa,!1),e.dispatchCommand(ka,!1),!0),Ae),e.registerUpdateListener(({editorState:i,prevEditorState:s,dirtyLeaves:a,dirtyElements:c,tags:l})=>{const f=t.current,u=t.redoStack,d=t.undoStack,h=f===null?null:f.editorState;if(f!==null&&i===h)return;const m=r(s,i,f,a,c,l);if(m===1)u.length!==0&&(t.redoStack=[],e.dispatchCommand(Sa,!1)),f!==null&&(d.push({...f}),e.dispatchCommand(ka,!0));else if(m===2)return;t.current={editor:e,editorState:i}}))}function S1(){return{current:null,redoStack:[],undoStack:[]}}const mf={build:(e,{delay:t,createInitialHistoryState:n,disabled:r})=>h1({delay:t,disabled:r,historyState:n(e)}),config:{createInitialHistoryState:S1,delay:300,disabled:typeof window>"u"},name:"@lexical/history/History",register:(e,t,n)=>{const r=n.getOutput();return Ws(()=>r.disabled.value?void 0:E1(e,r.historyState.value,r.delay))}};J6(mf,{createInitialHistoryState:()=>{throw new Error("SharedHistory did not inherit parent history")},disabled:!0});function GN({delay:e,externalHistoryState:t}){const[n]=ht();return(function(r,o,i=1e3){const s=T.useMemo(()=>o||S1(),[o]);T.useEffect(()=>E1(r,s,i),[i,r,s])})(n,t,e),null}const k1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function ZN({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:s,ariaInvalid:a,ariaLabel:c,ariaLabelledBy:l,ariaMultiline:f,ariaOwns:u,ariaRequired:d,autoCapitalize:h,className:m,id:g,role:p="textbox",spellCheck:y=!0,style:b,tabIndex:x,"data-testid":w,...A},_){const[S,E]=T.useState(e.isEditable()),N=T.useCallback(I=>{I&&I.ownerDocument&&I.ownerDocument.defaultView?e.setRootElement(I):e.setRootElement(null)},[e]),P=T.useMemo(()=>(function(...I){return W=>{for(const j of I)typeof j=="function"?j(W):j!=null&&(j.current=W)}})(_,N),[N,_]);return k1(()=>(E(e.isEditable()),e.registerEditableListener(I=>{E(I)})),[e]),v.jsx("div",{"aria-activedescendant":S?t:void 0,"aria-autocomplete":S?n:"none","aria-controls":S?r:void 0,"aria-describedby":o,...i!=null?{"aria-errormessage":i}:{},"aria-expanded":S&&p==="combobox"?!!s:void 0,...a!=null?{"aria-invalid":a}:{},"aria-label":c,"aria-labelledby":l,"aria-multiline":f,"aria-owns":S?u:void 0,"aria-readonly":!S||void 0,"aria-required":d,autoCapitalize:h,className:m,contentEditable:S,"data-testid":w,id:g,ref:P,role:p,spellCheck:y,style:b,tabIndex:x,...A})}const JN=T.forwardRef(ZN);function qg(e){return e.getEditorState().read(y1(e.isComposing()))}const XN=T.forwardRef(e5);function e5(e,t){const{placeholder:n,...r}=e,[o]=ht();return v.jsxs(v.Fragment,{children:[v.jsx(JN,{editor:o,...r,ref:t}),n!=null&&v.jsx(t5,{editor:o,content:n})]})}function t5({content:e,editor:t}){const n=(function(s){const[a,c]=T.useState(()=>qg(s));return k1(()=>{function l(){const f=qg(s);c(f)}return l(),hn(s.registerUpdateListener(()=>{l()}),s.registerEditableListener(()=>{l()}))},[s]),a})(t),[r,o]=T.useState(t.isEditable());if(T.useLayoutEffect(()=>(o(t.isEditable()),t.registerEditableListener(s=>{o(s)})),[t]),!n)return null;let i=null;return typeof e=="function"?i=e(r):e!==null&&(i=e),i===null?null:v.jsx("div",{"aria-hidden":!0,children:i})}const n5=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function r5({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:n}){const[r]=ht();return n5(()=>{if(n)return r.registerUpdateListener(({editorState:o,dirtyElements:i,dirtyLeaves:s,prevEditorState:a,tags:c})=>{t&&i.size===0&&s.size===0||e&&c.has(wo)||a.isEmpty()||n(o,r,c)})},[r,e,t,n]),null}const o5=T.createContext(null),pf={didCatch:!1,error:null};class i5 extends T.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=pf}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(...t){var r,o;const{error:n}=this.state;n!==null&&((o=(r=this.props).onReset)==null||o.call(r,{args:t,reason:"imperative-api"}),this.setState(pf))}componentDidCatch(t,n){var r,o;(o=(r=this.props).onError)==null||o.call(r,t,n)}componentDidUpdate(t,n){var i,s;const{didCatch:r}=this.state,{resetKeys:o}=this.props;r&&n.error!==null&&s5(t.resetKeys,o)&&((s=(i=this.props).onReset)==null||s.call(i,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(pf))}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let a=t;if(i){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")a=n(c);else if(r)a=T.createElement(r,c);else if(o!==void 0)a=o;else throw s}return T.createElement(o5.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function s5(e=[],t=[]){return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function a5({children:e,onError:t}){return v.jsx(i5,{fallback:v.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const c5={paragraph:"cnf:m-0",list:{ol:"cnf:list-decimal cnf:pl-4",ul:"cnf:list-disc cnf:pl-4"},text:{bold:"cnf:font-semibold",italic:"cnf:italic",underline:"cnf:underline",strikethrough:"cnf:line-through",code:"cnf:font-mono"},link:"cnf:text-blue-600 cnf:hover:text-blue-600 cnf:underline cnf:cursor-pointer"};function Or(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Qu(e){let t=1,n=e.getParent();for(;n!=null;){if(ke(n)){const r=n.getParent();if(ve(r)){t++,n=r.getParent();continue}Or(40)}return t}return t}function Gu(e){let t=e.getParent();ve(t)||Or(40);let n=t;for(;n!==null;)n=n.getParent(),ve(n)&&(t=n);return t}function T1(e){let t=[];const n=e.getChildren().filter(ke);for(let r=0;r<n.length;r++){const o=n[r],i=o.getFirstChild();ve(i)?t=t.concat(T1(i)):t.push(o)}return t}function Cn(e){return ke(e)&&ve(e.getFirstChild())}function Vg(e){return Jt().append(e)}function N1(e,t){return ke(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function Yg(e){const t=Z();if(t!==null){let n=t.getNodes();if($(t)){const o=t.getStartEndPoints();o===null&&Or(143);const[i]=o,s=i.getNode(),a=s.getParent();if(jt(s)){const c=s.getFirstChild();if(c)n=c.selectStart().getNodes();else{const l=Tt();s.append(l),n=l.select().getNodes()}}else if(N1(s,n)){const c=Ut(e);if(jt(a)){s.replace(c);const l=Jt();R(s)&&(l.setFormat(s.getFormatType()),l.setIndent(s.getIndent())),c.append(l)}else if(ke(s)){const l=s.getParentOrThrow();Wo(c,l.getChildren()),l.replace(c)}return}}const r=new Set;for(let o=0;o<n.length;o++){const i=n[o];if(R(i)&&i.isEmpty()&&!ke(i)&&!r.has(i.getKey())){Qg(i,e);continue}let s=Fx(i)?i.getParent():ke(i)&&i.isEmpty()?i:null;for(;s!=null;){const a=s.getKey();if(ve(s)){if(!r.has(a)){const c=Ut(e);Wo(c,s.getChildren()),s.replace(c),r.add(a)}break}{const c=s.getParent();if(jt(c)&&!r.has(a)){r.add(a),Qg(s,e);break}s=c}}}}}function Wo(e,t){e.splice(e.getChildrenSize(),0,t)}function Qg(e,t){if(ve(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=Jt();let i;if(Wo(o,e.getChildren()),ve(n)&&t===n.getListType())n.append(o),ve(r)&&t===r.getListType()&&(Wo(n,r.getChildren()),r.remove()),i=n;else if(ve(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const s=Ut(t);s.append(o),e.replace(s),i=s}return o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),e.remove(),i}function xh(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&Cn(n)&&Cn(r)&&(xh(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function l5(){const e=Z();if($(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(N1(r,n))t.add(Gu(r));else for(let o=0;o<n.length;o++){const i=n[o];if(Fx(i)){const s=fN(i,rs);s!=null&&t.add(Gu(s))}}for(const o of t){let i=o;const s=T1(o);for(const a of s){const c=Tt().setTextStyle(e.style).setTextFormat(e.format);Wo(c,a.getChildren()),i.insertAfter(c),i=c,a.__key===e.anchor.key&&Uo(e.anchor,Qt(dn(c,"next"))),a.__key===e.focus.key&&Uo(e.focus,Qt(dn(c,"next"))),a.remove()}o.remove()}}}function O1(e){const t=e.getListType()!=="check";let n=e.getStart();for(const r of e.getChildren())ke(r)&&(r.getValue()!==n&&r.setValue(n),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),ve(r.getFirstChild())||n++)}function f5(e){const t=new Set;if(Cn(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(Cn(r)&&Cn(o)){const i=o.getFirstChild();if(ve(i)){i.append(e);const s=r.getFirstChild();ve(s)&&(Wo(i,s.getChildren()),r.remove(),t.add(r.getKey()))}}else if(Cn(r)){const i=r.getFirstChild();if(ve(i)){const s=i.getFirstChild();s!==null&&s.insertBefore(e)}}else if(Cn(o)){const i=o.getFirstChild();ve(i)&&i.append(e)}else if(ve(n)){const i=Jt().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),s=Ut(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());i.append(s),s.append(e),o?o.insertAfter(i):r?r.insertBefore(i):n.append(i)}}function u5(e){if(Cn(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(ve(n?n.getParent():void 0)&&ke(n)&&ve(t)){const r=t?t.getFirstChild():void 0,o=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(o))n.insertAfter(e),t.isEmpty()&&n.remove();else{const i=t.getListType(),s=Jt(),a=Ut(i);s.append(a),e.getPreviousSiblings().forEach(f=>a.append(f));const c=Jt(),l=Ut(i);c.append(l),Wo(l,e.getNextSiblings()),n.insertBefore(s),n.insertAfter(c),n.replace(e)}}}function d5(){const e=Z();if(!$(e)||!e.isCollapsed())return!1;const t=e.anchor.getNode();if(!ke(t)||t.getChildrenSize()!==0)return!1;const n=Gu(t),r=t.getParent();ve(r)||Or(40);const o=r.getParent();let i;if(jt(o))i=Tt(),n.insertAfter(i);else{if(!ke(o))return!1;i=Jt(),o.insertAfter(i)}i.setTextStyle(e.style).setTextFormat(e.format).select();const s=t.getNextSiblings();if(s.length>0){const a=Ut(r.getListType());if(ke(i)){const c=Jt();c.append(a),i.insertAfter(c)}else i.insertAfter(a);a.append(...s)}return(function(a){let c=a;for(;c.getNextSibling()==null&&c.getPreviousSibling()==null;){const l=c.getParent();if(l==null||!ke(l)&&!ve(l))break;c=l}c.remove()})(t),!0}function Sc(...e){const t=[];for(const n of e)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))t.push(r);return t}class rs extends In{constructor(n=1,r=void 0,o){super(o);D(this,"__value");D(this,"__checked");this.__value=n===void 0?1:n,this.__checked=r}$config(){return this.config("listitem",{$transform:n=>{if(n.__checked==null)return;const r=n.getParent();ve(r)&&r.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:In,importDOM:{li:()=>({conversion:h5,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__value=n.__value,this.__checked=n.__checked}createDOM(n){const r=document.createElement("li");return this.updateListItemDOM(null,r,n),r}updateListItemDOM(n,r,o){(function(a,c,l){const f=c.getParent();!ve(f)||f.getListType()!=="check"||ve(c.getFirstChild())?(a.removeAttribute("role"),a.removeAttribute("tabIndex"),a.removeAttribute("aria-checked")):(a.setAttribute("role","checkbox"),a.setAttribute("tabIndex","-1"),l&&c.__checked===l.__checked||a.setAttribute("aria-checked",c.getChecked()?"true":"false"))})(r,this,n),r.value=this.__value,(function(a,c,l){const f=[],u=[],d=c.list,h=d?d.listitem:void 0;let m;if(d&&d.nested&&(m=d.nested.listitem),h!==void 0&&f.push(...Sc(h)),d){const g=l.getParent(),p=ve(g)&&g.getListType()==="check",y=l.getChecked();p&&!y||u.push(d.listitemUnchecked),p&&y||u.push(d.listitemChecked),p&&f.push(y?d.listitemChecked:d.listitemUnchecked)}if(m!==void 0){const g=Sc(m);l.getChildren().some(p=>ve(p))?f.push(...g):u.push(...g)}u.length>0&&l1(a,...u),f.length>0&&gh(a,...f)})(r,o.theme,this);const i=n?n.__style:"",s=this.__style;i!==s&&(s===""?r.removeAttribute("style"):r.style.cssText=s),(function(a,c,l){const f=_g(c.__textStyle);for(const u in f)a.style.setProperty(`--listitem-marker-${u}`,f[u]);if(l)for(const u in _g(l.__textStyle))u in f||a.style.removeProperty(`--listitem-marker-${u}`)})(r,this,n)}updateDOM(n,r,o){const i=r;return this.updateListItemDOM(n,i,o),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const r=this.createDOM(n._config),o=this.getFormatType();o&&(r.style.textAlign=o);const i=this.getDirection();return i&&(r.dir=i),{element:r}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...n){for(let r=0;r<n.length;r++){const o=n[r];if(R(o)&&this.canMergeWith(o)){const i=o.getChildren();this.append(...i),o.remove()}else super.append(o)}return this}replace(n,r){if(ke(n))return super.replace(n);this.setIndent(0);const o=this.getParentOrThrow();if(!ve(o))return n;if(o.__first===this.getKey())o.insertBefore(n);else if(o.__last===this.getKey())o.insertAfter(n);else{const i=Ut(o.getListType());let s=this.getNextSibling();for(;s;){const a=s;s=s.getNextSibling(),i.append(a)}o.insertAfter(n),n.insertAfter(i)}return r&&(R(n)||Or(139),this.getChildren().forEach(i=>{n.append(i)})),this.remove(),o.getChildrenSize()===0&&o.remove(),n}insertAfter(n,r=!0){const o=this.getParentOrThrow();if(ve(o)||Or(39),ke(n))return super.insertAfter(n,r);const i=this.getNextSiblings();if(o.insertAfter(n,r),i.length!==0){const s=Ut(o.getListType());i.forEach(a=>s.append(a)),n.insertAfter(s,r)}return n}remove(n){const r=this.getPreviousSibling(),o=this.getNextSibling();super.remove(n),r&&o&&Cn(r)&&Cn(o)&&(xh(r.getFirstChild(),o.getFirstChild()),o.remove())}insertNewAfter(n,r=!0){const o=Jt().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(o,r),o}collapseAtStart(n){const r=Tt();this.getChildren().forEach(a=>r.append(a));const o=this.getParentOrThrow(),i=o.getParentOrThrow(),s=ke(i);if(o.getChildrenSize()===1)if(s)o.remove(),i.select();else{o.insertBefore(r),o.remove();const a=n.anchor,c=n.focus,l=r.getKey();a.type==="element"&&a.getNode().is(this)&&a.set(l,a.offset,"element"),c.type==="element"&&c.getNode().is(this)&&c.set(l,c.offset,"element")}else o.insertBefore(r),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(n){const r=this.getWritable();return r.__value=n,r}getChecked(){const n=this.getLatest();let r;const o=this.getParent();return ve(o)&&(r=o.getListType()),r==="check"?!!n.__checked:void 0}setChecked(n){const r=this.getWritable();return r.__checked=n,r}toggleChecked(){const n=this.getWritable();return n.setChecked(!n.__checked)}getIndent(){const n=this.getParent();if(n===null||!this.isAttached())return this.getLatest().__indent;let r=n.getParentOrThrow(),o=0;for(;ke(r);)r=r.getParentOrThrow().getParentOrThrow(),o++;return o}setIndent(n){typeof n!="number"&&Or(117),(n=Math.floor(n))>=0||Or(199);let r=this.getIndent();for(;r!==n;)r<n?(f5(this),r++):(u5(this),r--);return this}canInsertAfter(n){return ke(n)}canReplaceWith(n){return ke(n)}canMergeWith(n){return ke(n)||Xd(n)}extractWithChild(n,r){if(!$(r))return!1;const o=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(o)&&this.isParentOf(i)&&this.getTextContent().length===r.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Ut("bullet")}canMergeWhenEmpty(){return!0}}function h5(e){if(e.classList.contains("task-list-item")){for(const n of e.children)if(n.tagName==="INPUT")return Gg(n)}if(e.classList.contains("joplin-checkbox")){for(const n of e.children)if(n.classList.contains("checkbox-wrapper")&&n.children.length>0&&n.children[0].tagName==="INPUT")return Gg(n.children[0])}const t=e.getAttribute("aria-checked");return{node:Jt(t==="true"||t!=="false"&&void 0)}}function Gg(e){return e.getAttribute("type")!=="checkbox"?{node:null}:{node:Jt(e.hasAttribute("checked"))}}function Jt(e){return qr(new rs(void 0,e))}function ke(e){return e instanceof rs}class la extends In{constructor(n="number",r=1,o){super(o);D(this,"__tag");D(this,"__start");D(this,"__listType");const i=p5[n]||n;this.__listType=i,this.__tag=i==="number"?"ol":"ul",this.__start=r}$config(){return this.config("list",{$transform:n=>{(function(r){const o=r.getNextSibling();ve(o)&&r.getListType()===o.getListType()&&xh(r,o)})(n),O1(n)},extends:In,importDOM:{ol:()=>({conversion:Jg,priority:0}),ul:()=>({conversion:Jg,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__listType=n.__listType,this.__tag=n.__tag,this.__start=n.__start}getTag(){return this.getLatest().__tag}setListType(n){const r=this.getWritable();return r.__listType=n,r.__tag=n==="number"?"ol":"ul",r}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(n){const r=this.getWritable();return r.__start=n,r}createDOM(n,r){const o=this.__tag,i=document.createElement(o);return this.__start!==1&&i.setAttribute("start",String(this.__start)),i.__lexicalListType=this.__listType,Zg(i,n.theme,this),i}updateDOM(n,r,o){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Zg(r,o.theme,this),!1)}updateFromJSON(n){return super.updateFromJSON(n).setListType(n.listType).setStart(n.start)}exportDOM(n){const r=this.createDOM(n._config,n);return mt(r)&&(this.__start!==1&&r.setAttribute("start",String(this.__start)),this.__listType==="check"&&r.setAttribute("__lexicalListType","check")),{element:r}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(n,r,o){let i=o;for(let s=0;s<o.length;s++){const a=o[s];ke(a)||(i===o&&(i=[...o]),i[s]=Jt().append(!R(a)||ve(a)||a.isInline()?a:rt(a.getTextContent())))}return super.splice(n,r,i)}extractWithChild(n){return ke(n)}}function Zg(e,t,n){const r=[],o=[],i=t.list;if(i!==void 0){const s=i[`${n.__tag}Depth`]||[],a=Qu(n)-1,c=a%s.length,l=s[c],f=i[n.__tag];let u;const d=i.nested,h=i.checklist;if(d!==void 0&&d.list&&(u=d.list),f!==void 0&&r.push(f),h!==void 0&&n.__listType==="check"&&r.push(h),l!==void 0){r.push(...Sc(l));for(let m=0;m<s.length;m++)m!==c&&o.push(n.__tag+m)}if(u!==void 0){const m=Sc(u);a>1?r.push(...m):o.push(...m)}}o.length>0&&l1(e,...o),r.length>0&&gh(e,...r)}function m5(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(ke(r)){t.push(r);const o=r.getChildren();o.length>1&&o.forEach(i=>{ve(i)&&t.push(Vg(i))})}else t.push(Vg(r))}return t}function Jg(e){const t=e.nodeName.toLowerCase();let n=null;return t==="ol"?n=Ut("number",e.start):t==="ul"&&(n=(function(r){if(r.getAttribute("__lexicallisttype")==="check"||r.classList.contains("contains-task-list")||r.getAttribute("data-is-checklist")==="1")return!0;for(const o of r.childNodes)if(mt(o)&&o.hasAttribute("aria-checked"))return!0;return!1})(e)?Ut("check"):Ut("bullet")),{after:m5,node:n}}const p5={ol:"number",ul:"bullet"};function Ut(e="number",t=1){return qr(new la(e,t))}function ve(e){return e instanceof la}const g5=he("UPDATE_LIST_START_COMMAND"),P1=he("INSERT_UNORDERED_LIST_COMMAND"),M1=he("INSERT_ORDERED_LIST_COMMAND"),Zu=he("REMOVE_LIST_COMMAND");function y5(e){return hn(e.registerCommand(M1,()=>(Yg("number"),!0),Jn),e.registerCommand(g5,t=>{const{listNodeKey:n,newStart:r}=t,o=Xe(n);return!!ve(o)&&(o.getListType()==="number"&&(o.setStart(r),O1(o)),!0)},Jn),e.registerCommand(P1,()=>(Yg("bullet"),!0),Jn),e.registerCommand(Zu,()=>(l5(),!0),Jn),e.registerCommand(Fs,()=>d5(),Jn),e.registerNodeTransform(rs,t=>{const n=t.getFirstChild();if(n){if(X(n)){const r=n.getStyle(),o=n.getFormat();t.getTextStyle()!==r&&t.setTextStyle(r),t.getTextFormat()!==o&&t.setTextFormat(o)}}else{const r=Z();$(r)&&(r.style!==t.getTextStyle()||r.format!==t.getTextFormat())&&r.isCollapsed()&&t.is(r.anchor.getNode())&&t.setTextStyle(r.style).setTextFormat(r.format)}}),e.registerNodeTransform(Kr,t=>{const n=t.getParent();if(ke(n)&&t.is(n.getFirstChild())){const r=t.getStyle(),o=t.getFormat();r===n.getTextStyle()&&o===n.getTextFormat()||n.setTextStyle(r).setTextFormat(o)}}))}function b5(e){const t=n=>{const r=n.getParent();if(ve(n.getFirstChild())||!ve(r))return;const o=at(n,i=>ke(i)&&ve(i.getParent())&&ke(i.getPreviousSibling()));if(o===null&&n.getIndent()>0)n.setIndent(0);else if(ke(o)){const i=o.getPreviousSibling();if(ke(i)){const s=(function(c){let l=c,f=l.getFirstChild();for(;ve(f);){const u=f.getLastChild();if(!ke(u))break;l=u,f=l.getFirstChild()}return l})(i),a=s.getParent();if(ve(a)){const c=Qu(a);c+1<Qu(r)&&n.setIndent(c)}}}};return e.registerNodeTransform(la,n=>{const r=[n];for(;r.length>0;){const o=r.shift();if(ve(o)){for(const i of o.getChildren())if(ke(i)){t(i);const s=i.getFirstChild();ve(s)&&r.push(s)}}}})}const v5=new Set(["http:","https:","mailto:","sms:","tel:"]);class Vo extends In{constructor(n="",r={},o){super(o);D(this,"__url");D(this,"__target");D(this,"__rel");D(this,"__title");const{target:i=null,rel:s=null,title:a=null}=r;this.__url=n,this.__target=i,this.__rel=s,this.__title=a}static getType(){return"link"}static clone(n){return new Vo(n.__url,{rel:n.__rel,target:n.__target,title:n.__title},n.__key)}createDOM(n){const r=document.createElement("a");return this.updateLinkDOM(null,r,n),gh(r,n.theme.link),r}updateLinkDOM(n,r,o){if(qx(r)){n&&n.__url===this.__url||(r.href=this.sanitizeUrl(this.__url));for(const i of["target","rel","title"]){const s=`__${i}`,a=this[s];n&&n[s]===a||(a?r[i]=a:r.removeAttribute(i))}}}updateDOM(n,r,o){return this.updateLinkDOM(n,r,o),!1}static importDOM(){return{a:n=>({conversion:x5,priority:1})}}static importJSON(n){return Eo().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setURL(n.url).setRel(n.rel||null).setTarget(n.target||null).setTitle(n.title||null)}sanitizeUrl(n){n=t0(n);try{const r=new URL(t0(n));if(!v5.has(r.protocol))return"about:blank"}catch{return n}return n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(n){const r=this.getWritable();return r.__url=n,r}getTarget(){return this.getLatest().__target}setTarget(n){const r=this.getWritable();return r.__target=n,r}getRel(){return this.getLatest().__rel}setRel(n){const r=this.getWritable();return r.__rel=n,r}getTitle(){return this.getLatest().__title}setTitle(n){const r=this.getWritable();return r.__title=n,r}insertNewAfter(n,r=!0){const o=Eo(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(o,r),o}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,r,o){if(!$(r))return!1;const i=r.anchor.getNode(),s=r.focus.getNode();return this.isParentOf(i)&&this.isParentOf(s)&&r.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function x5(e){let t=null;if(qx(e)){const n=e.textContent;(n!==null&&n!==""||e.children.length>0)&&(t=Eo(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function Eo(e="",t){return qr(new Vo(e,t))}function ft(e){return e instanceof Vo}class ul extends Vo{constructor(n="",r={},o){super(n,r,o);D(this,"__isUnlinked");this.__isUnlinked=r.isUnlinked!==void 0&&r.isUnlinked!==null&&r.isUnlinked}static getType(){return"autolink"}static clone(n){return new ul(n.__url,{isUnlinked:n.__isUnlinked,rel:n.__rel,target:n.__target,title:n.__title},n.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(n){const r=this.getWritable();return r.__isUnlinked=n,r}createDOM(n){return this.__isUnlinked?document.createElement("span"):super.createDOM(n)}updateDOM(n,r,o){return super.updateDOM(n,r,o)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return Xg().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setIsUnlinked(n.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(n,r=!0){const o=this.getParentOrThrow().insertNewAfter(n,r);if(R(o)){const i=Xg(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return o.append(i),i}return null}}function Xg(e="",t){return qr(new ul(e,t))}function co(e){return e instanceof ul}const Ui=he("TOGGLE_LINK_COMMAND");function e0(e,t){if(e.type==="element"){const n=e.getNode();return R(n)||(function(r,...o){const i=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",r);for(const a of o)s.append("v",a);throw i.search=s.toString(),Error(`Minified Lexical error #${r}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(252),n.getChildren()[e.offset+t]||null}return null}function gf(e,t={}){let n;if(e&&typeof e=="object"){const{url:f,...u}=e;n=f,t={...u,...t}}else n=e;const{target:r,title:o}=t,i=t.rel===void 0?"noreferrer":t.rel,s=Z();if(s===null||!$(s)&&!ot(s))return;if(ot(s)){const f=s.getNodes();return f.length===0?void 0:void f.forEach(u=>{if(n===null){const d=at(u,h=>!co(h)&&ft(h));d&&(d.insertBefore(u),d.getChildren().length===0&&d.remove())}else{const d=at(u,h=>!co(h)&&ft(h));if(d)d.setURL(n),r!==void 0&&d.setTarget(r),i!==void 0&&d.setRel(i);else{const h=Eo(n,{rel:i,target:r});u.insertBefore(h),h.append(u)}}})}const a=s.extract();if(n===null){const f=new Set;return void a.forEach(u=>{const d=u.getParent();if(ft(d)&&!co(d)){const h=d.getKey();if(f.has(h))return;(function(m,g){const p=new Set(g.filter(S=>m.isParentOf(S)).map(S=>S.getKey())),y=m.getChildren(),b=y.filter(S=>p.has(S.getKey()));if(b.length===y.length)return y.forEach(S=>m.insertBefore(S)),void m.remove();const x=y.findIndex(S=>p.has(S.getKey())),w=y.findLastIndex(S=>p.has(S.getKey())),A=x===0,_=w===y.length-1;if(A)b.forEach(S=>m.insertBefore(S));else if(_)for(let S=b.length-1;S>=0;S--)m.insertAfter(b[S]);else{for(let E=b.length-1;E>=0;E--)m.insertAfter(b[E]);const S=y.slice(w+1);if(S.length>0){const E=Eo(m.getURL(),{rel:m.getRel(),target:m.getTarget(),title:m.getTitle()});b[b.length-1].insertAfter(E),S.forEach(N=>E.append(N))}}})(d,a),f.add(h)}})}const c=new Set,l=f=>{c.has(f.getKey())||(c.add(f.getKey()),f.setURL(n),r!==void 0&&f.setTarget(r),i!==void 0&&f.setRel(i),o!==void 0&&f.setTitle(o))};if(a.length===1){const f=a[0],u=at(f,ft);if(u!==null)return l(u)}(function(f){const u=Z();if(!$(u))return f();const d=Fi(u),h=d.isBackward(),m=e0(d.anchor,h?-1:0),g=e0(d.focus,h?0:-1);if(f(),m||g){const p=Z();if($(p)){const y=p.clone();if(m){const b=m.getParent();b&&y.anchor.set(b.getKey(),m.getIndexWithinParent()+(h?1:0),"element")}if(g){const b=g.getParent();b&&y.focus.set(b.getKey(),g.getIndexWithinParent()+(h?0:1),"element")}Pt(Fi(y))}}})(()=>{let f=null;for(const u of a){if(!u.isAttached())continue;const d=at(u,ft);if(d){l(d);continue}if(R(u)){if(!u.isInline())continue;if(ft(u)){if(!(co(u)||f!==null&&f.getParentOrThrow().isParentOf(u))){l(u),f=u;continue}for(const m of u.getChildren())u.insertBefore(m);u.remove();continue}}const h=u.getPreviousSibling();ft(h)&&h.is(f)?h.append(u):(f=Eo(n,{rel:i,target:r,title:o}),u.insertAfter(f),f.append(u))}})}const w5=/^\+?[0-9\s()-]{5,}$/;function t0(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:w5.test(e)?`tel:${e}`:`https://${e}`}function A5(e,t){return hn(Ws(()=>e.registerCommand(Ui,n=>{const r=t.validateUrl.peek(),o=t.attributes.peek();if(n===null)return gf(null),!0;if(typeof n=="string")return!(r!==void 0&&!r(n))&&(gf(n,o),!0);{const{url:i,target:s,rel:a,title:c}=n;return gf(i,{...o,rel:a,target:s,title:c}),!0}},Jn)),Ws(()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(nl,o=>{const i=Z();if(!$(i)||i.isCollapsed()||!Nr(o,ClipboardEvent)||o.clipboardData===null)return!1;const s=o.clipboardData.getData("text");return!!n(s)&&!i.getNodes().some(a=>R(a))&&(e.dispatchCommand(Ui,{...r,url:s}),o.preventDefault(),!0)},Jn)}))}function C5({commentType:e,onCommentTypeChange:t,isCommentTypeEditable:n=!0,actions:r,setIsLinkEditMode:o,onAddAttachments:i}){const[s]=ht(),[a,c]=T.useState({bold:!1,italic:!1,underline:!1,strikethrough:!1,code:!1}),[l,f]=T.useState(null),u=T.useRef(null),d=T.useRef(null),h=wh[e];T.useLayoutEffect(()=>s.registerUpdateListener(({editorState:b})=>{b.read(()=>{const x=Z();if(!$(x))return;c({bold:x.hasFormat("bold"),italic:x.hasFormat("italic"),underline:x.hasFormat("underline"),strikethrough:x.hasFormat("strikethrough"),code:x.hasFormat("code")});let w=x.anchor.getNode(),A=null;for(;w;){if(ve(w)){const _=w.getListType();A=_==="bullet"||_==="number"?_:null;break}if(ke(w)){w=w.getParent();continue}w=w.getParent()}f(A)})}),[s]);const m=b=>{s.dispatchCommand(Sn,b)},g=()=>{l!=="bullet"?s.dispatchCommand(P1,void 0):s.dispatchCommand(Zu,void 0)},p=()=>{l!=="number"?s.dispatchCommand(M1,void 0):s.dispatchCommand(Zu,void 0)},y=()=>{s.update(()=>{const b=Z();if(!$(b))return;["bold","italic","underline","strikethrough","code"].forEach(w=>{b.hasFormat(w)&&s.dispatchCommand(Sn,w)})})};return v.jsxs("div",{className:xe("cnf:flex cnf:items-center cnf:w-full",r?"cnf:justify-between":"cnf:justify-end"),children:[v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:gap-1",children:[v.jsx(vu,{placement:"top-start",minWidth:"fit-content",title:"text formatting menu",trigger:v.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",children:v.jsx(Ce,{icon:XS})}),children:v.jsxs("ul",{className:"cnf:flex cnf:items-start cnf:flex-col",children:[v.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:v.jsxs("button",{type:"button",title:"Bold",onClick:()=>m("bold"),className:xe("cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:hover:bg-gray-100",a.bold?"cnf:text-white cnf:bg-primary-600 cnf:hover:bg-primary-700":"cnf:text-gray-400 cnf:hover:text-gray-400"),children:[v.jsx(Ce,{icon:HS,className:"cnf:mr-2"}),"Bold"]})}),v.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:v.jsxs("button",{type:"button",title:"Italic",onClick:()=>m("italic"),className:xe("cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:hover:bg-gray-100",a.italic?"cnf:text-white cnf:bg-primary-600 cnf:hover:bg-primary-700":"cnf:text-gray-400 cnf:hover:text-gray-400"),children:[v.jsx(Ce,{icon:YS,className:"cnf:mr-2"}),"Italic"]})}),v.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:v.jsxs("button",{type:"button",title:"Underline",onClick:()=>m("underline"),className:xe("cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:hover:bg-gray-100",a.underline?"cnf:text-white cnf:bg-primary-600 cnf:hover:bg-primary-700":"cnf:text-gray-400 cnf:hover:text-gray-400"),children:[v.jsx(Ce,{icon:KS,className:"cnf:mr-2"}),"Underline"]})}),v.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:v.jsxs("button",{type:"button",title:"Strikethrough",onClick:()=>m("strikethrough"),className:xe("cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:hover:bg-gray-100",a.strikethrough?"cnf:text-white cnf:bg-primary-600 cnf:hover:bg-primary-700":"cnf:text-gray-400 cnf:hover:text-gray-400"),children:[v.jsx(Ce,{icon:WS,className:"cnf:mr-2"}),"Strikethrough"]})}),v.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:v.jsxs("button",{type:"button",title:"Monospace",onClick:()=>m("code"),className:xe("cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:hover:bg-gray-100",a.code?"cnf:text-white cnf:bg-primary-600 cnf:hover:bg-primary-700":"cnf:text-gray-400 cnf:hover:text-gray-400"),children:[v.jsx(Ce,{icon:GS,className:"cnf:mr-2"}),"Monospace"]})}),v.jsx("hr",{className:"cnf:w-full cnf:border-gray-200"}),v.jsx("li",{className:"cnf:flex cnf:items-center cnf:w-full",children:v.jsxs("button",{type:"button",title:"Clear formatting",onClick:y,className:"cnf:cursor-pointer cnf:w-full cnf:h-full cnf:justify-start cnf:text-left cnf:p-2 cnf:text-gray-400 cnf:hover:text-gray-400 cnf:hover:bg-gray-100",children:[v.jsx(Ce,{icon:VS,className:"cnf:mr-2"}),"Clear formatting"]})})]})}),v.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format bullet list",onClick:g,children:v.jsx(Ce,{icon:ek})}),v.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format numbered list",onClick:p,children:v.jsx(Ce,{icon:QS})}),v.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format link",onClick:()=>{o(!0),s.dispatchCommand(Ui,"https://")},children:v.jsx(Ce,{icon:JS})}),i&&v.jsxs(v.Fragment,{children:[v.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Add image",className:"cnf:border-l-1 cnf:border-gray-200 cnf:rounded-none",onClick:()=>{var b;(b=u.current)==null||b.click()},children:v.jsx(Ce,{icon:qS})}),v.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Add file",onClick:()=>{var b;(b=d.current)==null||b.click()},children:v.jsx(Ce,{icon:ZS})})]}),n&&v.jsx(vu,{placement:"top-end",title:"comment type menu",trigger:v.jsx(je,{category:"link",size:"smallCollapse",className:`${h.iconColor} cnf:border-l-1 cnf:border-gray-200 cnf:rounded-none`,children:v.jsx(Ce,{icon:h.icon})}),children:v.jsx("ul",{className:"cnf:flex cnf:items-center cnf:justify-between cnf:gap-2 cnf:p-3",children:L1.map(b=>v.jsx("li",{children:v.jsx(je,{category:"link",size:"none",title:b.title,className:xe(b.color,e===b.type?b.color:"cnf:text-gray-400"),onClick:()=>t==null?void 0:t(b.type),children:v.jsx(Ce,{icon:b.icon})})},b.type))})})]}),r,v.jsx("input",{type:"file",hidden:!0,id:"image-input",multiple:!0,ref:u,accept:"image/*",onChange:b=>{const x=b.target.files;x&&(i==null||i(x))}}),v.jsx("input",{type:"file",hidden:!0,id:"file-input",multiple:!0,ref:d,accept:"*",onChange:b=>{const x=b.target.files;x&&(i==null||i(x))}})]})}function _5({hasStrictIndent:e=!1}){const[t]=ht();return T.useEffect(()=>{if(!t.hasNodes([la,rs]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),T.useEffect(()=>{if(e)return b5(t)},[t,e]),(function(n){T.useEffect(()=>y5(n),[n])})(t),null}function E5({validateUrl:e,attributes:t}){const[n]=ht();return T.useEffect(()=>{if(!n.hasNodes([Vo]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),T.useEffect(()=>A5(n,h1({attributes:t,validateUrl:e})),[n,e,t]),null}const S5=new Set(["http:","https:","mailto:","sms:","tel:"]);function n0(e){try{const t=new URL(e);if(!S5.has(t.protocol))return"about:blank"}catch{return e}return e}function r0(e,t,n,r=10,o=5){const i=n.parentElement;if(e===null||!i){t.style.opacity="0",t.style.transform="translate(-10000px, -10000px)";return}const s=t.getBoundingClientRect(),a=n.getBoundingClientRect(),c=i.getBoundingClientRect();let l=e.top-r,f=e.left-o;l<c.top&&(l+=s.height+e.height+r*2),f+s.width>c.right&&(f=c.right-s.width-o),l-=a.top,f-=a.left,t.style.opacity="1",t.style.transform=`translate(${f}px, ${l}px)`}function kc(e){const t=e.anchor,n=e.focus,r=e.anchor.getNode(),o=e.focus.getNode();return r===o?r:e.isBackward()?Sg(n)?r:o:Sg(t)?r:o}function k5({editor:e,isLink:t,setIsLink:n,anchorElem:r,isLinkEditMode:o,setIsLinkEditMode:i}){const s=T.useRef(null),[a,c]=T.useState(""),[l,f]=T.useState("https://"),[u,d]=T.useState(null),h=T.useCallback(()=>{var A,_;const p=Z();if($(p)){const S=kc(p),E=at(S,ft);E?c(E.getURL()):ft(S)?c(S.getURL()):c(""),o&&f(a)}else if(ot(p)){const S=p.getNodes();if(S.length>0){const E=S[0],N=E.getParent();ft(N)?c(N.getURL()):ft(E)?c(E.getURL()):c(""),o&&f(a)}}const y=s.current,b=tn(e._window),x=document.activeElement;if(y===null)return;const w=e.getRootElement();if(p!==null&&w!==null&&e.isEditable()){let S;if(ot(p)){const E=p.getNodes();if(E.length>0){const N=e.getElementByKey(E[0].getKey());N&&(S=N.getBoundingClientRect())}}else b!==null&&w.contains(b.anchorNode)&&(S=(_=(A=b.focusNode)==null?void 0:A.parentElement)==null?void 0:_.getBoundingClientRect());S&&(S.y+=40,r0(S,y,r)),d(p)}else(!x||x.className!=="link-input")&&(w!==null&&r0(null,y,r),d(null),i(!1),c(""));return!0},[r,e,i,o,a]);T.useEffect(()=>{const p=r.parentElement,y=()=>{e.getEditorState().read(()=>{h()})};return window.addEventListener("resize",y),p&&p.addEventListener("scroll",y),()=>{window.removeEventListener("resize",y),p&&p.removeEventListener("scroll",y)}},[r.parentElement,e,h]),T.useEffect(()=>hn(e.registerUpdateListener(({editorState:p})=>{p.read(()=>{h()})}),e.registerCommand(tl,()=>(h(),!0),Jn),e.registerCommand(qd,()=>t?(n(!1),!0):!1,E6)),[e,h,n,t]),T.useEffect(()=>{e.getEditorState().read(()=>{h()})},[e,h]),T.useEffect(()=>{const p=s.current;if(p===null)return;const y=b=>{!p.contains(b.relatedTarget)&&t&&(n(!1),i(!1))};return p.addEventListener("focusout",y),()=>{p.removeEventListener("focusout",y)}},[n,i,t]);const m=p=>{p.key==="Enter"?g(p):p.key==="Escape"&&(p.preventDefault(),i(!1))},g=p=>{p.preventDefault(),u!==null&&(a!==""&&e.update(()=>{e.dispatchCommand(Ui,n0(l));const y=Z();if($(y)){const b=kc(y).getParent();if(co(b)){const x=Eo(b.getURL(),{rel:b.__rel,target:b.__target,title:b.__title});b.replace(x,!0)}}}),f("https://"),i(!1))};return v.jsx("div",{ref:s,className:"cnf:absolute cnf:flex cnf:top-0 cnf:left-0 cnf:shadow-lg cnf:bg-white cnf:z-10 cnf:rounded-sm cnf:w-full cnf:max-w-400",children:t?o?v.jsxs("div",{className:"cnf:flex cnf:justify-between cnf:w-full cnf:items-center cnf:p-2",children:[v.jsx(Ky,{containerClassName:"cnf:px-0 cnf:mr-2",autoFocus:!0,className:"cnf:mt-0",value:l,onChange:p=>{f(p.target.value)},onKeyDown:p=>{m(p)}}),v.jsxs("div",{className:"cnf:flex cnf:justify-center cnf:items-center cnf:gap-4",children:[v.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:p=>p.preventDefault(),onClick:()=>{i(!1)},children:v.jsx(Ce,{icon:Uc})}),v.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:p=>p.preventDefault(),onClick:g,children:v.jsx(Ce,{icon:eb})})]})]}):v.jsxs("div",{className:"cnf:flex cnf:justify-between cnf:w-full cnf:items-center cnf:p-2",children:[v.jsx("a",{href:n0(a),target:"_blank",rel:"noopener noreferrer",children:a}),v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:gap-4",children:[v.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:p=>p.preventDefault(),onClick:()=>{f(a),i(!0)},children:v.jsx(Ce,{icon:y_})}),v.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:p=>p.preventDefault(),onClick:()=>e.dispatchCommand(Ui,null),children:v.jsx(Ce,{icon:T_})})]})]}):null})}function T5(e,t,n,r){const[o,i]=T.useState(e),[s,a]=T.useState(!1);return T.useEffect(()=>{function c(){const l=Z();if($(l)){const f=kc(l),u=at(f,ft),d=at(f,co);if(!(u||d)){a(!1);return}const h=l.getNodes().filter(m=>!Ao(m)).find(m=>{const g=at(m,ft),p=at(m,co);return u&&!u.is(g)||g&&!g.is(u)||d&&!d.is(p)||p&&(!p.is(d)||p.getIsUnlinked())});a(!h)}else if(ot(l)){const f=l.getNodes();if(f.length===0){a(!1);return}const u=f[0],d=u.getParent();ft(d)||ft(u)?a(!0):a(!1)}}return hn(e.registerUpdateListener(({editorState:l})=>{l.read(()=>{c()})}),e.registerCommand(tl,(l,f)=>(c(),i(f),!1),Ox),e.registerCommand(Wd,l=>{const f=Z();if($(f)){const u=kc(f),d=at(u,ft);if(ft(d)&&(l.metaKey||l.ctrlKey))return window.open(d.getURL(),"_blank"),!0}return!1},Jn))},[e]),Wt.createPortal(v.jsx(k5,{editor:o,isLink:s,anchorElem:t,setIsLink:a,isLinkEditMode:n,setIsLinkEditMode:r}),t)}function N5({anchorElem:e=document.body,isLinkEditMode:t,setIsLinkEditMode:n}){const[r]=ht();return T5(r,e,t,n)}const O5=({url:e,onDelete:t})=>v.jsxs("div",{className:"cnf:relative",children:[v.jsx("img",{src:e,alt:"Thumbnail",width:75,height:75,className:"cnf:w-[75px] cnf:h-[75px] cnf:object-cover cnf:rounded-lg cnf:border cnf:border-gray-200"}),v.jsx(je,{size:"smallCollapse",title:"Delete attachment",onClick:t,className:"cnf:absolute cnf:top-1 cnf:left-1 cnf:w-[20px] cnf:h-[20px] cnf:rounded-full",color:"secondary",children:v.jsx(Ce,{icon:Xy})})]}),P5=({onRemoveFile:e,type:t,label:n})=>{const r=t.toLowerCase(),o=Qb(r);return v.jsxs("div",{className:"cnf:relative cnf:flex cnf:items-center cnf:justify-center cnf:rounded cnf:border cnf:border-gray-200",children:[v.jsx(je,{size:"smallCollapse",color:"secondary",className:"cnf:absolute cnf:top-1 cnf:left-1 cnf:w-[20px] cnf:h-[20px] cnf:rounded-full",title:"Remove file",onClick:e,children:v.jsx(Ce,{icon:Xy})}),v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:justify-center cnf:mx-2",children:[v.jsx("span",{className:"cnf:text-primary-600 cnf:my-2",children:v.jsx(Ce,{icon:o,size:"3x",className:"cnf:text-primary-600"})}),v.jsx("span",{className:"cnf:font-bold cnf:p-2",children:n})]})]})},M5=({clearKey:e})=>{const[t]=ht(),n=T.useRef(e);return T.useEffect(()=>{n.current!==e&&(t.update(()=>{We().clear()}),n.current=e)},[e,t]),null},I5=({isOpen:e})=>{const[t]=ht(),n=T.useRef(!1);return T.useEffect(()=>{if(!e){n.current=!1;return}if(n.current)return;const r=()=>{const o=t.getRootElement();if(!o){requestAnimationFrame(r);return}n.current=!0;const i=window.scrollX,s=window.scrollY;try{o.focus({preventScroll:!0})}catch{o.focus()}requestAnimationFrame(()=>window.scrollTo(i,s)),setTimeout(()=>window.scrollTo(i,s),0)};r()},[t,e]),null},L5=({initialValue:e})=>{const[t]=ht(),n=T.useCallback((o,i)=>{const a=new DOMParser().parseFromString(i,"text/html");return b1(o,a)},[]),r=T.useRef(!1);return T.useEffect(()=>{!r.current&&e&&(t.update(()=>{We().clear(),Cx(n(t,e))}),r.current=!0)},[t,e,n]),null},R5=({onChange:e})=>{const[t]=ht();return v.jsx(r5,{onChange:n=>{n.read(()=>{const r=v1(t,null);e(r)})}})},D5=({onAddAttachments:e})=>{const[t]=ht();return T.useEffect(()=>{if(!e)return;const n=t.getRootElement();if(!n)return;const r=o=>{const i=o.clipboardData;if(!i)return;const s=i.items;let a=!1;for(let c=0;c<s.length;c++){const l=s[c];if(l.kind==="file"&&l.type.startsWith("image/")){a=!0;break}}if(a){for(let c=0;c<s.length;c++){const l=s[c];if(l.kind==="file"&&l.type.startsWith("image/")){const f=l.getAsFile();if(f){const u=Date.now(),d=f.type.split("/")[1]||"png",h=`image_${u}.${d}`,m=new File([f],h,{type:f.type});e==null||e([m])}}}o.preventDefault(),o.stopPropagation()}};return n.addEventListener("paste",r,!0),()=>{n.removeEventListener("paste",r,!0)}},[t,e]),null},F5=({onSubmit:e})=>{const[t]=ht();return T.useEffect(()=>{if(e)return t.registerCommand($s,n=>n&&!n.shiftKey?(n.preventDefault(),e(),!0):!1,1)},[t,e]),null},j5=({setIsLinkEditMode:e})=>{const[t]=ht();return T.useEffect(()=>{const n=t.getRootElement();if(!n)return;const r=o=>{const i=o.metaKey||o.ctrlKey,s=o.key==="k"||o.key==="K";i&&s&&t.getEditorState().read(()=>{const a=Z();$(a)&&!a.isCollapsed()&&(o.preventDefault(),e(!0),t.dispatchCommand(Ui,"https://"))})};return n.addEventListener("keydown",r),()=>{n.removeEventListener("keydown",r)}},[t,e]),null};function I1({attachments:e,clearKey:t=0,inputFieldClassName:n="",containerClassName:r="",initialValue:o,onChange:i,commentType:s,onCommentTypeChange:a,isCommentTypeEditable:c=!0,actions:l,onAddAttachments:f,onRemoveAttachment:u,onSubmit:d,isOpen:h}){const m={namespace:"comment-editor",theme:c5,nodes:[la,rs,Vo],onError:A=>{console.error(A)}},[g,p]=T.useState(null),[y,b]=T.useState(!1),x=A=>{A!==null&&p(A)},w=wh[s];return v.jsx("div",{className:r,children:v.jsxs(tN,{initialConfig:m,children:[v.jsxs("div",{className:"cnf:relative",children:[v.jsx(qN,{contentEditable:v.jsx("div",{ref:x,children:v.jsx(XN,{className:xe("cnf:p-3 cnf:outline-none cnf:border-0 cnf:w-full cnf:border-t cnf:border-gray-200 cnf:rounded-none cnf:border-l-3",w.bg,w.border,w.fontColor,n)})}),placeholder:v.jsx("div",{className:"cnf:absolute cnf:top-3 cnf:left-4 cnf:text-gray-400 cnf:pointer-events-none",children:"Type comment…"}),ErrorBoundary:a5}),v.jsx(_5,{}),v.jsx(E5,{}),g&&v.jsx(N5,{anchorElem:g,isLinkEditMode:y,setIsLinkEditMode:b}),v.jsx(GN,{}),v.jsx(L5,{initialValue:o}),v.jsx(R5,{onChange:i}),v.jsx(F5,{onSubmit:d}),v.jsx(j5,{setIsLinkEditMode:b}),v.jsx(M5,{clearKey:t}),v.jsx(D5,{onAddAttachments:f}),v.jsx(I5,{isOpen:h})]}),e&&e.length>0&&v.jsx("div",{className:"cnf:flex cnf:flex-wrap cnf:justify-start cnf:gap-2 cnf:p-4",children:e.map(A=>Sd(A.type)?v.jsx(O5,{url:A.url,onDelete:()=>u==null?void 0:u(A.originFile)},A.originFile.name):v.jsx(P5,{type:A.type,label:A.name,onRemoveFile:()=>u==null?void 0:u(A.originFile)},A.originFile.name))}),v.jsx("div",{className:"cnf:border-t cnf:border-gray-200 cnf:p-2 cnf:flex cnf:justify-end",children:v.jsx(C5,{commentType:s,onCommentTypeChange:a,isCommentTypeEditable:c,actions:l,setIsLinkEditMode:b,onAddAttachments:f})})]})})}const z5=({asset:e,onSetActiveSrc:t})=>v.jsxs("div",{className:"cnf:relative cnf:border cnf:border-gray-200 cnf:rounded-md cnf:h-[110px] cnf:w-full cnf:hover:border-primary-500",children:[v.jsx("img",{src:Ka(e),onClick:()=>t(Ka(e)),onKeyDown:n=>{n.key==="Enter"&&t(Ka(e))},alt:e.name,className:"cnf:w-full cnf:h-full cnf:object-cover cnf:rounded-md cnf:object-center cnf:cursor-zoom-in"}),(e==null?void 0:e.uploading)&&v.jsx("div",{className:"cnf:absolute cnf:bottom-2 cnf:w-full cnf:max-w-md cnf:mx-auto cnf:px-2",children:v.jsx("div",{className:"cnf:relative cnf:h-2 cnf:overflow-hidden cnf:rounded-full cnf:bg-gray-200",children:v.jsx("div",{className:"cnf:absolute cnf:left-0 cnf:top-0 cnf:h-full cnf:w-1/3 cnf:rounded-full cnf:bg-blue-500 cnf:animate-progress"})})})]}),$5=({asset:e})=>{var r,o;const t=((o=(r=e==null?void 0:e.mimeType)==null?void 0:r.split("/").pop())==null?void 0:o.toLowerCase())||"",n=Qb(t);return v.jsxs("div",{className:"cnf:flex cnf:gap-2",children:[(e==null?void 0:e.uploading)&&v.jsx("div",{className:"cnf:flex cnf:items-center cnf:justify-center",children:v.jsx("div",{className:"cnf:h-4 cnf:w-4 cnf:rounded-full cnf:border-2 cnf:border-gray-300 cnf:border-t-blue-500 cnf:animate-spin"})}),v.jsx(Ce,{icon:n,size:"lg",className:"cnf:text-primary-600"}),v.jsx("a",{href:Ka(e),className:"cnf:text-sm cnf:text-blue-600 cnf:underline",download:!0,target:"_blank",rel:"noopener noreferrer",children:e.name})]})},B5=({commentType:e=dt.INFO,author:t,username:n,comment:r,createdDate:o,onDelete:i,onEdit:s,hasAssets:a,taskAssets:c,taskVerified:l})=>{const u={[dt.INFO]:{bg:"cnf:bg-primary-100",border:"cnf:border-primary-200",icon:Zy,iconColor:"cnf:text-primary-600 cnf:hover:text-primary-600",text:"cnf:text-primary-900"},[dt.WARNING]:{bg:"cnf:bg-warning-100",border:"cnf:border-warning-200",icon:Vy,iconColor:"cnf:text-warning-600 cnf:hover:text-warning-600",text:"cnf:text-warning-900"},[dt.DANGER]:{bg:"cnf:bg-danger-100",border:"cnf:border-danger-200",icon:tb,iconColor:"cnf:text-danger-600 cnf:hover:text-danger-600",text:"cnf:text-danger-900"},[dt.SUCCESS]:{bg:"cnf:bg-success-100",border:"cnf:border-success-200",icon:Qy,iconColor:"cnf:text-success-600 cnf:hover:text-success-600",text:"cnf:text-success-900"}}[e],d=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(new Date(o||"")).replace(",",""),[h,m]=T.useState(!1),[g,p]=T.useState(Hl(r)),[y,b]=T.useState(e),[x,w]=T.useState(""),A=()=>{m(!0)},_=()=>{const N=hu.sanitize(g);s(N,y),m(!1)},S=N=>{const P=hu.sanitize(g);b(N),s(P,N),m(!1)},E=()=>{m(!1)};return v.jsxs("div",{className:"cnf:flex cnf:items-start cnf:space-x-4 cnf:w-full",children:[v.jsx(uT,{alt:t}),v.jsxs("div",{className:"cnf:flex-1 cnf:min-w-0",children:[v.jsxs("div",{className:`cnf:border ${u.border} cnf:rounded-sm ${u.bg} cnf:shadow-sm cnf:flex cnf:flex-col cnf:items-start cnf:justify-between cnf:w-full`,children:[v.jsx("div",{className:"cnf:p-3 cnf:flex cnf:flex-col cnf:items-start cnf:justify-between cnf:w-full",children:v.jsxs("div",{className:"cnf:w-full",children:[v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:mb-2 cnf:justify-between",children:[v.jsxs("div",{children:[v.jsx(Ce,{icon:u.icon,size:"lg",className:`cnf:mr-2 ${u.iconColor}`}),v.jsx("span",{className:`cnf:font-semibold cnf:text-sm ${u.text}`,children:t})]}),v.jsx(hT,{commentType:e,taskVerified:l,isUsernameAuthor:n.trim()===t.trim(),onEdit:A,onSaveCommentType:S,onDelete:i})]}),h?v.jsx(I1,{inputFieldClassName:"cnf:bg-white cnf:border-0 cnf:rounded-sm",containerClassName:"cnf:bg-white cnf:border-0 cnf:rounded-sm",onChange:p,commentType:e,isCommentTypeEditable:!1,initialValue:Hl(r),actions:v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:gap-2",children:[v.jsx(je,{category:"outline",size:"smallCollapse",color:"secondary",onClick:E,title:"Cancel edit",children:"Cancel"}),v.jsx(je,{category:"solid",size:"smallCollapse",color:"primary",onClick:_,title:"Save edit",disabled:Ha(g),children:"Save"})]})}):v.jsx("div",{className:`cnf:text-sm ${u.text}`,dangerouslySetInnerHTML:{__html:Hl(r)}})]})}),a&&c&&(c==null?void 0:c.length)>0&&v.jsx("div",{className:`${u.border} cnf:border-t cnf:w-full cnf:p-2 cnf:flex cnf:gap-2 cnf:flex-wrap`,children:c.map(N=>v.jsx(T.Fragment,{children:Sd(N.mimeType)?v.jsx(z5,{asset:N,onSetActiveSrc:w}):v.jsx($5,{asset:N})},N.assetId))})]}),v.jsxs("div",{className:"cnf:flex cnf:gap-2 cnf:my-1",children:[o&&v.jsx("time",{dateTime:o,className:"cnf:text-xs cnf:text-gray-500 cnf:opacity-60",children:d}),l&&v.jsxs("span",{className:"cnf:text-xs cnf:text-success-600 cnf:font-semibold cnf:flex cnf:items-center cnf:gap-1",children:[v.jsx(Ce,{icon:Gy}),"Comment Required"]})]})]}),v.jsx(V3,{plugins:[fT],open:!!x,zoom:{maxZoomPixelRatio:2},close:()=>w(""),styles:{root:{zIndex:9999999999}},carousel:{finite:!0,preload:0},controller:{closeOnBackdropClick:!0},slides:[{src:x}]})]})},wh={[dt.INFO]:{icon:P_,bg:"cnf:bg-primary-100",border:"cnf:border-l-primary-500",iconColor:"cnf:text-primary-600 cnf:hover:text-primary-700",fontColor:"cnf:text-primary-900"},[dt.WARNING]:{icon:b_,bg:"cnf:bg-warning-100",border:"cnf:border-l-warning-500",iconColor:"cnf:text-warning-600 cnf:hover:text-warning-700",fontColor:"cnf:text-warning-900"},[dt.DANGER]:{icon:R_,bg:"cnf:bg-danger-100",border:"cnf:border-l-danger-500",iconColor:"cnf:text-danger-600 cnf:hover:text-danger-700",fontColor:"cnf:text-danger-900"},[dt.SUCCESS]:{icon:Gy,bg:"cnf:bg-success-100",border:"cnf:border-l-success-500",iconColor:"cnf:text-success-600 cnf:hover:text-success-700",fontColor:"cnf:text-success-900"}},L1=Object.entries(wh).map(([e,t])=>({type:e,icon:t.icon,color:t.iconColor,title:`Change comment type to ${e}`})),U5=({comments:e,onClose:t,isOpen:n,taskName:r,taskInstanceId:o,isLoading:i,playbookInstanceId:s,taskVerification:a})=>{const[c,l]=T.useState(""),[f,u]=T.useState(dt.INFO),[d,h]=T.useState(0),[m,g]=T.useState([]),p=T.useRef(null),{username:y}=R1(),{manageComment:b}=Rk({playbookInstanceId:s}),x=()=>{const P=m.length,W=m.some(z=>!Sd(z.mimeType))?"Attachment":"Image",j=P>1?"s":"";return`<p class="cnf:m-0"><span style="white-space: pre-wrap;">${W}${j} added.</span></p>`},w=P=>{const I=Array.from(P).map((W,j)=>Sk(W,m.length+j+1));g(W=>[...W,...I])},A=P=>{g(I=>I.filter(W=>W.originFile!==P))},_=P=>{u(P)},S=async()=>{if(!m.length&&Ha(c)||!o)return;m.length>0&&g([]);const P=hu.sanitize(c);l(""),h(I=>I+1),await b({action:"add",comment:m.length>0&&Ha(c)?x():P,username:y||"",commentType:f,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,hasAssets:m.length>0,taskInstanceId:o,taskVerified:a,attachments:m}),u(dt.INFO)},E=async P=>{o&&await b({username:y||"",action:"delete",taskVerified:!1,taskInstanceId:o,commentId:P})},N=async({commentId:P,comment:I,commentType:W,hasAssets:j,isAlreadyVerified:z})=>{o&&await b({action:"edit",username:y||"",...I&&{comment:I},taskInstanceId:o,commentId:P,hasAssets:j,taskVerified:z,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,commentType:W})};return T.useLayoutEffect(()=>{p.current&&n&&!i&&e.length>0&&(p.current.scrollTop=p.current.scrollHeight)},[n,i,e.length]),v.jsxs("div",{className:xe("cnf:transition-all cnf:duration-300 cnf:fixed cnf:bg-white cnf:right-0 cnf:bottom-0 cnf:h-[100vh] cnf:z-[9999999998] cnf:flex cnf:flex-col cnf:min-w-[270px] cnf:max-w-[420px] cnf:w-[calc(100vw-1rem)] cnf:border cnf:border-gray-200 cnf:rounded-t-sm cnf:overflow-hidden",n?"cnf:translate-y-0 cnf:opacity-100":"cnf:translate-y-full cnf:opacity-0 cnf:pointer-events-none"),children:[v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:justify-between cnf:gap-2 cnf:border-b cnf:border-gray-200 cnf:px-2 cnf:py-4 cnf:w-full",children:[v.jsx("h6",{className:"cnf:font-semibold cnf:text-gray-900 cnf:truncate cnf:max-w-[300px]",children:r}),v.jsx(je,{color:"grayLight",size:"smallCollapse",rounded:"none",title:"Close comment box",onClick:t,children:v.jsx(Ce,{icon:Uc,className:"cnf:size-4 cnf:text-gray-300"})})]}),v.jsxs("div",{ref:p,className:"cnf:flex cnf:flex-col cnf:flex-1 cnf:overflow-y-auto",children:[v.jsxs("div",{className:"cnf:flex cnf:flex-col cnf:justify-end cnf:flex-1 cnf:gap-4 cnf:p-4 cnf:pb-[102px]",children:[i&&v.jsx("div",{className:"cnf:flex cnf:flex-col cnf:gap-3",children:[1,2,3].map(P=>v.jsx("div",{className:"cnf:h-16 cnf:animate-pulse cnf:rounded-lg cnf:bg-gray-100"},P))}),(e==null?void 0:e.length)>0&&!i&&e.map(P=>v.jsx(B5,{username:y||"",onDelete:()=>E(P.commentId),onEdit:(I,W)=>N({commentId:P.commentId,comment:I,commentType:W,hasAssets:P.hasAssets,isAlreadyVerified:P.taskVerified}),...P},P.commentId)),(e==null?void 0:e.length)===0&&!i&&v.jsxs("div",{className:"cnf:flex cnf:flex-1 cnf:flex-col cnf:items-center cnf:justify-end cnf:gap-3 cnf:text-center cnf:mb-1",children:[v.jsx("img",{src:_k,className:"cnf:opacity-70",alt:"Empty"}),v.jsx("p",{className:"cnf:text-gray-400",children:"There is no discussion in this Task."})]})]}),v.jsx(I1,{attachments:m,onChange:l,containerClassName:"cnf:fixed cnf:bottom-0 cnf:left-0 cnf:right-0 cnf:bg-white",clearKey:d,commentType:f,onCommentTypeChange:_,onAddAttachments:w,onRemoveAttachment:A,onSubmit:S,isOpen:n,actions:v.jsx(je,{category:"link",size:"normalCollapse",title:"Send comment",onClick:S,disabled:Ha(c)&&m.length===0,children:v.jsx(Ce,{icon:tk})})})]})]})},Ju=T.createContext({comments:[],openTaskDetails:null,username:void 0,setOpenTaskDetails:()=>{},prefetchQuery:e=>{}}),R1=()=>{if(!T.useContext(Ju))throw new Error("useCommentContext must be used within a CommentProvider");return T.useContext(Ju)},W5=({playbookInstanceId:e,children:t,username:n})=>{const[r,o]=T.useState({taskInstanceId:null,taskName:"",taskVerification:!1}),{taskInstanceId:i,taskName:s,taskVerification:a}=r||{taskInstanceId:null,taskName:"",taskVerification:!1},{comments:c,isLoading:l,prefetchQuery:f}=Pk({taskInstanceId:i||0,enabled:i!==null,username:n});return v.jsxs(Ju.Provider,{value:{comments:c,openTaskDetails:r,setOpenTaskDetails:o,prefetchQuery:f,username:n},children:[t,Wt.createPortal(v.jsxs("div",{id:"cnfdnc-comment-box-root",children:[v.jsx("style",{children:Oc}),v.jsx("div",{className:"confidence-playbook",children:v.jsx(U5,{playbookInstanceId:e,comments:c,onClose:()=>o(null),isOpen:!!i,taskName:s,taskInstanceId:i,isLoading:l,taskVerification:a})})]}),nk)]})},K5={[Ue.OPEN]:"cnf:border-[#C1C5C8] cnf:bg-[#F0F1F2]",[Ue.IN_PROGRESS]:"cnf:bg-[#E6F2FF] cnf:border-[#94C8FF]",[Ue.IN_REVIEW]:"cnf:bg-[#EAF6EC] cnf:border-[#A5DAB1]",[Ue.COMPLETED]:"cnf:bg-[#EAF6EC] cnf:border-[#A5DAB1]"},Kn={PHOTO:"photo",SCREENSHOT:"screenshot",COMMENT:"comment",NO_VERIFICATION:null},H5=({task:e,step:t,playbookType:n,onButtonClick:r,viewMode:o="card",canStart:i=!1,isExpanded:s=!1,toggleExpanded:a,playbookId:c,taskStyle:l,listStickyTopBase:f})=>{const[u,d]=T.useState(!1),{taskDetails:h,prefetchQuery:m}=iS({taskId:e.taskId,playbookId:c,enabled:s}),{setOpenTaskDetails:g,prefetchQuery:p}=R1(),{buttons:y}=f2({taskStatus:e.workflowStatus,canStart:i}),b=T.useMemo(()=>e.imageRequired===0?Kn.NO_VERIFICATION:e.imageRequired===1?Kn.SCREENSHOT:e.imageRequired===2?Kn.PHOTO:e.imageRequired===4?Kn.COMMENT:null,[e.imageRequired]),x=async w=>{try{d(!0),await r(w)}finally{d(!1)}};if(o==="list"){const w=T.useMemo(()=>e.workflowStatus===Ue.COMPLETED?"success":e.workflowStatus===Ue.IN_PROGRESS?"primary":"default",[e.workflowStatus]),A=T.useMemo(()=>{const _=[];return y.forEach(S=>{S==="START"&&_.push({id:"START",color:"primary",action:"Start",to:Ue.IN_PROGRESS}),S==="COMPLETE"&&(!e.taskVerified&&b===Kn.COMMENT&&_.push({id:"ADD_COMMENT",color:"danger",action:"Add Comment",to:"Required"}),_.push({id:"COMPLETE",color:"success",action:"Complete",to:Ue.COMPLETED,disabled:!e.taskVerified&&b===Kn.COMMENT}))}),_},[y,b,e.taskVerified]);return v.jsxs("div",{className:xe("cnf:flex cnf:flex-col"),children:[v.jsxs("div",{className:xe("cnf:flex cnf:items-center cnf:gap-3 cnf:p-2 cnf:border-gray-200",e.sequenceOrder>0&&"cnf:border-t",s&&"cnf:bg-white cnf:rounded-md cnf:border cnf:border-t-none cnf:shadow-sm cnf:sticky"),style:{top:s?f:0},children:[v.jsx("div",{className:"cnf:text-gray-200 cnf:text-base",children:e.sequenceOrder+1}),v.jsx("div",{onClick:()=>{a==null||a(!s)},onMouseOver:m,className:xe("cnf:flex-1 cnf:truncate cnf:cursor-pointer",s&&"cnf:font-medium",e.workflowStatus===Ue.COMPLETED&&"cnf:text-secondary-400 cnf:line-through"),style:{color:e.workflowStatus===Ue.IN_PROGRESS&&(l==null?void 0:l.titleColor)||"#1C232D"},children:e.taskInstanceName}),v.jsx(DS,{taskVerified:e.taskVerified,verificationType:b,title:e.workflowStatus,variant:w,transitions:A,onClick:_=>{if(_===di.ADD_COMMENT){g({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!0});return}r(_)}}),v.jsx(op,{onMouseOver:()=>p(e.taskInstanceId),commentsCount:(e==null?void 0:e.numberOfComments)||0,commentType:(e==null?void 0:e.recentCommentType)||dt.INFO,onClick:()=>g({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!1})})]}),(h==null?void 0:h.description)&&v.jsx("div",{className:xe(!s&&"cnf:hidden","cnf:border-gray-200 cnf:border cnf:p-2 cnf:mx-4 cnf:mb-4 cnf:border-t-none cnf:-mt-[1px] cnf:bg-gray-100 cnf:rounded-b-md"),children:v.jsx(rp,{description:(h==null?void 0:h.description)||""})})]})}return v.jsxs("div",{className:Ns("cnf:flex cnf:items-stretch cnf:rounded-sm cnf:overflow-hidden cnf:border",K5[e.workflowStatus]),children:[v.jsx($S,{playbookType:n,status:e.workflowStatus,step:t}),v.jsxs("div",{className:"cnf:flex cnf:w-full cnf:flex-col cnf:overflow-x-hidden cnf:flex-1 cnf:p-2",children:[n==="Sequential"&&v.jsx("div",{className:"cnf:-mb-3 cnf:self-end cnf:pr-2 cnf:pt-2",children:v.jsx(Kb,{status:e.workflowStatus})}),v.jsxs("div",{className:"cnf:space-y-2 cnf:divide-y cnf:divide-black/10 cnf:flex cnf:flex-col cnf:flex-1",children:[v.jsx("div",{className:xe("cnf:text-lg cnf:font-medium cnf:flex-1 cnf:pb-1"),style:{color:e.workflowStatus==="Completed"?"#1C232D":(l==null?void 0:l.titleColor)||"#1C232D"},children:e.taskInstanceName}),b?v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:gap-2 cnf:text-sm cnf:pb-2",children:[v.jsx(Ce,{icon:Yy,className:"cnf:size-4"}),v.jsxs("div",{children:[v.jsx("span",{className:"cnf:font-medium",children:b===Kn.PHOTO?"Photo":b===Kn.SCREENSHOT?"Screenshot":"Comment"})," ","required"]})]}):v.jsx(v.Fragment,{})]}),(h==null?void 0:h.description)&&v.jsx("div",{className:xe(!s&&"cnf:hidden"),children:v.jsx(rp,{description:(h==null?void 0:h.description)||""})}),(y.length>0||e.hasDescription)&&v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:justify-end cnf:gap-4 cnf:border-t cnf:border-black/10 cnf:pt-2",children:[v.jsx("div",{className:"cnf:flex-1",children:v.jsx(sS,{buttons:y,onButtonClick:x,disabled:u})}),v.jsx(op,{onMouseOver:()=>p(e.taskInstanceId),commentsCount:(e==null?void 0:e.numberOfComments)||0,commentType:(e==null?void 0:e.recentCommentType)||dt.INFO,onClick:()=>g({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!1})}),a&&v.jsx(je,{size:"smallCollapse",onMouseOver:m,category:"link",onClick:()=>{a()},title:s?"Hide task description":"Show task description",children:v.jsx(Ce,{icon:Jy,className:Ns("cnf:cursor-pointer cnf:text-[#0069D9]",s?"cnf:rotate-180":"")})})]})]})]})},D1=T.forwardRef(({title:e,className:t,playbookStyle:n,...r},o)=>{var i,s,a;return v.jsx("div",{ref:o,className:xe("cnf:border-b cnf:border-gray-200 cnf:flex cnf:items-center",t),style:{backgroundColor:((i=n==null?void 0:n.whiteLabel)==null?void 0:i.titleBackgroundColor)||"#f8f9fa"},...r,children:v.jsx("div",{className:xe("cnf:text-xl cnf:min-h-16 cnf:p-4 cnf:font-medium cnf:flex-1",{"cnf:text-dark":!((s=n==null?void 0:n.whiteLabel)!=null&&s.titleTextColor)}),style:{color:(a=n==null?void 0:n.whiteLabel)==null?void 0:a.titleTextColor},children:e})})});D1.displayName="PlaybookHeader";const q5=Oc.replace(/:root,\s*:host/g,":host"),V5=({playbookInstanceId:e,playbookMode:t,playbookStyle:n,defaultExpanded:r=!0,username:o})=>{const{isEmbedded:i}=Nc(),{playbook:s,actions:a}=c2(e,o??"");if(!s)return v.jsx("div",{});const c=async(l,f)=>{var u,d;if(l===di.COMPLETE){const h=(u=s.tasks.find(m=>m.taskInstanceId===f))==null?void 0:u.sequenceOrder;if(h===void 0){console.error("Task not found in playbook");return}return a.completeTask(f,h)}if(l===di.START){const h=(d=s.tasks.find(m=>m.taskInstanceId===f))==null?void 0:d.sequenceOrder;if(h===void 0){console.error("Task not found in playbook");return}return a.startTask(f,h)}};return v.jsx("div",{className:xe("confidence-playbook",i&&"cnf:flex cnf:flex-col cnf:flex-1 cnf:min-h-0"),children:v.jsx(F1,{playbook:s,playbookMode:t,onTaskButtonClick:c,playbookStyle:n,defaultExpanded:r})})},Y5=({className:e,children:t,numberOfTasks:n,playbookMode:r})=>v.jsxs("div",{className:xe("cnf:w-full cnf:p-4",e),children:[n&&v.jsxs("div",{className:xe(r==="card"&&"cnf:mb-4"),children:[v.jsx("span",{className:"cnf:font-medium",children:"Tasks"})," (",n,")"]}),v.jsx("div",{className:xe(r==="card"&&"cnf:space-y-4"),children:t})]}),F1=({playbook:e,playbookMode:t,onTaskButtonClick:n,playbookStyle:r,defaultExpanded:o=!0})=>{var x,w,A,_,S;const{isEmbedded:i}=Nc(),{playbookInstanceName:s,tasks:a}=e,c=T.useRef(null),[l,f]=T.useState(0),[u,d]=T.useState(()=>{const E=eA(e.playbookInstanceId);return E!==null?E:o}),h=()=>{d(E=>{const N=!E;return X2(e.playbookInstanceId,N),N})},{isTaskExpanded:m,toggleTaskExpanded:g,isAtLeastOneTaskExpanded:p}=U0(e.playbookInstanceId,{onTaskExpanded:()=>{var E;f(((E=c.current)==null?void 0:E.offsetHeight)||0)}});T.useEffect(()=>{if(p){if(!c.current)throw new Error("Playbook header ref is not set");new ResizeObserver(N=>{var P;for(const I of N)I.contentRect&&f(((P=c.current)==null?void 0:P.offsetHeight)||0)}).observe(c.current)}return()=>{c.current&&new ResizeObserver(()=>{}).unobserve(c.current)}},[p]);const y=T.useMemo(()=>{const E=a.filter(N=>N.workflowStatus===Ue.COMPLETED).sort((N,P)=>P.sequenceOrder-N.sequenceOrder)[0];return E?E.sequenceOrder+1:0},[a]),b=v.jsxs("div",{className:xe("cnf:flex cnf:flex-col cnf:flex-1 cnf:bg-gray-50 cnf:min-h-0 cnf:overflow-auto",!i&&(r==null?void 0:r.overlay)&&"cnf:border cnf:border-gray-200 cnf:shadow-2xl cnf:rounded-t-sm"),children:[v.jsx(D1,{title:s,className:xe("cnf:top-0 cnf:sticky cnf:z-2"),playbookStyle:r,ref:c}),v.jsx(Y5,{playbookMode:t,numberOfTasks:e.numberofTasks,children:a.map((E,N)=>{var P;return v.jsx(H5,{task:E,step:N+1,viewMode:t,playbookId:e.playbookId,canStart:E.sequenceOrder===y,onButtonClick:I=>n(I,E.taskInstanceId),playbookType:"Non-Sequential",taskStyle:{titleColor:(P=r==null?void 0:r.whiteLabel)==null?void 0:P.primaryColor},isExpanded:m(E.taskInstanceId),toggleExpanded:()=>g(E.taskInstanceId),listStickyTopBase:l||104},E.taskId)})})]});return i?v.jsx("div",{className:"confidence-playbook cnf:flex cnf:flex-col cnf:flex-1 cnf:min-h-0",children:b}):v.jsxs("div",{className:xe(!(r!=null&&r.overlay)&&"cnf:min-h-screen",(r==null?void 0:r.overlay)&&"cnf:fixed cnf:bottom-0 cnf:z-[9999999997] cnf:flex","cnf:transition-all cnf:duration-300 cnf:ease-in-out "),...(r==null?void 0:r.overlay)&&{style:{width:"100%",maxWidth:u?((x=r.overlay.size)==null?void 0:x.width)||450:"2.25rem",height:((w=r.overlay.size)==null?void 0:w.height)||"calc(100vh - 4rem)",maxHeight:"calc(100vh - 4rem)",right:((A=r.overlay.offset)==null?void 0:A.right)!==void 0?r.overlay.offset.right:r.overlay.position==="right"?32:void 0,left:((_=r.overlay.offset)==null?void 0:_.left)!==void 0?r.overlay.offset.left:r.overlay.position==="left"?32:void 0}},children:[(r==null?void 0:r.overlay)&&v.jsx("button",{type:"button",onClick:h,className:xe("cnf:size-9 cnf:relative cnf:p-1 cnf:top-3 cnf:z-[9999999997] cnf:border-none cnf:rounded-l-sm cnf:cursor-pointer"),style:{backgroundColor:((S=r==null?void 0:r.whiteLabel)==null?void 0:S.primaryColor)||"#007BFF",boxShadow:"0px 3px 3px 0px #00000040"},children:v.jsx("img",{src:td,alt:"Confidence Logo",className:"cnf:w-full cnf:h-full cnf:object-contain"})}),b]})},Q5=({email:e,playbookId:t,playbookMode:n,playbookStyle:r,bank:o="public-sdk",timezone:i="America/Los_Angeles",persistKey:s,playbookInstanceId:a,defaultExpanded:c=!0})=>{const[l,f]=T.useState(null);return T.useEffect(()=>{(async()=>{const u=ay(t,s);if(a){f(a);return}if(u&&u.email===e){f(u.playbookInstanceId);return}const{playbookInstanceId:d,errorCode:h,details:m,message:g}=await K0({bank:o,email:e,timezone:i,playbookUid:t})||{};if(h)throw new Error(`Error initiating playbook: ${g} (Code: ${h}) - Details: ${m}`);if(!d)throw new Error("No playbook instance ID returned from initiation");sy(t,d,e,s),f(d)})()},[a]),l?v.jsx(nn,{playbookInstanceId:l,playbookMode:n,playbookStyle:r,username:e,defaultExpanded:c}):v.jsx("div",{children:"Loading..."})},G5=({playbookId:e,playbookMode:t="list",playbookStyle:n,btnLabel:r="Start Playbook",btnColor:o="primary",persistKey:i,onSetUsername:s,onSetPlaybookInstanceId:a,playbookInstanceId:c,username:l,defaultExpanded:f=!0,renderPlaybook:u})=>{const{isEmbedded:d}=Nc(),[h,m]=T.useState(void 0),[g,p]=T.useState(null),y=c??g,b=l??h,x=T.useCallback(_=>{d&&a?a(_):p(_)},[d,a]),w=T.useCallback(_=>{d&&s?s(_):m(_)},[d,s]);T.useEffect(()=>{const _=ay(e,i);_&&(x(_.playbookInstanceId),w(_.email))},[e,i,x,w]);const A=y!=null?v.jsx(nn,{playbookInstanceId:y,playbookMode:t,playbookStyle:n,username:b,defaultExpanded:f}):null;return v.jsxs(v.Fragment,{children:[v.jsxs($r.div,{children:[v.jsx(u_,{playbookId:e,disabled:!!y,onInitiated:(_,S)=>{sy(e,_,S,i),x(_),w(S)},btnLabel:r,btnColor:o}),v.jsx("style",{type:"text/css",children:q5})]}),u?u(A):A]})},nn=({playbookInstanceId:e,playbookMode:t,playbookStyle:n,username:r,defaultExpanded:o=!0})=>{const{isEmbedded:i}=Nc(),s=v.jsx(W5,{playbookInstanceId:e,username:r,children:v.jsx(V5,{playbookInstanceId:e,playbookMode:t,playbookStyle:n,defaultExpanded:o,username:r})});return i?s:v.jsx(cd,{children:s})};nn.Context=cd;nn.View=F1;nn.AutoInstantiated=Q5;nn.WithInstantiateButton=G5;const Z5=({onClick:e,username:t})=>v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:justify-between cnf:w-full cnf:gap-8",children:[v.jsx("div",{className:"cnf:flex cnf:items-center cnf:gap-2",children:v.jsxs(je,{color:"primary",category:"link",size:"none",className:"cnf:text-sm",onClick:e,children:[v.jsx(Ce,{icon:L_,className:"cnf:text-primary-600 cnf:mr-2"}),"My Playbooks"]})}),v.jsx("span",{className:"cnf:text-sm cnf:font-medium cnf:text-secondary",children:t})]}),J5=({playbookName:e,status:t,lastUpdated:n,avatarSrc:r,onClick:o})=>v.jsx("li",{className:"cnf:list-none",children:v.jsxs("button",{className:"cnf:flex cnf:px-2 cnf:py-1 cnf:rounded-md cnf:items-center cnf:gap-4 cnf:w-full cnf:cursor-pointer cnf:focus:outline-2 cnf:focus:outline-primary-600 cnf:hover:bg-gray-200",type:"button",onClick:o,children:[v.jsx("div",{className:"cnf:w-16 cnf:h-16",children:v.jsx("img",{src:r??kv,alt:e,className:"cnf:rounded-md cnf:object-cover cnf:size-full cnf:border cnf:border-2 cnf:border-primary-600"})}),v.jsxs("div",{className:"cnf:flex cnf:flex-col cnf:gap-1",children:[v.jsx("p",{className:"cnf:font-semibold cnf:text-sm cnf:text-black cnf:text-left",children:e}),v.jsx("div",{children:v.jsx(Kb,{status:t,category:"solid",className:"cnf:w-fit"})}),v.jsxs("p",{className:"cnf:text-sm cnf:text-gray-500 cnf:text-left",children:["Last updated:"," ",new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric"}).format(new Date(n))]})]})]})}),X5=({playbooks:e,onPlaybookClick:t})=>v.jsxs("div",{children:[v.jsxs("div",{className:"cnf:p-3",children:[v.jsx("h2",{className:"cnf:text-2xl cnf:font-semibold cnf:text-black",children:"My Playbooks"}),v.jsx("p",{className:"cnf:text-sm cnf:text-gray-500",children:"View your playbooks that are not started, in progress or completed."})]}),v.jsx("ul",{className:"cnf:flex cnf:flex-col cnf:gap-4 cnf:list-none cnf:bg-gray-100 cnf:px-2 cnf:py-4 cnf:h-[calc(100vh-10rem)] cnf:overflow-y-auto",children:e.map(n=>v.jsx(J5,{playbookName:n.playbookInstanceName,status:n.status,lastUpdated:n.modifiedDate,avatarSrc:n.logo,onClick:()=>t(n.playbookInstanceId)},n.playbookInstanceId))})]});var Xu=new Map,Da=new WeakMap,o0=0,eO;function tO(e){return e?(Da.has(e)||(o0+=1,Da.set(e,o0.toString())),Da.get(e)):"0"}function nO(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?tO(e.root):e[t]}`).toString()}function rO(e){const t=nO(e);let n=Xu.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(s=>{s.forEach(a=>{var c;const l=a.isIntersecting&&o.some(f=>a.intersectionRatio>=f);e.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=l),[...(c=r.get(a.target))!=null?c:[]].forEach(f=>{f(l,a)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},Xu.set(t,n)}return n}function oO(e,t,n={},r=eO){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const c=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:c,intersectionRect:c,rootBounds:c}),()=>{}}const{id:o,observer:i,elements:s}=rO(n),a=s.get(e)||[];return s.has(e)||s.set(e,a),a.push(t),i.observe(e),function(){a.splice(a.indexOf(t),1),a.length===0&&(s.delete(e),i.unobserve(e)),s.size===0&&(i.disconnect(),Xu.delete(o))}}function iO({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:s,initialInView:a,fallbackInView:c,onChange:l}={}){var f;const[u,d]=C.useState(null),h=C.useRef(l),m=C.useRef(a),[g,p]=C.useState({inView:!!a,entry:void 0});h.current=l,C.useEffect(()=>{if(m.current===void 0&&(m.current=a),s||!u)return;let w;return w=oO(u,(A,_)=>{const S=m.current;m.current=A,!(S===void 0&&!A)&&(p({inView:A,entry:_}),h.current&&h.current(A,_),_.isIntersecting&&i&&w&&(w(),w=void 0))},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},c),()=>{w&&w()}},[Array.isArray(e)?e.toString():e,u,o,r,i,s,n,c,t]);const y=(f=g.entry)==null?void 0:f.target,b=C.useRef(void 0);!u&&y&&!i&&!s&&b.current!==y&&(b.current=y,p({inView:!!a,entry:void 0}),m.current=a);const x=[d,g.inView,g.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}const sO=(e,t,n)=>{var r,o,i,s,a;return{width:"100%",maxWidth:t?((o=(r=n==null?void 0:n.overlay)==null?void 0:r.size)==null?void 0:o.width)||450:"2.25rem",height:((i=e==null?void 0:e.size)==null?void 0:i.height)??"calc(100vh - 4rem)",maxHeight:"calc(100vh - 4rem)",right:((s=e==null?void 0:e.offset)==null?void 0:s.right)!==void 0?e.offset.right:(e==null?void 0:e.position)==="right"?32:void 0,left:((a=e==null?void 0:e.offset)==null?void 0:a.left)!==void 0?e.offset.left:(e==null?void 0:e.position)==="left"?32:void 0}},aO=({onClick:e,playbookStyle:t})=>{var n;return v.jsx("button",{type:"button",onClick:e,className:xe("cnf:size-9 cnf:relative cnf:p-1 cnf:top-3 cnf:z-[9999999997] cnf:border-none cnf:rounded-l-sm cnf:cursor-pointer"),style:{backgroundColor:((n=t==null?void 0:t.whiteLabel)==null?void 0:n.primaryColor)||"#007BFF",boxShadow:"0px 3px 3px 0px #00000040"},children:v.jsx("img",{src:td,alt:"Confidence Logo",className:"cnf:w-full cnf:h-full cnf:object-contain"})})},cO=({username:e,onSetPlaybookInstanceId:t,playbookMode:n="list",playbookStyle:r,initialListOpen:o=!0,children:i})=>{const[s,a]=T.useState(o),[c,l]=T.useState(!0),f=()=>l(!c),{myPlaybooks:u,fetchNextPage:d,hasNextPage:h,isFetchingNextPage:m}=s2({username:e??""}),{ref:g,inView:p}=iO({rootMargin:"200px"}),y=!!(r!=null&&r.overlay),b=r==null?void 0:r.overlay,x=y&&b?sO(b,c,r):void 0,w=y&&b?v.jsx(aO,{onClick:f,playbookStyle:r}):null;T.useEffect(()=>{p&&h&&!m&&d()},[p,h,d,m]);const A=v.jsxs("div",{className:xe("cnf:flex cnf:flex-col cnf:flex-1 cnf:min-h-0 cnf:bg-gray-50",y&&"cnf:border cnf:border-gray-200 cnf:shadow-2xl cnf:rounded-t-sm cnf:overflow-hidden"),children:[n==="list"&&!s&&v.jsx("div",{className:"cnf:shrink-0 cnf:border-b cnf:border-gray-200 cnf:px-4 cnf:py-2",children:v.jsx(Z5,{username:e,onClick:()=>a(_=>!_)})}),v.jsxs("div",{className:"cnf:flex cnf:flex-col cnf:flex-1 cnf:min-h-0",children:[v.jsxs("div",{className:xe("cnf:flex-1 cnf:overflow-auto cnf:text-secondary",!s&&"cnf:hidden"),children:[v.jsx(X5,{playbooks:u??[],onPlaybookClick:_=>{t==null||t(_),a(!1)}}),v.jsx("div",{ref:g})]}),v.jsx("div",{className:xe("cnf:flex cnf:flex-col cnf:flex-1 cnf:min-h-0",s&&"cnf:hidden"),children:v.jsx($0,{value:{isEmbedded:!0},children:i})})]})]});return y?v.jsxs("div",{className:"confidence-playbook cnf:fixed cnf:bottom-0 cnf:z-[9999999997] cnf:flex cnf:transition-all cnf:duration-300 cnf:ease-in-out",style:x,children:[w,A]}):v.jsx("div",{className:"confidence-playbook cnf:flex cnf:min-h-screen cnf:flex-col",children:A})},Ah=e=>v.jsx(cd,{children:v.jsx(cO,{...e})}),fa=({username:e,playbookMode:t="list",playbookStyle:n})=>{const[r,o]=T.useState(null);return v.jsx(Ah,{username:e,playbookMode:t,playbookStyle:n,onSetPlaybookInstanceId:o,children:r!=null&&v.jsx(nn,{playbookInstanceId:r,playbookMode:t,playbookStyle:n,username:e})})},lO=({playbookId:e,playbookMode:t="list",playbookStyle:n,btnLabel:r="Start Playbook",btnColor:o="primary",persistKey:i})=>{const[s,a]=T.useState(null),[c,l]=T.useState(void 0);return v.jsx($0,{value:{isEmbedded:!0},children:v.jsx(nn.WithInstantiateButton,{playbookId:e,playbookMode:t,playbookStyle:n,btnLabel:r,btnColor:o,persistKey:i,onSetUsername:l,onSetPlaybookInstanceId:a,playbookInstanceId:s,username:c,renderPlaybook:f=>s==null?null:v.jsx(Ah,{username:c,playbookMode:t,playbookStyle:n,onSetPlaybookInstanceId:a,initialListOpen:!1,children:f},s)})})},fO=({playbookId:e,playbookMode:t="list",playbookStyle:n,persistKey:r,username:o,bank:i="public-sdk",timezone:s="America/Los_Angeles"})=>{const[a,c]=T.useState(null);return v.jsx(Ah,{username:o,playbookMode:t,playbookStyle:n,onSetPlaybookInstanceId:c,children:v.jsx(nn.AutoInstantiated,{bank:i,timezone:s,playbookId:e,playbookMode:t,playbookStyle:n,persistKey:r,email:o??"",playbookInstanceId:a},a)})};fa.WithInstantiateButton=lO;fa.AutoInstantiated=fO;const os=Oc.replace(/:root,\s*:host/g,":host"),Vr=e=>Wt.createPortal(v.jsxs($r.div,{style:{position:"relative",zIndex:2147483646},children:[v.jsx("style",{children:os}),v.jsx(nn,{...e})]}),document.body),uO=e=>Wt.createPortal(v.jsxs($r.div,{style:{position:"relative",zIndex:2147483646},children:[v.jsx("style",{children:os}),v.jsx(fa,{...e})]}),document.body),j1=e=>Wt.createPortal(v.jsxs($r.div,{style:{position:"relative",zIndex:2147483646},children:[v.jsx("style",{children:os}),v.jsx(fa.AutoInstantiated,{...e})]}),document.body),dO=e=>v.jsxs($r.div,{children:[v.jsx("style",{children:os}),v.jsx(fa.WithInstantiateButton,{...e})]}),hO=e=>Wt.createPortal(v.jsxs($r.div,{style:{position:"relative",zIndex:2147483646},children:[v.jsx("style",{children:os}),v.jsx(nn.AutoInstantiated,{...e})]}),document.body),mO=e=>Wt.createPortal(v.jsxs($r.div,{style:{position:"relative",zIndex:2147483646},children:[v.jsx("style",{children:os}),v.jsx(nn.WithInstantiateButton,{...e})]}),document.body);Vr.AutoInstantiated=hO;Vr.WithInstantiateButton=mO;const pO=uO;Vr.EmbeddedLayout=pO;Vr.EmbeddedLayout.WithInstantiateButton=dO;Vr.AutoInstantiatedEmbeddedLayout=j1;Vr.EmbeddedLayout.AutoInstantiated=j1;const gO=Vr.EmbeddedLayout;exports.ConfidencePlaybook=Vr;exports.EmbeddedLayout=gO;
606
+ `?l.insertParagraph():f===" "?l.insertNodes([ia()]):l.insertText(f)}}}else t.insertRawText(s)}function Gg(e,t,n){e.dispatchCommand(XT,{nodes:t,selection:n})||(n.insertNodes(t),(function(r){if(B(r)&&r.isCollapsed()){const o=r.anchor;let i=null;const s=ir(o,"previous");if(s)if(Ir(s))i=s.origin;else{const a=$r(s,hn(We(),"next").getFlipped());for(const c of a){if(X(c.origin)){i=c.origin;break}if(R(c.origin)&&!c.origin.isInline())break}}if(i&&X(i)){const a=i.getFormat(),c=i.getStyle();r.format===a&&r.style===c||(r.format=a,r.style=c,r.dirty=!0)}}})(n))}function $1(e,t,n,r=[]){let o=t===null||n.isSelected(t);const i=R(n)&&n.excludeFromCopy("html");let s=n;t!==null&&X(s)&&(s=l1(t,s,"clone"));const a=R(s)?s.getChildren():[],c=(function(l){const f=l.exportJSON(),u=l.constructor;if(f.type!==u.getType()&&Tc(58,u.name),R(l)){const d=f.children;Array.isArray(d)||Tc(59,u.name)}return f})(s);X(s)&&s.getTextContentSize()===0&&(o=!1);for(let l=0;l<a.length;l++){const f=a[l],u=$1(e,t,f,c.children);!o&&R(n)&&u&&n.extractWithChild(f,t,"clone")&&(o=!0)}if(o&&!i)r.push(c);else if(Array.isArray(c.children))for(let l=0;l<c.children.length;l++){const f=c.children[l];r.push(f)}return o}function c5(e,t){const n=[],r=We().getChildren();for(let o=0;o<r.length;o++)$1(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}function l5(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=L6(r);X(o)&&hN(o),t.push(o)}return t}let ii=null;async function Qg(e,t,n){if(ii!==null)return!1;if(t!==null)return new Promise((l,f)=>{e.update(()=>{l(Zg(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,s=tn(o);if(r===null||s===null)return!1;const a=i.createElement("span");a.style.cssText="position: fixed; top: -1000px;",a.append(i.createTextNode("#")),r.append(a);const c=new Range;return c.setStart(a,0),c.setEnd(a,1),s.removeAllRanges(),s.addRange(c),new Promise((l,f)=>{const u=e.registerCommand(il,d=>(Or(d,ClipboardEvent)&&(u(),ii!==null&&(o.clearTimeout(ii),ii=null),l(Zg(e,d,n))),!0),Fx);ii=o.setTimeout(()=>{u(),ii=null,l(!1)},50),i.execCommand("copy"),a.remove()})}function Zg(e,t,n){if(n===void 0){const o=tn(e._window),i=Z();if(!i||i.isCollapsed()||!o)return!1;const s=o.anchorNode,a=o.focusNode;if(s!==null&&a!==null&&!ca(e,s,a))return!1;n=f5(i)}t.preventDefault();const r=t.clipboardData;return r!==null&&(u5(r,n),!0)}const B1=[["text/html",s5],["application/x-lexical-editor",a5]];function f5(e=Z()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=uh();for(const[r,o]of B1){const i=o(n,e);i!==null&&(t[r]=i)}}return t}function u5(e,t){for(const[n]of B1)t[n]===void 0&&e.setData(n,"");for(const n in t){const r=t[n];r!==void 0&&e.setData(n,r)}}function Jg(e,t){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(e,t);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(e,t);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const Vo=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,d5=Vo&&"documentMode"in document?document.documentMode:null,h5=Vo&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),m5=!(!Vo||!("InputEvent"in window)||d5)&&"getTargetRanges"in new window.InputEvent("input"),p5=Vo&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Xg=Vo&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,g5=Vo&&/^(?=.*Chrome).*/i.test(navigator.userAgent),y5=Vo&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&h5&&!g5,e0=he("DRAG_DROP_PASTE_FILE");function ja(e){let t=null;if(Or(e,DragEvent)?t=e.dataTransfer:Or(e,ClipboardEvent)&&(t=e.clipboardData),t===null)return[!1,[],!1];const n=t.types,r=n.includes("Files"),o=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),o]}function t0(e){const t=Z();if(!B(t))return!1;const n=new Set,r=t.getNodes();for(let o=0;o<r.length;o++){const i=r[o],s=i.getKey();if(n.has(s))continue;const a=ct(i,l=>R(l)&&!l.isInline());if(a===null)continue;const c=a.getKey();a.canIndent()&&!n.has(c)&&(n.add(c),e(a))}return n.size>0}function n0(e){const t=$i(e);return Te(t)}function pf(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function b5(e){return mn(e.registerCommand(Hd,t=>{const n=Z();return!!it(n)&&(n.clear(),!0)},Ae),e.registerCommand(wo,t=>{const n=Z();return B(n)?(n.deleteCharacter(t),!0):!!it(n)&&(n.deleteNodes(),!0)},Ae),e.registerCommand(zs,t=>{const n=Z();return!!B(n)&&(n.deleteWord(t),!0)},Ae),e.registerCommand($s,t=>{const n=Z();return!!B(n)&&(n.deleteLine(t),!0)},Ae),e.registerCommand(vi,t=>{const n=Z();if(typeof t=="string")n!==null&&n.insertText(t);else{if(n===null)return!1;const r=t.dataTransfer;if(r!=null)Yg(r,n,e);else if(B(n)){const o=t.data;return o&&n.insertText(o),!0}}return!0},Ae),e.registerCommand(Nu,()=>{const t=Z();return!!B(t)&&(t.removeText(),!0)},Ae),e.registerCommand(kn,t=>{const n=Z();return!!B(n)&&(n.formatText(t),!0)},Ae),e.registerCommand(o6,t=>{const n=Z();if(!B(n)&&!it(n))return!1;const r=n.getNodes();for(const o of r){const i=ct(o,s=>R(s)&&!s.isInline());i!==null&&i.setFormat(t)}return!0},Ae),e.registerCommand(bi,t=>{const n=Z();return!!B(n)&&(n.insertLineBreak(t),!0)},Ae),e.registerCommand(js,()=>{const t=Z();return!!B(t)&&(t.insertParagraph(),!0)},Ae),e.registerCommand(n6,()=>(Ox([ia()]),!0),Ae),e.registerCommand(r6,()=>t0(t=>{const n=t.getIndent();t.setIndent(n+1)}),Ae),e.registerCommand(Hp,()=>t0(t=>{const n=t.getIndent();n>0&&t.setIndent(Math.max(0,n-1))}),Ae),e.registerCommand(rx,t=>{const n=Z();if(it(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),r[0].selectPrevious(),!0}else if(B(n)){const r=Uu(n.focus,!0);if(!t.shiftKey&&Te(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),t.preventDefault(),!0}return!1},Ae),e.registerCommand(ox,t=>{const n=Z();if(it(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),r[0].selectNext(0,0),!0}else if(B(n)){if((function(o){const i=o.focus;return i.key==="root"&&i.offset===We().getChildrenSize()})(n))return t.preventDefault(),!0;const r=Uu(n.focus,!1);if(!t.shiftKey&&Te(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),t.preventDefault(),!0}return!1},Ae),e.registerCommand(nx,t=>{const n=Z();if(it(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),Tg(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!B(n))return!1;if(Og(n,!0)){const r=t.shiftKey;return t.preventDefault(),Pg(n,r,!0),!0}return!1},Ae),e.registerCommand(tx,t=>{const n=Z();if(it(n)){const o=n.getNodes();if(o.length>0)return t.preventDefault(),Tg(o[0])?o[0].selectPrevious():o[0].selectNext(0,0),!0}if(!B(n))return!1;const r=t.shiftKey;return!!Og(n,!1)&&(t.preventDefault(),Pg(n,r,!1),!0)},Ae),e.registerCommand(sx,t=>{if(n0(t.target))return!1;const n=Z();if(B(n)){if((function(r){if(!r.isCollapsed())return!1;const{anchor:o}=r;if(o.offset!==0)return!1;const i=o.getNode();if(Ye(i))return!1;const s=bN(i);return s.getIndent()>0&&(s.is(i)||i.is(s.getFirstDescendant()))})(n))return t.preventDefault(),e.dispatchCommand(Hp,void 0);if(Xg&&navigator.language==="ko-KR")return!1}else if(!it(n))return!1;return t.preventDefault(),e.dispatchCommand(wo,!0)},Ae),e.registerCommand(ax,t=>{if(n0(t.target))return!1;const n=Z();return!(!B(n)&&!it(n))&&(t.preventDefault(),e.dispatchCommand(wo,!1))},Ae),e.registerCommand(Bs,t=>{const n=Z();if(!B(n))return!1;if(pf(n),t!==null){if((Xg||p5||y5)&&m5)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(bi,!1)}return e.dispatchCommand(js,void 0)},Ae),e.registerCommand(Yd,()=>{const t=Z();return!!B(t)&&(e.blur(),!0)},Ae),e.registerCommand(lx,t=>{const[,n]=ja(t);if(n.length>0){const o=Jg(t.clientX,t.clientY);if(o!==null){const{offset:i,node:s}=o,a=$i(s);if(a!==null){const c=kx();if(X(a))c.anchor.set(a.getKey(),i,"text"),c.focus.set(a.getKey(),i,"text");else{const f=a.getParentOrThrow().getKey(),u=a.getIndexWithinParent()+1;c.anchor.set(f,u,"element"),c.focus.set(f,u,"element")}const l=ji(c);Pt(l)}e.dispatchCommand(e0,n)}return t.preventDefault(),!0}const r=Z();return!!B(r)},Ae),e.registerCommand(fx,t=>{const[n]=ja(t),r=Z();return!(n&&!B(r))},Ae),e.registerCommand(ux,t=>{const[n]=ja(t),r=Z();if(n&&!B(r))return!1;const o=Jg(t.clientX,t.clientY);if(o!==null){const i=$i(o.node);Te(i)&&t.preventDefault()}return!0},Ae),e.registerCommand(Ou,()=>(W6(),!0),Ae),e.registerCommand(il,t=>(Qg(e,Or(t,ClipboardEvent)?t:null),!0),Ae),e.registerCommand(Gd,t=>((async function(n,r){await Qg(r,Or(n,ClipboardEvent)?n:null),r.update(()=>{const o=Z();B(o)?o.removeText():it(o)&&o.getNodes().forEach(i=>i.remove())})})(t,e),!0),Ae),e.registerCommand(ol,t=>{const[,n,r]=ja(t);return n.length>0&&!r?(e.dispatchCommand(e0,n),!0):ns(t.target)&&oh(t.target)?!1:Z()!==null&&((function(o,i){o.preventDefault(),i.update(()=>{const s=Z(),a=Or(o,InputEvent)||Or(o,KeyboardEvent)?null:o.clipboardData;a!=null&&s!==null&&Yg(a,s,i)},{tag:b6})})(t,e),!0)},Ae),e.registerCommand(ix,t=>{const n=Z();return B(n)&&pf(n),!1},Ae),e.registerCommand(cx,t=>{const n=Z();return B(n)&&pf(n),!1},Ae))}function v5(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const o of t)r.append("v",o);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Ah=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?k.useLayoutEffect:k.useEffect;function x5({editor:e,ErrorBoundary:t}){return(function(n,r){const[o,i]=k.useState(()=>n.getDecorators());return Ah(()=>n.registerDecoratorListener(s=>{Wt.flushSync(()=>{i(s)})}),[n]),k.useEffect(()=>{i(n.getDecorators())},[n]),k.useMemo(()=>{const s=[],a=Object.keys(o);for(let c=0;c<a.length;c++){const l=a[c],f=v.jsx(r,{onError:d=>n._onError(d),children:v.jsx(k.Suspense,{fallback:null,children:o[l]})}),u=n.getElementByKey(l);u!==null&&s.push(Wt.createPortal(f,u,l))}return s},[r,o,n])})(e,t)}function w5({editor:e,ErrorBoundary:t}){return(function(n){const r=Ai.maybeFromEditor(n);if(r&&r.hasExtensionByName(e5.name)){for(const o of["@lexical/plain-text","@lexical/rich-text"])r.hasExtensionByName(o)&&v5(320,o);return!0}return!1})(e)?null:v.jsx(x5,{editor:e,ErrorBoundary:t})}function r0(e){return e.getEditorState().read(L1(e.isComposing()))}function A5({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=ht();return(function(o){Ah(()=>mn(b5(o),o5(o)),[o])})(r),v.jsxs(v.Fragment,{children:[e,v.jsx(C5,{content:t}),v.jsx(w5,{editor:r,ErrorBoundary:n})]})}function C5({content:e}){const[t]=ht(),n=(function(o){const[i,s]=k.useState(()=>r0(o));return Ah(()=>{function a(){const c=r0(o);s(c)}return a(),mn(o.registerUpdateListener(()=>{a()}),o.registerEditableListener(()=>{a()}))},[o]),i})(t),r=XN();return n?typeof e=="function"?e(r):e:null}function E5(e,t,n,r,o){if(e===null||n.size===0&&r.size===0&&!o)return 0;const i=t._selection,s=e._selection;if(o)return 1;if(!(B(i)&&B(s)&&s.isCollapsed()&&i.isCollapsed()))return 0;const a=(function(y,b,x){const w=y._nodeMap,A=[];for(const E of b){const _=w.get(E);_!==void 0&&A.push(_)}for(const[E,_]of x){if(!_)continue;const S=w.get(E);S===void 0||Ye(S)||A.push(S)}return A})(t,n,r);if(a.length===0)return 0;if(a.length>1){const y=t._nodeMap,b=y.get(i.anchor.key),x=y.get(s.anchor.key);return b&&x&&!e._nodeMap.has(b.__key)&&X(b)&&b.__text.length===1&&i.anchor.offset===1?2:0}const c=a[0],l=e._nodeMap.get(c.__key);if(!X(l)||!X(c)||l.__mode!==c.__mode)return 0;const f=l.__text,u=c.__text;if(f===u)return 0;const d=i.anchor,h=s.anchor;if(d.key!==h.key||d.type!=="text")return 0;const m=d.offset,p=h.offset,g=u.length-f.length;return g===1&&p===m-1?2:g===-1&&p===m+1?3:g===-1&&p===m?4:0}function _5(e,t){let n=Date.now(),r=0;return(o,i,s,a,c,l)=>{const f=Date.now();if(l.has(ju))return r=0,n=f,2;const u=E5(o,i,a,c,e.isComposing()),d=(()=>{const h=s===null||s.editor===e,m=l.has(y6);if(!m&&h&&l.has(Ao))return 0;if(o===null)return 1;const p=i._selection;if(!(a.size>0||c.size>0))return p!==null?0:2;const g=typeof t=="number"?t:t.peek();return m===!1&&u!==0&&u===r&&f<n+g&&h||a.size===1&&(function(y,b,x){const w=b._nodeMap.get(y),A=x._nodeMap.get(y),E=b._selection,_=x._selection;return!(B(E)&&B(_)&&E.anchor.type==="element"&&E.focus.type==="element"&&_.anchor.type==="text"&&_.focus.type==="text"||!X(w)||!X(A)||w.__parent!==A.__parent)&&JSON.stringify(b.read(()=>w.exportJSON()))===JSON.stringify(x.read(()=>A.exportJSON()))})(Array.from(a)[0],o,i)?0:1})();return n=f,r=u,d}}function o0(e){e.undoStack=[],e.redoStack=[],e.current=null}function U1(e,t,n){const r=_5(e,n);return mn(e.registerCommand(qd,()=>((function(i,s){const a=s.redoStack,c=s.undoStack;if(c.length!==0){const l=s.current,f=c.pop();l!==null&&(a.push(l),i.dispatchCommand(Na,!0)),c.length===0&&i.dispatchCommand(Oa,!1),s.current=f||null,f&&f.editor.setEditorState(f.editorState,{tag:ju})}})(e,t),!0),Ae),e.registerCommand(Vd,()=>((function(i,s){const a=s.redoStack,c=s.undoStack;if(a.length!==0){const l=s.current;l!==null&&(c.push(l),i.dispatchCommand(Oa,!0));const f=a.pop();a.length===0&&i.dispatchCommand(Na,!1),s.current=f||null,f&&f.editor.setEditorState(f.editorState,{tag:ju})}})(e,t),!0),Ae),e.registerCommand(s6,()=>(o0(t),!1),Ae),e.registerCommand(a6,()=>(o0(t),e.dispatchCommand(Na,!1),e.dispatchCommand(Oa,!1),!0),Ae),e.registerUpdateListener(({editorState:i,prevEditorState:s,dirtyLeaves:a,dirtyElements:c,tags:l})=>{const f=t.current,u=t.redoStack,d=t.undoStack,h=f===null?null:f.editorState;if(f!==null&&i===h)return;const m=r(s,i,f,a,c,l);if(m===1)u.length!==0&&(t.redoStack=[],e.dispatchCommand(Na,!1)),f!==null&&(d.push({...f}),e.dispatchCommand(Oa,!0));else if(m===2)return;t.current={editor:e,editorState:i}}))}function W1(){return{current:null,redoStack:[],undoStack:[]}}const gf={build:(e,{delay:t,createInitialHistoryState:n,disabled:r})=>v1({delay:t,disabled:r,historyState:n(e)}),config:{createInitialHistoryState:W1,delay:300,disabled:typeof window>"u"},name:"@lexical/history/History",register:(e,t,n)=>{const r=n.getOutput();return Ks(()=>r.disabled.value?void 0:U1(e,r.historyState.value,r.delay))}};fN(gf,{createInitialHistoryState:()=>{throw new Error("SharedHistory did not inherit parent history")},disabled:!0});function S5({delay:e,externalHistoryState:t}){const[n]=ht();return(function(r,o,i=1e3){const s=k.useMemo(()=>o||W1(),[o]);k.useEffect(()=>U1(r,s,i),[i,r,s])})(n,t,e),null}const K1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?k.useLayoutEffect:k.useEffect;function k5({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:s,ariaInvalid:a,ariaLabel:c,ariaLabelledBy:l,ariaMultiline:f,ariaOwns:u,ariaRequired:d,autoCapitalize:h,className:m,id:p,role:g="textbox",spellCheck:y=!0,style:b,tabIndex:x,"data-testid":w,...A},E){const[_,S]=k.useState(e.isEditable()),O=k.useCallback(I=>{I&&I.ownerDocument&&I.ownerDocument.defaultView?e.setRootElement(I):e.setRootElement(null)},[e]),P=k.useMemo(()=>(function(...I){return $=>{for(const D of I)typeof D=="function"?D($):D!=null&&(D.current=$)}})(E,O),[O,E]);return K1(()=>(S(e.isEditable()),e.registerEditableListener(I=>{S(I)})),[e]),v.jsx("div",{"aria-activedescendant":_?t:void 0,"aria-autocomplete":_?n:"none","aria-controls":_?r:void 0,"aria-describedby":o,...i!=null?{"aria-errormessage":i}:{},"aria-expanded":_&&g==="combobox"?!!s:void 0,...a!=null?{"aria-invalid":a}:{},"aria-label":c,"aria-labelledby":l,"aria-multiline":f,"aria-owns":_?u:void 0,"aria-readonly":!_||void 0,"aria-required":d,autoCapitalize:h,className:m,contentEditable:_,"data-testid":w,id:p,ref:P,role:g,spellCheck:y,style:b,tabIndex:x,...A})}const T5=k.forwardRef(k5);function i0(e){return e.getEditorState().read(L1(e.isComposing()))}const N5=k.forwardRef(O5);function O5(e,t){const{placeholder:n,...r}=e,[o]=ht();return v.jsxs(v.Fragment,{children:[v.jsx(T5,{editor:o,...r,ref:t}),n!=null&&v.jsx(P5,{editor:o,content:n})]})}function P5({content:e,editor:t}){const n=(function(s){const[a,c]=k.useState(()=>i0(s));return K1(()=>{function l(){const f=i0(s);c(f)}return l(),mn(s.registerUpdateListener(()=>{l()}),s.registerEditableListener(()=>{l()}))},[s]),a})(t),[r,o]=k.useState(t.isEditable());if(k.useLayoutEffect(()=>(o(t.isEditable()),t.registerEditableListener(s=>{o(s)})),[t]),!n)return null;let i=null;return typeof e=="function"?i=e(r):e!==null&&(i=e),i===null?null:v.jsx("div",{"aria-hidden":!0,children:i})}const M5=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?k.useLayoutEffect:k.useEffect;function I5({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:n}){const[r]=ht();return M5(()=>{if(n)return r.registerUpdateListener(({editorState:o,dirtyElements:i,dirtyLeaves:s,prevEditorState:a,tags:c})=>{t&&i.size===0&&s.size===0||e&&c.has(Ao)||a.isEmpty()||n(o,r,c)})},[r,e,t,n]),null}const L5=k.createContext(null),yf={didCatch:!1,error:null};class R5 extends k.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=yf}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(...t){var r,o;const{error:n}=this.state;n!==null&&((o=(r=this.props).onReset)==null||o.call(r,{args:t,reason:"imperative-api"}),this.setState(yf))}componentDidCatch(t,n){var r,o;(o=(r=this.props).onError)==null||o.call(r,t,n)}componentDidUpdate(t,n){var i,s;const{didCatch:r}=this.state,{resetKeys:o}=this.props;r&&n.error!==null&&D5(t.resetKeys,o)&&((s=(i=this.props).onReset)==null||s.call(i,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(yf))}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let a=t;if(i){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")a=n(c);else if(r)a=k.createElement(r,c);else if(o!==void 0)a=o;else throw s}return k.createElement(L5.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function D5(e=[],t=[]){return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function F5({children:e,onError:t}){return v.jsx(R5,{fallback:v.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const j5={paragraph:"cnf:m-0",list:{ol:"cnf:list-decimal cnf:pl-4",ul:"cnf:list-disc cnf:pl-4"},text:{bold:"cnf:font-semibold",italic:"cnf:italic",underline:"cnf:underline",strikethrough:"cnf:line-through",code:"cnf:font-mono"},link:"cnf:text-blue-600 cnf:hover:text-blue-600 cnf:underline cnf:cursor-pointer"};function z5({hasStrictIndent:e=!1}){const[t]=ht();return k.useEffect(()=>{if(!t.hasNodes([fa,os]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),k.useEffect(()=>{if(e)return $N(t)},[t,e]),(function(n){k.useEffect(()=>zN(n),[n])})(t),null}function $5({validateUrl:e,attributes:t}){const[n]=ht();return k.useEffect(()=>{if(!n.hasNodes([ua]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),k.useEffect(()=>KN(n,v1({attributes:t,validateUrl:e})),[n,e,t]),null}const B5=new Set(["http:","https:","mailto:","sms:","tel:"]);function s0(e){try{const t=new URL(e);if(!B5.has(t.protocol))return"about:blank"}catch{return e}return e}function a0(e,t,n,r=10,o=5){const i=n.parentElement;if(e===null||!i){t.style.opacity="0",t.style.transform="translate(-10000px, -10000px)";return}const s=t.getBoundingClientRect(),a=n.getBoundingClientRect(),c=i.getBoundingClientRect();let l=e.top-r,f=e.left-o;l<c.top&&(l+=s.height+e.height+r*2),f+s.width>c.right&&(f=c.right-s.width-o),l-=a.top,f-=a.left,t.style.opacity="1",t.style.transform=`translate(${f}px, ${l}px)`}function Nc(e){const t=e.anchor,n=e.focus,r=e.anchor.getNode(),o=e.focus.getNode();return r===o?r:e.isBackward()?Ng(n)?r:o:Ng(t)?r:o}function U5({editor:e,isLink:t,setIsLink:n,anchorElem:r,isLinkEditMode:o,setIsLinkEditMode:i}){const s=k.useRef(null),[a,c]=k.useState(""),[l,f]=k.useState("https://"),[u,d]=k.useState(null),h=k.useCallback(()=>{var A,E;const g=Z();if(B(g)){const _=Nc(g),S=ct(_,ut);S?c(S.getURL()):ut(_)?c(_.getURL()):c(""),o&&f(a)}else if(it(g)){const _=g.getNodes();if(_.length>0){const S=_[0],O=S.getParent();ut(O)?c(O.getURL()):ut(S)?c(S.getURL()):c(""),o&&f(a)}}const y=s.current,b=tn(e._window),x=document.activeElement;if(y===null)return;const w=e.getRootElement();if(g!==null&&w!==null&&e.isEditable()){let _;if(it(g)){const S=g.getNodes();if(S.length>0){const O=e.getElementByKey(S[0].getKey());O&&(_=O.getBoundingClientRect())}}else b!==null&&w.contains(b.anchorNode)&&(_=(E=(A=b.focusNode)==null?void 0:A.parentElement)==null?void 0:E.getBoundingClientRect());_&&(_.y+=40,a0(_,y,r)),d(g)}else(!x||x.className!=="link-input")&&(w!==null&&a0(null,y,r),d(null),i(!1),c(""));return!0},[r,e,i,o,a]);k.useEffect(()=>{const g=r.parentElement,y=()=>{e.getEditorState().read(()=>{h()})};return window.addEventListener("resize",y),g&&g.addEventListener("scroll",y),()=>{window.removeEventListener("resize",y),g&&g.removeEventListener("scroll",y)}},[r.parentElement,e,h]),k.useEffect(()=>mn(e.registerUpdateListener(({editorState:g})=>{g.read(()=>{h()})}),e.registerCommand(rl,()=>(h(),!0),Xn),e.registerCommand(Yd,()=>t?(n(!1),!0):!1,F6)),[e,h,n,t]),k.useEffect(()=>{e.getEditorState().read(()=>{h()})},[e,h]),k.useEffect(()=>{const g=s.current;if(g===null)return;const y=b=>{!g.contains(b.relatedTarget)&&t&&(n(!1),i(!1))};return g.addEventListener("focusout",y),()=>{g.removeEventListener("focusout",y)}},[n,i,t]);const m=g=>{g.key==="Enter"?p(g):g.key==="Escape"&&(g.preventDefault(),i(!1))},p=g=>{g.preventDefault(),u!==null&&(a!==""&&e.update(()=>{e.dispatchCommand(Wi,s0(l));const y=Z();if(B(y)){const b=Nc(y).getParent();if(lo(b)){const x=So(b.getURL(),{rel:b.__rel,target:b.__target,title:b.__title});b.replace(x,!0)}}}),f("https://"),i(!1))};return v.jsx("div",{ref:s,className:"cnf:absolute cnf:flex cnf:top-0 cnf:left-0 cnf:shadow-lg cnf:bg-white cnf:z-10 cnf:rounded-sm cnf:w-full cnf:max-w-400",children:t?o?v.jsxs("div",{className:"cnf:flex cnf:justify-between cnf:w-full cnf:items-center cnf:p-2",children:[v.jsx(Yy,{containerClassName:"cnf:px-0 cnf:mr-2",autoFocus:!0,className:"cnf:mt-0",value:l,onChange:g=>{f(g.target.value)},onKeyDown:g=>{m(g)}}),v.jsxs("div",{className:"cnf:flex cnf:justify-center cnf:items-center cnf:gap-4",children:[v.jsx(et,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:g=>g.preventDefault(),onClick:()=>{i(!1)},children:v.jsx(Ee,{icon:Kc})}),v.jsx(et,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:g=>g.preventDefault(),onClick:p,children:v.jsx(Ee,{icon:sb})})]})]}):v.jsxs("div",{className:"cnf:flex cnf:justify-between cnf:w-full cnf:items-center cnf:p-2",children:[v.jsx("a",{href:s0(a),target:"_blank",rel:"noopener noreferrer",children:a}),v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:gap-4",children:[v.jsx(et,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:g=>g.preventDefault(),onClick:()=>{f(a),i(!0)},children:v.jsx(Ee,{icon:Zy})}),v.jsx(et,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:g=>g.preventDefault(),onClick:()=>e.dispatchCommand(Wi,null),children:v.jsx(Ee,{icon:BE})})]})]}):null})}function W5(e,t,n,r){const[o,i]=k.useState(e),[s,a]=k.useState(!1);return k.useEffect(()=>{function c(){const l=Z();if(B(l)){const f=Nc(l),u=ct(f,ut),d=ct(f,lo);if(!(u||d)){a(!1);return}const h=l.getNodes().filter(m=>!Co(m)).find(m=>{const p=ct(m,ut),g=ct(m,lo);return u&&!u.is(p)||p&&!p.is(u)||d&&!d.is(g)||g&&(!g.is(d)||g.getIsUnlinked())});a(!h)}else if(it(l)){const f=l.getNodes();if(f.length===0){a(!1);return}const u=f[0],d=u.getParent();ut(d)||ut(u)?a(!0):a(!1)}}return mn(e.registerUpdateListener(({editorState:l})=>{l.read(()=>{c()})}),e.registerCommand(rl,(l,f)=>(c(),i(f),!1),Fx),e.registerCommand(Hd,l=>{const f=Z();if(B(f)){const u=Nc(f),d=ct(u,ut);if(ut(d)&&(l.metaKey||l.ctrlKey))return window.open(d.getURL(),"_blank"),!0}return!1},Xn))},[e]),Wt.createPortal(v.jsx(U5,{editor:o,isLink:s,anchorElem:t,setIsLink:a,isLinkEditMode:n,setIsLinkEditMode:r}),t)}function K5({anchorElem:e=document.body,isLinkEditMode:t,setIsLinkEditMode:n}){const[r]=ht();return W5(r,e,t,n)}const H5=({url:e,onDelete:t})=>v.jsxs("div",{className:"cnf:relative",children:[v.jsx("img",{src:e,alt:"Thumbnail",width:75,height:75,className:"cnf:w-[75px] cnf:h-[75px] cnf:object-cover cnf:rounded-lg cnf:border cnf:border-gray-200"}),v.jsx(et,{size:"smallCollapse",title:"Delete attachment",onClick:t,className:"cnf:absolute cnf:top-1 cnf:left-1 cnf:w-[20px] cnf:h-[20px] cnf:rounded-full",color:"secondary",children:v.jsx(Ee,{icon:ib})})]}),q5=({onRemoveFile:e,type:t,label:n})=>{const r=t.toLowerCase(),o=nv(r);return v.jsxs("div",{className:"cnf:relative cnf:flex cnf:items-center cnf:justify-center cnf:rounded cnf:border cnf:border-gray-200",children:[v.jsx(et,{size:"smallCollapse",color:"secondary",className:"cnf:absolute cnf:top-1 cnf:left-1 cnf:w-[20px] cnf:h-[20px] cnf:rounded-full",title:"Remove file",onClick:e,children:v.jsx(Ee,{icon:ib})}),v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:justify-center cnf:mx-2",children:[v.jsx("span",{className:"cnf:text-primary-600 cnf:my-2",children:v.jsx(Ee,{icon:o,size:"3x",className:"cnf:text-primary-600"})}),v.jsx("span",{className:"cnf:font-bold cnf:p-2",children:n})]})]})},V5=({clearKey:e})=>{const[t]=ht(),n=k.useRef(e);return k.useEffect(()=>{n.current!==e&&(t.update(()=>{We().clear()}),n.current=e)},[e,t]),null},Y5=({isOpen:e})=>{const[t]=ht(),n=k.useRef(!1);return k.useEffect(()=>{if(!e){n.current=!1;return}if(n.current)return;const r=()=>{const o=t.getRootElement();if(!o){requestAnimationFrame(r);return}n.current=!0;const i=window.scrollX,s=window.scrollY;try{o.focus({preventScroll:!0})}catch{o.focus()}requestAnimationFrame(()=>window.scrollTo(i,s)),setTimeout(()=>window.scrollTo(i,s),0)};r()},[t,e]),null},G5=({initialValue:e})=>{const[t]=ht(),n=k.useCallback((o,i)=>{const a=new DOMParser().parseFromString(i,"text/html");return R1(o,a)},[]),r=k.useRef(!1);return k.useEffect(()=>{!r.current&&e&&(t.update(()=>{We().clear(),Ox(n(t,e))}),r.current=!0)},[t,e,n]),null},Q5=({onChange:e})=>{const[t]=ht();return v.jsx(I5,{onChange:n=>{n.read(()=>{const r=D1(t,null);e(r)})}})},Z5=({onAddAttachments:e})=>{const[t]=ht();return k.useEffect(()=>{if(!e)return;const n=t.getRootElement();if(!n)return;const r=o=>{const i=o.clipboardData;if(!i)return;const s=i.items;let a=!1;for(let c=0;c<s.length;c++){const l=s[c];if(l.kind==="file"&&l.type.startsWith("image/")){a=!0;break}}if(a){for(let c=0;c<s.length;c++){const l=s[c];if(l.kind==="file"&&l.type.startsWith("image/")){const f=l.getAsFile();if(f){const u=Date.now(),d=f.type.split("/")[1]||"png",h=`image_${u}.${d}`,m=new File([f],h,{type:f.type});e==null||e([m])}}}o.preventDefault(),o.stopPropagation()}};return n.addEventListener("paste",r,!0),()=>{n.removeEventListener("paste",r,!0)}},[t,e]),null},J5=({onSubmit:e})=>{const[t]=ht();return k.useEffect(()=>{if(e)return t.registerCommand(Bs,n=>n&&!n.shiftKey?(n.preventDefault(),e(),!0):!1,1)},[t,e]),null},X5=({setIsLinkEditMode:e})=>{const[t]=ht();return k.useEffect(()=>{const n=t.getRootElement();if(!n)return;const r=o=>{const i=o.metaKey||o.ctrlKey,s=o.key==="k"||o.key==="K";i&&s&&t.getEditorState().read(()=>{const a=Z();B(a)&&!a.isCollapsed()&&(o.preventDefault(),e(!0),t.dispatchCommand(Wi,"https://"))})};return n.addEventListener("keydown",r),()=>{n.removeEventListener("keydown",r)}},[t,e]),null};function H1({attachments:e,clearKey:t=0,inputFieldClassName:n="",containerClassName:r="",initialValue:o,onChange:i,commentType:s,onCommentTypeChange:a,isCommentTypeEditable:c=!0,actions:l,onAddAttachments:f,onRemoveAttachment:u,onSubmit:d,isOpen:h}){const m={namespace:"comment-editor",theme:j5,nodes:[fa,os,ua],onError:A=>{console.error(A)}},[p,g]=k.useState(null),[y,b]=k.useState(!1),x=A=>{A!==null&&g(A)},w=Ch[s];return v.jsx("div",{className:r,children:v.jsxs(QN,{initialConfig:m,children:[v.jsxs("div",{className:"cnf:relative",children:[v.jsx(A5,{contentEditable:v.jsx("div",{ref:x,children:v.jsx(N5,{className:be("cnf:p-3 cnf:outline-none cnf:border-0 cnf:w-full cnf:border-t cnf:border-gray-200 cnf:rounded-none cnf:border-l-3",w.bg,w.border,w.fontColor,n)})}),placeholder:v.jsx("div",{className:"cnf:absolute cnf:top-3 cnf:left-4 cnf:text-gray-400 cnf:pointer-events-none",children:"Type comment…"}),ErrorBoundary:F5}),v.jsx(z5,{}),v.jsx($5,{}),p&&v.jsx(K5,{anchorElem:p,isLinkEditMode:y,setIsLinkEditMode:b}),v.jsx(S5,{}),v.jsx(G5,{initialValue:o}),v.jsx(Q5,{onChange:i}),v.jsx(J5,{onSubmit:d}),v.jsx(X5,{setIsLinkEditMode:b}),v.jsx(V5,{clearKey:t}),v.jsx(Z5,{onAddAttachments:f}),v.jsx(Y5,{isOpen:h})]}),e&&e.length>0&&v.jsx("div",{className:"cnf:flex cnf:flex-wrap cnf:justify-start cnf:gap-2 cnf:p-4",children:e.map(A=>Td(A.type)?v.jsx(H5,{url:A.url,onDelete:()=>u==null?void 0:u(A.originFile)},A.originFile.name):v.jsx(q5,{type:A.type,label:A.name,onRemoveFile:()=>u==null?void 0:u(A.originFile)},A.originFile.name))}),v.jsx("div",{className:"cnf:border-t cnf:border-gray-200 cnf:p-1 cnf:flex cnf:justify-end",children:v.jsx(qN,{commentType:s,onCommentTypeChange:a,isCommentTypeEditable:c,actions:l,setIsLinkEditMode:b,onAddAttachments:f})})]})})}const eO=({asset:e,onSetActiveSrc:t})=>v.jsxs("div",{className:"cnf:relative cnf:border cnf:border-gray-200 cnf:rounded-md cnf:h-[110px] cnf:w-full cnf:hover:border-primary-500",children:[v.jsx("img",{src:Va(e),onClick:()=>t(Va(e)),onKeyDown:n=>{n.key==="Enter"&&t(Va(e))},alt:e.name,className:"cnf:w-full cnf:h-full cnf:object-cover cnf:rounded-md cnf:object-center cnf:cursor-zoom-in"}),(e==null?void 0:e.uploading)&&v.jsx("div",{className:"cnf:absolute cnf:bottom-2 cnf:w-full cnf:max-w-md cnf:mx-auto cnf:px-2",children:v.jsx("div",{className:"cnf:relative cnf:h-2 cnf:overflow-hidden cnf:rounded-full cnf:bg-gray-200",children:v.jsx("div",{className:"cnf:absolute cnf:left-0 cnf:top-0 cnf:h-full cnf:w-1/3 cnf:rounded-full cnf:bg-blue-500 cnf:animate-progress"})})})]}),tO=({asset:e})=>{var r,o;const t=((o=(r=e==null?void 0:e.mimeType)==null?void 0:r.split("/").pop())==null?void 0:o.toLowerCase())||"",n=nv(t);return v.jsxs("div",{className:"cnf:flex cnf:gap-2",children:[(e==null?void 0:e.uploading)&&v.jsx("div",{className:"cnf:flex cnf:items-center cnf:justify-center",children:v.jsx("div",{className:"cnf:h-4 cnf:w-4 cnf:rounded-full cnf:border-2 cnf:border-gray-300 cnf:border-t-blue-500 cnf:animate-spin"})}),v.jsx(Ee,{icon:n,size:"lg",className:"cnf:text-primary-600"}),v.jsx("a",{href:Va(e),className:"cnf:text-sm cnf:text-blue-600 cnf:underline",download:!0,target:"_blank",rel:"noopener noreferrer",children:e.name})]})},nO=({commentType:e=Re.INFO,author:t,username:n,comment:r,createdDate:o,onDelete:i,onEdit:s,hasAssets:a,taskAssets:c,taskVerified:l})=>{const u={[Re.INFO]:{bg:"cnf:bg-primary-100",border:"cnf:border-primary-200",icon:nb,iconColor:"cnf:text-primary-600 cnf:hover:text-primary-600",text:"cnf:text-gray-900"},[Re.WARNING]:{bg:"cnf:bg-warning-100",border:"cnf:border-warning-200",icon:Jy,iconColor:"cnf:text-warning-600 cnf:hover:text-warning-600",text:"cnf:text-gray-900"},[Re.DANGER]:{bg:"cnf:bg-danger-100",border:"cnf:border-danger-200",icon:ab,iconColor:"cnf:text-danger-600 cnf:hover:text-danger-600",text:"cnf:text-gray-900"},[Re.SUCCESS]:{bg:"cnf:bg-success-100",border:"cnf:border-success-200",icon:tb,iconColor:"cnf:text-success-600 cnf:hover:text-success-600",text:"cnf:text-gray-900"}}[e],d=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(new Date(o||"")).replace(",",""),[h,m]=k.useState(!1),[p,g]=k.useState(ql(r)),[y,b]=k.useState(e),[x,w]=k.useState(""),A=()=>{m(!0)},E=()=>{const O=mu.sanitize(p);s(O,y),m(!1)},_=O=>{const P=mu.sanitize(p);b(O),s(P,O),m(!1)},S=()=>{m(!1)};return v.jsxs("div",{className:"cnf:flex cnf:items-start cnf:space-x-4 cnf:w-full",children:[v.jsx(ET,{alt:t}),v.jsxs("div",{className:"cnf:flex-1 cnf:min-w-0",children:[v.jsxs("div",{className:`cnf:border ${u.border} cnf:rounded-sm ${u.bg} cnf:shadow-sm cnf:flex cnf:flex-col cnf:items-start cnf:justify-between cnf:w-full`,children:[v.jsx("div",{className:"cnf:p-3 cnf:flex cnf:flex-col cnf:items-start cnf:justify-between cnf:w-full",children:v.jsxs("div",{className:"cnf:w-full",children:[v.jsxs("div",{className:"cnf:flex cnf:min-w-0 cnf:items-center cnf:mb-2 cnf:justify-between cnf:gap-2",children:[v.jsxs("div",{className:"cnf:flex cnf:min-w-0 cnf:flex-1 cnf:items-center cnf:gap-2",children:[v.jsx(Ee,{icon:u.icon,size:"lg",className:`cnf:shrink-0 ${u.iconColor}`}),v.jsx("span",{className:`cnf:min-w-0 cnf:flex-1 cnf:truncate cnf:font-semibold cnf:text-sm ${u.text}`,title:t,children:t})]}),v.jsx("div",{className:"cnf:shrink-0",children:v.jsx(YN,{commentType:e,taskVerified:l,onEdit:A,onSaveCommentType:_,onDelete:i,disabled:n.trim()!==t.trim()||h})})]}),h?v.jsx(H1,{inputFieldClassName:"cnf:bg-white cnf:border-0 cnf:rounded-sm",containerClassName:"cnf:bg-white cnf:border-0 cnf:rounded-sm",onChange:g,commentType:e,isCommentTypeEditable:!1,initialValue:ql(r),actions:v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:gap-2",children:[v.jsx(et,{category:"outline",size:"smallCollapse",color:"gray400",onClick:S,title:"Cancel edit",children:"Cancel"}),v.jsx(et,{category:"solid",size:"smallCollapse",color:"primary",onClick:E,title:"Save edit",disabled:ai(p),children:"Save"})]})}):v.jsx("div",{className:`cnf:text-sm ${u.text}`,dangerouslySetInnerHTML:{__html:ql(r)}})]})}),a&&c&&(c==null?void 0:c.length)>0&&v.jsx("div",{className:`${u.border} cnf:border-t cnf:w-full cnf:p-2 cnf:flex cnf:gap-2 cnf:flex-wrap`,children:c.map(O=>v.jsx(k.Fragment,{children:Td(O.mimeType)?v.jsx(eO,{asset:O,onSetActiveSrc:w}):v.jsx(tO,{asset:O})},O.assetId))})]}),v.jsxs("div",{className:"cnf:flex cnf:gap-2 cnf:my-1",children:[o&&v.jsx("time",{dateTime:o,className:"cnf:text-xs cnf:text-gray-500 cnf:opacity-60",children:d}),l&&v.jsxs("span",{className:"cnf:text-xs cnf:text-success-600 cnf:font-semibold cnf:flex cnf:items-center cnf:gap-1",children:[v.jsx(Ee,{icon:gd}),"Comment Required"]})]})]}),v.jsx(sT,{plugins:[CT],open:!!x,zoom:{maxZoomPixelRatio:2},close:()=>w(""),styles:{root:{zIndex:9999999999}},carousel:{finite:!0,preload:0},controller:{closeOnBackdropClick:!0},slides:[{src:x}]})]})},rO=435,Ch={[Re.INFO]:{icon:rb,bg:"cnf:bg-primary-100",border:"cnf:border-l-primary-500",iconColor:"cnf:text-primary-600 cnf:hover:text-primary-700",fontColor:"cnf:text-primary-900"},[Re.SUCCESS]:{icon:gd,bg:"cnf:bg-success-100",border:"cnf:border-l-success-500",iconColor:"cnf:text-success-600 cnf:hover:text-success-700",fontColor:"cnf:text-success-900"},[Re.WARNING]:{icon:Xy,bg:"cnf:bg-warning-100",border:"cnf:border-l-warning-500",iconColor:"cnf:text-warning-600 cnf:hover:text-warning-700",fontColor:"cnf:text-warning-900"},[Re.DANGER]:{icon:cb,bg:"cnf:bg-danger-100",border:"cnf:border-l-danger-500",iconColor:"cnf:text-danger-600 cnf:hover:text-danger-700",fontColor:"cnf:text-danger-900"}};Object.entries(Ch).map(([e,t])=>({type:e,icon:t.icon,color:t.iconColor,title:`Change comment type to ${e}`}));const oO=({anchorBounds:e,comments:t,onClose:n,isOpen:r,taskName:o,taskInstanceId:i,isLoading:s,playbookInstanceId:a,taskVerification:c})=>{const[l,f]=k.useState(""),[u,d]=k.useState(Re.INFO),[h,m]=k.useState(0),[p,g]=k.useState([]),y=k.useRef(null),{username:b}=da(),{manageComment:x}=Yk({playbookInstanceId:a}),w=()=>{const $=p.length,j=p.some(G=>!Td(G.mimeType))?"Attachment":"Image",K=$>1?"s":"";return`<p class="cnf:m-0"><span style="white-space: pre-wrap;">${j}${K} added.</span></p>`},A=$=>{const D=Array.from($).map((j,K)=>zk(j,p.length+K+1));g(j=>[...j,...D])},E=$=>{g(D=>D.filter(j=>j.originFile!==$))},_=$=>{d($)},S=async()=>{if(!p.length&&ai(l)||!i)return;p.length>0&&g([]);const $=mu.sanitize(l);f(""),m(D=>D+1),await x({action:"add",comment:p.length>0&&ai(l)?w():$,username:b||"",commentType:u,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,hasAssets:p.length>0,taskInstanceId:i,taskVerified:c,attachments:p}),d(Re.INFO)},O=async $=>{i&&await x({username:b||"",action:"delete",taskVerified:!1,taskInstanceId:i,commentId:$})},P=async({commentId:$,comment:D,commentType:j,hasAssets:K,isAlreadyVerified:G})=>{i&&await x({action:"edit",username:b||"",...D&&{comment:D},taskInstanceId:i,commentId:$,hasAssets:K,taskVerified:G,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,commentType:j})};k.useLayoutEffect(()=>{y.current&&r&&!s&&t.length>0&&(y.current.scrollTop=y.current.scrollHeight)},[r,s,t.length]);const I=k.useMemo(()=>{if(!e||e.width<=0||e.height<=0)return;const $=Math.min(rO,e.width);return{position:"fixed",top:e.top,height:e.height,width:$,left:e.right-$}},[e]);return v.jsxs("div",{style:I,className:be("cnf:relative cnf:flex cnf:min-h-0 cnf:flex-col cnf:transition-all cnf:duration-300 cnf:fixed cnf:bg-white cnf:z-[9999999998] cnf:border cnf:border-gray-200 cnf:rounded-t-sm cnf:overflow-hidden",r?"cnf:translate-y-0 cnf:opacity-100":"cnf:translate-y-full cnf:opacity-0 cnf:pointer-events-none"),children:[v.jsxs("div",{className:"cnf:flex cnf:shrink-0 cnf:items-center cnf:justify-between cnf:gap-2 cnf:border-b cnf:border-gray-200 cnf:px-2 cnf:py-4 cnf:w-full",children:[v.jsx("h6",{className:"cnf:font-semibold cnf:text-gray-900 cnf:truncate cnf:max-w-[300px]",children:o}),v.jsx(et,{color:"grayLight",size:"smallCollapse",rounded:"none",title:"Close comment box",onClick:n,children:v.jsx(Ee,{icon:Kc,className:"cnf:size-4 cnf:text-gray-300"})})]}),v.jsx("div",{ref:y,className:"cnf:flex cnf:min-h-0 cnf:flex-1 cnf:flex-col cnf:overflow-y-auto",children:v.jsxs("div",{className:"cnf:flex cnf:flex-col cnf:justify-end cnf:flex-1 cnf:gap-4 cnf:p-4",children:[s&&v.jsx("div",{className:"cnf:flex cnf:flex-col cnf:gap-3",children:[1,2,3].map($=>v.jsx("div",{className:"cnf:h-16 cnf:animate-pulse cnf:rounded-lg cnf:bg-gray-100"},$))}),(t==null?void 0:t.length)>0&&!s&&t.map($=>v.jsx(nO,{username:b||"",onDelete:()=>O($.commentId),onEdit:(D,j)=>P({commentId:$.commentId,comment:D,commentType:j,hasAssets:$.hasAssets,isAlreadyVerified:$.taskVerified}),...$},$.commentId)),(t==null?void 0:t.length)===0&&!s&&v.jsxs("div",{className:"cnf:flex cnf:flex-1 cnf:flex-col cnf:items-center cnf:justify-end cnf:gap-3 cnf:text-center cnf:mb-1",children:[v.jsx("img",{src:Fk,className:"cnf:opacity-70",alt:"Empty"}),v.jsx("p",{className:"cnf:text-gray-400",children:"There is no discussion in this Task."})]})]})}),v.jsx(H1,{attachments:p,onChange:f,containerClassName:"cnf:relative cnf:shrink-0 cnf:border-t cnf:border-gray-200 cnf:bg-white",clearKey:h,commentType:u,onCommentTypeChange:_,onAddAttachments:A,onRemoveAttachment:E,onSubmit:S,isOpen:r,actions:v.jsx("button",{type:"button",className:be("cnf:cursor-pointer cnf:p-2",ai(l)&&p.length===0?"cnf:text-gray-200":"cnf:text-primary-600"),title:"Send comment",onClick:S,disabled:ai(l)&&p.length===0,children:v.jsx(Ee,{icon:ai(l)&&p.length===0?mk:VE})})})]})},q1=k.createContext({bounds:null,setAnchorElement:()=>{}}),V1=()=>k.useContext(q1),iO=({children:e})=>{const[t,n]=k.useState(null),[r,o]=k.useState(null),i=k.useCallback(a=>{n(a)},[]),s=k.useCallback(()=>{if(!t){o(null);return}o(t.getBoundingClientRect())},[t]);return k.useLayoutEffect(()=>{if(!t){o(null);return}s();const a=new ResizeObserver(()=>{s()});return a.observe(t),window.addEventListener("resize",s),window.addEventListener("scroll",s,!0),()=>{a.disconnect(),window.removeEventListener("resize",s),window.removeEventListener("scroll",s,!0)}},[t,s]),v.jsx(q1.Provider,{value:{bounds:r,setAnchorElement:i},children:e})},Xu=k.createContext({comments:[],isLoading:!1,openTaskDetails:null,username:void 0,setOpenTaskDetails:()=>{},prefetchQuery:e=>{}}),da=()=>{if(!k.useContext(Xu))throw new Error("useCommentContext must be used within a CommentProvider");return k.useContext(Xu)},sO=({playbookInstanceId:e,isExpanded:t,children:n,username:r})=>{const[o,i]=k.useState({taskInstanceId:null,taskName:"",taskVerification:!1}),s=(o==null?void 0:o.taskInstanceId)??null,{comments:a,isLoading:c,prefetchQuery:l}=Kk({taskInstanceId:s||0,enabled:s!==null,username:r});return k.useEffect(()=>{t||i(null)},[t]),v.jsx(Xu.Provider,{value:{comments:a,isLoading:c,openTaskDetails:o,setOpenTaskDetails:i,prefetchQuery:l,username:r},children:v.jsxs(iO,{children:[n,v.jsx(aO,{playbookInstanceId:e})]})})},aO=({playbookInstanceId:e})=>{const{bounds:t}=V1(),{comments:n,isLoading:r,openTaskDetails:o,setOpenTaskDetails:i}=da(),{taskInstanceId:s,taskName:a,taskVerification:c}=o||{taskInstanceId:null,taskName:"",taskVerification:!1};return Wt.createPortal(v.jsxs("div",{id:"cnfdnc-comment-box-root",children:[v.jsx("style",{children:Mc}),v.jsx("div",{className:"confidence-playbook",children:v.jsx(oO,{anchorBounds:t,playbookInstanceId:e,comments:n,onClose:()=>i(null),isOpen:!!s,taskName:a,taskInstanceId:s,isLoading:r,taskVerification:c})})]}),pk)},cO={[Ue.OPEN]:"cnf:border-[#C1C5C8] cnf:bg-[#F0F1F2]",[Ue.IN_PROGRESS]:"cnf:bg-[#E6F2FF] cnf:border-[#94C8FF]",[Ue.IN_REVIEW]:"cnf:bg-[#EAF6EC] cnf:border-[#A5DAB1]",[Ue.COMPLETED]:"cnf:bg-[#EAF6EC] cnf:border-[#A5DAB1]"},Hn={PHOTO:"photo",SCREENSHOT:"screenshot",COMMENT:"comment",NO_VERIFICATION:null},lO=({task:e,step:t,playbookType:n,onButtonClick:r,viewMode:o="card",canStart:i=!1,isExpanded:s=!1,toggleExpanded:a,playbookId:c,taskStyle:l,listStickyTopBase:f})=>{const[u,d]=k.useState(!1),{taskDetails:h,prefetchQuery:m}=yS({taskId:e.taskId,playbookId:c,enabled:s}),{setOpenTaskDetails:p,prefetchQuery:g}=da(),{buttons:y}=_2({taskStatus:e.workflowStatus,canStart:i}),b=k.useMemo(()=>e.imageRequired===0?Hn.NO_VERIFICATION:e.imageRequired===1?Hn.SCREENSHOT:e.imageRequired===2?Hn.PHOTO:e.imageRequired===4?Hn.COMMENT:null,[e.imageRequired]),x=async w=>{try{d(!0),await r(w)}finally{d(!1)}};if(o==="list"){const w=k.useMemo(()=>e.workflowStatus===Ue.COMPLETED?"success":e.workflowStatus===Ue.IN_PROGRESS?"primary":"default",[e.workflowStatus]),A=k.useMemo(()=>{const E=[];return y.forEach(_=>{_==="START"&&E.push({id:"START",color:"primary",action:"Start",to:Ue.IN_PROGRESS}),_==="COMPLETE"&&(!e.taskVerified&&b===Hn.COMMENT&&E.push({id:"ADD_COMMENT",color:"danger",action:"Add Comment",to:"Required"}),E.push({id:"COMPLETE",color:"success",action:"Complete",to:Ue.COMPLETED,disabled:!e.taskVerified&&b===Hn.COMMENT}))}),E},[y,b,e.taskVerified]);return v.jsxs("div",{className:be("cnf:flex cnf:flex-col"),children:[v.jsxs("div",{className:be("cnf:flex cnf:items-center cnf:gap-3 cnf:p-2 cnf:border-gray-200",e.sequenceOrder>0&&"cnf:border-t",s&&"cnf:bg-white cnf:rounded-md cnf:border cnf:border-t-none cnf:shadow-sm cnf:sticky"),style:{top:s?f:0},children:[v.jsx("div",{className:"cnf:text-gray-200 cnf:text-base",children:e.sequenceOrder+1}),v.jsx("div",{onClick:()=>{a==null||a(!s)},onMouseOver:m,className:be("cnf:flex-1 cnf:truncate cnf:cursor-pointer",s&&"cnf:font-medium",e.workflowStatus===Ue.COMPLETED&&"cnf:text-secondary-400 cnf:line-through"),style:{color:e.workflowStatus===Ue.IN_PROGRESS&&(l==null?void 0:l.titleColor)||"#1C232D"},children:e.taskInstanceName}),v.jsx(YS,{taskVerified:e.taskVerified,verificationType:b,title:e.workflowStatus,variant:w,transitions:A,onClick:E=>{if(E===hi.ADD_COMMENT){p({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!0});return}r(E)}}),v.jsx(ap,{onMouseOver:()=>g(e.taskInstanceId),commentsCount:(e==null?void 0:e.numberOfComments)||0,commentType:(e==null?void 0:e.recentCommentType)||Re.INFO,onClick:()=>p({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!1})})]}),(h==null?void 0:h.description)&&v.jsx("div",{className:be(!s&&"cnf:hidden","cnf:border-gray-200 cnf:border cnf:p-2 cnf:mx-4 cnf:mb-4 cnf:border-t-none cnf:-mt-[1px] cnf:bg-gray-100 cnf:rounded-b-md"),children:v.jsx(sp,{description:(h==null?void 0:h.description)||""})})]})}return v.jsxs("div",{className:Os("cnf:flex cnf:items-stretch cnf:rounded-sm cnf:overflow-hidden cnf:border",cO[e.workflowStatus]),children:[v.jsx(JS,{playbookType:n,status:e.workflowStatus,step:t}),v.jsxs("div",{className:"cnf:flex cnf:w-full cnf:flex-col cnf:overflow-x-hidden cnf:flex-1 cnf:p-2",children:[n==="Sequential"&&v.jsx("div",{className:"cnf:-mb-3 cnf:self-end cnf:pr-2 cnf:pt-2",children:v.jsx(Zb,{status:e.workflowStatus})}),v.jsxs("div",{className:"cnf:space-y-2 cnf:divide-y cnf:divide-black/10 cnf:flex cnf:flex-col cnf:flex-1",children:[v.jsx("div",{className:be("cnf:text-lg cnf:font-medium cnf:flex-1 cnf:pb-1"),style:{color:e.workflowStatus==="Completed"?"#1C232D":(l==null?void 0:l.titleColor)||"#1C232D"},children:e.taskInstanceName}),b?v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:gap-2 cnf:text-sm cnf:pb-2",children:[v.jsx(Ee,{icon:eb,className:"cnf:size-4"}),v.jsxs("div",{children:[v.jsx("span",{className:"cnf:font-medium",children:b===Hn.PHOTO?"Photo":b===Hn.SCREENSHOT?"Screenshot":"Comment"})," ","required"]})]}):v.jsx(v.Fragment,{})]}),(h==null?void 0:h.description)&&v.jsx("div",{className:be(!s&&"cnf:hidden"),children:v.jsx(sp,{description:(h==null?void 0:h.description)||""})}),(y.length>0||e.hasDescription)&&v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:justify-end cnf:gap-4 cnf:border-t cnf:border-black/10 cnf:pt-2",children:[v.jsx("div",{className:"cnf:flex-1",children:v.jsx(bS,{buttons:y,onButtonClick:x,disabled:u})}),v.jsx(ap,{onMouseOver:()=>g(e.taskInstanceId),commentsCount:(e==null?void 0:e.numberOfComments)||0,commentType:(e==null?void 0:e.recentCommentType)||Re.INFO,onClick:()=>p({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!1})}),a&&v.jsx(et,{size:"smallCollapse",onMouseOver:m,category:"link",onClick:()=>{a()},title:s?"Hide task description":"Show task description",children:v.jsx(Ee,{icon:ob,className:Os("cnf:cursor-pointer cnf:text-[#0069D9]",s?"cnf:rotate-180":"")})})]})]})]})},Y1=k.forwardRef(({title:e,className:t,playbookStyle:n,...r},o)=>{var i,s,a;return v.jsx("div",{ref:o,className:be("cnf:border-b cnf:border-gray-200 cnf:flex cnf:items-center",t),style:{backgroundColor:((i=n==null?void 0:n.whiteLabel)==null?void 0:i.titleBackgroundColor)||"#f8f9fa"},...r,children:v.jsx("div",{className:be("cnf:text-xl cnf:min-h-16 cnf:p-4 cnf:font-medium cnf:flex-1",{"cnf:text-dark":!((s=n==null?void 0:n.whiteLabel)!=null&&s.titleTextColor)}),style:{color:(a=n==null?void 0:n.whiteLabel)==null?void 0:a.titleTextColor},children:e})})});Y1.displayName="PlaybookHeader";const G1=k.createContext({isExpanded:!1,toggleExpanded:()=>{}}),Q1=({children:e,value:t,playbookInstanceId:n,defaultExpanded:r=!0})=>{const[o,i]=k.useState(()=>{if(n!==void 0){const a=pA(n);return a!==null?a:r}return(t==null?void 0:t.isExpanded)??!1}),s=k.useCallback(a=>{i(a),n!==void 0&&mA(n,a)},[n]);return v.jsx(G1.Provider,{value:{isExpanded:o,toggleExpanded:s},children:e})},Eh=()=>k.useContext(G1),fO=Mc.replace(/:root,\s*:host/g,":host"),uO=({playbookInstanceId:e,playbookMode:t,playbookStyle:n,username:r})=>{const{isEmbedded:o}=Pc(),{openTaskDetails:i,setOpenTaskDetails:s}=da(),a=(i==null?void 0:i.taskInstanceId)??null,{playbook:c,actions:l}=C2(e,r??"");if(!c)return v.jsx("div",{});const f=async(u,d)=>{var h,m;if(u===hi.COMPLETE){const p=(h=c.tasks.find(g=>g.taskInstanceId===d))==null?void 0:h.sequenceOrder;if(p===void 0){console.error("Task not found in playbook");return}return l.completeTask(d,p)}if(u===hi.START){const p=(m=c.tasks.find(g=>g.taskInstanceId===d))==null?void 0:m.sequenceOrder;if(p===void 0){console.error("Task not found in playbook");return}return l.startTask(d,p)}};return v.jsxs("div",{className:be("confidence-playbook cnf:relative",o&&"cnf:flex cnf:flex-col cnf:flex-1 cnf:min-h-0"),children:[v.jsx(Z1,{playbook:c,playbookMode:t,onTaskButtonClick:f,playbookStyle:n}),o&&a&&v.jsx("button",{type:"button","aria-label":"Close discussion",className:"cnf:fixed cnf:inset-0 cnf:z-[9999999998] cnf:border-0 cnf:bg-black/40 cnf:p-0 cnf:cursor-default",onClick:()=>s(null)})]})},dO=({className:e,children:t,numberOfTasks:n,playbookMode:r})=>v.jsxs("div",{className:be("cnf:w-full cnf:p-4",e),children:[n&&v.jsxs("div",{className:be(r==="card"&&"cnf:mb-4"),children:[v.jsx("span",{className:"cnf:font-medium",children:"Tasks"})," (",n,")"]}),v.jsx("div",{className:be(r==="card"&&"cnf:space-y-4"),children:t})]}),Z1=({playbook:e,playbookMode:t,onTaskButtonClick:n,playbookStyle:r})=>{var A,E,_,S,O;const{isEmbedded:o}=Pc(),{setAnchorElement:i}=V1(),{openTaskDetails:s,setOpenTaskDetails:a}=da(),c=(s==null?void 0:s.taskInstanceId)??null,{isExpanded:l,toggleExpanded:f}=Eh(),{playbookInstanceName:u,tasks:d}=e,h=k.useRef(null),[m,p]=k.useState(0),{isTaskExpanded:g,toggleTaskExpanded:y,isAtLeastOneTaskExpanded:b}=q0(e.playbookInstanceId,{onTaskExpanded:()=>{var P;p(((P=h.current)==null?void 0:P.offsetHeight)||0)}});k.useEffect(()=>{if(b){if(!h.current)throw new Error("Playbook header ref is not set");new ResizeObserver(I=>{var $;for(const D of I)D.contentRect&&p((($=h.current)==null?void 0:$.offsetHeight)||0)}).observe(h.current)}return()=>{h.current&&new ResizeObserver(()=>{}).unobserve(h.current)}},[b]);const x=k.useMemo(()=>{const P=d.filter(I=>I.workflowStatus===Ue.COMPLETED).sort((I,$)=>$.sequenceOrder-I.sequenceOrder)[0];return P?P.sequenceOrder+1:0},[d]),w=v.jsxs("div",{className:be("cnf:flex cnf:flex-col cnf:flex-1 cnf:bg-gray-50 cnf:min-h-0 cnf:overflow-auto",!o&&(r==null?void 0:r.overlay)&&"cnf:border cnf:border-gray-200 cnf:shadow-2xl cnf:rounded-t-sm cnf:pointer-events-auto"),children:[v.jsx(Y1,{title:u,className:be("cnf:top-0 cnf:sticky cnf:z-2"),playbookStyle:r,ref:h}),v.jsx(dO,{playbookMode:t,numberOfTasks:e.numberofTasks,children:d.map((P,I)=>{var $;return v.jsx(lO,{task:P,step:I+1,viewMode:t,playbookId:e.playbookId,canStart:P.sequenceOrder===x,onButtonClick:D=>n(D,P.taskInstanceId),playbookType:"Non-Sequential",taskStyle:{titleColor:($=r==null?void 0:r.whiteLabel)==null?void 0:$.primaryColor},isExpanded:g(P.taskInstanceId),toggleExpanded:()=>y(P.taskInstanceId),listStickyTopBase:m||104},P.taskId)})})]});return o?v.jsx("div",{ref:i,className:"confidence-playbook cnf:flex cnf:flex-col cnf:flex-1 cnf:min-h-0",children:w}):v.jsxs("div",{ref:i,className:be(!(r!=null&&r.overlay)&&"cnf:min-h-screen",(r==null?void 0:r.overlay)&&"cnf:fixed cnf:bottom-0 cnf:z-[9999999997] cnf:flex cnf:pointer-events-none","cnf:transition-all cnf:duration-300 cnf:ease-in-out "),...(r==null?void 0:r.overlay)&&{style:{width:"100%",maxWidth:l?((A=r.overlay.size)==null?void 0:A.width)||450:"2.25rem",height:((E=r.overlay.size)==null?void 0:E.height)||"calc(100vh - 4rem)",maxHeight:"calc(100vh - 4rem)",right:((_=r.overlay.offset)==null?void 0:_.right)!==void 0?r.overlay.offset.right:r.overlay.position==="right"?32:void 0,left:((S=r.overlay.offset)==null?void 0:S.left)!==void 0?r.overlay.offset.left:r.overlay.position==="left"?32:void 0}},children:[(r==null?void 0:r.overlay)&&v.jsx("button",{type:"button",onClick:()=>f(!l),className:be("cnf:size-9 cnf:relative cnf:p-1 cnf:top-3 cnf:z-[9999999997] cnf:shrink-0 cnf:border-none cnf:rounded-l-sm cnf:cursor-pointer cnf:pointer-events-auto"),style:{backgroundColor:((O=r==null?void 0:r.whiteLabel)==null?void 0:O.primaryColor)||"#007BFF",boxShadow:"0px 3px 3px 0px #00000040"},children:v.jsx("img",{src:nd,alt:"Confidence Logo",className:"cnf:w-full cnf:h-full cnf:object-contain"})}),v.jsxs("div",{className:be("cnf:relative cnf:flex cnf:min-h-0 cnf:flex-col",r!=null&&r.overlay?"cnf:min-w-0 cnf:flex-1":"cnf:min-h-screen"),children:[w,c&&v.jsx("button",{type:"button","aria-label":"Close discussion",className:"cnf:absolute cnf:inset-0 cnf:z-[9999999996] cnf:border-0 cnf:bg-black/40 cnf:p-0 cnf:cursor-default",onClick:()=>a(null)})]})]})},hO=({email:e,playbookId:t,playbookMode:n,playbookStyle:r,bank:o="public-sdk",timezone:i="America/Los_Angeles",persistKey:s,playbookInstanceId:a,defaultExpanded:c=!0})=>{const[l,f]=k.useState(null);return k.useEffect(()=>{(async()=>{const u=uy(t,s);if(a){f(a);return}if(u&&u.email===e){f(u.playbookInstanceId);return}const{playbookInstanceId:d,errorCode:h,details:m,message:p}=await Y0({bank:o,email:e,timezone:i,playbookUid:t})||{};if(h)throw new Error(`Error initiating playbook: ${p} (Code: ${h}) - Details: ${m}`);if(!d)throw new Error("No playbook instance ID returned from initiation");fy(t,d,e,s),f(d)})()},[a]),l?v.jsx(nn,{playbookInstanceId:l,playbookMode:n,playbookStyle:r,username:e,defaultExpanded:c}):v.jsx("div",{children:"Loading..."})},mO=({playbookId:e,playbookMode:t="list",playbookStyle:n,btnLabel:r="Start Playbook",btnColor:o="primary",persistKey:i,onSetUsername:s,onSetPlaybookInstanceId:a,playbookInstanceId:c,username:l,defaultExpanded:f=!0,renderPlaybook:u})=>{const{isEmbedded:d}=Pc(),[h,m]=k.useState(void 0),[p,g]=k.useState(null),y=c??p,b=l??h,x=k.useCallback(E=>{d&&a?a(E):g(E)},[d,a]),w=k.useCallback(E=>{d&&s?s(E):m(E)},[d,s]);k.useEffect(()=>{const E=uy(e,i);E&&(x(E.playbookInstanceId),w(E.email))},[e,i,x,w]);const A=y!=null?v.jsx(nn,{playbookInstanceId:y,playbookMode:t,playbookStyle:n,username:b,defaultExpanded:f}):null;return v.jsxs(v.Fragment,{children:[v.jsxs(Br.div,{style:{display:"inline-block",width:"fit-content",maxWidth:"100%",verticalAlign:"top"},children:[v.jsx(SE,{playbookId:e,disabled:!!y,onInitiated:(E,_)=>{fy(e,E,_,i),x(E),w(_)},btnLabel:r,btnColor:o}),v.jsx("style",{type:"text/css",children:fO})]}),u?u(A):A]})},pO=({playbookInstanceId:e,playbookMode:t,playbookStyle:n,username:r})=>{const{isExpanded:o}=Eh();return v.jsx(sO,{playbookInstanceId:e,username:r,isExpanded:o,children:v.jsx(uO,{playbookInstanceId:e,playbookMode:t,playbookStyle:n,username:r})})},nn=({playbookInstanceId:e,playbookMode:t,playbookStyle:n,username:r,defaultExpanded:o=!0})=>{const{isEmbedded:i}=Pc(),s=v.jsx(pO,{playbookInstanceId:e,playbookMode:t,playbookStyle:n,username:r});return i?s:v.jsx(ld,{children:v.jsx(Q1,{playbookInstanceId:e,defaultExpanded:o,children:s})})};nn.Context=ld;nn.View=Z1;nn.AutoInstantiated=hO;nn.WithInstantiateButton=mO;const gO=({onClick:e,username:t})=>v.jsxs("div",{className:"cnf:flex cnf:items-center cnf:justify-between cnf:w-full cnf:gap-8",children:[v.jsx("div",{className:"cnf:flex cnf:items-center cnf:gap-2",children:v.jsxs(et,{color:"primary",category:"link",size:"none",className:"cnf:text-sm",onClick:e,children:[v.jsx(Ee,{icon:qE,className:"cnf:text-primary-600 cnf:mr-2"}),"My Playbooks"]})}),v.jsx("span",{className:"cnf:text-sm cnf:font-medium cnf:text-secondary",children:t})]}),yO=({playbookName:e,status:t,lastUpdated:n,avatarSrc:r,onClick:o})=>v.jsx("li",{className:"cnf:list-none",children:v.jsxs("button",{className:"cnf:flex cnf:px-2 cnf:py-1 cnf:rounded-md cnf:items-center cnf:gap-4 cnf:w-full cnf:cursor-pointer cnf:focus:outline-2 cnf:focus:outline-primary-600 cnf:hover:bg-gray-200",type:"button",onClick:o,children:[v.jsx("div",{className:"cnf:w-16 cnf:h-16",children:v.jsx("img",{src:r??Lv,alt:e,className:"cnf:rounded-md cnf:object-cover cnf:size-full cnf:border cnf:border-2 cnf:border-primary-600"})}),v.jsxs("div",{className:"cnf:flex cnf:flex-col cnf:gap-1",children:[v.jsx("p",{className:"cnf:font-semibold cnf:text-sm cnf:text-black cnf:text-left",children:e}),v.jsx("div",{children:v.jsx(Zb,{status:t,category:"solid",className:"cnf:w-fit"})}),v.jsxs("p",{className:"cnf:text-sm cnf:text-gray-500 cnf:text-left",children:["Last updated:"," ",new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric"}).format(new Date(n))]})]})]})}),bO=({playbooks:e,onPlaybookClick:t})=>v.jsxs("div",{children:[v.jsxs("div",{className:"cnf:p-3",children:[v.jsx("h2",{className:"cnf:text-2xl cnf:font-semibold cnf:text-black",children:"My Playbooks"}),v.jsx("p",{className:"cnf:text-sm cnf:text-gray-500",children:"View your playbooks that are not started, in progress or completed."})]}),v.jsx("ul",{className:"cnf:flex cnf:flex-col cnf:gap-4 cnf:list-none cnf:bg-gray-100 cnf:px-2 cnf:py-4 cnf:h-[calc(100vh-10rem)] cnf:overflow-y-auto",children:e.map(n=>v.jsx(yO,{playbookName:n.playbookInstanceName,status:n.status,lastUpdated:n.modifiedDate,avatarSrc:n.logo,onClick:()=>t(n.playbookInstanceId)},n.playbookInstanceId))})]});var ed=new Map,za=new WeakMap,c0=0,vO;function xO(e){return e?(za.has(e)||(c0+=1,za.set(e,c0.toString())),za.get(e)):"0"}function wO(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?xO(e.root):e[t]}`).toString()}function AO(e){const t=wO(e);let n=ed.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(s=>{s.forEach(a=>{var c;const l=a.isIntersecting&&o.some(f=>a.intersectionRatio>=f);e.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=l),[...(c=r.get(a.target))!=null?c:[]].forEach(f=>{f(l,a)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},ed.set(t,n)}return n}function CO(e,t,n={},r=vO){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const c=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:c,intersectionRect:c,rootBounds:c}),()=>{}}const{id:o,observer:i,elements:s}=AO(n),a=s.get(e)||[];return s.has(e)||s.set(e,a),a.push(t),i.observe(e),function(){a.splice(a.indexOf(t),1),a.length===0&&(s.delete(e),i.unobserve(e)),s.size===0&&(i.disconnect(),ed.delete(o))}}function EO({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:s,initialInView:a,fallbackInView:c,onChange:l}={}){var f;const[u,d]=C.useState(null),h=C.useRef(l),m=C.useRef(a),[p,g]=C.useState({inView:!!a,entry:void 0});h.current=l,C.useEffect(()=>{if(m.current===void 0&&(m.current=a),s||!u)return;let w;return w=CO(u,(A,E)=>{const _=m.current;m.current=A,!(_===void 0&&!A)&&(g({inView:A,entry:E}),h.current&&h.current(A,E),E.isIntersecting&&i&&w&&(w(),w=void 0))},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},c),()=>{w&&w()}},[Array.isArray(e)?e.toString():e,u,o,r,i,s,n,c,t]);const y=(f=p.entry)==null?void 0:f.target,b=C.useRef(void 0);!u&&y&&!i&&!s&&b.current!==y&&(b.current=y,g({inView:!!a,entry:void 0}),m.current=a);const x=[d,p.inView,p.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}const _O=(e,t,n)=>{var r,o,i,s,a;return{width:"100%",maxWidth:t?((o=(r=n==null?void 0:n.overlay)==null?void 0:r.size)==null?void 0:o.width)||450:"2.25rem",height:((i=e==null?void 0:e.size)==null?void 0:i.height)??"calc(100vh - 4rem)",maxHeight:"calc(100vh - 4rem)",right:((s=e==null?void 0:e.offset)==null?void 0:s.right)!==void 0?e.offset.right:(e==null?void 0:e.position)==="right"?32:void 0,left:((a=e==null?void 0:e.offset)==null?void 0:a.left)!==void 0?e.offset.left:(e==null?void 0:e.position)==="left"?32:void 0}},SO=({onClick:e,playbookStyle:t})=>{var n;return v.jsx("button",{type:"button",onClick:e,className:be("cnf:size-9 cnf:relative cnf:p-1 cnf:top-3 cnf:z-[9999999997] cnf:border-none cnf:rounded-l-sm cnf:cursor-pointer cnf:pointer-events-auto"),style:{backgroundColor:((n=t==null?void 0:t.whiteLabel)==null?void 0:n.primaryColor)||"#007BFF",boxShadow:"0px 3px 3px 0px #00000040"},children:v.jsx("img",{src:nd,alt:"Confidence Logo",className:"cnf:w-full cnf:h-full cnf:object-contain"})})},kO=({username:e,onSetPlaybookInstanceId:t,playbookMode:n="list",playbookStyle:r,initialListOpen:o=!0,children:i})=>{const[s,a]=k.useState(o),{isExpanded:c,toggleExpanded:l}=Eh(),{myPlaybooks:f,fetchNextPage:u,hasNextPage:d,isFetchingNextPage:h}=w2({username:e??""}),{ref:m,inView:p}=EO({rootMargin:"200px"}),g=!!(r!=null&&r.overlay),y=r==null?void 0:r.overlay,b=g&&y?_O(y,c,r):void 0,x=g&&y?v.jsx(SO,{onClick:()=>l(!c),playbookStyle:r}):null;k.useEffect(()=>{p&&d&&!h&&u()},[p,d,u,h]);const w=v.jsxs("div",{className:be("cnf:relative cnf:flex cnf:flex-col cnf:flex-1 cnf:min-h-0 cnf:bg-gray-50","cnf:[transform:translateZ(0)]",g&&"cnf:border cnf:border-gray-200 cnf:shadow-2xl cnf:rounded-t-sm cnf:overflow-hidden cnf:pointer-events-none"),children:[n==="list"&&!s&&v.jsx("div",{className:be("cnf:shrink-0 cnf:border-b cnf:border-gray-200 cnf:px-4 cnf:py-2",g&&"cnf:pointer-events-auto"),children:v.jsx(gO,{username:e,onClick:()=>a(A=>!A)})}),v.jsxs("div",{className:be("cnf:flex cnf:flex-col cnf:flex-1 cnf:min-h-0",g&&"cnf:pointer-events-none"),children:[v.jsx("div",{className:be("cnf:flex-1 cnf:overflow-auto cnf:text-secondary",!s&&"cnf:hidden",g&&"cnf:pointer-events-none"),children:v.jsxs("div",{className:be("cnf:min-h-full",g&&"cnf:pointer-events-auto"),children:[v.jsx(bO,{playbooks:f??[],onPlaybookClick:A=>{t==null||t(A),a(!1)}}),v.jsx("div",{ref:m})]})}),v.jsx("div",{className:be("cnf:flex cnf:flex-col cnf:flex-1 cnf:min-h-0",s&&"cnf:hidden",g&&"cnf:pointer-events-none"),children:v.jsx("div",{className:be("cnf:flex cnf:flex-1 cnf:min-h-0 cnf:flex-col",g&&"cnf:pointer-events-auto"),children:v.jsx(K0,{value:{isEmbedded:!0},children:i})})})]})]});return g?v.jsxs("div",{className:"confidence-playbook cnf:fixed cnf:bottom-0 cnf:z-[9999999997] cnf:flex cnf:transition-all cnf:duration-300 cnf:ease-in-out cnf:pointer-events-none",style:b,children:[x,w]}):v.jsx("div",{className:"confidence-playbook cnf:flex cnf:min-h-screen cnf:flex-col",children:w})},_h=e=>v.jsx(ld,{children:v.jsx(Q1,{value:{isExpanded:!0},children:v.jsx(kO,{...e})})}),ha=({username:e,playbookMode:t="list",playbookStyle:n})=>{const[r,o]=k.useState(null);return v.jsx(_h,{username:e,playbookMode:t,playbookStyle:n,onSetPlaybookInstanceId:o,children:r!=null&&v.jsx(nn,{playbookInstanceId:r,playbookMode:t,playbookStyle:n,username:e})})},TO=({playbookId:e,playbookMode:t="list",playbookStyle:n,btnLabel:r="Start Playbook",btnColor:o="primary",persistKey:i})=>{const[s,a]=k.useState(null),[c,l]=k.useState(void 0);return v.jsx(K0,{value:{isEmbedded:!0},children:v.jsx(nn.WithInstantiateButton,{playbookId:e,playbookMode:t,playbookStyle:n,btnLabel:r,btnColor:o,persistKey:i,onSetUsername:l,onSetPlaybookInstanceId:a,playbookInstanceId:s,username:c,renderPlaybook:f=>s==null?null:v.jsx(_h,{username:c,playbookMode:t,playbookStyle:n,onSetPlaybookInstanceId:a,initialListOpen:!1,children:f},s)})})},NO=({playbookId:e,playbookMode:t="list",playbookStyle:n,persistKey:r,username:o,bank:i="public-sdk",timezone:s="America/Los_Angeles"})=>{const[a,c]=k.useState(null);return v.jsx(_h,{username:o,playbookMode:t,playbookStyle:n,onSetPlaybookInstanceId:c,children:v.jsx(nn.AutoInstantiated,{bank:i,timezone:s,playbookId:e,playbookMode:t,playbookStyle:n,persistKey:r,email:o??"",playbookInstanceId:a},a)})};ha.WithInstantiateButton=TO;ha.AutoInstantiated=NO;const is=Mc.replace(/:root,\s*:host/g,":host"),Yr=e=>Wt.createPortal(v.jsxs(Br.div,{style:{position:"relative",zIndex:2147483646},children:[v.jsx("style",{children:is}),v.jsx(nn,{...e})]}),document.body),OO=e=>Wt.createPortal(v.jsxs(Br.div,{style:{position:"relative",zIndex:2147483646},children:[v.jsx("style",{children:is}),v.jsx(ha,{...e})]}),document.body),J1=e=>Wt.createPortal(v.jsxs(Br.div,{style:{position:"relative",zIndex:2147483646},children:[v.jsx("style",{children:is}),v.jsx(ha.AutoInstantiated,{...e})]}),document.body),X1={display:"inline-block",width:"max-content",maxWidth:"100%",verticalAlign:"top"},PO=e=>v.jsxs(Br.div,{style:X1,children:[v.jsx("style",{children:is}),v.jsx(ha.WithInstantiateButton,{...e})]}),MO=e=>Wt.createPortal(v.jsxs(Br.div,{style:{position:"relative",zIndex:2147483646},children:[v.jsx("style",{children:is}),v.jsx(nn.AutoInstantiated,{...e})]}),document.body),IO=e=>Wt.createPortal(v.jsxs(Br.div,{style:{position:"relative",zIndex:2147483646,...X1},children:[v.jsx("style",{children:is}),v.jsx(nn.WithInstantiateButton,{...e})]}),document.body);Yr.AutoInstantiated=MO;Yr.WithInstantiateButton=IO;const LO=OO;Yr.EmbeddedLayout=LO;Yr.EmbeddedLayout.WithInstantiateButton=PO;Yr.AutoInstantiatedEmbeddedLayout=J1;Yr.EmbeddedLayout.AutoInstantiated=J1;const RO=Yr.EmbeddedLayout;exports.ConfidencePlaybook=Yr;exports.EmbeddedLayout=RO;