@solibo/solibo-ui 1.0.29 → 1.1.0

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.
Files changed (138) hide show
  1. package/dist/assets/index15.css +1 -1
  2. package/dist/assets/index18.css +1 -1
  3. package/dist/assets/index47.css +1 -1
  4. package/dist/components/aside/index.cjs +1 -1
  5. package/dist/components/aside/index.cjs.map +1 -1
  6. package/dist/components/aside/index.js +1 -1
  7. package/dist/components/aside/index.js.map +1 -1
  8. package/dist/components/avatar/index.cjs +1 -1
  9. package/dist/components/avatar/index.cjs.map +1 -1
  10. package/dist/components/avatar/index.js +1 -1
  11. package/dist/components/avatar/index.js.map +1 -1
  12. package/dist/components/badge/index.cjs +1 -1
  13. package/dist/components/badge/index.cjs.map +1 -1
  14. package/dist/components/badge/index.js +9 -9
  15. package/dist/components/badge/index.js.map +1 -1
  16. package/dist/components/button/index.cjs +1 -1
  17. package/dist/components/button/index.cjs.map +1 -1
  18. package/dist/components/button/index.js +7 -7
  19. package/dist/components/button/index.js.map +1 -1
  20. package/dist/components/checkbox/index.cjs +1 -1
  21. package/dist/components/checkbox/index.cjs.map +1 -1
  22. package/dist/components/checkbox/index.js +2 -2
  23. package/dist/components/checkbox/index.js.map +1 -1
  24. package/dist/components/chip/index.cjs +1 -1
  25. package/dist/components/chip/index.cjs.map +1 -1
  26. package/dist/components/chip/index.js +4 -4
  27. package/dist/components/chip/index.js.map +1 -1
  28. package/dist/components/collapsible/index.cjs +1 -1
  29. package/dist/components/collapsible/index.cjs.map +1 -1
  30. package/dist/components/collapsible/index.js +5 -5
  31. package/dist/components/collapsible/index.js.map +1 -1
  32. package/dist/components/controls/index.cjs +1 -1
  33. package/dist/components/controls/index.js +1 -1
  34. package/dist/components/croppable/index.cjs +1 -1
  35. package/dist/components/croppable/index.cjs.map +1 -1
  36. package/dist/components/croppable/index.js +21 -21
  37. package/dist/components/croppable/index.js.map +1 -1
  38. package/dist/components/dialog/index.cjs +1 -1
  39. package/dist/components/dialog/index.cjs.map +1 -1
  40. package/dist/components/dialog/index.js +13 -13
  41. package/dist/components/dialog/index.js.map +1 -1
  42. package/dist/components/dropdown/index.cjs +1 -1
  43. package/dist/components/dropdown/index.cjs.map +1 -1
  44. package/dist/components/dropdown/index.js +43 -43
  45. package/dist/components/dropdown/index.js.map +1 -1
  46. package/dist/components/dropzone/index.cjs +1 -1
  47. package/dist/components/dropzone/index.cjs.map +1 -1
  48. package/dist/components/dropzone/index.js +16 -16
  49. package/dist/components/dropzone/index.js.map +1 -1
  50. package/dist/components/editor/index.cjs +2 -2
  51. package/dist/components/editor/index.cjs.map +1 -1
  52. package/dist/components/editor/index.js +473 -473
  53. package/dist/components/editor/index.js.map +1 -1
  54. package/dist/components/file/index.cjs +1 -1
  55. package/dist/components/file/index.cjs.map +1 -1
  56. package/dist/components/file/index.js +34 -34
  57. package/dist/components/file/index.js.map +1 -1
  58. package/dist/components/header/index.cjs +1 -1
  59. package/dist/components/header/index.js +25 -25
  60. package/dist/components/icon/index.cjs +1 -1
  61. package/dist/components/icon/index.cjs.map +1 -1
  62. package/dist/components/icon/index.js +16 -16
  63. package/dist/components/icon/index.js.map +1 -1
  64. package/dist/components/input/index.cjs +1 -1
  65. package/dist/components/input/index.js +2 -2
  66. package/dist/components/list/index.cjs +1 -1
  67. package/dist/components/list/index.js +13 -13
  68. package/dist/components/menu/index.cjs +1 -1
  69. package/dist/components/menu/index.cjs.map +1 -1
  70. package/dist/components/menu/index.js +18 -18
  71. package/dist/components/menu/index.js.map +1 -1
  72. package/dist/components/message/index.cjs +1 -1
  73. package/dist/components/message/index.cjs.map +1 -1
  74. package/dist/components/message/index.js +20 -20
  75. package/dist/components/message/index.js.map +1 -1
  76. package/dist/components/messages/index.cjs +1 -1
  77. package/dist/components/messages/index.cjs.map +1 -1
  78. package/dist/components/messages/index.js +70 -39
  79. package/dist/components/messages/index.js.map +1 -1
  80. package/dist/components/nav/index.cjs +1 -1
  81. package/dist/components/nav/index.cjs.map +1 -1
  82. package/dist/components/nav/index.js +2 -2
  83. package/dist/components/nav/index.js.map +1 -1
  84. package/dist/components/portal/index.cjs +1 -1
  85. package/dist/components/portal/index.cjs.map +1 -1
  86. package/dist/components/portal/index.js +7 -7
  87. package/dist/components/portal/index.js.map +1 -1
  88. package/dist/components/search/index.cjs +1 -1
  89. package/dist/components/search/index.cjs.map +1 -1
  90. package/dist/components/search/index.js +3 -3
  91. package/dist/components/search/index.js.map +1 -1
  92. package/dist/components/select/index.cjs +1 -1
  93. package/dist/components/select/index.js +2 -2
  94. package/dist/components/table/index.cjs +1 -1
  95. package/dist/components/table/index.cjs.map +1 -1
  96. package/dist/components/table/index.js +11 -11
  97. package/dist/components/table/index.js.map +1 -1
  98. package/dist/components/toast/index.cjs +1 -1
  99. package/dist/components/toast/index.cjs.map +1 -1
  100. package/dist/components/toast/index.js +6 -6
  101. package/dist/components/toast/index.js.map +1 -1
  102. package/dist/components/tooltip/index.cjs +1 -1
  103. package/dist/components/tooltip/index.cjs.map +1 -1
  104. package/dist/components/tooltip/index.js +6 -6
  105. package/dist/components/tooltip/index.js.map +1 -1
  106. package/dist/icons-B_uIKmIp.cjs +2 -0
  107. package/dist/icons-B_uIKmIp.cjs.map +1 -0
  108. package/dist/icons-Dm2kyF0g.js +211 -0
  109. package/dist/icons-Dm2kyF0g.js.map +1 -0
  110. package/dist/{index-BAxpgMzb.js → index-DycOZMJl.js} +7 -7
  111. package/dist/index-DycOZMJl.js.map +1 -0
  112. package/dist/index-Y3jsTJhs.cjs +2 -0
  113. package/dist/index-Y3jsTJhs.cjs.map +1 -0
  114. package/dist/{index-DMGGDV9J.js → index-m3slpD7c.js} +3 -3
  115. package/dist/index-m3slpD7c.js.map +1 -0
  116. package/dist/index-rXfEqyt5.cjs +2 -0
  117. package/dist/index-rXfEqyt5.cjs.map +1 -0
  118. package/dist/index.cjs +1 -1
  119. package/dist/index.d.ts +161 -129
  120. package/dist/index.js +2 -2
  121. package/dist/{menu-popover-D1ALaiV5.cjs → menu-popover-CM3v5s-5.cjs} +2 -2
  122. package/dist/menu-popover-CM3v5s-5.cjs.map +1 -0
  123. package/dist/{menu-popover-DQHDIw-8.js → menu-popover-DOkciab5.js} +19 -19
  124. package/dist/menu-popover-DOkciab5.js.map +1 -0
  125. package/dist/tokens.json +1 -1
  126. package/package.json +3 -1
  127. package/dist/icons-BkaMeh-J.js +0 -176
  128. package/dist/icons-BkaMeh-J.js.map +0 -1
  129. package/dist/icons-Lq3pr85X.cjs +0 -2
  130. package/dist/icons-Lq3pr85X.cjs.map +0 -1
  131. package/dist/index-BAxpgMzb.js.map +0 -1
  132. package/dist/index-BOiGSTKz.cjs +0 -2
  133. package/dist/index-BOiGSTKz.cjs.map +0 -1
  134. package/dist/index-BlnG4Rbh.cjs +0 -2
  135. package/dist/index-BlnG4Rbh.cjs.map +0 -1
  136. package/dist/index-DMGGDV9J.js.map +0 -1
  137. package/dist/menu-popover-D1ALaiV5.cjs.map +0 -1
  138. package/dist/menu-popover-DQHDIw-8.js.map +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";require('../../assets/index39.css');var S0=Object.defineProperty;var T0=(n,e,t)=>e in n?S0(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Lt=(n,e,t)=>T0(n,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react/jsx-runtime"),B=require("react"),Xs=require("react-dom"),Gr=require("../../classix-5H4IWnMA.cjs"),C0=require("../file/index.cjs"),Me=require("../button/index.cjs"),je=require("../icon/index.cjs"),Qs=require("../../index-BOiGSTKz.cjs"),E0=require("../toolbar/index.cjs");function k0(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const Gu=k0(B);function xn(n){return{}}const Su={},N0={},Fa={},Ft={},ln={},Un={},cn={},nr={},hi={},zn={},$n={},Qe={},ns={},rs={},A0={},ja={},O0={},qa={},I0={},Ua={},za={},Kr={},D0={},$a={},Wa={},Ha={},P0={},L0={},M0={},Ys={},Va={},R0={},Ga={},Ka={},B0={},Tu={},us={},pi={},F0={},j0={},wr={},Sr={},q0={},U0={},z0={},Ve=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,$0=Ve&&"documentMode"in document?document.documentMode:null,qe=Ve&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Ct=Ve&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Jr=!(!Ve||!("InputEvent"in window)||$0)&&"getTargetRanges"in new window.InputEvent("input"),Cu=Ve&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),rr=Ve&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,W0=Ve&&/Android/.test(navigator.userAgent),Ja=Ve&&/^(?=.*Chrome).*/i.test(navigator.userAgent),H0=Ve&&W0&&Ja,is=Ve&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Ja,ur=1,Nt=3,qt=0,Za=1,hn=2,V0=0,G0=1,K0=2,Zr=4,Xr=8,ss=128,J0=112|(3|Zr|Xr)|ss,os=1,as=2,ls=3,cs=4,fs=5,ds=6,Eu=Cu||rr||is?" ":"​",at=`
1
+ "use strict";require('../../assets/index39.css');var S0=Object.defineProperty;var T0=(n,e,t)=>e in n?S0(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Lt=(n,e,t)=>T0(n,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react/jsx-runtime"),B=require("react"),Xs=require("react-dom"),Gr=require("../../classix-5H4IWnMA.cjs"),C0=require("../file/index.cjs"),Me=require("../button/index.cjs"),je=require("../icon/index.cjs"),Qs=require("../../index-rXfEqyt5.cjs"),E0=require("../toolbar/index.cjs");function k0(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const Gu=k0(B);function xn(n){return{}}const Su={},N0={},Fa={},Ft={},ln={},Un={},cn={},nr={},hi={},zn={},$n={},Qe={},ns={},rs={},A0={},ja={},O0={},qa={},I0={},Ua={},za={},Kr={},D0={},$a={},Wa={},Ha={},P0={},L0={},M0={},Ys={},Va={},R0={},Ga={},Ka={},B0={},Tu={},us={},pi={},F0={},j0={},wr={},Sr={},q0={},U0={},z0={},Ve=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,$0=Ve&&"documentMode"in document?document.documentMode:null,qe=Ve&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Ct=Ve&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Jr=!(!Ve||!("InputEvent"in window)||$0)&&"getTargetRanges"in new window.InputEvent("input"),Cu=Ve&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),rr=Ve&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,W0=Ve&&/Android/.test(navigator.userAgent),Ja=Ve&&/^(?=.*Chrome).*/i.test(navigator.userAgent),H0=Ve&&W0&&Ja,is=Ve&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Ja,ur=1,Nt=3,qt=0,Za=1,hn=2,V0=0,G0=1,K0=2,Zr=4,Xr=8,ss=128,J0=112|(3|Zr|Xr)|ss,os=1,as=2,ls=3,cs=4,fs=5,ds=6,Eu=Cu||rr||is?" ":"​",at=`
2
2
 
