@novaprose/tinymce-compat 0.8.0 → 0.9.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 (49) hide show
  1. package/README.md +1 -1
  2. package/dist/index.cjs +11 -1
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.js +11 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/novaprose.css +56 -6
  7. package/dist/tinymce-chunks/de-21549c7e.js +2 -0
  8. package/dist/tinymce-chunks/de-21549c7e.js.map +7 -0
  9. package/dist/tinymce-chunks/es-1de93a3f.js +2 -0
  10. package/dist/tinymce-chunks/es-1de93a3f.js.map +7 -0
  11. package/dist/tinymce-chunks/{exportpdf-0c6647bc.js → exportpdf-1dfcbddc.js} +2 -2
  12. package/dist/tinymce-chunks/{exportword-8a03f24d.js → exportword-ad95abb4.js} +2 -2
  13. package/dist/tinymce-chunks/fr-6fbcca9f.js +2 -0
  14. package/dist/tinymce-chunks/fr-6fbcca9f.js.map +7 -0
  15. package/dist/tinymce-chunks/{importword-ec0b2213.js → importword-d6c2636a.js} +2 -2
  16. package/dist/tinymce-chunks/{index-330c7726.js → index-a1feed69.js} +5 -5
  17. package/dist/tinymce-chunks/{index-330c7726.js.map → index-a1feed69.js.map} +4 -4
  18. package/dist/tinymce-chunks/it-ca70815f.js +2 -0
  19. package/dist/tinymce-chunks/it-ca70815f.js.map +7 -0
  20. package/dist/tinymce-chunks/paste-office-4e8e9cb7.js +3 -0
  21. package/dist/tinymce-chunks/paste-office-4e8e9cb7.js.map +7 -0
  22. package/dist/tinymce-chunks/pt-BR-f6958ec0.js +2 -0
  23. package/dist/tinymce-chunks/pt-BR-f6958ec0.js.map +7 -0
  24. package/dist/tinymce-chunks/ru-982f3476.js +2 -0
  25. package/dist/tinymce-chunks/ru-982f3476.js.map +7 -0
  26. package/dist/tinymce-chunks/{search-bar-3ea04183.js → search-bar-1c8ef2ee.js} +2 -2
  27. package/dist/tinymce-chunks/search-bar-1c8ef2ee.js.map +7 -0
  28. package/dist/tinymce.global.js +28 -28
  29. package/dist/tinymce.global.js.map +4 -4
  30. package/dist/tinymce.licenses.txt +1 -1
  31. package/package.json +2 -2
  32. package/dist/tinymce-chunks/de-eb649701.js +0 -2
  33. package/dist/tinymce-chunks/de-eb649701.js.map +0 -7
  34. package/dist/tinymce-chunks/es-b9c95169.js +0 -2
  35. package/dist/tinymce-chunks/es-b9c95169.js.map +0 -7
  36. package/dist/tinymce-chunks/fr-724ffe36.js +0 -2
  37. package/dist/tinymce-chunks/fr-724ffe36.js.map +0 -7
  38. package/dist/tinymce-chunks/it-f4816bbc.js +0 -2
  39. package/dist/tinymce-chunks/it-f4816bbc.js.map +0 -7
  40. package/dist/tinymce-chunks/paste-office-d6821891.js +0 -3
  41. package/dist/tinymce-chunks/paste-office-d6821891.js.map +0 -7
  42. package/dist/tinymce-chunks/pt-BR-abebbb34.js +0 -2
  43. package/dist/tinymce-chunks/pt-BR-abebbb34.js.map +0 -7
  44. package/dist/tinymce-chunks/ru-f1d19f4f.js +0 -2
  45. package/dist/tinymce-chunks/ru-f1d19f4f.js.map +0 -7
  46. package/dist/tinymce-chunks/search-bar-3ea04183.js.map +0 -7
  47. /package/dist/tinymce-chunks/{exportpdf-0c6647bc.js.map → exportpdf-1dfcbddc.js.map} +0 -0
  48. /package/dist/tinymce-chunks/{exportword-8a03f24d.js.map → exportword-ad95abb4.js.map} +0 -0
  49. /package/dist/tinymce-chunks/{importword-ec0b2213.js.map → importword-d6c2636a.js.map} +0 -0
