@pdftron/pdfjs-express 8.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.
- package/PDF.js Express Evaluation License.pdf +0 -0
- package/PDFJS-LICENSE +177 -0
- package/README.md +43 -0
- package/package.json +8 -0
- package/public/core/21.chunk.js +8 -0
- package/public/core/AndroidContentPartRetriever.chunk.js +3 -0
- package/public/core/ArrayBufferPdfPartRetriever.chunk.js +2 -0
- package/public/core/AzurePartRetriever.chunk.js +3 -0
- package/public/core/ExternalAnnotationMerger.chunk.js +14 -0
- package/public/core/ExternalPdfPartRetriever.chunk.js +7 -0
- package/public/core/HttpPartRetriever.chunk.js +14 -0
- package/public/core/IOSPartRetriever.chunk.js +3 -0
- package/public/core/LocalPartRetriever.chunk.js +5 -0
- package/public/core/LocalPdfPartRetriever.chunk.js +4 -0
- package/public/core/PDFInfoVersion1.chunk.js +17 -0
- package/public/core/SelectionInfoOld.chunk.js +15 -0
- package/public/core/StreamingPartRetriever.chunk.js +10 -0
- package/public/core/WebDBPartRetriever.chunk.js +3 -0
- package/public/core/WebViewerServerPartRetriever.chunk.js +30 -0
- package/public/core/WinRTPartRetriever.chunk.js +3 -0
- package/public/core/assets/1px.png +0 -0
- package/public/core/assets/dragginghand.cur +0 -0
- package/public/core/assets/dragginghand.png +0 -0
- package/public/core/assets/hand.cur +0 -0
- package/public/core/assets/hand.png +0 -0
- package/public/core/assets/mime-types/test.mem +0 -0
- package/public/core/assets/mime-types/test.res +0 -0
- package/public/core/assets/mime-types/test.wasm +0 -0
- package/public/core/assets/mime-types/test.xod +0 -0
- package/public/core/assets/zoom-in.cur +0 -0
- package/public/core/assets/zoom-out.cur +0 -0
- package/public/core/external/Promise.js +337 -0
- package/public/core/external/decode.min.js +66 -0
- package/public/core/external/model-viewer-1.3.0.min.js +907 -0
- package/public/core/external/model-viewer-legacy-1.3.0.min.js +4119 -0
- package/public/core/external/pako_inflate.min.js +2 -0
- package/public/core/external/pikaday.css +1 -0
- package/public/core/external/quill.css +1 -0
- package/public/core/legacyOffice/LegacyOfficeWorker.js +1 -0
- package/public/core/pdfjs/PDFJSDocumentType.js +2517 -0
- package/public/core/pdfjs/UIConfig.js +1 -0
- package/public/core/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/78-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/78-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Add-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Add-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
- package/public/core/pdfjs/cmaps/B5-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/B5-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/B5pc-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/B5pc-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/CNS1-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/CNS1-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/CNS2-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/CNS2-V.bcmap +3 -0
- package/public/core/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
- package/public/core/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/EUC-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/EUC-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Ext-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Ext-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GB-H.bcmap +4 -0
- package/public/core/pdfjs/cmaps/GB-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GBT-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GBT-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Hankaku.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Hiragana.bcmap +0 -0
- package/public/core/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/KSC-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/KSC-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Katakana.bcmap +0 -0
- package/public/core/pdfjs/cmaps/LICENSE +36 -0
- package/public/core/pdfjs/cmaps/NWP-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/NWP-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/Roman.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
- package/public/core/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/V.bcmap +0 -0
- package/public/core/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
- package/public/core/pdfjs/pdf.worker.js +2351 -0
- package/public/core/pdfjs/pdfjsexpress.asm.js +1 -0
- package/public/core/pdfjs/pdfjsexpress.wasm +0 -0
- package/public/core/pikaday.chunk.js +39 -0
- package/public/core/vendors.ascii85.chunk.js +7 -0
- package/public/core/vendors.ascii85.quill.chunk.js +35 -0
- package/public/core/vendors.pako.chunk.js +81 -0
- package/public/core/vendors.quill.chunk.js +422 -0
- package/public/core/webviewer-core.min.js +2481 -0
- package/public/ui/assets/fonts/GreatVibes-Regular.woff +0 -0
- package/public/ui/assets/fonts/GreatVibes-Regular.woff2 +0 -0
- package/public/ui/assets/fonts/Lato-Bold.woff +0 -0
- package/public/ui/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/public/ui/assets/fonts/Lato-Italic.woff +0 -0
- package/public/ui/assets/fonts/Lato-Regular.woff +0 -0
- package/public/ui/assets/pdftron.ico +0 -0
- package/public/ui/chunks/10.chunk.js +1 -0
- package/public/ui/chunks/100.chunk.js +1 -0
- package/public/ui/chunks/101.chunk.js +1 -0
- package/public/ui/chunks/102.chunk.js +1 -0
- package/public/ui/chunks/103.chunk.js +1 -0
- package/public/ui/chunks/104.chunk.js +1 -0
- package/public/ui/chunks/105.chunk.js +1 -0
- package/public/ui/chunks/106.chunk.js +1 -0
- package/public/ui/chunks/107.chunk.js +1 -0
- package/public/ui/chunks/108.chunk.js +1 -0
- package/public/ui/chunks/109.chunk.js +1 -0
- package/public/ui/chunks/11.chunk.js +1 -0
- package/public/ui/chunks/110.chunk.js +1 -0
- package/public/ui/chunks/111.chunk.js +1 -0
- package/public/ui/chunks/112.chunk.js +1 -0
- package/public/ui/chunks/113.chunk.js +1 -0
- package/public/ui/chunks/114.chunk.js +1 -0
- package/public/ui/chunks/115.chunk.js +1 -0
- package/public/ui/chunks/116.chunk.js +1 -0
- package/public/ui/chunks/117.chunk.js +1 -0
- package/public/ui/chunks/118.chunk.js +1 -0
- package/public/ui/chunks/119.chunk.js +1 -0
- package/public/ui/chunks/12.chunk.js +1 -0
- package/public/ui/chunks/120.chunk.js +1 -0
- package/public/ui/chunks/121.chunk.js +1 -0
- package/public/ui/chunks/122.chunk.js +1 -0
- package/public/ui/chunks/123.chunk.js +1 -0
- package/public/ui/chunks/124.chunk.js +1 -0
- package/public/ui/chunks/125.chunk.js +1 -0
- package/public/ui/chunks/126.chunk.js +1 -0
- package/public/ui/chunks/127.chunk.js +1 -0
- package/public/ui/chunks/128.chunk.js +1 -0
- package/public/ui/chunks/129.chunk.js +1 -0
- package/public/ui/chunks/13.chunk.js +1 -0
- package/public/ui/chunks/130.chunk.js +1 -0
- package/public/ui/chunks/131.chunk.js +1 -0
- package/public/ui/chunks/132.chunk.js +1 -0
- package/public/ui/chunks/133.chunk.js +1 -0
- package/public/ui/chunks/134.chunk.js +1 -0
- package/public/ui/chunks/135.chunk.js +1 -0
- package/public/ui/chunks/136.chunk.js +1 -0
- package/public/ui/chunks/137.chunk.js +1 -0
- package/public/ui/chunks/138.chunk.js +1 -0
- package/public/ui/chunks/139.chunk.js +1 -0
- package/public/ui/chunks/14.chunk.js +1 -0
- package/public/ui/chunks/140.chunk.js +1 -0
- package/public/ui/chunks/141.chunk.js +1 -0
- package/public/ui/chunks/142.chunk.js +1 -0
- package/public/ui/chunks/143.chunk.js +1 -0
- package/public/ui/chunks/144.chunk.js +1 -0
- package/public/ui/chunks/145.chunk.js +1 -0
- package/public/ui/chunks/15.chunk.js +1 -0
- package/public/ui/chunks/16.chunk.js +1 -0
- package/public/ui/chunks/17.chunk.js +1 -0
- package/public/ui/chunks/18.chunk.js +1 -0
- package/public/ui/chunks/19.chunk.js +1 -0
- package/public/ui/chunks/20.chunk.js +1 -0
- package/public/ui/chunks/21.chunk.js +1 -0
- package/public/ui/chunks/22.chunk.js +1 -0
- package/public/ui/chunks/23.chunk.js +1 -0
- package/public/ui/chunks/24.chunk.js +1 -0
- package/public/ui/chunks/25.chunk.js +1 -0
- package/public/ui/chunks/26.chunk.js +1 -0
- package/public/ui/chunks/27.chunk.js +1 -0
- package/public/ui/chunks/28.chunk.js +1 -0
- package/public/ui/chunks/29.chunk.js +1 -0
- package/public/ui/chunks/30.chunk.js +1 -0
- package/public/ui/chunks/31.chunk.js +1 -0
- package/public/ui/chunks/32.chunk.js +1 -0
- package/public/ui/chunks/33.chunk.js +1 -0
- package/public/ui/chunks/34.chunk.js +1 -0
- package/public/ui/chunks/35.chunk.js +1 -0
- package/public/ui/chunks/36.chunk.js +1 -0
- package/public/ui/chunks/37.chunk.js +1 -0
- package/public/ui/chunks/38.chunk.js +1 -0
- package/public/ui/chunks/39.chunk.js +1 -0
- package/public/ui/chunks/4.chunk.js +1 -0
- package/public/ui/chunks/40.chunk.js +1 -0
- package/public/ui/chunks/41.chunk.js +1 -0
- package/public/ui/chunks/42.chunk.js +1 -0
- package/public/ui/chunks/43.chunk.js +1 -0
- package/public/ui/chunks/44.chunk.js +1 -0
- package/public/ui/chunks/45.chunk.js +1 -0
- package/public/ui/chunks/46.chunk.js +1 -0
- package/public/ui/chunks/47.chunk.js +1 -0
- package/public/ui/chunks/48.chunk.js +1 -0
- package/public/ui/chunks/49.chunk.js +1 -0
- package/public/ui/chunks/5.chunk.js +1 -0
- package/public/ui/chunks/50.chunk.js +1 -0
- package/public/ui/chunks/51.chunk.js +1 -0
- package/public/ui/chunks/52.chunk.js +1 -0
- package/public/ui/chunks/53.chunk.js +1 -0
- package/public/ui/chunks/54.chunk.js +1 -0
- package/public/ui/chunks/55.chunk.js +1 -0
- package/public/ui/chunks/56.chunk.js +1 -0
- package/public/ui/chunks/57.chunk.js +1 -0
- package/public/ui/chunks/58.chunk.js +1 -0
- package/public/ui/chunks/59.chunk.js +1 -0
- package/public/ui/chunks/6.chunk.js +1 -0
- package/public/ui/chunks/60.chunk.js +1 -0
- package/public/ui/chunks/61.chunk.js +1 -0
- package/public/ui/chunks/62.chunk.js +1 -0
- package/public/ui/chunks/63.chunk.js +1 -0
- package/public/ui/chunks/64.chunk.js +1 -0
- package/public/ui/chunks/65.chunk.js +1 -0
- package/public/ui/chunks/66.chunk.js +1 -0
- package/public/ui/chunks/67.chunk.js +1 -0
- package/public/ui/chunks/68.chunk.js +1 -0
- package/public/ui/chunks/69.chunk.js +1 -0
- package/public/ui/chunks/7.chunk.js +1 -0
- package/public/ui/chunks/70.chunk.js +1 -0
- package/public/ui/chunks/71.chunk.js +1 -0
- package/public/ui/chunks/72.chunk.js +1 -0
- package/public/ui/chunks/73.chunk.js +1 -0
- package/public/ui/chunks/74.chunk.js +1 -0
- package/public/ui/chunks/75.chunk.js +1 -0
- package/public/ui/chunks/76.chunk.js +1 -0
- package/public/ui/chunks/77.chunk.js +1 -0
- package/public/ui/chunks/78.chunk.js +1 -0
- package/public/ui/chunks/79.chunk.js +1 -0
- package/public/ui/chunks/8.chunk.js +1 -0
- package/public/ui/chunks/80.chunk.js +1 -0
- package/public/ui/chunks/81.chunk.js +1 -0
- package/public/ui/chunks/82.chunk.js +1 -0
- package/public/ui/chunks/83.chunk.js +1 -0
- package/public/ui/chunks/84.chunk.js +1 -0
- package/public/ui/chunks/85.chunk.js +1 -0
- package/public/ui/chunks/86.chunk.js +1 -0
- package/public/ui/chunks/87.chunk.js +1 -0
- package/public/ui/chunks/88.chunk.js +1 -0
- package/public/ui/chunks/89.chunk.js +1 -0
- package/public/ui/chunks/9.chunk.js +1 -0
- package/public/ui/chunks/90.chunk.js +1 -0
- package/public/ui/chunks/91.chunk.js +1 -0
- package/public/ui/chunks/92.chunk.js +1 -0
- package/public/ui/chunks/93.chunk.js +1 -0
- package/public/ui/chunks/94.chunk.js +1 -0
- package/public/ui/chunks/95.chunk.js +1 -0
- package/public/ui/chunks/96.chunk.js +1 -0
- package/public/ui/chunks/97.chunk.js +1 -0
- package/public/ui/chunks/98.chunk.js +1 -0
- package/public/ui/chunks/99.chunk.js +1 -0
- package/public/ui/chunks/mention.chunk.css +1 -0
- package/public/ui/chunks/mention.chunk.js +1 -0
- package/public/ui/chunks/vendors.html2canvas.chunk.js +1 -0
- package/public/ui/chunks/vendors.mention.chunk.js +1 -0
- package/public/ui/configorigin.txt +2 -0
- package/public/ui/i18n/translation-de.json +666 -0
- package/public/ui/i18n/translation-en.json +666 -0
- package/public/ui/i18n/translation-es.json +666 -0
- package/public/ui/i18n/translation-fr.json +666 -0
- package/public/ui/i18n/translation-it.json +666 -0
- package/public/ui/i18n/translation-ja.json +666 -0
- package/public/ui/i18n/translation-ko.json +666 -0
- package/public/ui/i18n/translation-nl.json +666 -0
- package/public/ui/i18n/translation-pt_br.json +666 -0
- package/public/ui/i18n/translation-ru.json +666 -0
- package/public/ui/i18n/translation-zh_cn.json +666 -0
- package/public/ui/i18n/translation-zh_tw.json +666 -0
- package/public/ui/index.html +23 -0
- package/public/ui/style.css +111 -0
- package/public/ui/webviewer-ui.min.js +239 -0
- package/webviewer.min.js +1 -0
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[2],{320:function(Da,xa,z){(function(na){(function(ia,ka){Da.exports=ka()})("undefined"!==typeof self?self:this,function(){return function(ia){function ka(da){if(ea[da])return ea[da].exports;var x=ea[da]={i:da,l:!1,exports:{}};ia[da].call(x.exports,x,x.exports,ka);x.l=!0;return x.exports}var ea={};ka.m=ia;ka.c=ea;ka.d=function(da,x,r){ka.o(da,x)||Object.defineProperty(da,x,{configurable:!1,enumerable:!0,get:r})};ka.n=function(da){var x=
|
|
3
|
+
da&&da.__esModule?function(){return da["default"]}:function(){return da};ka.d(x,"a",x);return x};ka.o=function(da,x){return Object.prototype.hasOwnProperty.call(da,x)};ka.p="";return ka(ka.s=109)}([function(ia,ka,ea){Object.defineProperty(ka,"__esModule",{value:!0});ia=ea(17);var da=ea(18),x=ea(19),r=ea(45),n=ea(46),a=ea(47),b=ea(48),f=ea(49),h=ea(12),y=ea(32),e=ea(33),w=ea(31);ea=ea(1);ka.default={Scope:ea.Scope,create:ea.create,find:ea.find,query:ea.query,register:ea.register,Container:ia.default,
|
|
4
|
+
Format:da.default,Leaf:x.default,Embed:b.default,Scroll:r.default,Block:a.default,Inline:n.default,Text:f.default,Attributor:{Attribute:h.default,Class:y.default,Style:e.default,Store:w.default}}},function(ia,ka){function ea(e,w){void 0===w&&(w=!1);return null==e?null:null!=e[ka.DATA_KEY]?e[ka.DATA_KEY].blot:w?ea(e.parentNode,w):null}function da(e,w){void 0===w&&(w=y.ANY);if("string"===typeof e)var aa=h[e]||a[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)aa=h.text;else if("number"===typeof e)e&
|
|
5
|
+
y.LEVEL&y.BLOCK?aa=h.block:e&y.LEVEL&y.INLINE&&(aa=h.inline);else if(e instanceof HTMLElement){var fa=(e.getAttribute("class")||"").split(/\s+/),ja;for(ja in fa)if(aa=b[fa[ja]])break;aa=aa||f[e.tagName]}return null==aa?null:w&y.LEVEL&aa.scope&&w&y.TYPE&aa.scope?aa:null}function x(){for(var e=[],w=0;w<arguments.length;w++)e[w]=arguments[w];if(1<e.length)return e.map(function(fa){return x(fa)});var aa=e[0];if("string"!==typeof aa.blotName&&"string"!==typeof aa.attrName)throw new n("Invalid definition");
|
|
6
|
+
if("abstract"===aa.blotName)throw new n("Cannot register abstract class");h[aa.blotName||aa.attrName]=aa;"string"===typeof aa.keyName?a[aa.keyName]=aa:(null!=aa.className&&(b[aa.className]=aa),null!=aa.tagName&&(Array.isArray(aa.tagName)?aa.tagName=aa.tagName.map(function(fa){return fa.toUpperCase()}):aa.tagName=aa.tagName.toUpperCase(),(Array.isArray(aa.tagName)?aa.tagName:[aa.tagName]).forEach(function(fa){if(null==f[fa]||null==aa.className)f[fa]=aa})));return aa}var r=this&&this.__extends||function(){var e=
|
|
7
|
+
Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,aa){w.__proto__=aa}||function(w,aa){for(var fa in aa)aa.hasOwnProperty(fa)&&(w[fa]=aa[fa])};return function(w,aa){function fa(){this.constructor=w}e(w,aa);w.prototype=null===aa?Object.create(aa):(fa.prototype=aa.prototype,new fa)}}();Object.defineProperty(ka,"__esModule",{value:!0});var n=function(e){function w(aa){aa="[Parchment] "+aa;var fa=e.call(this,aa)||this;fa.message=aa;fa.name=fa.constructor.name;return fa}r(w,e);return w}(Error);
|
|
8
|
+
ka.ParchmentError=n;var a={},b={},f={},h={};ka.DATA_KEY="__blot";var y;(function(e){e[e.TYPE=3]="TYPE";e[e.LEVEL=12]="LEVEL";e[e.ATTRIBUTE=13]="ATTRIBUTE";e[e.BLOT=14]="BLOT";e[e.INLINE=7]="INLINE";e[e.BLOCK=11]="BLOCK";e[e.BLOCK_BLOT=10]="BLOCK_BLOT";e[e.INLINE_BLOT=6]="INLINE_BLOT";e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE";e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE";e[e.ANY=15]="ANY"})(y=ka.Scope||(ka.Scope={}));ka.create=function(e,w){var aa=da(e);if(null==aa)throw new n("Unable to create "+e+" blot");
|
|
9
|
+
e=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:aa.create(w);return new aa(e,w)};ka.find=ea;ka.query=da;ka.register=x},function(ia,ka,ea){function da(f){Array.isArray(f)?this.ops=f:null!=f&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}var x=ea(51),r=ea(11),n=ea(3),a=ea(20),b=String.fromCharCode(0);da.prototype.insert=function(f,h){var y={};if(0===f.length)return this;y.insert=f;null!=h&&"object"===typeof h&&0<Object.keys(h).length&&(y.attributes=h);return this.push(y)};da.prototype["delete"]=
|
|
10
|
+
function(f){return 0>=f?this:this.push({"delete":f})};da.prototype.retain=function(f,h){if(0>=f)return this;f={retain:f};null!=h&&"object"===typeof h&&0<Object.keys(h).length&&(f.attributes=h);return this.push(f)};da.prototype.push=function(f){var h=this.ops.length,y=this.ops[h-1];f=n(!0,{},f);if("object"===typeof y){if("number"===typeof f["delete"]&&"number"===typeof y["delete"])return this.ops[h-1]={"delete":y["delete"]+f["delete"]},this;if("number"===typeof y["delete"]&&null!=f.insert&&(--h,y=
|
|
11
|
+
this.ops[h-1],"object"!==typeof y))return this.ops.unshift(f),this;if(r(f.attributes,y.attributes)){if("string"===typeof f.insert&&"string"===typeof y.insert)return this.ops[h-1]={insert:y.insert+f.insert},"object"===typeof f.attributes&&(this.ops[h-1].attributes=f.attributes),this;if("number"===typeof f.retain&&"number"===typeof y.retain)return this.ops[h-1]={retain:y.retain+f.retain},"object"===typeof f.attributes&&(this.ops[h-1].attributes=f.attributes),this}}h===this.ops.length?this.ops.push(f):
|
|
12
|
+
this.ops.splice(h,0,f);return this};da.prototype.chop=function(){var f=this.ops[this.ops.length-1];f&&f.retain&&!f.attributes&&this.ops.pop();return this};da.prototype.filter=function(f){return this.ops.filter(f)};da.prototype.forEach=function(f){this.ops.forEach(f)};da.prototype.map=function(f){return this.ops.map(f)};da.prototype.partition=function(f){var h=[],y=[];this.forEach(function(e){(f(e)?h:y).push(e)});return[h,y]};da.prototype.reduce=function(f,h){return this.ops.reduce(f,h)};da.prototype.changeLength=
|
|
13
|
+
function(){return this.reduce(function(f,h){return h.insert?f+a.length(h):h.delete?f-h.delete:f},0)};da.prototype.length=function(){return this.reduce(function(f,h){return f+a.length(h)},0)};da.prototype.slice=function(f,h){f=f||0;"number"!==typeof h&&(h=Infinity);for(var y=[],e=a.iterator(this.ops),w=0;w<h&&e.hasNext();){if(w<f)var aa=e.next(f-w);else aa=e.next(h-w),y.push(aa);w+=a.length(aa)}return new da(y)};da.prototype.compose=function(f){var h=a.iterator(this.ops);f=a.iterator(f.ops);var y=
|
|
14
|
+
[],e=f.peek();if(null!=e&&"number"===typeof e.retain&&null==e.attributes){for(var w=e.retain;"insert"===h.peekType()&&h.peekLength()<=w;)w-=h.peekLength(),y.push(h.next());0<e.retain-w&&f.next(e.retain-w)}for(y=new da(y);h.hasNext()||f.hasNext();)if("insert"===f.peekType())y.push(f.next());else if("delete"===h.peekType())y.push(h.next());else{w=Math.min(h.peekLength(),f.peekLength());var aa=h.next(w),fa=f.next(w);if("number"===typeof fa.retain){e={};"number"===typeof aa.retain?e.retain=w:e.insert=
|
|
15
|
+
aa.insert;if(w=a.attributes.compose(aa.attributes,fa.attributes,"number"===typeof aa.retain))e.attributes=w;y.push(e);if(!f.hasNext()&&r(y.ops[y.ops.length-1],e))return h=new da(h.rest()),y.concat(h).chop()}else"number"===typeof fa["delete"]&&"number"===typeof aa.retain&&y.push(fa)}return y.chop()};da.prototype.concat=function(f){var h=new da(this.ops.slice());0<f.ops.length&&(h.push(f.ops[0]),h.ops=h.ops.concat(f.ops.slice(1)));return h};da.prototype.diff=function(f,h){if(this.ops===f.ops)return new da;
|
|
16
|
+
var y=[this,f].map(function(fa){return fa.map(function(ja){if(null!=ja.insert)return"string"===typeof ja.insert?ja.insert:b;throw Error("diff() called "+(fa===f?"on":"with")+" non-document");}).join("")}),e=new da;h=x(y[0],y[1],h);var w=a.iterator(this.ops),aa=a.iterator(f.ops);h.forEach(function(fa){for(var ja=fa[1].length;0<ja;){var ba=0;switch(fa[0]){case x.INSERT:ba=Math.min(aa.peekLength(),ja);e.push(aa.next(ba));break;case x.DELETE:ba=Math.min(ja,w.peekLength());w.next(ba);e["delete"](ba);break;
|
|
17
|
+
case x.EQUAL:ba=Math.min(w.peekLength(),aa.peekLength(),ja);var ha=w.next(ba),ca=aa.next(ba);if(r(ha.insert,ca.insert))e.retain(ba,a.attributes.diff(ha.attributes,ca.attributes));else e.push(ca)["delete"](ba)}ja-=ba}});return e.chop()};da.prototype.eachLine=function(f,h){h=h||"\n";for(var y=a.iterator(this.ops),e=new da,w=0;y.hasNext();){if("insert"!==y.peekType())return;var aa=y.peek(),fa=a.length(aa)-y.peekLength();aa="string"===typeof aa.insert?aa.insert.indexOf(h,fa)-fa:-1;if(0>aa)e.push(y.next());
|
|
18
|
+
else if(0<aa)e.push(y.next(aa));else{if(!1===f(e,y.next(1).attributes||{},w))return;w+=1;e=new da}}0<e.length()&&f(e,{},w)};da.prototype.transform=function(f,h){h=!!h;if("number"===typeof f)return this.transformPosition(f,h);var y=a.iterator(this.ops);f=a.iterator(f.ops);for(var e=new da;y.hasNext()||f.hasNext();)if("insert"!==y.peekType()||!h&&"insert"===f.peekType())if("insert"===f.peekType())e.push(f.next());else{var w=Math.min(y.peekLength(),f.peekLength()),aa=y.next(w),fa=f.next(w);aa["delete"]||
|
|
19
|
+
(fa["delete"]?e.push(fa):e.retain(w,a.attributes.transform(aa.attributes,fa.attributes,h)))}else e.retain(a.length(y.next()));return e.chop()};da.prototype.transformPosition=function(f,h){h=!!h;for(var y=a.iterator(this.ops),e=0;y.hasNext()&&e<=f;){var w=y.peekLength(),aa=y.peekType();y.next();"delete"===aa?f-=Math.min(w,f-e):("insert"===aa&&(e<f||!h)&&(f+=w),e+=w)}return f};ia.exports=da},function(ia){function ka(f,h){if("__proto__"===h){if(!r.call(f,h))return;if(b)return b(f,h).value}return f[h]}
|
|
20
|
+
function ea(f,h){a&&"__proto__"===h.name?a(f,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):f[h.name]=h.newValue}function da(f){if(!f||"[object Object]"!==n.call(f))return!1;var h=r.call(f,"constructor"),y=f.constructor&&f.constructor.prototype&&r.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!h&&!y)return!1;for(var e in f);return"undefined"===typeof e||r.call(f,e)}function x(f){return"function"===typeof Array.isArray?Array.isArray(f):"[object Array]"===n.call(f)}
|
|
21
|
+
var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Object.defineProperty,b=Object.getOwnPropertyDescriptor;ia.exports=function h(){var y,e,w=arguments[0],aa=1,fa=arguments.length,ja=!1;"boolean"===typeof w&&(ja=w,w=arguments[1]||{},aa=2);if(null==w||"object"!==typeof w&&"function"!==typeof w)w={};for(;aa<fa;++aa){var ba=arguments[aa];if(null!=ba)for(y in ba){var ha=ka(w,y);var ca=ka(ba,y);w!==ca&&(ja&&ca&&(da(ca)||(e=x(ca)))?(e?(e=!1,ha=ha&&x(ha)?ha:[]):ha=ha&&da(ha)?ha:{},ea(w,{name:y,
|
|
22
|
+
newValue:h(ja,ha,ca)})):"undefined"!==typeof ca&&ea(w,{name:y,newValue:ca}))}}return w}},function(ia,ka,ea){function da(ja){return ja&&ja.__esModule?ja:{default:ja}}function x(ja,ba){if(!(ja instanceof ba))throw new TypeError("Cannot call a class as a function");}function r(ja,ba){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ba||"object"!==typeof ba&&"function"!==typeof ba?ja:ba}function n(ja,ba){if("function"!==typeof ba&&null!==ba)throw new TypeError("Super expression must either be null or a function, not "+
|
|
23
|
+
typeof ba);ja.prototype=Object.create(ba&&ba.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});ba&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,ba):ja.__proto__=ba)}function a(ja){var ba=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null==ja)return ba;"function"===typeof ja.formats&&(ba=(0,h.default)(ba,ja.formats()));return null==ja.parent||"scroll"==ja.parent.blotName||ja.parent.statics.scope!==ja.statics.scope?ba:a(ja.parent,ba)}Object.defineProperty(ka,
|
|
24
|
+
"__esModule",{value:!0});ka.default=ka.BlockEmbed=ka.bubbleFormats=void 0;var b=function(){function ja(ba,ha){for(var ca=0;ca<ha.length;ca++){var la=ha[ca];la.enumerable=la.enumerable||!1;la.configurable=!0;"value"in la&&(la.writable=!0);Object.defineProperty(ba,la.key,la)}}return function(ba,ha,ca){ha&&ja(ba.prototype,ha);ca&&ja(ba,ca);return ba}}(),f=function la(ba,ha,ca){null===ba&&(ba=Function.prototype);var ua=Object.getOwnPropertyDescriptor(ba,ha);if(void 0===ua){if(ba=Object.getPrototypeOf(ba),
|
|
25
|
+
null!==ba)return la(ba,ha,ca)}else{if("value"in ua)return ua.value;ha=ua.get;return void 0===ha?void 0:ha.call(ca)}};ia=ea(3);var h=da(ia);ia=ea(2);var y=da(ia);ia=ea(0);var e=da(ia);ia=ea(16);var w=da(ia);ia=ea(6);ia=da(ia);ea=ea(7);ea=da(ea);var aa=function(ba){function ha(){x(this,ha);return r(this,(ha.__proto__||Object.getPrototypeOf(ha)).apply(this,arguments))}n(ha,ba);b(ha,[{key:"attach",value:function(){f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"attach",this).call(this);
|
|
26
|
+
this.attributes=new e.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new y.default).insert(this.value(),(0,h.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(ca,la){ca=e.default.query(ca,e.default.Scope.BLOCK_ATTRIBUTE);null!=ca&&this.attributes.attribute(ca,la)}},{key:"formatAt",value:function(ca,la,ua,ma){this.format(ua,ma)}},{key:"insertAt",value:function(ca,la,ua){"string"===typeof la&&la.endsWith("\n")?(ua=e.default.create(fa.blotName),
|
|
27
|
+
this.parent.insertBefore(ua,0===ca?this:this.next),ua.insertAt(0,la.slice(0,-1))):f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"insertAt",this).call(this,ca,la,ua)}}]);return ha}(e.default.Embed);aa.scope=e.default.Scope.BLOCK_BLOT;var fa=function(ba){function ha(ca){x(this,ha);ca=r(this,(ha.__proto__||Object.getPrototypeOf(ha)).call(this,ca));ca.cache={};return ca}n(ha,ba);b(ha,[{key:"delta",value:function(){null==this.cache.delta&&(this.cache.delta=this.descendants(e.default.Leaf).reduce(function(ca,
|
|
28
|
+
la){return 0===la.length()?ca:ca.insert(la.value(),a(la))},new y.default).insert("\n",a(this)));return this.cache.delta}},{key:"deleteAt",value:function(ca,la){f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"deleteAt",this).call(this,ca,la);this.cache={}}},{key:"formatAt",value:function(ca,la,ua,ma){0>=la||(e.default.query(ua,e.default.Scope.BLOCK)?ca+la===this.length()&&this.format(ua,ma):f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"formatAt",this).call(this,ca,Math.min(la,
|
|
29
|
+
this.length()-ca-1),ua,ma),this.cache={})}},{key:"insertAt",value:function(ca,la,ua){if(null!=ua)return f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"insertAt",this).call(this,ca,la,ua);if(0!==la.length){la=la.split("\n");ua=la.shift();0<ua.length&&(ca<this.length()-1||null==this.children.tail?f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"insertAt",this).call(this,Math.min(ca,this.length()-1),ua):this.children.tail.insertAt(this.children.tail.length(),ua),this.cache=
|
|
30
|
+
{});var ma=this;la.reduce(function(sa,oa){ma=ma.split(sa,!0);ma.insertAt(0,oa);return oa.length},ca+ua.length)}}},{key:"insertBefore",value:function(ca,la){var ua=this.children.head;f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"insertBefore",this).call(this,ca,la);ua instanceof w.default&&ua.remove();this.cache={}}},{key:"length",value:function(){null==this.cache.length&&(this.cache.length=f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"length",this).call(this)+1);
|
|
31
|
+
return this.cache.length}},{key:"moveChildren",value:function(ca,la){f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"moveChildren",this).call(this,ca,la);this.cache={}}},{key:"optimize",value:function(ca){f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"optimize",this).call(this,ca);this.cache={}}},{key:"path",value:function(ca){return f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"path",this).call(this,ca,!0)}},{key:"removeChild",value:function(ca){f(ha.prototype.__proto__||
|
|
32
|
+
Object.getPrototypeOf(ha.prototype),"removeChild",this).call(this,ca);this.cache={}}},{key:"split",value:function(ca){var la=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(la&&(0===ca||ca>=this.length()-1)){la=this.clone();if(0===ca)return this.parent.insertBefore(la,this),this;this.parent.insertBefore(la,this.next);return la}la=f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"split",this).call(this,ca,la);this.cache={};return la}}]);return ha}(e.default.Block);fa.blotName=
|
|
33
|
+
"block";fa.tagName="P";fa.defaultChild="break";fa.allowedChildren=[ia.default,e.default.Embed,ea.default];ka.bubbleFormats=a;ka.BlockEmbed=aa;ka.default=fa},function(ia,ka,ea){function da(oa){return oa&&oa.__esModule?oa:{default:oa}}function x(oa,ra,ta){ra in oa?Object.defineProperty(oa,ra,{value:ta,enumerable:!0,configurable:!0,writable:!0}):oa[ra]=ta;return oa}function r(oa,ra){ra=(0,ca.default)(!0,{container:oa,modules:{clipboard:!0,keyboard:!0,history:!0}},ra);if(ra.theme&&ra.theme!==sa.DEFAULTS.theme){if(ra.theme=
|
|
34
|
+
sa.import("themes/"+ra.theme),null==ra.theme)throw Error("Invalid theme "+ra.theme+". Did you register it?");}else ra.theme=ua.default;oa=(0,ca.default)(!0,{},ra.theme.DEFAULTS);[oa,ra].forEach(function(qa){qa.modules=qa.modules||{};Object.keys(qa.modules).forEach(function(wa){!0===qa.modules[wa]&&(qa.modules[wa]={})})});var ta=Object.keys(oa.modules).concat(Object.keys(ra.modules)).reduce(function(qa,wa){var Aa=sa.import("modules/"+wa);null==Aa?ma.error("Cannot load "+wa+" module. Are you sure you registered it?"):
|
|
35
|
+
qa[wa]=Aa.DEFAULTS||{};return qa},{});null!=ra.modules&&ra.modules.toolbar&&ra.modules.toolbar.constructor!==Object&&(ra.modules.toolbar={container:ra.modules.toolbar});ra=(0,ca.default)(!0,{},sa.DEFAULTS,{modules:ta},oa,ra);["bounds","container","scrollingContainer"].forEach(function(qa){"string"===typeof ra[qa]&&(ra[qa]=document.querySelector(ra[qa]))});ra.modules=Object.keys(ra.modules).reduce(function(qa,wa){ra.modules[wa]&&(qa[wa]=ra.modules[wa]);return qa},{});return ra}function n(oa,ra,ta,
|
|
36
|
+
qa){if(this.options.strict&&!this.isEnabled()&&ra===aa.default.sources.USER)return new e.default;var wa=null==ta?null:this.getSelection(),Aa=this.editor.delta;oa=oa();null!=wa&&(!0===ta&&(ta=wa.index),null==qa?wa=b(wa,oa,ra):0!==qa&&(wa=b(wa,ta,qa,ra)),this.setSelection(wa,aa.default.sources.SILENT));if(0<oa.length()){var Ga;ta=[aa.default.events.TEXT_CHANGE,oa,Aa,ra];(Ga=this.emitter).emit.apply(Ga,[aa.default.events.EDITOR_CHANGE].concat(ta));if(ra!==aa.default.sources.SILENT){var Na;(Na=this.emitter).emit.apply(Na,
|
|
37
|
+
ta)}}return oa}function a(oa,ra,ta,qa,wa){var Aa={};"number"===typeof oa.index&&"number"===typeof oa.length?("number"!==typeof ra?(wa=qa,qa=ta,ta=ra,ra=oa.length):ra=oa.length,oa=oa.index):"number"!==typeof ra&&(wa=qa,qa=ta,ta=ra,ra=0);"object"===("undefined"===typeof ta?"undefined":f(ta))?(Aa=ta,wa=qa):"string"===typeof ta&&(null!=qa?Aa[ta]=qa:wa=ta);wa=wa||aa.default.sources.API;return[oa,ra,Aa,wa]}function b(oa,ra,ta,qa){if(null==oa)return null;var wa=void 0,Aa=void 0;ra instanceof e.default?(wa=
|
|
38
|
+
[oa.index,oa.index+oa.length].map(function(Ga){return ra.transformPosition(Ga,qa!==aa.default.sources.USER)}),oa=h(wa,2),wa=oa[0],Aa=oa[1]):(wa=[oa.index,oa.index+oa.length].map(function(Ga){return Ga<ra||Ga===ra&&qa===aa.default.sources.USER?Ga:0<=ta?Ga+ta:Math.max(ra,Ga+ta)}),oa=h(wa,2),wa=oa[0],Aa=oa[1]);return new ba.Range(wa,Aa-wa)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.overload=ka.expandConfig=void 0;var f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?
|
|
39
|
+
function(oa){return typeof oa}:function(oa){return oa&&"function"===typeof Symbol&&oa.constructor===Symbol&&oa!==Symbol.prototype?"symbol":typeof oa},h=function(){return function(oa,ra){if(Array.isArray(oa))return oa;if(Symbol.iterator in Object(oa)){var ta=[],qa=!0,wa=!1,Aa=void 0;try{for(var Ga=oa[Symbol.iterator](),Na;!(qa=(Na=Ga.next()).done)&&(ta.push(Na.value),!ra||ta.length!==ra);qa=!0);}catch(Ha){wa=!0,Aa=Ha}finally{try{if(!qa&&Ga["return"])Ga["return"]()}finally{if(wa)throw Aa;}}return ta}throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
40
|
+
}}(),y=function(){function oa(ra,ta){for(var qa=0;qa<ta.length;qa++){var wa=ta[qa];wa.enumerable=wa.enumerable||!1;wa.configurable=!0;"value"in wa&&(wa.writable=!0);Object.defineProperty(ra,wa.key,wa)}}return function(ra,ta,qa){ta&&oa(ra.prototype,ta);qa&&oa(ra,qa);return ra}}();ea(50);ia=ea(2);var e=da(ia);ia=ea(14);var w=da(ia);ia=ea(8);var aa=da(ia);ia=ea(9);ia=da(ia);var fa=ea(0),ja=da(fa),ba=ea(15),ha=da(ba);fa=ea(3);var ca=da(fa);fa=ea(10);var la=da(fa);ea=ea(34);var ua=da(ea),ma=(0,la.default)("quill"),
|
|
41
|
+
sa=function(){function oa(ra){var ta=this,qa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof oa))throw new TypeError("Cannot call a class as a function");this.options=r(ra,qa);this.container=this.options.container;if(null==this.container)return ma.error("Invalid Quill container",ra);this.options.debug&&oa.debug(this.options.debug);qa=this.container.innerHTML.trim();this.container.classList.add("ql-container");this.container.innerHTML="";this.container.__quill=this;this.root=
|
|
42
|
+
this.addContainer("ql-editor");this.root.classList.add("ql-blank");this.root.setAttribute("data-gramm",!1);this.scrollingContainer=this.options.scrollingContainer||this.root;this.emitter=new aa.default;this.scroll=ja.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats});this.editor=new w.default(this.scroll);this.selection=new ha.default(this.scroll,this.emitter);this.theme=new this.options.theme(this,this.options);this.keyboard=this.theme.addModule("keyboard");this.clipboard=
|
|
43
|
+
this.theme.addModule("clipboard");this.history=this.theme.addModule("history");this.theme.init();this.emitter.on(aa.default.events.EDITOR_CHANGE,function(wa){wa===aa.default.events.TEXT_CHANGE&&ta.root.classList.toggle("ql-blank",ta.editor.isBlank())});this.emitter.on(aa.default.events.SCROLL_UPDATE,function(wa,Aa){var Ga=ta.selection.lastRange,Na=Ga&&0===Ga.length?Ga.index:void 0;n.call(ta,function(){return ta.editor.update(null,Aa,Na)},wa)});qa=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+
|
|
44
|
+
qa+"<p><br></p></div>");this.setContents(qa);this.history.clear();this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder);this.options.readOnly&&this.disable()}y(oa,null,[{key:"debug",value:function(ra){!0===ra&&(ra="log");la.default.level(ra)}},{key:"find",value:function(ra){return ra.__quill||ja.default.find(ra)}},{key:"import",value:function(ra){null==this.imports[ra]&&ma.error("Cannot import "+ra+". Are you sure it was registered?");return this.imports[ra]}},
|
|
45
|
+
{key:"register",value:function(ra,ta){var qa=this,wa=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;"string"!==typeof ra?(wa=ra.attrName||ra.blotName,"string"===typeof wa?this.register("formats/"+wa,ra,ta):Object.keys(ra).forEach(function(Aa){qa.register(Aa,ra[Aa],ta)})):(null==this.imports[ra]||wa||ma.warn("Overwriting "+ra+" with",ta),this.imports[ra]=ta,(ra.startsWith("blots/")||ra.startsWith("formats/"))&&"abstract"!==ta.blotName?ja.default.register(ta):ra.startsWith("modules")&&"function"===
|
|
46
|
+
typeof ta.register&&ta.register())}}]);y(oa,[{key:"addContainer",value:function(ra){var ta=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof ra){var qa=ra;ra=document.createElement("div");ra.classList.add(qa)}this.container.insertBefore(ra,ta);return ra}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ra,ta,qa){var wa=this;qa=a(ra,ta,qa);qa=h(qa,4);ra=qa[0];ta=qa[1];qa=qa[3];return n.call(this,function(){return wa.editor.deleteText(ra,
|
|
47
|
+
ta)},qa,ra,-1*ta)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var ra=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;this.scroll.enable(ra);this.container.classList.toggle("ql-disabled",!ra)}},{key:"focus",value:function(){var ra=this.scrollingContainer.scrollTop;this.selection.focus();this.scrollingContainer.scrollTop=ra;this.scrollIntoView()}},{key:"format",value:function(ra,ta){var qa=this;return n.call(this,function(){var wa=qa.getSelection(!0),
|
|
48
|
+
Aa=new e.default;if(null==wa)return Aa;if(ja.default.query(ra,ja.default.Scope.BLOCK))Aa=qa.editor.formatLine(wa.index,wa.length,x({},ra,ta));else{if(0===wa.length)return qa.selection.format(ra,ta),Aa;Aa=qa.editor.formatText(wa.index,wa.length,x({},ra,ta))}qa.setSelection(wa,aa.default.sources.SILENT);return Aa},2<arguments.length&&void 0!==arguments[2]?arguments[2]:aa.default.sources.API)}},{key:"formatLine",value:function(ra,ta,qa,wa,Aa){var Ga=this,Na=void 0;qa=a(ra,ta,qa,wa,Aa);qa=h(qa,4);ra=
|
|
49
|
+
qa[0];ta=qa[1];Na=qa[2];Aa=qa[3];return n.call(this,function(){return Ga.editor.formatLine(ra,ta,Na)},Aa,ra,0)}},{key:"formatText",value:function(ra,ta,qa,wa,Aa){var Ga=this,Na=void 0;qa=a(ra,ta,qa,wa,Aa);qa=h(qa,4);ra=qa[0];ta=qa[1];Na=qa[2];Aa=qa[3];return n.call(this,function(){return Ga.editor.formatText(ra,ta,Na)},Aa,ra,0)}},{key:"getBounds",value:function(ra){var ta=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;ta="number"===typeof ra?this.selection.getBounds(ra,ta):this.selection.getBounds(ra.index,
|
|
50
|
+
ra.length);var qa=this.container.getBoundingClientRect();return{bottom:ta.bottom-qa.top,height:ta.height,left:ta.left-qa.left,right:ta.right-qa.left,top:ta.top-qa.top,width:ta.width}}},{key:"getContents",value:function(){var ra=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,ta=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-ra;ra=a(ra,ta);ta=h(ra,2);ra=ta[0];ta=ta[1];return this.editor.getContents(ra,ta)}},{key:"getFormat",value:function(){var ra=0<arguments.length&&
|
|
51
|
+
void 0!==arguments[0]?arguments[0]:this.getSelection(!0),ta=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof ra?this.editor.getFormat(ra,ta):this.editor.getFormat(ra.index,ra.length)}},{key:"getIndex",value:function(ra){return ra.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(ra){return this.scroll.leaf(ra)}},{key:"getLine",value:function(ra){return this.scroll.line(ra)}},{key:"getLines",value:function(){var ra=
|
|
52
|
+
0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,ta=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof ra?this.scroll.lines(ra.index,ra.length):this.scroll.lines(ra,ta)}},{key:"getModule",value:function(ra){return this.theme.modules[ra]}},{key:"getSelection",value:function(){0<arguments.length&&void 0!==arguments[0]&&arguments[0]&&this.focus();this.update();return this.selection.getRange()[0]}},{key:"getText",value:function(){var ra=0<arguments.length&&
|
|
53
|
+
void 0!==arguments[0]?arguments[0]:0,ta=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-ra;ra=a(ra,ta);ta=h(ra,2);ra=ta[0];ta=ta[1];return this.editor.getText(ra,ta)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ra,ta,qa){var wa=this;return n.call(this,function(){return wa.editor.insertEmbed(ra,ta,qa)},3<arguments.length&&void 0!==arguments[3]?arguments[3]:oa.sources.API,ra)}},{key:"insertText",value:function(ra,ta,
|
|
54
|
+
qa,wa,Aa){var Ga=this,Na=void 0;qa=a(ra,0,qa,wa,Aa);qa=h(qa,4);ra=qa[0];Na=qa[2];Aa=qa[3];return n.call(this,function(){return Ga.editor.insertText(ra,ta,Na)},Aa,ra,ta.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,
|
|
55
|
+
arguments)}},{key:"pasteHTML",value:function(ra,ta,qa){this.clipboard.dangerouslyPasteHTML(ra,ta,qa)}},{key:"removeFormat",value:function(ra,ta,qa){var wa=this;qa=a(ra,ta,qa);qa=h(qa,4);ra=qa[0];ta=qa[1];qa=qa[3];return n.call(this,function(){return wa.editor.removeFormat(ra,ta)},qa,ra)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(ra){var ta=this;return n.call(this,function(){ra=new e.default(ra);var qa=ta.getLength();
|
|
56
|
+
qa=ta.editor.deleteText(0,qa);var wa=ta.editor.applyDelta(ra),Aa=wa.ops[wa.ops.length-1];null!=Aa&&"string"===typeof Aa.insert&&"\n"===Aa.insert[Aa.insert.length-1]&&(ta.editor.deleteText(ta.getLength()-1,1),wa.delete(1));return qa.compose(wa)},1<arguments.length&&void 0!==arguments[1]?arguments[1]:aa.default.sources.API)}},{key:"setSelection",value:function(ra,ta,qa){null==ra?this.selection.setRange(null,ta||oa.sources.API):(ra=a(ra,ta,qa),qa=h(ra,4),ra=qa[0],ta=qa[1],qa=qa[3],this.selection.setRange(new ba.Range(ra,
|
|
57
|
+
ta),qa),qa!==aa.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},{key:"setText",value:function(ra){var ta=1<arguments.length&&void 0!==arguments[1]?arguments[1]:aa.default.sources.API,qa=(new e.default).insert(ra);return this.setContents(qa,ta)}},{key:"update",value:function(){var ra=0<arguments.length&&void 0!==arguments[0]?arguments[0]:aa.default.sources.USER,ta=this.scroll.update(ra);this.selection.update(ra);return ta}},{key:"updateContents",value:function(ra){var ta=
|
|
58
|
+
this,qa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:aa.default.sources.API;return n.call(this,function(){ra=new e.default(ra);return ta.editor.applyDelta(ra,qa)},qa,!0)}}]);return oa}();sa.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};sa.events=aa.default.events;sa.sources=aa.default.sources;sa.version="1.3.7";sa.imports={delta:e.default,parchment:ja.default,"core/module":ia.default,"core/theme":ua.default};ka.expandConfig=
|
|
59
|
+
r;ka.overload=a;ka.default=sa},function(ia,ka,ea){function da(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){function a(b,f){for(var h=0;h<f.length;h++){var y=f[h];y.enumerable=
|
|
60
|
+
y.enumerable||!1;y.configurable=!0;"value"in y&&(y.writable=!0);Object.defineProperty(b,y.key,y)}}return function(b,f,h){f&&a(b.prototype,f);h&&a(b,h);return b}}(),r=function y(b,f,h){null===b&&(b=Function.prototype);var e=Object.getOwnPropertyDescriptor(b,f);if(void 0===e){if(b=Object.getPrototypeOf(b),null!==b)return y(b,f,h)}else{if("value"in e)return e.value;f=e.get;return void 0===f?void 0:f.call(h)}};ia=(ia=ea(7))&&ia.__esModule?ia:{default:ia};var n=(ea=ea(0))&&ea.__esModule?ea:{default:ea};
|
|
61
|
+
ea=function(b){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var h=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(f,b);x(f,[{key:"formatAt",value:function(h,y,e,w){0>f.compare(this.statics.blotName,e)&&n.default.query(e,n.default.Scope.BLOT)?(h=this.isolate(h,y),w&&h.wrap(e,w)):r(f.prototype.__proto__||
|
|
62
|
+
Object.getPrototypeOf(f.prototype),"formatAt",this).call(this,h,y,e,w)}},{key:"optimize",value:function(h){r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"optimize",this).call(this,h);this.parent instanceof f&&0<f.compare(this.statics.blotName,this.parent.statics.blotName)&&(h=this.parent.isolate(this.offset(),this.length()),this.moveChildren(h),h.wrap(this))}}],[{key:"compare",value:function(h,y){var e=f.order.indexOf(h),w=f.order.indexOf(y);return 0<=e||0<=w?e-w:h===y?0:h<y?-1:1}}]);
|
|
63
|
+
return f}(n.default.Inline);ea.allowedChildren=[ea,n.default.Embed,ia.default];ea.order="cursor inline underline strike italic bold script link code".split(" ");ka.default=ea},function(ia,ka,ea){function da(x,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);x.prototype=Object.create(r&&r.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(x,r):x.__proto__=
|
|
64
|
+
r)}Object.defineProperty(ka,"__esModule",{value:!0});ia=function(x){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var n=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?this:n}da(r,x);return r}(function(x){return x&&x.__esModule?x:{default:x}}(ea(0)).default.Text);ka.default=ia},function(ia,
|
|
65
|
+
ka,ea){function da(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){function a(b,f){for(var h=0;h<f.length;h++){var y=f[h];y.enumerable=y.enumerable||!1;y.configurable=!0;"value"in
|
|
66
|
+
y&&(y.writable=!0);Object.defineProperty(b,y.key,y)}}return function(b,f,h){f&&a(b.prototype,f);h&&a(b,h);return b}}(),r=function y(b,f,h){null===b&&(b=Function.prototype);var e=Object.getOwnPropertyDescriptor(b,f);if(void 0===e){if(b=Object.getPrototypeOf(b),null!==b)return y(b,f,h)}else{if("value"in e)return e.value;f=e.get;return void 0===f?void 0:f.call(h)}};ia=(ia=ea(54))&&ia.__esModule?ia:{default:ia};ea=(ea=ea(10))&&ea.__esModule?ea:{default:ea};var n=(0,ea.default)("quill:events");["selectionchange",
|
|
67
|
+
"mousedown","mouseup","click"].forEach(function(b){document.addEventListener(b,function(){for(var f=arguments.length,h=Array(f),y=0;y<f;y++)h[y]=arguments[y];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(e){if(e.__quill&&e.__quill.emitter){var w;(w=e.__quill.emitter).handleDOM.apply(w,h)}})})});ea=function(b){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var h=(f.__proto__||Object.getPrototypeOf(f)).call(this);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
68
|
+
h=!h||"object"!==typeof h&&"function"!==typeof h?this:h;h.listeners={};h.on("error",n.error);return h}da(f,b);x(f,[{key:"emit",value:function(){n.log.apply(n,arguments);r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(h){for(var y=arguments.length,e=Array(1<y?y-1:0),w=1;w<y;w++)e[w-1]=arguments[w];(this.listeners[h.type]||[]).forEach(function(aa){var fa=aa.node;aa=aa.handler;(h.target===fa||fa.contains(h.target))&&aa.apply(void 0,
|
|
69
|
+
[h].concat(e))})}},{key:"listenDOM",value:function(h,y,e){this.listeners[h]||(this.listeners[h]=[]);this.listeners[h].push({node:y,handler:e})}}]);return f}(ia.default);ea.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"};ea.sources={API:"api",SILENT:"silent",USER:"user"};ka.default=ea},function(ia,ka){Object.defineProperty(ka,"__esModule",
|
|
70
|
+
{value:!0});ia=function x(da){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");this.quill=da;this.options=r};ia.DEFAULTS={};ka.default=ia},function(ia,ka){function ea(n){if(x.indexOf(n)<=x.indexOf(r)){for(var a,b=arguments.length,f=Array(1<b?b-1:0),h=1;h<b;h++)f[h-1]=arguments[h];(a=console)[n].apply(a,f)}}function da(n){return x.reduce(function(a,b){a[b]=ea.bind(console,b,n);return a},{})}Object.defineProperty(ka,
|
|
71
|
+
"__esModule",{value:!0});var x=["error","warn","log","info"],r="warn";ea.level=da.level=function(n){r=n};ka.default=da},function(ia,ka,ea){function da(f){return!f||"object"!==typeof f||"number"!==typeof f.length||"function"!==typeof f.copy||"function"!==typeof f.slice||0<f.length&&"number"!==typeof f[0]?!1:!0}function x(f,h,y){var e;if(null===f||void 0===f||null===h||void 0===h||f.prototype!==h.prototype)return!1;if(a(f)){if(!a(h))return!1;f=r.call(f);h=r.call(h);return b(f,h,y)}if(da(f)){if(!da(h)||
|
|
72
|
+
f.length!==h.length)return!1;for(e=0;e<f.length;e++)if(f[e]!==h[e])return!1;return!0}try{var w=n(f);var aa=n(h)}catch(fa){return!1}if(w.length!=aa.length)return!1;w.sort();aa.sort();for(e=w.length-1;0<=e;e--)if(w[e]!=aa[e])return!1;for(e=w.length-1;0<=e;e--)if(aa=w[e],!b(f[aa],h[aa],y))return!1;return typeof f===typeof h}var r=Array.prototype.slice,n=ea(52),a=ea(53),b=ia.exports=function(f,h,y){y||(y={});return f===h?!0:f instanceof Date&&h instanceof Date?f.getTime()===h.getTime():!f||!h||"object"!=
|
|
73
|
+
typeof f&&"object"!=typeof h?y.strict?f===h:f==h:x(f,h,y)}},function(ia,ka,ea){Object.defineProperty(ka,"__esModule",{value:!0});var da=ea(1);ia=function(){function x(r,n,a){void 0===a&&(a={});this.attrName=r;this.keyName=n;r=da.Scope.TYPE&da.Scope.ATTRIBUTE;this.scope=null!=a.scope?a.scope&da.Scope.LEVEL|r:da.Scope.ATTRIBUTE;null!=a.whitelist&&(this.whitelist=a.whitelist)}x.keys=function(r){return[].map.call(r.attributes,function(n){return n.name})};x.prototype.add=function(r,n){if(!this.canAdd(r,
|
|
74
|
+
n))return!1;r.setAttribute(this.keyName,n);return!0};x.prototype.canAdd=function(r,n){return null==da.query(r,da.Scope.BLOT&(this.scope|da.Scope.TYPE))?!1:null==this.whitelist?!0:"string"===typeof n?-1<this.whitelist.indexOf(n.replace(/["']/g,"")):-1<this.whitelist.indexOf(n)};x.prototype.remove=function(r){r.removeAttribute(this.keyName)};x.prototype.value=function(r){var n=r.getAttribute(this.keyName);return this.canAdd(r,n)&&n?n:""};return x}();ka.default=ia},function(ia,ka,ea){function da(aa){return aa&&
|
|
75
|
+
aa.__esModule?aa:{default:aa}}function x(aa,fa){if(!(aa instanceof fa))throw new TypeError("Cannot call a class as a function");}function r(aa,fa){if(!aa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!fa||"object"!==typeof fa&&"function"!==typeof fa?aa:fa}function n(aa,fa){if("function"!==typeof fa&&null!==fa)throw new TypeError("Super expression must either be null or a function, not "+typeof fa);aa.prototype=Object.create(fa&&fa.prototype,{constructor:{value:aa,
|
|
76
|
+
enumerable:!1,writable:!0,configurable:!0}});fa&&(Object.setPrototypeOf?Object.setPrototypeOf(aa,fa):aa.__proto__=fa)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.Code=void 0;var a=function(){return function(aa,fa){if(Array.isArray(aa))return aa;if(Symbol.iterator in Object(aa)){var ja=[],ba=!0,ha=!1,ca=void 0;try{for(var la=aa[Symbol.iterator](),ua;!(ba=(ua=la.next()).done)&&(ja.push(ua.value),!fa||ja.length!==fa);ba=!0);}catch(ma){ha=!0,ca=ma}finally{try{if(!ba&&la["return"])la["return"]()}finally{if(ha)throw ca;
|
|
77
|
+
}}return ja}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function aa(fa,ja){for(var ba=0;ba<ja.length;ba++){var ha=ja[ba];ha.enumerable=ha.enumerable||!1;ha.configurable=!0;"value"in ha&&(ha.writable=!0);Object.defineProperty(fa,ha.key,ha)}}return function(fa,ja,ba){ja&&aa(fa.prototype,ja);ba&&aa(fa,ba);return fa}}(),f=function ha(fa,ja,ba){null===fa&&(fa=Function.prototype);var ca=Object.getOwnPropertyDescriptor(fa,ja);if(void 0===ca){if(fa=Object.getPrototypeOf(fa),
|
|
78
|
+
null!==fa)return ha(fa,ja,ba)}else{if("value"in ca)return ca.value;ja=ca.get;return void 0===ja?void 0:ja.call(ba)}};ia=ea(2);var h=da(ia);ia=ea(0);var y=da(ia);ia=ea(4);ia=da(ia);var e=ea(6);e=da(e);ea=ea(7);var w=da(ea);ea=function(fa){function ja(){x(this,ja);return r(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,arguments))}n(ja,fa);return ja}(e.default);ea.blotName="code";ea.tagName="CODE";ia=function(fa){function ja(){x(this,ja);return r(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,
|
|
79
|
+
arguments))}n(ja,fa);b(ja,[{key:"delta",value:function(){var ba=this,ha=this.domNode.textContent;ha.endsWith("\n")&&(ha=ha.slice(0,-1));return ha.split("\n").reduce(function(ca,la){return ca.insert(la).insert("\n",ba.formats())},new h.default)}},{key:"format",value:function(ba,ha){if(ba!==this.statics.blotName||!ha){var ca=this.descendant(w.default,this.length()-1);ca=a(ca,1)[0];null!=ca&&ca.deleteAt(ca.length()-1,1);f(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),"format",this).call(this,
|
|
80
|
+
ba,ha)}}},{key:"formatAt",value:function(ba,ha,ca,la){if(0!==ha&&null!=y.default.query(ca,y.default.Scope.BLOCK)&&(ca!==this.statics.blotName||la!==this.statics.formats(this.domNode))){var ua=this.newlineIndex(ba);if(!(0>ua||ua>=ba+ha)){var ma=this.newlineIndex(ba,!0)+1;ua=ua-ma+1;var sa=this.isolate(ma,ua),oa=sa.next;sa.format(ca,la);oa instanceof ja&&oa.formatAt(0,ba-ma+ha-ua,ca,la)}}}},{key:"insertAt",value:function(ba,ha,ca){null==ca&&(ba=this.descendant(w.default,ba),ba=a(ba,2),ba[0].insertAt(ba[1],
|
|
81
|
+
ha))}},{key:"length",value:function(){var ba=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?ba:ba+1}},{key:"newlineIndex",value:function(ba){if(1<arguments.length&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,ba).lastIndexOf("\n");var ha=this.domNode.textContent.slice(ba).indexOf("\n");return-1<ha?ba+ha:-1}},{key:"optimize",value:function(ba){this.domNode.textContent.endsWith("\n")||this.appendChild(y.default.create("text","\n"));f(ja.prototype.__proto__||
|
|
82
|
+
Object.getPrototypeOf(ja.prototype),"optimize",this).call(this,ba);var ha=this.next;null!=ha&&ha.prev===this&&ha.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===ha.statics.formats(ha.domNode)&&(ha.optimize(ba),ha.moveChildren(this),ha.remove())}},{key:"replace",value:function(ba){f(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),"replace",this).call(this,ba);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(ha){var ca=y.default.find(ha);
|
|
83
|
+
null==ca?ha.parentNode.removeChild(ha):ca instanceof y.default.Embed?ca.remove():ca.unwrap()})}}],[{key:"create",value:function(ba){ba=f(ja.__proto__||Object.getPrototypeOf(ja),"create",this).call(this,ba);ba.setAttribute("spellcheck",!1);return ba}},{key:"formats",value:function(){return!0}}]);return ja}(ia.default);ia.blotName="code-block";ia.tagName="PRE";ia.TAB=" ";ka.Code=ea;ka.default=ia},function(ia,ka,ea){function da(ua){return ua&&ua.__esModule?ua:{default:ua}}function x(ua,ma){return Object.keys(ma).reduce(function(sa,
|
|
84
|
+
oa){if(null==ua[oa])return sa;ma[oa]===ua[oa]?sa[oa]=ma[oa]:Array.isArray(ma[oa])?0>ma[oa].indexOf(ua[oa])&&(sa[oa]=ma[oa].concat([ua[oa]])):sa[oa]=[ma[oa],ua[oa]];return sa},{})}function r(ua){return ua.reduce(function(ma,sa){if(1===sa.insert){var oa=(0,ba.default)(sa.attributes);delete oa.image;return ma.insert({image:sa.attributes.image},oa)}null==sa.attributes||!0!==sa.attributes.list&&!0!==sa.attributes.bullet||(sa=(0,ba.default)(sa),sa.attributes.list?sa.attributes.list="ordered":(sa.attributes.list=
|
|
85
|
+
"bullet",delete sa.attributes.bullet));return"string"===typeof sa.insert?(oa=sa.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),ma.insert(oa,sa.attributes)):ma.push(sa)},new f.default)}Object.defineProperty(ka,"__esModule",{value:!0});var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(ua){return typeof ua}:function(ua){return ua&&"function"===typeof Symbol&&ua.constructor===Symbol&&ua!==Symbol.prototype?"symbol":typeof ua},a=function(){return function(ua,ma){if(Array.isArray(ua))return ua;
|
|
86
|
+
if(Symbol.iterator in Object(ua)){var sa=[],oa=!0,ra=!1,ta=void 0;try{for(var qa=ua[Symbol.iterator](),wa;!(oa=(wa=qa.next()).done)&&(sa.push(wa.value),!ma||sa.length!==ma);oa=!0);}catch(Aa){ra=!0,ta=Aa}finally{try{if(!oa&&qa["return"])qa["return"]()}finally{if(ra)throw ta;}}return sa}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function ua(ma,sa){for(var oa=0;oa<sa.length;oa++){var ra=sa[oa];ra.enumerable=ra.enumerable||!1;ra.configurable=!0;"value"in
|
|
87
|
+
ra&&(ra.writable=!0);Object.defineProperty(ma,ra.key,ra)}}return function(ma,sa,oa){sa&&ua(ma.prototype,sa);oa&&ua(ma,oa);return ma}}();ia=ea(2);var f=da(ia);ia=ea(20);var h=da(ia);ia=ea(0);var y=da(ia);ia=ea(13);var e=da(ia);ia=ea(24);var w=da(ia),aa=ea(4),fa=da(aa);ia=ea(16);var ja=da(ia);ia=ea(21);var ba=da(ia);ia=ea(11);var ha=da(ia);ea=ea(3);var ca=da(ea),la=/^[ -~]*$/;ea=function(){function ua(ma){if(!(this instanceof ua))throw new TypeError("Cannot call a class as a function");this.scroll=
|
|
88
|
+
ma;this.delta=this.getDelta()}b(ua,[{key:"applyDelta",value:function(ma){var sa=this,oa=!1;this.scroll.update();var ra=this.scroll.length();this.scroll.batchStart();ma=r(ma);ma.reduce(function(ta,qa){var wa=qa.retain||qa.delete||qa.insert.length||1,Aa=qa.attributes||{};if(null!=qa.insert){if("string"===typeof qa.insert){qa=qa.insert;qa.endsWith("\n")&&oa&&(oa=!1,qa=qa.slice(0,-1));ta>=ra&&!qa.endsWith("\n")&&(oa=!0);sa.scroll.insertAt(ta,qa);qa=sa.scroll.line(ta);qa=a(qa,2);var Ga=qa[0],Na=qa[1];
|
|
89
|
+
qa=(0,ca.default)({},(0,aa.bubbleFormats)(Ga));Ga instanceof fa.default&&(Ga=Ga.descendant(y.default.Leaf,Na),Ga=a(Ga,1)[0],qa=(0,ca.default)(qa,(0,aa.bubbleFormats)(Ga)));Aa=h.default.attributes.diff(qa,Aa)||{}}else if("object"===n(qa.insert)){Ga=Object.keys(qa.insert)[0];if(null==Ga)return ta;sa.scroll.insertAt(ta,Ga,qa.insert[Ga])}ra+=wa}Object.keys(Aa).forEach(function(Ha){sa.scroll.formatAt(ta,wa,Ha,Aa[Ha])});return ta+wa},0);ma.reduce(function(ta,qa){return"number"===typeof qa.delete?(sa.scroll.deleteAt(ta,
|
|
90
|
+
qa.delete),ta):ta+(qa.retain||qa.insert.length||1)},0);this.scroll.batchEnd();return this.update(ma)}},{key:"deleteText",value:function(ma,sa){this.scroll.deleteAt(ma,sa);return this.update((new f.default).retain(ma).delete(sa))}},{key:"formatLine",value:function(ma,sa){var oa=this,ra=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update();Object.keys(ra).forEach(function(ta){if(null==oa.scroll.whitelist||oa.scroll.whitelist[ta]){var qa=oa.scroll.lines(ma,Math.max(sa,1)),wa=
|
|
91
|
+
sa;qa.forEach(function(Aa){var Ga=Aa.length();if(Aa instanceof e.default){var Na=ma-Aa.offset(oa.scroll),Ha=Aa.newlineIndex(Na+wa)-Na+1;Aa.formatAt(Na,Ha,ta,ra[ta])}else Aa.format(ta,ra[ta]);wa-=Ga})}});this.scroll.optimize();return this.update((new f.default).retain(ma).retain(sa,(0,ba.default)(ra)))}},{key:"formatText",value:function(ma,sa){var oa=this,ra=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Object.keys(ra).forEach(function(ta){oa.scroll.formatAt(ma,sa,ta,ra[ta])});return this.update((new f.default).retain(ma).retain(sa,
|
|
92
|
+
(0,ba.default)(ra)))}},{key:"getContents",value:function(ma,sa){return this.delta.slice(ma,ma+sa)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(ma,sa){return ma.concat(sa.delta())},new f.default)}},{key:"getFormat",value:function(ma){var sa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,oa=[],ra=[];0===sa?this.scroll.path(ma).forEach(function(ta){ta=a(ta,1)[0];ta instanceof fa.default?oa.push(ta):ta instanceof y.default.Leaf&&ra.push(ta)}):(oa=this.scroll.lines(ma,
|
|
93
|
+
sa),ra=this.scroll.descendants(y.default.Leaf,ma,sa));sa=[oa,ra].map(function(ta){if(0===ta.length)return{};for(var qa=(0,aa.bubbleFormats)(ta.shift());0<Object.keys(qa).length;){var wa=ta.shift();if(null==wa)break;qa=x((0,aa.bubbleFormats)(wa),qa)}return qa});return ca.default.apply(ca.default,sa)}},{key:"getText",value:function(ma,sa){return this.getContents(ma,sa).filter(function(oa){return"string"===typeof oa.insert}).map(function(oa){return oa.insert}).join("")}},{key:"insertEmbed",value:function(ma,
|
|
94
|
+
sa,oa){this.scroll.insertAt(ma,sa,oa);var ra=this.update;ma=(new f.default).retain(ma);var ta=ma.insert,qa={};sa in qa?Object.defineProperty(qa,sa,{value:oa,enumerable:!0,configurable:!0,writable:!0}):qa[sa]=oa;return ra.call(this,ta.call(ma,qa))}},{key:"insertText",value:function(ma,sa){var oa=this,ra=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};sa=sa.replace(/\r\n/g,"\n").replace(/\r/g,"\n");this.scroll.insertAt(ma,sa);Object.keys(ra).forEach(function(ta){oa.scroll.formatAt(ma,sa.length,
|
|
95
|
+
ta,ra[ta])});return this.update((new f.default).retain(ma).insert(sa,(0,ba.default)(ra)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(1<this.scroll.children.length)return!1;var ma=this.scroll.children.head;return ma.statics.blotName!==fa.default.blotName||1<ma.children.length?!1:ma.children.head instanceof ja.default}},{key:"removeFormat",value:function(ma,sa){var oa=this.getText(ma,sa),ra=this.scroll.line(ma+sa),ta=a(ra,2);ra=ta[0];ta=ta[1];var qa=0,wa=new f.default;
|
|
96
|
+
null!=ra&&(qa=ra instanceof e.default?ra.newlineIndex(ta)-ta+1:ra.length()-ta,wa=ra.delta().slice(ta,ta+qa-1).insert("\n"));sa=this.getContents(ma,sa+qa).diff((new f.default).insert(oa).concat(wa));ma=(new f.default).retain(ma).concat(sa);return this.applyDelta(ma)}},{key:"update",value:function(ma){var sa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],oa=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0,ra=this.delta;if(1===sa.length&&"characterData"===sa[0].type&&sa[0].target.data.match(la)&&
|
|
97
|
+
y.default.find(sa[0].target)){var ta=y.default.find(sa[0].target),qa=(0,aa.bubbleFormats)(ta),wa=ta.offset(this.scroll);sa=sa[0].oldValue.replace(w.default.CONTENTS,"");sa=(new f.default).insert(sa);ta=(new f.default).insert(ta.value());ma=(new f.default).retain(wa).concat(sa.diff(ta,oa)).reduce(function(Aa,Ga){return Ga.insert?Aa.insert(Ga.insert,qa):Aa.push(Ga)},new f.default);this.delta=ra.compose(ma)}else this.delta=this.getDelta(),ma&&(0,ha.default)(ra.compose(ma),this.delta)||(ma=ra.diff(this.delta,
|
|
98
|
+
oa));return ma}}]);return ua}();ka.default=ea},function(ia,ka,ea){function da(fa){return fa&&fa.__esModule?fa:{default:fa}}function x(fa){if(Array.isArray(fa)){for(var ja=0,ba=Array(fa.length);ja<fa.length;ja++)ba[ja]=fa[ja];return ba}return Array.from(fa)}function r(fa,ja){if(!(fa instanceof ja))throw new TypeError("Cannot call a class as a function");}function n(fa,ja){try{ja.parentNode}catch(ba){return!1}ja instanceof Text&&(ja=ja.parentNode);return fa.contains(ja)}Object.defineProperty(ka,"__esModule",
|
|
99
|
+
{value:!0});ka.default=ka.Range=void 0;var a=function(){return function(fa,ja){if(Array.isArray(fa))return fa;if(Symbol.iterator in Object(fa)){var ba=[],ha=!0,ca=!1,la=void 0;try{for(var ua=fa[Symbol.iterator](),ma;!(ha=(ma=ua.next()).done)&&(ba.push(ma.value),!ja||ba.length!==ja);ha=!0);}catch(sa){ca=!0,la=sa}finally{try{if(!ha&&ua["return"])ua["return"]()}finally{if(ca)throw la;}}return ba}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function fa(ja,
|
|
100
|
+
ba){for(var ha=0;ha<ba.length;ha++){var ca=ba[ha];ca.enumerable=ca.enumerable||!1;ca.configurable=!0;"value"in ca&&(ca.writable=!0);Object.defineProperty(ja,ca.key,ca)}}return function(ja,ba,ha){ba&&fa(ja.prototype,ba);ha&&fa(ja,ha);return ja}}();ia=ea(0);var f=da(ia);ia=ea(21);var h=da(ia);ia=ea(11);var y=da(ia);ia=ea(8);var e=da(ia);ea=ea(10);ea=da(ea);var w=(0,ea.default)("quill:selection"),aa=function ba(ja){var ha=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;r(this,ba);this.index=
|
|
101
|
+
ja;this.length=ha};ea=function(){function ja(ba,ha){var ca=this;r(this,ja);this.emitter=ha;this.scroll=ba;this.mouseDown=this.composing=!1;this.root=this.scroll.domNode;this.cursor=f.default.create("cursor",this);this.lastRange=this.savedRange=new aa(0,0);this.handleComposition();this.handleDragging();this.emitter.listenDOM("selectionchange",document,function(){ca.mouseDown||setTimeout(ca.update.bind(ca,e.default.sources.USER),1)});this.emitter.on(e.default.events.EDITOR_CHANGE,function(la,ua){la===
|
|
102
|
+
e.default.events.TEXT_CHANGE&&0<ua.length()&&ca.update(e.default.sources.SILENT)});this.emitter.on(e.default.events.SCROLL_BEFORE_UPDATE,function(){if(ca.hasFocus()){var la=ca.getNativeRange();if(null!=la&&la.start.node!==ca.cursor.textNode)ca.emitter.once(e.default.events.SCROLL_UPDATE,function(){try{ca.setNativeRange(la.start.node,la.start.offset,la.end.node,la.end.offset)}catch(ua){}})}});this.emitter.on(e.default.events.SCROLL_OPTIMIZE,function(la,ua){ua.range&&(la=ua.range,ca.setNativeRange(la.startNode,
|
|
103
|
+
la.startOffset,la.endNode,la.endOffset))});this.update(e.default.sources.SILENT)}b(ja,[{key:"handleComposition",value:function(){var ba=this;this.root.addEventListener("compositionstart",function(){ba.composing=!0});this.root.addEventListener("compositionend",function(){ba.composing=!1;if(ba.cursor.parent){var ha=ba.cursor.restore();ha&&setTimeout(function(){ba.setNativeRange(ha.startNode,ha.startOffset,ha.endNode,ha.endOffset)},1)}})}},{key:"handleDragging",value:function(){var ba=this;this.emitter.listenDOM("mousedown",
|
|
104
|
+
document.body,function(){ba.mouseDown=!0});this.emitter.listenDOM("mouseup",document.body,function(){ba.mouseDown=!1;ba.update(e.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(ba,ha){if(null==this.scroll.whitelist||this.scroll.whitelist[ba]){this.scroll.update();var ca=this.getNativeRange();if(null!=ca&&ca.native.collapsed&&!f.default.query(ba,f.default.Scope.BLOCK)){if(ca.start.node!==this.cursor.textNode){var la=
|
|
105
|
+
f.default.find(ca.start.node,!1);if(null==la)return;la instanceof f.default.Leaf?(ca=la.split(ca.start.offset),la.parent.insertBefore(this.cursor,ca)):la.insertBefore(this.cursor,ca.start.node);this.cursor.attach()}this.cursor.format(ba,ha);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}}}},{key:"getBounds",value:function(ba){var ha=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,ca=this.scroll.length();ba=Math.min(ba,ca-1);
|
|
106
|
+
ha=Math.min(ba+ha,ca-1)-ba;ca=this.scroll.leaf(ba);var la=a(ca,2);ca=la[0];var ua=la[1];if(null==ca)return null;la=ca.position(ua,!0);la=a(la,2);var ma=la[0];ua=la[1];la=document.createRange();if(0<ha){la.setStart(ma,ua);ha=this.scroll.leaf(ba+ha);ha=a(ha,2);ca=ha[0];ua=ha[1];if(null==ca)return null;ha=ca.position(ua,!0);ha=a(ha,2);ma=ha[0];ua=ha[1];la.setEnd(ma,ua);return la.getBoundingClientRect()}ha="left";ma instanceof Text?(ua<ma.data.length?(la.setStart(ma,ua),la.setEnd(ma,ua+1)):(la.setStart(ma,
|
|
107
|
+
ua-1),la.setEnd(ma,ua),ha="right"),ca=la.getBoundingClientRect()):(ca=ca.domNode.getBoundingClientRect(),0<ua&&(ha="right"));return{bottom:ca.top+ca.height,height:ca.height,left:ca[ha],right:ca[ha],top:ca.top,width:0}}},{key:"getNativeRange",value:function(){var ba=document.getSelection();if(null==ba||0>=ba.rangeCount)return null;ba=ba.getRangeAt(0);if(null==ba)return null;ba=this.normalizeNative(ba);w.info("getNativeRange",ba);return ba}},{key:"getRange",value:function(){var ba=this.getNativeRange();
|
|
108
|
+
return null==ba?[null,null]:[this.normalizedToRange(ba),ba]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(ba){var ha=this,ca=[[ba.start.node,ba.start.offset]];ba.native.collapsed||ca.push([ba.end.node,ba.end.offset]);ca=ca.map(function(la){var ua=a(la,2);la=ua[0];ua=ua[1];var ma=f.default.find(la,!0),sa=ma.offset(ha.scroll);return 0===ua?sa:ma instanceof f.default.Container?sa+ma.length():sa+ma.index(la,ua)});ba=Math.min(Math.max.apply(Math,
|
|
109
|
+
x(ca)),this.scroll.length()-1);ca=Math.min.apply(Math,[ba].concat(x(ca)));return new aa(ca,ba-ca)}},{key:"normalizeNative",value:function(ba){if(!n(this.root,ba.startContainer)||!ba.collapsed&&!n(this.root,ba.endContainer))return null;ba={start:{node:ba.startContainer,offset:ba.startOffset},end:{node:ba.endContainer,offset:ba.endOffset},native:ba};[ba.start,ba.end].forEach(function(ha){for(var ca=ha.node,la=ha.offset;!(ca instanceof Text)&&0<ca.childNodes.length;)if(ca.childNodes.length>la)ca=ca.childNodes[la],
|
|
110
|
+
la=0;else if(ca.childNodes.length===la)ca=ca.lastChild,la=ca instanceof Text?ca.data.length:ca.childNodes.length+1;else break;ha.node=ca;ha.offset=la});return ba}},{key:"rangeToNative",value:function(ba){var ha=this;ba=ba.collapsed?[ba.index]:[ba.index,ba.index+ba.length];var ca=[],la=this.scroll.length();ba.forEach(function(ua,ma){ua=Math.min(la-1,ua);ua=ha.scroll.leaf(ua);var sa=a(ua,2);ua=sa[1];ma=sa[0].position(ua,0!==ma);ua=a(ma,2);ma=ua[0];ua=ua[1];ca.push(ma,ua)});2>ca.length&&(ca=ca.concat(ca));
|
|
111
|
+
return ca}},{key:"scrollIntoView",value:function(ba){var ha=this.lastRange;if(null!=ha){var ca=this.getBounds(ha.index,ha.length);if(null!=ca){var la=this.scroll.length()-1,ua=this.scroll.line(Math.min(ha.index,la)),ma=ua=a(ua,1)[0];0<ha.length&&(ha=this.scroll.line(Math.min(ha.index+ha.length,la)),ma=a(ha,1)[0]);null!=ua&&null!=ma&&(ha=ba.getBoundingClientRect(),ca.top<ha.top?ba.scrollTop-=ha.top-ca.top:ca.bottom>ha.bottom&&(ba.scrollTop+=ca.bottom-ha.bottom))}}}},{key:"setNativeRange",value:function(ba,
|
|
112
|
+
ha){var ca=2<arguments.length&&void 0!==arguments[2]?arguments[2]:ba,la=3<arguments.length&&void 0!==arguments[3]?arguments[3]:ha,ua=4<arguments.length&&void 0!==arguments[4]?arguments[4]:!1;w.info("setNativeRange",ba,ha,ca,la);if(null==ba||null!=this.root.parentNode&&null!=ba.parentNode&&null!=ca.parentNode){var ma=document.getSelection();if(null!=ma)if(null!=ba){this.hasFocus()||this.root.focus();var sa=(this.getNativeRange()||{}).native;if(null==sa||ua||ba!==sa.startContainer||ha!==sa.startOffset||
|
|
113
|
+
ca!==sa.endContainer||la!==sa.endOffset)"BR"==ba.tagName&&(ha=[].indexOf.call(ba.parentNode.childNodes,ba),ba=ba.parentNode),"BR"==ca.tagName&&(la=[].indexOf.call(ca.parentNode.childNodes,ca),ca=ca.parentNode),ua=document.createRange(),ua.setStart(ba,ha),ua.setEnd(ca,la),ma.removeAllRanges(),ma.addRange(ua)}else ma.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(ba){var ha=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,ca=2<arguments.length&&void 0!==
|
|
114
|
+
arguments[2]?arguments[2]:e.default.sources.API;"string"===typeof ha&&(ca=ha,ha=!1);w.info("setRange",ba);if(null!=ba){var la=this.rangeToNative(ba);this.setNativeRange.apply(this,x(la).concat([ha]))}else this.setNativeRange(null);this.update(ca)}},{key:"update",value:function(){var ba=0<arguments.length&&void 0!==arguments[0]?arguments[0]:e.default.sources.USER,ha=this.lastRange,ca=this.getRange();ca=a(ca,2);var la=ca[1];this.lastRange=ca[0];null!=this.lastRange&&(this.savedRange=this.lastRange);
|
|
115
|
+
if(!(0,y.default)(ha,this.lastRange)){var ua;!this.composing&&null!=la&&la.native.collapsed&&la.start.node!==this.cursor.textNode&&this.cursor.restore();ha=[e.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(ha),ba];(ua=this.emitter).emit.apply(ua,[e.default.events.EDITOR_CHANGE].concat(ha));if(ba!==e.default.sources.SILENT){var ma;(ma=this.emitter).emit.apply(ma,ha)}}}}]);return ja}();ka.Range=aa;ka.default=ea},function(ia,ka,ea){function da(n,a){if("function"!==typeof a&&
|
|
116
|
+
null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);n.prototype=Object.create(a&&a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(n,a):n.__proto__=a)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){function n(a,b){for(var f=0;f<b.length;f++){var h=b[f];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(a,h.key,
|
|
117
|
+
h)}}return function(a,b,f){b&&n(a.prototype,b);f&&n(a,f);return a}}(),r=function h(a,b,f){null===a&&(a=Function.prototype);var y=Object.getOwnPropertyDescriptor(a,b);if(void 0===y){if(a=Object.getPrototypeOf(a),null!==a)return h(a,b,f)}else{if("value"in y)return y.value;b=y.get;return void 0===b?void 0:b.call(f)}};ia=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var f=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
118
|
+
return!f||"object"!==typeof f&&"function"!==typeof f?this:f}da(b,a);x(b,[{key:"insertInto",value:function(f,h){0===f.children.length?r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertInto",this).call(this,f,h):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]);return b}(function(a){return a&&a.__esModule?a:{default:a}}(ea(0)).default.Embed);ia.blotName="break";ia.tagName="BR";ka.default=ia},function(ia,
|
|
119
|
+
ka,ea){function da(a){var b=n.find(a);if(null==b)try{b=n.create(a)}catch(f){b=n.create(n.Scope.INLINE),[].slice.call(a.childNodes).forEach(function(h){b.domNode.appendChild(h)}),a.parentNode&&a.parentNode.replaceChild(b.domNode,a),b.attach()}return b}var x=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var h in f)f.hasOwnProperty(h)&&(b[h]=f[h])};return function(b,f){function h(){this.constructor=b}a(b,
|
|
120
|
+
f);b.prototype=null===f?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(ka,"__esModule",{value:!0});var r=ea(44);ia=ea(30);var n=ea(1);ea=function(a){function b(f){f=a.call(this,f)||this;f.build();return f}x(b,a);b.prototype.appendChild=function(f){this.insertBefore(f)};b.prototype.attach=function(){a.prototype.attach.call(this);this.children.forEach(function(f){f.attach()})};b.prototype.build=function(){var f=this;this.children=new r.default;[].slice.call(this.domNode.childNodes).reverse().forEach(function(h){try{var y=
|
|
121
|
+
da(h);f.insertBefore(y,f.children.head||void 0)}catch(e){if(!(e instanceof n.ParchmentError))throw e;}})};b.prototype.deleteAt=function(f,h){if(0===f&&h===this.length())return this.remove();this.children.forEachAt(f,h,function(y,e,w){y.deleteAt(e,w)})};b.prototype.descendant=function(f,h){var y=this.children.find(h);h=y[0];y=y[1];return null==f.blotName&&f(h)||null!=f.blotName&&h instanceof f?[h,y]:h instanceof b?h.descendant(f,y):[null,-1]};b.prototype.descendants=function(f,h,y){void 0===h&&(h=
|
|
122
|
+
0);void 0===y&&(y=Number.MAX_VALUE);var e=[],w=y;this.children.forEachAt(h,y,function(aa,fa,ja){(null==f.blotName&&f(aa)||null!=f.blotName&&aa instanceof f)&&e.push(aa);aa instanceof b&&(e=e.concat(aa.descendants(f,fa,w)));w-=ja});return e};b.prototype.detach=function(){this.children.forEach(function(f){f.detach()});a.prototype.detach.call(this)};b.prototype.formatAt=function(f,h,y,e){this.children.forEachAt(f,h,function(w,aa,fa){w.formatAt(aa,fa,y,e)})};b.prototype.insertAt=function(f,h,y){var e=
|
|
123
|
+
this.children.find(f);f=e[0];e=e[1];f?f.insertAt(e,h,y):(h=null==y?n.create("text",h):n.create(h,y),this.appendChild(h))};b.prototype.insertBefore=function(f,h){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(y){return f instanceof y}))throw new n.ParchmentError("Cannot insert "+f.statics.blotName+" into "+this.statics.blotName);f.insertInto(this,h)};b.prototype.length=function(){return this.children.reduce(function(f,h){return f+h.length()},0)};b.prototype.moveChildren=
|
|
124
|
+
function(f,h){this.children.forEach(function(y){f.insertBefore(y,h)})};b.prototype.optimize=function(f){a.prototype.optimize.call(this,f);if(0===this.children.length)if(null!=this.statics.defaultChild){var h=n.create(this.statics.defaultChild);this.appendChild(h);h.optimize(f)}else this.remove()};b.prototype.path=function(f,h){void 0===h&&(h=!1);var y=this.children.find(f,h),e=y[0];y=y[1];f=[[this,f]];if(e instanceof b)return f.concat(e.path(y,h));null!=e&&f.push([e,y]);return f};b.prototype.removeChild=
|
|
125
|
+
function(f){this.children.remove(f)};b.prototype.replace=function(f){f instanceof b&&f.moveChildren(this);a.prototype.replace.call(this,f)};b.prototype.split=function(f,h){void 0===h&&(h=!1);if(!h){if(0===f)return this;if(f===this.length())return this.next}var y=this.clone();this.parent.insertBefore(y,this.next);this.children.forEachAt(f,this.length(),function(e,w){e=e.split(w,h);y.appendChild(e)});return y};b.prototype.unwrap=function(){this.moveChildren(this.parent,this.next);this.remove()};b.prototype.update=
|
|
126
|
+
function(f){var h=this,y=[],e=[];f.forEach(function(w){w.target===h.domNode&&"childList"===w.type&&(y.push.apply(y,w.addedNodes),e.push.apply(e,w.removedNodes))});e.forEach(function(w){null!=w.parentNode&&"IFRAME"!==w.tagName&&document.body.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_CONTAINED_BY||(w=n.find(w),null!=w&&(null!=w.domNode.parentNode&&w.domNode.parentNode!==h.domNode||w.detach()))});y.filter(function(w){return w.parentNode==h.domNode}).sort(function(w,aa){return w===aa?0:w.compareDocumentPosition(aa)&
|
|
127
|
+
Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(w){var aa=null;null!=w.nextSibling&&(aa=n.find(w.nextSibling));w=da(w);if(w.next!=aa||null==w.next)null!=w.parent&&w.parent.removeChild(h),h.insertBefore(w,aa||void 0)})};return b}(ia.default);ka.default=ea},function(ia,ka,ea){var da=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var h in f)f.hasOwnProperty(h)&&(b[h]=f[h])};return function(b,f){function h(){this.constructor=
|
|
128
|
+
b}a(b,f);b.prototype=null===f?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(ka,"__esModule",{value:!0});var x=ea(12),r=ea(31);ia=ea(17);var n=ea(1);ea=function(a){function b(f){f=a.call(this,f)||this;f.attributes=new r.default(f.domNode);return f}da(b,a);b.formats=function(f){if("string"===typeof this.tagName)return!0;if(Array.isArray(this.tagName))return f.tagName.toLowerCase()};b.prototype.format=function(f,h){var y=n.query(f);y instanceof x.default?this.attributes.attribute(y,
|
|
129
|
+
h):h&&(null==y||f===this.statics.blotName&&this.formats()[f]===h||this.replaceWith(f,h))};b.prototype.formats=function(){var f=this.attributes.values(),h=this.statics.formats(this.domNode);null!=h&&(f[this.statics.blotName]=h);return f};b.prototype.replaceWith=function(f,h){f=a.prototype.replaceWith.call(this,f,h);this.attributes.copy(f);return f};b.prototype.update=function(f,h){var y=this;a.prototype.update.call(this,f,h);f.some(function(e){return e.target===y.domNode&&"attributes"===e.type})&&
|
|
130
|
+
this.attributes.build()};b.prototype.wrap=function(f,h){f=a.prototype.wrap.call(this,f,h);f instanceof b&&f.statics.scope===this.statics.scope&&this.attributes.move(f);return f};return b}(ia.default);ka.default=ea},function(ia,ka,ea){var da=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var b in a)a.hasOwnProperty(b)&&(n[b]=a[b])};return function(n,a){function b(){this.constructor=n}r(n,a);n.prototype=null===
|
|
131
|
+
a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(ka,"__esModule",{value:!0});ia=ea(30);var x=ea(1);ea=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}da(n,r);n.value=function(){return!0};n.prototype.index=function(a,b){return this.domNode===a||this.domNode.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(b,1):-1};n.prototype.position=function(a){var b=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);0<a&&(b+=1);
|
|
132
|
+
return[this.parent.domNode,b]};n.prototype.value=function(){var a;return a={},a[this.statics.blotName]=this.statics.value(this.domNode)||!0,a};n.scope=x.Scope.INLINE_BLOT;return n}(ia.default);ka.default=ea},function(ia,ka,ea){function da(a){this.ops=a;this.offset=this.index=0}var x=ea(11),r=ea(3),n={attributes:{compose:function(a,b,f){"object"!==typeof a&&(a={});"object"!==typeof b&&(b={});var h=r(!0,{},b);f||(h=Object.keys(h).reduce(function(e,w){null!=h[w]&&(e[w]=h[w]);return e},{}));for(var y in a)void 0!==
|
|
133
|
+
a[y]&&void 0===b[y]&&(h[y]=a[y]);return 0<Object.keys(h).length?h:void 0},diff:function(a,b){"object"!==typeof a&&(a={});"object"!==typeof b&&(b={});var f=Object.keys(a).concat(Object.keys(b)).reduce(function(h,y){x(a[y],b[y])||(h[y]=void 0===b[y]?null:b[y]);return h},{});return 0<Object.keys(f).length?f:void 0},transform:function(a,b,f){if("object"!==typeof a)return b;if("object"===typeof b){if(!f)return b;f=Object.keys(b).reduce(function(h,y){void 0===a[y]&&(h[y]=b[y]);return h},{});return 0<Object.keys(f).length?
|
|
134
|
+
f:void 0}}},iterator:function(a){return new da(a)},length:function(a){return"number"===typeof a["delete"]?a["delete"]:"number"===typeof a.retain?a.retain:"string"===typeof a.insert?a.insert.length:1}};da.prototype.hasNext=function(){return Infinity>this.peekLength()};da.prototype.next=function(a){a||(a=Infinity);var b=this.ops[this.index];if(b){var f=this.offset,h=n.length(b);a>=h-f?(a=h-f,this.index+=1,this.offset=0):this.offset+=a;if("number"===typeof b["delete"])return{"delete":a};h={};b.attributes&&
|
|
135
|
+
(h.attributes=b.attributes);"number"===typeof b.retain?h.retain=a:h.insert="string"===typeof b.insert?b.insert.substr(f,a):b.insert;return h}return{retain:Infinity}};da.prototype.peek=function(){return this.ops[this.index]};da.prototype.peekLength=function(){return this.ops[this.index]?n.length(this.ops[this.index])-this.offset:Infinity};da.prototype.peekType=function(){if(this.ops[this.index]){if("number"===typeof this.ops[this.index]["delete"])return"delete";if("number"!==typeof this.ops[this.index].retain)return"insert"}return"retain"};
|
|
136
|
+
da.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var a=this.offset,b=this.index,f=this.next(),h=this.ops.slice(this.index);this.offset=a;this.index=b;return[f].concat(h)}return[]};ia.exports=n},function(ia){var ka=function(){function ea(f,h){return null!=h&&f instanceof h}function da(f,h,y,e,w){function aa(ha,ca){if(null===ha)return null;if(0===ca||"object"!=typeof ha)return ha;if(ea(ha,n))var la=new n;else if(ea(ha,a))la=new a;else if(ea(ha,b))la=
|
|
137
|
+
new b(function(ra,ta){ha.then(function(qa){ra(aa(qa,ca-1))},function(qa){ta(aa(qa,ca-1))})});else if(da.__isArray(ha))la=[];else if(da.__isRegExp(ha))la=new RegExp(ha.source,r(ha)),ha.lastIndex&&(la.lastIndex=ha.lastIndex);else if(da.__isDate(ha))la=new Date(ha.getTime());else{if(ba&&na.isBuffer(ha))return la=na.allocUnsafe?na.allocUnsafe(ha.length):new na(ha.length),ha.copy(la),la;if(ea(ha,Error))la=Object.create(ha);else if("undefined"==typeof e){var ua=Object.getPrototypeOf(ha);la=Object.create(ua)}else la=
|
|
138
|
+
Object.create(e),ua=e}if(h){var ma=fa.indexOf(ha);if(-1!=ma)return ja[ma];fa.push(ha);ja.push(la)}ea(ha,n)&&ha.forEach(function(ra,ta){ta=aa(ta,ca-1);ra=aa(ra,ca-1);la.set(ta,ra)});ea(ha,a)&&ha.forEach(function(ra){ra=aa(ra,ca-1);la.add(ra)});for(var sa in ha){var oa;ua&&(oa=Object.getOwnPropertyDescriptor(ua,sa));oa&&null==oa.set||(la[sa]=aa(ha[sa],ca-1))}if(Object.getOwnPropertySymbols)for(ma=Object.getOwnPropertySymbols(ha),sa=0;sa<ma.length;sa++)if(oa=ma[sa],ua=Object.getOwnPropertyDescriptor(ha,
|
|
139
|
+
oa),!ua||ua.enumerable||w)la[oa]=aa(ha[oa],ca-1),ua.enumerable||Object.defineProperty(la,oa,{enumerable:!1});if(w)for(ma=Object.getOwnPropertyNames(ha),sa=0;sa<ma.length;sa++)oa=ma[sa],ua=Object.getOwnPropertyDescriptor(ha,oa),ua&&ua.enumerable||(la[oa]=aa(ha[oa],ca-1),Object.defineProperty(la,oa,{enumerable:!1}));return la}"object"===typeof h&&(y=h.depth,e=h.prototype,w=h.includeNonEnumerable,h=h.circular);var fa=[],ja=[],ba="undefined"!=typeof na;"undefined"==typeof h&&(h=!0);"undefined"==typeof y&&
|
|
140
|
+
(y=Infinity);return aa(f,y)}function x(f){return Object.prototype.toString.call(f)}function r(f){var h="";f.global&&(h+="g");f.ignoreCase&&(h+="i");f.multiline&&(h+="m");return h}try{var n=Map}catch(f){n=function(){}}try{var a=Set}catch(f){a=function(){}}try{var b=Promise}catch(f){b=function(){}}da.clonePrototype=function(f){function h(){}if(null===f)return null;h.prototype=f;return new h};da.__objToStr=x;da.__isDate=function(f){return"object"===typeof f&&"[object Date]"===x(f)};da.__isArray=function(f){return"object"===
|
|
141
|
+
typeof f&&"[object Array]"===x(f)};da.__isRegExp=function(f){return"object"===typeof f&&"[object RegExp]"===x(f)};da.__getRegExpFlags=r;return da}();"object"===typeof ia&&ia.exports&&(ia.exports=ka)},function(ia,ka,ea){function da(ja){return ja&&ja.__esModule?ja:{default:ja}}function x(ja,ba){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ba||"object"!==typeof ba&&"function"!==typeof ba?ja:ba}function r(ja,ba){if("function"!==typeof ba&&null!==
|
|
142
|
+
ba)throw new TypeError("Super expression must either be null or a function, not "+typeof ba);ja.prototype=Object.create(ba&&ba.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});ba&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,ba):ja.__proto__=ba)}function n(ja){return ja instanceof w.default||ja instanceof e.BlockEmbed}Object.defineProperty(ka,"__esModule",{value:!0});var a=function(){return function(ja,ba){if(Array.isArray(ja))return ja;if(Symbol.iterator in Object(ja)){var ha=
|
|
143
|
+
[],ca=!0,la=!1,ua=void 0;try{for(var ma=ja[Symbol.iterator](),sa;!(ca=(sa=ma.next()).done)&&(ha.push(sa.value),!ba||ha.length!==ba);ca=!0);}catch(oa){la=!0,ua=oa}finally{try{if(!ca&&ma["return"])ma["return"]()}finally{if(la)throw ua;}}return ha}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function ja(ba,ha){for(var ca=0;ca<ha.length;ca++){var la=ha[ca];la.enumerable=la.enumerable||!1;la.configurable=!0;"value"in la&&(la.writable=!0);Object.defineProperty(ba,
|
|
144
|
+
la.key,la)}}return function(ba,ha,ca){ha&&ja(ba.prototype,ha);ca&&ja(ba,ca);return ba}}(),f=function la(ba,ha,ca){null===ba&&(ba=Function.prototype);var ua=Object.getOwnPropertyDescriptor(ba,ha);if(void 0===ua){if(ba=Object.getPrototypeOf(ba),null!==ba)return la(ba,ha,ca)}else{if("value"in ua)return ua.value;ha=ua.get;return void 0===ha?void 0:ha.call(ca)}};ia=ea(0);var h=da(ia);ia=ea(8);var y=da(ia),e=ea(4),w=da(e);ia=ea(16);var aa=da(ia);ia=ea(13);var fa=da(ia);ea=ea(25);ea=da(ea);ia=function(ba){function ha(ca,
|
|
145
|
+
la){if(!(this instanceof ha))throw new TypeError("Cannot call a class as a function");ca=x(this,(ha.__proto__||Object.getPrototypeOf(ha)).call(this,ca));ca.emitter=la.emitter;Array.isArray(la.whitelist)&&(ca.whitelist=la.whitelist.reduce(function(ua,ma){ua[ma]=!0;return ua},{}));ca.domNode.addEventListener("DOMNodeInserted",function(){});ca.optimize();ca.enable();return ca}r(ha,ba);b(ha,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1;this.optimize()}},
|
|
146
|
+
{key:"deleteAt",value:function(ca,la){var ua=this.line(ca),ma=a(ua,2);ua=ma[0];var sa=ma[1];ma=this.line(ca+la);ma=a(ma,1)[0];f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"deleteAt",this).call(this,ca,la);if(null!=ma&&ua!==ma&&0<sa){if(ua instanceof e.BlockEmbed||ma instanceof e.BlockEmbed){this.optimize();return}if(ua instanceof fa.default){if(ca=ua.newlineIndex(ua.length(),!0),-1<ca&&(ua=ua.split(ca+1),ua===ma)){this.optimize();return}}else ma instanceof fa.default&&(ca=ma.newlineIndex(0),
|
|
147
|
+
-1<ca&&ma.split(ca+1));ua.moveChildren(ma,ma.children.head instanceof aa.default?null:ma.children.head);ua.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0)}},{key:"formatAt",value:function(ca,la,ua,ma){if(null==this.whitelist||this.whitelist[ua])f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"formatAt",this).call(this,ca,la,ua,ma),this.optimize()}},{key:"insertAt",value:function(ca,
|
|
148
|
+
la,ua){if(null==ua||null==this.whitelist||this.whitelist[la])ca>=this.length()?null==ua||null==h.default.query(la,h.default.Scope.BLOCK)?(ca=h.default.create(this.statics.defaultChild),this.appendChild(ca),null==ua&&la.endsWith("\n")&&(la=la.slice(0,-1)),ca.insertAt(0,la,ua)):(la=h.default.create(la,ua),this.appendChild(la)):f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"insertAt",this).call(this,ca,la,ua),this.optimize()}},{key:"insertBefore",value:function(ca,la){if(ca.statics.scope===
|
|
149
|
+
h.default.Scope.INLINE_BLOT){var ua=h.default.create(this.statics.defaultChild);ua.appendChild(ca);ca=ua}f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"insertBefore",this).call(this,ca,la)}},{key:"leaf",value:function(ca){return this.path(ca).pop()||[null,-1]}},{key:"line",value:function(ca){return ca===this.length()?this.line(ca-1):this.descendant(n,ca)}},{key:"lines",value:function(){return function sa(la,ua,ma){var oa=[],ra=ma;la.children.forEachAt(ua,ma,function(ta,qa,wa){n(ta)?
|
|
150
|
+
oa.push(ta):ta instanceof h.default.Container&&(oa=oa.concat(sa(ta,qa,ra)));ra-=wa});return oa}(this,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var ca=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],la=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"optimize",this).call(this,ca,
|
|
151
|
+
la),0<ca.length&&this.emitter.emit(y.default.events.SCROLL_OPTIMIZE,ca,la))}},{key:"path",value:function(ca){return f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"path",this).call(this,ca).slice(1)}},{key:"update",value:function(ca){if(!0!==this.batch){var la=y.default.sources.USER;"string"===typeof ca&&(la=ca);Array.isArray(ca)||(ca=this.observer.takeRecords());0<ca.length&&this.emitter.emit(y.default.events.SCROLL_BEFORE_UPDATE,la,ca);f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),
|
|
152
|
+
"update",this).call(this,ca.concat([]));0<ca.length&&this.emitter.emit(y.default.events.SCROLL_UPDATE,la,ca)}}}]);return ha}(h.default.Scroll);ia.blotName="scroll";ia.className="ql-editor";ia.tagName="DIV";ia.defaultChild="block";ia.allowedChildren=[w.default,e.BlockEmbed,ea.default];ka.default=ia},function(ia,ka,ea){function da(wa){return wa&&wa.__esModule?wa:{default:wa}}function x(wa,Aa,Ga){Aa in wa?Object.defineProperty(wa,Aa,{value:Ga,enumerable:!0,configurable:!0,writable:!0}):wa[Aa]=Ga;return wa}
|
|
153
|
+
function r(wa,Aa){if(!wa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Aa||"object"!==typeof Aa&&"function"!==typeof Aa?wa:Aa}function n(wa,Aa){if("function"!==typeof Aa&&null!==Aa)throw new TypeError("Super expression must either be null or a function, not "+typeof Aa);wa.prototype=Object.create(Aa&&Aa.prototype,{constructor:{value:wa,enumerable:!1,writable:!0,configurable:!0}});Aa&&(Object.setPrototypeOf?Object.setPrototypeOf(wa,Aa):wa.__proto__=Aa)}
|
|
154
|
+
function a(wa,Aa){var Ga,Na=wa===qa.keys.LEFT?"prefix":"suffix";return Ga={key:wa,shiftKey:Aa,altKey:null},x(Ga,Na,/^$/),x(Ga,"handler",function(Ha){var Qa=Ha.index;wa===qa.keys.RIGHT&&(Qa+=Ha.length+1);Qa=this.quill.getLeaf(Qa);if(!(ja(Qa,1)[0]instanceof sa.default.Embed))return!0;wa===qa.keys.LEFT?Aa?this.quill.setSelection(Ha.index-1,Ha.length+1,oa.default.sources.USER):this.quill.setSelection(Ha.index-1,oa.default.sources.USER):Aa?this.quill.setSelection(Ha.index,Ha.length+1,oa.default.sources.USER):
|
|
155
|
+
this.quill.setSelection(Ha.index+Ha.length+1,oa.default.sources.USER);return!1}),Ga}function b(wa,Aa){if(!(0===wa.index||1>=this.quill.getLength())){var Ga=this.quill.getLine(wa.index),Na=ja(Ga,1)[0];Ga={};if(0===Aa.offset){var Ha=this.quill.getLine(wa.index-1);Ha=ja(Ha,1)[0];null!=Ha&&1<Ha.length()&&(Ga=Na.formats(),Na=this.quill.getFormat(wa.index-1,1),Ga=ma.default.attributes.diff(Ga,Na)||{})}Aa=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Aa.prefix)?2:1;this.quill.deleteText(wa.index-Aa,Aa,oa.default.sources.USER);
|
|
156
|
+
0<Object.keys(Ga).length&&this.quill.formatLine(wa.index-Aa,Aa,Ga,oa.default.sources.USER);this.quill.focus()}}function f(wa,Aa){var Ga=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Aa.suffix)?2:1;if(!(wa.index>=this.quill.getLength()-Ga)){var Na={},Ha=0,Qa=this.quill.getLine(wa.index);Qa=ja(Qa,1)[0];Aa.offset>=Qa.length()-1&&(Aa=this.quill.getLine(wa.index+1),Aa=ja(Aa,1)[0])&&(Na=Qa.formats(),Ha=this.quill.getFormat(wa.index,1),Na=ma.default.attributes.diff(Na,Ha)||{},Ha=Aa.length());this.quill.deleteText(wa.index,
|
|
157
|
+
Ga,oa.default.sources.USER);0<Object.keys(Na).length&&this.quill.formatLine(wa.index+Ha-1,Ga,Na,oa.default.sources.USER)}}function h(wa){var Aa=this.quill.getLines(wa),Ga={};1<Aa.length&&(Ga=Aa[0].formats(),Aa=Aa[Aa.length-1].formats(),Ga=ma.default.attributes.diff(Aa,Ga)||{});this.quill.deleteText(wa,oa.default.sources.USER);0<Object.keys(Ga).length&&this.quill.formatLine(wa.index,1,Ga,oa.default.sources.USER);this.quill.setSelection(wa.index,oa.default.sources.SILENT);this.quill.focus()}function y(wa,
|
|
158
|
+
Aa){var Ga=this;0<wa.length&&this.quill.scroll.deleteAt(wa.index,wa.length);var Na=Object.keys(Aa.format).reduce(function(Ha,Qa){sa.default.query(Qa,sa.default.Scope.BLOCK)&&!Array.isArray(Aa.format[Qa])&&(Ha[Qa]=Aa.format[Qa]);return Ha},{});this.quill.insertText(wa.index,"\n",Na,oa.default.sources.USER);this.quill.setSelection(wa.index+1,oa.default.sources.SILENT);this.quill.focus();Object.keys(Aa.format).forEach(function(Ha){null==Na[Ha]&&(Array.isArray(Aa.format[Ha])||"link"!==Ha&&Ga.quill.format(Ha,
|
|
159
|
+
Aa.format[Ha],oa.default.sources.USER))})}function e(wa){return{key:qa.keys.TAB,shiftKey:!wa,format:{"code-block":!0},handler:function(Aa){var Ga=sa.default.query("code-block"),Na=Aa.index,Ha=Aa.length;Aa=this.quill.scroll.descendant(Ga,Na);Aa=ja(Aa,2);var Qa=Aa[0],Ra=Aa[1];if(null!=Qa){Aa=this.quill.getIndex(Qa);var Ca=Qa.newlineIndex(Ra,!0)+1;Aa=Qa.newlineIndex(Aa+Ra+Ha);Aa=Qa.domNode.textContent.slice(Ca,Aa).split("\n");Ra=0;Aa.forEach(function(Ka,Ia){wa?(Qa.insertAt(Ca+Ra,Ga.TAB),Ra+=Ga.TAB.length,
|
|
160
|
+
0===Ia?Na+=Ga.TAB.length:Ha+=Ga.TAB.length):Ka.startsWith(Ga.TAB)&&(Qa.deleteAt(Ca+Ra,Ga.TAB.length),Ra-=Ga.TAB.length,0===Ia?Na-=Ga.TAB.length:Ha-=Ga.TAB.length);Ra+=Ka.length+1});this.quill.update(oa.default.sources.USER);this.quill.setSelection(Na,Ha,oa.default.sources.SILENT)}}}}function w(wa){return{key:wa[0].toUpperCase(),shortKey:!0,handler:function(Aa,Ga){this.quill.format(wa,!Ga.format[wa],oa.default.sources.USER)}}}function aa(wa){if("string"===typeof wa||"number"===typeof wa)return aa({key:wa});
|
|
161
|
+
"object"===("undefined"===typeof wa?"undefined":fa(wa))&&(wa=(0,ha.default)(wa,!1));if("string"===typeof wa.key)if(null!=qa.keys[wa.key.toUpperCase()])wa.key=qa.keys[wa.key.toUpperCase()];else if(1===wa.key.length)wa.key=wa.key.toUpperCase().charCodeAt(0);else return null;wa.shortKey&&(wa[ta]=wa.shortKey,delete wa.shortKey);return wa}Object.defineProperty(ka,"__esModule",{value:!0});ka.SHORTKEY=ka.default=void 0;var fa="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(wa){return typeof wa}:
|
|
162
|
+
function(wa){return wa&&"function"===typeof Symbol&&wa.constructor===Symbol&&wa!==Symbol.prototype?"symbol":typeof wa},ja=function(){return function(wa,Aa){if(Array.isArray(wa))return wa;if(Symbol.iterator in Object(wa)){var Ga=[],Na=!0,Ha=!1,Qa=void 0;try{for(var Ra=wa[Symbol.iterator](),Ca;!(Na=(Ca=Ra.next()).done)&&(Ga.push(Ca.value),!Aa||Ga.length!==Aa);Na=!0);}catch(Ka){Ha=!0,Qa=Ka}finally{try{if(!Na&&Ra["return"])Ra["return"]()}finally{if(Ha)throw Qa;}}return Ga}throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
163
|
+
}}(),ba=function(){function wa(Aa,Ga){for(var Na=0;Na<Ga.length;Na++){var Ha=Ga[Na];Ha.enumerable=Ha.enumerable||!1;Ha.configurable=!0;"value"in Ha&&(Ha.writable=!0);Object.defineProperty(Aa,Ha.key,Ha)}}return function(Aa,Ga,Na){Ga&&wa(Aa.prototype,Ga);Na&&wa(Aa,Na);return Aa}}();ia=ea(21);var ha=da(ia);ia=ea(11);var ca=da(ia);ia=ea(3);var la=da(ia);ia=ea(2);var ua=da(ia);ia=ea(20);var ma=da(ia);ia=ea(0);var sa=da(ia);ia=ea(5);var oa=da(ia);ia=ea(10);ia=da(ia);ea=ea(9);ea=da(ea);var ra=(0,ia.default)("quill:keyboard"),
|
|
164
|
+
ta=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",qa=function(wa){function Aa(Ga,Na){if(!(this instanceof Aa))throw new TypeError("Cannot call a class as a function");var Ha=r(this,(Aa.__proto__||Object.getPrototypeOf(Aa)).call(this,Ga,Na));Ha.bindings={};Object.keys(Ha.options.bindings).forEach(function(Qa){("list autofill"!==Qa||null==Ga.scroll.whitelist||Ga.scroll.whitelist.list)&&Ha.options.bindings[Qa]&&Ha.addBinding(Ha.options.bindings[Qa])});Ha.addBinding({key:Aa.keys.ENTER,shiftKey:null},
|
|
165
|
+
y);Ha.addBinding({key:Aa.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){});/Firefox/i.test(navigator.userAgent)?(Ha.addBinding({key:Aa.keys.BACKSPACE},{collapsed:!0},b),Ha.addBinding({key:Aa.keys.DELETE},{collapsed:!0},f)):(Ha.addBinding({key:Aa.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},b),Ha.addBinding({key:Aa.keys.DELETE},{collapsed:!0,suffix:/^.?$/},f));Ha.addBinding({key:Aa.keys.BACKSPACE},{collapsed:!1},h);Ha.addBinding({key:Aa.keys.DELETE},{collapsed:!1},h);Ha.addBinding({key:Aa.keys.BACKSPACE,
|
|
166
|
+
altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},b);Ha.listen();return Ha}n(Aa,wa);ba(Aa,null,[{key:"match",value:function(Ga,Na){Na=aa(Na);return["altKey","ctrlKey","metaKey","shiftKey"].some(function(Ha){return!!Na[Ha]!==Ga[Ha]&&null!==Na[Ha]})?!1:Na.key===(Ga.which||Ga.keyCode)}}]);ba(Aa,[{key:"addBinding",value:function(Ga){var Na=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},Ha=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},Qa=aa(Ga);if(null==
|
|
167
|
+
Qa||null==Qa.key)return ra.warn("Attempted to add invalid keyboard binding",Qa);"function"===typeof Na&&(Na={handler:Na});"function"===typeof Ha&&(Ha={handler:Ha});Qa=(0,la.default)(Qa,Na,Ha);this.bindings[Qa.key]=this.bindings[Qa.key]||[];this.bindings[Qa.key].push(Qa)}},{key:"listen",value:function(){var Ga=this;this.quill.root.addEventListener("keydown",function(Na){if(!Na.defaultPrevented){var Ha=(Ga.bindings[Na.which||Na.keyCode]||[]).filter(function(Ma){return Aa.match(Na,Ma)});if(0!==Ha.length){var Qa=
|
|
168
|
+
Ga.quill.getSelection();if(null!=Qa&&Ga.quill.hasFocus()){var Ra=Ga.quill.getLine(Qa.index),Ca=ja(Ra,2);Ra=Ca[0];Ca=Ca[1];var Ka=Ga.quill.getLeaf(Qa.index),Ia=ja(Ka,2);Ka=Ia[0];Ia=Ia[1];var va=0===Qa.length?[Ka,Ia]:Ga.quill.getLeaf(Qa.index+Qa.length),Fa=ja(va,2);va=Fa[0];Fa=Fa[1];Ka=Ka instanceof sa.default.Text?Ka.value().slice(0,Ia):"";Ia=va instanceof sa.default.Text?va.value().slice(Fa):"";var Pa={collapsed:0===Qa.length,empty:0===Qa.length&&1>=Ra.length(),format:Ga.quill.getFormat(Qa),offset:Ca,
|
|
169
|
+
prefix:Ka,suffix:Ia};Ha.some(function(Ma){if(null!=Ma.collapsed&&Ma.collapsed!==Pa.collapsed||null!=Ma.empty&&Ma.empty!==Pa.empty||null!=Ma.offset&&Ma.offset!==Pa.offset)return!1;if(Array.isArray(Ma.format)){if(Ma.format.every(function(Ua){return null==Pa.format[Ua]}))return!1}else if("object"===fa(Ma.format)&&!Object.keys(Ma.format).every(function(Ua){return!0===Ma.format[Ua]?null!=Pa.format[Ua]:!1===Ma.format[Ua]?null==Pa.format[Ua]:(0,ca.default)(Ma.format[Ua],Pa.format[Ua])}))return!1;return null!=
|
|
170
|
+
Ma.prefix&&!Ma.prefix.test(Pa.prefix)||null!=Ma.suffix&&!Ma.suffix.test(Pa.suffix)?!1:!0!==Ma.handler.call(Ga,Qa,Pa)})&&Na.preventDefault()}}}})}}]);return Aa}(ea.default);qa.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};qa.DEFAULTS={bindings:{bold:w("bold"),italic:w("italic"),underline:w("underline"),indent:{key:qa.keys.TAB,format:["blockquote","indent","list"],handler:function(wa,Aa){if(Aa.collapsed&&0!==Aa.offset)return!0;this.quill.format("indent","+1",oa.default.sources.USER)}},
|
|
171
|
+
outdent:{key:qa.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(wa,Aa){if(Aa.collapsed&&0!==Aa.offset)return!0;this.quill.format("indent","-1",oa.default.sources.USER)}},"outdent backspace":{key:qa.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(wa,Aa){null!=Aa.format.indent?this.quill.format("indent","-1",oa.default.sources.USER):null!=Aa.format.list&&this.quill.format("list",!1,oa.default.sources.USER)}},
|
|
172
|
+
"indent code-block":e(!0),"outdent code-block":e(!1),"remove tab":{key:qa.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(wa){this.quill.deleteText(wa.index-1,1,oa.default.sources.USER)}},tab:{key:qa.keys.TAB,handler:function(wa){this.quill.history.cutoff();var Aa=(new ua.default).retain(wa.index).delete(wa.length).insert("\t");this.quill.updateContents(Aa,oa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(wa.index+1,oa.default.sources.SILENT)}},"list empty enter":{key:qa.keys.ENTER,
|
|
173
|
+
collapsed:!0,format:["list"],empty:!0,handler:function(wa,Aa){this.quill.format("list",!1,oa.default.sources.USER);Aa.format.indent&&this.quill.format("indent",!1,oa.default.sources.USER)}},"checklist enter":{key:qa.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(wa){var Aa=this.quill.getLine(wa.index),Ga=ja(Aa,2);Aa=Ga[0];Ga=Ga[1];var Na=(0,la.default)({},Aa.formats(),{list:"checked"});Aa=(new ua.default).retain(wa.index).insert("\n",Na).retain(Aa.length()-Ga-1).retain(1,{list:"unchecked"});
|
|
174
|
+
this.quill.updateContents(Aa,oa.default.sources.USER);this.quill.setSelection(wa.index+1,oa.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:qa.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(wa,Aa){var Ga=this.quill.getLine(wa.index),Na=ja(Ga,2);Ga=Na[0];Na=Na[1];Aa=(new ua.default).retain(wa.index).insert("\n",Aa.format).retain(Ga.length()-Na-1).retain(1,{header:null});this.quill.updateContents(Aa,oa.default.sources.USER);this.quill.setSelection(wa.index+
|
|
175
|
+
1,oa.default.sources.SILENT);this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(wa,Aa){var Ga=Aa.prefix.length,Na=this.quill.getLine(wa.index),Ha=ja(Na,2);Na=Ha[0];Ha=Ha[1];if(Ha>Ga)return!0;switch(Aa.prefix.trim()){case "[]":case "[ ]":Aa="unchecked";break;case "[x]":Aa="checked";break;case "-":case "*":Aa="bullet";break;default:Aa="ordered"}this.quill.insertText(wa.index," ",oa.default.sources.USER);this.quill.history.cutoff();
|
|
176
|
+
Aa=(new ua.default).retain(wa.index-Ha).delete(Ga+1).retain(Na.length()-2-Ha).retain(1,{list:Aa});this.quill.updateContents(Aa,oa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(wa.index-Ga,oa.default.sources.SILENT)}},"code exit":{key:qa.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(wa){var Aa=this.quill.getLine(wa.index),Ga=ja(Aa,2);Aa=Ga[0];Ga=Ga[1];wa=(new ua.default).retain(wa.index+Aa.length()-Ga-2).retain(1,{"code-block":null}).delete(1);
|
|
177
|
+
this.quill.updateContents(wa,oa.default.sources.USER)}},"embed left":a(qa.keys.LEFT,!1),"embed left shift":a(qa.keys.LEFT,!0),"embed right":a(qa.keys.RIGHT,!1),"embed right shift":a(qa.keys.RIGHT,!0)}};ka.default=qa;ka.SHORTKEY=ta},function(ia,ka,ea){function da(f,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});h&&
|
|
178
|
+
(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){return function(f,h){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var y=[],e=!0,w=!1,aa=void 0;try{for(var fa=f[Symbol.iterator](),ja;!(e=(ja=fa.next()).done)&&(y.push(ja.value),!h||y.length!==h);e=!0);}catch(ba){w=!0,aa=ba}finally{try{if(!e&&fa["return"])fa["return"]()}finally{if(w)throw aa;}}return y}throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
179
|
+
}}(),r=function w(h,y,e){null===h&&(h=Function.prototype);var aa=Object.getOwnPropertyDescriptor(h,y);if(void 0===aa){if(h=Object.getPrototypeOf(h),null!==h)return w(h,y,e)}else{if("value"in aa)return aa.value;y=aa.get;return void 0===y?void 0:y.call(e)}},n=function(){function h(y,e){for(var w=0;w<e.length;w++){var aa=e[w];aa.enumerable=aa.enumerable||!1;aa.configurable=!0;"value"in aa&&(aa.writable=!0);Object.defineProperty(y,aa.key,aa)}}return function(y,e,w){e&&h(y.prototype,e);w&&h(y,w);return y}}(),
|
|
180
|
+
a=(ia=ea(0))&&ia.__esModule?ia:{default:ia},b=(ea=ea(7))&&ea.__esModule?ea:{default:ea};ea=function(h){function y(e,w){if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");e=(y.__proto__||Object.getPrototypeOf(y)).call(this,e);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");e=!e||"object"!==typeof e&&"function"!==typeof e?this:e;e.selection=w;e.textNode=document.createTextNode(y.CONTENTS);e.domNode.appendChild(e.textNode);
|
|
181
|
+
e._length=0;return e}da(y,h);n(y,null,[{key:"value",value:function(){}}]);n(y,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,w){if(0!==this._length)return r(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,e,w);for(var aa=this,fa=0;null!=aa&&aa.statics.scope!==a.default.Scope.BLOCK_BLOT;)fa+=aa.offset(aa.parent),aa=aa.parent;null!=aa&&(this._length=y.CONTENTS.length,aa.optimize(),aa.formatAt(fa,y.CONTENTS.length,
|
|
182
|
+
e,w),this._length=0)}},{key:"index",value:function(e,w){return e===this.textNode?0:r(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"index",this).call(this,e,w)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"remove",this).call(this);this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&
|
|
183
|
+
null!=this.parent){var e=this.textNode,w=this.selection.getNativeRange(),aa=void 0,fa=void 0,ja=void 0;null!=w&&w.start.node===e&&w.end.node===e&&(ja=[e,w.start.offset,w.end.offset],aa=ja[0],fa=ja[1],ja=ja[2]);for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);this.textNode.data!==y.CONTENTS&&(e=this.textNode.data.split(y.CONTENTS).join(""),this.next instanceof b.default?(aa=this.next.domNode,this.next.insertAt(0,
|
|
184
|
+
e),this.textNode.data=y.CONTENTS):(this.textNode.data=e,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(y.CONTENTS),this.domNode.appendChild(this.textNode)));this.remove();if(null!=fa)return fa=[fa,ja].map(function(ba){return Math.max(0,Math.min(aa.data.length,ba-1))}),ja=x(fa,2),fa=ja[0],ja=ja[1],{startNode:aa,startOffset:fa,endNode:aa,endOffset:ja}}}},{key:"update",value:function(e,w){var aa=this;e.some(function(fa){return"characterData"===fa.type&&
|
|
185
|
+
fa.target===aa.textNode})&&(e=this.restore())&&(w.range=e)}},{key:"value",value:function(){return""}}]);return y}(a.default.Embed);ea.blotName="cursor";ea.className="ql-cursor";ea.tagName="span";ea.CONTENTS="\ufeff";ka.default=ea},function(ia,ka,ea){function da(r,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}});n&&
|
|
186
|
+
(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}Object.defineProperty(ka,"__esModule",{value:!0});ia=(ia=ea(0))&&ia.__esModule?ia:{default:ia};var x=(ea=ea(4))&&ea.__esModule?ea:{default:ea};ia=function(r){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var a=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==
|
|
187
|
+
typeof a&&"function"!==typeof a?this:a}da(n,r);return n}(ia.default.Container);ia.allowedChildren=[x.default,ea.BlockEmbed,ia];ka.default=ia},function(ia,ka,ea){function da(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(ka,
|
|
188
|
+
"__esModule",{value:!0});ka.ColorStyle=ka.ColorClass=ka.ColorAttributor=void 0;var x=function(){function a(b,f){for(var h=0;h<f.length;h++){var y=f[h];y.enumerable=y.enumerable||!1;y.configurable=!0;"value"in y&&(y.writable=!0);Object.defineProperty(b,y.key,y)}}return function(b,f,h){f&&a(b.prototype,f);h&&a(b,h);return b}}(),r=function y(b,f,h){null===b&&(b=Function.prototype);var e=Object.getOwnPropertyDescriptor(b,f);if(void 0===e){if(b=Object.getPrototypeOf(b),null!==b)return y(b,f,h)}else{if("value"in
|
|
189
|
+
e)return e.value;f=e.get;return void 0===f?void 0:f.call(h)}},n=function(b){return b&&b.__esModule?b:{default:b}}(ea(0));ia=function(b){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var h=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(f,b);x(f,[{key:"value",value:function(h){h=r(f.prototype.__proto__||
|
|
190
|
+
Object.getPrototypeOf(f.prototype),"value",this).call(this,h);if(!h.startsWith("rgb("))return h;h=h.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#"+h.split(",").map(function(y){return("00"+parseInt(y).toString(16)).slice(-2)}).join("")}}]);return f}(n.default.Attributor.Style);ea=new n.default.Attributor.Class("color","ql-color",{scope:n.default.Scope.INLINE});n=new ia("color","color",{scope:n.default.Scope.INLINE});ka.ColorAttributor=ia;ka.ColorClass=ea;ka.ColorStyle=n},function(ia,ka,ea){function da(a,
|
|
191
|
+
b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function x(a,b){var f=document.createElement("a");f.href=a;a=f.href.slice(0,f.href.indexOf(":"));return-1<b.indexOf(a)}Object.defineProperty(ka,"__esModule",{value:!0});ka.sanitize=ka.default=void 0;
|
|
192
|
+
var r=function(){function a(b,f){for(var h=0;h<f.length;h++){var y=f[h];y.enumerable=y.enumerable||!1;y.configurable=!0;"value"in y&&(y.writable=!0);Object.defineProperty(b,y.key,y)}}return function(b,f,h){f&&a(b.prototype,f);h&&a(b,h);return b}}(),n=function y(b,f,h){null===b&&(b=Function.prototype);var e=Object.getOwnPropertyDescriptor(b,f);if(void 0===e){if(b=Object.getPrototypeOf(b),null!==b)return y(b,f,h)}else{if("value"in e)return e.value;f=e.get;return void 0===f?void 0:f.call(h)}};ia=function(b){function f(){if(!(this instanceof
|
|
193
|
+
f))throw new TypeError("Cannot call a class as a function");var h=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(f,b);r(f,[{key:"format",value:function(h,y){if(h!==this.statics.blotName||!y)return n(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,h,y);y=this.constructor.sanitize(y);this.domNode.setAttribute("href",
|
|
194
|
+
y)}}],[{key:"create",value:function(h){var y=n(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,h);h=this.sanitize(h);y.setAttribute("href",h);y.setAttribute("rel","noopener noreferrer");y.setAttribute("target","_blank");return y}},{key:"formats",value:function(h){return h.getAttribute("href")}},{key:"sanitize",value:function(h){return x(h,this.PROTOCOL_WHITELIST)?h:this.SANITIZED_URL}}]);return f}(function(b){return b&&b.__esModule?b:{default:b}}(ea(6)).default);ia.blotName="link";
|
|
195
|
+
ia.tagName="A";ia.SANITIZED_URL="about:blank";ia.PROTOCOL_WHITELIST=["http","https","mailto","tel"];ka.default=ia;ka.sanitize=x},function(ia,ka,ea){Object.defineProperty(ka,"__esModule",{value:!0});var da="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"===typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},x=function(){function b(f,h){for(var y=0;y<h.length;y++){var e=h[y];e.enumerable=e.enumerable||
|
|
196
|
+
!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(f,e.key,e)}}return function(f,h,y){h&&b(f.prototype,h);y&&b(f,y);return f}}(),r=(ia=ea(23))&&ia.__esModule?ia:{default:ia},n=(ea=ea(107))&&ea.__esModule?ea:{default:ea},a=0;ea=function(){function b(f){var h=this;if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");this.select=f;this.container=document.createElement("span");this.buildPicker();this.select.style.display="none";this.select.parentNode.insertBefore(this.container,
|
|
197
|
+
this.select);this.label.addEventListener("mousedown",function(){h.togglePicker()});this.label.addEventListener("keydown",function(y){switch(y.keyCode){case r.default.keys.ENTER:h.togglePicker();break;case r.default.keys.ESCAPE:h.escape(),y.preventDefault()}});this.select.addEventListener("change",this.update.bind(this))}x(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded");var f=this.label;f.setAttribute("aria-expanded","true"!==f.getAttribute("aria-expanded"));
|
|
198
|
+
f=this.options;f.setAttribute("aria-hidden","true"!==f.getAttribute("aria-hidden"))}},{key:"buildItem",value:function(f){var h=this,y=document.createElement("span");y.tabIndex="0";y.setAttribute("role","button");y.classList.add("ql-picker-item");f.hasAttribute("value")&&y.setAttribute("data-value",f.getAttribute("value"));f.textContent&&y.setAttribute("data-label",f.textContent);y.addEventListener("click",function(){h.selectItem(y,!0)});y.addEventListener("keydown",function(e){switch(e.keyCode){case r.default.keys.ENTER:h.selectItem(y,
|
|
199
|
+
!0);e.preventDefault();break;case r.default.keys.ESCAPE:h.escape(),e.preventDefault()}});return y}},{key:"buildLabel",value:function(){var f=document.createElement("span");f.classList.add("ql-picker-label");f.innerHTML=n.default;f.tabIndex="0";f.setAttribute("role","button");f.setAttribute("aria-expanded","false");this.container.appendChild(f);return f}},{key:"buildOptions",value:function(){var f=this,h=document.createElement("span");h.classList.add("ql-picker-options");h.setAttribute("aria-hidden",
|
|
200
|
+
"true");h.tabIndex="-1";h.id="ql-picker-options-"+a;a+=1;this.label.setAttribute("aria-controls",h.id);this.options=h;[].slice.call(this.select.options).forEach(function(y){var e=f.buildItem(y);h.appendChild(e);!0===y.selected&&f.selectItem(e)});this.container.appendChild(h)}},{key:"buildPicker",value:function(){var f=this;[].slice.call(this.select.attributes).forEach(function(h){f.container.setAttribute(h.name,h.value)});this.container.classList.add("ql-picker");this.label=this.buildLabel();this.buildOptions()}},
|
|
201
|
+
{key:"escape",value:function(){var f=this;this.close();setTimeout(function(){return f.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded");this.label.setAttribute("aria-expanded","false");this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(f){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,y=this.container.querySelector(".ql-selected");f!==y&&(null!=y&&y.classList.remove("ql-selected"),null!=f&&(f.classList.add("ql-selected"),
|
|
202
|
+
this.select.selectedIndex=[].indexOf.call(f.parentNode.children,f),f.hasAttribute("data-value")?this.label.setAttribute("data-value",f.getAttribute("data-value")):this.label.removeAttribute("data-value"),f.hasAttribute("data-label")?this.label.setAttribute("data-label",f.getAttribute("data-label")):this.label.removeAttribute("data-label"),h&&("function"===typeof Event?this.select.dispatchEvent(new Event("change")):"object"===("undefined"===typeof Event?"undefined":da(Event))&&(h=document.createEvent("Event"),
|
|
203
|
+
h.initEvent("change",!0,!0),this.select.dispatchEvent(h)),this.close())))}},{key:"update",value:function(){var f=void 0;if(-1<this.select.selectedIndex){var h=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];f=this.select.options[this.select.selectedIndex];this.selectItem(h)}else this.selectItem(null);this.label.classList.toggle("ql-active",null!=f&&f!==this.select.querySelector("option[selected]"))}}]);return b}();ka.default=ea},function(ia,ka,ea){function da(ja){return ja&&
|
|
204
|
+
ja.__esModule?ja:{default:ja}}Object.defineProperty(ka,"__esModule",{value:!0});ia=ea(0);ia=da(ia);var x=ea(5);x=da(x);var r=ea(4),n=da(r),a=ea(16);a=da(a);var b=ea(25);b=da(b);var f=ea(24);f=da(f);var h=ea(35);h=da(h);var y=ea(6);y=da(y);var e=ea(22);e=da(e);var w=ea(7);w=da(w);var aa=ea(55);aa=da(aa);var fa=ea(42);fa=da(fa);ea=ea(23);ea=da(ea);x.default.register({"blots/block":n.default,"blots/block/embed":r.BlockEmbed,"blots/break":a.default,"blots/container":b.default,"blots/cursor":f.default,
|
|
205
|
+
"blots/embed":h.default,"blots/inline":y.default,"blots/scroll":e.default,"blots/text":w.default,"modules/clipboard":aa.default,"modules/history":fa.default,"modules/keyboard":ea.default});ia.default.register(n.default,a.default,f.default,y.default,e.default,w.default);ka.default=x.default},function(ia,ka,ea){Object.defineProperty(ka,"__esModule",{value:!0});var da=ea(1);ia=function(){function x(r){this.domNode=r;this.domNode[da.DATA_KEY]={blot:this}}Object.defineProperty(x.prototype,"statics",{get:function(){return this.constructor},
|
|
206
|
+
enumerable:!0,configurable:!0});x.create=function(r){if(null==this.tagName)throw new da.ParchmentError("Blot definition missing tagName");Array.isArray(this.tagName)?("string"===typeof r&&(r=r.toUpperCase(),parseInt(r).toString()===r&&(r=parseInt(r))),r="number"===typeof r?document.createElement(this.tagName[r-1]):-1<this.tagName.indexOf(r)?document.createElement(r):document.createElement(this.tagName[0])):r=document.createElement(this.tagName);this.className&&r.classList.add(this.className);return r};
|
|
207
|
+
x.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)};x.prototype.clone=function(){return da.create(this.domNode.cloneNode(!1))};x.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[da.DATA_KEY]};x.prototype.deleteAt=function(r,n){this.isolate(r,n).remove()};x.prototype.formatAt=function(r,n,a,b){r=this.isolate(r,n);null!=da.query(a,da.Scope.BLOT)&&b?r.wrap(a,b):null!=da.query(a,da.Scope.ATTRIBUTE)&&(n=da.create(this.statics.scope),
|
|
208
|
+
r.wrap(n),n.format(a,b))};x.prototype.insertAt=function(r,n,a){n=null==a?da.create("text",n):da.create(n,a);r=this.split(r);this.parent.insertBefore(n,r)};x.prototype.insertInto=function(r,n){void 0===n&&(n=null);null!=this.parent&&this.parent.children.remove(this);var a=null;r.children.insertBefore(this,n);null!=n&&(a=n.domNode);this.domNode.parentNode==r.domNode&&this.domNode.nextSibling==a||r.domNode.insertBefore(this.domNode,a);this.parent=r;this.attach()};x.prototype.isolate=function(r,n){r=
|
|
209
|
+
this.split(r);r.split(n);return r};x.prototype.length=function(){return 1};x.prototype.offset=function(r){void 0===r&&(r=this.parent);return null==this.parent||this==r?0:this.parent.children.offset(this)+this.parent.offset(r)};x.prototype.optimize=function(){null!=this.domNode[da.DATA_KEY]&&delete this.domNode[da.DATA_KEY].mutations};x.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.detach()};x.prototype.replace=function(r){null!=r.parent&&
|
|
210
|
+
(r.parent.insertBefore(this,r.next),r.remove())};x.prototype.replaceWith=function(r,n){r="string"===typeof r?da.create(r,n):r;r.replace(this);return r};x.prototype.split=function(r){return 0===r?this:this.next};x.prototype.update=function(){};x.prototype.wrap=function(r,n){r="string"===typeof r?da.create(r,n):r;null!=this.parent&&this.parent.insertBefore(r,this.next);r.appendChild(this);return r};x.blotName="abstract";return x}();ka.default=ia},function(ia,ka,ea){Object.defineProperty(ka,"__esModule",
|
|
211
|
+
{value:!0});var da=ea(12),x=ea(32),r=ea(33),n=ea(1);ia=function(){function a(b){this.attributes={};this.domNode=b;this.build()}a.prototype.attribute=function(b,f){f?b.add(this.domNode,f)&&(null!=b.value(this.domNode)?this.attributes[b.attrName]=b:delete this.attributes[b.attrName]):(b.remove(this.domNode),delete this.attributes[b.attrName])};a.prototype.build=function(){var b=this;this.attributes={};var f=da.default.keys(this.domNode),h=x.default.keys(this.domNode),y=r.default.keys(this.domNode);
|
|
212
|
+
f.concat(h).concat(y).forEach(function(e){e=n.query(e,n.Scope.ATTRIBUTE);e instanceof da.default&&(b.attributes[e.attrName]=e)})};a.prototype.copy=function(b){var f=this;Object.keys(this.attributes).forEach(function(h){var y=f.attributes[h].value(f.domNode);b.format(h,y)})};a.prototype.move=function(b){var f=this;this.copy(b);Object.keys(this.attributes).forEach(function(h){f.attributes[h].remove(f.domNode)});this.attributes={}};a.prototype.values=function(){var b=this;return Object.keys(this.attributes).reduce(function(f,
|
|
213
|
+
h){f[h]=b.attributes[h].value(b.domNode);return f},{})};return a}();ka.default=ia},function(ia,ka,ea){function da(r,n){return(r.getAttribute("class")||"").split(/\s+/).filter(function(a){return 0===a.indexOf(n+"-")})}var x=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var b in a)a.hasOwnProperty(b)&&(n[b]=a[b])};return function(n,a){function b(){this.constructor=n}r(n,a);n.prototype=null===a?Object.create(a):
|
|
214
|
+
(b.prototype=a.prototype,new b)}}();Object.defineProperty(ka,"__esModule",{value:!0});ia=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}x(n,r);n.keys=function(a){return(a.getAttribute("class")||"").split(/\s+/).map(function(b){return b.split("-").slice(0,-1).join("-")})};n.prototype.add=function(a,b){if(!this.canAdd(a,b))return!1;this.remove(a);a.classList.add(this.keyName+"-"+b);return!0};n.prototype.remove=function(a){da(a,this.keyName).forEach(function(b){a.classList.remove(b)});
|
|
215
|
+
0===a.classList.length&&a.removeAttribute("class")};n.prototype.value=function(a){var b=(da(a,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(a,b)?b:""};return n}(ea(12).default);ka.default=ia},function(ia,ka,ea){function da(r){r=r.split("-");var n=r.slice(1).map(function(a){return a[0].toUpperCase()+a.slice(1)}).join("");return r[0]+n}var x=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,
|
|
216
|
+
a){for(var b in a)a.hasOwnProperty(b)&&(n[b]=a[b])};return function(n,a){function b(){this.constructor=n}r(n,a);n.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(ka,"__esModule",{value:!0});ia=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}x(n,r);n.keys=function(a){return(a.getAttribute("style")||"").split(";").map(function(b){return b.split(":")[0].trim()})};n.prototype.add=function(a,b){if(!this.canAdd(a,b))return!1;a.style[da(this.keyName)]=
|
|
217
|
+
b;return!0};n.prototype.remove=function(a){a.style[da(this.keyName)]="";a.getAttribute("style")||a.removeAttribute("style")};n.prototype.value=function(a){var b=a.style[da(this.keyName)];return this.canAdd(a,b)?b:""};return n}(ea(12).default);ka.default=ia},function(ia,ka){Object.defineProperty(ka,"__esModule",{value:!0});var ea=function(){function da(x,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);Object.defineProperty(x,a.key,
|
|
218
|
+
a)}}return function(x,r,n){r&&da(x.prototype,r);n&&da(x,n);return x}}();ia=function(){function da(x,r){if(!(this instanceof da))throw new TypeError("Cannot call a class as a function");this.quill=x;this.options=r;this.modules={}}ea(da,[{key:"init",value:function(){var x=this;Object.keys(this.options.modules).forEach(function(r){null==x.modules[r]&&x.addModule(r)})}},{key:"addModule",value:function(x){var r=this.quill.constructor.import("modules/"+x);this.modules[x]=new r(this.quill,this.options.modules[x]||
|
|
219
|
+
{});return this.modules[x]}}]);return da}();ia.DEFAULTS={modules:{}};ia.themes={"default":ia};ka.default=ia},function(ia,ka,ea){function da(f,h){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?f:h}function x(f,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,
|
|
220
|
+
writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}Object.defineProperty(ka,"__esModule",{value:!0});var r=function(){function f(h,y){for(var e=0;e<y.length;e++){var w=y[e];w.enumerable=w.enumerable||!1;w.configurable=!0;"value"in w&&(w.writable=!0);Object.defineProperty(h,w.key,w)}}return function(h,y,e){y&&f(h.prototype,y);e&&f(h,e);return h}}(),n=function w(h,y,e){null===h&&(h=Function.prototype);var aa=Object.getOwnPropertyDescriptor(h,y);if(void 0===
|
|
221
|
+
aa){if(h=Object.getPrototypeOf(h),null!==h)return w(h,y,e)}else{if("value"in aa)return aa.value;y=aa.get;return void 0===y?void 0:y.call(e)}},a=(ia=ea(0))&&ia.__esModule?ia:{default:ia},b=(ea=ea(7))&&ea.__esModule?ea:{default:ea};ea=function(h){function y(e){if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");var w=da(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,e));w.contentNode=document.createElement("span");w.contentNode.setAttribute("contenteditable",!1);
|
|
222
|
+
[].slice.call(w.domNode.childNodes).forEach(function(aa){w.contentNode.appendChild(aa)});w.leftGuard=document.createTextNode("\ufeff");w.rightGuard=document.createTextNode("\ufeff");w.domNode.appendChild(w.leftGuard);w.domNode.appendChild(w.contentNode);w.domNode.appendChild(w.rightGuard);return w}x(y,h);r(y,[{key:"index",value:function(e,w){return e===this.leftGuard?0:e===this.rightGuard?1:n(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"index",this).call(this,e,w)}},{key:"restore",value:function(e){var w=
|
|
223
|
+
void 0,aa=e.data.split("\ufeff").join("");e===this.leftGuard?this.prev instanceof b.default?(w=this.prev.length(),this.prev.insertAt(w,aa),w={startNode:this.prev.domNode,startOffset:w+aa.length}):(w=document.createTextNode(aa),this.parent.insertBefore(a.default.create(w),this),w={startNode:w,startOffset:aa.length}):e===this.rightGuard&&(this.next instanceof b.default?(this.next.insertAt(0,aa),w={startNode:this.next.domNode,startOffset:aa.length}):(w=document.createTextNode(aa),this.parent.insertBefore(a.default.create(w),
|
|
224
|
+
this.next),w={startNode:w,startOffset:aa.length}));e.data="\ufeff";return w}},{key:"update",value:function(e,w){var aa=this;e.forEach(function(fa){"characterData"!==fa.type||fa.target!==aa.leftGuard&&fa.target!==aa.rightGuard||!(fa=aa.restore(fa.target))||(w.range=fa)})}}]);return y}(a.default.Embed);ka.default=ea},function(ia,ka,ea){Object.defineProperty(ka,"__esModule",{value:!0});ka.AlignStyle=ka.AlignClass=ka.AlignAttribute=void 0;var da=(ia=ea(0))&&ia.__esModule?ia:{default:ia};var x={scope:da.default.Scope.BLOCK,
|
|
225
|
+
whitelist:["right","center","justify"]};ia=new da.default.Attributor.Attribute("align","align",x);ea=new da.default.Attributor.Class("align","ql-align",x);da=new da.default.Attributor.Style("align","text-align",x);ka.AlignAttribute=ia;ka.AlignClass=ea;ka.AlignStyle=da},function(ia,ka,ea){Object.defineProperty(ka,"__esModule",{value:!0});ka.BackgroundStyle=ka.BackgroundClass=void 0;ia=(ia=ea(0))&&ia.__esModule?ia:{default:ia};var da=ea(26);ea=new ia.default.Attributor.Class("background","ql-bg",{scope:ia.default.Scope.INLINE});
|
|
226
|
+
ia=new da.ColorAttributor("background","background-color",{scope:ia.default.Scope.INLINE});ka.BackgroundClass=ea;ka.BackgroundStyle=ia},function(ia,ka,ea){Object.defineProperty(ka,"__esModule",{value:!0});ka.DirectionStyle=ka.DirectionClass=ka.DirectionAttribute=void 0;var da=(ia=ea(0))&&ia.__esModule?ia:{default:ia};var x={scope:da.default.Scope.BLOCK,whitelist:["rtl"]};ia=new da.default.Attributor.Attribute("direction","dir",x);ea=new da.default.Attributor.Class("direction","ql-direction",x);da=
|
|
227
|
+
new da.default.Attributor.Style("direction","direction",x);ka.DirectionAttribute=ia;ka.DirectionClass=ea;ka.DirectionStyle=da},function(ia,ka,ea){function da(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(ka,"__esModule",
|
|
228
|
+
{value:!0});ka.FontClass=ka.FontStyle=void 0;var x=function(){function a(b,f){for(var h=0;h<f.length;h++){var y=f[h];y.enumerable=y.enumerable||!1;y.configurable=!0;"value"in y&&(y.writable=!0);Object.defineProperty(b,y.key,y)}}return function(b,f,h){f&&a(b.prototype,f);h&&a(b,h);return b}}(),r=function y(b,f,h){null===b&&(b=Function.prototype);var e=Object.getOwnPropertyDescriptor(b,f);if(void 0===e){if(b=Object.getPrototypeOf(b),null!==b)return y(b,f,h)}else{if("value"in e)return e.value;f=e.get;
|
|
229
|
+
return void 0===f?void 0:f.call(h)}};ea=function(b){return b&&b.__esModule?b:{default:b}}(ea(0));var n={scope:ea.default.Scope.INLINE,whitelist:["serif","monospace"]};ia=new ea.default.Attributor.Class("font","ql-font",n);ea=new (function(b){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var h=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||
|
|
230
|
+
"object"!==typeof h&&"function"!==typeof h?this:h}da(f,b);x(f,[{key:"value",value:function(h){return r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"value",this).call(this,h).replace(/["']/g,"")}}]);return f}(ea.default.Attributor.Style))("font","font-family",n);ka.FontStyle=ea;ka.FontClass=ia},function(ia,ka,ea){Object.defineProperty(ka,"__esModule",{value:!0});ka.SizeStyle=ka.SizeClass=void 0;ea=(ia=ea(0))&&ia.__esModule?ia:{default:ia};ia=new ea.default.Attributor.Class("size","ql-size",
|
|
231
|
+
{scope:ea.default.Scope.INLINE,whitelist:["small","large","huge"]});ea=new ea.default.Attributor.Style("size","font-size",{scope:ea.default.Scope.INLINE,whitelist:["10px","18px","32px"]});ka.SizeClass=ia;ka.SizeStyle=ea},function(ia,ka,ea){ia.exports={align:{"":ea(76),center:ea(77),right:ea(78),justify:ea(79)},background:ea(80),blockquote:ea(81),bold:ea(82),clean:ea(83),code:ea(58),"code-block":ea(58),color:ea(84),direction:{"":ea(85),rtl:ea(86)},"float":{center:ea(87),full:ea(88),left:ea(89),right:ea(90)},
|
|
232
|
+
formula:ea(91),header:{1:ea(92),2:ea(93)},italic:ea(94),image:ea(95),indent:{"+1":ea(96),"-1":ea(97)},link:ea(98),list:{ordered:ea(99),bullet:ea(100),check:ea(101)},script:{sub:ea(102),"super":ea(103)},strike:ea(104),underline:ea(105),video:ea(106)}},function(ia,ka,ea){function da(y){return y&&y.__esModule?y:{default:y}}function x(y,e){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?y:e}function r(y,e){if("function"!==
|
|
233
|
+
typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);y.prototype=Object.create(e&&e.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(y,e):y.__proto__=e)}function n(y){y=y.ops[y.ops.length-1];return null==y?!1:null!=y.insert?"string"===typeof y.insert&&y.insert.endsWith("\n"):null!=y.attributes?Object.keys(y.attributes).some(function(e){return null!=f.default.query(e,f.default.Scope.BLOCK)}):
|
|
234
|
+
!1}function a(y){var e=y.reduce(function(w,aa){return w+=aa.delete||0},0);e=y.length()-e;n(y)&&--e;return e}Object.defineProperty(ka,"__esModule",{value:!0});ka.getLastChangeIndex=ka.default=void 0;var b=function(){function y(e,w){for(var aa=0;aa<w.length;aa++){var fa=w[aa];fa.enumerable=fa.enumerable||!1;fa.configurable=!0;"value"in fa&&(fa.writable=!0);Object.defineProperty(e,fa.key,fa)}}return function(e,w,aa){w&&y(e.prototype,w);aa&&y(e,aa);return e}}();ia=ea(0);var f=da(ia);ia=ea(5);var h=da(ia);
|
|
235
|
+
ea=ea(9);ea=function(y){function e(w,aa){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var fa=x(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,w,aa));fa.lastRecorded=0;fa.ignoreChange=!1;fa.clear();fa.quill.on(h.default.events.EDITOR_CHANGE,function(ja,ba,ha,ca){ja!==h.default.events.TEXT_CHANGE||fa.ignoreChange||(fa.options.userOnly&&ca!==h.default.sources.USER?fa.transform(ba):fa.record(ba,ha))});fa.quill.keyboard.addBinding({key:"Z",shortKey:!0},fa.undo.bind(fa));
|
|
236
|
+
fa.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},fa.redo.bind(fa));/Win/i.test(navigator.platform)&&fa.quill.keyboard.addBinding({key:"Y",shortKey:!0},fa.redo.bind(fa));return fa}r(e,y);b(e,[{key:"change",value:function(w,aa){if(0!==this.stack[w].length){var fa=this.stack[w].pop();this.stack[aa].push(fa);this.lastRecorded=0;this.ignoreChange=!0;this.quill.updateContents(fa[w],h.default.sources.USER);this.ignoreChange=!1;w=a(fa[w]);this.quill.setSelection(w)}}},{key:"clear",value:function(){this.stack=
|
|
237
|
+
{undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(w,aa){if(0!==w.ops.length){this.stack.redo=[];aa=this.quill.getContents().diff(aa);var fa=Date.now();this.lastRecorded+this.options.delay>fa&&0<this.stack.undo.length?(fa=this.stack.undo.pop(),aa=aa.compose(fa.undo),w=fa.redo.compose(w)):this.lastRecorded=fa;this.stack.undo.push({redo:w,undo:aa});this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo",
|
|
238
|
+
"undo")}},{key:"transform",value:function(w){this.stack.undo.forEach(function(aa){aa.undo=w.transform(aa.undo,!0);aa.redo=w.transform(aa.redo,!0)});this.stack.redo.forEach(function(aa){aa.undo=w.transform(aa.undo,!0);aa.redo=w.transform(aa.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]);return e}(da(ea).default);ea.DEFAULTS={delay:1E3,maxStack:100,userOnly:!1};ka.default=ea;ka.getLastChangeIndex=a},function(ia,ka,ea){function da(sa){return sa&&sa.__esModule?sa:{default:sa}}
|
|
239
|
+
function x(sa,oa){if(!(sa instanceof oa))throw new TypeError("Cannot call a class as a function");}function r(sa,oa){if(!sa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!oa||"object"!==typeof oa&&"function"!==typeof oa?sa:oa}function n(sa,oa){if("function"!==typeof oa&&null!==oa)throw new TypeError("Super expression must either be null or a function, not "+typeof oa);sa.prototype=Object.create(oa&&oa.prototype,{constructor:{value:sa,enumerable:!1,writable:!0,
|
|
240
|
+
configurable:!0}});oa&&(Object.setPrototypeOf?Object.setPrototypeOf(sa,oa):sa.__proto__=oa)}function a(sa,oa){var ra=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;oa.forEach(function(ta){var qa=document.createElement("option");ta===ra?qa.setAttribute("selected","selected"):qa.setAttribute("value",ta);sa.appendChild(qa)})}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.BaseTooltip=void 0;var b=function(){function sa(oa,ra){for(var ta=0;ta<ra.length;ta++){var qa=ra[ta];qa.enumerable=
|
|
241
|
+
qa.enumerable||!1;qa.configurable=!0;"value"in qa&&(qa.writable=!0);Object.defineProperty(oa,qa.key,qa)}}return function(oa,ra,ta){ra&&sa(oa.prototype,ra);ta&&sa(oa,ta);return oa}}(),f=function qa(oa,ra,ta){null===oa&&(oa=Function.prototype);var wa=Object.getOwnPropertyDescriptor(oa,ra);if(void 0===wa){if(oa=Object.getPrototypeOf(oa),null!==oa)return qa(oa,ra,ta)}else{if("value"in wa)return wa.value;ra=wa.get;return void 0===ra?void 0:ra.call(ta)}};ia=ea(3);ia=da(ia);var h=ea(2),y=da(h);h=ea(8);var e=
|
|
242
|
+
da(h);h=ea(23);var w=da(h);h=ea(34);h=da(h);var aa=ea(59),fa=da(aa);aa=ea(60);var ja=da(aa);aa=ea(28);var ba=da(aa);ea=ea(61);aa=da(ea);var ha=[!1,"center","right","justify"],ca="#000000 #e60000 #ff9900 #ffff00 #008a00 #0066cc #9933ff #ffffff #facccc #ffebcc #ffffcc #cce8cc #cce0f5 #ebd6ff #bbbbbb #f06666 #ffc266 #ffff66 #66b966 #66a3e0 #c285ff #888888 #a10000 #b26b00 #b2b200 #006100 #0047b2 #6b24b2 #444444 #5c0000 #663d00 #666600 #003700 #002966 #3d1466".split(" "),la=[!1,"serif","monospace"],ua=
|
|
243
|
+
["1","2","3",!1],ma=["small",!1,"large","huge"];ea=function(oa){function ra(ta,qa){x(this,ra);var wa=r(this,(ra.__proto__||Object.getPrototypeOf(ra)).call(this,ta,qa));ta.emitter.listenDOM("click",document.body,function Na(Ga){if(!document.body.contains(ta.root))return document.body.removeEventListener("click",Na);null==wa.tooltip||wa.tooltip.root.contains(Ga.target)||document.activeElement===wa.tooltip.textbox||wa.quill.hasFocus()||wa.tooltip.hide();null!=wa.pickers&&wa.pickers.forEach(function(Ha){Ha.container.contains(Ga.target)||
|
|
244
|
+
Ha.close()})});return wa}n(ra,oa);b(ra,[{key:"addModule",value:function(ta){var qa=f(ra.prototype.__proto__||Object.getPrototypeOf(ra.prototype),"addModule",this).call(this,ta);"toolbar"===ta&&this.extendToolbar(qa);return qa}},{key:"buildButtons",value:function(ta,qa){ta.forEach(function(wa){(wa.getAttribute("class")||"").split(/\s+/).forEach(function(Aa){if(Aa.startsWith("ql-")&&(Aa=Aa.slice(3),null!=qa[Aa]))if("direction"===Aa)wa.innerHTML=qa[Aa][""]+qa[Aa].rtl;else if("string"===typeof qa[Aa])wa.innerHTML=
|
|
245
|
+
qa[Aa];else{var Ga=wa.value||"";null!=Ga&&qa[Aa][Ga]&&(wa.innerHTML=qa[Aa][Ga])}})})}},{key:"buildPickers",value:function(ta,qa){var wa=this;this.pickers=ta.map(function(Aa){if(Aa.classList.contains("ql-align"))return null==Aa.querySelector("option")&&a(Aa,ha),new ja.default(Aa,qa.align);if(Aa.classList.contains("ql-background")||Aa.classList.contains("ql-color")){var Ga=Aa.classList.contains("ql-background")?"background":"color";null==Aa.querySelector("option")&&a(Aa,ca,"background"===Ga?"#ffffff":
|
|
246
|
+
"#000000");return new fa.default(Aa,qa[Ga])}null==Aa.querySelector("option")&&(Aa.classList.contains("ql-font")?a(Aa,la):Aa.classList.contains("ql-header")?a(Aa,ua):Aa.classList.contains("ql-size")&&a(Aa,ma));return new ba.default(Aa)});this.quill.on(e.default.events.EDITOR_CHANGE,function(){wa.pickers.forEach(function(Aa){Aa.update()})})}}]);return ra}(h.default);ea.DEFAULTS=(0,ia.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},
|
|
247
|
+
image:function(){var oa=this,ra=this.container.querySelector("input.ql-image[type=file]");null==ra&&(ra=document.createElement("input"),ra.setAttribute("type","file"),ra.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),ra.classList.add("ql-image"),ra.addEventListener("change",function(){if(null!=ra.files&&null!=ra.files[0]){var ta=new FileReader;ta.onload=function(qa){var wa=oa.quill.getSelection(!0);oa.quill.updateContents((new y.default).retain(wa.index).delete(wa.length).insert({image:qa.target.result}),
|
|
248
|
+
e.default.sources.USER);oa.quill.setSelection(wa.index+1,e.default.sources.SILENT);ra.value=""};ta.readAsDataURL(ra.files[0])}}),this.container.appendChild(ra));ra.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});ia=function(oa){function ra(ta,qa){x(this,ra);ta=r(this,(ra.__proto__||Object.getPrototypeOf(ra)).call(this,ta,qa));ta.textbox=ta.root.querySelector('input[type="text"]');ta.listen();return ta}n(ra,oa);b(ra,[{key:"listen",value:function(){var ta=this;this.textbox.addEventListener("keydown",
|
|
249
|
+
function(qa){w.default.match(qa,"enter")?(ta.save(),qa.preventDefault()):w.default.match(qa,"escape")&&(ta.cancel(),qa.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var ta=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"link",qa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");null!=qa?this.textbox.value=qa:ta!==this.root.getAttribute("data-mode")&&(this.textbox.value=
|
|
250
|
+
"");this.position(this.quill.getBounds(this.quill.selection.savedRange));this.textbox.select();this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+ta)||"");this.root.setAttribute("data-mode",ta)}},{key:"restoreFocus",value:function(){var ta=this.quill.scrollingContainer.scrollTop;this.quill.focus();this.quill.scrollingContainer.scrollTop=ta}},{key:"save",value:function(){var ta=this.textbox.value;switch(this.root.getAttribute("data-mode")){case "link":var qa=this.quill.root.scrollTop;
|
|
251
|
+
this.linkRange?(this.quill.formatText(this.linkRange,"link",ta,e.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",ta,e.default.sources.USER));this.quill.root.scrollTop=qa;break;case "video":qa=ta;var wa=qa.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||qa.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);ta=wa?(wa[1]||"https")+"://www.youtube.com/embed/"+wa[2]+"?showinfo=0":(wa=qa.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?
|
|
252
|
+
(wa[1]||"https")+"://player.vimeo.com/video/"+wa[2]+"/":qa;case "formula":ta&&(qa=this.quill.getSelection(!0),null!=qa&&(qa=qa.index+qa.length,this.quill.insertEmbed(qa,this.root.getAttribute("data-mode"),ta,e.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(qa+1," ",e.default.sources.USER),this.quill.setSelection(qa+2,e.default.sources.USER)))}this.textbox.value="";this.hide()}}]);return ra}(aa.default);ka.BaseTooltip=ia;ka.default=ea},function(ia,ka){Object.defineProperty(ka,
|
|
253
|
+
"__esModule",{value:!0});ia=function(){function ea(){this.head=this.tail=null;this.length=0}ea.prototype.append=function(){for(var da=[],x=0;x<arguments.length;x++)da[x]=arguments[x];this.insertBefore(da[0],null);1<da.length&&this.append.apply(this,da.slice(1))};ea.prototype.contains=function(da){for(var x,r=this.iterator();x=r();)if(x===da)return!0;return!1};ea.prototype.insertBefore=function(da,x){da&&(da.next=x,null!=x?(da.prev=x.prev,null!=x.prev&&(x.prev.next=da),x.prev=da,x===this.head&&(this.head=
|
|
254
|
+
da)):null!=this.tail?(this.tail.next=da,da.prev=this.tail,this.tail=da):(da.prev=null,this.head=this.tail=da),this.length+=1)};ea.prototype.offset=function(da){for(var x=0,r=this.head;null!=r;){if(r===da)return x;x+=r.length();r=r.next}return-1};ea.prototype.remove=function(da){this.contains(da)&&(null!=da.prev&&(da.prev.next=da.next),null!=da.next&&(da.next.prev=da.prev),da===this.head&&(this.head=da.next),da===this.tail&&(this.tail=da.prev),--this.length)};ea.prototype.iterator=function(da){void 0===
|
|
255
|
+
da&&(da=this.head);return function(){var x=da;null!=da&&(da=da.next);return x}};ea.prototype.find=function(da,x){void 0===x&&(x=!1);for(var r,n=this.iterator();r=n();){var a=r.length();if(da<a||x&&da===a&&(null==r.next||0!==r.next.length()))return[r,da];da-=a}return[null,0]};ea.prototype.forEach=function(da){for(var x,r=this.iterator();x=r();)da(x)};ea.prototype.forEachAt=function(da,x,r){if(!(0>=x))for(var n=this.find(da),a=da-n[1],b=this.iterator(n[0]);(n=b())&&a<da+x;){var f=n.length();da>a?r(n,
|
|
256
|
+
da-a,Math.min(x,a+f-da)):r(n,0,Math.min(f,da+x-a));a+=f}};ea.prototype.map=function(da){return this.reduce(function(x,r){x.push(da(r));return x},[])};ea.prototype.reduce=function(da,x){for(var r,n=this.iterator();r=n();)x=da(x,r);return x};return ea}();ka.default=ia},function(ia,ka,ea){var da=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var h in f)f.hasOwnProperty(h)&&(b[h]=f[h])};return function(b,f){function h(){this.constructor=
|
|
257
|
+
b}a(b,f);b.prototype=null===f?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(ka,"__esModule",{value:!0});var x=ea(17),r=ea(1),n={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};ia=function(a){function b(f){var h=a.call(this,f)||this;h.scroll=h;h.observer=new MutationObserver(function(y){h.update(y)});h.observer.observe(h.domNode,n);h.attach();return h}da(b,a);b.prototype.detach=function(){a.prototype.detach.call(this);this.observer.disconnect()};
|
|
258
|
+
b.prototype.deleteAt=function(f,h){this.update();0===f&&h===this.length()?this.children.forEach(function(y){y.remove()}):a.prototype.deleteAt.call(this,f,h)};b.prototype.formatAt=function(f,h,y,e){this.update();a.prototype.formatAt.call(this,f,h,y,e)};b.prototype.insertAt=function(f,h,y){this.update();a.prototype.insertAt.call(this,f,h,y)};b.prototype.optimize=function(f,h){function y(ba){null!=ba.domNode[r.DATA_KEY]&&null!=ba.domNode[r.DATA_KEY].mutations&&(ba instanceof x.default&&ba.children.forEach(y),
|
|
259
|
+
ba.optimize(h))}function e(ba,ha){void 0===ha&&(ha=!0);null!=ba&&ba!==w&&null!=ba.domNode.parentNode&&(null==ba.domNode[r.DATA_KEY].mutations&&(ba.domNode[r.DATA_KEY].mutations=[]),ha&&e(ba.parent))}var w=this;void 0===f&&(f=[]);void 0===h&&(h={});a.prototype.optimize.call(this,h);for(var aa=[].slice.call(this.observer.takeRecords());0<aa.length;)f.push(aa.pop());for(var fa=f,ja=0;0<fa.length;ja+=1){if(100<=ja)throw Error("[Parchment] Maximum optimize iterations reached");fa.forEach(function(ba){var ha=
|
|
260
|
+
r.find(ba.target,!0);null!=ha&&(ha.domNode===ba.target&&("childList"===ba.type?(e(r.find(ba.previousSibling,!1)),[].forEach.call(ba.addedNodes,function(ca){ca=r.find(ca,!1);e(ca,!1);ca instanceof x.default&&ca.children.forEach(function(la){e(la,!1)})})):"attributes"===ba.type&&e(ha.prev)),e(ha))});this.children.forEach(y);fa=[].slice.call(this.observer.takeRecords());for(aa=fa.slice();0<aa.length;)f.push(aa.pop())}};b.prototype.update=function(f,h){var y=this;void 0===h&&(h={});f=f||this.observer.takeRecords();
|
|
261
|
+
f.map(function(e){var w=r.find(e.target,!0);if(null==w)return null;if(null==w.domNode[r.DATA_KEY].mutations)return w.domNode[r.DATA_KEY].mutations=[e],w;w.domNode[r.DATA_KEY].mutations.push(e);return null}).forEach(function(e){null!=e&&e!==y&&null!=e.domNode[r.DATA_KEY]&&e.update(e.domNode[r.DATA_KEY].mutations||[],h)});null!=this.domNode[r.DATA_KEY].mutations&&a.prototype.update.call(this,this.domNode[r.DATA_KEY].mutations,h);this.optimize(f,h)};b.blotName="scroll";b.defaultChild="block";b.scope=
|
|
262
|
+
r.Scope.BLOCK_BLOT;b.tagName="DIV";return b}(x.default);ka.default=ia},function(ia,ka,ea){var da=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f])};return function(a,b){function f(){this.constructor=a}n(a,b);a.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)}}();Object.defineProperty(ka,"__esModule",{value:!0});var x=ea(18),r=ea(1);ia=function(n){function a(){return null!==
|
|
263
|
+
n&&n.apply(this,arguments)||this}da(a,n);a.formats=function(b){if(b.tagName!==a.tagName)return n.formats.call(this,b)};a.prototype.format=function(b,f){var h=this;b!==this.statics.blotName||f?n.prototype.format.call(this,b,f):(this.children.forEach(function(y){y instanceof x.default||(y=y.wrap(a.blotName,!0));h.attributes.copy(y)}),this.unwrap())};a.prototype.formatAt=function(b,f,h,y){null!=this.formats()[h]||r.query(h,r.Scope.ATTRIBUTE)?this.isolate(b,f).format(h,y):n.prototype.formatAt.call(this,
|
|
264
|
+
b,f,h,y)};a.prototype.optimize=function(b){n.prototype.optimize.call(this,b);b=this.formats();if(0===Object.keys(b).length)return this.unwrap();var f=this.next,h;if(h=f instanceof a&&f.prev===this)a:if(h=f.formats(),Object.keys(b).length!==Object.keys(h).length)h=!1;else{for(var y in b)if(b[y]!==h[y]){h=!1;break a}h=!0}h&&(f.moveChildren(this),f.remove())};a.blotName="inline";a.scope=r.Scope.INLINE_BLOT;a.tagName="SPAN";return a}(x.default);ka.default=ia},function(ia,ka,ea){var da=this&&this.__extends||
|
|
265
|
+
function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var b in a)a.hasOwnProperty(b)&&(n[b]=a[b])};return function(n,a){function b(){this.constructor=n}r(n,a);n.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(ka,"__esModule",{value:!0});ia=ea(18);var x=ea(1);ea=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}da(n,r);n.formats=function(a){var b=x.query(n.blotName).tagName;
|
|
266
|
+
if(a.tagName!==b)return r.formats.call(this,a)};n.prototype.format=function(a,b){null!=x.query(a,x.Scope.BLOCK)&&(a!==this.statics.blotName||b?r.prototype.format.call(this,a,b):this.replaceWith(n.blotName))};n.prototype.formatAt=function(a,b,f,h){null!=x.query(f,x.Scope.BLOCK)?this.format(f,h):r.prototype.formatAt.call(this,a,b,f,h)};n.prototype.insertAt=function(a,b,f){null==f||null!=x.query(b,x.Scope.INLINE)?r.prototype.insertAt.call(this,a,b,f):(a=this.split(a),b=x.create(b,f),a.parent.insertBefore(b,
|
|
267
|
+
a))};n.prototype.update=function(a,b){navigator.userAgent.match(/Trident/)?this.build():r.prototype.update.call(this,a,b)};n.blotName="block";n.scope=x.Scope.BLOCK_BLOT;n.tagName="P";return n}(ia.default);ka.default=ea},function(ia,ka,ea){var da=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)n.hasOwnProperty(a)&&(r[a]=n[a])};return function(r,n){function a(){this.constructor=r}x(r,n);r.prototype=
|
|
268
|
+
null===n?Object.create(n):(a.prototype=n.prototype,new a)}}();Object.defineProperty(ka,"__esModule",{value:!0});ia=function(x){function r(){return null!==x&&x.apply(this,arguments)||this}da(r,x);r.formats=function(){};r.prototype.format=function(n,a){x.prototype.formatAt.call(this,0,this.length(),n,a)};r.prototype.formatAt=function(n,a,b,f){0===n&&a===this.length()?this.format(b,f):x.prototype.formatAt.call(this,n,a,b,f)};r.prototype.formats=function(){return this.statics.formats(this.domNode)};return r}(ea(19).default);
|
|
269
|
+
ka.default=ia},function(ia,ka,ea){var da=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var b in a)a.hasOwnProperty(b)&&(n[b]=a[b])};return function(n,a){function b(){this.constructor=n}r(n,a);n.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(ka,"__esModule",{value:!0});ia=ea(19);var x=ea(1);ea=function(r){function n(a){a=r.call(this,a)||this;a.text=a.statics.value(a.domNode);
|
|
270
|
+
return a}da(n,r);n.create=function(a){return document.createTextNode(a)};n.value=function(a){a=a.data;a.normalize&&(a=a.normalize());return a};n.prototype.deleteAt=function(a,b){this.domNode.data=this.text=this.text.slice(0,a)+this.text.slice(a+b)};n.prototype.index=function(a,b){return this.domNode===a?b:-1};n.prototype.insertAt=function(a,b,f){null==f?(this.text=this.text.slice(0,a)+b+this.text.slice(a),this.domNode.data=this.text):r.prototype.insertAt.call(this,a,b,f)};n.prototype.length=function(){return this.text.length};
|
|
271
|
+
n.prototype.optimize=function(a){r.prototype.optimize.call(this,a);this.text=this.statics.value(this.domNode);0===this.text.length?this.remove():this.next instanceof n&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())};n.prototype.position=function(a){return[this.domNode,a]};n.prototype.split=function(a,b){void 0===b&&(b=!1);if(!b){if(0===a)return this;if(a===this.length())return this.next}a=x.create(this.domNode.splitText(a));this.parent.insertBefore(a,this.next);
|
|
272
|
+
this.text=this.statics.value(this.domNode);return a};n.prototype.update=function(a){var b=this;a.some(function(f){return"characterData"===f.type&&f.target===b.domNode})&&(this.text=this.statics.value(this.domNode))};n.prototype.value=function(){return this.text};n.blotName="text";n.scope=x.Scope.INLINE_BLOT;return n}(ia.default);ka.default=ea},function(){var ia=document.createElement("div");ia.classList.toggle("test-class",!1);if(ia.classList.contains("test-class")){var ka=DOMTokenList.prototype.toggle;
|
|
273
|
+
DOMTokenList.prototype.toggle=function(ea,da){return 1<arguments.length&&!this.contains(ea)===!da?da:ka.call(this,ea)}}String.prototype.startsWith||(String.prototype.startsWith=function(ea,da){return this.substr(da||0,ea.length)===ea});String.prototype.endsWith||(String.prototype.endsWith=function(ea,da){var x=this.toString();if("number"!==typeof da||!isFinite(da)||Math.floor(da)!==da||da>x.length)da=x.length;da-=ea.length;ea=x.indexOf(ea,da);return-1!==ea&&ea===da});Array.prototype.find||Object.defineProperty(Array.prototype,
|
|
274
|
+
"find",{value:function(ea,da){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof ea)throw new TypeError("predicate must be a function");for(var x=Object(this),r=x.length>>>0,n,a=0;a<r;a++)if(n=x[a],ea.call(da,n,a,x))return n}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(ia){function ka(y,e,w){if(y==e)return y?[[0,y]]:[];
|
|
275
|
+
if(0>w||y.length<w)w=null;var aa=x(y,e),fa=y.substring(0,aa);y=y.substring(aa);e=e.substring(aa);aa=r(y,e);var ja=y.substring(y.length-aa);y=y.substring(0,y.length-aa);e=e.substring(0,e.length-aa);y=ea(y,e);fa&&y.unshift([0,fa]);ja&&y.push([0,ja]);a(y);null!=w&&(y=b(y,w));return y=f(y)}function ea(y,e){if(!y)return[[1,e]];if(!e)return[[-1,y]];var w=y.length>e.length?y:e;var aa=y.length>e.length?e:y,fa=w.indexOf(aa);if(-1!=fa)return w=[[1,w.substring(0,fa)],[0,aa],[1,w.substring(fa+aa.length)]],y.length>
|
|
276
|
+
e.length&&(w[0][0]=w[2][0]=-1),w;if(1==aa.length)return[[-1,y],[1,e]];if(w=n(y,e))return e=w[1],aa=w[3],y=w[4],w=ka(w[0],w[2]),e=ka(e,aa),w.concat([[0,y]],e);a:{w=y.length;aa=e.length;fa=Math.ceil((w+aa)/2);for(var ja=2*fa,ba=Array(ja),ha=Array(ja),ca=0;ca<ja;ca++)ba[ca]=-1,ha[ca]=-1;ba[fa+1]=0;ha[fa+1]=0;ca=w-aa;for(var la=0!=ca%2,ua=0,ma=0,sa=0,oa=0,ra=0;ra<fa;ra++){for(var ta=-ra+ua;ta<=ra-ma;ta+=2){var qa=fa+ta;var wa=ta==-ra||ta!=ra&&ba[qa-1]<ba[qa+1]?ba[qa+1]:ba[qa-1]+1;for(var Aa=wa-ta;wa<
|
|
277
|
+
w&&Aa<aa&&y.charAt(wa)==e.charAt(Aa);)wa++,Aa++;ba[qa]=wa;if(wa>w)ma+=2;else if(Aa>aa)ua+=2;else if(la&&(qa=fa+ca-ta,0<=qa&&qa<ja&&-1!=ha[qa])){var Ga=w-ha[qa];if(wa>=Ga){y=da(y,e,wa,Aa);break a}}}for(ta=-ra+sa;ta<=ra-oa;ta+=2){qa=fa+ta;Ga=ta==-ra||ta!=ra&&ha[qa-1]<ha[qa+1]?ha[qa+1]:ha[qa-1]+1;for(wa=Ga-ta;Ga<w&&wa<aa&&y.charAt(w-Ga-1)==e.charAt(aa-wa-1);)Ga++,wa++;ha[qa]=Ga;if(Ga>w)oa+=2;else if(wa>aa)sa+=2;else if(!la&&(qa=fa+ca-ta,0<=qa&&qa<ja&&-1!=ba[qa]&&(wa=ba[qa],Aa=fa+wa-qa,Ga=w-Ga,wa>=Ga))){y=
|
|
278
|
+
da(y,e,wa,Aa);break a}}}y=[[-1,y],[1,e]]}return y}function da(y,e,w,aa){var fa=y.substring(w),ja=e.substring(aa);y=ka(y.substring(0,w),e.substring(0,aa));fa=ka(fa,ja);return y.concat(fa)}function x(y,e){if(!y||!e||y.charAt(0)!=e.charAt(0))return 0;for(var w=0,aa=Math.min(y.length,e.length),fa=aa,ja=0;w<fa;)y.substring(ja,fa)==e.substring(ja,fa)?ja=w=fa:aa=fa,fa=Math.floor((aa-w)/2+w);return fa}function r(y,e){if(!y||!e||y.charAt(y.length-1)!=e.charAt(e.length-1))return 0;for(var w=0,aa=Math.min(y.length,
|
|
279
|
+
e.length),fa=aa,ja=0;w<fa;)y.substring(y.length-fa,y.length-ja)==e.substring(e.length-fa,e.length-ja)?ja=w=fa:aa=fa,fa=Math.floor((aa-w)/2+w);return fa}function n(y,e){function w(ba,ha,ca){for(var la=ba.substring(ca,ca+Math.floor(ba.length/4)),ua=-1,ma="",sa,oa,ra,ta;-1!=(ua=ha.indexOf(la,ua+1));){var qa=x(ba.substring(ca),ha.substring(ua)),wa=r(ba.substring(0,ca),ha.substring(0,ua));ma.length<wa+qa&&(ma=ha.substring(ua-wa,ua)+ha.substring(ua,ua+qa),sa=ba.substring(0,ca-wa),oa=ba.substring(ca+qa),
|
|
280
|
+
ra=ha.substring(0,ua-wa),ta=ha.substring(ua+qa))}return 2*ma.length>=ba.length?[sa,oa,ra,ta,ma]:null}var aa=y.length>e.length?y:e,fa=y.length>e.length?e:y;if(4>aa.length||2*fa.length<aa.length)return null;var ja=w(aa,fa,Math.ceil(aa.length/4));aa=w(aa,fa,Math.ceil(aa.length/2));if(ja||aa)ja=aa?ja?ja[4].length>aa[4].length?ja:aa:aa:ja;else return null;y.length>e.length?(y=ja[0],e=ja[1],aa=ja[2],fa=ja[3]):(aa=ja[0],fa=ja[1],y=ja[2],e=ja[3]);return[y,e,aa,fa,ja[4]]}function a(y){y.push([0,""]);for(var e=
|
|
281
|
+
0,w=0,aa=0,fa="",ja="",ba;e<y.length;)switch(y[e][0]){case 1:aa++;ja+=y[e][1];e++;break;case -1:w++;fa+=y[e][1];e++;break;case 0:1<w+aa?(0!==w&&0!==aa&&(ba=x(ja,fa),0!==ba&&(0<e-w-aa&&0==y[e-w-aa-1][0]?y[e-w-aa-1][1]+=ja.substring(0,ba):(y.splice(0,0,[0,ja.substring(0,ba)]),e++),ja=ja.substring(ba),fa=fa.substring(ba)),ba=r(ja,fa),0!==ba&&(y[e][1]=ja.substring(ja.length-ba)+y[e][1],ja=ja.substring(0,ja.length-ba),fa=fa.substring(0,fa.length-ba))),0===w?y.splice(e-aa,w+aa,[1,ja]):0===aa?y.splice(e-
|
|
282
|
+
w,w+aa,[-1,fa]):y.splice(e-w-aa,w+aa,[-1,fa],[1,ja]),e=e-w-aa+(w?1:0)+(aa?1:0)+1):0!==e&&0==y[e-1][0]?(y[e-1][1]+=y[e][1],y.splice(e,1)):e++,w=aa=0,ja=fa=""}""===y[y.length-1][1]&&y.pop();w=!1;for(e=1;e<y.length-1;)0==y[e-1][0]&&0==y[e+1][0]&&(y[e][1].substring(y[e][1].length-y[e-1][1].length)==y[e-1][1]?(y[e][1]=y[e-1][1]+y[e][1].substring(0,y[e][1].length-y[e-1][1].length),y[e+1][1]=y[e-1][1]+y[e+1][1],y.splice(e-1,1),w=!0):y[e][1].substring(0,y[e+1][1].length)==y[e+1][1]&&(y[e-1][1]+=y[e+1][1],
|
|
283
|
+
y[e][1]=y[e][1].substring(y[e+1][1].length)+y[e+1][1],y.splice(e+1,1),w=!0)),e++;w&&a(y)}function b(y,e){a:{var w=y;if(0===e)var aa=[0,w];else{var fa=0;for(aa=0;aa<w.length;aa++){var ja=w[aa];if(-1===ja[0]||0===ja[0]){var ba=fa+ja[1].length;if(e===ba){aa=[aa+1,w];break a}if(e<ba){w=w.slice();fa=e-fa;e=[ja[0],ja[1].slice(0,fa)];ja=[ja[0],ja[1].slice(fa)];w.splice(aa,1,e,ja);aa=[aa+1,w];break a}fa=ba}}throw Error("cursor_pos is out of bounds!");}}w=aa[1];aa=aa[0];e=w[aa];ja=w[aa+1];return null==e||
|
|
284
|
+
0!==e[0]?y:null!=ja&&e[1]+ja[1]===ja[1]+e[1]?(w.splice(aa,2,ja,e),h(w,aa,2)):null!=ja&&0===ja[1].indexOf(e[1])?(w.splice(aa,2,[ja[0],e[1]],[0,e[1]]),y=ja[1].slice(e[1].length),0<y.length&&w.splice(aa+2,0,[ja[0],y]),h(w,aa,3)):y}function f(y){function e(ja){return 55296<=ja.charCodeAt(ja.length-1)&&56319>=ja.charCodeAt(ja.length-1)}function w(ja){return 56320<=ja.charCodeAt(0)&&57343>=ja.charCodeAt(0)}for(var aa=!1,fa=2;fa<y.length;fa+=1)0===y[fa-2][0]&&e(y[fa-2][1])&&-1===y[fa-1][0]&&w(y[fa-1][1])&&
|
|
285
|
+
1===y[fa][0]&&w(y[fa][1])&&(aa=!0,y[fa-1][1]=y[fa-2][1].slice(-1)+y[fa-1][1],y[fa][1]=y[fa-2][1].slice(-1)+y[fa][1],y[fa-2][1]=y[fa-2][1].slice(0,-1));if(!aa)return y;aa=[];for(fa=0;fa<y.length;fa+=1)0<y[fa][1].length&&aa.push(y[fa]);return aa}function h(y,e,w){for(w=e+w-1;0<=w&&w>=e-1;w--)if(w+1<y.length){var aa=y[w],fa=y[w+1];aa[0]===fa[1]&&y.splice(w,2,[aa[0],aa[1]+fa[1]])}return y}ka.INSERT=1;ka.DELETE=-1;ka.EQUAL=0;ia.exports=ka},function(ia,ka){function ea(da){var x=[],r;for(r in da)x.push(r);
|
|
286
|
+
return x}ka=ia.exports="function"===typeof Object.keys?Object.keys:ea;ka.shim=ea},function(ia,ka){function ea(x){return"[object Arguments]"==Object.prototype.toString.call(x)}function da(x){return x&&"object"==typeof x&&"number"==typeof x.length&&Object.prototype.hasOwnProperty.call(x,"callee")&&!Object.prototype.propertyIsEnumerable.call(x,"callee")||!1}ka="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();ka=ia.exports=ka?ea:da;ka.supported=ea;ka.unsupported=da},
|
|
287
|
+
function(ia){function ka(){}function ea(n,a,b){this.fn=n;this.context=a;this.once=b||!1}function da(){this._events=new ka;this._eventsCount=0}var x=Object.prototype.hasOwnProperty,r="~";Object.create&&(ka.prototype=Object.create(null),(new ka).__proto__||(r=!1));da.prototype.eventNames=function(){var n=[],a,b;if(0===this._eventsCount)return n;for(b in a=this._events)x.call(a,b)&&n.push(r?b.slice(1):b);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(a)):n};da.prototype.listeners=
|
|
288
|
+
function(n,a){n=this._events[r?r+n:n];if(a)return!!n;if(!n)return[];if(n.fn)return[n.fn];a=0;for(var b=n.length,f=Array(b);a<b;a++)f[a]=n[a].fn;return f};da.prototype.emit=function(n,a,b,f,h,y){var e=r?r+n:n;if(!this._events[e])return!1;e=this._events[e];var w=arguments.length,aa;if(e.fn){e.once&&this.removeListener(n,e.fn,void 0,!0);switch(w){case 1:return e.fn.call(e.context),!0;case 2:return e.fn.call(e.context,a),!0;case 3:return e.fn.call(e.context,a,b),!0;case 4:return e.fn.call(e.context,a,
|
|
289
|
+
b,f),!0;case 5:return e.fn.call(e.context,a,b,f,h),!0;case 6:return e.fn.call(e.context,a,b,f,h,y),!0}var fa=1;for(aa=Array(w-1);fa<w;fa++)aa[fa-1]=arguments[fa];e.fn.apply(e.context,aa)}else{var ja=e.length;for(fa=0;fa<ja;fa++)switch(e[fa].once&&this.removeListener(n,e[fa].fn,void 0,!0),w){case 1:e[fa].fn.call(e[fa].context);break;case 2:e[fa].fn.call(e[fa].context,a);break;case 3:e[fa].fn.call(e[fa].context,a,b);break;case 4:e[fa].fn.call(e[fa].context,a,b,f);break;default:if(!aa){var ba=1;for(aa=
|
|
290
|
+
Array(w-1);ba<w;ba++)aa[ba-1]=arguments[ba]}e[fa].fn.apply(e[fa].context,aa)}}return!0};da.prototype.on=function(n,a,b){a=new ea(a,b||this);n=r?r+n:n;this._events[n]?this._events[n].fn?this._events[n]=[this._events[n],a]:this._events[n].push(a):(this._events[n]=a,this._eventsCount++);return this};da.prototype.once=function(n,a,b){a=new ea(a,b||this,!0);n=r?r+n:n;this._events[n]?this._events[n].fn?this._events[n]=[this._events[n],a]:this._events[n].push(a):(this._events[n]=a,this._eventsCount++);return this};
|
|
291
|
+
da.prototype.removeListener=function(n,a,b,f){n=r?r+n:n;if(!this._events[n])return this;if(!a)return 0===--this._eventsCount?this._events=new ka:delete this._events[n],this;var h=this._events[n];if(h.fn)h.fn!==a||f&&!h.once||b&&h.context!==b||(0===--this._eventsCount?this._events=new ka:delete this._events[n]);else{for(var y=0,e=[],w=h.length;y<w;y++)(h[y].fn!==a||f&&!h[y].once||b&&h[y].context!==b)&&e.push(h[y]);e.length?this._events[n]=1===e.length?e[0]:e:0===--this._eventsCount?this._events=new ka:
|
|
292
|
+
delete this._events[n]}return this};da.prototype.removeAllListeners=function(n){n?(n=r?r+n:n,this._events[n]&&(0===--this._eventsCount?this._events=new ka:delete this._events[n])):(this._events=new ka,this._eventsCount=0);return this};da.prototype.off=da.prototype.removeListener;da.prototype.addListener=da.prototype.on;da.prototype.setMaxListeners=function(){return this};da.prefixed=r;da.EventEmitter=da;"undefined"!==typeof ia&&(ia.exports=da)},function(ia,ka,ea){function da(Ka){return Ka&&Ka.__esModule?
|
|
293
|
+
Ka:{default:Ka}}function x(Ka,Ia,va){Ia in Ka?Object.defineProperty(Ka,Ia,{value:va,enumerable:!0,configurable:!0,writable:!0}):Ka[Ia]=va;return Ka}function r(Ka,Ia){if(!Ka)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Ia||"object"!==typeof Ia&&"function"!==typeof Ia?Ka:Ia}function n(Ka,Ia){if("function"!==typeof Ia&&null!==Ia)throw new TypeError("Super expression must either be null or a function, not "+typeof Ia);Ka.prototype=Object.create(Ia&&Ia.prototype,
|
|
294
|
+
{constructor:{value:Ka,enumerable:!1,writable:!0,configurable:!0}});Ia&&(Object.setPrototypeOf?Object.setPrototypeOf(Ka,Ia):Ka.__proto__=Ia)}function a(Ka,Ia,va){return"object"===("undefined"===typeof Ia?"undefined":ha(Ia))?Object.keys(Ia).reduce(function(Fa,Pa){return a(Fa,Pa,Ia[Pa])},Ka):Ka.reduce(function(Fa,Pa){return Pa.attributes&&Pa.attributes[Ia]?Fa.push(Pa):Fa.insert(Pa.insert,(0,ua.default)({},x({},Ia,va),Pa.attributes))},new ma.default)}function b(Ka){return Ka.nodeType!==Node.ELEMENT_NODE?
|
|
295
|
+
{}:Ka["__ql-computed-style"]||(Ka["__ql-computed-style"]=window.getComputedStyle(Ka))}function f(Ka,Ia){for(var va="",Fa=Ka.ops.length-1;0<=Fa&&va.length<Ia.length;--Fa){var Pa=Ka.ops[Fa];if("string"!==typeof Pa.insert)break;va=Pa.insert+va}return va.slice(-1*Ia.length)===Ia}function h(Ka){if(0===Ka.childNodes.length)return!1;Ka=b(Ka);return-1<["block","list-item"].indexOf(Ka.display)}function y(Ka,Ia,va){return Ka.nodeType===Ka.TEXT_NODE?va.reduce(function(Fa,Pa){return Pa(Ka,Fa)},new ma.default):
|
|
296
|
+
Ka.nodeType===Ka.ELEMENT_NODE?[].reduce.call(Ka.childNodes||[],function(Fa,Pa){var Ma=y(Pa,Ia,va);Pa.nodeType===Ka.ELEMENT_NODE&&(Ma=Ia.reduce(function(Ua,Wa){return Wa(Pa,Ua)},Ma),Ma=(Pa["__ql-matcher"]||[]).reduce(function(Ua,Wa){return Wa(Pa,Ua)},Ma));return Fa.concat(Ma)},new ma.default):new ma.default}function e(Ka,Ia,va){return a(va,Ka,!0)}function w(Ka,Ia){var va=sa.default.Attributor.Attribute.keys(Ka),Fa=sa.default.Attributor.Class.keys(Ka),Pa=sa.default.Attributor.Style.keys(Ka),Ma={};va.concat(Fa).concat(Pa).forEach(function(Ua){var Wa=
|
|
297
|
+
sa.default.query(Ua,sa.default.Scope.ATTRIBUTE);if(null!=Wa&&(Ma[Wa.attrName]=Wa.value(Ka),Ma[Wa.attrName]))return;Wa=Ra[Ua];null==Wa||Wa.attrName!==Ua&&Wa.keyName!==Ua||(Ma[Wa.attrName]=Wa.value(Ka)||void 0);Wa=Ca[Ua];null==Wa||Wa.attrName!==Ua&&Wa.keyName!==Ua||(Wa=Ca[Ua],Ma[Wa.attrName]=Wa.value(Ka)||void 0)});0<Object.keys(Ma).length&&(Ia=a(Ia,Ma));return Ia}function aa(Ka,Ia){var va=sa.default.query(Ka);if(null==va)return Ia;if(va.prototype instanceof sa.default.Embed){var Fa={},Pa=va.value(Ka);
|
|
298
|
+
null!=Pa&&(Fa[va.blotName]=Pa,Ia=(new ma.default).insert(Fa,va.formats(Ka)))}else"function"===typeof va.formats&&(Ia=a(Ia,va.blotName,va.formats(Ka)));return Ia}function fa(Ka,Ia){f(Ia,"\n")||(h(Ka)||0<Ia.length()&&Ka.nextSibling&&h(Ka.nextSibling))&&Ia.insert("\n");return Ia}function ja(Ka,Ia){if(h(Ka)&&null!=Ka.nextElementSibling&&!f(Ia,"\n\n")){var va=Ka.offsetHeight+parseFloat(b(Ka).marginTop)+parseFloat(b(Ka).marginBottom);Ka.nextElementSibling.offsetTop>Ka.offsetTop+1.5*va&&Ia.insert("\n")}return Ia}
|
|
299
|
+
function ba(Ka,Ia){var va=Ka.data;if("O:P"===Ka.parentNode.tagName)return Ia.insert(va.trim());if(0===va.trim().length&&Ka.parentNode.classList.contains("ql-clipboard"))return Ia;if(!b(Ka.parentNode).whiteSpace.startsWith("pre")){var Fa=function(Pa,Ma){Ma=Ma.replace(/[^\u00a0]/g,"");return 1>Ma.length&&Pa?" ":Ma};va=va.replace(/\r\n/g," ").replace(/\n/g," ");va=va.replace(/\s\s+/g,Fa.bind(Fa,!0));if(null==Ka.previousSibling&&h(Ka.parentNode)||null!=Ka.previousSibling&&h(Ka.previousSibling))va=va.replace(/^\s+/,
|
|
300
|
+
Fa.bind(Fa,!1));if(null==Ka.nextSibling&&h(Ka.parentNode)||null!=Ka.nextSibling&&h(Ka.nextSibling))va=va.replace(/\s+$/,Fa.bind(Fa,!1))}return Ia.insert(va)}Object.defineProperty(ka,"__esModule",{value:!0});ka.matchText=ka.matchSpacing=ka.matchNewline=ka.matchBlot=ka.matchAttributor=ka.default=void 0;var ha="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(Ka){return typeof Ka}:function(Ka){return Ka&&"function"===typeof Symbol&&Ka.constructor===Symbol&&Ka!==Symbol.prototype?
|
|
301
|
+
"symbol":typeof Ka},ca=function(){return function(Ka,Ia){if(Array.isArray(Ka))return Ka;if(Symbol.iterator in Object(Ka)){var va=[],Fa=!0,Pa=!1,Ma=void 0;try{for(var Ua=Ka[Symbol.iterator](),Wa;!(Fa=(Wa=Ua.next()).done)&&(va.push(Wa.value),!Ia||va.length!==Ia);Fa=!0);}catch(bb){Pa=!0,Ma=bb}finally{try{if(!Fa&&Ua["return"])Ua["return"]()}finally{if(Pa)throw Ma;}}return va}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),la=function(){function Ka(Ia,va){for(var Fa=0;Fa<
|
|
302
|
+
va.length;Fa++){var Pa=va[Fa];Pa.enumerable=Pa.enumerable||!1;Pa.configurable=!0;"value"in Pa&&(Pa.writable=!0);Object.defineProperty(Ia,Pa.key,Pa)}}return function(Ia,va,Fa){va&&Ka(Ia.prototype,va);Fa&&Ka(Ia,Fa);return Ia}}();ia=ea(3);var ua=da(ia);ia=ea(2);var ma=da(ia);ia=ea(0);var sa=da(ia);ia=ea(5);var oa=da(ia);ia=ea(10);ia=da(ia);var ra=ea(9);ra=da(ra);var ta=ea(36),qa=ea(37),wa=ea(13),Aa=da(wa);wa=ea(26);var Ga=ea(38),Na=ea(39);ea=ea(40);var Ha=(0,ia.default)("quill:clipboard"),Qa=[[Node.TEXT_NODE,
|
|
303
|
+
ba],[Node.TEXT_NODE,fa],["br",function(Ka,Ia){f(Ia,"\n")||Ia.insert("\n");return Ia}],[Node.ELEMENT_NODE,fa],[Node.ELEMENT_NODE,aa],[Node.ELEMENT_NODE,ja],[Node.ELEMENT_NODE,w],[Node.ELEMENT_NODE,function(Ka,Ia){var va={},Fa=Ka.style||{};Fa.fontStyle&&"italic"===b(Ka).fontStyle&&(va.italic=!0);Fa.fontWeight&&(b(Ka).fontWeight.startsWith("bold")||700<=parseInt(b(Ka).fontWeight))&&(va.bold=!0);0<Object.keys(va).length&&(Ia=a(Ia,va));0<parseFloat(Fa.textIndent||0)&&(Ia=(new ma.default).insert("\t").concat(Ia));
|
|
304
|
+
return Ia}],["li",function(Ka,Ia){var va=sa.default.query(Ka);if(null==va||"list-item"!==va.blotName||!f(Ia,"\n"))return Ia;va=-1;for(Ka=Ka.parentNode;!Ka.classList.contains("ql-clipboard");)"list"===(sa.default.query(Ka)||{}).blotName&&(va+=1),Ka=Ka.parentNode;return 0>=va?Ia:Ia.compose((new ma.default).retain(Ia.length()-1).retain(1,{indent:va}))}],["b",e.bind(e,"bold")],["i",e.bind(e,"italic")],["style",function(){return new ma.default}]],Ra=[ta.AlignAttribute,Ga.DirectionAttribute].reduce(function(Ka,
|
|
305
|
+
Ia){Ka[Ia.keyName]=Ia;return Ka},{}),Ca=[ta.AlignStyle,qa.BackgroundStyle,wa.ColorStyle,Ga.DirectionStyle,Na.FontStyle,ea.SizeStyle].reduce(function(Ka,Ia){Ka[Ia.keyName]=Ia;return Ka},{});ea=function(Ka){function Ia(va,Fa){if(!(this instanceof Ia))throw new TypeError("Cannot call a class as a function");var Pa=r(this,(Ia.__proto__||Object.getPrototypeOf(Ia)).call(this,va,Fa));Pa.quill.root.addEventListener("paste",Pa.onPaste.bind(Pa));Pa.container=Pa.quill.addContainer("ql-clipboard");Pa.container.setAttribute("contenteditable",
|
|
306
|
+
!0);Pa.container.setAttribute("tabindex",-1);Pa.matchers=[];Qa.concat(Pa.options.matchers).forEach(function(Ma){Ma=ca(Ma,2);var Ua=Ma[1];(Fa.matchVisual||Ua!==ja)&&Pa.addMatcher(Ma[0],Ua)});return Pa}n(Ia,Ka);la(Ia,[{key:"addMatcher",value:function(va,Fa){this.matchers.push([va,Fa])}},{key:"convert",value:function(va){if("string"===typeof va)return this.container.innerHTML=va.replace(/>\r?\n +</g,"><"),this.convert();va=this.quill.getFormat(this.quill.selection.savedRange.index);if(va[Aa.default.blotName]){var Fa=
|
|
307
|
+
this.container.innerText;this.container.innerHTML="";return(new ma.default).insert(Fa,x({},Aa.default.blotName,va[Aa.default.blotName]))}va=this.prepareMatching();va=ca(va,2);va=y(this.container,va[0],va[1]);f(va,"\n")&&null==va.ops[va.ops.length-1].attributes&&(va=va.compose((new ma.default).retain(va.length()-1).delete(1)));Ha.log("convert",this.container.innerHTML,va);this.container.innerHTML="";return va}},{key:"dangerouslyPasteHTML",value:function(va,Fa){var Pa=2<arguments.length&&void 0!==arguments[2]?
|
|
308
|
+
arguments[2]:oa.default.sources.API;if("string"===typeof va)this.quill.setContents(this.convert(va),Fa),this.quill.setSelection(0,oa.default.sources.SILENT);else{var Ma=this.convert(Fa);this.quill.updateContents((new ma.default).retain(va).concat(Ma),Pa);this.quill.setSelection(va+Ma.length(),oa.default.sources.SILENT)}}},{key:"onPaste",value:function(va){var Fa=this;if(!va.defaultPrevented&&this.quill.isEnabled()){var Pa=this.quill.getSelection(),Ma=(new ma.default).retain(Pa.index),Ua=this.quill.scrollingContainer.scrollTop;
|
|
309
|
+
this.container.focus();this.quill.selection.update(oa.default.sources.SILENT);setTimeout(function(){Ma=Ma.concat(Fa.convert()).delete(Pa.length);Fa.quill.updateContents(Ma,oa.default.sources.USER);Fa.quill.setSelection(Ma.length()-Pa.length,oa.default.sources.SILENT);Fa.quill.scrollingContainer.scrollTop=Ua;Fa.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var va=this,Fa=[],Pa=[];this.matchers.forEach(function(Ma){Ma=ca(Ma,2);var Ua=Ma[0],Wa=Ma[1];switch(Ua){case Node.TEXT_NODE:Pa.push(Wa);
|
|
310
|
+
break;case Node.ELEMENT_NODE:Fa.push(Wa);break;default:[].forEach.call(va.container.querySelectorAll(Ua),function(bb){bb["__ql-matcher"]=bb["__ql-matcher"]||[];bb["__ql-matcher"].push(Wa)})}});return[Fa,Pa]}}]);return Ia}(ra.default);ea.DEFAULTS={matchers:[],matchVisual:!0};ka.default=ea;ka.matchAttributor=w;ka.matchBlot=aa;ka.matchNewline=fa;ka.matchSpacing=ja;ka.matchText=ba},function(ia,ka,ea){function da(n,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+
|
|
311
|
+
typeof a);n.prototype=Object.create(a&&a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(n,a):n.__proto__=a)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){function n(a,b){for(var f=0;f<b.length;f++){var h=b[f];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(a,h.key,h)}}return function(a,b,f){b&&n(a.prototype,b);f&&n(a,f);return a}}(),r=function h(a,b,
|
|
312
|
+
f){null===a&&(a=Function.prototype);var y=Object.getOwnPropertyDescriptor(a,b);if(void 0===y){if(a=Object.getPrototypeOf(a),null!==a)return h(a,b,f)}else{if("value"in y)return y.value;b=y.get;return void 0===b?void 0:b.call(f)}};ia=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var f=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
313
|
+
return!f||"object"!==typeof f&&"function"!==typeof f?this:f}da(b,a);x(b,[{key:"optimize",value:function(f){r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,f);this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]);return b}(function(a){return a&&a.__esModule?a:{default:a}}(ea(6)).default);
|
|
314
|
+
ia.blotName="bold";ia.tagName=["STRONG","B"];ka.default=ia},function(ia,ka,ea){function da(fa){return fa&&fa.__esModule?fa:{default:fa}}function x(fa,ja){if(!fa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ja||"object"!==typeof ja&&"function"!==typeof ja?fa:ja}function r(fa,ja){if("function"!==typeof ja&&null!==ja)throw new TypeError("Super expression must either be null or a function, not "+typeof ja);fa.prototype=Object.create(ja&&ja.prototype,{constructor:{value:fa,
|
|
315
|
+
enumerable:!1,writable:!0,configurable:!0}});ja&&(Object.setPrototypeOf?Object.setPrototypeOf(fa,ja):fa.__proto__=ja)}function n(fa,ja,ba){var ha=document.createElement("button");ha.setAttribute("type","button");ha.classList.add("ql-"+ja);null!=ba&&(ha.value=ba);fa.appendChild(ha)}function a(fa,ja){Array.isArray(ja[0])||(ja=[ja]);ja.forEach(function(ba){var ha=document.createElement("span");ha.classList.add("ql-formats");ba.forEach(function(ca){if("string"===typeof ca)n(ha,ca);else{var la=Object.keys(ca)[0];
|
|
316
|
+
ca=ca[la];Array.isArray(ca)?b(ha,la,ca):n(ha,la,ca)}});fa.appendChild(ha)})}function b(fa,ja,ba){var ha=document.createElement("select");ha.classList.add("ql-"+ja);ba.forEach(function(ca){var la=document.createElement("option");!1!==ca?la.setAttribute("value",ca):la.setAttribute("selected","selected");ha.appendChild(la)});fa.appendChild(ha)}Object.defineProperty(ka,"__esModule",{value:!0});ka.addControls=ka.default=void 0;var f=function(){return function(fa,ja){if(Array.isArray(fa))return fa;if(Symbol.iterator in
|
|
317
|
+
Object(fa)){var ba=[],ha=!0,ca=!1,la=void 0;try{for(var ua=fa[Symbol.iterator](),ma;!(ha=(ma=ua.next()).done)&&(ba.push(ma.value),!ja||ba.length!==ja);ha=!0);}catch(sa){ca=!0,la=sa}finally{try{if(!ha&&ua["return"])ua["return"]()}finally{if(ca)throw la;}}return ba}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),h=function(){function fa(ja,ba){for(var ha=0;ha<ba.length;ha++){var ca=ba[ha];ca.enumerable=ca.enumerable||!1;ca.configurable=!0;"value"in ca&&(ca.writable=
|
|
318
|
+
!0);Object.defineProperty(ja,ca.key,ca)}}return function(ja,ba,ha){ba&&fa(ja.prototype,ba);ha&&fa(ja,ha);return ja}}();ia=ea(2);var y=da(ia);ia=ea(0);var e=da(ia);ia=ea(5);var w=da(ia);ia=ea(10);ia=da(ia);ea=ea(9);ea=da(ea);var aa=(0,ia.default)("quill:toolbar");ea=function(fa){function ja(ba,ha){if(!(this instanceof ja))throw new TypeError("Cannot call a class as a function");var ca=x(this,(ja.__proto__||Object.getPrototypeOf(ja)).call(this,ba,ha));Array.isArray(ca.options.container)?(ha=document.createElement("div"),
|
|
319
|
+
a(ha,ca.options.container),ba.container.parentNode.insertBefore(ha,ba.container),ca.container=ha):ca.container="string"===typeof ca.options.container?document.querySelector(ca.options.container):ca.options.container;if(!(ca.container instanceof HTMLElement)){var la;return la=aa.error("Container required for toolbar",ca.options),x(ca,la)}ca.container.classList.add("ql-toolbar");ca.controls=[];ca.handlers={};Object.keys(ca.options.handlers).forEach(function(ua){ca.addHandler(ua,ca.options.handlers[ua])});
|
|
320
|
+
[].forEach.call(ca.container.querySelectorAll("button, select"),function(ua){ca.attach(ua)});ca.quill.on(w.default.events.EDITOR_CHANGE,function(ua,ma){ua===w.default.events.SELECTION_CHANGE&&ca.update(ma)});ca.quill.on(w.default.events.SCROLL_OPTIMIZE,function(){var ua=ca.quill.selection.getRange();ua=f(ua,1)[0];ca.update(ua)});return ca}r(ja,fa);h(ja,[{key:"addHandler",value:function(ba,ha){this.handlers[ba]=ha}},{key:"attach",value:function(ba){var ha=this,ca=[].find.call(ba.classList,function(la){return 0===
|
|
321
|
+
la.indexOf("ql-")});if(ca){ca=ca.slice(3);"BUTTON"===ba.tagName&&ba.setAttribute("type","button");if(null==this.handlers[ca]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[ca]){aa.warn("ignoring attaching to disabled format",ca,ba);return}if(null==e.default.query(ca)){aa.warn("ignoring attaching to nonexistent format",ca,ba);return}}ba.addEventListener("SELECT"===ba.tagName?"change":"click",function(la){if("SELECT"===ba.tagName){if(0>ba.selectedIndex)return;var ua=ba.options[ba.selectedIndex];
|
|
322
|
+
ua=ua.hasAttribute("selected")?!1:ua.value||!1}else ua=ba.classList.contains("ql-active")?!1:ba.value||!ba.hasAttribute("value"),la.preventDefault();ha.quill.focus();la=ha.quill.selection.getRange();la=f(la,1)[0];if(null!=ha.handlers[ca])ha.handlers[ca].call(ha,ua);else if(e.default.query(ca).prototype instanceof e.default.Embed){ua=prompt("Enter "+ca);if(!ua)return;var ma=ha.quill,sa=ma.updateContents,oa=(new y.default).retain(la.index).delete(la.length),ra=oa.insert,ta={},qa=ca;qa in ta?Object.defineProperty(ta,
|
|
323
|
+
qa,{value:ua,enumerable:!0,configurable:!0,writable:!0}):ta[qa]=ua;sa.call(ma,ra.call(oa,ta),w.default.sources.USER)}else ha.quill.format(ca,ua,w.default.sources.USER);ha.update(la)});this.controls.push([ca,ba])}}},{key:"update",value:function(ba){var ha=null==ba?{}:this.quill.getFormat(ba);this.controls.forEach(function(ca){ca=f(ca,2);var la=ca[0];ca=ca[1];if("SELECT"===ca.tagName){var ua=void 0;null==ba?ua=null:null==ha[la]?ua=ca.querySelector("option[selected]"):Array.isArray(ha[la])||(la=ha[la],
|
|
324
|
+
"string"===typeof la&&(la=la.replace(/"/g,'\\"')),ua=ca.querySelector('option[value="'+la+'"]'));null==ua?(ca.value="",ca.selectedIndex=-1):ua.selected=!0}else null==ba?ca.classList.remove("ql-active"):ca.hasAttribute("value")?(la=ha[la]===ca.getAttribute("value")||null!=ha[la]&&ha[la].toString()===ca.getAttribute("value")||null==ha[la]&&!ca.getAttribute("value"),ca.classList.toggle("ql-active",la)):ca.classList.toggle("ql-active",null!=ha[la])})}}]);return ja}(ea.default);ea.DEFAULTS={};ea.DEFAULTS=
|
|
325
|
+
{container:null,handlers:{clean:function(){var fa=this,ja=this.quill.getSelection();null!=ja&&(0==ja.length?(ja=this.quill.getFormat(),Object.keys(ja).forEach(function(ba){null!=e.default.query(ba,e.default.Scope.INLINE)&&fa.quill.format(ba,!1)})):this.quill.removeFormat(ja,w.default.sources.USER))},direction:function(fa){var ja=this.quill.getFormat().align;"rtl"===fa&&null==ja?this.quill.format("align","right",w.default.sources.USER):fa||"right"!==ja||this.quill.format("align",!1,w.default.sources.USER);
|
|
326
|
+
this.quill.format("direction",fa,w.default.sources.USER)},indent:function(fa){var ja=this.quill.getFormat(this.quill.getSelection()),ba=parseInt(ja.indent||0);if("+1"===fa||"-1"===fa)fa="+1"===fa?1:-1,"rtl"===ja.direction&&(fa*=-1),this.quill.format("indent",ba+fa,w.default.sources.USER)},link:function(fa){!0===fa&&(fa=prompt("Enter link URL:"));this.quill.format("link",fa,w.default.sources.USER)},list:function(fa){var ja=this.quill.getFormat(this.quill.getSelection());"check"===fa?"checked"===ja.list||
|
|
327
|
+
"unchecked"===ja.list?this.quill.format("list",!1,w.default.sources.USER):this.quill.format("list","unchecked",w.default.sources.USER):this.quill.format("list",fa,w.default.sources.USER)}}};ka.default=ea;ka.addControls=a},function(ia){ia.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(ia,ka,ea){function da(a,
|
|
328
|
+
b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function x(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(ka,"__esModule",
|
|
329
|
+
{value:!0});var r=function(){function a(b,f){for(var h=0;h<f.length;h++){var y=f[h];y.enumerable=y.enumerable||!1;y.configurable=!0;"value"in y&&(y.writable=!0);Object.defineProperty(b,y.key,y)}}return function(b,f,h){f&&a(b.prototype,f);h&&a(b,h);return b}}(),n=function y(b,f,h){null===b&&(b=Function.prototype);var e=Object.getOwnPropertyDescriptor(b,f);if(void 0===e){if(b=Object.getPrototypeOf(b),null!==b)return y(b,f,h)}else{if("value"in e)return e.value;f=e.get;return void 0===f?void 0:f.call(h)}};
|
|
330
|
+
ia=function(b){function f(h,y){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");h=da(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,h));h.label.innerHTML=y;h.container.classList.add("ql-color-picker");[].slice.call(h.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(e){e.classList.add("ql-primary")});return h}x(f,b);r(f,[{key:"buildItem",value:function(h){var y=n(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"buildItem",this).call(this,
|
|
331
|
+
h);y.style.backgroundColor=h.getAttribute("value")||"";return y}},{key:"selectItem",value:function(h,y){n(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"selectItem",this).call(this,h,y);y=this.label.querySelector(".ql-color-label");h=h?h.getAttribute("data-value")||"":"";y&&("line"===y.tagName?y.style.stroke=h:y.style.fill=h)}}]);return f}(function(b){return b&&b.__esModule?b:{default:b}}(ea(28)).default);ka.default=ia},function(ia,ka,ea){function da(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
332
|
+
return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function x(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(ka,"__esModule",{value:!0});var r=function(){function a(b,f){for(var h=0;h<f.length;h++){var y=f[h];y.enumerable=
|
|
333
|
+
y.enumerable||!1;y.configurable=!0;"value"in y&&(y.writable=!0);Object.defineProperty(b,y.key,y)}}return function(b,f,h){f&&a(b.prototype,f);h&&a(b,h);return b}}(),n=function y(b,f,h){null===b&&(b=Function.prototype);var e=Object.getOwnPropertyDescriptor(b,f);if(void 0===e){if(b=Object.getPrototypeOf(b),null!==b)return y(b,f,h)}else{if("value"in e)return e.value;f=e.get;return void 0===f?void 0:f.call(h)}};ia=function(b){function f(h,y){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");
|
|
334
|
+
h=da(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,h));h.container.classList.add("ql-icon-picker");[].forEach.call(h.container.querySelectorAll(".ql-picker-item"),function(e){e.innerHTML=y[e.getAttribute("data-value")||""]});h.defaultItem=h.container.querySelector(".ql-selected");h.selectItem(h.defaultItem);return h}x(f,b);r(f,[{key:"selectItem",value:function(h,y){n(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"selectItem",this).call(this,h,y);h=h||this.defaultItem;this.label.innerHTML=
|
|
335
|
+
h.innerHTML}}]);return f}(function(b){return b&&b.__esModule?b:{default:b}}(ea(28)).default);ka.default=ia},function(ia,ka){Object.defineProperty(ka,"__esModule",{value:!0});var ea=function(){function da(x,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);Object.defineProperty(x,a.key,a)}}return function(x,r,n){r&&da(x.prototype,r);n&&da(x,n);return x}}();ia=function(){function da(x,r){var n=this;if(!(this instanceof da))throw new TypeError("Cannot call a class as a function");
|
|
336
|
+
this.quill=x;this.boundsContainer=r||document.body;this.root=x.addContainer("ql-tooltip");this.root.innerHTML=this.constructor.TEMPLATE;this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"});this.hide()}ea(da,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(x){var r=x.left+x.width/2-this.root.offsetWidth/2,n=x.bottom+this.quill.root.scrollTop;this.root.style.left=
|
|
337
|
+
r+"px";this.root.style.top=n+"px";this.root.classList.remove("ql-flip");var a=this.boundsContainer.getBoundingClientRect(),b=this.root.getBoundingClientRect(),f=0;b.right>a.right&&(f=a.right-b.right,this.root.style.left=r+f+"px");b.left<a.left&&(f=a.left-b.left,this.root.style.left=r+f+"px");b.bottom>a.bottom&&(this.root.style.top=n-(x.bottom-x.top+(b.bottom-b.top))+"px",this.root.classList.add("ql-flip"));return f}},{key:"show",value:function(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}]);
|
|
338
|
+
return da}();ka.default=ia},function(ia,ka,ea){function da(ca){return ca&&ca.__esModule?ca:{default:ca}}function x(ca,la){if(!(ca instanceof la))throw new TypeError("Cannot call a class as a function");}function r(ca,la){if(!ca)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!la||"object"!==typeof la&&"function"!==typeof la?ca:la}function n(ca,la){if("function"!==typeof la&&null!==la)throw new TypeError("Super expression must either be null or a function, not "+
|
|
339
|
+
typeof la);ca.prototype=Object.create(la&&la.prototype,{constructor:{value:ca,enumerable:!1,writable:!0,configurable:!0}});la&&(Object.setPrototypeOf?Object.setPrototypeOf(ca,la):ca.__proto__=la)}Object.defineProperty(ka,"__esModule",{value:!0});var a=function(){return function(ca,la){if(Array.isArray(ca))return ca;if(Symbol.iterator in Object(ca)){var ua=[],ma=!0,sa=!1,oa=void 0;try{for(var ra=ca[Symbol.iterator](),ta;!(ma=(ta=ra.next()).done)&&(ua.push(ta.value),!la||ua.length!==la);ma=!0);}catch(qa){sa=
|
|
340
|
+
!0,oa=qa}finally{try{if(!ma&&ra["return"])ra["return"]()}finally{if(sa)throw oa;}}return ua}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function sa(la,ua,ma){null===la&&(la=Function.prototype);var oa=Object.getOwnPropertyDescriptor(la,ua);if(void 0===oa){if(la=Object.getPrototypeOf(la),null!==la)return sa(la,ua,ma)}else{if("value"in oa)return oa.value;ua=oa.get;return void 0===ua?void 0:ua.call(ma)}},f=function(){function la(ua,ma){for(var sa=0;sa<ma.length;sa++){var oa=
|
|
341
|
+
ma[sa];oa.enumerable=oa.enumerable||!1;oa.configurable=!0;"value"in oa&&(oa.writable=!0);Object.defineProperty(ua,oa.key,oa)}}return function(ua,ma,sa){ma&&la(ua.prototype,ma);sa&&la(ua,sa);return ua}}();ia=ea(3);ia=da(ia);var h=ea(8),y=da(h);h=ea(43);var e=da(h),w=ea(27),aa=da(w),fa=ea(15);ea=ea(41);var ja=da(ea),ba=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];ea=function(la){function ua(ma,sa){x(this,ua);null!=sa.modules.toolbar&&
|
|
342
|
+
null==sa.modules.toolbar.container&&(sa.modules.toolbar.container=ba);ma=r(this,(ua.__proto__||Object.getPrototypeOf(ua)).call(this,ma,sa));ma.quill.container.classList.add("ql-snow");return ma}n(ua,la);f(ua,[{key:"extendToolbar",value:function(ma){ma.container.classList.add("ql-snow");this.buildButtons([].slice.call(ma.container.querySelectorAll("button")),ja.default);this.buildPickers([].slice.call(ma.container.querySelectorAll("select")),ja.default);this.tooltip=new ha(this.quill,this.options.bounds);
|
|
343
|
+
ma.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(sa,oa){ma.handlers.link.call(ma,!oa.format.link)})}}]);return ua}(e.default);ea.DEFAULTS=(0,ia.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(la){la?(la=this.quill.getSelection(),null!=la&&0!=la.length&&(la=this.quill.getText(la),/^\S+@\S+\.\S+$/.test(la)&&0!==la.indexOf("mailto:")&&(la="mailto:"+la),this.quill.theme.tooltip.edit("link",la))):this.quill.format("link",
|
|
344
|
+
!1)}}}}});var ha=function(la){function ua(ma,sa){x(this,ua);ma=r(this,(ua.__proto__||Object.getPrototypeOf(ua)).call(this,ma,sa));ma.preview=ma.root.querySelector("a.ql-preview");return ma}n(ua,la);f(ua,[{key:"listen",value:function(){var ma=this;b(ua.prototype.__proto__||Object.getPrototypeOf(ua.prototype),"listen",this).call(this);this.root.querySelector("a.ql-action").addEventListener("click",function(sa){ma.root.classList.contains("ql-editing")?ma.save():ma.edit("link",ma.preview.textContent);
|
|
345
|
+
sa.preventDefault()});this.root.querySelector("a.ql-remove").addEventListener("click",function(sa){if(null!=ma.linkRange){var oa=ma.linkRange;ma.restoreFocus();ma.quill.formatText(oa,"link",!1,y.default.sources.USER);delete ma.linkRange}sa.preventDefault();ma.hide()});this.quill.on(y.default.events.SELECTION_CHANGE,function(sa,oa,ra){if(null!=sa){if(0===sa.length&&ra===y.default.sources.USER){if(oa=ma.quill.scroll.descendant(aa.default,sa.index),ra=a(oa,2),oa=ra[0],ra=ra[1],null!=oa){ma.linkRange=
|
|
346
|
+
new fa.Range(sa.index-ra,oa.length());sa=aa.default.formats(oa.domNode);ma.preview.textContent=sa;ma.preview.setAttribute("href",sa);ma.show();ma.position(ma.quill.getBounds(ma.linkRange));return}}else delete ma.linkRange;ma.hide()}})}},{key:"show",value:function(){b(ua.prototype.__proto__||Object.getPrototypeOf(ua.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return ua}(h.BaseTooltip);ha.TEMPLATE='<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-action"></a><a class="ql-remove"></a>';
|
|
347
|
+
ka.default=ea},function(ia,ka,ea){function da(Ra){return Ra&&Ra.__esModule?Ra:{default:Ra}}Object.defineProperty(ka,"__esModule",{value:!0});ia=ea(29);ia=da(ia);var x=ea(36),r=ea(38),n=ea(64),a=ea(65);a=da(a);var b=ea(66);b=da(b);var f=ea(67),h=da(f),y=ea(37),e=ea(26),w=ea(39),aa=ea(40),fa=ea(56);fa=da(fa);var ja=ea(68);ja=da(ja);var ba=ea(27);ba=da(ba);var ha=ea(69);ha=da(ha);var ca=ea(70);ca=da(ca);var la=ea(71);la=da(la);var ua=ea(72);ua=da(ua);var ma=ea(73);ma=da(ma);var sa=ea(13),oa=da(sa),ra=
|
|
348
|
+
ea(74);ra=da(ra);var ta=ea(75);ta=da(ta);var qa=ea(57);qa=da(qa);var wa=ea(41);wa=da(wa);var Aa=ea(28);Aa=da(Aa);var Ga=ea(59);Ga=da(Ga);var Na=ea(60);Na=da(Na);var Ha=ea(61);Ha=da(Ha);var Qa=ea(108);Qa=da(Qa);ea=ea(62);ea=da(ea);ia.default.register({"attributors/attribute/direction":r.DirectionAttribute,"attributors/class/align":x.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":e.ColorClass,"attributors/class/direction":r.DirectionClass,"attributors/class/font":w.FontClass,
|
|
349
|
+
"attributors/class/size":aa.SizeClass,"attributors/style/align":x.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":e.ColorStyle,"attributors/style/direction":r.DirectionStyle,"attributors/style/font":w.FontStyle,"attributors/style/size":aa.SizeStyle},!0);ia.default.register({"formats/align":x.AlignClass,"formats/direction":r.DirectionClass,"formats/indent":n.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":e.ColorStyle,"formats/font":w.FontClass,
|
|
350
|
+
"formats/size":aa.SizeClass,"formats/blockquote":a.default,"formats/code-block":oa.default,"formats/header":b.default,"formats/list":h.default,"formats/bold":fa.default,"formats/code":sa.Code,"formats/italic":ja.default,"formats/link":ba.default,"formats/script":ha.default,"formats/strike":ca.default,"formats/underline":la.default,"formats/image":ua.default,"formats/video":ma.default,"formats/list/item":f.ListItem,"modules/formula":ra.default,"modules/syntax":ta.default,"modules/toolbar":qa.default,
|
|
351
|
+
"themes/bubble":Qa.default,"themes/snow":ea.default,"ui/icons":wa.default,"ui/picker":Aa.default,"ui/icon-picker":Na.default,"ui/color-picker":Ga.default,"ui/tooltip":Ha.default},!0);ka.default=ia.default},function(ia,ka,ea){function da(n,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);n.prototype=Object.create(a&&a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(n,
|
|
352
|
+
a):n.__proto__=a)}Object.defineProperty(ka,"__esModule",{value:!0});ka.IndentClass=void 0;var x=function(){function n(a,b){for(var f=0;f<b.length;f++){var h=b[f];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(a,h.key,h)}}return function(a,b,f){b&&n(a.prototype,b);f&&n(a,f);return a}}(),r=function h(a,b,f){null===a&&(a=Function.prototype);var y=Object.getOwnPropertyDescriptor(a,b);if(void 0===y){if(a=Object.getPrototypeOf(a),null!==a)return h(a,b,
|
|
353
|
+
f)}else{if("value"in y)return y.value;b=y.get;return void 0===b?void 0:b.call(f)}};ia=function(a){return a&&a.__esModule?a:{default:a}}(ea(0));ia=new (function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var f=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?this:f}da(b,a);x(b,[{key:"add",
|
|
354
|
+
value:function(f,h){if("+1"===h||"-1"===h){var y=this.value(f)||0;h="+1"===h?y+1:y-1}return 0===h?(this.remove(f),!0):r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,f,h)}},{key:"canAdd",value:function(f,h){return r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,f,h)||r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,f,parseInt(h))}},{key:"value",value:function(f){return parseInt(r(b.prototype.__proto__||
|
|
355
|
+
Object.getPrototypeOf(b.prototype),"value",this).call(this,f))||void 0}}]);return b}(ia.default.Attributor.Class))("indent","ql-indent",{scope:ia.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});ka.IndentClass=ia},function(ia,ka,ea){function da(x,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);x.prototype=Object.create(r&&r.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?
|
|
356
|
+
Object.setPrototypeOf(x,r):x.__proto__=r)}Object.defineProperty(ka,"__esModule",{value:!0});ia=function(x){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var n=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?this:n}da(r,x);return r}(function(x){return x&&x.__esModule?x:{default:x}}(ea(4)).default);
|
|
357
|
+
ia.blotName="blockquote";ia.tagName="blockquote";ka.default=ia},function(ia,ka,ea){function da(r,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){function r(n,a){for(var b=0;b<a.length;b++){var f=
|
|
358
|
+
a[b];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(n,f.key,f)}}return function(n,a,b){a&&r(n.prototype,a);b&&r(n,b);return n}}();ia=function(r){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var a=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?
|
|
359
|
+
this:a}da(n,r);x(n,null,[{key:"formats",value:function(a){return this.tagName.indexOf(a.tagName)+1}}]);return n}(function(r){return r&&r.__esModule?r:{default:r}}(ea(4)).default);ia.blotName="header";ia.tagName="H1 H2 H3 H4 H5 H6".split(" ");ka.default=ia},function(ia,ka,ea){function da(e){return e&&e.__esModule?e:{default:e}}function x(e,w){if(!(e instanceof w))throw new TypeError("Cannot call a class as a function");}function r(e,w){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
360
|
+
return!w||"object"!==typeof w&&"function"!==typeof w?e:w}function n(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);e.prototype=Object.create(w&&w.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=w)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.ListItem=void 0;var a=function(){function e(w,aa){for(var fa=0;fa<
|
|
361
|
+
aa.length;fa++){var ja=aa[fa];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(w,ja.key,ja)}}return function(w,aa,fa){aa&&e(w.prototype,aa);fa&&e(w,fa);return w}}(),b=function ja(w,aa,fa){null===w&&(w=Function.prototype);var ba=Object.getOwnPropertyDescriptor(w,aa);if(void 0===ba){if(w=Object.getPrototypeOf(w),null!==w)return ja(w,aa,fa)}else{if("value"in ba)return ba.value;aa=ba.get;return void 0===aa?void 0:aa.call(fa)}};ia=ea(0);var f=da(ia);
|
|
362
|
+
ia=ea(4);ia=da(ia);ea=ea(25);ea=da(ea);var h=function(w){function aa(){x(this,aa);return r(this,(aa.__proto__||Object.getPrototypeOf(aa)).apply(this,arguments))}n(aa,w);a(aa,[{key:"format",value:function(fa,ja){fa!==y.blotName||ja?b(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"format",this).call(this,fa,ja):this.replaceWith(f.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():b(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),
|
|
363
|
+
"remove",this).call(this)}},{key:"replaceWith",value:function(fa,ja){this.parent.isolate(this.offset(this.parent),this.length());if(fa===this.parent.statics.blotName)return this.parent.replaceWith(fa,ja),this;this.parent.unwrap();return b(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"replaceWith",this).call(this,fa,ja)}}],[{key:"formats",value:function(fa){return fa.tagName===this.tagName?void 0:b(aa.__proto__||Object.getPrototypeOf(aa),"formats",this).call(this,fa)}}]);return aa}(ia.default);
|
|
364
|
+
h.blotName="list-item";h.tagName="LI";var y=function(w){function aa(fa){function ja(ha){if(ha.target.parentNode===fa){var ca=ba.statics.formats(fa);ha=f.default.find(ha.target);"checked"===ca?ha.format("list","unchecked"):"unchecked"===ca&&ha.format("list","checked")}}x(this,aa);var ba=r(this,(aa.__proto__||Object.getPrototypeOf(aa)).call(this,fa));fa.addEventListener("touchstart",ja);fa.addEventListener("mousedown",ja);return ba}n(aa,w);a(aa,null,[{key:"create",value:function(fa){var ja="ordered"===
|
|
365
|
+
fa?"OL":"UL";ja=b(aa.__proto__||Object.getPrototypeOf(aa),"create",this).call(this,ja);"checked"!==fa&&"unchecked"!==fa||ja.setAttribute("data-checked","checked"===fa);return ja}},{key:"formats",value:function(fa){if("OL"===fa.tagName)return"ordered";if("UL"===fa.tagName)return fa.hasAttribute("data-checked")?"true"===fa.getAttribute("data-checked")?"checked":"unchecked":"bullet"}}]);a(aa,[{key:"format",value:function(fa,ja){0<this.children.length&&this.children.tail.format(fa,ja)}},{key:"formats",
|
|
366
|
+
value:function(){var fa={},ja=this.statics.blotName,ba=this.statics.formats(this.domNode);ja in fa?Object.defineProperty(fa,ja,{value:ba,enumerable:!0,configurable:!0,writable:!0}):fa[ja]=ba;return fa}},{key:"insertBefore",value:function(fa,ja){fa instanceof h?b(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"insertBefore",this).call(this,fa,ja):(ja=null==ja?this.length():ja.offset(this),ja=this.split(ja),ja.parent.insertBefore(fa,ja))}},{key:"optimize",value:function(fa){b(aa.prototype.__proto__||
|
|
367
|
+
Object.getPrototypeOf(aa.prototype),"optimize",this).call(this,fa);fa=this.next;null!=fa&&fa.prev===this&&fa.statics.blotName===this.statics.blotName&&fa.domNode.tagName===this.domNode.tagName&&fa.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(fa.moveChildren(this),fa.remove())}},{key:"replace",value:function(fa){if(fa.statics.blotName!==this.statics.blotName){var ja=f.default.create(this.statics.defaultChild);fa.moveChildren(ja);this.appendChild(ja)}b(aa.prototype.__proto__||
|
|
368
|
+
Object.getPrototypeOf(aa.prototype),"replace",this).call(this,fa)}}]);return aa}(ea.default);y.blotName="list";y.scope=f.default.Scope.BLOCK_BLOT;y.tagName=["OL","UL"];y.defaultChild="list-item";y.allowedChildren=[h];ka.ListItem=h;ka.default=y},function(ia,ka,ea){function da(x,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);x.prototype=Object.create(r&&r.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});
|
|
369
|
+
r&&(Object.setPrototypeOf?Object.setPrototypeOf(x,r):x.__proto__=r)}Object.defineProperty(ka,"__esModule",{value:!0});ia=function(x){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var n=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?this:n}da(r,x);return r}(function(x){return x&&x.__esModule?
|
|
370
|
+
x:{default:x}}(ea(56)).default);ia.blotName="italic";ia.tagName=["EM","I"];ka.default=ia},function(ia,ka,ea){function da(n,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);n.prototype=Object.create(a&&a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(n,a):n.__proto__=a)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){function n(a,
|
|
371
|
+
b){for(var f=0;f<b.length;f++){var h=b[f];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(a,h.key,h)}}return function(a,b,f){b&&n(a.prototype,b);f&&n(a,f);return a}}(),r=function h(a,b,f){null===a&&(a=Function.prototype);var y=Object.getOwnPropertyDescriptor(a,b);if(void 0===y){if(a=Object.getPrototypeOf(a),null!==a)return h(a,b,f)}else{if("value"in y)return y.value;b=y.get;return void 0===b?void 0:b.call(f)}};ia=function(a){function b(){if(!(this instanceof
|
|
372
|
+
b))throw new TypeError("Cannot call a class as a function");var f=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?this:f}da(b,a);x(b,null,[{key:"create",value:function(f){return"super"===f?document.createElement("sup"):"sub"===f?document.createElement("sub"):r(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,f)}},{key:"formats",
|
|
373
|
+
value:function(f){if("SUB"===f.tagName)return"sub";if("SUP"===f.tagName)return"super"}}]);return b}(function(a){return a&&a.__esModule?a:{default:a}}(ea(6)).default);ia.blotName="script";ia.tagName=["SUB","SUP"];ka.default=ia},function(ia,ka,ea){function da(x,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);x.prototype=Object.create(r&&r.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?
|
|
374
|
+
Object.setPrototypeOf(x,r):x.__proto__=r)}Object.defineProperty(ka,"__esModule",{value:!0});ia=function(x){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var n=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?this:n}da(r,x);return r}(function(x){return x&&x.__esModule?x:{default:x}}(ea(6)).default);
|
|
375
|
+
ia.blotName="strike";ia.tagName="S";ka.default=ia},function(ia,ka,ea){function da(x,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);x.prototype=Object.create(r&&r.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(x,r):x.__proto__=r)}Object.defineProperty(ka,"__esModule",{value:!0});ia=function(x){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");
|
|
376
|
+
var n=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?this:n}da(r,x);return r}(function(x){return x&&x.__esModule?x:{default:x}}(ea(6)).default);ia.blotName="underline";ia.tagName="U";ka.default=ia},function(ia,ka,ea){function da(b,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+
|
|
377
|
+
typeof f);b.prototype=Object.create(f&&f.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(b,f):b.__proto__=f)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){function b(f,h){for(var y=0;y<h.length;y++){var e=h[y];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(f,e.key,e)}}return function(f,h,y){h&&b(f.prototype,h);y&&b(f,y);return f}}(),r=function e(f,h,
|
|
378
|
+
y){null===f&&(f=Function.prototype);var w=Object.getOwnPropertyDescriptor(f,h);if(void 0===w){if(f=Object.getPrototypeOf(f),null!==f)return e(f,h,y)}else{if("value"in w)return w.value;h=w.get;return void 0===h?void 0:h.call(y)}};ia=function(f){return f&&f.__esModule?f:{default:f}}(ea(0));var n=ea(27),a=["alt","height","width"];ea=function(f){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var y=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);
|
|
379
|
+
if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}da(h,f);x(h,[{key:"format",value:function(y,e){-1<a.indexOf(y)?e?this.domNode.setAttribute(y,e):this.domNode.removeAttribute(y):r(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,y,e)}}],[{key:"create",value:function(y){var e=r(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,y);"string"===typeof y&&
|
|
380
|
+
e.setAttribute("src",this.sanitize(y));return e}},{key:"formats",value:function(y){return a.reduce(function(e,w){y.hasAttribute(w)&&(e[w]=y.getAttribute(w));return e},{})}},{key:"match",value:function(y){return/\.(jpe?g|gif|png)$/.test(y)||/^data:image\/.+;base64/.test(y)}},{key:"sanitize",value:function(y){return(0,n.sanitize)(y,["http","https","data"])?y:"//:0"}},{key:"value",value:function(y){return y.getAttribute("src")}}]);return h}(ia.default.Embed);ea.blotName="image";ea.tagName="IMG";ka.default=
|
|
381
|
+
ea},function(ia,ka,ea){function da(b,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);b.prototype=Object.create(f&&f.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(b,f):b.__proto__=f)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){function b(f,h){for(var y=0;y<h.length;y++){var e=h[y];e.enumerable=e.enumerable||!1;e.configurable=
|
|
382
|
+
!0;"value"in e&&(e.writable=!0);Object.defineProperty(f,e.key,e)}}return function(f,h,y){h&&b(f.prototype,h);y&&b(f,y);return f}}(),r=function e(f,h,y){null===f&&(f=Function.prototype);var w=Object.getOwnPropertyDescriptor(f,h);if(void 0===w){if(f=Object.getPrototypeOf(f),null!==f)return e(f,h,y)}else{if("value"in w)return w.value;h=w.get;return void 0===h?void 0:h.call(y)}};ia=ea(4);var n=function(f){return f&&f.__esModule?f:{default:f}}(ea(27)),a=["height","width"];ea=function(f){function h(){if(!(this instanceof
|
|
383
|
+
h))throw new TypeError("Cannot call a class as a function");var y=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}da(h,f);x(h,[{key:"format",value:function(y,e){-1<a.indexOf(y)?e?this.domNode.setAttribute(y,e):this.domNode.removeAttribute(y):r(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,y,e)}}],
|
|
384
|
+
[{key:"create",value:function(y){var e=r(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,y);e.setAttribute("frameborder","0");e.setAttribute("allowfullscreen",!0);e.setAttribute("src",this.sanitize(y));return e}},{key:"formats",value:function(y){return a.reduce(function(e,w){y.hasAttribute(w)&&(e[w]=y.getAttribute(w));return e},{})}},{key:"sanitize",value:function(y){return n.default.sanitize(y)}},{key:"value",value:function(y){return y.getAttribute("src")}}]);return h}(ia.BlockEmbed);
|
|
385
|
+
ea.blotName="video";ea.className="ql-video";ea.tagName="IFRAME";ka.default=ea},function(ia,ka,ea){function da(e){return e&&e.__esModule?e:{default:e}}function x(e,w){if(!(e instanceof w))throw new TypeError("Cannot call a class as a function");}function r(e,w){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!==typeof w&&"function"!==typeof w?e:w}function n(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+
|
|
386
|
+
typeof w);e.prototype=Object.create(w&&w.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=w)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.FormulaBlot=void 0;var a=function(){function e(w,aa){for(var fa=0;fa<aa.length;fa++){var ja=aa[fa];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(w,ja.key,ja)}}return function(w,aa,fa){aa&&e(w.prototype,
|
|
387
|
+
aa);fa&&e(w,fa);return w}}(),b=function ja(w,aa,fa){null===w&&(w=Function.prototype);var ba=Object.getOwnPropertyDescriptor(w,aa);if(void 0===ba){if(w=Object.getPrototypeOf(w),null!==w)return ja(w,aa,fa)}else{if("value"in ba)return ba.value;aa=ba.get;return void 0===aa?void 0:aa.call(fa)}};ia=ea(35);ia=da(ia);var f=ea(5),h=da(f);ea=ea(9);ea=da(ea);var y=function(w){function aa(){x(this,aa);return r(this,(aa.__proto__||Object.getPrototypeOf(aa)).apply(this,arguments))}n(aa,w);a(aa,null,[{key:"create",
|
|
388
|
+
value:function(fa){var ja=b(aa.__proto__||Object.getPrototypeOf(aa),"create",this).call(this,fa);"string"===typeof fa&&(window.katex.render(fa,ja,{throwOnError:!1,errorColor:"#f00"}),ja.setAttribute("data-value",fa));return ja}},{key:"value",value:function(fa){return fa.getAttribute("data-value")}}]);return aa}(ia.default);y.blotName="formula";y.className="ql-formula";y.tagName="SPAN";ea=function(w){function aa(){x(this,aa);var fa=r(this,(aa.__proto__||Object.getPrototypeOf(aa)).call(this));if(null==
|
|
389
|
+
window.katex)throw Error("Formula module requires KaTeX.");return fa}n(aa,w);a(aa,null,[{key:"register",value:function(){h.default.register(y,!0)}}]);return aa}(ea.default);ka.FormulaBlot=y;ka.default=ea},function(ia,ka,ea){function da(w){return w&&w.__esModule?w:{default:w}}function x(w,aa){if(!(w instanceof aa))throw new TypeError("Cannot call a class as a function");}function r(w,aa){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!aa||"object"!==
|
|
390
|
+
typeof aa&&"function"!==typeof aa?w:aa}function n(w,aa){if("function"!==typeof aa&&null!==aa)throw new TypeError("Super expression must either be null or a function, not "+typeof aa);w.prototype=Object.create(aa&&aa.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}});aa&&(Object.setPrototypeOf?Object.setPrototypeOf(w,aa):w.__proto__=aa)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.CodeToken=ka.CodeBlock=void 0;var a=function(){function w(aa,fa){for(var ja=
|
|
391
|
+
0;ja<fa.length;ja++){var ba=fa[ja];ba.enumerable=ba.enumerable||!1;ba.configurable=!0;"value"in ba&&(ba.writable=!0);Object.defineProperty(aa,ba.key,ba)}}return function(aa,fa,ja){fa&&w(aa.prototype,fa);ja&&w(aa,ja);return aa}}(),b=function ba(aa,fa,ja){null===aa&&(aa=Function.prototype);var ha=Object.getOwnPropertyDescriptor(aa,fa);if(void 0===ha){if(aa=Object.getPrototypeOf(aa),null!==aa)return ba(aa,fa,ja)}else{if("value"in ha)return ha.value;fa=ha.get;return void 0===fa?void 0:fa.call(ja)}};ia=
|
|
392
|
+
ea(0);ia=da(ia);var f=ea(5),h=da(f);f=ea(9);f=da(f);ea=ea(13);var y=function(aa){function fa(){x(this,fa);return r(this,(fa.__proto__||Object.getPrototypeOf(fa)).apply(this,arguments))}n(fa,aa);a(fa,[{key:"replaceWith",value:function(ja){this.domNode.textContent=this.domNode.textContent;this.attach();b(fa.prototype.__proto__||Object.getPrototypeOf(fa.prototype),"replaceWith",this).call(this,ja)}},{key:"highlight",value:function(ja){var ba=this.domNode.textContent;if(this.cachedText!==ba){if(0<ba.trim().length||
|
|
393
|
+
null==this.cachedText)this.domNode.innerHTML=ja(ba),this.domNode.normalize(),this.attach();this.cachedText=ba}}}]);return fa}(da(ea).default);y.className="ql-syntax";var e=new ia.default.Attributor.Class("token","hljs",{scope:ia.default.Scope.INLINE});ea=function(aa){function fa(ja,ba){x(this,fa);var ha=r(this,(fa.__proto__||Object.getPrototypeOf(fa)).call(this,ja,ba));if("function"!==typeof ha.options.highlight)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");
|
|
394
|
+
var ca=null;ha.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(ca);ca=setTimeout(function(){ha.highlight();ca=null},ha.options.interval)});ha.highlight();return ha}n(fa,aa);a(fa,null,[{key:"register",value:function(){h.default.register(e,!0);h.default.register(y,!0)}}]);a(fa,[{key:"highlight",value:function(){var ja=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var ba=this.quill.getSelection();this.quill.scroll.descendants(y).forEach(function(ha){ha.highlight(ja.options.highlight)});
|
|
395
|
+
this.quill.update(h.default.sources.SILENT);null!=ba&&this.quill.setSelection(ba,h.default.sources.SILENT)}}}]);return fa}(f.default);ea.DEFAULTS={highlight:function(){return null==window.hljs?null:function(aa){return window.hljs.highlightAuto(aa).value}}(),interval:1E3};ka.CodeBlock=y;ka.CodeToken=e;ka.default=ea},function(ia){ia.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},
|
|
396
|
+
function(ia){ia.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(ia){ia.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(ia){ia.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},
|
|
397
|
+
function(ia){ia.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},
|
|
398
|
+
function(ia){ia.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(ia){ia.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},
|
|
399
|
+
function(ia){ia.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(ia){ia.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},
|
|
400
|
+
function(ia){ia.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(ia){ia.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},
|
|
401
|
+
function(ia){ia.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(ia){ia.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},
|
|
402
|
+
function(ia){ia.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(ia){ia.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},
|
|
403
|
+
function(ia){ia.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},
|
|
404
|
+
function(ia){ia.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},
|
|
405
|
+
function(ia){ia.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},
|
|
406
|
+
function(ia){ia.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(ia){ia.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(ia){ia.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},
|
|
407
|
+
function(ia){ia.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(ia){ia.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},
|
|
408
|
+
function(ia){ia.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},
|
|
409
|
+
function(ia){ia.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(ia){ia.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},
|
|
410
|
+
function(ia){ia.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},
|
|
411
|
+
function(ia){ia.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},
|
|
412
|
+
function(ia){ia.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},
|
|
413
|
+
function(ia){ia.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(ia){ia.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},
|
|
414
|
+
function(ia){ia.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(ia,ka,ea){function da(ja){return ja&&ja.__esModule?ja:{default:ja}}function x(ja,ba){if(!(ja instanceof ba))throw new TypeError("Cannot call a class as a function");}function r(ja,ba){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ba||"object"!==typeof ba&&
|
|
415
|
+
"function"!==typeof ba?ja:ba}function n(ja,ba){if("function"!==typeof ba&&null!==ba)throw new TypeError("Super expression must either be null or a function, not "+typeof ba);ja.prototype=Object.create(ba&&ba.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});ba&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,ba):ja.__proto__=ba)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.BubbleTooltip=void 0;var a=function la(ba,ha,ca){null===ba&&(ba=Function.prototype);
|
|
416
|
+
var ua=Object.getOwnPropertyDescriptor(ba,ha);if(void 0===ua){if(ba=Object.getPrototypeOf(ba),null!==ba)return la(ba,ha,ca)}else{if("value"in ua)return ua.value;ha=ua.get;return void 0===ha?void 0:ha.call(ca)}},b=function(){function ba(ha,ca){for(var la=0;la<ca.length;la++){var ua=ca[la];ua.enumerable=ua.enumerable||!1;ua.configurable=!0;"value"in ua&&(ua.writable=!0);Object.defineProperty(ha,ua.key,ua)}}return function(ha,ca,la){ca&&ba(ha.prototype,ca);la&&ba(ha,la);return ha}}();ia=ea(3);ia=da(ia);
|
|
417
|
+
var f=ea(8),h=da(f);f=ea(43);var y=da(f),e=ea(15);ea=ea(41);var w=da(ea),aa=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];ea=function(ba){function ha(ca,la){x(this,ha);null!=la.modules.toolbar&&null==la.modules.toolbar.container&&(la.modules.toolbar.container=aa);ca=r(this,(ha.__proto__||Object.getPrototypeOf(ha)).call(this,ca,la));ca.quill.container.classList.add("ql-bubble");return ca}n(ha,ba);b(ha,[{key:"extendToolbar",value:function(ca){this.tooltip=new fa(this.quill,this.options.bounds);
|
|
418
|
+
this.tooltip.root.appendChild(ca.container);this.buildButtons([].slice.call(ca.container.querySelectorAll("button")),w.default);this.buildPickers([].slice.call(ca.container.querySelectorAll("select")),w.default)}}]);return ha}(y.default);ea.DEFAULTS=(0,ia.default)(!0,{},y.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(ba){ba?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var fa=function(ba){function ha(ca,la){x(this,ha);var ua=r(this,(ha.__proto__||Object.getPrototypeOf(ha)).call(this,
|
|
419
|
+
ca,la));ua.quill.on(h.default.events.EDITOR_CHANGE,function(ma,sa,oa,ra){ma===h.default.events.SELECTION_CHANGE&&(null!=sa&&0<sa.length&&ra===h.default.sources.USER?(ua.show(),ua.root.style.left="0px",ua.root.style.width="",ua.root.style.width=ua.root.offsetWidth+"px",ma=ua.quill.getLines(sa.index,sa.length),1===ma.length?ua.position(ua.quill.getBounds(sa)):(oa=ma[ma.length-1],ma=ua.quill.getIndex(oa),sa=Math.min(oa.length()-1,sa.index+sa.length-ma),sa=ua.quill.getBounds(new e.Range(ma,sa)),ua.position(sa))):
|
|
420
|
+
document.activeElement!==ua.textbox&&ua.quill.hasFocus()&&ua.hide())});return ua}n(ha,ba);b(ha,[{key:"listen",value:function(){var ca=this;a(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){ca.root.classList.remove("ql-editing")});this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!ca.root.classList.contains("ql-hidden")){var la=ca.quill.getSelection();null!=
|
|
421
|
+
la&&ca.position(ca.quill.getBounds(la))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(ca){ca=a(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"position",this).call(this,ca);var la=this.root.querySelector(".ql-tooltip-arrow");la.style.marginLeft="";if(0===ca)return ca;la.style.marginLeft=-1*ca-la.offsetWidth/2+"px"}}]);return ha}(f.BaseTooltip);fa.TEMPLATE='<span class="ql-tooltip-arrow"></span><div class="ql-tooltip-editor"><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-close"></a></div>';
|
|
422
|
+
ka.BubbleTooltip=fa;ka.default=ea},function(ia,ka,ea){ia.exports=ea(63)}])["default"]})}).call(this,z(384).Buffer)}}]);}).call(this || window)
|