@confidencesystemsinc/sdk 1.6.3 → 1.6.5
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/hooks/comments/useComments.d.ts +1 -1
- package/dist/index.cjs +23 -23
- package/dist/index.js +2408 -2399
- package/dist/stories/ConfidenceCommentBox.stories.d.ts +6 -0
- package/dist/stories/ConfidencePlaybook.stories.d.ts +8 -0
- package/dist/stories/ConfidencePlaybookButton.stories.d.ts +3 -20
- package/dist/stories/ConfidenceTask.stories.d.ts +3 -48
- package/dist/stories/InitiatePlaybookModal.stories.d.ts +3 -16
- package/dist/stories/modal.stories.d.ts +3 -26
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
"use strict";require('./index.css');var x1=Object.defineProperty;var
|
|
1
|
+
"use strict";require('./index.css');var x1=Object.defineProperty;var Ap=e=>{throw TypeError(e)};var w1=(e,t,n)=>t in e?x1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var D=(e,t,n)=>w1(e,typeof t!="symbol"?t+"":t,n),fc=(e,t,n)=>t.has(e)||Ap("Cannot "+n);var k=(e,t,n)=>(fc(e,t,"read from private field"),n?n.call(e):t.get(e)),fe=(e,t,n)=>t.has(e)?Ap("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ne=(e,t,n,r)=>(fc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ve=(e,t,n)=>(fc(e,t,"access private method"),n);var ua=(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 x=require("react/jsx-runtime"),T=require("react"),Tn=require("react-dom"),A1=require("react-dom/server");function t0(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 C=t0(T),C1=t0(Tn);function _1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fa={exports:{}},da={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
|
|
8
|
+
*/var Cp;function E1(){if(Cp)return Ne;Cp=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,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(w){if(typeof w=="object"&&w!==null){var _=w.$$typeof;switch(_){case t:switch(w=w.type,w){case l:case c:case r:case i:case o:case f:return w;default:switch(w=w&&w.$$typeof,w){case a:case u:case h:case p:case s:return w;default:return _}}case n:return _}}}function A(w){return b(w)===c}return Ne.AsyncMode=l,Ne.ConcurrentMode=c,Ne.ContextConsumer=a,Ne.ContextProvider=s,Ne.Element=t,Ne.ForwardRef=u,Ne.Fragment=r,Ne.Lazy=h,Ne.Memo=p,Ne.Portal=n,Ne.Profiler=i,Ne.StrictMode=o,Ne.Suspense=f,Ne.isAsyncMode=function(w){return A(w)||b(w)===l},Ne.isConcurrentMode=A,Ne.isContextConsumer=function(w){return b(w)===a},Ne.isContextProvider=function(w){return b(w)===s},Ne.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ne.isForwardRef=function(w){return b(w)===u},Ne.isFragment=function(w){return b(w)===r},Ne.isLazy=function(w){return b(w)===h},Ne.isMemo=function(w){return b(w)===p},Ne.isPortal=function(w){return b(w)===n},Ne.isProfiler=function(w){return b(w)===i},Ne.isStrictMode=function(w){return b(w)===o},Ne.isSuspense=function(w){return b(w)===f},Ne.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===i||w===o||w===f||w===d||typeof w=="object"&&w!==null&&(w.$$typeof===h||w.$$typeof===p||w.$$typeof===s||w.$$typeof===a||w.$$typeof===u||w.$$typeof===m||w.$$typeof===y||w.$$typeof===v||w.$$typeof===g)},Ne.typeOf=b,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
|
|
15
|
+
*/var _p;function S1(){return _p||(_p=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,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(G){return typeof G=="string"||typeof G=="function"||G===r||G===c||G===i||G===o||G===f||G===d||typeof G=="object"&&G!==null&&(G.$$typeof===h||G.$$typeof===p||G.$$typeof===s||G.$$typeof===a||G.$$typeof===u||G.$$typeof===m||G.$$typeof===y||G.$$typeof===v||G.$$typeof===g)}function A(G){if(typeof G=="object"&&G!==null){var qe=G.$$typeof;switch(qe){case t:var zt=G.type;switch(zt){case l:case c:case r:case i:case o:case f:return zt;default:var mt=zt&&zt.$$typeof;switch(mt){case a:case u:case h:case p:case s:return mt;default:return qe}}case n:return qe}}}var w=l,_=c,E=a,S=s,O=t,P=u,I=r,W=h,j=p,z=n,Y=i,Q=o,oe=f,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)||A(G)===l}function L(G){return A(G)===c}function F(G){return A(G)===a}function K(G){return A(G)===s}function B(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function J(G){return A(G)===u}function V(G){return A(G)===r}function ee(G){return A(G)===h}function te(G){return A(G)===p}function he(G){return A(G)===n}function ye(G){return A(G)===i}function me(G){return A(G)===o}function ze(G){return A(G)===f}Oe.AsyncMode=w,Oe.ConcurrentMode=_,Oe.ContextConsumer=E,Oe.ContextProvider=S,Oe.Element=O,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=B,Oe.isForwardRef=J,Oe.isFragment=V,Oe.isLazy=ee,Oe.isMemo=te,Oe.isPortal=he,Oe.isProfiler=ye,Oe.isStrictMode=me,Oe.isSuspense=ze,Oe.isValidElementType=b,Oe.typeOf=A})()),Oe}var Ep;function n0(){return Ep||(Ep=1,process.env.NODE_ENV==="production"?da.exports=E1():da.exports=S1()),da.exports}/*
|
|
16
16
|
object-assign
|
|
17
17
|
(c) Sindre Sorhus
|
|
18
18
|
@license MIT
|
|
19
|
-
*/var
|
|
20
|
-
Valid keys: `+JSON.stringify(Object.keys(L),null," "));var G=ze(te,me,J,V,ee+"."+me,n);if(G)return G}return null}return m(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=f(L);if(F){var K=F.call(L),B;if(F!==L.entries){for(;!(B=K.next()).done;)if(!z(B.value))return!1}else for(;!(B=K.next()).done;){var J=B.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 p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},
|
|
21
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},z1=function(e,t){return R1(e)||D1(e,t)||F1(e,t)||j1()},s0=i0((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})),$1=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},a0=function(e,t){if(e==null)return{};var n,r,o=$1(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},U1=T.createContext(null);function l0(e){var t=e.children,n=t===void 0?"":t,r=a0(e,["children"]);return typeof n!="string"&&(n=A1.renderToString(n)),T.createElement("template",s0({},r,{dangerouslySetInnerHTML:{__html:n}}))}function c0(e){var t=e.root,n=e.children;return Tn.createPortal(n===void 0?null:n,t)}function B1(e){var t=T.forwardRef((function(n,r){var o,i,s=n.mode,a=s===void 0?"open":s,l=n.delegatesFocus,c=l!==void 0&&l,u=n.styleSheets,f=u===void 0?[]:u,d=n.ssr,p=d!==void 0&&d,h=n.children,g=a0(n,["mode","delegatesFocus","styleSheets","ssr","children"]),m=(i=T.useRef((o=r)&&o.current),T.useEffect((function(){o&&(o.current=i.current)}),[o]),i),y=T.useState(null),v=z1(y,2),b=v[0],A=v[1],w="node_".concat(a).concat(c);return T.useLayoutEffect((function(){if(m.current)try{if(typeof r=="function"&&r(m.current),p){var _=m.current.shadowRoot;return void A(_)}var E=m.current.attachShadow({mode:a,delegatesFocus:c});f.length>0&&(E.adoptedStyleSheets=f),A(E)}catch(S){(function(O){var P=O.error,I=O.styleSheets,W=O.root;switch(P.name){case"NotSupportedError":I.length>0&&(W.adoptedStyleSheets=I);break;default:throw P}})({error:S,styleSheets:f,root:b})}}),[r,m,f]),T.createElement(T.Fragment,null,T.createElement(e.tag,s0({key:w,ref:m},g),(b||p)&&T.createElement(U1.Provider,{value:b},p?T.createElement(l0,{shadowroot:a,shadowrootmode:a},e.render({root:b,ssr:p,children:h})):T.createElement(c0,{root:b},e.render({root:b,ssr:p,children:h})))))}));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}l0.propTypes={children:ge.oneOfType([ge.string,ge.node])},c0.propTypes={root:ge.object.isRequired,children:ge.node};var yc=new Map;function W1(){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=L1(o,{separator:"-"}),s="".concat(t,"-").concat(i);return yc.has(s)||yc.set(s,B1({tag:i,render:n})),yc.get(s)}})}var Al=W1();const u0="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 zi=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(){}},K1={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},gn,so,Hg,H1=(Hg=class{constructor(){fe(this,gn,K1);fe(this,so,!1)}setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&k(this,so)&&e!==k(this,gn)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:k(this,gn),provider:e}),ne(this,gn,e),process.env.NODE_ENV!=="production"&&ne(this,so,!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&ne(this,so,!0),k(this,gn).setTimeout(e,t)}clearTimeout(e){k(this,gn).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!=="production"&&ne(this,so,!0),k(this,gn).setInterval(e,t)}clearInterval(e){k(this,gn).clearInterval(e)}},gn=new WeakMap,so=new WeakMap,Hg),no=new H1;function q1(e){setTimeout(e,0)}var Co=typeof window>"u"||"Deno"in globalThis;function kt(){}function V1(e,t){return typeof e=="function"?e(t):e}function cu(e){return typeof e=="number"&&e>=0&&e!==1/0}function f0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Tr(e,t){return typeof e=="function"?e(t):e}function qt(e,t){return typeof e=="function"?e(t):e}function Rp(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Hf(s,t.options))return!1}else if(!Cs(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Dp(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(_o(t.options.mutationKey)!==_o(i))return!1}else if(!Cs(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Hf(e,t){return((t==null?void 0:t.queryKeyHashFn)||_o)(e)}function _o(e){return JSON.stringify(e,(t,n)=>fu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Cs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Cs(e[n],t[n])):!1}var Y1=Object.prototype.hasOwnProperty;function uu(e,t){if(e===t)return e;const n=Fp(e)&&Fp(t);if(!n&&!(fu(e)&&fu(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 l=0;for(let c=0;c<s;c++){const u=n?c:i[c],f=e[u],d=t[u];if(f===d){a[u]=f,(n?c<o:Y1.call(e,u))&&l++;continue}if(f===null||d===null||typeof f!="object"||typeof d!="object"){a[u]=d;continue}const p=uu(f,d);a[u]=p,p===f&&l++}return o===s&&l===o?e:a}function Va(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 Fp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function fu(e){if(!jp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!jp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function jp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Q1(e){return new Promise(t=>{no.setTimeout(t,e)})}function du(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 uu(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 uu(e,t)}return t}function G1(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Z1(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ya=Symbol();function d0(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Ya&&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===Ya?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function qf(e,t){return typeof e=="function"?e(...t):!!e}function J1(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 ao,gr,bi,qg,X1=(qg=class extends zi{constructor(){super();fe(this,ao);fe(this,gr);fe(this,bi);ne(this,bi,t=>{if(!Co&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,gr)||this.setEventListener(k(this,bi))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,gr))==null||t.call(this),ne(this,gr,void 0))}setEventListener(t){var n;ne(this,bi,t),(n=k(this,gr))==null||n.call(this),ne(this,gr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,ao)!==t&&(ne(this,ao,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,ao)=="boolean"?k(this,ao):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ao=new WeakMap,gr=new WeakMap,bi=new WeakMap,qg),Vf=new X1;function pu(){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 ew=q1;function tw(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=ew;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ze=tw(),xi,yr,wi,Vg,nw=(Vg=class extends zi{constructor(){super();fe(this,xi,!0);fe(this,yr);fe(this,wi);ne(this,wi,t=>{if(!Co&&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,yr)||this.setEventListener(k(this,wi))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,yr))==null||t.call(this),ne(this,yr,void 0))}setEventListener(t){var n;ne(this,wi,t),(n=k(this,yr))==null||n.call(this),ne(this,yr,t(this.setOnline.bind(this)))}setOnline(t){k(this,xi)!==t&&(ne(this,xi,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,xi)}},xi=new WeakMap,yr=new WeakMap,wi=new WeakMap,Vg),Qa=new nw;function rw(e){return Math.min(1e3*2**e,3e4)}function p0(e){return(e??"online")==="online"?Qa.isOnline():!0}var hu=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function h0(e){let t=!1,n=0,r;const o=pu(),i=()=>o.status!=="pending",s=g=>{var m;if(!i()){const y=new hu(g);d(y),(m=e.onCancel)==null||m.call(e,y)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>Vf.isFocused()&&(e.networkMode==="always"||Qa.isOnline())&&e.canRun(),u=()=>p0(e.networkMode)&&e.canRun(),f=g=>{i()||(r==null||r(),o.resolve(g))},d=g=>{i()||(r==null||r(),o.reject(g))},p=()=>new Promise(g=>{var m;r=y=>{(i()||c())&&g(y)},(m=e.onPause)==null||m.call(e)}).then(()=>{var g;r=void 0,i()||(g=e.onContinue)==null||g.call(e)}),h=()=>{if(i())return;let g;const m=n===0?e.initialPromise:void 0;try{g=m??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(f).catch(y=>{var _;if(i())return;const v=e.retry??(Co?0:3),b=e.retryDelay??rw,A=typeof b=="function"?b(n,y):b,w=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,y);if(t||!w){d(y);return}n++,(_=e.onFail)==null||_.call(e,n,y),Q1(A).then(()=>c()?void 0:p()).then(()=>{t?d(y):h()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?h():p().then(h),o)}}var lo,Yg,m0=(Yg=class{constructor(){fe(this,lo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cu(this.gcTime)&&ne(this,lo,no.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Co?1/0:300*1e3))}clearGcTimeout(){k(this,lo)&&(no.clearTimeout(k(this,lo)),ne(this,lo,void 0))}},lo=new WeakMap,Yg),co,Ai,Ht,uo,tt,$s,fo,rn,zn,Qg,ow=(Qg=class extends m0{constructor(t){super();fe(this,rn);fe(this,co);fe(this,Ai);fe(this,Ht);fe(this,uo);fe(this,tt);fe(this,$s);fe(this,fo);ne(this,fo,!1),ne(this,$s,t.defaultOptions),this.setOptions(t.options),this.observers=[],ne(this,uo,t.client),ne(this,Ht,k(this,uo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ne(this,co,$p(this.options)),this.state=t.state??k(this,co),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,$s),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=$p(this.options);n.data!==void 0&&(this.setState(zp(n.data,n.dataUpdatedAt)),ne(this,co,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,Ht).remove(this)}setData(t,n){const r=du(this.state.data,t,this.options);return be(this,rn,zn).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,rn,zn).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,co))}isActive(){return this.observers.some(t=>qt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ya||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Tr(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:!f0(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,Ht).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,fo)?k(this,tt).cancel({revert:!0}):k(this,tt).cancelRetry()),this.scheduleGc()),k(this,Ht).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||be(this,rn,zn).call(this,{type:"invalidate"})}async fetch(t,n){var l,c,u,f,d,p,h,g,m,y,v,b;if(this.state.fetchStatus!=="idle"&&((l=k(this,tt))==null?void 0:l.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 A=this.observers.find(w=>w.options.queryFn);A&&this.setOptions(A.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=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(ne(this,fo,!0),r.signal)})},i=()=>{const A=d0(this.options,n),_=(()=>{const E={client:k(this,uo),queryKey:this.queryKey,meta:this.meta};return o(E),E})();return ne(this,fo,!1),this.options.persister?this.options.persister(A,_,this):A(_)},a=(()=>{const A={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:k(this,uo),state:this.state,fetchFn:i};return o(A),A})();(c=this.options.behavior)==null||c.onFetch(a,this),ne(this,Ai,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&be(this,rn,zn).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta}),ne(this,tt,h0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:A=>{A instanceof hu&&A.revert&&this.setState({...k(this,Ai),fetchStatus:"idle"}),r.abort()},onFail:(A,w)=>{be(this,rn,zn).call(this,{type:"failed",failureCount:A,error:w})},onPause:()=>{be(this,rn,zn).call(this,{type:"pause"})},onContinue:()=>{be(this,rn,zn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const A=await k(this,tt).start();if(A===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(A),(p=(d=k(this,Ht).config).onSuccess)==null||p.call(d,A,this),(g=(h=k(this,Ht).config).onSettled)==null||g.call(h,A,this.state.error,this),A}catch(A){if(A instanceof hu){if(A.silent)return k(this,tt).promise;if(A.revert){if(this.state.data===void 0)throw A;return this.state.data}}throw be(this,rn,zn).call(this,{type:"error",error:A}),(y=(m=k(this,Ht).config).onError)==null||y.call(m,A,this),(b=(v=k(this,Ht).config).onSettled)==null||b.call(v,this.state.data,A,this),A}finally{this.scheduleGc()}}},co=new WeakMap,Ai=new WeakMap,Ht=new WeakMap,uo=new WeakMap,tt=new WeakMap,$s=new WeakMap,fo=new WeakMap,rn=new WeakSet,zn=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,...g0(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...zp(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ne(this,Ai,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,Ht).notify({query:this,type:"updated",action:t})})},Qg);function g0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:p0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function zp(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function $p(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,Us,Et,po,Ci,Kn,vr,Bs,_i,Ei,ho,mo,br,Si,Me,fs,mu,gu,yu,vu,bu,xu,wu,y0,Gg,iw=(Gg=class extends zi{constructor(t,n){super();fe(this,Me);fe(this,Lt);fe(this,_e);fe(this,Us);fe(this,Et);fe(this,po);fe(this,Ci);fe(this,Kn);fe(this,vr);fe(this,Bs);fe(this,_i);fe(this,Ei);fe(this,ho);fe(this,mo);fe(this,br);fe(this,Si,new Set);this.options=n,ne(this,Lt,t),ne(this,vr,null),ne(this,Kn,pu()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,_e).addObserver(this),Up(k(this,_e),this.options)?be(this,Me,fs).call(this):this.updateResult(),be(this,Me,vu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Au(k(this,_e),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Au(k(this,_e),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,be(this,Me,bu).call(this),be(this,Me,xu).call(this),k(this,_e).removeObserver(this)}setOptions(t){const n=this.options,r=k(this,_e);if(this.options=k(this,Lt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof qt(this.options.enabled,k(this,_e))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");be(this,Me,wu).call(this),k(this,_e).setOptions(this.options),n._defaulted&&!Va(this.options,n)&&k(this,Lt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,_e),observer:this});const o=this.hasListeners();o&&Bp(k(this,_e),r,this.options,n)&&be(this,Me,fs).call(this),this.updateResult(),o&&(k(this,_e)!==r||qt(this.options.enabled,k(this,_e))!==qt(n.enabled,k(this,_e))||Tr(this.options.staleTime,k(this,_e))!==Tr(n.staleTime,k(this,_e)))&&be(this,Me,mu).call(this);const i=be(this,Me,gu).call(this);o&&(k(this,_e)!==r||qt(this.options.enabled,k(this,_e))!==qt(n.enabled,k(this,_e))||i!==k(this,br))&&be(this,Me,yu).call(this,i)}getOptimisticResult(t){const n=k(this,Lt).getQueryCache().build(k(this,Lt),t),r=this.createResult(n,t);return aw(this,r)&&(ne(this,Et,r),ne(this,Ci,this.options),ne(this,po,k(this,_e).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,Kn).status==="pending"&&k(this,Kn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){k(this,Si).add(t)}getCurrentQuery(){return k(this,_e)}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,fs).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Et)))}createResult(t,n){var O;const r=k(this,_e),o=this.options,i=k(this,Et),s=k(this,po),a=k(this,Ci),c=t!==r?t.state:k(this,Us),{state:u}=t;let f={...u},d=!1,p;if(n._optimisticResults){const P=this.hasListeners(),I=!P&&Up(t,n),W=P&&Bp(t,r,n,o);(I||W)&&(f={...f,...g0(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:h,errorUpdatedAt:g,status:m}=f;p=f.data;let y=!1;if(n.placeholderData!==void 0&&p===void 0&&m==="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=k(this,Ei))==null?void 0:O.state.data,k(this,Ei)):n.placeholderData,P!==void 0&&(m="success",p=du(i==null?void 0:i.data,P,n),d=!0)}if(n.select&&p!==void 0&&!y)if(i&&p===(s==null?void 0:s.data)&&n.select===k(this,Bs))p=k(this,_i);else try{ne(this,Bs,n.select),p=n.select(p),p=du(i==null?void 0:i.data,p,n),ne(this,_i,p),ne(this,vr,null)}catch(P){ne(this,vr,P)}k(this,vr)&&(h=k(this,vr),p=k(this,_i),g=Date.now(),m="error");const v=f.fetchStatus==="fetching",b=m==="pending",A=m==="error",w=b&&v,_=p!==void 0,S={status:m,fetchStatus:f.fetchStatus,isPending:b,isSuccess:m==="success",isError:A,isInitialLoading:w,isLoading:w,data:p,dataUpdatedAt:f.dataUpdatedAt,error:h,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:v,isRefetching:v&&!b,isLoadingError:A&&!_,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:A&&_,isStale:Yf(t,n),refetch:this.refetch,promise:k(this,Kn),isEnabled:qt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const P=j=>{S.status==="error"?j.reject(S.error):S.data!==void 0&&j.resolve(S.data)},I=()=>{const j=ne(this,Kn,S.promise=pu());P(j)},W=k(this,Kn);switch(W.status){case"pending":t.queryHash===r.queryHash&&P(W);break;case"fulfilled":(S.status==="error"||S.data!==W.value)&&I();break;case"rejected":(S.status!=="error"||S.error!==W.reason)&&I();break}}return S}updateResult(){const t=k(this,Et),n=this.createResult(k(this,_e),this.options);if(ne(this,po,k(this,_e).state),ne(this,Ci,this.options),k(this,po).data!==void 0&&ne(this,Ei,k(this,_e)),Va(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,Si).size)return!0;const s=new Set(i??k(this,Si));return this.options.throwOnError&&s.add("error"),Object.keys(k(this,Et)).some(a=>{const l=a;return k(this,Et)[l]!==t[l]&&s.has(l)})};be(this,Me,y0).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&be(this,Me,vu).call(this)}},Lt=new WeakMap,_e=new WeakMap,Us=new WeakMap,Et=new WeakMap,po=new WeakMap,Ci=new WeakMap,Kn=new WeakMap,vr=new WeakMap,Bs=new WeakMap,_i=new WeakMap,Ei=new WeakMap,ho=new WeakMap,mo=new WeakMap,br=new WeakMap,Si=new WeakMap,Me=new WeakSet,fs=function(t){be(this,Me,wu).call(this);let n=k(this,_e).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(kt)),n},mu=function(){be(this,Me,bu).call(this);const t=Tr(this.options.staleTime,k(this,_e));if(Co||k(this,Et).isStale||!cu(t))return;const r=f0(k(this,Et).dataUpdatedAt,t)+1;ne(this,ho,no.setTimeout(()=>{k(this,Et).isStale||this.updateResult()},r))},gu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,_e)):this.options.refetchInterval)??!1},yu=function(t){be(this,Me,xu).call(this),ne(this,br,t),!(Co||qt(this.options.enabled,k(this,_e))===!1||!cu(k(this,br))||k(this,br)===0)&&ne(this,mo,no.setInterval(()=>{(this.options.refetchIntervalInBackground||Vf.isFocused())&&be(this,Me,fs).call(this)},k(this,br)))},vu=function(){be(this,Me,mu).call(this),be(this,Me,yu).call(this,be(this,Me,gu).call(this))},bu=function(){k(this,ho)&&(no.clearTimeout(k(this,ho)),ne(this,ho,void 0))},xu=function(){k(this,mo)&&(no.clearInterval(k(this,mo)),ne(this,mo,void 0))},wu=function(){const t=k(this,Lt).getQueryCache().build(k(this,Lt),this.options);if(t===k(this,_e))return;const n=k(this,_e);ne(this,_e,t),ne(this,Us,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},y0=function(t){Ze.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,Et))}),k(this,Lt).getQueryCache().notify({query:k(this,_e),type:"observerResultsUpdated"})})},Gg);function sw(e,t){return qt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Up(e,t){return sw(e,t)||e.state.data!==void 0&&Au(e,t,t.refetchOnMount)}function Au(e,t,n){if(qt(t.enabled,e)!==!1&&Tr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Yf(e,t)}return!1}function Bp(e,t,n,r){return(e!==t||qt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Yf(e,n)}function Yf(e,t){return qt(t.enabled,e)!==!1&&e.isStaleByTime(Tr(t.staleTime,e))}function aw(e,t){return!Va(e.getCurrentResult(),t)}function Wp(e){return{onFetch:(t,n)=>{var u,f,d,p,h;const r=t.options,o=(d=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],s=((h=t.state.data)==null?void 0:h.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const m=b=>{J1(b,()=>t.signal,()=>g=!0)},y=d0(t.options,t.fetchOptions),v=async(b,A,w)=>{if(g)return Promise.reject();if(A==null&&b.pages.length)return Promise.resolve(b);const E=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:A,direction:w?"backward":"forward",meta:t.options.meta};return m(I),I})(),S=await y(E),{maxPages:O}=t.options,P=w?Z1:G1;return{pages:P(b.pages,S,O),pageParams:P(b.pageParams,A,O)}};if(o&&i.length){const b=o==="backward",A=b?lw:Kp,w={pages:i,pageParams:s},_=A(r,w);a=await v(w,_,b)}else{const b=e??i.length;do{const A=l===0?s[0]??r.initialPageParam:Kp(r,a);if(l>0&&A==null)break;a=await v(a,A),l++}while(l<b)}return a};t.options.persister?t.fetchFn=()=>{var g,m;return(m=(g=t.options).persister)==null?void 0:m.call(g,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Kp(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 lw(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}var Ws,yn,St,go,vn,hr,Zg,cw=(Zg=class extends m0{constructor(t){super();fe(this,vn);fe(this,Ws);fe(this,yn);fe(this,St);fe(this,go);ne(this,Ws,t.client),this.mutationId=t.mutationId,ne(this,St,t.mutationCache),ne(this,yn,[]),this.state=t.state||v0(),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,yn).includes(t)||(k(this,yn).push(t),this.clearGcTimeout(),k(this,St).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ne(this,yn,k(this,yn).filter(n=>n!==t)),this.scheduleGc(),k(this,St).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,yn).length||(this.state.status==="pending"?this.scheduleGc():k(this,St).remove(this))}continue(){var t;return((t=k(this,go))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,l,c,u,f,d,p,h,g,m,y,v,b,A,w,_,E,S,O;const n=()=>{be(this,vn,hr).call(this,{type:"continue"})},r={client:k(this,Ws),meta:this.options.meta,mutationKey:this.options.mutationKey};ne(this,go,h0({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,I)=>{be(this,vn,hr).call(this,{type:"failed",failureCount:P,error:I})},onPause:()=>{be(this,vn,hr).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,go).canStart();try{if(o)n();else{be(this,vn,hr).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((c=(l=this.options).onMutate)==null?void 0:c.call(l,t,r));I!==this.state.context&&be(this,vn,hr).call(this,{type:"pending",context:I,variables:t,isPaused:i})}const P=await k(this,go).start();return await((f=(u=k(this,St).config).onSuccess)==null?void 0:f.call(u,P,t,this.state.context,this,r)),await((p=(d=this.options).onSuccess)==null?void 0:p.call(d,P,t,this.state.context,r)),await((g=(h=k(this,St).config).onSettled)==null?void 0:g.call(h,P,null,this.state.variables,this.state.context,this,r)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,P,null,t,this.state.context,r)),be(this,vn,hr).call(this,{type:"success",data:P}),P}catch(P){try{await((b=(v=k(this,St).config).onError)==null?void 0:b.call(v,P,t,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((w=(A=this.options).onError)==null?void 0:w.call(A,P,t,this.state.context,r))}catch(I){Promise.reject(I)}try{await((E=(_=k(this,St).config).onSettled)==null?void 0:E.call(_,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 be(this,vn,hr).call(this,{type:"error",error:P}),P}finally{k(this,St).runNext(this)}}},Ws=new WeakMap,yn=new WeakMap,St=new WeakMap,go=new WeakMap,vn=new WeakSet,hr=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,yn).forEach(r=>{r.onMutationUpdate(t)}),k(this,St).notify({mutation:this,type:"updated",action:t})})},Zg);function v0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Hn,on,Ks,Jg,uw=(Jg=class extends zi{constructor(t={}){super();fe(this,Hn);fe(this,on);fe(this,Ks);this.config=t,ne(this,Hn,new Set),ne(this,on,new Map),ne(this,Ks,0)}build(t,n,r){const o=new cw({client:t,mutationCache:this,mutationId:++ca(this,Ks)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){k(this,Hn).add(t);const n=da(t);if(typeof n=="string"){const r=k(this,on).get(n);r?r.push(t):k(this,on).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,Hn).delete(t)){const n=da(t);if(typeof n=="string"){const r=k(this,on).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,on).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=da(t);if(typeof n=="string"){const r=k(this,on).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=da(t);if(typeof n=="string"){const o=(r=k(this,on).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,Hn).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,Hn).clear(),k(this,on).clear()})}getAll(){return Array.from(k(this,Hn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Dp(n,r))}findAll(t={}){return this.getAll().filter(n=>Dp(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))))}},Hn=new WeakMap,on=new WeakMap,Ks=new WeakMap,Jg);function da(e){var t;return(t=e.options.scope)==null?void 0:t.id}var qn,xr,Rt,Vn,Zn,Ma,Cu,Xg,fw=(Xg=class extends zi{constructor(n,r){super();fe(this,Zn);fe(this,qn);fe(this,xr);fe(this,Rt);fe(this,Vn);ne(this,qn,n),this.setOptions(r),this.bindMethods(),be(this,Zn,Ma).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),Va(this.options,r)||k(this,qn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Rt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&_o(r.mutationKey)!==_o(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,Zn,Ma).call(this),be(this,Zn,Cu).call(this,n)}getCurrentResult(){return k(this,xr)}reset(){var n;(n=k(this,Rt))==null||n.removeObserver(this),ne(this,Rt,void 0),be(this,Zn,Ma).call(this),be(this,Zn,Cu).call(this)}mutate(n,r){var o;return ne(this,Vn,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,xr=new WeakMap,Rt=new WeakMap,Vn=new WeakMap,Zn=new WeakSet,Ma=function(){var r;const n=((r=k(this,Rt))==null?void 0:r.state)??v0();ne(this,xr,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Cu=function(n){Ze.batch(()=>{var r,o,i,s,a,l,c,u;if(k(this,Vn)&&this.hasListeners()){const f=k(this,xr).variables,d=k(this,xr).context,p={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,Vn)).onSuccess)==null||o.call(r,n.data,f,d,p)}catch(h){Promise.reject(h)}try{(s=(i=k(this,Vn)).onSettled)==null||s.call(i,n.data,null,f,d,p)}catch(h){Promise.reject(h)}}else if((n==null?void 0:n.type)==="error"){try{(l=(a=k(this,Vn)).onError)==null||l.call(a,n.error,f,d,p)}catch(h){Promise.reject(h)}try{(u=(c=k(this,Vn)).onSettled)==null||u.call(c,void 0,n.error,f,d,p)}catch(h){Promise.reject(h)}}}this.listeners.forEach(f=>{f(k(this,xr))})})},Xg),bn,e0,dw=(e0=class extends zi{constructor(t={}){super();fe(this,bn);this.config=t,ne(this,bn,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Hf(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,bn).has(t.queryHash)||(k(this,bn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,bn).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,bn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ze.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,bn).get(t)}getAll(){return[...k(this,bn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Rp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Rp(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()})})}},bn=new WeakMap,e0),Ke,wr,Ar,ki,Ti,Cr,Ni,Oi,t0,b0=(t0=class{constructor(e={}){fe(this,Ke);fe(this,wr);fe(this,Ar);fe(this,ki);fe(this,Ti);fe(this,Cr);fe(this,Ni);fe(this,Oi);ne(this,Ke,e.queryCache||new dw),ne(this,wr,e.mutationCache||new uw),ne(this,Ar,e.defaultOptions||{}),ne(this,ki,new Map),ne(this,Ti,new Map),ne(this,Cr,0)}mount(){ca(this,Cr)._++,k(this,Cr)===1&&(ne(this,Ni,Vf.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Ke).onFocus())})),ne(this,Oi,Qa.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Ke).onOnline())})))}unmount(){var e,t;ca(this,Cr)._--,k(this,Cr)===0&&((e=k(this,Ni))==null||e.call(this),ne(this,Ni,void 0),(t=k(this,Oi))==null||t.call(this),ne(this,Oi,void 0))}isFetching(e){return k(this,Ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,wr).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(Tr(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=V1(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(Tr(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=Wp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kt).catch(kt)}ensureInfiniteQueryData(e){return e.behavior=Wp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Qa.isOnline()?k(this,wr).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Ke)}getMutationCache(){return k(this,wr)}getDefaultOptions(){return k(this,Ar)}setDefaultOptions(e){ne(this,Ar,e)}setQueryDefaults(e,t){k(this,ki).set(_o(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,ki).values()],n={};return t.forEach(r=>{Cs(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){k(this,Ti).set(_o(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Ti).values()],n={};return t.forEach(r=>{Cs(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,Ar).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Hf(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===Ya&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,Ar).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Ke).clear(),k(this,wr).clear()}},Ke=new WeakMap,wr=new WeakMap,Ar=new WeakMap,ki=new WeakMap,Ti=new WeakMap,Cr=new WeakMap,Ni=new WeakMap,Oi=new WeakMap,t0),x0=C.createContext(void 0),w0=e=>{const t=C.useContext(x0);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},pw=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(x0.Provider,{value:e,children:t})),A0=C.createContext(!1),hw=()=>C.useContext(A0);A0.Provider;function mw(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var gw=C.createContext(mw()),yw=()=>C.useContext(gw),vw=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?qf(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},bw=e=>{C.useEffect(()=>{e.clearReset()},[e])},xw=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||qf(n,[e.error,r])),ww=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))}},Aw=(e,t)=>e.isLoading&&e.isFetching&&!t,Cw=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Hp=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function _w(e,t,n){var d,p,h,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=hw(),o=yw(),i=w0(n),s=i.defaultQueryOptions(e);(p=(d=i.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||p.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",ww(s),vw(s,o,a),bw(o);const l=!i.getQueryCache().get(s.queryHash),[c]=C.useState(()=>new t(i,s)),u=c.getOptimisticResult(s),f=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(m=>{const y=f?c.subscribe(Ze.batchCalls(m)):kt;return c.updateResult(),y},[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),C.useEffect(()=>{c.setOptions(s)},[s,c]),Cw(s,u))throw Hp(s,c,o);if(xw({result:u,errorResetBoundary:o,throwOnError:s.throwOnError,query:a,suspense:s.suspense}))throw u.error;if((g=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||g.call(h,s,u),s.experimental_prefetchInRender&&!Co&&Aw(u,r)){const m=l?Hp(s,c,o):a==null?void 0:a.promise;m==null||m.catch(kt).finally(()=>{c.updateResult()})}return s.notifyOnChangeProps?u:c.trackResult(u)}function Cl(e,t){return _w(e,iw,t)}function Qf(e,t){const n=w0(t),[r]=C.useState(()=>new fw(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&&qf(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const Gf=T.createContext({queryClient:new b0});Gf.Provider;const Fr=()=>{const e=T.useContext(Gf);if(!e)throw new Error("useConfidenceContext must be used within a ConfidenceContext");return e},C0=({children:e})=>{const[t]=T.useState(new b0);return x.jsx(Gf.Provider,{value:{queryClient:t},children:x.jsx(pw,{client:t,children:e})})},Be={OPEN:"Open",IN_PROGRESS:"In progress",IN_REVIEW:"In review",COMPLETED:"Completed"},_0="https://marketplace.confidence.com/api",nr=_0+"/confidence",qp=_0+"/dropbox/prod",Ew=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${nr}/playbook-task-complete`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},Sw=()=>{const{queryClient:e}=Fr(),t=Qf({mutationFn:async r=>Ew(r)},e);return{completeTask:async r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task completed successfully")},onError:o=>{console.error("Error completing task:",o)}}),...t}},kw=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${nr}/playbook-task-start`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},Tw=()=>{const{queryClient:e}=Fr(),t=Qf({mutationFn:async r=>await kw(r)},e);return{startTask:r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task started successfully")},onError:o=>{console.error("Error starting task:",o)}}),...t}},E0=(e,t)=>{const{queryClient:n}=Fr(),r=Cl({initialData:{},queryFn:()=>n.getQueryData(["PLAYBOOK_EXPANDED_TASKS",+e]),queryKey:["PLAYBOOK_EXPANDED_TASKS",+e]}),o=a=>{var l;return((l=r.data)==null?void 0:l[a.toString()])??!1},i=(a,l)=>{var c;n.setQueryData(["PLAYBOOK_EXPANDED_TASKS",+e],()=>({[a]:l!==void 0?l:!o(a)})),(c=t==null?void 0:t.onTaskExpanded)==null||c.call(t,a,o(a))},s=T.useMemo(()=>Object.values(r.data??{}).some(a=>a),[r.data]);return{isTaskExpanded:o,toggleTaskExpanded:i,isAtLeastOneTaskExpanded:s}},Nw=(e,t)=>{const{queryClient:n}=Fr(),{completeTask:r}=Sw(),{startTask:o}=Tw(),{toggleTaskExpanded:i}=E0(e);return{completeTask:async(l,c)=>{const{status:u}=await r(l.toString());u&&(i(l,!1),n.setQueryData(["playbook",+e],f=>{if(!f)return f;const d=f.tasks.map(p=>p.sequenceOrder===c+1&&t.quickComplete?{...p,workflowStatus:Be.IN_PROGRESS}:p.taskInstanceId===l?{...p,workflowStatus:u}:p);return{...f,tasks:d}}))},startTask:async l=>{const{status:c}=await o(l.toString());c&&(i(l,!0),n.setQueryData(["playbook",+e],u=>{if(!u)return u;const f=u.tasks.map(d=>d.taskInstanceId===l?{...d,workflowStatus:c}:d);return{...u,tasks:f}}))}}},Ow=e=>{var o;const{queryClient:t}=Fr(),n=Cl({queryFn:async()=>{const i=new Headers,s=await fetch(`${nr}/playbook-details`,{method:"POST",cache:"no-store",headers:i,body:JSON.stringify({playbookInstanceId:+e,start:0,limit:50})});if(!s.ok)throw new Error("Network response was not ok");const a=await s.json();if(a.error)throw new Error(a.error);return a},queryKey:["playbook",+e]},t),r=Nw(e,{quickComplete:(o=n.data)==null?void 0:o.quickComplete});return{playbook:n.data,isLoading:n.isLoading,error:n.error,actions:r}},ci={START:"START",PAUSE:"PAUSE",COMPLETE:"COMPLETE",ADD_COMMENT:"ADD_COMMENT"},Pw={START:"Start",PAUSE:"Pause",RESUME:"Resume",COMPLETE:"Complete"},Mw=e=>{const{taskStatus:t,canStart:n}=e;return{buttons:T.useMemo(()=>t===Be.OPEN&&n?[ci.START]:t===Be.IN_PROGRESS?[ci.PAUSE,ci.COMPLETE]:t===Be.COMPLETED?[]:[],[e.taskStatus,e.canStart])}},S0=async e=>{const t=new Headers;return t.append("Content-Type","application/json"),await(await fetch(`${nr}/playbook-initiate`,{method:"POST",headers:t,body:JSON.stringify(e)})).json()},Hs='/*! 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{--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1)}}@layer base{.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}}@layer utilities{.pointer-events-none{pointer-events:none!important}.absolute{position:absolute!important}.fixed{position:fixed!important}.relative{position:relative!important}.sticky{position:sticky!important}.inset-0{inset:calc(var(--spacing)*0)!important}.top-0{top:calc(var(--spacing)*0)!important}.top-0\\.5{top:calc(var(--spacing)*.5)!important}.top-1{top:calc(var(--spacing)*1)!important}.top-3{top:calc(var(--spacing)*3)!important}.-right-0,.right-0{right:calc(var(--spacing)*0)!important}.bottom-0{bottom:calc(var(--spacing)*0)!important}.bottom-2{bottom:calc(var(--spacing)*2)!important}.left-0{left:calc(var(--spacing)*0)!important}.left-1{left:calc(var(--spacing)*1)!important}.left-1\\/2{left:50%!important}.left-4{left:calc(var(--spacing)*4)!important}.z-2{z-index:2!important}.z-10{z-index:10!important}.z-50{z-index:50!important}.z-\\[9999999997\\],.z-\\[9999999998\\],.z-\\[9999999999\\]{z-index:2147483647!important}.container{width:100%!important}@media(min-width:40rem){.container{max-width:40rem!important}}@media(min-width:48rem){.container{max-width:48rem!important}}@media(min-width:64rem){.container{max-width:64rem!important}}@media(min-width:80rem){.container{max-width:80rem!important}}@media(min-width:96rem){.container{max-width:96rem!important}}.m-0{margin:calc(var(--spacing)*0)!important}.mx-1{margin-inline:calc(var(--spacing)*1)!important}.mx-2{margin-inline:calc(var(--spacing)*2)!important}.mx-4{margin-inline:calc(var(--spacing)*4)!important}.mx-auto{margin-inline:auto!important}.my-1{margin-block:calc(var(--spacing)*1)!important}.my-2{margin-block:calc(var(--spacing)*2)!important}.-mt-\\[1px\\]{margin-top:-1px!important}.mt-0{margin-top:calc(var(--spacing)*0)!important}.mt-3{margin-top:calc(var(--spacing)*3)!important}.mr-2{margin-right:calc(var(--spacing)*2)!important}.-mb-3{margin-bottom:calc(var(--spacing)*-3)!important}.mb-1{margin-bottom:calc(var(--spacing)*1)!important}.mb-2{margin-bottom:calc(var(--spacing)*2)!important}.mb-4{margin-bottom:calc(var(--spacing)*4)!important}.ml-2{margin-left:calc(var(--spacing)*2)!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.inline-flex{display:inline-flex!important}.size-4{width:calc(var(--spacing)*4)!important;height:calc(var(--spacing)*4)!important}.size-9{width:calc(var(--spacing)*9)!important;height:calc(var(--spacing)*9)!important}.h-2{height:calc(var(--spacing)*2)!important}.h-3{height:calc(var(--spacing)*3)!important}.h-4{height:calc(var(--spacing)*4)!important}.h-16{height:calc(var(--spacing)*16)!important}.h-\\[18px\\]{height:18px!important}.h-\\[20px\\]{height:20px!important}.h-\\[22px\\]{height:22px!important}.h-\\[24px\\]{height:24px!important}.h-\\[30px\\]{height:30px!important}.h-\\[38px\\]{height:38px!important}.h-\\[40px\\]{height:40px!important}.h-\\[75px\\]{height:75px!important}.h-\\[100vh\\]{height:100vh!important}.h-\\[110px\\]{height:110px!important}.h-full{height:100%!important}.min-h-16{min-height:calc(var(--spacing)*16)!important}.min-h-screen{min-height:100vh!important}.w-1\\/3{width:33.3333%!important}.w-3{width:calc(var(--spacing)*3)!important}.w-4{width:calc(var(--spacing)*4)!important}.w-\\[20px\\]{width:20px!important}.w-\\[27px\\]{width:27px!important}.w-\\[38px\\]{width:38px!important}.w-\\[75px\\]{width:75px!important}.w-\\[400px\\]{width:400px!important}.w-\\[calc\\(100vw-1rem\\)\\]{width:calc(100vw - 1rem)!important}.w-full{width:100%!important}.w-screen{width:100vw!important}.max-w-400{max-width:calc(var(--spacing)*400)!important}.max-w-\\[300px\\]{max-width:300px!important}.max-w-\\[420px\\]{max-width:420px!important}.max-w-lg{max-width:var(--container-lg)!important}.max-w-md{max-width:var(--container-md)!important}.min-w-0{min-width:calc(var(--spacing)*0)!important}.min-w-\\[106px\\]{min-width:106px!important}.min-w-\\[140px\\]{min-width:140px!important}.min-w-\\[160px\\]{min-width:160px!important}.min-w-\\[172px\\]{min-width:172px!important}.min-w-\\[270px\\]{min-width:270px!important}.min-w-fit{min-width:fit-content!important}.flex-1{flex:1!important}.flex-shrink-0{flex-shrink:0!important}.-translate-x-1\\/2{--tw-translate-x: -50% !important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0)!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.translate-y-full{--tw-translate-y:100%!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.rotate-180{rotate:180deg!important}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)!important}.animate-progress{animation:1.5s ease-in-out infinite progress!important}.animate-pulse{animation:var(--animate-pulse)!important}.animate-spin{animation:var(--animate-spin)!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.cursor-zoom-in{cursor:zoom-in!important}.resize{resize:both!important}.list-decimal{list-style-type:decimal!important}.list-disc{list-style-type:disc!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}.items-center{align-items:center!important}.items-start{align-items:flex-start!important}.items-stretch{align-items:stretch!important}.justify-between{justify-content:space-between!important}.justify-center{justify-content:center!important}.justify-end{justify-content:flex-end!important}.justify-start{justify-content:flex-start!important}.gap-1{gap:calc(var(--spacing)*1)!important}.gap-2{gap:calc(var(--spacing)*2)!important}.gap-3{gap:calc(var(--spacing)*3)!important}.gap-4{gap:calc(var(--spacing)*4)!important}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.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(.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(.divide-gray-100>:not(:last-child)){border-color:#ebedef!important}.self-end{align-self:flex-end!important}.truncate{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.overflow-hidden{overflow:hidden!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-y-auto{overflow-y:auto!important}.rounded{border-radius:.25rem!important}.rounded-full{border-radius:3.40282e38px!important}.rounded-lg{border-radius:var(--radius-lg)!important}.rounded-md{border-radius:var(--radius-md)!important}.rounded-none{border-radius:0!important}.rounded-sm{border-radius:var(--radius-sm)!important}.rounded-t-sm{border-top-left-radius:var(--radius-sm)!important;border-top-right-radius:var(--radius-sm)!important}.rounded-l-sm{border-top-left-radius:var(--radius-sm)!important;border-bottom-left-radius:var(--radius-sm)!important}.rounded-b-md{border-bottom-right-radius:var(--radius-md)!important;border-bottom-left-radius:var(--radius-md)!important}.border{border-style:var(--tw-border-style)!important;border-width:1px!important}.border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.border-2{border-style:var(--tw-border-style)!important;border-width:2px!important}.border-t{border-top-style:var(--tw-border-style)!important;border-top-width:1px!important}.border-b{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.border-l-1{border-left-style:var(--tw-border-style)!important;border-left-width:1px!important}.border-l-3{border-left-style:var(--tw-border-style)!important;border-left-width:3px!important}.border-none{--tw-border-style:none!important;border-style:none!important}.border-\\[\\#94C8FF\\]{border-color:#94c8ff!important}.border-\\[\\#A5DAB1\\]{border-color:#a5dab1!important}.border-\\[\\#C1C5C8\\]{border-color:#c1c5c8!important}.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}.border-danger-200{border-color:#f0aab1!important}.border-danger-500{border-color:#dc3545!important}.border-gray-50{border-color:#f5f6f7!important}.border-gray-100{border-color:#ebedef!important}.border-gray-200{border-color:#ced1d6!important}.border-gray-300{border-color:#b0b5bd!important}.border-gray-400{border-color:#757e8c!important}.border-gray-700{border-color:#2c3544!important}.border-gray-800{border-color:#232b37!important}.border-info-500{border-color:#17a2b8!important}.border-orange-500{border-color:#ff7800!important}.border-primary-200{border-color:#94c8ff!important}.border-primary-600{border-color:#0069d9!important}.border-purple-500{border-color:#a855f7!important}.border-red-500{border-color:var(--color-red-500)!important}.border-secondary-500{border-color:#6c757d!important}.border-secondary-600{border-color:#5a6268!important}.border-steel-500{border-color:#556987!important}.border-success-200{border-color:#a5dab1!important}.border-success-600{border-color:#218838!important}.border-warning-200{border-color:#ffe597!important}.border-warning-500{border-color:#ffc107!important}.border-white{border-color:#fff!important}.border-t-blue-500{border-top-color:var(--color-blue-500)!important}.border-l-danger-500{border-left-color:#dc3545!important}.border-l-primary-500{border-left-color:#007bff!important}.border-l-success-500{border-left-color:#28a745!important}.border-l-warning-500{border-left-color:#ffc107!important}.bg-\\[\\#E6F2FF\\]{background-color:#e6f2ff!important}.bg-\\[\\#EAF6EC\\]{background-color:#eaf6ec!important}.bg-\\[\\#F0F1F2\\]{background-color:#f0f1f2!important}.bg-\\[\\#FFE600\\]{background-color:#ffe600!important}.bg-black\\/30{background-color:oklab(0% none none/.3)!important}.bg-blue-500{background-color:var(--color-blue-500)!important}.bg-danger-100{background-color:#f6ccd0!important}.bg-danger-500{background-color:#dc3545!important}.bg-dark{background-color:#1c232d!important}.bg-fiserv-orange-500{background-color:#f60!important}.bg-gray-50{background-color:#f5f6f7!important}.bg-gray-100{background-color:#ebedef!important}.bg-gray-200{background-color:#ced1d6!important}.bg-gray-400{background-color:#757e8c!important}.bg-gray-500{background-color:#3a475b!important}.bg-gray-800{background-color:#232b37!important}.bg-gray-900{background-color:#1c232d!important}.bg-info-500{background-color:#17a2b8!important}.bg-orange-500{background-color:#ff7800!important}.bg-primary-100{background-color:#bfdeff!important}.bg-primary-600{background-color:#0069d9!important}.bg-primary-800{background-color:#0054af!important}.bg-purple-500{background-color:#a855f7!important}.bg-secondary-500{background-color:#6c757d!important}.bg-steel-500{background-color:#556987!important}.bg-success-100{background-color:#c9e9d0!important}.bg-success-500{background-color:#28a745!important}.bg-success-600{background-color:#218838!important}.bg-warning-100{background-color:#ffefc1!important}.bg-warning-500{background-color:#ffc107!important}.bg-white{background-color:#fff!important}.bg-yellow{background-color:#ffe600!important}.object-contain{object-fit:contain!important}.object-cover{object-fit:cover!important}.object-center{object-position:center!important}.p-1{padding:calc(var(--spacing)*1)!important}.p-2{padding:calc(var(--spacing)*2)!important}.p-3{padding:calc(var(--spacing)*3)!important}.p-4{padding:calc(var(--spacing)*4)!important}.px-0{padding-inline:calc(var(--spacing)*0)!important}.px-1{padding-inline:calc(var(--spacing)*1)!important}.px-2{padding-inline:calc(var(--spacing)*2)!important}.px-3{padding-inline:calc(var(--spacing)*3)!important}.px-4{padding-inline:calc(var(--spacing)*4)!important}.px-\\[2px\\]{padding-inline:2px!important}.py-1{padding-block:calc(var(--spacing)*1)!important}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)!important}.py-2{padding-block:calc(var(--spacing)*2)!important}.py-4{padding-block:calc(var(--spacing)*4)!important}.pt-2{padding-top:calc(var(--spacing)*2)!important}.pr-2{padding-right:calc(var(--spacing)*2)!important}.pb-1{padding-bottom:calc(var(--spacing)*1)!important}.pb-2{padding-bottom:calc(var(--spacing)*2)!important}.pb-\\[102px\\]{padding-bottom:102px!important}.pl-4{padding-left:calc(var(--spacing)*4)!important}.text-center{text-align:center!important}.text-left{text-align:left!important}.font-mono{font-family:var(--font-mono)!important}.text-2xl{font-size:var(--text-2xl)!important;line-height:var(--tw-leading,var(--text-2xl--line-height))!important}.text-base{font-size:var(--text-base)!important;line-height:var(--tw-leading,var(--text-base--line-height))!important}.text-lg{font-size:var(--text-lg)!important;line-height:var(--tw-leading,var(--text-lg--line-height))!important}.text-sm{font-size:var(--text-sm)!important;line-height:var(--tw-leading,var(--text-sm--line-height))!important}.text-sm\\/6{font-size:var(--text-sm)!important;line-height:calc(var(--spacing)*6)!important}.text-xl{font-size:var(--text-xl)!important;line-height:var(--tw-leading,var(--text-xl--line-height))!important}.text-xs{font-size:var(--text-xs)!important;line-height:var(--tw-leading,var(--text-xs--line-height))!important}.text-\\[10px\\]{font-size:10px!important}.leading-\\[18px\\]{--tw-leading:18px!important;line-height:18px!important}.leading-\\[22px\\]{--tw-leading:22px!important;line-height:22px!important}.leading-\\[24px\\]{--tw-leading:24px!important;line-height:24px!important}.font-bold{--tw-font-weight:var(--font-weight-bold)!important;font-weight:var(--font-weight-bold)!important}.font-medium{--tw-font-weight:var(--font-weight-medium)!important;font-weight:var(--font-weight-medium)!important}.font-normal{--tw-font-weight:var(--font-weight-normal)!important;font-weight:var(--font-weight-normal)!important}.font-semibold{--tw-font-weight:var(--font-weight-semibold)!important;font-weight:var(--font-weight-semibold)!important}.whitespace-nowrap{white-space:nowrap!important}.text-\\[\\#0069D9\\]{color:#0069d9!important}.text-black{color:#000!important}.text-blue-600{color:var(--color-blue-600)!important}.text-danger-500{color:#dc3545!important}.text-danger-600{color:#c82333!important}.text-danger-900{color:#721c24!important}.text-dark{color:#1c232d!important}.text-dark-300{color:#343a40!important}.text-fiserv-orange-500{color:#f60!important}.text-gray-50{color:#f5f6f7!important}.text-gray-200{color:#ced1d6!important}.text-gray-300{color:#b0b5bd!important}.text-gray-400{color:#757e8c!important}.text-gray-500{color:#3a475b!important}.text-gray-700{color:#2c3544!important}.text-gray-800{color:#232b37!important}.text-gray-900{color:#1c232d!important}.text-info-500{color:#17a2b8!important}.text-orange-500{color:#ff7800!important}.text-primary-600{color:#0069d9!important}.text-primary-900{color:#004085!important}.text-purple-500{color:#a855f7!important}.text-secondary{color:#6c757d!important}.text-secondary-400{color:#899197!important}.text-secondary-500{color:#6c757d!important}.text-secondary-600{color:#5a6268!important}.text-steel-500{color:#556987!important}.text-success-500{color:#28a745!important}.text-success-600{color:#218838!important}.text-success-900{color:#155724!important}.text-warning-500{color:#ffc107!important}.text-warning-600{color:#f59e0b!important}.text-warning-900{color:#935f07!important}.text-white{color:#fff!important}.text-yellow{color:#ffe600!important}.uppercase{text-transform:uppercase!important}.italic{font-style:italic!important}.line-through{text-decoration-line:line-through!important}.underline{text-decoration-line:underline!important}.opacity-0{opacity:0!important}.opacity-50{opacity:.5!important}.opacity-60{opacity:.6!important}.opacity-70{opacity:.7!important}.opacity-100{opacity:1!important}.shadow{--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}.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}.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}.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}.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}.shadow-dark\\/50{--tw-shadow-color:#1c232d80!important}@supports (color:color-mix(in lab,red,red)){.shadow-dark\\/50{--tw-shadow-color:color-mix(in oklab,oklab(25.3864% -.0047446 -.0210213/.5) var(--tw-shadow-alpha),transparent)!important}}.outline{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.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(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.transition-all{transition-property:all!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.duration-300{--tw-duration:.3s!important;transition-duration:.3s!important}.ease-in-out{--tw-ease:var(--ease-in-out)!important;transition-timing-function:var(--ease-in-out)!important}.ease-out{--tw-ease:var(--ease-out)!important;transition-timing-function:var(--ease-out)!important}.outline-none{--tw-outline-style:none!important;outline-style:none!important}.\\[writing-mode\\:vertical-lr\\]{writing-mode:vertical-lr!important}@media(hover:hover){.hover\\:border-primary-500:hover{border-color:#007bff!important}.hover\\:bg-danger-500:hover{background-color:#dc3545!important}.hover\\:bg-dark:hover{background-color:#1c232d!important}.hover\\:bg-fiserv-orange-500:hover{background-color:#f60!important}.hover\\:bg-gray-50:hover{background-color:#f5f6f7!important}.hover\\:bg-gray-100:hover{background-color:#ebedef!important}.hover\\:bg-gray-400:hover{background-color:#757e8c!important}.hover\\:bg-gray-500:hover{background-color:#3a475b!important}.hover\\:bg-gray-800:hover{background-color:#232b37!important}.hover\\:bg-gray-900:hover{background-color:#1c232d!important}.hover\\:bg-info-500:hover{background-color:#17a2b8!important}.hover\\:bg-orange-500:hover{background-color:#ff7800!important}.hover\\:bg-primary-700:hover{background-color:#0062cc!important}.hover\\:bg-primary-800:hover{background-color:#0054af!important}.hover\\:bg-purple-500:hover{background-color:#a855f7!important}.hover\\:bg-secondary-500:hover{background-color:#6c757d!important}.hover\\:bg-steel-500:hover{background-color:#556987!important}.hover\\:bg-success-500:hover{background-color:#28a745!important}.hover\\:bg-transparent:hover{background-color:#0000!important}.hover\\:bg-warning-500:hover{background-color:#ffc107!important}.hover\\:bg-yellow:hover{background-color:#ffe600!important}.hover\\:text-black:hover{color:#000!important}.hover\\:text-blue-600:hover{color:var(--color-blue-600)!important}.hover\\:text-danger-600:hover{color:#c82333!important}.hover\\:text-danger-700:hover{color:#bd2130!important}.hover\\:text-danger-800:hover{color:#aa1927!important}.hover\\:text-dark:hover{color:#1c232d!important}.hover\\:text-fiserv-orange-800:hover{color:#bf4c00!important}.hover\\:text-gray-400:hover{color:#757e8c!important}.hover\\:text-gray-700:hover{color:#2c3544!important}.hover\\:text-gray-800:hover{color:#232b37!important}.hover\\:text-gray-900:hover{color:#1c232d!important}.hover\\:text-info-800:hover{color:#026777!important}.hover\\:text-orange-800:hover{color:#c75d00!important}.hover\\:text-primary-600:hover{color:#0069d9!important}.hover\\:text-primary-700:hover{color:#0062cc!important}.hover\\:text-primary-800:hover{color:#0054af!important}.hover\\:text-purple-800:hover{color:#6f33a7!important}.hover\\:text-secondary-800:hover{color:#444a50!important}.hover\\:text-steel-800:hover{color:#333f51!important}.hover\\:text-success-600:hover{color:#218838!important}.hover\\:text-success-700:hover{color:#1e7e34!important}.hover\\:text-success-800:hover{color:#106c25!important}.hover\\:text-warning-600:hover{color:#f59e0b!important}.hover\\:text-warning-700:hover{color:#dd8e0a!important}.hover\\:text-warning-800:hover{color:#b87708!important}.hover\\:text-white:hover{color:#fff!important}.hover\\:text-yellow:hover{color:#ffe600!important}}.focus\\:border-red-500:focus{border-color:var(--color-red-500)!important}.focus\\:outline:focus{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.focus\\:outline-3:focus{outline-style:var(--tw-outline-style)!important;outline-width:3px!important}.focus\\:outline-primary-500\\/\\[\\.3\\]:focus{outline-color:#007bff4d!important}.active\\:bg-gray-50:active{background-color:#f5f6f7!important}.active\\:bg-gray-800:active{background-color:#232b37!important}.active\\:text-black:active{color:#000!important}.active\\:text-white:active{color:#fff!important}.disabled\\:pointer-events-none:disabled{pointer-events:none!important}.disabled\\:opacity-15:disabled{opacity:.15!important}.data-closed\\:opacity-0[data-closed]{opacity:0!important}.data-focus\\:-outline-offset-2[data-focus]{outline-offset:-2px!important}.data-focus\\:outline-primary-500[data-focus]{outline-color:#007bff!important}@media(min-width:48rem){.md\\:min-w-fit{min-width:fit-content!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-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--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}}}@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-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@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-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes progress{0%{transform:translate(-100%)}to{transform:translate(300%)}}',Iw=(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},Lw=(e,t)=>({classGroupId:e,validator:t}),k0=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ga="-",Vp=[],Rw="arbitrary..",Dw=e=>{const t=jw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Fw(s);const a=s.split(Ga),l=a[0]===""&&a.length>1?1:0;return T0(a,l,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const l=r[s],c=n[s];return l?c?Iw(c,l):l:c||Vp}return n[s]||Vp}}},T0=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const c=T0(e,t+1,i);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(Ga):e.slice(t).join(Ga),l=s.length;for(let c=0;c<l;c++){const u=s[c];if(u.validator(a))return u.classGroupId}},Fw=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?Rw+r:void 0})(),jw=e=>{const{theme:t,classGroups:n}=e;return zw(n,t)},zw=(e,t)=>{const n=k0();for(const r in e){const o=e[r];Zf(o,n,r,t)}return n},Zf=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];$w(s,t,n,r)}},$w=(e,t,n,r)=>{if(typeof e=="string"){Uw(e,t,n);return}if(typeof e=="function"){Bw(e,t,n,r);return}Ww(e,t,n,r)},Uw=(e,t,n)=>{const r=e===""?t:N0(t,e);r.classGroupId=n},Bw=(e,t,n,r)=>{if(Kw(e)){Zf(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Lw(n,e))},Ww=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[a,l]=o[s];Zf(l,N0(t,a),n,r)}},N0=(e,t)=>{let n=e;const r=t.split(Ga),o=r.length;for(let i=0;i<o;i++){const s=r[i];let a=n.nextPart.get(s);a||(a=k0(),n.nextPart.set(s,a)),n=a}return n},Kw=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Hw=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)}}},_u="!",Yp=":",qw=[],Qp=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Vw=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,l=0,c;const u=o.length;for(let g=0;g<u;g++){const m=o[g];if(s===0&&a===0){if(m===Yp){i.push(o.slice(l,g)),l=g+1;continue}if(m==="/"){c=g;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const f=i.length===0?o:o.slice(l);let d=f,p=!1;f.endsWith(_u)?(d=f.slice(0,-1),p=!0):f.startsWith(_u)&&(d=f.slice(1),p=!0);const h=c&&c>l?c-l:void 0;return Qp(i,p,d,h)};if(t){const o=t+Yp,i=r;r=s=>s.startsWith(o)?i(s.slice(o.length)):Qp(qw,!1,s,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},Yw=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]==="[",l=t.has(s);a||l?(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}},Qw=e=>({cache:Hw(e.cacheSize),parseClassName:Vw(e),sortModifiers:Yw(e),...Dw(e)}),Gw=/\s+/,Zw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Gw);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:f,modifiers:d,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:g}=n(u);if(f){l=u+(l.length>0?" "+l:l);continue}let m=!!g,y=r(m?h.substring(0,g):h);if(!y){if(!m){l=u+(l.length>0?" "+l:l);continue}if(y=r(h),!y){l=u+(l.length>0?" "+l:l);continue}m=!1}const v=d.length===0?"":d.length===1?d[0]:i(d).join(":"),b=p?v+_u:v,A=b+y;if(s.indexOf(A)>-1)continue;s.push(A);const w=o(y,m);for(let _=0;_<w.length;++_){const E=w[_];s.push(b+E)}l=u+(l.length>0?" "+l:l)}return l},Jw=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=O0(n))&&(o&&(o+=" "),o+=r);return o},O0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=O0(e[r]))&&(n&&(n+=" "),n+=t);return n},Xw=(e,...t)=>{let n,r,o,i;const s=l=>{const c=t.reduce((u,f)=>f(u),e());return n=Qw(c),r=n.cache.get,o=n.cache.set,i=a,a(l)},a=l=>{const c=r(l);if(c)return c;const u=Zw(l,n);return o(l,u),u};return i=s,(...l)=>i(Jw(...l))},e2=[],Ge=e=>{const t=n=>n[e]||e2;return t.isThemeGetter=!0,t},P0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,M0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,t2=/^\d+\/\d+$/,n2=/^(\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$/,o2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,i2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,s2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Go=e=>t2.test(e),we=e=>!!e&&!Number.isNaN(Number(e)),dr=e=>!!e&&Number.isInteger(Number(e)),vc=e=>e.endsWith("%")&&we(e.slice(0,-1)),Dn=e=>n2.test(e),a2=()=>!0,l2=e=>r2.test(e)&&!o2.test(e),I0=()=>!1,c2=e=>i2.test(e),u2=e=>s2.test(e),f2=e=>!ae(e)&&!le(e),d2=e=>$i(e,D0,I0),ae=e=>P0.test(e),Qr=e=>$i(e,F0,l2),bc=e=>$i(e,y2,we),Gp=e=>$i(e,L0,I0),p2=e=>$i(e,R0,u2),pa=e=>$i(e,j0,c2),le=e=>M0.test(e),ns=e=>Ui(e,F0),h2=e=>Ui(e,v2),Zp=e=>Ui(e,L0),m2=e=>Ui(e,D0),g2=e=>Ui(e,R0),ha=e=>Ui(e,j0,!0),$i=(e,t,n)=>{const r=P0.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ui=(e,t,n=!1)=>{const r=M0.exec(e);return r?r[1]?t(r[1]):n:!1},L0=e=>e==="position"||e==="percentage",R0=e=>e==="image"||e==="url",D0=e=>e==="length"||e==="size"||e==="bg-size",F0=e=>e==="length",y2=e=>e==="number",v2=e=>e==="family-name",j0=e=>e==="shadow",b2=()=>{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"),l=Ge("spacing"),c=Ge("radius"),u=Ge("shadow"),f=Ge("inset-shadow"),d=Ge("text-shadow"),p=Ge("drop-shadow"),h=Ge("blur"),g=Ge("perspective"),m=Ge("aspect"),y=Ge("ease"),v=Ge("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...A(),le,ae],_=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],S=()=>[le,ae,l],O=()=>[Go,"full","auto",...S()],P=()=>[dr,"none","subgrid",le,ae],I=()=>["auto",{span:["full",dr,le,ae]},dr,le,ae],W=()=>[dr,"auto",le,ae],j=()=>["auto","min","max","fr",le,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",...S()],oe=()=>[Go,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],M=()=>[e,le,ae],re=()=>[...A(),Zp,Gp,{position:[le,ae]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",m2,d2,{size:[le,ae]}],K=()=>[vc,ns,Qr],B=()=>["","none","full",c,le,ae],J=()=>["",we,ns,Qr],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,vc,Zp,Gp],he=()=>["","none",h,le,ae],ye=()=>["none",we,le,ae],me=()=>["none",we,le,ae],ze=()=>[we,le,ae],G=()=>[Go,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Dn],breakpoint:[Dn],color:[a2],container:[Dn],"drop-shadow":[Dn],ease:["in","out","in-out"],font:[f2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Dn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Dn],shadow:[Dn],spacing:["px",we],text:[Dn],"text-shadow":[Dn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Go,ae,le,m]}],container:["container"],columns:[{columns:[we,ae,le,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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:w()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],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:[dr,"auto",le,ae]}],basis:[{basis:[Go,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[we,Go,"auto","initial","none",ae]}],grow:[{grow:["",we,le,ae]}],shrink:[{shrink:["",we,le,ae]}],order:[{order:[dr,"first","last","none",le,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:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"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: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: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":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,ns,Qr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,le,bc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vc,ae]}],"font-family":[{font:[h2,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,le,ae]}],"line-clamp":[{"line-clamp":[we,"none",le,bc]}],leading:[{leading:[i,...S()]}],"list-image":[{"list-image":["none",le,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",le,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",le,Qr]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[we,"auto",le,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",le,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",le,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"]},dr,le,ae],radial:["",le,ae],conic:[dr,le,ae]},g2,p2]}],"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:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"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,le,ae]}],"outline-w":[{outline:["",we,ns,Qr]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",u,ha,pa]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",f,ha,pa]}],"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,Qr]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",d,ha,pa]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[we,le,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":[le,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":A()}],"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",le,ae]}],filter:[{filter:["","none",le,ae]}],blur:[{blur:he()}],brightness:[{brightness:[we,le,ae]}],contrast:[{contrast:[we,le,ae]}],"drop-shadow":[{"drop-shadow":["","none",p,ha,pa]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",we,le,ae]}],"hue-rotate":[{"hue-rotate":[we,le,ae]}],invert:[{invert:["",we,le,ae]}],saturate:[{saturate:[we,le,ae]}],sepia:[{sepia:["",we,le,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",le,ae]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[we,le,ae]}],"backdrop-contrast":[{"backdrop-contrast":[we,le,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",we,le,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[we,le,ae]}],"backdrop-invert":[{"backdrop-invert":["",we,le,ae]}],"backdrop-opacity":[{"backdrop-opacity":[we,le,ae]}],"backdrop-saturate":[{"backdrop-saturate":[we,le,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",we,le,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",le,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[we,"initial",le,ae]}],ease:[{ease:["linear","initial",y,le,ae]}],delay:[{delay:[we,le,ae]}],animate:[{animate:["none",v,le,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,le,ae]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[le,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"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",le,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",le,ae]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[we,ns,Qr,bc]}],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"]}},ui=Xw(b2);function z0(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=z0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function _s(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=z0(e))&&(r&&(r+=" "),r+=t);return r}function Ee(...e){return ui(_s(e))}const x2=typeof document<"u"?T.useLayoutEffect:()=>{},jr=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ro=e=>e&&"window"in e&&e.window===e?e:jr(e).defaultView||window;function w2(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function A2(e){return w2(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let C2=!1;function Jf(){return C2}function $0(e,t){if(!Jf())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:A2(n)?n=n.host:n=n.parentNode}return!1}const Eu=(e=document)=>{var t;if(!Jf())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 U0(e){return Jf()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function _2(e){if(E2())e.focus({preventScroll:!0});else{let t=S2(e);e.focus(),k2(t)}}let ma=null;function E2(){if(ma==null){ma=!1;try{document.createElement("div").focus({get preventScroll(){return ma=!0,!0}})}catch{}}return ma}function S2(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 k2(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function _l(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 Xf(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 rr(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Es=rr(function(){return Xf(/^Mac/i)}),T2=rr(function(){return Xf(/^iPhone/i)}),B0=rr(function(){return Xf(/^iPad/i)||Es()&&navigator.maxTouchPoints>1}),N2=rr(function(){return T2()||B0()});rr(function(){return Es()||N2()});const O2=rr(function(){return _l(/AppleWebKit/i)&&!P2()}),P2=rr(function(){return _l(/Chrome/i)}),M2=rr(function(){return _l(/Android/i)}),I2=rr(function(){return _l(/Firefox/i)});function Ss(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}=t;I2()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Es()?i=!0:s=!0);let c=O2()&&Es()&&!B0()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Ss.isOpening=n,_2(e),e.dispatchEvent(c),Ss.isOpening=!1}Ss.isOpening=!1;function W0(){let e=T.useRef(new Map),t=T.useCallback((o,i,s,a)=>{let l=a!=null&&a.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,l,a)},[]),n=T.useCallback((o,i,s,a)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(i,c,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 L2(e){return e.pointerType===""&&e.isTrusted?!0:M2()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function K0(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function R2(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function H0(e){let t=T.useRef({isFocused:!1,observer:null});return x2(()=>{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=K0(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 D2=!1,qs=null,Su=new Set,ms=new Map,Eo=!1,ku=!1;const F2={Tab:!0,Escape:!0};function ed(e,t){for(let n of Su)n(e,t)}function j2(e){return!(e.metaKey||!Es()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Za(e){Eo=!0,!Ss.isOpening&&j2(e)&&(qs="keyboard",ed("keyboard",e))}function Vt(e){qs="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(Eo=!0,ed("pointer",e))}function q0(e){!Ss.isOpening&&L2(e)&&(Eo=!0,qs="virtual")}function V0(e){e.target===window||e.target===document||D2||!e.isTrusted||(!Eo&&!ku&&(qs="virtual",ed("virtual",e)),Eo=!1,ku=!1)}function Y0(){Eo=!1,ku=!0}function Tu(e){if(typeof window>"u"||typeof document>"u"||ms.get(ro(e)))return;const t=ro(e),n=jr(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Eo=!0,r.apply(this,arguments)},n.addEventListener("keydown",Za,!0),n.addEventListener("keyup",Za,!0),n.addEventListener("click",q0,!0),t.addEventListener("focus",V0,!0),t.addEventListener("blur",Y0,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Vt,!0),n.addEventListener("pointermove",Vt,!0),n.addEventListener("pointerup",Vt,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Vt,!0),n.addEventListener("mousemove",Vt,!0),n.addEventListener("mouseup",Vt,!0)),t.addEventListener("beforeunload",()=>{Q0(e)},{once:!0}),ms.set(t,{focus:r})}const Q0=(e,t)=>{const n=ro(e),r=jr(e);t&&r.removeEventListener("DOMContentLoaded",t),ms.has(n)&&(n.HTMLElement.prototype.focus=ms.get(n).focus,r.removeEventListener("keydown",Za,!0),r.removeEventListener("keyup",Za,!0),r.removeEventListener("click",q0,!0),n.removeEventListener("focus",V0,!0),n.removeEventListener("blur",Y0,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Vt,!0),r.removeEventListener("pointermove",Vt,!0),r.removeEventListener("pointerup",Vt,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Vt,!0),r.removeEventListener("mousemove",Vt,!0),r.removeEventListener("mouseup",Vt,!0)),ms.delete(n))};function z2(e){const t=jr(e);let n;return t.readyState!=="loading"?Tu(e):(n=()=>{Tu(e)},t.addEventListener("DOMContentLoaded",n)),()=>Q0(e,n)}typeof document<"u"&&z2();function G0(){return qs!=="pointer"}const $2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function U2(e,t,n){let r=jr(n==null?void 0:n.target);const o=typeof window<"u"?ro(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?ro(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?ro(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?ro(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!$2.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!F2[n.key])}function B2(e,t,n){Tu(),T.useEffect(()=>{let r=(o,i)=>{U2(!!(n!=null&&n.isTextInput),o,i)&&e(G0())};return Su.add(r),()=>{Su.delete(r)}},t)}function W2(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=T.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=H0(i),a=T.useCallback(l=>{const c=jr(l.target),u=c?Eu(c):Eu();l.target===l.currentTarget&&u===U0(l.nativeEvent)&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}function K2(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=T.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=W0(),l=T.useCallback(f=>{f.currentTarget.contains(f.target)&&i.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(f),o&&o(!1))},[n,o,i,a]),c=H0(l),u=T.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const d=jr(f.target),p=Eu(d);if(!i.current.isFocusWithin&&p===U0(f.nativeEvent)){r&&r(f),o&&o(!0),i.current.isFocusWithin=!0,c(f);let h=f.currentTarget;s(d,"focus",g=>{if(i.current.isFocusWithin&&!$0(h,g.target)){let m=new d.defaultView.FocusEvent("blur",{relatedTarget:g.target});R2(m,h);let y=K0(m);l(y)}},{capture:!0})}},[r,o,c,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let Ja=!1,ga=0;function Nu(){Ja=!0,setTimeout(()=>{Ja=!1},50)}function Jp(e){e.pointerType==="touch"&&Nu()}function H2(){if(!(typeof document>"u"))return ga===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Jp):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Nu)),ga++,()=>{ga--,!(ga>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Jp):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Nu))}}function q2(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(H2,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=W0(),{hoverProps:u,triggerHoverEnd:f}=T.useMemo(()=>{let d=(g,m)=>{if(a.pointerType=m,o||m==="touch"||a.isHovered||!g.currentTarget.contains(g.target))return;a.isHovered=!0;let y=g.currentTarget;a.target=y,l(jr(g.target),"pointerover",v=>{a.isHovered&&a.target&&!$0(a.target,v.target)&&p(v,v.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:y,pointerType:m}),n&&n(!0),s(!0)},p=(g,m)=>{let y=a.target;a.pointerType="",a.target=null,!(m==="touch"||!a.isHovered||!y)&&(a.isHovered=!1,c(),r&&r({type:"hoverend",target:y,pointerType:m}),n&&n(!1),s(!1))},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=g=>{Ja&&g.pointerType==="mouse"||d(g,g.pointerType)},h.onPointerLeave=g=>{!o&&g.currentTarget.contains(g.target)&&p(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(h.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=g=>{!a.ignoreEmulatedMouseEvents&&!Ja&&d(g,"mouse"),a.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=g=>{!o&&g.currentTarget.contains(g.target)&&p(g,"mouse")}),{hoverProps:h,triggerHoverEnd:p}},[t,n,r,o,a,l,c]);return T.useEffect(()=>{o&&f({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:u,isHovered:i}}function V2(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=T.useRef({isFocused:!1,isFocusVisible:t||G0()}),[i,s]=T.useState(!1),[a,l]=T.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=T.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=T.useCallback(p=>{o.current.isFocused=p,s(p),c()},[c]);B2(p=>{o.current.isFocusVisible=p,c()},[],{isTextInput:n});let{focusProps:f}=W2({isDisabled:r,onFocusChange:u}),{focusWithinProps:d}=K2({isDisabled:!r,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:a,focusProps:r?d:f}}var Y2=Object.defineProperty,Q2=(e,t,n)=>t in e?Y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xc=(e,t,n)=>(Q2(e,typeof t!="symbol"?t+"":t,n),n);let G2=class{constructor(){xc(this,"current",this.detect()),xc(this,"handoffState","pending"),xc(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"}},Z2=new G2,td=(e,t)=>{Z2.isServer?T.useEffect(e,t):T.useLayoutEffect(e,t)};function J2(e){let t=T.useRef(e);return td(()=>{t.current=e},[e]),t}let El=function(e){let t=J2(e);return T.useCallback((...n)=>t.current(...n),[t])};function Sl(e){return T.useMemo(()=>e,Object.values(e))}let Z0=T.createContext(void 0);function kl(){return T.useContext(Z0)}function X2({value:e,children:t}){return T.createElement(Z0.Provider,{value:e},t)}function Xp(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function J0(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,J0),r}var eA=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(eA||{}),tA=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(tA||{});function Vs(){let e=rA();return T.useCallback(t=>nA({mergeRefs:e,...t}),[e])}function nA({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??oA;let l=X0(t,e);if(i)return ya(l,n,r,s,a);let c=o??0;if(c&2){let{static:u=!1,...f}=l;if(u)return ya(f,n,r,s,a)}if(c&1){let{unmount:u=!0,...f}=l;return J0(u?0:1,{0(){return null},1(){return ya({...f,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return ya(l,n,r,s,a)}function ya(e,t={},n,r,o){let{as:i=n,children:s,refName:a="ref",...l}=wc(e,["unmount","static"]),c=e.ref!==void 0?{[a]:e.ref}:{},u=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let f={};if(t){let d=!1,p=[];for(let[h,g]of Object.entries(t))typeof g=="boolean"&&(d=!0),g===!0&&p.push(h.replace(/([A-Z])/g,m=>`-${m.toLowerCase()}`));if(d){f["data-headlessui-state"]=p.join(" ");for(let h of p)f[`data-${h}`]=""}}if(Ia(i)&&(Object.keys(Zo(l)).length>0||Object.keys(Zo(f)).length>0))if(!T.isValidElement(u)||Array.isArray(u)&&u.length>1||aA(u)){if(Object.keys(Zo(l)).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(Zo(l)).concat(Object.keys(Zo(f))).map(d=>` - ${d}`).join(`
|
|
19
|
+
*/var dc,Sp;function k1(){if(Sp)return dc;Sp=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 l=Object.getOwnPropertyNames(s).map(function(u){return s[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return dc=o()?Object.assign:function(i,s){for(var a,l=r(i),c,u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var f in a)t.call(a,f)&&(l[f]=a[f]);if(e){c=e(a);for(var d=0;d<c.length;d++)n.call(a,c[d])&&(l[c[d]]=a[c[d]])}}return l},dc}var pc,kp;function Kf(){if(kp)return pc;kp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return pc=e,pc}var hc,Tp;function r0(){return Tp||(Tp=1,hc=Function.call.bind(Object.prototype.hasOwnProperty)),hc}var mc,Np;function T1(){if(Np)return mc;Np=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Kf(),n={},r=r0();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,a,l,c){if(process.env.NODE_ENV!=="production"){for(var u in i)if(r(i,u)){var f;try{if(typeof i[u]!="function"){var d=Error((l||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=i[u](s,u,l,a,null,t)}catch(h){f=h}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var p=c?c():"";e("Failed "+a+" type: "+f.message+(p??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},mc=o,mc}var gc,Op;function N1(){if(Op)return gc;Op=1;var e=n0(),t=k1(),n=Kf(),r=r0(),o=T1(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return gc=function(a,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(L){var F=L&&(c&&L[c]||L[u]);if(typeof F=="function")return F}var d="<<anonymous>>",p={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:v(),arrayOf:b,element:A(),elementType:w(),instanceOf:_,node:P(),objectOf:S,oneOf:E,oneOfType:O,shape:W,exact:j};function h(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 m(L){if(process.env.NODE_ENV!=="production")var F={},K=0;function B(V,ee,te,he,ye,me,ze){if(he=he||d,me=me||te,ze!==n){if(l){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=he+":"+te;!F[qe]&&K<3&&(i("You are manually calling a React.PropTypes validation function for the `"+me+"` prop on `"+he+"`. 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+" `"+me+"` is marked as required "+("in `"+he+"`, but its value is `null`.")):new g("The "+ye+" `"+me+"` is marked as required in "+("`"+he+"`, but its value is `undefined`.")):null:L(ee,te,he,ye,me)}var J=B.bind(null,!1);return J.isRequired=B.bind(null,!0),J}function y(L){function F(K,B,J,V,ee,te){var he=K[B],ye=Q(he);if(ye!==L){var me=oe(he);return new g("Invalid "+V+" `"+ee+"` of type "+("`"+me+"` supplied to `"+J+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return m(F)}function v(){return m(s)}function b(L){function F(K,B,J,V,ee){if(typeof L!="function")return new g("Property `"+ee+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var te=K[B];if(!Array.isArray(te)){var he=Q(te);return new g("Invalid "+V+" `"+ee+"` of type "+("`"+he+"` supplied to `"+J+"`, expected an array."))}for(var ye=0;ye<te.length;ye++){var me=L(te,ye,J,V,ee+"["+ye+"]",n);if(me instanceof Error)return me}return null}return m(F)}function A(){function L(F,K,B,J,V){var ee=F[K];if(!a(ee)){var te=Q(ee);return new g("Invalid "+J+" `"+V+"` of type "+("`"+te+"` supplied to `"+B+"`, expected a single ReactElement."))}return null}return m(L)}function w(){function L(F,K,B,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 `"+B+"`, expected a single ReactElement type."))}return null}return m(L)}function _(L){function F(K,B,J,V,ee){if(!(K[B]instanceof L)){var te=L.name||d,he=re(K[B]);return new g("Invalid "+V+" `"+ee+"` of type "+("`"+he+"` supplied to `"+J+"`, expected ")+("instance of `"+te+"`."))}return null}return m(F)}function E(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,B,J,V,ee){for(var te=K[B],he=0;he<L.length;he++)if(h(te,L[he]))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 m(F)}function S(L){function F(K,B,J,V,ee){if(typeof L!="function")return new g("Property `"+ee+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var te=K[B],he=Q(te);if(he!=="object")return new g("Invalid "+V+" `"+ee+"` of type "+("`"+he+"` supplied to `"+J+"`, expected an object."));for(var ye in te)if(r(te,ye)){var me=L(te,ye,J,V,ee+"."+ye,n);if(me instanceof Error)return me}return null}return m(F)}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 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 B(J,V,ee,te,he){for(var ye=[],me=0;me<L.length;me++){var ze=L[me],G=ze(J,V,ee,te,he,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+" `"+he+"` supplied to "+("`"+ee+"`"+qe+"."))}return m(B)}function P(){function L(F,K,B,J,V){return z(F[K])?null:new g("Invalid "+J+" `"+V+"` supplied to "+("`"+B+"`, expected a ReactNode."))}return m(L)}function I(L,F,K,B,J){return new g((L||"React class")+": "+F+" type `"+K+"."+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function W(L){function F(K,B,J,V,ee){var te=K[B],he=Q(te);if(he!=="object")return new g("Invalid "+V+" `"+ee+"` of type `"+he+"` "+("supplied to `"+J+"`, expected `object`."));for(var ye in L){var me=L[ye];if(typeof me!="function")return I(J,V,ee,ye,oe(me));var ze=me(te,ye,J,V,ee+"."+ye,n);if(ze)return ze}return null}return m(F)}function j(L){function F(K,B,J,V,ee){var te=K[B],he=Q(te);if(he!=="object")return new g("Invalid "+V+" `"+ee+"` of type `"+he+"` "+("supplied to `"+J+"`, expected `object`."));var ye=t({},K[B],L);for(var me in ye){var ze=L[me];if(r(L,me)&&typeof ze!="function")return I(J,V,ee,me,oe(ze));if(!ze)return new g("Invalid "+V+" `"+ee+"` key `"+me+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(K[B],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(L),null," "));var G=ze(te,me,J,V,ee+"."+me,n);if(G)return G}return null}return m(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=f(L);if(F){var K=F.call(L),B;if(F!==L.entries){for(;!(B=K.next()).done;)if(!z(B.value))return!1}else for(;!(B=K.next()).done;){var J=B.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 p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},gc}var yc,Pp;function O1(){if(Pp)return yc;Pp=1;var e=Kf();function t(){}function n(){}return n.resetWarningCache=t,yc=function(){function r(s,a,l,c,u,f){if(f!==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},yc}var Mp;function P1(){if(Mp)return fa.exports;if(Mp=1,process.env.NODE_ENV!=="production"){var e=n0(),t=!0;fa.exports=N1()(e.isElement,t)}else fa.exports=O1()();return fa.exports}var M1=P1();const ge=_1(M1);var I1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function o0(e,t){return e(t={exports:{}},t.exports),t.exports}var L1=o0((function(e){(function(t){var n=function(m,y,v){if(!l(y)||u(y)||f(y)||d(y)||a(y))return y;var b,A=0,w=0;if(c(y))for(b=[],w=y.length;A<w;A++)b.push(n(m,y[A],v));else for(var _ in b={},y)Object.prototype.hasOwnProperty.call(y,_)&&(b[m(_,v)]=n(m,y[_],v));return b},r=function(m){return p(m)?m:(m=m.replace(/[\-_\s]+(.)?/g,(function(y,v){return v?v.toUpperCase():""}))).substr(0,1).toLowerCase()+m.substr(1)},o=function(m){var y=r(m);return y.substr(0,1).toUpperCase()+y.substr(1)},i=function(m,y){return(function(v,b){var A=(b=b||{}).separator||"_",w=b.split||/(?=[A-Z])/;return v.split(w).join(A)})(m,y).toLowerCase()},s=Object.prototype.toString,a=function(m){return typeof m=="function"},l=function(m){return m===Object(m)},c=function(m){return s.call(m)=="[object Array]"},u=function(m){return s.call(m)=="[object Date]"},f=function(m){return s.call(m)=="[object RegExp]"},d=function(m){return s.call(m)=="[object Boolean]"},p=function(m){return(m-=0)==m},h=function(m,y){var v=y&&"process"in y?y.process:y;return typeof v!="function"?m:function(b,A){return v(b,m,A)}},g={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(m,y){return n(h(r,y),m)},decamelizeKeys:function(m,y){return n(h(i,y),m,y)},pascalizeKeys:function(m,y){return n(h(o,y),m)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=g:t.humps=g})(I1)})).decamelize,R1=function(e){if(Array.isArray(e))return e},D1=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(l){o=!0,i=l}finally{try{r||a.return==null||a.return()}finally{if(o)throw i}}return n}},Ip=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},F1=function(e,t){if(e){if(typeof e=="string")return Ip(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)?Ip(e,t):void 0}},j1=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.`)},z1=function(e,t){return R1(e)||D1(e,t)||F1(e,t)||j1()},i0=o0((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})),$1=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},s0=function(e,t){if(e==null)return{};var n,r,o=$1(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},U1=T.createContext(null);function a0(e){var t=e.children,n=t===void 0?"":t,r=s0(e,["children"]);return typeof n!="string"&&(n=A1.renderToString(n)),T.createElement("template",i0({},r,{dangerouslySetInnerHTML:{__html:n}}))}function l0(e){var t=e.root,n=e.children;return Tn.createPortal(n===void 0?null:n,t)}function B1(e){var t=T.forwardRef((function(n,r){var o,i,s=n.mode,a=s===void 0?"open":s,l=n.delegatesFocus,c=l!==void 0&&l,u=n.styleSheets,f=u===void 0?[]:u,d=n.ssr,p=d!==void 0&&d,h=n.children,g=s0(n,["mode","delegatesFocus","styleSheets","ssr","children"]),m=(i=T.useRef((o=r)&&o.current),T.useEffect((function(){o&&(o.current=i.current)}),[o]),i),y=T.useState(null),v=z1(y,2),b=v[0],A=v[1],w="node_".concat(a).concat(c);return T.useLayoutEffect((function(){if(m.current)try{if(typeof r=="function"&&r(m.current),p){var _=m.current.shadowRoot;return void A(_)}var E=m.current.attachShadow({mode:a,delegatesFocus:c});f.length>0&&(E.adoptedStyleSheets=f),A(E)}catch(S){(function(O){var P=O.error,I=O.styleSheets,W=O.root;switch(P.name){case"NotSupportedError":I.length>0&&(W.adoptedStyleSheets=I);break;default:throw P}})({error:S,styleSheets:f,root:b})}}),[r,m,f]),T.createElement(T.Fragment,null,T.createElement(e.tag,i0({key:w,ref:m},g),(b||p)&&T.createElement(U1.Provider,{value:b},p?T.createElement(a0,{shadowroot:a,shadowrootmode:a},e.render({root:b,ssr:p,children:h})):T.createElement(l0,{root:b},e.render({root:b,ssr:p,children:h})))))}));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])},l0.propTypes={root:ge.object.isRequired,children:ge.node};var vc=new Map;function W1(){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=L1(o,{separator:"-"}),s="".concat(t,"-").concat(i);return vc.has(s)||vc.set(s,B1({tag:i,render:n})),vc.get(s)}})}var Cl=W1();const c0="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 Ui=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(){}},K1={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},gn,so,Kg,H1=(Kg=class{constructor(){fe(this,gn,K1);fe(this,so,!1)}setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&k(this,so)&&e!==k(this,gn)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:k(this,gn),provider:e}),ne(this,gn,e),process.env.NODE_ENV!=="production"&&ne(this,so,!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&ne(this,so,!0),k(this,gn).setTimeout(e,t)}clearTimeout(e){k(this,gn).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!=="production"&&ne(this,so,!0),k(this,gn).setInterval(e,t)}clearInterval(e){k(this,gn).clearInterval(e)}},gn=new WeakMap,so=new WeakMap,Kg),no=new H1;function q1(e){setTimeout(e,0)}var Co=typeof window>"u"||"Deno"in globalThis;function kt(){}function V1(e,t){return typeof e=="function"?e(t):e}function uu(e){return typeof e=="number"&&e>=0&&e!==1/0}function u0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Tr(e,t){return typeof e=="function"?e(t):e}function qt(e,t){return typeof e=="function"?e(t):e}function Lp(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Hf(s,t.options))return!1}else if(!Es(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Rp(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(_o(t.options.mutationKey)!==_o(i))return!1}else if(!Es(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Hf(e,t){return((t==null?void 0:t.queryKeyHashFn)||_o)(e)}function _o(e){return JSON.stringify(e,(t,n)=>du(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Es(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Es(e[n],t[n])):!1}var Y1=Object.prototype.hasOwnProperty;function fu(e,t){if(e===t)return e;const n=Dp(e)&&Dp(t);if(!n&&!(du(e)&&du(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 l=0;for(let c=0;c<s;c++){const u=n?c:i[c],f=e[u],d=t[u];if(f===d){a[u]=f,(n?c<o:Y1.call(e,u))&&l++;continue}if(f===null||d===null||typeof f!="object"||typeof d!="object"){a[u]=d;continue}const p=fu(f,d);a[u]=p,p===f&&l++}return o===s&&l===o?e:a}function Ya(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 Dp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function du(e){if(!Fp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Fp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Fp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Q1(e){return new Promise(t=>{no.setTimeout(t,e)})}function pu(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 fu(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 fu(e,t)}return t}function G1(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Z1(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Qa=Symbol();function f0(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Qa&&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===Qa?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function qf(e,t){return typeof e=="function"?e(...t):!!e}function J1(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 ao,gr,xi,Hg,X1=(Hg=class extends Ui{constructor(){super();fe(this,ao);fe(this,gr);fe(this,xi);ne(this,xi,t=>{if(!Co&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,gr)||this.setEventListener(k(this,xi))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,gr))==null||t.call(this),ne(this,gr,void 0))}setEventListener(t){var n;ne(this,xi,t),(n=k(this,gr))==null||n.call(this),ne(this,gr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,ao)!==t&&(ne(this,ao,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,ao)=="boolean"?k(this,ao):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ao=new WeakMap,gr=new WeakMap,xi=new WeakMap,Hg),Vf=new X1;function hu(){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 ew=q1;function tw(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=ew;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ze=tw(),wi,yr,Ai,qg,nw=(qg=class extends Ui{constructor(){super();fe(this,wi,!0);fe(this,yr);fe(this,Ai);ne(this,Ai,t=>{if(!Co&&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,yr)||this.setEventListener(k(this,Ai))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,yr))==null||t.call(this),ne(this,yr,void 0))}setEventListener(t){var n;ne(this,Ai,t),(n=k(this,yr))==null||n.call(this),ne(this,yr,t(this.setOnline.bind(this)))}setOnline(t){k(this,wi)!==t&&(ne(this,wi,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,wi)}},wi=new WeakMap,yr=new WeakMap,Ai=new WeakMap,qg),Ga=new nw;function rw(e){return Math.min(1e3*2**e,3e4)}function d0(e){return(e??"online")==="online"?Ga.isOnline():!0}var mu=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=hu(),i=()=>o.status!=="pending",s=g=>{var m;if(!i()){const y=new mu(g);d(y),(m=e.onCancel)==null||m.call(e,y)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>Vf.isFocused()&&(e.networkMode==="always"||Ga.isOnline())&&e.canRun(),u=()=>d0(e.networkMode)&&e.canRun(),f=g=>{i()||(r==null||r(),o.resolve(g))},d=g=>{i()||(r==null||r(),o.reject(g))},p=()=>new Promise(g=>{var m;r=y=>{(i()||c())&&g(y)},(m=e.onPause)==null||m.call(e)}).then(()=>{var g;r=void 0,i()||(g=e.onContinue)==null||g.call(e)}),h=()=>{if(i())return;let g;const m=n===0?e.initialPromise:void 0;try{g=m??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(f).catch(y=>{var _;if(i())return;const v=e.retry??(Co?0:3),b=e.retryDelay??rw,A=typeof b=="function"?b(n,y):b,w=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,y);if(t||!w){d(y);return}n++,(_=e.onFail)==null||_.call(e,n,y),Q1(A).then(()=>c()?void 0:p()).then(()=>{t?d(y):h()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?h():p().then(h),o)}}var lo,Vg,h0=(Vg=class{constructor(){fe(this,lo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),uu(this.gcTime)&&ne(this,lo,no.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Co?1/0:300*1e3))}clearGcTimeout(){k(this,lo)&&(no.clearTimeout(k(this,lo)),ne(this,lo,void 0))}},lo=new WeakMap,Vg),co,Ci,Ht,uo,tt,Us,fo,rn,zn,Yg,ow=(Yg=class extends h0{constructor(t){super();fe(this,rn);fe(this,co);fe(this,Ci);fe(this,Ht);fe(this,uo);fe(this,tt);fe(this,Us);fe(this,fo);ne(this,fo,!1),ne(this,Us,t.defaultOptions),this.setOptions(t.options),this.observers=[],ne(this,uo,t.client),ne(this,Ht,k(this,uo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ne(this,co,zp(this.options)),this.state=t.state??k(this,co),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,Us),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=zp(this.options);n.data!==void 0&&(this.setState(jp(n.data,n.dataUpdatedAt)),ne(this,co,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,Ht).remove(this)}setData(t,n){const r=pu(this.state.data,t,this.options);return ve(this,rn,zn).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,rn,zn).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,co))}isActive(){return this.observers.some(t=>qt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qa||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Tr(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:!u0(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,Ht).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,fo)?k(this,tt).cancel({revert:!0}):k(this,tt).cancelRetry()),this.scheduleGc()),k(this,Ht).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ve(this,rn,zn).call(this,{type:"invalidate"})}async fetch(t,n){var l,c,u,f,d,p,h,g,m,y,v,b;if(this.state.fetchStatus!=="idle"&&((l=k(this,tt))==null?void 0:l.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 A=this.observers.find(w=>w.options.queryFn);A&&this.setOptions(A.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=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(ne(this,fo,!0),r.signal)})},i=()=>{const A=f0(this.options,n),_=(()=>{const E={client:k(this,uo),queryKey:this.queryKey,meta:this.meta};return o(E),E})();return ne(this,fo,!1),this.options.persister?this.options.persister(A,_,this):A(_)},a=(()=>{const A={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:k(this,uo),state:this.state,fetchFn:i};return o(A),A})();(c=this.options.behavior)==null||c.onFetch(a,this),ne(this,Ci,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&ve(this,rn,zn).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta}),ne(this,tt,p0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:A=>{A instanceof mu&&A.revert&&this.setState({...k(this,Ci),fetchStatus:"idle"}),r.abort()},onFail:(A,w)=>{ve(this,rn,zn).call(this,{type:"failed",failureCount:A,error:w})},onPause:()=>{ve(this,rn,zn).call(this,{type:"pause"})},onContinue:()=>{ve(this,rn,zn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const A=await k(this,tt).start();if(A===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(A),(p=(d=k(this,Ht).config).onSuccess)==null||p.call(d,A,this),(g=(h=k(this,Ht).config).onSettled)==null||g.call(h,A,this.state.error,this),A}catch(A){if(A instanceof mu){if(A.silent)return k(this,tt).promise;if(A.revert){if(this.state.data===void 0)throw A;return this.state.data}}throw ve(this,rn,zn).call(this,{type:"error",error:A}),(y=(m=k(this,Ht).config).onError)==null||y.call(m,A,this),(b=(v=k(this,Ht).config).onSettled)==null||b.call(v,this.state.data,A,this),A}finally{this.scheduleGc()}}},co=new WeakMap,Ci=new WeakMap,Ht=new WeakMap,uo=new WeakMap,tt=new WeakMap,Us=new WeakMap,fo=new WeakMap,rn=new WeakSet,zn=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,...m0(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...jp(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ne(this,Ci,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,Ht).notify({query:this,type:"updated",action:t})})},Yg);function m0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:d0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function jp(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function zp(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,Bs,Et,po,_i,Kn,vr,Ws,Ei,Si,ho,mo,br,ki,Me,ps,gu,yu,vu,bu,xu,wu,Au,g0,Qg,iw=(Qg=class extends Ui{constructor(t,n){super();fe(this,Me);fe(this,Lt);fe(this,_e);fe(this,Bs);fe(this,Et);fe(this,po);fe(this,_i);fe(this,Kn);fe(this,vr);fe(this,Ws);fe(this,Ei);fe(this,Si);fe(this,ho);fe(this,mo);fe(this,br);fe(this,ki,new Set);this.options=n,ne(this,Lt,t),ne(this,vr,null),ne(this,Kn,hu()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,_e).addObserver(this),$p(k(this,_e),this.options)?ve(this,Me,ps).call(this):this.updateResult(),ve(this,Me,bu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Cu(k(this,_e),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Cu(k(this,_e),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ve(this,Me,xu).call(this),ve(this,Me,wu).call(this),k(this,_e).removeObserver(this)}setOptions(t){const n=this.options,r=k(this,_e);if(this.options=k(this,Lt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof qt(this.options.enabled,k(this,_e))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ve(this,Me,Au).call(this),k(this,_e).setOptions(this.options),n._defaulted&&!Ya(this.options,n)&&k(this,Lt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,_e),observer:this});const o=this.hasListeners();o&&Up(k(this,_e),r,this.options,n)&&ve(this,Me,ps).call(this),this.updateResult(),o&&(k(this,_e)!==r||qt(this.options.enabled,k(this,_e))!==qt(n.enabled,k(this,_e))||Tr(this.options.staleTime,k(this,_e))!==Tr(n.staleTime,k(this,_e)))&&ve(this,Me,gu).call(this);const i=ve(this,Me,yu).call(this);o&&(k(this,_e)!==r||qt(this.options.enabled,k(this,_e))!==qt(n.enabled,k(this,_e))||i!==k(this,br))&&ve(this,Me,vu).call(this,i)}getOptimisticResult(t){const n=k(this,Lt).getQueryCache().build(k(this,Lt),t),r=this.createResult(n,t);return aw(this,r)&&(ne(this,Et,r),ne(this,_i,this.options),ne(this,po,k(this,_e).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,Kn).status==="pending"&&k(this,Kn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){k(this,ki).add(t)}getCurrentQuery(){return k(this,_e)}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 ve(this,Me,ps).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Et)))}createResult(t,n){var O;const r=k(this,_e),o=this.options,i=k(this,Et),s=k(this,po),a=k(this,_i),c=t!==r?t.state:k(this,Bs),{state:u}=t;let f={...u},d=!1,p;if(n._optimisticResults){const P=this.hasListeners(),I=!P&&$p(t,n),W=P&&Up(t,r,n,o);(I||W)&&(f={...f,...m0(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:h,errorUpdatedAt:g,status:m}=f;p=f.data;let y=!1;if(n.placeholderData!==void 0&&p===void 0&&m==="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=k(this,Si))==null?void 0:O.state.data,k(this,Si)):n.placeholderData,P!==void 0&&(m="success",p=pu(i==null?void 0:i.data,P,n),d=!0)}if(n.select&&p!==void 0&&!y)if(i&&p===(s==null?void 0:s.data)&&n.select===k(this,Ws))p=k(this,Ei);else try{ne(this,Ws,n.select),p=n.select(p),p=pu(i==null?void 0:i.data,p,n),ne(this,Ei,p),ne(this,vr,null)}catch(P){ne(this,vr,P)}k(this,vr)&&(h=k(this,vr),p=k(this,Ei),g=Date.now(),m="error");const v=f.fetchStatus==="fetching",b=m==="pending",A=m==="error",w=b&&v,_=p!==void 0,S={status:m,fetchStatus:f.fetchStatus,isPending:b,isSuccess:m==="success",isError:A,isInitialLoading:w,isLoading:w,data:p,dataUpdatedAt:f.dataUpdatedAt,error:h,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:v,isRefetching:v&&!b,isLoadingError:A&&!_,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:A&&_,isStale:Yf(t,n),refetch:this.refetch,promise:k(this,Kn),isEnabled:qt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const P=j=>{S.status==="error"?j.reject(S.error):S.data!==void 0&&j.resolve(S.data)},I=()=>{const j=ne(this,Kn,S.promise=hu());P(j)},W=k(this,Kn);switch(W.status){case"pending":t.queryHash===r.queryHash&&P(W);break;case"fulfilled":(S.status==="error"||S.data!==W.value)&&I();break;case"rejected":(S.status!=="error"||S.error!==W.reason)&&I();break}}return S}updateResult(){const t=k(this,Et),n=this.createResult(k(this,_e),this.options);if(ne(this,po,k(this,_e).state),ne(this,_i,this.options),k(this,po).data!==void 0&&ne(this,Si,k(this,_e)),Ya(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,ki).size)return!0;const s=new Set(i??k(this,ki));return this.options.throwOnError&&s.add("error"),Object.keys(k(this,Et)).some(a=>{const l=a;return k(this,Et)[l]!==t[l]&&s.has(l)})};ve(this,Me,g0).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ve(this,Me,bu).call(this)}},Lt=new WeakMap,_e=new WeakMap,Bs=new WeakMap,Et=new WeakMap,po=new WeakMap,_i=new WeakMap,Kn=new WeakMap,vr=new WeakMap,Ws=new WeakMap,Ei=new WeakMap,Si=new WeakMap,ho=new WeakMap,mo=new WeakMap,br=new WeakMap,ki=new WeakMap,Me=new WeakSet,ps=function(t){ve(this,Me,Au).call(this);let n=k(this,_e).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(kt)),n},gu=function(){ve(this,Me,xu).call(this);const t=Tr(this.options.staleTime,k(this,_e));if(Co||k(this,Et).isStale||!uu(t))return;const r=u0(k(this,Et).dataUpdatedAt,t)+1;ne(this,ho,no.setTimeout(()=>{k(this,Et).isStale||this.updateResult()},r))},yu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,_e)):this.options.refetchInterval)??!1},vu=function(t){ve(this,Me,wu).call(this),ne(this,br,t),!(Co||qt(this.options.enabled,k(this,_e))===!1||!uu(k(this,br))||k(this,br)===0)&&ne(this,mo,no.setInterval(()=>{(this.options.refetchIntervalInBackground||Vf.isFocused())&&ve(this,Me,ps).call(this)},k(this,br)))},bu=function(){ve(this,Me,gu).call(this),ve(this,Me,vu).call(this,ve(this,Me,yu).call(this))},xu=function(){k(this,ho)&&(no.clearTimeout(k(this,ho)),ne(this,ho,void 0))},wu=function(){k(this,mo)&&(no.clearInterval(k(this,mo)),ne(this,mo,void 0))},Au=function(){const t=k(this,Lt).getQueryCache().build(k(this,Lt),this.options);if(t===k(this,_e))return;const n=k(this,_e);ne(this,_e,t),ne(this,Bs,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},g0=function(t){Ze.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,Et))}),k(this,Lt).getQueryCache().notify({query:k(this,_e),type:"observerResultsUpdated"})})},Qg);function sw(e,t){return qt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function $p(e,t){return sw(e,t)||e.state.data!==void 0&&Cu(e,t,t.refetchOnMount)}function Cu(e,t,n){if(qt(t.enabled,e)!==!1&&Tr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Yf(e,t)}return!1}function Up(e,t,n,r){return(e!==t||qt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Yf(e,n)}function Yf(e,t){return qt(t.enabled,e)!==!1&&e.isStaleByTime(Tr(t.staleTime,e))}function aw(e,t){return!Ya(e.getCurrentResult(),t)}function Bp(e){return{onFetch:(t,n)=>{var u,f,d,p,h;const r=t.options,o=(d=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],s=((h=t.state.data)==null?void 0:h.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const m=b=>{J1(b,()=>t.signal,()=>g=!0)},y=f0(t.options,t.fetchOptions),v=async(b,A,w)=>{if(g)return Promise.reject();if(A==null&&b.pages.length)return Promise.resolve(b);const E=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:A,direction:w?"backward":"forward",meta:t.options.meta};return m(I),I})(),S=await y(E),{maxPages:O}=t.options,P=w?Z1:G1;return{pages:P(b.pages,S,O),pageParams:P(b.pageParams,A,O)}};if(o&&i.length){const b=o==="backward",A=b?lw:Wp,w={pages:i,pageParams:s},_=A(r,w);a=await v(w,_,b)}else{const b=e??i.length;do{const A=l===0?s[0]??r.initialPageParam:Wp(r,a);if(l>0&&A==null)break;a=await v(a,A),l++}while(l<b)}return a};t.options.persister?t.fetchFn=()=>{var g,m;return(m=(g=t.options).persister)==null?void 0:m.call(g,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Wp(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 lw(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}var Ks,yn,St,go,vn,hr,Gg,cw=(Gg=class extends h0{constructor(t){super();fe(this,vn);fe(this,Ks);fe(this,yn);fe(this,St);fe(this,go);ne(this,Ks,t.client),this.mutationId=t.mutationId,ne(this,St,t.mutationCache),ne(this,yn,[]),this.state=t.state||y0(),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,yn).includes(t)||(k(this,yn).push(t),this.clearGcTimeout(),k(this,St).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ne(this,yn,k(this,yn).filter(n=>n!==t)),this.scheduleGc(),k(this,St).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,yn).length||(this.state.status==="pending"?this.scheduleGc():k(this,St).remove(this))}continue(){var t;return((t=k(this,go))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,l,c,u,f,d,p,h,g,m,y,v,b,A,w,_,E,S,O;const n=()=>{ve(this,vn,hr).call(this,{type:"continue"})},r={client:k(this,Ks),meta:this.options.meta,mutationKey:this.options.mutationKey};ne(this,go,p0({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,I)=>{ve(this,vn,hr).call(this,{type:"failed",failureCount:P,error:I})},onPause:()=>{ve(this,vn,hr).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,go).canStart();try{if(o)n();else{ve(this,vn,hr).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((c=(l=this.options).onMutate)==null?void 0:c.call(l,t,r));I!==this.state.context&&ve(this,vn,hr).call(this,{type:"pending",context:I,variables:t,isPaused:i})}const P=await k(this,go).start();return await((f=(u=k(this,St).config).onSuccess)==null?void 0:f.call(u,P,t,this.state.context,this,r)),await((p=(d=this.options).onSuccess)==null?void 0:p.call(d,P,t,this.state.context,r)),await((g=(h=k(this,St).config).onSettled)==null?void 0:g.call(h,P,null,this.state.variables,this.state.context,this,r)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,P,null,t,this.state.context,r)),ve(this,vn,hr).call(this,{type:"success",data:P}),P}catch(P){try{await((b=(v=k(this,St).config).onError)==null?void 0:b.call(v,P,t,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((w=(A=this.options).onError)==null?void 0:w.call(A,P,t,this.state.context,r))}catch(I){Promise.reject(I)}try{await((E=(_=k(this,St).config).onSettled)==null?void 0:E.call(_,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,vn,hr).call(this,{type:"error",error:P}),P}finally{k(this,St).runNext(this)}}},Ks=new WeakMap,yn=new WeakMap,St=new WeakMap,go=new WeakMap,vn=new WeakSet,hr=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,yn).forEach(r=>{r.onMutationUpdate(t)}),k(this,St).notify({mutation:this,type:"updated",action:t})})},Gg);function y0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Hn,on,Hs,Zg,uw=(Zg=class extends Ui{constructor(t={}){super();fe(this,Hn);fe(this,on);fe(this,Hs);this.config=t,ne(this,Hn,new Set),ne(this,on,new Map),ne(this,Hs,0)}build(t,n,r){const o=new cw({client:t,mutationCache:this,mutationId:++ua(this,Hs)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){k(this,Hn).add(t);const n=pa(t);if(typeof n=="string"){const r=k(this,on).get(n);r?r.push(t):k(this,on).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,Hn).delete(t)){const n=pa(t);if(typeof n=="string"){const r=k(this,on).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,on).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=pa(t);if(typeof n=="string"){const r=k(this,on).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=pa(t);if(typeof n=="string"){const o=(r=k(this,on).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,Hn).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,Hn).clear(),k(this,on).clear()})}getAll(){return Array.from(k(this,Hn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Rp(n,r))}findAll(t={}){return this.getAll().filter(n=>Rp(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))))}},Hn=new WeakMap,on=new WeakMap,Hs=new WeakMap,Zg);function pa(e){var t;return(t=e.options.scope)==null?void 0:t.id}var qn,xr,Rt,Vn,Zn,Ia,_u,Jg,fw=(Jg=class extends Ui{constructor(n,r){super();fe(this,Zn);fe(this,qn);fe(this,xr);fe(this,Rt);fe(this,Vn);ne(this,qn,n),this.setOptions(r),this.bindMethods(),ve(this,Zn,Ia).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),Ya(this.options,r)||k(this,qn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Rt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&_o(r.mutationKey)!==_o(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){ve(this,Zn,Ia).call(this),ve(this,Zn,_u).call(this,n)}getCurrentResult(){return k(this,xr)}reset(){var n;(n=k(this,Rt))==null||n.removeObserver(this),ne(this,Rt,void 0),ve(this,Zn,Ia).call(this),ve(this,Zn,_u).call(this)}mutate(n,r){var o;return ne(this,Vn,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,xr=new WeakMap,Rt=new WeakMap,Vn=new WeakMap,Zn=new WeakSet,Ia=function(){var r;const n=((r=k(this,Rt))==null?void 0:r.state)??y0();ne(this,xr,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},_u=function(n){Ze.batch(()=>{var r,o,i,s,a,l,c,u;if(k(this,Vn)&&this.hasListeners()){const f=k(this,xr).variables,d=k(this,xr).context,p={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,Vn)).onSuccess)==null||o.call(r,n.data,f,d,p)}catch(h){Promise.reject(h)}try{(s=(i=k(this,Vn)).onSettled)==null||s.call(i,n.data,null,f,d,p)}catch(h){Promise.reject(h)}}else if((n==null?void 0:n.type)==="error"){try{(l=(a=k(this,Vn)).onError)==null||l.call(a,n.error,f,d,p)}catch(h){Promise.reject(h)}try{(u=(c=k(this,Vn)).onSettled)==null||u.call(c,void 0,n.error,f,d,p)}catch(h){Promise.reject(h)}}}this.listeners.forEach(f=>{f(k(this,xr))})})},Jg),bn,Xg,dw=(Xg=class extends Ui{constructor(t={}){super();fe(this,bn);this.config=t,ne(this,bn,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Hf(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,bn).has(t.queryHash)||(k(this,bn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,bn).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,bn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ze.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,bn).get(t)}getAll(){return[...k(this,bn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Lp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Lp(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()})})}},bn=new WeakMap,Xg),Ke,wr,Ar,Ti,Ni,Cr,Oi,Pi,e0,v0=(e0=class{constructor(e={}){fe(this,Ke);fe(this,wr);fe(this,Ar);fe(this,Ti);fe(this,Ni);fe(this,Cr);fe(this,Oi);fe(this,Pi);ne(this,Ke,e.queryCache||new dw),ne(this,wr,e.mutationCache||new uw),ne(this,Ar,e.defaultOptions||{}),ne(this,Ti,new Map),ne(this,Ni,new Map),ne(this,Cr,0)}mount(){ua(this,Cr)._++,k(this,Cr)===1&&(ne(this,Oi,Vf.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Ke).onFocus())})),ne(this,Pi,Ga.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Ke).onOnline())})))}unmount(){var e,t;ua(this,Cr)._--,k(this,Cr)===0&&((e=k(this,Oi))==null||e.call(this),ne(this,Oi,void 0),(t=k(this,Pi))==null||t.call(this),ne(this,Pi,void 0))}isFetching(e){return k(this,Ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,wr).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(Tr(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=V1(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(Tr(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=Bp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kt).catch(kt)}ensureInfiniteQueryData(e){return e.behavior=Bp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ga.isOnline()?k(this,wr).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Ke)}getMutationCache(){return k(this,wr)}getDefaultOptions(){return k(this,Ar)}setDefaultOptions(e){ne(this,Ar,e)}setQueryDefaults(e,t){k(this,Ti).set(_o(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,Ti).values()],n={};return t.forEach(r=>{Es(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){k(this,Ni).set(_o(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Ni).values()],n={};return t.forEach(r=>{Es(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,Ar).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Hf(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===Qa&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,Ar).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Ke).clear(),k(this,wr).clear()}},Ke=new WeakMap,wr=new WeakMap,Ar=new WeakMap,Ti=new WeakMap,Ni=new WeakMap,Cr=new WeakMap,Oi=new WeakMap,Pi=new WeakMap,e0),b0=C.createContext(void 0),x0=e=>{const t=C.useContext(b0);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},pw=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(b0.Provider,{value:e,children:t})),w0=C.createContext(!1),hw=()=>C.useContext(w0);w0.Provider;function mw(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var gw=C.createContext(mw()),yw=()=>C.useContext(gw),vw=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?qf(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},bw=e=>{C.useEffect(()=>{e.clearReset()},[e])},xw=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||qf(n,[e.error,r])),ww=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))}},Aw=(e,t)=>e.isLoading&&e.isFetching&&!t,Cw=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Kp=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function _w(e,t,n){var d,p,h,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=hw(),o=yw(),i=x0(n),s=i.defaultQueryOptions(e);(p=(d=i.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||p.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",ww(s),vw(s,o,a),bw(o);const l=!i.getQueryCache().get(s.queryHash),[c]=C.useState(()=>new t(i,s)),u=c.getOptimisticResult(s),f=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(m=>{const y=f?c.subscribe(Ze.batchCalls(m)):kt;return c.updateResult(),y},[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),C.useEffect(()=>{c.setOptions(s)},[s,c]),Cw(s,u))throw Kp(s,c,o);if(xw({result:u,errorResetBoundary:o,throwOnError:s.throwOnError,query:a,suspense:s.suspense}))throw u.error;if((g=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||g.call(h,s,u),s.experimental_prefetchInRender&&!Co&&Aw(u,r)){const m=l?Kp(s,c,o):a==null?void 0:a.promise;m==null||m.catch(kt).finally(()=>{c.updateResult()})}return s.notifyOnChangeProps?u:c.trackResult(u)}function _l(e,t){return _w(e,iw,t)}function Qf(e,t){const n=x0(t),[r]=C.useState(()=>new fw(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&&qf(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const Gf=T.createContext({queryClient:new v0});Gf.Provider;const Fr=()=>{const e=T.useContext(Gf);if(!e)throw new Error("useConfidenceContext must be used within a ConfidenceContext");return e},A0=({children:e})=>{const[t]=T.useState(new v0);return x.jsx(Gf.Provider,{value:{queryClient:t},children:x.jsx(pw,{client:t,children:e})})},Be={OPEN:"Open",IN_PROGRESS:"In progress",IN_REVIEW:"In review",COMPLETED:"Completed"},C0="https://marketplace.confidence.com/api",nr=C0+"/confidence",Hp=C0+"/dropbox/prod",Ew=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${nr}/playbook-task-complete`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},Sw=()=>{const{queryClient:e}=Fr(),t=Qf({mutationFn:async r=>Ew(r)},e);return{completeTask:async r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task completed successfully")},onError:o=>{console.error("Error completing task:",o)}}),...t}},kw=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch(`${nr}/playbook-task-start`,{method:"POST",headers:n,body:JSON.stringify(t)})).json()},Tw=()=>{const{queryClient:e}=Fr(),t=Qf({mutationFn:async r=>await kw(r)},e);return{startTask:r=>t.mutateAsync(r,{onSuccess:()=>{console.log("Task started successfully")},onError:o=>{console.error("Error starting task:",o)}}),...t}},_0=(e,t)=>{const{queryClient:n}=Fr(),r=_l({initialData:{},queryFn:()=>n.getQueryData(["PLAYBOOK_EXPANDED_TASKS",+e]),queryKey:["PLAYBOOK_EXPANDED_TASKS",+e]}),o=a=>{var l;return((l=r.data)==null?void 0:l[a.toString()])??!1},i=(a,l)=>{var c;n.setQueryData(["PLAYBOOK_EXPANDED_TASKS",+e],()=>({[a]:l!==void 0?l:!o(a)})),(c=t==null?void 0:t.onTaskExpanded)==null||c.call(t,a,o(a))},s=T.useMemo(()=>Object.values(r.data??{}).some(a=>a),[r.data]);return{isTaskExpanded:o,toggleTaskExpanded:i,isAtLeastOneTaskExpanded:s}},Nw=(e,t)=>{const{queryClient:n}=Fr(),{completeTask:r}=Sw(),{startTask:o}=Tw(),{toggleTaskExpanded:i}=_0(e);return{completeTask:async(l,c)=>{const{status:u}=await r(l.toString());u&&(i(l,!1),n.setQueryData(["playbook",+e],f=>{if(!f)return f;const d=f.tasks.map(p=>p.sequenceOrder===c+1&&t.quickComplete?{...p,workflowStatus:Be.IN_PROGRESS}:p.taskInstanceId===l?{...p,workflowStatus:u}:p);return{...f,tasks:d}}))},startTask:async l=>{const{status:c}=await o(l.toString());c&&(i(l,!0),n.setQueryData(["playbook",+e],u=>{if(!u)return u;const f=u.tasks.map(d=>d.taskInstanceId===l?{...d,workflowStatus:c}:d);return{...u,tasks:f}}))}}},Ow=e=>{var o;const{queryClient:t}=Fr(),n=_l({queryFn:async()=>{const i=new Headers,s=await fetch(`${nr}/playbook-details`,{method:"POST",cache:"no-store",headers:i,body:JSON.stringify({playbookInstanceId:+e,start:0,limit:50})});if(!s.ok)throw new Error("Network response was not ok");const a=await s.json();if(a.error)throw new Error(a.error);return a},queryKey:["playbook",+e]},t),r=Nw(e,{quickComplete:(o=n.data)==null?void 0:o.quickComplete});return{playbook:n.data,isLoading:n.isLoading,error:n.error,actions:r}},ui={START:"START",PAUSE:"PAUSE",COMPLETE:"COMPLETE",ADD_COMMENT:"ADD_COMMENT"},Pw={START:"Start",PAUSE:"Pause",RESUME:"Resume",COMPLETE:"Complete"},Mw=e=>{const{taskStatus:t,canStart:n}=e;return{buttons:T.useMemo(()=>t===Be.OPEN&&n?[ui.START]:t===Be.IN_PROGRESS?[ui.PAUSE,ui.COMPLETE]:t===Be.COMPLETED?[]:[],[e.taskStatus,e.canStart])}},E0=async e=>{const t=new Headers;return t.append("Content-Type","application/json"),await(await fetch(`${nr}/playbook-initiate`,{method:"POST",headers:t,body:JSON.stringify(e)})).json()},qs='/*! 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{--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1)}}@layer base{.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}}@layer utilities{.pointer-events-none{pointer-events:none!important}.absolute{position:absolute!important}.fixed{position:fixed!important}.relative{position:relative!important}.sticky{position:sticky!important}.inset-0{inset:calc(var(--spacing)*0)!important}.top-0{top:calc(var(--spacing)*0)!important}.top-0\\.5{top:calc(var(--spacing)*.5)!important}.top-1{top:calc(var(--spacing)*1)!important}.top-3{top:calc(var(--spacing)*3)!important}.-right-0,.right-0{right:calc(var(--spacing)*0)!important}.bottom-0{bottom:calc(var(--spacing)*0)!important}.bottom-2{bottom:calc(var(--spacing)*2)!important}.left-0{left:calc(var(--spacing)*0)!important}.left-1{left:calc(var(--spacing)*1)!important}.left-1\\/2{left:50%!important}.left-4{left:calc(var(--spacing)*4)!important}.z-2{z-index:2!important}.z-10{z-index:10!important}.z-50{z-index:50!important}.z-\\[9999999997\\],.z-\\[9999999998\\],.z-\\[9999999999\\]{z-index:2147483647!important}.container{width:100%!important}@media(min-width:40rem){.container{max-width:40rem!important}}@media(min-width:48rem){.container{max-width:48rem!important}}@media(min-width:64rem){.container{max-width:64rem!important}}@media(min-width:80rem){.container{max-width:80rem!important}}@media(min-width:96rem){.container{max-width:96rem!important}}.m-0{margin:calc(var(--spacing)*0)!important}.mx-1{margin-inline:calc(var(--spacing)*1)!important}.mx-2{margin-inline:calc(var(--spacing)*2)!important}.mx-4{margin-inline:calc(var(--spacing)*4)!important}.mx-auto{margin-inline:auto!important}.my-1{margin-block:calc(var(--spacing)*1)!important}.my-2{margin-block:calc(var(--spacing)*2)!important}.-mt-\\[1px\\]{margin-top:-1px!important}.mt-0{margin-top:calc(var(--spacing)*0)!important}.mt-3{margin-top:calc(var(--spacing)*3)!important}.mr-2{margin-right:calc(var(--spacing)*2)!important}.-mb-3{margin-bottom:calc(var(--spacing)*-3)!important}.mb-1{margin-bottom:calc(var(--spacing)*1)!important}.mb-2{margin-bottom:calc(var(--spacing)*2)!important}.mb-4{margin-bottom:calc(var(--spacing)*4)!important}.ml-2{margin-left:calc(var(--spacing)*2)!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.inline-flex{display:inline-flex!important}.size-4{width:calc(var(--spacing)*4)!important;height:calc(var(--spacing)*4)!important}.size-9{width:calc(var(--spacing)*9)!important;height:calc(var(--spacing)*9)!important}.h-2{height:calc(var(--spacing)*2)!important}.h-3{height:calc(var(--spacing)*3)!important}.h-4{height:calc(var(--spacing)*4)!important}.h-16{height:calc(var(--spacing)*16)!important}.h-\\[18px\\]{height:18px!important}.h-\\[20px\\]{height:20px!important}.h-\\[22px\\]{height:22px!important}.h-\\[24px\\]{height:24px!important}.h-\\[30px\\]{height:30px!important}.h-\\[38px\\]{height:38px!important}.h-\\[40px\\]{height:40px!important}.h-\\[75px\\]{height:75px!important}.h-\\[100vh\\]{height:100vh!important}.h-\\[110px\\]{height:110px!important}.h-full{height:100%!important}.min-h-16{min-height:calc(var(--spacing)*16)!important}.min-h-screen{min-height:100vh!important}.w-1\\/3{width:33.3333%!important}.w-3{width:calc(var(--spacing)*3)!important}.w-4{width:calc(var(--spacing)*4)!important}.w-\\[20px\\]{width:20px!important}.w-\\[27px\\]{width:27px!important}.w-\\[38px\\]{width:38px!important}.w-\\[75px\\]{width:75px!important}.w-\\[400px\\]{width:400px!important}.w-\\[calc\\(100vw-1rem\\)\\]{width:calc(100vw - 1rem)!important}.w-full{width:100%!important}.w-screen{width:100vw!important}.max-w-400{max-width:calc(var(--spacing)*400)!important}.max-w-\\[300px\\]{max-width:300px!important}.max-w-\\[420px\\]{max-width:420px!important}.max-w-lg{max-width:var(--container-lg)!important}.max-w-md{max-width:var(--container-md)!important}.min-w-0{min-width:calc(var(--spacing)*0)!important}.min-w-\\[106px\\]{min-width:106px!important}.min-w-\\[140px\\]{min-width:140px!important}.min-w-\\[160px\\]{min-width:160px!important}.min-w-\\[172px\\]{min-width:172px!important}.min-w-\\[270px\\]{min-width:270px!important}.min-w-fit{min-width:fit-content!important}.flex-1{flex:1!important}.flex-shrink-0{flex-shrink:0!important}.-translate-x-1\\/2{--tw-translate-x: -50% !important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0)!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.translate-y-full{--tw-translate-y:100%!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.rotate-180{rotate:180deg!important}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)!important}.animate-progress{animation:1.5s ease-in-out infinite progress!important}.animate-pulse{animation:var(--animate-pulse)!important}.animate-spin{animation:var(--animate-spin)!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.cursor-zoom-in{cursor:zoom-in!important}.resize{resize:both!important}.list-decimal{list-style-type:decimal!important}.list-disc{list-style-type:disc!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}.items-center{align-items:center!important}.items-start{align-items:flex-start!important}.items-stretch{align-items:stretch!important}.justify-between{justify-content:space-between!important}.justify-center{justify-content:center!important}.justify-end{justify-content:flex-end!important}.justify-start{justify-content:flex-start!important}.gap-1{gap:calc(var(--spacing)*1)!important}.gap-2{gap:calc(var(--spacing)*2)!important}.gap-3{gap:calc(var(--spacing)*3)!important}.gap-4{gap:calc(var(--spacing)*4)!important}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.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(.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(.divide-gray-100>:not(:last-child)){border-color:#ebedef!important}.self-end{align-self:flex-end!important}.truncate{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.overflow-hidden{overflow:hidden!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-y-auto{overflow-y:auto!important}.rounded{border-radius:.25rem!important}.rounded-full{border-radius:3.40282e38px!important}.rounded-lg{border-radius:var(--radius-lg)!important}.rounded-md{border-radius:var(--radius-md)!important}.rounded-none{border-radius:0!important}.rounded-sm{border-radius:var(--radius-sm)!important}.rounded-t-sm{border-top-left-radius:var(--radius-sm)!important;border-top-right-radius:var(--radius-sm)!important}.rounded-l-sm{border-top-left-radius:var(--radius-sm)!important;border-bottom-left-radius:var(--radius-sm)!important}.rounded-b-md{border-bottom-right-radius:var(--radius-md)!important;border-bottom-left-radius:var(--radius-md)!important}.border{border-style:var(--tw-border-style)!important;border-width:1px!important}.border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.border-2{border-style:var(--tw-border-style)!important;border-width:2px!important}.border-t{border-top-style:var(--tw-border-style)!important;border-top-width:1px!important}.border-b{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.border-l-1{border-left-style:var(--tw-border-style)!important;border-left-width:1px!important}.border-l-3{border-left-style:var(--tw-border-style)!important;border-left-width:3px!important}.border-none{--tw-border-style:none!important;border-style:none!important}.border-\\[\\#94C8FF\\]{border-color:#94c8ff!important}.border-\\[\\#A5DAB1\\]{border-color:#a5dab1!important}.border-\\[\\#C1C5C8\\]{border-color:#c1c5c8!important}.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}.border-danger-200{border-color:#f0aab1!important}.border-danger-500{border-color:#dc3545!important}.border-gray-50{border-color:#f5f6f7!important}.border-gray-100{border-color:#ebedef!important}.border-gray-200{border-color:#ced1d6!important}.border-gray-300{border-color:#b0b5bd!important}.border-gray-400{border-color:#757e8c!important}.border-gray-700{border-color:#2c3544!important}.border-gray-800{border-color:#232b37!important}.border-info-500{border-color:#17a2b8!important}.border-orange-500{border-color:#ff7800!important}.border-primary-200{border-color:#94c8ff!important}.border-primary-600{border-color:#0069d9!important}.border-purple-500{border-color:#a855f7!important}.border-red-500{border-color:var(--color-red-500)!important}.border-secondary-500{border-color:#6c757d!important}.border-secondary-600{border-color:#5a6268!important}.border-steel-500{border-color:#556987!important}.border-success-200{border-color:#a5dab1!important}.border-success-600{border-color:#218838!important}.border-warning-200{border-color:#ffe597!important}.border-warning-500{border-color:#ffc107!important}.border-white{border-color:#fff!important}.border-t-blue-500{border-top-color:var(--color-blue-500)!important}.border-l-danger-500{border-left-color:#dc3545!important}.border-l-primary-500{border-left-color:#007bff!important}.border-l-success-500{border-left-color:#28a745!important}.border-l-warning-500{border-left-color:#ffc107!important}.bg-\\[\\#E6F2FF\\]{background-color:#e6f2ff!important}.bg-\\[\\#EAF6EC\\]{background-color:#eaf6ec!important}.bg-\\[\\#F0F1F2\\]{background-color:#f0f1f2!important}.bg-\\[\\#FFE600\\]{background-color:#ffe600!important}.bg-black\\/30{background-color:oklab(0% none none/.3)!important}.bg-blue-500{background-color:var(--color-blue-500)!important}.bg-danger-100{background-color:#f6ccd0!important}.bg-danger-500{background-color:#dc3545!important}.bg-dark{background-color:#1c232d!important}.bg-fiserv-orange-500{background-color:#f60!important}.bg-gray-50{background-color:#f5f6f7!important}.bg-gray-100{background-color:#ebedef!important}.bg-gray-200{background-color:#ced1d6!important}.bg-gray-400{background-color:#757e8c!important}.bg-gray-500{background-color:#3a475b!important}.bg-gray-800{background-color:#232b37!important}.bg-gray-900{background-color:#1c232d!important}.bg-info-500{background-color:#17a2b8!important}.bg-orange-500{background-color:#ff7800!important}.bg-primary-100{background-color:#bfdeff!important}.bg-primary-600{background-color:#0069d9!important}.bg-primary-800{background-color:#0054af!important}.bg-purple-500{background-color:#a855f7!important}.bg-secondary-500{background-color:#6c757d!important}.bg-steel-500{background-color:#556987!important}.bg-success-100{background-color:#c9e9d0!important}.bg-success-500{background-color:#28a745!important}.bg-success-600{background-color:#218838!important}.bg-warning-100{background-color:#ffefc1!important}.bg-warning-500{background-color:#ffc107!important}.bg-white{background-color:#fff!important}.bg-yellow{background-color:#ffe600!important}.object-contain{object-fit:contain!important}.object-cover{object-fit:cover!important}.object-center{object-position:center!important}.p-1{padding:calc(var(--spacing)*1)!important}.p-2{padding:calc(var(--spacing)*2)!important}.p-3{padding:calc(var(--spacing)*3)!important}.p-4{padding:calc(var(--spacing)*4)!important}.px-0{padding-inline:calc(var(--spacing)*0)!important}.px-1{padding-inline:calc(var(--spacing)*1)!important}.px-2{padding-inline:calc(var(--spacing)*2)!important}.px-3{padding-inline:calc(var(--spacing)*3)!important}.px-4{padding-inline:calc(var(--spacing)*4)!important}.px-\\[2px\\]{padding-inline:2px!important}.py-1{padding-block:calc(var(--spacing)*1)!important}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)!important}.py-2{padding-block:calc(var(--spacing)*2)!important}.py-4{padding-block:calc(var(--spacing)*4)!important}.pt-2{padding-top:calc(var(--spacing)*2)!important}.pr-2{padding-right:calc(var(--spacing)*2)!important}.pb-1{padding-bottom:calc(var(--spacing)*1)!important}.pb-2{padding-bottom:calc(var(--spacing)*2)!important}.pb-\\[102px\\]{padding-bottom:102px!important}.pl-4{padding-left:calc(var(--spacing)*4)!important}.text-center{text-align:center!important}.text-left{text-align:left!important}.font-mono{font-family:var(--font-mono)!important}.text-2xl{font-size:var(--text-2xl)!important;line-height:var(--tw-leading,var(--text-2xl--line-height))!important}.text-base{font-size:var(--text-base)!important;line-height:var(--tw-leading,var(--text-base--line-height))!important}.text-lg{font-size:var(--text-lg)!important;line-height:var(--tw-leading,var(--text-lg--line-height))!important}.text-sm{font-size:var(--text-sm)!important;line-height:var(--tw-leading,var(--text-sm--line-height))!important}.text-sm\\/6{font-size:var(--text-sm)!important;line-height:calc(var(--spacing)*6)!important}.text-xl{font-size:var(--text-xl)!important;line-height:var(--tw-leading,var(--text-xl--line-height))!important}.text-xs{font-size:var(--text-xs)!important;line-height:var(--tw-leading,var(--text-xs--line-height))!important}.text-\\[10px\\]{font-size:10px!important}.leading-\\[18px\\]{--tw-leading:18px!important;line-height:18px!important}.leading-\\[22px\\]{--tw-leading:22px!important;line-height:22px!important}.leading-\\[24px\\]{--tw-leading:24px!important;line-height:24px!important}.font-bold{--tw-font-weight:var(--font-weight-bold)!important;font-weight:var(--font-weight-bold)!important}.font-medium{--tw-font-weight:var(--font-weight-medium)!important;font-weight:var(--font-weight-medium)!important}.font-normal{--tw-font-weight:var(--font-weight-normal)!important;font-weight:var(--font-weight-normal)!important}.font-semibold{--tw-font-weight:var(--font-weight-semibold)!important;font-weight:var(--font-weight-semibold)!important}.whitespace-nowrap{white-space:nowrap!important}.text-\\[\\#0069D9\\]{color:#0069d9!important}.text-black{color:#000!important}.text-blue-600{color:var(--color-blue-600)!important}.text-danger-500{color:#dc3545!important}.text-danger-600{color:#c82333!important}.text-danger-900{color:#721c24!important}.text-dark{color:#1c232d!important}.text-dark-300{color:#343a40!important}.text-fiserv-orange-500{color:#f60!important}.text-gray-50{color:#f5f6f7!important}.text-gray-200{color:#ced1d6!important}.text-gray-300{color:#b0b5bd!important}.text-gray-400{color:#757e8c!important}.text-gray-500{color:#3a475b!important}.text-gray-700{color:#2c3544!important}.text-gray-800{color:#232b37!important}.text-gray-900{color:#1c232d!important}.text-info-500{color:#17a2b8!important}.text-orange-500{color:#ff7800!important}.text-primary-600{color:#0069d9!important}.text-primary-900{color:#004085!important}.text-purple-500{color:#a855f7!important}.text-secondary{color:#6c757d!important}.text-secondary-400{color:#899197!important}.text-secondary-500{color:#6c757d!important}.text-secondary-600{color:#5a6268!important}.text-steel-500{color:#556987!important}.text-success-500{color:#28a745!important}.text-success-600{color:#218838!important}.text-success-900{color:#155724!important}.text-warning-500{color:#ffc107!important}.text-warning-600{color:#f59e0b!important}.text-warning-900{color:#935f07!important}.text-white{color:#fff!important}.text-yellow{color:#ffe600!important}.uppercase{text-transform:uppercase!important}.italic{font-style:italic!important}.line-through{text-decoration-line:line-through!important}.underline{text-decoration-line:underline!important}.opacity-0{opacity:0!important}.opacity-50{opacity:.5!important}.opacity-60{opacity:.6!important}.opacity-70{opacity:.7!important}.opacity-100{opacity:1!important}.shadow{--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}.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}.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}.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}.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}.shadow-dark\\/50{--tw-shadow-color:#1c232d80!important}@supports (color:color-mix(in lab,red,red)){.shadow-dark\\/50{--tw-shadow-color:color-mix(in oklab,oklab(25.3864% -.0047446 -.0210213/.5) var(--tw-shadow-alpha),transparent)!important}}.outline{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.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(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.transition-all{transition-property:all!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.duration-300{--tw-duration:.3s!important;transition-duration:.3s!important}.ease-in-out{--tw-ease:var(--ease-in-out)!important;transition-timing-function:var(--ease-in-out)!important}.ease-out{--tw-ease:var(--ease-out)!important;transition-timing-function:var(--ease-out)!important}.outline-none{--tw-outline-style:none!important;outline-style:none!important}.\\[writing-mode\\:vertical-lr\\]{writing-mode:vertical-lr!important}@media(hover:hover){.hover\\:border-primary-500:hover{border-color:#007bff!important}.hover\\:bg-danger-500:hover{background-color:#dc3545!important}.hover\\:bg-dark:hover{background-color:#1c232d!important}.hover\\:bg-fiserv-orange-500:hover{background-color:#f60!important}.hover\\:bg-gray-50:hover{background-color:#f5f6f7!important}.hover\\:bg-gray-100:hover{background-color:#ebedef!important}.hover\\:bg-gray-400:hover{background-color:#757e8c!important}.hover\\:bg-gray-500:hover{background-color:#3a475b!important}.hover\\:bg-gray-800:hover{background-color:#232b37!important}.hover\\:bg-gray-900:hover{background-color:#1c232d!important}.hover\\:bg-info-500:hover{background-color:#17a2b8!important}.hover\\:bg-orange-500:hover{background-color:#ff7800!important}.hover\\:bg-primary-700:hover{background-color:#0062cc!important}.hover\\:bg-primary-800:hover{background-color:#0054af!important}.hover\\:bg-purple-500:hover{background-color:#a855f7!important}.hover\\:bg-secondary-500:hover{background-color:#6c757d!important}.hover\\:bg-steel-500:hover{background-color:#556987!important}.hover\\:bg-success-500:hover{background-color:#28a745!important}.hover\\:bg-transparent:hover{background-color:#0000!important}.hover\\:bg-warning-500:hover{background-color:#ffc107!important}.hover\\:bg-yellow:hover{background-color:#ffe600!important}.hover\\:text-black:hover{color:#000!important}.hover\\:text-blue-600:hover{color:var(--color-blue-600)!important}.hover\\:text-danger-600:hover{color:#c82333!important}.hover\\:text-danger-700:hover{color:#bd2130!important}.hover\\:text-danger-800:hover{color:#aa1927!important}.hover\\:text-dark:hover{color:#1c232d!important}.hover\\:text-fiserv-orange-800:hover{color:#bf4c00!important}.hover\\:text-gray-400:hover{color:#757e8c!important}.hover\\:text-gray-700:hover{color:#2c3544!important}.hover\\:text-gray-800:hover{color:#232b37!important}.hover\\:text-gray-900:hover{color:#1c232d!important}.hover\\:text-info-800:hover{color:#026777!important}.hover\\:text-orange-800:hover{color:#c75d00!important}.hover\\:text-primary-600:hover{color:#0069d9!important}.hover\\:text-primary-700:hover{color:#0062cc!important}.hover\\:text-primary-800:hover{color:#0054af!important}.hover\\:text-purple-800:hover{color:#6f33a7!important}.hover\\:text-secondary-800:hover{color:#444a50!important}.hover\\:text-steel-800:hover{color:#333f51!important}.hover\\:text-success-600:hover{color:#218838!important}.hover\\:text-success-700:hover{color:#1e7e34!important}.hover\\:text-success-800:hover{color:#106c25!important}.hover\\:text-warning-600:hover{color:#f59e0b!important}.hover\\:text-warning-700:hover{color:#dd8e0a!important}.hover\\:text-warning-800:hover{color:#b87708!important}.hover\\:text-white:hover{color:#fff!important}.hover\\:text-yellow:hover{color:#ffe600!important}}.focus\\:border-red-500:focus{border-color:var(--color-red-500)!important}.focus\\:outline:focus{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.focus\\:outline-3:focus{outline-style:var(--tw-outline-style)!important;outline-width:3px!important}.focus\\:outline-primary-500\\/\\[\\.3\\]:focus{outline-color:#007bff4d!important}.active\\:bg-gray-50:active{background-color:#f5f6f7!important}.active\\:bg-gray-800:active{background-color:#232b37!important}.active\\:text-black:active{color:#000!important}.active\\:text-white:active{color:#fff!important}.disabled\\:pointer-events-none:disabled{pointer-events:none!important}.disabled\\:opacity-15:disabled{opacity:.15!important}.data-closed\\:opacity-0[data-closed]{opacity:0!important}.data-focus\\:-outline-offset-2[data-focus]{outline-offset:-2px!important}.data-focus\\:outline-primary-500[data-focus]{outline-color:#007bff!important}@media(min-width:48rem){.md\\:min-w-fit{min-width:fit-content!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-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--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}}}@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-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@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-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes progress{0%{transform:translate(-100%)}to{transform:translate(300%)}}',Iw=(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},Lw=(e,t)=>({classGroupId:e,validator:t}),S0=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Za="-",qp=[],Rw="arbitrary..",Dw=e=>{const t=jw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Fw(s);const a=s.split(Za),l=a[0]===""&&a.length>1?1:0;return k0(a,l,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const l=r[s],c=n[s];return l?c?Iw(c,l):l:c||qp}return n[s]||qp}}},k0=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const c=k0(e,t+1,i);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(Za):e.slice(t).join(Za),l=s.length;for(let c=0;c<l;c++){const u=s[c];if(u.validator(a))return u.classGroupId}},Fw=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?Rw+r:void 0})(),jw=e=>{const{theme:t,classGroups:n}=e;return zw(n,t)},zw=(e,t)=>{const n=S0();for(const r in e){const o=e[r];Zf(o,n,r,t)}return n},Zf=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];$w(s,t,n,r)}},$w=(e,t,n,r)=>{if(typeof e=="string"){Uw(e,t,n);return}if(typeof e=="function"){Bw(e,t,n,r);return}Ww(e,t,n,r)},Uw=(e,t,n)=>{const r=e===""?t:T0(t,e);r.classGroupId=n},Bw=(e,t,n,r)=>{if(Kw(e)){Zf(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Lw(n,e))},Ww=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[a,l]=o[s];Zf(l,T0(t,a),n,r)}},T0=(e,t)=>{let n=e;const r=t.split(Za),o=r.length;for(let i=0;i<o;i++){const s=r[i];let a=n.nextPart.get(s);a||(a=S0(),n.nextPart.set(s,a)),n=a}return n},Kw=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Hw=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)}}},Eu="!",Vp=":",qw=[],Yp=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Vw=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,l=0,c;const u=o.length;for(let g=0;g<u;g++){const m=o[g];if(s===0&&a===0){if(m===Vp){i.push(o.slice(l,g)),l=g+1;continue}if(m==="/"){c=g;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const f=i.length===0?o:o.slice(l);let d=f,p=!1;f.endsWith(Eu)?(d=f.slice(0,-1),p=!0):f.startsWith(Eu)&&(d=f.slice(1),p=!0);const h=c&&c>l?c-l:void 0;return Yp(i,p,d,h)};if(t){const o=t+Vp,i=r;r=s=>s.startsWith(o)?i(s.slice(o.length)):Yp(qw,!1,s,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},Yw=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]==="[",l=t.has(s);a||l?(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}},Qw=e=>({cache:Hw(e.cacheSize),parseClassName:Vw(e),sortModifiers:Yw(e),...Dw(e)}),Gw=/\s+/,Zw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Gw);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:f,modifiers:d,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:g}=n(u);if(f){l=u+(l.length>0?" "+l:l);continue}let m=!!g,y=r(m?h.substring(0,g):h);if(!y){if(!m){l=u+(l.length>0?" "+l:l);continue}if(y=r(h),!y){l=u+(l.length>0?" "+l:l);continue}m=!1}const v=d.length===0?"":d.length===1?d[0]:i(d).join(":"),b=p?v+Eu:v,A=b+y;if(s.indexOf(A)>-1)continue;s.push(A);const w=o(y,m);for(let _=0;_<w.length;++_){const E=w[_];s.push(b+E)}l=u+(l.length>0?" "+l:l)}return l},Jw=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=N0(n))&&(o&&(o+=" "),o+=r);return o},N0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=N0(e[r]))&&(n&&(n+=" "),n+=t);return n},Xw=(e,...t)=>{let n,r,o,i;const s=l=>{const c=t.reduce((u,f)=>f(u),e());return n=Qw(c),r=n.cache.get,o=n.cache.set,i=a,a(l)},a=l=>{const c=r(l);if(c)return c;const u=Zw(l,n);return o(l,u),u};return i=s,(...l)=>i(Jw(...l))},e2=[],Ge=e=>{const t=n=>n[e]||e2;return t.isThemeGetter=!0,t},O0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,P0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,t2=/^\d+\/\d+$/,n2=/^(\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$/,o2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,i2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,s2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zo=e=>t2.test(e),we=e=>!!e&&!Number.isNaN(Number(e)),dr=e=>!!e&&Number.isInteger(Number(e)),bc=e=>e.endsWith("%")&&we(e.slice(0,-1)),Dn=e=>n2.test(e),a2=()=>!0,l2=e=>r2.test(e)&&!o2.test(e),M0=()=>!1,c2=e=>i2.test(e),u2=e=>s2.test(e),f2=e=>!ae(e)&&!le(e),d2=e=>Bi(e,R0,M0),ae=e=>O0.test(e),Qr=e=>Bi(e,D0,l2),xc=e=>Bi(e,y2,we),Qp=e=>Bi(e,I0,M0),p2=e=>Bi(e,L0,u2),ha=e=>Bi(e,F0,c2),le=e=>P0.test(e),os=e=>Wi(e,D0),h2=e=>Wi(e,v2),Gp=e=>Wi(e,I0),m2=e=>Wi(e,R0),g2=e=>Wi(e,L0),ma=e=>Wi(e,F0,!0),Bi=(e,t,n)=>{const r=O0.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Wi=(e,t,n=!1)=>{const r=P0.exec(e);return r?r[1]?t(r[1]):n:!1},I0=e=>e==="position"||e==="percentage",L0=e=>e==="image"||e==="url",R0=e=>e==="length"||e==="size"||e==="bg-size",D0=e=>e==="length",y2=e=>e==="number",v2=e=>e==="family-name",F0=e=>e==="shadow",b2=()=>{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"),l=Ge("spacing"),c=Ge("radius"),u=Ge("shadow"),f=Ge("inset-shadow"),d=Ge("text-shadow"),p=Ge("drop-shadow"),h=Ge("blur"),g=Ge("perspective"),m=Ge("aspect"),y=Ge("ease"),v=Ge("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...A(),le,ae],_=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],S=()=>[le,ae,l],O=()=>[Zo,"full","auto",...S()],P=()=>[dr,"none","subgrid",le,ae],I=()=>["auto",{span:["full",dr,le,ae]},dr,le,ae],W=()=>[dr,"auto",le,ae],j=()=>["auto","min","max","fr",le,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",...S()],oe=()=>[Zo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],M=()=>[e,le,ae],re=()=>[...A(),Gp,Qp,{position:[le,ae]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",m2,d2,{size:[le,ae]}],K=()=>[bc,os,Qr],B=()=>["","none","full",c,le,ae],J=()=>["",we,os,Qr],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,bc,Gp,Qp],he=()=>["","none",h,le,ae],ye=()=>["none",we,le,ae],me=()=>["none",we,le,ae],ze=()=>[we,le,ae],G=()=>[Zo,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Dn],breakpoint:[Dn],color:[a2],container:[Dn],"drop-shadow":[Dn],ease:["in","out","in-out"],font:[f2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Dn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Dn],shadow:[Dn],spacing:["px",we],text:[Dn],"text-shadow":[Dn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Zo,ae,le,m]}],container:["container"],columns:[{columns:[we,ae,le,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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:w()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],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:[dr,"auto",le,ae]}],basis:[{basis:[Zo,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[we,Zo,"auto","initial","none",ae]}],grow:[{grow:["",we,le,ae]}],shrink:[{shrink:["",we,le,ae]}],order:[{order:[dr,"first","last","none",le,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:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"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: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: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":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,os,Qr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,le,xc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",bc,ae]}],"font-family":[{font:[h2,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,le,ae]}],"line-clamp":[{"line-clamp":[we,"none",le,xc]}],leading:[{leading:[i,...S()]}],"list-image":[{"list-image":["none",le,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",le,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",le,Qr]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[we,"auto",le,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",le,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",le,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"]},dr,le,ae],radial:["",le,ae],conic:[dr,le,ae]},g2,p2]}],"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:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"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,le,ae]}],"outline-w":[{outline:["",we,os,Qr]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",u,ma,ha]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",f,ma,ha]}],"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,Qr]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",d,ma,ha]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[we,le,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":[le,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":A()}],"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",le,ae]}],filter:[{filter:["","none",le,ae]}],blur:[{blur:he()}],brightness:[{brightness:[we,le,ae]}],contrast:[{contrast:[we,le,ae]}],"drop-shadow":[{"drop-shadow":["","none",p,ma,ha]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",we,le,ae]}],"hue-rotate":[{"hue-rotate":[we,le,ae]}],invert:[{invert:["",we,le,ae]}],saturate:[{saturate:[we,le,ae]}],sepia:[{sepia:["",we,le,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",le,ae]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[we,le,ae]}],"backdrop-contrast":[{"backdrop-contrast":[we,le,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",we,le,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[we,le,ae]}],"backdrop-invert":[{"backdrop-invert":["",we,le,ae]}],"backdrop-opacity":[{"backdrop-opacity":[we,le,ae]}],"backdrop-saturate":[{"backdrop-saturate":[we,le,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",we,le,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",le,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[we,"initial",le,ae]}],ease:[{ease:["linear","initial",y,le,ae]}],delay:[{delay:[we,le,ae]}],animate:[{animate:["none",v,le,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,le,ae]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[le,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"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",le,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",le,ae]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[we,os,Qr,xc]}],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"]}},fi=Xw(b2);function j0(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=j0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ss(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=j0(e))&&(r&&(r+=" "),r+=t);return r}function Ee(...e){return fi(Ss(e))}const x2=typeof document<"u"?T.useLayoutEffect:()=>{},jr=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ro=e=>e&&"window"in e&&e.window===e?e:jr(e).defaultView||window;function w2(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function A2(e){return w2(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let C2=!1;function Jf(){return C2}function z0(e,t){if(!Jf())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:A2(n)?n=n.host:n=n.parentNode}return!1}const Su=(e=document)=>{var t;if(!Jf())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 $0(e){return Jf()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function _2(e){if(E2())e.focus({preventScroll:!0});else{let t=S2(e);e.focus(),k2(t)}}let ga=null;function E2(){if(ga==null){ga=!1;try{document.createElement("div").focus({get preventScroll(){return ga=!0,!0}})}catch{}}return ga}function S2(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 k2(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function El(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 Xf(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 rr(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const ks=rr(function(){return Xf(/^Mac/i)}),T2=rr(function(){return Xf(/^iPhone/i)}),U0=rr(function(){return Xf(/^iPad/i)||ks()&&navigator.maxTouchPoints>1}),N2=rr(function(){return T2()||U0()});rr(function(){return ks()||N2()});const O2=rr(function(){return El(/AppleWebKit/i)&&!P2()}),P2=rr(function(){return El(/Chrome/i)}),M2=rr(function(){return El(/Android/i)}),I2=rr(function(){return El(/Firefox/i)});function Ts(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}=t;I2()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(ks()?i=!0:s=!0);let c=O2()&&ks()&&!U0()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Ts.isOpening=n,_2(e),e.dispatchEvent(c),Ts.isOpening=!1}Ts.isOpening=!1;function B0(){let e=T.useRef(new Map),t=T.useCallback((o,i,s,a)=>{let l=a!=null&&a.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,l,a)},[]),n=T.useCallback((o,i,s,a)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(i,c,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 L2(e){return e.pointerType===""&&e.isTrusted?!0:M2()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function W0(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function R2(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function K0(e){let t=T.useRef({isFocused:!1,observer:null});return x2(()=>{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=W0(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 D2=!1,Vs=null,ku=new Set,ys=new Map,Eo=!1,Tu=!1;const F2={Tab:!0,Escape:!0};function ed(e,t){for(let n of ku)n(e,t)}function j2(e){return!(e.metaKey||!ks()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ja(e){Eo=!0,!Ts.isOpening&&j2(e)&&(Vs="keyboard",ed("keyboard",e))}function Vt(e){Vs="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(Eo=!0,ed("pointer",e))}function H0(e){!Ts.isOpening&&L2(e)&&(Eo=!0,Vs="virtual")}function q0(e){e.target===window||e.target===document||D2||!e.isTrusted||(!Eo&&!Tu&&(Vs="virtual",ed("virtual",e)),Eo=!1,Tu=!1)}function V0(){Eo=!1,Tu=!0}function Nu(e){if(typeof window>"u"||typeof document>"u"||ys.get(ro(e)))return;const t=ro(e),n=jr(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Eo=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ja,!0),n.addEventListener("keyup",Ja,!0),n.addEventListener("click",H0,!0),t.addEventListener("focus",q0,!0),t.addEventListener("blur",V0,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Vt,!0),n.addEventListener("pointermove",Vt,!0),n.addEventListener("pointerup",Vt,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Vt,!0),n.addEventListener("mousemove",Vt,!0),n.addEventListener("mouseup",Vt,!0)),t.addEventListener("beforeunload",()=>{Y0(e)},{once:!0}),ys.set(t,{focus:r})}const Y0=(e,t)=>{const n=ro(e),r=jr(e);t&&r.removeEventListener("DOMContentLoaded",t),ys.has(n)&&(n.HTMLElement.prototype.focus=ys.get(n).focus,r.removeEventListener("keydown",Ja,!0),r.removeEventListener("keyup",Ja,!0),r.removeEventListener("click",H0,!0),n.removeEventListener("focus",q0,!0),n.removeEventListener("blur",V0,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Vt,!0),r.removeEventListener("pointermove",Vt,!0),r.removeEventListener("pointerup",Vt,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Vt,!0),r.removeEventListener("mousemove",Vt,!0),r.removeEventListener("mouseup",Vt,!0)),ys.delete(n))};function z2(e){const t=jr(e);let n;return t.readyState!=="loading"?Nu(e):(n=()=>{Nu(e)},t.addEventListener("DOMContentLoaded",n)),()=>Y0(e,n)}typeof document<"u"&&z2();function Q0(){return Vs!=="pointer"}const $2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function U2(e,t,n){let r=jr(n==null?void 0:n.target);const o=typeof window<"u"?ro(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?ro(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?ro(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?ro(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!$2.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!F2[n.key])}function B2(e,t,n){Nu(),T.useEffect(()=>{let r=(o,i)=>{U2(!!(n!=null&&n.isTextInput),o,i)&&e(Q0())};return ku.add(r),()=>{ku.delete(r)}},t)}function W2(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=T.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=K0(i),a=T.useCallback(l=>{const c=jr(l.target),u=c?Su(c):Su();l.target===l.currentTarget&&u===$0(l.nativeEvent)&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}function K2(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=T.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=B0(),l=T.useCallback(f=>{f.currentTarget.contains(f.target)&&i.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(f),o&&o(!1))},[n,o,i,a]),c=K0(l),u=T.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const d=jr(f.target),p=Su(d);if(!i.current.isFocusWithin&&p===$0(f.nativeEvent)){r&&r(f),o&&o(!0),i.current.isFocusWithin=!0,c(f);let h=f.currentTarget;s(d,"focus",g=>{if(i.current.isFocusWithin&&!z0(h,g.target)){let m=new d.defaultView.FocusEvent("blur",{relatedTarget:g.target});R2(m,h);let y=W0(m);l(y)}},{capture:!0})}},[r,o,c,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let Xa=!1,ya=0;function Ou(){Xa=!0,setTimeout(()=>{Xa=!1},50)}function Zp(e){e.pointerType==="touch"&&Ou()}function H2(){if(!(typeof document>"u"))return ya===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Zp):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Ou)),ya++,()=>{ya--,!(ya>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Zp):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Ou))}}function q2(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(H2,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=B0(),{hoverProps:u,triggerHoverEnd:f}=T.useMemo(()=>{let d=(g,m)=>{if(a.pointerType=m,o||m==="touch"||a.isHovered||!g.currentTarget.contains(g.target))return;a.isHovered=!0;let y=g.currentTarget;a.target=y,l(jr(g.target),"pointerover",v=>{a.isHovered&&a.target&&!z0(a.target,v.target)&&p(v,v.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:y,pointerType:m}),n&&n(!0),s(!0)},p=(g,m)=>{let y=a.target;a.pointerType="",a.target=null,!(m==="touch"||!a.isHovered||!y)&&(a.isHovered=!1,c(),r&&r({type:"hoverend",target:y,pointerType:m}),n&&n(!1),s(!1))},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=g=>{Xa&&g.pointerType==="mouse"||d(g,g.pointerType)},h.onPointerLeave=g=>{!o&&g.currentTarget.contains(g.target)&&p(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(h.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=g=>{!a.ignoreEmulatedMouseEvents&&!Xa&&d(g,"mouse"),a.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=g=>{!o&&g.currentTarget.contains(g.target)&&p(g,"mouse")}),{hoverProps:h,triggerHoverEnd:p}},[t,n,r,o,a,l,c]);return T.useEffect(()=>{o&&f({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:u,isHovered:i}}function V2(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=T.useRef({isFocused:!1,isFocusVisible:t||Q0()}),[i,s]=T.useState(!1),[a,l]=T.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=T.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=T.useCallback(p=>{o.current.isFocused=p,s(p),c()},[c]);B2(p=>{o.current.isFocusVisible=p,c()},[],{isTextInput:n});let{focusProps:f}=W2({isDisabled:r,onFocusChange:u}),{focusWithinProps:d}=K2({isDisabled:!r,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:a,focusProps:r?d:f}}var Y2=Object.defineProperty,Q2=(e,t,n)=>t in e?Y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wc=(e,t,n)=>(Q2(e,typeof t!="symbol"?t+"":t,n),n);let G2=class{constructor(){wc(this,"current",this.detect()),wc(this,"handoffState","pending"),wc(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"}},Z2=new G2,td=(e,t)=>{Z2.isServer?T.useEffect(e,t):T.useLayoutEffect(e,t)};function J2(e){let t=T.useRef(e);return td(()=>{t.current=e},[e]),t}let Sl=function(e){let t=J2(e);return T.useCallback((...n)=>t.current(...n),[t])};function kl(e){return T.useMemo(()=>e,Object.values(e))}let G0=T.createContext(void 0);function Tl(){return T.useContext(G0)}function X2({value:e,children:t}){return T.createElement(G0.Provider,{value:e},t)}function Jp(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Z0(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,Z0),r}var eA=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(eA||{}),tA=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(tA||{});function Ys(){let e=rA();return T.useCallback(t=>nA({mergeRefs:e,...t}),[e])}function nA({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??oA;let l=J0(t,e);if(i)return va(l,n,r,s,a);let c=o??0;if(c&2){let{static:u=!1,...f}=l;if(u)return va(f,n,r,s,a)}if(c&1){let{unmount:u=!0,...f}=l;return Z0(u?0:1,{0(){return null},1(){return va({...f,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return va(l,n,r,s,a)}function va(e,t={},n,r,o){let{as:i=n,children:s,refName:a="ref",...l}=Ac(e,["unmount","static"]),c=e.ref!==void 0?{[a]:e.ref}:{},u=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let f={};if(t){let d=!1,p=[];for(let[h,g]of Object.entries(t))typeof g=="boolean"&&(d=!0),g===!0&&p.push(h.replace(/([A-Z])/g,m=>`-${m.toLowerCase()}`));if(d){f["data-headlessui-state"]=p.join(" ");for(let h of p)f[`data-${h}`]=""}}if(La(i)&&(Object.keys(Jo(l)).length>0||Object.keys(Jo(f)).length>0))if(!T.isValidElement(u)||Array.isArray(u)&&u.length>1||aA(u)){if(Object.keys(Jo(l)).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(Jo(l)).concat(Object.keys(Jo(f))).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=u.props,p=d==null?void 0:d.className,h=typeof p=="function"?(...y)=>Xp(p(...y),l.className):Xp(p,l.className),g=h?{className:h}:{},m=X0(u.props,Zo(wc(l,["ref"])));for(let y in f)y in m&&delete f[y];return T.cloneElement(u,Object.assign({},m,f,c,{ref:o(sA(u),c.ref)},g))}return T.createElement(i,Object.assign({},wc(l,["ref"]),!Ia(i)&&c,!Ia(i)&&f),u)}function rA(){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 oA(...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 X0(...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 iA(...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 Ys(e){var t;return Object.assign(T.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Zo(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function wc(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function sA(e){return T.version.split(".")[0]>="19"?e.props.ref:e.ref}function Ia(e){return e===T.Fragment||e===Symbol.for("react.fragment")}function aA(e){return Ia(e.type)}let lA="span";var ey=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ey||{});function cA(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 Vs()({ourProps:i,theirProps:o,slot:{},defaultTag:lA,name:"Hidden"})}let uA=Ys(cA),fA=T.createContext(null);function dA(e){let[t,n]=T.useState(null);return T.createElement(fA.Provider,{value:{target:t}},e.children,T.createElement(uA,{features:ey.Hidden,ref:n}))}let ty=T.createContext(void 0);function ny(){return T.useContext(ty)}function pA({id:e,children:t}){return T.createElement(ty.Provider,{value:e},t)}function hA(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function ry(e){return hA(e)&&"tagName"in e}function oy(e){return ry(e)&&"accessKey"in e}function mA(e){return oy(e)&&e.nodeName==="INPUT"}function eh(e){return oy(e)&&e.nodeName==="LABEL"}function gA(e){return ry(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}let yA=Symbol();function iy(...e){let t=T.useRef(e);T.useEffect(()=>{t.current=e},[e]);let n=El(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[yA]))?void 0:n}let Tl=T.createContext(null);Tl.displayName="DescriptionContext";function sy(){let e=T.useContext(Tl);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,sy),t}return e}function vA(){var e,t;return(t=(e=T.useContext(Tl))==null?void 0:e.value)!=null?t:void 0}function bA(){let[e,t]=T.useState([]);return[e.length>0?e.join(" "):void 0,T.useMemo(()=>function(n){let r=El(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,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(Tl.Provider,{value:o},n.children)},[t])]}let xA="p";function wA(e,t){let n=T.useId(),r=kl(),{id:o=`headlessui-description-${n}`,...i}=e,s=sy(),a=iy(t);td(()=>s.register(o),[o,s.register]);let l=Sl({...s.slot,disabled:r||!1}),c={ref:a,...s.props,id:o};return Vs()({ourProps:c,theirProps:i,slot:l,defaultTag:xA,name:s.name||"Description"})}let AA=Ys(wA),CA=Object.assign(AA,{}),Nl=T.createContext(null);Nl.displayName="LabelContext";function ay(){let e=T.useContext(Nl);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,ay),t}return e}function ly(e){var t,n,r;let o=(n=(t=T.useContext(Nl))==null?void 0:t.value)!=null?n:void 0;return((r=void 0)!=null?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function _A({inherit:e=!1}={}){let t=ly(),[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=El(l=>(r(c=>[...c,l]),()=>r(c=>{let u=c.slice(),f=u.indexOf(l);return f!==-1&&u.splice(f,1),u}))),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(Nl.Provider,{value:a},i.children)},[r])]}let EA="label";function SA(e,t){var n;let r=T.useId(),o=ay(),i=ny(),s=kl(),{id:a=`headlessui-label-${r}`,htmlFor:l=i??((n=o.props)==null?void 0:n.htmlFor),passive:c=!1,...u}=e,f=iy(t);td(()=>o.register(a),[a,o.register]);let d=El(g=>{let m=g.currentTarget;if(!(g.target!==g.currentTarget&&gA(g.target))&&(eh(m)&&g.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(g),eh(m))){let y=document.getElementById(m.htmlFor);if(y){let v=y.getAttribute("disabled");if(v==="true"||v==="")return;let b=y.getAttribute("aria-disabled");if(b==="true"||b==="")return;(mA(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})}}}),p=Sl({...o.slot,disabled:s||!1}),h={ref:f,...o.props,id:a,htmlFor:l,onClick:d};return c&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in u&&delete u.onClick),Vs()({ourProps:h,theirProps:u,slot:p,defaultTag:l?EA:"div",name:o.name||"Label"})}let kA=Ys(SA),TA=Object.assign(kA,{});function Ol(){return typeof window<"u"}function Bi(e){return cy(e)?(e.nodeName||"").toLowerCase():"#document"}function Ut(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function or(e){var t;return(t=(cy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cy(e){return Ol()?e instanceof Node||e instanceof Ut(e).Node:!1}function He(e){return Ol()?e instanceof Element||e instanceof Ut(e).Element:!1}function cn(e){return Ol()?e instanceof HTMLElement||e instanceof Ut(e).HTMLElement:!1}function Ou(e){return!Ol()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ut(e).ShadowRoot}const NA=new Set(["inline","contents"]);function Qs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!NA.has(o)}const OA=new Set(["table","td","th"]);function PA(e){return OA.has(Bi(e))}const MA=[":popover-open",":modal"];function Pl(e){return MA.some(t=>{try{return e.matches(t)}catch{return!1}})}const IA=["transform","translate","scale","rotate","perspective"],LA=["transform","translate","scale","rotate","perspective","filter"],RA=["paint","layout","strict","content"];function nd(e){const t=Ml(),n=He(e)?Qt(e):e;return IA.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)||LA.some(r=>(n.willChange||"").includes(r))||RA.some(r=>(n.contain||"").includes(r))}function DA(e){let t=Jn(e);for(;cn(t)&&!Gn(t);){if(nd(t))return t;if(Pl(t))return null;t=Jn(t)}return null}function Ml(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const FA=new Set(["html","body","#document"]);function Gn(e){return FA.has(Bi(e))}function Qt(e){return Ut(e).getComputedStyle(e)}function Il(e){return He(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Jn(e){if(Bi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ou(e)&&e.host||or(e);return Ou(t)?t.host:t}function uy(e){const t=Jn(e);return Gn(t)?e.ownerDocument?e.ownerDocument.body:e.body:cn(t)&&Qs(t)?t:uy(t)}function fi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=uy(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ut(o);if(i){const a=Pu(s);return t.concat(s,s.visualViewport||[],Qs(o)?o:[],a&&n?fi(a):[])}return t.concat(o,fi(o,[],n))}function Pu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const th=Math.min,gs=Math.max,Xa=Math.round,_n=e=>({x:e,y:e});function fy(e){return e.split("-")[0]}function jA(e){return e.split("-")[1]}function zA(e){return e==="x"?"y":"x"}function $A(e){return e==="y"?"height":"width"}const UA=new Set(["top","bottom"]);function dy(e){return UA.has(fy(e))?"y":"x"}function BA(e){return zA(dy(e))}function py(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 nh(e,t,n){let{reference:r,floating:o}=e;const i=dy(t),s=BA(t),a=$A(s),l=fy(t),c=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(jA(t)){case"start":p[s]-=d*(n&&c?-1:1);break;case"end":p[s]+=d*(n&&c?-1:1);break}return p}const WA=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=nh(c,r,l),d=r,p={},h=0;for(let g=0;g<a.length;g++){const{name:m,fn:y}=a[g],{x:v,y:b,data:A,reset:w}=await y({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=v??u,f=b??f,p={...p,[m]:{...p[m],...A}},w&&h<=50&&(h++,typeof w=="object"&&(w.placement&&(d=w.placement),w.rects&&(c=w.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:u,y:f}=nh(c,d,l)),g=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}};function hy(e){const t=Qt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=cn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Xa(n)!==i||Xa(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function my(e){return He(e)?e:e.contextElement}function di(e){const t=my(e);if(!cn(t))return _n(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=hy(t);let s=(i?Xa(n.width):n.width)/r,a=(i?Xa(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const KA=_n(0);function gy(e){const t=Ut(e);return!Ml()||!t.visualViewport?KA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function HA(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ut(e)?!1:t}function ks(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=my(e);let s=_n(1);t&&(r?He(r)&&(s=di(r)):s=di(e));const a=HA(i,n,r)?gy(i):_n(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const d=Ut(i),p=r&&He(r)?Ut(r):r;let h=d,g=Pu(h);for(;g&&r&&p!==h;){const m=di(g),y=g.getBoundingClientRect(),v=Qt(g),b=y.left+(g.clientLeft+parseFloat(v.paddingLeft))*m.x,A=y.top+(g.clientTop+parseFloat(v.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,f*=m.y,l+=b,c+=A,h=Ut(g),g=Pu(h)}}return py({width:u,height:f,x:l,y:c})}function Ll(e,t){const n=Il(e).scrollLeft;return t?t.left+n:ks(or(e)).left+n}function yy(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ll(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function qA(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=or(r),a=t?Pl(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=_n(1);const u=_n(0),f=cn(r);if((f||!f&&!i)&&((Bi(r)!=="body"||Qs(s))&&(l=Il(r)),cn(r))){const p=ks(r);c=di(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const d=s&&!f&&!i?yy(s,l):_n(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-l.scrollTop*c.y+u.y+d.y}}function VA(e){return Array.from(e.getClientRects())}function YA(e){const t=or(e),n=Il(e),r=e.ownerDocument.body,o=gs(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=gs(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ll(e);const a=-n.scrollTop;return Qt(r).direction==="rtl"&&(s+=gs(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const rh=25;function QA(e,t){const n=Ut(e),r=or(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Ml();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=Ll(r);if(c<=0){const u=r.ownerDocument,f=u.body,d=getComputedStyle(f),p=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(r.clientWidth-f.clientWidth-p);h<=rh&&(i-=h)}else c<=rh&&(i+=c);return{width:i,height:s,x:a,y:l}}const GA=new Set(["absolute","fixed"]);function ZA(e,t){const n=ks(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=cn(e)?di(e):_n(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function oh(e,t,n){let r;if(t==="viewport")r=QA(e,n);else if(t==="document")r=YA(or(e));else if(He(t))r=ZA(t,n);else{const o=gy(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return py(r)}function vy(e,t){const n=Jn(e);return n===t||!He(n)||Gn(n)?!1:Qt(n).position==="fixed"||vy(n,t)}function JA(e,t){const n=t.get(e);if(n)return n;let r=fi(e,[],!1).filter(a=>He(a)&&Bi(a)!=="body"),o=null;const i=Qt(e).position==="fixed";let s=i?Jn(e):e;for(;He(s)&&!Gn(s);){const a=Qt(s),l=nd(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&GA.has(o.position)||Qs(s)&&!l&&vy(e,s))?r=r.filter(u=>u!==s):o=a,s=Jn(s)}return t.set(e,r),r}function XA(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Pl(t)?[]:JA(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const f=oh(t,u,o);return c.top=gs(f.top,c.top),c.right=th(f.right,c.right),c.bottom=th(f.bottom,c.bottom),c.left=gs(f.left,c.left),c},oh(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function eC(e){const{width:t,height:n}=hy(e);return{width:t,height:n}}function tC(e,t,n){const r=cn(t),o=or(t),i=n==="fixed",s=ks(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=_n(0);function c(){l.x=Ll(o)}if(r||!r&&!i)if((Bi(t)!=="body"||Qs(o))&&(a=Il(t)),r){const p=ks(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?yy(o,a):_n(0),f=s.left+a.scrollLeft-l.x-u.x,d=s.top+a.scrollTop-l.y-u.y;return{x:f,y:d,width:s.width,height:s.height}}function Ac(e){return Qt(e).position==="static"}function ih(e,t){if(!cn(e)||Qt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return or(e)===n&&(n=n.ownerDocument.body),n}function by(e,t){const n=Ut(e);if(Pl(e))return n;if(!cn(e)){let o=Jn(e);for(;o&&!Gn(o);){if(He(o)&&!Ac(o))return o;o=Jn(o)}return n}let r=ih(e,t);for(;r&&PA(r)&&Ac(r);)r=ih(r,t);return r&&Gn(r)&&Ac(r)&&!nd(r)?n:r||DA(e)||n}const nC=async function(e){const t=this.getOffsetParent||by,n=this.getDimensions,r=await n(e.floating);return{reference:tC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function rC(e){return Qt(e).direction==="rtl"}const oC={convertOffsetParentRelativeRectToViewportRelativeRect:qA,getDocumentElement:or,getClippingRect:XA,getOffsetParent:by,getElementRects:nC,getClientRects:VA,getDimensions:eC,getScale:di,isElement:He,isRTL:rC},iC=(e,t,n)=>{const r=new Map,o={platform:oC,...n},i={...o.platform,_c:r};return WA(e,t,{...o,platform:i})};var sC=typeof document<"u",aC=function(){},La=sC?T.useLayoutEffect:aC;function el(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(!el(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)&&!el(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function xy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sh(e,t){const n=xy(e);return Math.round(t*n)/n}function Cc(e){const t=C.useRef(e);return La(()=>{t.current=e}),t}function lC(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:l,open:c}=e,[u,f]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=C.useState(r);el(d,r)||p(r);const[h,g]=C.useState(null),[m,y]=C.useState(null),v=C.useCallback(M=>{M!==_.current&&(_.current=M,g(M))},[]),b=C.useCallback(M=>{M!==E.current&&(E.current=M,y(M))},[]),A=i||h,w=s||m,_=C.useRef(null),E=C.useRef(null),S=C.useRef(u),O=l!=null,P=Cc(l),I=Cc(o),W=Cc(c),j=C.useCallback(()=>{if(!_.current||!E.current)return;const M={placement:t,strategy:n,middleware:d};I.current&&(M.platform=I.current),iC(_.current,E.current,M).then(re=>{const L={...re,isPositioned:W.current!==!1};z.current&&!el(S.current,L)&&(S.current=L,C1.flushSync(()=>{f(L)}))})},[d,t,n,I,W]);La(()=>{c===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[c]);const z=C.useRef(!1);La(()=>(z.current=!0,()=>{z.current=!1}),[]),La(()=>{if(A&&(_.current=A),w&&(E.current=w),A&&w){if(P.current)return P.current(A,w,j);j()}},[A,w,j,P,O]);const Y=C.useMemo(()=>({reference:_,floating:E,setReference:v,setFloating:b}),[v,b]),Q=C.useMemo(()=>({reference:A,floating:w}),[A,w]),oe=C.useMemo(()=>{const M={position:n,left:0,top:0};if(!Q.floating)return M;const re=sh(Q.floating,u.x),L=sh(Q.floating,u.y);return a?{...M,transform:"translate("+re+"px, "+L+"px)",...xy(Q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:L}},[n,a,Q.floating,u.x,u.y]);return C.useMemo(()=>({...u,update:j,refs:Y,elements:Q,floatingStyles:oe}),[u,j,Y,Q,oe])}let cC="div";function uC(e,t){let n=`headlessui-control-${T.useId()}`,[r,o]=_A(),[i,s]=bA(),a=kl(),{disabled:l=a||!1,...c}=e,u=Sl({disabled:l}),f={ref:t,disabled:l||void 0,"aria-disabled":l||void 0},d=Vs();return T.createElement(X2,{value:l},T.createElement(o,{value:r},T.createElement(s,{value:i},T.createElement(pA,{id:n},d({ourProps:f,theirProps:{...c,children:T.createElement(dA,null,typeof c.children=="function"?c.children(u):c.children)},slot:u,defaultTag:cC,name:"Field"})))))}let fC=Ys(uC),dC="input";function pC(e,t){let n=T.useId(),r=ny(),o=kl(),{id:i=r||`headlessui-input-${n}`,disabled:s=o||!1,autoFocus:a=!1,invalid:l=!1,...c}=e,u=ly(),f=vA(),{isFocused:d,focusProps:p}=V2({autoFocus:a}),{isHovered:h,hoverProps:g}=q2({isDisabled:s}),m=iA({ref:t,id:i,"aria-labelledby":u,"aria-describedby":f,"aria-invalid":l?"true":void 0,disabled:s||void 0,autoFocus:a},p,g),y=Sl({disabled:s,invalid:l,hover:h,focus:d,autofocus:a});return Vs()({ourProps:m,theirProps:c,slot:y,defaultTag:dC,name:"Input"})}let hC=Ys(pC);const wy=({type:e="text",className:t,label:n,description:r,error:o,containerClassName:i,...s})=>x.jsx("div",{className:Ee("w-full max-w-md px-4",i),children:x.jsxs(fC,{children:[n&&x.jsx(TA,{className:"font-medium text-gray-900",children:n}),r&&x.jsx(CA,{className:"text-sm text-secondary",children:r}),x.jsx(hC,{type:e,className:Ee("mt-3 block w-full rounded-lg border border-gray-200 px-3 py-1.5 text-sm/6 text-gray-800","data-focus:-outline-offset-2 data-focus:outline-primary-500",t,o&&"border-red-500 focus:border-red-500"),...s})]})}),mC="whitespace-nowrap font-normal flex items-center justify-center",gC="focus:outline focus:outline-3 focus:outline-primary-500/[.3]",yC="disabled:opacity-15 disabled:pointer-events-none",Ay=e=>e==="grayLight"||e==="warning",Cy=(e,t)=>!t||t==="none"?"":e(),vC=(e,t)=>Cy(()=>{const n=e==="gray400"?"gray":e,r=Ay(n)?"active:text-black":"active:text-white";return e==="primary"?t?`bg-${n}-800 text-white`:`hover:bg-${n}-800 active:bg-${n}-800 hover:text-white ${r}`:n==="grayDark"?t?"bg-gray-800 text-white":`hover:bg-gray-800 active:bg-gray-800 hover:text-white ${r}`:n==="grayLight"?t?"bg-gray-50 text-black":`hover:bg-gray-50 active:bg-gray-50 hover:text-black ${r}`:e==="gray400"?t?`bg-${n}-500 text-white`:`hover:bg-${n}-500 active:bg-${n}-500 hover:text-white ${r}`:t?`bg-${n}-700 text-white`:`hover:bg-${n}-600 active:bg-${n}-700 hover:text-white ${r}`},e),bC=e=>Cy(()=>{const t=Ay(e)?"text-black":"text-white";return e==="primary"?`bg-primary-600 ${t}`:e==="gray400"?`bg-gray-400 ${t}`:`bg-${e}-500 ${t}`},e),xC=e=>e&&{dark:"text-dark hover:text-dark",yellow:"text-yellow hover:text-yellow",gray:"text-gray-500 hover:text-gray-800",primary:"text-primary-600 hover:text-primary-800",secondary:"text-secondary-500 hover:text-secondary-800",success:"text-success-500 hover:text-success-800",info:"text-info-500 hover:text-info-800",warning:"text-warning-500 hover:text-warning-800",danger:"text-danger-500 hover:text-danger-800",steel:"text-steel-500 hover:text-steel-800",orange:"text-orange-500 hover:text-orange-800",purple:"text-purple-500 hover:text-purple-800","fiserv-orange":"text-fiserv-orange-500 hover:text-fiserv-orange-800",grayDark:"text-gray-800 hover:text-gray-900",grayLight:"text-gray-50 hover:text-gray-400",gray400:"text-gray-400 hover:text-gray-700"}[e]||"",wC=(e,t)=>e&&{dark:t?"bg-dark text-white":"text-dark hover:bg-dark hover:text-white",yellow:t?"bg-yellow text-white":"text-yellow hover:bg-yellow hover:text-white",gray:t?"bg-gray-500 text-white":"text-gray-500 hover:bg-gray-500 hover:text-white",primary:t?"bg-primary-800 text-white":"text-primary-600 hover:bg-primary-800 hover:text-white",secondary:t?"bg-secondary-500 text-white":"text-secondary-500 hover:bg-secondary-500 hover:text-white",success:t?"bg-success-500 text-white":"text-success-500 hover:bg-success-500 hover:text-white",info:t?"bg-info-500 text-white":"text-info-500 hover:bg-info-500 hover:text-white",warning:t?"bg-warning-500 text-white":"text-warning-500 hover:bg-warning-500 hover:text-white",danger:t?"bg-danger-500 text-white":"text-danger-500 hover:bg-danger-500 hover:text-white",steel:t?"bg-steel-500 text-white":"text-steel-500 hover:bg-steel-500 hover:text-white",orange:t?"bg-orange-500 text-white":"text-orange-500 hover:bg-orange-500 hover:text-white",purple:t?"bg-purple-500 text-white":"text-purple-500 hover:bg-purple-500 hover:text-white","fiserv-orange":t?"bg-fiserv-orange-500 text-white":"text-fiserv-orange-500 hover:bg-fiserv-orange-500 hover:text-white",grayDark:t?"bg-gray-900 text-white":"text-gray-800 hover:bg-gray-900 hover:text-white",grayLight:t?"bg-gray-400 text-white":"text-gray-50 hover:bg-gray-400 hover:text-white",gray400:t?"bg-gray-500 text-white":"text-gray-400 hover:bg-gray-500 hover:text-white"}[e]||"",AC=(e,t)=>!e||e==="none"?"":e==="primary"?`border border-primary-600 ${t?"":"text-primary-600"}`:e==="grayDark"?`border border-gray-800 ${t?"":"text-gray-800"}`:e==="grayLight"?`border border-gray-50 ${t?"":"text-gray-400"}`:e==="gray400"?`border border-gray-400 ${t?"":"text-gray-400"}`:`border border-${e}-500 ${t?"":`text-${e}-500`}`,CC=(e,t)=>({solid:bC(e),link:xC(e),linkHoverSolid:wC(e,t),outline:AC(e,t)}),_C={none:"",default:"min-w-fit h-[40px] text-base px-3",base:"w-full md:min-w-fit h-[40px] text-base px-3",small:"min-w-[106px] h-[30px] text-sm px-2",normal:"min-w-[140px] h-[38px] text-base px-3",large:"min-w-[160px] h-[40px] text-lg px-3",NormalBlock:"w-full h-[40px] text-lg px-3",box:"w-[38px] h-[38px]",smallCollapse:"h-[30px] text-sm px-2",normalCollapse:"h-[38px] text-base px-3"},EC={none:"",default:"rounded",pill:"rounded-pill"},SC=({active:e=!1,children:t,color:n="primary",size:r="normal",category:o="solid",className:i,type:s="button",rounded:a="default",style:l={},primaryColor:c,...u},f)=>{var b;const d=yC,p=/link/.test(o)?null:vC(n,e),h=gC,g=_C[r],m=(b=CC(n,e))==null?void 0:b[o],y=ui(p,m),v=EC[a];return x.jsx("button",{...u,style:{...l,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:c?c+"!important":void 0},type:s,ref:f,className:ui(mC,h,d,g,y,v,i,"cursor-pointer"),children:t})},je=T.forwardRef(SC),kC=({isOpen:e,close:t,title:n,dismissOptions:r,confirmOptions:o,children:i,className:s})=>x.jsx(x.Fragment,{children:e&&Tn.createPortal(x.jsxs(Al.div,{className:Ee("relative z-50 transition duration-300 ease-out data-closed:opacity-0",s),children:[x.jsx("div",{className:"fixed inset-0 bg-black/30"}),x.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:x.jsxs("div",{className:"max-w-lg divide-y divide-gray-100 bg-white rounded-sm shadow-xl",children:[n&&x.jsx("div",{className:" text-gray-900 p-4",children:n}),x.jsx("div",{className:"p-4",children:i}),r||o?x.jsxs("div",{className:"flex gap-4 p-4",children:[r?x.jsx(je,{className:"flex-1",onClick:()=>{r.onClick(),t()},size:"small",color:"secondary",children:r.label}):x.jsx(x.Fragment,{}),o?x.jsx(je,{className:"flex-1",disabled:o.disabled,onClick:()=>{o.onClick(),t()},size:"small",color:"primary",children:o.label}):x.jsx(x.Fragment,{})]}):x.jsx(x.Fragment,{})]})}),x.jsx("style",{type:"text/css",children:Hs})]}),document.body,"confidence-modal")}),TC=({onConfirm:e,onClose:t,isOpen:n,title:r})=>{const[o,i]=T.useState(""),[s,a]=T.useState(!1),[l,c]=T.useState(!1),u=async()=>{if(o)try{a(!0),await e(o),i("")}catch{c(!0)}finally{a(!1)}else alert("Please enter a valid email address.")};return x.jsx(kC,{isOpen:n,close:t,dismissOptions:{label:"Cancel",onClick:t},confirmOptions:{label:"Initiate",onClick:u,disabled:s||!o||l},children:x.jsxs("div",{className:"flex flex-col items-center gap-4 w-[400px]",children:[x.jsxs("div",{children:[x.jsx("div",{className:"text-center text-2xl font-medium",children:l?"User already has access":r||"Access Playbook"}),x.jsx("div",{className:"text-center",children:l?x.jsxs(x.Fragment,{children:[x.jsx("b",{children:o})," has already accessed a playbook. Contact Confidence to speak to representative."]}):x.jsx(x.Fragment,{children:"Please enter your company email address to access this playbook."})})]}),x.jsx(wy,{disabled:s||l,placeholder:"Enter company email address",onChange:f=>i(f.target.value)})]})})},NC=({btnClassName:e,buttonNode:t,size:n,playbookId:r,onInitiated:o,disabled:i,btnLabel:s="Run Playbook",btnColor:a="primary"})=>{const[l,c]=T.useState(!1),[u,f]=T.useState(!1);function d(){c(!0)}function p(){c(!1)}const h=async g=>{try{f(!0);const{playbookInstanceId:m,errorCode:y,details:v,message:b}=await S0({bank:"public-sdk",email:g,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"America/Los_Angeles",playbookUid:r})||{};if(y)throw new Error(`Error initiating playbook: ${b} (Code: ${y}) - Details: ${v}`);o(m,g)}finally{f(!1)}};return x.jsxs(x.Fragment,{children:[t?{buttonNode:t}:x.jsxs(je,{onClick:d,className:Ee(e,"flex items-center gap-1"),color:a,size:n,disabled:i||u,children:[x.jsx("img",{src:u0,alt:"Confidence Logo",className:"size-4 object-contain text-white"}),s]}),x.jsx(TC,{isOpen:l,onClose:p,onConfirm:async g=>{await h(g),p()}})]})};/*!
|
|
24
|
+
`))}else{let d=u.props,p=d==null?void 0:d.className,h=typeof p=="function"?(...y)=>Jp(p(...y),l.className):Jp(p,l.className),g=h?{className:h}:{},m=J0(u.props,Jo(Ac(l,["ref"])));for(let y in f)y in m&&delete f[y];return T.cloneElement(u,Object.assign({},m,f,c,{ref:o(sA(u),c.ref)},g))}return T.createElement(i,Object.assign({},Ac(l,["ref"]),!La(i)&&c,!La(i)&&f),u)}function rA(){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 oA(...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 J0(...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 iA(...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 Qs(e){var t;return Object.assign(T.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Jo(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Ac(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function sA(e){return T.version.split(".")[0]>="19"?e.props.ref:e.ref}function La(e){return e===T.Fragment||e===Symbol.for("react.fragment")}function aA(e){return La(e.type)}let lA="span";var X0=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(X0||{});function cA(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 Ys()({ourProps:i,theirProps:o,slot:{},defaultTag:lA,name:"Hidden"})}let uA=Qs(cA),fA=T.createContext(null);function dA(e){let[t,n]=T.useState(null);return T.createElement(fA.Provider,{value:{target:t}},e.children,T.createElement(uA,{features:X0.Hidden,ref:n}))}let ey=T.createContext(void 0);function ty(){return T.useContext(ey)}function pA({id:e,children:t}){return T.createElement(ey.Provider,{value:e},t)}function hA(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function ny(e){return hA(e)&&"tagName"in e}function ry(e){return ny(e)&&"accessKey"in e}function mA(e){return ry(e)&&e.nodeName==="INPUT"}function Xp(e){return ry(e)&&e.nodeName==="LABEL"}function gA(e){return ny(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}let yA=Symbol();function oy(...e){let t=T.useRef(e);T.useEffect(()=>{t.current=e},[e]);let n=Sl(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[yA]))?void 0:n}let Nl=T.createContext(null);Nl.displayName="DescriptionContext";function iy(){let e=T.useContext(Nl);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 vA(){var e,t;return(t=(e=T.useContext(Nl))==null?void 0:e.value)!=null?t:void 0}function bA(){let[e,t]=T.useState([]);return[e.length>0?e.join(" "):void 0,T.useMemo(()=>function(n){let r=Sl(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,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(Nl.Provider,{value:o},n.children)},[t])]}let xA="p";function wA(e,t){let n=T.useId(),r=Tl(),{id:o=`headlessui-description-${n}`,...i}=e,s=iy(),a=oy(t);td(()=>s.register(o),[o,s.register]);let l=kl({...s.slot,disabled:r||!1}),c={ref:a,...s.props,id:o};return Ys()({ourProps:c,theirProps:i,slot:l,defaultTag:xA,name:s.name||"Description"})}let AA=Qs(wA),CA=Object.assign(AA,{}),Ol=T.createContext(null);Ol.displayName="LabelContext";function sy(){let e=T.useContext(Ol);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,sy),t}return e}function ay(e){var t,n,r;let o=(n=(t=T.useContext(Ol))==null?void 0:t.value)!=null?n:void 0;return((r=void 0)!=null?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function _A({inherit:e=!1}={}){let t=ay(),[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=Sl(l=>(r(c=>[...c,l]),()=>r(c=>{let u=c.slice(),f=u.indexOf(l);return f!==-1&&u.splice(f,1),u}))),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(Ol.Provider,{value:a},i.children)},[r])]}let EA="label";function SA(e,t){var n;let r=T.useId(),o=sy(),i=ty(),s=Tl(),{id:a=`headlessui-label-${r}`,htmlFor:l=i??((n=o.props)==null?void 0:n.htmlFor),passive:c=!1,...u}=e,f=oy(t);td(()=>o.register(a),[a,o.register]);let d=Sl(g=>{let m=g.currentTarget;if(!(g.target!==g.currentTarget&&gA(g.target))&&(Xp(m)&&g.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(g),Xp(m))){let y=document.getElementById(m.htmlFor);if(y){let v=y.getAttribute("disabled");if(v==="true"||v==="")return;let b=y.getAttribute("aria-disabled");if(b==="true"||b==="")return;(mA(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})}}}),p=kl({...o.slot,disabled:s||!1}),h={ref:f,...o.props,id:a,htmlFor:l,onClick:d};return c&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in u&&delete u.onClick),Ys()({ourProps:h,theirProps:u,slot:p,defaultTag:l?EA:"div",name:o.name||"Label"})}let kA=Qs(SA),TA=Object.assign(kA,{});function Pl(){return typeof window<"u"}function Ki(e){return ly(e)?(e.nodeName||"").toLowerCase():"#document"}function Ut(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function or(e){var t;return(t=(ly(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ly(e){return Pl()?e instanceof Node||e instanceof Ut(e).Node:!1}function He(e){return Pl()?e instanceof Element||e instanceof Ut(e).Element:!1}function cn(e){return Pl()?e instanceof HTMLElement||e instanceof Ut(e).HTMLElement:!1}function Pu(e){return!Pl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ut(e).ShadowRoot}const NA=new Set(["inline","contents"]);function Gs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!NA.has(o)}const OA=new Set(["table","td","th"]);function PA(e){return OA.has(Ki(e))}const MA=[":popover-open",":modal"];function Ml(e){return MA.some(t=>{try{return e.matches(t)}catch{return!1}})}const IA=["transform","translate","scale","rotate","perspective"],LA=["transform","translate","scale","rotate","perspective","filter"],RA=["paint","layout","strict","content"];function nd(e){const t=Il(),n=He(e)?Qt(e):e;return IA.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)||LA.some(r=>(n.willChange||"").includes(r))||RA.some(r=>(n.contain||"").includes(r))}function DA(e){let t=Jn(e);for(;cn(t)&&!Gn(t);){if(nd(t))return t;if(Ml(t))return null;t=Jn(t)}return null}function Il(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const FA=new Set(["html","body","#document"]);function Gn(e){return FA.has(Ki(e))}function Qt(e){return Ut(e).getComputedStyle(e)}function Ll(e){return He(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Jn(e){if(Ki(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pu(e)&&e.host||or(e);return Pu(t)?t.host:t}function cy(e){const t=Jn(e);return Gn(t)?e.ownerDocument?e.ownerDocument.body:e.body:cn(t)&&Gs(t)?t:cy(t)}function di(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=cy(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ut(o);if(i){const a=Mu(s);return t.concat(s,s.visualViewport||[],Gs(o)?o:[],a&&n?di(a):[])}return t.concat(o,di(o,[],n))}function Mu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const eh=Math.min,vs=Math.max,el=Math.round,_n=e=>({x:e,y:e});function uy(e){return e.split("-")[0]}function jA(e){return e.split("-")[1]}function zA(e){return e==="x"?"y":"x"}function $A(e){return e==="y"?"height":"width"}const UA=new Set(["top","bottom"]);function fy(e){return UA.has(uy(e))?"y":"x"}function BA(e){return zA(fy(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 th(e,t,n){let{reference:r,floating:o}=e;const i=fy(t),s=BA(t),a=$A(s),l=uy(t),c=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(jA(t)){case"start":p[s]-=d*(n&&c?-1:1);break;case"end":p[s]+=d*(n&&c?-1:1);break}return p}const WA=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=th(c,r,l),d=r,p={},h=0;for(let g=0;g<a.length;g++){const{name:m,fn:y}=a[g],{x:v,y:b,data:A,reset:w}=await y({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=v??u,f=b??f,p={...p,[m]:{...p[m],...A}},w&&h<=50&&(h++,typeof w=="object"&&(w.placement&&(d=w.placement),w.rects&&(c=w.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:u,y:f}=th(c,d,l)),g=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}};function py(e){const t=Qt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=cn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=el(n)!==i||el(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function hy(e){return He(e)?e:e.contextElement}function pi(e){const t=hy(e);if(!cn(t))return _n(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=py(t);let s=(i?el(n.width):n.width)/r,a=(i?el(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const KA=_n(0);function my(e){const t=Ut(e);return!Il()||!t.visualViewport?KA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function HA(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ut(e)?!1:t}function Ns(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=hy(e);let s=_n(1);t&&(r?He(r)&&(s=pi(r)):s=pi(e));const a=HA(i,n,r)?my(i):_n(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const d=Ut(i),p=r&&He(r)?Ut(r):r;let h=d,g=Mu(h);for(;g&&r&&p!==h;){const m=pi(g),y=g.getBoundingClientRect(),v=Qt(g),b=y.left+(g.clientLeft+parseFloat(v.paddingLeft))*m.x,A=y.top+(g.clientTop+parseFloat(v.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,f*=m.y,l+=b,c+=A,h=Ut(g),g=Mu(h)}}return dy({width:u,height:f,x:l,y:c})}function Rl(e,t){const n=Ll(e).scrollLeft;return t?t.left+n:Ns(or(e)).left+n}function gy(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Rl(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function qA(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=or(r),a=t?Ml(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=_n(1);const u=_n(0),f=cn(r);if((f||!f&&!i)&&((Ki(r)!=="body"||Gs(s))&&(l=Ll(r)),cn(r))){const p=Ns(r);c=pi(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const d=s&&!f&&!i?gy(s,l):_n(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-l.scrollTop*c.y+u.y+d.y}}function VA(e){return Array.from(e.getClientRects())}function YA(e){const t=or(e),n=Ll(e),r=e.ownerDocument.body,o=vs(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=vs(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Rl(e);const a=-n.scrollTop;return Qt(r).direction==="rtl"&&(s+=vs(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const nh=25;function QA(e,t){const n=Ut(e),r=or(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Il();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=Rl(r);if(c<=0){const u=r.ownerDocument,f=u.body,d=getComputedStyle(f),p=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(r.clientWidth-f.clientWidth-p);h<=nh&&(i-=h)}else c<=nh&&(i+=c);return{width:i,height:s,x:a,y:l}}const GA=new Set(["absolute","fixed"]);function ZA(e,t){const n=Ns(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=cn(e)?pi(e):_n(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function rh(e,t,n){let r;if(t==="viewport")r=QA(e,n);else if(t==="document")r=YA(or(e));else if(He(t))r=ZA(t,n);else{const o=my(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return dy(r)}function yy(e,t){const n=Jn(e);return n===t||!He(n)||Gn(n)?!1:Qt(n).position==="fixed"||yy(n,t)}function JA(e,t){const n=t.get(e);if(n)return n;let r=di(e,[],!1).filter(a=>He(a)&&Ki(a)!=="body"),o=null;const i=Qt(e).position==="fixed";let s=i?Jn(e):e;for(;He(s)&&!Gn(s);){const a=Qt(s),l=nd(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&GA.has(o.position)||Gs(s)&&!l&&yy(e,s))?r=r.filter(u=>u!==s):o=a,s=Jn(s)}return t.set(e,r),r}function XA(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Ml(t)?[]:JA(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const f=rh(t,u,o);return c.top=vs(f.top,c.top),c.right=eh(f.right,c.right),c.bottom=eh(f.bottom,c.bottom),c.left=vs(f.left,c.left),c},rh(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function eC(e){const{width:t,height:n}=py(e);return{width:t,height:n}}function tC(e,t,n){const r=cn(t),o=or(t),i=n==="fixed",s=Ns(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=_n(0);function c(){l.x=Rl(o)}if(r||!r&&!i)if((Ki(t)!=="body"||Gs(o))&&(a=Ll(t)),r){const p=Ns(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?gy(o,a):_n(0),f=s.left+a.scrollLeft-l.x-u.x,d=s.top+a.scrollTop-l.y-u.y;return{x:f,y:d,width:s.width,height:s.height}}function Cc(e){return Qt(e).position==="static"}function oh(e,t){if(!cn(e)||Qt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return or(e)===n&&(n=n.ownerDocument.body),n}function vy(e,t){const n=Ut(e);if(Ml(e))return n;if(!cn(e)){let o=Jn(e);for(;o&&!Gn(o);){if(He(o)&&!Cc(o))return o;o=Jn(o)}return n}let r=oh(e,t);for(;r&&PA(r)&&Cc(r);)r=oh(r,t);return r&&Gn(r)&&Cc(r)&&!nd(r)?n:r||DA(e)||n}const nC=async function(e){const t=this.getOffsetParent||vy,n=this.getDimensions,r=await n(e.floating);return{reference:tC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function rC(e){return Qt(e).direction==="rtl"}const oC={convertOffsetParentRelativeRectToViewportRelativeRect:qA,getDocumentElement:or,getClippingRect:XA,getOffsetParent:vy,getElementRects:nC,getClientRects:VA,getDimensions:eC,getScale:pi,isElement:He,isRTL:rC},iC=(e,t,n)=>{const r=new Map,o={platform:oC,...n},i={...o.platform,_c:r};return WA(e,t,{...o,platform:i})};var sC=typeof document<"u",aC=function(){},Ra=sC?T.useLayoutEffect:aC;function tl(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(!tl(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)&&!tl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function by(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ih(e,t){const n=by(e);return Math.round(t*n)/n}function _c(e){const t=C.useRef(e);return Ra(()=>{t.current=e}),t}function lC(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:l,open:c}=e,[u,f]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=C.useState(r);tl(d,r)||p(r);const[h,g]=C.useState(null),[m,y]=C.useState(null),v=C.useCallback(M=>{M!==_.current&&(_.current=M,g(M))},[]),b=C.useCallback(M=>{M!==E.current&&(E.current=M,y(M))},[]),A=i||h,w=s||m,_=C.useRef(null),E=C.useRef(null),S=C.useRef(u),O=l!=null,P=_c(l),I=_c(o),W=_c(c),j=C.useCallback(()=>{if(!_.current||!E.current)return;const M={placement:t,strategy:n,middleware:d};I.current&&(M.platform=I.current),iC(_.current,E.current,M).then(re=>{const L={...re,isPositioned:W.current!==!1};z.current&&!tl(S.current,L)&&(S.current=L,C1.flushSync(()=>{f(L)}))})},[d,t,n,I,W]);Ra(()=>{c===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[c]);const z=C.useRef(!1);Ra(()=>(z.current=!0,()=>{z.current=!1}),[]),Ra(()=>{if(A&&(_.current=A),w&&(E.current=w),A&&w){if(P.current)return P.current(A,w,j);j()}},[A,w,j,P,O]);const Y=C.useMemo(()=>({reference:_,floating:E,setReference:v,setFloating:b}),[v,b]),Q=C.useMemo(()=>({reference:A,floating:w}),[A,w]),oe=C.useMemo(()=>{const M={position:n,left:0,top:0};if(!Q.floating)return M;const re=ih(Q.floating,u.x),L=ih(Q.floating,u.y);return a?{...M,transform:"translate("+re+"px, "+L+"px)",...by(Q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:L}},[n,a,Q.floating,u.x,u.y]);return C.useMemo(()=>({...u,update:j,refs:Y,elements:Q,floatingStyles:oe}),[u,j,Y,Q,oe])}let cC="div";function uC(e,t){let n=`headlessui-control-${T.useId()}`,[r,o]=_A(),[i,s]=bA(),a=Tl(),{disabled:l=a||!1,...c}=e,u=kl({disabled:l}),f={ref:t,disabled:l||void 0,"aria-disabled":l||void 0},d=Ys();return T.createElement(X2,{value:l},T.createElement(o,{value:r},T.createElement(s,{value:i},T.createElement(pA,{id:n},d({ourProps:f,theirProps:{...c,children:T.createElement(dA,null,typeof c.children=="function"?c.children(u):c.children)},slot:u,defaultTag:cC,name:"Field"})))))}let fC=Qs(uC),dC="input";function pC(e,t){let n=T.useId(),r=ty(),o=Tl(),{id:i=r||`headlessui-input-${n}`,disabled:s=o||!1,autoFocus:a=!1,invalid:l=!1,...c}=e,u=ay(),f=vA(),{isFocused:d,focusProps:p}=V2({autoFocus:a}),{isHovered:h,hoverProps:g}=q2({isDisabled:s}),m=iA({ref:t,id:i,"aria-labelledby":u,"aria-describedby":f,"aria-invalid":l?"true":void 0,disabled:s||void 0,autoFocus:a},p,g),y=kl({disabled:s,invalid:l,hover:h,focus:d,autofocus:a});return Ys()({ourProps:m,theirProps:c,slot:y,defaultTag:dC,name:"Input"})}let hC=Qs(pC);const xy=({type:e="text",className:t,label:n,description:r,error:o,containerClassName:i,...s})=>x.jsx("div",{className:Ee("w-full max-w-md px-4",i),children:x.jsxs(fC,{children:[n&&x.jsx(TA,{className:"font-medium text-gray-900",children:n}),r&&x.jsx(CA,{className:"text-sm text-secondary",children:r}),x.jsx(hC,{type:e,className:Ee("mt-3 block w-full rounded-lg border border-gray-200 px-3 py-1.5 text-sm/6 text-gray-800","data-focus:-outline-offset-2 data-focus:outline-primary-500",t,o&&"border-red-500 focus:border-red-500"),...s})]})}),mC="whitespace-nowrap font-normal flex items-center justify-center",gC="focus:outline focus:outline-3 focus:outline-primary-500/[.3]",yC="disabled:opacity-15 disabled:pointer-events-none",wy=e=>e==="grayLight"||e==="warning",Ay=(e,t)=>!t||t==="none"?"":e(),vC=(e,t)=>Ay(()=>{const n=e==="gray400"?"gray":e,r=wy(n)?"active:text-black":"active:text-white";return e==="primary"?t?`bg-${n}-800 text-white`:`hover:bg-${n}-800 active:bg-${n}-800 hover:text-white ${r}`:n==="grayDark"?t?"bg-gray-800 text-white":`hover:bg-gray-800 active:bg-gray-800 hover:text-white ${r}`:n==="grayLight"?t?"bg-gray-50 text-black":`hover:bg-gray-50 active:bg-gray-50 hover:text-black ${r}`:e==="gray400"?t?`bg-${n}-500 text-white`:`hover:bg-${n}-500 active:bg-${n}-500 hover:text-white ${r}`:t?`bg-${n}-700 text-white`:`hover:bg-${n}-600 active:bg-${n}-700 hover:text-white ${r}`},e),bC=e=>Ay(()=>{const t=wy(e)?"text-black":"text-white";return e==="primary"?`bg-primary-600 ${t}`:e==="gray400"?`bg-gray-400 ${t}`:`bg-${e}-500 ${t}`},e),xC=e=>e&&{dark:"text-dark hover:text-dark",yellow:"text-yellow hover:text-yellow",gray:"text-gray-500 hover:text-gray-800",primary:"text-primary-600 hover:text-primary-800",secondary:"text-secondary-500 hover:text-secondary-800",success:"text-success-500 hover:text-success-800",info:"text-info-500 hover:text-info-800",warning:"text-warning-500 hover:text-warning-800",danger:"text-danger-500 hover:text-danger-800",steel:"text-steel-500 hover:text-steel-800",orange:"text-orange-500 hover:text-orange-800",purple:"text-purple-500 hover:text-purple-800","fiserv-orange":"text-fiserv-orange-500 hover:text-fiserv-orange-800",grayDark:"text-gray-800 hover:text-gray-900",grayLight:"text-gray-50 hover:text-gray-400",gray400:"text-gray-400 hover:text-gray-700"}[e]||"",wC=(e,t)=>e&&{dark:t?"bg-dark text-white":"text-dark hover:bg-dark hover:text-white",yellow:t?"bg-yellow text-white":"text-yellow hover:bg-yellow hover:text-white",gray:t?"bg-gray-500 text-white":"text-gray-500 hover:bg-gray-500 hover:text-white",primary:t?"bg-primary-800 text-white":"text-primary-600 hover:bg-primary-800 hover:text-white",secondary:t?"bg-secondary-500 text-white":"text-secondary-500 hover:bg-secondary-500 hover:text-white",success:t?"bg-success-500 text-white":"text-success-500 hover:bg-success-500 hover:text-white",info:t?"bg-info-500 text-white":"text-info-500 hover:bg-info-500 hover:text-white",warning:t?"bg-warning-500 text-white":"text-warning-500 hover:bg-warning-500 hover:text-white",danger:t?"bg-danger-500 text-white":"text-danger-500 hover:bg-danger-500 hover:text-white",steel:t?"bg-steel-500 text-white":"text-steel-500 hover:bg-steel-500 hover:text-white",orange:t?"bg-orange-500 text-white":"text-orange-500 hover:bg-orange-500 hover:text-white",purple:t?"bg-purple-500 text-white":"text-purple-500 hover:bg-purple-500 hover:text-white","fiserv-orange":t?"bg-fiserv-orange-500 text-white":"text-fiserv-orange-500 hover:bg-fiserv-orange-500 hover:text-white",grayDark:t?"bg-gray-900 text-white":"text-gray-800 hover:bg-gray-900 hover:text-white",grayLight:t?"bg-gray-400 text-white":"text-gray-50 hover:bg-gray-400 hover:text-white",gray400:t?"bg-gray-500 text-white":"text-gray-400 hover:bg-gray-500 hover:text-white"}[e]||"",AC=(e,t)=>!e||e==="none"?"":e==="primary"?`border border-primary-600 ${t?"":"text-primary-600"}`:e==="grayDark"?`border border-gray-800 ${t?"":"text-gray-800"}`:e==="grayLight"?`border border-gray-50 ${t?"":"text-gray-400"}`:e==="gray400"?`border border-gray-400 ${t?"":"text-gray-400"}`:`border border-${e}-500 ${t?"":`text-${e}-500`}`,CC=(e,t)=>({solid:bC(e),link:xC(e),linkHoverSolid:wC(e,t),outline:AC(e,t)}),_C={none:"",default:"min-w-fit h-[40px] text-base px-3",base:"w-full md:min-w-fit h-[40px] text-base px-3",small:"min-w-[106px] h-[30px] text-sm px-2",normal:"min-w-[140px] h-[38px] text-base px-3",large:"min-w-[160px] h-[40px] text-lg px-3",NormalBlock:"w-full h-[40px] text-lg px-3",box:"w-[38px] h-[38px]",smallCollapse:"h-[30px] text-sm px-2",normalCollapse:"h-[38px] text-base px-3"},EC={none:"",default:"rounded",pill:"rounded-pill"},SC=({active:e=!1,children:t,color:n="primary",size:r="normal",category:o="solid",className:i,type:s="button",rounded:a="default",style:l={},primaryColor:c,...u},f)=>{var b;const d=yC,p=/link/.test(o)?null:vC(n,e),h=gC,g=_C[r],m=(b=CC(n,e))==null?void 0:b[o],y=fi(p,m),v=EC[a];return x.jsx("button",{...u,style:{...l,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:c?c+"!important":void 0},type:s,ref:f,className:fi(mC,h,d,g,y,v,i,"cursor-pointer"),children:t})},je=T.forwardRef(SC),kC=({isOpen:e,close:t,title:n,dismissOptions:r,confirmOptions:o,children:i,className:s})=>x.jsx(x.Fragment,{children:e&&Tn.createPortal(x.jsxs(Cl.div,{className:Ee("relative z-50 transition duration-300 ease-out data-closed:opacity-0",s),children:[x.jsx("div",{className:"fixed inset-0 bg-black/30"}),x.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:x.jsxs("div",{className:"max-w-lg divide-y divide-gray-100 bg-white rounded-sm shadow-xl",children:[n&&x.jsx("div",{className:" text-gray-900 p-4",children:n}),x.jsx("div",{className:"p-4",children:i}),r||o?x.jsxs("div",{className:"flex gap-4 p-4",children:[r?x.jsx(je,{className:"flex-1",onClick:()=>{r.onClick(),t()},size:"small",color:"secondary",children:r.label}):x.jsx(x.Fragment,{}),o?x.jsx(je,{className:"flex-1",disabled:o.disabled,onClick:()=>{o.onClick(),t()},size:"small",color:"primary",children:o.label}):x.jsx(x.Fragment,{})]}):x.jsx(x.Fragment,{})]})}),x.jsx("style",{type:"text/css",children:qs})]}),document.body,"confidence-modal")}),TC=({onConfirm:e,onClose:t,isOpen:n,title:r})=>{const[o,i]=T.useState(""),[s,a]=T.useState(!1),[l,c]=T.useState(!1),u=async()=>{if(o)try{a(!0),await e(o),i("")}catch{c(!0)}finally{a(!1)}else alert("Please enter a valid email address.")};return x.jsx(kC,{isOpen:n,close:t,dismissOptions:{label:"Cancel",onClick:t},confirmOptions:{label:"Initiate",onClick:u,disabled:s||!o||l},children:x.jsxs("div",{className:"flex flex-col items-center gap-4 w-[400px]",children:[x.jsxs("div",{children:[x.jsx("div",{className:"text-center text-2xl font-medium",children:l?"User already has access":r||"Access Playbook"}),x.jsx("div",{className:"text-center",children:l?x.jsxs(x.Fragment,{children:[x.jsx("b",{children:o})," has already accessed a playbook. Contact Confidence to speak to representative."]}):x.jsx(x.Fragment,{children:"Please enter your company email address to access this playbook."})})]}),x.jsx(xy,{disabled:s||l,placeholder:"Enter company email address",onChange:f=>i(f.target.value)})]})})},NC=({btnClassName:e,buttonNode:t,size:n,playbookId:r,onInitiated:o,disabled:i,btnLabel:s="Run Playbook",btnColor:a="primary"})=>{const[l,c]=T.useState(!1),[u,f]=T.useState(!1);function d(){c(!0)}function p(){c(!1)}const h=async g=>{try{f(!0);const{playbookInstanceId:m,errorCode:y,details:v,message:b}=await E0({bank:"public-sdk",email:g,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"America/Los_Angeles",playbookUid:r})||{};if(y)throw new Error(`Error initiating playbook: ${b} (Code: ${y}) - Details: ${v}`);o(m,g)}finally{f(!1)}};return x.jsxs(x.Fragment,{children:[t?{buttonNode:t}:x.jsxs(je,{onClick:d,className:Ee(e,"flex items-center gap-1"),color:a,size:n,disabled:i||u,children:[x.jsx("img",{src:c0,alt:"Confidence Logo",className:"size-4 object-contain text-white"}),s]}),x.jsx(TC,{isOpen:l,onClose:p,onConfirm:async g=>{await h(g),p()}})]})};/*!
|
|
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 OC={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"]},PC={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"]},MC={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"]},IC=MC,LC={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"]},RC={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"]},_y={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"]},DC=_y,FC={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"]},Ey=FC,jC={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"]},Sy={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"]},ky=Sy,zC={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"]},$C={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"]},UC={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"]},BC=UC,ah={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"]},WC={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"]},KC={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"]},HC={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"]},qC={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"]},VC={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"]},YC={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"]},Ty={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"]},QC=Ty,GC={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"]},ZC={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"]},rd={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"]},Rl={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"]},Ny=Rl,Oy={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"]},Py={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"]},JC=Py,XC={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 OC={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"]},PC={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"]},MC={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"]},IC=MC,LC={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"]},RC={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"]},Cy={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"]},DC=Cy,FC={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"]},_y=FC,jC={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"]},Ey={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"]},Sy=Ey,zC={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"]},$C={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"]},UC={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"]},BC=UC,sh={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"]},WC={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"]},KC={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"]},HC={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"]},qC={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"]},VC={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"]},YC={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"]},ky={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"]},QC=ky,GC={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"]},ZC={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"]},Ty={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"]},Dl={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"]},Ny=Dl,Oy={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"]},Py={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"]},JC=Py,XC={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 e_(e,t,n){return(t=n_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lh(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?lh(Object(n),!0).forEach(function(r){e_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t_(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 n_(e){var t=t_(e,"string");return typeof t=="symbol"?t:t+""}const ch=()=>{};let od={},My={},Iy=null,Ly={mark:ch,measure:ch};try{typeof window<"u"&&(od=window),typeof document<"u"&&(My=document),typeof MutationObserver<"u"&&(Iy=MutationObserver),typeof performance<"u"&&(Ly=performance)}catch{}const{userAgent:uh=""}=od.navigator||{},Mr=od,$e=My,fh=Iy,va=Ly;Mr.document;const ir=!!$e.documentElement&&!!$e.head&&typeof $e.addEventListener=="function"&&typeof $e.createElement=="function",Ry=~uh.indexOf("MSIE")||~uh.indexOf("Trident/");var r_=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,o_=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Dy={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"}},i_={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Fy=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],xt="classic",Dl="duotone",s_="sharp",a_="sharp-duotone",jy=[xt,Dl,s_,a_],l_={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"}},c_={"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"}},u_=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}]]),f_={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"}},d_=["fak","fa-kit","fakd","fa-kit-duotone"],dh={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},p_=["kit"],h_={kit:{"fa-kit":"fak"}},m_=["fak","fakd"],g_={kit:{fak:"fa-kit"}},ph={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ba={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},y_=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],v_=["fak","fa-kit","fakd","fa-kit-duotone"],b_={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},x_={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"}},w_={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},Mu={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"}},A_=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],Iu=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...y_,...A_],C_=["solid","regular","light","thin","duotone","brands"],zy=[1,2,3,4,5,6,7,8,9,10],__=zy.concat([11,12,13,14,15,16,17,18,19,20]),E_=[...Object.keys(w_),...C_,"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",ba.GROUP,ba.SWAP_OPACITY,ba.PRIMARY,ba.SECONDARY].concat(zy.map(e=>"".concat(e,"x"))).concat(__.map(e=>"w-".concat(e))),S_={"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 Xn="___FONT_AWESOME___",Lu=16,$y="fa",Uy="svg-inline--fa",So="data-fa-i2svg",Ru="data-fa-pseudo-element",k_="data-fa-pseudo-element-pending",id="data-prefix",sd="data-icon",hh="fontawesome-i2svg",T_="async",N_=["HTML","HEAD","STYLE","SCRIPT"],By=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Gs(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[xt]}})}const Wy=H({},Dy);Wy[xt]=H(H(H(H({},{"fa-duotone":"duotone"}),Dy[xt]),dh.kit),dh["kit-duotone"]);const O_=Gs(Wy),Du=H({},f_);Du[xt]=H(H(H(H({},{duotone:"fad"}),Du[xt]),ph.kit),ph["kit-duotone"]);const mh=Gs(Du),Fu=H({},Mu);Fu[xt]=H(H({},Fu[xt]),g_.kit);const ad=Gs(Fu),ju=H({},x_);ju[xt]=H(H({},ju[xt]),h_.kit);Gs(ju);const P_=r_,Ky="fa-layers-text",M_=o_,I_=H({},l_);Gs(I_);const L_=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],_c=i_,R_=[...p_,...E_],ys=Mr.FontAwesomeConfig||{};function D_(e){var t=$e.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function F_(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=F_(D_(n));o!=null&&(ys[r]=o)});const Hy={styleDefault:"solid",familyDefault:xt,cssPrefix:$y,replacementClass:Uy,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ys.familyPrefix&&(ys.cssPrefix=ys.familyPrefix);const Pi=H(H({},Hy),ys);Pi.autoReplaceSvg||(Pi.observeMutations=!1);const ue={};Object.keys(Hy).forEach(e=>{Object.defineProperty(ue,e,{enumerable:!0,set:function(t){Pi[e]=t,vs.forEach(n=>n(ue))},get:function(){return Pi[e]}})});Object.defineProperty(ue,"familyPrefix",{enumerable:!0,set:function(e){Pi.cssPrefix=e,vs.forEach(t=>t(ue))},get:function(){return Pi.cssPrefix}});Mr.FontAwesomeConfig=ue;const vs=[];function j_(e){return vs.push(e),()=>{vs.splice(vs.indexOf(e),1)}}const pr=Lu,wn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function z_(e){if(!e||!ir)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 $_="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ts(){let e=12,t="";for(;e-- >0;)t+=$_[Math.random()*62|0];return t}function Wi(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ld(e){return e.classList?Wi(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function qy(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function U_(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(qy(e[n]),'" '),"").trim()}function Fl(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function cd(e){return e.size!==wn.size||e.x!==wn.x||e.y!==wn.y||e.rotate!==wn.rotate||e.flipX||e.flipY}function B_(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)"),l={transform:"".concat(i," ").concat(s," ").concat(a)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:l,path:c}}function W_(e){let{transform:t,width:n=Lu,height:r=Lu,startCentered:o=!1}=e,i="";return o&&Ry?i+="translate(".concat(t.x/pr-n/2,"em, ").concat(t.y/pr-r/2,"em) "):o?i+="translate(calc(-50% + ".concat(t.x/pr,"em), calc(-50% + ").concat(t.y/pr,"em)) "):i+="translate(".concat(t.x/pr,"em, ").concat(t.y/pr,"em) "),i+="scale(".concat(t.size/pr*(t.flipX?-1:1),", ").concat(t.size/pr*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var K_=`:root, :host {
|
|
32
|
+
*/function e_(e,t,n){return(t=n_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ah(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?ah(Object(n),!0).forEach(function(r){e_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ah(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t_(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 n_(e){var t=t_(e,"string");return typeof t=="symbol"?t:t+""}const lh=()=>{};let rd={},My={},Iy=null,Ly={mark:lh,measure:lh};try{typeof window<"u"&&(rd=window),typeof document<"u"&&(My=document),typeof MutationObserver<"u"&&(Iy=MutationObserver),typeof performance<"u"&&(Ly=performance)}catch{}const{userAgent:ch=""}=rd.navigator||{},Mr=rd,$e=My,uh=Iy,ba=Ly;Mr.document;const ir=!!$e.documentElement&&!!$e.head&&typeof $e.addEventListener=="function"&&typeof $e.createElement=="function",Ry=~ch.indexOf("MSIE")||~ch.indexOf("Trident/");var r_=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,o_=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Dy={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"}},i_={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Fy=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",Fl="duotone",s_="sharp",a_="sharp-duotone",jy=[wt,Fl,s_,a_],l_={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"}},c_={"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"}},u_=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}]]),f_={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"}},d_=["fak","fa-kit","fakd","fa-kit-duotone"],fh={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},p_=["kit"],h_={kit:{"fa-kit":"fak"}},m_=["fak","fakd"],g_={kit:{fak:"fa-kit"}},dh={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},xa={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},y_=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],v_=["fak","fa-kit","fakd","fa-kit-duotone"],b_={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},x_={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"}},w_={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},Iu={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"}},A_=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],Lu=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...y_,...A_],C_=["solid","regular","light","thin","duotone","brands"],zy=[1,2,3,4,5,6,7,8,9,10],__=zy.concat([11,12,13,14,15,16,17,18,19,20]),E_=[...Object.keys(w_),...C_,"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",xa.GROUP,xa.SWAP_OPACITY,xa.PRIMARY,xa.SECONDARY].concat(zy.map(e=>"".concat(e,"x"))).concat(__.map(e=>"w-".concat(e))),S_={"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 Xn="___FONT_AWESOME___",Ru=16,$y="fa",Uy="svg-inline--fa",So="data-fa-i2svg",Du="data-fa-pseudo-element",k_="data-fa-pseudo-element-pending",od="data-prefix",id="data-icon",ph="fontawesome-i2svg",T_="async",N_=["HTML","HEAD","STYLE","SCRIPT"],By=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Zs(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const Wy=H({},Dy);Wy[wt]=H(H(H(H({},{"fa-duotone":"duotone"}),Dy[wt]),fh.kit),fh["kit-duotone"]);const O_=Zs(Wy),Fu=H({},f_);Fu[wt]=H(H(H(H({},{duotone:"fad"}),Fu[wt]),dh.kit),dh["kit-duotone"]);const hh=Zs(Fu),ju=H({},Iu);ju[wt]=H(H({},ju[wt]),g_.kit);const sd=Zs(ju),zu=H({},x_);zu[wt]=H(H({},zu[wt]),h_.kit);Zs(zu);const P_=r_,Ky="fa-layers-text",M_=o_,I_=H({},l_);Zs(I_);const L_=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ec=i_,R_=[...p_,...E_],bs=Mr.FontAwesomeConfig||{};function D_(e){var t=$e.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function F_(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=F_(D_(n));o!=null&&(bs[r]=o)});const Hy={styleDefault:"solid",familyDefault:wt,cssPrefix:$y,replacementClass:Uy,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};bs.familyPrefix&&(bs.cssPrefix=bs.familyPrefix);const Mi=H(H({},Hy),bs);Mi.autoReplaceSvg||(Mi.observeMutations=!1);const ue={};Object.keys(Hy).forEach(e=>{Object.defineProperty(ue,e,{enumerable:!0,set:function(t){Mi[e]=t,xs.forEach(n=>n(ue))},get:function(){return Mi[e]}})});Object.defineProperty(ue,"familyPrefix",{enumerable:!0,set:function(e){Mi.cssPrefix=e,xs.forEach(t=>t(ue))},get:function(){return Mi.cssPrefix}});Mr.FontAwesomeConfig=ue;const xs=[];function j_(e){return xs.push(e),()=>{xs.splice(xs.indexOf(e),1)}}const pr=Ru,wn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function z_(e){if(!e||!ir)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 $_="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Os(){let e=12,t="";for(;e-- >0;)t+=$_[Math.random()*62|0];return t}function Hi(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ad(e){return e.classList?Hi(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function qy(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function U_(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(qy(e[n]),'" '),"").trim()}function jl(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function ld(e){return e.size!==wn.size||e.x!==wn.x||e.y!==wn.y||e.rotate!==wn.rotate||e.flipX||e.flipY}function B_(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)"),l={transform:"".concat(i," ").concat(s," ").concat(a)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:l,path:c}}function W_(e){let{transform:t,width:n=Ru,height:r=Ru,startCentered:o=!1}=e,i="";return o&&Ry?i+="translate(".concat(t.x/pr-n/2,"em, ").concat(t.y/pr-r/2,"em) "):o?i+="translate(calc(-50% + ".concat(t.x/pr,"em), calc(-50% + ").concat(t.y/pr,"em)) "):i+="translate(".concat(t.x/pr,"em, ").concat(t.y/pr,"em) "),i+="scale(".concat(t.size/pr*(t.flipX?-1:1),", ").concat(t.size/pr*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var K_=`: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,24 +582,24 @@ 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 Vy(){const e=$y,t=Uy,n=ue.cssPrefix,r=ue.replacementClass;let o=K_;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 gh=!1;function Ec(){ue.autoAddCss&&!gh&&(z_(Vy()),gh=!0)}var H_={mixout(){return{dom:{css:Vy,insertCss:Ec}}},hooks(){return{beforeDOMElementCreation(){Ec()},beforeI2svg(){Ec()}}}};const er=Mr||{};er[Xn]||(er[Xn]={});er[Xn].styles||(er[Xn].styles={});er[Xn].hooks||(er[Xn].hooks={});er[Xn].shims||(er[Xn].shims=[]);var An=er[Xn];const Yy=[],Qy=function(){$e.removeEventListener("DOMContentLoaded",Qy),tl=1,Yy.map(e=>e())};let tl=!1;ir&&(tl=($e.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test($e.readyState),tl||$e.addEventListener("DOMContentLoaded",Qy));function q_(e){ir&&(tl?setTimeout(e,0):Yy.push(e))}function Zs(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?qy(e):"<".concat(t," ").concat(U_(n),">").concat(r.map(Zs).join(""),"</").concat(t,">")}function yh(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Sc=function(t,n,r,o){var i=Object.keys(t),s=i.length,a=n,l,c,u;for(r===void 0?(l=1,u=t[i[0]]):(l=0,u=r);l<s;l++)c=i[l],u=a(u,t[c],c,t);return u};function V_(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 zu(e){const t=V_(e);return t.length===1?t[0].toString(16):null}function Y_(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 vh(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 $u(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,o=vh(t);typeof An.hooks.addPack=="function"&&!r?An.hooks.addPack(e,vh(t)):An.styles[e]=H(H({},An.styles[e]||{}),o),e==="fas"&&$u("fa",t)}const{styles:Ns,shims:Q_}=An,Gy=Object.keys(ad),G_=Gy.reduce((e,t)=>(e[t]=Object.keys(ad[t]),e),{});let ud=null,Zy={},Jy={},Xy={},ev={},tv={};function Z_(e){return~R_.indexOf(e)}function J_(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!Z_(o)?o:null}const nv=()=>{const e=r=>Sc(Ns,(o,i,s)=>(o[s]=Sc(i,r,{}),o),{});Zy=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)),Jy=e((r,o,i)=>(r[i]=i,o[2]&&o[2].filter(a=>typeof a=="string").forEach(a=>{r[a]=i}),r)),tv=e((r,o,i)=>{const s=o[2];return r[i]=i,s.forEach(a=>{r[a]=i}),r});const t="far"in Ns||ue.autoFetchSvg,n=Sc(Q_,(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:{}});Xy=n.names,ev=n.unicodes,ud=jl(ue.styleDefault,{family:ue.familyDefault})};j_(e=>{ud=jl(e.styleDefault,{family:ue.familyDefault})});nv();function fd(e,t){return(Zy[e]||{})[t]}function X_(e,t){return(Jy[e]||{})[t]}function oo(e,t){return(tv[e]||{})[t]}function rv(e){return Xy[e]||{prefix:null,iconName:null}}function eE(e){const t=ev[e],n=fd("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Ir(){return ud}const ov=()=>({prefix:null,iconName:null,rest:[]});function tE(e){let t=xt;const n=Gy.reduce((r,o)=>(r[o]="".concat(ue.cssPrefix,"-").concat(o),r),{});return jy.forEach(r=>{(e.includes(n[r])||e.some(o=>G_[r].includes(o)))&&(t=r)}),t}function jl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=xt}=t,r=O_[n][e];if(n===Dl&&!e)return"fad";const o=mh[n][e]||mh[n][r],i=e in An.styles?e:null;return o||i||null}function nE(e){let t=[],n=null;return e.forEach(r=>{const o=J_(ue.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function bh(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function zl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const o=Iu.concat(v_),i=bh(e.filter(f=>o.includes(f))),s=bh(e.filter(f=>!Iu.includes(f))),a=i.filter(f=>(r=f,!Fy.includes(f))),[l=null]=a,c=tE(i),u=H(H({},nE(s)),{},{prefix:jl(l,{family:c})});return H(H(H({},u),sE({values:e,family:c,styles:Ns,config:ue,canonical:u,givenPrefix:r})),rE(n,r,u))}function rE(e,t,n){let{prefix:r,iconName:o}=n;if(e||!r||!o)return{prefix:r,iconName:o};const i=t==="fa"?rv(o):{},s=oo(r,o);return o=i.iconName||s||o,r=i.prefix||r,r==="far"&&!Ns.far&&Ns.fas&&!ue.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}const oE=jy.filter(e=>e!==xt||e!==Dl),iE=Object.keys(Mu).filter(e=>e!==xt).map(e=>Object.keys(Mu[e])).flat();function sE(e){const{values:t,family:n,canonical:r,givenPrefix:o="",styles:i={},config:s={}}=e,a=n===Dl,l=t.includes("fa-duotone")||t.includes("fad"),c=s.familyDefault==="duotone",u=r.prefix==="fad"||r.prefix==="fa-duotone";if(!a&&(l||c||u)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&oE.includes(n)&&(Object.keys(i).find(d=>iE.includes(d))||s.autoFetchSvg)){const d=u_.get(n).defaultShortPrefixId;r.prefix=d,r.iconName=oo(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||o==="fa")&&(r.prefix=Ir()||"fas"),r}class aE{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]),$u(i,o[i]);const s=ad[xt][i];s&&$u(s,o[i]),nv()})}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],l=a[2];t[i]||(t[i]={}),l.length>0&&l.forEach(c=>{typeof c=="string"&&(t[i][c]=a)}),t[i][s]=a}),t}}let xh=[],si={};const pi={},lE=Object.keys(pi);function cE(e,t){let{mixoutsTo:n}=t;return xh=e,si={},Object.keys(pi).forEach(r=>{lE.indexOf(r)===-1&&delete pi[r]}),xh.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=>{si[s]||(si[s]=[]),si[s].push(i[s])})}r.provides&&r.provides(pi)}),n}function Uu(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(si[e]||[]).forEach(s=>{t=s.apply(null,[t,...r])}),t}function ko(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(si[e]||[]).forEach(i=>{i.apply(null,n)})}function Lr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return pi[e]?pi[e].apply(null,t):void 0}function Bu(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Ir();if(t)return t=oo(n,t)||t,yh(iv.definitions,n,t)||yh(An.styles,n,t)}const iv=new aE,uE=()=>{ue.autoReplaceSvg=!1,ue.observeMutations=!1,ko("noAuto")},fE={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ir?(ko("beforeI2svg",e),Lr("pseudoElements2svg",e),Lr("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;ue.autoReplaceSvg===!1&&(ue.autoReplaceSvg=!0),ue.observeMutations=!0,q_(()=>{pE({autoReplaceSvgRoot:t}),ko("watch",e)})}},dE={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:oo(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=jl(e[0]);return{prefix:n,iconName:oo(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ue.cssPrefix,"-"))>-1||e.match(P_))){const t=zl(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Ir(),iconName:oo(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Ir();return{prefix:t,iconName:oo(t,e)||e}}}},Wt={noAuto:uE,config:ue,dom:fE,parse:dE,library:iv,findIconDefinition:Bu,toHtml:Zs},pE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=$e}=e;(Object.keys(An.styles).length>0||ue.autoFetchSvg)&&ir&&ue.autoReplaceSvg&&Wt.dom.i2svg({node:t})};function $l(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Zs(n))}}),Object.defineProperty(e,"node",{get:function(){if(!ir)return;const n=$e.createElement("div");return n.innerHTML=e.html,n.children}}),e}function hE(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:s}=e;if(cd(s)&&n.found&&!r.found){const{width:a,height:l}=n,c={x:a/l/2,y:.5};o.style=Fl(H(H({},i),{},{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function mE(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const s=i===!0?"".concat(t,"-").concat(ue.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:H(H({},o),{},{id:s}),children:r}]}]}function dd(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:s,title:a,maskId:l,titleId:c,extra:u,watchable:f=!1}=e,{width:d,height:p}=n.found?n:t,h=m_.includes(r),g=[ue.replacementClass,o?"".concat(ue.cssPrefix,"-").concat(o):""].filter(w=>u.classes.indexOf(w)===-1).filter(w=>w!==""||!!w).concat(u.classes).join(" ");let m={children:[],attributes:H(H({},u.attributes),{},{"data-prefix":r,"data-icon":o,class:g,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(p)})};const y=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(d/p*16*.0625,"em")}:{};f&&(m.attributes[So]=""),a&&(m.children.push({tag:"title",attributes:{id:m.attributes["aria-labelledby"]||"title-".concat(c||Ts())},children:[a]}),delete m.attributes.title);const v=H(H({},m),{},{prefix:r,iconName:o,main:t,mask:n,maskId:l,transform:i,symbol:s,styles:H(H({},y),u.styles)}),{children:b,attributes:A}=n.found&&t.found?Lr("generateAbstractMask",v)||{children:[],attributes:{}}:Lr("generateAbstractIcon",v)||{children:[],attributes:{}};return v.children=b,v.attributes=A,s?mE(v):hE(v)}function wh(e){const{content:t,width:n,height:r,transform:o,title:i,extra:s,watchable:a=!1}=e,l=H(H(H({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});a&&(l[So]="");const c=H({},s.styles);cd(o)&&(c.transform=W_({transform:o,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const u=Fl(c);u.length>0&&(l.style=u);const f=[];return f.push({tag:"span",attributes:l,children:[t]}),i&&f.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),f}function gE(e){const{content:t,title:n,extra:r}=e,o=H(H(H({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=Fl(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:kc}=An;function Wu(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(ue.cssPrefix,"-").concat(_c.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ue.cssPrefix,"-").concat(_c.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ue.cssPrefix,"-").concat(_c.PRIMARY),fill:"currentColor",d:r[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const yE={found:!1,width:512,height:512};function vE(e,t){!By&&!ue.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Ku(e,t){let n=t;return t==="fa"&&ue.styleDefault!==null&&(t=Ir()),new Promise((r,o)=>{if(n==="fa"){const i=rv(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&kc[t]&&kc[t][e]){const i=kc[t][e];return r(Wu(i))}vE(e,t),r(H(H({},yE),{},{icon:ue.showMissingIcons&&e?Lr("missingIconAbstract")||{}:{}}))})}const Ah=()=>{},Hu=ue.measurePerformance&&va&&va.mark&&va.measure?va:{mark:Ah,measure:Ah},ds='FA "6.7.2"',bE=e=>(Hu.mark("".concat(ds," ").concat(e," begins")),()=>sv(e)),sv=e=>{Hu.mark("".concat(ds," ").concat(e," ends")),Hu.measure("".concat(ds," ").concat(e),"".concat(ds," ").concat(e," begins"),"".concat(ds," ").concat(e," ends"))};var pd={begin:bE,end:sv};const Ra=()=>{};function Ch(e){return typeof(e.getAttribute?e.getAttribute(So):null)=="string"}function xE(e){const t=e.getAttribute?e.getAttribute(id):null,n=e.getAttribute?e.getAttribute(sd):null;return t&&n}function wE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ue.replacementClass)}function AE(){return ue.autoReplaceSvg===!0?Da.replace:Da[ue.autoReplaceSvg]||Da.replace}function CE(e){return $e.createElementNS("http://www.w3.org/2000/svg",e)}function _E(e){return $e.createElement(e)}function av(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?CE:_E}=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(av(i,{ceFn:n}))}),r}function EE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Da={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(av(n),t)}),t.getAttribute(So)===null&&ue.keepOriginalSource){let n=$e.createComment(EE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~ld(t).indexOf(ue.replacementClass))return Da.replace(e);const r=new RegExp("".concat(ue.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const i=n[0].attributes.class.split(" ").reduce((s,a)=>(a===ue.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=>Zs(i)).join(`
|
|
586
|
-
`);t.setAttribute(So,""),t.innerHTML=o}};function
|
|
587
|
-
`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function KE(e){return Promise.all([
|
|
588
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s4(e){var t,n=e.beat,r=e.fade,o=e.beatFade,i=e.bounce,s=e.shake,a=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,f=e.pulse,d=e.fixedWidth,p=e.inverse,h=e.border,g=e.listItem,m=e.flip,y=e.size,v=e.rotation,b=e.pull,A=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":s,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":f,"fa-fw":d,"fa-inverse":p,"fa-border":h,"fa-li":g,"fa-flip":m===!0,"fa-flip-horizontal":m==="horizontal"||m==="both","fa-flip-vertical":m==="vertical"||m==="both"},ai(t,"fa-".concat(y),typeof y<"u"&&y!==null),ai(t,"fa-rotate-".concat(v),typeof v<"u"&&v!==null&&v!==0),ai(t,"fa-pull-".concat(b),typeof b<"u"&&b!==null),ai(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(A).map(function(w){return A[w]?w:null}).filter(function(w){return w})}function a4(e){return e=e-0,e===e}function dv(e){return a4(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var l4=["style"];function c4(e){return e.charAt(0).toUpperCase()+e.slice(1)}function u4(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=dv(n.slice(0,r)),i=n.slice(r+1).trim();return o.startsWith("webkit")?t[c4(o)]=i:t[o]=i,t},{})}function pv(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(l){return pv(e,l)}),o=Object.keys(t.attributes||{}).reduce(function(l,c){var u=t.attributes[c];switch(c){case"class":l.attrs.className=u,delete t.attributes.class;break;case"style":l.attrs.style=u4(u);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=u:l.attrs[dv(c)]=u}return l},{attrs:{}}),i=n.style,s=i===void 0?{}:i,a=fv(n,l4);return o.attrs.style=_r(_r({},o.attrs.style),s),e.apply(void 0,[t.tag,_r(_r({},o.attrs),a)].concat(Qu(r)))}var hv=!1;try{hv=process.env.NODE_ENV==="production"}catch{}function f4(){if(!hv&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Dh(e){if(e&&rl(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Yu.icon)return Yu.icon(e);if(e===null)return null;if(e&&rl(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 Nc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ai({},e,t):{}}var d4=["forwardedRef"];function ve(e){var t=e.forwardedRef,n=fv(e,d4),r=n.icon,o=n.mask,i=n.symbol,s=n.className,a=n.title,l=n.titleId,c=n.maskId,u=Dh(r),f=Nc("classes",[].concat(Qu(s4(n)),Qu(s.split(" ")))),d=Nc("transform",typeof n.transform=="string"?Yu.transform(n.transform):n.transform),p=Nc("mask",Dh(o)),h=e4(u,_r(_r(_r(_r({},f),d),p),{},{symbol:i,title:a,titleId:l,maskId:c}));if(!h)return f4("Could not find icon",u),null;var g=h.abstract,m={ref:t};return Object.keys(n).forEach(function(y){ve.defaultProps.hasOwnProperty(y)||(m[y]=n[y])}),p4(g[0],m)}ve.displayName="FontAwesomeIcon";ve.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]),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};ve.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,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};var p4=pv.bind(null,T.createElement);const h4=async e=>await(await fetch(`${nr}/playbook-task-details`,{method:"POST",body:JSON.stringify(e)})).json(),m4=({taskId:e,playbookId:t,enabled:n})=>{const{queryClient:r}=Fr(),o=async()=>h4({taskId:+e,templateId:t.toString()}),i=["taskDetails",+e,t],s=Cl({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}},g4=({buttons:e,onButtonClick:t,disabled:n})=>x.jsx("div",{className:"flex items-center justify-end",children:e.map(r=>x.jsx(je,{size:"smallCollapse",className:"ml-2",disabled:n,onClick:()=>{t(r)},children:Pw[r]},r))});function Fh(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ou(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function rs(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Oc(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 y4(e){return e.matches("html,body")}function jh(e){return(e==null?void 0:e.ownerDocument)||document}function Fa(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,...Fa(e,o.id,n)])}function v4(e){return"nativeEvent"in e}var b4=typeof document<"u",x4=function(){},Zu=b4?T.useLayoutEffect:x4;const w4={...C},A4=w4.useInsertionEffect,C4=A4||(e=>e());function ni(e){const t=C.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return C4(()=>{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 _4="data-floating-ui-focusable",zh="active",$h="selected",E4={...C};let Uh=!1,S4=0;const Bh=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+S4++;function k4(){const[e,t]=C.useState(()=>Uh?Bh():void 0);return Zu(()=>{e==null&&t(Bh())},[]),C.useEffect(()=>{Uh=!0},[]),e}const T4=E4.useId,N4=T4||k4;let Ju;process.env.NODE_ENV!=="production"&&(Ju=new Set);function O4(){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=Ju)!=null&&e.has(o))){var i;(i=Ju)==null||i.add(o),console.error(o)}}function P4(){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 M4=C.createContext(null),I4=C.createContext(null),L4=()=>{var e;return((e=C.useContext(M4))==null?void 0:e.id)||null},mv=()=>C.useContext(I4);function R4(e){return"data-floating-ui-"+e}const D4={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},F4={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Wh=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 gv(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:f="pointerdown",ancestorScroll:d=!1,bubbles:p,capture:h}=t,g=mv(),m=ni(typeof l=="function"?l:()=>!1),y=typeof l=="function"?m:l,v=C.useRef(!1),{escapeKey:b,outsidePress:A}=Wh(p),{escapeKey:w,outsidePress:_}=Wh(h),E=C.useRef(!1),S=ni(z=>{var Y;if(!n||!s||!a||z.key!=="Escape"||E.current)return;const Q=(Y=i.current.floatingContext)==null?void 0:Y.nodeId,oe=g?Fa(g.nodesRef.current,Q):[];if(!b&&(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,v4(z)?z.nativeEvent:z,"escape-key")}),O=ni(z=>{var Y;const Q=()=>{var oe;S(z),(oe=rs(z))==null||oe.removeEventListener("keydown",Q)};(Y=rs(z))==null||Y.addEventListener("keydown",Q)}),P=ni(z=>{var Y;const Q=i.current.insideReactTree;i.current.insideReactTree=!1;const oe=v.current;if(v.current=!1,c==="click"&&oe||Q||typeof y=="function"&&!y(z))return;const M=rs(z),re="["+R4("inert")+"]",L=jh(o.floating).querySelectorAll(re);let F=He(M)?M:null;for(;F&&!Gn(F);){const V=Jn(F);if(Gn(V)||!He(V))break;F=V}if(L.length&&He(M)&&!y4(M)&&!Fh(M,o.floating)&&Array.from(L).every(V=>!Fh(F,V)))return;if(cn(M)&&j){const V=Gn(M),ee=Qt(M),te=/auto|scroll/,he=V||te.test(ee.overflowX),ye=V||te.test(ee.overflowY),me=he&&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=me&&z.offsetY>M.clientHeight;if(qe||zt)return}const K=(Y=i.current.floatingContext)==null?void 0:Y.nodeId,B=g&&Fa(g.nodesRef.current,K).some(V=>{var ee;return Oc(z,(ee=V.context)==null?void 0:ee.elements.floating)});if(Oc(z,o.floating)||Oc(z,o.domReference)||B)return;const J=g?Fa(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=ni(z=>{var Y;const Q=()=>{var oe;P(z),(oe=rs(z))==null||oe.removeEventListener(c,Q)};(Y=rs(z))==null||Y.addEventListener(c,Q)});C.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=b,i.current.__outsidePressBubbles=A;let z=-1;function Y(L){r(!1,L,"ancestor-scroll")}function Q(){window.clearTimeout(z),E.current=!0}function oe(){z=window.setTimeout(()=>{E.current=!1},Ml()?5:0)}const M=jh(o.floating);a&&(M.addEventListener("keydown",w?O:S,w),M.addEventListener("compositionstart",Q),M.addEventListener("compositionend",oe)),y&&M.addEventListener(c,_?I:P,_);let re=[];return d&&(He(o.domReference)&&(re=fi(o.domReference)),He(o.floating)&&(re=re.concat(fi(o.floating))),!He(o.reference)&&o.reference&&o.reference.contextElement&&(re=re.concat(fi(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",w?O:S,w),M.removeEventListener("compositionstart",Q),M.removeEventListener("compositionend",oe)),y&&M.removeEventListener(c,_?I:P,_),re.forEach(L=>{L.removeEventListener("scroll",Y)}),window.clearTimeout(z)}},[i,o,a,y,c,n,r,d,s,b,A,S,w,O,P,_,I]),C.useEffect(()=>{i.current.insideReactTree=!1},[i,y,c]);const W=C.useMemo(()=>({onKeyDown:S,...u&&{[D4[f]]:z=>{r(!1,z.nativeEvent,"reference-press")},...f!=="click"&&{onClick(z){r(!1,z.nativeEvent,"reference-press")}}}}),[S,r,u,f]),j=C.useMemo(()=>({onKeyDown:S,onMouseDown(){v.current=!0},onMouseUp(){v.current=!0},[F4[c]]:()=>{i.current.insideReactTree=!0}}),[S,c,i]);return C.useMemo(()=>s?{reference:W,floating:j}:{},[s,W,j])}function j4(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=N4(),i=C.useRef({}),[s]=C.useState(()=>P4()),a=L4()!=null;if(process.env.NODE_ENV!=="production"){const p=r.reference;p&&!He(p)&&O4("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,c]=C.useState(r.reference),u=ni((p,h,g)=>{i.current.openEvent=p?h:void 0,s.emit("openchange",{open:p,event:h,reason:g,nested:a}),n==null||n(p,h,g)}),f=C.useMemo(()=>({setPositionReference:c}),[]),d=C.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return C.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:d,events:s,floatingId:o,refs:f}),[t,u,d,s,o,f])}function yv(e){e===void 0&&(e={});const{nodeId:t}=e,n=j4({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=C.useState(null),[a,l]=C.useState(null),u=(o==null?void 0:o.domReference)||i,f=C.useRef(null),d=mv();Zu(()=>{u&&(f.current=u)},[u]);const p=lC({...e,elements:{...o,...a&&{reference:a}}}),h=C.useCallback(b=>{const A=He(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),getClientRects:()=>b.getClientRects(),contextElement:b}:b;l(A),p.refs.setReference(A)},[p.refs]),g=C.useCallback(b=>{(He(b)||b===null)&&(f.current=b,s(b)),(He(p.refs.reference.current)||p.refs.reference.current===null||b!==null&&!He(b))&&p.refs.setReference(b)},[p.refs]),m=C.useMemo(()=>({...p.refs,setReference:g,setPositionReference:h,domReference:f}),[p.refs,g,h]),y=C.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),v=C.useMemo(()=>({...p,...r,refs:m,elements:y,nodeId:t}),[p,m,y,t,r]);return Zu(()=>{r.dataRef.current.floatingContext=v;const b=d==null?void 0:d.nodesRef.current.find(A=>A.id===t);b&&(b.context=v)}),C.useMemo(()=>({...p,context:v,refs:m,elements:y}),[p,m,y,v])}function Pc(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[zh]:s,[$h]:a,...l}=e;i=l}return{...n==="floating"&&{tabIndex:-1,[_4]:""},...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(l=>{let[c,u]=l;if(!(o&&[zh,$h].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof u=="function"){var f;(f=r.get(c))==null||f.push(u),s[c]=function(){for(var d,p=arguments.length,h=new Array(p),g=0;g<p;g++)h[g]=arguments[g];return(d=r.get(c))==null?void 0:d.map(m=>m(...h)).find(m=>m!==void 0)}}}else s[c]=u}),s),{})}}function vv(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=>Pc(a,e,"reference"),t),i=C.useCallback(a=>Pc(a,e,"floating"),n),s=C.useCallback(a=>Pc(a,e,"item"),r);return C.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}const z4={white:"bg-white text-dark-300 border border-gray-300",primary:"bg-primary-600",secondary:"bg-secondary-500",success:"bg-success-600",info:"bg-info-500",warning:"bg-warning-500 text-gray-800",danger:"bg-danger-500",steel:"bg-steel-500",orange:"bg-orange-500",purple:"bg-purple-500",grayDark:"bg-gray-900",grayLight:"bg-gray-100 text-gray-800"},$4={white:"text-white border border-white",primary:"text-primary-600 border border-primary-600",secondary:"text-secondary-500 border border-secondary-500",success:"text-success-600 border border-success-600",info:"text-info-500 border border-info-500",warning:"text-warning-500 border border-warning-500",danger:"text-danger-500 border border-danger-500",steel:"text-steel-500 border border-steel-500",orange:"text-orange-500 border border-orange-500",purple:"text-purple-500 border border-purple-500",grayDark:"text-gray-700 border border-gray-700",grayLight:"text-gray-500 border border-gray-100"},U4={white:"text-dark-300",primary:"text-white",secondary:"text-white",success:"text-white",info:"text-black",warning:"text-gray-800",danger:"text-white",steel:"text-white",orange:"text-black",purple:"text-white",grayDark:"text-white",grayLight:"text-gray-800"},B4={normal:"rounded",pill:"rounded-pill"},W4={big:"h-[24px] leading-[24px] text-md px-1",medium:"h-[22px] leading-[22px] text-sm px-[2px]",small:"h-[18px] leading-[18px] text-xs px-[2px]"},bv=({category:e="solid",color:t="primary",roundness:n="normal",size:r="medium",textClassName:o="uppercase",children:i,className:s,...a})=>{const l=T.useMemo(()=>U4[t]??"text-white",[t]),c=T.useMemo(()=>ui(l,e==="outline"?$4[t]:z4[t],B4[n],W4[r]),[l,e,t,r,n]);return x.jsx("div",{className:ui("ui-badge flex items-center font-bold",c,s),style:a==null?void 0:a.style,"data-testid":"badge","data-category":e,"data-color":t,...a,children:x.jsx("p",{className:ui("mx-1",o),children:i})})},K4={default:"text-secondary-600 border-secondary-600",primary:"text-primary-600 border-primary-600",success:"text-success-600 border-success-600"},H4=({transition:e,onClick:t})=>x.jsxs("div",{className:Ee("py-1 px-3 space-x-2 flex items-center hover:bg-gray-100 cursor-pointer",e.disabled&&"opacity-50 cursor-not-allowed hover:bg-transparent"),onClick:n=>{e.disabled||(n.stopPropagation(),t())},children:[x.jsx("span",{className:"text-base text-dark flex-1",children:e.action}),x.jsx(ve,{icon:WC,className:"text-gray-400 size-4"}),x.jsx(bv,{category:"outline",color:e.color,children:e.to})]}),q4=({title:e,variant:t="default",transitions:n,verificationType:r,taskVerified:o,onClick:i})=>{const[s,a]=T.useState(!1),{refs:l,floatingStyles:c,context:u}=yv({strategy:"fixed",placement:"bottom-end",open:s,onOpenChange:a}),f=gv(u,{outsidePress:!0}),{getReferenceProps:d,getFloatingProps:p}=vv([f]);return x.jsxs(x.Fragment,{children:[x.jsxs("div",{onClick:n!=null&&n.length?()=>a(h=>!h):void 0,ref:l.setReference,className:Ee("px-1 uppercase border rounded-sm inline-flex items-center space-x-1 flex-shrink-0 whitespace-nowrap",n.length?"cursor-pointer":"pointer-events-none",K4[t]),...d(),children:[r===Un.COMMENT&&x.jsx(ve,{icon:o?Ey:jC,className:Ee("size-4",e==="In progress"&&(o?"text-success-600":"text-danger-600"))}),x.jsx("span",{className:"text-sm font-bold",children:e}),n.length>0?x.jsx(ve,{icon:rd,className:"size-4"}):x.jsx(x.Fragment,{})]}),s&&n.length&&x.jsx("div",{ref:l.setFloating,style:c,className:Ee("border border-gray-200 py-1.5 rounded-sm min-w-[172px] bg-white shadow-dark/50"),...p(),children:n.map(h=>x.jsx(H4,{transition:h,onClick:()=>{i==null||i(h.id),a(!1)}},h.id))})]})},Kh=({description:e})=>{const t=T.useMemo(()=>{const n=/https:\/\/[^/]+\/api\/files/g,r=e==null?void 0:e.replaceAll(n,`${qp}`),o=r==null?void 0:r.replaceAll('src="/api/files',`src="${qp}`),a=new DOMParser().parseFromString(o,"text/html").querySelectorAll("img");return a==null||a.forEach(l=>{const c=l.getAttribute("src");c&&(new Image().src=c)}),o},[e]);return T.useEffect(()=>{},[t]),x.jsx("div",{className:"flex flex-col gap-4",children:x.jsx("div",{style:{display:"unset"},className:"lexical-view-mode",dangerouslySetInnerHTML:{__html:t}})})},V4={SEQUENTIAL:"Sequential"},Y4={[Be.IN_REVIEW]:"In Review"},Q4={[Be.OPEN]:"bg-secondary-500",[Be.IN_PROGRESS]:"bg-primary-600",[Be.IN_REVIEW]:"bg-success-600",[Be.COMPLETED]:"bg-success-600"},G4=({playbookType:e,status:t,step:n,isSelected:r,onSelect:o})=>x.jsx("div",{className:_s("flex flex-col items-center justify-center",r?"bg-[#FFE600]":Q4[t],o&&"cursor-pointer"),onClick:i=>{i.stopPropagation(),o==null||o(i.shiftKey)},children:x.jsx("span",{className:_s("text-orientation-mixed w-[27px] flex items-center whitespace-nowrap px-2 text-sm font-bold [writing-mode:vertical-lr]",r?"text-black":"text-white"),children:e===V4.SEQUENTIAL?`STEP ${n}`:(Y4[t]||t).toUpperCase()})}),Z4={[Be.OPEN]:"secondary",[Be.IN_PROGRESS]:"primary",[Be.IN_REVIEW]:"success",[Be.COMPLETED]:"success"},J4=({status:e})=>x.jsx(bv,{category:"outline",color:Z4[e],children:e}),dt={INFO:"Info",WARNING:"Warning",DANGER:"Danger",SUCCESS:"Success"};/*!
|
|
585
|
+
}`;function Vy(){const e=$y,t=Uy,n=ue.cssPrefix,r=ue.replacementClass;let o=K_;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 mh=!1;function Sc(){ue.autoAddCss&&!mh&&(z_(Vy()),mh=!0)}var H_={mixout(){return{dom:{css:Vy,insertCss:Sc}}},hooks(){return{beforeDOMElementCreation(){Sc()},beforeI2svg(){Sc()}}}};const er=Mr||{};er[Xn]||(er[Xn]={});er[Xn].styles||(er[Xn].styles={});er[Xn].hooks||(er[Xn].hooks={});er[Xn].shims||(er[Xn].shims=[]);var An=er[Xn];const Yy=[],Qy=function(){$e.removeEventListener("DOMContentLoaded",Qy),nl=1,Yy.map(e=>e())};let nl=!1;ir&&(nl=($e.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test($e.readyState),nl||$e.addEventListener("DOMContentLoaded",Qy));function q_(e){ir&&(nl?setTimeout(e,0):Yy.push(e))}function Js(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?qy(e):"<".concat(t," ").concat(U_(n),">").concat(r.map(Js).join(""),"</").concat(t,">")}function gh(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var kc=function(t,n,r,o){var i=Object.keys(t),s=i.length,a=n,l,c,u;for(r===void 0?(l=1,u=t[i[0]]):(l=0,u=r);l<s;l++)c=i[l],u=a(u,t[c],c,t);return u};function V_(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 $u(e){const t=V_(e);return t.length===1?t[0].toString(16):null}function Y_(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 yh(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 Uu(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,o=yh(t);typeof An.hooks.addPack=="function"&&!r?An.hooks.addPack(e,yh(t)):An.styles[e]=H(H({},An.styles[e]||{}),o),e==="fas"&&Uu("fa",t)}const{styles:Ps,shims:Q_}=An,Gy=Object.keys(sd),G_=Gy.reduce((e,t)=>(e[t]=Object.keys(sd[t]),e),{});let cd=null,Zy={},Jy={},Xy={},ev={},tv={};function Z_(e){return~R_.indexOf(e)}function J_(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!Z_(o)?o:null}const nv=()=>{const e=r=>kc(Ps,(o,i,s)=>(o[s]=kc(i,r,{}),o),{});Zy=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)),Jy=e((r,o,i)=>(r[i]=i,o[2]&&o[2].filter(a=>typeof a=="string").forEach(a=>{r[a]=i}),r)),tv=e((r,o,i)=>{const s=o[2];return r[i]=i,s.forEach(a=>{r[a]=i}),r});const t="far"in Ps||ue.autoFetchSvg,n=kc(Q_,(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:{}});Xy=n.names,ev=n.unicodes,cd=zl(ue.styleDefault,{family:ue.familyDefault})};j_(e=>{cd=zl(e.styleDefault,{family:ue.familyDefault})});nv();function ud(e,t){return(Zy[e]||{})[t]}function X_(e,t){return(Jy[e]||{})[t]}function oo(e,t){return(tv[e]||{})[t]}function rv(e){return Xy[e]||{prefix:null,iconName:null}}function eE(e){const t=ev[e],n=ud("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Ir(){return cd}const ov=()=>({prefix:null,iconName:null,rest:[]});function tE(e){let t=wt;const n=Gy.reduce((r,o)=>(r[o]="".concat(ue.cssPrefix,"-").concat(o),r),{});return jy.forEach(r=>{(e.includes(n[r])||e.some(o=>G_[r].includes(o)))&&(t=r)}),t}function zl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=O_[n][e];if(n===Fl&&!e)return"fad";const o=hh[n][e]||hh[n][r],i=e in An.styles?e:null;return o||i||null}function nE(e){let t=[],n=null;return e.forEach(r=>{const o=J_(ue.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function vh(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function $l(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const o=Lu.concat(v_),i=vh(e.filter(f=>o.includes(f))),s=vh(e.filter(f=>!Lu.includes(f))),a=i.filter(f=>(r=f,!Fy.includes(f))),[l=null]=a,c=tE(i),u=H(H({},nE(s)),{},{prefix:zl(l,{family:c})});return H(H(H({},u),sE({values:e,family:c,styles:Ps,config:ue,canonical:u,givenPrefix:r})),rE(n,r,u))}function rE(e,t,n){let{prefix:r,iconName:o}=n;if(e||!r||!o)return{prefix:r,iconName:o};const i=t==="fa"?rv(o):{},s=oo(r,o);return o=i.iconName||s||o,r=i.prefix||r,r==="far"&&!Ps.far&&Ps.fas&&!ue.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}const oE=jy.filter(e=>e!==wt||e!==Fl),iE=Object.keys(Iu).filter(e=>e!==wt).map(e=>Object.keys(Iu[e])).flat();function sE(e){const{values:t,family:n,canonical:r,givenPrefix:o="",styles:i={},config:s={}}=e,a=n===Fl,l=t.includes("fa-duotone")||t.includes("fad"),c=s.familyDefault==="duotone",u=r.prefix==="fad"||r.prefix==="fa-duotone";if(!a&&(l||c||u)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&oE.includes(n)&&(Object.keys(i).find(d=>iE.includes(d))||s.autoFetchSvg)){const d=u_.get(n).defaultShortPrefixId;r.prefix=d,r.iconName=oo(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||o==="fa")&&(r.prefix=Ir()||"fas"),r}class aE{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]),Uu(i,o[i]);const s=sd[wt][i];s&&Uu(s,o[i]),nv()})}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],l=a[2];t[i]||(t[i]={}),l.length>0&&l.forEach(c=>{typeof c=="string"&&(t[i][c]=a)}),t[i][s]=a}),t}}let bh=[],ai={};const hi={},lE=Object.keys(hi);function cE(e,t){let{mixoutsTo:n}=t;return bh=e,ai={},Object.keys(hi).forEach(r=>{lE.indexOf(r)===-1&&delete hi[r]}),bh.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=>{ai[s]||(ai[s]=[]),ai[s].push(i[s])})}r.provides&&r.provides(hi)}),n}function Bu(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(ai[e]||[]).forEach(s=>{t=s.apply(null,[t,...r])}),t}function ko(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(ai[e]||[]).forEach(i=>{i.apply(null,n)})}function Lr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return hi[e]?hi[e].apply(null,t):void 0}function Wu(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Ir();if(t)return t=oo(n,t)||t,gh(iv.definitions,n,t)||gh(An.styles,n,t)}const iv=new aE,uE=()=>{ue.autoReplaceSvg=!1,ue.observeMutations=!1,ko("noAuto")},fE={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ir?(ko("beforeI2svg",e),Lr("pseudoElements2svg",e),Lr("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;ue.autoReplaceSvg===!1&&(ue.autoReplaceSvg=!0),ue.observeMutations=!0,q_(()=>{pE({autoReplaceSvgRoot:t}),ko("watch",e)})}},dE={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:oo(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=zl(e[0]);return{prefix:n,iconName:oo(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ue.cssPrefix,"-"))>-1||e.match(P_))){const t=$l(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Ir(),iconName:oo(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Ir();return{prefix:t,iconName:oo(t,e)||e}}}},Wt={noAuto:uE,config:ue,dom:fE,parse:dE,library:iv,findIconDefinition:Wu,toHtml:Js},pE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=$e}=e;(Object.keys(An.styles).length>0||ue.autoFetchSvg)&&ir&&ue.autoReplaceSvg&&Wt.dom.i2svg({node:t})};function Ul(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Js(n))}}),Object.defineProperty(e,"node",{get:function(){if(!ir)return;const n=$e.createElement("div");return n.innerHTML=e.html,n.children}}),e}function hE(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:s}=e;if(ld(s)&&n.found&&!r.found){const{width:a,height:l}=n,c={x:a/l/2,y:.5};o.style=jl(H(H({},i),{},{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function mE(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const s=i===!0?"".concat(t,"-").concat(ue.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:H(H({},o),{},{id:s}),children:r}]}]}function fd(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:s,title:a,maskId:l,titleId:c,extra:u,watchable:f=!1}=e,{width:d,height:p}=n.found?n:t,h=m_.includes(r),g=[ue.replacementClass,o?"".concat(ue.cssPrefix,"-").concat(o):""].filter(w=>u.classes.indexOf(w)===-1).filter(w=>w!==""||!!w).concat(u.classes).join(" ");let m={children:[],attributes:H(H({},u.attributes),{},{"data-prefix":r,"data-icon":o,class:g,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(p)})};const y=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(d/p*16*.0625,"em")}:{};f&&(m.attributes[So]=""),a&&(m.children.push({tag:"title",attributes:{id:m.attributes["aria-labelledby"]||"title-".concat(c||Os())},children:[a]}),delete m.attributes.title);const v=H(H({},m),{},{prefix:r,iconName:o,main:t,mask:n,maskId:l,transform:i,symbol:s,styles:H(H({},y),u.styles)}),{children:b,attributes:A}=n.found&&t.found?Lr("generateAbstractMask",v)||{children:[],attributes:{}}:Lr("generateAbstractIcon",v)||{children:[],attributes:{}};return v.children=b,v.attributes=A,s?mE(v):hE(v)}function xh(e){const{content:t,width:n,height:r,transform:o,title:i,extra:s,watchable:a=!1}=e,l=H(H(H({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});a&&(l[So]="");const c=H({},s.styles);ld(o)&&(c.transform=W_({transform:o,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const u=jl(c);u.length>0&&(l.style=u);const f=[];return f.push({tag:"span",attributes:l,children:[t]}),i&&f.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),f}function gE(e){const{content:t,title:n,extra:r}=e,o=H(H(H({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=jl(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:Tc}=An;function Ku(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(ue.cssPrefix,"-").concat(Ec.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ue.cssPrefix,"-").concat(Ec.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ue.cssPrefix,"-").concat(Ec.PRIMARY),fill:"currentColor",d:r[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const yE={found:!1,width:512,height:512};function vE(e,t){!By&&!ue.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Hu(e,t){let n=t;return t==="fa"&&ue.styleDefault!==null&&(t=Ir()),new Promise((r,o)=>{if(n==="fa"){const i=rv(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Tc[t]&&Tc[t][e]){const i=Tc[t][e];return r(Ku(i))}vE(e,t),r(H(H({},yE),{},{icon:ue.showMissingIcons&&e?Lr("missingIconAbstract")||{}:{}}))})}const wh=()=>{},qu=ue.measurePerformance&&ba&&ba.mark&&ba.measure?ba:{mark:wh,measure:wh},hs='FA "6.7.2"',bE=e=>(qu.mark("".concat(hs," ").concat(e," begins")),()=>sv(e)),sv=e=>{qu.mark("".concat(hs," ").concat(e," ends")),qu.measure("".concat(hs," ").concat(e),"".concat(hs," ").concat(e," begins"),"".concat(hs," ").concat(e," ends"))};var dd={begin:bE,end:sv};const Da=()=>{};function Ah(e){return typeof(e.getAttribute?e.getAttribute(So):null)=="string"}function xE(e){const t=e.getAttribute?e.getAttribute(od):null,n=e.getAttribute?e.getAttribute(id):null;return t&&n}function wE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ue.replacementClass)}function AE(){return ue.autoReplaceSvg===!0?Fa.replace:Fa[ue.autoReplaceSvg]||Fa.replace}function CE(e){return $e.createElementNS("http://www.w3.org/2000/svg",e)}function _E(e){return $e.createElement(e)}function av(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?CE:_E}=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(av(i,{ceFn:n}))}),r}function EE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Fa={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(av(n),t)}),t.getAttribute(So)===null&&ue.keepOriginalSource){let n=$e.createComment(EE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~ad(t).indexOf(ue.replacementClass))return Fa.replace(e);const r=new RegExp("".concat(ue.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const i=n[0].attributes.class.split(" ").reduce((s,a)=>(a===ue.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=>Js(i)).join(`
|
|
586
|
+
`);t.setAttribute(So,""),t.innerHTML=o}};function Ch(e){e()}function lv(e,t){const n=typeof t=="function"?t:Da;if(e.length===0)n();else{let r=Ch;ue.mutateApproach===T_&&(r=Mr.requestAnimationFrame||Ch),r(()=>{const o=AE(),i=dd.begin("mutate");e.map(o),i(),n()})}}let pd=!1;function cv(){pd=!0}function Vu(){pd=!1}let rl=null;function _h(e){if(!uh||!ue.observeMutations)return;const{treeCallback:t=Da,nodeCallback:n=Da,pseudoElementsCallback:r=Da,observeMutationsRoot:o=$e}=e;rl=new uh(i=>{if(pd)return;const s=Ir();Hi(i).forEach(a=>{if(a.type==="childList"&&a.addedNodes.length>0&&!Ah(a.addedNodes[0])&&(ue.searchPseudoElements&&r(a.target),t(a.target)),a.type==="attributes"&&a.target.parentNode&&ue.searchPseudoElements&&r(a.target.parentNode),a.type==="attributes"&&Ah(a.target)&&~L_.indexOf(a.attributeName))if(a.attributeName==="class"&&xE(a.target)){const{prefix:l,iconName:c}=$l(ad(a.target));a.target.setAttribute(od,l||s),c&&a.target.setAttribute(id,c)}else wE(a.target)&&n(a.target)})}),ir&&rl.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function SE(){rl&&rl.disconnect()}function kE(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 TE(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let o=$l(ad(e));return o.prefix||(o.prefix=Ir()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=X_(o.prefix,e.innerText)||ud(o.prefix,$u(e.innerText))),!o.iconName&&ue.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function NE(e){const t=Hi(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 ue.autoA11y&&(n?t["aria-labelledby"]="".concat(ue.replacementClass,"-title-").concat(r||Os()):(t["aria-hidden"]="true",t.focusable="false")),t}function OE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:wn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Eh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=TE(e),i=NE(e),s=Bu("parseNodeAttributes",{},e);let a=t.styleParser?kE(e):[];return H({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:wn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:a,attributes:i}},s)}const{styles:PE}=An;function uv(e){const t=ue.autoReplaceSvg==="nest"?Eh(e,{styleParser:!1}):Eh(e);return~t.extra.classes.indexOf(Ky)?Lr("generateLayersText",e,t):Lr("generateSvgReplacementMutation",e,t)}function ME(){return[...d_,...Lu]}function Sh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ir)return Promise.resolve();const n=$e.documentElement.classList,r=u=>n.add("".concat(ph,"-").concat(u)),o=u=>n.remove("".concat(ph,"-").concat(u)),i=ue.autoFetchSvg?ME():Fy.concat(Object.keys(PE));i.includes("fa")||i.push("fa");const s=[".".concat(Ky,":not([").concat(So,"])")].concat(i.map(u=>".".concat(u,":not([").concat(So,"])"))).join(", ");if(s.length===0)return Promise.resolve();let a=[];try{a=Hi(e.querySelectorAll(s))}catch{}if(a.length>0)r("pending"),o("complete");else return Promise.resolve();const l=dd.begin("onTree"),c=a.reduce((u,f)=>{try{const d=uv(f);d&&u.push(d)}catch(d){By||d.name==="MissingIcon"&&console.error(d)}return u},[]);return new Promise((u,f)=>{Promise.all(c).then(d=>{lv(d,()=>{r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),l(),u()})}).catch(d=>{l(),f(d)})})}function IE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;uv(e).then(n=>{n&&lv([n],t)})}function LE(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:Wu(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:Wu(o||{})),e(r,H(H({},n),{},{mask:o}))}}const RE=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=wn,symbol:r=!1,mask:o=null,maskId:i=null,title:s=null,titleId:a=null,classes:l=[],attributes:c={},styles:u={}}=t;if(!e)return;const{prefix:f,iconName:d,icon:p}=e;return Ul(H({type:"icon"},e),()=>(ko("beforeDOMElementCreation",{iconDefinition:e,params:t}),ue.autoA11y&&(s?c["aria-labelledby"]="".concat(ue.replacementClass,"-title-").concat(a||Os()):(c["aria-hidden"]="true",c.focusable="false")),fd({icons:{main:Ku(p),mask:o?Ku(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:f,iconName:d,transform:H(H({},wn),n),symbol:r,title:s,maskId:i,titleId:a,extra:{attributes:c,styles:u,classes:l}})))};var DE={mixout(){return{icon:LE(RE)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Sh,e.nodeCallback=IE,e}}},provides(e){e.i2svg=function(t){const{node:n=$e,callback:r=()=>{}}=t;return Sh(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:o,titleId:i,prefix:s,transform:a,symbol:l,mask:c,maskId:u,extra:f}=n;return new Promise((d,p)=>{Promise.all([Hu(r,s),c.iconName?Hu(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(h=>{let[g,m]=h;d([t,fd({icons:{main:g,mask:m},prefix:s,iconName:r,transform:a,symbol:l,maskId:u,title:o,titleId:i,extra:f,watchable:!0})])}).catch(p)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:o,transform:i,styles:s}=t;const a=jl(s);a.length>0&&(r.style=a);let l;return ld(i)&&(l=Lr("generateAbstractTransformGrouping",{main:o,transform:i,containerWidth:o.width,iconWidth:o.width})),n.push(l||o.icon),{children:n,attributes:r}}}},FE={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return Ul({type:"layer"},()=>{ko("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(ue.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},jE={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 Ul({type:"counter",content:e},()=>(ko("beforeDOMElementCreation",{content:e,params:t}),gE({content:e.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(ue.cssPrefix,"-layers-counter"),...r]}})))}}}},zE={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=wn,title:r=null,classes:o=[],attributes:i={},styles:s={}}=t;return Ul({type:"text",content:e},()=>(ko("beforeDOMElementCreation",{content:e,params:t}),xh({content:e,transform:H(H({},wn),n),title:r,extra:{attributes:i,styles:s,classes:["".concat(ue.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(Ry){const l=parseInt(getComputedStyle(t).fontSize,10),c=t.getBoundingClientRect();s=c.width/l,a=c.height/l}return ue.autoA11y&&!r&&(i.attributes["aria-hidden"]="true"),Promise.resolve([t,xh({content:t.innerHTML,width:s,height:a,transform:o,title:r,extra:i,watchable:!0})])}}};const $E=new RegExp('"',"ug"),kh=[1105920,1112319],Th=H(H(H(H({},{FontAwesome:{normal:"fas",400:"fas"}}),c_),S_),b_),Yu=Object.keys(Th).reduce((e,t)=>(e[t.toLowerCase()]=Th[t],e),{}),UE=Object.keys(Yu).reduce((e,t)=>{const n=Yu[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function BE(e){const t=e.replace($E,""),n=Y_(t,0),r=n>=kh[0]&&n<=kh[1],o=t.length===2?t[0]===t[1]:!1;return{value:$u(o?t[0]:t),isSecondary:r||o}}function WE(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(Yu[n]||{})[o]||UE[n]}function Nh(e,t){const n="".concat(k_).concat(t.replace(":","-"));return new Promise((r,o)=>{if(e.getAttribute(n)!==null)return r();const s=Hi(e.children).filter(d=>d.getAttribute(Du)===t)[0],a=Mr.getComputedStyle(e,t),l=a.getPropertyValue("font-family"),c=l.match(M_),u=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(s&&!c)return e.removeChild(s),r();if(c&&f!=="none"&&f!==""){const d=a.getPropertyValue("content");let p=WE(l,u);const{value:h,isSecondary:g}=BE(d),m=c[0].startsWith("FontAwesome");let y=ud(p,h),v=y;if(m){const b=eE(h);b.iconName&&b.prefix&&(y=b.iconName,p=b.prefix)}if(y&&!g&&(!s||s.getAttribute(od)!==p||s.getAttribute(id)!==v)){e.setAttribute(n,v),s&&e.removeChild(s);const b=OE(),{extra:A}=b;A.attributes[Du]=t,Hu(y,p).then(w=>{const _=fd(H(H({},b),{},{icons:{main:w,mask:ov()},prefix:p,iconName:v,extra:A,watchable:!0})),E=$e.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(E,e.firstChild):e.appendChild(E),E.outerHTML=_.map(S=>Js(S)).join(`
|
|
587
|
+
`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function KE(e){return Promise.all([Nh(e,"::before"),Nh(e,"::after")])}function HE(e){return e.parentNode!==document.head&&!~N_.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Du)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Oh(e){if(ir)return new Promise((t,n)=>{const r=Hi(e.querySelectorAll("*")).filter(HE).map(KE),o=dd.begin("searchPseudoElements");cv(),Promise.all(r).then(()=>{o(),Vu(),t()}).catch(()=>{o(),Vu(),n()})})}var qE={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Oh,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=$e}=t;ue.searchPseudoElements&&Oh(n)}}};let Ph=!1;var VE={mixout(){return{dom:{unwatch(){cv(),Ph=!0}}}},hooks(){return{bootstrap(){_h(Bu("mutationObserverCallbacks",{}))},noAuto(){SE()},watch(e){const{observeMutationsRoot:t}=e;Ph?Vu():_h(Bu("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Mh=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 YE={mixout(){return{parse:{transform:e=>Mh(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Mh(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,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),u={transform:"".concat(a," ").concat(l," ").concat(c)},f={transform:"translate(".concat(i/2*-1," -256)")},d={outer:s,inner:u,path:f};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 Nc={x:0,y:0,width:"100%",height:"100%"};function Ih(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 QE(e){return e.tag==="g"?e.children:[e]}var GE={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?$l(n.split(" ").map(o=>o.trim())):ov();return r.prefix||(r.prefix=Ir()),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:l,icon:c}=o,{width:u,icon:f}=i,d=B_({transform:a,containerWidth:u,iconWidth:l}),p={tag:"rect",attributes:H(H({},Nc),{},{fill:"white"})},h=c.children?{children:c.children.map(Ih)}:{},g={tag:"g",attributes:H({},d.inner),children:[Ih(H({tag:c.tag,attributes:H(H({},c.attributes),d.path)},h))]},m={tag:"g",attributes:H({},d.outer),children:[g]},y="mask-".concat(s||Os()),v="clip-".concat(s||Os()),b={tag:"mask",attributes:H(H({},Nc),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,m]},A={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:QE(f)},b]};return n.push(A,{tag:"rect",attributes:H({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(y,")")},Nc)}),{children:n,attributes:r}}}},ZE={provides(e){let t=!1;Mr.matchMedia&&(t=Mr.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}}}},JE={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},XE=[H_,DE,FE,jE,zE,qE,VE,YE,GE,ZE,JE];cE(XE,{mixoutsTo:Wt});Wt.noAuto;Wt.config;Wt.library;Wt.dom;const Qu=Wt.parse;Wt.findIconDefinition;Wt.toHtml;const eS=Wt.icon;Wt.layer;Wt.text;Wt.counter;function Lh(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 _r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lh(Object(n),!0).forEach(function(r){li(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ol(e){"@babel/helpers - typeof";return ol=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},ol(e)}function li(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tS(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function fv(e,t){if(e==null)return{};var n=tS(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gu(e){return nS(e)||rS(e)||oS(e)||iS()}function nS(e){if(Array.isArray(e))return Zu(e)}function rS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oS(e,t){if(e){if(typeof e=="string")return Zu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zu(e,t)}}function Zu(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}function iS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
588
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sS(e){var t,n=e.beat,r=e.fade,o=e.beatFade,i=e.bounce,s=e.shake,a=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,f=e.pulse,d=e.fixedWidth,p=e.inverse,h=e.border,g=e.listItem,m=e.flip,y=e.size,v=e.rotation,b=e.pull,A=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":s,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":f,"fa-fw":d,"fa-inverse":p,"fa-border":h,"fa-li":g,"fa-flip":m===!0,"fa-flip-horizontal":m==="horizontal"||m==="both","fa-flip-vertical":m==="vertical"||m==="both"},li(t,"fa-".concat(y),typeof y<"u"&&y!==null),li(t,"fa-rotate-".concat(v),typeof v<"u"&&v!==null&&v!==0),li(t,"fa-pull-".concat(b),typeof b<"u"&&b!==null),li(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(A).map(function(w){return A[w]?w:null}).filter(function(w){return w})}function aS(e){return e=e-0,e===e}function dv(e){return aS(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var lS=["style"];function cS(e){return e.charAt(0).toUpperCase()+e.slice(1)}function uS(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=dv(n.slice(0,r)),i=n.slice(r+1).trim();return o.startsWith("webkit")?t[cS(o)]=i:t[o]=i,t},{})}function pv(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(l){return pv(e,l)}),o=Object.keys(t.attributes||{}).reduce(function(l,c){var u=t.attributes[c];switch(c){case"class":l.attrs.className=u,delete t.attributes.class;break;case"style":l.attrs.style=uS(u);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=u:l.attrs[dv(c)]=u}return l},{attrs:{}}),i=n.style,s=i===void 0?{}:i,a=fv(n,lS);return o.attrs.style=_r(_r({},o.attrs.style),s),e.apply(void 0,[t.tag,_r(_r({},o.attrs),a)].concat(Gu(r)))}var hv=!1;try{hv=process.env.NODE_ENV==="production"}catch{}function fS(){if(!hv&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Rh(e){if(e&&ol(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Qu.icon)return Qu.icon(e);if(e===null)return null;if(e&&ol(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 Oc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?li({},e,t):{}}var dS=["forwardedRef"];function be(e){var t=e.forwardedRef,n=fv(e,dS),r=n.icon,o=n.mask,i=n.symbol,s=n.className,a=n.title,l=n.titleId,c=n.maskId,u=Rh(r),f=Oc("classes",[].concat(Gu(sS(n)),Gu(s.split(" ")))),d=Oc("transform",typeof n.transform=="string"?Qu.transform(n.transform):n.transform),p=Oc("mask",Rh(o)),h=eS(u,_r(_r(_r(_r({},f),d),p),{},{symbol:i,title:a,titleId:l,maskId:c}));if(!h)return fS("Could not find icon",u),null;var g=h.abstract,m={ref:t};return Object.keys(n).forEach(function(y){be.defaultProps.hasOwnProperty(y)||(m[y]=n[y])}),pS(g[0],m)}be.displayName="FontAwesomeIcon";be.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]),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};be.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,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};var pS=pv.bind(null,T.createElement);const hS=async e=>await(await fetch(`${nr}/playbook-task-details`,{method:"POST",body:JSON.stringify(e)})).json(),mS=({taskId:e,playbookId:t,enabled:n})=>{const{queryClient:r}=Fr(),o=async()=>hS({taskId:+e,templateId:t.toString()}),i=["taskDetails",+e,t],s=_l({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}},gS=({buttons:e,onButtonClick:t,disabled:n})=>x.jsx("div",{className:"flex items-center justify-end",children:e.map(r=>x.jsx(je,{size:"smallCollapse",className:"ml-2",disabled:n,onClick:()=>{t(r)},children:Pw[r]},r))});function Dh(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Pu(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function is(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Pc(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 yS(e){return e.matches("html,body")}function Fh(e){return(e==null?void 0:e.ownerDocument)||document}function ja(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,...ja(e,o.id,n)])}function vS(e){return"nativeEvent"in e}var bS=typeof document<"u",xS=function(){},Ju=bS?T.useLayoutEffect:xS;const wS={...C},AS=wS.useInsertionEffect,CS=AS||(e=>e());function ri(e){const t=C.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return CS(()=>{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 _S="data-floating-ui-focusable",jh="active",zh="selected",ES={...C};let $h=!1,SS=0;const Uh=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+SS++;function kS(){const[e,t]=C.useState(()=>$h?Uh():void 0);return Ju(()=>{e==null&&t(Uh())},[]),C.useEffect(()=>{$h=!0},[]),e}const TS=ES.useId,NS=TS||kS;let Xu;process.env.NODE_ENV!=="production"&&(Xu=new Set);function OS(){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=Xu)!=null&&e.has(o))){var i;(i=Xu)==null||i.add(o),console.error(o)}}function PS(){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 MS=C.createContext(null),IS=C.createContext(null),LS=()=>{var e;return((e=C.useContext(MS))==null?void 0:e.id)||null},mv=()=>C.useContext(IS);function RS(e){return"data-floating-ui-"+e}const DS={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},FS={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Bh=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 gv(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:f="pointerdown",ancestorScroll:d=!1,bubbles:p,capture:h}=t,g=mv(),m=ri(typeof l=="function"?l:()=>!1),y=typeof l=="function"?m:l,v=C.useRef(!1),{escapeKey:b,outsidePress:A}=Bh(p),{escapeKey:w,outsidePress:_}=Bh(h),E=C.useRef(!1),S=ri(z=>{var Y;if(!n||!s||!a||z.key!=="Escape"||E.current)return;const Q=(Y=i.current.floatingContext)==null?void 0:Y.nodeId,oe=g?ja(g.nodesRef.current,Q):[];if(!b&&(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,vS(z)?z.nativeEvent:z,"escape-key")}),O=ri(z=>{var Y;const Q=()=>{var oe;S(z),(oe=is(z))==null||oe.removeEventListener("keydown",Q)};(Y=is(z))==null||Y.addEventListener("keydown",Q)}),P=ri(z=>{var Y;const Q=i.current.insideReactTree;i.current.insideReactTree=!1;const oe=v.current;if(v.current=!1,c==="click"&&oe||Q||typeof y=="function"&&!y(z))return;const M=is(z),re="["+RS("inert")+"]",L=Fh(o.floating).querySelectorAll(re);let F=He(M)?M:null;for(;F&&!Gn(F);){const V=Jn(F);if(Gn(V)||!He(V))break;F=V}if(L.length&&He(M)&&!yS(M)&&!Dh(M,o.floating)&&Array.from(L).every(V=>!Dh(F,V)))return;if(cn(M)&&j){const V=Gn(M),ee=Qt(M),te=/auto|scroll/,he=V||te.test(ee.overflowX),ye=V||te.test(ee.overflowY),me=he&&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=me&&z.offsetY>M.clientHeight;if(qe||zt)return}const K=(Y=i.current.floatingContext)==null?void 0:Y.nodeId,B=g&&ja(g.nodesRef.current,K).some(V=>{var ee;return Pc(z,(ee=V.context)==null?void 0:ee.elements.floating)});if(Pc(z,o.floating)||Pc(z,o.domReference)||B)return;const J=g?ja(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=ri(z=>{var Y;const Q=()=>{var oe;P(z),(oe=is(z))==null||oe.removeEventListener(c,Q)};(Y=is(z))==null||Y.addEventListener(c,Q)});C.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=b,i.current.__outsidePressBubbles=A;let z=-1;function Y(L){r(!1,L,"ancestor-scroll")}function Q(){window.clearTimeout(z),E.current=!0}function oe(){z=window.setTimeout(()=>{E.current=!1},Il()?5:0)}const M=Fh(o.floating);a&&(M.addEventListener("keydown",w?O:S,w),M.addEventListener("compositionstart",Q),M.addEventListener("compositionend",oe)),y&&M.addEventListener(c,_?I:P,_);let re=[];return d&&(He(o.domReference)&&(re=di(o.domReference)),He(o.floating)&&(re=re.concat(di(o.floating))),!He(o.reference)&&o.reference&&o.reference.contextElement&&(re=re.concat(di(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",w?O:S,w),M.removeEventListener("compositionstart",Q),M.removeEventListener("compositionend",oe)),y&&M.removeEventListener(c,_?I:P,_),re.forEach(L=>{L.removeEventListener("scroll",Y)}),window.clearTimeout(z)}},[i,o,a,y,c,n,r,d,s,b,A,S,w,O,P,_,I]),C.useEffect(()=>{i.current.insideReactTree=!1},[i,y,c]);const W=C.useMemo(()=>({onKeyDown:S,...u&&{[DS[f]]:z=>{r(!1,z.nativeEvent,"reference-press")},...f!=="click"&&{onClick(z){r(!1,z.nativeEvent,"reference-press")}}}}),[S,r,u,f]),j=C.useMemo(()=>({onKeyDown:S,onMouseDown(){v.current=!0},onMouseUp(){v.current=!0},[FS[c]]:()=>{i.current.insideReactTree=!0}}),[S,c,i]);return C.useMemo(()=>s?{reference:W,floating:j}:{},[s,W,j])}function jS(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=NS(),i=C.useRef({}),[s]=C.useState(()=>PS()),a=LS()!=null;if(process.env.NODE_ENV!=="production"){const p=r.reference;p&&!He(p)&&OS("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,c]=C.useState(r.reference),u=ri((p,h,g)=>{i.current.openEvent=p?h:void 0,s.emit("openchange",{open:p,event:h,reason:g,nested:a}),n==null||n(p,h,g)}),f=C.useMemo(()=>({setPositionReference:c}),[]),d=C.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return C.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:d,events:s,floatingId:o,refs:f}),[t,u,d,s,o,f])}function yv(e){e===void 0&&(e={});const{nodeId:t}=e,n=jS({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=C.useState(null),[a,l]=C.useState(null),u=(o==null?void 0:o.domReference)||i,f=C.useRef(null),d=mv();Ju(()=>{u&&(f.current=u)},[u]);const p=lC({...e,elements:{...o,...a&&{reference:a}}}),h=C.useCallback(b=>{const A=He(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),getClientRects:()=>b.getClientRects(),contextElement:b}:b;l(A),p.refs.setReference(A)},[p.refs]),g=C.useCallback(b=>{(He(b)||b===null)&&(f.current=b,s(b)),(He(p.refs.reference.current)||p.refs.reference.current===null||b!==null&&!He(b))&&p.refs.setReference(b)},[p.refs]),m=C.useMemo(()=>({...p.refs,setReference:g,setPositionReference:h,domReference:f}),[p.refs,g,h]),y=C.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),v=C.useMemo(()=>({...p,...r,refs:m,elements:y,nodeId:t}),[p,m,y,t,r]);return Ju(()=>{r.dataRef.current.floatingContext=v;const b=d==null?void 0:d.nodesRef.current.find(A=>A.id===t);b&&(b.context=v)}),C.useMemo(()=>({...p,context:v,refs:m,elements:y}),[p,m,y,v])}function Mc(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[jh]:s,[zh]:a,...l}=e;i=l}return{...n==="floating"&&{tabIndex:-1,[_S]:""},...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(l=>{let[c,u]=l;if(!(o&&[jh,zh].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof u=="function"){var f;(f=r.get(c))==null||f.push(u),s[c]=function(){for(var d,p=arguments.length,h=new Array(p),g=0;g<p;g++)h[g]=arguments[g];return(d=r.get(c))==null?void 0:d.map(m=>m(...h)).find(m=>m!==void 0)}}}else s[c]=u}),s),{})}}function vv(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=>Mc(a,e,"reference"),t),i=C.useCallback(a=>Mc(a,e,"floating"),n),s=C.useCallback(a=>Mc(a,e,"item"),r);return C.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}const zS={white:"bg-white text-dark-300 border border-gray-300",primary:"bg-primary-600",secondary:"bg-secondary-500",success:"bg-success-600",info:"bg-info-500",warning:"bg-warning-500 text-gray-800",danger:"bg-danger-500",steel:"bg-steel-500",orange:"bg-orange-500",purple:"bg-purple-500",grayDark:"bg-gray-900",grayLight:"bg-gray-100 text-gray-800"},$S={white:"text-white border border-white",primary:"text-primary-600 border border-primary-600",secondary:"text-secondary-500 border border-secondary-500",success:"text-success-600 border border-success-600",info:"text-info-500 border border-info-500",warning:"text-warning-500 border border-warning-500",danger:"text-danger-500 border border-danger-500",steel:"text-steel-500 border border-steel-500",orange:"text-orange-500 border border-orange-500",purple:"text-purple-500 border border-purple-500",grayDark:"text-gray-700 border border-gray-700",grayLight:"text-gray-500 border border-gray-100"},US={white:"text-dark-300",primary:"text-white",secondary:"text-white",success:"text-white",info:"text-black",warning:"text-gray-800",danger:"text-white",steel:"text-white",orange:"text-black",purple:"text-white",grayDark:"text-white",grayLight:"text-gray-800"},BS={normal:"rounded",pill:"rounded-pill"},WS={big:"h-[24px] leading-[24px] text-md px-1",medium:"h-[22px] leading-[22px] text-sm px-[2px]",small:"h-[18px] leading-[18px] text-xs px-[2px]"},bv=({category:e="solid",color:t="primary",roundness:n="normal",size:r="medium",textClassName:o="uppercase",children:i,className:s,...a})=>{const l=T.useMemo(()=>US[t]??"text-white",[t]),c=T.useMemo(()=>fi(l,e==="outline"?$S[t]:zS[t],BS[n],WS[r]),[l,e,t,r,n]);return x.jsx("div",{className:fi("ui-badge flex items-center font-bold",c,s),style:a==null?void 0:a.style,"data-testid":"badge","data-category":e,"data-color":t,...a,children:x.jsx("p",{className:fi("mx-1",o),children:i})})},KS={default:"text-secondary-600 border-secondary-600",primary:"text-primary-600 border-primary-600",success:"text-success-600 border-success-600"},HS=({transition:e,onClick:t})=>x.jsxs("div",{className:Ee("py-1 px-3 space-x-2 flex items-center hover:bg-gray-100 cursor-pointer",e.disabled&&"opacity-50 cursor-not-allowed hover:bg-transparent"),onClick:n=>{e.disabled||(n.stopPropagation(),t())},children:[x.jsx("span",{className:"text-base text-dark flex-1",children:e.action}),x.jsx(be,{icon:WC,className:"text-gray-400 size-4"}),x.jsx(bv,{category:"outline",color:e.color,children:e.to})]}),qS=({title:e,variant:t="default",transitions:n,verificationType:r,taskVerified:o,onClick:i})=>{const[s,a]=T.useState(!1),{refs:l,floatingStyles:c,context:u}=yv({strategy:"fixed",placement:"bottom-end",open:s,onOpenChange:a}),f=gv(u,{outsidePress:!0}),{getReferenceProps:d,getFloatingProps:p}=vv([f]);return x.jsxs(x.Fragment,{children:[x.jsxs("div",{onClick:n!=null&&n.length?()=>a(h=>!h):void 0,ref:l.setReference,className:Ee("px-1 uppercase border rounded-sm inline-flex items-center space-x-1 flex-shrink-0 whitespace-nowrap",n.length?"cursor-pointer":"pointer-events-none",KS[t]),...d(),children:[r===Un.COMMENT&&x.jsx(be,{icon:o?_y:jC,className:Ee("size-4",e==="In progress"&&(o?"text-success-600":"text-danger-600"))}),x.jsx("span",{className:"text-sm font-bold",children:e}),n.length>0?x.jsx(be,{icon:Ty,className:"size-4"}):x.jsx(x.Fragment,{})]}),s&&n.length&&x.jsx("div",{ref:l.setFloating,style:c,className:Ee("border border-gray-200 py-1.5 rounded-sm min-w-[172px] bg-white shadow-dark/50"),...p(),children:n.map(h=>x.jsx(HS,{transition:h,onClick:()=>{i==null||i(h.id),a(!1)}},h.id))})]})},Wh=({description:e})=>{const t=T.useMemo(()=>{const n=/https:\/\/[^/]+\/api\/files/g,r=e==null?void 0:e.replaceAll(n,`${Hp}`),o=r==null?void 0:r.replaceAll('src="/api/files',`src="${Hp}`),a=new DOMParser().parseFromString(o,"text/html").querySelectorAll("img");return a==null||a.forEach(l=>{const c=l.getAttribute("src");c&&(new Image().src=c)}),o},[e]);return T.useEffect(()=>{},[t]),x.jsx("div",{className:"flex flex-col gap-4",children:x.jsx("div",{style:{display:"unset"},className:"lexical-view-mode",dangerouslySetInnerHTML:{__html:t}})})},VS={SEQUENTIAL:"Sequential"},YS={[Be.IN_REVIEW]:"In Review"},QS={[Be.OPEN]:"bg-secondary-500",[Be.IN_PROGRESS]:"bg-primary-600",[Be.IN_REVIEW]:"bg-success-600",[Be.COMPLETED]:"bg-success-600"},GS=({playbookType:e,status:t,step:n,isSelected:r,onSelect:o})=>x.jsx("div",{className:Ss("flex flex-col items-center justify-center",r?"bg-[#FFE600]":QS[t],o&&"cursor-pointer"),onClick:i=>{i.stopPropagation(),o==null||o(i.shiftKey)},children:x.jsx("span",{className:Ss("text-orientation-mixed w-[27px] flex items-center whitespace-nowrap px-2 text-sm font-bold [writing-mode:vertical-lr]",r?"text-black":"text-white"),children:e===VS.SEQUENTIAL?`STEP ${n}`:(YS[t]||t).toUpperCase()})}),ZS={[Be.OPEN]:"secondary",[Be.IN_PROGRESS]:"primary",[Be.IN_REVIEW]:"success",[Be.COMPLETED]:"success"},JS=({status:e})=>x.jsx(bv,{category:"outline",color:ZS[e],children:e}),dt={INFO:"Info",WARNING:"Warning",DANGER:"Danger",SUCCESS:"Success"};/*!
|
|
589
589
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
590
590
|
* License - https://fontawesome.com/license (Commercial License)
|
|
591
591
|
* Copyright 2024 Fonticons, Inc.
|
|
592
|
-
*/const X4={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"]},eS={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"]},tS={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"]},nS={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"]},rS={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"]},oS={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"]},iS={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"]},sS={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"]},aS={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"]},lS={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"]},cS={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"]},uS={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"]},fS={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"]},dS={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"]},Hh=({onMouseOver:e,onClick:t,commentsCount:n=0,commentType:r})=>{var s,a;const o=n>0,i={[dt.INFO]:{icon:PC,color:"text-primary-600 hover:text-primary-600"},[dt.WARNING]:{icon:XC,color:"text-warning-600 hover:text-warning-600"},[dt.DANGER]:{icon:Rl,color:"text-danger-600 hover:text-danger-600"},[dt.SUCCESS]:{icon:Oy,color:"text-success-600 hover:text-success-600"}};return x.jsxs(je,{size:"smallCollapse",category:"link",onMouseOver:e,onClick:t,className:Ee("relative",(s=i[r])==null?void 0:s.color),title:"View comments",children:[x.jsx("div",{className:"relative flex items-center justify-center",children:o?x.jsxs(x.Fragment,{children:[x.jsx(ve,{icon:OC,size:"lg"}),x.jsx(ve,{icon:(a=i[r])==null?void 0:a.icon,className:"font-bold absolute left-1/2 -translate-x-1/2 top-0.5",size:"xs",color:"white"})]}):x.jsx(ve,{icon:X4,size:"lg"})}),o&&x.jsx("span",{className:"absolute top-0.5 -right-0 flex h-3 w-3 items-center justify-center rounded-full bg-primary-600 text-[10px] text-white",children:n})]})},pS=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:xv,setPrototypeOf:qh,isFrozen:hS,getPrototypeOf:mS,getOwnPropertyDescriptor:gS}=Object;let{freeze:Nt,seal:Gt,create:Xu}=Object,{apply:ef,construct:tf}=typeof Reflect<"u"&&Reflect;Nt||(Nt=function(t){return t});Gt||(Gt=function(t){return t});ef||(ef=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)});tf||(tf=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 xa=Ot(Array.prototype.forEach),yS=Ot(Array.prototype.lastIndexOf),Vh=Ot(Array.prototype.pop),os=Ot(Array.prototype.push),vS=Ot(Array.prototype.splice),ja=Ot(String.prototype.toLowerCase),Mc=Ot(String.prototype.toString),Ic=Ot(String.prototype.match),is=Ot(String.prototype.replace),bS=Ot(String.prototype.indexOf),xS=Ot(String.prototype.trim),tn=Ot(Object.prototype.hasOwnProperty),Ct=Ot(RegExp.prototype.test),ss=wS(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 ef(e,t,r)}}function wS(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return tf(e,n)}}function Ce(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ja;qh&&qh(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(hS(t)||(t[r]=i),o=i)}e[o]=!0}return e}function AS(e){for(let t=0;t<e.length;t++)tn(e,t)||(e[t]=null);return e}function hn(e){const t=Xu(null);for(const[n,r]of xv(e))tn(e,n)&&(Array.isArray(r)?t[n]=AS(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=hn(r):t[n]=r);return t}function as(e,t){for(;e!==null;){const r=gS(e,t);if(r){if(r.get)return Ot(r.get);if(typeof r.value=="function")return Ot(r.value)}e=mS(e)}function n(){return null}return n}const Yh=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"]),Lc=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"]),Rc=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"]),CS=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"]),Dc=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"]),_S=Nt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qh=Nt(["#text"]),Gh=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"]),Fc=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"]),Zh=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"]),wa=Nt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ES=Gt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),SS=Gt(/<%[\w\W]*|[\w\W]*%>/gm),kS=Gt(/\$\{[\w\W]*/gm),TS=Gt(/^data-[\-\w.\u00B7-\uFFFF]+$/),NS=Gt(/^aria-[\-\w]+$/),wv=Gt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),OS=Gt(/^(?:\w+script|data):/i),PS=Gt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Av=Gt(/^html$/i),MS=Gt(/^[a-z][.\w]*(-[.\w]+)+$/i);var Jh=Object.freeze({__proto__:null,ARIA_ATTR:NS,ATTR_WHITESPACE:PS,CUSTOM_ELEMENT:MS,DATA_ATTR:TS,DOCTYPE_NAME:Av,ERB_EXPR:SS,IS_ALLOWED_URI:wv,IS_SCRIPT_OR_DATA:OS,MUSTACHE_EXPR:ES,TMPLIT_EXPR:kS});const ls={element:1,text:3,progressingInstruction:7,comment:8,document:9},IS=function(){return typeof window>"u"?null:window},LS=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}},Xh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Cv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:IS();const t=de=>Cv(de);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==ls.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:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:d,trustedTypes:p}=e,h=l.prototype,g=as(h,"cloneNode"),m=as(h,"remove"),y=as(h,"nextSibling"),v=as(h,"childNodes"),b=as(h,"parentNode");if(typeof s=="function"){const de=n.createElement("template");de.content&&de.content.ownerDocument&&(n=de.content.ownerDocument)}let A,w="";const{implementation:_,createNodeIterator:E,createDocumentFragment:S,getElementsByTagName:O}=n,{importNode:P}=r;let I=Xh();t.isSupported=typeof xv=="function"&&typeof b=="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}=Jh;let{IS_ALLOWED_URI:L}=Jh,F=null;const K=Ce({},[...Yh,...Lc,...Rc,...Dc,...Qh]);let B=null;const J=Ce({},[...Gh,...Fc,...Zh,...wa]);let V=Object.seal(Xu(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 he=Object.seal(Xu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ye=!0,me=!0,ze=!1,G=!0,qe=!1,zt=!0,ht=!1,Ko=!1,es=!1,Mn=!1,Hr=!1,Ho=!1,se=!0,De=!1;const lt="user-content-";let Mt=!0,et=!1,Kt={},At=null;const cr=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 ur=Ce({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vr="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",In="http://www.w3.org/1999/xhtml";let Vo=In,ic=!1,sc=null;const p1=Ce({},[Vr,fr,In],Mc);let aa=Ce({},["mi","mo","mn","ms","mtext"]),la=Ce({},["annotation-xml"]);const h1=Ce({},["title","style","font","a","script"]);let ts=null;const m1=["application/xhtml+xml","text/html"],g1="text/html";let Qe=null,Yo=null;const y1=n.createElement("form"),fp=function(N){return N instanceof RegExp||N instanceof Function},ac=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Yo&&Yo===N)){if((!N||typeof N!="object")&&(N={}),N=hn(N),ts=m1.indexOf(N.PARSER_MEDIA_TYPE)===-1?g1:N.PARSER_MEDIA_TYPE,Qe=ts==="application/xhtml+xml"?Mc:ja,F=tn(N,"ALLOWED_TAGS")?Ce({},N.ALLOWED_TAGS,Qe):K,B=tn(N,"ALLOWED_ATTR")?Ce({},N.ALLOWED_ATTR,Qe):J,sc=tn(N,"ALLOWED_NAMESPACES")?Ce({},N.ALLOWED_NAMESPACES,Mc):p1,qr=tn(N,"ADD_URI_SAFE_ATTR")?Ce(hn(ur),N.ADD_URI_SAFE_ATTR,Qe):ur,qo=tn(N,"ADD_DATA_URI_TAGS")?Ce(hn($t),N.ADD_DATA_URI_TAGS,Qe):$t,At=tn(N,"FORBID_CONTENTS")?Ce({},N.FORBID_CONTENTS,Qe):cr,ee=tn(N,"FORBID_TAGS")?Ce({},N.FORBID_TAGS,Qe):hn({}),te=tn(N,"FORBID_ATTR")?Ce({},N.FORBID_ATTR,Qe):hn({}),Kt=tn(N,"USE_PROFILES")?N.USE_PROFILES:!1,ye=N.ALLOW_ARIA_ATTR!==!1,me=N.ALLOW_DATA_ATTR!==!1,ze=N.ALLOW_UNKNOWN_PROTOCOLS||!1,G=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,qe=N.SAFE_FOR_TEMPLATES||!1,zt=N.SAFE_FOR_XML!==!1,ht=N.WHOLE_DOCUMENT||!1,Mn=N.RETURN_DOM||!1,Hr=N.RETURN_DOM_FRAGMENT||!1,Ho=N.RETURN_TRUSTED_TYPE||!1,es=N.FORCE_BODY||!1,se=N.SANITIZE_DOM!==!1,De=N.SANITIZE_NAMED_PROPS||!1,Mt=N.KEEP_CONTENT!==!1,et=N.IN_PLACE||!1,L=N.ALLOWED_URI_REGEXP||wv,Vo=N.NAMESPACE||In,aa=N.MATHML_TEXT_INTEGRATION_POINTS||aa,la=N.HTML_INTEGRATION_POINTS||la,V=N.CUSTOM_ELEMENT_HANDLING||{},N.CUSTOM_ELEMENT_HANDLING&&fp(N.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=N.CUSTOM_ELEMENT_HANDLING.tagNameCheck),N.CUSTOM_ELEMENT_HANDLING&&fp(N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),qe&&(me=!1),Hr&&(Mn=!0),Kt&&(F=Ce({},Qh),B=[],Kt.html===!0&&(Ce(F,Yh),Ce(B,Gh)),Kt.svg===!0&&(Ce(F,Lc),Ce(B,Fc),Ce(B,wa)),Kt.svgFilters===!0&&(Ce(F,Rc),Ce(B,Fc),Ce(B,wa)),Kt.mathMl===!0&&(Ce(F,Dc),Ce(B,Zh),Ce(B,wa))),N.ADD_TAGS&&(typeof N.ADD_TAGS=="function"?he.tagCheck=N.ADD_TAGS:(F===K&&(F=hn(F)),Ce(F,N.ADD_TAGS,Qe))),N.ADD_ATTR&&(typeof N.ADD_ATTR=="function"?he.attributeCheck=N.ADD_ATTR:(B===J&&(B=hn(B)),Ce(B,N.ADD_ATTR,Qe))),N.ADD_URI_SAFE_ATTR&&Ce(qr,N.ADD_URI_SAFE_ATTR,Qe),N.FORBID_CONTENTS&&(At===cr&&(At=hn(At)),Ce(At,N.FORBID_CONTENTS,Qe)),N.ADD_FORBID_CONTENTS&&(At===cr&&(At=hn(At)),Ce(At,N.ADD_FORBID_CONTENTS,Qe)),Mt&&(F["#text"]=!0),ht&&Ce(F,["html","head","body"]),F.table&&(Ce(F,["tbody"]),delete ee.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw ss('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ss('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=N.TRUSTED_TYPES_POLICY,w=A.createHTML("")}else A===void 0&&(A=LS(p,o)),A!==null&&typeof w=="string"&&(w=A.createHTML(""));Nt&&Nt(N),Yo=N}},dp=Ce({},[...Lc,...Rc,...CS]),pp=Ce({},[...Dc,..._S]),v1=function(N){let q=b(N);(!q||!q.tagName)&&(q={namespaceURI:Vo,tagName:"template"});const ce=ja(N.tagName),Ue=ja(q.tagName);return sc[N.namespaceURI]?N.namespaceURI===fr?q.namespaceURI===In?ce==="svg":q.namespaceURI===Vr?ce==="svg"&&(Ue==="annotation-xml"||aa[Ue]):!!dp[ce]:N.namespaceURI===Vr?q.namespaceURI===In?ce==="math":q.namespaceURI===fr?ce==="math"&&la[Ue]:!!pp[ce]:N.namespaceURI===In?q.namespaceURI===fr&&!la[Ue]||q.namespaceURI===Vr&&!aa[Ue]?!1:!pp[ce]&&(h1[ce]||!dp[ce]):!!(ts==="application/xhtml+xml"&&sc[N.namespaceURI]):!1},pn=function(N){os(t.removed,{element:N});try{b(N).removeChild(N)}catch{m(N)}},Yr=function(N,q){try{os(t.removed,{attribute:q.getAttributeNode(N),from:q})}catch{os(t.removed,{attribute:null,from:q})}if(q.removeAttribute(N),N==="is")if(Mn||Hr)try{pn(q)}catch{}else try{q.setAttribute(N,"")}catch{}},hp=function(N){let q=null,ce=null;if(es)N="<remove></remove>"+N;else{const Ve=Ic(N,/^[\r\n\t ]+/);ce=Ve&&Ve[0]}ts==="application/xhtml+xml"&&Vo===In&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Ue=A?A.createHTML(N):N;if(Vo===In)try{q=new d().parseFromString(Ue,ts)}catch{}if(!q||!q.documentElement){q=_.createDocument(Vo,"template",null);try{q.documentElement.innerHTML=ic?w:Ue}catch{}}const mt=q.body||q.documentElement;return N&&ce&&mt.insertBefore(n.createTextNode(ce),mt.childNodes[0]||null),Vo===In?O.call(q,ht?"html":"body")[0]:ht?q.documentElement:mt},mp=function(N){return E.call(N.ownerDocument||N,N,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},lc=function(N){return N instanceof f&&(typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||!(N.attributes instanceof u)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function")},gp=function(N){return typeof a=="function"&&N instanceof a};function Ln(de,N,q){xa(de,ce=>{ce.call(t,N,q,Yo)})}const yp=function(N){let q=null;if(Ln(I.beforeSanitizeElements,N,null),lc(N))return pn(N),!0;const ce=Qe(N.nodeName);if(Ln(I.uponSanitizeElement,N,{tagName:ce,allowedTags:F}),zt&&N.hasChildNodes()&&!gp(N.firstElementChild)&&Ct(/<[/\w!]/g,N.innerHTML)&&Ct(/<[/\w!]/g,N.textContent)||N.nodeType===ls.progressingInstruction||zt&&N.nodeType===ls.comment&&Ct(/<[/\w]/g,N.data))return pn(N),!0;if(!(he.tagCheck instanceof Function&&he.tagCheck(ce))&&(!F[ce]||ee[ce])){if(!ee[ce]&&bp(ce)&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,ce)||V.tagNameCheck instanceof Function&&V.tagNameCheck(ce)))return!1;if(Mt&&!At[ce]){const Ue=b(N)||N.parentNode,mt=v(N)||N.childNodes;if(mt&&Ue){const Ve=mt.length;for(let It=Ve-1;It>=0;--It){const Rn=g(mt[It],!0);Rn.__removalCount=(N.__removalCount||0)+1,Ue.insertBefore(Rn,y(N))}}}return pn(N),!0}return N instanceof l&&!v1(N)||(ce==="noscript"||ce==="noembed"||ce==="noframes")&&Ct(/<\/no(script|embed|frames)/i,N.innerHTML)?(pn(N),!0):(qe&&N.nodeType===ls.text&&(q=N.textContent,xa([W,j,z],Ue=>{q=is(q,Ue," ")}),N.textContent!==q&&(os(t.removed,{element:N.cloneNode()}),N.textContent=q)),Ln(I.afterSanitizeElements,N,null),!1)},vp=function(N,q,ce){if(se&&(q==="id"||q==="name")&&(ce in n||ce in y1))return!1;if(!(me&&!te[q]&&Ct(Y,q))){if(!(ye&&Ct(Q,q))){if(!(he.attributeCheck instanceof Function&&he.attributeCheck(q,N))){if(!B[q]||te[q]){if(!(bp(N)&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,N)||V.tagNameCheck instanceof Function&&V.tagNameCheck(N))&&(V.attributeNameCheck instanceof RegExp&&Ct(V.attributeNameCheck,q)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(q,N))||q==="is"&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,ce)||V.tagNameCheck instanceof Function&&V.tagNameCheck(ce))))return!1}else if(!qr[q]){if(!Ct(L,is(ce,M,""))){if(!((q==="src"||q==="xlink:href"||q==="href")&&N!=="script"&&bS(ce,"data:")===0&&qo[N])){if(!(ze&&!Ct(oe,is(ce,M,"")))){if(ce)return!1}}}}}}}return!0},bp=function(N){return N!=="annotation-xml"&&Ic(N,re)},xp=function(N){Ln(I.beforeSanitizeAttributes,N,null);const{attributes:q}=N;if(!q||lc(N))return;const ce={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let Ue=q.length;for(;Ue--;){const mt=q[Ue],{name:Ve,namespaceURI:It,value:Rn}=mt,Qo=Qe(Ve),cc=Rn;let ct=Ve==="value"?cc:xS(cc);if(ce.attrName=Qo,ce.attrValue=ct,ce.keepAttr=!0,ce.forceKeepAttr=void 0,Ln(I.uponSanitizeAttribute,N,ce),ct=ce.attrValue,De&&(Qo==="id"||Qo==="name")&&(Yr(Ve,N),ct=lt+ct),zt&&Ct(/((--!?|])>)|<\/(style|title|textarea)/i,ct)){Yr(Ve,N);continue}if(Qo==="attributename"&&Ic(ct,"href")){Yr(Ve,N);continue}if(ce.forceKeepAttr)continue;if(!ce.keepAttr){Yr(Ve,N);continue}if(!G&&Ct(/\/>/i,ct)){Yr(Ve,N);continue}qe&&xa([W,j,z],Ap=>{ct=is(ct,Ap," ")});const wp=Qe(N.nodeName);if(!vp(wp,Qo,ct)){Yr(Ve,N);continue}if(A&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!It)switch(p.getAttributeType(wp,Qo)){case"TrustedHTML":{ct=A.createHTML(ct);break}case"TrustedScriptURL":{ct=A.createScriptURL(ct);break}}if(ct!==cc)try{It?N.setAttributeNS(It,Ve,ct):N.setAttribute(Ve,ct),lc(N)?pn(N):Vh(t.removed)}catch{Yr(Ve,N)}}Ln(I.afterSanitizeAttributes,N,null)},b1=function de(N){let q=null;const ce=mp(N);for(Ln(I.beforeSanitizeShadowDOM,N,null);q=ce.nextNode();)Ln(I.uponSanitizeShadowNode,q,null),yp(q),xp(q),q.content instanceof i&&de(q.content);Ln(I.afterSanitizeShadowDOM,N,null)};return t.sanitize=function(de){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,ce=null,Ue=null,mt=null;if(ic=!de,ic&&(de="<!-->"),typeof de!="string"&&!gp(de))if(typeof de.toString=="function"){if(de=de.toString(),typeof de!="string")throw ss("dirty is not a string, aborting")}else throw ss("toString is not a function");if(!t.isSupported)return de;if(Ko||ac(N),t.removed=[],typeof de=="string"&&(et=!1),et){if(de.nodeName){const Rn=Qe(de.nodeName);if(!F[Rn]||ee[Rn])throw ss("root node is forbidden and cannot be sanitized in-place")}}else if(de instanceof a)q=hp("<!---->"),ce=q.ownerDocument.importNode(de,!0),ce.nodeType===ls.element&&ce.nodeName==="BODY"||ce.nodeName==="HTML"?q=ce:q.appendChild(ce);else{if(!Mn&&!qe&&!ht&&de.indexOf("<")===-1)return A&&Ho?A.createHTML(de):de;if(q=hp(de),!q)return Mn?null:Ho?w:""}q&&es&&pn(q.firstChild);const Ve=mp(et?de:q);for(;Ue=Ve.nextNode();)yp(Ue),xp(Ue),Ue.content instanceof i&&b1(Ue.content);if(et)return de;if(Mn){if(Hr)for(mt=S.call(q.ownerDocument);q.firstChild;)mt.appendChild(q.firstChild);else mt=q;return(B.shadowroot||B.shadowrootmode)&&(mt=P.call(r,mt,!0)),mt}let It=ht?q.outerHTML:q.innerHTML;return ht&&F["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&Ct(Av,q.ownerDocument.doctype.name)&&(It="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
|
|
593
|
-
`+It),qe&&xa([W,j,z],Rn=>{It=is(It,Rn," ")}),A&&Ho?A.createHTML(It):It},t.setConfig=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ac(de),Ko=!0},t.clearConfig=function(){Yo=null,Ko=!1},t.isValidAttribute=function(de,N,q){Yo||ac({});const ce=Qe(de),Ue=Qe(N);return vp(ce,Ue,q)},t.addHook=function(de,N){typeof N=="function"&&os(I[de],N)},t.removeHook=function(de,N){if(N!==void 0){const q=yS(I[de],N);return q===-1?void 0:vS(I[de],q,1)[0]}return Vh(I[de])},t.removeHooks=function(de){I[de]=[]},t.removeAllHooks=function(){I=Xh()},t}var nf=Cv();const RS="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",rf=e=>btoa(String.fromCharCode(...new TextEncoder().encode(e))),jc=e=>atob(e),DS=async({username:e,action:t,taskInstanceId:n,timezone:r,commentId:o,comment:i,commentType:s,hasAssets:a,taskVerified:l})=>{const c={...t?{action:t}:{},taskInstanceId:n,taskVerified:l,timezone:r,commentId:o,...i?{comment:rf(i)}:{},commentType:s,hasAssets:a},u=new Headers;return u.append("Content-Type","application/json"),u.append("username",e||""),await(await fetch(`${nr}/manage-comment`,{method:"POST",headers:u,body:JSON.stringify(c)})).json()},_v=e=>{switch(e==null?void 0:e.toLowerCase()){case"pdf":case"application/pdf":return YC;case"xls":case"xlt":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xml":case"xlam":case"xla":case"xlw":case"xlr":return ah;case"csv":return LC;case"dif":case"fods":case"numbers":case"numbers-tef":case"ods":case"ots":case"sxc":case"tsv":return ah;case"doc":case"docx":case"docm ":case"dot":case"dotx":case"dotm":case"docb":return zC;case"aba":case"md":case"odt":case"ott":case"rtf":case"txt":case"wps":return IC;case"odp":case"otp":case"pot":case"potm":case"potx":case"pps":case"ppsm":case"ppsx":case"ppt":case"pptm":case"pptx":return $C;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 VC;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 KC;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 HC;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 BC;default:return ZC}},FS=(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..."}}},za=e=>e.assetPath.includes("blob:")?e.assetPath:jS({assetPath:e.assetPath,mimeType:e.mimeType,fileName:e.name}),jS=({assetPath:e,mimeType:t,fileName:n})=>e?`${nr}/comment-attachment/?path=${e}&mimeType=${t}&fileName=${n}`:"",md=e=>e.startsWith("image/"),zS=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)}}),$S=(e,t)=>e.type?e.type:(t==null?void 0:t.toLowerCase())==="msg"?"application/vnd.ms-outlook":"application/octet-stream",US=async(e,t,n,r)=>{var h;const o=e.name.split(".").pop(),i=$S(e,o),s=await zS(e),a=((h=e.name)==null?void 0:h.split("."))||[];a.pop();const l=a.join("_").replaceAll(".","_")||`file_${Date.now()}.${o}`,c=s.length,u={assetType:"open_playbook_task_comment",commentId:t,fileEncoded:s,fileExtension:o,fileMimetype:i,fileName:l,fileSize:c,sequenceOrder:n},f=new Headers;return f.append("Content-Type","application/json"),f.append("username",r||""),await(await fetch(`${nr}/upload-comment-asset`,{method:"POST",headers:f,body:JSON.stringify(u)})).json()},em=async({taskInstanceId:e,username:t})=>{const n=new Headers;return n.append("Content-Type","application/json"),n.append("username",t),await(await fetch(`${nr}/comments/${e}`,{method:"GET",headers:n})).json()},of=(e,t)=>["comments",t,+e],BS=({taskInstanceId:e,enabled:t,username:n})=>{var a;const{queryClient:r}=Fr(),o={queryKey:of(e,n),queryFn:async()=>await em({taskInstanceId:e.toString(),username:n}),enabled:t&&!!n,staleTime:1/0},i=Cl(o,r),s=l=>{r.prefetchQuery({...o,queryKey:of(l,n),queryFn:async()=>await em({taskInstanceId:l.toString(),username:n})})};return{comments:((a=i.data)==null?void 0:a.taskComments)||[],...i,isLoading:i.isLoading,prefetchQuery:s}},WS=(e,t,n,r)=>{const o=of(t,r.author),i=e.getQueryData(o);e.setQueryData(o,{taskComments:[...(i==null?void 0:i.taskComments)||[],r],playbookInstanceId:n,taskInstanceId:t})},KS=(e,t,n)=>{const r=["comments",t],o=e.getQueryData(r);if(o){const i=o.taskComments.filter(s=>s.commentId!==n);e.setQueryData(r,{...o,taskComments:i})}},HS=(e,t,n)=>{const r=["comments",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})}},qS=({playbookInstanceId:e})=>{const{queryClient:t}=Fr(),n=Qf({mutationFn:async o=>{const{action:i,taskInstanceId:s,timezone:a,commentId:l,comment:c,commentType:u,hasAssets:f,attachments:d,username:p,taskVerified:h}=o,g=await DS({username:p,...i==="delete"?{action:i}:{},taskInstanceId:s,timezone:a,commentId:l,comment:c,commentType:u,hasAssets:f,taskVerified:h});return g.commentId&&f&&d&&await Promise.all(d.map(m=>US(m.originFile,g.commentId,m.sequenceOrder,p))),g},onMutate:async o=>{var f;const{action:i,taskInstanceId:s}=o,a=["comments",s],l=`temp-${crypto.randomUUID()}`,c=`temp-asset-${crypto.randomUUID()}`;await t.cancelQueries({queryKey:a});const u=t.getQueryData(a);return i==="delete"&&o.commentId&&KS(t,s,o.commentId),i==="add"&&WS(t,s,+e,{commentId:l,author:o.username,comment:rf(o.comment??""),createdDate:new Date().toISOString(),edited:!1,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentType:o.commentType||"Info",taskAssets:((f=o.attachments)==null?void 0:f.map(d=>({assetId:c,assetPath:d.url,mimeType:d.mimeType,name:d.name,url:d.url,uploading:!0})))??[]}),i==="edit"&&o.commentId&&HS(t,s,{author:o.username,comment:rf(o.comment??""),createdDate:new Date().toISOString(),edited:!0,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentId:o.commentId,commentType:o.commentType||"Info"}),{previousComments:u,taskInstanceId:s}},onError:(o,i,s)=>{s!=null&&s.previousComments&&t.setQueryData(["comments",s.taskInstanceId],s.previousComments)},onSettled:(o,i,s)=>{t.invalidateQueries({queryKey:["comments",s.taskInstanceId]}),t.invalidateQueries({queryKey:["playbook",+e]})}});return{manageComment:async o=>n.mutateAsync(o),...n}};function $a(e){return e?e.replace(/<[^>]*>/g,"").replace(/ /g," ").trim().length===0:!0}const Ev="carousel",Sv="controller",VS="navigation",YS="no-scroll",gd="portal",QS="root",kv="toolbar",tm="zoom",zc="loading",$c="error",Uc="complete",GS="placeholder",ZS=e=>`active-slide-${e}`,JS="fullsize",yd="flex_center",XS="no_scroll",Tv="no_scroll_padding",vd="slide",Nv="slide_wrapper",ek="slide_wrapper_interactive",Xr="prev",eo="next",nm="swipe",Mi="close",Ov="onPointerDown",Pv="onPointerMove",Mv="onPointerUp",Iv="onPointerLeave",Lv="onPointerCancel",bd="onKeyDown",tk="onKeyUp",xd="onWheel",nk="Escape",rk="ArrowLeft",ok="ArrowRight",ik="button",sf="icon",Rv="contain",rm="cover",Dv="Unknown action type",Fv="yarl__";function En(...e){return[...e].filter(Boolean).join(" ")}function Se(e){return`${Fv}${e}`}function Dt(e){return`--${Fv}${e}`}function Js(e,t){return`${e}${t?`_${t}`:""}`}function wd(e){return t=>Js(e,t)}function Ii(e,t){var n;return(n=e==null?void 0:e[t])!==null&&n!==void 0?n:t}function sk(e,t,n){return Ii(e,"{index} of {total}").replace(/\{index}/g,`${Sd(n,t.length)+1}`).replace(/\{total}/g,`${t.length}`)}function Ad(...e){return()=>{e.forEach(t=>{t()})}}function sr(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 Cd(){return typeof window<"u"}function _d(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}function Ki(e){return e.type===void 0||e.type==="image"}function Ed(e,t){return e.imageFit===rm||e.imageFit!==Rv&&t===rm}function Ul(e){return typeof e=="string"?Number.parseInt(e,10):e}function ol(e){if(typeof e=="number")return{pixel:e};if(typeof e=="string"){const t=Ul(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function ak(e,t){const n=ol(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 lk(){return(Cd()?window==null?void 0:window.devicePixelRatio:void 0)||1}function Sd(e,t){return t>0?(e%t+t)%t:0}function jv(e){return e.length>0}function zv(e,t){return e[Sd(t,e.length)]}function af(e,t){return jv(e)?zv(e,t):void 0}function ck(e){return Ki(e)?e.src:void 0}function uk(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 fk(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}const dk=Number(C.version.split(".")[0])>=19;function pk(e){return{inert:dk?e:e?"":void 0}}function hk(e){e.scrollTop}const lf={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[Mi]},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:Rv,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 zr(e,t){return{name:e,component:t}}function nt(e,t){return{module:e,children:t}}function $v(e,t,n){return e.module.name===t?n(e):e.children?[nt(e.module,e.children.flatMap(r=>{var o;return(o=$v(r,t,n))!==null&&o!==void 0?o:[]}))]:[e]}function Jo(e,t,n){return e.flatMap(r=>{var o;return(o=$v(r,t,n))!==null&&o!==void 0?o:[]})}function mk(e,t=[],n=[]){let r=e;const o=p=>{const h=[...r];for(;h.length>0;){const g=h.pop();if((g==null?void 0:g.module.name)===p)return!0;g!=null&&g.children&&h.push(...g.children)}return!1},i=(p,h)=>{if(p===""){r=[nt(h,r)];return}r=Jo(r,p,g=>[nt(h,[g])])},s=(p,h)=>{r=Jo(r,p,g=>[nt(g.module,[nt(h,g.children)])])},a=(p,h,g)=>{r=Jo(r,p,m=>{var y;return[nt(m.module,[...g?[nt(h)]:[],...(y=m.children)!==null&&y!==void 0?y:[],...g?[]:[nt(h)]])]})},l=(p,h,g)=>{r=Jo(r,p,m=>[...g?[nt(h)]:[],m,...g?[]:[nt(h)]])},c=p=>{s(Sv,p)},u=(p,h)=>{r=Jo(r,p,g=>[nt(h,g.children)])},f=p=>{r=Jo(r,p,h=>h.children)},d=p=>{n.push(p)};return t.forEach(p=>{p({contains:o,addParent:i,append:s,addChild:a,addSibling:l,addModule:c,replace:u,remove:f,augment:d})}),{config:r,augmentation:p=>n.reduce((h,g)=>g(h),p)}}const Uv=C.createContext(null),Bv=sr("useA11yContext","A11yContext",Uv);function gk({children:e}){const[t,n]=C.useState(!1),[r,o]=C.useState(!1),i=C.useMemo(()=>({focusWithin:t,trackFocusWithin:(a,l)=>{const c=u=>f=>{var d;f.currentTarget.contains(f.relatedTarget)||n(u),(d=u?a:l)===null||d===void 0||d(f)};return{onFocus:c(!0),onBlur:c(!1)}},autoPlaying:r,setAutoPlaying:o}),[t,r]);return C.createElement(Uv.Provider,{value:i},e)}const Wv=C.createContext(null),Bl=sr("useDocument","DocumentContext",Wv);function yk({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 Kv=C.createContext(null),Wl=sr("useEvents","EventsContext",Kv);function vk({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 l;(l=t[s])===null||l===void 0||l.splice(0,t[s].length,...t[s].filter(c=>c!==a))};return{publish:(...[s,a])=>{var l;(l=t[s])===null||l===void 0||l.forEach(c=>c(a))},subscribe:(s,a)=>(t[s]||(t[s]=[]),t[s].push(a),()=>r(s,a)),unsubscribe:r}},[t]);return C.createElement(Kv.Provider,{value:n},e)}const Hv=C.createContext(null),Jt=sr("useLightboxProps","LightboxPropsContext",Hv);function bk({children:e,...t}){return C.createElement(Hv.Provider,{value:t},e)}const qv=C.createContext(null),$r=sr("useLightboxState","LightboxStateContext",qv),Vv=C.createContext(null),xk=sr("useLightboxDispatch","LightboxDispatchContext",Vv);function wk(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(t==null?void 0:t.increment)||0,o=e.globalIndex+r,i=Sd(o,n.length),s=af(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:af(t.slides,t.index)}:e;default:throw new Error(Dv)}}function Ak({slides:e,index:t,children:n}){const[r,o]=C.useReducer(wk,{slides:e,currentIndex:t,globalIndex:t,currentSlide:af(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(Vv.Provider,{value:o},C.createElement(qv.Provider,{value:i},n))}const Yv=C.createContext(null),Kl=sr("useTimeouts","TimeoutsContext",Yv);function Ck({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 l=window.setTimeout(()=>{r(l),s()},a);return t.push(l),l},clearTimeout:s=>{s!==void 0&&(r(s),window.clearTimeout(s))}}},[t]);return C.createElement(Yv.Provider,{value:n},e)}const kd=C.forwardRef(function({label:t,className:n,icon:r,renderIcon:o,onClick:i,style:s,...a},l){const{styles:c,labels:u}=Jt(),f=Ii(u,t);return C.createElement("button",{ref:l,type:"button",title:f,"aria-label":f,className:En(Se(ik),n),onClick:i,style:{...s,...c.button},...a},o?o():C.createElement(r,{className:Se(sf),style:c.icon}))});function _k(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 $o(e,t){return _k(e,C.createElement("g",{fill:"currentColor"},C.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const Ek=$o("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"})),Sk=$o("Previous",C.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),kk=$o("Next",C.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Tk=$o("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)`})))),Nk=$o("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"})),Nn=Cd()?C.useLayoutEffect:C.useEffect;function Td(){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 Ok(e){let t=0,n=0,r=0;const i=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(i){const s=i[1].split(",").map(Ul);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 om(e,t){const n=C.useRef(void 0),r=C.useRef(void 0),o=Td();return Nn(()=>{var i,s,a;if(e.current&&n.current!==void 0&&!o){const{keyframes:l,duration:c,easing:u,onfinish:f}=t(n.current,e.current.getBoundingClientRect(),Ok(e.current))||{};if(l&&c){(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,l,{duration:c,easing:u})}catch(d){console.error(d)}r.current&&(r.current.onfinish=()=>{r.current=void 0,f==null||f()})}}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 Qv(){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),l=c=>parseFloat(c)||0;r({width:Math.round(i.clientWidth-l(a.paddingLeft)-l(a.paddingRight)),height:Math.round(i.clientHeight-l(a.paddingTop)-l(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 Ua(){const e=C.useRef(void 0),{setTimeout:t,clearTimeout:n}=Kl();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 Nn(()=>{t.current=e}),C.useCallback((...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function im(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function cf(e,t){return C.useMemo(()=>e==null&&t==null?null:n=>{im(e,n),im(t,n)},[e,t])}function Pk(e,t=!1){const n=C.useRef(!1);Nn(()=>{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 Nd(){const[e,t]=C.useState(!1);return Nn(()=>{t(window.getComputedStyle(window.document.documentElement).direction==="rtl")},[]),e}function Mk(){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(Ov,o),onPointerMove:o=>t(Pv,o),onPointerUp:o=>t(Mv,o),onPointerLeave:o=>t(Iv,o),onPointerCancel:o=>t(Lv,o),onKeyDown:o=>t(bd,o),onKeyUp:o=>t(tk,o),onWheel:o=>t(xd,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 sm(e,t){const n=C.useRef(0),r=Ua(),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 Bc=wd("slide"),Wc=wd("slide_image");function il({slide:e,offset:t,render:n,rect:r,imageFit:o,imageProps:i,onClick:s,onLoad:a,onError:l,style:c}){var u,f,d,p,h,g,m,y;const[v,b]=C.useState(zc),{publish:A}=Wl(),{setTimeout:w}=Kl(),_=C.useRef(null);C.useEffect(()=>{t===0&&A(ZS(v))},[t,v,A]);const E=Le(K=>{("decode"in K?K.decode():Promise.resolve()).catch(()=>{}).then(()=>{K.parentNode&&(b(Uc),w(()=>{a==null||a(K)},0))})}),S=C.useCallback(K=>{_.current=K,K!=null&&K.complete&&E(K)},[E]),O=C.useCallback(K=>{E(K.currentTarget)},[E]),P=Le(()=>{b($c),l==null||l()}),I=Ed(e,o),W=(K,B)=>Number.isFinite(K)?K:B,j=W(Math.max(...((f=(u=e.srcSet)===null||u===void 0?void 0:u.map(K=>K.width))!==null&&f!==void 0?f:[]).concat(e.width?[e.width]:[]).filter(Boolean)),((d=_.current)===null||d===void 0?void 0:d.naturalWidth)||0),z=W(Math.max(...((h=(p=e.srcSet)===null||p===void 0?void 0:p.map(K=>K.height))!==null&&h!==void 0?h:[]).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=(m=e.srcSet)===null||m===void 0?void 0:m.sort((K,B)=>K.width-B.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&&Cd()?`${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:S,onLoad:O,onError:P,onClick:s,draggable:!1,className:En(Se(Wc()),I&&Se(Wc("cover")),v!==Uc&&Se(Wc("loading")),L),style:{...Y,...c,...re},...F,alt:(y=e.alt)!==null&&y!==void 0?y:"",sizes:M,srcSet:Q,src:e.src}),v!==Uc&&C.createElement("div",{className:Se(Bc(GS))},v===zc&&(n!=null&&n.iconLoading?n.iconLoading():C.createElement(Tk,{className:En(Se(sf),Se(Bc(zc)))})),v===$c&&(n!=null&&n.iconError?n.iconError():C.createElement(Nk,{className:En(Se(sf),Se(Bc($c)))}))))}const Ik=C.forwardRef(function({className:t,children:n,onFocus:r,onBlur:o,...i},s){const a=C.useRef(null),{trackFocusWithin:l}=Bv();return C.createElement(yk,{nodeRef:a},C.createElement("div",{ref:cf(s,a),className:En(Se("root"),t),...l(r,o),...i},n))});var gt;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"})(gt||(gt={}));function Gv(e,t,n,r,o){C.useEffect(()=>o?()=>{}:Ad(e(Ov,t),e(Pv,n),e(Mv,r),e(Iv,r),e(Lv,r)),[e,t,n,r,o])}var nn;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"})(nn||(nn={}));const Kc=30;function Lk({disableSwipeNavigation:e,closeOnBackdropClick:t},n,r,o,i,s,a,l,c,u,f,d,p,h,g,m){const y=C.useRef(0),v=C.useRef([]),b=C.useRef(void 0),A=C.useRef(0),w=C.useRef(nn.NONE),_=C.useCallback(j=>{b.current===j.pointerId&&(b.current=void 0,w.current=nn.NONE);const z=v.current;z.splice(0,z.length,...z.filter(Y=>Y.pointerId!==j.pointerId))},[]),E=C.useCallback(j=>{_(j),j.persist(),v.current.push(j)},[_]),S=C.useCallback(j=>v.current.find(({pointerId:z})=>j.pointerId===z),[]),O=Le(j=>{E(j)}),P=(j,z)=>f&&j>z||u&&j<-z,I=Le(j=>{const z=S(j);if(z)if(b.current===j.pointerId){const Y=Date.now()-A.current,Q=y.current;w.current===nn.SWIPE?Math.abs(Q)>.3*o||Math.abs(Q)>5&&Y<i?l(Q,Y):c(Q):w.current===nn.PULL&&(P(Q,2*Kc)?h(Q,Y):g(Q)),y.current=0,w.current=nn.NONE}else{const{target:Y}=j;t&&Y instanceof HTMLElement&&Y===z.target&&(Y.classList.contains(Se(vd))||Y.classList.contains(Se(Nv)))&&m()}_(j)}),W=Le(j=>{const z=S(j);if(z){const Y=b.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(b.current===void 0){const M=re=>{E(j),b.current=j.pointerId,A.current=Date.now(),w.current=re};Math.abs(Q)>Math.abs(oe)&&Math.abs(Q)>Kc&&r(Q)?e||(M(nn.SWIPE),s()):Math.abs(oe)>Math.abs(Q)&&P(oe,Kc)&&(M(nn.PULL),d())}else Y&&(w.current===nn.SWIPE?(y.current=Q,a(Q)):w.current===nn.PULL&&(y.current=oe,p(oe)))}});Gv(n,O,W,I)}function Rk({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 Dk(e,t,n,r,o,i,s,a,l){const c=C.useRef(0),u=C.useRef(0),f=C.useRef(void 0),d=C.useRef(void 0),p=C.useRef(0),h=C.useRef(void 0),g=C.useRef(0),{setTimeout:m,clearTimeout:y}=Kl(),v=C.useCallback(()=>{f.current&&(y(f.current),f.current=void 0)},[y]),b=C.useCallback(()=>{d.current&&(y(d.current),d.current=void 0)},[y]),A=Le(()=>{e!==gt.SWIPE&&(c.current=0,g.current=0,v(),b())});C.useEffect(A,[e,A]);const w=Le(E=>{d.current=void 0,c.current===E&&l(c.current)}),_=Le(E=>{if(E.ctrlKey||Math.abs(E.deltaY)>Math.abs(E.deltaX))return;const S=O=>{p.current=O,y(h.current),h.current=O>0?m(()=>{p.current=0,h.current=void 0},300):void 0};if(e===gt.NONE){if(Math.abs(E.deltaX)<=1.2*Math.abs(p.current)){S(E.deltaX);return}if(!n(-E.deltaX))return;if(u.current+=E.deltaX,v(),Math.abs(u.current)>30)u.current=0,S(0),g.current=Date.now(),i();else{const O=u.current;f.current=m(()=>{f.current=void 0,O===u.current&&(u.current=0)},o)}}else if(e===gt.SWIPE){let O=c.current-E.deltaX;if(O=Math.min(Math.abs(O),r)*Math.sign(O),c.current=O,s(O),b(),Math.abs(O)>.2*r){S(E.deltaX),a(O,Date.now()-g.current);return}d.current=m(()=>w(O),2*o)}else S(E.deltaX)});C.useEffect(()=>t(xd,_),[t,_])}const am=wd("container"),Zv=C.createContext(null),ar=sr("useController","ControllerContext",Zv);function Fk({children:e,...t}){var n;const{carousel:r,animation:o,controller:i,on:s,styles:a,render:l}=t,{closeOnPullUp:c,closeOnPullDown:u,preventDefaultWheelX:f,preventDefaultWheelY:d}=i,[p,h]=C.useState(),g=$r(),m=xk(),[y,v]=C.useState(gt.NONE),b=C.useRef(0),A=C.useRef(0),w=C.useRef(1),{registerSensors:_,subscribeSensors:E}=Mk(),{subscribe:S,publish:O}=Wl(),P=Ua(),I=Ua(),W=Ua(),{containerRef:j,setContainerRef:z,containerRect:Y}=Qv(),Q=cf(Rk({preventDefaultWheelX:f,preventDefaultWheelY:d}),z),oe=C.useRef(null),M=cf(oe,void 0),{getOwnerDocument:re}=Bl(),L=Nd(),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()}),B=Le(()=>t),J=Le(()=>g),V=C.useCallback(se=>O(Xr,se),[O]),ee=C.useCallback(se=>O(eo,se),[O]),te=C.useCallback(()=>O(Mi),[O]),he=se=>!(r.finite&&(F(se)>0&&g.currentIndex===0||F(se)<0&&g.currentIndex===g.slides.length-1)),ye=se=>{var De;b.current=se,(De=j.current)===null||De===void 0||De.style.setProperty(Dt("swipe_offset"),`${Math.round(se)}px`)},me=se=>{var De,lt;A.current=se,w.current=(()=>{const Kt=u&&se>0?se:c&&se<0?-se:0;return Math.min(Math.max(_d(1-Kt/60*(1-.5),2),.5),1)})(),(De=j.current)===null||De===void 0||De.style.setProperty(Dt("pull_offset"),`${Math.round(se)}px`),(lt=j.current)===null||lt===void 0||lt.style.setProperty(Dt("pull_opacity"),`${w.current}`)},{prepareAnimation:ze}=om(oe,(se,De,lt)=>{if(oe.current&&Y)return{keyframes:[{transform:`translate(0, ${se.rect.y-De.y+lt.y}px)`,opacity:se.opacity},{transform:"translate(0, 0)",opacity:1}],duration:se.duration,easing:o.easing.fade}}),G=(se,De)=>{if(c||u){me(se);let lt=0;oe.current&&(lt=o.fade*(De?2:1),ze({rect:oe.current.getBoundingClientRect(),opacity:w.current,duration:lt})),W(()=>{me(0),v(gt.NONE)},lt),v(gt.ANIMATION),De||te()}},{prepareAnimation:qe,isAnimationPlaying:zt}=om(oe,(se,De,lt)=>{var Mt;if(oe.current&&Y&&(!((Mt=g.animation)===null||Mt===void 0)&&Mt.duration)){const et=ol(r.spacing),Kt=(et.percent?et.percent*Y.width/100:et.pixel)||0;return{keyframes:[{transform:`translate(${F(g.globalIndex-se.index)*(Y.width+Kt)+se.rect.x-De.x+lt.x}px, 0)`},{transform:"translate(0, 0)"}],duration:g.animation.duration,easing:g.animation.easing}}}),ht=Le(se=>{var De,lt;const Mt=se.offset||0,et=Mt?o.swipe:(De=o.navigation)!==null&&De!==void 0?De:o.swipe,Kt=!Mt&&!zt()?o.easing.navigation:o.easing.swipe;let{direction:At}=se;const cr=(lt=se.count)!==null&<!==void 0?lt:1;let qo=gt.ANIMATION,$t=et*cr;if(!At){const ur=Y==null?void 0:Y.width,Vr=se.duration||0,fr=ur?et/ur*Math.abs(Mt):et;cr!==0?(Vr<fr?$t=$t/fr*Math.max(Vr,fr/5):ur&&($t=et/ur*(ur-Math.abs(Mt))),At=F(Mt)>0?Xr:eo):$t=et/2}let qr=0;At===Xr?he(F(1))?qr=-cr:(qo=gt.NONE,$t=et):At===eo&&(he(F(-1))?qr=cr:(qo=gt.NONE,$t=et)),$t=Math.round($t),I(()=>{ye(0),v(gt.NONE)},$t),oe.current&&qe({rect:oe.current.getBoundingClientRect(),index:g.globalIndex}),v(qo),O(nm,{type:"swipe",increment:qr,duration:$t,easing:Kt})});C.useEffect(()=>{var se,De;!((se=g.animation)===null||se===void 0)&&se.increment&&(!((De=g.animation)===null||De===void 0)&&De.duration)&&P(()=>m({type:"swipe",increment:0}),g.animation.duration)},[g.animation,m,P]);const Ko=[E,he,(Y==null?void 0:Y.width)||0,o.swipe,()=>v(gt.SWIPE),se=>ye(se),(se,De)=>ht({offset:se,duration:De,count:1}),se=>ht({offset:se,count:0})],es=[()=>{u&&v(gt.PULL)},se=>me(se),se=>G(se),se=>G(se,!0)];Lk(i,...Ko,c,u,...es,te),Dk(y,...Ko);const Mn=Le(()=>{i.focus&&re().querySelector(`.${Se(gd)} .${Se(am())}`)&&K()});C.useEffect(Mn,[Mn]);const Hr=Le(()=>{var se;(se=s.view)===null||se===void 0||se.call(s,{index:g.currentIndex})});C.useEffect(Hr,[g.globalIndex,Hr]),C.useEffect(()=>Ad(S(Xr,se=>ht({direction:Xr,...se})),S(eo,se=>ht({direction:eo,...se})),S(nm,se=>m(se))),[S,ht,m]);const Ho=C.useMemo(()=>({prev:V,next:ee,close:te,focus:K,slideRect:Y?ak(Y,r.padding):{width:0,height:0},containerRect:Y||{width:0,height:0},subscribeSensors:E,containerRef:j,setCarouselRef:M,toolbarWidth:p,setToolbarWidth:h}),[V,ee,te,K,E,Y,j,M,p,h,r.padding]);return C.useImperativeHandle(i.ref,()=>({prev:V,next:ee,close:te,focus:K,getLightboxProps:B,getLightboxState:J}),[V,ee,te,K,B,J]),C.createElement("div",{ref:Q,className:En(Se(am()),Se(yd)),style:{...y===gt.SWIPE?{[Dt("swipe_offset")]:`${Math.round(b.current)}px`}:null,...y===gt.PULL?{[Dt("pull_offset")]:`${Math.round(A.current)}px`,[Dt("pull_opacity")]:`${w.current}`}:null,...i.touchAction!=="none"?{[Dt("controller_touch_action")]:i.touchAction}:null,...a.container},tabIndex:-1,..._},Y&&C.createElement(Zv.Provider,{value:Ho},e,(n=l.controls)===null||n===void 0?void 0:n.call(l)))}const jk=zr(Sv,Fk);function Gr(e){return Js(Ev,e)}function lm(e){return Js(vd,e)}function zk({slide:e,offset:t}){const n=C.useRef(null),{currentIndex:r,slides:o}=$r(),{slideRect:i,focus:s}=ar(),{render:a,carousel:{imageFit:l,imageProps:c},on:{click:u},styles:{slide:f},labels:d}=Jt(),{getOwnerDocument:p}=Bl(),h=t!==0;C.useEffect(()=>{var m;h&&(!((m=n.current)===null||m===void 0)&&m.contains(p().activeElement))&&s()},[h,s,p]);const g=()=>{var m,y,v,b;let A=(m=a.slide)===null||m===void 0?void 0:m.call(a,{slide:e,offset:t,rect:i});return!A&&Ki(e)&&(A=C.createElement(il,{slide:e,offset:t,render:a,rect:i,imageFit:l,imageProps:c,onClick:h?void 0:()=>u==null?void 0:u({index:r})})),A?C.createElement(C.Fragment,null,(y=a.slideHeader)===null||y===void 0?void 0:y.call(a,{slide:e}),((v=a.slideContainer)!==null&&v!==void 0?v:(({children:w})=>w))({slide:e,children:A}),(b=a.slideFooter)===null||b===void 0?void 0:b.call(a,{slide:e})):null};return C.createElement("div",{ref:n,className:En(Se(lm()),!h&&Se(lm("current")),Se(yd)),...pk(h),style:f,role:"group","aria-roledescription":Ii(d,"Slide"),"aria-label":sk(d,o,r+t)},g())}function $k(){const e=Jt().styles.slide;return C.createElement("div",{className:Se(vd),style:e})}function Uk({carousel:e,labels:t}){const{slides:n,currentIndex:r,globalIndex:o}=$r(),{setCarouselRef:i}=ar(),{autoPlaying:s,focusWithin:a}=Bv(),l=ol(e.spacing),c=ol(e.padding),u=fk(e,n,1),f=[];if(jv(n))for(let d=r-u;d<=r+u;d+=1){const p=zv(n,d),h=o-r+d,g=e.finite&&(d<0||d>n.length-1);f.push(g?{key:h}:{key:[`${h}`,ck(p)].filter(Boolean).join("|"),offset:d-r,slide:p})}return C.createElement("div",{ref:i,className:En(Se(Gr()),f.length>0&&Se(Gr("with_slides"))),style:{[`${Dt(Gr("slides_count"))}`]:f.length,[`${Dt(Gr("spacing_px"))}`]:l.pixel||0,[`${Dt(Gr("spacing_percent"))}`]:l.percent||0,[`${Dt(Gr("padding_px"))}`]:c.pixel||0,[`${Dt(Gr("padding_percent"))}`]:c.percent||0},role:"region","aria-live":s&&!a?"off":"polite","aria-roledescription":Ii(t,"Carousel"),"aria-label":Ii(t,"Photo gallery")},f.map(({key:d,slide:p,offset:h})=>p?C.createElement(zk,{key:d,slide:p,offset:h}):C.createElement($k,{key:d})))}const Bk=zr(Ev,Uk);function Jv(){const{carousel:e}=Jt(),{slides:t,currentIndex:n}=$r(),r=t.length===0||e.finite&&n===0,o=t.length===0||e.finite&&n===t.length-1;return{prevDisabled:r,nextDisabled:o}}function Wk(e){var t;const n=Nd(),{publish:r}=Wl(),{animation:o}=Jt(),{prevDisabled:i,nextDisabled:s}=Jv(),a=((t=o.navigation)!==null&&t!==void 0?t:o.swipe)/2,l=sm(()=>r(Xr),a),c=sm(()=>r(eo),a),u=Le(f=>{switch(f.key){case nk:r(Mi);break;case rk:(n?s:i)||(n?c:l)();break;case ok:(n?i:s)||(n?l:c)();break}});C.useEffect(()=>e(bd,u),[e,u])}function cm({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:i,style:s}){return C.createElement(kd,{label:e,icon:t,renderIcon:n,className:Se(`navigation_${r}`),disabled:i,onClick:o,style:s,...Pk(ar().focus,i)})}function Kk({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:i,next:s,subscribeSensors:a}=ar(),{prevDisabled:l,nextDisabled:c}=Jv();return Wk(a),C.createElement(C.Fragment,null,e?e():C.createElement(cm,{label:"Previous",action:Xr,icon:Sk,renderIcon:n,style:o.navigationPrev,disabled:l,onClick:i}),t?t():C.createElement(cm,{label:"Next",action:eo,icon:kk,renderIcon:r,style:o.navigationNext,disabled:c,onClick:s}))}const Hk=zr(VS,Kk),um=Se(XS),qk=Se(Tv);function Vk(e){return"style"in e}function fm(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,`${(Ul(i)||0)+t}px`),()=>{s?e.style.setProperty(o,s):e.style.removeProperty(o)}}function Yk({noScroll:{disabled:e},children:t}){const n=Nd(),{getOwnerDocument:r,getOwnerWindow:o}=Bl();return C.useEffect(()=>{if(e)return()=>{};const i=[],s=o(),{body:a,documentElement:l}=r(),c=Math.round(s.innerWidth-l.clientWidth);if(c>0){i.push(fm(a,c,n));const u=a.getElementsByTagName("*");for(let f=0;f<u.length;f+=1){const d=u[f];Vk(d)&&s.getComputedStyle(d).getPropertyValue("position")==="fixed"&&!d.classList.contains(qk)&&i.push(fm(d,c,n))}}return a.classList.add(um),()=>{a.classList.remove(um),i.forEach(u=>u())}},[n,e,r,o]),C.createElement(C.Fragment,null,t)}const Qk=zr(YS,Yk);function dm(e){return Js(gd,e)}function pm(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}function Gk({children:e,animation:t,styles:n,className:r,on:o,portal:i,close:s,labels:a}){const[l,c]=C.useState(!1),[u,f]=C.useState(!1),d=C.useRef([]),p=C.useRef(null),{setTimeout:h}=Kl(),{subscribe:g}=Wl(),y=Td()?0:t.fade;C.useEffect(()=>(c(!0),()=>{c(!1),f(!1)}),[]);const v=Le(()=>{d.current.forEach(_=>_()),d.current=[]}),b=Le(()=>{var _;f(!1),v(),(_=o.exiting)===null||_===void 0||_.call(o),h(()=>{var E;(E=o.exited)===null||E===void 0||E.call(o),s()},y)});C.useEffect(()=>g(Mi,b),[g,b]);const A=Le(_=>{var E,S,O;hk(_),f(!0),(E=o.entering)===null||E===void 0||E.call(o);const P=(O=(S=_.parentNode)===null||S===void 0?void 0:S.children)!==null&&O!==void 0?O:[];for(let I=0;I<P.length;I+=1){const W=P[I];["TEMPLATE","SCRIPT","STYLE"].indexOf(W.tagName)===-1&&W!==_&&(d.current.push(pm(W,"inert","")),d.current.push(pm(W,"aria-hidden","true")))}d.current.push(()=>{var I,W;(W=(I=p.current)===null||I===void 0?void 0:I.focus)===null||W===void 0||W.call(I)}),h(()=>{var I;(I=o.entered)===null||I===void 0||I.call(o)},y)}),w=C.useCallback(_=>{_?A(_):v()},[A,v]);return l?Tn.createPortal(C.createElement(Ik,{ref:w,className:En(r,Se(dm()),Se(Tv),u&&Se(dm("open"))),"aria-modal":!0,role:"dialog","aria-label":Ii(a,"Lightbox"),style:{...t.fade!==lf.animation.fade?{[Dt("fade_animation_duration")]:`${y}ms`}:null,...t.easing.fade!==lf.animation.easing.fade?{[Dt("fade_animation_timing_function")]:t.easing.fade}:null,...n.root},onFocus:_=>{p.current||(p.current=_.relatedTarget)}},e),i.root||document.body):null}const Zk=zr(gd,Gk);function Jk({children:e}){return C.createElement(C.Fragment,null,e)}const Xk=zr(QS,Jk);function e3(e){return Js(kv,e)}function t3({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:i}=ar(),{setContainerRef:s,containerRect:a}=Qv();Nn(()=>{i(a==null?void 0:a.width)},[i,a==null?void 0:a.width]);const l=()=>t?t():C.createElement(kd,{key:Mi,label:"Close",icon:Ek,renderIcon:n,onClick:o});return C.createElement("div",{ref:s,style:r.toolbar,className:Se(e3())},e==null?void 0:e.map(c=>c===Mi?l():c))}const n3=zr(kv,t3);function Xv(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=>Xv(r,t)))}function r3(e,t={}){const{easing:n,...r}=e,{easing:o,...i}=t;return{easing:{...n,...o},...r,...i}}function o3({carousel:e,animation:t,render:n,toolbar:r,controller:o,noScroll:i,on:s,plugins:a,slides:l,index:c,...u}){const{animation:f,carousel:d,render:p,toolbar:h,controller:g,noScroll:m,on:y,slides:v,index:b,plugins:A,...w}=lf,{config:_,augmentation:E}=mk([nt(Zk,[nt(Qk,[nt(jk,[nt(Bk),nt(n3),nt(Hk)])])])],a||A),S=E({animation:r3(f,t),carousel:{...d,...e},render:{...p,...n},toolbar:{...h,...r},controller:{...g,...o},noScroll:{...m,...i},on:{...y,...s},...w,...u});return S.open?C.createElement(bk,{...S},C.createElement(Ak,{slides:l||v,index:Ul(c||b)},C.createElement(Ck,null,C.createElement(vk,null,C.createElement(gk,null,Xv(nt(Xk,_),S)))))):null}const i3={minZoom:1,maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,pinchZoomV4:!1,scrollToZoom:!1};function s3(e){return Math.min(Math.max(e,Number.EPSILON),1)}function eb(e){const{minZoom:t,...n}={...i3,...e};return{minZoom:s3(t),...n}}function a3(e,t,n,r){const o=C.useRef(void 0),i=C.useRef(void 0),{zoom:s}=Jt().animation,a=Td(),l=Le(()=>{var c,u,f;if((c=o.current)===null||c===void 0||c.cancel(),o.current=void 0,i.current&&(r!=null&&r.current)){try{o.current=(f=(u=r.current).animate)===null||f===void 0?void 0:f.call(u,[{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 Nn(l,[e,t,n,l]),C.useCallback(()=>{i.current=r!=null&&r.current?window.getComputedStyle(r.current).transform:void 0},[r])}function l3(e,t){const{on:n}=Jt(),r=Le(()=>{var o;t||(o=n.zoom)===null||o===void 0||o.call(n,{zoom:e})});C.useEffect(r,[e,r])}function Hl(){const{zoom:e}=Jt();return eb(e)}function c3(e,t){var n,r;let o={width:0,height:0},i={width:0,height:0};const{currentSlide:s}=$r(),{imageFit:a}=Jt().carousel,{maxZoomPixelRatio:l}=Hl();if(e&&s){const u={...s,...t};if(Ki(u)){const f=Ed(u,a),d=Math.max(...(((n=u.srcSet)===null||n===void 0?void 0:n.map(h=>h.width))||[]).concat(u.width?[u.width]:[])),p=Math.max(...(((r=u.srcSet)===null||r===void 0?void 0:r.map(h=>h.height))||[]).concat(u.height?[u.height]:[]));d>0&&p>0&&e.width>0&&e.height>0&&(i=f?{width:Math.round(Math.min(d,e.width/e.height*p)),height:Math.round(Math.min(p,e.height/e.width*d))}:{width:d,height:p},i={width:i.width*l,height:i.height*l},o=f?{width:Math.min(e.width,i.width,d),height:Math.min(e.height,i.height,p)}:{width:Math.round(Math.min(e.width,e.height/p*d,d)),height:Math.round(Math.min(e.height,e.width/d*p,p))})}}const c=o.width?Math.max(_d(i.width/o.width,5),1):1;return{imageRect:o,maxZoom:c}}function hm(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)}function mm(e,t,n=100,r=2){return e*Math.min(1+Math.abs(t/n),r)**Math.sign(t)}function u3(e,t,n,r,o,i,s,a,l){const c=C.useRef([]),u=C.useRef(0),f=C.useRef(void 0),{globalIndex:d}=$r(),{getOwnerWindow:p}=Bl(),{containerRef:h,subscribeSensors:g}=ar(),{keyboardMoveDistance:m,zoomInMultiplier:y,wheelZoomDistanceFactor:v,scrollToZoom:b,doubleTapDelay:A,doubleClickDelay:w,doubleClickMaxStops:_,pinchZoomDistanceFactor:E,pinchZoomV4:S}=Hl(),O=C.useCallback(M=>{if(h.current){const{pageX:re,pageY:L}=M,{scrollX:F,scrollY:K}=p(),{left:B,top:J,width:V,height:ee}=h.current.getBoundingClientRect();return[re-B-F-V/2,L-J-K-ee/2]}return[]},[h,p]),P=Le(M=>{const{key:re,metaKey:L,ctrlKey:F}=M,K=L||F,B=()=>{M.preventDefault(),M.stopPropagation()};if(e>1){const J=(V,ee)=>{B(),a(V,ee)};re==="ArrowDown"?J(0,m):re==="ArrowUp"?J(0,-m):re==="ArrowLeft"?J(-m,0):re==="ArrowRight"&&J(m,0)}re==="+"||K&&re==="="?(B(),o()):re==="-"||K&&re==="_"?(B(),i()):K&&re==="0"&&(B(),s(1))}),I=Le(M=>{if((M.ctrlKey||b)&&Math.abs(M.deltaY)>Math.abs(M.deltaX)){M.stopPropagation(),s(mm(e,-M.deltaY,v),!0,...O(M));return}e>1&&(M.stopPropagation(),b||a(M.deltaX,M.deltaY))}),W=C.useCallback(M=>{const re=c.current;re.splice(0,re.length,...re.filter(L=>L.pointerId!==M.pointerId))},[]),j=C.useCallback(M=>{W(M),M.persist(),c.current.push(M)},[W]),z=Le(M=>{var re;const L=c.current;if(M.pointerType==="mouse"&&M.buttons>1||!(!((re=l==null?void 0:l.current)===null||re===void 0)&&re.contains(M.target)))return;e>1&&M.stopPropagation();const{timeStamp:F}=M;if(L.length===0&&F-u.current<(M.pointerType==="touch"?A:w)){u.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,...O(M))}else u.current=F;if(j(M),L.length===2){const K=hm(L[0],L[1]);f.current={previousDistance:K,initialDistance:Math.max(K,1),initialZoom:e}}}),Y=Le(M=>{const re=c.current,L=re.find(F=>F.pointerId===M.pointerId);if(re.length===2&&f.current){M.stopPropagation(),j(M);const F=hm(re[0],re[1]),K=S?f.current.initialZoom/f.current.initialDistance*F:mm(e,F-f.current.previousDistance,E);s(K,!0,...re.map(B=>O(B)).reduce((B,J)=>J.map((V,ee)=>B[ee]+V/2))),f.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=c.current;re.length===2&&re.find(L=>L.pointerId===M.pointerId)&&(f.current=void 0),W(M)},[W]),oe=C.useCallback(()=>{const M=c.current;M.splice(0,M.length),u.current=0,f.current=void 0},[]);Gv(g,z,Y,Q,r),C.useEffect(oe,[d,oe]),C.useEffect(()=>r?()=>{}:Ad(oe,g(bd,P),g(xd,I)),[r,g,oe,P,I])}function f3(e,t,n){const[r,o]=C.useState(1),[i,s]=C.useState(0),[a,l]=C.useState(0),c=a3(r,i,a,n),{currentSlide:u,globalIndex:f}=$r(),{containerRect:d,slideRect:p}=ar(),{minZoom:h,zoomInMultiplier:g}=Hl(),m=u&&Ki(u)?u.src:void 0,y=!m||!(n!=null&&n.current);Nn(()=>{o(1),s(0),l(0)},[f,m]);const v=C.useCallback((E,S,O)=>{const P=O||r,I=i-(E||0),W=a-(S||0),j=(e.width*P-p.width)/2/P,z=(e.height*P-p.height)/2/P;s(Math.min(Math.abs(I),Math.max(j,0))*Math.sign(I)),l(Math.min(Math.abs(W),Math.max(z,0))*Math.sign(W))},[r,i,a,p,e.width,e.height]),b=C.useCallback((E,S,O,P)=>{const I=_d(E+.01<t?E-.01>h?E:h:t,5);S||c(),v(O?O*(1/r-1/I):0,P?P*(1/r-1/I):0,I),o(I)},[r,h,t,v,c]),A=Le(()=>{r>1&&(r>t&&b(t,!0),v())});Nn(A,[d.width,d.height,A]);const w=C.useCallback(()=>{const E=r*g;b(r<1&&E>1?1:E)},[r,g,b]),_=C.useCallback(()=>{const E=r/g;b(r>1&&E<1?1:E)},[r,g,b]);return{zoom:r,offsetX:i,offsetY:a,disabled:y,changeOffsets:v,changeZoom:b,zoomIn:w,zoomOut:_}}const tb=C.createContext(null),Od=sr("useZoom","ZoomControllerContext",tb);function d3({children:e}){const[t,n]=C.useState(),{slideRect:r}=ar(),{ref:o,minZoom:i}=Hl(),{imageRect:s,maxZoom:a}=c3(r,t==null?void 0:t.imageDimensions),{zoom:l,offsetX:c,offsetY:u,disabled:f,changeZoom:d,changeOffsets:p,zoomIn:h,zoomOut:g}=f3(s,a,t==null?void 0:t.zoomWrapperRef);l3(l,f),u3(l,i,a,f,h,g,d,p,t==null?void 0:t.zoomWrapperRef);const m=C.useMemo(()=>({zoom:l,minZoom:i,maxZoom:a,offsetX:c,offsetY:u,disabled:f,zoomIn:h,zoomOut:g,changeZoom:d}),[l,i,a,c,u,f,h,g,d]);C.useImperativeHandle(o,()=>m,[m]);const y=C.useMemo(()=>({...m,setZoomWrapper:n}),[m,n]);return C.createElement(tb.Provider,{value:y},e)}const p3=$o("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"}))),h3=$o("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"})),gm=C.forwardRef(function({zoomIn:t,onLoseFocus:n},r){const o=C.useRef(!1),i=C.useRef(!1),{zoom:s,minZoom:a,maxZoom:l,zoomIn:c,zoomOut:u,disabled:f}=Od(),{render:d}=Jt(),p=f||(t?s>=l:s<=a);return C.useEffect(()=>{p&&o.current&&i.current&&n(),p||(o.current=!0)},[p,n]),C.createElement(kd,{ref:r,disabled:p,label:t?"Zoom in":"Zoom out",icon:t?p3:h3,renderIcon:t?d.iconZoomIn:d.iconZoomOut,onClick:t?c:u,onFocus:()=>{i.current=!0},onBlur:()=>{i.current=!1}})});function m3(){const e=C.useRef(null),t=C.useRef(null),{focus:n}=ar(),r=C.useCallback(s=>{var a,l;!((a=s.current)===null||a===void 0)&&a.disabled?n():(l=s.current)===null||l===void 0||l.focus()},[n]),o=C.useCallback(()=>r(e),[r]),i=C.useCallback(()=>r(t),[r]);return C.createElement(C.Fragment,null,C.createElement(gm,{zoomIn:!0,ref:e,onLoseFocus:i}),C.createElement(gm,{ref:t,onLoseFocus:o}))}function g3(){const{render:e}=Jt(),t=Od();return e.buttonZoom?C.createElement(C.Fragment,null,e.buttonZoom(t)):C.createElement(m3,null)}function y3(e){var t;return(((t=e.srcSet)===null||t===void 0?void 0:t.length)||0)>0}function v3({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(Dv)}}function b3(e){var t,n;const[{current:r,preload:o},i]=C.useReducer(v3,{}),{slide:s,rect:a,imageFit:l,render:c,interactive:u}=e,f=s.srcSet.sort((w,_)=>w.width-_.width),d=(t=s.width)!==null&&t!==void 0?t:f[f.length-1].width,p=(n=s.height)!==null&&n!==void 0?n:f[f.length-1].height,h=Ed(s,l),g=Math.max(...f.map(w=>w.width)),m=Math.min((h?Math.max:Math.min)(a.width,d*(a.height/p)),g),y=lk(),v=Le(()=>{var w;const _=(w=f.find(E=>E.width>=m*y))!==null&&w!==void 0?w:f[f.length-1];(!r||f.findIndex(E=>E.src===r)<f.findIndex(E=>E===_))&&i({type:"fetch",source:_.src})});Nn(v,[a.width,a.height,y,v]);const b=Le(w=>i({type:"done",source:w})),A={WebkitTransform:u?"initial":"translateZ(0)"};return h||Object.assign(A,a.width/a.height<d/p?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),C.createElement(C.Fragment,null,o&&o!==r&&C.createElement(il,{key:"preload",...e,offset:void 0,slide:{...s,src:o,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...A},onLoad:()=>b(o),render:{...c,iconLoading:()=>null,iconError:()=>null}}),r&&C.createElement(il,{key:"current",...e,slide:{...s,src:r,srcSet:void 0},style:A}))}function x3({render:e,slide:t,offset:n,rect:r}){var o;const[i,s]=C.useState(),a=C.useRef(null),{zoom:l,maxZoom:c,offsetX:u,offsetY:f,setZoomWrapper:d}=Od(),p=l>1,{carousel:h,on:g}=Jt(),{currentIndex:m}=$r();Nn(()=>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:l,maxZoom:c});if(!y&&Ki(t)){const v={slide:t,offset:n,rect:r,render:e,imageFit:h.imageFit,imageProps:h.imageProps,onClick:n===0?()=>{var b;return(b=g.click)===null||b===void 0?void 0:b.call(g,{index:m})}:void 0};y=y3(t)?C.createElement(b3,{...v,slide:t,interactive:p,rect:n===0?{width:r.width*l,height:r.height*l}:r}):C.createElement(il,{onLoad:b=>s({width:b.naturalWidth,height:b.naturalHeight}),...v})}return y?C.createElement("div",{ref:a,className:En(Se(JS),Se(yd),Se(Nv),p&&Se(ek)),style:n===0?{transform:`scale(${l}) translateX(${u}px) translateY(${f}px)`}:void 0},y):null}const w3=({augment:e,addModule:t})=>{e(({zoom:n,toolbar:r,render:o,controller:i,...s})=>{const a=eb(n);return{zoom:a,toolbar:uk(r,tm,C.createElement(g3,null)),render:{...o,slide:l=>{var c;return Ki(l.slide)?C.createElement(x3,{render:o,...l}):(c=o.slide)===null||c===void 0?void 0:c.call(o,l)}},controller:{...i,preventDefaultWheelY:a.scrollToZoom},...s}}),t(zr(tm,d3))},A3="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==",C3=({src:e,alt:t,size:n=40})=>x.jsx("img",{src:e||A3,alt:t,width:n,height:n,className:"rounded-full object-cover border border-gray-200"}),_3=(...e)=>t=>{e.forEach(n=>n==null?void 0:n(t))},uf=({placement:e="bottom-end",children:t,trigger:n,title:r,minWidth:o="172px"})=>{const[i,s]=T.useState(!1),{refs:a,floatingStyles:l,context:c}=yv({strategy:"fixed",placement:e,open:i,onOpenChange:s}),u=gv(c,{outsidePress:!0}),{getReferenceProps:f,getFloatingProps:d}=vv([u]),p=T.Children.map(t,h=>{if(!T.isValidElement(h))return h;const g=h.props;return T.cloneElement(h,{onClick:_3(g.onClick,()=>s(!1))})});return x.jsxs(x.Fragment,{children:[T.cloneElement(n,{ref:a.setReference,...f(),onClick:()=>s(h=>!h),title:i?`Close ${r??"context menu"}`:`Open ${r??"context menu"}`}),i&&x.jsx("div",{ref:a.setFloating,style:{...l,minWidth:o},className:Ee("border border-gray-200 rounded-sm bg-white z-[9999999999]"),...d(),children:p})]})},E3=({commentType:e,onEdit:t,onSaveCommentType:n,onDelete:r,taskVerified:o,isUsernameAuthor:i})=>x.jsxs(uf,{trigger:x.jsx(je,{category:"link",size:"none",className:"text-gray-400",disabled:!i,children:x.jsx(ve,{icon:GC})}),children:[x.jsxs("ul",{className:"py-2 m-0",children:[x.jsx("li",{children:x.jsx("button",{type:"button",className:"w-full text-left py-1 px-2 hover:bg-gray-100 hover:text-primary-600 cursor-pointer",onClick:t,title:"Edit comment",children:"Edit"})}),!o&&x.jsx("li",{children:x.jsx("button",{type:"button",className:"w-full text-left py-1 px-2 hover:bg-gray-100 hover:text-primary-600 cursor-pointer",onClick:r,title:"Delete comment",children:"Delete"})})]}),x.jsx("ul",{className:"border-t border-gray-200 flex items-center justify-center gap-2 py-2",children:l1.map(s=>x.jsx("li",{children:x.jsx(je,{category:"link",size:"smallCollapse",title:s.title,onClick:()=>{n==null||n(s.type)},className:Ee(s.color,e===s.type?s.color:"text-gray-400"),children:x.jsx(ve,{icon:s.icon,size:"lg"})})},s.type))})]}),nb=T.createContext(null);function S3(e,t){return{getTheme:function(){return t??null}}}function wt(){const e=T.useContext(nb);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 rb(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 dn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,k3=dn&&"documentMode"in document?document.documentMode:null,sn=dn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),To=dn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),sl=!(!dn||!("InputEvent"in window)||k3)&&"getTargetRanges"in new window.InputEvent("input"),Xs=dn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Hi=dn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,T3=dn&&/Android/.test(navigator.userAgent),ob=dn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),ym=dn&&T3&&ob,ea=dn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&sn&&!ob;function ib(...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 N3=0,O3=1,P3=2,sb=128,M3=1,I3=2,L3=3,R3=4,D3=5,F3=6,ql=Xs||Hi||ea?" ":"",Rr=`
|
|
592
|
+
*/const XS={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"]},e4={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"]},t4={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"]},n4={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"]},r4={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"]},o4={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"]},i4={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"]},s4={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"]},a4={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"]},l4={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"]},c4={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"]},u4={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"]},f4={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"]},d4={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"]},Kh=({onMouseOver:e,onClick:t,commentsCount:n=0,commentType:r})=>{var a,l;const o=n>0,i={[dt.INFO]:{icon:PC,color:"text-primary-600 hover:text-primary-600"},[dt.WARNING]:{icon:XC,color:"text-warning-600 hover:text-warning-600"},[dt.DANGER]:{icon:Dl,color:"text-danger-600 hover:text-danger-600"},[dt.SUCCESS]:{icon:Oy,color:"text-success-600 hover:text-success-600"}},s=c=>{c.preventDefault(),c.stopPropagation(),t()};return x.jsxs(je,{size:"smallCollapse",category:"link",onMouseOver:e,onClick:s,className:Ee("relative",(a=i[r])==null?void 0:a.color),title:"View comments",children:[x.jsx("div",{className:"relative flex items-center justify-center",children:o?x.jsxs(x.Fragment,{children:[x.jsx(be,{icon:OC,size:"lg"}),x.jsx(be,{icon:(l=i[r])==null?void 0:l.icon,className:"font-bold absolute left-1/2 -translate-x-1/2 top-0.5",size:"xs",color:"white"})]}):x.jsx(be,{icon:XS,size:"lg"})}),o&&x.jsx("span",{className:"absolute top-0.5 -right-0 flex h-3 w-3 items-center justify-center rounded-full bg-primary-600 text-[10px] text-white",children:n})]})},p4=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:xv,setPrototypeOf:Hh,isFrozen:h4,getPrototypeOf:m4,getOwnPropertyDescriptor:g4}=Object;let{freeze:Nt,seal:Gt,create:ef}=Object,{apply:tf,construct:nf}=typeof Reflect<"u"&&Reflect;Nt||(Nt=function(t){return t});Gt||(Gt=function(t){return t});tf||(tf=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)});nf||(nf=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 wa=Ot(Array.prototype.forEach),y4=Ot(Array.prototype.lastIndexOf),qh=Ot(Array.prototype.pop),ss=Ot(Array.prototype.push),v4=Ot(Array.prototype.splice),za=Ot(String.prototype.toLowerCase),Ic=Ot(String.prototype.toString),Lc=Ot(String.prototype.match),as=Ot(String.prototype.replace),b4=Ot(String.prototype.indexOf),x4=Ot(String.prototype.trim),tn=Ot(Object.prototype.hasOwnProperty),Ct=Ot(RegExp.prototype.test),ls=w4(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 tf(e,t,r)}}function w4(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return nf(e,n)}}function Ce(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:za;Hh&&Hh(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(h4(t)||(t[r]=i),o=i)}e[o]=!0}return e}function A4(e){for(let t=0;t<e.length;t++)tn(e,t)||(e[t]=null);return e}function hn(e){const t=ef(null);for(const[n,r]of xv(e))tn(e,n)&&(Array.isArray(r)?t[n]=A4(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=hn(r):t[n]=r);return t}function cs(e,t){for(;e!==null;){const r=g4(e,t);if(r){if(r.get)return Ot(r.get);if(typeof r.value=="function")return Ot(r.value)}e=m4(e)}function n(){return null}return n}const Vh=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"]),Rc=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"]),Dc=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"]),C4=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"]),Fc=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"]),_4=Nt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Yh=Nt(["#text"]),Qh=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"]),jc=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"]),Gh=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"]),Aa=Nt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),E4=Gt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),S4=Gt(/<%[\w\W]*|[\w\W]*%>/gm),k4=Gt(/\$\{[\w\W]*/gm),T4=Gt(/^data-[\-\w.\u00B7-\uFFFF]+$/),N4=Gt(/^aria-[\-\w]+$/),wv=Gt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),O4=Gt(/^(?:\w+script|data):/i),P4=Gt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Av=Gt(/^html$/i),M4=Gt(/^[a-z][.\w]*(-[.\w]+)+$/i);var Zh=Object.freeze({__proto__:null,ARIA_ATTR:N4,ATTR_WHITESPACE:P4,CUSTOM_ELEMENT:M4,DATA_ATTR:T4,DOCTYPE_NAME:Av,ERB_EXPR:S4,IS_ALLOWED_URI:wv,IS_SCRIPT_OR_DATA:O4,MUSTACHE_EXPR:E4,TMPLIT_EXPR:k4});const us={element:1,text:3,progressingInstruction:7,comment:8,document:9},I4=function(){return typeof window>"u"?null:window},L4=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}},Jh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Cv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I4();const t=de=>Cv(de);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==us.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:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:d,trustedTypes:p}=e,h=l.prototype,g=cs(h,"cloneNode"),m=cs(h,"remove"),y=cs(h,"nextSibling"),v=cs(h,"childNodes"),b=cs(h,"parentNode");if(typeof s=="function"){const de=n.createElement("template");de.content&&de.content.ownerDocument&&(n=de.content.ownerDocument)}let A,w="";const{implementation:_,createNodeIterator:E,createDocumentFragment:S,getElementsByTagName:O}=n,{importNode:P}=r;let I=Jh();t.isSupported=typeof xv=="function"&&typeof b=="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}=Zh;let{IS_ALLOWED_URI:L}=Zh,F=null;const K=Ce({},[...Vh,...Rc,...Dc,...Fc,...Yh]);let B=null;const J=Ce({},[...Qh,...jc,...Gh,...Aa]);let V=Object.seal(ef(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 he=Object.seal(ef(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ye=!0,me=!0,ze=!1,G=!0,qe=!1,zt=!0,mt=!1,Ho=!1,ns=!1,Mn=!1,Hr=!1,qo=!1,se=!0,De=!1;const lt="user-content-";let Mt=!0,et=!1,Kt={},At=null;const cr=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 Vo=null;const $t=Ce({},["audio","video","img","source","image","track"]);let qr=null;const ur=Ce({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vr="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",In="http://www.w3.org/1999/xhtml";let Yo=In,sc=!1,ac=null;const p1=Ce({},[Vr,fr,In],Ic);let la=Ce({},["mi","mo","mn","ms","mtext"]),ca=Ce({},["annotation-xml"]);const h1=Ce({},["title","style","font","a","script"]);let rs=null;const m1=["application/xhtml+xml","text/html"],g1="text/html";let Qe=null,Qo=null;const y1=n.createElement("form"),up=function(N){return N instanceof RegExp||N instanceof Function},lc=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Qo&&Qo===N)){if((!N||typeof N!="object")&&(N={}),N=hn(N),rs=m1.indexOf(N.PARSER_MEDIA_TYPE)===-1?g1:N.PARSER_MEDIA_TYPE,Qe=rs==="application/xhtml+xml"?Ic:za,F=tn(N,"ALLOWED_TAGS")?Ce({},N.ALLOWED_TAGS,Qe):K,B=tn(N,"ALLOWED_ATTR")?Ce({},N.ALLOWED_ATTR,Qe):J,ac=tn(N,"ALLOWED_NAMESPACES")?Ce({},N.ALLOWED_NAMESPACES,Ic):p1,qr=tn(N,"ADD_URI_SAFE_ATTR")?Ce(hn(ur),N.ADD_URI_SAFE_ATTR,Qe):ur,Vo=tn(N,"ADD_DATA_URI_TAGS")?Ce(hn($t),N.ADD_DATA_URI_TAGS,Qe):$t,At=tn(N,"FORBID_CONTENTS")?Ce({},N.FORBID_CONTENTS,Qe):cr,ee=tn(N,"FORBID_TAGS")?Ce({},N.FORBID_TAGS,Qe):hn({}),te=tn(N,"FORBID_ATTR")?Ce({},N.FORBID_ATTR,Qe):hn({}),Kt=tn(N,"USE_PROFILES")?N.USE_PROFILES:!1,ye=N.ALLOW_ARIA_ATTR!==!1,me=N.ALLOW_DATA_ATTR!==!1,ze=N.ALLOW_UNKNOWN_PROTOCOLS||!1,G=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,qe=N.SAFE_FOR_TEMPLATES||!1,zt=N.SAFE_FOR_XML!==!1,mt=N.WHOLE_DOCUMENT||!1,Mn=N.RETURN_DOM||!1,Hr=N.RETURN_DOM_FRAGMENT||!1,qo=N.RETURN_TRUSTED_TYPE||!1,ns=N.FORCE_BODY||!1,se=N.SANITIZE_DOM!==!1,De=N.SANITIZE_NAMED_PROPS||!1,Mt=N.KEEP_CONTENT!==!1,et=N.IN_PLACE||!1,L=N.ALLOWED_URI_REGEXP||wv,Yo=N.NAMESPACE||In,la=N.MATHML_TEXT_INTEGRATION_POINTS||la,ca=N.HTML_INTEGRATION_POINTS||ca,V=N.CUSTOM_ELEMENT_HANDLING||{},N.CUSTOM_ELEMENT_HANDLING&&up(N.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=N.CUSTOM_ELEMENT_HANDLING.tagNameCheck),N.CUSTOM_ELEMENT_HANDLING&&up(N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),qe&&(me=!1),Hr&&(Mn=!0),Kt&&(F=Ce({},Yh),B=[],Kt.html===!0&&(Ce(F,Vh),Ce(B,Qh)),Kt.svg===!0&&(Ce(F,Rc),Ce(B,jc),Ce(B,Aa)),Kt.svgFilters===!0&&(Ce(F,Dc),Ce(B,jc),Ce(B,Aa)),Kt.mathMl===!0&&(Ce(F,Fc),Ce(B,Gh),Ce(B,Aa))),N.ADD_TAGS&&(typeof N.ADD_TAGS=="function"?he.tagCheck=N.ADD_TAGS:(F===K&&(F=hn(F)),Ce(F,N.ADD_TAGS,Qe))),N.ADD_ATTR&&(typeof N.ADD_ATTR=="function"?he.attributeCheck=N.ADD_ATTR:(B===J&&(B=hn(B)),Ce(B,N.ADD_ATTR,Qe))),N.ADD_URI_SAFE_ATTR&&Ce(qr,N.ADD_URI_SAFE_ATTR,Qe),N.FORBID_CONTENTS&&(At===cr&&(At=hn(At)),Ce(At,N.FORBID_CONTENTS,Qe)),N.ADD_FORBID_CONTENTS&&(At===cr&&(At=hn(At)),Ce(At,N.ADD_FORBID_CONTENTS,Qe)),Mt&&(F["#text"]=!0),mt&&Ce(F,["html","head","body"]),F.table&&(Ce(F,["tbody"]),delete ee.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw ls('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ls('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=N.TRUSTED_TYPES_POLICY,w=A.createHTML("")}else A===void 0&&(A=L4(p,o)),A!==null&&typeof w=="string"&&(w=A.createHTML(""));Nt&&Nt(N),Qo=N}},fp=Ce({},[...Rc,...Dc,...C4]),dp=Ce({},[...Fc,..._4]),v1=function(N){let q=b(N);(!q||!q.tagName)&&(q={namespaceURI:Yo,tagName:"template"});const ce=za(N.tagName),Ue=za(q.tagName);return ac[N.namespaceURI]?N.namespaceURI===fr?q.namespaceURI===In?ce==="svg":q.namespaceURI===Vr?ce==="svg"&&(Ue==="annotation-xml"||la[Ue]):!!fp[ce]:N.namespaceURI===Vr?q.namespaceURI===In?ce==="math":q.namespaceURI===fr?ce==="math"&&ca[Ue]:!!dp[ce]:N.namespaceURI===In?q.namespaceURI===fr&&!ca[Ue]||q.namespaceURI===Vr&&!la[Ue]?!1:!dp[ce]&&(h1[ce]||!fp[ce]):!!(rs==="application/xhtml+xml"&&ac[N.namespaceURI]):!1},pn=function(N){ss(t.removed,{element:N});try{b(N).removeChild(N)}catch{m(N)}},Yr=function(N,q){try{ss(t.removed,{attribute:q.getAttributeNode(N),from:q})}catch{ss(t.removed,{attribute:null,from:q})}if(q.removeAttribute(N),N==="is")if(Mn||Hr)try{pn(q)}catch{}else try{q.setAttribute(N,"")}catch{}},pp=function(N){let q=null,ce=null;if(ns)N="<remove></remove>"+N;else{const Ve=Lc(N,/^[\r\n\t ]+/);ce=Ve&&Ve[0]}rs==="application/xhtml+xml"&&Yo===In&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Ue=A?A.createHTML(N):N;if(Yo===In)try{q=new d().parseFromString(Ue,rs)}catch{}if(!q||!q.documentElement){q=_.createDocument(Yo,"template",null);try{q.documentElement.innerHTML=sc?w:Ue}catch{}}const gt=q.body||q.documentElement;return N&&ce&>.insertBefore(n.createTextNode(ce),gt.childNodes[0]||null),Yo===In?O.call(q,mt?"html":"body")[0]:mt?q.documentElement:gt},hp=function(N){return E.call(N.ownerDocument||N,N,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},cc=function(N){return N instanceof f&&(typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||!(N.attributes instanceof u)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function")},mp=function(N){return typeof a=="function"&&N instanceof a};function Ln(de,N,q){wa(de,ce=>{ce.call(t,N,q,Qo)})}const gp=function(N){let q=null;if(Ln(I.beforeSanitizeElements,N,null),cc(N))return pn(N),!0;const ce=Qe(N.nodeName);if(Ln(I.uponSanitizeElement,N,{tagName:ce,allowedTags:F}),zt&&N.hasChildNodes()&&!mp(N.firstElementChild)&&Ct(/<[/\w!]/g,N.innerHTML)&&Ct(/<[/\w!]/g,N.textContent)||N.nodeType===us.progressingInstruction||zt&&N.nodeType===us.comment&&Ct(/<[/\w]/g,N.data))return pn(N),!0;if(!(he.tagCheck instanceof Function&&he.tagCheck(ce))&&(!F[ce]||ee[ce])){if(!ee[ce]&&vp(ce)&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,ce)||V.tagNameCheck instanceof Function&&V.tagNameCheck(ce)))return!1;if(Mt&&!At[ce]){const Ue=b(N)||N.parentNode,gt=v(N)||N.childNodes;if(gt&&Ue){const Ve=gt.length;for(let It=Ve-1;It>=0;--It){const Rn=g(gt[It],!0);Rn.__removalCount=(N.__removalCount||0)+1,Ue.insertBefore(Rn,y(N))}}}return pn(N),!0}return N instanceof l&&!v1(N)||(ce==="noscript"||ce==="noembed"||ce==="noframes")&&Ct(/<\/no(script|embed|frames)/i,N.innerHTML)?(pn(N),!0):(qe&&N.nodeType===us.text&&(q=N.textContent,wa([W,j,z],Ue=>{q=as(q,Ue," ")}),N.textContent!==q&&(ss(t.removed,{element:N.cloneNode()}),N.textContent=q)),Ln(I.afterSanitizeElements,N,null),!1)},yp=function(N,q,ce){if(se&&(q==="id"||q==="name")&&(ce in n||ce in y1))return!1;if(!(me&&!te[q]&&Ct(Y,q))){if(!(ye&&Ct(Q,q))){if(!(he.attributeCheck instanceof Function&&he.attributeCheck(q,N))){if(!B[q]||te[q]){if(!(vp(N)&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,N)||V.tagNameCheck instanceof Function&&V.tagNameCheck(N))&&(V.attributeNameCheck instanceof RegExp&&Ct(V.attributeNameCheck,q)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(q,N))||q==="is"&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,ce)||V.tagNameCheck instanceof Function&&V.tagNameCheck(ce))))return!1}else if(!qr[q]){if(!Ct(L,as(ce,M,""))){if(!((q==="src"||q==="xlink:href"||q==="href")&&N!=="script"&&b4(ce,"data:")===0&&Vo[N])){if(!(ze&&!Ct(oe,as(ce,M,"")))){if(ce)return!1}}}}}}}return!0},vp=function(N){return N!=="annotation-xml"&&Lc(N,re)},bp=function(N){Ln(I.beforeSanitizeAttributes,N,null);const{attributes:q}=N;if(!q||cc(N))return;const ce={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let Ue=q.length;for(;Ue--;){const gt=q[Ue],{name:Ve,namespaceURI:It,value:Rn}=gt,Go=Qe(Ve),uc=Rn;let ct=Ve==="value"?uc:x4(uc);if(ce.attrName=Go,ce.attrValue=ct,ce.keepAttr=!0,ce.forceKeepAttr=void 0,Ln(I.uponSanitizeAttribute,N,ce),ct=ce.attrValue,De&&(Go==="id"||Go==="name")&&(Yr(Ve,N),ct=lt+ct),zt&&Ct(/((--!?|])>)|<\/(style|title|textarea)/i,ct)){Yr(Ve,N);continue}if(Go==="attributename"&&Lc(ct,"href")){Yr(Ve,N);continue}if(ce.forceKeepAttr)continue;if(!ce.keepAttr){Yr(Ve,N);continue}if(!G&&Ct(/\/>/i,ct)){Yr(Ve,N);continue}qe&&wa([W,j,z],wp=>{ct=as(ct,wp," ")});const xp=Qe(N.nodeName);if(!yp(xp,Go,ct)){Yr(Ve,N);continue}if(A&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!It)switch(p.getAttributeType(xp,Go)){case"TrustedHTML":{ct=A.createHTML(ct);break}case"TrustedScriptURL":{ct=A.createScriptURL(ct);break}}if(ct!==uc)try{It?N.setAttributeNS(It,Ve,ct):N.setAttribute(Ve,ct),cc(N)?pn(N):qh(t.removed)}catch{Yr(Ve,N)}}Ln(I.afterSanitizeAttributes,N,null)},b1=function de(N){let q=null;const ce=hp(N);for(Ln(I.beforeSanitizeShadowDOM,N,null);q=ce.nextNode();)Ln(I.uponSanitizeShadowNode,q,null),gp(q),bp(q),q.content instanceof i&&de(q.content);Ln(I.afterSanitizeShadowDOM,N,null)};return t.sanitize=function(de){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,ce=null,Ue=null,gt=null;if(sc=!de,sc&&(de="<!-->"),typeof de!="string"&&!mp(de))if(typeof de.toString=="function"){if(de=de.toString(),typeof de!="string")throw ls("dirty is not a string, aborting")}else throw ls("toString is not a function");if(!t.isSupported)return de;if(Ho||lc(N),t.removed=[],typeof de=="string"&&(et=!1),et){if(de.nodeName){const Rn=Qe(de.nodeName);if(!F[Rn]||ee[Rn])throw ls("root node is forbidden and cannot be sanitized in-place")}}else if(de instanceof a)q=pp("<!---->"),ce=q.ownerDocument.importNode(de,!0),ce.nodeType===us.element&&ce.nodeName==="BODY"||ce.nodeName==="HTML"?q=ce:q.appendChild(ce);else{if(!Mn&&!qe&&!mt&&de.indexOf("<")===-1)return A&&qo?A.createHTML(de):de;if(q=pp(de),!q)return Mn?null:qo?w:""}q&&ns&&pn(q.firstChild);const Ve=hp(et?de:q);for(;Ue=Ve.nextNode();)gp(Ue),bp(Ue),Ue.content instanceof i&&b1(Ue.content);if(et)return de;if(Mn){if(Hr)for(gt=S.call(q.ownerDocument);q.firstChild;)gt.appendChild(q.firstChild);else gt=q;return(B.shadowroot||B.shadowrootmode)&&(gt=P.call(r,gt,!0)),gt}let It=mt?q.outerHTML:q.innerHTML;return mt&&F["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&Ct(Av,q.ownerDocument.doctype.name)&&(It="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
|
|
593
|
+
`+It),qe&&wa([W,j,z],Rn=>{It=as(It,Rn," ")}),A&&qo?A.createHTML(It):It},t.setConfig=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};lc(de),Ho=!0},t.clearConfig=function(){Qo=null,Ho=!1},t.isValidAttribute=function(de,N,q){Qo||lc({});const ce=Qe(de),Ue=Qe(N);return yp(ce,Ue,q)},t.addHook=function(de,N){typeof N=="function"&&ss(I[de],N)},t.removeHook=function(de,N){if(N!==void 0){const q=y4(I[de],N);return q===-1?void 0:v4(I[de],q,1)[0]}return qh(I[de])},t.removeHooks=function(de){I[de]=[]},t.removeAllHooks=function(){I=Jh()},t}var rf=Cv();const R4="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",of=e=>btoa(String.fromCharCode(...new TextEncoder().encode(e))),zc=e=>atob(e),D4=async({username:e,action:t,taskInstanceId:n,timezone:r,commentId:o,comment:i,commentType:s,hasAssets:a,taskVerified:l})=>{const c={...t?{action:t}:{},taskInstanceId:n,taskVerified:l,timezone:r,commentId:o,...i?{comment:of(i)}:{},commentType:s,hasAssets:a},u=new Headers;return u.append("Content-Type","application/json"),u.append("username",e||""),await(await fetch(`${nr}/manage-comment`,{method:"POST",headers:u,body:JSON.stringify(c)})).json()},_v=e=>{switch(e==null?void 0:e.toLowerCase()){case"pdf":case"application/pdf":return YC;case"xls":case"xlt":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xml":case"xlam":case"xla":case"xlw":case"xlr":return sh;case"csv":return LC;case"dif":case"fods":case"numbers":case"numbers-tef":case"ods":case"ots":case"sxc":case"tsv":return sh;case"doc":case"docx":case"docm ":case"dot":case"dotx":case"dotm":case"docb":return zC;case"aba":case"md":case"odt":case"ott":case"rtf":case"txt":case"wps":return IC;case"odp":case"otp":case"pot":case"potm":case"potx":case"pps":case"ppsm":case"ppsx":case"ppt":case"pptm":case"pptx":return $C;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 VC;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 KC;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 HC;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 BC;default:return ZC}},F4=(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..."}}},$a=e=>e.assetPath.includes("blob:")?e.assetPath:j4({assetPath:e.assetPath,mimeType:e.mimeType,fileName:e.name}),j4=({assetPath:e,mimeType:t,fileName:n})=>e?`${nr}/comment-attachment/?path=${e}&mimeType=${t}&fileName=${n}`:"",hd=e=>e.startsWith("image/"),z4=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)}}),$4=(e,t)=>e.type?e.type:(t==null?void 0:t.toLowerCase())==="msg"?"application/vnd.ms-outlook":"application/octet-stream",U4=async(e,t,n,r)=>{var h;const o=e.name.split(".").pop(),i=$4(e,o),s=await z4(e),a=((h=e.name)==null?void 0:h.split("."))||[];a.pop();const l=a.join("_").replaceAll(".","_")||`file_${Date.now()}.${o}`,c=s.length,u={assetType:"open_playbook_task_comment",commentId:t,fileEncoded:s,fileExtension:o,fileMimetype:i,fileName:l,fileSize:c,sequenceOrder:n},f=new Headers;return f.append("Content-Type","application/json"),f.append("username",r||""),await(await fetch(`${nr}/upload-comment-asset`,{method:"POST",headers:f,body:JSON.stringify(u)})).json()},Xh=async({taskInstanceId:e,username:t})=>{const n=new Headers;return n.append("Content-Type","application/json"),n.append("username",t),await(await fetch(`${nr}/comments/${e}`,{method:"GET",headers:n})).json()},To=e=>["comments",+e],B4=({taskInstanceId:e,enabled:t,username:n})=>{var a;const{queryClient:r}=Fr(),o={queryKey:To(e),queryFn:async()=>await Xh({taskInstanceId:e.toString(),username:n}),enabled:t&&!!n,staleTime:1/0},i=_l(o,r),s=l=>{r.prefetchQuery({...o,queryKey:To(l),queryFn:async()=>await Xh({taskInstanceId:l.toString(),username:n})})};return{comments:((a=i.data)==null?void 0:a.taskComments)||[],...i,isLoading:i.isLoading,prefetchQuery:s}},W4=(e,t,n,r)=>{const o=To(t),i=e.getQueryData(o);e.setQueryData(o,{taskComments:[...(i==null?void 0:i.taskComments)||[],r],playbookInstanceId:n,taskInstanceId:t})},K4=(e,t,n)=>{const r=To(t),o=e.getQueryData(r);if(o){const i=o.taskComments.filter(s=>s.commentId!==n);e.setQueryData(r,{...o,taskComments:i})}},H4=(e,t,n)=>{const r=To(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})}},q4=({playbookInstanceId:e})=>{const{queryClient:t}=Fr(),n=Qf({mutationFn:async o=>{const{action:i,taskInstanceId:s,timezone:a,commentId:l,comment:c,commentType:u,hasAssets:f,attachments:d,username:p,taskVerified:h}=o,g=await D4({username:p,...i==="delete"?{action:i}:{},taskInstanceId:s,timezone:a,commentId:l,comment:c,commentType:u,hasAssets:f,taskVerified:h});return g.commentId&&f&&d&&await Promise.all(d.map(m=>U4(m.originFile,g.commentId,m.sequenceOrder,p))),g},onMutate:async o=>{var f;const{action:i,taskInstanceId:s}=o,a=["comments",s],l=`temp-${crypto.randomUUID()}`,c=`temp-asset-${crypto.randomUUID()}`;await t.cancelQueries({queryKey:a});const u=t.getQueryData(a);return i==="delete"&&o.commentId&&K4(t,s,o.commentId),i==="add"&&W4(t,s,+e,{commentId:l,author:o.username,comment:of(o.comment??""),createdDate:new Date().toISOString(),edited:!1,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentType:o.commentType||"Info",taskAssets:((f=o.attachments)==null?void 0:f.map(d=>({assetId:c,assetPath:d.url,mimeType:d.mimeType,name:d.name,url:d.url,uploading:!0})))??[]}),i==="edit"&&o.commentId&&H4(t,s,{author:o.username,comment:of(o.comment??""),createdDate:new Date().toISOString(),edited:!0,taskVerified:o.taskVerified,hasAssets:!!o.hasAssets,commentId:o.commentId,commentType:o.commentType||"Info"}),{previousComments:u,taskInstanceId:s}},onError:(o,i,s)=>{s!=null&&s.previousComments&&t.setQueryData(To(s.taskInstanceId),s.previousComments)},onSettled:(o,i,s)=>{t.invalidateQueries({queryKey:To(s.taskInstanceId)}),t.invalidateQueries({queryKey:["playbook",+e]})}});return{manageComment:async o=>n.mutateAsync(o),...n}};function Ua(e){return e?e.replace(/<[^>]*>/g,"").replace(/ /g," ").trim().length===0:!0}const Ev="carousel",Sv="controller",V4="navigation",Y4="no-scroll",md="portal",Q4="root",kv="toolbar",em="zoom",$c="loading",Uc="error",Bc="complete",G4="placeholder",Z4=e=>`active-slide-${e}`,J4="fullsize",gd="flex_center",X4="no_scroll",Tv="no_scroll_padding",yd="slide",Nv="slide_wrapper",ek="slide_wrapper_interactive",Xr="prev",eo="next",tm="swipe",Ii="close",Ov="onPointerDown",Pv="onPointerMove",Mv="onPointerUp",Iv="onPointerLeave",Lv="onPointerCancel",vd="onKeyDown",tk="onKeyUp",bd="onWheel",nk="Escape",rk="ArrowLeft",ok="ArrowRight",ik="button",sf="icon",Rv="contain",nm="cover",Dv="Unknown action type",Fv="yarl__";function En(...e){return[...e].filter(Boolean).join(" ")}function Se(e){return`${Fv}${e}`}function Dt(e){return`--${Fv}${e}`}function Xs(e,t){return`${e}${t?`_${t}`:""}`}function xd(e){return t=>Xs(e,t)}function Li(e,t){var n;return(n=e==null?void 0:e[t])!==null&&n!==void 0?n:t}function sk(e,t,n){return Li(e,"{index} of {total}").replace(/\{index}/g,`${Ed(n,t.length)+1}`).replace(/\{total}/g,`${t.length}`)}function wd(...e){return()=>{e.forEach(t=>{t()})}}function sr(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 Ad(){return typeof window<"u"}function Cd(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}function qi(e){return e.type===void 0||e.type==="image"}function _d(e,t){return e.imageFit===nm||e.imageFit!==Rv&&t===nm}function Bl(e){return typeof e=="string"?Number.parseInt(e,10):e}function il(e){if(typeof e=="number")return{pixel:e};if(typeof e=="string"){const t=Bl(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function ak(e,t){const n=il(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 lk(){return(Ad()?window==null?void 0:window.devicePixelRatio:void 0)||1}function Ed(e,t){return t>0?(e%t+t)%t:0}function jv(e){return e.length>0}function zv(e,t){return e[Ed(t,e.length)]}function af(e,t){return jv(e)?zv(e,t):void 0}function ck(e){return qi(e)?e.src:void 0}function uk(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 fk(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}const dk=Number(C.version.split(".")[0])>=19;function pk(e){return{inert:dk?e:e?"":void 0}}function hk(e){e.scrollTop}const lf={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[Ii]},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:Rv,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 zr(e,t){return{name:e,component:t}}function nt(e,t){return{module:e,children:t}}function $v(e,t,n){return e.module.name===t?n(e):e.children?[nt(e.module,e.children.flatMap(r=>{var o;return(o=$v(r,t,n))!==null&&o!==void 0?o:[]}))]:[e]}function Xo(e,t,n){return e.flatMap(r=>{var o;return(o=$v(r,t,n))!==null&&o!==void 0?o:[]})}function mk(e,t=[],n=[]){let r=e;const o=p=>{const h=[...r];for(;h.length>0;){const g=h.pop();if((g==null?void 0:g.module.name)===p)return!0;g!=null&&g.children&&h.push(...g.children)}return!1},i=(p,h)=>{if(p===""){r=[nt(h,r)];return}r=Xo(r,p,g=>[nt(h,[g])])},s=(p,h)=>{r=Xo(r,p,g=>[nt(g.module,[nt(h,g.children)])])},a=(p,h,g)=>{r=Xo(r,p,m=>{var y;return[nt(m.module,[...g?[nt(h)]:[],...(y=m.children)!==null&&y!==void 0?y:[],...g?[]:[nt(h)]])]})},l=(p,h,g)=>{r=Xo(r,p,m=>[...g?[nt(h)]:[],m,...g?[]:[nt(h)]])},c=p=>{s(Sv,p)},u=(p,h)=>{r=Xo(r,p,g=>[nt(h,g.children)])},f=p=>{r=Xo(r,p,h=>h.children)},d=p=>{n.push(p)};return t.forEach(p=>{p({contains:o,addParent:i,append:s,addChild:a,addSibling:l,addModule:c,replace:u,remove:f,augment:d})}),{config:r,augmentation:p=>n.reduce((h,g)=>g(h),p)}}const Uv=C.createContext(null),Bv=sr("useA11yContext","A11yContext",Uv);function gk({children:e}){const[t,n]=C.useState(!1),[r,o]=C.useState(!1),i=C.useMemo(()=>({focusWithin:t,trackFocusWithin:(a,l)=>{const c=u=>f=>{var d;f.currentTarget.contains(f.relatedTarget)||n(u),(d=u?a:l)===null||d===void 0||d(f)};return{onFocus:c(!0),onBlur:c(!1)}},autoPlaying:r,setAutoPlaying:o}),[t,r]);return C.createElement(Uv.Provider,{value:i},e)}const Wv=C.createContext(null),Wl=sr("useDocument","DocumentContext",Wv);function yk({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 Kv=C.createContext(null),Kl=sr("useEvents","EventsContext",Kv);function vk({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 l;(l=t[s])===null||l===void 0||l.splice(0,t[s].length,...t[s].filter(c=>c!==a))};return{publish:(...[s,a])=>{var l;(l=t[s])===null||l===void 0||l.forEach(c=>c(a))},subscribe:(s,a)=>(t[s]||(t[s]=[]),t[s].push(a),()=>r(s,a)),unsubscribe:r}},[t]);return C.createElement(Kv.Provider,{value:n},e)}const Hv=C.createContext(null),Jt=sr("useLightboxProps","LightboxPropsContext",Hv);function bk({children:e,...t}){return C.createElement(Hv.Provider,{value:t},e)}const qv=C.createContext(null),$r=sr("useLightboxState","LightboxStateContext",qv),Vv=C.createContext(null),xk=sr("useLightboxDispatch","LightboxDispatchContext",Vv);function wk(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(t==null?void 0:t.increment)||0,o=e.globalIndex+r,i=Ed(o,n.length),s=af(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:af(t.slides,t.index)}:e;default:throw new Error(Dv)}}function Ak({slides:e,index:t,children:n}){const[r,o]=C.useReducer(wk,{slides:e,currentIndex:t,globalIndex:t,currentSlide:af(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(Vv.Provider,{value:o},C.createElement(qv.Provider,{value:i},n))}const Yv=C.createContext(null),Hl=sr("useTimeouts","TimeoutsContext",Yv);function Ck({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 l=window.setTimeout(()=>{r(l),s()},a);return t.push(l),l},clearTimeout:s=>{s!==void 0&&(r(s),window.clearTimeout(s))}}},[t]);return C.createElement(Yv.Provider,{value:n},e)}const Sd=C.forwardRef(function({label:t,className:n,icon:r,renderIcon:o,onClick:i,style:s,...a},l){const{styles:c,labels:u}=Jt(),f=Li(u,t);return C.createElement("button",{ref:l,type:"button",title:f,"aria-label":f,className:En(Se(ik),n),onClick:i,style:{...s,...c.button},...a},o?o():C.createElement(r,{className:Se(sf),style:c.icon}))});function _k(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 Uo(e,t){return _k(e,C.createElement("g",{fill:"currentColor"},C.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const Ek=Uo("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"})),Sk=Uo("Previous",C.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),kk=Uo("Next",C.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Tk=Uo("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)`})))),Nk=Uo("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"})),Nn=Ad()?C.useLayoutEffect:C.useEffect;function kd(){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 Ok(e){let t=0,n=0,r=0;const i=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(i){const s=i[1].split(",").map(Bl);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 rm(e,t){const n=C.useRef(void 0),r=C.useRef(void 0),o=kd();return Nn(()=>{var i,s,a;if(e.current&&n.current!==void 0&&!o){const{keyframes:l,duration:c,easing:u,onfinish:f}=t(n.current,e.current.getBoundingClientRect(),Ok(e.current))||{};if(l&&c){(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,l,{duration:c,easing:u})}catch(d){console.error(d)}r.current&&(r.current.onfinish=()=>{r.current=void 0,f==null||f()})}}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 Qv(){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),l=c=>parseFloat(c)||0;r({width:Math.round(i.clientWidth-l(a.paddingLeft)-l(a.paddingRight)),height:Math.round(i.clientHeight-l(a.paddingTop)-l(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 Ba(){const e=C.useRef(void 0),{setTimeout:t,clearTimeout:n}=Hl();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 Nn(()=>{t.current=e}),C.useCallback((...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function om(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function cf(e,t){return C.useMemo(()=>e==null&&t==null?null:n=>{om(e,n),om(t,n)},[e,t])}function Pk(e,t=!1){const n=C.useRef(!1);Nn(()=>{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 Td(){const[e,t]=C.useState(!1);return Nn(()=>{t(window.getComputedStyle(window.document.documentElement).direction==="rtl")},[]),e}function Mk(){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(Ov,o),onPointerMove:o=>t(Pv,o),onPointerUp:o=>t(Mv,o),onPointerLeave:o=>t(Iv,o),onPointerCancel:o=>t(Lv,o),onKeyDown:o=>t(vd,o),onKeyUp:o=>t(tk,o),onWheel:o=>t(bd,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 im(e,t){const n=C.useRef(0),r=Ba(),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 Wc=xd("slide"),Kc=xd("slide_image");function sl({slide:e,offset:t,render:n,rect:r,imageFit:o,imageProps:i,onClick:s,onLoad:a,onError:l,style:c}){var u,f,d,p,h,g,m,y;const[v,b]=C.useState($c),{publish:A}=Kl(),{setTimeout:w}=Hl(),_=C.useRef(null);C.useEffect(()=>{t===0&&A(Z4(v))},[t,v,A]);const E=Le(K=>{("decode"in K?K.decode():Promise.resolve()).catch(()=>{}).then(()=>{K.parentNode&&(b(Bc),w(()=>{a==null||a(K)},0))})}),S=C.useCallback(K=>{_.current=K,K!=null&&K.complete&&E(K)},[E]),O=C.useCallback(K=>{E(K.currentTarget)},[E]),P=Le(()=>{b(Uc),l==null||l()}),I=_d(e,o),W=(K,B)=>Number.isFinite(K)?K:B,j=W(Math.max(...((f=(u=e.srcSet)===null||u===void 0?void 0:u.map(K=>K.width))!==null&&f!==void 0?f:[]).concat(e.width?[e.width]:[]).filter(Boolean)),((d=_.current)===null||d===void 0?void 0:d.naturalWidth)||0),z=W(Math.max(...((h=(p=e.srcSet)===null||p===void 0?void 0:p.map(K=>K.height))!==null&&h!==void 0?h:[]).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=(m=e.srcSet)===null||m===void 0?void 0:m.sort((K,B)=>K.width-B.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&&Ad()?`${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:S,onLoad:O,onError:P,onClick:s,draggable:!1,className:En(Se(Kc()),I&&Se(Kc("cover")),v!==Bc&&Se(Kc("loading")),L),style:{...Y,...c,...re},...F,alt:(y=e.alt)!==null&&y!==void 0?y:"",sizes:M,srcSet:Q,src:e.src}),v!==Bc&&C.createElement("div",{className:Se(Wc(G4))},v===$c&&(n!=null&&n.iconLoading?n.iconLoading():C.createElement(Tk,{className:En(Se(sf),Se(Wc($c)))})),v===Uc&&(n!=null&&n.iconError?n.iconError():C.createElement(Nk,{className:En(Se(sf),Se(Wc(Uc)))}))))}const Ik=C.forwardRef(function({className:t,children:n,onFocus:r,onBlur:o,...i},s){const a=C.useRef(null),{trackFocusWithin:l}=Bv();return C.createElement(yk,{nodeRef:a},C.createElement("div",{ref:cf(s,a),className:En(Se("root"),t),...l(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 Gv(e,t,n,r,o){C.useEffect(()=>o?()=>{}:wd(e(Ov,t),e(Pv,n),e(Mv,r),e(Iv,r),e(Lv,r)),[e,t,n,r,o])}var nn;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"})(nn||(nn={}));const Hc=30;function Lk({disableSwipeNavigation:e,closeOnBackdropClick:t},n,r,o,i,s,a,l,c,u,f,d,p,h,g,m){const y=C.useRef(0),v=C.useRef([]),b=C.useRef(void 0),A=C.useRef(0),w=C.useRef(nn.NONE),_=C.useCallback(j=>{b.current===j.pointerId&&(b.current=void 0,w.current=nn.NONE);const z=v.current;z.splice(0,z.length,...z.filter(Y=>Y.pointerId!==j.pointerId))},[]),E=C.useCallback(j=>{_(j),j.persist(),v.current.push(j)},[_]),S=C.useCallback(j=>v.current.find(({pointerId:z})=>j.pointerId===z),[]),O=Le(j=>{E(j)}),P=(j,z)=>f&&j>z||u&&j<-z,I=Le(j=>{const z=S(j);if(z)if(b.current===j.pointerId){const Y=Date.now()-A.current,Q=y.current;w.current===nn.SWIPE?Math.abs(Q)>.3*o||Math.abs(Q)>5&&Y<i?l(Q,Y):c(Q):w.current===nn.PULL&&(P(Q,2*Hc)?h(Q,Y):g(Q)),y.current=0,w.current=nn.NONE}else{const{target:Y}=j;t&&Y instanceof HTMLElement&&Y===z.target&&(Y.classList.contains(Se(yd))||Y.classList.contains(Se(Nv)))&&m()}_(j)}),W=Le(j=>{const z=S(j);if(z){const Y=b.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(b.current===void 0){const M=re=>{E(j),b.current=j.pointerId,A.current=Date.now(),w.current=re};Math.abs(Q)>Math.abs(oe)&&Math.abs(Q)>Hc&&r(Q)?e||(M(nn.SWIPE),s()):Math.abs(oe)>Math.abs(Q)&&P(oe,Hc)&&(M(nn.PULL),d())}else Y&&(w.current===nn.SWIPE?(y.current=Q,a(Q)):w.current===nn.PULL&&(y.current=oe,p(oe)))}});Gv(n,O,W,I)}function Rk({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 Dk(e,t,n,r,o,i,s,a,l){const c=C.useRef(0),u=C.useRef(0),f=C.useRef(void 0),d=C.useRef(void 0),p=C.useRef(0),h=C.useRef(void 0),g=C.useRef(0),{setTimeout:m,clearTimeout:y}=Hl(),v=C.useCallback(()=>{f.current&&(y(f.current),f.current=void 0)},[y]),b=C.useCallback(()=>{d.current&&(y(d.current),d.current=void 0)},[y]),A=Le(()=>{e!==yt.SWIPE&&(c.current=0,g.current=0,v(),b())});C.useEffect(A,[e,A]);const w=Le(E=>{d.current=void 0,c.current===E&&l(c.current)}),_=Le(E=>{if(E.ctrlKey||Math.abs(E.deltaY)>Math.abs(E.deltaX))return;const S=O=>{p.current=O,y(h.current),h.current=O>0?m(()=>{p.current=0,h.current=void 0},300):void 0};if(e===yt.NONE){if(Math.abs(E.deltaX)<=1.2*Math.abs(p.current)){S(E.deltaX);return}if(!n(-E.deltaX))return;if(u.current+=E.deltaX,v(),Math.abs(u.current)>30)u.current=0,S(0),g.current=Date.now(),i();else{const O=u.current;f.current=m(()=>{f.current=void 0,O===u.current&&(u.current=0)},o)}}else if(e===yt.SWIPE){let O=c.current-E.deltaX;if(O=Math.min(Math.abs(O),r)*Math.sign(O),c.current=O,s(O),b(),Math.abs(O)>.2*r){S(E.deltaX),a(O,Date.now()-g.current);return}d.current=m(()=>w(O),2*o)}else S(E.deltaX)});C.useEffect(()=>t(bd,_),[t,_])}const sm=xd("container"),Zv=C.createContext(null),ar=sr("useController","ControllerContext",Zv);function Fk({children:e,...t}){var n;const{carousel:r,animation:o,controller:i,on:s,styles:a,render:l}=t,{closeOnPullUp:c,closeOnPullDown:u,preventDefaultWheelX:f,preventDefaultWheelY:d}=i,[p,h]=C.useState(),g=$r(),m=xk(),[y,v]=C.useState(yt.NONE),b=C.useRef(0),A=C.useRef(0),w=C.useRef(1),{registerSensors:_,subscribeSensors:E}=Mk(),{subscribe:S,publish:O}=Kl(),P=Ba(),I=Ba(),W=Ba(),{containerRef:j,setContainerRef:z,containerRect:Y}=Qv(),Q=cf(Rk({preventDefaultWheelX:f,preventDefaultWheelY:d}),z),oe=C.useRef(null),M=cf(oe,void 0),{getOwnerDocument:re}=Wl(),L=Td(),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()}),B=Le(()=>t),J=Le(()=>g),V=C.useCallback(se=>O(Xr,se),[O]),ee=C.useCallback(se=>O(eo,se),[O]),te=C.useCallback(()=>O(Ii),[O]),he=se=>!(r.finite&&(F(se)>0&&g.currentIndex===0||F(se)<0&&g.currentIndex===g.slides.length-1)),ye=se=>{var De;b.current=se,(De=j.current)===null||De===void 0||De.style.setProperty(Dt("swipe_offset"),`${Math.round(se)}px`)},me=se=>{var De,lt;A.current=se,w.current=(()=>{const Kt=u&&se>0?se:c&&se<0?-se:0;return Math.min(Math.max(Cd(1-Kt/60*(1-.5),2),.5),1)})(),(De=j.current)===null||De===void 0||De.style.setProperty(Dt("pull_offset"),`${Math.round(se)}px`),(lt=j.current)===null||lt===void 0||lt.style.setProperty(Dt("pull_opacity"),`${w.current}`)},{prepareAnimation:ze}=rm(oe,(se,De,lt)=>{if(oe.current&&Y)return{keyframes:[{transform:`translate(0, ${se.rect.y-De.y+lt.y}px)`,opacity:se.opacity},{transform:"translate(0, 0)",opacity:1}],duration:se.duration,easing:o.easing.fade}}),G=(se,De)=>{if(c||u){me(se);let lt=0;oe.current&&(lt=o.fade*(De?2:1),ze({rect:oe.current.getBoundingClientRect(),opacity:w.current,duration:lt})),W(()=>{me(0),v(yt.NONE)},lt),v(yt.ANIMATION),De||te()}},{prepareAnimation:qe,isAnimationPlaying:zt}=rm(oe,(se,De,lt)=>{var Mt;if(oe.current&&Y&&(!((Mt=g.animation)===null||Mt===void 0)&&Mt.duration)){const et=il(r.spacing),Kt=(et.percent?et.percent*Y.width/100:et.pixel)||0;return{keyframes:[{transform:`translate(${F(g.globalIndex-se.index)*(Y.width+Kt)+se.rect.x-De.x+lt.x}px, 0)`},{transform:"translate(0, 0)"}],duration:g.animation.duration,easing:g.animation.easing}}}),mt=Le(se=>{var De,lt;const Mt=se.offset||0,et=Mt?o.swipe:(De=o.navigation)!==null&&De!==void 0?De:o.swipe,Kt=!Mt&&!zt()?o.easing.navigation:o.easing.swipe;let{direction:At}=se;const cr=(lt=se.count)!==null&<!==void 0?lt:1;let Vo=yt.ANIMATION,$t=et*cr;if(!At){const ur=Y==null?void 0:Y.width,Vr=se.duration||0,fr=ur?et/ur*Math.abs(Mt):et;cr!==0?(Vr<fr?$t=$t/fr*Math.max(Vr,fr/5):ur&&($t=et/ur*(ur-Math.abs(Mt))),At=F(Mt)>0?Xr:eo):$t=et/2}let qr=0;At===Xr?he(F(1))?qr=-cr:(Vo=yt.NONE,$t=et):At===eo&&(he(F(-1))?qr=cr:(Vo=yt.NONE,$t=et)),$t=Math.round($t),I(()=>{ye(0),v(yt.NONE)},$t),oe.current&&qe({rect:oe.current.getBoundingClientRect(),index:g.globalIndex}),v(Vo),O(tm,{type:"swipe",increment:qr,duration:$t,easing:Kt})});C.useEffect(()=>{var se,De;!((se=g.animation)===null||se===void 0)&&se.increment&&(!((De=g.animation)===null||De===void 0)&&De.duration)&&P(()=>m({type:"swipe",increment:0}),g.animation.duration)},[g.animation,m,P]);const Ho=[E,he,(Y==null?void 0:Y.width)||0,o.swipe,()=>v(yt.SWIPE),se=>ye(se),(se,De)=>mt({offset:se,duration:De,count:1}),se=>mt({offset:se,count:0})],ns=[()=>{u&&v(yt.PULL)},se=>me(se),se=>G(se),se=>G(se,!0)];Lk(i,...Ho,c,u,...ns,te),Dk(y,...Ho);const Mn=Le(()=>{i.focus&&re().querySelector(`.${Se(md)} .${Se(sm())}`)&&K()});C.useEffect(Mn,[Mn]);const Hr=Le(()=>{var se;(se=s.view)===null||se===void 0||se.call(s,{index:g.currentIndex})});C.useEffect(Hr,[g.globalIndex,Hr]),C.useEffect(()=>wd(S(Xr,se=>mt({direction:Xr,...se})),S(eo,se=>mt({direction:eo,...se})),S(tm,se=>m(se))),[S,mt,m]);const qo=C.useMemo(()=>({prev:V,next:ee,close:te,focus:K,slideRect:Y?ak(Y,r.padding):{width:0,height:0},containerRect:Y||{width:0,height:0},subscribeSensors:E,containerRef:j,setCarouselRef:M,toolbarWidth:p,setToolbarWidth:h}),[V,ee,te,K,E,Y,j,M,p,h,r.padding]);return C.useImperativeHandle(i.ref,()=>({prev:V,next:ee,close:te,focus:K,getLightboxProps:B,getLightboxState:J}),[V,ee,te,K,B,J]),C.createElement("div",{ref:Q,className:En(Se(sm()),Se(gd)),style:{...y===yt.SWIPE?{[Dt("swipe_offset")]:`${Math.round(b.current)}px`}:null,...y===yt.PULL?{[Dt("pull_offset")]:`${Math.round(A.current)}px`,[Dt("pull_opacity")]:`${w.current}`}:null,...i.touchAction!=="none"?{[Dt("controller_touch_action")]:i.touchAction}:null,...a.container},tabIndex:-1,..._},Y&&C.createElement(Zv.Provider,{value:qo},e,(n=l.controls)===null||n===void 0?void 0:n.call(l)))}const jk=zr(Sv,Fk);function Gr(e){return Xs(Ev,e)}function am(e){return Xs(yd,e)}function zk({slide:e,offset:t}){const n=C.useRef(null),{currentIndex:r,slides:o}=$r(),{slideRect:i,focus:s}=ar(),{render:a,carousel:{imageFit:l,imageProps:c},on:{click:u},styles:{slide:f},labels:d}=Jt(),{getOwnerDocument:p}=Wl(),h=t!==0;C.useEffect(()=>{var m;h&&(!((m=n.current)===null||m===void 0)&&m.contains(p().activeElement))&&s()},[h,s,p]);const g=()=>{var m,y,v,b;let A=(m=a.slide)===null||m===void 0?void 0:m.call(a,{slide:e,offset:t,rect:i});return!A&&qi(e)&&(A=C.createElement(sl,{slide:e,offset:t,render:a,rect:i,imageFit:l,imageProps:c,onClick:h?void 0:()=>u==null?void 0:u({index:r})})),A?C.createElement(C.Fragment,null,(y=a.slideHeader)===null||y===void 0?void 0:y.call(a,{slide:e}),((v=a.slideContainer)!==null&&v!==void 0?v:(({children:w})=>w))({slide:e,children:A}),(b=a.slideFooter)===null||b===void 0?void 0:b.call(a,{slide:e})):null};return C.createElement("div",{ref:n,className:En(Se(am()),!h&&Se(am("current")),Se(gd)),...pk(h),style:f,role:"group","aria-roledescription":Li(d,"Slide"),"aria-label":sk(d,o,r+t)},g())}function $k(){const e=Jt().styles.slide;return C.createElement("div",{className:Se(yd),style:e})}function Uk({carousel:e,labels:t}){const{slides:n,currentIndex:r,globalIndex:o}=$r(),{setCarouselRef:i}=ar(),{autoPlaying:s,focusWithin:a}=Bv(),l=il(e.spacing),c=il(e.padding),u=fk(e,n,1),f=[];if(jv(n))for(let d=r-u;d<=r+u;d+=1){const p=zv(n,d),h=o-r+d,g=e.finite&&(d<0||d>n.length-1);f.push(g?{key:h}:{key:[`${h}`,ck(p)].filter(Boolean).join("|"),offset:d-r,slide:p})}return C.createElement("div",{ref:i,className:En(Se(Gr()),f.length>0&&Se(Gr("with_slides"))),style:{[`${Dt(Gr("slides_count"))}`]:f.length,[`${Dt(Gr("spacing_px"))}`]:l.pixel||0,[`${Dt(Gr("spacing_percent"))}`]:l.percent||0,[`${Dt(Gr("padding_px"))}`]:c.pixel||0,[`${Dt(Gr("padding_percent"))}`]:c.percent||0},role:"region","aria-live":s&&!a?"off":"polite","aria-roledescription":Li(t,"Carousel"),"aria-label":Li(t,"Photo gallery")},f.map(({key:d,slide:p,offset:h})=>p?C.createElement(zk,{key:d,slide:p,offset:h}):C.createElement($k,{key:d})))}const Bk=zr(Ev,Uk);function Jv(){const{carousel:e}=Jt(),{slides:t,currentIndex:n}=$r(),r=t.length===0||e.finite&&n===0,o=t.length===0||e.finite&&n===t.length-1;return{prevDisabled:r,nextDisabled:o}}function Wk(e){var t;const n=Td(),{publish:r}=Kl(),{animation:o}=Jt(),{prevDisabled:i,nextDisabled:s}=Jv(),a=((t=o.navigation)!==null&&t!==void 0?t:o.swipe)/2,l=im(()=>r(Xr),a),c=im(()=>r(eo),a),u=Le(f=>{switch(f.key){case nk:r(Ii);break;case rk:(n?s:i)||(n?c:l)();break;case ok:(n?i:s)||(n?l:c)();break}});C.useEffect(()=>e(vd,u),[e,u])}function lm({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:i,style:s}){return C.createElement(Sd,{label:e,icon:t,renderIcon:n,className:Se(`navigation_${r}`),disabled:i,onClick:o,style:s,...Pk(ar().focus,i)})}function Kk({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:i,next:s,subscribeSensors:a}=ar(),{prevDisabled:l,nextDisabled:c}=Jv();return Wk(a),C.createElement(C.Fragment,null,e?e():C.createElement(lm,{label:"Previous",action:Xr,icon:Sk,renderIcon:n,style:o.navigationPrev,disabled:l,onClick:i}),t?t():C.createElement(lm,{label:"Next",action:eo,icon:kk,renderIcon:r,style:o.navigationNext,disabled:c,onClick:s}))}const Hk=zr(V4,Kk),cm=Se(X4),qk=Se(Tv);function Vk(e){return"style"in e}function um(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,`${(Bl(i)||0)+t}px`),()=>{s?e.style.setProperty(o,s):e.style.removeProperty(o)}}function Yk({noScroll:{disabled:e},children:t}){const n=Td(),{getOwnerDocument:r,getOwnerWindow:o}=Wl();return C.useEffect(()=>{if(e)return()=>{};const i=[],s=o(),{body:a,documentElement:l}=r(),c=Math.round(s.innerWidth-l.clientWidth);if(c>0){i.push(um(a,c,n));const u=a.getElementsByTagName("*");for(let f=0;f<u.length;f+=1){const d=u[f];Vk(d)&&s.getComputedStyle(d).getPropertyValue("position")==="fixed"&&!d.classList.contains(qk)&&i.push(um(d,c,n))}}return a.classList.add(cm),()=>{a.classList.remove(cm),i.forEach(u=>u())}},[n,e,r,o]),C.createElement(C.Fragment,null,t)}const Qk=zr(Y4,Yk);function fm(e){return Xs(md,e)}function dm(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}function Gk({children:e,animation:t,styles:n,className:r,on:o,portal:i,close:s,labels:a}){const[l,c]=C.useState(!1),[u,f]=C.useState(!1),d=C.useRef([]),p=C.useRef(null),{setTimeout:h}=Hl(),{subscribe:g}=Kl(),y=kd()?0:t.fade;C.useEffect(()=>(c(!0),()=>{c(!1),f(!1)}),[]);const v=Le(()=>{d.current.forEach(_=>_()),d.current=[]}),b=Le(()=>{var _;f(!1),v(),(_=o.exiting)===null||_===void 0||_.call(o),h(()=>{var E;(E=o.exited)===null||E===void 0||E.call(o),s()},y)});C.useEffect(()=>g(Ii,b),[g,b]);const A=Le(_=>{var E,S,O;hk(_),f(!0),(E=o.entering)===null||E===void 0||E.call(o);const P=(O=(S=_.parentNode)===null||S===void 0?void 0:S.children)!==null&&O!==void 0?O:[];for(let I=0;I<P.length;I+=1){const W=P[I];["TEMPLATE","SCRIPT","STYLE"].indexOf(W.tagName)===-1&&W!==_&&(d.current.push(dm(W,"inert","")),d.current.push(dm(W,"aria-hidden","true")))}d.current.push(()=>{var I,W;(W=(I=p.current)===null||I===void 0?void 0:I.focus)===null||W===void 0||W.call(I)}),h(()=>{var I;(I=o.entered)===null||I===void 0||I.call(o)},y)}),w=C.useCallback(_=>{_?A(_):v()},[A,v]);return l?Tn.createPortal(C.createElement(Ik,{ref:w,className:En(r,Se(fm()),Se(Tv),u&&Se(fm("open"))),"aria-modal":!0,role:"dialog","aria-label":Li(a,"Lightbox"),style:{...t.fade!==lf.animation.fade?{[Dt("fade_animation_duration")]:`${y}ms`}:null,...t.easing.fade!==lf.animation.easing.fade?{[Dt("fade_animation_timing_function")]:t.easing.fade}:null,...n.root},onFocus:_=>{p.current||(p.current=_.relatedTarget)}},e),i.root||document.body):null}const Zk=zr(md,Gk);function Jk({children:e}){return C.createElement(C.Fragment,null,e)}const Xk=zr(Q4,Jk);function e3(e){return Xs(kv,e)}function t3({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:i}=ar(),{setContainerRef:s,containerRect:a}=Qv();Nn(()=>{i(a==null?void 0:a.width)},[i,a==null?void 0:a.width]);const l=()=>t?t():C.createElement(Sd,{key:Ii,label:"Close",icon:Ek,renderIcon:n,onClick:o});return C.createElement("div",{ref:s,style:r.toolbar,className:Se(e3())},e==null?void 0:e.map(c=>c===Ii?l():c))}const n3=zr(kv,t3);function Xv(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=>Xv(r,t)))}function r3(e,t={}){const{easing:n,...r}=e,{easing:o,...i}=t;return{easing:{...n,...o},...r,...i}}function o3({carousel:e,animation:t,render:n,toolbar:r,controller:o,noScroll:i,on:s,plugins:a,slides:l,index:c,...u}){const{animation:f,carousel:d,render:p,toolbar:h,controller:g,noScroll:m,on:y,slides:v,index:b,plugins:A,...w}=lf,{config:_,augmentation:E}=mk([nt(Zk,[nt(Qk,[nt(jk,[nt(Bk),nt(n3),nt(Hk)])])])],a||A),S=E({animation:r3(f,t),carousel:{...d,...e},render:{...p,...n},toolbar:{...h,...r},controller:{...g,...o},noScroll:{...m,...i},on:{...y,...s},...w,...u});return S.open?C.createElement(bk,{...S},C.createElement(Ak,{slides:l||v,index:Bl(c||b)},C.createElement(Ck,null,C.createElement(vk,null,C.createElement(gk,null,Xv(nt(Xk,_),S)))))):null}const i3={minZoom:1,maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,pinchZoomV4:!1,scrollToZoom:!1};function s3(e){return Math.min(Math.max(e,Number.EPSILON),1)}function eb(e){const{minZoom:t,...n}={...i3,...e};return{minZoom:s3(t),...n}}function a3(e,t,n,r){const o=C.useRef(void 0),i=C.useRef(void 0),{zoom:s}=Jt().animation,a=kd(),l=Le(()=>{var c,u,f;if((c=o.current)===null||c===void 0||c.cancel(),o.current=void 0,i.current&&(r!=null&&r.current)){try{o.current=(f=(u=r.current).animate)===null||f===void 0?void 0:f.call(u,[{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 Nn(l,[e,t,n,l]),C.useCallback(()=>{i.current=r!=null&&r.current?window.getComputedStyle(r.current).transform:void 0},[r])}function l3(e,t){const{on:n}=Jt(),r=Le(()=>{var o;t||(o=n.zoom)===null||o===void 0||o.call(n,{zoom:e})});C.useEffect(r,[e,r])}function ql(){const{zoom:e}=Jt();return eb(e)}function c3(e,t){var n,r;let o={width:0,height:0},i={width:0,height:0};const{currentSlide:s}=$r(),{imageFit:a}=Jt().carousel,{maxZoomPixelRatio:l}=ql();if(e&&s){const u={...s,...t};if(qi(u)){const f=_d(u,a),d=Math.max(...(((n=u.srcSet)===null||n===void 0?void 0:n.map(h=>h.width))||[]).concat(u.width?[u.width]:[])),p=Math.max(...(((r=u.srcSet)===null||r===void 0?void 0:r.map(h=>h.height))||[]).concat(u.height?[u.height]:[]));d>0&&p>0&&e.width>0&&e.height>0&&(i=f?{width:Math.round(Math.min(d,e.width/e.height*p)),height:Math.round(Math.min(p,e.height/e.width*d))}:{width:d,height:p},i={width:i.width*l,height:i.height*l},o=f?{width:Math.min(e.width,i.width,d),height:Math.min(e.height,i.height,p)}:{width:Math.round(Math.min(e.width,e.height/p*d,d)),height:Math.round(Math.min(e.height,e.width/d*p,p))})}}const c=o.width?Math.max(Cd(i.width/o.width,5),1):1;return{imageRect:o,maxZoom:c}}function pm(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)}function hm(e,t,n=100,r=2){return e*Math.min(1+Math.abs(t/n),r)**Math.sign(t)}function u3(e,t,n,r,o,i,s,a,l){const c=C.useRef([]),u=C.useRef(0),f=C.useRef(void 0),{globalIndex:d}=$r(),{getOwnerWindow:p}=Wl(),{containerRef:h,subscribeSensors:g}=ar(),{keyboardMoveDistance:m,zoomInMultiplier:y,wheelZoomDistanceFactor:v,scrollToZoom:b,doubleTapDelay:A,doubleClickDelay:w,doubleClickMaxStops:_,pinchZoomDistanceFactor:E,pinchZoomV4:S}=ql(),O=C.useCallback(M=>{if(h.current){const{pageX:re,pageY:L}=M,{scrollX:F,scrollY:K}=p(),{left:B,top:J,width:V,height:ee}=h.current.getBoundingClientRect();return[re-B-F-V/2,L-J-K-ee/2]}return[]},[h,p]),P=Le(M=>{const{key:re,metaKey:L,ctrlKey:F}=M,K=L||F,B=()=>{M.preventDefault(),M.stopPropagation()};if(e>1){const J=(V,ee)=>{B(),a(V,ee)};re==="ArrowDown"?J(0,m):re==="ArrowUp"?J(0,-m):re==="ArrowLeft"?J(-m,0):re==="ArrowRight"&&J(m,0)}re==="+"||K&&re==="="?(B(),o()):re==="-"||K&&re==="_"?(B(),i()):K&&re==="0"&&(B(),s(1))}),I=Le(M=>{if((M.ctrlKey||b)&&Math.abs(M.deltaY)>Math.abs(M.deltaX)){M.stopPropagation(),s(hm(e,-M.deltaY,v),!0,...O(M));return}e>1&&(M.stopPropagation(),b||a(M.deltaX,M.deltaY))}),W=C.useCallback(M=>{const re=c.current;re.splice(0,re.length,...re.filter(L=>L.pointerId!==M.pointerId))},[]),j=C.useCallback(M=>{W(M),M.persist(),c.current.push(M)},[W]),z=Le(M=>{var re;const L=c.current;if(M.pointerType==="mouse"&&M.buttons>1||!(!((re=l==null?void 0:l.current)===null||re===void 0)&&re.contains(M.target)))return;e>1&&M.stopPropagation();const{timeStamp:F}=M;if(L.length===0&&F-u.current<(M.pointerType==="touch"?A:w)){u.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,...O(M))}else u.current=F;if(j(M),L.length===2){const K=pm(L[0],L[1]);f.current={previousDistance:K,initialDistance:Math.max(K,1),initialZoom:e}}}),Y=Le(M=>{const re=c.current,L=re.find(F=>F.pointerId===M.pointerId);if(re.length===2&&f.current){M.stopPropagation(),j(M);const F=pm(re[0],re[1]),K=S?f.current.initialZoom/f.current.initialDistance*F:hm(e,F-f.current.previousDistance,E);s(K,!0,...re.map(B=>O(B)).reduce((B,J)=>J.map((V,ee)=>B[ee]+V/2))),f.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=c.current;re.length===2&&re.find(L=>L.pointerId===M.pointerId)&&(f.current=void 0),W(M)},[W]),oe=C.useCallback(()=>{const M=c.current;M.splice(0,M.length),u.current=0,f.current=void 0},[]);Gv(g,z,Y,Q,r),C.useEffect(oe,[d,oe]),C.useEffect(()=>r?()=>{}:wd(oe,g(vd,P),g(bd,I)),[r,g,oe,P,I])}function f3(e,t,n){const[r,o]=C.useState(1),[i,s]=C.useState(0),[a,l]=C.useState(0),c=a3(r,i,a,n),{currentSlide:u,globalIndex:f}=$r(),{containerRect:d,slideRect:p}=ar(),{minZoom:h,zoomInMultiplier:g}=ql(),m=u&&qi(u)?u.src:void 0,y=!m||!(n!=null&&n.current);Nn(()=>{o(1),s(0),l(0)},[f,m]);const v=C.useCallback((E,S,O)=>{const P=O||r,I=i-(E||0),W=a-(S||0),j=(e.width*P-p.width)/2/P,z=(e.height*P-p.height)/2/P;s(Math.min(Math.abs(I),Math.max(j,0))*Math.sign(I)),l(Math.min(Math.abs(W),Math.max(z,0))*Math.sign(W))},[r,i,a,p,e.width,e.height]),b=C.useCallback((E,S,O,P)=>{const I=Cd(E+.01<t?E-.01>h?E:h:t,5);S||c(),v(O?O*(1/r-1/I):0,P?P*(1/r-1/I):0,I),o(I)},[r,h,t,v,c]),A=Le(()=>{r>1&&(r>t&&b(t,!0),v())});Nn(A,[d.width,d.height,A]);const w=C.useCallback(()=>{const E=r*g;b(r<1&&E>1?1:E)},[r,g,b]),_=C.useCallback(()=>{const E=r/g;b(r>1&&E<1?1:E)},[r,g,b]);return{zoom:r,offsetX:i,offsetY:a,disabled:y,changeOffsets:v,changeZoom:b,zoomIn:w,zoomOut:_}}const tb=C.createContext(null),Nd=sr("useZoom","ZoomControllerContext",tb);function d3({children:e}){const[t,n]=C.useState(),{slideRect:r}=ar(),{ref:o,minZoom:i}=ql(),{imageRect:s,maxZoom:a}=c3(r,t==null?void 0:t.imageDimensions),{zoom:l,offsetX:c,offsetY:u,disabled:f,changeZoom:d,changeOffsets:p,zoomIn:h,zoomOut:g}=f3(s,a,t==null?void 0:t.zoomWrapperRef);l3(l,f),u3(l,i,a,f,h,g,d,p,t==null?void 0:t.zoomWrapperRef);const m=C.useMemo(()=>({zoom:l,minZoom:i,maxZoom:a,offsetX:c,offsetY:u,disabled:f,zoomIn:h,zoomOut:g,changeZoom:d}),[l,i,a,c,u,f,h,g,d]);C.useImperativeHandle(o,()=>m,[m]);const y=C.useMemo(()=>({...m,setZoomWrapper:n}),[m,n]);return C.createElement(tb.Provider,{value:y},e)}const p3=Uo("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"}))),h3=Uo("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"})),mm=C.forwardRef(function({zoomIn:t,onLoseFocus:n},r){const o=C.useRef(!1),i=C.useRef(!1),{zoom:s,minZoom:a,maxZoom:l,zoomIn:c,zoomOut:u,disabled:f}=Nd(),{render:d}=Jt(),p=f||(t?s>=l:s<=a);return C.useEffect(()=>{p&&o.current&&i.current&&n(),p||(o.current=!0)},[p,n]),C.createElement(Sd,{ref:r,disabled:p,label:t?"Zoom in":"Zoom out",icon:t?p3:h3,renderIcon:t?d.iconZoomIn:d.iconZoomOut,onClick:t?c:u,onFocus:()=>{i.current=!0},onBlur:()=>{i.current=!1}})});function m3(){const e=C.useRef(null),t=C.useRef(null),{focus:n}=ar(),r=C.useCallback(s=>{var a,l;!((a=s.current)===null||a===void 0)&&a.disabled?n():(l=s.current)===null||l===void 0||l.focus()},[n]),o=C.useCallback(()=>r(e),[r]),i=C.useCallback(()=>r(t),[r]);return C.createElement(C.Fragment,null,C.createElement(mm,{zoomIn:!0,ref:e,onLoseFocus:i}),C.createElement(mm,{ref:t,onLoseFocus:o}))}function g3(){const{render:e}=Jt(),t=Nd();return e.buttonZoom?C.createElement(C.Fragment,null,e.buttonZoom(t)):C.createElement(m3,null)}function y3(e){var t;return(((t=e.srcSet)===null||t===void 0?void 0:t.length)||0)>0}function v3({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(Dv)}}function b3(e){var t,n;const[{current:r,preload:o},i]=C.useReducer(v3,{}),{slide:s,rect:a,imageFit:l,render:c,interactive:u}=e,f=s.srcSet.sort((w,_)=>w.width-_.width),d=(t=s.width)!==null&&t!==void 0?t:f[f.length-1].width,p=(n=s.height)!==null&&n!==void 0?n:f[f.length-1].height,h=_d(s,l),g=Math.max(...f.map(w=>w.width)),m=Math.min((h?Math.max:Math.min)(a.width,d*(a.height/p)),g),y=lk(),v=Le(()=>{var w;const _=(w=f.find(E=>E.width>=m*y))!==null&&w!==void 0?w:f[f.length-1];(!r||f.findIndex(E=>E.src===r)<f.findIndex(E=>E===_))&&i({type:"fetch",source:_.src})});Nn(v,[a.width,a.height,y,v]);const b=Le(w=>i({type:"done",source:w})),A={WebkitTransform:u?"initial":"translateZ(0)"};return h||Object.assign(A,a.width/a.height<d/p?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),C.createElement(C.Fragment,null,o&&o!==r&&C.createElement(sl,{key:"preload",...e,offset:void 0,slide:{...s,src:o,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...A},onLoad:()=>b(o),render:{...c,iconLoading:()=>null,iconError:()=>null}}),r&&C.createElement(sl,{key:"current",...e,slide:{...s,src:r,srcSet:void 0},style:A}))}function x3({render:e,slide:t,offset:n,rect:r}){var o;const[i,s]=C.useState(),a=C.useRef(null),{zoom:l,maxZoom:c,offsetX:u,offsetY:f,setZoomWrapper:d}=Nd(),p=l>1,{carousel:h,on:g}=Jt(),{currentIndex:m}=$r();Nn(()=>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:l,maxZoom:c});if(!y&&qi(t)){const v={slide:t,offset:n,rect:r,render:e,imageFit:h.imageFit,imageProps:h.imageProps,onClick:n===0?()=>{var b;return(b=g.click)===null||b===void 0?void 0:b.call(g,{index:m})}:void 0};y=y3(t)?C.createElement(b3,{...v,slide:t,interactive:p,rect:n===0?{width:r.width*l,height:r.height*l}:r}):C.createElement(sl,{onLoad:b=>s({width:b.naturalWidth,height:b.naturalHeight}),...v})}return y?C.createElement("div",{ref:a,className:En(Se(J4),Se(gd),Se(Nv),p&&Se(ek)),style:n===0?{transform:`scale(${l}) translateX(${u}px) translateY(${f}px)`}:void 0},y):null}const w3=({augment:e,addModule:t})=>{e(({zoom:n,toolbar:r,render:o,controller:i,...s})=>{const a=eb(n);return{zoom:a,toolbar:uk(r,em,C.createElement(g3,null)),render:{...o,slide:l=>{var c;return qi(l.slide)?C.createElement(x3,{render:o,...l}):(c=o.slide)===null||c===void 0?void 0:c.call(o,l)}},controller:{...i,preventDefaultWheelY:a.scrollToZoom},...s}}),t(zr(em,d3))},A3="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==",C3=({src:e,alt:t,size:n=40})=>x.jsx("img",{src:e||A3,alt:t,width:n,height:n,className:"rounded-full object-cover border border-gray-200"}),_3=(...e)=>t=>{e.forEach(n=>n==null?void 0:n(t))},uf=({placement:e="bottom-end",children:t,trigger:n,title:r,minWidth:o="172px"})=>{const[i,s]=T.useState(!1),{refs:a,floatingStyles:l,context:c}=yv({strategy:"fixed",placement:e,open:i,onOpenChange:s}),u=gv(c,{outsidePress:!0}),{getReferenceProps:f,getFloatingProps:d}=vv([u]),p=T.Children.map(t,h=>{if(!T.isValidElement(h))return h;const g=h.props;return T.cloneElement(h,{onClick:_3(g.onClick,()=>s(!1))})});return x.jsxs(x.Fragment,{children:[T.cloneElement(n,{ref:a.setReference,...f(),onClick:()=>s(h=>!h),title:i?`Close ${r??"context menu"}`:`Open ${r??"context menu"}`}),i&&x.jsx("div",{ref:a.setFloating,style:{...l,minWidth:o},className:Ee("border border-gray-200 rounded-sm bg-white z-[9999999999]"),...d(),children:p})]})},E3=({commentType:e,onEdit:t,onSaveCommentType:n,onDelete:r,taskVerified:o,isUsernameAuthor:i})=>x.jsxs(uf,{trigger:x.jsx(je,{category:"link",size:"none",className:"text-gray-400",disabled:!i,children:x.jsx(be,{icon:GC})}),children:[x.jsxs("ul",{className:"py-2 m-0",children:[x.jsx("li",{children:x.jsx("button",{type:"button",className:"w-full text-left py-1 px-2 hover:bg-gray-100 hover:text-primary-600 cursor-pointer",onClick:t,title:"Edit comment",children:"Edit"})}),!o&&x.jsx("li",{children:x.jsx("button",{type:"button",className:"w-full text-left py-1 px-2 hover:bg-gray-100 hover:text-primary-600 cursor-pointer",onClick:r,title:"Delete comment",children:"Delete"})})]}),x.jsx("ul",{className:"border-t border-gray-200 flex items-center justify-center gap-2 py-2",children:l1.map(s=>x.jsx("li",{children:x.jsx(je,{category:"link",size:"smallCollapse",title:s.title,onClick:()=>{n==null||n(s.type)},className:Ee(s.color,e===s.type?s.color:"text-gray-400"),children:x.jsx(be,{icon:s.icon,size:"lg"})})},s.type))})]}),nb=T.createContext(null);function S3(e,t){return{getTheme:function(){return t??null}}}function pt(){const e=T.useContext(nb);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 rb(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 dn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,k3=dn&&"documentMode"in document?document.documentMode:null,sn=dn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),No=dn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),al=!(!dn||!("InputEvent"in window)||k3)&&"getTargetRanges"in new window.InputEvent("input"),ea=dn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Vi=dn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,T3=dn&&/Android/.test(navigator.userAgent),ob=dn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),gm=dn&&T3&&ob,ta=dn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&sn&&!ob;function ib(...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 N3=0,O3=1,P3=2,sb=128,M3=1,I3=2,L3=3,R3=4,D3=5,F3=6,Vl=ea||Vi||ta?" ":"",Rr=`
|
|
594
594
|
|
|
595
|
-
`,j3=To?" ":ql,No={bold:1,capitalize:1024,code:16,highlight:sb,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},z3={directionless:1,unmergeable:2},vm={center:2,end:6,justify:4,left:1,right:3,start:5},$3={[I3]:"center",[F3]:"end",[R3]:"justify",[M3]:"left",[L3]:"right",[D3]:"start"},U3={normal:0,segmented:2,token:1},B3={[N3]:"normal",[P3]:"segmented",[O3]:"token"},bm="$config";function ab(e,t,n,r,o,i){let s=e.getFirstChild();for(;s!==null;){const a=s.__key;s.__parent===t&&(R(s)&&ab(s,a,n,r,o,i),n.has(a)||i.delete(a),o.push(a)),s=s.getNextSibling()}}let ff=!1,Pd=0;function W3(e){Pd=e.timeStamp}function Hc(e,t,n){const r=e.nodeName==="BR",o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&ec(e,n)!==void 0}function K3(e,t,n){const r=en(Xt(n));let o=null,i=null;r!==null&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const s=e.nodeValue;s!==null&&Qd(t,s,o,i,!1)}function H3(e,t,n){if($(e)){const r=e.anchor.getNode();if(r.is(n)&&e.format!==r.getFormat())return!1}return lr(t)&&n.isAttached()}function q3(e,t,n,r){for(let o=e;o&&!JT(o);o=ia(o)){const i=ec(o,t);if(i!==void 0){const s=Xe(i,n);if(s)return Te(s)||!pt(o)?void 0:[o,s]}else if(o===r)return[r,hx(n)]}}function lb(e,t,n){ff=!0;const r=performance.now()-Pd>100;try{Sn(e,()=>{const o=Z()||(function(d){return d.getEditorState().read(()=>{const p=Z();return p!==null?p.clone():null})})(e),i=new Map,s=e.getRootElement(),a=e._editorState,l=e._blockCursorElement;let c=!1,u="";for(let d=0;d<t.length;d++){const p=t[d],h=p.type,g=p.target,m=q3(g,e,a,s);if(!m)continue;const[y,v]=m;if(h==="characterData")r&&X(v)&&lr(g)&&H3(o,g,v)&&K3(g,v,e);else if(h==="childList"){c=!0;const b=p.addedNodes;for(let _=0;_<b.length;_++){const E=b[_],S=dx(E),O=E.parentNode;if(O!=null&&E!==l&&S===null&&!Hc(E,O,e)){if(To){const P=(pt(E)?E.innerText:null)||E.nodeValue;P&&(u+=P)}O.removeChild(E)}}const A=p.removedNodes,w=A.length;if(w>0){let _=0;for(let E=0;E<w;E++){const S=A[E];(Hc(S,g,e)||l===S)&&(g.appendChild(S),_++)}w!==_&&i.set(y,v)}}}if(i.size>0)for(const[d,p]of i)p.reconcileObservedMutation(d,e);const f=n.takeRecords();if(f.length>0){for(let d=0;d<f.length;d++){const p=f[d],h=p.addedNodes,g=p.target;for(let m=0;m<h.length;m++){const y=h[m],v=y.parentNode;v==null||y.nodeName!=="BR"||Hc(y,g,e)||v.removeChild(y)}}n.takeRecords()}o!==null&&(c&&Pt(o),To&&vx(e)&&o.insertRawText(u))})}finally{ff=!1}}function cb(e){const t=e._observer;t!==null&&lb(e,t.takeRecords(),t)}function ub(e){(function(t){Pd===0&&Xt(t).addEventListener("textInput",W3,!0)})(e),e._observer=new MutationObserver((t,n)=>{lb(e,t,n)})}function V3(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}=nc(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 Y3=class fb{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(l,c,u){let f=u.size;if(c)for(const d in c){const p=l.get(d);p&&u.has(p)||f++}return f})(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 xm(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 fb(t,n,(function(i,s,a){let l;if(a)for(const[c,u]of Object.entries(a)){const f=i.get(c);f?s.has(f)||s.set(f,f.parse(u)):(l=l||{},l[c]=u)}return l})(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=xm(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 Q3(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new Y3(t,db(t));return t.__state=n,n}function db(e){return e.__state?e.__state.sharedNodeState:ax(Jd(),e.getType()).sharedNodeState}function xm(e){if(e)for(const t in e)return e}function wm(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 Am(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 Cm(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function _m(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,s=t.__format,a=t.__style,l=e.__state,c=t.__state;return(n===null||n===i)&&(r===null||r===s)&&(o===null||o===a)&&(e.__state===null||l===c||(function(u,f){if(u===f)return!0;if(u&&f&&u.size!==f.size)return!1;const d=new Set;return!(u&&wm(d,u,f)||f&&wm(d,f,u)||u&&Am(d,u,f)||f&&Am(d,f,u))})(l,c))}function Em(e,t){const n=e.mergeWithSibling(t),r=Re()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Sm(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(_m(t,r)){r=Em(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(_m(r,n)){r=Em(r,n);break}break}n.remove()}}else r.remove()}function Li(e){return km(e.anchor),km(e.focus),e}function km(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 Oo,vt,Os,Vl,df,pf,Po,an,hf,Ps,Je="",mn=null,Jr=null,Wn="",ri=!1,al=!1;function ll(e,t){const n=Po.get(e);if(t!==null){const r=vf(e);r.parentNode===t&&t.removeChild(r)}if(an.has(e)||vt._keyToDOMMap.delete(e),R(n)){const r=ul(n,Po);mf(r,0,r.length-1,null)}n!==void 0&&Gd(Ps,Os,Vl,n,"destroyed")}function mf(e,t,n,r){let o=t;for(;o<=n;++o){const i=e[o];i!==void 0&&ll(i,r)}}function Zr(e,t){e.setProperty("text-align",t)}const G3="40px";function pb(e,t){const n=Oo.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")||G3;e.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * ${r})`)}function hb(e,t){const n=e.style;t===0?Zr(n,""):t===1?Zr(n,"left"):t===2?Zr(n,"center"):t===3?Zr(n,"right"):t===4?Zr(n,"justify"):t===5?Zr(n,"start"):t===6&&Zr(n,"end")}function gf(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 cl(e,t){const n=an.get(e);n===void 0&&U(60);const r=n.createDOM(Oo,vt);if((function(o,i,s){const a=s._keyToDOMMap;(function(l,c,u){const f=`__lexicalKey_${c._key}`;l[f]=u})(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(gf(r,n),o!==0&&pb(r,o),i!==0){const a=i-1;yf(ul(n,an),n,0,a,n.getDOMSlot(r))}const s=n.__format;s!==0&&hb(r,s),n.isInline()||mb(null,n,r),tc(n)&&(Je+=Rr,Wn+=Rr)}else{const o=n.getTextContent();if(Te(n)){const i=n.decorate(vt,Oo);i!==null&&gb(e,i),r.contentEditable="false"}Je+=o,Wn+=o}return t!==null&&t.insertChild(r),Gd(Ps,Os,Vl,n,"created"),r}function yf(e,t,n,r,o){const i=Je;Je="";let s=n;for(;s<=r;++s){cl(e[s],o);const a=an.get(e[s]);a!==null&&X(a)&&mn===null&&(mn=a.getFormat(),Jr=a.getStyle())}tc(t)&&(Je+=Rr),o.element.__lexicalTextContent=Je,Je=i+Je}function Tm(e,t){if(e){const n=e.__last;if(n){const r=t.get(n);if(r)return bo(r)?"line-break":Te(r)&&r.isInline()?"decorator":null}return"empty"}return null}function mb(e,t,n){const r=Tm(e,Po),o=Tm(t,an);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function Z3(e,t,n){var r;mn=null,Jr=null,(function(o,i,s){const a=Je,l=o.__size,c=i.__size;Je="";const u=s.element;if(l===1&&c===1){const f=o.__first,d=i.__first;if(f===d)ps(f,u);else{const h=vf(f),g=cl(d,null);try{u.replaceChild(g,h)}catch(m){if(typeof m=="object"&&m!=null){const y=`${m.toString()} Parent: ${u.tagName}, new child: {tag: ${g.tagName} key: ${d}}, old child: {tag: ${h.tagName}, key: ${f}}.`;throw new Error(y)}throw m}ll(f,null)}const p=an.get(d);X(p)&&mn===null&&(mn=p.getFormat(),Jr=p.getStyle())}else{const f=ul(o,Po),d=ul(i,an);if(f.length!==l&&U(227),d.length!==c&&U(228),l===0)c!==0&&yf(d,i,0,c-1,s);else if(c===0){if(l!==0){const p=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;mf(f,0,l-1,p?null:u),p&&(u.textContent="")}}else(function(p,h,g,m,y,v){const b=m-1,A=y-1;let w,_,E=v.getFirstChild(),S=0,O=0;for(;S<=b&&O<=A;){const W=h[S],j=g[O];if(W===j)E=qc(ps(j,v.element)),S++,O++;else{w===void 0&&(w=new Set(h)),_===void 0&&(_=new Set(g));const Y=_.has(W),Q=w.has(j);if(Y)if(Q){const oe=Lo(vt,j);oe===E?E=qc(ps(j,v.element)):(v.withBefore(E).insertChild(oe),ps(j,v.element)),S++,O++}else cl(j,v.withBefore(E)),O++;else E=qc(vf(W)),ll(W,v.element),S++}const z=an.get(j);z!==null&&X(z)&&mn===null&&(mn=z.getFormat(),Jr=z.getStyle())}const P=S>b,I=O>A;if(P&&!I){const W=g[A+1],j=W===void 0?null:vt.getElementByKey(W);yf(g,p,O,A,v.withBefore(j))}else I&&!P&&mf(h,S,b,v.element)})(i,f,d,l,c,s)}tc(i)&&(Je+=Rr),u.__lexicalTextContent=Je,Je=a+Je})(e,t,t.getDOMSlot(n)),r=t,mn==null||mn===r.__textFormat||al||r.setTextFormat(mn),(function(o){Jr==null||Jr===o.__textStyle||al||o.setTextStyle(Jr)})(t)}function ul(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 ps(e,t){const n=Po.get(e);let r=an.get(e);n!==void 0&&r!==void 0||U(61);const o=ri||pf.has(e)||df.has(e),i=Lo(vt,e);if(n===r&&!o){if(R(n)){const s=i.__lexicalTextContent;s!==void 0&&(Je+=s,Wn+=s)}else{const s=n.getTextContent();Wn+=s,Je+=s}return i}if(n!==r&&o&&Gd(Ps,Os,Vl,r,"updated"),r.updateDOM(n,i,Oo)){const s=cl(e,null);return t===null&&U(62),t.replaceChild(s,i),ll(e,null),s}if(R(n)&&R(r)){const s=r.__indent;(ri||s!==n.__indent)&&pb(i,s);const a=r.__format;if((ri||a!==n.__format)&&hb(i,a),o&&(Z3(n,r,i),Ye(r)||r.isInline()||mb(n,r,i)),tc(r)&&(Je+=Rr,Wn+=Rr),(ri||r.__dir!==n.__dir)&&(gf(i,r),Ye(r)&&!ri))for(const l of r.getChildren())R(l)&&gf(Lo(vt,l.getKey()),l)}else{const s=r.getTextContent();if(Te(r)){const a=r.decorate(vt,Oo);a!==null&&gb(e,a)}Je+=s,Wn+=s}if(!al&&Ye(r)&&r.__cachedText!==Wn){const s=r.getWritable();s.__cachedText=Wn,r=s}return i}function gb(e,t){let n=vt._pendingDecorators;const r=vt._decorators;if(n===null){if(r[e]===t)return;n=px(vt)}n[e]=t}function qc(e){let t=e.nextSibling;return t!==null&&t===vt._blockCursorElement&&(t=t.nextSibling),t}function J3(e,t,n,r,o,i){Je="",Wn="",ri=r===2,vt=n,Oo=n._config,Os=n._nodes,Vl=vt._listeners.mutation,df=o,pf=i,Po=e._nodeMap,an=t._nodeMap,al=t._readOnly,hf=new Map(n._keyToDOMMap);const s=new Map;return Ps=s,ps("root",null),vt=void 0,Os=void 0,df=void 0,pf=void 0,Po=void 0,an=void 0,Oo=void 0,hf=void 0,Ps=void 0,s}function vf(e){const t=hf.get(e);return t===void 0&&U(75,e),t}function pe(e){return{type:e}}const Yl=pe("SELECTION_CHANGE_COMMAND"),X3=pe("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Md=pe("CLICK_COMMAND"),yb=pe("BEFORE_INPUT_COMMAND"),vb=pe("INPUT_COMMAND"),bb=pe("COMPOSITION_START_COMMAND"),xb=pe("COMPOSITION_END_COMMAND"),yo=pe("DELETE_CHARACTER_COMMAND"),hi=pe("INSERT_LINE_BREAK_COMMAND"),Ms=pe("INSERT_PARAGRAPH_COMMAND"),mi=pe("CONTROLLED_TEXT_INSERTION_COMMAND"),Ql=pe("PASTE_COMMAND"),bf=pe("REMOVE_TEXT_COMMAND"),Is=pe("DELETE_WORD_COMMAND"),Ls=pe("DELETE_LINE_COMMAND"),Cn=pe("FORMAT_TEXT_COMMAND"),Id=pe("UNDO_COMMAND"),Ld=pe("REDO_COMMAND"),wb=pe("KEYDOWN_COMMAND"),Ab=pe("KEY_ARROW_RIGHT_COMMAND"),eT=pe("MOVE_TO_END"),Cb=pe("KEY_ARROW_LEFT_COMMAND"),tT=pe("MOVE_TO_START"),_b=pe("KEY_ARROW_UP_COMMAND"),Eb=pe("KEY_ARROW_DOWN_COMMAND"),Rs=pe("KEY_ENTER_COMMAND"),Sb=pe("KEY_SPACE_COMMAND"),kb=pe("KEY_BACKSPACE_COMMAND"),Rd=pe("KEY_ESCAPE_COMMAND"),Tb=pe("KEY_DELETE_COMMAND"),Nb=pe("KEY_TAB_COMMAND"),nT=pe("INSERT_TAB_COMMAND"),rT=pe("INDENT_CONTENT_COMMAND"),Nm=pe("OUTDENT_CONTENT_COMMAND"),Ob=pe("DROP_COMMAND"),oT=pe("FORMAT_ELEMENT_COMMAND"),Pb=pe("DRAGSTART_COMMAND"),Mb=pe("DRAGOVER_COMMAND"),iT=pe("DRAGEND_COMMAND"),Gl=pe("COPY_COMMAND"),Dd=pe("CUT_COMMAND"),xf=pe("SELECT_ALL_COMMAND"),sT=pe("CLEAR_EDITOR_COMMAND"),aT=pe("CLEAR_HISTORY_COMMAND"),Aa=pe("CAN_REDO_COMMAND"),Ca=pe("CAN_UNDO_COMMAND"),lT=pe("FOCUS_COMMAND"),cT=pe("BLUR_COMMAND"),uT=pe("KEY_MODIFIER_COMMAND"),Fn=Object.freeze({}),wf=[["keydown",function(e,t){Ds=e.timeStamp,Ib=e.key,!t.isComposing()&&ie(t,wb,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;Zi(n)&&r!=="touch"&&r!=="pen"&&e.button===0&&Sn(t,()=>{lx(n)||(_f=!0)})}],["compositionstart",function(e,t){ie(t,bb,e)}],["compositionend",function(e,t){To?hs=!0:Hi||!Xs&&!ea?ie(t,xb,e):(Ef=!0,Sf=e.data)}],["input",function(e,t){e.stopPropagation(),Sn(t,()=>{t.dispatchCommand(vb,e)},{event:e}),oi=null}],["click",function(e,t){Sn(t,()=>{const n=Z(),r=en(Xt(t)),o=Yi();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,l=>R(l)&&!l.isInline());R(a)&&a.select(0)}}else if(e.pointerType==="touch"||e.pointerType==="pen"){const i=r.anchorNode;(pt(i)||lr(i))&&Pt(jd(o,r,t,e))}}ie(t,Md,e)})}],["cut",Fn],["copy",Fn],["dragstart",Fn],["dragover",Fn],["dragend",Fn],["paste",Fn],["focus",Fn],["blur",Fn],["drop",Fn]];sl&&wf.push(["beforeinput",(e,t)=>(function(n,r){const o=n.inputType;o==="deleteCompositionText"||To&&vx(r)||o!=="insertCompositionText"&&ie(r,yb,n)})(e,t)]);let Ds=0,Ib=null,Lb=0,oi=null;const Af=new WeakMap,fl=new WeakMap;let Cf=!1,_f=!1,bs=!1,hs=!1,Ef=!1,Sf="",to=null,Rb=[0,"",0,"root",0];function Db(e,t,n,r,o){const i=e.anchor,s=e.focus,a=i.getNode(),l=Re(),c=en(Xt(l)),u=c!==null?c.anchorNode:null,f=i.key,d=l.getElementByKey(f),p=n.length;return f!==s.key||!X(a)||(!o&&(!sl||Lb<r+50)||a.isDirty()&&p<2||mx(n))&&i.offset!==s.offset&&!a.isComposing()||Bn(a)||a.isDirty()&&p>1||(o||!sl)&&d!==null&&!a.isComposing()&&u!==Ri(d)||c!==null&&t!==null&&(!t.collapsed||t.startContainer!==c.anchorNode||t.startOffset!==c.anchorOffset)||a.getFormat()!==e.format||a.getStyle()!==e.style||(function(h,g){if(g.isSegmented())return!0;if(!h.isCollapsed())return!1;const m=h.anchor.offset,y=g.getParentOrThrow(),v=xo(g);return m===0?!g.canInsertTextBefore()||!y.canInsertTextBefore()&&!g.isComposing()||v||(function(b){const A=b.getPreviousSibling();return(X(A)||R(A)&&A.isInline())&&!A.canInsertTextAfter()})(g):m===g.getTextContentSize()&&(!g.canInsertTextAfter()||!y.canInsertTextAfter()&&!g.isComposing()||v)})(e,a)}function Om(e,t){return lr(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function Pm(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=e;Cf&&(Cf=!1,Om(r,o)&&Om(i,s)&&!to)||Sn(t,()=>{if(!n)return void Pt(null);if(!oa(t,r,i))return;let a=Z();if(to&&$(a)&&a.isCollapsed()){const l=a.anchor,c=to.anchor;(l.key===c.key&&l.offset===c.offset+1||l.offset===1&&c.getNode().is(l.getNode().getPreviousSibling()))&&(a=to.clone(),Pt(a))}if(to=null,$(a)){const l=a.anchor,c=l.getNode();if(a.isCollapsed()){e.type==="Range"&&e.anchorNode===e.focusNode&&(a.dirty=!0);const u=Xt(t).event,f=u?u.timeStamp:performance.now(),[d,p,h,g,m]=Rb,y=We(),v=t.isComposing()===!1&&y.getTextContent()==="";if(f<m+200&&l.offset===h&&l.key===g)Ba(a,d,p);else if(l.type==="text")X(c)||U(141),Fb(a,c);else if(l.type==="element"&&!v){R(c)||U(259);const b=l.getNode();b.isEmpty()?(function(A,w){const _=w.getTextFormat(),E=w.getTextStyle();Ba(A,_,E)})(a,b):Ba(a,0,"")}}else{const u=l.key,f=a.focus.key,d=a.getNodes(),p=d.length,h=a.isBackward(),g=h?s:o,m=h?o:s,y=h?f:u,v=h?u:f;let b=2047,A=!1;for(let w=0;w<p;w++){const _=d[w],E=_.getTextContentSize();if(X(_)&&E!==0&&!(w===0&&_.__key===y&&g===E||w===p-1&&_.__key===v&&m===0)&&(A=!0,b&=_.getFormat(),b===0))break}a.format=A?b:0}}ie(t,Yl,void 0)})}function Ba(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function Fb(e,t){Ba(e,t.getFormat(),t.getStyle())}function jb(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return t.length===0?null:t[0]}function fT(e){const t=e.inputType,n=jb(e),r=Re(),o=Z();if(t==="deleteContentBackward"){if(o===null){const f=Yi();if(!$(f))return!0;Pt(f.clone())}if($(o)){const f=o.anchor.key===o.focus.key;if(i=e.timeStamp,Ib==="MediaLast"&&i<Ds+30&&r.isComposing()&&f){if(ft(null),Ds=0,setTimeout(()=>{Sn(r,()=>{ft(null)})},30),$(o)){const d=o.anchor.getNode();d.markDirty(),X(d)||U(142),Fb(o,d)}}else{ft(null),e.preventDefault();const d=o.anchor.getNode(),p=d.getTextContent(),h=d.canInsertTextAfter(),g=o.anchor.offset===0&&o.focus.offset===p.length;let m=ym&&f&&!g&&h;if(m&&o.isCollapsed()&&(m=!Te(Mf(o.anchor,!0))),!m){ie(r,yo,!0);const y=Z();ym&&$(y)&&y.isCollapsed()&&(to=y,setTimeout(()=>to=null))}}return!0}}var i;if(!$(o))return!0;const s=e.data;oi!==null&&Yd(!1,r,oi),o.dirty&&oi===null||!o.isCollapsed()||Ye(o.anchor.getNode())||n===null||o.applyDOMRange(n),oi=null;const a=o.anchor,l=o.focus,c=a.getNode(),u=l.getNode();if(t==="insertText"||t==="insertTranspose"){if(s===`
|
|
596
|
-
`)e.preventDefault(),ie(r,
|
|
597
|
-
`){const r=Z();if($(r)){const o=r.focus;return r.anchor.set(o.key,o.offset,o.type),void ie(e,Rs,null)}}}Yd(!0,e,t)}function mT(e){const t=Re();if(e.key==null)return!0;if(Ef&&ng(e))return Sn(t,()=>{dl(t,Sf)}),Ef=!1,Sf="",!0;if((function(n){return Ie(n,"ArrowRight",{shiftKey:"any"})})(e))ie(t,Ab,e);else if((function(n){return Ie(n,"ArrowRight",$n)})(e))ie(t,eT,e);else if((function(n){return Ie(n,"ArrowLeft",{shiftKey:"any"})})(e))ie(t,Cb,e);else if((function(n){return Ie(n,"ArrowLeft",$n)})(e))ie(t,tT,e);else if((function(n){return Ie(n,"ArrowUp",{altKey:"any",shiftKey:"any"})})(e))ie(t,_b,e);else if((function(n){return Ie(n,"ArrowDown",{altKey:"any",shiftKey:"any"})})(e))ie(t,Eb,e);else if((function(n){return Ie(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})})(e))bs=!0,ie(t,Rs,e);else if((function(n){return n.key===" "})(e))ie(t,Sb,e);else if((function(n){return sn&&Ie(n,"o",{ctrlKey:!0})})(e))e.preventDefault(),bs=!0,ie(t,hi,!0);else if((function(n){return Ie(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})})(e))bs=!1,ie(t,Rs,e);else if((function(n){return Ie(n,"Backspace",{shiftKey:"any"})||sn&&Ie(n,"h",{ctrlKey:!0})})(e))ng(e)?ie(t,kb,e):(e.preventDefault(),ie(t,yo,!0));else if((function(n){return n.key==="Escape"})(e))ie(t,Rd,e);else if((function(n){return Ie(n,"Delete",{})||sn&&Ie(n,"d",{ctrlKey:!0})})(e))(function(n){return n.key==="Delete"})(e)?ie(t,Tb,e):(e.preventDefault(),ie(t,yo,!1));else if((function(n){return Ie(n,"Backspace",tg)})(e))e.preventDefault(),ie(t,Is,!0);else if((function(n){return Ie(n,"Delete",tg)})(e))e.preventDefault(),ie(t,Is,!1);else if((function(n){return sn&&Ie(n,"Backspace",{metaKey:!0})})(e))e.preventDefault(),ie(t,Ls,!0);else if((function(n){return sn&&(Ie(n,"Delete",{metaKey:!0})||Ie(n,"k",{ctrlKey:!0}))})(e))e.preventDefault(),ie(t,Ls,!1);else if((function(n){return Ie(n,"b",$n)})(e))e.preventDefault(),ie(t,Cn,"bold");else if((function(n){return Ie(n,"u",$n)})(e))e.preventDefault(),ie(t,Cn,"underline");else if((function(n){return Ie(n,"i",$n)})(e))e.preventDefault(),ie(t,Cn,"italic");else if((function(n){return Ie(n,"Tab",{shiftKey:"any"})})(e))ie(t,Nb,e);else if((function(n){return Ie(n,"z",$n)})(e))e.preventDefault(),ie(t,Id,void 0);else if((function(n){return sn?Ie(n,"z",{metaKey:!0,shiftKey:!0}):Ie(n,"y",{ctrlKey:!0})||Ie(n,"z",{ctrlKey:!0,shiftKey:!0})})(e))e.preventDefault(),ie(t,Ld,void 0);else{const n=t._editorState._selection;n===null||$(n)?rg(e)&&(e.preventDefault(),ie(t,xf,e)):(function(r){return Ie(r,"c",$n)})(e)?(e.preventDefault(),ie(t,Gl,e)):(function(r){return Ie(r,"x",$n)})(e)?(e.preventDefault(),ie(t,Dd,e)):rg(e)&&(e.preventDefault(),ie(t,xf,e))}return(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(e)&&t.dispatchCommand(uT,e),!0}function zb(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}const gi=new Map;function $b(e){const t=YT(e.target);if(t===null)return;const n=cx(t.anchorNode);if(n===null)return;_f&&(_f=!1,Sn(n,()=>{const l=Yi(),c=t.anchorNode;(pt(c)||lr(c))&&Pt(jd(l,t,n,e))}));const r=Vd(n),o=r[r.length-1],i=o._key,s=gi.get(i),a=s||o;a!==n&&Pm(t,a,!1),Pm(t,n,!0),n!==o?gi.set(i,n):s&&gi.delete(i)}function Mm(e){e._lexicalHandled=!0}function Im(e){return e._lexicalHandled===!0}function gT(e){const t=Af.get(e);if(t===void 0)return;const n=fl.get(t);if(n===void 0)return;const r=n-1;r>=0||U(164),Af.delete(e),fl.set(t,r),r===0&&t.removeEventListener("selectionchange",$b);const o=Xl(e);qd(o)?((function(s){if(s._parentEditor!==null){const a=Vd(s),l=a[a.length-1]._key;gi.get(l)===s&&gi.delete(l)}else gi.delete(s._key)})(o),e.__lexicalEditor=null):o&&U(198);const i=zb(e);for(let s=0;s<i.length;s++)i[s]();e.__lexicalEventHandles=[]}function kf(e,t,n){yt();const r=e.__key,o=e.getParent();if(o===null)return;const i=(function(a){const l=Z();if(!$(l)||!R(a))return l;const{anchor:c,focus:u}=l,f=c.getNode(),d=u.getNode();return If(f,a)&&c.set(a.__key,0,"element"),If(d,a)&&u.set(a.__key,0,"element"),l})(e);let s=!1;if($(i)&&t){const a=i.anchor,l=i.focus;a.key===r&&(ml(a,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),l.key===r&&(ml(l,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else ot(i)&&t&&e.isSelected()&&e.selectPrevious();if($(i)&&t&&!s){const a=e.getIndexWithinParent();wo(e),hl(i,o,a,-1)}else wo(e);n||jt(o)||o.canBeEmpty()||!o.isEmpty()||kf(o,t),t&&i&&Ye(o)&&o.isEmpty()&&o.selectEnd()}const Ub=Symbol.for("ephemeral");function pl(e){return e[Ub]||!1}class ln{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}),UT(this,t)}static getType(){const{ownNodeType:t}=nc(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($(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?Ka(n,r):null;return o?o.commonAncestor:null}is(t){return t!=null&&this.__key===t.__key}isBefore(t){const n=Ka(this,t);return n!==null&&(n.type==="descendant"||(n.type==="branch"?_x(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&U(279),!1)))}isParentOf(t){const n=Ka(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 l=n?i.getNextSibling():i.getPreviousSibling();if(l!==null){i=l;continue}const c=i.getParentOrThrow();if(o.has(c.__key)||r.push(c),c===t)break;let u=null,f=c;do{if(f===null&&U(68),u=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),f===null)break;u!==null||o.has(f.__key)||r.push(f)}while(u===null);i=u}return n||r.reverse(),r}isDirty(){const t=Re()._dirtyLeaves;return t!==null&&t.has(this.__key)}getLatest(){if(pl(this))return this;const t=Xe(this.__key);return t===null&&U(113),t}getWritable(){if(pl(this))return this;yt();const t=Br(),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 yl(i),i;const l=wx(i);return s.add(o),yl(l),r.set(o,l),l}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 db(o).flatKeys)a in r&&(s!==void 0&&s!==i||(s={...i}),s[a]=r[a]);return(o.__state||s)&&Q3(n).updateFromJSON(s),o})(this,t)}static transform(){return null}remove(t){kf(this,!0,t)}replace(t,n){yt();let r=Z();r!==null&&(r=r.clone()),Jc(this,t);const o=this.getLatest(),i=this.__key,s=t.__key,a=t.getWritable(),l=this.getParentOrThrow().getWritable(),c=l.__size;wo(a);const u=o.getPreviousSibling(),f=o.getNextSibling(),d=o.__prev,p=o.__next,h=o.__parent;if(kf(o,!1,!0),u===null?l.__first=s:u.getWritable().__next=s,a.__prev=d,f===null?l.__last=s:f.getWritable().__prev=s,a.__next=p,a.__parent=h,l.__size=c,n&&(R(this)&&R(a)||U(139),this.getChildren().forEach(g=>{a.append(g)})),$(r)){Pt(r);const g=r.anchor,m=r.focus;g.key===i&&Fm(g,a),m.key===i&&Fm(m,a)}return Er()===i&&ft(s),a}insertAfter(t,n=!0){yt(),Jc(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.getParent(),s=Z();let a=!1,l=!1;if(i!==null){const p=t.getIndexWithinParent();if(wo(o),$(s)){const h=i.__key,g=s.anchor,m=s.focus;a=g.type==="element"&&g.key===h&&g.offset===p+1,l=m.type==="element"&&m.key===h&&m.offset===p+1}}const c=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),f=o.__key,d=r.__next;if(c===null?u.__last=f:c.getWritable().__prev=f,u.__size++,r.__next=f,o.__next=d,o.__prev=r.__key,o.__parent=r.__parent,n&&$(s)){const p=this.getIndexWithinParent();hl(s,u,p+1);const h=u.__key;a&&s.anchor.set(h,p+2,"element"),l&&s.focus.set(h,p+2,"element")}return t}insertBefore(t,n=!0){yt(),Jc(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.__key;wo(o);const s=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),l=r.__prev,c=this.getIndexWithinParent();s===null?a.__first=i:s.getWritable().__next=i,a.__size++,r.__prev=i,o.__prev=l,o.__next=r.__key,o.__parent=r.__parent;const u=Z();return n&&$(u)&&hl(u,this.getParentOrThrow(),c),t}isParentRequired(){return!1}createParentElementNode(){return Tt()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,n){yt();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){yt();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(ln,"importDOM");const Tf="historic",yT="history-push",vo="history-merge",vT="paste",bT="collaboration",xT="skip-scroll-into-view",wT="skip-dom-selection",AT="skip-selection-focus";class qi extends ln{static getType(){return"linebreak"}static clone(t){return new qi(t.__key)}constructor(t){super(t)}getTextContent(){return`
|
|
598
|
-
`}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&&
|
|
595
|
+
`,j3=No?" ":Vl,Oo={bold:1,capitalize:1024,code:16,highlight:sb,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},z3={directionless:1,unmergeable:2},ym={center:2,end:6,justify:4,left:1,right:3,start:5},$3={[I3]:"center",[F3]:"end",[R3]:"justify",[M3]:"left",[L3]:"right",[D3]:"start"},U3={normal:0,segmented:2,token:1},B3={[N3]:"normal",[P3]:"segmented",[O3]:"token"},vm="$config";function ab(e,t,n,r,o,i){let s=e.getFirstChild();for(;s!==null;){const a=s.__key;s.__parent===t&&(R(s)&&ab(s,a,n,r,o,i),n.has(a)||i.delete(a),o.push(a)),s=s.getNextSibling()}}let ff=!1,Od=0;function W3(e){Od=e.timeStamp}function qc(e,t,n){const r=e.nodeName==="BR",o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&tc(e,n)!==void 0}function K3(e,t,n){const r=en(Xt(n));let o=null,i=null;r!==null&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const s=e.nodeValue;s!==null&&Yd(t,s,o,i,!1)}function H3(e,t,n){if($(e)){const r=e.anchor.getNode();if(r.is(n)&&e.format!==r.getFormat())return!1}return lr(t)&&n.isAttached()}function q3(e,t,n,r){for(let o=e;o&&!JT(o);o=sa(o)){const i=tc(o,t);if(i!==void 0){const s=Xe(i,n);if(s)return Te(s)||!ht(o)?void 0:[o,s]}else if(o===r)return[r,hx(n)]}}function lb(e,t,n){ff=!0;const r=performance.now()-Od>100;try{Sn(e,()=>{const o=Z()||(function(d){return d.getEditorState().read(()=>{const p=Z();return p!==null?p.clone():null})})(e),i=new Map,s=e.getRootElement(),a=e._editorState,l=e._blockCursorElement;let c=!1,u="";for(let d=0;d<t.length;d++){const p=t[d],h=p.type,g=p.target,m=q3(g,e,a,s);if(!m)continue;const[y,v]=m;if(h==="characterData")r&&X(v)&&lr(g)&&H3(o,g,v)&&K3(g,v,e);else if(h==="childList"){c=!0;const b=p.addedNodes;for(let _=0;_<b.length;_++){const E=b[_],S=dx(E),O=E.parentNode;if(O!=null&&E!==l&&S===null&&!qc(E,O,e)){if(No){const P=(ht(E)?E.innerText:null)||E.nodeValue;P&&(u+=P)}O.removeChild(E)}}const A=p.removedNodes,w=A.length;if(w>0){let _=0;for(let E=0;E<w;E++){const S=A[E];(qc(S,g,e)||l===S)&&(g.appendChild(S),_++)}w!==_&&i.set(y,v)}}}if(i.size>0)for(const[d,p]of i)p.reconcileObservedMutation(d,e);const f=n.takeRecords();if(f.length>0){for(let d=0;d<f.length;d++){const p=f[d],h=p.addedNodes,g=p.target;for(let m=0;m<h.length;m++){const y=h[m],v=y.parentNode;v==null||y.nodeName!=="BR"||qc(y,g,e)||v.removeChild(y)}}n.takeRecords()}o!==null&&(c&&Pt(o),No&&vx(e)&&o.insertRawText(u))})}finally{ff=!1}}function cb(e){const t=e._observer;t!==null&&lb(e,t.takeRecords(),t)}function ub(e){(function(t){Od===0&&Xt(t).addEventListener("textInput",W3,!0)})(e),e._observer=new MutationObserver((t,n)=>{lb(e,t,n)})}function V3(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}=rc(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 Y3=class fb{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(l,c,u){let f=u.size;if(c)for(const d in c){const p=l.get(d);p&&u.has(p)||f++}return f})(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 bm(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 fb(t,n,(function(i,s,a){let l;if(a)for(const[c,u]of Object.entries(a)){const f=i.get(c);f?s.has(f)||s.set(f,f.parse(u)):(l=l||{},l[c]=u)}return l})(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=bm(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 Q3(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new Y3(t,db(t));return t.__state=n,n}function db(e){return e.__state?e.__state.sharedNodeState:ax(Zd(),e.getType()).sharedNodeState}function bm(e){if(e)for(const t in e)return e}function xm(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 wm(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 Am(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Cm(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,s=t.__format,a=t.__style,l=e.__state,c=t.__state;return(n===null||n===i)&&(r===null||r===s)&&(o===null||o===a)&&(e.__state===null||l===c||(function(u,f){if(u===f)return!0;if(u&&f&&u.size!==f.size)return!1;const d=new Set;return!(u&&xm(d,u,f)||f&&xm(d,f,u)||u&&wm(d,u,f)||f&&wm(d,f,u))})(l,c))}function _m(e,t){const n=e.mergeWithSibling(t),r=Re()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Em(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(Cm(t,r)){r=_m(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(Cm(r,n)){r=_m(r,n);break}break}n.remove()}}else r.remove()}function Ri(e){return Sm(e.anchor),Sm(e.focus),e}function Sm(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 Po,bt,Ms,Yl,df,pf,Mo,an,hf,Is,Je="",mn=null,Jr=null,Wn="",oi=!1,ll=!1;function cl(e,t){const n=Mo.get(e);if(t!==null){const r=vf(e);r.parentNode===t&&t.removeChild(r)}if(an.has(e)||bt._keyToDOMMap.delete(e),R(n)){const r=fl(n,Mo);mf(r,0,r.length-1,null)}n!==void 0&&Qd(Is,Ms,Yl,n,"destroyed")}function mf(e,t,n,r){let o=t;for(;o<=n;++o){const i=e[o];i!==void 0&&cl(i,r)}}function Zr(e,t){e.setProperty("text-align",t)}const G3="40px";function pb(e,t){const n=Po.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")||G3;e.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * ${r})`)}function hb(e,t){const n=e.style;t===0?Zr(n,""):t===1?Zr(n,"left"):t===2?Zr(n,"center"):t===3?Zr(n,"right"):t===4?Zr(n,"justify"):t===5?Zr(n,"start"):t===6&&Zr(n,"end")}function gf(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 ul(e,t){const n=an.get(e);n===void 0&&U(60);const r=n.createDOM(Po,bt);if((function(o,i,s){const a=s._keyToDOMMap;(function(l,c,u){const f=`__lexicalKey_${c._key}`;l[f]=u})(i,s,o),a.set(o,i)})(e,r,bt),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(gf(r,n),o!==0&&pb(r,o),i!==0){const a=i-1;yf(fl(n,an),n,0,a,n.getDOMSlot(r))}const s=n.__format;s!==0&&hb(r,s),n.isInline()||mb(null,n,r),nc(n)&&(Je+=Rr,Wn+=Rr)}else{const o=n.getTextContent();if(Te(n)){const i=n.decorate(bt,Po);i!==null&&gb(e,i),r.contentEditable="false"}Je+=o,Wn+=o}return t!==null&&t.insertChild(r),Qd(Is,Ms,Yl,n,"created"),r}function yf(e,t,n,r,o){const i=Je;Je="";let s=n;for(;s<=r;++s){ul(e[s],o);const a=an.get(e[s]);a!==null&&X(a)&&mn===null&&(mn=a.getFormat(),Jr=a.getStyle())}nc(t)&&(Je+=Rr),o.element.__lexicalTextContent=Je,Je=i+Je}function km(e,t){if(e){const n=e.__last;if(n){const r=t.get(n);if(r)return bo(r)?"line-break":Te(r)&&r.isInline()?"decorator":null}return"empty"}return null}function mb(e,t,n){const r=km(e,Mo),o=km(t,an);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function Z3(e,t,n){var r;mn=null,Jr=null,(function(o,i,s){const a=Je,l=o.__size,c=i.__size;Je="";const u=s.element;if(l===1&&c===1){const f=o.__first,d=i.__first;if(f===d)ms(f,u);else{const h=vf(f),g=ul(d,null);try{u.replaceChild(g,h)}catch(m){if(typeof m=="object"&&m!=null){const y=`${m.toString()} Parent: ${u.tagName}, new child: {tag: ${g.tagName} key: ${d}}, old child: {tag: ${h.tagName}, key: ${f}}.`;throw new Error(y)}throw m}cl(f,null)}const p=an.get(d);X(p)&&mn===null&&(mn=p.getFormat(),Jr=p.getStyle())}else{const f=fl(o,Mo),d=fl(i,an);if(f.length!==l&&U(227),d.length!==c&&U(228),l===0)c!==0&&yf(d,i,0,c-1,s);else if(c===0){if(l!==0){const p=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;mf(f,0,l-1,p?null:u),p&&(u.textContent="")}}else(function(p,h,g,m,y,v){const b=m-1,A=y-1;let w,_,E=v.getFirstChild(),S=0,O=0;for(;S<=b&&O<=A;){const W=h[S],j=g[O];if(W===j)E=Vc(ms(j,v.element)),S++,O++;else{w===void 0&&(w=new Set(h)),_===void 0&&(_=new Set(g));const Y=_.has(W),Q=w.has(j);if(Y)if(Q){const oe=Ro(bt,j);oe===E?E=Vc(ms(j,v.element)):(v.withBefore(E).insertChild(oe),ms(j,v.element)),S++,O++}else ul(j,v.withBefore(E)),O++;else E=Vc(vf(W)),cl(W,v.element),S++}const z=an.get(j);z!==null&&X(z)&&mn===null&&(mn=z.getFormat(),Jr=z.getStyle())}const P=S>b,I=O>A;if(P&&!I){const W=g[A+1],j=W===void 0?null:bt.getElementByKey(W);yf(g,p,O,A,v.withBefore(j))}else I&&!P&&mf(h,S,b,v.element)})(i,f,d,l,c,s)}nc(i)&&(Je+=Rr),u.__lexicalTextContent=Je,Je=a+Je})(e,t,t.getDOMSlot(n)),r=t,mn==null||mn===r.__textFormat||ll||r.setTextFormat(mn),(function(o){Jr==null||Jr===o.__textStyle||ll||o.setTextStyle(Jr)})(t)}function fl(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 ms(e,t){const n=Mo.get(e);let r=an.get(e);n!==void 0&&r!==void 0||U(61);const o=oi||pf.has(e)||df.has(e),i=Ro(bt,e);if(n===r&&!o){if(R(n)){const s=i.__lexicalTextContent;s!==void 0&&(Je+=s,Wn+=s)}else{const s=n.getTextContent();Wn+=s,Je+=s}return i}if(n!==r&&o&&Qd(Is,Ms,Yl,r,"updated"),r.updateDOM(n,i,Po)){const s=ul(e,null);return t===null&&U(62),t.replaceChild(s,i),cl(e,null),s}if(R(n)&&R(r)){const s=r.__indent;(oi||s!==n.__indent)&&pb(i,s);const a=r.__format;if((oi||a!==n.__format)&&hb(i,a),o&&(Z3(n,r,i),Ye(r)||r.isInline()||mb(n,r,i)),nc(r)&&(Je+=Rr,Wn+=Rr),(oi||r.__dir!==n.__dir)&&(gf(i,r),Ye(r)&&!oi))for(const l of r.getChildren())R(l)&&gf(Ro(bt,l.getKey()),l)}else{const s=r.getTextContent();if(Te(r)){const a=r.decorate(bt,Po);a!==null&&gb(e,a)}Je+=s,Wn+=s}if(!ll&&Ye(r)&&r.__cachedText!==Wn){const s=r.getWritable();s.__cachedText=Wn,r=s}return i}function gb(e,t){let n=bt._pendingDecorators;const r=bt._decorators;if(n===null){if(r[e]===t)return;n=px(bt)}n[e]=t}function Vc(e){let t=e.nextSibling;return t!==null&&t===bt._blockCursorElement&&(t=t.nextSibling),t}function J3(e,t,n,r,o,i){Je="",Wn="",oi=r===2,bt=n,Po=n._config,Ms=n._nodes,Yl=bt._listeners.mutation,df=o,pf=i,Mo=e._nodeMap,an=t._nodeMap,ll=t._readOnly,hf=new Map(n._keyToDOMMap);const s=new Map;return Is=s,ms("root",null),bt=void 0,Ms=void 0,df=void 0,pf=void 0,Mo=void 0,an=void 0,Po=void 0,hf=void 0,Is=void 0,s}function vf(e){const t=hf.get(e);return t===void 0&&U(75,e),t}function pe(e){return{type:e}}const Ql=pe("SELECTION_CHANGE_COMMAND"),X3=pe("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Pd=pe("CLICK_COMMAND"),yb=pe("BEFORE_INPUT_COMMAND"),vb=pe("INPUT_COMMAND"),bb=pe("COMPOSITION_START_COMMAND"),xb=pe("COMPOSITION_END_COMMAND"),yo=pe("DELETE_CHARACTER_COMMAND"),mi=pe("INSERT_LINE_BREAK_COMMAND"),Ls=pe("INSERT_PARAGRAPH_COMMAND"),gi=pe("CONTROLLED_TEXT_INSERTION_COMMAND"),Gl=pe("PASTE_COMMAND"),bf=pe("REMOVE_TEXT_COMMAND"),Rs=pe("DELETE_WORD_COMMAND"),Ds=pe("DELETE_LINE_COMMAND"),Cn=pe("FORMAT_TEXT_COMMAND"),Md=pe("UNDO_COMMAND"),Id=pe("REDO_COMMAND"),wb=pe("KEYDOWN_COMMAND"),Ab=pe("KEY_ARROW_RIGHT_COMMAND"),eT=pe("MOVE_TO_END"),Cb=pe("KEY_ARROW_LEFT_COMMAND"),tT=pe("MOVE_TO_START"),_b=pe("KEY_ARROW_UP_COMMAND"),Eb=pe("KEY_ARROW_DOWN_COMMAND"),Fs=pe("KEY_ENTER_COMMAND"),Sb=pe("KEY_SPACE_COMMAND"),kb=pe("KEY_BACKSPACE_COMMAND"),Ld=pe("KEY_ESCAPE_COMMAND"),Tb=pe("KEY_DELETE_COMMAND"),Nb=pe("KEY_TAB_COMMAND"),nT=pe("INSERT_TAB_COMMAND"),rT=pe("INDENT_CONTENT_COMMAND"),Tm=pe("OUTDENT_CONTENT_COMMAND"),Ob=pe("DROP_COMMAND"),oT=pe("FORMAT_ELEMENT_COMMAND"),Pb=pe("DRAGSTART_COMMAND"),Mb=pe("DRAGOVER_COMMAND"),iT=pe("DRAGEND_COMMAND"),Zl=pe("COPY_COMMAND"),Rd=pe("CUT_COMMAND"),xf=pe("SELECT_ALL_COMMAND"),sT=pe("CLEAR_EDITOR_COMMAND"),aT=pe("CLEAR_HISTORY_COMMAND"),Ca=pe("CAN_REDO_COMMAND"),_a=pe("CAN_UNDO_COMMAND"),lT=pe("FOCUS_COMMAND"),cT=pe("BLUR_COMMAND"),uT=pe("KEY_MODIFIER_COMMAND"),Fn=Object.freeze({}),wf=[["keydown",function(e,t){js=e.timeStamp,Ib=e.key,!t.isComposing()&&ie(t,wb,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;Xi(n)&&r!=="touch"&&r!=="pen"&&e.button===0&&Sn(t,()=>{lx(n)||(_f=!0)})}],["compositionstart",function(e,t){ie(t,bb,e)}],["compositionend",function(e,t){No?gs=!0:Vi||!ea&&!ta?ie(t,xb,e):(Ef=!0,Sf=e.data)}],["input",function(e,t){e.stopPropagation(),Sn(t,()=>{t.dispatchCommand(vb,e)},{event:e}),ii=null}],["click",function(e,t){Sn(t,()=>{const n=Z(),r=en(Xt(t)),o=Gi();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,l=>R(l)&&!l.isInline());R(a)&&a.select(0)}}else if(e.pointerType==="touch"||e.pointerType==="pen"){const i=r.anchorNode;(ht(i)||lr(i))&&Pt(Fd(o,r,t,e))}}ie(t,Pd,e)})}],["cut",Fn],["copy",Fn],["dragstart",Fn],["dragover",Fn],["dragend",Fn],["paste",Fn],["focus",Fn],["blur",Fn],["drop",Fn]];al&&wf.push(["beforeinput",(e,t)=>(function(n,r){const o=n.inputType;o==="deleteCompositionText"||No&&vx(r)||o!=="insertCompositionText"&&ie(r,yb,n)})(e,t)]);let js=0,Ib=null,Lb=0,ii=null;const Af=new WeakMap,dl=new WeakMap;let Cf=!1,_f=!1,ws=!1,gs=!1,Ef=!1,Sf="",to=null,Rb=[0,"",0,"root",0];function Db(e,t,n,r,o){const i=e.anchor,s=e.focus,a=i.getNode(),l=Re(),c=en(Xt(l)),u=c!==null?c.anchorNode:null,f=i.key,d=l.getElementByKey(f),p=n.length;return f!==s.key||!X(a)||(!o&&(!al||Lb<r+50)||a.isDirty()&&p<2||mx(n))&&i.offset!==s.offset&&!a.isComposing()||Bn(a)||a.isDirty()&&p>1||(o||!al)&&d!==null&&!a.isComposing()&&u!==Di(d)||c!==null&&t!==null&&(!t.collapsed||t.startContainer!==c.anchorNode||t.startOffset!==c.anchorOffset)||a.getFormat()!==e.format||a.getStyle()!==e.style||(function(h,g){if(g.isSegmented())return!0;if(!h.isCollapsed())return!1;const m=h.anchor.offset,y=g.getParentOrThrow(),v=xo(g);return m===0?!g.canInsertTextBefore()||!y.canInsertTextBefore()&&!g.isComposing()||v||(function(b){const A=b.getPreviousSibling();return(X(A)||R(A)&&A.isInline())&&!A.canInsertTextAfter()})(g):m===g.getTextContentSize()&&(!g.canInsertTextAfter()||!y.canInsertTextAfter()&&!g.isComposing()||v)})(e,a)}function Nm(e,t){return lr(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function Om(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=e;Cf&&(Cf=!1,Nm(r,o)&&Nm(i,s)&&!to)||Sn(t,()=>{if(!n)return void Pt(null);if(!ia(t,r,i))return;let a=Z();if(to&&$(a)&&a.isCollapsed()){const l=a.anchor,c=to.anchor;(l.key===c.key&&l.offset===c.offset+1||l.offset===1&&c.getNode().is(l.getNode().getPreviousSibling()))&&(a=to.clone(),Pt(a))}if(to=null,$(a)){const l=a.anchor,c=l.getNode();if(a.isCollapsed()){e.type==="Range"&&e.anchorNode===e.focusNode&&(a.dirty=!0);const u=Xt(t).event,f=u?u.timeStamp:performance.now(),[d,p,h,g,m]=Rb,y=We(),v=t.isComposing()===!1&&y.getTextContent()==="";if(f<m+200&&l.offset===h&&l.key===g)Wa(a,d,p);else if(l.type==="text")X(c)||U(141),Fb(a,c);else if(l.type==="element"&&!v){R(c)||U(259);const b=l.getNode();b.isEmpty()?(function(A,w){const _=w.getTextFormat(),E=w.getTextStyle();Wa(A,_,E)})(a,b):Wa(a,0,"")}}else{const u=l.key,f=a.focus.key,d=a.getNodes(),p=d.length,h=a.isBackward(),g=h?s:o,m=h?o:s,y=h?f:u,v=h?u:f;let b=2047,A=!1;for(let w=0;w<p;w++){const _=d[w],E=_.getTextContentSize();if(X(_)&&E!==0&&!(w===0&&_.__key===y&&g===E||w===p-1&&_.__key===v&&m===0)&&(A=!0,b&=_.getFormat(),b===0))break}a.format=A?b:0}}ie(t,Ql,void 0)})}function Wa(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function Fb(e,t){Wa(e,t.getFormat(),t.getStyle())}function jb(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return t.length===0?null:t[0]}function fT(e){const t=e.inputType,n=jb(e),r=Re(),o=Z();if(t==="deleteContentBackward"){if(o===null){const f=Gi();if(!$(f))return!0;Pt(f.clone())}if($(o)){const f=o.anchor.key===o.focus.key;if(i=e.timeStamp,Ib==="MediaLast"&&i<js+30&&r.isComposing()&&f){if(ft(null),js=0,setTimeout(()=>{Sn(r,()=>{ft(null)})},30),$(o)){const d=o.anchor.getNode();d.markDirty(),X(d)||U(142),Fb(o,d)}}else{ft(null),e.preventDefault();const d=o.anchor.getNode(),p=d.getTextContent(),h=d.canInsertTextAfter(),g=o.anchor.offset===0&&o.focus.offset===p.length;let m=gm&&f&&!g&&h;if(m&&o.isCollapsed()&&(m=!Te(Mf(o.anchor,!0))),!m){ie(r,yo,!0);const y=Z();gm&&$(y)&&y.isCollapsed()&&(to=y,setTimeout(()=>to=null))}}return!0}}var i;if(!$(o))return!0;const s=e.data;ii!==null&&Vd(!1,r,ii),o.dirty&&ii===null||!o.isCollapsed()||Ye(o.anchor.getNode())||n===null||o.applyDOMRange(n),ii=null;const a=o.anchor,l=o.focus,c=a.getNode(),u=l.getNode();if(t==="insertText"||t==="insertTranspose"){if(s===`
|
|
596
|
+
`)e.preventDefault(),ie(r,mi,!1);else if(s===Rr)e.preventDefault(),ie(r,Ls,void 0);else if(s==null&&e.dataTransfer){const f=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(f)}else s!=null&&Db(o,n,s,e.timeStamp,!0)?(e.preventDefault(),ie(r,gi,s)):ii=s;return Lb=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ie(r,gi,e);break;case"insertFromComposition":ft(null),ie(r,gi,e);break;case"insertLineBreak":ft(null),ie(r,mi,!1);break;case"insertParagraph":ft(null),ws&&!Vi?(ws=!1,ie(r,mi,!1)):ie(r,Ls,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ie(r,Gl,e);break;case"deleteByComposition":(function(f,d){return f!==d||R(f)||R(d)||!xo(f)||!xo(d)})(c,u)&&ie(r,bf,e);break;case"deleteByDrag":case"deleteByCut":ie(r,bf,e);break;case"deleteContent":ie(r,yo,!1);break;case"deleteWordBackward":ie(r,Rs,!0);break;case"deleteWordForward":ie(r,Rs,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ie(r,Ds,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ie(r,Ds,!1);break;case"formatStrikeThrough":ie(r,Cn,"strikethrough");break;case"formatBold":ie(r,Cn,"bold");break;case"formatItalic":ie(r,Cn,"italic");break;case"formatUnderline":ie(r,Cn,"underline");break;case"historyUndo":ie(r,Md,void 0);break;case"historyRedo":ie(r,Id,void 0)}return!0}function dT(e){if(ht(e.target)&&lx(e.target))return!0;const t=Re(),n=Z(),r=e.data,o=jb(e);if(r!=null&&$(n)&&Db(n,o,r,e.timeStamp,!1)){gs&&(pl(t,r),gs=!1);const i=n.anchor.getNode(),s=en(Xt(t));if(s===null)return!0;const a=n.isBackward(),l=a?n.anchor.offset:n.focus.offset,c=a?n.focus.offset:n.anchor.offset;al&&!n.isCollapsed()&&X(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,l)+r+i.getTextContent().slice(l+c)===yx(s.anchorNode)||ie(t,gi,r);const u=r.length;No&&u>1&&e.inputType==="insertCompositionText"&&!t.isComposing()&&(n.anchor.offset-=u),ea||Vi||ta||!t.isComposing()||(js=0,ft(null))}else Vd(!1,t,r!==null?r:void 0),gs&&(pl(t,r||void 0),gs=!1);return(function(){vt();const i=Re();cb(i)})(),!0}function pT(e){const t=Re(),n=Z();if($(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();ft(r.key),(e.timeStamp<js+30||r.type==="element"||!n.isCollapsed()||o.getFormat()!==n.format||X(o)&&o.getStyle()!==n.style)&&ie(t,gi,j3)}return!0}function hT(e){return pl(Re(),e.data),!0}function pl(e,t){const n=e._compositionKey;if(ft(null),n!==null&&t!=null){if(t===""){const r=Xe(n),o=Di(e.getElementByKey(n));return void(o!==null&&o.nodeValue!==null&&X(r)&&Yd(r,o.nodeValue,null,null,!0))}if(t[t.length-1]===`
|
|
597
|
+
`){const r=Z();if($(r)){const o=r.focus;return r.anchor.set(o.key,o.offset,o.type),void ie(e,Fs,null)}}}Vd(!0,e,t)}function mT(e){const t=Re();if(e.key==null)return!0;if(Ef&&tg(e))return Sn(t,()=>{pl(t,Sf)}),Ef=!1,Sf="",!0;if((function(n){return Ie(n,"ArrowRight",{shiftKey:"any"})})(e))ie(t,Ab,e);else if((function(n){return Ie(n,"ArrowRight",$n)})(e))ie(t,eT,e);else if((function(n){return Ie(n,"ArrowLeft",{shiftKey:"any"})})(e))ie(t,Cb,e);else if((function(n){return Ie(n,"ArrowLeft",$n)})(e))ie(t,tT,e);else if((function(n){return Ie(n,"ArrowUp",{altKey:"any",shiftKey:"any"})})(e))ie(t,_b,e);else if((function(n){return Ie(n,"ArrowDown",{altKey:"any",shiftKey:"any"})})(e))ie(t,Eb,e);else if((function(n){return Ie(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})})(e))ws=!0,ie(t,Fs,e);else if((function(n){return n.key===" "})(e))ie(t,Sb,e);else if((function(n){return sn&&Ie(n,"o",{ctrlKey:!0})})(e))e.preventDefault(),ws=!0,ie(t,mi,!0);else if((function(n){return Ie(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})})(e))ws=!1,ie(t,Fs,e);else if((function(n){return Ie(n,"Backspace",{shiftKey:"any"})||sn&&Ie(n,"h",{ctrlKey:!0})})(e))tg(e)?ie(t,kb,e):(e.preventDefault(),ie(t,yo,!0));else if((function(n){return n.key==="Escape"})(e))ie(t,Ld,e);else if((function(n){return Ie(n,"Delete",{})||sn&&Ie(n,"d",{ctrlKey:!0})})(e))(function(n){return n.key==="Delete"})(e)?ie(t,Tb,e):(e.preventDefault(),ie(t,yo,!1));else if((function(n){return Ie(n,"Backspace",eg)})(e))e.preventDefault(),ie(t,Rs,!0);else if((function(n){return Ie(n,"Delete",eg)})(e))e.preventDefault(),ie(t,Rs,!1);else if((function(n){return sn&&Ie(n,"Backspace",{metaKey:!0})})(e))e.preventDefault(),ie(t,Ds,!0);else if((function(n){return sn&&(Ie(n,"Delete",{metaKey:!0})||Ie(n,"k",{ctrlKey:!0}))})(e))e.preventDefault(),ie(t,Ds,!1);else if((function(n){return Ie(n,"b",$n)})(e))e.preventDefault(),ie(t,Cn,"bold");else if((function(n){return Ie(n,"u",$n)})(e))e.preventDefault(),ie(t,Cn,"underline");else if((function(n){return Ie(n,"i",$n)})(e))e.preventDefault(),ie(t,Cn,"italic");else if((function(n){return Ie(n,"Tab",{shiftKey:"any"})})(e))ie(t,Nb,e);else if((function(n){return Ie(n,"z",$n)})(e))e.preventDefault(),ie(t,Md,void 0);else if((function(n){return sn?Ie(n,"z",{metaKey:!0,shiftKey:!0}):Ie(n,"y",{ctrlKey:!0})||Ie(n,"z",{ctrlKey:!0,shiftKey:!0})})(e))e.preventDefault(),ie(t,Id,void 0);else{const n=t._editorState._selection;n===null||$(n)?ng(e)&&(e.preventDefault(),ie(t,xf,e)):(function(r){return Ie(r,"c",$n)})(e)?(e.preventDefault(),ie(t,Zl,e)):(function(r){return Ie(r,"x",$n)})(e)?(e.preventDefault(),ie(t,Rd,e)):ng(e)&&(e.preventDefault(),ie(t,xf,e))}return(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(e)&&t.dispatchCommand(uT,e),!0}function zb(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}const yi=new Map;function $b(e){const t=YT(e.target);if(t===null)return;const n=cx(t.anchorNode);if(n===null)return;_f&&(_f=!1,Sn(n,()=>{const l=Gi(),c=t.anchorNode;(ht(c)||lr(c))&&Pt(Fd(l,t,n,e))}));const r=qd(n),o=r[r.length-1],i=o._key,s=yi.get(i),a=s||o;a!==n&&Om(t,a,!1),Om(t,n,!0),n!==o?yi.set(i,n):s&&yi.delete(i)}function Pm(e){e._lexicalHandled=!0}function Mm(e){return e._lexicalHandled===!0}function gT(e){const t=Af.get(e);if(t===void 0)return;const n=dl.get(t);if(n===void 0)return;const r=n-1;r>=0||U(164),Af.delete(e),dl.set(t,r),r===0&&t.removeEventListener("selectionchange",$b);const o=ec(e);Hd(o)?((function(s){if(s._parentEditor!==null){const a=qd(s),l=a[a.length-1]._key;yi.get(l)===s&&yi.delete(l)}else yi.delete(s._key)})(o),e.__lexicalEditor=null):o&&U(198);const i=zb(e);for(let s=0;s<i.length;s++)i[s]();e.__lexicalEventHandles=[]}function kf(e,t,n){vt();const r=e.__key,o=e.getParent();if(o===null)return;const i=(function(a){const l=Z();if(!$(l)||!R(a))return l;const{anchor:c,focus:u}=l,f=c.getNode(),d=u.getNode();return If(f,a)&&c.set(a.__key,0,"element"),If(d,a)&&u.set(a.__key,0,"element"),l})(e);let s=!1;if($(i)&&t){const a=i.anchor,l=i.focus;a.key===r&&(gl(a,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),l.key===r&&(gl(l,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else ot(i)&&t&&e.isSelected()&&e.selectPrevious();if($(i)&&t&&!s){const a=e.getIndexWithinParent();wo(e),ml(i,o,a,-1)}else wo(e);n||jt(o)||o.canBeEmpty()||!o.isEmpty()||kf(o,t),t&&i&&Ye(o)&&o.isEmpty()&&o.selectEnd()}const Ub=Symbol.for("ephemeral");function hl(e){return e[Ub]||!1}class ln{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}),UT(this,t)}static getType(){const{ownNodeType:t}=rc(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($(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?Ha(n,r):null;return o?o.commonAncestor:null}is(t){return t!=null&&this.__key===t.__key}isBefore(t){const n=Ha(this,t);return n!==null&&(n.type==="descendant"||(n.type==="branch"?_x(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&U(279),!1)))}isParentOf(t){const n=Ha(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 l=n?i.getNextSibling():i.getPreviousSibling();if(l!==null){i=l;continue}const c=i.getParentOrThrow();if(o.has(c.__key)||r.push(c),c===t)break;let u=null,f=c;do{if(f===null&&U(68),u=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),f===null)break;u!==null||o.has(f.__key)||r.push(f)}while(u===null);i=u}return n||r.reverse(),r}isDirty(){const t=Re()._dirtyLeaves;return t!==null&&t.has(this.__key)}getLatest(){if(hl(this))return this;const t=Xe(this.__key);return t===null&&U(113),t}getWritable(){if(hl(this))return this;vt();const t=Br(),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 vl(i),i;const l=wx(i);return s.add(o),vl(l),r.set(o,l),l}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 db(o).flatKeys)a in r&&(s!==void 0&&s!==i||(s={...i}),s[a]=r[a]);return(o.__state||s)&&Q3(n).updateFromJSON(s),o})(this,t)}static transform(){return null}remove(t){kf(this,!0,t)}replace(t,n){vt();let r=Z();r!==null&&(r=r.clone()),Xc(this,t);const o=this.getLatest(),i=this.__key,s=t.__key,a=t.getWritable(),l=this.getParentOrThrow().getWritable(),c=l.__size;wo(a);const u=o.getPreviousSibling(),f=o.getNextSibling(),d=o.__prev,p=o.__next,h=o.__parent;if(kf(o,!1,!0),u===null?l.__first=s:u.getWritable().__next=s,a.__prev=d,f===null?l.__last=s:f.getWritable().__prev=s,a.__next=p,a.__parent=h,l.__size=c,n&&(R(this)&&R(a)||U(139),this.getChildren().forEach(g=>{a.append(g)})),$(r)){Pt(r);const g=r.anchor,m=r.focus;g.key===i&&Dm(g,a),m.key===i&&Dm(m,a)}return Er()===i&&ft(s),a}insertAfter(t,n=!0){vt(),Xc(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.getParent(),s=Z();let a=!1,l=!1;if(i!==null){const p=t.getIndexWithinParent();if(wo(o),$(s)){const h=i.__key,g=s.anchor,m=s.focus;a=g.type==="element"&&g.key===h&&g.offset===p+1,l=m.type==="element"&&m.key===h&&m.offset===p+1}}const c=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),f=o.__key,d=r.__next;if(c===null?u.__last=f:c.getWritable().__prev=f,u.__size++,r.__next=f,o.__next=d,o.__prev=r.__key,o.__parent=r.__parent,n&&$(s)){const p=this.getIndexWithinParent();ml(s,u,p+1);const h=u.__key;a&&s.anchor.set(h,p+2,"element"),l&&s.focus.set(h,p+2,"element")}return t}insertBefore(t,n=!0){vt(),Xc(this,t);const r=this.getWritable(),o=t.getWritable(),i=o.__key;wo(o);const s=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),l=r.__prev,c=this.getIndexWithinParent();s===null?a.__first=i:s.getWritable().__next=i,a.__size++,r.__prev=i,o.__prev=l,o.__next=r.__key,o.__parent=r.__parent;const u=Z();return n&&$(u)&&ml(u,this.getParentOrThrow(),c),t}isParentRequired(){return!1}createParentElementNode(){return Tt()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,n){vt();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){vt();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(ln,"importDOM");const Tf="historic",yT="history-push",vo="history-merge",vT="paste",bT="collaboration",xT="skip-scroll-into-view",wT="skip-dom-selection",AT="skip-selection-focus";class Yi extends ln{static getType(){return"linebreak"}static clone(t){return new Yi(t.__key)}constructor(t){super(t)}getTextContent(){return`
|
|
598
|
+
`}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&&bl(r)){const o=r.firstChild;if(o===n||o.nextSibling===n&&Ea(o)){const i=r.lastChild;if(i===n||i.previousSibling===n&&Ea(i))return!0}}return!1})(t)||(function(n){const r=n.parentElement;if(r!==null&&bl(r)){const o=r.firstChild;if(o===n||o.nextSibling===n&&Ea(o))return!1;const i=r.lastChild;if(i===n||i.previousSibling===n&&Ea(i))return!0}return!1})(t)?null:{conversion:CT,priority:0}}}static importJSON(t){return Io().updateFromJSON(t)}}function CT(e){return{node:Io()}}function Io(){return Wr(new Yi)}function bo(e){return e instanceof Yi}function Ea(e){return lr(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function Yc(e,t){return 16&t?"code":t&sb?"mark":32&t?"sub":64&t?"sup":null}function Qc(e,t){return 1&t?"strong":2&t?"em":"span"}function Bb(e,t,n,r,o){const i=r.classList;let s=vi(o,"base");s!==void 0&&i.add(...s),s=vi(o,"underlineStrikethrough");let a=!1;const l=8&t&&4&t;s!==void 0&&(8&n&&4&n?(a=!0,l||i.add(...s)):l&&i.remove(...s));for(const c in Oo){const u=Oo[c];if(s=vi(o,c),s!==void 0)if(n&u){if(a&&(c==="underline"||c==="strikethrough")){t&u&&i.remove(...s);continue}((t&u)===0||l&&c==="underline"||c==="strikethrough")&&i.add(...s)}else t&u&&i.remove(...s)}}function Wb(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?Vl:"");if(r==null)t.textContent=i;else{const s=r.nodeValue;if(s!==i)if(o||No){const[a,l,c]=(function(u,f){const d=u.length,p=f.length;let h=0,g=0;for(;h<d&&h<p&&u[h]===f[h];)h++;for(;g+h<d&&g+h<p&&u[d-g-1]===f[p-g-1];)g++;return[h,d-h-g,f.slice(h,p-g)]})(s,i);l!==0&&r.deleteData(a,l),r.insertData(a,c)}else r.nodeValue=i}}function Im(e,t,n,r,o,i){Wb(o,e,t);const s=i.theme.text;s!==void 0&&Bb(0,0,r,e,s)}function Sa(e,t){const n=document.createElement(t);return n.appendChild(e),n}class Ur extends ln{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 Ur(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 B3[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Er()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const r=Oo[n];return(this.getFormat()&r)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,r){return yl(this.getLatest().__format,n,r)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,r){const o=this.__format,i=Yc(0,o),s=Qc(0,o),a=i===null?s:i,l=document.createElement(a);let c=l;this.hasFormat("code")&&l.setAttribute("spellcheck","false"),i!==null&&(c=document.createElement(s),l.appendChild(c)),Im(c,this,0,o,this.__text,n);const u=this.__style;return u!==""&&(l.style.cssText=u),l}updateDOM(n,r,o){const i=this.__text,s=n.__format,a=this.__format,l=Yc(0,s),c=Yc(0,a),u=Qc(0,s),f=Qc(0,a);if((l===null?u:l)!==(c===null?f:c))return!0;if(l===c&&u!==f){const m=r.firstChild;m==null&&U(48);const y=document.createElement(f);return Im(y,this,0,a,i,o),r.replaceChild(y,m),!1}let d=r;c!==null&&l!==null&&(d=r.firstChild,d==null&&U(49)),Wb(i,d,this);const p=o.theme.text;p!==void 0&&s!==a&&Bb(0,s,a,d,p);const h=n.__style,g=this.__style;return h!==g&&(r.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:kT,priority:0}),b:()=>({conversion:ET,priority:0}),code:()=>({conversion:jn,priority:0}),em:()=>({conversion:jn,priority:0}),i:()=>({conversion:jn,priority:0}),mark:()=>({conversion:jn,priority:0}),s:()=>({conversion:jn,priority:0}),span:()=>({conversion:_T,priority:0}),strong:()=>({conversion:jn,priority:0}),sub:()=>({conversion:jn,priority:0}),sup:()=>({conversion:jn,priority:0}),u:()=>({conversion:jn,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 ht(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=Sa(r,"b")),this.hasFormat("italic")&&(r=Sa(r,"i")),this.hasFormat("strikethrough")&&(r=Sa(r,"s")),this.hasFormat("underline")&&(r=Sa(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"?Oo[n]:n,r}setDetail(n){const r=this.getWritable();return r.__detail=typeof n=="string"?z3[n]:n,r}setStyle(n){const r=this.getWritable();return r.__style=n,r}toggleFormat(n){const r=yl(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=U3[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){vt();let o=n,i=r;const s=Z(),a=this.getTextContent(),l=this.__key;if(typeof a=="string"){const c=a.length;o===void 0&&(o=c),i===void 0&&(i=c)}else o=0,i=0;if(!$(s))return Vb(l,o,l,i,"text","text");{const c=Er();c!==s.anchor.key&&c!==s.focus.key||ft(l),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,l=o.length;let c=n;c<0&&(c=l+c,c<0&&(c=0));const u=Z();if(i&&$(u)){const d=n+l;u.setTextNodeRange(s,d,s,d)}const f=a.slice(0,c)+o+a.slice(c+r);return s.__text=f,s}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){vt();const r=this.getLatest(),o=r.getTextContent();if(o==="")return[];const i=r.__key,s=Er(),a=o.length;n.sort((O,P)=>O-P),n.push(a);const l=[],c=n.length;for(let O=0,P=0;O<a&&P<=c;P++){const I=n[P];I>O&&(l.push(o.slice(O,I)),O=I)}const u=l.length;if(u===1)return[r];const f=l[0],d=r.getParent();let p;const h=r.getFormat(),g=r.getStyle(),m=r.__detail;let y=!1,v=null,b=null;const A=Z();if($(A)){const[O,P]=A.isBackward()?[A.focus,A.anchor]:[A.anchor,A.focus];O.type==="text"&&O.key===i&&(v=O),P.type==="text"&&P.key===i&&(b=P)}r.isSegmented()?(p=rt(f),p.__format=h,p.__style=g,p.__detail=m,p.__state=Am(r,p),y=!0):p=r.setTextContent(f);const w=[p];for(let O=1;O<u;O++){const P=rt(l[O]);P.__format=h,P.__style=g,P.__detail=m,P.__state=Am(r,P);const I=P.__key;s===i&&ft(I),w.push(P)}const _=v?v.offset:null,E=b?b.offset:null;let S=0;for(const O of w){if(!v&&!b)break;const P=S+O.getTextContentSize();if(v!==null&&_!==null&&_<=P&&_>=S&&(v.set(O.getKey(),_-S,"text"),_<P&&(v=null)),b!==null&&E!==null&&E<=P&&E>=S){b.set(O.getKey(),E-S,"text");break}S=P}if(d!==null){(function(I){const W=I.getPreviousSibling(),j=I.getNextSibling();W!==null&&vl(W),j!==null&&vl(j)})(this);const O=d.getWritable(),P=this.getIndexWithinParent();y?(O.splice(P,0,w),this.remove()):O.splice(P,1,w),$(A)&&ml(A,d,P,u-1)}return w}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;Er()===i&&ft(o);const l=Z();if($(l)){const d=l.anchor,p=l.focus;d!==null&&d.key===i&&Wm(d,r,o,n,a),p!==null&&p.key===i&&Wm(p,r,o,n,a)}const c=n.__text,u=r?c+s:s+c;this.setTextContent(u);const f=this.getWritable();return n.remove(),f}isTextEntity(){return!1}}function _T(e){return{forChild:Dd(e.style),node:null}}function ET(e){const t=e,n=t.style.fontWeight==="normal";return{forChild:Dd(t.style,n?void 0:"bold"),node:null}}const Lm=new WeakMap;function ST(e){if(!ht(e))return!1;if(e.nodeName==="PRE")return!0;const t=e.style.whiteSpace;return typeof t=="string"&&t.startsWith("pre")}function kT(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=Lm.get(i))===void 0&&!ST(i);)s.push(i),i=i.parentNode;const a=o===void 0?i:o;for(let l=0;l<s.length;l++)Lm.set(s[l],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===`
|
|
599
599
|
`||a===`\r
|
|
600
|
-
`?o.push(
|
|
601
|
-
`),u=!d.isEmpty();else if(u=!1,X(d)){let p=d.getTextContent();d===n?d===r?o.type==="element"&&i.type==="element"&&i.offset!==o.offset||(p=a<l?p.slice(a,l):p.slice(l,a)):p=s?p.slice(a):p.slice(l):d===r&&(p=s?p.slice(0,l):p.slice(0,a)),c+=p}else!Te(d)&&!bo(d)||d===r&&this.isCollapsed()||(c+=d.getTextContent())}return c}applyDOMRange(t){const n=Re(),r=n.getEditorState()._selection,o=qb(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),
|
|
600
|
+
`?o.push(Io()):a===" "?o.push(na()):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=Rm(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=Rm(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 Rm(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,ht(n)){const i=n.style.display;if(i===""&&!Df(n)||i!==""&&!i.startsWith("inline"))return null}let o=n;for(;(o=t?n.firstChild:n.lastChild)!==null;)n=o;if(lr(n))return n;if(n.nodeName==="BR")return null}}const TT={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function jn(e){const t=TT[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:Dd(e.style,t),node:null}}function rt(e=""){return Wr(new Ur(e))}function X(e){return e instanceof Ur}function Dd(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"),l=e.verticalAlign;return c=>(X(c)&&(o&&!c.hasFormat("bold")&&c.toggleFormat("bold"),i&&!c.hasFormat("strikethrough")&&c.toggleFormat("strikethrough"),s&&!c.hasFormat("italic")&&c.toggleFormat("italic"),a&&!c.hasFormat("underline")&&c.toggleFormat("underline"),l!=="sub"||c.hasFormat("subscript")||c.toggleFormat("subscript"),l!=="super"||c.hasFormat("superscript")||c.toggleFormat("superscript"),t&&!c.hasFormat(t)&&c.toggleFormat(t)),c)}class Qi extends Ur{static getType(){return"tab"}static clone(t){return new Qi(t.__key)}constructor(t){super(" ",t),this.__detail=2}static importDOM(){return null}createDOM(t){const n=super.createDOM(t),r=vi(t.theme,"tab");return r!==void 0&&n.classList.add(...r),n}static importJSON(t){return na().updateFromJSON(t)}setTextContent(t){return t!==" "&&t!==""&&rb(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 na(){return Wr(new Qi)}function Kb(e){return e instanceof Qi}class NT{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:Cx(Yt(tr(this,"next")),Yt(tr(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,ra()||(Er()===s&&ft(t),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}}function On(e,t,n){return new NT(e,t,n)}function Gc(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 Dm(e,t){if(R(t)){const n=t.getLastDescendant();R(n)||X(n)?Gc(e,n):Gc(e,t)}else Gc(e,t)}class Jl{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 Jl(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 ra()||(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()||Gi())===this&&t[0]){const n=xt(t[0],"next");a6(Dr(n,n))}for(const n of t)n.remove()}}function $(e){return e instanceof Bo}class Bo{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,l=new Set;for(const c of r)if(kn(c)){const{origin:u}=c;o.length===0?a.add(u):(l.add(u),o.push(u))}else{const{origin:u}=c;R(u)&&l.has(u)||o.push(u)}if(s&&o.push(s.caret.origin),ji(r.focus)&&R(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let c=un(r.focus.origin,"previous");kn(c)&&a.has(c.origin)&&!c.origin.isEmpty()&&c.origin.is(o[o.length-1]);c=ep(c))a.delete(c.origin),o.pop();for(;o.length>1;){const c=o[o.length-1];if(!R(c)||l.has(c)||c.isEmpty()||a.has(c))break;o.pop()}if(o.length===0&&r.isCollapsed()){const c=Yt(r.anchor),u=Yt(r.anchor.getFlipped()),f=p=>Nr(p)?p.origin:p.getNodeAtCaret(),d=f(c)||f(u)||(r.anchor.getNodeAtCaret()?c.origin:u.origin);o.push(d)}return o})(Sx(lg(this),"next"));return ra()||(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,l]=Nf(this);let c="",u=!0;for(let f=0;f<t.length;f++){const d=t[f];if(R(d)&&!d.isInline())u||(c+=`
|
|
601
|
+
`),u=!d.isEmpty();else if(u=!1,X(d)){let p=d.getTextContent();d===n?d===r?o.type==="element"&&i.type==="element"&&i.offset!==o.offset||(p=a<l?p.slice(a,l):p.slice(l,a)):p=s?p.slice(a):p.slice(l):d===r&&(p=s?p.slice(0,l):p.slice(0,a)),c+=p}else!Te(d)&&!bo(d)||d===r&&this.isCollapsed()||(c+=d.getTextContent())}return c}applyDOMRange(t){const n=Re(),r=n.getEditorState()._selection,o=qb(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),Ri(this)}clone(){const t=this.anchor,n=this.focus;return new Bo(On(t.key,t.offset,t.type),On(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(t){this.format=yl(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=Oo[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===`
|
|
602
602
|
`||s===`\r
|
|
603
|
-
`?r.push(Mo()):s===" "?r.push(ta()):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(m,y,v,b){const A=m.getNode(),w=A.getChildAtIndex(m.offset),_=rt();if(_.setFormat(v),_.setStyle(b),Bd(w))w.splice(0,0,[_]);else{const E=Ye(A)?Tt().append(_):_;w===null?A.append(E):w.insertBefore(E)}m.is(y)&&y.set(_.__key,0,"text"),m.set(_.__key,0,"text")})(s,a,o,i),a.type==="element"&&jo(a,Yt(tr(a,"next")));const l=s.offset;let c=a.offset;const u=this.getNodes(),f=u.length;let d=u[0];X(d)||U(26);const p=d.getTextContent().length,h=d.getParentOrThrow();let g=u[f-1];if(f===1&&a.type==="element"&&(c=p,a.set(s.key,c,"text")),this.isCollapsed()&&l===p&&(Bn(d)||!d.canInsertTextAfter()||!h.canInsertTextAfter()&&d.getNextSibling()===null)){let m=d.getNextSibling();if(X(m)&&m.canInsertTextBefore()&&!Bn(m)||(m=rt(),m.setFormat(o),m.setStyle(i),h.canInsertTextAfter()?d.insertAfter(m):h.insertAfter(m)),m.select(0,0),d=m,t!=="")return void this.insertText(t)}else if(this.isCollapsed()&&l===0&&(Bn(d)||!d.canInsertTextBefore()||!h.canInsertTextBefore()&&d.getPreviousSibling()===null)){let m=d.getPreviousSibling();if(X(m)&&!Bn(m)||(m=rt(),m.setFormat(o),h.canInsertTextBefore()?d.insertBefore(m):h.insertBefore(m)),m.select(),d=m,t!=="")return void this.insertText(t)}else if(d.isSegmented()&&l!==p){const m=rt(d.getTextContent());m.setFormat(o),d.replace(m),d=m}else if(!this.isCollapsed()&&t!==""){const m=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||R(m)&&(!m.canInsertTextBefore()||!m.canInsertTextAfter()))return this.insertText(""),Hb(this.anchor,this.focus,null),void this.insertText(t)}if(f===1){if(xo(d)){const b=rt(t);return b.select(),void d.replace(b)}const m=d.getFormat(),y=d.getStyle();if(l!==c||m===o&&y===i){if(Kb(d)){const b=rt(t);return b.setFormat(o),b.setStyle(i),b.select(),void d.replace(b)}}else{if(d.getTextContent()!==""){const b=rt(t);if(b.setFormat(o),b.setStyle(i),b.select(),l===0)d.insertBefore(b,!1);else{const[A]=d.splitText(l);A.insertAfter(b,!1)}return void(b.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length))}d.setFormat(o),d.setStyle(i)}const v=c-l;d=d.spliceText(l,v,t,!0),d.getTextContent()===""?d.remove():this.anchor.type==="text"&&(d.isComposing()?this.anchor.offset-=t.length:(this.format=m,this.style=y))}else{const m=new Set([...d.getParentKeys(),...g.getParentKeys()]),y=R(d)?d:d.getParentOrThrow();let v=R(g)?g:g.getParentOrThrow(),b=g;if(!y.is(v)&&v.isInline())do b=v,v=v.getParentOrThrow();while(v.isInline());if(a.type==="text"&&(c!==0||g.getTextContent()==="")||a.type==="element"&&g.getIndexWithinParent()<c)if(X(g)&&!xo(g)&&c!==g.getTextContentSize()){if(g.isSegmented()){const S=rt(g.getTextContent());g.replace(S),g=S}Ye(a.getNode())||a.type!=="text"||(g=g.spliceText(0,c,"")),m.add(g.__key)}else{const S=g.getParentOrThrow();S.canBeEmpty()||S.getChildrenSize()!==1?g.remove():S.remove()}else m.add(g.__key);const A=v.getChildren(),w=new Set(u),_=y.is(v),E=y.isInline()&&d.getNextSibling()===null?y:d;for(let S=A.length-1;S>=0;S--){const O=A[S];if(O.is(d)||R(O)&&O.isParentOf(d))break;O.isAttached()&&(!w.has(O)||O.is(b)?_||E.insertAfter(O,!1):O.remove())}if(!_){let S=v,O=null;for(;S!==null;){const P=S.getChildren(),I=P.length;(I===0||P[I-1].is(O))&&(m.delete(S.__key),O=S),S=S.getParent()}}if(xo(d))if(l===p)d.select();else{const S=rt(t);S.select(),d.replace(S)}else d=d.spliceText(l,p-l,t,!0),d.getTextContent()===""?d.remove():d.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length);for(let S=1;S<f;S++){const O=u[S],P=O.__key;m.has(P)||O.remove()}}}removeText(){const t=Z()===this;Ha(this,l6(cg(this))),t&&Z()!==this&&Pt(this)}formatText(t,n=null){if(this.isCollapsed())return this.toggleFormat(t),void ft(null);const r=this.getNodes(),o=[];for(const A of r)X(A)&&o.push(A);const i=A=>{r.forEach(w=>{if(R(w)){const _=w.getFormatFlags(t,A);w.setTextFormat(_)}})},s=o.length;if(s===0)return this.toggleFormat(t),ft(null),void i(n);const a=this.anchor,l=this.focus,c=this.isBackward(),u=c?l:a,f=c?a:l;let d=0,p=o[0],h=u.type==="element"?0:u.offset;if(u.type==="text"&&h===p.getTextContentSize()&&(d=1,p=o[1],h=0),p==null)return;const g=p.getFormatFlags(t,n);i(g);const m=s-1;let y=o[m];const v=f.type==="text"?f.offset:y.getTextContentSize();if(p.is(y)){if(h===v)return;if(Bn(p)||h===0&&v===p.getTextContentSize())p.setFormat(g);else{const A=p.splitText(h,v),w=h===0?A[0]:A[1];w.setFormat(g),u.type==="text"&&u.set(w.__key,0,"text"),f.type==="text"&&f.set(w.__key,v-h,"text")}return void(this.format=g)}h===0||Bn(p)||([,p]=p.splitText(h),h=0),p.setFormat(g);const b=y.getFormatFlags(t,g);v>0&&(v===y.getTextContentSize()||Bn(y)||([y]=y.splitText(v)),y.setFormat(b));for(let A=d+1;A<m;A++){const w=o[A],_=w.getFormatFlags(t,b);w.setFormat(_)}u.type==="text"&&u.set(p.__key,h,"text"),f.type==="text"&&f.set(y.__key,v,"text"),this.format=g|b}insertNodes(t){if(t.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const h=Z();return $(h)||U(134),h.insertNodes(t)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=at(n,mr),o=t[t.length-1];if(R(r)&&"__language"in r){if("__language"in t[0])this.insertText(t[0].getTextContent());else{const h=Gc(this);r.splice(h,0,t),o.selectEnd()}return}if(!t.some(h=>(R(h)||Te(h))&&!h.isInline())){R(r)||U(211,n.constructor.name,n.getType());const h=Gc(this);return r.splice(h,0,t),void o.selectEnd()}const i=(function(h){const g=Tt();let m=null;for(let y=0;y<h.length;y++){const v=h[y],b=bo(v);if(b||Te(v)&&v.isInline()||R(v)&&v.isInline()||X(v)||v.isParentRequired()){if(m===null&&(m=v.createParentElementNode(),g.append(m),b))continue;m!==null&&m.append(v)}else g.append(v),m=null}return g})(t),s=i.getLastDescendant(),a=i.getChildren(),l=!R(r)||!r.isEmpty()?this.insertParagraph():null,c=a[a.length-1];let u=a[0];var f;R(f=u)&&mr(f)&&!f.isEmpty()&&R(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(R(r)||U(211,n.constructor.name,n.getType()),r.append(...u.getChildren()),u=a[1]),u&&(r===null&&U(212,n.constructor.name,n.getType()),(function(h,g){const m=g.getParentOrThrow().getLastChild();let y=g;const v=[g];for(;y!==m;)y.getNextSibling()||U(140),y=y.getNextSibling(),v.push(y);let b=h;for(const A of v)b=b.insertAfter(A)})(r,u));const d=at(s,mr);l&&R(d)&&(l.canMergeWhenEmpty()||mr(c))&&(d.append(...l.getChildren()),l.remove()),R(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const p=R(r)?r.getLastChild():null;bo(p)&&d!==r&&p.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Tt();return We().splice(this.anchor.offset,0,[s]),s.select(),s}const t=Gc(this),n=at(this.anchor.getNode(),mr);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=Mo();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]=Nf(this),a=this.isBackward(),[l,c]=a?[this.focus,this.anchor]:[this.anchor,this.focus],[u,f]=a?[s,i]:[i,s];if(n===0)return[];if(n===1){if(X(r)&&!this.isCollapsed()){const d=r.splitText(u,f),p=u===0?d[0]:d[1];return p?(l.set(p.getKey(),0,"text"),c.set(p.getKey(),p.getTextContentSize(),"text"),[p]):[]}return[r]}if(X(r)&&(u===r.getTextContentSize()?t.shift():u!==0&&([,r]=r.splitText(u),t[0]=r,l.set(r.getKey(),0,"text"))),X(o)){const d=o.getTextContent().length;f===0?t.pop():f!==d&&([o]=o.splitText(f),t[t.length-1]=o,c.set(o.getKey(),o.getTextContentSize(),"text"))}return t}modify(t,n,r){if(Hm(this,t,n,r))return;const o=t==="move",i=Re(),s=en(Xt(i));if(!s)return;const a=i._blockCursorElement,l=i._rootElement,c=this.focus.getNode();if(l===null||a===null||!R(c)||c.isInline()||c.canBeEmpty()||Lf(a,i,l),this.dirty){let u=Lo(i,this.anchor.key),f=Lo(i,this.focus.key);this.anchor.type==="text"&&(u=Ri(u)),this.focus.type==="text"&&(f=Ri(f)),u&&f&&Gb(s,u,this.anchor.offset,f,this.focus.offset)}if((function(u,f,d,p){u.modify(f,d,p)})(s,t,n?"backward":"forward",r),s.rangeCount>0){const u=s.getRangeAt(0),f=this.anchor.getNode(),d=Ye(f)?f:qT(f);if(this.applyDOMRange(u),this.dirty=!0,!o){const p=this.getNodes(),h=[];let g=!1;for(let m=0;m<p.length;m++){const y=p[m];If(y,d)?h.push(y):g=!0}if(g&&h.length>0)if(n){const m=h[0];R(m)?m.selectStart():m.getParentOrThrow().selectStart()}else{const m=h[h.length-1];R(m)?m.selectEnd():m.getParentOrThrow().selectEnd()}s.anchorNode===u.startContainer&&s.anchorOffset===u.startOffset||(function(m){const y=m.focus,v=m.anchor,b=v.key,A=v.offset,w=v.type;v.set(y.key,y.offset,y.type,!0),y.set(b,A,w,!0)})(this)}}r==="lineboundary"&&Hm(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=rp(tr(r,t?"previous":"next"));if(i.getTextSlices().every(a=>a===null||a.distance===0)){let a={type:"initial"};for(const l of i.iterNodeCarets("shadowRoot"))if(kn(l)){if(!l.origin.isInline()){if(l.origin.isShadowRoot()){if(a.type==="merge-block")break;if(R(i.anchor.origin)&&i.anchor.origin.isEmpty()){const c=Yt(l);Ha(this,Dr(c,c)),i.anchor.origin.remove()}return}a.type!=="merge-next-block"&&a.type!=="merge-block"||(a={block:a.block,caret:l,type:"merge-block"})}}else{if(a.type==="merge-block")break;if(Fi(l)){if(R(l.origin)){if(l.origin.isInline()){if(!l.origin.isParentOf(i.anchor.origin))break}else a={block:l.origin,type:"merge-next-block"};continue}if(Te(l.origin)){if(!l.origin.isIsolated())if(a.type==="merge-next-block"&&(l.origin.isKeyboardSelectable()||!l.origin.isInline())&&R(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const c=Qb();c.add(l.origin.getKey()),Pt(c)}else l.origin.remove();return}break}}if(a.type==="merge-block"){const{caret:l,block:c}=a;return Ha(this,Dr(!l.origin.isEmpty()&&c.isEmpty()?op(bt(c,l.direction)):i.anchor,l)),this.removeText()}}const s=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&r.offset===0&&zm(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 l=s.offset,c=a.getTextContentSize();if(a.is(o)||t&&l!==c||!t&&l!==0)return void $m(a,t,l)}else if(o!==null&&o.isSegmented()){const l=r.offset,c=o.getTextContentSize();if(o.is(a)||t&&l!==0||!t&&l!==c)return void $m(o,t,l)}(function(l,c){const u=l.anchor,f=l.focus,d=u.getNode(),p=f.getNode();if(d===p&&u.type==="text"&&f.type==="text"){const h=u.offset,g=f.offset,m=h<g,y=m?h:g,v=m?g:h,b=v-1;y!==b&&(function(A){return!(mx(A)||OT(A))})(d.getTextContent().slice(y,v))&&(c?f.set(f.key,b,f.type):u.set(u.key,b,u.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&&zm(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 Zl}function jm(e){const t=e.offset;if(e.type==="text")return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Nf(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]:[jm(n),jm(r)]}function zm(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 OT=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch{}return()=>!1})();function $m(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,a=0;for(let c=0;c<i;c++){const u=c===i-1;if(a=s,s+=o[c].length,t&&s===n||s>n||u){o.splice(c,1),u&&(a=void 0);break}}const l=o.join("").trim();l===""?r.remove():(r.setTextContent(l),r.select(a,a))}function Um(e,t,n,r){let o,i=t;if(pt(e)){let s=!1;const a=e.childNodes,l=a.length,c=r._blockCursorElement;i===l&&(s=!0,i=l-1);let u=a[i],f=!1;if(u===c)u=a[i+1],f=!0;else if(c!==null){const d=c.parentNode;e===d&&t>Array.prototype.indexOf.call(d.children,c)&&i--}if(o=li(u),X(o))i=Or(o,s?"next":"previous");else{let d=li(e);if(d===null)return null;if(R(d)){const p=r.getElementByKey(d.getKey());p===null&&U(214),[d,i]=d.getDOMSlot(p).resolveChildIndex(d,p,e,t),R(d)||U(215),s&&i>=d.getChildrenSize()&&(i=Math.max(0,d.getChildrenSize()-1));let g=d.getChildAtIndex(i);if(R(g)&&(function(m,y,v){const b=m.getParent();return v===null||b===null||!b.canBeEmpty()||b!==v.getNode()})(g,0,n)){const m=s?g.getLastDescendant():g.getFirstDescendant();m===null?d=g:(g=m,d=R(g)?g:g.getParentOrThrow()),i=0}X(g)?(o=g,d=null,i=Or(g,s?"next":"previous")):g!==d&&s&&!f&&(R(d)||U(216),i=Math.min(d.getChildrenSize(),i+1))}else{const p=d.getIndexWithinParent();i=t===0&&Te(d)&&li(e)===d?p:p+1,d=d.getParentOrThrow()}if(R(d))return On(d.__key,i,"element")}}else o=li(e);return X(o)?On(o.__key,Or(o,i,"clamp"),"text"):null}function Bm(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 Hb(e,t,n){if(e.type==="text"&&t.type==="text"){const r=e.isBefore(t),o=e.is(t);Bm(e,r,o),Bm(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 qb(e,t,n,r,o,i){if(e===null||n===null||!oa(o,e,n))return null;const s=Um(e,t,$(i)?i.anchor:null,o);if(s===null)return null;const a=Um(n,r,$(i)?i.focus:null,o);if(a===null)return null;if(s.type==="element"&&a.type==="element"){const l=li(e),c=li(n);if(Te(l)&&Te(c))return null}return Hb(s,a,i),[s,a]}function Of(e){return R(e)&&!e.isInline()}function Vb(e,t,n,r,o,i){const s=Br(),a=new Uo(On(e,t,o),On(n,r,i),0,"");return a.dirty=!0,s._selection=a,a}function Yb(){const e=On("root",0,"element"),t=On("root",0,"element");return new Uo(e,t,0,"")}function Qb(){return new Zl(new Set)}function jd(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",l=!ff&&(a||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let c,u,f,d;if($(e)&&!l)return e.clone();if(t===null)return null;if(c=t.anchorNode,u=t.focusNode,f=t.anchorOffset,d=t.focusOffset,(a||s===void 0)&&$(e)&&!oa(n,c,u))return e.clone();const p=qb(c,f,u,d,n,e);if(p===null)return null;const[h,g]=p;return new Uo(h,g,$(e)?e.format:0,$(e)?e.style:"")}function Z(){return Br()._selection}function Yi(){return Re()._editorState._selection}function hl(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 l=t.__key;if(e.isCollapsed()){const c=o.offset;if(n<=c&&r>0||n<c&&r<0){const u=Math.max(0,c+r);o.set(l,u,"element"),i.set(l,u,"element"),Wm(e)}}else{const c=e.isBackward(),u=c?i:o,f=u.getNode(),d=c?o:i,p=d.getNode();if(t.is(f)){const h=u.offset;(n<=h&&r>0||n<h&&r<0)&&u.set(l,Math.max(0,h+r),"element")}if(t.is(p)){const h=d.offset;(n<=h&&r>0||n<h&&r<0)&&d.set(l,Math.max(0,h+r),"element")}}Wm(e)}function Wm(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(),l=n>=a,c=l?i.getChildAtIndex(a-1):i.getChildAtIndex(n);if(X(c)){let u=0;l&&(u=c.getTextContentSize()),t.set(c.__key,u,"text"),r.set(c.__key,u,"text")}return}if(R(i)){const a=i.getChildrenSize(),l=n>=a,c=l?i.getChildAtIndex(a-1):i.getChildAtIndex(n);if(X(c)){let u=0;l&&(u=c.getTextContentSize()),t.set(c.__key,u,"text")}}if(R(s)){const a=s.getChildrenSize(),l=o>=a,c=l?s.getChildAtIndex(a-1):s.getChildAtIndex(o);if(X(c)){let u=0;l&&(u=c.getTextContentSize()),r.set(c.__key,u,"text")}}}function ml(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 Km(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 Gb(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch{}}function PT(e,t,n,r,o,i,s){const a=r.anchorNode,l=r.focusNode,c=r.anchorOffset,u=r.focusOffset,f=document.activeElement;if(o.has(bT)&&f!==i||f!==null&&Hd(f))return;if(!$(t))return void(e!==null&&oa(n,a,l)&&r.removeAllRanges());const d=t.anchor,p=t.focus,h=d.key,g=p.key,m=Lo(n,h),y=Lo(n,g),v=d.offset,b=p.offset,A=t.format,w=t.style,_=t.isCollapsed();let E=m,S=y,O=!1;if(d.type==="text"){E=Ri(m);const Y=d.getNode();O=Y.getFormat()!==A||Y.getStyle()!==w}else $(e)&&e.anchor.type==="text"&&(O=!0);var P,I,W,j,z;if(p.type==="text"&&(S=Ri(y)),E!==null&&S!==null&&(_&&(e===null||O||$(e)&&(e.format!==A||e.style!==w))&&(P=A,I=w,W=v,j=h,z=performance.now(),Rb=[P,I,W,j,z]),c!==v||u!==b||a!==E||l!==S||r.type==="Range"&&_||(f!==null&&i.contains(f)||o.has(AT)||i.focus({preventScroll:!0}),d.type==="element"))){if(Gb(r,E,v,S,b),!o.has(xT)&&t.isCollapsed()&&i!==null&&i===document.activeElement){const Y=$(t)&&t.anchor.type==="element"?E.childNodes[v]||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=bx(re),F=Zd(L);if(L===null||F===null)return;let{top:K,bottom:B}=M,J=0,V=0,ee=re;for(;ee!==null;){const te=ee===L.body;if(te)J=0,V=Xt(oe).innerHeight;else{const ye=ee.getBoundingClientRect();J=ye.top,V=ye.bottom}let he=0;if(K<J?he=-(J-K):B>V&&(he=B-V),he!==0)if(te)F.scrollBy(0,he);else{const ye=ee.scrollTop;ee.scrollTop+=he;const me=ee.scrollTop-ye;K-=me,B-=me}if(te)break;ee=ia(ee)}})(n,Q,i)}}Cf=!0}}function Zb(e){let t=Z()||Yi();t===null&&(t=We().selectEnd()),t.insertNodes(e)}function Gc(e){let t=e;e.isCollapsed()||t.removeText();const n=Z();$(n)&&(t=n),$(t)||U(161);const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!mr(o);){const s=o;if([o,i]=MT(o,i),s.is(o))break}return i}function MT(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 Uo(On(e.__key,t,"element"),On(e.__key,t,"element"),0,""),i=e.insertNewAfter(o);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function Hm(e,t,n,r,o="decorators-and-blocks"){if(t==="move"&&r==="character"&&!e.isCollapsed()){const[u,f]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return f.set(u.key,u.offset,u.type),!0}const i=tr(e.focus,n?"previous":"next"),s=r==="lineboundary",a=t==="move";let l=i,c=o==="decorators-and-blocks";if(!Ex(l)){for(const u of l){c=!1;const{origin:f}=u;if(!Te(f)||f.isIsolated()||(l=u,!s||!f.isInline()))break}if(c)for(const u of rp(i).iterNodeCarets(t==="extend"?"shadowRoot":"root")){if(kn(u))u.origin.isInline()||(l=u);else{if(R(u.origin))continue;Te(u.origin)&&!u.origin.isInline()&&(l=u)}break}}if(l===i)return!1;if(a&&!s&&Te(l.origin)&&l.origin.isKeyboardSelectable()){const u=Qb();return u.add(l.origin.getKey()),Pt(u),!0}return l=Yt(l),a&&jo(e.anchor,l),jo(e.focus,l),c||!s}let it=null,st=null,Ft=!1,Zc=!1,Wa=0;const qm={characterData:!0,childList:!0,subtree:!0};function na(){return Ft||it!==null&&it._readOnly}function yt(){Ft&&U(13)}function Jb(){Wa>99&&U(14)}function Br(){return it===null&&U(195,Xb()),it}function Re(){return st===null&&U(196,Xb()),st}function Xb(){let e=0;const t=new Set,n=Io.version;if(typeof window<"u")for(const o of document.querySelectorAll("[contenteditable]")){const i=Xl(o);if(qd(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 IT(){return st}function Vm(e,t,n){const r=t.__type,o=ax(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 Ym(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function ex(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 LT(e){return zd(e,Re()._nodes)}function zd(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 l=zd(s[a],t);i.append(l)}return i}function Qm(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 Yn(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,l=e._dirtyType!==0,c=it,u=Ft,f=st,d=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&l&&p!==null){st=e,it=n,Ft=!1,e._updating=!0;try{const _=e._dirtyType,E=e._dirtyElements,S=e._dirtyLeaves;p.disconnect(),h=J3(i,n,e,_,E,S)}catch(_){if(_ instanceof Error&&e._onError(_),Zc)throw _;return ix(e,null,r,n),ub(e),e._dirtyType=2,Zc=!0,Yn(e,i),void(Zc=!1)}finally{p.observe(r,qm),e._updating=d,it=c,Ft=u,st=f}}n._readOnly||(n._readOnly=!0);const g=e._dirtyLeaves,m=e._dirtyElements,y=e._normalizedNodes,v=e._updateTags,b=e._deferred;l&&(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=_._decorators;let O=_._pendingDecorators||S;const P=E._nodeMap;let I;for(I in O)P.has(I)||(O===S&&(O=px(_)),delete O[I])})(e,n);const A=o?null:en(Xt(e));if(e._editable&&A!==null&&(l||a===null||a.dirty||!a.is(s))&&r!==null&&!v.has(wT)){st=e,it=n;try{if(p!==null&&p.disconnect(),l||a===null||a.dirty){const _=e._blockCursorElement;_!==null&&Lf(_,e,r),PT(s,a,e,A,v,r)}(function(_,E,S){let O=_._blockCursorElement;if($(S)&&S.isCollapsed()&&S.anchor.type==="element"&&E.contains(document.activeElement)){const P=S.anchor,I=P.getNode(),W=P.offset;let j=!1,z=null;if(W===I.getChildrenSize())Xc(I.getChildAtIndex(W-1))&&(j=!0);else{const Y=I.getChildAtIndex(W);if(Y!==null&&Xc(Y)){const Q=Y.getPreviousSibling();(Q===null||Xc(Q))&&(j=!0,z=_.getElementByKey(Y.__key))}}if(j){const Y=_.getElementByKey(I.__key);return O===null&&(_._blockCursorElement=O=(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=ib(re);re=oe.blockCursor=L}re!==void 0&&M.classList.add(...re)}return M})(_._config)),E.style.caretColor="transparent",void(z===null?Y.appendChild(O):Y.insertBefore(O,z))}}O!==null&&Lf(O,_,E)})(e,r,a)}finally{p!==null&&p.observe(r,qm),st=f,it=c}}h!==null&&(function(_,E,S,O,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=E.get(Q);oe!==void 0&&z(oe,{dirtyLeaves:O,prevEditorState:P,updateTags:S})}}})(e,h,v,g,i),$(a)||a===null||s!==null&&s.is(a)||e.dispatchCommand(Yl,void 0);const w=e._pendingDecorators;w!==null&&(e._decorators=w,e._pendingDecorators=null,xs("decorator",e,!0,w)),(function(_,E,S){const O=Xm(E),P=Xm(S);O!==P&&xs("textcontent",_,!0,P)})(e,t||i,n),xs("update",e,!0,{dirtyElements:m,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:y,prevEditorState:t||i,tags:v}),(function(_,E){if(_._deferred=[],E.length!==0){const S=_._updating;_._updating=!0;try{for(let O=0;O<E.length;O++)E[O]()}finally{_._updating=S}}})(e,b),(function(_){const E=_._updates;if(E.length!==0){const S=E.shift();if(S){const[O,P]=S;Jl(_,O,P)}}})(e)}function xs(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 Gm(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 l;s!==void 0&&(l=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete&&(a===null&&U(191),a._flushSync=!0),l&&e._deferred.push(l),ex(e,s.tag)),a==null?Jl(e,i,s):i()}}return r}function Jl(e,t,n){const r=e._updateTags;let o,i=!1,s=!1;n!==void 0&&(o=n.onUpdate,ex(e,n.tag),i=n.skipTransforms||!1,s=n.discrete||!1),o&&e._deferred.push(o);const a=e._editorState;let l=e._pendingEditorState,c=!1;(l===null||l._readOnly)&&(l=e._pendingEditorState=nx(l||a),c=!0),l._flushSync=s;const u=it,f=Ft,d=st,p=e._updating;it=l,Ft=!1,e._updating=!0,st=e;const h=e._headless||e.getRootElement()===null;Wd(null);try{c&&(h?a._selection!==null&&(l._selection=a._selection.clone()):l._selection=(function(v,b){const A=v.getEditorState()._selection,w=en(Xt(v));return $(A)||A==null?jd(A,w,v,b):A.clone()})(e,n&&n.event||null));const m=e._compositionKey;t(),i=Gm(e,i),(function(v,b){const A=b.getEditorState()._selection,w=v._selection;if($(w)){const _=w.anchor,E=w.focus;let S;if(_.type==="text"&&(S=_.getNode(),S.selectionTransform(A,w)),E.type==="text"){const O=E.getNode();S!==O&&O.selectionTransform(A,w)}}})(l,e),e._dirtyType!==0&&(i?(function(v,b){const A=b._dirtyLeaves,w=v._nodeMap;for(const _ of A){const E=w.get(_);X(E)&&E.isAttached()&&E.isSimpleText()&&!E.isUnmergeable()&&Sm(E)}})(l,e):(function(v,b){const A=b._dirtyLeaves,w=b._dirtyElements,_=v._nodeMap,E=Er(),S=new Map;let O=A,P=O.size,I=w,W=I.size;for(;P>0||W>0;){if(P>0){b._dirtyLeaves=new Set;for(const j of O){const z=_.get(j);X(z)&&z.isAttached()&&z.isSimpleText()&&!z.isUnmergeable()&&Sm(z),z!==void 0&&Ym(z,E)&&Vm(b,z,S),A.add(j)}if(O=b._dirtyLeaves,P=O.size,P>0){Wa++;continue}}b._dirtyLeaves=new Set,b._dirtyElements=new Map,I.delete("root")&&I.set("root",!0);for(const j of I){const z=j[0],Y=j[1];if(w.set(z,Y),!Y)continue;const Q=_.get(z);Q!==void 0&&Ym(Q,E)&&Vm(b,Q,S)}O=b._dirtyLeaves,P=O.size,I=b._dirtyElements,W=I.size,Wa++}b._dirtyLeaves=A,b._dirtyElements=w})(l,e),Gm(e),(function(v,b,A,w){const _=v._nodeMap,E=b._nodeMap,S=[];for(const[O]of w){const P=E.get(O);P!==void 0&&(P.isAttached()||(R(P)&&ab(P,O,_,E,S,w),_.has(O)||w.delete(O),S.push(O)))}for(const O of S)E.delete(O);for(const O of A){const P=E.get(O);P===void 0||P.isAttached()||(_.has(O)||A.delete(O),E.delete(O))}})(a,l,e._dirtyLeaves,e._dirtyElements)),m!==e._compositionKey&&(l._flushSync=!0);const y=l._selection;if($(y)){const v=l._nodeMap,b=y.anchor.key,A=y.focus.key;v.get(b)!==void 0&&v.get(A)!==void 0||U(19)}else ot(y)&&y._nodes.size===0&&(l._selection=null)}catch(m){return m instanceof Error&&e._onError(m),e._pendingEditorState=a,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Yn(e)}finally{it=u,Ft=f,st=d,e._updating=p,Wa=0}e._dirtyType!==0||e._deferred.length>0||(function(m,y){const v=y.getEditorState()._selection,b=m._selection;if(b!==null){if(b.dirty||!b.is(v))return!0}else if(v!==null)return!0;return!1})(l,e)?l._flushSync?(l._flushSync=!1,Yn(e)):c&&$T(()=>{Yn(e)}):(l._flushSync=!1,c&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Sn(e,t,n){st===e&&n===void 0?t():Jl(e,t,n)}class ws{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 ws(this.element,t,this.after)}withAfter(t){return new ws(this.element,this.before,t)}withElement(t){return this.element===t?this:new ws(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"&&(ea||Hi||Xs);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 l=this.getFirstChildOffset();return[t,Math.min(l+t.getChildrenSize(),Math.max(l,o))]}const i=Zm(n,r);i.push(o);const s=Zm(n,this.element);let a=t.getIndexWithinParent();for(let l=0;l<s.length;l++){const c=i[l],u=s[l];if(c===void 0||c<u)break;if(c>u){a+=1;break}}return[t.getParentOrThrow(),a]}}function Zm(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 Pn extends ln{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 $3[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&&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+=Rr)}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=vm[n];return(this.getFormat()&r)!==0}return!1}hasTextFormat(n){const r=No[n];return(this.getTextFormat()&r)!==0}getFormatFlags(n,r){return gl(this.getLatest().__textFormat,n,r)}getTextStyle(){return this.getLatest().__textStyle}select(n,r){yt();const o=Z();let i=n,s=r;const a=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&r===0){const c=this.getFirstChild();if(X(c)||R(c))return c.select(0,0)}else if(!(n!==void 0&&n!==a||r!==void 0&&r!==a)){const c=this.getLastChild();if(X(c)||R(c))return c.select()}}i===void 0&&(i=a),s===void 0&&(s=a);const l=this.__key;return $(o)?(o.anchor.set(l,i,"element"),o.focus.set(l,s,"element"),o.dirty=!0,o):Vb(l,i,l,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!==""?vm[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){pl(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,l=[],c=[],u=this.getChildAtIndex(n+r);let f=null,d=i-r+o.length;if(n!==0)if(n===i)f=this.getLastChild();else{const h=this.getChildAtIndex(n);h!==null&&(f=h.getPreviousSibling())}if(r>0){let h=f===null?this.getFirstChild():f.getNextSibling();for(let g=0;g<r;g++){h===null&&U(100);const m=h.getNextSibling(),y=h.__key;wo(h.getWritable()),c.push(y),h=m}}let p=f;for(const h of o){p!==null&&h.is(p)&&(f=p=p.getPreviousSibling());const g=h.getWritable();g.__parent===a&&d--,wo(g);const m=h.__key;if(p===null)s.__first=m,g.__prev=null;else{const y=p.getWritable();y.__next=m,g.__prev=y.__key}h.__key===a&&U(76),g.__parent=a,l.push(m),p=h}if(n+r===i)p!==null&&(p.getWritable().__next=null,s.__last=p.__key);else if(u!==null){const h=u.getWritable();if(p!==null){const g=p.getWritable();h.__prev=p.__key,g.__next=u.__key}else h.__prev=null}if(s.__size=d,c.length){const h=Z();if($(h)){const g=new Set(c),m=new Set(l),{anchor:y,focus:v}=h;Jm(y,g,m)&&ml(y,y.getNode(),this,f,u),Jm(v,g,m)&&ml(v,v.getNode(),this,f,u),d!==0||this.canBeEmpty()||jt(this)||this.remove()}}return s}getDOMSlot(n){return new ws(n)}exportDOM(n){const{element:r}=super.exportDOM(n);if(pt(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 Pn}function Jm(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 tx extends ln{decorate(t,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Te(e){return e instanceof tx}class Qi extends Pn{constructor(){super("root");D(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new Qi}getTopLevelElementOrThrow(){U(51)}getTextContent(){const n=this.__cachedText;return!na()&&Re()._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 Qi}function nx(e){return new ra(new Map(e._nodeMap))}function $d(){return new ra(new Map([["root",new Qi]]))}function rx(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=rx(o[i]);r.push(s)}}return t}function RT(e){return e instanceof ra}class ra{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 Qm(n&&n.editor||null,this,t)}clone(t){const n=new ra(this._nodeMap,t===void 0?this._selection:t);return n._readOnly=!0,n}toJSON(){return Qm(null,this,()=>({root:rx(We())}))}}class Ud extends Pn{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class Gi extends Pn{static getType(){return"paragraph"}static clone(t){return new Gi(t.__key)}createDOM(t){const n=document.createElement("p"),r=yi(t.theme,"paragraph");return r!==void 0&&n.classList.add(...r),n}updateDOM(t,n,r){return!1}static importDOM(){return{p:t=>({conversion:DT,priority:0})}}exportDOM(t){const{element:n}=super.exportDOM(t);if(pt(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 DT(e){const t=Tt();return e.style&&(t.setFormat(e.style.textAlign),ZT(e,t)),{node:t}}function Tt(){return Wr(new Gi)}function Bd(e){return e instanceof Gi}const Ae=0,Qn=1,FT=3,ox=4;function ix(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=$d(),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 jT(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:o}=nc(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 ln&&s!==ln?s:void 0}}return t}function sx(e){const t=e||{},n=IT(),r=t.theme||{},o=e===void 0?n:t.parentEditor||null,i=t.disableEvents||!1,s=$d(),a=t.namespace||(o!==null?o._config.namespace:gx()),l=t.editorState,c=[Qi,Ur,qi,Vi,Gi,Ud,...t.nodes||[]],{onError:u,html:f}=t,d=t.editable===void 0||t.editable;let p;if(e===void 0&&n!==null)p=n._nodes;else{p=new Map;for(let g=0;g<c.length;g++){let m=c[g],y=null,v=null;if(typeof m!="function"){const w=m;m=w.replace,y=w.with,v=w.withKlass||null}nc(m);const b=m.getType(),A=jT(m);p.set(b,{exportDOM:f&&f.export?f.export.get(m):void 0,klass:m,replace:y,replaceWithKlass:v,sharedNodeState:V3(c[g]),transforms:A})}}const h=new Io(s,o,p,{disableEvents:i,namespace:a,theme:r},u||console.error,(function(g,m){const y=new Map,v=new Set,b=A=>{Object.keys(A).forEach(w=>{let _=y.get(w);_===void 0&&(_=[],y.set(w,_)),_.push(A[w])})};return g.forEach(A=>{const w=A.klass.importDOM;if(w==null||v.has(w))return;v.add(w);const _=w.call(A.klass);_!==null&&b(_)}),m&&b(m),y})(p,f?f.import:void 0),d,e);return l!==void 0&&(h._pendingEditorState=l,h._dirtyType=2),(function(g){g.registerCommand(yb,fT,Ae),g.registerCommand(vb,dT,Ae),g.registerCommand(bb,pT,Ae),g.registerCommand(xb,hT,Ae),g.registerCommand(wb,mT,Ae)})(h),h}class Io{constructor(t,n,r,o,i,s,a,l){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=l,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=sg(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 l=sg(s.getEditorState()),c=[];for(const u of a){const f=l.get(u);f&&c.push(f)}c.length!==0&&s.update(()=>{for(const u of c)for(const f of u.keys()){const d=Xe(f);d&&d.markDirty()}},s._pendingEditorState===null?{tag:vo}: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=yi(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=t,ix(this,n,t,o),n!==null&&(this._config.disableEvents||gT(n),r!=null&&n.classList.remove(...r)),t!==null){const i=Zd(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,ub(this),this._updateTags.add(vo),Yn(this),this._config.disableEvents||(function(a,l){const c=a.ownerDocument;Af.set(a,c);const u=fl.get(c)??0;u<1&&c.addEventListener("selectionchange",$b),fl.set(c,u+1),a.__lexicalEditor=l;const f=zb(a);for(let d=0;d<wf.length;d++){const[p,h]=wf[d],g=typeof h=="function"?m=>{Im(m)||(Mm(m),(l.isEditable()||p==="click")&&h(m,l))}:m=>{if(Im(m))return;Mm(m);const y=l.isEditable();switch(p){case"cut":return y&&ie(l,Dd,m);case"copy":return ie(l,Gl,m);case"paste":return y&&ie(l,Ql,m);case"dragstart":return y&&ie(l,Pb,m);case"dragover":return y&&ie(l,Mb,m);case"dragend":return y&&ie(l,iT,m);case"focus":return y&&ie(l,lT,m);case"blur":return y&&ie(l,cT,m);case"drop":return y&&ie(l,Ob,m)}};a.addEventListener(p,g),f.push(()=>{a.removeEventListener(p,g)})}})(t,this),r!=null&&t.classList.add(...r)}else this._window=null,this._updateTags.add(vo),Yn(this);xs("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=nx(t),r._selection=t._selection?t._selection.clone():null),cb(this);const o=this._pendingEditorState,i=this._updateTags,s=n!==void 0?n.tag:null;o===null||o.isEmpty()||(s!=null&&i.add(s),Yn(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||Yn(this)}parseEditorState(t,n){return(function(r,o,i){const s=$d(),a=it,l=Ft,c=st,u=o._dirtyElements,f=o._dirtyLeaves,d=o._cloneNotNeeded,p=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,it=s,Ft=!1,st=o,Wd(null);try{const h=o._nodes;zd(r.root,h),i&&i(),s._readOnly=!0}catch(h){h instanceof Error&&o._onError(h)}finally{o._dirtyElements=u,o._dirtyLeaves=f,o._cloneNotNeeded=d,o._dirtyType=p,it=a,Ft=l,st=c}return s})(typeof t=="string"?JSON.parse(t):t,this,n)}read(t){return Yn(this),this.getEditorState().read(t,{editor:this})}update(t,n){(function(r,o,i){r._updating?r._updates.push([o,i]):Jl(r,o,i)})(this,t,n)}focus(t,n={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Sn(this,()=>{const o=Z(),i=We();o!==null?o.dirty||Pt(o.clone()):i.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),KT("focus"),HT(()=>{r.removeAttribute("autocapitalize"),t&&t()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;t!==null&&t.blur();const n=en(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,xs("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}D(Io,"version");Io.version="0.39.0+prod.esm";let Pf=null;function Wd(e){Pf=e}let zT=1;function ax(e,t){const n=Kd(e,t);return n===void 0&&U(30,t),n}function Kd(e,t){return e._nodes.get(t)}const $T=typeof queueMicrotask=="function"?queueMicrotask:e=>{Promise.resolve().then(e)};function lx(e){return Te(Di(e))}function Hd(e){const t=document.activeElement;if(!pt(t))return!1;const n=t.nodeName;return Te(Di(e))&&(n==="INPUT"||n==="TEXTAREA"||t.contentEditable==="true"&&Xl(t)==null)}function oa(e,t,n){const r=e.getRootElement();try{return r!==null&&r.contains(t)&&r.contains(n)&&t!==null&&!Hd(t)&&cx(t)===e}catch{return!1}}function qd(e){return e instanceof Io}function cx(e){let t=e;for(;t!=null;){const n=Xl(t);if(qd(n))return n;t=ia(t)}return null}function Xl(e){return e?e.__lexicalEditor:null}function xo(e){return Kb(e)||e.isToken()}function Bn(e){return xo(e)||e.isSegmented()}function lr(e){return Zi(e)&&e.nodeType===3}function ux(e){return Zi(e)&&e.nodeType===9}function Ri(e){let t=e;for(;t!=null;){if(lr(t))return t;t=t.firstChild}return null}function gl(e,t,n){const r=No[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)||bo(e)||Te(e)}function UT(e,t){const n=(function(){const s=Pf;return Pf=null,s})();if((t=t||n&&n.__key)!=null)return void(e.__key=t);yt(),Jb();const r=Re(),o=Br(),i=""+zT++;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 wo(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,l=o!==null?o.getWritable():null,c=i!==null?i.getWritable():null;o===null&&(r.__first=s),i===null&&(r.__last=a),l!==null&&(l.__next=s),c!==null&&(c.__prev=a),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function yl(e){Jb(),pl(e)&&U(323,e.__key,e.__type);const t=e.getLatest(),n=t.__parent,r=Br(),o=Re(),i=r._nodeMap,s=o._dirtyElements;n!==null&&(function(l,c,u){let f=l;for(;f!==null;){if(u.has(f))return;const d=c.get(f);if(d===void 0)break;u.set(f,!1),f=d.__parent}})(n,i,s);const a=t.__key;o._dirtyType=1,R(e)?s.set(a,!0):o._dirtyLeaves.add(a)}function ft(e){yt();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 Er(){return na()?null:Re()._compositionKey}function Xe(e,t){const n=(t||Br())._nodeMap.get(e);return n===void 0?null:n}function dx(e,t){const n=ec(e,Re());return n!==void 0?Xe(n,t):null}function ec(e,t){return e[`__lexicalKey_${t._key}`]}function Di(e,t){let n=e;for(;n!=null;){const r=dx(n,t);if(r!==null)return r;n=ia(n)}return null}function px(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Xm(e){return e.read(()=>We().getTextContent())}function We(){return hx(Br())}function hx(e){return e._nodeMap.get("root")}function Pt(e){yt();const t=Br();e!==null&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function li(e){const t=Re(),n=(function(r,o){let i=r;for(;i!=null;){const s=ec(i,o);if(s!==void 0)return s;i=ia(i)}return null})(e,t);return n===null?e===t.getRootElement()?Xe("root"):null:Xe(n)}function mx(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Vd(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 yx(e){return lr(e)?e.nodeValue:null}function Yd(e,t,n){const r=en(Xt(t));if(r===null)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(o!==null){let a=yx(o);const l=Di(o);if(a!==null&&X(l)){if(a===ql&&n){const c=n.length;a=n,i=c,s=c}a!==null&&Qd(l,a,i,s,e)}}}function Qd(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]===ql&&(a=t.slice(0,-1));const l=i.getTextContent();if(o||a!==l){if(a===""){if(ft(null),Xs||Hi||ea)i.remove();else{const g=Re();setTimeout(()=>{g.update(()=>{i.isAttached()&&i.remove()})},20)}return}const c=i.getParent(),u=Yi(),f=i.getTextContentSize(),d=Er(),p=i.getKey();if(i.isToken()||d!==null&&p===d&&!s||$(u)&&(c!==null&&!c.canInsertTextBefore()&&u.anchor.offset===0||u.anchor.key===e.__key&&u.anchor.offset===0&&!i.canInsertTextBefore()&&!s||u.focus.key===e.__key&&u.focus.offset===f&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const h=Z();if(!$(h)||n===null||r===null)return void eg(i,a,h);if(h.setTextNodeRange(i,n,i,r),i.isSegmented()){const g=rt(i.getTextContent());i.replace(g),i=g}eg(i,a,h)}}}function eg(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=Or(e,i.offset,"clamp"))}}}function Sa(e,t,n){const r=t[n]||!1;return r==="any"||r===e[n]}function BT(e,t){return Sa(e,t,"altKey")&&Sa(e,t,"ctrlKey")&&Sa(e,t,"shiftKey")&&Sa(e,t,"metaKey")}function Ie(e,t,n){return BT(e,n)&&e.key.toLowerCase()===t.toLowerCase()}const $n={ctrlKey:!sn,metaKey:sn},tg={altKey:sn,ctrlKey:!sn};function ng(e){return e.key==="Backspace"}function rg(e){return Ie(e,"a",$n)}function WT(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"),Li(e),e}{const n=t.select(0,t.getChildrenSize());return Pt(Li(n)),n}}function yi(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=ib(o);return n[t]=i,i}return o}function Gd(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 l=a.klass;let c=e.get(l);c===void 0&&(c=new Map,e.set(l,c));const u=c.get(s),f=u==="destroyed"&&o==="created";(u===void 0||f)&&c.set(s,f?"updated":o)}function og(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 Mf(e,t){const n=e.offset;if(e.type==="element")return og(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?og(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):o}}return null}function vx(e){const t=Xt(e).event,n=t&&t.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function ie(e,t,n){return(function(r,o,i){const s=Vd(r);for(let a=4;a>=0;a--)for(let l=0;l<s.length;l++){const c=s[l],u=c._commands.get(o);if(u!==void 0){const f=u[a];if(f!==void 0){const d=Array.from(f),p=d.length;let h=!1;if(Sn(c,()=>{for(let g=0;g<p;g++)if(d[g](i,r))return void(h=!0)}),h)return h}}}return!1})(e,t,n)}function tc(e){return!Ye(e)&&!e.isLastChild()&&!e.isInline()}function Lo(e,t){const n=e._keyToDOMMap.get(t);return n===void 0&&U(75,t),n}function ia(e){const t=e.assignedSlot||e.parentElement;return Rf(t)?t.host:t}function bx(e){return ux(e)?e:pt(e)?e.ownerDocument:null}function KT(e){yt(),Re()._updateTags.add(e)}function HT(e){yt(),Re()._deferred.push(e)}function If(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function Zd(e){const t=bx(e);return t?t.defaultView:null}function Xt(e){const t=e._window;return t===null&&U(78),t}function qT(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 Wr(e){const t=Re(),n=e.getType(),r=Kd(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 Jc(e,t){!Ye(e.getParent())||R(t)||Te(t)||U(99)}function VT(e){const t=Xe(e);return t===null&&U(63,e),t}function Xc(e){return(Te(e)||R(e)&&!e.canBeEmpty())&&!e.isInline()}function Lf(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;r!==null&&r.removeChild(e)}function en(e){return dn?(e||window).getSelection():null}function YT(e){const t=Zd(e);return t?t.getSelection():null}function xx(e){return pt(e)&&e.tagName==="A"}function pt(e){return Zi(e)&&e.nodeType===1}function Zi(e){return typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeType=="number"}function Rf(e){return Zi(e)&&e.nodeType===11}function Df(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 vl(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 mr(e){if(Te(e)&&!e.isInline())return!0;if(!R(e)||jt(e))return!1;const t=e.getFirstChild(),n=t===null||bo(t)||X(t)||t.isInline();return!e.isInline()&&e.canBeEmpty()!==!1&&n}function Jd(){return Re()}const ig=new WeakMap,QT=new Map;function sg(e){if(!e._readOnly&&e.isEmpty())return QT;e._readOnly||U(192);let t=ig.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),ig.set(e,t)),t}function wx(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function GT(e){return(t=wx(e))[Ub]=!0,t;var t}function ZT(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function JT(e){return e.__lexicalUnmanaged===!0}function cs(e,t){return(function(n,r){return Object.prototype.hasOwnProperty.call(n,r)})(e,t)&&e[t]!==ln[t]}function nc(e){const t=bm in e.prototype?e.prototype[bm]():void 0,n=(function(s){if(!(s===ln||s.prototype instanceof ln)){let a="<unknown>",l="<unknown>";try{a=s.getType()}catch{}try{Io.version&&(l=JSON.parse(Io.version))}catch{}U(290,s.name,a,l)}return s===tx||s===Pn||s===ln})(e),r=!n&&cs(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&&(cs(e,"getType")||(e.getType=()=>i),cs(e,"clone")||(e.clone=s=>(Wd(s),new e)),cs(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(s=>new e().updateFromJSON(s))),!cs(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},XT={next:"previous",previous:"next"};class Xd{constructor(t){D(this,"origin");this.origin=t}[Symbol.iterator](){return Ax({hasNext:Fi,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return bt(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return bt(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 l=i.getAdjacentCaret();l!==null&&a.size<t;l=l.getAdjacentCaret()){const c=l.origin.getWritable();a.set(c.getKey(),c)}for(const l of o){if(a.size>0){const c=i.getNodeAtCaret();if(c){if(a.delete(c.getKey()),a.delete(l.getKey()),!(c.is(l)||i.origin.is(l))){const u=l.getParent();u&&u.is(s)&&l.remove(),c.replace(l)}}else c===null&&U(263,Array.from(a).join(" "))}else i.insert(l);i=bt(l,this.direction)}for(const l of a.values())l.remove();return this}}class Fs extends Xd{constructor(){super(...arguments);D(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:un(n,this.direction)}getParentCaret(n="root"){return bt(ep(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Ji(this.direction);return bt(this.getNodeAtCaret(),n)||un(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Fs&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const e6={root:Ye,shadowRoot:jt};function Ji(e){return XT[e]}function ep(e,t="root"){return e6[t](e)?null:e}class Ro extends Xd{constructor(){super(...arguments);D(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:bt(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return R(this.origin)?un(this.origin,this.direction):null}getParentCaret(n="root"){return bt(ep(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Ji(this.direction);return bt(this.getNodeAtCaret(),n)||un(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof Ro&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof Ro||n instanceof Do)&&this.direction===n.direction&&this.origin.is(n.origin)}}class Do extends Xd{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:Fo(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return bt(ep(this.getParentAtCaret(),n),this.direction)}getFlipped(){return Fo(this.origin,Ji(this.direction),this.offset)}isSamePointCaret(n){return n instanceof Do&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof Ro||n instanceof Do)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return bt(this.origin,this.direction)}}function Nr(e){return e instanceof Do}function Fi(e){return e instanceof Ro}function kn(e){return e instanceof Fs}const t6={next:class extends Do{constructor(){super(...arguments);D(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends Do{constructor(){super(...arguments);D(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},n6={next:class extends Ro{constructor(){super(...arguments);D(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends Ro{constructor(){super(...arguments);D(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},r6={next:class extends Fs{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 Fs{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 bt(e,t){return e?new n6[t](e):null}function Fo(e,t,n){return e?new t6[t](e,Or(e,n)):null}function Or(e,t,n="error"){const r=e.getTextContentSize();let o=t==="next"?r:t==="previous"?0:t;return(o<0||o>r)&&(n!=="clamp"&&rb(284,String(t),String(r),e.getKey()),o=o<0?0:r),o}function ag(e,t){return new i6(e,t)}function un(e,t){return R(e)?new r6[t](e):null}function o6(e){return e&&e.getChildCaret()||e}function tp(e){return e&&o6(e.getAdjacentCaret())}class np{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 np(t,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=o=>{const i=this[o].getLatest();return Nr(i)?(function(s,a){const{direction:l,origin:c}=s,u=Or(c,a==="focus"?Ji(l):l);return ag(s,u-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[ag(o,i.offset-o.offset),null]}return[n,r]}iterNodeCarets(t="root"){const n=Nr(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),o=Nr(r),i=s=>s.isSameNodeCaret(r)?null:tp(s)||s.getParentCaret(t);return Ax({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 i6{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 Fo(t.setTextContent(i.slice(0,r)+i.slice(o)),n,r)}}function rp(e){return Dr(e,bt(We(),e.direction))}function s6(e){return Dr(e,e)}function Dr(e,t){return e.direction!==t.direction&&U(265),new np(e,t,e.direction)}function Ax(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 Cx(e,t){const n=Ka(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 _x(n)}}function _x(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 ka(e,t){return t.is(e)}function lg(e){return R(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function Ka(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[r,o]=lg(e);r;o=r,r=r.getParent())n.set(r,o);for(let[r,o]=lg(t);r;o=r,r=r.getParent()){const i=n.get(r);if(i!==void 0)return i===null?(ka(e,r)||U(276),{commonAncestor:r,type:"ancestor"}):o===null?(ka(t,r)||U(277),{commonAncestor:r,type:"descendant"}):((R(i)||ka(e,i))&&(R(o)||ka(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||U(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function tr(e,t){const{type:n,key:r,offset:o}=e,i=VT(e.key);return n==="text"?(X(i)||U(266,i.getType(),r),Fo(i,t,o)):(R(i)||U(267,i.getType(),r),c6(i,e.offset,t))}function jo(e,t){const{origin:n,direction:r}=t,o=r==="next";Nr(t)?e.set(n.getKey(),t.offset,"text"):Fi(t)?X(n)?e.set(n.getKey(),Or(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(kn(t)&&R(n)||U(268),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function a6(e){const t=Z(),n=$(t)?t:Yb();return Ha(n,e),Pt(n),n}function Ha(e,t){jo(e.anchor,t.anchor),jo(e.focus,t.focus)}function cg(e){const{anchor:t,focus:n}=e,r=tr(t,"next"),o=tr(n,"next"),i=Cx(r,o)<=0?"next":"previous";return Dr(ji(r,i),ji(o,i))}function op(e){const{direction:t,origin:n}=e,r=bt(n,Ji(t)).getNodeAtCaret();return r?bt(r,t):un(n.getParentOrThrow(),t)}function ug(e,t="root"){const n=[e];for(let r=kn(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(op(r));return n}function eu(e){return!!e&&e.origin.isAttached()}function l6(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=Sx(e,r),s=ug(i.anchor,n),a=ug(i.focus.getFlipped(),n),l=new Set,c=[];for(const h of i.iterNodeCarets(n))if(kn(h))l.add(h.origin.getKey());else if(Fi(h)){const{origin:g}=h;R(g)&&!l.has(g.getKey())||c.push(g)}for(const h of c)h.remove();for(const h of i.getTextSlices()){if(!h)continue;const{origin:g}=h.caret,m=g.getTextContentSize(),y=op(bt(g,r)),v=g.getMode();if(Math.abs(h.distance)===m&&o==="removeEmptySlices"||v==="token"&&h.distance!==0)y.remove();else if(h.distance!==0){o="removeEmptySlices";let b=h.removeTextSlice();const A=h.caret.origin;if(v==="segmented"){const w=b.origin,_=rt(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());y.replaceOrInsert(_),b=Fo(_,r,b.offset)}A.is(s[0].origin)&&(s[0]=b),A.is(a[0].origin)&&(a[0]=b.getFlipped())}}let u,f;for(const h of s)if(eu(h)){u=Yt(h);break}for(const h of a)if(eu(h)){f=Yt(h);break}const d=(function(h,g,m){if(!h||!g)return null;const y=h.getParentAtCaret(),v=g.getParentAtCaret();if(!y||!v)return null;const b=y.getParents().reverse();b.push(y);const A=v.getParents().reverse();A.push(v);const w=Math.min(b.length,A.length);let _;for(_=0;_<w&&b[_]===A[_];_++);const E=(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},S=E(b,mr),O=S&&E(A,P=>m.has(P.getKey())&&mr(P));return S&&O?[S,O]:null})(u,f,l);if(d){const[h,g]=d;un(h,"previous").splice(0,g.getChildren()),g.remove()}const p=[u,f,...s,...a].find(eu);if(p)return s6(ji(Yt(p),e.direction));U(269,JSON.stringify(s.map(h=>h.origin.__key)))}function Yt(e){const t=(function(o){let i=o;for(;kn(i);){const s=tp(i);if(!kn(s))break;i=s}return i})(e.getLatest()),{direction:n}=t;if(X(t.origin))return Nr(t)?t:Fo(t.origin,n,n);const r=t.getAdjacentCaret();return Fi(r)&&X(r.origin)?Fo(r.origin,n,Ji(n)):t}function Ex(e){return Nr(e)&&e.offset!==Or(e.origin,e.direction)}function ji(e,t){return e.direction===t?e:e.getFlipped()}function Sx(e,t){return e.direction===t?e:Dr(ji(e.focus,t),ji(e.anchor,t))}function c6(e,t,n){let r=un(e,"next");for(let o=0;o<t;o++){const i=r.getAdjacentCaret();if(i===null)break;r=i}return ji(r,n)}function u6(...e){return e}function f6(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}const kx=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,d6=kx?T.useLayoutEffect:T.useEffect,Ta={tag:vo};function p6({initialConfig:e,children:t}){const n=T.useMemo(()=>{const{theme:r,namespace:o,nodes:i,onError:s,editorState:a,html:l}=e,c=S3(null,r),u=sx({editable:e.editable,html:l,namespace:o,nodes:i,onError:f=>s(f,u),theme:r});return(function(f,d){if(d!==null){if(d===void 0)f.update(()=>{const p=We();if(p.isEmpty()){const h=Tt();p.append(h);const g=kx?document.activeElement:null;(Z()!==null||g!==null&&g===f.getRootElement())&&h.select()}},Ta);else if(d!==null)switch(typeof d){case"string":{const p=f.parseEditorState(d);f.setEditorState(p,Ta);break}case"object":f.setEditorState(d,Ta);break;case"function":f.update(()=>{We().isEmpty()&&d(f)},Ta)}}})(u,a),[u,c]},[]);return d6(()=>{const r=e.editable,[o]=n;o.setEditable(r===void 0||r)},[]),x.jsx(nb.Provider,{value:n,children:t})}const h6=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function m6(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function g6(){return(function(e){const[t]=wt(),n=T.useMemo(()=>e(t),[t,e]),[r,o]=T.useState(()=>n.initialValueFn()),i=T.useRef(r);return h6(()=>{const{initialValueFn:s,subscribe:a}=n,l=s();return i.current!==l&&(i.current=l,o(l)),a(c=>{i.current=c,o(c)})},[n,e]),r})(m6)}function y6(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 Ff=new Map;function Tx(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 fg(e){let t=Ff.get(e);return t===void 0&&(t=Tx(e),Ff.set(e,t)),t}function Nx(e){const t=Jd().getElementByKey(e.getKey());if(t===null)return null;const n=t.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(t)}function Ox(e){return Nx(Ye(e)?e:e.getParentOrThrow())}function dg(e){const t=Ox(e);return t!==null&&t.direction==="rtl"}function Px(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!Bn(t)&&r!==null){const[o,i]=r,s=e.isBackward(),a=o.getNode(),l=i.getNode(),c=t.is(a),u=t.is(l);if(c||u){const[f,d]=Nf(e),p=a.is(l),h=t.is(s?l:a),g=t.is(s?a:l);let m,y=0;p?(y=f>d?d:f,m=f>d?f:d):h?(y=s?d:f,m=void 0):g&&(y=0,m=s?f:d);const v=t.__text.slice(y,m);v!==t.__text&&(n==="clone"&&(t=GT(t)),t.__text=v)}}return t}function pg(e){if(e.type==="text")return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return R(t)||y6(177),e.offset===t.getChildrenSize()}function v6(e){const t=e.getStyle(),n=Tx(t);Ff.set(t,n)}function Mx(e){const t=Ix(e);return t!==null&&t.writingMode==="vertical-rl"}function Ix(e){const t=e.anchor.getNode();return R(t)?Nx(t):Ox(t)}function hg(e,t){let n=Mx(e)?!t:t;Lx(e)&&(n=!n);const r=tr(e.focus,n?"previous":"next");if(Ex(r))return!1;for(const o of rp(r)){if(kn(o))return!o.origin.isInline();if(!R(o.origin)){if(Te(o.origin))return!0;break}}return!1}function b6(e,t,n,r){e.modify(t?"extend":"move",n,r)}function Lx(e){const t=Ix(e);return t!==null&&t.direction==="rtl"}function mg(e,t,n){const r=Lx(e);let o;o=Mx(e)||r?!n:n,b6(e,t,o,"character")}function x6(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 Rx=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,w6=Rx&&"documentMode"in document?document.documentMode:null;!(!Rx||!("InputEvent"in window)||w6)&&"getTargetRanges"in new window.InputEvent("input");function Dx(...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 fn(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function ip(e,...t){const n=Dx(...t);n.length>0&&e.classList.add(...n)}function Fx(e,...t){const n=Dx(...t);n.length>0&&e.classList.remove(...n)}function A6(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function C6(e){const t=at(e,n=>R(n)&&!n.isInline());return R(t)||x6(4,e.__key),t}function Sr(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}const _6=Symbol.for("preact-signals");function rc(){if(Pr>1)return void Pr--;let e,t=!1;for(;As!==void 0;){let n=As;for(As=void 0,jf++;n!==void 0;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&jx(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(jf=0,Pr--,t)throw e}function E6(e){if(Pr>0)return e();Pr++;try{return e()}finally{rc()}}let Pe,As;function gg(e){const t=Pe;Pe=void 0;try{return e()}finally{Pe=t}}let Pr=0,jf=0,qa=0;function yg(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 S6(e,t){return new _t(e,t)}function jx(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 vg(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 zx(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 Xo(e,t){_t.call(this,void 0),this.x=e,this.s=void 0,this.g=qa-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 $x(e){const t=e.u;if(e.u=void 0,typeof t=="function"){Pr++;const n=Pe;Pe=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,sp(e),r}finally{Pe=n,rc()}}}function sp(e){for(let t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,$x(e)}function k6(e){if(Pe!==this)throw new Error("Out-of-order effect");zx(this),Pe=e,this.f&=-2,8&this.f&&sp(this),rc()}function ii(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 js(e,t){const n=new ii(e,t);try{n.c()}catch(o){throw n.d(),o}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Ux(e,t={}){const n={};for(const r in e){const o=t[r],i=S6(o===void 0?e[r]:o);n[r]=i}return n}_t.prototype.brand=_6,_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:gg(()=>{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&&gg(()=>{var r;(r=this.Z)==null||r.call(this)}))}},_t.prototype.subscribe=function(e){return js(()=>{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=yg(this);return e!==void 0&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(jf>100)throw new Error("Cycle detected");this.v=e,this.i++,qa++,Pr++;try{for(let t=this.t;t!==void 0;t=t.x)t.t.N()}finally{rc()}}}}),Xo.prototype=new _t,Xo.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===qa))return!0;if(this.g=qa,this.f|=1,this.i>0&&!jx(this))return this.f&=-2,!0;const e=Pe;try{vg(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,zx(this),this.f&=-2,!0},Xo.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)},Xo.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)}},Xo.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(Xo.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=yg(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),ii.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()}},ii.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,$x(this),vg(this),Pr++;const e=Pe;return Pe=this,k6.bind(this,e)},ii.prototype.N=function(){2&this.f||(this.f|=2,this.o=As,As=this)},ii.prototype.d=function(){this.f|=8,1&this.f||sp(this)},ii.prototype.dispose=function(){this.d()};function T6(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 Bx(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]=Bx(n[o],r[o]);return e}return t}const ap=0,zf=1,Wx=2,tu=3,Na=4,ei=5,nu=6,us=7;function ru(e){return e.id===ap}function Kx(e){return e.id===Wx}function N6(e){return(function(t){return t.id===zf})(e)||Fe(305,String(e.id),String(zf)),Object.assign(e,{id:Wx})}const O6=new Set;class P6{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:ap}}mergeConfigs(){let t=this.extension.config||{};const n=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):f6;for(const r of this.configs)t=n(t,r);return t}init(t){const n=this.state;Kx(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,l,c){return Object.assign(a,{config:l,id:tu,registerState:c})})(n,this.mergeConfigs(),r);let s;this.state=i,this.extension.init&&(s=this.extension.init(t,i.config,r)),this.state=(function(a,l,c){return Object.assign(a,{id:Na,initResult:l,registerState:c})})(i,s,o)}build(t){const n=this.state;let r;n.id!==Na&&Fe(307,String(n.id),String(ei)),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:ei,output:s,registerState:a})})(n,r,o)}register(t,n){this._signal=n;const r=this.state;r.id!==ei&&Fe(308,String(r.id),String(ei));const o=this.extension.register&&this.extension.register(t,r.config,r.registerState);return this.state=(function(i){return Object.assign(i,{id:nu})})(r),()=>{const i=this.state;i.id!==us&&Fe(309,String(r.id),String(us)),this.state=(function(s){return Object.assign(s,{id:ei})})(i),o&&o()}}afterRegistration(t){const n=this.state;let r;return n.id!==nu&&Fe(310,String(n.id),String(nu)),this.extension.afterRegistration&&(r=this.extension.afterRegistration(t,n.config,n.registerState)),this.state=(function(o){return Object.assign(o,{id:us})})(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>=Na})(t)||Fe(313,String(t.id),String(Na)),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>=tu})(t)||Fe(314,String(t.id),String(tu)),{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>=us})(t)||Fe(316,String(t.id),String(us)),t}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||O6}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>=ei})(t)||Fe(317,this.extension.name),this._dependency={config:t.config,init:t.initResult,output:t.output}}return this._dependency}}const bg={tag:vo};function M6(){const e=We();e.isEmpty()&&e.append(Tt())}const I6={config:{setOptions:bg,updateOptions:bg},init:({$initialEditorState:e=M6})=>({$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(RT(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:[Qi,Ur,qi,Vi,Gi]},xg=Symbol.for("@lexical/extension/LexicalBuilder");function wg(){}function L6(e){throw e}function Oa(e){return Array.isArray(e)?e:[e]}const ou="0.39.0+prod.esm";class vi{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=ou,this.roots=t;for(const n of t)this.addExtension(n)}static fromExtensions(t){const n=[Oa(I6)];for(const r of t)n.push(Oa(r));return new vi(n)}static maybeFromEditor(t){const n=t[xg];return n&&(n.PACKAGE_VERSION!==ou&&Fe(292,n.PACKAGE_VERSION,ou),n instanceof vi||Fe(293)),n}static fromEditor(t){const n=vi.maybeFromEditor(t);return n===void 0&&Fe(294),n}constructEditor(){const{$initialEditorState:t,onError:n,...r}=this.buildCreateEditorArgs(),o=Object.assign(sx({...r,...n?{onError:i=>{n(i,o)}}:{}}),{[xg]:this});for(const i of this.sortedExtensionReps())i.build(o);return o}buildEditor(){let t=wg;function n(){try{t()}finally{t=wg}}const r=Object.assign(this.constructEditor(),{dispose:n,[Symbol.dispose]:n});return t=fn(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=Oa(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 P6(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=Oa(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(Kx(i))return;const s=r.extension.name;var a;ru(i)||Fe(300,s,o||"[unknown]"),ru(a=i)||Fe(304,String(a.id),String(ap)),i=Object.assign(a,{id:zf}),r.state=i;const l=this.outgoingConfigEdges.get(s);if(l)for(const c of l.keys()){const u=this.extensionNameMap.get(c);u&&n(u,s)}i=N6(i),r.state=i,t.push(r)};for(const r of this.extensionNameMap.values())ru(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 fn(...o)}buildCreateEditorArgs(){const t={},n=new Set,r=new Map,o=new Map,i={},s={},a=this.sortedExtensionReps();for(const u of a){const{extension:f}=u;if(f.onError!==void 0&&(t.onError=f.onError),f.disableEvents!==void 0&&(t.disableEvents=f.disableEvents),f.parentEditor!==void 0&&(t.parentEditor=f.parentEditor),f.editable!==void 0&&(t.editable=f.editable),f.namespace!==void 0&&(t.namespace=f.namespace),f.$initialEditorState!==void 0&&(t.$initialEditorState=f.$initialEditorState),f.nodes)for(const d of T6(f)){if(typeof d!="function"){const p=r.get(d.replace);p&&Fe(302,f.name,d.replace.name,p.extension.name),r.set(d.replace,u)}n.add(d)}if(f.html){if(f.html.export)for(const[d,p]of f.html.export.entries())o.set(d,p);f.html.import&&Object.assign(i,f.html.import)}f.theme&&Bx(s,f.theme)}Object.keys(s).length>0&&(t.theme=s),n.size&&(t.nodes=[...n]);const l=Object.keys(i).length>0,c=o.size>0;(l||c)&&(t.html={},l&&(t.html.import=i),c&&(t.html.export=o));for(const u of a)u.init(t);return t.onError||(t.onError=L6),t}}function R6(e,t){const n=vi.fromEditor(e).extensionNameMap.get(t);return n?n.getExtensionDependency():void 0}const D6={name:"@lexical/react/ReactProvider"};function F6(){return We().getTextContent()}function j6(e,t=!0){if(e)return!1;let n=F6();return t&&(n=n.trim()),n===""}function z6(e){if(!j6(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(!Bd(o)||o.__indent!==0)return!1;const i=o.getChildren(),s=i.length;for(let a=0;a<s;a++){const l=i[r];if(!X(l))return!1}}}return!0}function Hx(e){return()=>z6(e)}function $6(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 l=a.args;if(l){const[c,u,f,d,p]=l;e.update(()=>{const h=Z();if($(h)){const g=h.anchor;let m=g.getNode(),y=0,v=0;if(X(m)&&c>=0&&u>=0&&(y=c,v=c+u,h.setTextNodeRange(m,y,m,v)),y===v&&f===""||(h.insertRawText(f),m=g.getNode()),X(m)){y=d,v=d+p;const b=m.getTextContentSize();y=y>b?b:y,v=v>b?b:v,h.setTextNodeRange(m,y,m,v)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function qx(e,t){const n=ux(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const i of n)if(!Qx.has(i.nodeName)){const s=Gx(i,e,o,!1);s!==null&&(r=r.concat(s))}return(function(i){for(const s of i)s.getNextSibling()instanceof Ud&&s.insertAfter(Mo());for(const s of i){const a=s.getChildren();for(const l of a)s.insertBefore(l);s.remove()}})(o),r}function Vx(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++)Yx(e,r[o],n,t);return n.innerHTML}function Yx(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=Px(r,t,"clone"));const a=R(s)?s.getChildren():[],l=Kd(e,s.getType());let c;c=l&&l.exportDOM!==void 0?l.exportDOM(e,s):s.exportDOM(e);const{element:u,after:f}=c;if(!u)return!1;const d=document.createDocumentFragment();for(let p=0;p<a.length;p++){const h=a[p],g=Yx(e,h,d,r);!o&&R(t)&&g&&t.extractWithChild(h,r,"html")&&(o=!0)}if(o&&!i){if((pt(u)||Rf(u))&&u.append(d),n.append(u),f){const p=f.call(s,u);p&&(Rf(u)?u.replaceChildren(p):u.replaceWith(p))}}else n.append(d);return o}const Qx=new Set(["STYLE","SCRIPT"]);function Gx(e,t,n,r,o=new Map,i){let s=[];if(Qx.has(e.nodeName))return s;let a=null;const l=(function(h,g){const{nodeName:m}=h,y=g._htmlConversions.get(m.toLowerCase());let v=null;if(y!==void 0)for(const b of y){const A=b(h);A!==null&&(v===null||(v.priority||0)<=(A.priority||0))&&(v=A)}return v!==null?v.conversion:null})(e,t),c=l?l(e):null;let u=null;if(c!==null){u=c.after;const h=c.node;if(a=Array.isArray(h)?h[h.length-1]:h,a!==null){for(const[,g]of o)if(a=g(a,i),!a)break;a&&s.push(...Array.isArray(h)?h:[a])}c.forChild!=null&&o.set(e.nodeName,c.forChild)}const f=e.childNodes;let d=[];const p=(a==null||!jt(a))&&(a!=null&&Of(a)||r);for(let h=0;h<f.length;h++)d.push(...Gx(f[h],t,n,p,new Map(o),a));return u!=null&&(d=u(d)),vl(e)&&(d=U6(e,d,p?()=>{const h=new Ud;return n.push(h),h}:Tt)),a==null?d.length>0?s=s.concat(d):vl(e)&&(function(h){return h.nextSibling==null||h.previousSibling==null?!1:Df(h.nextSibling)&&Df(h.previousSibling)})(e)&&(s=s.concat(Mo())):R(a)&&a.append(...d),s}function U6(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let s=0;s<t.length;s++){const a=t[s];if(Of(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),s===t.length-1||s<t.length-1&&Of(t[s+1])){const l=n();l.setFormat(r),l.append(...i),o.push(l),i=[]}}return o}function bl(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 B6(e,t=Z()){return t==null&&bl(166),$(t)&&t.isCollapsed()||t.getNodes().length===0?"":Vx(e,t)}function W6(e,t=Z()){return t==null&&bl(166),$(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(K6(e,t))}function Ag(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 Cg(n,H6(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(l){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:c=>c}).createHTML(l):l})(o),"text/html");return Cg(n,qx(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 l=0;l<a.length;l++){const c=Z();if($(c)){const u=a[l];u===`
|
|
603
|
+
`?r.push(Io()):s===" "?r.push(na()):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(m,y,v,b){const A=m.getNode(),w=A.getChildAtIndex(m.offset),_=rt();if(_.setFormat(v),_.setStyle(b),Ud(w))w.splice(0,0,[_]);else{const E=Ye(A)?Tt().append(_):_;w===null?A.append(E):w.insertBefore(E)}m.is(y)&&y.set(_.__key,0,"text"),m.set(_.__key,0,"text")})(s,a,o,i),a.type==="element"&&zo(a,Yt(tr(a,"next")));const l=s.offset;let c=a.offset;const u=this.getNodes(),f=u.length;let d=u[0];X(d)||U(26);const p=d.getTextContent().length,h=d.getParentOrThrow();let g=u[f-1];if(f===1&&a.type==="element"&&(c=p,a.set(s.key,c,"text")),this.isCollapsed()&&l===p&&(Bn(d)||!d.canInsertTextAfter()||!h.canInsertTextAfter()&&d.getNextSibling()===null)){let m=d.getNextSibling();if(X(m)&&m.canInsertTextBefore()&&!Bn(m)||(m=rt(),m.setFormat(o),m.setStyle(i),h.canInsertTextAfter()?d.insertAfter(m):h.insertAfter(m)),m.select(0,0),d=m,t!=="")return void this.insertText(t)}else if(this.isCollapsed()&&l===0&&(Bn(d)||!d.canInsertTextBefore()||!h.canInsertTextBefore()&&d.getPreviousSibling()===null)){let m=d.getPreviousSibling();if(X(m)&&!Bn(m)||(m=rt(),m.setFormat(o),h.canInsertTextBefore()?d.insertBefore(m):h.insertBefore(m)),m.select(),d=m,t!=="")return void this.insertText(t)}else if(d.isSegmented()&&l!==p){const m=rt(d.getTextContent());m.setFormat(o),d.replace(m),d=m}else if(!this.isCollapsed()&&t!==""){const m=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||R(m)&&(!m.canInsertTextBefore()||!m.canInsertTextAfter()))return this.insertText(""),Hb(this.anchor,this.focus,null),void this.insertText(t)}if(f===1){if(xo(d)){const b=rt(t);return b.select(),void d.replace(b)}const m=d.getFormat(),y=d.getStyle();if(l!==c||m===o&&y===i){if(Kb(d)){const b=rt(t);return b.setFormat(o),b.setStyle(i),b.select(),void d.replace(b)}}else{if(d.getTextContent()!==""){const b=rt(t);if(b.setFormat(o),b.setStyle(i),b.select(),l===0)d.insertBefore(b,!1);else{const[A]=d.splitText(l);A.insertAfter(b,!1)}return void(b.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length))}d.setFormat(o),d.setStyle(i)}const v=c-l;d=d.spliceText(l,v,t,!0),d.getTextContent()===""?d.remove():this.anchor.type==="text"&&(d.isComposing()?this.anchor.offset-=t.length:(this.format=m,this.style=y))}else{const m=new Set([...d.getParentKeys(),...g.getParentKeys()]),y=R(d)?d:d.getParentOrThrow();let v=R(g)?g:g.getParentOrThrow(),b=g;if(!y.is(v)&&v.isInline())do b=v,v=v.getParentOrThrow();while(v.isInline());if(a.type==="text"&&(c!==0||g.getTextContent()==="")||a.type==="element"&&g.getIndexWithinParent()<c)if(X(g)&&!xo(g)&&c!==g.getTextContentSize()){if(g.isSegmented()){const S=rt(g.getTextContent());g.replace(S),g=S}Ye(a.getNode())||a.type!=="text"||(g=g.spliceText(0,c,"")),m.add(g.__key)}else{const S=g.getParentOrThrow();S.canBeEmpty()||S.getChildrenSize()!==1?g.remove():S.remove()}else m.add(g.__key);const A=v.getChildren(),w=new Set(u),_=y.is(v),E=y.isInline()&&d.getNextSibling()===null?y:d;for(let S=A.length-1;S>=0;S--){const O=A[S];if(O.is(d)||R(O)&&O.isParentOf(d))break;O.isAttached()&&(!w.has(O)||O.is(b)?_||E.insertAfter(O,!1):O.remove())}if(!_){let S=v,O=null;for(;S!==null;){const P=S.getChildren(),I=P.length;(I===0||P[I-1].is(O))&&(m.delete(S.__key),O=S),S=S.getParent()}}if(xo(d))if(l===p)d.select();else{const S=rt(t);S.select(),d.replace(S)}else d=d.spliceText(l,p-l,t,!0),d.getTextContent()===""?d.remove():d.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length);for(let S=1;S<f;S++){const O=u[S],P=O.__key;m.has(P)||O.remove()}}}removeText(){const t=Z()===this;qa(this,l6(lg(this))),t&&Z()!==this&&Pt(this)}formatText(t,n=null){if(this.isCollapsed())return this.toggleFormat(t),void ft(null);const r=this.getNodes(),o=[];for(const A of r)X(A)&&o.push(A);const i=A=>{r.forEach(w=>{if(R(w)){const _=w.getFormatFlags(t,A);w.setTextFormat(_)}})},s=o.length;if(s===0)return this.toggleFormat(t),ft(null),void i(n);const a=this.anchor,l=this.focus,c=this.isBackward(),u=c?l:a,f=c?a:l;let d=0,p=o[0],h=u.type==="element"?0:u.offset;if(u.type==="text"&&h===p.getTextContentSize()&&(d=1,p=o[1],h=0),p==null)return;const g=p.getFormatFlags(t,n);i(g);const m=s-1;let y=o[m];const v=f.type==="text"?f.offset:y.getTextContentSize();if(p.is(y)){if(h===v)return;if(Bn(p)||h===0&&v===p.getTextContentSize())p.setFormat(g);else{const A=p.splitText(h,v),w=h===0?A[0]:A[1];w.setFormat(g),u.type==="text"&&u.set(w.__key,0,"text"),f.type==="text"&&f.set(w.__key,v-h,"text")}return void(this.format=g)}h===0||Bn(p)||([,p]=p.splitText(h),h=0),p.setFormat(g);const b=y.getFormatFlags(t,g);v>0&&(v===y.getTextContentSize()||Bn(y)||([y]=y.splitText(v)),y.setFormat(b));for(let A=d+1;A<m;A++){const w=o[A],_=w.getFormatFlags(t,b);w.setFormat(_)}u.type==="text"&&u.set(p.__key,h,"text"),f.type==="text"&&f.set(y.__key,v,"text"),this.format=g|b}insertNodes(t){if(t.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const h=Z();return $(h)||U(134),h.insertNodes(t)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=at(n,mr),o=t[t.length-1];if(R(r)&&"__language"in r){if("__language"in t[0])this.insertText(t[0].getTextContent());else{const h=Zc(this);r.splice(h,0,t),o.selectEnd()}return}if(!t.some(h=>(R(h)||Te(h))&&!h.isInline())){R(r)||U(211,n.constructor.name,n.getType());const h=Zc(this);return r.splice(h,0,t),void o.selectEnd()}const i=(function(h){const g=Tt();let m=null;for(let y=0;y<h.length;y++){const v=h[y],b=bo(v);if(b||Te(v)&&v.isInline()||R(v)&&v.isInline()||X(v)||v.isParentRequired()){if(m===null&&(m=v.createParentElementNode(),g.append(m),b))continue;m!==null&&m.append(v)}else g.append(v),m=null}return g})(t),s=i.getLastDescendant(),a=i.getChildren(),l=!R(r)||!r.isEmpty()?this.insertParagraph():null,c=a[a.length-1];let u=a[0];var f;R(f=u)&&mr(f)&&!f.isEmpty()&&R(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(R(r)||U(211,n.constructor.name,n.getType()),r.append(...u.getChildren()),u=a[1]),u&&(r===null&&U(212,n.constructor.name,n.getType()),(function(h,g){const m=g.getParentOrThrow().getLastChild();let y=g;const v=[g];for(;y!==m;)y.getNextSibling()||U(140),y=y.getNextSibling(),v.push(y);let b=h;for(const A of v)b=b.insertAfter(A)})(r,u));const d=at(s,mr);l&&R(d)&&(l.canMergeWhenEmpty()||mr(c))&&(d.append(...l.getChildren()),l.remove()),R(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const p=R(r)?r.getLastChild():null;bo(p)&&d!==r&&p.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Tt();return We().splice(this.anchor.offset,0,[s]),s.select(),s}const t=Zc(this),n=at(this.anchor.getNode(),mr);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=Io();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]=Nf(this),a=this.isBackward(),[l,c]=a?[this.focus,this.anchor]:[this.anchor,this.focus],[u,f]=a?[s,i]:[i,s];if(n===0)return[];if(n===1){if(X(r)&&!this.isCollapsed()){const d=r.splitText(u,f),p=u===0?d[0]:d[1];return p?(l.set(p.getKey(),0,"text"),c.set(p.getKey(),p.getTextContentSize(),"text"),[p]):[]}return[r]}if(X(r)&&(u===r.getTextContentSize()?t.shift():u!==0&&([,r]=r.splitText(u),t[0]=r,l.set(r.getKey(),0,"text"))),X(o)){const d=o.getTextContent().length;f===0?t.pop():f!==d&&([o]=o.splitText(f),t[t.length-1]=o,c.set(o.getKey(),o.getTextContentSize(),"text"))}return t}modify(t,n,r){if(Km(this,t,n,r))return;const o=t==="move",i=Re(),s=en(Xt(i));if(!s)return;const a=i._blockCursorElement,l=i._rootElement,c=this.focus.getNode();if(l===null||a===null||!R(c)||c.isInline()||c.canBeEmpty()||Lf(a,i,l),this.dirty){let u=Ro(i,this.anchor.key),f=Ro(i,this.focus.key);this.anchor.type==="text"&&(u=Di(u)),this.focus.type==="text"&&(f=Di(f)),u&&f&&Gb(s,u,this.anchor.offset,f,this.focus.offset)}if((function(u,f,d,p){u.modify(f,d,p)})(s,t,n?"backward":"forward",r),s.rangeCount>0){const u=s.getRangeAt(0),f=this.anchor.getNode(),d=Ye(f)?f:qT(f);if(this.applyDOMRange(u),this.dirty=!0,!o){const p=this.getNodes(),h=[];let g=!1;for(let m=0;m<p.length;m++){const y=p[m];If(y,d)?h.push(y):g=!0}if(g&&h.length>0)if(n){const m=h[0];R(m)?m.selectStart():m.getParentOrThrow().selectStart()}else{const m=h[h.length-1];R(m)?m.selectEnd():m.getParentOrThrow().selectEnd()}s.anchorNode===u.startContainer&&s.anchorOffset===u.startOffset||(function(m){const y=m.focus,v=m.anchor,b=v.key,A=v.offset,w=v.type;v.set(y.key,y.offset,y.type,!0),y.set(b,A,w,!0)})(this)}}r==="lineboundary"&&Km(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=np(tr(r,t?"previous":"next"));if(i.getTextSlices().every(a=>a===null||a.distance===0)){let a={type:"initial"};for(const l of i.iterNodeCarets("shadowRoot"))if(kn(l)){if(!l.origin.isInline()){if(l.origin.isShadowRoot()){if(a.type==="merge-block")break;if(R(i.anchor.origin)&&i.anchor.origin.isEmpty()){const c=Yt(l);qa(this,Dr(c,c)),i.anchor.origin.remove()}return}a.type!=="merge-next-block"&&a.type!=="merge-block"||(a={block:a.block,caret:l,type:"merge-block"})}}else{if(a.type==="merge-block")break;if(ji(l)){if(R(l.origin)){if(l.origin.isInline()){if(!l.origin.isParentOf(i.anchor.origin))break}else a={block:l.origin,type:"merge-next-block"};continue}if(Te(l.origin)){if(!l.origin.isIsolated())if(a.type==="merge-next-block"&&(l.origin.isKeyboardSelectable()||!l.origin.isInline())&&R(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const c=Qb();c.add(l.origin.getKey()),Pt(c)}else l.origin.remove();return}break}}if(a.type==="merge-block"){const{caret:l,block:c}=a;return qa(this,Dr(!l.origin.isEmpty()&&c.isEmpty()?rp(xt(c,l.direction)):i.anchor,l)),this.removeText()}}const s=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&r.offset===0&&jm(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 l=s.offset,c=a.getTextContentSize();if(a.is(o)||t&&l!==c||!t&&l!==0)return void zm(a,t,l)}else if(o!==null&&o.isSegmented()){const l=r.offset,c=o.getTextContentSize();if(o.is(a)||t&&l!==0||!t&&l!==c)return void zm(o,t,l)}(function(l,c){const u=l.anchor,f=l.focus,d=u.getNode(),p=f.getNode();if(d===p&&u.type==="text"&&f.type==="text"){const h=u.offset,g=f.offset,m=h<g,y=m?h:g,v=m?g:h,b=v-1;y!==b&&(function(A){return!(mx(A)||OT(A))})(d.getTextContent().slice(y,v))&&(c?f.set(f.key,b,f.type):u.set(u.key,b,u.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&&jm(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 Jl}function Fm(e){const t=e.offset;if(e.type==="text")return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Nf(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]:[Fm(n),Fm(r)]}function jm(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 OT=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch{}return()=>!1})();function zm(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,a=0;for(let c=0;c<i;c++){const u=c===i-1;if(a=s,s+=o[c].length,t&&s===n||s>n||u){o.splice(c,1),u&&(a=void 0);break}}const l=o.join("").trim();l===""?r.remove():(r.setTextContent(l),r.select(a,a))}function $m(e,t,n,r){let o,i=t;if(ht(e)){let s=!1;const a=e.childNodes,l=a.length,c=r._blockCursorElement;i===l&&(s=!0,i=l-1);let u=a[i],f=!1;if(u===c)u=a[i+1],f=!0;else if(c!==null){const d=c.parentNode;e===d&&t>Array.prototype.indexOf.call(d.children,c)&&i--}if(o=ci(u),X(o))i=Or(o,s?"next":"previous");else{let d=ci(e);if(d===null)return null;if(R(d)){const p=r.getElementByKey(d.getKey());p===null&&U(214),[d,i]=d.getDOMSlot(p).resolveChildIndex(d,p,e,t),R(d)||U(215),s&&i>=d.getChildrenSize()&&(i=Math.max(0,d.getChildrenSize()-1));let g=d.getChildAtIndex(i);if(R(g)&&(function(m,y,v){const b=m.getParent();return v===null||b===null||!b.canBeEmpty()||b!==v.getNode()})(g,0,n)){const m=s?g.getLastDescendant():g.getFirstDescendant();m===null?d=g:(g=m,d=R(g)?g:g.getParentOrThrow()),i=0}X(g)?(o=g,d=null,i=Or(g,s?"next":"previous")):g!==d&&s&&!f&&(R(d)||U(216),i=Math.min(d.getChildrenSize(),i+1))}else{const p=d.getIndexWithinParent();i=t===0&&Te(d)&&ci(e)===d?p:p+1,d=d.getParentOrThrow()}if(R(d))return On(d.__key,i,"element")}}else o=ci(e);return X(o)?On(o.__key,Or(o,i,"clamp"),"text"):null}function Um(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 Hb(e,t,n){if(e.type==="text"&&t.type==="text"){const r=e.isBefore(t),o=e.is(t);Um(e,r,o),Um(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 qb(e,t,n,r,o,i){if(e===null||n===null||!ia(o,e,n))return null;const s=$m(e,t,$(i)?i.anchor:null,o);if(s===null)return null;const a=$m(n,r,$(i)?i.focus:null,o);if(a===null)return null;if(s.type==="element"&&a.type==="element"){const l=ci(e),c=ci(n);if(Te(l)&&Te(c))return null}return Hb(s,a,i),[s,a]}function Of(e){return R(e)&&!e.isInline()}function Vb(e,t,n,r,o,i){const s=Br(),a=new Bo(On(e,t,o),On(n,r,i),0,"");return a.dirty=!0,s._selection=a,a}function Yb(){const e=On("root",0,"element"),t=On("root",0,"element");return new Bo(e,t,0,"")}function Qb(){return new Jl(new Set)}function Fd(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",l=!ff&&(a||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let c,u,f,d;if($(e)&&!l)return e.clone();if(t===null)return null;if(c=t.anchorNode,u=t.focusNode,f=t.anchorOffset,d=t.focusOffset,(a||s===void 0)&&$(e)&&!ia(n,c,u))return e.clone();const p=qb(c,f,u,d,n,e);if(p===null)return null;const[h,g]=p;return new Bo(h,g,$(e)?e.format:0,$(e)?e.style:"")}function Z(){return Br()._selection}function Gi(){return Re()._editorState._selection}function ml(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 l=t.__key;if(e.isCollapsed()){const c=o.offset;if(n<=c&&r>0||n<c&&r<0){const u=Math.max(0,c+r);o.set(l,u,"element"),i.set(l,u,"element"),Bm(e)}}else{const c=e.isBackward(),u=c?i:o,f=u.getNode(),d=c?o:i,p=d.getNode();if(t.is(f)){const h=u.offset;(n<=h&&r>0||n<h&&r<0)&&u.set(l,Math.max(0,h+r),"element")}if(t.is(p)){const h=d.offset;(n<=h&&r>0||n<h&&r<0)&&d.set(l,Math.max(0,h+r),"element")}}Bm(e)}function Bm(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(),l=n>=a,c=l?i.getChildAtIndex(a-1):i.getChildAtIndex(n);if(X(c)){let u=0;l&&(u=c.getTextContentSize()),t.set(c.__key,u,"text"),r.set(c.__key,u,"text")}return}if(R(i)){const a=i.getChildrenSize(),l=n>=a,c=l?i.getChildAtIndex(a-1):i.getChildAtIndex(n);if(X(c)){let u=0;l&&(u=c.getTextContentSize()),t.set(c.__key,u,"text")}}if(R(s)){const a=s.getChildrenSize(),l=o>=a,c=l?s.getChildAtIndex(a-1):s.getChildAtIndex(o);if(X(c)){let u=0;l&&(u=c.getTextContentSize()),r.set(c.__key,u,"text")}}}function gl(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 Wm(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 Gb(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch{}}function PT(e,t,n,r,o,i,s){const a=r.anchorNode,l=r.focusNode,c=r.anchorOffset,u=r.focusOffset,f=document.activeElement;if(o.has(bT)&&f!==i||f!==null&&Kd(f))return;if(!$(t))return void(e!==null&&ia(n,a,l)&&r.removeAllRanges());const d=t.anchor,p=t.focus,h=d.key,g=p.key,m=Ro(n,h),y=Ro(n,g),v=d.offset,b=p.offset,A=t.format,w=t.style,_=t.isCollapsed();let E=m,S=y,O=!1;if(d.type==="text"){E=Di(m);const Y=d.getNode();O=Y.getFormat()!==A||Y.getStyle()!==w}else $(e)&&e.anchor.type==="text"&&(O=!0);var P,I,W,j,z;if(p.type==="text"&&(S=Di(y)),E!==null&&S!==null&&(_&&(e===null||O||$(e)&&(e.format!==A||e.style!==w))&&(P=A,I=w,W=v,j=h,z=performance.now(),Rb=[P,I,W,j,z]),c!==v||u!==b||a!==E||l!==S||r.type==="Range"&&_||(f!==null&&i.contains(f)||o.has(AT)||i.focus({preventScroll:!0}),d.type==="element"))){if(Gb(r,E,v,S,b),!o.has(xT)&&t.isCollapsed()&&i!==null&&i===document.activeElement){const Y=$(t)&&t.anchor.type==="element"?E.childNodes[v]||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=bx(re),F=Gd(L);if(L===null||F===null)return;let{top:K,bottom:B}=M,J=0,V=0,ee=re;for(;ee!==null;){const te=ee===L.body;if(te)J=0,V=Xt(oe).innerHeight;else{const ye=ee.getBoundingClientRect();J=ye.top,V=ye.bottom}let he=0;if(K<J?he=-(J-K):B>V&&(he=B-V),he!==0)if(te)F.scrollBy(0,he);else{const ye=ee.scrollTop;ee.scrollTop+=he;const me=ee.scrollTop-ye;K-=me,B-=me}if(te)break;ee=sa(ee)}})(n,Q,i)}}Cf=!0}}function Zb(e){let t=Z()||Gi();t===null&&(t=We().selectEnd()),t.insertNodes(e)}function Zc(e){let t=e;e.isCollapsed()||t.removeText();const n=Z();$(n)&&(t=n),$(t)||U(161);const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!mr(o);){const s=o;if([o,i]=MT(o,i),s.is(o))break}return i}function MT(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 Bo(On(e.__key,t,"element"),On(e.__key,t,"element"),0,""),i=e.insertNewAfter(o);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function Km(e,t,n,r,o="decorators-and-blocks"){if(t==="move"&&r==="character"&&!e.isCollapsed()){const[u,f]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return f.set(u.key,u.offset,u.type),!0}const i=tr(e.focus,n?"previous":"next"),s=r==="lineboundary",a=t==="move";let l=i,c=o==="decorators-and-blocks";if(!Ex(l)){for(const u of l){c=!1;const{origin:f}=u;if(!Te(f)||f.isIsolated()||(l=u,!s||!f.isInline()))break}if(c)for(const u of np(i).iterNodeCarets(t==="extend"?"shadowRoot":"root")){if(kn(u))u.origin.isInline()||(l=u);else{if(R(u.origin))continue;Te(u.origin)&&!u.origin.isInline()&&(l=u)}break}}if(l===i)return!1;if(a&&!s&&Te(l.origin)&&l.origin.isKeyboardSelectable()){const u=Qb();return u.add(l.origin.getKey()),Pt(u),!0}return l=Yt(l),a&&zo(e.anchor,l),zo(e.focus,l),c||!s}let it=null,st=null,Ft=!1,Jc=!1,Ka=0;const Hm={characterData:!0,childList:!0,subtree:!0};function ra(){return Ft||it!==null&&it._readOnly}function vt(){Ft&&U(13)}function Jb(){Ka>99&&U(14)}function Br(){return it===null&&U(195,Xb()),it}function Re(){return st===null&&U(196,Xb()),st}function Xb(){let e=0;const t=new Set,n=Lo.version;if(typeof window<"u")for(const o of document.querySelectorAll("[contenteditable]")){const i=ec(o);if(Hd(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 IT(){return st}function qm(e,t,n){const r=t.__type,o=ax(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 Vm(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function ex(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 LT(e){return jd(e,Re()._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 l=jd(s[a],t);i.append(l)}return i}function Ym(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 Yn(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,l=e._dirtyType!==0,c=it,u=Ft,f=st,d=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&l&&p!==null){st=e,it=n,Ft=!1,e._updating=!0;try{const _=e._dirtyType,E=e._dirtyElements,S=e._dirtyLeaves;p.disconnect(),h=J3(i,n,e,_,E,S)}catch(_){if(_ instanceof Error&&e._onError(_),Jc)throw _;return ix(e,null,r,n),ub(e),e._dirtyType=2,Jc=!0,Yn(e,i),void(Jc=!1)}finally{p.observe(r,Hm),e._updating=d,it=c,Ft=u,st=f}}n._readOnly||(n._readOnly=!0);const g=e._dirtyLeaves,m=e._dirtyElements,y=e._normalizedNodes,v=e._updateTags,b=e._deferred;l&&(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=_._decorators;let O=_._pendingDecorators||S;const P=E._nodeMap;let I;for(I in O)P.has(I)||(O===S&&(O=px(_)),delete O[I])})(e,n);const A=o?null:en(Xt(e));if(e._editable&&A!==null&&(l||a===null||a.dirty||!a.is(s))&&r!==null&&!v.has(wT)){st=e,it=n;try{if(p!==null&&p.disconnect(),l||a===null||a.dirty){const _=e._blockCursorElement;_!==null&&Lf(_,e,r),PT(s,a,e,A,v,r)}(function(_,E,S){let O=_._blockCursorElement;if($(S)&&S.isCollapsed()&&S.anchor.type==="element"&&E.contains(document.activeElement)){const P=S.anchor,I=P.getNode(),W=P.offset;let j=!1,z=null;if(W===I.getChildrenSize())eu(I.getChildAtIndex(W-1))&&(j=!0);else{const Y=I.getChildAtIndex(W);if(Y!==null&&eu(Y)){const Q=Y.getPreviousSibling();(Q===null||eu(Q))&&(j=!0,z=_.getElementByKey(Y.__key))}}if(j){const Y=_.getElementByKey(I.__key);return O===null&&(_._blockCursorElement=O=(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=ib(re);re=oe.blockCursor=L}re!==void 0&&M.classList.add(...re)}return M})(_._config)),E.style.caretColor="transparent",void(z===null?Y.appendChild(O):Y.insertBefore(O,z))}}O!==null&&Lf(O,_,E)})(e,r,a)}finally{p!==null&&p.observe(r,Hm),st=f,it=c}}h!==null&&(function(_,E,S,O,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=E.get(Q);oe!==void 0&&z(oe,{dirtyLeaves:O,prevEditorState:P,updateTags:S})}}})(e,h,v,g,i),$(a)||a===null||s!==null&&s.is(a)||e.dispatchCommand(Ql,void 0);const w=e._pendingDecorators;w!==null&&(e._decorators=w,e._pendingDecorators=null,As("decorator",e,!0,w)),(function(_,E,S){const O=Jm(E),P=Jm(S);O!==P&&As("textcontent",_,!0,P)})(e,t||i,n),As("update",e,!0,{dirtyElements:m,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:y,prevEditorState:t||i,tags:v}),(function(_,E){if(_._deferred=[],E.length!==0){const S=_._updating;_._updating=!0;try{for(let O=0;O<E.length;O++)E[O]()}finally{_._updating=S}}})(e,b),(function(_){const E=_._updates;if(E.length!==0){const S=E.shift();if(S){const[O,P]=S;Xl(_,O,P)}}})(e)}function As(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 Qm(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 l;s!==void 0&&(l=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete&&(a===null&&U(191),a._flushSync=!0),l&&e._deferred.push(l),ex(e,s.tag)),a==null?Xl(e,i,s):i()}}return r}function Xl(e,t,n){const r=e._updateTags;let o,i=!1,s=!1;n!==void 0&&(o=n.onUpdate,ex(e,n.tag),i=n.skipTransforms||!1,s=n.discrete||!1),o&&e._deferred.push(o);const a=e._editorState;let l=e._pendingEditorState,c=!1;(l===null||l._readOnly)&&(l=e._pendingEditorState=nx(l||a),c=!0),l._flushSync=s;const u=it,f=Ft,d=st,p=e._updating;it=l,Ft=!1,e._updating=!0,st=e;const h=e._headless||e.getRootElement()===null;Bd(null);try{c&&(h?a._selection!==null&&(l._selection=a._selection.clone()):l._selection=(function(v,b){const A=v.getEditorState()._selection,w=en(Xt(v));return $(A)||A==null?Fd(A,w,v,b):A.clone()})(e,n&&n.event||null));const m=e._compositionKey;t(),i=Qm(e,i),(function(v,b){const A=b.getEditorState()._selection,w=v._selection;if($(w)){const _=w.anchor,E=w.focus;let S;if(_.type==="text"&&(S=_.getNode(),S.selectionTransform(A,w)),E.type==="text"){const O=E.getNode();S!==O&&O.selectionTransform(A,w)}}})(l,e),e._dirtyType!==0&&(i?(function(v,b){const A=b._dirtyLeaves,w=v._nodeMap;for(const _ of A){const E=w.get(_);X(E)&&E.isAttached()&&E.isSimpleText()&&!E.isUnmergeable()&&Em(E)}})(l,e):(function(v,b){const A=b._dirtyLeaves,w=b._dirtyElements,_=v._nodeMap,E=Er(),S=new Map;let O=A,P=O.size,I=w,W=I.size;for(;P>0||W>0;){if(P>0){b._dirtyLeaves=new Set;for(const j of O){const z=_.get(j);X(z)&&z.isAttached()&&z.isSimpleText()&&!z.isUnmergeable()&&Em(z),z!==void 0&&Vm(z,E)&&qm(b,z,S),A.add(j)}if(O=b._dirtyLeaves,P=O.size,P>0){Ka++;continue}}b._dirtyLeaves=new Set,b._dirtyElements=new Map,I.delete("root")&&I.set("root",!0);for(const j of I){const z=j[0],Y=j[1];if(w.set(z,Y),!Y)continue;const Q=_.get(z);Q!==void 0&&Vm(Q,E)&&qm(b,Q,S)}O=b._dirtyLeaves,P=O.size,I=b._dirtyElements,W=I.size,Ka++}b._dirtyLeaves=A,b._dirtyElements=w})(l,e),Qm(e),(function(v,b,A,w){const _=v._nodeMap,E=b._nodeMap,S=[];for(const[O]of w){const P=E.get(O);P!==void 0&&(P.isAttached()||(R(P)&&ab(P,O,_,E,S,w),_.has(O)||w.delete(O),S.push(O)))}for(const O of S)E.delete(O);for(const O of A){const P=E.get(O);P===void 0||P.isAttached()||(_.has(O)||A.delete(O),E.delete(O))}})(a,l,e._dirtyLeaves,e._dirtyElements)),m!==e._compositionKey&&(l._flushSync=!0);const y=l._selection;if($(y)){const v=l._nodeMap,b=y.anchor.key,A=y.focus.key;v.get(b)!==void 0&&v.get(A)!==void 0||U(19)}else ot(y)&&y._nodes.size===0&&(l._selection=null)}catch(m){return m instanceof Error&&e._onError(m),e._pendingEditorState=a,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Yn(e)}finally{it=u,Ft=f,st=d,e._updating=p,Ka=0}e._dirtyType!==0||e._deferred.length>0||(function(m,y){const v=y.getEditorState()._selection,b=m._selection;if(b!==null){if(b.dirty||!b.is(v))return!0}else if(v!==null)return!0;return!1})(l,e)?l._flushSync?(l._flushSync=!1,Yn(e)):c&&$T(()=>{Yn(e)}):(l._flushSync=!1,c&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Sn(e,t,n){st===e&&n===void 0?t():Xl(e,t,n)}class Cs{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 Cs(this.element,t,this.after)}withAfter(t){return new Cs(this.element,this.before,t)}withElement(t){return this.element===t?this:new Cs(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"&&(ta||Vi||ea);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 l=this.getFirstChildOffset();return[t,Math.min(l+t.getChildrenSize(),Math.max(l,o))]}const i=Gm(n,r);i.push(o);const s=Gm(n,this.element);let a=t.getIndexWithinParent();for(let l=0;l<s.length;l++){const c=i[l],u=s[l];if(c===void 0||c<u)break;if(c>u){a+=1;break}}return[t.getParentOrThrow(),a]}}function Gm(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 Pn extends ln{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 $3[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&&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+=Rr)}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=ym[n];return(this.getFormat()&r)!==0}return!1}hasTextFormat(n){const r=Oo[n];return(this.getTextFormat()&r)!==0}getFormatFlags(n,r){return yl(this.getLatest().__textFormat,n,r)}getTextStyle(){return this.getLatest().__textStyle}select(n,r){vt();const o=Z();let i=n,s=r;const a=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&r===0){const c=this.getFirstChild();if(X(c)||R(c))return c.select(0,0)}else if(!(n!==void 0&&n!==a||r!==void 0&&r!==a)){const c=this.getLastChild();if(X(c)||R(c))return c.select()}}i===void 0&&(i=a),s===void 0&&(s=a);const l=this.__key;return $(o)?(o.anchor.set(l,i,"element"),o.focus.set(l,s,"element"),o.dirty=!0,o):Vb(l,i,l,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!==""?ym[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){hl(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,l=[],c=[],u=this.getChildAtIndex(n+r);let f=null,d=i-r+o.length;if(n!==0)if(n===i)f=this.getLastChild();else{const h=this.getChildAtIndex(n);h!==null&&(f=h.getPreviousSibling())}if(r>0){let h=f===null?this.getFirstChild():f.getNextSibling();for(let g=0;g<r;g++){h===null&&U(100);const m=h.getNextSibling(),y=h.__key;wo(h.getWritable()),c.push(y),h=m}}let p=f;for(const h of o){p!==null&&h.is(p)&&(f=p=p.getPreviousSibling());const g=h.getWritable();g.__parent===a&&d--,wo(g);const m=h.__key;if(p===null)s.__first=m,g.__prev=null;else{const y=p.getWritable();y.__next=m,g.__prev=y.__key}h.__key===a&&U(76),g.__parent=a,l.push(m),p=h}if(n+r===i)p!==null&&(p.getWritable().__next=null,s.__last=p.__key);else if(u!==null){const h=u.getWritable();if(p!==null){const g=p.getWritable();h.__prev=p.__key,g.__next=u.__key}else h.__prev=null}if(s.__size=d,c.length){const h=Z();if($(h)){const g=new Set(c),m=new Set(l),{anchor:y,focus:v}=h;Zm(y,g,m)&&gl(y,y.getNode(),this,f,u),Zm(v,g,m)&&gl(v,v.getNode(),this,f,u),d!==0||this.canBeEmpty()||jt(this)||this.remove()}}return s}getDOMSlot(n){return new Cs(n)}exportDOM(n){const{element:r}=super.exportDOM(n);if(ht(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 Pn}function Zm(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 tx extends ln{decorate(t,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Te(e){return e instanceof tx}class Zi extends Pn{constructor(){super("root");D(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new Zi}getTopLevelElementOrThrow(){U(51)}getTextContent(){const n=this.__cachedText;return!ra()&&Re()._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 Zi}function nx(e){return new oa(new Map(e._nodeMap))}function zd(){return new oa(new Map([["root",new Zi]]))}function rx(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=rx(o[i]);r.push(s)}}return t}function RT(e){return e instanceof oa}class oa{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 Ym(n&&n.editor||null,this,t)}clone(t){const n=new oa(this._nodeMap,t===void 0?this._selection:t);return n._readOnly=!0,n}toJSON(){return Ym(null,this,()=>({root:rx(We())}))}}class $d extends Pn{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class Ji extends Pn{static getType(){return"paragraph"}static clone(t){return new Ji(t.__key)}createDOM(t){const n=document.createElement("p"),r=vi(t.theme,"paragraph");return r!==void 0&&n.classList.add(...r),n}updateDOM(t,n,r){return!1}static importDOM(){return{p:t=>({conversion:DT,priority:0})}}exportDOM(t){const{element:n}=super.exportDOM(t);if(ht(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 DT(e){const t=Tt();return e.style&&(t.setFormat(e.style.textAlign),ZT(e,t)),{node:t}}function Tt(){return Wr(new Ji)}function Ud(e){return e instanceof Ji}const Ae=0,Qn=1,FT=3,ox=4;function ix(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 jT(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:o}=rc(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 ln&&s!==ln?s:void 0}}return t}function sx(e){const t=e||{},n=IT(),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:gx()),l=t.editorState,c=[Zi,Ur,Yi,Qi,Ji,$d,...t.nodes||[]],{onError:u,html:f}=t,d=t.editable===void 0||t.editable;let p;if(e===void 0&&n!==null)p=n._nodes;else{p=new Map;for(let g=0;g<c.length;g++){let m=c[g],y=null,v=null;if(typeof m!="function"){const w=m;m=w.replace,y=w.with,v=w.withKlass||null}rc(m);const b=m.getType(),A=jT(m);p.set(b,{exportDOM:f&&f.export?f.export.get(m):void 0,klass:m,replace:y,replaceWithKlass:v,sharedNodeState:V3(c[g]),transforms:A})}}const h=new Lo(s,o,p,{disableEvents:i,namespace:a,theme:r},u||console.error,(function(g,m){const y=new Map,v=new Set,b=A=>{Object.keys(A).forEach(w=>{let _=y.get(w);_===void 0&&(_=[],y.set(w,_)),_.push(A[w])})};return g.forEach(A=>{const w=A.klass.importDOM;if(w==null||v.has(w))return;v.add(w);const _=w.call(A.klass);_!==null&&b(_)}),m&&b(m),y})(p,f?f.import:void 0),d,e);return l!==void 0&&(h._pendingEditorState=l,h._dirtyType=2),(function(g){g.registerCommand(yb,fT,Ae),g.registerCommand(vb,dT,Ae),g.registerCommand(bb,pT,Ae),g.registerCommand(xb,hT,Ae),g.registerCommand(wb,mT,Ae)})(h),h}class Lo{constructor(t,n,r,o,i,s,a,l){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=l,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=ig(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 l=ig(s.getEditorState()),c=[];for(const u of a){const f=l.get(u);f&&c.push(f)}c.length!==0&&s.update(()=>{for(const u of c)for(const f of u.keys()){const d=Xe(f);d&&d.markDirty()}},s._pendingEditorState===null?{tag:vo}: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=vi(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=t,ix(this,n,t,o),n!==null&&(this._config.disableEvents||gT(n),r!=null&&n.classList.remove(...r)),t!==null){const i=Gd(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,ub(this),this._updateTags.add(vo),Yn(this),this._config.disableEvents||(function(a,l){const c=a.ownerDocument;Af.set(a,c);const u=dl.get(c)??0;u<1&&c.addEventListener("selectionchange",$b),dl.set(c,u+1),a.__lexicalEditor=l;const f=zb(a);for(let d=0;d<wf.length;d++){const[p,h]=wf[d],g=typeof h=="function"?m=>{Mm(m)||(Pm(m),(l.isEditable()||p==="click")&&h(m,l))}:m=>{if(Mm(m))return;Pm(m);const y=l.isEditable();switch(p){case"cut":return y&&ie(l,Rd,m);case"copy":return ie(l,Zl,m);case"paste":return y&&ie(l,Gl,m);case"dragstart":return y&&ie(l,Pb,m);case"dragover":return y&&ie(l,Mb,m);case"dragend":return y&&ie(l,iT,m);case"focus":return y&&ie(l,lT,m);case"blur":return y&&ie(l,cT,m);case"drop":return y&&ie(l,Ob,m)}};a.addEventListener(p,g),f.push(()=>{a.removeEventListener(p,g)})}})(t,this),r!=null&&t.classList.add(...r)}else this._window=null,this._updateTags.add(vo),Yn(this);As("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=nx(t),r._selection=t._selection?t._selection.clone():null),cb(this);const o=this._pendingEditorState,i=this._updateTags,s=n!==void 0?n.tag:null;o===null||o.isEmpty()||(s!=null&&i.add(s),Yn(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||Yn(this)}parseEditorState(t,n){return(function(r,o,i){const s=zd(),a=it,l=Ft,c=st,u=o._dirtyElements,f=o._dirtyLeaves,d=o._cloneNotNeeded,p=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,it=s,Ft=!1,st=o,Bd(null);try{const h=o._nodes;jd(r.root,h),i&&i(),s._readOnly=!0}catch(h){h instanceof Error&&o._onError(h)}finally{o._dirtyElements=u,o._dirtyLeaves=f,o._cloneNotNeeded=d,o._dirtyType=p,it=a,Ft=l,st=c}return s})(typeof t=="string"?JSON.parse(t):t,this,n)}read(t){return Yn(this),this.getEditorState().read(t,{editor:this})}update(t,n){(function(r,o,i){r._updating?r._updates.push([o,i]):Xl(r,o,i)})(this,t,n)}focus(t,n={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Sn(this,()=>{const o=Z(),i=We();o!==null?o.dirty||Pt(o.clone()):i.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),KT("focus"),HT(()=>{r.removeAttribute("autocapitalize"),t&&t()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;t!==null&&t.blur();const n=en(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,As("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}D(Lo,"version");Lo.version="0.39.0+prod.esm";let Pf=null;function Bd(e){Pf=e}let zT=1;function ax(e,t){const n=Wd(e,t);return n===void 0&&U(30,t),n}function Wd(e,t){return e._nodes.get(t)}const $T=typeof queueMicrotask=="function"?queueMicrotask:e=>{Promise.resolve().then(e)};function lx(e){return Te(Fi(e))}function Kd(e){const t=document.activeElement;if(!ht(t))return!1;const n=t.nodeName;return Te(Fi(e))&&(n==="INPUT"||n==="TEXTAREA"||t.contentEditable==="true"&&ec(t)==null)}function ia(e,t,n){const r=e.getRootElement();try{return r!==null&&r.contains(t)&&r.contains(n)&&t!==null&&!Kd(t)&&cx(t)===e}catch{return!1}}function Hd(e){return e instanceof Lo}function cx(e){let t=e;for(;t!=null;){const n=ec(t);if(Hd(n))return n;t=sa(t)}return null}function ec(e){return e?e.__lexicalEditor:null}function xo(e){return Kb(e)||e.isToken()}function Bn(e){return xo(e)||e.isSegmented()}function lr(e){return Xi(e)&&e.nodeType===3}function ux(e){return Xi(e)&&e.nodeType===9}function Di(e){let t=e;for(;t!=null;){if(lr(t))return t;t=t.firstChild}return null}function yl(e,t,n){const r=Oo[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)||bo(e)||Te(e)}function UT(e,t){const n=(function(){const s=Pf;return Pf=null,s})();if((t=t||n&&n.__key)!=null)return void(e.__key=t);vt(),Jb();const r=Re(),o=Br(),i=""+zT++;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 wo(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,l=o!==null?o.getWritable():null,c=i!==null?i.getWritable():null;o===null&&(r.__first=s),i===null&&(r.__last=a),l!==null&&(l.__next=s),c!==null&&(c.__prev=a),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function vl(e){Jb(),hl(e)&&U(323,e.__key,e.__type);const t=e.getLatest(),n=t.__parent,r=Br(),o=Re(),i=r._nodeMap,s=o._dirtyElements;n!==null&&(function(l,c,u){let f=l;for(;f!==null;){if(u.has(f))return;const d=c.get(f);if(d===void 0)break;u.set(f,!1),f=d.__parent}})(n,i,s);const a=t.__key;o._dirtyType=1,R(e)?s.set(a,!0):o._dirtyLeaves.add(a)}function ft(e){vt();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 Er(){return ra()?null:Re()._compositionKey}function Xe(e,t){const n=(t||Br())._nodeMap.get(e);return n===void 0?null:n}function dx(e,t){const n=tc(e,Re());return n!==void 0?Xe(n,t):null}function tc(e,t){return e[`__lexicalKey_${t._key}`]}function Fi(e,t){let n=e;for(;n!=null;){const r=dx(n,t);if(r!==null)return r;n=sa(n)}return null}function px(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Jm(e){return e.read(()=>We().getTextContent())}function We(){return hx(Br())}function hx(e){return e._nodeMap.get("root")}function Pt(e){vt();const t=Br();e!==null&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function ci(e){const t=Re(),n=(function(r,o){let i=r;for(;i!=null;){const s=tc(i,o);if(s!==void 0)return s;i=sa(i)}return null})(e,t);return n===null?e===t.getRootElement()?Xe("root"):null:Xe(n)}function mx(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function qd(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 yx(e){return lr(e)?e.nodeValue:null}function Vd(e,t,n){const r=en(Xt(t));if(r===null)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(o!==null){let a=yx(o);const l=Fi(o);if(a!==null&&X(l)){if(a===Vl&&n){const c=n.length;a=n,i=c,s=c}a!==null&&Yd(l,a,i,s,e)}}}function Yd(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]===Vl&&(a=t.slice(0,-1));const l=i.getTextContent();if(o||a!==l){if(a===""){if(ft(null),ea||Vi||ta)i.remove();else{const g=Re();setTimeout(()=>{g.update(()=>{i.isAttached()&&i.remove()})},20)}return}const c=i.getParent(),u=Gi(),f=i.getTextContentSize(),d=Er(),p=i.getKey();if(i.isToken()||d!==null&&p===d&&!s||$(u)&&(c!==null&&!c.canInsertTextBefore()&&u.anchor.offset===0||u.anchor.key===e.__key&&u.anchor.offset===0&&!i.canInsertTextBefore()&&!s||u.focus.key===e.__key&&u.focus.offset===f&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const h=Z();if(!$(h)||n===null||r===null)return void Xm(i,a,h);if(h.setTextNodeRange(i,n,i,r),i.isSegmented()){const g=rt(i.getTextContent());i.replace(g),i=g}Xm(i,a,h)}}}function Xm(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=Or(e,i.offset,"clamp"))}}}function ka(e,t,n){const r=t[n]||!1;return r==="any"||r===e[n]}function BT(e,t){return ka(e,t,"altKey")&&ka(e,t,"ctrlKey")&&ka(e,t,"shiftKey")&&ka(e,t,"metaKey")}function Ie(e,t,n){return BT(e,n)&&e.key.toLowerCase()===t.toLowerCase()}const $n={ctrlKey:!sn,metaKey:sn},eg={altKey:sn,ctrlKey:!sn};function tg(e){return e.key==="Backspace"}function ng(e){return Ie(e,"a",$n)}function WT(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"),Ri(e),e}{const n=t.select(0,t.getChildrenSize());return Pt(Ri(n)),n}}function vi(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=ib(o);return n[t]=i,i}return o}function Qd(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 l=a.klass;let c=e.get(l);c===void 0&&(c=new Map,e.set(l,c));const u=c.get(s),f=u==="destroyed"&&o==="created";(u===void 0||f)&&c.set(s,f?"updated":o)}function rg(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 Mf(e,t){const n=e.offset;if(e.type==="element")return rg(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?rg(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):o}}return null}function vx(e){const t=Xt(e).event,n=t&&t.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function ie(e,t,n){return(function(r,o,i){const s=qd(r);for(let a=4;a>=0;a--)for(let l=0;l<s.length;l++){const c=s[l],u=c._commands.get(o);if(u!==void 0){const f=u[a];if(f!==void 0){const d=Array.from(f),p=d.length;let h=!1;if(Sn(c,()=>{for(let g=0;g<p;g++)if(d[g](i,r))return void(h=!0)}),h)return h}}}return!1})(e,t,n)}function nc(e){return!Ye(e)&&!e.isLastChild()&&!e.isInline()}function Ro(e,t){const n=e._keyToDOMMap.get(t);return n===void 0&&U(75,t),n}function sa(e){const t=e.assignedSlot||e.parentElement;return Rf(t)?t.host:t}function bx(e){return ux(e)?e:ht(e)?e.ownerDocument:null}function KT(e){vt(),Re()._updateTags.add(e)}function HT(e){vt(),Re()._deferred.push(e)}function If(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function Gd(e){const t=bx(e);return t?t.defaultView:null}function Xt(e){const t=e._window;return t===null&&U(78),t}function qT(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 Wr(e){const t=Re(),n=e.getType(),r=Wd(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 Xc(e,t){!Ye(e.getParent())||R(t)||Te(t)||U(99)}function VT(e){const t=Xe(e);return t===null&&U(63,e),t}function eu(e){return(Te(e)||R(e)&&!e.canBeEmpty())&&!e.isInline()}function Lf(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;r!==null&&r.removeChild(e)}function en(e){return dn?(e||window).getSelection():null}function YT(e){const t=Gd(e);return t?t.getSelection():null}function xx(e){return ht(e)&&e.tagName==="A"}function ht(e){return Xi(e)&&e.nodeType===1}function Xi(e){return typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeType=="number"}function Rf(e){return Xi(e)&&e.nodeType===11}function Df(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 bl(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 mr(e){if(Te(e)&&!e.isInline())return!0;if(!R(e)||jt(e))return!1;const t=e.getFirstChild(),n=t===null||bo(t)||X(t)||t.isInline();return!e.isInline()&&e.canBeEmpty()!==!1&&n}function Zd(){return Re()}const og=new WeakMap,QT=new Map;function ig(e){if(!e._readOnly&&e.isEmpty())return QT;e._readOnly||U(192);let t=og.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),og.set(e,t)),t}function wx(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function GT(e){return(t=wx(e))[Ub]=!0,t;var t}function ZT(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function JT(e){return e.__lexicalUnmanaged===!0}function fs(e,t){return(function(n,r){return Object.prototype.hasOwnProperty.call(n,r)})(e,t)&&e[t]!==ln[t]}function rc(e){const t=vm in e.prototype?e.prototype[vm]():void 0,n=(function(s){if(!(s===ln||s.prototype instanceof ln)){let a="<unknown>",l="<unknown>";try{a=s.getType()}catch{}try{Lo.version&&(l=JSON.parse(Lo.version))}catch{}U(290,s.name,a,l)}return s===tx||s===Pn||s===ln})(e),r=!n&&fs(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&&(fs(e,"getType")||(e.getType=()=>i),fs(e,"clone")||(e.clone=s=>(Bd(s),new e)),fs(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(s=>new e().updateFromJSON(s))),!fs(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},XT={next:"previous",previous:"next"};class Jd{constructor(t){D(this,"origin");this.origin=t}[Symbol.iterator](){return Ax({hasNext:ji,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 l=i.getAdjacentCaret();l!==null&&a.size<t;l=l.getAdjacentCaret()){const c=l.origin.getWritable();a.set(c.getKey(),c)}for(const l of o){if(a.size>0){const c=i.getNodeAtCaret();if(c){if(a.delete(c.getKey()),a.delete(l.getKey()),!(c.is(l)||i.origin.is(l))){const u=l.getParent();u&&u.is(s)&&l.remove(),c.replace(l)}}else c===null&&U(263,Array.from(a).join(" "))}else i.insert(l);i=xt(l,this.direction)}for(const l of a.values())l.remove();return this}}class zs extends Jd{constructor(){super(...arguments);D(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:un(n,this.direction)}getParentCaret(n="root"){return xt(Xd(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=es(this.direction);return xt(this.getNodeAtCaret(),n)||un(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof zs&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const e6={root:Ye,shadowRoot:jt};function es(e){return XT[e]}function Xd(e,t="root"){return e6[t](e)?null:e}class Do extends Jd{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)?un(this.origin,this.direction):null}getParentCaret(n="root"){return xt(Xd(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=es(this.direction);return xt(this.getNodeAtCaret(),n)||un(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof Do&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof Do||n instanceof Fo)&&this.direction===n.direction&&this.origin.is(n.origin)}}class Fo extends Jd{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:jo(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return xt(Xd(this.getParentAtCaret(),n),this.direction)}getFlipped(){return jo(this.origin,es(this.direction),this.offset)}isSamePointCaret(n){return n instanceof Fo&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof Do||n instanceof Fo)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return xt(this.origin,this.direction)}}function Nr(e){return e instanceof Fo}function ji(e){return e instanceof Do}function kn(e){return e instanceof zs}const t6={next:class extends Fo{constructor(){super(...arguments);D(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends Fo{constructor(){super(...arguments);D(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},n6={next:class extends Do{constructor(){super(...arguments);D(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends Do{constructor(){super(...arguments);D(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},r6={next:class extends zs{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 zs{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 n6[t](e):null}function jo(e,t,n){return e?new t6[t](e,Or(e,n)):null}function Or(e,t,n="error"){const r=e.getTextContentSize();let o=t==="next"?r:t==="previous"?0:t;return(o<0||o>r)&&(n!=="clamp"&&rb(284,String(t),String(r),e.getKey()),o=o<0?0:r),o}function sg(e,t){return new i6(e,t)}function un(e,t){return R(e)?new r6[t](e):null}function o6(e){return e&&e.getChildCaret()||e}function ep(e){return e&&o6(e.getAdjacentCaret())}class tp{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 tp(t,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=o=>{const i=this[o].getLatest();return Nr(i)?(function(s,a){const{direction:l,origin:c}=s,u=Or(c,a==="focus"?es(l):l);return sg(s,u-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[sg(o,i.offset-o.offset),null]}return[n,r]}iterNodeCarets(t="root"){const n=Nr(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),o=Nr(r),i=s=>s.isSameNodeCaret(r)?null:ep(s)||s.getParentCaret(t);return Ax({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 i6{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 jo(t.setTextContent(i.slice(0,r)+i.slice(o)),n,r)}}function np(e){return Dr(e,xt(We(),e.direction))}function s6(e){return Dr(e,e)}function Dr(e,t){return e.direction!==t.direction&&U(265),new tp(e,t,e.direction)}function Ax(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 Cx(e,t){const n=Ha(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 _x(n)}}function _x(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 Ta(e,t){return t.is(e)}function ag(e){return R(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function Ha(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[r,o]=ag(e);r;o=r,r=r.getParent())n.set(r,o);for(let[r,o]=ag(t);r;o=r,r=r.getParent()){const i=n.get(r);if(i!==void 0)return i===null?(Ta(e,r)||U(276),{commonAncestor:r,type:"ancestor"}):o===null?(Ta(t,r)||U(277),{commonAncestor:r,type:"descendant"}):((R(i)||Ta(e,i))&&(R(o)||Ta(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||U(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function tr(e,t){const{type:n,key:r,offset:o}=e,i=VT(e.key);return n==="text"?(X(i)||U(266,i.getType(),r),jo(i,t,o)):(R(i)||U(267,i.getType(),r),c6(i,e.offset,t))}function zo(e,t){const{origin:n,direction:r}=t,o=r==="next";Nr(t)?e.set(n.getKey(),t.offset,"text"):ji(t)?X(n)?e.set(n.getKey(),Or(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(kn(t)&&R(n)||U(268),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function a6(e){const t=Z(),n=$(t)?t:Yb();return qa(n,e),Pt(n),n}function qa(e,t){zo(e.anchor,t.anchor),zo(e.focus,t.focus)}function lg(e){const{anchor:t,focus:n}=e,r=tr(t,"next"),o=tr(n,"next"),i=Cx(r,o)<=0?"next":"previous";return Dr(zi(r,i),zi(o,i))}function rp(e){const{direction:t,origin:n}=e,r=xt(n,es(t)).getNodeAtCaret();return r?xt(r,t):un(n.getParentOrThrow(),t)}function cg(e,t="root"){const n=[e];for(let r=kn(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(rp(r));return n}function tu(e){return!!e&&e.origin.isAttached()}function l6(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=Sx(e,r),s=cg(i.anchor,n),a=cg(i.focus.getFlipped(),n),l=new Set,c=[];for(const h of i.iterNodeCarets(n))if(kn(h))l.add(h.origin.getKey());else if(ji(h)){const{origin:g}=h;R(g)&&!l.has(g.getKey())||c.push(g)}for(const h of c)h.remove();for(const h of i.getTextSlices()){if(!h)continue;const{origin:g}=h.caret,m=g.getTextContentSize(),y=rp(xt(g,r)),v=g.getMode();if(Math.abs(h.distance)===m&&o==="removeEmptySlices"||v==="token"&&h.distance!==0)y.remove();else if(h.distance!==0){o="removeEmptySlices";let b=h.removeTextSlice();const A=h.caret.origin;if(v==="segmented"){const w=b.origin,_=rt(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());y.replaceOrInsert(_),b=jo(_,r,b.offset)}A.is(s[0].origin)&&(s[0]=b),A.is(a[0].origin)&&(a[0]=b.getFlipped())}}let u,f;for(const h of s)if(tu(h)){u=Yt(h);break}for(const h of a)if(tu(h)){f=Yt(h);break}const d=(function(h,g,m){if(!h||!g)return null;const y=h.getParentAtCaret(),v=g.getParentAtCaret();if(!y||!v)return null;const b=y.getParents().reverse();b.push(y);const A=v.getParents().reverse();A.push(v);const w=Math.min(b.length,A.length);let _;for(_=0;_<w&&b[_]===A[_];_++);const E=(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},S=E(b,mr),O=S&&E(A,P=>m.has(P.getKey())&&mr(P));return S&&O?[S,O]:null})(u,f,l);if(d){const[h,g]=d;un(h,"previous").splice(0,g.getChildren()),g.remove()}const p=[u,f,...s,...a].find(tu);if(p)return s6(zi(Yt(p),e.direction));U(269,JSON.stringify(s.map(h=>h.origin.__key)))}function Yt(e){const t=(function(o){let i=o;for(;kn(i);){const s=ep(i);if(!kn(s))break;i=s}return i})(e.getLatest()),{direction:n}=t;if(X(t.origin))return Nr(t)?t:jo(t.origin,n,n);const r=t.getAdjacentCaret();return ji(r)&&X(r.origin)?jo(r.origin,n,es(n)):t}function Ex(e){return Nr(e)&&e.offset!==Or(e.origin,e.direction)}function zi(e,t){return e.direction===t?e:e.getFlipped()}function Sx(e,t){return e.direction===t?e:Dr(zi(e.focus,t),zi(e.anchor,t))}function c6(e,t,n){let r=un(e,"next");for(let o=0;o<t;o++){const i=r.getAdjacentCaret();if(i===null)break;r=i}return zi(r,n)}function u6(...e){return e}function f6(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}const kx=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,d6=kx?T.useLayoutEffect:T.useEffect,Na={tag:vo};function p6({initialConfig:e,children:t}){const n=T.useMemo(()=>{const{theme:r,namespace:o,nodes:i,onError:s,editorState:a,html:l}=e,c=S3(null,r),u=sx({editable:e.editable,html:l,namespace:o,nodes:i,onError:f=>s(f,u),theme:r});return(function(f,d){if(d!==null){if(d===void 0)f.update(()=>{const p=We();if(p.isEmpty()){const h=Tt();p.append(h);const g=kx?document.activeElement:null;(Z()!==null||g!==null&&g===f.getRootElement())&&h.select()}},Na);else if(d!==null)switch(typeof d){case"string":{const p=f.parseEditorState(d);f.setEditorState(p,Na);break}case"object":f.setEditorState(d,Na);break;case"function":f.update(()=>{We().isEmpty()&&d(f)},Na)}}})(u,a),[u,c]},[]);return d6(()=>{const r=e.editable,[o]=n;o.setEditable(r===void 0||r)},[]),x.jsx(nb.Provider,{value:n,children:t})}const h6=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function m6(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function g6(){return(function(e){const[t]=pt(),n=T.useMemo(()=>e(t),[t,e]),[r,o]=T.useState(()=>n.initialValueFn()),i=T.useRef(r);return h6(()=>{const{initialValueFn:s,subscribe:a}=n,l=s();return i.current!==l&&(i.current=l,o(l)),a(c=>{i.current=c,o(c)})},[n,e]),r})(m6)}function y6(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 Ff=new Map;function Tx(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 ug(e){let t=Ff.get(e);return t===void 0&&(t=Tx(e),Ff.set(e,t)),t}function Nx(e){const t=Zd().getElementByKey(e.getKey());if(t===null)return null;const n=t.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(t)}function Ox(e){return Nx(Ye(e)?e:e.getParentOrThrow())}function fg(e){const t=Ox(e);return t!==null&&t.direction==="rtl"}function Px(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!Bn(t)&&r!==null){const[o,i]=r,s=e.isBackward(),a=o.getNode(),l=i.getNode(),c=t.is(a),u=t.is(l);if(c||u){const[f,d]=Nf(e),p=a.is(l),h=t.is(s?l:a),g=t.is(s?a:l);let m,y=0;p?(y=f>d?d:f,m=f>d?f:d):h?(y=s?d:f,m=void 0):g&&(y=0,m=s?f:d);const v=t.__text.slice(y,m);v!==t.__text&&(n==="clone"&&(t=GT(t)),t.__text=v)}}return t}function dg(e){if(e.type==="text")return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return R(t)||y6(177),e.offset===t.getChildrenSize()}function v6(e){const t=e.getStyle(),n=Tx(t);Ff.set(t,n)}function Mx(e){const t=Ix(e);return t!==null&&t.writingMode==="vertical-rl"}function Ix(e){const t=e.anchor.getNode();return R(t)?Nx(t):Ox(t)}function pg(e,t){let n=Mx(e)?!t:t;Lx(e)&&(n=!n);const r=tr(e.focus,n?"previous":"next");if(Ex(r))return!1;for(const o of np(r)){if(kn(o))return!o.origin.isInline();if(!R(o.origin)){if(Te(o.origin))return!0;break}}return!1}function b6(e,t,n,r){e.modify(t?"extend":"move",n,r)}function Lx(e){const t=Ix(e);return t!==null&&t.direction==="rtl"}function hg(e,t,n){const r=Lx(e);let o;o=Mx(e)||r?!n:n,b6(e,t,o,"character")}function x6(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 Rx=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,w6=Rx&&"documentMode"in document?document.documentMode:null;!(!Rx||!("InputEvent"in window)||w6)&&"getTargetRanges"in new window.InputEvent("input");function Dx(...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 fn(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function op(e,...t){const n=Dx(...t);n.length>0&&e.classList.add(...n)}function Fx(e,...t){const n=Dx(...t);n.length>0&&e.classList.remove(...n)}function A6(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function C6(e){const t=at(e,n=>R(n)&&!n.isInline());return R(t)||x6(4,e.__key),t}function Sr(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}const _6=Symbol.for("preact-signals");function oc(){if(Pr>1)return void Pr--;let e,t=!1;for(;_s!==void 0;){let n=_s;for(_s=void 0,jf++;n!==void 0;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&jx(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(jf=0,Pr--,t)throw e}function E6(e){if(Pr>0)return e();Pr++;try{return e()}finally{oc()}}let Pe,_s;function mg(e){const t=Pe;Pe=void 0;try{return e()}finally{Pe=t}}let Pr=0,jf=0,Va=0;function gg(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 S6(e,t){return new _t(e,t)}function jx(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 yg(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 zx(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 ei(e,t){_t.call(this,void 0),this.x=e,this.s=void 0,this.g=Va-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 $x(e){const t=e.u;if(e.u=void 0,typeof t=="function"){Pr++;const n=Pe;Pe=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,ip(e),r}finally{Pe=n,oc()}}}function ip(e){for(let t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,$x(e)}function k6(e){if(Pe!==this)throw new Error("Out-of-order effect");zx(this),Pe=e,this.f&=-2,8&this.f&&ip(this),oc()}function si(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 $s(e,t){const n=new si(e,t);try{n.c()}catch(o){throw n.d(),o}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Ux(e,t={}){const n={};for(const r in e){const o=t[r],i=S6(o===void 0?e[r]:o);n[r]=i}return n}_t.prototype.brand=_6,_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:mg(()=>{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&&mg(()=>{var r;(r=this.Z)==null||r.call(this)}))}},_t.prototype.subscribe=function(e){return $s(()=>{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=gg(this);return e!==void 0&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(jf>100)throw new Error("Cycle detected");this.v=e,this.i++,Va++,Pr++;try{for(let t=this.t;t!==void 0;t=t.x)t.t.N()}finally{oc()}}}}),ei.prototype=new _t,ei.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Va))return!0;if(this.g=Va,this.f|=1,this.i>0&&!jx(this))return this.f&=-2,!0;const e=Pe;try{yg(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,zx(this),this.f&=-2,!0},ei.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)},ei.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)}},ei.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(ei.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=gg(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),si.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()}},si.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,$x(this),yg(this),Pr++;const e=Pe;return Pe=this,k6.bind(this,e)},si.prototype.N=function(){2&this.f||(this.f|=2,this.o=_s,_s=this)},si.prototype.d=function(){this.f|=8,1&this.f||ip(this)},si.prototype.dispose=function(){this.d()};function T6(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 Bx(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]=Bx(n[o],r[o]);return e}return t}const sp=0,zf=1,Wx=2,nu=3,Oa=4,ti=5,ru=6,ds=7;function ou(e){return e.id===sp}function Kx(e){return e.id===Wx}function N6(e){return(function(t){return t.id===zf})(e)||Fe(305,String(e.id),String(zf)),Object.assign(e,{id:Wx})}const O6=new Set;class P6{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:sp}}mergeConfigs(){let t=this.extension.config||{};const n=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):f6;for(const r of this.configs)t=n(t,r);return t}init(t){const n=this.state;Kx(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,l,c){return Object.assign(a,{config:l,id:nu,registerState:c})})(n,this.mergeConfigs(),r);let s;this.state=i,this.extension.init&&(s=this.extension.init(t,i.config,r)),this.state=(function(a,l,c){return Object.assign(a,{id:Oa,initResult:l,registerState:c})})(i,s,o)}build(t){const n=this.state;let r;n.id!==Oa&&Fe(307,String(n.id),String(ti)),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:ti,output:s,registerState:a})})(n,r,o)}register(t,n){this._signal=n;const r=this.state;r.id!==ti&&Fe(308,String(r.id),String(ti));const o=this.extension.register&&this.extension.register(t,r.config,r.registerState);return this.state=(function(i){return Object.assign(i,{id:ru})})(r),()=>{const i=this.state;i.id!==ds&&Fe(309,String(r.id),String(ds)),this.state=(function(s){return Object.assign(s,{id:ti})})(i),o&&o()}}afterRegistration(t){const n=this.state;let r;return n.id!==ru&&Fe(310,String(n.id),String(ru)),this.extension.afterRegistration&&(r=this.extension.afterRegistration(t,n.config,n.registerState)),this.state=(function(o){return Object.assign(o,{id:ds})})(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>=Oa})(t)||Fe(313,String(t.id),String(Oa)),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>=nu})(t)||Fe(314,String(t.id),String(nu)),{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>=ds})(t)||Fe(316,String(t.id),String(ds)),t}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||O6}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>=ti})(t)||Fe(317,this.extension.name),this._dependency={config:t.config,init:t.initResult,output:t.output}}return this._dependency}}const vg={tag:vo};function M6(){const e=We();e.isEmpty()&&e.append(Tt())}const I6={config:{setOptions:vg,updateOptions:vg},init:({$initialEditorState:e=M6})=>({$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(RT(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:[Zi,Ur,Yi,Qi,Ji]},bg=Symbol.for("@lexical/extension/LexicalBuilder");function xg(){}function L6(e){throw e}function Pa(e){return Array.isArray(e)?e:[e]}const iu="0.39.0+prod.esm";class bi{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=iu,this.roots=t;for(const n of t)this.addExtension(n)}static fromExtensions(t){const n=[Pa(I6)];for(const r of t)n.push(Pa(r));return new bi(n)}static maybeFromEditor(t){const n=t[bg];return n&&(n.PACKAGE_VERSION!==iu&&Fe(292,n.PACKAGE_VERSION,iu),n instanceof bi||Fe(293)),n}static fromEditor(t){const n=bi.maybeFromEditor(t);return n===void 0&&Fe(294),n}constructEditor(){const{$initialEditorState:t,onError:n,...r}=this.buildCreateEditorArgs(),o=Object.assign(sx({...r,...n?{onError:i=>{n(i,o)}}:{}}),{[bg]:this});for(const i of this.sortedExtensionReps())i.build(o);return o}buildEditor(){let t=xg;function n(){try{t()}finally{t=xg}}const r=Object.assign(this.constructEditor(),{dispose:n,[Symbol.dispose]:n});return t=fn(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=Pa(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 P6(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=Pa(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(Kx(i))return;const s=r.extension.name;var a;ou(i)||Fe(300,s,o||"[unknown]"),ou(a=i)||Fe(304,String(a.id),String(sp)),i=Object.assign(a,{id:zf}),r.state=i;const l=this.outgoingConfigEdges.get(s);if(l)for(const c of l.keys()){const u=this.extensionNameMap.get(c);u&&n(u,s)}i=N6(i),r.state=i,t.push(r)};for(const r of this.extensionNameMap.values())ou(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 fn(...o)}buildCreateEditorArgs(){const t={},n=new Set,r=new Map,o=new Map,i={},s={},a=this.sortedExtensionReps();for(const u of a){const{extension:f}=u;if(f.onError!==void 0&&(t.onError=f.onError),f.disableEvents!==void 0&&(t.disableEvents=f.disableEvents),f.parentEditor!==void 0&&(t.parentEditor=f.parentEditor),f.editable!==void 0&&(t.editable=f.editable),f.namespace!==void 0&&(t.namespace=f.namespace),f.$initialEditorState!==void 0&&(t.$initialEditorState=f.$initialEditorState),f.nodes)for(const d of T6(f)){if(typeof d!="function"){const p=r.get(d.replace);p&&Fe(302,f.name,d.replace.name,p.extension.name),r.set(d.replace,u)}n.add(d)}if(f.html){if(f.html.export)for(const[d,p]of f.html.export.entries())o.set(d,p);f.html.import&&Object.assign(i,f.html.import)}f.theme&&Bx(s,f.theme)}Object.keys(s).length>0&&(t.theme=s),n.size&&(t.nodes=[...n]);const l=Object.keys(i).length>0,c=o.size>0;(l||c)&&(t.html={},l&&(t.html.import=i),c&&(t.html.export=o));for(const u of a)u.init(t);return t.onError||(t.onError=L6),t}}function R6(e,t){const n=bi.fromEditor(e).extensionNameMap.get(t);return n?n.getExtensionDependency():void 0}const D6={name:"@lexical/react/ReactProvider"};function F6(){return We().getTextContent()}function j6(e,t=!0){if(e)return!1;let n=F6();return t&&(n=n.trim()),n===""}function z6(e){if(!j6(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(!Ud(o)||o.__indent!==0)return!1;const i=o.getChildren(),s=i.length;for(let a=0;a<s;a++){const l=i[r];if(!X(l))return!1}}}return!0}function Hx(e){return()=>z6(e)}function $6(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 l=a.args;if(l){const[c,u,f,d,p]=l;e.update(()=>{const h=Z();if($(h)){const g=h.anchor;let m=g.getNode(),y=0,v=0;if(X(m)&&c>=0&&u>=0&&(y=c,v=c+u,h.setTextNodeRange(m,y,m,v)),y===v&&f===""||(h.insertRawText(f),m=g.getNode()),X(m)){y=d,v=d+p;const b=m.getTextContentSize();y=y>b?b:y,v=v>b?b:v,h.setTextNodeRange(m,y,m,v)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function qx(e,t){const n=ux(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const i of n)if(!Qx.has(i.nodeName)){const s=Gx(i,e,o,!1);s!==null&&(r=r.concat(s))}return(function(i){for(const s of i)s.getNextSibling()instanceof $d&&s.insertAfter(Io());for(const s of i){const a=s.getChildren();for(const l of a)s.insertBefore(l);s.remove()}})(o),r}function Vx(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++)Yx(e,r[o],n,t);return n.innerHTML}function Yx(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=Px(r,t,"clone"));const a=R(s)?s.getChildren():[],l=Wd(e,s.getType());let c;c=l&&l.exportDOM!==void 0?l.exportDOM(e,s):s.exportDOM(e);const{element:u,after:f}=c;if(!u)return!1;const d=document.createDocumentFragment();for(let p=0;p<a.length;p++){const h=a[p],g=Yx(e,h,d,r);!o&&R(t)&&g&&t.extractWithChild(h,r,"html")&&(o=!0)}if(o&&!i){if((ht(u)||Rf(u))&&u.append(d),n.append(u),f){const p=f.call(s,u);p&&(Rf(u)?u.replaceChildren(p):u.replaceWith(p))}}else n.append(d);return o}const Qx=new Set(["STYLE","SCRIPT"]);function Gx(e,t,n,r,o=new Map,i){let s=[];if(Qx.has(e.nodeName))return s;let a=null;const l=(function(h,g){const{nodeName:m}=h,y=g._htmlConversions.get(m.toLowerCase());let v=null;if(y!==void 0)for(const b of y){const A=b(h);A!==null&&(v===null||(v.priority||0)<=(A.priority||0))&&(v=A)}return v!==null?v.conversion:null})(e,t),c=l?l(e):null;let u=null;if(c!==null){u=c.after;const h=c.node;if(a=Array.isArray(h)?h[h.length-1]:h,a!==null){for(const[,g]of o)if(a=g(a,i),!a)break;a&&s.push(...Array.isArray(h)?h:[a])}c.forChild!=null&&o.set(e.nodeName,c.forChild)}const f=e.childNodes;let d=[];const p=(a==null||!jt(a))&&(a!=null&&Of(a)||r);for(let h=0;h<f.length;h++)d.push(...Gx(f[h],t,n,p,new Map(o),a));return u!=null&&(d=u(d)),bl(e)&&(d=U6(e,d,p?()=>{const h=new $d;return n.push(h),h}:Tt)),a==null?d.length>0?s=s.concat(d):bl(e)&&(function(h){return h.nextSibling==null||h.previousSibling==null?!1:Df(h.nextSibling)&&Df(h.previousSibling)})(e)&&(s=s.concat(Io())):R(a)&&a.append(...d),s}function U6(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let s=0;s<t.length;s++){const a=t[s];if(Of(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),s===t.length-1||s<t.length-1&&Of(t[s+1])){const l=n();l.setFormat(r),l.append(...i),o.push(l),i=[]}}return o}function xl(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 B6(e,t=Z()){return t==null&&xl(166),$(t)&&t.isCollapsed()||t.getNodes().length===0?"":Vx(e,t)}function W6(e,t=Z()){return t==null&&xl(166),$(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(K6(e,t))}function wg(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 Ag(n,H6(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(l){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:c=>c}).createHTML(l):l})(o),"text/html");return Ag(n,qx(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 l=0;l<a.length;l++){const c=Z();if($(c)){const u=a[l];u===`
|
|
604
604
|
`||u===`\r
|
|
605
|
-
`?c.insertParagraph():u===" "?c.insertNodes([ta()]):c.insertText(u)}}}else t.insertRawText(s)}function Cg(e,t,n){e.dispatchCommand(X3,{nodes:t,selection:n})||(n.insertNodes(t),(function(r){if($(r)&&r.isCollapsed()){const o=r.anchor;let i=null;const s=tr(o,"previous");if(s)if(Nr(s))i=s.origin;else{const a=Dr(s,un(We(),"next").getFlipped());for(const l of a){if(X(l.origin)){i=l.origin;break}if(R(l.origin)&&!l.origin.isInline())break}}if(i&&X(i)){const a=i.getFormat(),l=i.getStyle();r.format===a&&r.style===l||(r.format=a,r.style=l,r.dirty=!0)}}})(n))}function Zx(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=Px(t,s,"clone"));const a=R(s)?s.getChildren():[],l=(function(c){const u=c.exportJSON(),f=c.constructor;if(u.type!==f.getType()&&bl(58,f.name),R(c)){const d=u.children;Array.isArray(d)||bl(59,f.name)}return u})(s);X(s)&&s.getTextContentSize()===0&&(o=!1);for(let c=0;c<a.length;c++){const u=a[c],f=Zx(e,t,u,l.children);!o&&R(n)&&f&&n.extractWithChild(u,t,"clone")&&(o=!0)}if(o&&!i)r.push(l);else if(Array.isArray(l.children))for(let c=0;c<l.children.length;c++){const u=l.children[c];r.push(u)}return o}function K6(e,t){const n=[],r=We().getChildren();for(let o=0;o<r.length;o++)Zx(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}function H6(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=LT(r);X(o)&&v6(o),t.push(o)}return t}let ti=null;async function _g(e,t,n){if(ti!==null)return!1;if(t!==null)return new Promise((c,u)=>{e.update(()=>{c(Eg(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,s=en(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 l=new Range;return l.setStart(a,0),l.setEnd(a,1),s.removeAllRanges(),s.addRange(l),new Promise((c,u)=>{const f=e.registerCommand(Gl,d=>(Sr(d,ClipboardEvent)&&(f(),ti!==null&&(o.clearTimeout(ti),ti=null),c(Eg(e,d,n))),!0),ox);ti=o.setTimeout(()=>{f(),ti=null,c(!1)},50),i.execCommand("copy"),a.remove()})}function Eg(e,t,n){if(n===void 0){const o=en(e._window),i=Z();if(!i||i.isCollapsed()||!o)return!1;const s=o.anchorNode,a=o.focusNode;if(s!==null&&a!==null&&!oa(e,s,a))return!1;n=q6(i)}t.preventDefault();const r=t.clipboardData;return r!==null&&(V6(r,n),!0)}const Jx=[["text/html",B6],["application/x-lexical-editor",W6]];function q6(e=Z()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=Jd();for(const[r,o]of Jx){const i=o(n,e);i!==null&&(t[r]=i)}}return t}function V6(e,t){for(const[n]of Jx)t[n]===void 0&&e.setData(n,"");for(const n in t){const r=t[n];r!==void 0&&e.setData(n,r)}}function Sg(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 Bo=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Y6=Bo&&"documentMode"in document?document.documentMode:null,Q6=Bo&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),G6=!(!Bo||!("InputEvent"in window)||Y6)&&"getTargetRanges"in new window.InputEvent("input"),Z6=Bo&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),kg=Bo&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,J6=Bo&&/^(?=.*Chrome).*/i.test(navigator.userAgent),X6=Bo&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Q6&&!J6,Tg=pe("DRAG_DROP_PASTE_FILE");function Pa(e){let t=null;if(Sr(e,DragEvent)?t=e.dataTransfer:Sr(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 Ng(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,c=>R(c)&&!c.isInline());if(a===null)continue;const l=a.getKey();a.canIndent()&&!n.has(l)&&(n.add(l),e(a))}return n.size>0}function Og(e){const t=Di(e);return Te(t)}function iu(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function eN(e){return fn(e.registerCommand(Md,t=>{const n=Z();return!!ot(n)&&(n.clear(),!0)},Ae),e.registerCommand(yo,t=>{const n=Z();return $(n)?(n.deleteCharacter(t),!0):!!ot(n)&&(n.deleteNodes(),!0)},Ae),e.registerCommand(Is,t=>{const n=Z();return!!$(n)&&(n.deleteWord(t),!0)},Ae),e.registerCommand(Ls,t=>{const n=Z();return!!$(n)&&(n.deleteLine(t),!0)},Ae),e.registerCommand(mi,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)Ag(r,n,e);else if($(n)){const o=t.data;return o&&n.insertText(o),!0}}return!0},Ae),e.registerCommand(bf,()=>{const t=Z();return!!$(t)&&(t.removeText(),!0)},Ae),e.registerCommand(Cn,t=>{const n=Z();return!!$(n)&&(n.formatText(t),!0)},Ae),e.registerCommand(oT,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(hi,t=>{const n=Z();return!!$(n)&&(n.insertLineBreak(t),!0)},Ae),e.registerCommand(Ms,()=>{const t=Z();return!!$(t)&&(t.insertParagraph(),!0)},Ae),e.registerCommand(nT,()=>(Zb([ta()]),!0),Ae),e.registerCommand(rT,()=>Ng(t=>{const n=t.getIndent();t.setIndent(n+1)}),Ae),e.registerCommand(Nm,()=>Ng(t=>{const n=t.getIndent();n>0&&t.setIndent(Math.max(0,n-1))}),Ae),e.registerCommand(_b,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=Mf(n.focus,!0);if(!t.shiftKey&&Te(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),t.preventDefault(),!0}return!1},Ae),e.registerCommand(Eb,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=Mf(n.focus,!1);if(!t.shiftKey&&Te(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),t.preventDefault(),!0}return!1},Ae),e.registerCommand(Cb,t=>{const n=Z();if(ot(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),dg(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!$(n))return!1;if(hg(n,!0)){const r=t.shiftKey;return t.preventDefault(),mg(n,r,!0),!0}return!1},Ae),e.registerCommand(Ab,t=>{const n=Z();if(ot(n)){const o=n.getNodes();if(o.length>0)return t.preventDefault(),dg(o[0])?o[0].selectPrevious():o[0].selectNext(0,0),!0}if(!$(n))return!1;const r=t.shiftKey;return!!hg(n,!1)&&(t.preventDefault(),mg(n,r,!1),!0)},Ae),e.registerCommand(kb,t=>{if(Og(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=C6(i);return s.getIndent()>0&&(s.is(i)||i.is(s.getFirstDescendant()))})(n))return t.preventDefault(),e.dispatchCommand(Nm,void 0);if(kg&&navigator.language==="ko-KR")return!1}else if(!ot(n))return!1;return t.preventDefault(),e.dispatchCommand(yo,!0)},Ae),e.registerCommand(Tb,t=>{if(Og(t.target))return!1;const n=Z();return!(!$(n)&&!ot(n))&&(t.preventDefault(),e.dispatchCommand(yo,!1))},Ae),e.registerCommand(Rs,t=>{const n=Z();if(!$(n))return!1;if(iu(n),t!==null){if((kg||Z6||X6)&&G6)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(hi,!1)}return e.dispatchCommand(Ms,void 0)},Ae),e.registerCommand(Rd,()=>{const t=Z();return!!$(t)&&(e.blur(),!0)},Ae),e.registerCommand(Ob,t=>{const[,n]=Pa(t);if(n.length>0){const o=Sg(t.clientX,t.clientY);if(o!==null){const{offset:i,node:s}=o,a=Di(s);if(a!==null){const l=Yb();if(X(a))l.anchor.set(a.getKey(),i,"text"),l.focus.set(a.getKey(),i,"text");else{const u=a.getParentOrThrow().getKey(),f=a.getIndexWithinParent()+1;l.anchor.set(u,f,"element"),l.focus.set(u,f,"element")}const c=Li(l);Pt(c)}e.dispatchCommand(Tg,n)}return t.preventDefault(),!0}const r=Z();return!!$(r)},Ae),e.registerCommand(Pb,t=>{const[n]=Pa(t),r=Z();return!(n&&!$(r))},Ae),e.registerCommand(Mb,t=>{const[n]=Pa(t),r=Z();if(n&&!$(r))return!1;const o=Sg(t.clientX,t.clientY);if(o!==null){const i=Di(o.node);Te(i)&&t.preventDefault()}return!0},Ae),e.registerCommand(xf,()=>(WT(),!0),Ae),e.registerCommand(Gl,t=>(_g(e,Sr(t,ClipboardEvent)?t:null),!0),Ae),e.registerCommand(Dd,t=>((async function(n,r){await _g(r,Sr(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(Ql,t=>{const[,n,r]=Pa(t);return n.length>0&&!r?(e.dispatchCommand(Tg,n),!0):Zi(t.target)&&Hd(t.target)?!1:Z()!==null&&((function(o,i){o.preventDefault(),i.update(()=>{const s=Z(),a=Sr(o,InputEvent)||Sr(o,KeyboardEvent)?null:o.clipboardData;a!=null&&s!==null&&Ag(a,s,i)},{tag:vT})})(t,e),!0)},Ae),e.registerCommand(Sb,t=>{const n=Z();return $(n)&&iu(n),!1},Ae),e.registerCommand(Nb,t=>{const n=Z();return $(n)&&iu(n),!1},Ae))}function tN(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 lp=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function nN({editor:e,ErrorBoundary:t}){return(function(n,r){const[o,i]=T.useState(()=>n.getDecorators());return lp(()=>n.registerDecoratorListener(s=>{Tn.flushSync(()=>{i(s)})}),[n]),T.useEffect(()=>{i(n.getDecorators())},[n]),T.useMemo(()=>{const s=[],a=Object.keys(o);for(let l=0;l<a.length;l++){const c=a[l],u=x.jsx(r,{onError:d=>n._onError(d),children:x.jsx(T.Suspense,{fallback:null,children:o[c]})}),f=n.getElementByKey(c);f!==null&&s.push(Tn.createPortal(u,f,c))}return s},[r,o,n])})(e,t)}function rN({editor:e,ErrorBoundary:t}){return(function(n){const r=vi.maybeFromEditor(n);if(r&&r.hasExtensionByName(D6.name)){for(const o of["@lexical/plain-text","@lexical/rich-text"])r.hasExtensionByName(o)&&tN(320,o);return!0}return!1})(e)?null:x.jsx(nN,{editor:e,ErrorBoundary:t})}function Pg(e){return e.getEditorState().read(Hx(e.isComposing()))}function oN({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=wt();return(function(o){lp(()=>fn(eN(o),$6(o)),[o])})(r),x.jsxs(x.Fragment,{children:[e,x.jsx(iN,{content:t}),x.jsx(rN,{editor:r,ErrorBoundary:n})]})}function iN({content:e}){const[t]=wt(),n=(function(o){const[i,s]=T.useState(()=>Pg(o));return lp(()=>{function a(){const l=Pg(o);s(l)}return a(),fn(o.registerUpdateListener(()=>{a()}),o.registerEditableListener(()=>{a()}))},[o]),i})(t),r=g6();return n?typeof e=="function"?e(r):e:null}function sN(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,v,b){const A=y._nodeMap,w=[];for(const _ of v){const E=A.get(_);E!==void 0&&w.push(E)}for(const[_,E]of b){if(!E)continue;const S=A.get(_);S===void 0||Ye(S)||w.push(S)}return w})(t,n,r);if(a.length===0)return 0;if(a.length>1){const y=t._nodeMap,v=y.get(i.anchor.key),b=y.get(s.anchor.key);return v&&b&&!e._nodeMap.has(v.__key)&&X(v)&&v.__text.length===1&&i.anchor.offset===1?2:0}const l=a[0],c=e._nodeMap.get(l.__key);if(!X(c)||!X(l)||c.__mode!==l.__mode)return 0;const u=c.__text,f=l.__text;if(u===f)return 0;const d=i.anchor,p=s.anchor;if(d.key!==p.key||d.type!=="text")return 0;const h=d.offset,g=p.offset,m=f.length-u.length;return m===1&&g===h-1?2:m===-1&&g===h+1?3:m===-1&&g===h?4:0}function aN(e,t){let n=Date.now(),r=0;return(o,i,s,a,l,c)=>{const u=Date.now();if(c.has(Tf))return r=0,n=u,2;const f=sN(o,i,a,l,e.isComposing()),d=(()=>{const p=s===null||s.editor===e,h=c.has(yT);if(!h&&p&&c.has(vo))return 0;if(o===null)return 1;const g=i._selection;if(!(a.size>0||l.size>0))return g!==null?0:2;const m=typeof t=="number"?t:t.peek();return h===!1&&f!==0&&f===r&&u<n+m&&p||a.size===1&&(function(y,v,b){const A=v._nodeMap.get(y),w=b._nodeMap.get(y),_=v._selection,E=b._selection;return!($(_)&&$(E)&&_.anchor.type==="element"&&_.focus.type==="element"&&E.anchor.type==="text"&&E.focus.type==="text"||!X(A)||!X(w)||A.__parent!==w.__parent)&&JSON.stringify(v.read(()=>A.exportJSON()))===JSON.stringify(b.read(()=>w.exportJSON()))})(Array.from(a)[0],o,i)?0:1})();return n=u,r=f,d}}function Mg(e){e.undoStack=[],e.redoStack=[],e.current=null}function Xx(e,t,n){const r=aN(e,n);return fn(e.registerCommand(Id,()=>((function(i,s){const a=s.redoStack,l=s.undoStack;if(l.length!==0){const c=s.current,u=l.pop();c!==null&&(a.push(c),i.dispatchCommand(Aa,!0)),l.length===0&&i.dispatchCommand(Ca,!1),s.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:Tf})}})(e,t),!0),Ae),e.registerCommand(Ld,()=>((function(i,s){const a=s.redoStack,l=s.undoStack;if(a.length!==0){const c=s.current;c!==null&&(l.push(c),i.dispatchCommand(Ca,!0));const u=a.pop();a.length===0&&i.dispatchCommand(Aa,!1),s.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:Tf})}})(e,t),!0),Ae),e.registerCommand(sT,()=>(Mg(t),!1),Ae),e.registerCommand(aT,()=>(Mg(t),e.dispatchCommand(Aa,!1),e.dispatchCommand(Ca,!1),!0),Ae),e.registerUpdateListener(({editorState:i,prevEditorState:s,dirtyLeaves:a,dirtyElements:l,tags:c})=>{const u=t.current,f=t.redoStack,d=t.undoStack,p=u===null?null:u.editorState;if(u!==null&&i===p)return;const h=r(s,i,u,a,l,c);if(h===1)f.length!==0&&(t.redoStack=[],e.dispatchCommand(Aa,!1)),u!==null&&(d.push({...u}),e.dispatchCommand(Ca,!0));else if(h===2)return;t.current={editor:e,editorState:i}}))}function e1(){return{current:null,redoStack:[],undoStack:[]}}const su={build:(e,{delay:t,createInitialHistoryState:n,disabled:r})=>Ux({delay:t,disabled:r,historyState:n(e)}),config:{createInitialHistoryState:e1,delay:300,disabled:typeof window>"u"},name:"@lexical/history/History",register:(e,t,n)=>{const r=n.getOutput();return js(()=>r.disabled.value?void 0:Xx(e,r.historyState.value,r.delay))}};u6(su,{createInitialHistoryState:()=>{throw new Error("SharedHistory did not inherit parent history")},disabled:!0});function lN({delay:e,externalHistoryState:t}){const[n]=wt();return(function(r,o,i=1e3){const s=T.useMemo(()=>o||e1(),[o]);T.useEffect(()=>Xx(r,s,i),[i,r,s])})(n,t,e),null}const t1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function cN({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:s,ariaInvalid:a,ariaLabel:l,ariaLabelledBy:c,ariaMultiline:u,ariaOwns:f,ariaRequired:d,autoCapitalize:p,className:h,id:g,role:m="textbox",spellCheck:y=!0,style:v,tabIndex:b,"data-testid":A,...w},_){const[E,S]=T.useState(e.isEditable()),O=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)}})(_,O),[O,_]);return t1(()=>(S(e.isEditable()),e.registerEditableListener(I=>{S(I)})),[e]),x.jsx("div",{"aria-activedescendant":E?t:void 0,"aria-autocomplete":E?n:"none","aria-controls":E?r:void 0,"aria-describedby":o,...i!=null?{"aria-errormessage":i}:{},"aria-expanded":E&&m==="combobox"?!!s:void 0,...a!=null?{"aria-invalid":a}:{},"aria-label":l,"aria-labelledby":c,"aria-multiline":u,"aria-owns":E?f:void 0,"aria-readonly":!E||void 0,"aria-required":d,autoCapitalize:p,className:h,contentEditable:E,"data-testid":A,id:g,ref:P,role:m,spellCheck:y,style:v,tabIndex:b,...w})}const uN=T.forwardRef(cN);function Ig(e){return e.getEditorState().read(Hx(e.isComposing()))}const fN=T.forwardRef(dN);function dN(e,t){const{placeholder:n,...r}=e,[o]=wt();return x.jsxs(x.Fragment,{children:[x.jsx(uN,{editor:o,...r,ref:t}),n!=null&&x.jsx(pN,{editor:o,content:n})]})}function pN({content:e,editor:t}){const n=(function(s){const[a,l]=T.useState(()=>Ig(s));return t1(()=>{function c(){const u=Ig(s);l(u)}return c(),fn(s.registerUpdateListener(()=>{c()}),s.registerEditableListener(()=>{c()}))},[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:x.jsx("div",{"aria-hidden":!0,children:i})}const hN=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function mN({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:n}){const[r]=wt();return hN(()=>{if(n)return r.registerUpdateListener(({editorState:o,dirtyElements:i,dirtyLeaves:s,prevEditorState:a,tags:l})=>{t&&i.size===0&&s.size===0||e&&l.has(vo)||a.isEmpty()||n(o,r,l)})},[r,e,t,n]),null}const gN=T.createContext(null),au={didCatch:!1,error:null};class yN extends T.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=au}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(au))}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&&vN(t.resetKeys,o)&&((s=(i=this.props).onReset)==null||s.call(i,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(au))}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let a=t;if(i){const l={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")a=n(l);else if(r)a=T.createElement(r,l);else if(o!==void 0)a=o;else throw s}return T.createElement(gN.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function vN(e=[],t=[]){return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function bN({children:e,onError:t}){return x.jsx(yN,{fallback:x.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const xN={paragraph:"m-0",list:{ol:"list-decimal pl-4",ul:"list-disc pl-4"},text:{bold:"font-semibold",italic:"italic",underline:"underline",strikethrough:"line-through",code:"font-mono"},link:"text-blue-600 hover:text-blue-600 underline cursor-pointer"};function kr(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 $f(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}kr(40)}return t}return t}function Uf(e){let t=e.getParent();xe(t)||kr(40);let n=t;for(;n!==null;)n=n.getParent(),xe(n)&&(t=n);return t}function n1(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(n1(i)):t.push(o)}return t}function xn(e){return ke(e)&&xe(e.getFirstChild())}function Lg(e){return Zt().append(e)}function r1(e,t){return ke(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function Rg(e){const t=Z();if(t!==null){let n=t.getNodes();if($(t)){const o=t.getStartEndPoints();o===null&&kr(143);const[i]=o,s=i.getNode(),a=s.getParent();if(jt(s)){const l=s.getFirstChild();if(l)n=l.selectStart().getNodes();else{const c=Tt();s.append(c),n=c.select().getNodes()}}else if(r1(s,n)){const l=Bt(e);if(jt(a)){s.replace(l);const c=Zt();R(s)&&(c.setFormat(s.getFormatType()),c.setIndent(s.getIndent())),l.append(c)}else if(ke(s)){const c=s.getParentOrThrow();zo(l,c.getChildren()),c.replace(l)}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())){Dg(i,e);continue}let s=fx(i)?i.getParent():ke(i)&&i.isEmpty()?i:null;for(;s!=null;){const a=s.getKey();if(xe(s)){if(!r.has(a)){const l=Bt(e);zo(l,s.getChildren()),s.replace(l),r.add(a)}break}{const l=s.getParent();if(jt(l)&&!r.has(a)){r.add(a),Dg(s,e);break}s=l}}}}}function zo(e,t){e.splice(e.getChildrenSize(),0,t)}function Dg(e,t){if(xe(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=Zt();let i;if(zo(o,e.getChildren()),xe(n)&&t===n.getListType())n.append(o),xe(r)&&t===r.getListType()&&(zo(n,r.getChildren()),r.remove()),i=n;else if(xe(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const s=Bt(t);s.append(o),e.replace(s),i=s}return o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),e.remove(),i}function cp(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&xn(n)&&xn(r)&&(cp(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function wN(){const e=Z();if($(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(r1(r,n))t.add(Uf(r));else for(let o=0;o<n.length;o++){const i=n[o];if(fx(i)){const s=A6(i,Xi);s!=null&&t.add(Uf(s))}}for(const o of t){let i=o;const s=n1(o);for(const a of s){const l=Tt().setTextStyle(e.style).setTextFormat(e.format);zo(l,a.getChildren()),i.insertAfter(l),i=l,a.__key===e.anchor.key&&jo(e.anchor,Yt(un(l,"next"))),a.__key===e.focus.key&&jo(e.focus,Yt(un(l,"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),xe(r.getFirstChild())||n++)}function AN(e){const t=new Set;if(xn(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(xn(r)&&xn(o)){const i=o.getFirstChild();if(xe(i)){i.append(e);const s=r.getFirstChild();xe(s)&&(zo(i,s.getChildren()),r.remove(),t.add(r.getKey()))}}else if(xn(r)){const i=r.getFirstChild();if(xe(i)){const s=i.getFirstChild();s!==null&&s.insertBefore(e)}}else if(xn(o)){const i=o.getFirstChild();xe(i)&&i.append(e)}else if(xe(n)){const i=Zt().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),s=Bt(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 CN(e){if(xn(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=Zt(),a=Bt(i);s.append(a),e.getPreviousSiblings().forEach(u=>a.append(u));const l=Zt(),c=Bt(i);l.append(c),zo(c,e.getNextSiblings()),n.insertBefore(s),n.insertAfter(l),n.replace(e)}}}function _N(){const e=Z();if(!$(e)||!e.isCollapsed())return!1;const t=e.anchor.getNode();if(!ke(t)||t.getChildrenSize()!==0)return!1;const n=Uf(t),r=t.getParent();xe(r)||kr(40);const o=r.getParent();let i;if(jt(o))i=Tt(),n.insertAfter(i);else{if(!ke(o))return!1;i=Zt(),o.insertAfter(i)}i.setTextStyle(e.style).setTextFormat(e.format).select();const s=t.getNextSiblings();if(s.length>0){const a=Bt(r.getListType());if(ke(i)){const l=Zt();l.append(a),i.insertAfter(l)}else i.insertAfter(a);a.append(...s)}return(function(a){let l=a;for(;l.getNextSibling()==null&&l.getPreviousSibling()==null;){const c=l.getParent();if(c==null||!ke(c)&&!xe(c))break;l=c}l.remove()})(t),!0}function xl(...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 Xi extends Pn{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();xe(r)&&r.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Pn,importDOM:{li:()=>({conversion:EN,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,l,c){const u=l.getParent();!xe(u)||u.getListType()!=="check"||xe(l.getFirstChild())?(a.removeAttribute("role"),a.removeAttribute("tabIndex"),a.removeAttribute("aria-checked")):(a.setAttribute("role","checkbox"),a.setAttribute("tabIndex","-1"),c&&l.__checked===c.__checked||a.setAttribute("aria-checked",l.getChecked()?"true":"false"))})(r,this,n),r.value=this.__value,(function(a,l,c){const u=[],f=[],d=l.list,p=d?d.listitem:void 0;let h;if(d&&d.nested&&(h=d.nested.listitem),p!==void 0&&u.push(...xl(p)),d){const g=c.getParent(),m=xe(g)&&g.getListType()==="check",y=c.getChecked();m&&!y||f.push(d.listitemUnchecked),m&&y||f.push(d.listitemChecked),m&&u.push(y?d.listitemChecked:d.listitemUnchecked)}if(h!==void 0){const g=xl(h);c.getChildren().some(m=>xe(m))?u.push(...g):f.push(...g)}f.length>0&&Fx(a,...f),u.length>0&&ip(a,...u)})(r,o.theme,this);const i=n?n.__style:"",s=this.__style;i!==s&&(s===""?r.removeAttribute("style"):r.style.cssText=s),(function(a,l,c){const u=fg(l.__textStyle);for(const f in u)a.style.setProperty(`--listitem-marker-${f}`,u[f]);if(c)for(const f in fg(c.__textStyle))f in u||a.style.removeProperty(`--listitem-marker-${f}`)})(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=Bt(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)||kr(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)||kr(39),ke(n))return super.insertAfter(n,r);const i=this.getNextSiblings();if(o.insertAfter(n,r),i.length!==0){const s=Bt(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&&xn(r)&&xn(o)&&(cp(r.getFirstChild(),o.getFirstChild()),o.remove())}insertNewAfter(n,r=!0){const o=Zt().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,l=n.focus,c=r.getKey();a.type==="element"&&a.getNode().is(this)&&a.set(c,a.offset,"element"),l.type==="element"&&l.getNode().is(this)&&l.set(c,l.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"&&kr(117),(n=Math.floor(n))>=0||kr(199);let r=this.getIndent();for(;r!==n;)r<n?(AN(this),r++):(CN(this),r--);return this}canInsertAfter(n){return ke(n)}canReplaceWith(n){return ke(n)}canMergeWith(n){return ke(n)||Bd(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 Bt("bullet")}canMergeWhenEmpty(){return!0}}function EN(e){if(e.classList.contains("task-list-item")){for(const n of e.children)if(n.tagName==="INPUT")return Fg(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 Fg(n.children[0])}const t=e.getAttribute("aria-checked");return{node:Zt(t==="true"||t!=="false"&&void 0)}}function Fg(e){return e.getAttribute("type")!=="checkbox"?{node:null}:{node:Zt(e.hasAttribute("checked"))}}function Zt(e){return Wr(new Xi(void 0,e))}function ke(e){return e instanceof Xi}class sa extends Pn{constructor(n="number",r=1,o){super(o);D(this,"__tag");D(this,"__start");D(this,"__listType");const i=kN[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()&&cp(r,o)})(n),o1(n)},extends:Pn,importDOM:{ol:()=>({conversion:zg,priority:0}),ul:()=>({conversion:zg,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,jg(i,n.theme,this),i}updateDOM(n,r,o){return n.__tag!==this.__tag||n.__listType!==this.__listType||(jg(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 pt(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]=Zt().append(!R(a)||xe(a)||a.isInline()?a:rt(a.getTextContent())))}return super.splice(n,r,i)}extractWithChild(n){return ke(n)}}function jg(e,t,n){const r=[],o=[],i=t.list;if(i!==void 0){const s=i[`${n.__tag}Depth`]||[],a=$f(n)-1,l=a%s.length,c=s[l],u=i[n.__tag];let f;const d=i.nested,p=i.checklist;if(d!==void 0&&d.list&&(f=d.list),u!==void 0&&r.push(u),p!==void 0&&n.__listType==="check"&&r.push(p),c!==void 0){r.push(...xl(c));for(let h=0;h<s.length;h++)h!==l&&o.push(n.__tag+h)}if(f!==void 0){const h=xl(f);a>1?r.push(...h):o.push(...h)}}o.length>0&&Fx(e,...o),r.length>0&&ip(e,...r)}function SN(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(Lg(i))})}else t.push(Lg(r))}return t}function zg(e){const t=e.nodeName.toLowerCase();let n=null;return t==="ol"?n=Bt("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(pt(o)&&o.hasAttribute("aria-checked"))return!0;return!1})(e)?Bt("check"):Bt("bullet")),{after:SN,node:n}}const kN={ol:"number",ul:"bullet"};function Bt(e="number",t=1){return Wr(new sa(e,t))}function xe(e){return e instanceof sa}const TN=pe("UPDATE_LIST_START_COMMAND"),i1=pe("INSERT_UNORDERED_LIST_COMMAND"),s1=pe("INSERT_ORDERED_LIST_COMMAND"),Bf=pe("REMOVE_LIST_COMMAND");function NN(e){return fn(e.registerCommand(s1,()=>(Rg("number"),!0),Qn),e.registerCommand(TN,t=>{const{listNodeKey:n,newStart:r}=t,o=Xe(n);return!!xe(o)&&(o.getListType()==="number"&&(o.setStart(r),o1(o)),!0)},Qn),e.registerCommand(i1,()=>(Rg("bullet"),!0),Qn),e.registerCommand(Bf,()=>(wN(),!0),Qn),e.registerCommand(Ms,()=>_N(),Qn),e.registerNodeTransform(Xi,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(Ur,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 ON(e){const t=n=>{const r=n.getParent();if(xe(n.getFirstChild())||!xe(r))return;const o=at(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(l){let c=l,u=c.getFirstChild();for(;xe(u);){const f=u.getLastChild();if(!ke(f))break;c=f,u=c.getFirstChild()}return c})(i),a=s.getParent();if(xe(a)){const l=$f(a);l+1<$f(r)&&n.setIndent(l)}}}};return e.registerNodeTransform(sa,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 PN=new Set(["http:","https:","mailto:","sms:","tel:"]);class Wo extends Pn{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 Wo(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),ip(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:MN,priority:1})}}static importJSON(n){return Ao().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=Bg(n);try{const r=new URL(Bg(n));if(!PN.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=Ao(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 MN(e){let t=null;if(xx(e)){const n=e.textContent;(n!==null&&n!==""||e.children.length>0)&&(t=Ao(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function Ao(e="",t){return Wr(new Wo(e,t))}function ut(e){return e instanceof Wo}class oc extends Wo{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 oc(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 $g().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=$g(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return o.append(i),i}return null}}function $g(e="",t){return Wr(new oc(e,t))}function io(e){return e instanceof oc}const zs=pe("TOGGLE_LINK_COMMAND");function Ug(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 lu(e,t={}){let n;if(e&&typeof e=="object"){const{url:u,...f}=e;n=u,t={...f,...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 u=s.getNodes();return u.length===0?void 0:void u.forEach(f=>{if(n===null){const d=at(f,p=>!io(p)&&ut(p));d&&(d.insertBefore(f),d.getChildren().length===0&&d.remove())}else{const d=at(f,p=>!io(p)&&ut(p));if(d)d.setURL(n),r!==void 0&&d.setTarget(r),i!==void 0&&d.setRel(i);else{const p=Ao(n,{rel:i,target:r});f.insertBefore(p),p.append(f)}}})}const a=s.extract();if(n===null){const u=new Set;return void a.forEach(f=>{const d=f.getParent();if(ut(d)&&!io(d)){const p=d.getKey();if(u.has(p))return;(function(h,g){const m=new Set(g.filter(E=>h.isParentOf(E)).map(E=>E.getKey())),y=h.getChildren(),v=y.filter(E=>m.has(E.getKey()));if(v.length===y.length)return y.forEach(E=>h.insertBefore(E)),void h.remove();const b=y.findIndex(E=>m.has(E.getKey())),A=y.findLastIndex(E=>m.has(E.getKey())),w=b===0,_=A===y.length-1;if(w)v.forEach(E=>h.insertBefore(E));else if(_)for(let E=v.length-1;E>=0;E--)h.insertAfter(v[E]);else{for(let S=v.length-1;S>=0;S--)h.insertAfter(v[S]);const E=y.slice(A+1);if(E.length>0){const S=Ao(h.getURL(),{rel:h.getRel(),target:h.getTarget(),title:h.getTitle()});v[v.length-1].insertAfter(S),E.forEach(O=>S.append(O))}}})(d,a),u.add(p)}})}const l=new Set,c=u=>{l.has(u.getKey())||(l.add(u.getKey()),u.setURL(n),r!==void 0&&u.setTarget(r),i!==void 0&&u.setRel(i),o!==void 0&&u.setTitle(o))};if(a.length===1){const u=a[0],f=at(u,ut);if(f!==null)return c(f)}(function(u){const f=Z();if(!$(f))return u();const d=Li(f),p=d.isBackward(),h=Ug(d.anchor,p?-1:0),g=Ug(d.focus,p?0:-1);if(u(),h||g){const m=Z();if($(m)){const y=m.clone();if(h){const v=h.getParent();v&&y.anchor.set(v.getKey(),h.getIndexWithinParent()+(p?1:0),"element")}if(g){const v=g.getParent();v&&y.focus.set(v.getKey(),g.getIndexWithinParent()+(p?0:1),"element")}Pt(Li(y))}}})(()=>{let u=null;for(const f of a){if(!f.isAttached())continue;const d=at(f,ut);if(d){c(d);continue}if(R(f)){if(!f.isInline())continue;if(ut(f)){if(!(io(f)||u!==null&&u.getParentOrThrow().isParentOf(f))){c(f),u=f;continue}for(const h of f.getChildren())f.insertBefore(h);f.remove();continue}}const p=f.getPreviousSibling();ut(p)&&p.is(u)?p.append(f):(u=Ao(n,{rel:i,target:r,title:o}),f.insertAfter(u),u.append(f))}})}const IN=/^\+?[0-9\s()-]{5,}$/;function Bg(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:IN.test(e)?`tel:${e}`:`https://${e}`}function LN(e,t){return fn(js(()=>e.registerCommand(zs,n=>{const r=t.validateUrl.peek(),o=t.attributes.peek();if(n===null)return lu(null),!0;if(typeof n=="string")return!(r!==void 0&&!r(n))&&(lu(n,o),!0);{const{url:i,target:s,rel:a,title:l}=n;return lu(i,{...o,rel:a,target:s,title:l}),!0}},Qn)),js(()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(Ql,o=>{const i=Z();if(!$(i)||i.isCollapsed()||!Sr(o,ClipboardEvent)||o.clipboardData===null)return!1;const s=o.clipboardData.getData("text");return!!n(s)&&!i.getNodes().some(a=>R(a))&&(e.dispatchCommand(zs,{...r,url:s}),o.preventDefault(),!0)},Qn)}))}function RN({commentType:e,onCommentTypeChange:t,isCommentTypeEditable:n=!0,actions:r,setIsLinkEditMode:o,onAddAttachments:i}){const[s]=wt(),[a,l]=T.useState({bold:!1,italic:!1,underline:!1,strikethrough:!1,code:!1}),[c,u]=T.useState(null),f=T.useRef(null),d=T.useRef(null),p=up[e];T.useLayoutEffect(()=>s.registerUpdateListener(({editorState:v})=>{v.read(()=>{const b=Z();if(!$(b))return;l({bold:b.hasFormat("bold"),italic:b.hasFormat("italic"),underline:b.hasFormat("underline"),strikethrough:b.hasFormat("strikethrough"),code:b.hasFormat("code")});let A=b.anchor.getNode(),w=null;for(;A;){if(xe(A)){const _=A.getListType();w=_==="bullet"||_==="number"?_:null;break}if(ke(A)){A=A.getParent();continue}A=A.getParent()}u(w)})}),[s]);const h=v=>{s.dispatchCommand(Cn,v)},g=()=>{c!=="bullet"?s.dispatchCommand(i1,void 0):s.dispatchCommand(Bf,void 0)},m=()=>{c!=="number"?s.dispatchCommand(s1,void 0):s.dispatchCommand(Bf,void 0)},y=()=>{s.update(()=>{const v=Z();if(!$(v))return;["bold","italic","underline","strikethrough","code"].forEach(A=>{v.hasFormat(A)&&s.dispatchCommand(Cn,A)})})};return x.jsxs("div",{className:Ee("flex items-center w-full",r?"justify-between":"justify-end"),children:[x.jsxs("div",{className:"flex items-center gap-1",children:[x.jsx(uf,{placement:"top-end",minWidth:"fit-content",title:"text formatting menu",trigger:x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",children:x.jsx(ve,{icon:uS})}),children:x.jsxs("ul",{className:"flex items-start flex-col",children:[x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Bold",onClick:()=>h("bold"),className:Ee("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",a.bold?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[x.jsx(ve,{icon:nS,className:"mr-2"}),"Bold"]})}),x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Italic",onClick:()=>h("italic"),className:Ee("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",a.italic?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[x.jsx(ve,{icon:iS,className:"mr-2"}),"Italic"]})}),x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Underline",onClick:()=>h("underline"),className:Ee("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",a.underline?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[x.jsx(ve,{icon:tS,className:"mr-2"}),"Underline"]})}),x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Strikethrough",onClick:()=>h("strikethrough"),className:Ee("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",a.strikethrough?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[x.jsx(ve,{icon:eS,className:"mr-2"}),"Strikethrough"]})}),x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Monospace",onClick:()=>h("code"),className:Ee("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",a.code?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[x.jsx(ve,{icon:aS,className:"mr-2"}),"Monospace"]})}),x.jsx("hr",{className:"w-full border-gray-200"}),x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Clear formatting",onClick:y,className:"cursor-pointer w-full h-full justify-start text-left p-2 text-gray-400 hover:text-gray-400 hover:bg-gray-100",children:[x.jsx(ve,{icon:oS,className:"mr-2"}),"Clear formatting"]})})]})}),x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format bullet list",onClick:g,children:x.jsx(ve,{icon:fS})}),x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format numbered list",onClick:m,children:x.jsx(ve,{icon:sS})}),x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format link",onClick:()=>{o(!0),s.dispatchCommand(zs,"https://")},children:x.jsx(ve,{icon:cS})}),i&&x.jsxs(x.Fragment,{children:[x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Add image",className:"border-l-1 border-gray-200 rounded-none",onClick:()=>{var v;(v=f.current)==null||v.click()},children:x.jsx(ve,{icon:rS})}),x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Add file",onClick:()=>{var v;(v=d.current)==null||v.click()},children:x.jsx(ve,{icon:lS})})]}),n&&x.jsx(uf,{placement:"top-end",title:"comment type menu",trigger:x.jsx(je,{category:"link",size:"smallCollapse",className:`${p.iconColor} border-l-1 border-gray-200 rounded-none`,children:x.jsx(ve,{icon:p.icon})}),children:x.jsx("ul",{className:"flex items-center justify-between gap-2 p-3",children:l1.map(v=>x.jsx("li",{children:x.jsx(je,{category:"link",size:"none",title:v.title,className:Ee(v.color,e===v.type?v.color:"text-gray-400"),onClick:()=>t==null?void 0:t(v.type),children:x.jsx(ve,{icon:v.icon})})},v.type))})})]}),r,x.jsx("input",{type:"file",hidden:!0,id:"image-input",multiple:!0,ref:f,accept:"image/*",onChange:v=>{const b=v.target.files;b&&(i==null||i(b))}}),x.jsx("input",{type:"file",hidden:!0,id:"file-input",multiple:!0,ref:d,accept:"*",onChange:v=>{const b=v.target.files;b&&(i==null||i(b))}})]})}function DN({hasStrictIndent:e=!1}){const[t]=wt();return T.useEffect(()=>{if(!t.hasNodes([sa,Xi]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),T.useEffect(()=>{if(e)return ON(t)},[t,e]),(function(n){T.useEffect(()=>NN(n),[n])})(t),null}function FN({validateUrl:e,attributes:t}){const[n]=wt();return T.useEffect(()=>{if(!n.hasNodes([Wo]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),T.useEffect(()=>LN(n,Ux({attributes:t,validateUrl:e})),[n,e,t]),null}const jN=new Set(["http:","https:","mailto:","sms:","tel:"]);function Wg(e){try{const t=new URL(e);if(!jN.has(t.protocol))return"about:blank"}catch{return e}return e}function Kg(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(),l=i.getBoundingClientRect();let c=e.top-r,u=e.left-o;c<l.top&&(c+=s.height+e.height+r*2),u+s.width>l.right&&(u=l.right-s.width-o),c-=a.top,u-=a.left,t.style.opacity="1",t.style.transform=`translate(${u}px, ${c}px)`}function wl(e){const t=e.anchor,n=e.focus,r=e.anchor.getNode(),o=e.focus.getNode();return r===o?r:e.isBackward()?pg(n)?r:o:pg(t)?r:o}function zN({editor:e,isLink:t,setIsLink:n,anchorElem:r,isLinkEditMode:o,setIsLinkEditMode:i}){const s=T.useRef(null),[a,l]=T.useState(""),[c,u]=T.useState("https://"),[f,d]=T.useState(null),p=T.useCallback(()=>{var w,_;const m=Z();if($(m)){const E=wl(m),S=at(E,ut);S?l(S.getURL()):ut(E)?l(E.getURL()):l(""),o&&u(a)}else if(ot(m)){const E=m.getNodes();if(E.length>0){const S=E[0],O=S.getParent();ut(O)?l(O.getURL()):ut(S)?l(S.getURL()):l(""),o&&u(a)}}const y=s.current,v=en(e._window),b=document.activeElement;if(y===null)return;const A=e.getRootElement();if(m!==null&&A!==null&&e.isEditable()){let E;if(ot(m)){const S=m.getNodes();if(S.length>0){const O=e.getElementByKey(S[0].getKey());O&&(E=O.getBoundingClientRect())}}else v!==null&&A.contains(v.anchorNode)&&(E=(_=(w=v.focusNode)==null?void 0:w.parentElement)==null?void 0:_.getBoundingClientRect());E&&(E.y+=40,Kg(E,y,r)),d(m)}else(!b||b.className!=="link-input")&&(A!==null&&Kg(null,y,r),d(null),i(!1),l(""));return!0},[r,e,i,o,a]);T.useEffect(()=>{const m=r.parentElement,y=()=>{e.getEditorState().read(()=>{p()})};return window.addEventListener("resize",y),m&&m.addEventListener("scroll",y),()=>{window.removeEventListener("resize",y),m&&m.removeEventListener("scroll",y)}},[r.parentElement,e,p]),T.useEffect(()=>fn(e.registerUpdateListener(({editorState:m})=>{m.read(()=>{p()})}),e.registerCommand(Yl,()=>(p(),!0),Qn),e.registerCommand(Rd,()=>t?(n(!1),!0):!1,FT)),[e,p,n,t]),T.useEffect(()=>{e.getEditorState().read(()=>{p()})},[e,p]),T.useEffect(()=>{const m=s.current;if(m===null)return;const y=v=>{!m.contains(v.relatedTarget)&&t&&(n(!1),i(!1))};return m.addEventListener("focusout",y),()=>{m.removeEventListener("focusout",y)}},[n,i,t]);const h=m=>{m.key==="Enter"?g(m):m.key==="Escape"&&(m.preventDefault(),i(!1))},g=m=>{m.preventDefault(),f!==null&&(a!==""&&e.update(()=>{e.dispatchCommand(zs,Wg(c));const y=Z();if($(y)){const v=wl(y).getParent();if(io(v)){const b=Ao(v.getURL(),{rel:v.__rel,target:v.__target,title:v.__title});v.replace(b,!0)}}}),u("https://"),i(!1))};return x.jsx("div",{ref:s,className:"absolute flex top-0 left-0 shadow-lg bg-white z-10 rounded-sm w-full max-w-400",children:t?o?x.jsxs("div",{className:"flex justify-between w-full items-center p-2",children:[x.jsx(wy,{containerClassName:"px-0 mr-2",autoFocus:!0,className:"mt-0",value:c,onChange:m=>{u(m.target.value)},onKeyDown:m=>{h(m)}}),x.jsxs("div",{className:"flex justify-center items-center gap-4",children:[x.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:m=>m.preventDefault(),onClick:()=>{i(!1)},children:x.jsx(ve,{icon:Rl})}),x.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:m=>m.preventDefault(),onClick:g,children:x.jsx(ve,{icon:Oy})})]})]}):x.jsxs("div",{className:"flex justify-between w-full items-center p-2",children:[x.jsx("a",{href:Wg(a),target:"_blank",rel:"noopener noreferrer",children:a}),x.jsxs("div",{className:"flex items-center gap-4",children:[x.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:m=>m.preventDefault(),onClick:()=>{u(a),i(!0)},children:x.jsx(ve,{icon:RC})}),x.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:m=>m.preventDefault(),onClick:()=>e.dispatchCommand(zs,null),children:x.jsx(ve,{icon:qC})})]})]}):null})}function $N(e,t,n,r){const[o,i]=T.useState(e),[s,a]=T.useState(!1);return T.useEffect(()=>{function l(){const c=Z();if($(c)){const u=wl(c),f=at(u,ut),d=at(u,io);if(!(f||d)){a(!1);return}const p=c.getNodes().filter(h=>!bo(h)).find(h=>{const g=at(h,ut),m=at(h,io);return f&&!f.is(g)||g&&!g.is(f)||d&&!d.is(m)||m&&(!m.is(d)||m.getIsUnlinked())});a(!p)}else if(ot(c)){const u=c.getNodes();if(u.length===0){a(!1);return}const f=u[0],d=f.getParent();ut(d)||ut(f)?a(!0):a(!1)}}return fn(e.registerUpdateListener(({editorState:c})=>{c.read(()=>{l()})}),e.registerCommand(Yl,(c,u)=>(l(),i(u),!1),ox),e.registerCommand(Md,c=>{const u=Z();if($(u)){const f=wl(u),d=at(f,ut);if(ut(d)&&(c.metaKey||c.ctrlKey))return window.open(d.getURL(),"_blank"),!0}return!1},Qn))},[e]),Tn.createPortal(x.jsx(zN,{editor:o,isLink:s,anchorElem:t,setIsLink:a,isLinkEditMode:n,setIsLinkEditMode:r}),t)}function UN({anchorElem:e=document.body,isLinkEditMode:t,setIsLinkEditMode:n}){const[r]=wt();return $N(r,e,t,n)}const BN=({url:e,onDelete:t})=>x.jsxs("div",{className:"relative",children:[x.jsx("img",{src:e,alt:"Thumbnail",width:75,height:75,className:"w-[75px] h-[75px] object-cover rounded-lg border border-gray-200"}),x.jsx(je,{size:"smallCollapse",title:"Delete attachment",onClick:t,className:"absolute top-1 left-1 w-[20px] h-[20px] rounded-full",color:"secondary",children:x.jsx(ve,{icon:Ny})})]}),WN=({onRemoveFile:e,type:t,label:n})=>{const r=t.toLowerCase(),o=_v(r);return x.jsxs("div",{className:"relative flex items-center justify-center rounded border border-gray-200",children:[x.jsx(je,{size:"smallCollapse",color:"secondary",className:"absolute top-1 left-1 w-[20px] h-[20px] rounded-full",title:"Remove file",onClick:e,children:x.jsx(ve,{icon:Ny})}),x.jsxs("div",{className:"flex items-center justify-center mx-2",children:[x.jsx("span",{className:"text-primary-600 my-2",children:x.jsx(ve,{icon:o,size:"3x",className:"text-primary-600"})}),x.jsx("span",{className:"font-bold p-2",children:n})]})]})},KN=({clearKey:e})=>{const[t]=wt(),n=T.useRef(e);return T.useEffect(()=>{n.current!==e&&(t.update(()=>{We().clear()}),n.current=e)},[e,t]),null},HN=({isOpen:e})=>{const[t]=wt();return T.useEffect(()=>{e&&requestAnimationFrame(()=>{t.focus()})},[t,e]),null},qN=({initialValue:e})=>{const[t]=wt(),n=T.useCallback((o,i)=>{const a=new DOMParser().parseFromString(i,"text/html");return qx(o,a)},[]),r=T.useRef(!1);return T.useEffect(()=>{!r.current&&e&&(t.update(()=>{We().clear(),Zb(n(t,e))}),r.current=!0)},[t,e,n]),null},VN=({onChange:e})=>{const[t]=wt();return x.jsx(mN,{onChange:n=>{n.read(()=>{const r=Vx(t,null);e(r)})}})},YN=({onAddAttachments:e})=>{const[t]=wt();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 l=0;l<s.length;l++){const c=s[l];if(c.kind==="file"&&c.type.startsWith("image/")){a=!0;break}}if(a){for(let l=0;l<s.length;l++){const c=s[l];if(c.kind==="file"&&c.type.startsWith("image/")){const u=c.getAsFile();if(u){const f=Date.now(),d=u.type.split("/")[1]||"png",p=`image_${f}.${d}`,h=new File([u],p,{type:u.type});e==null||e([h])}}}o.preventDefault(),o.stopPropagation()}};return n.addEventListener("paste",r,!0),()=>{n.removeEventListener("paste",r,!0)}},[t,e]),null},QN=({onSubmit:e})=>{const[t]=wt();return T.useEffect(()=>{if(e)return t.registerCommand(Rs,n=>n&&!n.shiftKey?(n.preventDefault(),e(),!0):!1,1)},[t,e]),null};function a1({attachments:e,clearKey:t=0,inputFieldClassName:n="",containerClassName:r="",initialValue:o,onChange:i,commentType:s,onCommentTypeChange:a,isCommentTypeEditable:l=!0,actions:c,onAddAttachments:u,onRemoveAttachment:f,onSubmit:d,isOpen:p}){const h={namespace:"comment-editor",theme:xN,nodes:[sa,Xi,Wo],onError:w=>{console.error(w)}},[g,m]=T.useState(null),[y,v]=T.useState(!1),b=w=>{w!==null&&m(w)},A=up[s];return x.jsx("div",{className:r,children:x.jsxs(p6,{initialConfig:h,children:[x.jsxs("div",{className:"relative",children:[x.jsx(oN,{contentEditable:x.jsx("div",{ref:b,children:x.jsx(fN,{className:Ee("p-3 outline-none border-0 w-full border-t border-gray-200 rounded-none border-l-3",A.bg,A.border,A.fontColor,n)})}),placeholder:x.jsx("div",{className:"absolute top-3 left-4 text-gray-400 pointer-events-none",children:"Type comment…"}),ErrorBoundary:bN}),x.jsx(DN,{}),x.jsx(FN,{}),g&&x.jsx(UN,{anchorElem:g,isLinkEditMode:y,setIsLinkEditMode:v}),x.jsx(lN,{}),x.jsx(qN,{initialValue:o}),x.jsx(VN,{onChange:i}),x.jsx(QN,{onSubmit:d}),x.jsx(KN,{clearKey:t}),x.jsx(YN,{onAddAttachments:u}),x.jsx(HN,{isOpen:p})]}),e&&e.length>0&&x.jsx("div",{className:"flex flex-wrap justify-start gap-2 p-4",children:e.map(w=>md(w.type)?x.jsx(BN,{url:w.url,onDelete:()=>f==null?void 0:f(w.originFile)},w.originFile.name):x.jsx(WN,{type:w.type,label:w.name,onRemoveFile:()=>f==null?void 0:f(w.originFile)},w.originFile.name))}),x.jsx("div",{className:"border-t border-gray-200 p-2 flex justify-end",children:x.jsx(RN,{commentType:s,onCommentTypeChange:a,isCommentTypeEditable:l,actions:c,setIsLinkEditMode:v,onAddAttachments:u})})]})})}const GN=({asset:e,onSetActiveSrc:t})=>x.jsxs("div",{className:"relative border border-gray-200 rounded-md h-[110px] w-full hover:border-primary-500",children:[x.jsx("img",{src:za(e),onClick:()=>t(za(e)),onKeyDown:n=>{n.key==="Enter"&&t(za(e))},alt:e.name,className:"w-full h-full object-cover rounded-md object-center cursor-zoom-in"}),(e==null?void 0:e.uploading)&&x.jsx("div",{className:"absolute bottom-2 w-full max-w-md mx-auto px-2",children:x.jsx("div",{className:"relative h-2 overflow-hidden rounded-full bg-gray-200",children:x.jsx("div",{className:"absolute left-0 top-0 h-full w-1/3 rounded-full bg-blue-500 animate-progress"})})})]}),ZN=({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=_v(t);return x.jsxs("div",{className:"flex gap-2",children:[(e==null?void 0:e.uploading)&&x.jsx("div",{className:"flex items-center justify-center",children:x.jsx("div",{className:"h-4 w-4 rounded-full border-2 border-gray-300 border-t-blue-500 animate-spin"})}),x.jsx(ve,{icon:n,size:"lg",className:"text-primary-600"}),x.jsx("a",{href:za(e),className:"text-sm text-blue-600 underline",download:!0,target:"_blank",rel:"noopener noreferrer",children:e.name})]})},JN=({commentType:e=dt.INFO,author:t,username:n,comment:r,createdDate:o,onDelete:i,onEdit:s,hasAssets:a,taskAssets:l,taskVerified:c})=>{const f={[dt.INFO]:{bg:"bg-primary-100",border:"border-primary-200",icon:Ty,iconColor:"text-primary-600 hover:text-primary-600",text:"text-primary-900"},[dt.WARNING]:{bg:"bg-warning-100",border:"border-warning-200",icon:_y,iconColor:"text-warning-600 hover:text-warning-600",text:"text-warning-900"},[dt.DANGER]:{bg:"bg-danger-100",border:"border-danger-200",icon:Py,iconColor:"text-danger-600 hover:text-danger-600",text:"text-danger-900"},[dt.SUCCESS]:{bg:"bg-success-100",border:"border-success-200",icon:Sy,iconColor:"text-success-600 hover:text-success-600",text:"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(",",""),[p,h]=T.useState(!1),[g,m]=T.useState(jc(r)),[y,v]=T.useState(e),[b,A]=T.useState(""),w=()=>{h(!0)},_=()=>{const O=nf.sanitize(g);s(O,y),h(!1)},E=O=>{const P=nf.sanitize(g);v(O),s(P,O),h(!1)},S=()=>{h(!1)};return x.jsxs("div",{className:"flex items-start space-x-4 w-full",children:[x.jsx(C3,{alt:t}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsxs("div",{className:`border ${f.border} rounded-sm ${f.bg} shadow-sm flex flex-col items-start justify-between w-full`,children:[x.jsx("div",{className:"p-3 flex flex-col items-start justify-between w-full",children:x.jsxs("div",{className:"w-full",children:[x.jsxs("div",{className:"flex items-center mb-2 justify-between",children:[x.jsxs("div",{children:[x.jsx(ve,{icon:f.icon,size:"lg",className:`mr-2 ${f.iconColor}`}),x.jsx("span",{className:`font-semibold text-sm ${f.text}`,children:t})]}),x.jsx(E3,{commentType:e,taskVerified:c,isUsernameAuthor:n.trim()===t.trim(),onEdit:w,onSaveCommentType:E,onDelete:i})]}),p?x.jsx(a1,{inputFieldClassName:"bg-white border-0 rounded-sm",containerClassName:"bg-white border-0 rounded-sm",onChange:m,commentType:e,isCommentTypeEditable:!1,initialValue:jc(r),actions:x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(je,{category:"outline",size:"smallCollapse",color:"secondary",onClick:S,title:"Cancel edit",children:"Cancel"}),x.jsx(je,{category:"solid",size:"smallCollapse",color:"primary",onClick:_,title:"Save edit",disabled:$a(g),children:"Save"})]})}):x.jsx("div",{className:`text-sm ${f.text}`,dangerouslySetInnerHTML:{__html:jc(r)}})]})}),a&&l&&(l==null?void 0:l.length)>0&&x.jsx("div",{className:`${f.border} border-t w-full p-2 flex gap-2 flex-wrap`,children:l.map(O=>x.jsx(T.Fragment,{children:md(O.mimeType)?x.jsx(GN,{asset:O,onSetActiveSrc:A}):x.jsx(ZN,{asset:O})},O.assetId))})]}),x.jsxs("div",{className:"flex gap-2 my-1",children:[o&&x.jsx("time",{dateTime:o,className:"text-xs text-gray-500 opacity-60",children:d}),c&&x.jsxs("span",{className:"text-xs text-success-600 font-semibold flex items-center gap-1",children:[x.jsx(ve,{icon:ky}),"Comment Required"]})]})]}),x.jsx(o3,{plugins:[w3],open:!!b,zoom:{maxZoomPixelRatio:2},close:()=>A(""),styles:{root:{zIndex:9999999999}},carousel:{finite:!0,preload:0},controller:{closeOnBackdropClick:!0},slides:[{src:b}]})]})},up={[dt.INFO]:{icon:QC,bg:"bg-primary-100",border:"border-l-primary-500",iconColor:"text-primary-600 hover:text-primary-700",fontColor:"text-primary-900"},[dt.WARNING]:{icon:DC,bg:"bg-warning-100",border:"border-l-warning-500",iconColor:"text-warning-600 hover:text-warning-700",fontColor:"text-warning-900"},[dt.DANGER]:{icon:JC,bg:"bg-danger-100",border:"border-l-danger-500",iconColor:"text-danger-600 hover:text-danger-700",fontColor:"text-danger-900"},[dt.SUCCESS]:{icon:ky,bg:"bg-success-100",border:"border-l-success-500",iconColor:"text-success-600 hover:text-success-700",fontColor:"text-success-900"}},l1=Object.entries(up).map(([e,t])=>({type:e,icon:t.icon,color:t.iconColor,title:`Change comment type to ${e}`})),XN=({comments:e,onClose:t,isOpen:n,taskName:r,taskInstanceId:o,isLoading:i,playbookInstanceId:s,taskVerification:a})=>{const[l,c]=T.useState(""),[u,f]=T.useState(dt.INFO),[d,p]=T.useState(0),[h,g]=T.useState([]),m=T.useRef(null),{username:y}=c1(),{manageComment:v}=qS({playbookInstanceId:s}),b=()=>{const P=h.length,W=h.some(z=>!md(z.mimeType))?"Attachment":"Image",j=P>1?"s":"";return`<p class="m-0"><span style="white-space: pre-wrap;">${W}${j} added.</span></p>`},A=P=>{const I=Array.from(P).map((W,j)=>FS(W,h.length+j+1));g(W=>[...W,...I])},w=P=>{g(I=>I.filter(W=>W.originFile!==P))},_=P=>{f(P)},E=async()=>{if(!h.length&&$a(l)||!o)return;h.length>0&&g([]);const P=nf.sanitize(l);c(""),p(I=>I+1),await v({action:"add",comment:h.length>0&&$a(l)?b():P,username:y||"",commentType:u,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,hasAssets:h.length>0,taskInstanceId:o,taskVerified:a,attachments:h}),f(dt.INFO)},S=async P=>{o&&await v({username:y||"",action:"delete",taskVerified:!1,taskInstanceId:o,commentId:P})},O=async({commentId:P,comment:I,commentType:W,hasAssets:j,isAlreadyVerified:z})=>{o&&await v({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(()=>{m.current&&n&&!i&&e.length>0&&(m.current.scrollTop=m.current.scrollHeight)},[n,i,e.length]),x.jsxs("div",{className:Ee("transition-all duration-300 fixed bg-white right-0 bottom-0 h-[100vh] z-[9999999998] flex flex-col min-w-[270px] max-w-[420px] w-[calc(100vw-1rem)] border border-gray-200 rounded-t-sm overflow-hidden",n?"translate-y-0 opacity-100":"translate-y-full opacity-0 pointer-events-none"),children:[x.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-gray-200 px-2 py-4 w-full",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("h6",{className:"font-semibold text-gray-900 truncate max-w-[300px]",children:r}),x.jsx(ve,{icon:rd,className:"size-4 text-gray-300"})]}),x.jsx(je,{color:"grayLight",size:"smallCollapse",rounded:"none",title:"Close comment box",onClick:t,children:x.jsx(ve,{icon:Rl,className:"size-4 text-gray-300"})})]}),x.jsxs("div",{ref:m,className:"flex flex-col flex-1 overflow-y-auto",children:[x.jsxs("div",{className:"flex flex-col justify-end flex-1 gap-4 p-4 pb-[102px]",children:[i&&x.jsx("div",{className:"flex flex-col gap-3",children:[1,2,3].map(P=>x.jsx("div",{className:"h-16 animate-pulse rounded-lg bg-gray-100"},P))}),(e==null?void 0:e.length)>0&&!i&&e.map(P=>x.jsx(JN,{username:y||"",onDelete:()=>S(P.commentId),onEdit:(I,W)=>O({commentId:P.commentId,comment:I,commentType:W,hasAssets:P.hasAssets,isAlreadyVerified:P.taskVerified}),...P},P.commentId)),(e==null?void 0:e.length)===0&&!i&&x.jsxs("div",{className:"flex flex-1 flex-col items-center justify-end gap-3 text-center mb-1",children:[x.jsx("img",{src:RS,className:"opacity-70",alt:"Empty"}),x.jsx("p",{className:"text-gray-400",children:"There is no discussion in this Task."})]})]}),x.jsx(a1,{attachments:h,onChange:c,containerClassName:"fixed bottom-0 left-0 right-0 bg-white",clearKey:d,commentType:u,onCommentTypeChange:_,onAddAttachments:A,onRemoveAttachment:w,onSubmit:E,isOpen:n,actions:x.jsx(je,{category:"link",size:"normalCollapse",title:"Send comment",onClick:E,disabled:$a(l)&&h.length===0,children:x.jsx(ve,{icon:dS})})})]})]})},Wf=T.createContext({comments:[],openTaskDetails:null,username:void 0,setOpenTaskDetails:()=>{},prefetchQuery:e=>{}}),c1=()=>{if(!T.useContext(Wf))throw new Error("useCommentContext must be used within a CommentProvider");return T.useContext(Wf)},e5=({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:l,isLoading:c,prefetchQuery:u}=BS({taskInstanceId:i||0,enabled:i!==null,username:n});return x.jsxs(Wf.Provider,{value:{comments:l,openTaskDetails:r,setOpenTaskDetails:o,prefetchQuery:u,username:n},children:[t,Tn.createPortal(x.jsxs("div",{id:"cnfdnc-comment-box-root",children:[x.jsx("style",{children:Hs}),x.jsx("div",{className:"confidence-playbook",children:x.jsx(XN,{playbookInstanceId:e,comments:l,onClose:()=>o(null),isOpen:!!i,taskName:s,taskInstanceId:i,isLoading:c,taskVerification:a})})]}),pS)]})},t5={[Be.OPEN]:"border-[#C1C5C8] bg-[#F0F1F2]",[Be.IN_PROGRESS]:"bg-[#E6F2FF] border-[#94C8FF]",[Be.IN_REVIEW]:"bg-[#EAF6EC] border-[#A5DAB1]",[Be.COMPLETED]:"bg-[#EAF6EC] border-[#A5DAB1]"},Un={PHOTO:"photo",SCREENSHOT:"screenshot",COMMENT:"comment",NO_VERIFICATION:null},n5=({task:e,step:t,playbookType:n,onButtonClick:r,viewMode:o="card",canStart:i=!1,isExpanded:s=!1,toggleExpanded:a,playbookId:l,taskStyle:c,listStickyTopBase:u})=>{const[f,d]=T.useState(!1),{taskDetails:p,prefetchQuery:h}=m4({taskId:e.taskId,playbookId:l,enabled:s}),{setOpenTaskDetails:g,prefetchQuery:m}=c1(),{buttons:y}=Mw({taskStatus:e.workflowStatus,canStart:i}),v=T.useMemo(()=>e.imageRequired===0?Un.NO_VERIFICATION:e.imageRequired===1?Un.SCREENSHOT:e.imageRequired===2?Un.PHOTO:e.imageRequired===4?Un.COMMENT:null,[e.imageRequired]),b=async A=>{try{d(!0),await r(A)}finally{d(!1)}};if(o==="list"){const A=T.useMemo(()=>e.workflowStatus===Be.COMPLETED?"success":e.workflowStatus===Be.IN_PROGRESS?"primary":"default",[e.workflowStatus]),w=T.useMemo(()=>{const _=[];return y.forEach(E=>{E==="START"&&_.push({id:"START",color:"primary",action:"Start",to:Be.IN_PROGRESS}),E==="COMPLETE"&&(!e.taskVerified&&v===Un.COMMENT&&_.push({id:"ADD_COMMENT",color:"danger",action:"Add Comment",to:"Required"}),_.push({id:"COMPLETE",color:"success",action:"Complete",to:Be.COMPLETED,disabled:!e.taskVerified&&v===Un.COMMENT}))}),_},[y,v,e.taskVerified]);return x.jsxs("div",{className:Ee("flex flex-col"),children:[x.jsxs("div",{className:Ee("flex items-center gap-3 p-2 border-gray-200",e.sequenceOrder>0&&"border-t",s&&"bg-white rounded-md border border-t-none shadow-sm sticky"),style:{top:s?u:0},children:[x.jsx("div",{className:"text-gray-200 text-base",children:e.sequenceOrder+1}),x.jsx("div",{onClick:()=>{a==null||a(!s)},onMouseOver:h,className:Ee("flex-1 truncate cursor-pointer",s&&"font-medium",e.workflowStatus===Be.COMPLETED&&"text-secondary-400 line-through"),style:{color:e.workflowStatus===Be.IN_PROGRESS&&(c==null?void 0:c.titleColor)||"#1C232D"},children:e.taskInstanceName}),x.jsx(q4,{taskVerified:e.taskVerified,verificationType:v,title:e.workflowStatus,variant:A,transitions:w,onClick:_=>{if(_===ci.ADD_COMMENT){g({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!0});return}r(_)}}),x.jsx(Hh,{onMouseOver:()=>m(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})})]}),(p==null?void 0:p.description)&&x.jsx("div",{className:Ee(!s&&"hidden","border-gray-200 border p-2 mx-4 mb-4 border-t-none -mt-[1px] bg-gray-100 rounded-b-md"),children:x.jsx(Kh,{description:(p==null?void 0:p.description)||""})})]})}return x.jsxs("div",{className:_s("flex items-stretch rounded-sm overflow-hidden border",t5[e.workflowStatus]),children:[x.jsx(G4,{playbookType:n,status:e.workflowStatus,step:t}),x.jsxs("div",{className:"flex w-full flex-col overflow-x-hidden flex-1 p-2",children:[n==="Sequential"&&x.jsx("div",{className:"-mb-3 self-end pr-2 pt-2",children:x.jsx(J4,{status:e.workflowStatus})}),x.jsxs("div",{className:"space-y-2 divide-y divide-black/10 flex flex-col flex-1",children:[x.jsx("div",{className:Ee("text-lg font-medium flex-1 pb-1"),style:{color:e.workflowStatus==="Completed"?"#1C232D":(c==null?void 0:c.titleColor)||"#1C232D"},children:e.taskInstanceName}),v?x.jsxs("div",{className:"flex items-center gap-2 text-sm pb-2",children:[x.jsx(ve,{icon:Ey,className:"size-4"}),x.jsxs("div",{children:[x.jsx("span",{className:"font-medium",children:v===Un.PHOTO?"Photo":v===Un.SCREENSHOT?"Screenshot":"Comment"})," ","required"]})]}):x.jsx(x.Fragment,{})]}),(p==null?void 0:p.description)&&x.jsx("div",{className:Ee(!s&&"hidden"),children:x.jsx(Kh,{description:(p==null?void 0:p.description)||""})}),(y.length>0||e.hasDescription)&&x.jsxs("div",{className:"flex items-center justify-end gap-4 border-t border-black/10 pt-2",children:[x.jsx("div",{className:"flex-1",children:x.jsx(g4,{buttons:y,onButtonClick:b,disabled:f})}),x.jsx(Hh,{onMouseOver:()=>m(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&&x.jsx(je,{size:"smallCollapse",onMouseOver:h,category:"link",onClick:()=>{a()},title:s?"Hide task description":"Show task description",children:x.jsx(ve,{icon:rd,className:_s("cursor-pointer text-[#0069D9]",s?"rotate-180":"")})})]})]})]})},u1=T.forwardRef(({title:e,className:t,playbookStyle:n,...r},o)=>{var i,s,a;return x.jsx("div",{ref:o,className:Ee("border-b border-gray-200 flex items-center",t),style:{backgroundColor:((i=n==null?void 0:n.whiteLabel)==null?void 0:i.titleBackgroundColor)||"#f8f9fa"},...r,children:x.jsx("div",{className:Ee("text-xl min-h-16 p-4 font-medium flex-1",{"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})})});u1.displayName="PlaybookHeader";const r5=({playbookInstanceId:e,playbookMode:t,playbookStyle:n})=>{const{playbook:r,actions:o}=Ow(e);if(!r)return x.jsx("div",{});const i=async(s,a)=>{var l;if(s===ci.COMPLETE){const c=(l=r.tasks.find(u=>u.taskInstanceId===a))==null?void 0:l.sequenceOrder;if(c===void 0){console.error("Task not found in playbook");return}return o.completeTask(a,c)}if(s===ci.START)return o.startTask(a)};return x.jsx("div",{className:"confidence-playbook",children:x.jsx(f1,{playbook:r,playbookMode:t,onTaskButtonClick:i,playbookStyle:n})})},o5=({className:e,children:t,numberOfTasks:n,playbookMode:r})=>x.jsxs("div",{className:Ee("w-full p-4",e),children:[n&&x.jsxs("div",{className:Ee(r==="card"&&"mb-4"),children:[x.jsx("span",{className:"font-medium",children:"Tasks"})," (",n,")"]}),x.jsx("div",{className:Ee(r==="card"&&"space-y-4"),children:t})]}),f1=({playbook:e,playbookMode:t,onTaskButtonClick:n,playbookStyle:r})=>{var m,y,v,b,A;const{playbookInstanceName:o,tasks:i}=e,s=T.useRef(null),[a,l]=T.useState(0),[c,u]=T.useState(!0),f=()=>{u(!c)},{isTaskExpanded:d,toggleTaskExpanded:p,isAtLeastOneTaskExpanded:h}=E0(e.playbookInstanceId,{onTaskExpanded:()=>{var w;l(((w=s.current)==null?void 0:w.offsetHeight)||0)}});T.useEffect(()=>{if(h){if(!s.current)throw new Error("Playbook header ref is not set");new ResizeObserver(_=>{var E;for(const S of _)S.contentRect&&l(((E=s.current)==null?void 0:E.offsetHeight)||0)}).observe(s.current)}return()=>{s.current&&new ResizeObserver(()=>{}).unobserve(s.current)}},[h]);const g=T.useMemo(()=>{const w=i.filter(_=>_.workflowStatus===Be.COMPLETED).sort((_,E)=>E.sequenceOrder-_.sequenceOrder)[0];return w?w.sequenceOrder+1:0},[i]);return x.jsxs("div",{className:Ee(!(r!=null&&r.overlay)&&"min-h-screen",(r==null?void 0:r.overlay)&&"fixed bottom-0 z-[9999999997] flex","transition-all duration-300 ease-in-out "),...(r==null?void 0:r.overlay)&&{style:{width:"100%",maxWidth:c?((m=r.overlay.size)==null?void 0:m.width)||450:"2.25rem",height:((y=r.overlay.size)==null?void 0:y.height)||"calc(100vh - 4rem)",maxHeight:"calc(100vh - 4rem)",right:((v=r.overlay.offset)==null?void 0:v.right)!==void 0?r.overlay.offset.right:r.overlay.position==="right"?32:void 0,left:((b=r.overlay.offset)==null?void 0:b.left)!==void 0?r.overlay.offset.left:r.overlay.position==="left"?32:void 0}},children:[(r==null?void 0:r.overlay)&&x.jsx("div",{onClick:f,className:Ee("size-9 relative p-1 top-3 z-[9999999997] border-none rounded-l-sm cursor-pointer"),style:{backgroundColor:((A=r==null?void 0:r.whiteLabel)==null?void 0:A.primaryColor)||"#007BFF",boxShadow:"0px 3px 3px 0px #00000040"},children:x.jsx("img",{src:u0,alt:"Confidence Logo",className:"w-full h-full object-contain"})}),x.jsxs("div",{className:Ee("flex flex-col flex-1 bg-gray-50",(r==null?void 0:r.overlay)&&"border border-gray-200 shadow-2xl rounded-t-sm overflow-y-auto"),children:[x.jsx(u1,{title:o,className:Ee("top-0 sticky z-2"),playbookStyle:r,ref:s}),x.jsx(o5,{playbookMode:t,numberOfTasks:e.numberofTasks,children:i.map((w,_)=>{var E;return x.jsx(n5,{task:w,step:_+1,viewMode:t,playbookId:e.playbookId,canStart:w.sequenceOrder===g,onButtonClick:S=>n(S,w.taskInstanceId),playbookType:"Non-Sequential",taskStyle:{titleColor:(E=r==null?void 0:r.whiteLabel)==null?void 0:E.primaryColor},isExpanded:d(w.taskInstanceId),toggleExpanded:()=>p(w.taskInstanceId),listStickyTopBase:a||104},w.taskId)})})]})]})},i5=({email:e,playbookId:t,playbookMode:n,playbookStyle:r,bank:o="public-sdk",timezone:i="America/Los_Angeles"})=>{const[s,a]=T.useState(null);return T.useEffect(()=>{(async()=>{const{playbookInstanceId:l,errorCode:c,details:u,message:f}=await S0({bank:o,email:e,timezone:i,playbookUid:t})||{};if(c)throw new Error(`Error initiating playbook: ${f} (Code: ${c}) - Details: ${u}`);a(l)})()},[]),s?x.jsx(Kr,{playbookInstanceId:s,playbookMode:n,playbookStyle:r,username:e}):x.jsx("div",{children:"Loading..."})},s5=({playbookId:e,playbookMode:t="list",playbookStyle:n,btnLabel:r="Start Playbook",btnColor:o="primary"})=>{const[i,s]=T.useState(null),[a,l]=T.useState(void 0);return x.jsxs(x.Fragment,{children:[x.jsxs(Al.div,{children:[x.jsx(NC,{playbookId:e,disabled:!!i,onInitiated:(c,u)=>{s(c),l(u)},btnLabel:r,btnColor:o}),x.jsx("style",{type:"text/css",children:Hs})]}),i&&x.jsx(Kr,{playbookInstanceId:i,playbookMode:t,playbookStyle:n,username:a})]})},Kr=({playbookInstanceId:e,playbookMode:t,playbookStyle:n,username:r})=>(console.log("Starting ConfidencePlaybook with instance ID:",e,r),x.jsx(C0,{children:x.jsx(e5,{playbookInstanceId:e,username:r,children:x.jsx(r5,{playbookInstanceId:e,playbookMode:t,playbookStyle:n})})}));Kr.Context=C0;Kr.View=f1;Kr.AutoInstantiated=i5;Kr.WithInstantiateButton=s5;const d1=e=>Tn.createPortal(x.jsxs(Al.div,{style:{position:"relative",zIndex:2147483646},children:[x.jsx("style",{children:Hs}),x.jsx(Kr,{...e})]}),document.body),a5=e=>Tn.createPortal(x.jsxs(Al.div,{style:{position:"relative",zIndex:2147483646},children:[x.jsx("style",{children:Hs}),x.jsx(Kr.AutoInstantiated,{...e})]}),document.body);d1.AutoInstantiated=a5;exports.ConfidencePlaybook=d1;
|
|
605
|
+
`?c.insertParagraph():u===" "?c.insertNodes([na()]):c.insertText(u)}}}else t.insertRawText(s)}function Ag(e,t,n){e.dispatchCommand(X3,{nodes:t,selection:n})||(n.insertNodes(t),(function(r){if($(r)&&r.isCollapsed()){const o=r.anchor;let i=null;const s=tr(o,"previous");if(s)if(Nr(s))i=s.origin;else{const a=Dr(s,un(We(),"next").getFlipped());for(const l of a){if(X(l.origin)){i=l.origin;break}if(R(l.origin)&&!l.origin.isInline())break}}if(i&&X(i)){const a=i.getFormat(),l=i.getStyle();r.format===a&&r.style===l||(r.format=a,r.style=l,r.dirty=!0)}}})(n))}function Zx(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=Px(t,s,"clone"));const a=R(s)?s.getChildren():[],l=(function(c){const u=c.exportJSON(),f=c.constructor;if(u.type!==f.getType()&&xl(58,f.name),R(c)){const d=u.children;Array.isArray(d)||xl(59,f.name)}return u})(s);X(s)&&s.getTextContentSize()===0&&(o=!1);for(let c=0;c<a.length;c++){const u=a[c],f=Zx(e,t,u,l.children);!o&&R(n)&&f&&n.extractWithChild(u,t,"clone")&&(o=!0)}if(o&&!i)r.push(l);else if(Array.isArray(l.children))for(let c=0;c<l.children.length;c++){const u=l.children[c];r.push(u)}return o}function K6(e,t){const n=[],r=We().getChildren();for(let o=0;o<r.length;o++)Zx(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}function H6(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=LT(r);X(o)&&v6(o),t.push(o)}return t}let ni=null;async function Cg(e,t,n){if(ni!==null)return!1;if(t!==null)return new Promise((c,u)=>{e.update(()=>{c(_g(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,s=en(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 l=new Range;return l.setStart(a,0),l.setEnd(a,1),s.removeAllRanges(),s.addRange(l),new Promise((c,u)=>{const f=e.registerCommand(Zl,d=>(Sr(d,ClipboardEvent)&&(f(),ni!==null&&(o.clearTimeout(ni),ni=null),c(_g(e,d,n))),!0),ox);ni=o.setTimeout(()=>{f(),ni=null,c(!1)},50),i.execCommand("copy"),a.remove()})}function _g(e,t,n){if(n===void 0){const o=en(e._window),i=Z();if(!i||i.isCollapsed()||!o)return!1;const s=o.anchorNode,a=o.focusNode;if(s!==null&&a!==null&&!ia(e,s,a))return!1;n=q6(i)}t.preventDefault();const r=t.clipboardData;return r!==null&&(V6(r,n),!0)}const Jx=[["text/html",B6],["application/x-lexical-editor",W6]];function q6(e=Z()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=Zd();for(const[r,o]of Jx){const i=o(n,e);i!==null&&(t[r]=i)}}return t}function V6(e,t){for(const[n]of Jx)t[n]===void 0&&e.setData(n,"");for(const n in t){const r=t[n];r!==void 0&&e.setData(n,r)}}function Eg(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 Wo=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Y6=Wo&&"documentMode"in document?document.documentMode:null,Q6=Wo&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),G6=!(!Wo||!("InputEvent"in window)||Y6)&&"getTargetRanges"in new window.InputEvent("input"),Z6=Wo&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Sg=Wo&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,J6=Wo&&/^(?=.*Chrome).*/i.test(navigator.userAgent),X6=Wo&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Q6&&!J6,kg=pe("DRAG_DROP_PASTE_FILE");function Ma(e){let t=null;if(Sr(e,DragEvent)?t=e.dataTransfer:Sr(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 Tg(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,c=>R(c)&&!c.isInline());if(a===null)continue;const l=a.getKey();a.canIndent()&&!n.has(l)&&(n.add(l),e(a))}return n.size>0}function Ng(e){const t=Fi(e);return Te(t)}function su(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function eN(e){return fn(e.registerCommand(Pd,t=>{const n=Z();return!!ot(n)&&(n.clear(),!0)},Ae),e.registerCommand(yo,t=>{const n=Z();return $(n)?(n.deleteCharacter(t),!0):!!ot(n)&&(n.deleteNodes(),!0)},Ae),e.registerCommand(Rs,t=>{const n=Z();return!!$(n)&&(n.deleteWord(t),!0)},Ae),e.registerCommand(Ds,t=>{const n=Z();return!!$(n)&&(n.deleteLine(t),!0)},Ae),e.registerCommand(gi,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)wg(r,n,e);else if($(n)){const o=t.data;return o&&n.insertText(o),!0}}return!0},Ae),e.registerCommand(bf,()=>{const t=Z();return!!$(t)&&(t.removeText(),!0)},Ae),e.registerCommand(Cn,t=>{const n=Z();return!!$(n)&&(n.formatText(t),!0)},Ae),e.registerCommand(oT,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(mi,t=>{const n=Z();return!!$(n)&&(n.insertLineBreak(t),!0)},Ae),e.registerCommand(Ls,()=>{const t=Z();return!!$(t)&&(t.insertParagraph(),!0)},Ae),e.registerCommand(nT,()=>(Zb([na()]),!0),Ae),e.registerCommand(rT,()=>Tg(t=>{const n=t.getIndent();t.setIndent(n+1)}),Ae),e.registerCommand(Tm,()=>Tg(t=>{const n=t.getIndent();n>0&&t.setIndent(Math.max(0,n-1))}),Ae),e.registerCommand(_b,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=Mf(n.focus,!0);if(!t.shiftKey&&Te(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),t.preventDefault(),!0}return!1},Ae),e.registerCommand(Eb,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=Mf(n.focus,!1);if(!t.shiftKey&&Te(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),t.preventDefault(),!0}return!1},Ae),e.registerCommand(Cb,t=>{const n=Z();if(ot(n)){const r=n.getNodes();if(r.length>0)return t.preventDefault(),fg(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!$(n))return!1;if(pg(n,!0)){const r=t.shiftKey;return t.preventDefault(),hg(n,r,!0),!0}return!1},Ae),e.registerCommand(Ab,t=>{const n=Z();if(ot(n)){const o=n.getNodes();if(o.length>0)return t.preventDefault(),fg(o[0])?o[0].selectPrevious():o[0].selectNext(0,0),!0}if(!$(n))return!1;const r=t.shiftKey;return!!pg(n,!1)&&(t.preventDefault(),hg(n,r,!1),!0)},Ae),e.registerCommand(kb,t=>{if(Ng(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=C6(i);return s.getIndent()>0&&(s.is(i)||i.is(s.getFirstDescendant()))})(n))return t.preventDefault(),e.dispatchCommand(Tm,void 0);if(Sg&&navigator.language==="ko-KR")return!1}else if(!ot(n))return!1;return t.preventDefault(),e.dispatchCommand(yo,!0)},Ae),e.registerCommand(Tb,t=>{if(Ng(t.target))return!1;const n=Z();return!(!$(n)&&!ot(n))&&(t.preventDefault(),e.dispatchCommand(yo,!1))},Ae),e.registerCommand(Fs,t=>{const n=Z();if(!$(n))return!1;if(su(n),t!==null){if((Sg||Z6||X6)&&G6)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(mi,!1)}return e.dispatchCommand(Ls,void 0)},Ae),e.registerCommand(Ld,()=>{const t=Z();return!!$(t)&&(e.blur(),!0)},Ae),e.registerCommand(Ob,t=>{const[,n]=Ma(t);if(n.length>0){const o=Eg(t.clientX,t.clientY);if(o!==null){const{offset:i,node:s}=o,a=Fi(s);if(a!==null){const l=Yb();if(X(a))l.anchor.set(a.getKey(),i,"text"),l.focus.set(a.getKey(),i,"text");else{const u=a.getParentOrThrow().getKey(),f=a.getIndexWithinParent()+1;l.anchor.set(u,f,"element"),l.focus.set(u,f,"element")}const c=Ri(l);Pt(c)}e.dispatchCommand(kg,n)}return t.preventDefault(),!0}const r=Z();return!!$(r)},Ae),e.registerCommand(Pb,t=>{const[n]=Ma(t),r=Z();return!(n&&!$(r))},Ae),e.registerCommand(Mb,t=>{const[n]=Ma(t),r=Z();if(n&&!$(r))return!1;const o=Eg(t.clientX,t.clientY);if(o!==null){const i=Fi(o.node);Te(i)&&t.preventDefault()}return!0},Ae),e.registerCommand(xf,()=>(WT(),!0),Ae),e.registerCommand(Zl,t=>(Cg(e,Sr(t,ClipboardEvent)?t:null),!0),Ae),e.registerCommand(Rd,t=>((async function(n,r){await Cg(r,Sr(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(Gl,t=>{const[,n,r]=Ma(t);return n.length>0&&!r?(e.dispatchCommand(kg,n),!0):Xi(t.target)&&Kd(t.target)?!1:Z()!==null&&((function(o,i){o.preventDefault(),i.update(()=>{const s=Z(),a=Sr(o,InputEvent)||Sr(o,KeyboardEvent)?null:o.clipboardData;a!=null&&s!==null&&wg(a,s,i)},{tag:vT})})(t,e),!0)},Ae),e.registerCommand(Sb,t=>{const n=Z();return $(n)&&su(n),!1},Ae),e.registerCommand(Nb,t=>{const n=Z();return $(n)&&su(n),!1},Ae))}function tN(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 ap=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function nN({editor:e,ErrorBoundary:t}){return(function(n,r){const[o,i]=T.useState(()=>n.getDecorators());return ap(()=>n.registerDecoratorListener(s=>{Tn.flushSync(()=>{i(s)})}),[n]),T.useEffect(()=>{i(n.getDecorators())},[n]),T.useMemo(()=>{const s=[],a=Object.keys(o);for(let l=0;l<a.length;l++){const c=a[l],u=x.jsx(r,{onError:d=>n._onError(d),children:x.jsx(T.Suspense,{fallback:null,children:o[c]})}),f=n.getElementByKey(c);f!==null&&s.push(Tn.createPortal(u,f,c))}return s},[r,o,n])})(e,t)}function rN({editor:e,ErrorBoundary:t}){return(function(n){const r=bi.maybeFromEditor(n);if(r&&r.hasExtensionByName(D6.name)){for(const o of["@lexical/plain-text","@lexical/rich-text"])r.hasExtensionByName(o)&&tN(320,o);return!0}return!1})(e)?null:x.jsx(nN,{editor:e,ErrorBoundary:t})}function Og(e){return e.getEditorState().read(Hx(e.isComposing()))}function oN({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=pt();return(function(o){ap(()=>fn(eN(o),$6(o)),[o])})(r),x.jsxs(x.Fragment,{children:[e,x.jsx(iN,{content:t}),x.jsx(rN,{editor:r,ErrorBoundary:n})]})}function iN({content:e}){const[t]=pt(),n=(function(o){const[i,s]=T.useState(()=>Og(o));return ap(()=>{function a(){const l=Og(o);s(l)}return a(),fn(o.registerUpdateListener(()=>{a()}),o.registerEditableListener(()=>{a()}))},[o]),i})(t),r=g6();return n?typeof e=="function"?e(r):e:null}function sN(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,v,b){const A=y._nodeMap,w=[];for(const _ of v){const E=A.get(_);E!==void 0&&w.push(E)}for(const[_,E]of b){if(!E)continue;const S=A.get(_);S===void 0||Ye(S)||w.push(S)}return w})(t,n,r);if(a.length===0)return 0;if(a.length>1){const y=t._nodeMap,v=y.get(i.anchor.key),b=y.get(s.anchor.key);return v&&b&&!e._nodeMap.has(v.__key)&&X(v)&&v.__text.length===1&&i.anchor.offset===1?2:0}const l=a[0],c=e._nodeMap.get(l.__key);if(!X(c)||!X(l)||c.__mode!==l.__mode)return 0;const u=c.__text,f=l.__text;if(u===f)return 0;const d=i.anchor,p=s.anchor;if(d.key!==p.key||d.type!=="text")return 0;const h=d.offset,g=p.offset,m=f.length-u.length;return m===1&&g===h-1?2:m===-1&&g===h+1?3:m===-1&&g===h?4:0}function aN(e,t){let n=Date.now(),r=0;return(o,i,s,a,l,c)=>{const u=Date.now();if(c.has(Tf))return r=0,n=u,2;const f=sN(o,i,a,l,e.isComposing()),d=(()=>{const p=s===null||s.editor===e,h=c.has(yT);if(!h&&p&&c.has(vo))return 0;if(o===null)return 1;const g=i._selection;if(!(a.size>0||l.size>0))return g!==null?0:2;const m=typeof t=="number"?t:t.peek();return h===!1&&f!==0&&f===r&&u<n+m&&p||a.size===1&&(function(y,v,b){const A=v._nodeMap.get(y),w=b._nodeMap.get(y),_=v._selection,E=b._selection;return!($(_)&&$(E)&&_.anchor.type==="element"&&_.focus.type==="element"&&E.anchor.type==="text"&&E.focus.type==="text"||!X(A)||!X(w)||A.__parent!==w.__parent)&&JSON.stringify(v.read(()=>A.exportJSON()))===JSON.stringify(b.read(()=>w.exportJSON()))})(Array.from(a)[0],o,i)?0:1})();return n=u,r=f,d}}function Pg(e){e.undoStack=[],e.redoStack=[],e.current=null}function Xx(e,t,n){const r=aN(e,n);return fn(e.registerCommand(Md,()=>((function(i,s){const a=s.redoStack,l=s.undoStack;if(l.length!==0){const c=s.current,u=l.pop();c!==null&&(a.push(c),i.dispatchCommand(Ca,!0)),l.length===0&&i.dispatchCommand(_a,!1),s.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:Tf})}})(e,t),!0),Ae),e.registerCommand(Id,()=>((function(i,s){const a=s.redoStack,l=s.undoStack;if(a.length!==0){const c=s.current;c!==null&&(l.push(c),i.dispatchCommand(_a,!0));const u=a.pop();a.length===0&&i.dispatchCommand(Ca,!1),s.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:Tf})}})(e,t),!0),Ae),e.registerCommand(sT,()=>(Pg(t),!1),Ae),e.registerCommand(aT,()=>(Pg(t),e.dispatchCommand(Ca,!1),e.dispatchCommand(_a,!1),!0),Ae),e.registerUpdateListener(({editorState:i,prevEditorState:s,dirtyLeaves:a,dirtyElements:l,tags:c})=>{const u=t.current,f=t.redoStack,d=t.undoStack,p=u===null?null:u.editorState;if(u!==null&&i===p)return;const h=r(s,i,u,a,l,c);if(h===1)f.length!==0&&(t.redoStack=[],e.dispatchCommand(Ca,!1)),u!==null&&(d.push({...u}),e.dispatchCommand(_a,!0));else if(h===2)return;t.current={editor:e,editorState:i}}))}function e1(){return{current:null,redoStack:[],undoStack:[]}}const au={build:(e,{delay:t,createInitialHistoryState:n,disabled:r})=>Ux({delay:t,disabled:r,historyState:n(e)}),config:{createInitialHistoryState:e1,delay:300,disabled:typeof window>"u"},name:"@lexical/history/History",register:(e,t,n)=>{const r=n.getOutput();return $s(()=>r.disabled.value?void 0:Xx(e,r.historyState.value,r.delay))}};u6(au,{createInitialHistoryState:()=>{throw new Error("SharedHistory did not inherit parent history")},disabled:!0});function lN({delay:e,externalHistoryState:t}){const[n]=pt();return(function(r,o,i=1e3){const s=T.useMemo(()=>o||e1(),[o]);T.useEffect(()=>Xx(r,s,i),[i,r,s])})(n,t,e),null}const t1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function cN({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:s,ariaInvalid:a,ariaLabel:l,ariaLabelledBy:c,ariaMultiline:u,ariaOwns:f,ariaRequired:d,autoCapitalize:p,className:h,id:g,role:m="textbox",spellCheck:y=!0,style:v,tabIndex:b,"data-testid":A,...w},_){const[E,S]=T.useState(e.isEditable()),O=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)}})(_,O),[O,_]);return t1(()=>(S(e.isEditable()),e.registerEditableListener(I=>{S(I)})),[e]),x.jsx("div",{"aria-activedescendant":E?t:void 0,"aria-autocomplete":E?n:"none","aria-controls":E?r:void 0,"aria-describedby":o,...i!=null?{"aria-errormessage":i}:{},"aria-expanded":E&&m==="combobox"?!!s:void 0,...a!=null?{"aria-invalid":a}:{},"aria-label":l,"aria-labelledby":c,"aria-multiline":u,"aria-owns":E?f:void 0,"aria-readonly":!E||void 0,"aria-required":d,autoCapitalize:p,className:h,contentEditable:E,"data-testid":A,id:g,ref:P,role:m,spellCheck:y,style:v,tabIndex:b,...w})}const uN=T.forwardRef(cN);function Mg(e){return e.getEditorState().read(Hx(e.isComposing()))}const fN=T.forwardRef(dN);function dN(e,t){const{placeholder:n,...r}=e,[o]=pt();return x.jsxs(x.Fragment,{children:[x.jsx(uN,{editor:o,...r,ref:t}),n!=null&&x.jsx(pN,{editor:o,content:n})]})}function pN({content:e,editor:t}){const n=(function(s){const[a,l]=T.useState(()=>Mg(s));return t1(()=>{function c(){const u=Mg(s);l(u)}return c(),fn(s.registerUpdateListener(()=>{c()}),s.registerEditableListener(()=>{c()}))},[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:x.jsx("div",{"aria-hidden":!0,children:i})}const hN=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?T.useLayoutEffect:T.useEffect;function mN({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:n}){const[r]=pt();return hN(()=>{if(n)return r.registerUpdateListener(({editorState:o,dirtyElements:i,dirtyLeaves:s,prevEditorState:a,tags:l})=>{t&&i.size===0&&s.size===0||e&&l.has(vo)||a.isEmpty()||n(o,r,l)})},[r,e,t,n]),null}const gN=T.createContext(null),lu={didCatch:!1,error:null};class yN extends T.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=lu}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(lu))}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&&vN(t.resetKeys,o)&&((s=(i=this.props).onReset)==null||s.call(i,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(lu))}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let a=t;if(i){const l={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")a=n(l);else if(r)a=T.createElement(r,l);else if(o!==void 0)a=o;else throw s}return T.createElement(gN.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function vN(e=[],t=[]){return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function bN({children:e,onError:t}){return x.jsx(yN,{fallback:x.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const xN={paragraph:"m-0",list:{ol:"list-decimal pl-4",ul:"list-disc pl-4"},text:{bold:"font-semibold",italic:"italic",underline:"underline",strikethrough:"line-through",code:"font-mono"},link:"text-blue-600 hover:text-blue-600 underline cursor-pointer"};function kr(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 $f(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}kr(40)}return t}return t}function Uf(e){let t=e.getParent();xe(t)||kr(40);let n=t;for(;n!==null;)n=n.getParent(),xe(n)&&(t=n);return t}function n1(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(n1(i)):t.push(o)}return t}function xn(e){return ke(e)&&xe(e.getFirstChild())}function Ig(e){return Zt().append(e)}function r1(e,t){return ke(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function Lg(e){const t=Z();if(t!==null){let n=t.getNodes();if($(t)){const o=t.getStartEndPoints();o===null&&kr(143);const[i]=o,s=i.getNode(),a=s.getParent();if(jt(s)){const l=s.getFirstChild();if(l)n=l.selectStart().getNodes();else{const c=Tt();s.append(c),n=c.select().getNodes()}}else if(r1(s,n)){const l=Bt(e);if(jt(a)){s.replace(l);const c=Zt();R(s)&&(c.setFormat(s.getFormatType()),c.setIndent(s.getIndent())),l.append(c)}else if(ke(s)){const c=s.getParentOrThrow();$o(l,c.getChildren()),c.replace(l)}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())){Rg(i,e);continue}let s=fx(i)?i.getParent():ke(i)&&i.isEmpty()?i:null;for(;s!=null;){const a=s.getKey();if(xe(s)){if(!r.has(a)){const l=Bt(e);$o(l,s.getChildren()),s.replace(l),r.add(a)}break}{const l=s.getParent();if(jt(l)&&!r.has(a)){r.add(a),Rg(s,e);break}s=l}}}}}function $o(e,t){e.splice(e.getChildrenSize(),0,t)}function Rg(e,t){if(xe(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=Zt();let i;if($o(o,e.getChildren()),xe(n)&&t===n.getListType())n.append(o),xe(r)&&t===r.getListType()&&($o(n,r.getChildren()),r.remove()),i=n;else if(xe(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const s=Bt(t);s.append(o),e.replace(s),i=s}return o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),e.remove(),i}function lp(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&xn(n)&&xn(r)&&(lp(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function wN(){const e=Z();if($(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(r1(r,n))t.add(Uf(r));else for(let o=0;o<n.length;o++){const i=n[o];if(fx(i)){const s=A6(i,ts);s!=null&&t.add(Uf(s))}}for(const o of t){let i=o;const s=n1(o);for(const a of s){const l=Tt().setTextStyle(e.style).setTextFormat(e.format);$o(l,a.getChildren()),i.insertAfter(l),i=l,a.__key===e.anchor.key&&zo(e.anchor,Yt(un(l,"next"))),a.__key===e.focus.key&&zo(e.focus,Yt(un(l,"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),xe(r.getFirstChild())||n++)}function AN(e){const t=new Set;if(xn(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(xn(r)&&xn(o)){const i=o.getFirstChild();if(xe(i)){i.append(e);const s=r.getFirstChild();xe(s)&&($o(i,s.getChildren()),r.remove(),t.add(r.getKey()))}}else if(xn(r)){const i=r.getFirstChild();if(xe(i)){const s=i.getFirstChild();s!==null&&s.insertBefore(e)}}else if(xn(o)){const i=o.getFirstChild();xe(i)&&i.append(e)}else if(xe(n)){const i=Zt().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),s=Bt(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 CN(e){if(xn(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=Zt(),a=Bt(i);s.append(a),e.getPreviousSiblings().forEach(u=>a.append(u));const l=Zt(),c=Bt(i);l.append(c),$o(c,e.getNextSiblings()),n.insertBefore(s),n.insertAfter(l),n.replace(e)}}}function _N(){const e=Z();if(!$(e)||!e.isCollapsed())return!1;const t=e.anchor.getNode();if(!ke(t)||t.getChildrenSize()!==0)return!1;const n=Uf(t),r=t.getParent();xe(r)||kr(40);const o=r.getParent();let i;if(jt(o))i=Tt(),n.insertAfter(i);else{if(!ke(o))return!1;i=Zt(),o.insertAfter(i)}i.setTextStyle(e.style).setTextFormat(e.format).select();const s=t.getNextSiblings();if(s.length>0){const a=Bt(r.getListType());if(ke(i)){const l=Zt();l.append(a),i.insertAfter(l)}else i.insertAfter(a);a.append(...s)}return(function(a){let l=a;for(;l.getNextSibling()==null&&l.getPreviousSibling()==null;){const c=l.getParent();if(c==null||!ke(c)&&!xe(c))break;l=c}l.remove()})(t),!0}function wl(...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 ts extends Pn{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();xe(r)&&r.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Pn,importDOM:{li:()=>({conversion:EN,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,l,c){const u=l.getParent();!xe(u)||u.getListType()!=="check"||xe(l.getFirstChild())?(a.removeAttribute("role"),a.removeAttribute("tabIndex"),a.removeAttribute("aria-checked")):(a.setAttribute("role","checkbox"),a.setAttribute("tabIndex","-1"),c&&l.__checked===c.__checked||a.setAttribute("aria-checked",l.getChecked()?"true":"false"))})(r,this,n),r.value=this.__value,(function(a,l,c){const u=[],f=[],d=l.list,p=d?d.listitem:void 0;let h;if(d&&d.nested&&(h=d.nested.listitem),p!==void 0&&u.push(...wl(p)),d){const g=c.getParent(),m=xe(g)&&g.getListType()==="check",y=c.getChecked();m&&!y||f.push(d.listitemUnchecked),m&&y||f.push(d.listitemChecked),m&&u.push(y?d.listitemChecked:d.listitemUnchecked)}if(h!==void 0){const g=wl(h);c.getChildren().some(m=>xe(m))?u.push(...g):f.push(...g)}f.length>0&&Fx(a,...f),u.length>0&&op(a,...u)})(r,o.theme,this);const i=n?n.__style:"",s=this.__style;i!==s&&(s===""?r.removeAttribute("style"):r.style.cssText=s),(function(a,l,c){const u=ug(l.__textStyle);for(const f in u)a.style.setProperty(`--listitem-marker-${f}`,u[f]);if(c)for(const f in ug(c.__textStyle))f in u||a.style.removeProperty(`--listitem-marker-${f}`)})(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=Bt(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)||kr(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)||kr(39),ke(n))return super.insertAfter(n,r);const i=this.getNextSiblings();if(o.insertAfter(n,r),i.length!==0){const s=Bt(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&&xn(r)&&xn(o)&&(lp(r.getFirstChild(),o.getFirstChild()),o.remove())}insertNewAfter(n,r=!0){const o=Zt().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,l=n.focus,c=r.getKey();a.type==="element"&&a.getNode().is(this)&&a.set(c,a.offset,"element"),l.type==="element"&&l.getNode().is(this)&&l.set(c,l.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"&&kr(117),(n=Math.floor(n))>=0||kr(199);let r=this.getIndent();for(;r!==n;)r<n?(AN(this),r++):(CN(this),r--);return this}canInsertAfter(n){return ke(n)}canReplaceWith(n){return ke(n)}canMergeWith(n){return ke(n)||Ud(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 Bt("bullet")}canMergeWhenEmpty(){return!0}}function EN(e){if(e.classList.contains("task-list-item")){for(const n of e.children)if(n.tagName==="INPUT")return Dg(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 Dg(n.children[0])}const t=e.getAttribute("aria-checked");return{node:Zt(t==="true"||t!=="false"&&void 0)}}function Dg(e){return e.getAttribute("type")!=="checkbox"?{node:null}:{node:Zt(e.hasAttribute("checked"))}}function Zt(e){return Wr(new ts(void 0,e))}function ke(e){return e instanceof ts}class aa extends Pn{constructor(n="number",r=1,o){super(o);D(this,"__tag");D(this,"__start");D(this,"__listType");const i=kN[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()&&lp(r,o)})(n),o1(n)},extends:Pn,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,Fg(i,n.theme,this),i}updateDOM(n,r,o){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Fg(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 ht(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]=Zt().append(!R(a)||xe(a)||a.isInline()?a:rt(a.getTextContent())))}return super.splice(n,r,i)}extractWithChild(n){return ke(n)}}function Fg(e,t,n){const r=[],o=[],i=t.list;if(i!==void 0){const s=i[`${n.__tag}Depth`]||[],a=$f(n)-1,l=a%s.length,c=s[l],u=i[n.__tag];let f;const d=i.nested,p=i.checklist;if(d!==void 0&&d.list&&(f=d.list),u!==void 0&&r.push(u),p!==void 0&&n.__listType==="check"&&r.push(p),c!==void 0){r.push(...wl(c));for(let h=0;h<s.length;h++)h!==l&&o.push(n.__tag+h)}if(f!==void 0){const h=wl(f);a>1?r.push(...h):o.push(...h)}}o.length>0&&Fx(e,...o),r.length>0&&op(e,...r)}function SN(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(Ig(i))})}else t.push(Ig(r))}return t}function jg(e){const t=e.nodeName.toLowerCase();let n=null;return t==="ol"?n=Bt("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(ht(o)&&o.hasAttribute("aria-checked"))return!0;return!1})(e)?Bt("check"):Bt("bullet")),{after:SN,node:n}}const kN={ol:"number",ul:"bullet"};function Bt(e="number",t=1){return Wr(new aa(e,t))}function xe(e){return e instanceof aa}const TN=pe("UPDATE_LIST_START_COMMAND"),i1=pe("INSERT_UNORDERED_LIST_COMMAND"),s1=pe("INSERT_ORDERED_LIST_COMMAND"),Bf=pe("REMOVE_LIST_COMMAND");function NN(e){return fn(e.registerCommand(s1,()=>(Lg("number"),!0),Qn),e.registerCommand(TN,t=>{const{listNodeKey:n,newStart:r}=t,o=Xe(n);return!!xe(o)&&(o.getListType()==="number"&&(o.setStart(r),o1(o)),!0)},Qn),e.registerCommand(i1,()=>(Lg("bullet"),!0),Qn),e.registerCommand(Bf,()=>(wN(),!0),Qn),e.registerCommand(Ls,()=>_N(),Qn),e.registerNodeTransform(ts,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(Ur,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 ON(e){const t=n=>{const r=n.getParent();if(xe(n.getFirstChild())||!xe(r))return;const o=at(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(l){let c=l,u=c.getFirstChild();for(;xe(u);){const f=u.getLastChild();if(!ke(f))break;c=f,u=c.getFirstChild()}return c})(i),a=s.getParent();if(xe(a)){const l=$f(a);l+1<$f(r)&&n.setIndent(l)}}}};return e.registerNodeTransform(aa,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 PN=new Set(["http:","https:","mailto:","sms:","tel:"]);class Ko extends Pn{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 Ko(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),op(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:MN,priority:1})}}static importJSON(n){return Ao().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=Ug(n);try{const r=new URL(Ug(n));if(!PN.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=Ao(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 MN(e){let t=null;if(xx(e)){const n=e.textContent;(n!==null&&n!==""||e.children.length>0)&&(t=Ao(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function Ao(e="",t){return Wr(new Ko(e,t))}function ut(e){return e instanceof Ko}class ic extends Ko{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 ic(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 zg().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=zg(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return o.append(i),i}return null}}function zg(e="",t){return Wr(new ic(e,t))}function io(e){return e instanceof ic}const $i=pe("TOGGLE_LINK_COMMAND");function $g(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 cu(e,t={}){let n;if(e&&typeof e=="object"){const{url:u,...f}=e;n=u,t={...f,...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 u=s.getNodes();return u.length===0?void 0:void u.forEach(f=>{if(n===null){const d=at(f,p=>!io(p)&&ut(p));d&&(d.insertBefore(f),d.getChildren().length===0&&d.remove())}else{const d=at(f,p=>!io(p)&&ut(p));if(d)d.setURL(n),r!==void 0&&d.setTarget(r),i!==void 0&&d.setRel(i);else{const p=Ao(n,{rel:i,target:r});f.insertBefore(p),p.append(f)}}})}const a=s.extract();if(n===null){const u=new Set;return void a.forEach(f=>{const d=f.getParent();if(ut(d)&&!io(d)){const p=d.getKey();if(u.has(p))return;(function(h,g){const m=new Set(g.filter(E=>h.isParentOf(E)).map(E=>E.getKey())),y=h.getChildren(),v=y.filter(E=>m.has(E.getKey()));if(v.length===y.length)return y.forEach(E=>h.insertBefore(E)),void h.remove();const b=y.findIndex(E=>m.has(E.getKey())),A=y.findLastIndex(E=>m.has(E.getKey())),w=b===0,_=A===y.length-1;if(w)v.forEach(E=>h.insertBefore(E));else if(_)for(let E=v.length-1;E>=0;E--)h.insertAfter(v[E]);else{for(let S=v.length-1;S>=0;S--)h.insertAfter(v[S]);const E=y.slice(A+1);if(E.length>0){const S=Ao(h.getURL(),{rel:h.getRel(),target:h.getTarget(),title:h.getTitle()});v[v.length-1].insertAfter(S),E.forEach(O=>S.append(O))}}})(d,a),u.add(p)}})}const l=new Set,c=u=>{l.has(u.getKey())||(l.add(u.getKey()),u.setURL(n),r!==void 0&&u.setTarget(r),i!==void 0&&u.setRel(i),o!==void 0&&u.setTitle(o))};if(a.length===1){const u=a[0],f=at(u,ut);if(f!==null)return c(f)}(function(u){const f=Z();if(!$(f))return u();const d=Ri(f),p=d.isBackward(),h=$g(d.anchor,p?-1:0),g=$g(d.focus,p?0:-1);if(u(),h||g){const m=Z();if($(m)){const y=m.clone();if(h){const v=h.getParent();v&&y.anchor.set(v.getKey(),h.getIndexWithinParent()+(p?1:0),"element")}if(g){const v=g.getParent();v&&y.focus.set(v.getKey(),g.getIndexWithinParent()+(p?0:1),"element")}Pt(Ri(y))}}})(()=>{let u=null;for(const f of a){if(!f.isAttached())continue;const d=at(f,ut);if(d){c(d);continue}if(R(f)){if(!f.isInline())continue;if(ut(f)){if(!(io(f)||u!==null&&u.getParentOrThrow().isParentOf(f))){c(f),u=f;continue}for(const h of f.getChildren())f.insertBefore(h);f.remove();continue}}const p=f.getPreviousSibling();ut(p)&&p.is(u)?p.append(f):(u=Ao(n,{rel:i,target:r,title:o}),f.insertAfter(u),u.append(f))}})}const IN=/^\+?[0-9\s()-]{5,}$/;function Ug(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:IN.test(e)?`tel:${e}`:`https://${e}`}function LN(e,t){return fn($s(()=>e.registerCommand($i,n=>{const r=t.validateUrl.peek(),o=t.attributes.peek();if(n===null)return cu(null),!0;if(typeof n=="string")return!(r!==void 0&&!r(n))&&(cu(n,o),!0);{const{url:i,target:s,rel:a,title:l}=n;return cu(i,{...o,rel:a,target:s,title:l}),!0}},Qn)),$s(()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(Gl,o=>{const i=Z();if(!$(i)||i.isCollapsed()||!Sr(o,ClipboardEvent)||o.clipboardData===null)return!1;const s=o.clipboardData.getData("text");return!!n(s)&&!i.getNodes().some(a=>R(a))&&(e.dispatchCommand($i,{...r,url:s}),o.preventDefault(),!0)},Qn)}))}function RN({commentType:e,onCommentTypeChange:t,isCommentTypeEditable:n=!0,actions:r,setIsLinkEditMode:o,onAddAttachments:i}){const[s]=pt(),[a,l]=T.useState({bold:!1,italic:!1,underline:!1,strikethrough:!1,code:!1}),[c,u]=T.useState(null),f=T.useRef(null),d=T.useRef(null),p=cp[e];T.useLayoutEffect(()=>s.registerUpdateListener(({editorState:v})=>{v.read(()=>{const b=Z();if(!$(b))return;l({bold:b.hasFormat("bold"),italic:b.hasFormat("italic"),underline:b.hasFormat("underline"),strikethrough:b.hasFormat("strikethrough"),code:b.hasFormat("code")});let A=b.anchor.getNode(),w=null;for(;A;){if(xe(A)){const _=A.getListType();w=_==="bullet"||_==="number"?_:null;break}if(ke(A)){A=A.getParent();continue}A=A.getParent()}u(w)})}),[s]);const h=v=>{s.dispatchCommand(Cn,v)},g=()=>{c!=="bullet"?s.dispatchCommand(i1,void 0):s.dispatchCommand(Bf,void 0)},m=()=>{c!=="number"?s.dispatchCommand(s1,void 0):s.dispatchCommand(Bf,void 0)},y=()=>{s.update(()=>{const v=Z();if(!$(v))return;["bold","italic","underline","strikethrough","code"].forEach(A=>{v.hasFormat(A)&&s.dispatchCommand(Cn,A)})})};return x.jsxs("div",{className:Ee("flex items-center w-full",r?"justify-between":"justify-end"),children:[x.jsxs("div",{className:"flex items-center gap-1",children:[x.jsx(uf,{placement:"top-start",minWidth:"fit-content",title:"text formatting menu",trigger:x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",children:x.jsx(be,{icon:u4})}),children:x.jsxs("ul",{className:"flex items-start flex-col",children:[x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Bold",onClick:()=>h("bold"),className:Ee("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",a.bold?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[x.jsx(be,{icon:n4,className:"mr-2"}),"Bold"]})}),x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Italic",onClick:()=>h("italic"),className:Ee("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",a.italic?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[x.jsx(be,{icon:i4,className:"mr-2"}),"Italic"]})}),x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Underline",onClick:()=>h("underline"),className:Ee("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",a.underline?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[x.jsx(be,{icon:t4,className:"mr-2"}),"Underline"]})}),x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Strikethrough",onClick:()=>h("strikethrough"),className:Ee("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",a.strikethrough?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[x.jsx(be,{icon:e4,className:"mr-2"}),"Strikethrough"]})}),x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Monospace",onClick:()=>h("code"),className:Ee("cursor-pointer w-full h-full justify-start text-left p-2 hover:bg-gray-100",a.code?"text-white bg-primary-600 hover:bg-primary-700":"text-gray-400 hover:text-gray-400"),children:[x.jsx(be,{icon:a4,className:"mr-2"}),"Monospace"]})}),x.jsx("hr",{className:"w-full border-gray-200"}),x.jsx("li",{className:"flex items-center w-full",children:x.jsxs("button",{type:"button",title:"Clear formatting",onClick:y,className:"cursor-pointer w-full h-full justify-start text-left p-2 text-gray-400 hover:text-gray-400 hover:bg-gray-100",children:[x.jsx(be,{icon:o4,className:"mr-2"}),"Clear formatting"]})})]})}),x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format bullet list",onClick:g,children:x.jsx(be,{icon:f4})}),x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format numbered list",onClick:m,children:x.jsx(be,{icon:s4})}),x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Format link",onClick:()=>{o(!0),s.dispatchCommand($i,"https://")},children:x.jsx(be,{icon:c4})}),i&&x.jsxs(x.Fragment,{children:[x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Add image",className:"border-l-1 border-gray-200 rounded-none",onClick:()=>{var v;(v=f.current)==null||v.click()},children:x.jsx(be,{icon:r4})}),x.jsx(je,{category:"link",size:"smallCollapse",color:"gray400",title:"Add file",onClick:()=>{var v;(v=d.current)==null||v.click()},children:x.jsx(be,{icon:l4})})]}),n&&x.jsx(uf,{placement:"top-end",title:"comment type menu",trigger:x.jsx(je,{category:"link",size:"smallCollapse",className:`${p.iconColor} border-l-1 border-gray-200 rounded-none`,children:x.jsx(be,{icon:p.icon})}),children:x.jsx("ul",{className:"flex items-center justify-between gap-2 p-3",children:l1.map(v=>x.jsx("li",{children:x.jsx(je,{category:"link",size:"none",title:v.title,className:Ee(v.color,e===v.type?v.color:"text-gray-400"),onClick:()=>t==null?void 0:t(v.type),children:x.jsx(be,{icon:v.icon})})},v.type))})})]}),r,x.jsx("input",{type:"file",hidden:!0,id:"image-input",multiple:!0,ref:f,accept:"image/*",onChange:v=>{const b=v.target.files;b&&(i==null||i(b))}}),x.jsx("input",{type:"file",hidden:!0,id:"file-input",multiple:!0,ref:d,accept:"*",onChange:v=>{const b=v.target.files;b&&(i==null||i(b))}})]})}function DN({hasStrictIndent:e=!1}){const[t]=pt();return T.useEffect(()=>{if(!t.hasNodes([aa,ts]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),T.useEffect(()=>{if(e)return ON(t)},[t,e]),(function(n){T.useEffect(()=>NN(n),[n])})(t),null}function FN({validateUrl:e,attributes:t}){const[n]=pt();return T.useEffect(()=>{if(!n.hasNodes([Ko]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),T.useEffect(()=>LN(n,Ux({attributes:t,validateUrl:e})),[n,e,t]),null}const jN=new Set(["http:","https:","mailto:","sms:","tel:"]);function Bg(e){try{const t=new URL(e);if(!jN.has(t.protocol))return"about:blank"}catch{return e}return e}function Wg(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(),l=i.getBoundingClientRect();let c=e.top-r,u=e.left-o;c<l.top&&(c+=s.height+e.height+r*2),u+s.width>l.right&&(u=l.right-s.width-o),c-=a.top,u-=a.left,t.style.opacity="1",t.style.transform=`translate(${u}px, ${c}px)`}function Al(e){const t=e.anchor,n=e.focus,r=e.anchor.getNode(),o=e.focus.getNode();return r===o?r:e.isBackward()?dg(n)?r:o:dg(t)?r:o}function zN({editor:e,isLink:t,setIsLink:n,anchorElem:r,isLinkEditMode:o,setIsLinkEditMode:i}){const s=T.useRef(null),[a,l]=T.useState(""),[c,u]=T.useState("https://"),[f,d]=T.useState(null),p=T.useCallback(()=>{var w,_;const m=Z();if($(m)){const E=Al(m),S=at(E,ut);S?l(S.getURL()):ut(E)?l(E.getURL()):l(""),o&&u(a)}else if(ot(m)){const E=m.getNodes();if(E.length>0){const S=E[0],O=S.getParent();ut(O)?l(O.getURL()):ut(S)?l(S.getURL()):l(""),o&&u(a)}}const y=s.current,v=en(e._window),b=document.activeElement;if(y===null)return;const A=e.getRootElement();if(m!==null&&A!==null&&e.isEditable()){let E;if(ot(m)){const S=m.getNodes();if(S.length>0){const O=e.getElementByKey(S[0].getKey());O&&(E=O.getBoundingClientRect())}}else v!==null&&A.contains(v.anchorNode)&&(E=(_=(w=v.focusNode)==null?void 0:w.parentElement)==null?void 0:_.getBoundingClientRect());E&&(E.y+=40,Wg(E,y,r)),d(m)}else(!b||b.className!=="link-input")&&(A!==null&&Wg(null,y,r),d(null),i(!1),l(""));return!0},[r,e,i,o,a]);T.useEffect(()=>{const m=r.parentElement,y=()=>{e.getEditorState().read(()=>{p()})};return window.addEventListener("resize",y),m&&m.addEventListener("scroll",y),()=>{window.removeEventListener("resize",y),m&&m.removeEventListener("scroll",y)}},[r.parentElement,e,p]),T.useEffect(()=>fn(e.registerUpdateListener(({editorState:m})=>{m.read(()=>{p()})}),e.registerCommand(Ql,()=>(p(),!0),Qn),e.registerCommand(Ld,()=>t?(n(!1),!0):!1,FT)),[e,p,n,t]),T.useEffect(()=>{e.getEditorState().read(()=>{p()})},[e,p]),T.useEffect(()=>{const m=s.current;if(m===null)return;const y=v=>{!m.contains(v.relatedTarget)&&t&&(n(!1),i(!1))};return m.addEventListener("focusout",y),()=>{m.removeEventListener("focusout",y)}},[n,i,t]);const h=m=>{m.key==="Enter"?g(m):m.key==="Escape"&&(m.preventDefault(),i(!1))},g=m=>{m.preventDefault(),f!==null&&(a!==""&&e.update(()=>{e.dispatchCommand($i,Bg(c));const y=Z();if($(y)){const v=Al(y).getParent();if(io(v)){const b=Ao(v.getURL(),{rel:v.__rel,target:v.__target,title:v.__title});v.replace(b,!0)}}}),u("https://"),i(!1))};return x.jsx("div",{ref:s,className:"absolute flex top-0 left-0 shadow-lg bg-white z-10 rounded-sm w-full max-w-400",children:t?o?x.jsxs("div",{className:"flex justify-between w-full items-center p-2",children:[x.jsx(xy,{containerClassName:"px-0 mr-2",autoFocus:!0,className:"mt-0",value:c,onChange:m=>{u(m.target.value)},onKeyDown:m=>{h(m)}}),x.jsxs("div",{className:"flex justify-center items-center gap-4",children:[x.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:m=>m.preventDefault(),onClick:()=>{i(!1)},children:x.jsx(be,{icon:Dl})}),x.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:m=>m.preventDefault(),onClick:g,children:x.jsx(be,{icon:Oy})})]})]}):x.jsxs("div",{className:"flex justify-between w-full items-center p-2",children:[x.jsx("a",{href:Bg(a),target:"_blank",rel:"noopener noreferrer",children:a}),x.jsxs("div",{className:"flex items-center gap-4",children:[x.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:m=>m.preventDefault(),onClick:()=>{u(a),i(!0)},children:x.jsx(be,{icon:RC})}),x.jsx(je,{size:"none",category:"link",color:"gray400",tabIndex:0,onMouseDown:m=>m.preventDefault(),onClick:()=>e.dispatchCommand($i,null),children:x.jsx(be,{icon:qC})})]})]}):null})}function $N(e,t,n,r){const[o,i]=T.useState(e),[s,a]=T.useState(!1);return T.useEffect(()=>{function l(){const c=Z();if($(c)){const u=Al(c),f=at(u,ut),d=at(u,io);if(!(f||d)){a(!1);return}const p=c.getNodes().filter(h=>!bo(h)).find(h=>{const g=at(h,ut),m=at(h,io);return f&&!f.is(g)||g&&!g.is(f)||d&&!d.is(m)||m&&(!m.is(d)||m.getIsUnlinked())});a(!p)}else if(ot(c)){const u=c.getNodes();if(u.length===0){a(!1);return}const f=u[0],d=f.getParent();ut(d)||ut(f)?a(!0):a(!1)}}return fn(e.registerUpdateListener(({editorState:c})=>{c.read(()=>{l()})}),e.registerCommand(Ql,(c,u)=>(l(),i(u),!1),ox),e.registerCommand(Pd,c=>{const u=Z();if($(u)){const f=Al(u),d=at(f,ut);if(ut(d)&&(c.metaKey||c.ctrlKey))return window.open(d.getURL(),"_blank"),!0}return!1},Qn))},[e]),Tn.createPortal(x.jsx(zN,{editor:o,isLink:s,anchorElem:t,setIsLink:a,isLinkEditMode:n,setIsLinkEditMode:r}),t)}function UN({anchorElem:e=document.body,isLinkEditMode:t,setIsLinkEditMode:n}){const[r]=pt();return $N(r,e,t,n)}const BN=({url:e,onDelete:t})=>x.jsxs("div",{className:"relative",children:[x.jsx("img",{src:e,alt:"Thumbnail",width:75,height:75,className:"w-[75px] h-[75px] object-cover rounded-lg border border-gray-200"}),x.jsx(je,{size:"smallCollapse",title:"Delete attachment",onClick:t,className:"absolute top-1 left-1 w-[20px] h-[20px] rounded-full",color:"secondary",children:x.jsx(be,{icon:Ny})})]}),WN=({onRemoveFile:e,type:t,label:n})=>{const r=t.toLowerCase(),o=_v(r);return x.jsxs("div",{className:"relative flex items-center justify-center rounded border border-gray-200",children:[x.jsx(je,{size:"smallCollapse",color:"secondary",className:"absolute top-1 left-1 w-[20px] h-[20px] rounded-full",title:"Remove file",onClick:e,children:x.jsx(be,{icon:Ny})}),x.jsxs("div",{className:"flex items-center justify-center mx-2",children:[x.jsx("span",{className:"text-primary-600 my-2",children:x.jsx(be,{icon:o,size:"3x",className:"text-primary-600"})}),x.jsx("span",{className:"font-bold p-2",children:n})]})]})},KN=({clearKey:e})=>{const[t]=pt(),n=T.useRef(e);return T.useEffect(()=>{n.current!==e&&(t.update(()=>{We().clear()}),n.current=e)},[e,t]),null},HN=({isOpen:e})=>{const[t]=pt();return T.useEffect(()=>{e&&requestAnimationFrame(()=>{t.focus()})},[t,e]),null},qN=({initialValue:e})=>{const[t]=pt(),n=T.useCallback((o,i)=>{const a=new DOMParser().parseFromString(i,"text/html");return qx(o,a)},[]),r=T.useRef(!1);return T.useEffect(()=>{!r.current&&e&&(t.update(()=>{We().clear(),Zb(n(t,e))}),r.current=!0)},[t,e,n]),null},VN=({onChange:e})=>{const[t]=pt();return x.jsx(mN,{onChange:n=>{n.read(()=>{const r=Vx(t,null);e(r)})}})},YN=({onAddAttachments:e})=>{const[t]=pt();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 l=0;l<s.length;l++){const c=s[l];if(c.kind==="file"&&c.type.startsWith("image/")){a=!0;break}}if(a){for(let l=0;l<s.length;l++){const c=s[l];if(c.kind==="file"&&c.type.startsWith("image/")){const u=c.getAsFile();if(u){const f=Date.now(),d=u.type.split("/")[1]||"png",p=`image_${f}.${d}`,h=new File([u],p,{type:u.type});e==null||e([h])}}}o.preventDefault(),o.stopPropagation()}};return n.addEventListener("paste",r,!0),()=>{n.removeEventListener("paste",r,!0)}},[t,e]),null},QN=({onSubmit:e})=>{const[t]=pt();return T.useEffect(()=>{if(e)return t.registerCommand(Fs,n=>n&&!n.shiftKey?(n.preventDefault(),e(),!0):!1,1)},[t,e]),null},GN=({setIsLinkEditMode:e})=>{const[t]=pt();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($i,"https://"))})};return n.addEventListener("keydown",r),()=>{n.removeEventListener("keydown",r)}},[t,e]),null};function a1({attachments:e,clearKey:t=0,inputFieldClassName:n="",containerClassName:r="",initialValue:o,onChange:i,commentType:s,onCommentTypeChange:a,isCommentTypeEditable:l=!0,actions:c,onAddAttachments:u,onRemoveAttachment:f,onSubmit:d,isOpen:p}){const h={namespace:"comment-editor",theme:xN,nodes:[aa,ts,Ko],onError:w=>{console.error(w)}},[g,m]=T.useState(null),[y,v]=T.useState(!1),b=w=>{w!==null&&m(w)},A=cp[s];return x.jsx("div",{className:r,children:x.jsxs(p6,{initialConfig:h,children:[x.jsxs("div",{className:"relative",children:[x.jsx(oN,{contentEditable:x.jsx("div",{ref:b,children:x.jsx(fN,{className:Ee("p-3 outline-none border-0 w-full border-t border-gray-200 rounded-none border-l-3",A.bg,A.border,A.fontColor,n)})}),placeholder:x.jsx("div",{className:"absolute top-3 left-4 text-gray-400 pointer-events-none",children:"Type comment…"}),ErrorBoundary:bN}),x.jsx(DN,{}),x.jsx(FN,{}),g&&x.jsx(UN,{anchorElem:g,isLinkEditMode:y,setIsLinkEditMode:v}),x.jsx(lN,{}),x.jsx(qN,{initialValue:o}),x.jsx(VN,{onChange:i}),x.jsx(QN,{onSubmit:d}),x.jsx(GN,{setIsLinkEditMode:v}),x.jsx(KN,{clearKey:t}),x.jsx(YN,{onAddAttachments:u}),x.jsx(HN,{isOpen:p})]}),e&&e.length>0&&x.jsx("div",{className:"flex flex-wrap justify-start gap-2 p-4",children:e.map(w=>hd(w.type)?x.jsx(BN,{url:w.url,onDelete:()=>f==null?void 0:f(w.originFile)},w.originFile.name):x.jsx(WN,{type:w.type,label:w.name,onRemoveFile:()=>f==null?void 0:f(w.originFile)},w.originFile.name))}),x.jsx("div",{className:"border-t border-gray-200 p-2 flex justify-end",children:x.jsx(RN,{commentType:s,onCommentTypeChange:a,isCommentTypeEditable:l,actions:c,setIsLinkEditMode:v,onAddAttachments:u})})]})})}const ZN=({asset:e,onSetActiveSrc:t})=>x.jsxs("div",{className:"relative border border-gray-200 rounded-md h-[110px] w-full hover:border-primary-500",children:[x.jsx("img",{src:$a(e),onClick:()=>t($a(e)),onKeyDown:n=>{n.key==="Enter"&&t($a(e))},alt:e.name,className:"w-full h-full object-cover rounded-md object-center cursor-zoom-in"}),(e==null?void 0:e.uploading)&&x.jsx("div",{className:"absolute bottom-2 w-full max-w-md mx-auto px-2",children:x.jsx("div",{className:"relative h-2 overflow-hidden rounded-full bg-gray-200",children:x.jsx("div",{className:"absolute left-0 top-0 h-full w-1/3 rounded-full bg-blue-500 animate-progress"})})})]}),JN=({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=_v(t);return x.jsxs("div",{className:"flex gap-2",children:[(e==null?void 0:e.uploading)&&x.jsx("div",{className:"flex items-center justify-center",children:x.jsx("div",{className:"h-4 w-4 rounded-full border-2 border-gray-300 border-t-blue-500 animate-spin"})}),x.jsx(be,{icon:n,size:"lg",className:"text-primary-600"}),x.jsx("a",{href:$a(e),className:"text-sm text-blue-600 underline",download:!0,target:"_blank",rel:"noopener noreferrer",children:e.name})]})},XN=({commentType:e=dt.INFO,author:t,username:n,comment:r,createdDate:o,onDelete:i,onEdit:s,hasAssets:a,taskAssets:l,taskVerified:c})=>{const f={[dt.INFO]:{bg:"bg-primary-100",border:"border-primary-200",icon:ky,iconColor:"text-primary-600 hover:text-primary-600",text:"text-primary-900"},[dt.WARNING]:{bg:"bg-warning-100",border:"border-warning-200",icon:Cy,iconColor:"text-warning-600 hover:text-warning-600",text:"text-warning-900"},[dt.DANGER]:{bg:"bg-danger-100",border:"border-danger-200",icon:Py,iconColor:"text-danger-600 hover:text-danger-600",text:"text-danger-900"},[dt.SUCCESS]:{bg:"bg-success-100",border:"border-success-200",icon:Ey,iconColor:"text-success-600 hover:text-success-600",text:"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(",",""),[p,h]=T.useState(!1),[g,m]=T.useState(zc(r)),[y,v]=T.useState(e),[b,A]=T.useState(""),w=()=>{h(!0)},_=()=>{const O=rf.sanitize(g);s(O,y),h(!1)},E=O=>{const P=rf.sanitize(g);v(O),s(P,O),h(!1)},S=()=>{h(!1)};return x.jsxs("div",{className:"flex items-start space-x-4 w-full",children:[x.jsx(C3,{alt:t}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsxs("div",{className:`border ${f.border} rounded-sm ${f.bg} shadow-sm flex flex-col items-start justify-between w-full`,children:[x.jsx("div",{className:"p-3 flex flex-col items-start justify-between w-full",children:x.jsxs("div",{className:"w-full",children:[x.jsxs("div",{className:"flex items-center mb-2 justify-between",children:[x.jsxs("div",{children:[x.jsx(be,{icon:f.icon,size:"lg",className:`mr-2 ${f.iconColor}`}),x.jsx("span",{className:`font-semibold text-sm ${f.text}`,children:t})]}),x.jsx(E3,{commentType:e,taskVerified:c,isUsernameAuthor:n.trim()===t.trim(),onEdit:w,onSaveCommentType:E,onDelete:i})]}),p?x.jsx(a1,{inputFieldClassName:"bg-white border-0 rounded-sm",containerClassName:"bg-white border-0 rounded-sm",onChange:m,commentType:e,isCommentTypeEditable:!1,initialValue:zc(r),actions:x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(je,{category:"outline",size:"smallCollapse",color:"secondary",onClick:S,title:"Cancel edit",children:"Cancel"}),x.jsx(je,{category:"solid",size:"smallCollapse",color:"primary",onClick:_,title:"Save edit",disabled:Ua(g),children:"Save"})]})}):x.jsx("div",{className:`text-sm ${f.text}`,dangerouslySetInnerHTML:{__html:zc(r)}})]})}),a&&l&&(l==null?void 0:l.length)>0&&x.jsx("div",{className:`${f.border} border-t w-full p-2 flex gap-2 flex-wrap`,children:l.map(O=>x.jsx(T.Fragment,{children:hd(O.mimeType)?x.jsx(ZN,{asset:O,onSetActiveSrc:A}):x.jsx(JN,{asset:O})},O.assetId))})]}),x.jsxs("div",{className:"flex gap-2 my-1",children:[o&&x.jsx("time",{dateTime:o,className:"text-xs text-gray-500 opacity-60",children:d}),c&&x.jsxs("span",{className:"text-xs text-success-600 font-semibold flex items-center gap-1",children:[x.jsx(be,{icon:Sy}),"Comment Required"]})]})]}),x.jsx(o3,{plugins:[w3],open:!!b,zoom:{maxZoomPixelRatio:2},close:()=>A(""),styles:{root:{zIndex:9999999999}},carousel:{finite:!0,preload:0},controller:{closeOnBackdropClick:!0},slides:[{src:b}]})]})},cp={[dt.INFO]:{icon:QC,bg:"bg-primary-100",border:"border-l-primary-500",iconColor:"text-primary-600 hover:text-primary-700",fontColor:"text-primary-900"},[dt.WARNING]:{icon:DC,bg:"bg-warning-100",border:"border-l-warning-500",iconColor:"text-warning-600 hover:text-warning-700",fontColor:"text-warning-900"},[dt.DANGER]:{icon:JC,bg:"bg-danger-100",border:"border-l-danger-500",iconColor:"text-danger-600 hover:text-danger-700",fontColor:"text-danger-900"},[dt.SUCCESS]:{icon:Sy,bg:"bg-success-100",border:"border-l-success-500",iconColor:"text-success-600 hover:text-success-700",fontColor:"text-success-900"}},l1=Object.entries(cp).map(([e,t])=>({type:e,icon:t.icon,color:t.iconColor,title:`Change comment type to ${e}`})),e5=({comments:e,onClose:t,isOpen:n,taskName:r,taskInstanceId:o,isLoading:i,playbookInstanceId:s,taskVerification:a})=>{const[l,c]=T.useState(""),[u,f]=T.useState(dt.INFO),[d,p]=T.useState(0),[h,g]=T.useState([]),m=T.useRef(null),{username:y}=c1(),{manageComment:v}=q4({playbookInstanceId:s}),b=()=>{const P=h.length,W=h.some(z=>!hd(z.mimeType))?"Attachment":"Image",j=P>1?"s":"";return`<p class="m-0"><span style="white-space: pre-wrap;">${W}${j} added.</span></p>`},A=P=>{const I=Array.from(P).map((W,j)=>F4(W,h.length+j+1));g(W=>[...W,...I])},w=P=>{g(I=>I.filter(W=>W.originFile!==P))},_=P=>{f(P)},E=async()=>{if(!h.length&&Ua(l)||!o)return;h.length>0&&g([]);const P=rf.sanitize(l);c(""),p(I=>I+1),await v({action:"add",comment:h.length>0&&Ua(l)?b():P,username:y||"",commentType:u,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,hasAssets:h.length>0,taskInstanceId:o,taskVerified:a,attachments:h}),f(dt.INFO)},S=async P=>{o&&await v({username:y||"",action:"delete",taskVerified:!1,taskInstanceId:o,commentId:P})},O=async({commentId:P,comment:I,commentType:W,hasAssets:j,isAlreadyVerified:z})=>{o&&await v({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(()=>{m.current&&n&&!i&&e.length>0&&(m.current.scrollTop=m.current.scrollHeight)},[n,i,e.length]),x.jsxs("div",{className:Ee("transition-all duration-300 fixed bg-white right-0 bottom-0 h-[100vh] z-[9999999998] flex flex-col min-w-[270px] max-w-[420px] w-[calc(100vw-1rem)] border border-gray-200 rounded-t-sm overflow-hidden",n?"translate-y-0 opacity-100":"translate-y-full opacity-0 pointer-events-none"),children:[x.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-gray-200 px-2 py-4 w-full",children:[x.jsx("h6",{className:"font-semibold text-gray-900 truncate max-w-[300px]",children:r}),x.jsx(je,{color:"grayLight",size:"smallCollapse",rounded:"none",title:"Close comment box",onClick:t,children:x.jsx(be,{icon:Dl,className:"size-4 text-gray-300"})})]}),x.jsxs("div",{ref:m,className:"flex flex-col flex-1 overflow-y-auto",children:[x.jsxs("div",{className:"flex flex-col justify-end flex-1 gap-4 p-4 pb-[102px]",children:[i&&x.jsx("div",{className:"flex flex-col gap-3",children:[1,2,3].map(P=>x.jsx("div",{className:"h-16 animate-pulse rounded-lg bg-gray-100"},P))}),(e==null?void 0:e.length)>0&&!i&&e.map(P=>x.jsx(XN,{username:y||"",onDelete:()=>S(P.commentId),onEdit:(I,W)=>O({commentId:P.commentId,comment:I,commentType:W,hasAssets:P.hasAssets,isAlreadyVerified:P.taskVerified}),...P},P.commentId)),(e==null?void 0:e.length)===0&&!i&&x.jsxs("div",{className:"flex flex-1 flex-col items-center justify-end gap-3 text-center mb-1",children:[x.jsx("img",{src:R4,className:"opacity-70",alt:"Empty"}),x.jsx("p",{className:"text-gray-400",children:"There is no discussion in this Task."})]})]}),x.jsx(a1,{attachments:h,onChange:c,containerClassName:"fixed bottom-0 left-0 right-0 bg-white",clearKey:d,commentType:u,onCommentTypeChange:_,onAddAttachments:A,onRemoveAttachment:w,onSubmit:E,isOpen:n,actions:x.jsx(je,{category:"link",size:"normalCollapse",title:"Send comment",onClick:E,disabled:Ua(l)&&h.length===0,children:x.jsx(be,{icon:d4})})})]})]})},Wf=T.createContext({comments:[],openTaskDetails:null,username:void 0,setOpenTaskDetails:()=>{},prefetchQuery:e=>{}}),c1=()=>{if(!T.useContext(Wf))throw new Error("useCommentContext must be used within a CommentProvider");return T.useContext(Wf)},t5=({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:l,isLoading:c,prefetchQuery:u}=B4({taskInstanceId:i||0,enabled:i!==null,username:n});return x.jsxs(Wf.Provider,{value:{comments:l,openTaskDetails:r,setOpenTaskDetails:o,prefetchQuery:u,username:n},children:[t,Tn.createPortal(x.jsxs("div",{id:"cnfdnc-comment-box-root",children:[x.jsx("style",{children:qs}),x.jsx("div",{className:"confidence-playbook",children:x.jsx(e5,{playbookInstanceId:e,comments:l,onClose:()=>o(null),isOpen:!!i,taskName:s,taskInstanceId:i,isLoading:c,taskVerification:a})})]}),p4)]})},n5={[Be.OPEN]:"border-[#C1C5C8] bg-[#F0F1F2]",[Be.IN_PROGRESS]:"bg-[#E6F2FF] border-[#94C8FF]",[Be.IN_REVIEW]:"bg-[#EAF6EC] border-[#A5DAB1]",[Be.COMPLETED]:"bg-[#EAF6EC] border-[#A5DAB1]"},Un={PHOTO:"photo",SCREENSHOT:"screenshot",COMMENT:"comment",NO_VERIFICATION:null},r5=({task:e,step:t,playbookType:n,onButtonClick:r,viewMode:o="card",canStart:i=!1,isExpanded:s=!1,toggleExpanded:a,playbookId:l,taskStyle:c,listStickyTopBase:u})=>{const[f,d]=T.useState(!1),{taskDetails:p,prefetchQuery:h}=mS({taskId:e.taskId,playbookId:l,enabled:s}),{setOpenTaskDetails:g,prefetchQuery:m}=c1(),{buttons:y}=Mw({taskStatus:e.workflowStatus,canStart:i}),v=T.useMemo(()=>e.imageRequired===0?Un.NO_VERIFICATION:e.imageRequired===1?Un.SCREENSHOT:e.imageRequired===2?Un.PHOTO:e.imageRequired===4?Un.COMMENT:null,[e.imageRequired]),b=async A=>{try{d(!0),await r(A)}finally{d(!1)}};if(o==="list"){const A=T.useMemo(()=>e.workflowStatus===Be.COMPLETED?"success":e.workflowStatus===Be.IN_PROGRESS?"primary":"default",[e.workflowStatus]),w=T.useMemo(()=>{const _=[];return y.forEach(E=>{E==="START"&&_.push({id:"START",color:"primary",action:"Start",to:Be.IN_PROGRESS}),E==="COMPLETE"&&(!e.taskVerified&&v===Un.COMMENT&&_.push({id:"ADD_COMMENT",color:"danger",action:"Add Comment",to:"Required"}),_.push({id:"COMPLETE",color:"success",action:"Complete",to:Be.COMPLETED,disabled:!e.taskVerified&&v===Un.COMMENT}))}),_},[y,v,e.taskVerified]);return x.jsxs("div",{className:Ee("flex flex-col"),children:[x.jsxs("div",{className:Ee("flex items-center gap-3 p-2 border-gray-200",e.sequenceOrder>0&&"border-t",s&&"bg-white rounded-md border border-t-none shadow-sm sticky"),style:{top:s?u:0},children:[x.jsx("div",{className:"text-gray-200 text-base",children:e.sequenceOrder+1}),x.jsx("div",{onClick:()=>{a==null||a(!s)},onMouseOver:h,className:Ee("flex-1 truncate cursor-pointer",s&&"font-medium",e.workflowStatus===Be.COMPLETED&&"text-secondary-400 line-through"),style:{color:e.workflowStatus===Be.IN_PROGRESS&&(c==null?void 0:c.titleColor)||"#1C232D"},children:e.taskInstanceName}),x.jsx(qS,{taskVerified:e.taskVerified,verificationType:v,title:e.workflowStatus,variant:A,transitions:w,onClick:_=>{if(_===ui.ADD_COMMENT){g({taskInstanceId:e.taskInstanceId,taskName:e.taskInstanceName,taskVerification:!0});return}r(_)}}),x.jsx(Kh,{onMouseOver:()=>m(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})})]}),(p==null?void 0:p.description)&&x.jsx("div",{className:Ee(!s&&"hidden","border-gray-200 border p-2 mx-4 mb-4 border-t-none -mt-[1px] bg-gray-100 rounded-b-md"),children:x.jsx(Wh,{description:(p==null?void 0:p.description)||""})})]})}return x.jsxs("div",{className:Ss("flex items-stretch rounded-sm overflow-hidden border",n5[e.workflowStatus]),children:[x.jsx(GS,{playbookType:n,status:e.workflowStatus,step:t}),x.jsxs("div",{className:"flex w-full flex-col overflow-x-hidden flex-1 p-2",children:[n==="Sequential"&&x.jsx("div",{className:"-mb-3 self-end pr-2 pt-2",children:x.jsx(JS,{status:e.workflowStatus})}),x.jsxs("div",{className:"space-y-2 divide-y divide-black/10 flex flex-col flex-1",children:[x.jsx("div",{className:Ee("text-lg font-medium flex-1 pb-1"),style:{color:e.workflowStatus==="Completed"?"#1C232D":(c==null?void 0:c.titleColor)||"#1C232D"},children:e.taskInstanceName}),v?x.jsxs("div",{className:"flex items-center gap-2 text-sm pb-2",children:[x.jsx(be,{icon:_y,className:"size-4"}),x.jsxs("div",{children:[x.jsx("span",{className:"font-medium",children:v===Un.PHOTO?"Photo":v===Un.SCREENSHOT?"Screenshot":"Comment"})," ","required"]})]}):x.jsx(x.Fragment,{})]}),(p==null?void 0:p.description)&&x.jsx("div",{className:Ee(!s&&"hidden"),children:x.jsx(Wh,{description:(p==null?void 0:p.description)||""})}),(y.length>0||e.hasDescription)&&x.jsxs("div",{className:"flex items-center justify-end gap-4 border-t border-black/10 pt-2",children:[x.jsx("div",{className:"flex-1",children:x.jsx(gS,{buttons:y,onButtonClick:b,disabled:f})}),x.jsx(Kh,{onMouseOver:()=>m(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&&x.jsx(je,{size:"smallCollapse",onMouseOver:h,category:"link",onClick:()=>{a()},title:s?"Hide task description":"Show task description",children:x.jsx(be,{icon:Ty,className:Ss("cursor-pointer text-[#0069D9]",s?"rotate-180":"")})})]})]})]})},u1=T.forwardRef(({title:e,className:t,playbookStyle:n,...r},o)=>{var i,s,a;return x.jsx("div",{ref:o,className:Ee("border-b border-gray-200 flex items-center",t),style:{backgroundColor:((i=n==null?void 0:n.whiteLabel)==null?void 0:i.titleBackgroundColor)||"#f8f9fa"},...r,children:x.jsx("div",{className:Ee("text-xl min-h-16 p-4 font-medium flex-1",{"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})})});u1.displayName="PlaybookHeader";const o5=({playbookInstanceId:e,playbookMode:t,playbookStyle:n})=>{const{playbook:r,actions:o}=Ow(e);if(!r)return x.jsx("div",{});const i=async(s,a)=>{var l;if(s===ui.COMPLETE){const c=(l=r.tasks.find(u=>u.taskInstanceId===a))==null?void 0:l.sequenceOrder;if(c===void 0){console.error("Task not found in playbook");return}return o.completeTask(a,c)}if(s===ui.START)return o.startTask(a)};return x.jsx("div",{className:"confidence-playbook",children:x.jsx(f1,{playbook:r,playbookMode:t,onTaskButtonClick:i,playbookStyle:n})})},i5=({className:e,children:t,numberOfTasks:n,playbookMode:r})=>x.jsxs("div",{className:Ee("w-full p-4",e),children:[n&&x.jsxs("div",{className:Ee(r==="card"&&"mb-4"),children:[x.jsx("span",{className:"font-medium",children:"Tasks"})," (",n,")"]}),x.jsx("div",{className:Ee(r==="card"&&"space-y-4"),children:t})]}),f1=({playbook:e,playbookMode:t,onTaskButtonClick:n,playbookStyle:r})=>{var m,y,v,b,A;const{playbookInstanceName:o,tasks:i}=e,s=T.useRef(null),[a,l]=T.useState(0),[c,u]=T.useState(!0),f=()=>{u(!c)},{isTaskExpanded:d,toggleTaskExpanded:p,isAtLeastOneTaskExpanded:h}=_0(e.playbookInstanceId,{onTaskExpanded:()=>{var w;l(((w=s.current)==null?void 0:w.offsetHeight)||0)}});T.useEffect(()=>{if(h){if(!s.current)throw new Error("Playbook header ref is not set");new ResizeObserver(_=>{var E;for(const S of _)S.contentRect&&l(((E=s.current)==null?void 0:E.offsetHeight)||0)}).observe(s.current)}return()=>{s.current&&new ResizeObserver(()=>{}).unobserve(s.current)}},[h]);const g=T.useMemo(()=>{const w=i.filter(_=>_.workflowStatus===Be.COMPLETED).sort((_,E)=>E.sequenceOrder-_.sequenceOrder)[0];return w?w.sequenceOrder+1:0},[i]);return x.jsxs("div",{className:Ee(!(r!=null&&r.overlay)&&"min-h-screen",(r==null?void 0:r.overlay)&&"fixed bottom-0 z-[9999999997] flex","transition-all duration-300 ease-in-out "),...(r==null?void 0:r.overlay)&&{style:{width:"100%",maxWidth:c?((m=r.overlay.size)==null?void 0:m.width)||450:"2.25rem",height:((y=r.overlay.size)==null?void 0:y.height)||"calc(100vh - 4rem)",maxHeight:"calc(100vh - 4rem)",right:((v=r.overlay.offset)==null?void 0:v.right)!==void 0?r.overlay.offset.right:r.overlay.position==="right"?32:void 0,left:((b=r.overlay.offset)==null?void 0:b.left)!==void 0?r.overlay.offset.left:r.overlay.position==="left"?32:void 0}},children:[(r==null?void 0:r.overlay)&&x.jsx("div",{onClick:f,className:Ee("size-9 relative p-1 top-3 z-[9999999997] border-none rounded-l-sm cursor-pointer"),style:{backgroundColor:((A=r==null?void 0:r.whiteLabel)==null?void 0:A.primaryColor)||"#007BFF",boxShadow:"0px 3px 3px 0px #00000040"},children:x.jsx("img",{src:c0,alt:"Confidence Logo",className:"w-full h-full object-contain"})}),x.jsxs("div",{className:Ee("flex flex-col flex-1 bg-gray-50",(r==null?void 0:r.overlay)&&"border border-gray-200 shadow-2xl rounded-t-sm overflow-y-auto"),children:[x.jsx(u1,{title:o,className:Ee("top-0 sticky z-2"),playbookStyle:r,ref:s}),x.jsx(i5,{playbookMode:t,numberOfTasks:e.numberofTasks,children:i.map((w,_)=>{var E;return x.jsx(r5,{task:w,step:_+1,viewMode:t,playbookId:e.playbookId,canStart:w.sequenceOrder===g,onButtonClick:S=>n(S,w.taskInstanceId),playbookType:"Non-Sequential",taskStyle:{titleColor:(E=r==null?void 0:r.whiteLabel)==null?void 0:E.primaryColor},isExpanded:d(w.taskInstanceId),toggleExpanded:()=>p(w.taskInstanceId),listStickyTopBase:a||104},w.taskId)})})]})]})},s5=({email:e,playbookId:t,playbookMode:n,playbookStyle:r,bank:o="public-sdk",timezone:i="America/Los_Angeles"})=>{const[s,a]=T.useState(null);return T.useEffect(()=>{(async()=>{const{playbookInstanceId:l,errorCode:c,details:u,message:f}=await E0({bank:o,email:e,timezone:i,playbookUid:t})||{};if(c)throw new Error(`Error initiating playbook: ${f} (Code: ${c}) - Details: ${u}`);a(l)})()},[]),s?x.jsx(Kr,{playbookInstanceId:s,playbookMode:n,playbookStyle:r,username:e}):x.jsx("div",{children:"Loading..."})},a5=({playbookId:e,playbookMode:t="list",playbookStyle:n,btnLabel:r="Start Playbook",btnColor:o="primary"})=>{const[i,s]=T.useState(null),[a,l]=T.useState(void 0);return x.jsxs(x.Fragment,{children:[x.jsxs(Cl.div,{children:[x.jsx(NC,{playbookId:e,disabled:!!i,onInitiated:(c,u)=>{s(c),l(u)},btnLabel:r,btnColor:o}),x.jsx("style",{type:"text/css",children:qs})]}),i&&x.jsx(Kr,{playbookInstanceId:i,playbookMode:t,playbookStyle:n,username:a})]})},Kr=({playbookInstanceId:e,playbookMode:t,playbookStyle:n,username:r})=>(console.log("Starting ConfidencePlaybook with instance ID:",e,r),x.jsx(A0,{children:x.jsx(t5,{playbookInstanceId:e,username:r,children:x.jsx(o5,{playbookInstanceId:e,playbookMode:t,playbookStyle:n})})}));Kr.Context=A0;Kr.View=f1;Kr.AutoInstantiated=s5;Kr.WithInstantiateButton=a5;const d1=e=>Tn.createPortal(x.jsxs(Cl.div,{style:{position:"relative",zIndex:2147483646},children:[x.jsx("style",{children:qs}),x.jsx(Kr,{...e})]}),document.body),l5=e=>Tn.createPortal(x.jsxs(Cl.div,{style:{position:"relative",zIndex:2147483646},children:[x.jsx("style",{children:qs}),x.jsx(Kr.AutoInstantiated,{...e})]}),document.body);d1.AutoInstantiated=l5;exports.ConfidencePlaybook=d1;
|