@@ -1,3 +1,3 @@
1
- var z=Object.create;var j=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var G=Object.getOwnPropertyNames;var J=Object.getPrototypeOf,Q=Object.prototype.hasOwnProperty;var T=(e,s)=>()=>{try{return s||e((s={exports:{}}).exports,s),s.exports}catch(t){throw s=0,t}};var V=(e,s,t,m)=>{if(s&&typeof s=="object"||typeof s=="function")for(let p of G(s))!Q.call(e,p)&&p!==t&&j(e,p,{get:()=>s[p],enumerable:!(m=F(s,p))||m.enumerable});return e};var L=(e,s,t)=>(t=e!=null?z(J(e)):{},V(s||!e||!e.__esModule?j(t,"default",{value:e,enumerable:!0}):t,e));var I=T(N=>{var C=globalThis.__novaprose_tinymce["packages/core/src/search.ts"];Object.defineProperty(N,"__esModule",{value:!0});for(D in C)(function(e){Object.defineProperty(N,e,{enumerable:!0,get:function(){return C[e]}})})(D);var D});var K=T(S=>{var q=globalThis.__novaprose_tinymce["packages/core/src/ui/dom.ts"];Object.defineProperty(S,"__esModule",{value:!0});for(W in q)(function(e){Object.defineProperty(S,e,{enumerable:!0,get:function(){return q[e]}})})(W);var W});var X=T(A=>{var R=globalThis.__novaprose_tinymce["packages/core/src/ui/icons.ts"];Object.defineProperty(A,"__esModule",{value:!0});for(U in R)(function(e){Object.defineProperty(A,e,{enumerable:!0,get:function(){return R[e]}})})(U);var U});var n=L(I(),1),r=L(K(),1),w=L(X(),1);function ae(e,s){let{t}=e.ui,m=(0,r.uniqueId)("nova-find"),p=(0,r.uniqueId)("nova-replace"),o=(0,r.h)("input",{id:m,type:"search",className:"nova-input",placeholder:t("search.find"),"aria-label":t("search.find"),autocomplete:"off",spellcheck:"false"}),f=(0,r.h)("input",{id:p,type:"text",className:"nova-input",placeholder:t("search.replace"),"aria-label":t("search.replace"),autocomplete:"off",spellcheck:"false"}),b=(0,r.h)("span",{className:"nova-search-count","aria-live":"polite"}),O=(a,d)=>{let i=(0,r.h)("button",{type:"button",className:"nova-btn nova-search-toggle","aria-pressed":"false","aria-label":a,"data-tooltip":a},d);return e.ui.tooltip.attach(i),i.addEventListener("click",()=>{i.setAttribute("aria-pressed",String(i.getAttribute("aria-pressed")!=="true")),y(),o.focus()}),i},B=O(t("search.matchCase"),"Aa"),k=O(t("search.wholeWord"),"ab|"),E=(a,d,i)=>{let c=(0,r.h)("button",{type:"button",className:"nova-btn","aria-label":d,"data-tooltip":d},(0,r.icon)(a));return e.ui.tooltip.attach(c),c.addEventListener("click",i),c},H=E(w.icons.chevronUp,t("search.prev"),()=>{e.exec((0,n.findNext)(-1)),o.focus()}),M=E(w.icons.chevronDown,t("search.next"),()=>{e.exec((0,n.findNext)(1)),o.focus()}),$=E(w.icons.close,t("dialog.close"),()=>_.close()),h=(0,r.h)("button",{type:"button",className:"nova-button"},t("search.replaceOne")),g=(0,r.h)("button",{type:"button",className:"nova-button"},t("search.replaceAll"));h.addEventListener("click",()=>{x(),e.exec((0,n.replaceCurrent)(f.value)),e.exec((0,n.findNext)(1)),f.focus()}),g.addEventListener("click",()=>{x(),e.exec((0,n.replaceAll)(f.value)),f.focus()});let l=(0,r.h)("div",{className:"nova-search",role:"search","aria-label":t("search.title"),hidden:!0},(0,r.h)("div",{className:"nova-search-row"},o,b,B,k,H,M,$),(0,r.h)("div",{className:"nova-search-row"},f,h,g));s.parentElement.insertBefore(l,s);let u=null,y=()=>{u&&clearTimeout(u),u=null,(0,n.setSearch)({query:o.value,caseSensitive:B.getAttribute("aria-pressed")==="true",wholeWord:k.getAttribute("aria-pressed")==="true"})(e.view.state,e.view.dispatch)},x=()=>{(u||(0,n.getSearchState)(e.view.state).query!==o.value)&&y()};o.addEventListener("input",()=>{u&&clearTimeout(u),u=setTimeout(y,120)}),o.addEventListener("keydown",a=>{a.key==="Enter"&&(a.preventDefault(),x(),e.exec((0,n.findNext)(a.shiftKey?-1:1)),o.focus())}),f.addEventListener("keydown",a=>{a.key==="Enter"&&(a.preventDefault(),h.click(),f.focus())}),l.addEventListener("keydown",a=>{a.key==="Escape"&&(a.preventDefault(),a.stopPropagation(),_.close())}),l.addEventListener("mousedown",a=>{a.target.closest("button")&&a.preventDefault()});let P=()=>{if(l.hidden)return;let{matches:a,current:d,query:i}=(0,n.getSearchState)(e.view.state),c=a.length;i?c?b.textContent=t("search.count",{current:d+1,total:c>=n.MAX_MATCHES?`${n.MAX_MATCHES}+`:c}):b.textContent=t("search.none"):b.textContent="",l.classList.toggle("is-empty",!!i&&!c);for(let v of[H,M,h,g])v.disabled=!c;h.disabled=!c||!e.isEditable(),g.disabled=!c||!e.isEditable()},_={open(){let a=l.hidden;l.hidden=!1;let{from:d,to:i,empty:c}=e.view.state.selection,v=c?"":e.view.state.doc.textBetween(d,i," ");v&&!v.includes(`
1
+ var z=Object.create;var j=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var G=Object.getOwnPropertyNames;var J=Object.getPrototypeOf,Q=Object.prototype.hasOwnProperty;var T=(e,s)=>()=>{try{return s||e((s={exports:{}}).exports,s),s.exports}catch(t){throw s=0,t}};var V=(e,s,t,m)=>{if(s&&typeof s=="object"||typeof s=="function")for(let p of G(s))!Q.call(e,p)&&p!==t&&j(e,p,{get:()=>s[p],enumerable:!(m=F(s,p))||m.enumerable});return e};var L=(e,s,t)=>(t=e!=null?z(J(e)):{},V(s||!e||!e.__esModule?j(t,"default",{value:e,enumerable:!0}):t,e));var I=T(N=>{var C=globalThis.__novaprose_tinymce["packages/core/src/search.ts"];Object.defineProperty(N,"__esModule",{value:!0});for(D in C)(function(e){Object.defineProperty(N,e,{enumerable:!0,get:function(){return C[e]}})})(D);var D});var K=T(S=>{var q=globalThis.__novaprose_tinymce["packages/core/src/ui/dom.ts"];Object.defineProperty(S,"__esModule",{value:!0});for(W in q)(function(e){Object.defineProperty(S,e,{enumerable:!0,get:function(){return q[e]}})})(W);var W});var X=T(A=>{var R=globalThis.__novaprose_tinymce["packages/core/src/ui/icons.ts"];Object.defineProperty(A,"__esModule",{value:!0});for(U in R)(function(e){Object.defineProperty(A,e,{enumerable:!0,get:function(){return R[e]}})})(U);var U});var n=L(I(),1),r=L(K(),1),w=L(X(),1);function ae(e,s){let{t}=e.ui,m=(0,r.uniqueId)("nova-find"),p=(0,r.uniqueId)("nova-replace"),o=(0,r.h)("input",{id:m,type:"search",className:"nova-input",placeholder:t("search.find"),"aria-label":t("search.find"),autocomplete:"off",spellcheck:"false"}),f=(0,r.h)("input",{id:p,type:"text",className:"nova-input",placeholder:t("search.replace"),"aria-label":t("search.replace"),autocomplete:"off",spellcheck:"false"}),b=(0,r.h)("span",{className:"nova-search-count","aria-live":"polite"}),O=(a,d)=>{let i=(0,r.h)("button",{type:"button",className:"nova-btn nova-search-toggle","aria-pressed":"false","aria-label":a,"data-tooltip":a},d);return e.ui.tooltip.attach(i),i.addEventListener("click",()=>{i.setAttribute("aria-pressed",String(i.getAttribute("aria-pressed")!=="true")),y(),o.focus()}),i},k=O(t("search.matchCase"),"Aa"),B=O(t("search.wholeWord"),"ab|"),E=(a,d,i)=>{let c=(0,r.h)("button",{type:"button",className:"nova-btn","aria-label":d,"data-tooltip":d},(0,r.icon)(a));return e.ui.tooltip.attach(c),c.addEventListener("click",i),c},H=E(w.icons.chevronUp,t("search.prev"),()=>{e.exec((0,n.findNext)(-1)),o.focus()}),M=E(w.icons.chevronDown,t("search.next"),()=>{e.exec((0,n.findNext)(1)),o.focus()}),$=E(w.icons.close,t("dialog.close"),()=>_.close()),h=(0,r.h)("button",{type:"button",className:"nova-button"},t("search.replaceOne")),g=(0,r.h)("button",{type:"button",className:"nova-button"},t("search.replaceAll"));h.addEventListener("click",()=>{x(),e.exec((0,n.replaceCurrent)(f.value)),e.exec((0,n.findNext)(1)),f.focus()}),g.addEventListener("click",()=>{x(),e.exec((0,n.replaceAll)(f.value)),f.focus()});let l=(0,r.h)("div",{className:"nova-search",role:"search","aria-label":t("search.title"),hidden:!0},(0,r.h)("div",{className:"nova-search-row"},o,b,k,B,H,M,$),(0,r.h)("div",{className:"nova-search-row"},f,h,g));s(l);let u=null,y=()=>{u&&clearTimeout(u),u=null,(0,n.setSearch)({query:o.value,caseSensitive:k.getAttribute("aria-pressed")==="true",wholeWord:B.getAttribute("aria-pressed")==="true"})(e.view.state,e.view.dispatch)},x=()=>{(u||(0,n.getSearchState)(e.view.state).query!==o.value)&&y()};o.addEventListener("input",()=>{u&&clearTimeout(u),u=setTimeout(y,120)}),o.addEventListener("keydown",a=>{a.key==="Enter"&&(a.preventDefault(),x(),e.exec((0,n.findNext)(a.shiftKey?-1:1)),o.focus())}),f.addEventListener("keydown",a=>{a.key==="Enter"&&(a.preventDefault(),h.click(),f.focus())}),l.addEventListener("keydown",a=>{a.key==="Escape"&&(a.preventDefault(),a.stopPropagation(),_.close())}),l.addEventListener("mousedown",a=>{a.target.closest("button")&&a.preventDefault()});let P=()=>{if(l.hidden)return;let{matches:a,current:d,query:i}=(0,n.getSearchState)(e.view.state),c=a.length;i?c?b.textContent=t("search.count",{current:d+1,total:c>=n.MAX_MATCHES?`${n.MAX_MATCHES}+`:c}):b.textContent=t("search.none"):b.textContent="",l.classList.toggle("is-empty",!!i&&!c);for(let v of[H,M,h,g])v.disabled=!c;h.disabled=!c||!e.isEditable(),g.disabled=!c||!e.isEditable()},_={open(){let a=l.hidden;l.hidden=!1;let{from:d,to:i,empty:c}=e.view.state.selection,v=c?"":e.view.state.doc.textBetween(d,i," ");v&&!v.includes(`
2
2
  `)&&v.length<=100&&(o.value=v),(a||v)&&y(),o.focus(),o.select(),P()},close(){l.hidden||(l.hidden=!0,u&&clearTimeout(u),(0,n.clearSearch)(e.view.state,e.view.dispatch),e.focus())},isOpen:()=>!l.hidden,update:P,destroy(){u&&clearTimeout(u),l.remove()}};return _}export{ae as createSearchBar};
3
- //# sourceMappingURL=search-bar-3ea04183.js.map
3
+ //# sourceMappingURL=search-bar-1c8ef2ee.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["nova-shared:packages/core/src/search.ts", "nova-shared:packages/core/src/ui/dom.ts", "nova-shared:packages/core/src/ui/icons.ts", "../../../core/src/ui/search-bar.ts"],
4
+ "sourcesContent": ["var m = globalThis[\"__novaprose_tinymce\"][\"packages/core/src/search.ts\"];\nObject.defineProperty(exports, '__esModule', { value: true });\nfor (var k in m) (function (k) { Object.defineProperty(exports, k, { enumerable: true, get: function () { return m[k]; } }); })(k);", "var m = globalThis[\"__novaprose_tinymce\"][\"packages/core/src/ui/dom.ts\"];\nObject.defineProperty(exports, '__esModule', { value: true });\nfor (var k in m) (function (k) { Object.defineProperty(exports, k, { enumerable: true, get: function () { return m[k]; } }); })(k);", "var m = globalThis[\"__novaprose_tinymce\"][\"packages/core/src/ui/icons.ts\"];\nObject.defineProperty(exports, '__esModule', { value: true });\nfor (var k in m) (function (k) { Object.defineProperty(exports, k, { enumerable: true, get: function () { return m[k]; } }); })(k);", "import type { Editor } from '../editor';\nimport {\n clearSearch,\n findNext,\n getSearchState,\n replaceAll,\n replaceCurrent,\n setSearch,\n MAX_MATCHES,\n} from '../search';\nimport { h, icon, uniqueId } from './dom';\nimport { icons } from './icons';\n\nexport interface SearchBarHandle {\n open(): void;\n close(): void;\n isOpen(): boolean;\n /** Updates the counter after the document changes. */\n update(): void;\n destroy(): void;\n}\n\n/**\n * The \"Find and replace\" bar under the toolbar (not modal: the text can be edited while it stays open).\n * `place` puts it in the sticky header, so it stays in view while the page scrolls from match to\n * match (above the text when there is no header).\n * Enter goes to the next match, Shift+Enter to the previous one, Esc closes it and returns to the text.\n */\nexport function createSearchBar(\n editor: Editor,\n place: (bar: HTMLElement) => void,\n): SearchBarHandle {\n const { t } = editor.ui;\n const findId = uniqueId('nova-find');\n const replaceId = uniqueId('nova-replace');\n\n const findInput = h('input', {\n id: findId,\n type: 'search',\n className: 'nova-input',\n placeholder: t('search.find'),\n 'aria-label': t('search.find'),\n autocomplete: 'off',\n spellcheck: 'false',\n });\n const replaceInput = h('input', {\n id: replaceId,\n type: 'text',\n className: 'nova-input',\n placeholder: t('search.replace'),\n 'aria-label': t('search.replace'),\n autocomplete: 'off',\n spellcheck: 'false',\n });\n const counter = h('span', { className: 'nova-search-count', 'aria-live': 'polite' });\n\n const toggle = (label: string, text: string) => {\n const b = h(\n 'button',\n {\n type: 'button',\n className: 'nova-btn nova-search-toggle',\n 'aria-pressed': 'false',\n 'aria-label': label,\n 'data-tooltip': label,\n },\n text,\n );\n editor.ui.tooltip.attach(b);\n b.addEventListener('click', () => {\n b.setAttribute('aria-pressed', String(b.getAttribute('aria-pressed') !== 'true'));\n run();\n findInput.focus();\n });\n return b;\n };\n const caseToggle = toggle(t('search.matchCase'), 'Aa');\n const wordToggle = toggle(t('search.wholeWord'), 'ab|');\n\n const iconButton = (svg: string, label: string, onClick: () => void) => {\n const b = h(\n 'button',\n { type: 'button', className: 'nova-btn', 'aria-label': label, 'data-tooltip': label },\n icon(svg),\n );\n editor.ui.tooltip.attach(b);\n b.addEventListener('click', onClick);\n return b;\n };\n const prev = iconButton(icons.chevronUp, t('search.prev'), () => {\n editor.exec(findNext(-1));\n findInput.focus();\n });\n const next = iconButton(icons.chevronDown, t('search.next'), () => {\n editor.exec(findNext(1));\n findInput.focus();\n });\n const close = iconButton(icons.close, t('dialog.close'), () => handle.close());\n\n const replaceOne = h(\n 'button',\n { type: 'button', className: 'nova-button' },\n t('search.replaceOne'),\n );\n const replaceAllBtn = h(\n 'button',\n { type: 'button', className: 'nova-button' },\n t('search.replaceAll'),\n );\n replaceOne.addEventListener('click', () => {\n sync();\n editor.exec(replaceCurrent(replaceInput.value));\n editor.exec(findNext(1));\n replaceInput.focus();\n });\n replaceAllBtn.addEventListener('click', () => {\n sync();\n editor.exec(replaceAll(replaceInput.value));\n replaceInput.focus();\n });\n\n const bar = h(\n 'div',\n { className: 'nova-search', role: 'search', 'aria-label': t('search.title'), hidden: true },\n h(\n 'div',\n { className: 'nova-search-row' },\n findInput,\n counter,\n caseToggle,\n wordToggle,\n prev,\n next,\n close,\n ),\n h('div', { className: 'nova-search-row' }, replaceInput, replaceOne, replaceAllBtn),\n );\n place(bar);\n\n let timer: ReturnType<typeof setTimeout> | null = null;\n const run = () => {\n if (timer) clearTimeout(timer);\n timer = null;\n setSearch({\n query: findInput.value,\n caseSensitive: caseToggle.getAttribute('aria-pressed') === 'true',\n wholeWord: wordToggle.getAttribute('aria-pressed') === 'true',\n })(editor.view.state, editor.view.dispatch);\n };\n\n /** The field may have changed without an input event (autofill): compare before acting. */\n const sync = () => {\n if (timer || getSearchState(editor.view.state).query !== findInput.value) run();\n };\n\n findInput.addEventListener('input', () => {\n if (timer) clearTimeout(timer);\n // A small delay: a large document isn't recounted on every character.\n timer = setTimeout(run, 120);\n });\n\n findInput.addEventListener('keydown', (event) => {\n if (event.key === 'Enter') {\n event.preventDefault();\n sync();\n editor.exec(findNext(event.shiftKey ? -1 : 1));\n // exec moves focus into the editor: return it to the field so Enter keeps working.\n findInput.focus();\n }\n });\n replaceInput.addEventListener('keydown', (event) => {\n if (event.key === 'Enter') {\n event.preventDefault();\n replaceOne.click();\n replaceInput.focus();\n }\n });\n bar.addEventListener('keydown', (event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n event.stopPropagation();\n handle.close();\n }\n });\n // Buttons don't take focus from the field, so Enter keeps working.\n bar.addEventListener('mousedown', (event) => {\n if ((event.target as HTMLElement).closest('button')) event.preventDefault();\n });\n\n const update = () => {\n if (bar.hidden) return;\n const { matches, current, query } = getSearchState(editor.view.state);\n const total = matches.length;\n if (!query) counter.textContent = '';\n else if (!total) counter.textContent = t('search.none');\n else\n counter.textContent = t('search.count', {\n current: current + 1,\n total: total >= MAX_MATCHES ? `${MAX_MATCHES}+` : total,\n });\n bar.classList.toggle('is-empty', !!query && !total);\n for (const b of [prev, next, replaceOne, replaceAllBtn]) b.disabled = !total;\n replaceOne.disabled = !total || !editor.isEditable();\n replaceAllBtn.disabled = !total || !editor.isEditable();\n };\n\n const handle: SearchBarHandle = {\n open() {\n const wasHidden = bar.hidden;\n bar.hidden = false;\n // Selected text (one line) becomes the query right away, as in browsers and IDEs.\n const { from, to, empty } = editor.view.state.selection;\n const selected = empty ? '' : editor.view.state.doc.textBetween(from, to, ' ');\n if (selected && !selected.includes('\\n') && selected.length <= 100)\n findInput.value = selected;\n if (wasHidden || selected) run();\n findInput.focus();\n findInput.select();\n update();\n },\n close() {\n if (bar.hidden) return;\n bar.hidden = true;\n if (timer) clearTimeout(timer);\n clearSearch(editor.view.state, editor.view.dispatch);\n editor.focus();\n },\n isOpen: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tBA,EAAI,OAAS,GAEb,GAAM,CAAE,KAAAS,EAAM,GAAAC,EAAI,MAAAC,CAAM,EAAInC,EAAO,KAAK,MAAM,UACxCoC,EAAWD,EAAQ,GAAKnC,EAAO,KAAK,MAAM,IAAI,YAAYiC,EAAMC,EAAI,GAAG,EACzEE,GAAY,CAACA,EAAS,SAAS;AAAA,CAAI,GAAKA,EAAS,QAAU,MAC7DhC,EAAU,MAAQgC,IAChBJ,GAAaI,IAAUzB,EAAI,EAC/BP,EAAU,MAAM,EAChBA,EAAU,OAAO,EACjBuB,EAAO,CACT,EACA,OAAQ,CACFH,EAAI,SACRA,EAAI,OAAS,GACTC,GAAO,aAAaA,CAAK,KAC7B,eAAYzB,EAAO,KAAK,MAAOA,EAAO,KAAK,QAAQ,EACnDA,EAAO,MAAM,EACf,EACA,OAAQ,IAAM,CAACwB,EAAI,OACnB,OAAAG,EACA,SAAU,CACJF,GAAO,aAAaA,CAAK,EAC7BD,EAAI,OAAO,CACb,CACF,EACA,OAAOJ,CACT",
6
+ "names": ["require_search", "__commonJSMin", "exports", "m", "k", "require_dom", "__commonJSMin", "exports", "m", "k", "require_icons", "__commonJSMin", "exports", "m", "k", "import_search", "import_dom", "import_icons", "createSearchBar", "editor", "place", "findId", "replaceId", "findInput", "replaceInput", "counter", "toggle", "label", "text", "b", "run", "caseToggle", "wordToggle", "iconButton", "svg", "onClick", "prev", "next", "close", "handle", "replaceOne", "replaceAllBtn", "sync", "bar", "timer", "event", "update", "matches", "current", "query", "total", "wasHidden", "from", "to", "empty", "selected"]
7
+ }