@uva-glass/component-library 3.53.0 → 3.53.2

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 (142) hide show
  1. package/dist/{Lexical.prod-DH2XfwvA.js → Lexical.prod-Dgzi-S1E.js} +1427 -1409
  2. package/dist/Lexical.prod-Dgzi-S1E.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-DTuNvXAS.js → LexicalClipboard.prod-Dxc8c2F_.js} +86 -86
  4. package/dist/{LexicalClipboard.prod-DTuNvXAS.js.map → LexicalClipboard.prod-Dxc8c2F_.js.map} +1 -1
  5. package/dist/LexicalExtension.prod-CNBWjmfs.js +551 -0
  6. package/dist/LexicalExtension.prod-CNBWjmfs.js.map +1 -0
  7. package/dist/LexicalLink.prod-EEOzXxej.js +502 -0
  8. package/dist/LexicalLink.prod-EEOzXxej.js.map +1 -0
  9. package/dist/{LexicalList.prod-DA9du3qx.js → LexicalList.prod-DADZlhem.js} +65 -65
  10. package/dist/LexicalList.prod-DADZlhem.js.map +1 -0
  11. package/dist/{LexicalSelection.prod-mQk00-U_.js → LexicalSelection.prod-B0uiXGSS.js} +44 -44
  12. package/dist/LexicalSelection.prod-B0uiXGSS.js.map +1 -0
  13. package/dist/{LexicalTable.prod-RGq0GKAR.js → LexicalTable.prod-QpQxZNNH.js} +331 -319
  14. package/dist/LexicalTable.prod-QpQxZNNH.js.map +1 -0
  15. package/dist/{LexicalUtils.prod-DU4QwthB.js → LexicalUtils.prod-D1mwAww-.js} +39 -39
  16. package/dist/LexicalUtils.prod-D1mwAww-.js.map +1 -0
  17. package/dist/{TableCellResizerPlugin-DRwI83s2.js → TableCellResizerPlugin-9kvw_LpH.js} +57 -57
  18. package/dist/{TableCellResizerPlugin-DRwI83s2.js.map → TableCellResizerPlugin-9kvw_LpH.js.map} +1 -1
  19. package/dist/{TablePlugin-DmE96vN7.js → TablePlugin-Culqb83M.js} +67 -67
  20. package/dist/{TablePlugin-DmE96vN7.js.map → TablePlugin-Culqb83M.js.map} +1 -1
  21. package/dist/{chunk-SS2NHR7W-qmI2h7CJ.js → chunk-GPBRNGY5-BSRMHXbx.js} +3 -3
  22. package/dist/chunk-GPBRNGY5-BSRMHXbx.js.map +1 -0
  23. package/dist/{client-D4oO7Spw.js → client-DdSuZDnt.js} +93 -95
  24. package/dist/{client-D4oO7Spw.js.map → client-DdSuZDnt.js.map} +1 -1
  25. package/dist/components/Accordion/Accordion.test.js +2 -2
  26. package/dist/components/AccordionCard/AccordionCard.test.js +2 -2
  27. package/dist/components/ActionList/ActionList.d.ts +1 -1
  28. package/dist/components/ActionList/ActionList.test.js +2 -2
  29. package/dist/components/AppStatusBar/AppStatusBar.test.js +1 -1
  30. package/dist/components/Attention/Attention.test.js +1 -1
  31. package/dist/components/Backdrop/Backdrop.test.js +1 -1
  32. package/dist/components/Buttons/Button.stories.js +1 -1
  33. package/dist/components/Buttons/Button.test.js +1 -1
  34. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  35. package/dist/components/Buttons/LinkButton.test.js +1 -1
  36. package/dist/components/Buttons/MenuButton.d.ts +1 -1
  37. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  38. package/dist/components/Buttons/MenuButton.test.js +1 -1
  39. package/dist/components/Card/Card.test.js +1 -1
  40. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  41. package/dist/components/Checkbox/Checkbox.test.js +2 -2
  42. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  43. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +1 -1
  44. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  45. package/dist/components/CheckboxTree/CheckboxTree.stories.js +2 -2
  46. package/dist/components/Chip/Chip.stories.js +1 -1
  47. package/dist/components/ControlsButton/ControlsButton.d.ts +1 -1
  48. package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
  49. package/dist/components/Drawer/Drawer.stories.js +1 -1
  50. package/dist/components/FeedbackBar/FeedbackBar.test.js +1 -1
  51. package/dist/components/FormInput/FormInput.js +1 -1
  52. package/dist/components/FormInput/FormInput.stories.js +1 -1
  53. package/dist/components/IconButton/IconButton.stories.d.ts +1 -1
  54. package/dist/components/IconButton/IconButton.stories.js +1 -1
  55. package/dist/components/InfoBanner/InfoBanner.d.ts +1 -1
  56. package/dist/components/InfoBanner/InfoBanner.stories.d.ts +1 -1
  57. package/dist/components/InputField/InputField.stories.js +2 -2
  58. package/dist/components/Label/Label.test.js +1 -1
  59. package/dist/components/MetaDataBar/MetaDataBar.d.ts +1 -1
  60. package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -1
  61. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  62. package/dist/components/MultiSelect/MultiSelect.d.ts +2 -2
  63. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  64. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  65. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  66. package/dist/components/MultiSelect/index.js +1 -1
  67. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
  68. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +1 -1
  69. package/dist/components/Notification/Notification.stories.js +1 -1
  70. package/dist/components/Notification/Notification.test.js +1 -1
  71. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  72. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  73. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  74. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  75. package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
  76. package/dist/components/RadioGroup/Radiogroup.test.js +1 -1
  77. package/dist/components/RadioTabSelector/RadioTabSelector.d.ts +1 -1
  78. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  79. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +1 -1
  80. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  81. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
  82. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +63 -63
  83. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js.map +1 -1
  84. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +7 -7
  85. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.d.ts +1 -1
  86. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
  87. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +64 -64
  88. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  89. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +21 -21
  90. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +7 -7
  91. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +4 -4
  92. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  93. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  94. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.d.ts +1 -1
  95. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
  96. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +29 -29
  97. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  98. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.d.ts +1 -1
  99. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +15 -15
  100. package/dist/components/RteEditor/Plugins/index.js +2 -2
  101. package/dist/components/RteEditor/RteEditor.js +218 -215
  102. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  103. package/dist/components/RteEditor/helpers.js +5 -5
  104. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +12 -12
  105. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +14 -14
  106. package/dist/components/SectionNotification/SectionNotification.stories.d.ts +1 -1
  107. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  108. package/dist/components/SelectListbox/components/SelectButton.d.ts +1 -1
  109. package/dist/components/SelectListbox/components/SelectOption.d.ts +1 -1
  110. package/dist/components/Sortable/Sortable.stories.js +1 -1
  111. package/dist/components/Sortable/components/SortableItem.d.ts +1 -1
  112. package/dist/components/StatusBadge/StatusBadge.stories.d.ts +1 -1
  113. package/dist/components/StatusBadge/StatusBadge.test.js +1 -1
  114. package/dist/components/TextArea/TextArea.stories.js +1 -1
  115. package/dist/components/TextArea/TextArea.test.js +2 -2
  116. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  117. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  118. package/dist/components/VarIndicator/VarIndicator.test.js +2 -2
  119. package/dist/components/WeekSelector/WeekSelector.stories.d.ts +1 -1
  120. package/dist/components/WeekSelector/components/WeekSelectorOption.d.ts +1 -1
  121. package/dist/components/index.js +1 -1
  122. package/dist/{index-B4NxQN5d.js → index-Cfzi-sRQ.js} +333 -332
  123. package/dist/index-Cfzi-sRQ.js.map +1 -0
  124. package/dist/{index-ZQcmo1D_.js → index-DcECbqp4.js} +12 -12
  125. package/dist/{index-ZQcmo1D_.js.map → index-DcECbqp4.js.map} +1 -1
  126. package/dist/index.js +1 -1
  127. package/dist/{react-18-BczhA0zC.js → react-18-plvLTuyc.js} +2 -2
  128. package/dist/{react-18-BczhA0zC.js.map → react-18-plvLTuyc.js.map} +1 -1
  129. package/dist/{react.esm-BDo_tPxu.js → react.esm-BpII5CMY.js} +712 -733
  130. package/dist/{react.esm-BDo_tPxu.js.map → react.esm-BpII5CMY.js.map} +1 -1
  131. package/dist/storybook__react.d.js +8 -8
  132. package/dist/storybook__react.d.js.map +1 -1
  133. package/package.json +26 -26
  134. package/dist/Lexical.prod-DH2XfwvA.js.map +0 -1
  135. package/dist/LexicalLink.prod-BV5Y2RYj.js +0 -1046
  136. package/dist/LexicalLink.prod-BV5Y2RYj.js.map +0 -1
  137. package/dist/LexicalList.prod-DA9du3qx.js.map +0 -1
  138. package/dist/LexicalSelection.prod-mQk00-U_.js.map +0 -1
  139. package/dist/LexicalTable.prod-RGq0GKAR.js.map +0 -1
  140. package/dist/LexicalUtils.prod-DU4QwthB.js.map +0 -1
  141. package/dist/chunk-SS2NHR7W-qmI2h7CJ.js.map +0 -1
  142. package/dist/index-B4NxQN5d.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LexicalSelection.prod-B0uiXGSS.js","sources":["../node_modules/@lexical/selection/LexicalSelection.prod.mjs"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport{$isTextNode as e,$getEditor as t,$isRootNode as n,$isElementNode as o,$getNodeByKey as l,$getPreviousSelection as r,$createTextNode as s,$isRangeSelection as i,$getSelection as c,$caretRangeFromSelection as f,$isTokenOrSegmented as u,$getCharacterOffsets as g,$cloneWithPropertiesEphemeral as a,$createRangeSelection as d,$findMatchingParent as p,INTERNAL_$isBlock as h,$setSelection as y,$caretFromPoint as m,$isExtendableTextPointCaret as S,$extendCaretToRange as x,$isChildCaret as T,$isDecoratorNode as w,$isRootOrShadowRoot as N,$hasAncestor as v,$isLeafNode as C}from\"lexical\";export{$cloneWithProperties,$selectAll}from\"lexical\";function K(e,...t){const n=new URL(\"https://lexical.dev/docs/error\"),o=new URLSearchParams;o.append(\"code\",e);for(const e of t)o.append(\"v\",e);throw n.search=o.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 E=new Map;function P(e){let t=e;for(;null!=t;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function k(e){const t=e.parentNode;if(null==t)throw new Error(\"Should never happen\");return[t,Array.from(t.childNodes).indexOf(e)]}function I(t,n,o,l,r){const s=n.getKey(),i=l.getKey(),c=document.createRange();let f=t.getElementByKey(s),u=t.getElementByKey(i),g=o,a=r;if(e(n)&&(f=P(f)),e(l)&&(u=P(u)),void 0===n||void 0===l||null===f||null===u)return null;\"BR\"===f.nodeName&&([f,g]=k(f)),\"BR\"===u.nodeName&&([u,a]=k(u));const d=f.firstChild;f===u&&null!=d&&\"BR\"===d.nodeName&&0===g&&0===a&&(a=1);try{c.setStart(f,g),c.setEnd(u,a)}catch(e){return null}return!c.collapsed||g===a&&s===i||(c.setStart(u,a),c.setEnd(f,g)),c}function B(e,t){const n=e.getRootElement();if(null===n)return[];const o=n.getBoundingClientRect(),l=getComputedStyle(n),r=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight),s=Array.from(t.getClientRects());let i,c=s.length;s.sort((e,t)=>{const n=e.top-t.top;return Math.abs(n)<=3?e.left-t.left:n});for(let e=0;e<c;e++){const t=s[e],n=i&&i.top<=t.top&&i.top+i.height>t.top&&i.left+i.width>t.left,l=t.width+r===o.width;n||l?(s.splice(e--,1),c--):i=t}return s}function F(e){const t={};if(!e)return t;const n=e.split(\";\");for(const e of n)if(\"\"!==e){const[n,o]=e.split(/:([^]+)/);n&&o&&(t[n.trim()]=o.trim())}return t}function b(e){let t=E.get(e);return void 0===t&&(t=F(e),E.set(e,t)),t}function R(e){let t=\"\";for(const n in e)n&&(t+=`${n}: ${e[n]};`);return t}function z(e){const n=t().getElementByKey(e.getKey());if(null===n)return null;const o=n.ownerDocument.defaultView;return null===o?null:o.getComputedStyle(n)}function O(e){return z(n(e)?e:e.getParentOrThrow())}function A(e){const t=O(e);return null!==t&&\"rtl\"===t.direction}function M(e,t,n=\"self\"){const o=e.getStartEndPoints();if(t.isSelected(e)&&!u(t)&&null!==o){const[l,r]=o,s=e.isBackward(),i=l.getNode(),c=r.getNode(),f=t.is(i),u=t.is(c);if(f||u){const[o,l]=g(e),r=i.is(c),f=t.is(s?c:i),u=t.is(s?i:c);let d,p=0;if(r)p=o>l?l:o,d=o>l?o:l;else if(f){p=s?l:o,d=void 0}else if(u){p=0,d=s?o:l}const h=t.__text.slice(p,d);h!==t.__text&&(\"clone\"===n&&(t=a(t)),t.__text=h)}}return t}function _(e){if(\"text\"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return o(t)||K(177),e.offset===t.getChildrenSize()}function L(t,c,f){let u=c.getNode(),g=f;if(o(u)){const e=u.getDescendantByIndex(c.offset);null!==e&&(u=e)}for(;g>0&&null!==u;){if(o(u)){const e=u.getLastDescendant();null!==e&&(u=e)}let f=u.getPreviousSibling(),a=0;if(null===f){let e=u.getParentOrThrow(),t=e.getPreviousSibling();for(;null===t;){if(e=e.getParent(),null===e){f=null;break}t=e.getPreviousSibling()}null!==e&&(a=e.isInline()?0:2,f=t)}let d=u.getTextContent();\"\"===d&&o(u)&&!u.isInline()&&(d=\"\\n\\n\");const p=d.length;if(!e(u)||g>=p){const e=u.getParent();u.remove(),null==e||0!==e.getChildrenSize()||n(e)||e.remove(),g-=p+a,u=f}else{const n=u.getKey(),o=t.getEditorState().read(()=>{const t=l(n);return e(t)&&t.isSimpleText()?t.getTextContent():null}),f=p-g,a=d.slice(0,f);if(null!==o&&o!==d){const e=r();let t=u;if(u.isSimpleText())u.setTextContent(o);else{const e=s(o);u.replace(e),t=e}if(i(e)&&e.isCollapsed()){const n=e.anchor.offset;t.select(n,n)}}else if(u.isSimpleText()){const e=c.key===n;let t=c.offset;t<g&&(t=p);const o=e?t-g:0,l=e?t:f;if(e&&0===o){const[e]=u.splitText(o,l);e.remove()}else{const[,e]=u.splitText(o,l);e.remove()}}else{const e=s(a);u.replace(e)}g=0}}}function $(e){const t=e.getStyle(),n=F(t);E.set(t,n)}function D(t,n){(i(t)?t.isCollapsed():e(t)||o(t))||K(280);const l=b(i(t)?t.style:e(t)?t.getStyle():t.getTextStyle()),r=Object.entries(n).reduce((e,[n,o])=>(\"function\"==typeof o?e[n]=o(l[n],t):null===o?delete e[n]:e[n]=o,e),{...l}),s=R(r);i(t)||e(t)?t.setStyle(s):t.setTextStyle(s),E.set(s,r)}function U(e,t){if(i(e)&&e.isCollapsed()){D(e,t);const n=e.anchor.getNode();o(n)&&n.isEmpty()&&D(n,t)}j(e=>{D(e,t)});const n=e.getNodes();if(n.length>0){const e=new Set;for(const l of n){if(!o(l)||!l.canBeEmpty()||0!==l.getChildrenSize())continue;const n=l.getKey();e.has(n)||(e.add(n),D(l,t))}}}function j(t){const n=c();if(!n)return;const o=new Map,l=e=>o.get(e.getKey())||[0,e.getTextContentSize()];if(i(n))for(const e of f(n).getTextSlices())e&&o.set(e.caret.origin.getKey(),e.getSliceIndices());const r=n.getNodes();for(const n of r){if(!e(n)||!n.canHaveFormat())continue;const[o,r]=l(n);if(r!==o)if(u(n)||0===o&&r===n.getTextContentSize())t(n);else{t(n.splitText(o,r)[0===o?0:1])}}i(n)&&\"text\"===n.anchor.type&&\"text\"===n.focus.type&&n.anchor.key===n.focus.key&&H(n)}function H(e){if(e.isBackward()){const{anchor:t,focus:n}=e,{key:o,offset:l,type:r}=t;t.set(n.key,n.offset,n.type),n.set(o,l,r)}}function V(e,t){const n=e.getFormatType(),o=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),o!==t.getIndent()&&t.setIndent(o)}function W(e,t,n=V){if(null===e)return;const l=e.getStartEndPoints(),r=new Map;let s=null;if(l){const[e,t]=l;s=d(),s.anchor.set(e.key,e.offset,e.type),s.focus.set(t.key,t.offset,t.type);const n=p(e.getNode(),h),i=p(t.getNode(),h);o(n)&&r.set(n.getKey(),n),o(i)&&r.set(i.getKey(),i)}for(const t of e.getNodes())if(o(t)&&h(t))r.set(t.getKey(),t);else if(null===l){const e=p(t,h);o(e)&&r.set(e.getKey(),e)}for(const[e,o]of r){const l=t();n(o,l),o.replace(l,!0),s&&(e===s.anchor.key&&s.anchor.set(l.getKey(),s.anchor.offset,s.anchor.type),e===s.focus.key&&s.focus.set(l.getKey(),s.focus.offset,s.focus.type))}s&&e.is(c())&&y(s)}function X(e){return e.getNode().isAttached()}function q(e){let t=e;for(;null!==t&&!N(t);){const e=t.getLatest(),n=t.getParent();0===e.getChildrenSize()&&t.remove(!0),t=n}}function G(e,t,n=null){const o=e.getStartEndPoints(),l=o?o[0]:null,r=e.getNodes(),s=r.length;if(null!==l&&(0===s||1===s&&\"element\"===l.type&&0===l.getNode().getChildrenSize())){const e=\"text\"===l.type?l.getNode().getParentOrThrow():l.getNode(),o=e.getChildren();let r=t();return r.setFormat(e.getFormatType()),r.setIndent(e.getIndent()),o.forEach(e=>r.append(e)),n&&(r=n.append(r)),void e.replace(r)}let i=null,c=[];for(let o=0;o<s;o++){const l=r[o];N(l)?(J(e,c,c.length,t,n),c=[],i=l):null===i||null!==i&&v(l,i)?c.push(l):(J(e,c,c.length,t,n),c=[l])}J(e,c,c.length,t,n)}function J(e,t,n,l,s=null){if(0===t.length)return;const c=t[0],f=new Map,u=[];let g=o(c)?c:c.getParentOrThrow();g.isInline()&&(g=g.getParentOrThrow());let a=!1;for(;null!==g;){const e=g.getPreviousSibling();if(null!==e){g=e,a=!0;break}if(g=g.getParentOrThrow(),N(g))break}const d=new Set;for(let e=0;e<n;e++){const n=t[e];o(n)&&0===n.getChildrenSize()&&d.add(n.getKey())}const p=new Set;for(let e=0;e<n;e++){const n=t[e];let r=n.getParent();if(null!==r&&r.isInline()&&(r=r.getParent()),null!==r&&C(n)&&!p.has(n.getKey())){const e=r.getKey();if(void 0===f.get(e)){const t=l();t.setFormat(r.getFormatType()),t.setIndent(r.getIndent()),u.push(t),f.set(e,t),r.getChildren().forEach(e=>{t.append(e),p.add(e.getKey()),o(e)&&e.getChildrenKeys().forEach(e=>p.add(e))}),q(r)}}else if(d.has(n.getKey())){o(n)||K(179);const e=l();e.setFormat(n.getFormatType()),e.setIndent(n.getIndent()),u.push(e),n.remove(!0)}}if(null!==s)for(let e=0;e<u.length;e++){const t=u[e];s.append(t)}let h=null;if(N(g))if(a)if(null!==s)g.insertAfter(s);else for(let e=u.length-1;e>=0;e--){const t=u[e];g.insertAfter(t)}else{const e=g.getFirstChild();if(o(e)&&(g=e),null===e)if(s)g.append(s);else for(let e=0;e<u.length;e++){const t=u[e];g.append(t),h=t}else if(null!==s)e.insertBefore(s);else for(let t=0;t<u.length;t++){const n=u[t];e.insertBefore(n),h=n}}else if(s)g.insertAfter(s);else for(let e=u.length-1;e>=0;e--){const t=u[e];g.insertAfter(t),h=t}const m=r();i(m)&&X(m.anchor)&&X(m.focus)?y(m.clone()):null!==h?h.selectEnd():e.dirty=!0}function Q(e){const t=Y(e);return null!==t&&\"vertical-rl\"===t.writingMode}function Y(e){const t=e.anchor.getNode();return o(t)?z(t):O(t)}function Z(e,t){let n=Q(e)?!t:t;te(e)&&(n=!n);const l=m(e.focus,n?\"previous\":\"next\");if(S(l))return!1;for(const e of x(l)){if(T(e))return!e.origin.isInline();if(!o(e.origin)){if(w(e.origin))return!0;break}}return!1}function ee(e,t,n,o){e.modify(t?\"extend\":\"move\",n,o)}function te(e){const t=Y(e);return null!==t&&\"rtl\"===t.direction}function ne(e,t,n){const o=te(e);let l;l=Q(e)||o?!n:n,ee(e,t,l,\"character\")}function oe(e,t,n){const o=b(e.getStyle());return null!==o&&o[t]||n}function le(t,n,o=\"\"){let l=null;const r=t.getNodes(),s=t.anchor,c=t.focus,f=t.isBackward(),u=f?c.offset:s.offset,g=f?c.getNode():s.getNode();if(i(t)&&t.isCollapsed()&&\"\"!==t.style){const e=b(t.style);if(null!==e&&n in e)return e[n]}for(let t=0;t<r.length;t++){const s=r[t];if((0===t||0!==u||!s.is(g))&&e(s)){const e=oe(s,n,o);if(null===l)l=e;else if(l!==e){l=\"\";break}}}return null===l?o:l}const re=L;export{$ as $addNodeStyle,V as $copyBlockFormatIndent,H as $ensureForwardRangeSelection,j as $forEachSelectedTextNode,z as $getComputedStyleForElement,O as $getComputedStyleForParent,le as $getSelectionStyleValueForProperty,_ as $isAtNodeEnd,te as $isParentElementRTL,A as $isParentRTL,ee as $moveCaretSelection,ne as $moveCharacter,U as $patchStyleText,W as $setBlocksType,Z as $shouldOverrideDefaultCharacterSelection,M as $sliceSelectedTextNodeContent,L as $trimTextContentFromAnchor,G as $wrapNodes,I as createDOMRange,B as createRectsFromDOMRange,R as getCSSFromStyleObject,b as getStyleObjectFromCSS,re as trimTextContentFromAnchor};\n"],"names":["E","F","e","n","o","b","z","t","O","A","M","u","l","r","s","i","c","f","g","p","h","a","$","V","W","d","y","Q","Y","Z","te","m","S","x","T","w","ee","ne"],"mappings":";AAQy9B,MAAMA,IAAE,oBAAI;AAAkqC,SAASC,EAAE,GAAE;AAAC,QAAM,IAAE,CAAA;AAAG,MAAG,CAAC,EAAE,QAAO;AAAE,QAAM,IAAE,EAAE,MAAM,GAAG;AAAE,aAAUC,KAAK,EAAE,KAAQA,MAAL,IAAO;AAAC,UAAK,CAACC,GAAEC,CAAC,IAAEF,EAAE,MAAM,SAAS;AAAE,IAAAC,KAAGC,MAAI,EAAED,EAAE,KAAI,CAAE,IAAEC,EAAE,KAAI;AAAA,EAAG;AAAC,SAAO;AAAC;AAAC,SAASC,EAAE,GAAE;AAAC,MAAI,IAAEL,EAAE,IAAI,CAAC;AAAE,SAAgB,MAAT,WAAa,IAAEC,EAAE,CAAC,GAAED,EAAE,IAAI,GAAE,CAAC,IAAG;AAAC;AAA2E,SAASM,EAAE,GAAE;AAAC,QAAMH,IAAEI,EAAC,EAAG,gBAAgB,EAAE,OAAM,CAAE;AAAE,MAAUJ,MAAP,KAAS,QAAO;AAAK,QAAMC,IAAED,EAAE,cAAc;AAAY,SAAcC,MAAP,OAAS,OAAKA,EAAE,iBAAiBD,CAAC;AAAC;AAAC,SAASK,EAAE,GAAE;AAAC,SAAOF,EAAEH,EAAE,CAAC,IAAE,IAAE,EAAE,iBAAgB,CAAE;AAAC;AAAC,SAASM,EAAE,G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