3
3
  `,Z0=Ct?" ":Eu,Xa="֑-߿יִ-﷽ﹰ-ﻼ",Qa="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",X0=new RegExp("^[^"+Qa+"]*["+Xa+"]"),Q0=new RegExp("^[^"+Xa+"]*["+Qa+"]"),Ut={bold:1,code:16,highlight:ss,italic:2,strikethrough:Zr,subscript:32,superscript:64,underline:Xr},Y0={directionless:1,unmergeable:2},eo={center:as,end:ds,justify:cs,left:os,right:ls,start:fs},ef={[as]:"center",[ds]:"end",[cs]:"justify",[os]:"left",[ls]:"right",[fs]:"start"},tf={normal:0,segmented:2,token:1},nf={[V0]:"normal",[K0]:"segmented",[G0]:"token"};function rf(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var M=rf(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function Qr(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}const uf=100;let gi=!1,hs=0;function sf(n){hs=n.timeStamp}function Ku(n,e,t){const r=n.nodeName==="BR",u=e.__lexicalLineBreak;return u&&(n===u||r&&n.previousSibling===u)||r&&Nu(n,t)!==void 0}function of(n,e,t){const r=Fe(t._window);let u=null,i=null;r!==null&&r.anchorNode===n&&(u=r.anchorOffset,i=r.focusOffset);const s=n.nodeValue;s!==null&&ys(e,s,u,i,!1)}function af(n,e,t){if(P(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return e.nodeType===Nt&&t.isAttached()}function lf(n,e,t,r){for(let u=n;u&&!Sf(u);u=sr(u)){const i=Nu(u,e);if(i!==void 0){const s=he(i,t);if(s)return se(s)?void 0:[u,s]}else if(u===r)return[r,ol(t)]}}function Ya(n,e,t){gi=!0;const r=performance.now()-hs>uf;try{Ne(n,()=>{const u=z()||function(c){return c.getEditorState().read(()=>{const d=z();return d!==null?d.clone():null})}(n),i=new Map,s=n.getRootElement(),o=n._editorState,a=n._blockCursorElement;let l=!1,f="";for(let c=0;c<e.length;c++){const d=e[c],p=d.type,m=d.target,g=lf(m,n,o,s);if(!g)continue;const[y,b]=g;if(p==="characterData")r&&L(b)&&af(u,m,b)&&of(m,b,n);else if(p==="childList"){l=!0;const v=d.addedNodes;for(let S=0;S<v.length;S++){const I=v[S],T=il(I),D=I.parentNode;if(D!=null&&I!==a&&T===null&&!Ku(I,D,n)){if(Ct){const $=I.innerText||I.nodeValue;$&&(f+=$)}D.removeChild(I)}}const w=d.removedNodes,C=w.length;if(C>0){let S=0;for(let I=0;I<C;I++){const T=w[I];(Ku(T,m,n)||a===T)&&(m.appendChild(T),S++)}C!==S&&i.set(y,b)}}}if(i.size>0)for(const[c,d]of i)d.reconcileObservedMutation(c,n);const h=t.takeRecords();if(h.length>0){for(let c=0;c<h.length;c++){const d=h[c],p=d.addedNodes,m=d.target;for(let g=0;g<p.length;g++){const y=p[g],b=y.parentNode;b==null||y.nodeName!=="BR"||Ku(y,m,n)||b.removeChild(y)}}t.takeRecords()}u!==null&&(l&&(u.dirty=!0,Be(u)),Ct&&fl(n)&&u.insertRawText(f))})}finally{gi=!1}}function el(n){const e=n._observer;e!==null&&Ya(n,e.takeRecords(),e)}function tl(n){(function(e){hs===0&&Ou(e).addEventListener("textInput",sf,!0)})(n),n._observer=new MutationObserver((e,t)=>{Ya(n,e,t)})}function to(n,e){const t=n.__mode,r=n.__format,u=n.__style,i=e.__mode,s=e.__format,o=e.__style;return!(t!==null&&t!==i||r!==null&&r!==s||u!==null&&u!==o)}function no(n,e){const t=n.mergeWithSibling(e),r=ae()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function ro(n){let e,t,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&L(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(to(e,r)){r=no(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&L(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(to(r,t)){r=no(r,t);break}break}t.remove()}}else r.remove()}function nl(n){return uo(n.anchor),uo(n.focus),n}function uo(n){for(;n.type==="element";){const e=n.getNode(),t=n.offset;let r,u;if(t===e.getChildrenSize()?(r=e.getChildAtIndex(t-1),u=!0):(r=e.getChildAtIndex(t),u=!1),L(r)){n.set(r.__key,u?r.getTextContentSize():0,"text");break}if(!E(r))break;n.set(r.__key,u?r.getChildrenSize():0,"element")}}let cf=1;const ff=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function ps(n){const e=document.activeElement;if(e===null)return!1;const t=e.nodeName;return se(pn(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&ku(e)==null)}function ir(n,e,t){const r=n.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(t)&&e!==null&&!ps(e)&&rl(e)===n}catch{return!1}}function gs(n){return n instanceof Ru}function rl(n){let e=n;for(;e!=null;){const t=ku(e);if(gs(t))return t;e=sr(e)}return null}function ku(n){return n?n.__lexicalEditor:null}function Rt(n){return n.isToken()||n.isSegmented()}function df(n){return n.nodeType===Nt}function Yr(n){let e=n;for(;e!=null;){if(df(e))return e;e=e.firstChild}return null}function eu(n,e,t){const r=Ut[e];if(t!==null&&(n&r)==(t&r))return n;let u=n^r;return e==="subscript"?u&=-65:e==="superscript"&&(u&=-33),u}function ul(n){return L(n)||Et(n)||se(n)}function hf(n,e){if(e!=null)return void(n.__key=e);Te(),Il();const t=ae(),r=dt(),u=""+cf++;r._nodeMap.set(u,n),E(n)?t._dirtyElements.set(u,!0):t._dirtyLeaves.add(u),t._cloneNotNeeded.add(u),t._dirtyType=Za,n.__key=u}function jt(n){const e=n.getParent();if(e!==null){const t=n.getWritable(),r=e.getWritable(),u=n.getPreviousSibling(),i=n.getNextSibling();if(u===null)if(i!==null){const s=i.getWritable();r.__first=i.__key,s.__prev=null}else r.__first=null;else{const s=u.getWritable();if(i!==null){const o=i.getWritable();o.__prev=s.__key,s.__next=o.__key}else s.__next=null;t.__prev=null}if(i===null)if(u!==null){const s=u.getWritable();r.__last=u.__key,s.__next=null}else r.__last=null;else{const s=i.getWritable();if(u!==null){const o=u.getWritable();o.__next=s.__key,s.__prev=o.__key}else s.__prev=null;t.__next=null}r.__size--,t.__parent=null}}function tu(n){Il();const e=n.getLatest(),t=e.__parent,r=dt(),u=ae(),i=r._nodeMap,s=u._dirtyElements;t!==null&&function(a,l,f){let h=a;for(;h!==null;){if(f.has(h))return;const c=l.get(h);if(c===void 0)break;f.set(h,!1),h=c.__parent}}(t,i,s);const o=e.__key;u._dirtyType=Za,E(n)?s.set(o,!0):u._dirtyLeaves.add(o)}function be(n){Te();const e=ae(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=he(t);r!==null&&r.getWritable()}if(n!==null){const r=he(n);r!==null&&r.getWritable()}}}function vt(){return fr()?null:ae()._compositionKey}function he(n,e){const t=(e||dt())._nodeMap.get(n);return t===void 0?null:t}function il(n,e){const t=Nu(n,ae());return t!==void 0?he(t,e):null}function Nu(n,e){return n[`__lexicalKey_${e._key}`]}function pn(n,e){let t=n;for(;t!=null;){const r=il(t,e);if(r!==null)return r;t=sr(t)}return null}function sl(n){const e=n._decorators,t=Object.assign({},e);return n._pendingDecorators=t,t}function io(n){return n.read(()=>fe().getTextContent())}function fe(){return ol(dt())}function ol(n){return n._nodeMap.get("root")}function Be(n){Te();const e=dt();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),e._selection=n}function on(n){const e=ae(),t=function(r,u){let i=r;for(;i!=null;){const s=Nu(i,u);if(s!==void 0)return s;i=sr(i)}return null}(n,e);return t===null?n===e.getRootElement()?he("root"):null:he(t)}function so(n,e){return e?n.getTextContentSize():0}function al(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function ms(n){const e=[];let t=n;for(;t!==null;)e.push(t),t=t._parentEditor;return e}function ll(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function cl(n){return n.nodeType===Nt?n.nodeValue:null}function bs(n,e,t){const r=Fe(e._window);if(r===null)return;const u=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(u!==null){let o=cl(u);const a=pn(u);if(o!==null&&L(a)){if(o===Eu&&t){const l=t.length;o=t,i=l,s=l}o!==null&&ys(a,o,i,s,n)}}}function ys(n,e,t,r,u){let i=n;if(i.isAttached()&&(u||!i.isDirty())){const s=i.isComposing();let o=e;(s||u)&&e[e.length-1]===Eu&&(o=e.slice(0,-1));const a=i.getTextContent();if(u||o!==a){if(o===""){if(be(null),Cu||rr||is)i.remove();else{const m=ae();setTimeout(()=>{m.update(()=>{i.isAttached()&&i.remove()})},20)}return}const l=i.getParent(),f=cr(),h=i.getTextContentSize(),c=vt(),d=i.getKey();if(i.isToken()||c!==null&&d===c&&!s||P(f)&&(l!==null&&!l.canInsertTextBefore()&&f.anchor.offset===0||f.anchor.key===n.__key&&f.anchor.offset===0&&!i.canInsertTextBefore()&&!s||f.focus.key===n.__key&&f.focus.offset===h&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const p=z();if(!P(p)||t===null||r===null)return void i.setTextContent(o);if(p.setTextNodeRange(i,t,i,r),i.isSegmented()){const m=ce(i.getTextContent());i.replace(m),i=m}i.setTextContent(o)}}}function pf(n,e){if(e.isSegmented())return!0;if(!n.isCollapsed())return!1;const t=n.anchor.offset,r=e.getParentOrThrow(),u=e.isToken();return t===0?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||u||function(i){const s=i.getPreviousSibling();return(L(s)||E(s)&&s.isInline())&&!s.canInsertTextAfter()}(e):t===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||u)}function oo(n){return n==="ArrowLeft"}function ao(n){return n==="ArrowRight"}function Dn(n,e){return qe?n:e}function lo(n){return n==="Enter"}function Cn(n){return n==="Backspace"}function En(n){return n==="Delete"}function co(n,e,t){return n.toLowerCase()==="a"&&Dn(e,t)}function gf(){const n=fe();Be(nl(n.select(0,n.getChildrenSize())))}function Ln(n,e){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const t=n.__lexicalClassNameCache,r=t[e];if(r!==void 0)return r;const u=n[e];if(typeof u=="string"){const i=Qr(u);return t[e]=i,i}return u}function _s(n,e,t,r,u){if(t.size===0)return;const i=r.__type,s=r.__key,o=e.get(i);o===void 0&&M(33,i);const a=o.klass;let l=n.get(a);l===void 0&&(l=new Map,n.set(a,l));const f=l.get(s),h=f==="destroyed"&&u==="created";(f===void 0||h)&&l.set(s,h?"updated":u)}function fo(n,e,t){const r=n.getParent();let u=t,i=n;return r!==null&&(e&&t===0?(u=i.getIndexWithinParent(),i=r):e||t!==i.getChildrenSize()||(u=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(e?u-1:u)}function Wn(n,e){const t=n.offset;if(n.type==="element")return fo(n.getNode(),e,t);{const r=n.getNode();if(e&&t===0||!e&&t===r.getTextContentSize()){const u=e?r.getPreviousSibling():r.getNextSibling();return u===null?fo(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):u}}return null}function fl(n){const e=Ou(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function q(n,e,t){return Ll(n,e,t)}function Au(n){return!ve(n)&&!n.isLastChild()&&!n.isInline()}function nu(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&M(75,e),t}function sr(n){const e=n.assignedSlot||n.parentElement;return e!==null&&e.nodeType===11?e.host:e}function Mn(n,e){let t=n.getParent();for(;t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function Ou(n){const e=n._window;return e===null&&M(78),e}function mf(n){let e=n.getParentOrThrow();for(;e!==null;){if(lt(e))return e;e=e.getParentOrThrow()}return e}function lt(n){return ve(n)||E(n)&&n.isShadowRoot()}function At(n){const e=ae(),t=n.constructor.getType(),r=e._nodes.get(t);r===void 0&&M(200,n.constructor.name,t);const{replace:u,replaceWithKlass:i}=r;if(u!==null){const s=u(n),o=s.constructor;return i!==null?s instanceof i||M(201,i.name,i.getType(),o.name,o.getType(),n.constructor.name,t):s instanceof n.constructor&&o!==n.constructor||M(202,o.name,o.getType(),n.constructor.name,t),s.__key===n.__key&&M(203,n.constructor.name,t,o.name,o.getType()),s}return n}function Ju(n,e){!ve(n.getParent())||E(e)||se(e)||M(99)}function Zu(n){return(se(n)||E(n)&&!n.canBeEmpty())&&!n.isInline()}function xs(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function bf(n,e,t){let r=n._blockCursorElement;if(P(t)&&t.isCollapsed()&&t.anchor.type==="element"&&e.contains(document.activeElement)){const u=t.anchor,i=u.getNode(),s=u.offset;let o=!1,a=null;if(s===i.getChildrenSize())Zu(i.getChildAtIndex(s-1))&&(o=!0);else{const l=i.getChildAtIndex(s);if(l!==null&&Zu(l)){const f=l.getPreviousSibling();(f===null||Zu(f))&&(o=!0,a=n.getElementByKey(l.__key))}}if(o){const l=n.getElementByKey(i.__key);return r===null&&(n._blockCursorElement=r=function(f){const h=f.theme,c=document.createElement("div");c.contentEditable="false",c.setAttribute("data-lexical-cursor","true");let d=h.blockCursor;if(d!==void 0){if(typeof d=="string"){const p=Qr(d);d=h.blockCursor=p}d!==void 0&&c.classList.add(...d)}return c}(n._config)),e.style.caretColor="transparent",void(a===null?l.appendChild(r):l.insertBefore(r,a))}}r!==null&&xs(r,n,e)}function Fe(n){return Ve?(n||window).getSelection():null}function yf(n){return Kt(n)&&n.tagName==="A"}function Kt(n){return n.nodeType===1}function ho(n){return n.nodeType===11}function mi(n){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return n.nodeName.match(e)!==null}function ru(n){const e=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 n.nodeName.match(e)!==null}function _t(n){if(se(n)&&!n.isInline())return!0;if(!E(n)||lt(n))return!1;const e=n.getFirstChild(),t=e===null||Et(e)||L(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function kn(n,e){let t=n;for(;t!==null&&t.getParent()!==null&&!e(t);)t=t.getParentOrThrow();return e(t)?t:null}function _f(){return ae()}const po=new WeakMap,xf=new Map;function vf(n){if(!n._readOnly&&n.isEmpty())return xf;n._readOnly||M(192);let e=po.get(n);if(!e){e=new Map,po.set(n,e);for(const[t,r]of n._nodeMap){const u=r.__type;let i=e.get(u);i||(i=new Map,e.set(u,i)),i.set(t,r)}}return e}function vs(n){const e=n.constructor.clone(n);return e.afterCloneFrom(n),e}function wf(n,e){const t=(parseInt(n.style.paddingInlineStart,10)||0)/40;e.setIndent(t)}function Sf(n){return n.__lexicalUnmanaged===!0}function dl(n,e,t,r,u,i){let s=n.getFirstChild();for(;s!==null;){const o=s.__key;s.__parent===e&&(E(s)&&dl(s,o,t,r,u,i),t.has(o)||i.delete(o),u.push(o)),s=s.getNextSibling()}}let kt,we,Hn,Iu,bi,yi,zt,He,_i,Vn,de="",xe="",Je=null,Ue="",st="",hl=!1,Gn=!1,qr=null;function uu(n,e){const t=zt.get(n);if(e!==null){const r=wi(n);r.parentNode===e&&e.removeChild(r)}if(He.has(n)||we._keyToDOMMap.delete(n),E(t)){const r=su(t,zt);xi(r,0,r.length-1,null)}t!==void 0&&_s(Vn,Hn,Iu,t,"destroyed")}function xi(n,e,t,r){let u=e;for(;u<=t;++u){const i=n[u];i!==void 0&&uu(i,r)}}function Mt(n,e){n.setProperty("text-align",e)}const Tf="40px";function pl(n,e){const t=kt.theme.indent;if(typeof t=="string"){const u=n.classList.contains(t);e>0&&!u?n.classList.add(t):e<1&&u&&n.classList.remove(t)}const r=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||Tf;n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function gl(n,e){const t=n.style;e===0?Mt(t,""):e===os?Mt(t,"left"):e===as?Mt(t,"center"):e===ls?Mt(t,"right"):e===cs?Mt(t,"justify"):e===fs?Mt(t,"start"):e===ds&&Mt(t,"end")}function iu(n,e){const t=He.get(n);t===void 0&&M(60);const r=t.createDOM(kt,we);if(function(u,i,s){const o=s._keyToDOMMap;(function(a,l,f){a[`__lexicalKey_${l._key}`]=f})(i,s,u),o.set(u,i)}(n,r,we),L(t)?r.setAttribute("data-lexical-text","true"):se(t)&&r.setAttribute("data-lexical-decorator","true"),E(t)){const u=t.__indent,i=t.__size;if(u!==0&&pl(r,u),i!==0){const o=i-1;(function(a,l,f,h){const c=xe;xe="",vi(a,f,0,l,f.getDOMSlot(h)),bl(f,h),xe=c})(su(t,He),o,t,r)}const s=t.__format;s!==0&&gl(r,s),t.isInline()||ml(null,t,r),Au(t)&&(de+=at,st+=at)}else{const u=t.getTextContent();if(se(t)){const i=t.decorate(we,kt);i!==null&&yl(n,i),r.contentEditable="false"}else L(t)&&(t.isDirectionless()||(xe+=u));de+=u,st+=u}return e!==null&&e.insertChild(r),_s(Vn,Hn,Iu,t,"created"),r}function vi(n,e,t,r,u){const i=de;de="";let s=t;for(;s<=r;++s){iu(n[s],u);const o=He.get(n[s]);o!==null&&L(o)&&(Je===null&&(Je=o.getFormat()),Ue===""&&(Ue=o.getStyle()))}Au(e)&&(de+=at),u.element.__lexicalTextContent=de,de=i+de}function go(n,e){if(n){const t=n.__last;if(t){const r=e.get(t);if(r)return Et(r)?"line-break":se(r)&&r.isInline()?"decorator":null}return"empty"}return null}function ml(n,e,t){const r=go(n,zt),u=go(e,He);r!==u&&e.getDOMSlot(t).setManagedLineBreak(u)}function bl(n,e){const t=e.__lexicalDirTextContent||"",r=e.__lexicalDir||"";if(t!==xe||r!==qr){const i=xe==="",s=i?qr:(u=xe,X0.test(u)?"rtl":Q0.test(u)?"ltr":null);if(s!==r){const o=e.classList,a=kt.theme;let l=r!==null?a[r]:void 0,f=s!==null?a[s]:void 0;if(l!==void 0){if(typeof l=="string"){const h=Qr(l);l=a[r]=h}o.remove(...l)}if(s===null||i&&s==="ltr")e.removeAttribute("dir");else{if(f!==void 0){if(typeof f=="string"){const h=Qr(f);f=a[s]=h}f!==void 0&&o.add(...f)}e.dir=s}Gn||(n.getWritable().__dir=s)}qr=s,e.__lexicalDirTextContent=xe,e.__lexicalDir=s}var u}function Cf(n,e,t){const r=xe;var u;xe="",Je=null,Ue="",function(i,s,o){const a=de,l=i.__size,f=s.__size;de="";const h=o.element;if(l===1&&f===1){const c=i.__first,d=s.__first;if(c===d)Pn(c,h);else{const m=wi(c),g=iu(d,null);try{h.replaceChild(g,m)}catch(y){if(typeof y=="object"&&y!=null){const b=`${y.toString()} Parent: ${h.tagName}, new child: {tag: ${g.tagName} key: ${d}}, old child: {tag: ${m.tagName}, key: ${c}}.`;throw new Error(b)}throw y}uu(c,null)}const p=He.get(d);L(p)&&(Je===null&&(Je=p.getFormat()),Ue===""&&(Ue=p.getStyle()))}else{const c=su(i,zt),d=su(s,He);if(c.length!==l&&M(227),d.length!==f&&M(228),l===0)f!==0&&vi(d,s,0,f-1,o);else if(f===0){if(l!==0){const p=o.after==null&&o.before==null&&o.element.__lexicalLineBreak==null;xi(c,0,l-1,p?null:h),p&&(h.textContent="")}}else(function(p,m,g,y,b,v){const w=y-1,C=b-1;let S,I,T=v.getFirstChild(),D=0,$=0;for(;D<=w&&$<=C;){const A=m[D],R=g[$];if(A===R)T=Xu(Pn(R,v.element)),D++,$++;else{S===void 0&&(S=new Set(m)),I===void 0&&(I=new Set(g));const O=I.has(A),N=S.has(R);if(O)if(N){const U=nu(we,R);U===T?T=Xu(Pn(R,v.element)):(v.withBefore(T).insertChild(U),Pn(R,v.element)),D++,$++}else iu(R,v.withBefore(T)),$++;else T=Xu(wi(A)),uu(A,v.element),D++}const _=He.get(R);_!==null&&L(_)&&(Je===null&&(Je=_.getFormat()),Ue===""&&(Ue=_.getStyle()))}const x=D>w,k=$>C;if(x&&!k){const A=g[C+1],R=A===void 0?null:we.getElementByKey(A);vi(g,p,$,C,v.withBefore(R))}else k&&!x&&xi(m,D,w,v.element)})(s,c,d,l,f,o)}Au(s)&&(de+=at),h.__lexicalTextContent=de,de=a+de}(n,e,e.getDOMSlot(t)),bl(e,t),Wt(u=e)&&Je!=null&&Je!==u.__textFormat&&!Gn&&(u.setTextFormat(Je),u.setTextStyle(Ue)),function(i){Wt(i)&&Ue!==""&&Ue!==i.__textStyle&&!Gn&&i.setTextStyle(Ue)}(e),xe=r}function su(n,e){const t=[];let r=n.__first;for(;r!==null;){const u=e.get(r);u===void 0&&M(101),t.push(r),r=u.__next}return t}function Pn(n,e){const t=zt.get(n);let r=He.get(n);t!==void 0&&r!==void 0||M(61);const u=hl||yi.has(n)||bi.has(n),i=nu(we,n);if(t===r&&!u){if(E(t)){const s=i.__lexicalTextContent;s!==void 0&&(de+=s,st+=s);const o=i.__lexicalDirTextContent;o!==void 0&&(xe+=o)}else{const s=t.getTextContent();L(t)&&!t.isDirectionless()&&(xe+=s),st+=s,de+=s}return i}if(t!==r&&u&&_s(Vn,Hn,Iu,r,"updated"),r.updateDOM(t,i,kt)){const s=iu(n,null);return e===null&&M(62),e.replaceChild(s,i),uu(n,null),s}if(E(t)&&E(r)){const s=r.__indent;s!==t.__indent&&pl(i,s);const o=r.__format;o!==t.__format&&gl(i,o),u&&(Cf(t,r,i),ve(r)||r.isInline()||ml(t,r,i)),Au(r)&&(de+=at,st+=at)}else{const s=r.getTextContent();if(se(r)){const o=r.decorate(we,kt);o!==null&&yl(n,o)}else L(r)&&!r.isDirectionless()&&(xe+=s);de+=s,st+=s}if(!Gn&&ve(r)&&r.__cachedText!==st){const s=r.getWritable();s.__cachedText=st,r=s}return i}function yl(n,e){let t=we._pendingDecorators;const r=we._decorators;if(t===null){if(r[n]===e)return;t=sl(we)}t[n]=e}function Xu(n){let e=n.nextSibling;return e!==null&&e===we._blockCursorElement&&(e=e.nextSibling),e}function Ef(n,e,t,r,u,i){de="",st="",xe="",hl=r===hn,qr=null,we=t,kt=t._config,Hn=t._nodes,Iu=we._listeners.mutation,bi=u,yi=i,zt=n._nodeMap,He=e._nodeMap,Gn=e._readOnly,_i=new Map(t._keyToDOMMap);const s=new Map;return Vn=s,Pn("root",null),we=void 0,Hn=void 0,bi=void 0,yi=void 0,zt=void 0,He=void 0,kt=void 0,_i=void 0,Vn=void 0,s}function wi(n){const e=_i.get(n);return e===void 0&&M(75,n),e}const nt=Object.freeze({}),Si=30,Ti=[["keydown",function(n,e){if(Rn=n.timeStamp,_l=n.key,e.isComposing())return;const{key:t,shiftKey:r,ctrlKey:u,metaKey:i,altKey:s}=n;if(!q(e,A0,n)&&t!=null){if(function(o,a,l,f){return ao(o)&&!a&&!f&&!l}(t,u,s,i))q(e,ja,n);else if(function(o,a,l,f,h){return ao(o)&&!f&&!l&&(a||h)}(t,u,r,s,i))q(e,O0,n);else if(function(o,a,l,f){return oo(o)&&!a&&!f&&!l}(t,u,s,i))q(e,qa,n);else if(function(o,a,l,f,h){return oo(o)&&!f&&!l&&(a||h)}(t,u,r,s,i))q(e,I0,n);else if(function(o,a,l){return function(f){return f==="ArrowUp"}(o)&&!a&&!l}(t,u,i))q(e,Ua,n);else if(function(o,a,l){return function(f){return f==="ArrowDown"}(o)&&!a&&!l}(t,u,i))q(e,za,n);else if(function(o,a){return lo(o)&&a}(t,r))Bn=!0,q(e,Kr,n);else if(function(o){return o===" "}(t))q(e,D0,n);else if(function(o,a){return qe&&a&&o.toLowerCase()==="o"}(t,u))n.preventDefault(),Bn=!0,q(e,ln,!0);else if(function(o,a){return lo(o)&&!a}(t,r))Bn=!1,q(e,Kr,n);else if(function(o,a,l,f){return qe?!a&&!l&&(Cn(o)||o.toLowerCase()==="h"&&f):!(f||a||l)&&Cn(o)}(t,s,i,u))Cn(t)?q(e,$a,n):(n.preventDefault(),q(e,Ft,!0));else if(function(o){return o==="Escape"}(t))q(e,Wa,n);else if(function(o,a,l,f,h){return qe?!(l||f||h)&&(En(o)||o.toLowerCase()==="d"&&a):!(a||f||h)&&En(o)}(t,u,r,s,i))En(t)?q(e,Ha,n):(n.preventDefault(),q(e,Ft,!1));else if(function(o,a,l){return Cn(o)&&(qe?a:l)}(t,s,u))n.preventDefault(),q(e,zn,!0);else if(function(o,a,l){return En(o)&&(qe?a:l)}(t,s,u))n.preventDefault(),q(e,zn,!1);else if(function(o,a){return qe&&a&&Cn(o)}(t,i))n.preventDefault(),q(e,$n,!0);else if(function(o,a){return qe&&a&&En(o)}(t,i))n.preventDefault(),q(e,$n,!1);else if(function(o,a,l,f){return o.toLowerCase()==="b"&&!a&&Dn(l,f)}(t,s,i,u))n.preventDefault(),q(e,Qe,"bold");else if(function(o,a,l,f){return o.toLowerCase()==="u"&&!a&&Dn(l,f)}(t,s,i,u))n.preventDefault(),q(e,Qe,"underline");else if(function(o,a,l,f){return o.toLowerCase()==="i"&&!a&&Dn(l,f)}(t,s,i,u))n.preventDefault(),q(e,Qe,"italic");else if(function(o,a,l,f){return o==="Tab"&&!a&&!l&&!f}(t,s,u,i))q(e,P0,n);else if(function(o,a,l,f){return o.toLowerCase()==="z"&&!a&&Dn(l,f)}(t,r,i,u))n.preventDefault(),q(e,ns,void 0);else if(function(o,a,l,f){return qe?o.toLowerCase()==="z"&&l&&a:o.toLowerCase()==="y"&&f||o.toLowerCase()==="z"&&f&&a}(t,r,i,u))n.preventDefault(),q(e,rs,void 0);else{const o=e._editorState._selection;o===null||P(o)?!Ct&&co(t,i,u)&&(n.preventDefault(),q(e,pi,n)):function(a,l,f,h){return!l&&a.toLowerCase()==="c"&&(qe?f:h)}(t,r,i,u)?(n.preventDefault(),q(e,Tu,n)):function(a,l,f,h){return!l&&a.toLowerCase()==="x"&&(qe?f:h)}(t,r,i,u)?(n.preventDefault(),q(e,us,n)):co(t,i,u)&&(n.preventDefault(),q(e,pi,n))}(function(o,a,l,f){return o||a||l||f})(u,r,s,i)&&q(e,z0,n)}}],["pointerdown",function(n,e){const t=n.target,r=n.pointerType;t instanceof Node&&r!=="touch"&&Ne(e,()=>{se(pn(t))||(Ei=!0)})}],["compositionstart",function(n,e){Ne(e,()=>{const t=z();if(P(t)&&!e.isComposing()){const r=t.anchor,u=t.anchor.getNode();be(r.key),(n.timeStamp<Rn+Si||r.type==="element"||!t.isCollapsed()||u.getFormat()!==t.format||L(u)&&u.getStyle()!==t.style)&&q(e,cn,Z0)}})}],["compositionend",function(n,e){Ct?Nn=!0:Ne(e,()=>{Qu(e,n.data)})}],["input",function(n,e){n.stopPropagation(),Ne(e,()=>{const t=z(),r=n.data,u=Sl(n);if(r!=null&&P(t)&&wl(t,u,r,n.timeStamp,!1)){Nn&&(Qu(e,r),Nn=!1);const i=t.anchor.getNode(),s=Fe(e._window);if(s===null)return;const o=t.isBackward(),a=o?t.anchor.offset:t.focus.offset,l=o?t.focus.offset:t.anchor.offset;Jr&&!t.isCollapsed()&&L(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+l)===cl(s.anchorNode)||q(e,cn,r);const f=r.length;Ct&&f>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(t.anchor.offset-=f),Cu||rr||is||!e.isComposing()||(Rn=0,be(null))}else bs(!1,e,r!==null?r:void 0),Nn&&(Qu(e,r||void 0),Nn=!1);Te(),el(ae())}),rn=null}],["click",function(n,e){Ne(e,()=>{const t=z(),r=Fe(e._window),u=cr();if(r){if(P(t)){const i=t.anchor,s=i.getNode();i.type==="element"&&i.offset===0&&t.isCollapsed()&&!ve(s)&&fe().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&u!==null&&t.is(u)?(r.removeAllRanges(),t.dirty=!0):n.detail===3&&!t.isCollapsed()&&s!==t.focus.getNode()&&(E(s)?s.select(0):s.getParentOrThrow().select(0))}else if(n.pointerType==="touch"){const i=r.anchorNode;if(i!==null){const s=i.nodeType;(s===ur||s===Nt)&&Be(Ss(u,r,e,n))}}}q(e,Fa,n)})}],["cut",nt],["copy",nt],["dragstart",nt],["dragover",nt],["dragend",nt],["paste",nt],["focus",nt],["blur",nt],["drop",nt]];Jr&&Ti.push(["beforeinput",(n,e)=>function(t,r){const u=t.inputType,i=Sl(t);u==="deleteCompositionText"||Ct&&fl(r)||u!=="insertCompositionText"&&Ne(r,()=>{const s=z();if(u==="deleteContentBackward"){if(s===null){const d=cr();if(!P(d))return;Be(d.clone())}if(P(s)){const d=s.anchor.key===s.focus.key;if(o=t.timeStamp,_l==="MediaLast"&&o<Rn+Si&&r.isComposing()&&d){if(be(null),Rn=0,setTimeout(()=>{Ne(r,()=>{be(null)})},Si),P(s)){const p=s.anchor.getNode();p.markDirty(),s.format=p.getFormat(),L(p)||M(142),s.style=p.getStyle()}}else{be(null),t.preventDefault();const p=s.anchor.getNode(),m=p.getTextContent(),g=p.canInsertTextAfter(),y=s.anchor.offset===0&&s.focus.offset===m.length;H0&&d&&!y&&g||q(r,Ft,!0)}return}}var o;if(!P(s))return;const a=t.data;rn!==null&&bs(!1,r,rn),s.dirty&&rn===null||!s.isCollapsed()||ve(s.anchor.getNode())||i===null||s.applyDOMRange(i),rn=null;const l=s.anchor,f=s.focus,h=l.getNode(),c=f.getNode();if(u!=="insertText"&&u!=="insertTranspose")switch(t.preventDefault(),u){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":q(r,cn,t);break;case"insertFromComposition":be(null),q(r,cn,t);break;case"insertLineBreak":be(null),q(r,ln,!1);break;case"insertParagraph":be(null),Bn&&!rr?(Bn=!1,q(r,ln,!1)):q(r,Un,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":q(r,nr,t);break;case"deleteByComposition":(function(d,p){return d!==p||E(d)||E(p)||!d.isToken()||!p.isToken()})(h,c)&&q(r,hi,t);break;case"deleteByDrag":case"deleteByCut":q(r,hi,t);break;case"deleteContent":q(r,Ft,!1);break;case"deleteWordBackward":q(r,zn,!0);break;case"deleteWordForward":q(r,zn,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":q(r,$n,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":q(r,$n,!1);break;case"formatStrikeThrough":q(r,Qe,"strikethrough");break;case"formatBold":q(r,Qe,"bold");break;case"formatItalic":q(r,Qe,"italic");break;case"formatUnderline":q(r,Qe,"underline");break;case"historyUndo":q(r,ns,void 0);break;case"historyRedo":q(r,rs,void 0)}else{if(a===`
4
4
  `)t.preventDefault(),q(r,ln,!1);else if(a===at)t.preventDefault(),q(r,Un,void 0);else if(a==null&&t.dataTransfer){const d=t.dataTransfer.getData("text/plain");t.preventDefault(),s.insertRawText(d)}else a!=null&&wl(s,i,a,t.timeStamp,!0)?(t.preventDefault(),q(r,cn,a)):rn=a;xl=t.timeStamp}})}(n,e)]);let Rn=0,_l=null,xl=0,rn=null;const ou=new WeakMap;let Ci=!1,Ei=!1,Bn=!1,Nn=!1,vl=[0,"",0,"root",0];function wl(n,e,t,r,u){const i=n.anchor,s=n.focus,o=i.getNode(),a=ae(),l=Fe(a._window),f=l!==null?l.anchorNode:null,h=i.key,c=a.getElementByKey(h),d=t.length;return h!==s.key||!L(o)||(!u&&(!Jr||xl<r+50)||o.isDirty()&&d<2||al(t))&&i.offset!==s.offset&&!o.isComposing()||Rt(o)||o.isDirty()&&d>1||(u||!Jr)&&c!==null&&!o.isComposing()&&f!==Yr(c)||l!==null&&e!==null&&(!e.collapsed||e.startContainer!==l.anchorNode||e.startOffset!==l.anchorOffset)||o.getFormat()!==n.format||o.getStyle()!==n.style||pf(n,o)}function mo(n,e){return n!==null&&n.nodeValue!==null&&n.nodeType===Nt&&e!==0&&e!==n.nodeValue.length}function bo(n,e,t){const{anchorNode:r,anchorOffset:u,focusNode:i,focusOffset:s}=n;Ci&&(Ci=!1,mo(r,u)&&mo(i,s))||Ne(e,()=>{if(!t)return void Be(null);if(!ir(e,r,i))return;const o=z();if(P(o)){const a=o.anchor,l=a.getNode();if(o.isCollapsed()){n.type==="Range"&&n.anchorNode===n.focusNode&&(o.dirty=!0);const f=Ou(e).event,h=f?f.timeStamp:performance.now(),[c,d,p,m,g]=vl,y=fe(),b=e.isComposing()===!1&&y.getTextContent()==="";if(h<g+200&&a.offset===p&&a.key===m)o.format=c,o.style=d;else if(a.type==="text")L(l)||M(141),o.format=l.getFormat(),o.style=l.getStyle();else if(a.type==="element"&&!b){const v=a.getNode();o.style="",v instanceof vn&&v.getChildrenSize()===0?(o.format=v.getTextFormat(),o.style=v.getTextStyle()):o.format=0}}else{const f=a.key,h=o.focus.key,c=o.getNodes(),d=c.length,p=o.isBackward(),m=p?s:u,g=p?u:s,y=p?h:f,b=p?f:h;let v=J0,w=!1;for(let C=0;C<d;C++){const S=c[C],I=S.getTextContentSize();if(L(S)&&I!==0&&!(C===0&&S.__key===y&&m===I||C===d-1&&S.__key===b&&g===0)&&(w=!0,v&=S.getFormat(),v===0))break}o.format=w?v:0}}q(e,Su,void 0)})}function Sl(n){if(!n.getTargetRanges)return null;const e=n.getTargetRanges();return e.length===0?null:e[0]}function Qu(n,e){const t=n._compositionKey;if(be(null),t!==null&&e!=null){if(e===""){const r=he(t),u=Yr(n.getElementByKey(t));return void(u!==null&&u.nodeValue!==null&&L(r)&&ys(r,u.nodeValue,null,null,!0))}if(e[e.length-1]===`
@@ -54,5 +54,5 @@ vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
54
54
  Or, to disable this warning, add the \`allowVulnerableTags\` option
55
55
  and ensure you are accounting for this risk.
56
56
 
57
- `)});const o=e.nonTextTags||["script","style","textarea","option"];let a,l;e.allowedAttributes&&(a={},l={},sn(e.allowedAttributes,function(_,O){a[O]=[];const N=[];_.forEach(function(U){typeof U=="string"&&U.indexOf("*")>=0?N.push(Ma(U).replace(/\\\*/g,".*")):a[O].push(U)}),N.length&&(l[O]=new RegExp("^("+N.join("|")+")$"))}));const f={},h={},c={};sn(e.allowedClasses,function(_,O){if(a&&(it(a,O)||(a[O]=[]),a[O].push("class")),f[O]=_,Array.isArray(_)){const N=[];f[O]=[],c[O]=[],_.forEach(function(U){typeof U=="string"&&U.indexOf("*")>=0?N.push(Ma(U).replace(/\\\*/g,".*")):U instanceof RegExp?c[O].push(U):f[O].push(U)}),N.length&&(h[O]=new RegExp("^("+N.join("|")+")$"))}});const d={};let p;sn(e.transformTags,function(_,O){let N;typeof _=="function"?N=_:typeof _=="string"&&(N=tr.simpleTransform(_)),O==="*"?p=N:d[O]=N});let m,g,y,b,v,w,C=!1;I();const S=new P1.Parser({onopentag:function(_,O){if(e.onOpenTag&&e.onOpenTag(_,O),e.enforceHtmlBoundary&&_==="html"&&I(),v){w++;return}const N=new i(_,O);g.push(N);let U=!1;const ee=!!N.text;let W;if(it(d,_)&&(W=d[_](_,O),N.attribs=O=W.attribs,W.text!==void 0&&(N.innerText=W.text),_!==W.tagName&&(N.name=_=W.tagName,b[m]=W.tagName)),p&&(W=p(_,O),N.attribs=O=W.attribs,_!==W.tagName&&(N.name=_=W.tagName,b[m]=W.tagName)),(!s(_)||e.disallowedTagsMode==="recursiveEscape"&&!j1(y)||e.nestingLimit!=null&&m>=e.nestingLimit)&&(U=!0,y[m]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&o.indexOf(_)!==-1&&(v=!0,w=1)),m++,U){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(N.innerText&&!ee){const V=T(N.innerText);e.textFilter?r+=e.textFilter(V,_):r+=V,C=!0}return}u=r,r=""}r+="<"+_,_==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(N.innerText=""),U&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?sn(O,function(V,K){r+=" "+K+'="'+T(V||"",!0)+'"'}):(!a||it(a,_)||a["*"])&&sn(O,function(V,K){if(!z1.test(K)){delete N.attribs[K];return}if(V===""&&!e.allowedEmptyAttributes.includes(K)&&(e.nonBooleanAttributes.includes(K)||e.nonBooleanAttributes.includes("*"))){delete N.attribs[K];return}let De=!1;if(!a||it(a,_)&&a[_].indexOf(K)!==-1||a["*"]&&a["*"].indexOf(K)!==-1||it(l,_)&&l[_].test(K)||l["*"]&&l["*"].test(K))De=!0;else if(a&&a[_]){for(const G of a[_])if(L1(G)&&G.name&&G.name===K){De=!0;let Y="";if(G.multiple===!0){const _e=V.split(" ");for(const ye of _e)G.values.indexOf(ye)!==-1&&(Y===""?Y=ye:Y+=" "+ye)}else G.values.indexOf(V)>=0&&(Y=V);V=Y}}if(De){if(e.allowedSchemesAppliedToAttributes.indexOf(K)!==-1&&D(_,V)){delete N.attribs[K];return}if(_==="script"&&K==="src"){let G=!0;try{const Y=$(V);if(e.allowedScriptHostnames||e.allowedScriptDomains){const _e=(e.allowedScriptHostnames||[]).find(function(pe){return pe===Y.url.hostname}),ye=(e.allowedScriptDomains||[]).find(function(pe){return Y.url.hostname===pe||Y.url.hostname.endsWith(`.${pe}`)});G=_e||ye}}catch{G=!1}if(!G){delete N.attribs[K];return}}if(_==="iframe"&&K==="src"){let G=!0;try{const Y=$(V);if(Y.isRelativeUrl)G=it(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const _e=(e.allowedIframeHostnames||[]).find(function(pe){return pe===Y.url.hostname}),ye=(e.allowedIframeDomains||[]).find(function(pe){return Y.url.hostname===pe||Y.url.hostname.endsWith(`.${pe}`)});G=_e||ye}}catch{G=!1}if(!G){delete N.attribs[K];return}}if(K==="srcset")try{let G=M1(V);if(G.forEach(function(Y){D("srcset",Y.url)&&(Y.evil=!0)}),G=Ba(G,function(Y){return!Y.evil}),G.length)V=q1(Ba(G,function(Y){return!Y.evil})),N.attribs[K]=V;else{delete N.attribs[K];return}}catch{delete N.attribs[K];return}if(K==="class"){const G=f[_],Y=f["*"],_e=h[_],ye=c[_],pe=c["*"],F=h["*"],ue=[_e,F].concat(ye,pe).filter(function(Pe){return Pe});if(G&&Y?V=R(V,Ra(G,Y),ue):V=R(V,G||Y,ue),!V.length){delete N.attribs[K];return}}if(K==="style"){if(e.parseStyleAttributes)try{const G=R1(_+" {"+V+"}",{map:!1}),Y=x(G,e.allowedStyles);if(V=k(Y),V.length===0){delete N.attribs[K];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+_+" {"+V+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete N.attribs[K];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}r+=" "+K,V&&V.length?r+='="'+T(V,!0)+'"':e.allowedEmptyAttributes.includes(K)&&(r+='=""')}else delete N.attribs[K]}),e.selfClosing.indexOf(_)!==-1?r+=" />":(r+=">",N.innerText&&!ee&&!e.textFilter&&(r+=T(N.innerText),C=!0)),U&&(r=u+T(r),u=""),N.openingTagLength=r.length-N.tagPosition},ontext:function(_){if(v)return;const O=g[g.length-1];let N;if(O&&(N=O.tag,_=O.innerText!==void 0?O.innerText:_),e.disallowedTagsMode==="completelyDiscard"&&!s(N))_="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(N==="script"||N==="style"))r+=_;else if(!C){const U=T(_,!1);e.textFilter?r+=e.textFilter(U,N):r+=U}if(g.length){const U=g[g.length-1];U.text+=_}},onclosetag:function(_,O){if(e.onCloseTag&&e.onCloseTag(_,O),v)if(w--,!w)v=!1;else return;const N=g.pop();if(!N)return;if(N.tag!==_){g.push(N);return}v=e.enforceHtmlBoundary?_==="html":!1,m--;const U=y[m];if(U){if(delete y[m],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){N.updateParentNodeText();return}u=r,r=""}if(b[m]&&(_=b[m],delete b[m]),e.exclusiveFilter){const ee=e.exclusiveFilter(N);if(ee==="excludeTag"){U&&(r=u,u=""),r=r.substring(0,N.tagPosition)+r.substring(N.tagPosition+N.openingTagLength);return}else if(ee){r=r.substring(0,N.tagPosition);return}}if(N.updateParentNodeMediaChildren(),N.updateParentNodeText(),e.selfClosing.indexOf(_)!==-1||O&&!s(_)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){U&&(r=u,u="");return}r+="</"+_+">",U&&(r=u+T(r),u=""),C=!1}},e.parser);if(S.write(n),S.end(),e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape"){const _=S.endIndex;if(_!=null&&_>=0&&_<n.length){const O=n.substring(_);r+=T(O)}else(_==null||_<0)&&n.length>0&&r===""&&(r=T(n))}return r;function I(){r="",m=0,g=[],y={},b={},v=!1,w=0}function T(_,O){return typeof _!="string"&&(_=_+""),e.parser.decodeEntities&&(_=_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(_=_.replace(/"/g,"&quot;"))),_=_.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(_=_.replace(/"/g,"&quot;")),_}function D(_,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const ee=O.indexOf("<!--");if(ee===-1)break;const W=O.indexOf("-->",ee+4);if(W===-1)break;O=O.substring(0,ee)+O.substring(W+3)}const N=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!N)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const U=N[1].toLowerCase();return it(e.allowedSchemesByTag,_)?e.allowedSchemesByTag[_].indexOf(U)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(U)===-1}function $(_){if(_=_.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),_.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let ee=0;ee<100;ee++)O+=`/${ee}`;const N=new URL(_,O);return{isRelativeUrl:N&&N.hostname==="relative-site"&&N.protocol==="relative:",url:N}}function x(_,O){if(!O)return _;const N=_.nodes[0];let U;return O[N.selector]&&O["*"]?U=Ra(O[N.selector],O["*"]):U=O[N.selector]||O["*"],U&&(_.nodes[0].nodes=N.nodes.reduce(A(U),[])),_}function k(_){return _.nodes[0].nodes.reduce(function(O,N){return O.push(`${N.prop}:${N.value}${N.important?" !important":""}`),O},[]).join(";")}function A(_){return function(O,N){return it(_,N.prop)&&_[N.prop].some(function(ee){return ee.test(N.value)})&&O.push(N),O}}function R(_,O,N){return O?(_=_.split(/\s+/),_.filter(function(U){return O.indexOf(U)!==-1||N.some(function(ee){return ee.test(U)})}).join(" ")):_}}const $1={decodeEntities:!0};tr.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};tr.simpleTransform=function(n,e,t){return t=t===void 0?!0:t,e=e||{},function(r,u){let i;if(t)for(i in e)u[i]=e[i];else u=e;return{tagName:n,attribs:u}}};const fi=_h(U1),w0=xn();class vr extends Rl{constructor(t,r,u,i,s,o,a){super(s);Lt(this,"__src");Lt(this,"__alt");Lt(this,"__width");Lt(this,"__height");Lt(this,"__soliboDocumentId");Lt(this,"__soliboDocumentSlot");this.__src=t,this.__alt=r,this.__width=u,this.__height=i,this.__soliboDocumentId=o,this.__soliboDocumentSlot=a}static getType(){return"image"}static clone(t){return new vr(t.__src,t.__alt,t.__width,t.__height,t.__key,t.__soliboDocumentId,t.__soliboDocumentSlot)}static importJSON(t){return wu({alt:t.alt,height:t.height,soliboDocumentId:t.soliboDocumentId,soliboDocumentSlot:t.soliboDocumentSlot,src:t.src,width:t.width})}exportJSON(){return{alt:this.__alt,height:this.__height,...this.__soliboDocumentId?{soliboDocumentId:this.__soliboDocumentId}:void 0,...this.__soliboDocumentSlot?{soliboDocumentSlot:this.__soliboDocumentSlot}:void 0,src:this.__src,type:"image",version:1,width:this.__width}}static importDOM(){return{img:t=>({conversion:r=>{if(!(r instanceof HTMLImageElement))return null;const u=r.getAttribute("src")??"";if(!u)return null;const i=r.getAttribute("width"),s=r.getAttribute("height");return{node:wu({alt:r.getAttribute("alt")??"",height:s?Number(s):void 0,soliboDocumentId:r.getAttribute("data-solibo-document-id")??void 0,soliboDocumentSlot:r.getAttribute("data-solibo-document-slot")??void 0,src:u,width:i?Number(i):void 0})}},priority:0})}}exportDOM(){const t=document.createElement("img");return this.__soliboDocumentSlot||t.setAttribute("src",this.__src),this.__soliboDocumentId&&t.setAttribute("data-solibo-document-id",this.__soliboDocumentId),this.__soliboDocumentSlot&&t.setAttribute("data-solibo-document-slot",this.__soliboDocumentSlot),this.__alt&&t.setAttribute("alt",this.__alt),this.__width&&t.setAttribute("width",String(this.__width)),this.__height&&t.setAttribute("height",String(this.__height)),{element:t}}createDOM(){return document.createElement("span")}updateDOM(){return!1}isInline(){return!0}getSrc(){return this.__src}setSrc(t){const r=this.getWritable();return r.__src=t,r}setWidth(t){const r=this.getWritable();return r.__width=t,r.__height=void 0,r}decorate(t){return j.jsx("img",{alt:this.__alt,height:this.__height,"data-solibo-document-id":this.__soliboDocumentId,"data-solibo-document-slot":this.__soliboDocumentSlot,onClick:r=>{r.preventDefault(),t.dispatchCommand(w0,{key:this.getKey(),soliboDocumentSlot:this.__soliboDocumentSlot,src:this.__src,width:this.__width})},src:this.__src,width:this.__width})}}function wu({alt:n="",height:e,soliboDocumentId:t,soliboDocumentSlot:r,src:u,width:i}){return new vr(u,n,i,e,void 0,t,r)}function di(n){return n instanceof vr}const W1=({createImages:n})=>{const[e]=Ie();return B.useEffect(()=>e.registerCommand(nr,t=>{var s;if(!("clipboardData"in t))return!1;const r=t,u=Array.from(((s=r.clipboardData)==null?void 0:s.items)??[]).flatMap(o=>{if(o.kind!=="file"||!o.type.startsWith("image/"))return[];const a=o.getAsFile();return a?[a]:[]});if(u.length===0)return!1;r.preventDefault();const i=n(u);return e.update(()=>{Lu(i.map(o=>wu(o)))}),!0},zf),[n,e]),null},H1=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,V1=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,G1=[n=>{const e=H1.exec(n);return e!=null&&e.length?{index:e.index,length:e[0].length,text:e[0],url:`mailto:${e[0]}`}:null},n=>{const e=V1.exec(n);return e!=null&&e.length?{index:e.index,length:e[0].length,text:e[0],url:e[0].startsWith("http")?e[0]:`https://${e[0]}`}:null}];function ts(n){try{const e=new URL(n);return e.protocol==="http:"||e.protocol==="https:"}catch{return!1}}const K1="_field_1f8jx_3",J1="_editor_1f8jx_8",Z1="_invalid_1f8jx_42",X1="_error_1f8jx_46",Q1="_content_1f8jx_52",Y1="_files_1f8jx_56",em="_placeholder_1f8jx_64",tm="_fill_1f8jx_72",nm="_meta_1f8jx_95",rm="_active_1f8jx_104",um="_submit_1f8jx_123",im="_bold_1f8jx_127",sm="_italic_1f8jx_131",om="_link_1f8jx_135",am="_list_1f8jx_141",lm="_paragraph_1f8jx_142",le={field:K1,editor:J1,"has-files":"_has-files_1f8jx_38",invalid:Z1,error:X1,content:Q1,files:Y1,placeholder:em,fill:tm,"fill-editor":"_fill-editor_1f8jx_79",meta:nm,active:rm,"image-sizes":"_image-sizes_1f8jx_116",submit:um,bold:im,italic:sm,link:om,list:am,paragraph:lm},cm=[{label:"Small",width:320},{label:"Medium",width:640},{label:"Large",width:960},{label:"Original",width:void 0}],fm=({disabled:n=!1,onFilesSelected:e,onInlineImageRemove:t,onSubmit:r,submitLabel:u="Submit"})=>{const[i]=Ie(),[s,o]=B.useState(!1),[a,l]=B.useState(!1),[f,h]=B.useState(!1),[c,d]=B.useState(!1),[p,m]=B.useState(!1),[g,y]=B.useState(""),[b,v]=B.useState(null),[w,C]=B.useState(null),[S,I]=B.useState(void 0),[T,D]=B.useState(""),$=ts(T.trim()),x=B.useRef(null),k=B.useRef(null),A=B.useRef(null),R=B.useRef(null),_=B.useRef(!1),O=F=>F.preventDefault(),N=B.useCallback(F=>{R.current=P(F)?F.clone():null},[]),U=B.useCallback(F=>{i.update(()=>{R.current&&Be(R.current),F()}),R.current=null},[i]),ee=F=>{_.current=!0,F.preventDefault()},W=()=>{if(_.current){_.current=!1;return}G()},X=B.useCallback(()=>{l(!1),y(""),v(null),C(null),I(void 0)},[]),ne=B.useCallback(()=>{d(!1),D("")},[]),V=B.useCallback(F=>{l(!0),y((F==null?void 0:F.src)??""),v((F==null?void 0:F.key)??null),C((F==null?void 0:F.soliboDocumentSlot)??null),I(F==null?void 0:F.width),ne(),F!=null&&F.soliboDocumentSlot||setTimeout(()=>{var ue;return(ue=k.current)==null?void 0:ue.focus()},0)},[ne]),K=B.useCallback(F=>{i.getEditorState().read(()=>{N(z())}),d(!0),D(F),X(),setTimeout(()=>{var ue;return(ue=A.current)==null?void 0:ue.focus()},0)},[X,i,N]),De=B.useCallback(()=>{const F=T.trim();ts(F)&&(U(()=>{i.dispatchCommand(dn,{url:F,target:"_blank"});const ue=z();if(!P(ue))return;const Pe=ue.getNodes().at(-1)??null,Yt=(Pe==null?void 0:Pe.getParent())??null,Le=We(Pe)?Pe:We(Yt)?Yt:null;if(Le){const mt=Le.getLastChild();if(L(mt)){const Js=mt.getTextContent(),Zs=Js.replace(/\s+$/,"");Zs!==Js&&mt.setTextContent(Zs)}const en=Le.getNextSibling();if(L(en)&&/^\s/.test(en.getTextContent())){en.select(1,1);return}const bt=ce(" ");Le.insertAfter(bt),bt.selectEnd()}}),ne())},[ne,i,T,U]),G=B.useCallback(()=>{const F=g.trim();if(!F){X();return}i.update(()=>{if(b){const ue=he(b);di(ue)&&ue.setSrc(F);return}Lu([wu({src:F})])}),X()},[X,i,b,g]),Y=B.useCallback(()=>{if(!b){X();return}i.update(()=>{const F=he(b);if(di(F)){const ue=F.getParent();Wt(ue)&&ue.getChildrenSize()===1?ue.remove():F.remove(),w&&(t==null||t(w))}}),X()},[X,i,b,w,t]),_e=B.useCallback(F=>{b&&(i.update(()=>{const ue=he(b);di(ue)&&ue.setWidth(F)}),I(F))},[i,b]),ye=B.useCallback(()=>{U(()=>{i.dispatchCommand(dn,null)}),ne()},[ne,i,U]),pe=B.useCallback(()=>{const F=z();if(!P(F)){if(Re(F)){const Yt=F.getNodes(),Le=Yt[0]??null,mt=(Le==null?void 0:Le.getParent())??null;o(Yt.some(bt=>L(bt)&&bt.hasFormat("bold"))),h(Yt.some(bt=>L(bt)&&bt.hasFormat("italic"))),m(Q(mt)||oe(mt)||Q(Le)||oe(Le));const en=We(Le)?Le:We(mt)?mt:null;if(en){d(!0),D(en.getURL());return}d(!1),D(""),R.current=null;return}o(!1),h(!1),m(!1),d(!1),D(""),R.current=null;return}const[ue]=F.getNodes(),Pe=(ue==null?void 0:ue.getParent())??null;if(o(F.hasFormat("bold")),h(F.hasFormat("italic")),m(Q(Pe)||oe(Pe)),We(Pe)){d(!0),D(Pe.getURL()),N(F);return}d(!1),D(""),R.current=null},[N]);return B.useEffect(()=>ht(i.registerUpdateListener(({editorState:F})=>{F.read(()=>{pe()})}),i.registerCommand(w0,F=>(V(F),!0),ot),i.registerCommand(Su,()=>(i.getEditorState().read(()=>{pe()}),!1),ot)),[i,V,pe]),j.jsxs(E0.Toolbar,{variant:"editor","data-component":"editortoolbar",children:[j.jsx(Me.Button,{"aria-label":"Bold","data-active":s,onClick:()=>{i.dispatchCommand(Qe,"bold")},title:"Bold",variant:"tertiary",children:j.jsx(je.Icon,{name:"bold"})}),j.jsx(Me.Button,{"aria-label":"Italic","data-active":f,onClick:()=>{i.dispatchCommand(Qe,"italic")},title:"Italic",variant:"tertiary",children:j.jsx(je.Icon,{name:"italic"})}),j.jsx(Me.Button,{"aria-label":"List","data-active":p,onClick:()=>{p?i.dispatchCommand(tc,void 0):i.dispatchCommand(ec,void 0)},title:"List",variant:"tertiary",children:j.jsx(je.Icon,{name:"list"})}),j.jsx(Me.Button,{"aria-label":"Link","data-active":c,onClick:()=>{c?K(T):(i.dispatchCommand(dn,{url:"https://"}),K("https://"))},title:"Link",variant:"tertiary",children:j.jsx(je.Icon,{name:"link"})}),j.jsx(Me.Button,{"aria-label":"Image","data-active":a,onClick:()=>{a?X():V()},title:"Image",variant:"tertiary",children:j.jsx(je.Icon,{name:"image"})}),e&&j.jsxs(j.Fragment,{children:[j.jsx("input",{hidden:!0,multiple:!0,onChange:F=>{F.target.files&&e(F.target.files),F.target.value=""},ref:x,type:"file"}),j.jsx(Me.Button,{"aria-label":"Upload files",onClick:()=>{var F;return(F=x.current)==null?void 0:F.click()},title:"Upload files",variant:"tertiary",children:j.jsx(je.Icon,{name:"upload"})})]}),r&&j.jsx(Me.Button,{"aria-label":u,className:le.submit,disabled:n,onClick:()=>r(),variant:"primary",children:j.jsx(je.Icon,{name:"arrow-up"})}),j.jsxs("div",{className:Gr.t(le.meta,c||a?le.active:""),children:[c&&j.jsxs(j.Fragment,{children:[j.jsx(Qs.Input,{"aria-invalid":!$,onBlur:()=>De(),onChange:F=>D(F.target.value),onKeyDown:F=>{F.key==="Enter"&&(F.preventDefault(),De())},ref:A,value:T}),j.jsx(Me.Button,{"aria-label":"Apply link",disabled:!$,onClick:()=>{De()},onMouseDown:O,variant:"tertiary",children:j.jsx(je.Icon,{name:"check"})}),j.jsx(Me.Button,{"aria-label":"Remove link",onClick:()=>ye(),onMouseDown:O,variant:"tertiary",children:j.jsx(je.Icon,{name:"trash",variant:"danger"})})]}),a&&j.jsxs(j.Fragment,{children:[!w&&j.jsxs(j.Fragment,{children:[j.jsx(Qs.Input,{className:Gr.t(le.active),onBlur:W,onChange:F=>y(F.target.value),onKeyDown:F=>{F.key==="Enter"&&(F.preventDefault(),_.current=!0,G())},ref:k,value:g}),j.jsx(Me.Button,{"aria-label":"Apply image",onClick:()=>G(),onMouseDown:ee,variant:"tertiary",children:j.jsx(je.Icon,{name:"check"})})]}),j.jsx("div",{className:le["image-sizes"],children:cm.map(({label:F,width:ue})=>j.jsx(Me.Button,{"aria-label":`${F} image`,"data-active":S===ue,onClick:()=>_e(ue),onMouseDown:O,variant:"tertiary",children:F},F))}),j.jsx(Me.Button,{"aria-label":"Remove image",onClick:()=>Y(),onMouseDown:ee,variant:"tertiary",children:j.jsx(je.Icon,{name:"trash",variant:"danger"})})]})]})]})};function dm({autofocus:n,content:e="",lastEmittedContentRef:t}){const[r]=Ie();return B.useEffect(()=>{t.current!==e&&r.update(()=>{const i=new DOMParser().parseFromString(e,"text/html"),s=Wl(r,i),o=fe();o.clear().select(),Lu(s),n?o.selectEnd():Be(null)})},[n,e,r,t]),null}const hm=({autofocus:n=!1,autolink:e=!1,content:t,disabled:r=!1,errorMessage:u,fill:i=!1,files:s,inline:o=!1,inlineImages:a,invalid:l=!1,maxRows:f=12,minRows:h=1,onChange:c,onFilesChange:d,onInlineImagesChange:p,onSubmit:m,onUpload:g,placeholder:y,required:b=!1,submitLabel:v})=>{const w=B.useId(),C=B.useRef(void 0),[S,I]=B.useState([]),[T,D]=B.useState([]),$=B.useRef(new Map),x=s??S,k=a??T,A=W=>{s===void 0&&I(W),d==null||d(W)},R=B.useCallback(W=>{a===void 0&&D(W),p==null||p(W)},[a,p]),_=B.useCallback(W=>{const X=W.map(ne=>{const V=`pasted-${crypto.randomUUID()}`,K=URL.createObjectURL(ne);return $.current.set(V,K),{image:{alt:ne.name,soliboDocumentSlot:V,src:K},pending:{file:ne,slot:V}}});return R([...k,...X.map(({pending:ne})=>ne)]),X.map(({image:ne})=>ne)},[k,R]),O=B.useCallback(W=>{R(k.filter(ne=>ne.slot!==W));const X=$.current.get(W);X&&URL.revokeObjectURL(X),$.current.delete(W)},[k,R]);B.useEffect(()=>()=>{$.current.forEach(W=>URL.revokeObjectURL(W)),$.current.clear()},[]),B.useEffect(()=>{const W=new Set(k.map(X=>X.slot));$.current.forEach((X,ne)=>{W.has(ne)||(URL.revokeObjectURL(X),$.current.delete(ne))})},[k]);const N=W=>{if(typeof DataTransfer<"u"){const X=new DataTransfer;return W.forEach(ne=>X.items.add(ne)),X.files}return Object.assign([...W],{item:X=>W[X]??null})},U=async()=>{try{x.length>0&&await(g==null?void 0:g(N(x))),await(m==null?void 0:m()),x.length>0&&A([])}catch{return}},ee={namespace:"Editor",theme:{link:le.link,list:{ol:le.list,ul:le.list},paragraph:le.paragraph,text:{bold:le.bold,italic:le.italic}},onError(W){throw W},nodes:[Fu,hr,wn,pr,vr]};return j.jsxs("div",{className:Gr.t(le.field,i&&le.fill),"data-component":"editor","data-max-rows":f,"data-min-rows":h,children:[j.jsx("div",{className:Gr.t(le.editor,i&&le["fill-editor"],l&&le.invalid,x.length>0&&le["has-files"]),style:{"--editor-max-height":`calc(${f*1.25}em + (2 * var(--scale-8)))`,"--editor-min-height":`calc(${h*1.25}em + (2 * var(--scale-8)))`},children:j.jsxs(Ad,{initialConfig:ee,children:[!o&&j.jsx(fm,{disabled:r,onInlineImageRemove:O,onFilesSelected:g||d?W=>{A([...x,...Array.from(W)])}:void 0,onSubmit:m?()=>void U():void 0,submitLabel:v}),j.jsx("div",{className:le.content,children:j.jsx(bh,{contentEditable:j.jsx(Rd,{"aria-placeholder":y??"",ariaErrorMessage:l&&u?w:void 0,ariaInvalid:l||void 0,ariaRequired:b||void 0,placeholder:()=>y?j.jsx("div",{className:le.placeholder,children:y}):null}),ErrorBoundary:qd})}),x.length>0&&j.jsx("div",{"aria-label":"Files to upload",className:le.files,role:"region",children:x.map((W,X)=>j.jsx(C0.File,{deleteAccessibleLabel:`Remove ${W.name} from upload queue`,name:W.name,onDelete:()=>A(x.filter((ne,V)=>V!==X))},`${W.name}-${W.size}-${W.lastModified}-${X}`))}),n&&j.jsx(_d,{}),e&&j.jsx(kd,{matchers:G1}),j.jsx(Kd,{}),p&&j.jsx(W1,{createImages:_}),t!==void 0&&j.jsx(dm,{autofocus:n,content:t,lastEmittedContentRef:C}),j.jsx(Jd,{validateUrl:ts}),j.jsx(Zd,{}),c&&j.jsx(Qd,{onChange:(W,X)=>{W.read(()=>{const ne=Hl(X,null),V=fi(ne,{allowedAttributes:{...fi.defaults.allowedAttributes,img:[...fi.defaults.allowedAttributes.img??[],"data-solibo-document-id","data-solibo-document-slot"]},allowedTags:["a","b","br","i","img","li","ol","p","ul"]});C.current=V,c(V)})}})]})}),l&&u&&j.jsx("div",{className:le.error,id:w,children:u})]})};exports.Editor=hm;
57
+ `)});const o=e.nonTextTags||["script","style","textarea","option"];let a,l;e.allowedAttributes&&(a={},l={},sn(e.allowedAttributes,function(_,O){a[O]=[];const N=[];_.forEach(function(U){typeof U=="string"&&U.indexOf("*")>=0?N.push(Ma(U).replace(/\\\*/g,".*")):a[O].push(U)}),N.length&&(l[O]=new RegExp("^("+N.join("|")+")$"))}));const f={},h={},c={};sn(e.allowedClasses,function(_,O){if(a&&(it(a,O)||(a[O]=[]),a[O].push("class")),f[O]=_,Array.isArray(_)){const N=[];f[O]=[],c[O]=[],_.forEach(function(U){typeof U=="string"&&U.indexOf("*")>=0?N.push(Ma(U).replace(/\\\*/g,".*")):U instanceof RegExp?c[O].push(U):f[O].push(U)}),N.length&&(h[O]=new RegExp("^("+N.join("|")+")$"))}});const d={};let p;sn(e.transformTags,function(_,O){let N;typeof _=="function"?N=_:typeof _=="string"&&(N=tr.simpleTransform(_)),O==="*"?p=N:d[O]=N});let m,g,y,b,v,w,C=!1;I();const S=new P1.Parser({onopentag:function(_,O){if(e.onOpenTag&&e.onOpenTag(_,O),e.enforceHtmlBoundary&&_==="html"&&I(),v){w++;return}const N=new i(_,O);g.push(N);let U=!1;const ee=!!N.text;let W;if(it(d,_)&&(W=d[_](_,O),N.attribs=O=W.attribs,W.text!==void 0&&(N.innerText=W.text),_!==W.tagName&&(N.name=_=W.tagName,b[m]=W.tagName)),p&&(W=p(_,O),N.attribs=O=W.attribs,_!==W.tagName&&(N.name=_=W.tagName,b[m]=W.tagName)),(!s(_)||e.disallowedTagsMode==="recursiveEscape"&&!j1(y)||e.nestingLimit!=null&&m>=e.nestingLimit)&&(U=!0,y[m]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&o.indexOf(_)!==-1&&(v=!0,w=1)),m++,U){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(N.innerText&&!ee){const V=T(N.innerText);e.textFilter?r+=e.textFilter(V,_):r+=V,C=!0}return}u=r,r=""}r+="<"+_,_==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(N.innerText=""),U&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?sn(O,function(V,K){r+=" "+K+'="'+T(V||"",!0)+'"'}):(!a||it(a,_)||a["*"])&&sn(O,function(V,K){if(!z1.test(K)){delete N.attribs[K];return}if(V===""&&!e.allowedEmptyAttributes.includes(K)&&(e.nonBooleanAttributes.includes(K)||e.nonBooleanAttributes.includes("*"))){delete N.attribs[K];return}let De=!1;if(!a||it(a,_)&&a[_].indexOf(K)!==-1||a["*"]&&a["*"].indexOf(K)!==-1||it(l,_)&&l[_].test(K)||l["*"]&&l["*"].test(K))De=!0;else if(a&&a[_]){for(const G of a[_])if(L1(G)&&G.name&&G.name===K){De=!0;let Y="";if(G.multiple===!0){const _e=V.split(" ");for(const ye of _e)G.values.indexOf(ye)!==-1&&(Y===""?Y=ye:Y+=" "+ye)}else G.values.indexOf(V)>=0&&(Y=V);V=Y}}if(De){if(e.allowedSchemesAppliedToAttributes.indexOf(K)!==-1&&D(_,V)){delete N.attribs[K];return}if(_==="script"&&K==="src"){let G=!0;try{const Y=$(V);if(e.allowedScriptHostnames||e.allowedScriptDomains){const _e=(e.allowedScriptHostnames||[]).find(function(pe){return pe===Y.url.hostname}),ye=(e.allowedScriptDomains||[]).find(function(pe){return Y.url.hostname===pe||Y.url.hostname.endsWith(`.${pe}`)});G=_e||ye}}catch{G=!1}if(!G){delete N.attribs[K];return}}if(_==="iframe"&&K==="src"){let G=!0;try{const Y=$(V);if(Y.isRelativeUrl)G=it(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const _e=(e.allowedIframeHostnames||[]).find(function(pe){return pe===Y.url.hostname}),ye=(e.allowedIframeDomains||[]).find(function(pe){return Y.url.hostname===pe||Y.url.hostname.endsWith(`.${pe}`)});G=_e||ye}}catch{G=!1}if(!G){delete N.attribs[K];return}}if(K==="srcset")try{let G=M1(V);if(G.forEach(function(Y){D("srcset",Y.url)&&(Y.evil=!0)}),G=Ba(G,function(Y){return!Y.evil}),G.length)V=q1(Ba(G,function(Y){return!Y.evil})),N.attribs[K]=V;else{delete N.attribs[K];return}}catch{delete N.attribs[K];return}if(K==="class"){const G=f[_],Y=f["*"],_e=h[_],ye=c[_],pe=c["*"],F=h["*"],ue=[_e,F].concat(ye,pe).filter(function(Pe){return Pe});if(G&&Y?V=R(V,Ra(G,Y),ue):V=R(V,G||Y,ue),!V.length){delete N.attribs[K];return}}if(K==="style"){if(e.parseStyleAttributes)try{const G=R1(_+" {"+V+"}",{map:!1}),Y=x(G,e.allowedStyles);if(V=k(Y),V.length===0){delete N.attribs[K];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+_+" {"+V+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete N.attribs[K];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}r+=" "+K,V&&V.length?r+='="'+T(V,!0)+'"':e.allowedEmptyAttributes.includes(K)&&(r+='=""')}else delete N.attribs[K]}),e.selfClosing.indexOf(_)!==-1?r+=" />":(r+=">",N.innerText&&!ee&&!e.textFilter&&(r+=T(N.innerText),C=!0)),U&&(r=u+T(r),u=""),N.openingTagLength=r.length-N.tagPosition},ontext:function(_){if(v)return;const O=g[g.length-1];let N;if(O&&(N=O.tag,_=O.innerText!==void 0?O.innerText:_),e.disallowedTagsMode==="completelyDiscard"&&!s(N))_="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(N==="script"||N==="style"))r+=_;else if(!C){const U=T(_,!1);e.textFilter?r+=e.textFilter(U,N):r+=U}if(g.length){const U=g[g.length-1];U.text+=_}},onclosetag:function(_,O){if(e.onCloseTag&&e.onCloseTag(_,O),v)if(w--,!w)v=!1;else return;const N=g.pop();if(!N)return;if(N.tag!==_){g.push(N);return}v=e.enforceHtmlBoundary?_==="html":!1,m--;const U=y[m];if(U){if(delete y[m],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){N.updateParentNodeText();return}u=r,r=""}if(b[m]&&(_=b[m],delete b[m]),e.exclusiveFilter){const ee=e.exclusiveFilter(N);if(ee==="excludeTag"){U&&(r=u,u=""),r=r.substring(0,N.tagPosition)+r.substring(N.tagPosition+N.openingTagLength);return}else if(ee){r=r.substring(0,N.tagPosition);return}}if(N.updateParentNodeMediaChildren(),N.updateParentNodeText(),e.selfClosing.indexOf(_)!==-1||O&&!s(_)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){U&&(r=u,u="");return}r+="</"+_+">",U&&(r=u+T(r),u=""),C=!1}},e.parser);if(S.write(n),S.end(),e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape"){const _=S.endIndex;if(_!=null&&_>=0&&_<n.length){const O=n.substring(_);r+=T(O)}else(_==null||_<0)&&n.length>0&&r===""&&(r=T(n))}return r;function I(){r="",m=0,g=[],y={},b={},v=!1,w=0}function T(_,O){return typeof _!="string"&&(_=_+""),e.parser.decodeEntities&&(_=_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(_=_.replace(/"/g,"&quot;"))),_=_.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(_=_.replace(/"/g,"&quot;")),_}function D(_,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const ee=O.indexOf("<!--");if(ee===-1)break;const W=O.indexOf("-->",ee+4);if(W===-1)break;O=O.substring(0,ee)+O.substring(W+3)}const N=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!N)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const U=N[1].toLowerCase();return it(e.allowedSchemesByTag,_)?e.allowedSchemesByTag[_].indexOf(U)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(U)===-1}function $(_){if(_=_.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),_.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let ee=0;ee<100;ee++)O+=`/${ee}`;const N=new URL(_,O);return{isRelativeUrl:N&&N.hostname==="relative-site"&&N.protocol==="relative:",url:N}}function x(_,O){if(!O)return _;const N=_.nodes[0];let U;return O[N.selector]&&O["*"]?U=Ra(O[N.selector],O["*"]):U=O[N.selector]||O["*"],U&&(_.nodes[0].nodes=N.nodes.reduce(A(U),[])),_}function k(_){return _.nodes[0].nodes.reduce(function(O,N){return O.push(`${N.prop}:${N.value}${N.important?" !important":""}`),O},[]).join(";")}function A(_){return function(O,N){return it(_,N.prop)&&_[N.prop].some(function(ee){return ee.test(N.value)})&&O.push(N),O}}function R(_,O,N){return O?(_=_.split(/\s+/),_.filter(function(U){return O.indexOf(U)!==-1||N.some(function(ee){return ee.test(U)})}).join(" ")):_}}const $1={decodeEntities:!0};tr.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};tr.simpleTransform=function(n,e,t){return t=t===void 0?!0:t,e=e||{},function(r,u){let i;if(t)for(i in e)u[i]=e[i];else u=e;return{tagName:n,attribs:u}}};const fi=_h(U1),w0=xn();class vr extends Rl{constructor(t,r,u,i,s,o,a){super(s);Lt(this,"__src");Lt(this,"__alt");Lt(this,"__width");Lt(this,"__height");Lt(this,"__soliboDocumentId");Lt(this,"__soliboDocumentSlot");this.__src=t,this.__alt=r,this.__width=u,this.__height=i,this.__soliboDocumentId=o,this.__soliboDocumentSlot=a}static getType(){return"image"}static clone(t){return new vr(t.__src,t.__alt,t.__width,t.__height,t.__key,t.__soliboDocumentId,t.__soliboDocumentSlot)}static importJSON(t){return wu({alt:t.alt,height:t.height,soliboDocumentId:t.soliboDocumentId,soliboDocumentSlot:t.soliboDocumentSlot,src:t.src,width:t.width})}exportJSON(){return{alt:this.__alt,height:this.__height,...this.__soliboDocumentId?{soliboDocumentId:this.__soliboDocumentId}:void 0,...this.__soliboDocumentSlot?{soliboDocumentSlot:this.__soliboDocumentSlot}:void 0,src:this.__src,type:"image",version:1,width:this.__width}}static importDOM(){return{img:t=>({conversion:r=>{if(!(r instanceof HTMLImageElement))return null;const u=r.getAttribute("src")??"";if(!u)return null;const i=r.getAttribute("width"),s=r.getAttribute("height");return{node:wu({alt:r.getAttribute("alt")??"",height:s?Number(s):void 0,soliboDocumentId:r.getAttribute("data-solibo-document-id")??void 0,soliboDocumentSlot:r.getAttribute("data-solibo-document-slot")??void 0,src:u,width:i?Number(i):void 0})}},priority:0})}}exportDOM(){const t=document.createElement("img");return this.__soliboDocumentSlot||t.setAttribute("src",this.__src),this.__soliboDocumentId&&t.setAttribute("data-solibo-document-id",this.__soliboDocumentId),this.__soliboDocumentSlot&&t.setAttribute("data-solibo-document-slot",this.__soliboDocumentSlot),this.__alt&&t.setAttribute("alt",this.__alt),this.__width&&t.setAttribute("width",String(this.__width)),this.__height&&t.setAttribute("height",String(this.__height)),{element:t}}createDOM(){return document.createElement("span")}updateDOM(){return!1}isInline(){return!0}getSrc(){return this.__src}setSrc(t){const r=this.getWritable();return r.__src=t,r}setWidth(t){const r=this.getWritable();return r.__width=t,r.__height=void 0,r}decorate(t){return j.jsx("img",{alt:this.__alt,height:this.__height,"data-solibo-document-id":this.__soliboDocumentId,"data-solibo-document-slot":this.__soliboDocumentSlot,onClick:r=>{r.preventDefault(),t.dispatchCommand(w0,{key:this.getKey(),soliboDocumentSlot:this.__soliboDocumentSlot,src:this.__src,width:this.__width})},src:this.__src,width:this.__width})}}function wu({alt:n="",height:e,soliboDocumentId:t,soliboDocumentSlot:r,src:u,width:i}){return new vr(u,n,i,e,void 0,t,r)}function di(n){return n instanceof vr}const W1=({createImages:n})=>{const[e]=Ie();return B.useEffect(()=>e.registerCommand(nr,t=>{var s;if(!("clipboardData"in t))return!1;const r=t,u=Array.from(((s=r.clipboardData)==null?void 0:s.items)??[]).flatMap(o=>{if(o.kind!=="file"||!o.type.startsWith("image/"))return[];const a=o.getAsFile();return a?[a]:[]});if(u.length===0)return!1;r.preventDefault();const i=n(u);return e.update(()=>{Lu(i.map(o=>wu(o)))}),!0},zf),[n,e]),null},H1=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,V1=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,G1=[n=>{const e=H1.exec(n);return e!=null&&e.length?{index:e.index,length:e[0].length,text:e[0],url:`mailto:${e[0]}`}:null},n=>{const e=V1.exec(n);return e!=null&&e.length?{index:e.index,length:e[0].length,text:e[0],url:e[0].startsWith("http")?e[0]:`https://${e[0]}`}:null}];function ts(n){try{const e=new URL(n);return e.protocol==="http:"||e.protocol==="https:"}catch{return!1}}const K1="_field_1f8jx_3",J1="_editor_1f8jx_8",Z1="_invalid_1f8jx_42",X1="_error_1f8jx_46",Q1="_content_1f8jx_52",Y1="_files_1f8jx_56",em="_placeholder_1f8jx_64",tm="_fill_1f8jx_72",nm="_meta_1f8jx_95",rm="_active_1f8jx_104",um="_submit_1f8jx_123",im="_bold_1f8jx_127",sm="_italic_1f8jx_131",om="_link_1f8jx_135",am="_list_1f8jx_141",lm="_paragraph_1f8jx_142",le={field:K1,editor:J1,"has-files":"_has-files_1f8jx_38",invalid:Z1,error:X1,content:Q1,files:Y1,placeholder:em,fill:tm,"fill-editor":"_fill-editor_1f8jx_79",meta:nm,active:rm,"image-sizes":"_image-sizes_1f8jx_116",submit:um,bold:im,italic:sm,link:om,list:am,paragraph:lm},cm=[{label:"Small",width:320},{label:"Medium",width:640},{label:"Large",width:960},{label:"Original",width:void 0}],fm=({disabled:n=!1,onFilesSelected:e,onInlineImageRemove:t,onSubmit:r,submitLabel:u="Submit"})=>{const[i]=Ie(),[s,o]=B.useState(!1),[a,l]=B.useState(!1),[f,h]=B.useState(!1),[c,d]=B.useState(!1),[p,m]=B.useState(!1),[g,y]=B.useState(""),[b,v]=B.useState(null),[w,C]=B.useState(null),[S,I]=B.useState(void 0),[T,D]=B.useState(""),$=ts(T.trim()),x=B.useRef(null),k=B.useRef(null),A=B.useRef(null),R=B.useRef(null),_=B.useRef(!1),O=F=>F.preventDefault(),N=B.useCallback(F=>{R.current=P(F)?F.clone():null},[]),U=B.useCallback(F=>{i.update(()=>{R.current&&Be(R.current),F()}),R.current=null},[i]),ee=F=>{_.current=!0,F.preventDefault()},W=()=>{if(_.current){_.current=!1;return}G()},X=B.useCallback(()=>{l(!1),y(""),v(null),C(null),I(void 0)},[]),ne=B.useCallback(()=>{d(!1),D("")},[]),V=B.useCallback(F=>{l(!0),y((F==null?void 0:F.src)??""),v((F==null?void 0:F.key)??null),C((F==null?void 0:F.soliboDocumentSlot)??null),I(F==null?void 0:F.width),ne(),F!=null&&F.soliboDocumentSlot||setTimeout(()=>{var ue;return(ue=k.current)==null?void 0:ue.focus()},0)},[ne]),K=B.useCallback(F=>{i.getEditorState().read(()=>{N(z())}),d(!0),D(F),X(),setTimeout(()=>{var ue;return(ue=A.current)==null?void 0:ue.focus()},0)},[X,i,N]),De=B.useCallback(()=>{const F=T.trim();ts(F)&&(U(()=>{i.dispatchCommand(dn,{url:F,target:"_blank"});const ue=z();if(!P(ue))return;const Pe=ue.getNodes().at(-1)??null,Yt=(Pe==null?void 0:Pe.getParent())??null,Le=We(Pe)?Pe:We(Yt)?Yt:null;if(Le){const mt=Le.getLastChild();if(L(mt)){const Js=mt.getTextContent(),Zs=Js.replace(/\s+$/,"");Zs!==Js&&mt.setTextContent(Zs)}const en=Le.getNextSibling();if(L(en)&&/^\s/.test(en.getTextContent())){en.select(1,1);return}const bt=ce(" ");Le.insertAfter(bt),bt.selectEnd()}}),ne())},[ne,i,T,U]),G=B.useCallback(()=>{const F=g.trim();if(!F){X();return}i.update(()=>{if(b){const ue=he(b);di(ue)&&ue.setSrc(F);return}Lu([wu({src:F})])}),X()},[X,i,b,g]),Y=B.useCallback(()=>{if(!b){X();return}i.update(()=>{const F=he(b);if(di(F)){const ue=F.getParent();Wt(ue)&&ue.getChildrenSize()===1?ue.remove():F.remove(),w&&(t==null||t(w))}}),X()},[X,i,b,w,t]),_e=B.useCallback(F=>{b&&(i.update(()=>{const ue=he(b);di(ue)&&ue.setWidth(F)}),I(F))},[i,b]),ye=B.useCallback(()=>{U(()=>{i.dispatchCommand(dn,null)}),ne()},[ne,i,U]),pe=B.useCallback(()=>{const F=z();if(!P(F)){if(Re(F)){const Yt=F.getNodes(),Le=Yt[0]??null,mt=(Le==null?void 0:Le.getParent())??null;o(Yt.some(bt=>L(bt)&&bt.hasFormat("bold"))),h(Yt.some(bt=>L(bt)&&bt.hasFormat("italic"))),m(Q(mt)||oe(mt)||Q(Le)||oe(Le));const en=We(Le)?Le:We(mt)?mt:null;if(en){d(!0),D(en.getURL());return}d(!1),D(""),R.current=null;return}o(!1),h(!1),m(!1),d(!1),D(""),R.current=null;return}const[ue]=F.getNodes(),Pe=(ue==null?void 0:ue.getParent())??null;if(o(F.hasFormat("bold")),h(F.hasFormat("italic")),m(Q(Pe)||oe(Pe)),We(Pe)){d(!0),D(Pe.getURL()),N(F);return}d(!1),D(""),R.current=null},[N]);return B.useEffect(()=>ht(i.registerUpdateListener(({editorState:F})=>{F.read(()=>{pe()})}),i.registerCommand(w0,F=>(V(F),!0),ot),i.registerCommand(Su,()=>(i.getEditorState().read(()=>{pe()}),!1),ot)),[i,V,pe]),j.jsxs(E0.Toolbar,{variant:"editor","data-component":"editortoolbar",children:[j.jsx(Me.Button,{"aria-label":"Bold","data-active":s,onClick:()=>{i.dispatchCommand(Qe,"bold")},title:"Bold",variant:"tertiary",children:j.jsx(je.Icon,{name:"TextB"})}),j.jsx(Me.Button,{"aria-label":"Italic","data-active":f,onClick:()=>{i.dispatchCommand(Qe,"italic")},title:"Italic",variant:"tertiary",children:j.jsx(je.Icon,{name:"TextItalic"})}),j.jsx(Me.Button,{"aria-label":"List","data-active":p,onClick:()=>{p?i.dispatchCommand(tc,void 0):i.dispatchCommand(ec,void 0)},title:"List",variant:"tertiary",children:j.jsx(je.Icon,{name:"ListBullets"})}),j.jsx(Me.Button,{"aria-label":"Link","data-active":c,onClick:()=>{c?K(T):(i.dispatchCommand(dn,{url:"https://"}),K("https://"))},title:"Link",variant:"tertiary",children:j.jsx(je.Icon,{name:"Link"})}),j.jsx(Me.Button,{"aria-label":"Image","data-active":a,onClick:()=>{a?X():V()},title:"Image",variant:"tertiary",children:j.jsx(je.Icon,{name:"Image"})}),e&&j.jsxs(j.Fragment,{children:[j.jsx("input",{hidden:!0,multiple:!0,onChange:F=>{F.target.files&&e(F.target.files),F.target.value=""},ref:x,type:"file"}),j.jsx(Me.Button,{"aria-label":"Upload files",onClick:()=>{var F;return(F=x.current)==null?void 0:F.click()},title:"Upload files",variant:"tertiary",children:j.jsx(je.Icon,{name:"UploadSimple"})})]}),r&&j.jsx(Me.Button,{"aria-label":u,className:le.submit,disabled:n,onClick:()=>r(),variant:"primary",children:j.jsx(je.Icon,{name:"ArrowUp"})}),j.jsxs("div",{className:Gr.t(le.meta,c||a?le.active:""),children:[c&&j.jsxs(j.Fragment,{children:[j.jsx(Qs.Input,{"aria-invalid":!$,onBlur:()=>De(),onChange:F=>D(F.target.value),onKeyDown:F=>{F.key==="Enter"&&(F.preventDefault(),De())},ref:A,value:T}),j.jsx(Me.Button,{"aria-label":"Apply link",disabled:!$,onClick:()=>{De()},onMouseDown:O,variant:"tertiary",children:j.jsx(je.Icon,{name:"Check"})}),j.jsx(Me.Button,{"aria-label":"Remove link",onClick:()=>ye(),onMouseDown:O,variant:"tertiary",children:j.jsx(je.Icon,{name:"Trash",variant:"danger"})})]}),a&&j.jsxs(j.Fragment,{children:[!w&&j.jsxs(j.Fragment,{children:[j.jsx(Qs.Input,{className:Gr.t(le.active),onBlur:W,onChange:F=>y(F.target.value),onKeyDown:F=>{F.key==="Enter"&&(F.preventDefault(),_.current=!0,G())},ref:k,value:g}),j.jsx(Me.Button,{"aria-label":"Apply image",onClick:()=>G(),onMouseDown:ee,variant:"tertiary",children:j.jsx(je.Icon,{name:"Check"})})]}),j.jsx("div",{className:le["image-sizes"],children:cm.map(({label:F,width:ue})=>j.jsx(Me.Button,{"aria-label":`${F} image`,"data-active":S===ue,onClick:()=>_e(ue),onMouseDown:O,variant:"tertiary",children:F},F))}),j.jsx(Me.Button,{"aria-label":"Remove image",onClick:()=>Y(),onMouseDown:ee,variant:"tertiary",children:j.jsx(je.Icon,{name:"Trash",variant:"danger"})})]})]})]})};function dm({autofocus:n,content:e="",lastEmittedContentRef:t}){const[r]=Ie();return B.useEffect(()=>{t.current!==e&&r.update(()=>{const i=new DOMParser().parseFromString(e,"text/html"),s=Wl(r,i),o=fe();o.clear().select(),Lu(s),n?o.selectEnd():Be(null)})},[n,e,r,t]),null}const hm=({autofocus:n=!1,autolink:e=!1,content:t,disabled:r=!1,errorMessage:u,fill:i=!1,files:s,inline:o=!1,inlineImages:a,invalid:l=!1,maxRows:f=12,minRows:h=1,onChange:c,onFilesChange:d,onInlineImagesChange:p,onSubmit:m,onUpload:g,placeholder:y,required:b=!1,submitLabel:v})=>{const w=B.useId(),C=B.useRef(void 0),[S,I]=B.useState([]),[T,D]=B.useState([]),$=B.useRef(new Map),x=s??S,k=a??T,A=W=>{s===void 0&&I(W),d==null||d(W)},R=B.useCallback(W=>{a===void 0&&D(W),p==null||p(W)},[a,p]),_=B.useCallback(W=>{const X=W.map(ne=>{const V=`pasted-${crypto.randomUUID()}`,K=URL.createObjectURL(ne);return $.current.set(V,K),{image:{alt:ne.name,soliboDocumentSlot:V,src:K},pending:{file:ne,slot:V}}});return R([...k,...X.map(({pending:ne})=>ne)]),X.map(({image:ne})=>ne)},[k,R]),O=B.useCallback(W=>{R(k.filter(ne=>ne.slot!==W));const X=$.current.get(W);X&&URL.revokeObjectURL(X),$.current.delete(W)},[k,R]);B.useEffect(()=>()=>{$.current.forEach(W=>URL.revokeObjectURL(W)),$.current.clear()},[]),B.useEffect(()=>{const W=new Set(k.map(X=>X.slot));$.current.forEach((X,ne)=>{W.has(ne)||(URL.revokeObjectURL(X),$.current.delete(ne))})},[k]);const N=W=>{if(typeof DataTransfer<"u"){const X=new DataTransfer;return W.forEach(ne=>X.items.add(ne)),X.files}return Object.assign([...W],{item:X=>W[X]??null})},U=async()=>{try{x.length>0&&await(g==null?void 0:g(N(x))),await(m==null?void 0:m()),x.length>0&&A([])}catch{return}},ee={namespace:"Editor",theme:{link:le.link,list:{ol:le.list,ul:le.list},paragraph:le.paragraph,text:{bold:le.bold,italic:le.italic}},onError(W){throw W},nodes:[Fu,hr,wn,pr,vr]};return j.jsxs("div",{className:Gr.t(le.field,i&&le.fill),"data-component":"editor","data-max-rows":f,"data-min-rows":h,children:[j.jsx("div",{className:Gr.t(le.editor,i&&le["fill-editor"],l&&le.invalid,x.length>0&&le["has-files"]),style:{"--editor-max-height":`calc(${f*1.25}em + (2 * var(--scale-8)))`,"--editor-min-height":`calc(${h*1.25}em + (2 * var(--scale-8)))`},children:j.jsxs(Ad,{initialConfig:ee,children:[!o&&j.jsx(fm,{disabled:r,onInlineImageRemove:O,onFilesSelected:g||d?W=>{A([...x,...Array.from(W)])}:void 0,onSubmit:m?()=>void U():void 0,submitLabel:v}),j.jsx("div",{className:le.content,children:j.jsx(bh,{contentEditable:j.jsx(Rd,{"aria-placeholder":y??"",ariaErrorMessage:l&&u?w:void 0,ariaInvalid:l||void 0,ariaRequired:b||void 0,placeholder:()=>y?j.jsx("div",{className:le.placeholder,children:y}):null}),ErrorBoundary:qd})}),x.length>0&&j.jsx("div",{"aria-label":"Files to upload",className:le.files,role:"region",children:x.map((W,X)=>j.jsx(C0.File,{deleteAccessibleLabel:`Remove ${W.name} from upload queue`,name:W.name,onDelete:()=>A(x.filter((ne,V)=>V!==X))},`${W.name}-${W.size}-${W.lastModified}-${X}`))}),n&&j.jsx(_d,{}),e&&j.jsx(kd,{matchers:G1}),j.jsx(Kd,{}),p&&j.jsx(W1,{createImages:_}),t!==void 0&&j.jsx(dm,{autofocus:n,content:t,lastEmittedContentRef:C}),j.jsx(Jd,{validateUrl:ts}),j.jsx(Zd,{}),c&&j.jsx(Qd,{onChange:(W,X)=>{W.read(()=>{const ne=Hl(X,null),V=fi(ne,{allowedAttributes:{...fi.defaults.allowedAttributes,img:[...fi.defaults.allowedAttributes.img??[],"data-solibo-document-id","data-solibo-document-slot"]},allowedTags:["a","b","br","i","img","li","ol","p","ul"]});C.current=V,c(V)})}})]})}),l&&u&&j.jsx("div",{className:le.error,id:w,children:u})]})};exports.Editor=hm;
58
58
  //# sourceMappingURL=index.cjs.map