gds-plus-design-vue 1.2.63 → 1.2.71
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/lib/{addPermission.9fc97a47.mjs → addPermission.179a09f4.mjs} +127 -105
- package/lib/addPermission.c72ebbe0.js +1 -0
- package/lib/{approvalModel.51d07afe.mjs → approvalModel.7b550187.mjs} +7 -7
- package/lib/approvalModel.7cfcac3c.js +1 -0
- package/lib/attribute.3fed1dd9.js +1 -0
- package/lib/attribute.e9a8faa1.mjs +367 -0
- package/lib/businessRules.cf106f09.js +1 -0
- package/lib/{businessRules.db6ba874.mjs → businessRules.d7d35011.mjs} +191 -190
- package/lib/buttonRule.2afe380d.mjs +396 -0
- package/lib/buttonRule.737e8e3f.js +1 -0
- package/lib/chartDisplayRules.370065e8.mjs +288 -0
- package/lib/chartDisplayRules.c9162f81.js +1 -0
- package/lib/components.chartbi.3bbac955.js +8 -0
- package/lib/components.chartbi.571c5ff5.mjs +1813 -0
- package/lib/{components.coloreditor.044983d2.mjs → components.coloreditor.06cf0433.mjs} +2 -2
- package/lib/{components.coloreditor.779a9419.js → components.coloreditor.f81d322a.js} +1 -1
- package/lib/{components.dataassign.56632583.mjs → components.dataassign.21d3938b.mjs} +3 -3
- package/lib/{components.dataassign.1853ed5c.js → components.dataassign.565d22c0.js} +1 -1
- package/lib/{components.echarts.10d3ffe2.mjs → components.echarts.490abdfa.mjs} +416 -399
- package/lib/components.echarts.fe84f881.js +4 -0
- package/lib/{components.exception.3cc33e29.js → components.exception.374f2ad9.js} +1 -1
- package/lib/{components.exception.cc2f4ca3.mjs → components.exception.ee1c4f83.mjs} +1 -1
- package/lib/{components.form.91d5ed3e.js → components.form.5533a8c3.js} +19 -19
- package/lib/{components.form.3344c817.mjs → components.form.db8af727.mjs} +1118 -1090
- package/lib/{components.globalheader.07a90c4b.js → components.globalheader.2eb787a4.js} +1 -1
- package/lib/{components.globalheader.43fafa8c.mjs → components.globalheader.b3b35343.mjs} +3 -3
- package/lib/{components.iconselector.8caabeaa.mjs → components.iconselector.8940b1a9.mjs} +7 -3
- package/lib/components.iconselector.f5a58033.js +1 -0
- package/lib/{components.imgpreview.86bf7971.js → components.imgpreview.d97cf25c.js} +1 -1
- package/lib/{components.imgpreview.57290b54.mjs → components.imgpreview.f05b3e06.mjs} +4 -4
- package/lib/{components.lunccalendar.76159d2e.js → components.lunccalendar.18f84642.js} +1 -1
- package/lib/{components.lunccalendar.f6765c94.mjs → components.lunccalendar.2a097955.mjs} +1 -1
- package/lib/components.middleware.43b9b264.js +1 -0
- package/lib/{components.middleware.457b1182.mjs → components.middleware.de012955.mjs} +5 -4
- package/lib/{components.modaltitle.ae92f96c.mjs → components.modaltitle.5060623f.mjs} +1 -1
- package/lib/{components.modaltitle.e0b34fcb.js → components.modaltitle.957cab33.js} +1 -1
- package/lib/{components.multitab.8441aa6b.mjs → components.multitab.5eb6edff.mjs} +1 -1
- package/lib/{components.multitab.82fd0544.js → components.multitab.80eeb3ae.js} +1 -1
- package/lib/{components.selecttree.d710a362.js → components.selecttree.2fe70d88.js} +1 -1
- package/lib/{components.selecttree.85d940a9.mjs → components.selecttree.756c4d22.mjs} +1 -1
- package/lib/{components.settingdrawer.a6693034.mjs → components.settingdrawer.29dbc31e.mjs} +21 -21
- package/lib/{components.settingdrawer.779f6715.js → components.settingdrawer.8c12650b.js} +1 -1
- package/lib/{components.sidemenu.725677e3.mjs → components.sidemenu.0673fe0a.mjs} +2 -2
- package/lib/{components.sidemenu.80e46c2d.js → components.sidemenu.240dfde7.js} +1 -1
- package/lib/components.sidenavmenu.b1330d69.js +1 -0
- package/lib/{components.sidenavmenu.23b8edce.mjs → components.sidenavmenu.fa81ff82.mjs} +448 -632
- package/lib/{components.statuschange.ed1218a4.js → components.statuschange.858b72e8.js} +1 -1
- package/lib/{components.statuschange.15938660.mjs → components.statuschange.fae4adba.mjs} +3 -3
- package/lib/{components.table.17c02054.js → components.table.1e338902.js} +3 -3
- package/lib/{components.table.e3e5e3bc.mjs → components.table.9ed77207.mjs} +331 -316
- package/lib/components.tableumy.1d804d70.js +1 -0
- package/lib/{components.tableumy.2f5dfa12.mjs → components.tableumy.3e1c9a5b.mjs} +7 -4
- package/lib/{components.tablevirtual.ba03746e.mjs → components.tablevirtual.66890b2c.mjs} +7 -4
- package/lib/components.tablevirtual.8e21a6e7.js +1 -0
- package/lib/{components.teamsharing.fb4351ec.mjs → components.teamsharing.3a17ddc0.mjs} +3 -3
- package/lib/{components.teamsharing.05503821.js → components.teamsharing.89e668fd.js} +1 -1
- package/lib/{components.tooltip.a05d8dd1.js → components.tooltip.0ea7e2b1.js} +1 -1
- package/lib/{components.tooltip.950dc77b.mjs → components.tooltip.376d95fe.mjs} +1 -1
- package/lib/{components.uploadfile.10f6cb2a.mjs → components.uploadfile.0a5a1608.mjs} +2 -2
- package/lib/{components.uploadfile.5a9b6cc1.js → components.uploadfile.8e0e702c.js} +1 -1
- package/lib/{components.uploadimg.cce7452a.js → components.uploadimg.bc160e00.js} +1 -1
- package/lib/{components.uploadimg.f4fe4e77.mjs → components.uploadimg.decb0360.mjs} +2 -2
- package/lib/{components.verificationcode.d1946db4.js → components.verificationcode.140533c7.js} +1 -1
- package/lib/{components.verificationcode.afb9aa1a.mjs → components.verificationcode.7091b10b.mjs} +1 -1
- package/lib/components.viewformdetails.940addba.js +1 -0
- package/lib/{components.viewformdetails.f362d69e.mjs → components.viewformdetails.d241c652.mjs} +94 -61
- package/lib/components.viewloading.1e9f4b3c.js +1 -0
- package/lib/{components.viewloading.ea40b244.mjs → components.viewloading.aae3aab4.mjs} +54 -51
- package/lib/{components.watermark.1ffc66e0.mjs → components.watermark.2ec3260c.mjs} +1 -1
- package/lib/{components.watermark.da3d7220.js → components.watermark.d9ec8130.js} +1 -1
- package/lib/{components.xlsxexport.f5ace2cd.js → components.xlsxexport.0d1553b1.js} +1 -1
- package/lib/{components.xlsxexport.d98572f8.mjs → components.xlsxexport.c33f83ca.mjs} +4 -4
- package/lib/{components.xlsximport.cffa88fe.mjs → components.xlsximport.81df7841.mjs} +541 -532
- package/lib/components.xlsximport.8c209857.js +1 -0
- package/lib/copy.8db86d9f.mjs +572 -0
- package/lib/copy.a8753f38.js +1 -0
- package/lib/createFile.04a6b293.js +1 -0
- package/lib/createFile.4cac1673.mjs +439 -0
- package/lib/createSubfolders.e105fa86.js +1 -0
- package/lib/{createSubfolders.d35b97e9.mjs → createSubfolders.eac5ccae.mjs} +7 -7
- package/lib/{dialogLayout.c4bc3b55.mjs → dialogLayout.bf435838.mjs} +2 -2
- package/lib/{dialogLayout.08823bb7.js → dialogLayout.f0779aed.js} +1 -1
- package/lib/drawerContainer.6ab3df46.mjs +163 -0
- package/lib/drawerContainer.8f9df583.js +1 -0
- package/lib/{drawerLayout.36cf4d05.js → drawerLayout.b6c7c3c6.js} +1 -1
- package/lib/{drawerLayout.fb60950f.mjs → drawerLayout.e3c0164d.mjs} +2 -2
- package/lib/editForm.0f3fd3b0.js +1 -0
- package/lib/editForm.aef93ed0.mjs +434 -0
- package/lib/extendedAttributes.ea93dbaa.mjs +293 -0
- package/lib/extendedAttributes.ef3ead02.js +1 -0
- package/lib/fileSearch.43465e1c.js +1 -0
- package/lib/{fileSearch.86c356fe.mjs → fileSearch.5c8a883d.mjs} +140 -115
- package/lib/{flow.designer.6da03949.mjs → flow.designer.81c29f62.mjs} +3184 -3197
- package/lib/flow.designer.ffd0aa8b.js +1 -0
- package/lib/flow.list.4c05f2f0.js +1 -0
- package/lib/{flow.list.03694808.mjs → flow.list.ab420927.mjs} +234 -232
- package/lib/form.build.724d3357.js +1 -0
- package/lib/{form.build.b768d613.mjs → form.build.d04773f0.mjs} +22 -14
- package/lib/form.designer.build.c82cb559.mjs +2529 -0
- package/lib/form.designer.build.dac501fa.js +1 -0
- package/lib/formFiled.4b5062d7.js +1 -0
- package/lib/{formFiled.fe7d9df3.mjs → formFiled.c949a27f.mjs} +15 -13
- package/lib/gd-initial.js +1 -1
- package/lib/gd-initial.mjs +231 -207
- package/lib/{http.appmanage.4554a629.mjs → http.appmanage.e389782d.mjs} +3 -3
- package/lib/{http.codegeneratemanage.2f925b10.mjs → http.codegeneratemanage.b123bab3.mjs} +19 -11
- package/lib/{http.codegeneratemanage.aecadd5d.js → http.codegeneratemanage.e3db2f09.js} +1 -1
- package/lib/{http.dictdatamanage.4baf16c0.mjs → http.dictdatamanage.2583b5ae.mjs} +4 -4
- package/lib/{http.dictmanage.77c69971.mjs → http.dictmanage.d8fe18dc.mjs} +4 -4
- package/lib/{http.duplicatechecking.31964ce7.mjs → http.duplicatechecking.9b79ce21.mjs} +3 -3
- package/lib/http.filedocument.6fdfc693.js +1 -0
- package/lib/http.filedocument.8fa3fe2d.mjs +293 -0
- package/lib/{http.main.40657f51.mjs → http.main.aefea27d.mjs} +17 -17
- package/lib/{http.menumanage.3240ba0d.mjs → http.menumanage.3060f4c7.mjs} +5 -5
- package/lib/{http.message.5004bf60.mjs → http.message.ceb0a1c6.mjs} +19 -19
- package/lib/{http.noticemanage.e03bd5f3.mjs → http.noticemanage.2cdb23b8.mjs} +7 -7
- package/lib/{http.orgmanage.84e43edb.mjs → http.orgmanage.0b1df8d5.mjs} +2 -2
- package/lib/{http.pluginmanage.6bc6197f.mjs → http.pluginmanage.54720675.mjs} +7 -7
- package/lib/{http.promptmanagement.c7912f6c.mjs → http.promptmanagement.dad4c6a7.mjs} +3 -3
- package/lib/http.rolemanage.4d1101dd.js +1 -0
- package/lib/{http.rolemanage.dbf3fda1.mjs → http.rolemanage.da5c40e9.mjs} +51 -19
- package/lib/{http.solution.175d36c8.mjs → http.solution.b10d9197.mjs} +4 -4
- package/lib/{http.sumberrules.608a06d6.mjs → http.sumberrules.176d3d06.mjs} +4 -4
- package/lib/{http.sysapps.e294ceaf.mjs → http.sysapps.932ba43b.mjs} +4 -4
- package/lib/{http.tabledevelopment.1d370398.mjs → http.tabledevelopment.3dcb3e97.mjs} +40 -40
- package/lib/{http.team.c8487c0b.mjs → http.team.a9c609d5.mjs} +11 -11
- package/lib/{http.timersmanage.01dbc1a2.mjs → http.timersmanage.c79afb66.mjs} +18 -18
- package/lib/{http.translationmanage.a4640c9a.mjs → http.translationmanage.f8694b51.mjs} +11 -11
- package/lib/{http.useraffiliation.840741ed.mjs → http.useraffiliation.f2a29f92.mjs} +10 -10
- package/lib/{http.usermanage.3e5eff33.mjs → http.usermanage.f5491144.mjs} +16 -16
- package/lib/{http.webresource.5158b431.mjs → http.webresource.1a1a768f.mjs} +4 -4
- package/lib/index.9deaa991.mjs +25906 -0
- package/lib/index.d95c407c.js +8 -0
- package/lib/layoutBlocks.26e1b57b.js +1 -0
- package/lib/layoutBlocks.31454610.mjs +413 -0
- package/lib/layoutItem.c1c836a1.js +1 -0
- package/lib/layoutItem.cf18143e.mjs +71 -0
- package/lib/{layouts.a6a36612.js → layouts.2d06f3e9.js} +2 -2
- package/lib/{layouts.051a0bba.mjs → layouts.3b383d04.mjs} +19 -22
- package/lib/main.09d48801.js +1 -0
- package/lib/main.28b7c398.js +1 -0
- package/lib/main.29e204f9.mjs +166 -0
- package/lib/main.33443996.mjs +231 -0
- package/lib/main.357c50d2.js +1 -0
- package/lib/{main.7f44e3bf.mjs → main.3e886f21.mjs} +40 -50
- package/lib/{main.c1df94d8.mjs → main.419a7b42.mjs} +2 -2
- package/lib/main.4a38d5f8.js +1 -0
- package/lib/{main.70357352.mjs → main.60329866.mjs} +6 -6
- package/lib/{main.ad1e8d4d.js → main.60c2a1a2.js} +1 -1
- package/lib/main.61c9e5c6.mjs +537 -0
- package/lib/main.643d21a0.mjs +552 -0
- package/lib/main.64ddb5f6.mjs +189 -0
- package/lib/main.728eaf53.js +1 -0
- package/lib/{main.8a2a590d.js → main.892caa37.js} +1 -1
- package/lib/main.aea9b6a8.mjs +323 -0
- package/lib/main.b7a5a02b.js +1 -0
- package/lib/main.c71e5b11.js +1 -0
- package/lib/main.edc0b23b.js +1 -0
- package/lib/{main.b0e5e1b0.mjs → main.f520fcf5.mjs} +2 -2
- package/lib/manage.101f1aa9.js +1 -0
- package/lib/{manage.a1df9b88.mjs → manage.f4000654.mjs} +162 -140
- package/lib/messages.fieldconfiguration.0d98a290.mjs +1097 -0
- package/lib/messages.fieldconfiguration.ad4d11cf.js +1 -0
- package/lib/messages.messagetemplate.32273e00.js +7 -0
- package/lib/messages.messagetemplate.7adbbc58.mjs +1319 -0
- package/lib/messages.sendplan.7d0097c2.mjs +1054 -0
- package/lib/messages.sendplan.fbac188d.js +1 -0
- package/lib/messages.sendrecord.ef80d44a.js +2 -0
- package/lib/messages.sendrecord.f0d2fd54.mjs +651 -0
- package/lib/messages.templatelibrary.ec512390.js +2 -0
- package/lib/messages.templatelibrary.ff151513.mjs +808 -0
- package/lib/mobile.designer.componentstree.03f61105.js +1 -0
- package/lib/mobile.designer.componentstree.4a1442dc.mjs +2064 -0
- package/lib/mobile.designer.menutree.0a2f7911.mjs +1036 -0
- package/lib/mobile.designer.menutree.97bb4046.js +1 -0
- package/lib/moveFile.335ebc8d.js +1 -0
- package/lib/moveFile.d71c0824.mjs +276 -0
- package/lib/{page.build.685c1e15.mjs → page.build.376104d5.mjs} +607 -601
- package/lib/{page.build.846096e6.js → page.build.37b26617.js} +3 -3
- package/lib/page.designer.componentstree.0ffc933d.js +1 -0
- package/lib/page.designer.componentstree.b0ecddd8.mjs +2958 -0
- package/lib/page.designer.fieldfiltering.1ecd65a3.mjs +430 -0
- package/lib/page.designer.fieldfiltering.7e913256.js +1 -0
- package/lib/page.designer.menutree.2c1846bc.mjs +5952 -0
- package/lib/page.designer.menutree.c49d9ee6.js +1 -0
- package/lib/page.designer.operation.6179b661.js +1 -0
- package/lib/page.designer.operation.80b1a5d1.mjs +44 -0
- package/lib/page.designer.page.09402332.js +1 -0
- package/lib/page.designer.page.6d8232c7.mjs +10638 -0
- package/lib/personal.echarts.414b7e3d.mjs +268 -0
- package/lib/personal.echarts.b7ee86f4.js +1 -0
- package/lib/result.0c089066.mjs +639 -0
- package/lib/result.9282a717.js +1 -0
- package/lib/router.config.68077a12.js +1 -0
- package/lib/router.config.86225b11.mjs +1424 -0
- package/lib/solution.application.d459e382.js +1 -0
- package/lib/solution.application.e0d58df1.mjs +548 -0
- package/lib/solution.applicationmenu.71ef6b8e.mjs +508 -0
- package/lib/solution.applicationmenu.ae295083.js +1 -0
- package/lib/solution.approvalflow.436b3502.js +1 -0
- package/lib/solution.approvalflow.bef7fbdd.mjs +436 -0
- package/lib/solution.dict.acbe9c55.js +1 -0
- package/lib/solution.dict.ef98b194.mjs +769 -0
- package/lib/solution.menu.5c17348f.mjs +432 -0
- package/lib/solution.menu.cca5e1f9.js +1 -0
- package/lib/solution.plugin.90f8dcc1.mjs +347 -0
- package/lib/solution.plugin.f9a8063f.js +1 -0
- package/lib/solution.processflow.2692dac6.js +1 -0
- package/lib/solution.processflow.c1544b05.mjs +392 -0
- package/lib/solution.role.b1ab40dd.mjs +456 -0
- package/lib/solution.role.b28c4dbe.js +1 -0
- package/lib/solution.webresources.0b51beba.mjs +379 -0
- package/lib/solution.webresources.6961cc68.js +1 -0
- package/lib/solution.workflow.11e49e25.js +1 -0
- package/lib/solution.workflow.c48545d1.mjs +395 -0
- package/lib/{store.config.fff8a5a1.mjs → store.config.03dd7b19.mjs} +22 -17
- package/lib/store.config.556bd56b.js +1 -0
- package/lib/style.css +3 -3
- package/lib/{system.account.014f3e0b.mjs → system.account.1cadbf03.mjs} +877 -881
- package/lib/{system.account.0d4f1fdc.js → system.account.5cc9fe8d.js} +7 -7
- package/lib/{system.config.210f516c.js → system.config.a0b94e40.js} +1 -1
- package/lib/{system.config.0899edb8.mjs → system.config.a9a1ee96.mjs} +1 -1
- package/lib/{system.datasource.82492d27.js → system.datasource.6c30ce25.js} +1 -1
- package/lib/{system.datasource.986768c9.mjs → system.datasource.c103a9c2.mjs} +1 -1
- package/lib/{system.dict.ef24873d.mjs → system.dict.0c229d1c.mjs} +264 -260
- package/lib/system.dict.6b000092.js +1 -0
- package/lib/system.document.f67c2994.mjs +667 -0
- package/lib/system.document.f8fd7af0.js +1 -0
- package/lib/{system.duplicatechecking.dcf9f86b.mjs → system.duplicatechecking.94c7ce17.mjs} +245 -265
- package/lib/system.duplicatechecking.f4cab147.js +1 -0
- package/lib/system.email.11ab6f31.js +1 -0
- package/lib/{system.email.252fd642.mjs → system.email.13823361.mjs} +10 -15
- package/lib/system.fieldsecurity.2ef2881c.js +1 -0
- package/lib/{system.fieldsecurity.0234d390.mjs → system.fieldsecurity.d35acd97.mjs} +370 -361
- package/lib/{system.file.73eeb731.mjs → system.file.30d3e7bc.mjs} +81 -149
- package/lib/system.file.b9f8320c.js +1 -0
- package/lib/{system.log.fc60f5e6.js → system.log.470d3efd.js} +1 -1
- package/lib/{system.log.b86cf57f.mjs → system.log.815840d8.mjs} +1 -1
- package/lib/{system.machine.0114001b.mjs → system.machine.1665954f.mjs} +1 -1
- package/lib/{system.machine.f1d95c86.js → system.machine.f8aff893.js} +1 -1
- package/lib/{system.notice.25ea8dca.mjs → system.notice.bef6c23c.mjs} +994 -992
- package/lib/system.notice.db26f308.js +1 -0
- package/lib/{system.noticereceived.369f634c.mjs → system.noticereceived.0d293a87.mjs} +10 -11
- package/lib/system.noticereceived.84b88b9a.js +1 -0
- package/lib/system.onlineuser.985621a6.js +1 -0
- package/lib/{system.onlineuser.2dc284b1.mjs → system.onlineuser.bccb1cd9.mjs} +37 -26
- package/lib/{system.org.c20fe6b2.mjs → system.org.92f4d7f1.mjs} +2 -2
- package/lib/{system.org.79ee5bd6.js → system.org.9f87a010.js} +1 -1
- package/lib/system.permissions.15e6b8b7.js +1 -0
- package/lib/system.permissions.be9238ee.mjs +972 -0
- package/lib/system.plugin.0bccfec4.js +1 -0
- package/lib/{system.plugin.45a0f530.mjs → system.plugin.af27d7ac.mjs} +500 -479
- package/lib/{system.pos.0a3d2a37.js → system.pos.61e58a92.js} +1 -1
- package/lib/{system.pos.7946a99c.mjs → system.pos.fe067063.mjs} +1 -1
- package/lib/{system.promptmanagement.d7250932.mjs → system.promptmanagement.0b9083c5.mjs} +246 -243
- package/lib/system.promptmanagement.e750de82.js +1 -0
- package/lib/{system.role.75da7929.mjs → system.role.67f62146.mjs} +511 -488
- package/lib/system.role.e86b60f1.js +1 -0
- package/lib/{system.sumberrules.4a1376a6.mjs → system.sumberrules.093d998e.mjs} +168 -165
- package/lib/system.sumberrules.810f7b55.js +1 -0
- package/lib/system.team.58ee701b.js +1 -0
- package/lib/{system.team.e6a9608e.mjs → system.team.8911fd95.mjs} +163 -161
- package/lib/system.teammembers.1880f962.js +1 -0
- package/lib/{system.teammembers.4a7e7339.mjs → system.teammembers.35564a00.mjs} +203 -198
- package/lib/{system.timers.eb0b6f3e.mjs → system.timers.4b2d509f.mjs} +2261 -2213
- package/lib/system.timers.9e956553.js +38 -0
- package/lib/system.translation.26b6bb39.js +1 -0
- package/lib/{system.translation.e34f0891.mjs → system.translation.60ec676c.mjs} +435 -429
- package/lib/system.user.134a3988.js +14 -0
- package/lib/{system.user.fa2d2997.mjs → system.user.9a02295e.mjs} +1082 -1026
- package/lib/{system.useraffiliation.518e341e.mjs → system.useraffiliation.96695aeb.mjs} +418 -412
- package/lib/system.useraffiliation.c2421c7e.js +1 -0
- package/lib/{system.webresource.469db736.mjs → system.webresource.016d0000.mjs} +179 -179
- package/lib/system.webresource.e92e8a8f.js +1 -0
- package/lib/{system.welcome.191e98f5.mjs → system.welcome.127b5dd4.mjs} +1 -1
- package/lib/{system.welcome.f64e49f8.js → system.welcome.ff0c85e2.js} +1 -1
- package/lib/table.definition..btnconfig.9847cac5.mjs +938 -0
- package/lib/table.definition..btnconfig.ce57ed41.js +1 -0
- package/lib/table.definition..echartsconfig.625bce88.mjs +2150 -0
- package/lib/table.definition..echartsconfig.d2b65881.js +1 -0
- package/lib/tableDescriptions.a4196776.mjs +80 -0
- package/lib/tableDescriptions.b9b0d7fa.js +1 -0
- package/lib/tcheckboxs.7ea99d35.js +1 -0
- package/lib/{tcheckboxs.090e75eb.mjs → tcheckboxs.999b7c2e.mjs} +2 -2
- package/lib/tcurrency.4afb9192.mjs +85 -0
- package/lib/tcurrency.8a2361f2.js +1 -0
- package/lib/{tdatepicker.8fe48b1b.mjs → tdatepicker.606214fa.mjs} +2 -2
- package/lib/{tdatepicker.b19e689d.js → tdatepicker.8e94a60c.js} +1 -1
- package/lib/{tdictSwitch.2e07dc8a.js → tdictSwitch.ccbdd153.js} +1 -1
- package/lib/{tdictSwitch.43d882c7.mjs → tdictSwitch.e016d4cf.mjs} +2 -2
- package/lib/{tfile.72925615.mjs → tfile.3f39223d.mjs} +2 -2
- package/lib/{tfile.1bc381f9.js → tfile.b3ebdc71.js} +1 -1
- package/lib/{tparticipants.ca5b556c.mjs → tparticipants.5fe27540.mjs} +2 -2
- package/lib/{tparticipants.77b876e2.js → tparticipants.78c8c175.js} +1 -1
- package/lib/{translation.mains.278e4ba6.mjs → translation.mains.2688be5b.mjs} +7 -7
- package/lib/{translation.mains.1ce7e110.js → translation.mains.a6f19343.js} +1 -1
- package/lib/utils.datepicker.js.0a5a699e.js +1 -0
- package/lib/utils.datepicker.js.5549a741.mjs +70 -0
- package/lib/utils.plug.js.9313aead.mjs +31 -0
- package/lib/utils.plug.js.f62510ce.js +1 -0
- package/lib/utils.util.js.333daba2.mjs +439 -0
- package/lib/utils.util.js.c0ba699b.js +1 -0
- package/lib/versionControl.46a7f31a.js +1 -0
- package/lib/versionControl.c53bfb5d.mjs +488 -0
- package/lib/versionEdit.4246d5db.js +1 -0
- package/lib/versionEdit.5a8292ec.mjs +452 -0
- package/lib/view.build.85732408.mjs +1578 -0
- package/lib/view.build.e43a2077.js +1 -0
- package/lib/viewList.868edcd7.js +1 -0
- package/lib/{viewList.5a25c4b6.mjs → viewList.978b72c5.mjs} +70 -92
- package/lib/viewTree.7497ff90.js +1 -0
- package/lib/viewTree.bde43a3b.mjs +409 -0
- package/locale/en_US.js +45 -6
- package/locale/id_ID.js +45 -6
- package/locale/vi_VN.js +45 -6
- package/locale/zh_CN.js +45 -5
- package/package.json +1 -1
- package/lib/addPermission.5036013c.js +0 -1
- package/lib/approvalModel.66f49dfb.js +0 -1
- package/lib/attribute.318f485c.js +0 -1
- package/lib/attribute.a06ac9e7.mjs +0 -237
- package/lib/buildItem.6a834227.js +0 -1
- package/lib/buildItem.fd8634ab.mjs +0 -205
- package/lib/businessRules.0e4dbb3a.js +0 -1
- package/lib/components.chartbi.b043dcdc.mjs +0 -1729
- package/lib/components.chartbi.e4680eaa.js +0 -7
- package/lib/components.echarts.e4d6b13e.js +0 -3
- package/lib/components.iconselector.d712170f.js +0 -1
- package/lib/components.middleware.3bad5748.js +0 -1
- package/lib/components.sidenavmenu.b9bb9304.js +0 -1
- package/lib/components.tableumy.9cf33062.js +0 -1
- package/lib/components.tablevirtual.38d4d3d8.js +0 -1
- package/lib/components.viewformdetails.1621bc18.js +0 -1
- package/lib/components.viewloading.807bbf68.js +0 -1
- package/lib/components.xlsximport.dbd826bb.js +0 -1
- package/lib/createFile.6b37ecf2.js +0 -1
- package/lib/createFile.82d6e415.mjs +0 -239
- package/lib/createSubfolders.47af629c.js +0 -1
- package/lib/drawerContainer.604a1271.mjs +0 -146
- package/lib/drawerContainer.6a9813ce.js +0 -1
- package/lib/fileSearch.65311ded.js +0 -1
- package/lib/flow.designer.1ba3a90d.js +0 -1
- package/lib/flow.list.4eb10554.js +0 -1
- package/lib/form.build.51bd261e.js +0 -1
- package/lib/form.designer.build.5a950455.js +0 -1
- package/lib/form.designer.build.e521c9c6.mjs +0 -5091
- package/lib/formFiled.464856f5.js +0 -1
- package/lib/http.filedocument.7c656b91.js +0 -1
- package/lib/http.filedocument.d456d26a.mjs +0 -156
- package/lib/http.rolemanage.03363732.js +0 -1
- package/lib/index.69ad4631.mjs +0 -44291
- package/lib/index.cca024bf.js +0 -8
- package/lib/layoutBlocks.1a9e3e05.mjs +0 -204
- package/lib/layoutBlocks.5e6be06f.js +0 -1
- package/lib/main.457f4326.js +0 -1
- package/lib/main.4fff412e.js +0 -1
- package/lib/main.77373aa4.mjs +0 -441
- package/lib/main.c3726602.js +0 -1
- package/lib/manage.5bb4f719.js +0 -1
- package/lib/messages.7b74736f.js +0 -9
- package/lib/messages.ad082386.mjs +0 -4889
- package/lib/moveFile.0ce803e0.js +0 -1
- package/lib/moveFile.8310ea94.mjs +0 -254
- package/lib/personal.echarts.b22fba61.mjs +0 -701
- package/lib/personal.echarts.f77bfc9e.js +0 -1
- package/lib/result.19351665.mjs +0 -526
- package/lib/result.e59c0e40.js +0 -1
- package/lib/router.config.2501ec51.js +0 -1
- package/lib/router.config.98a73167.mjs +0 -3172
- package/lib/solution.58580123.js +0 -1
- package/lib/solution.890ff164.mjs +0 -6942
- package/lib/store.config.3cb11578.js +0 -1
- package/lib/system.dict.f5708400.js +0 -1
- package/lib/system.duplicatechecking.8e3a37c0.js +0 -1
- package/lib/system.email.070ab2be.js +0 -1
- package/lib/system.fieldsecurity.3ef07bf7.js +0 -1
- package/lib/system.file.17a7f2ed.js +0 -1
- package/lib/system.notice.96c770a6.js +0 -1
- package/lib/system.noticereceived.dfe4ecc7.js +0 -1
- package/lib/system.onlineuser.e2e39bdc.js +0 -1
- package/lib/system.permissions.90f73461.js +0 -9
- package/lib/system.permissions.c3d34921.mjs +0 -213
- package/lib/system.plugin.b34a3b47.js +0 -1
- package/lib/system.promptmanagement.b5fa6b2d.js +0 -1
- package/lib/system.role.03be0982.js +0 -1
- package/lib/system.sumberrules.bb228fce.js +0 -1
- package/lib/system.team.32183b63.js +0 -1
- package/lib/system.teammembers.847d8ea7.js +0 -1
- package/lib/system.timers.28691ce4.js +0 -38
- package/lib/system.translation.6237f071.js +0 -1
- package/lib/system.user.fca3f2d6.js +0 -14
- package/lib/system.useraffiliation.7547b9c7.js +0 -1
- package/lib/system.webresource.12712b90.js +0 -1
- package/lib/tcheckboxs.99361be3.js +0 -1
- package/lib/tcurrency.0ddac2f8.mjs +0 -92
- package/lib/tcurrency.62763c6d.js +0 -1
- package/lib/utils.datepicker.js.2076c2a2.mjs +0 -61
- package/lib/utils.datepicker.js.8576e2fc.js +0 -1
- package/lib/utils.util.js.50d1ec9c.js +0 -1
- package/lib/utils.util.js.82cd8447.mjs +0 -424
- package/lib/view.build.b44fd7d7.js +0 -1
- package/lib/view.build.f2a9fcfb.mjs +0 -2727
- package/lib/viewList.be5a5ec5.js +0 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
"use strict";const he=require("./components.chartbi.
|
|
1
|
+
"use strict";const he=require("./components.chartbi.3bbac955.js"),Ee=require("./http.filemanage.7e6e3e1a.js");require("./utils.util.js.c0ba699b.js");const ke=require("./http.main.2f8a6936.js"),we=require("./http.tabledevelopment.a880bb76.js");var ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Te(W){return W&&W.__esModule&&Object.prototype.hasOwnProperty.call(W,"default")?W.default:W}function Ae(W){var E=W.default;if(typeof E=="function"){var L=function(){return E.apply(this,arguments)};L.prototype=E.prototype}else L={};return Object.defineProperty(L,"__esModule",{value:!0}),Object.keys(W).forEach(function(s){var h=Object.getOwnPropertyDescriptor(W,s);Object.defineProperty(L,s,h.get?h:{enumerable:!0,get:function(){return W[s]}})}),L}const Ne={name:"GdEditForm",props:{width:{type:String,default:"800px"},transKey:{type:String,default:""},title:{type:String,default:"\u6807\u9898"},labelWidth:{type:String,default:"140px"},size:{type:String,default:"small"},inline:{type:Boolean,default:!1},formWidth:{type:String,default:"100%"},formItemWidth:{type:String,default:"100%"},loading:{type:Boolean,default:!1},buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},defaultProps:{type:Object,default:()=>({children:"children",label:"title",value:"value"})},labelPosition:{type:String,default:"right"},needLoad:{type:Boolean,default:!1},formMode:{type:String,default:"dialog"}},components:{childRenColumn:()=>Promise.resolve().then(()=>Fe)},data(){return{record:null,confirmLoading:!1,visible:!1,fullscreen:!1,ruleFormData:{}}},watch:{loading(W){this.confirmLoading=W}},computed:{getColumns(){let W=[...this.columns];return W.filter(E=>(E.rules.filter(L=>(L.oldMessage===void 0&&(L.oldMessage=L.message),L.message=this.$i18nt(L.transKey,L.message),!0)),!0)),[...W]},headTitle(){return this.$i18nt(this.transKey,this.title)},style(){return`width:${this.formWidth};margin: 0 auto;min-height:400px;--form-inline-wid:calc(100% - ${this.labelWidth})`},istyle(){return this.inline?`width:50%;padding-left:0px;margin:${this.formMode==="dialog"?"0 auto":"7px auto"} ;`:this.formMode==="dialog"?`width:${this.formItemWidth};margin: 0 auto;`:`width:${this.formItemWidth};margin: 14px auto;`}},methods:{init(){return new Promise((W,E)=>{this.$nextTick(()=>{setTimeout(()=>{const L=this.record&&typeof this.record=="object"?this.record:{};let s=new Map,h=new Map;this.columns.forEach(N=>{if(!(N.type==="slot"&&(N.slotType==="none"||N.slotType==="divider")))if(["input","textarea","image","file","editor"].includes(N.effectType))s.set(N.prop,N.defaultValue!==void 0?N.defaultValue:"");else if(["fk","user","select","radio"].includes(N.effectType))s.set(N.prop,N.defaultValue!==void 0?N.defaultValue:"");else if(["participants","checkbox"].includes(N.effectType))s.set(N.prop,N.defaultValue!==void 0?N.defaultValue:[]);else if(["switch"].includes(N.effectType)){const w=N.defaultValue!==void 0?N.defaultValue:!1,O=L[N.prop]===void 0?w:L[N.prop]==1;s.set(N.prop,O),h.set(N.prop,O)}else["inputnumber","currency","double"].includes(N.effectType)?s.set(N.prop,N.defaultValue!==void 0?N.defaultValue==="undefined"?void 0:N.defaultValue:void 0):s.set(N.prop,N.defaultValue!==void 0?N.defaultValue:"")}),this.ruleFormData=Object.assign(Object.fromEntries(s),{...L},Object.fromEntries(h)),this.$refs.ruleForm&&this.$refs.ruleForm.resetFields(),W(this.ruleFormData)},0)})})},setData(W){this.$nextTick(()=>{setTimeout(()=>{const E=W||{};this.ruleFormData=Object.assign({...this.ruleFormData},{...E}),this.$refs.ruleForm.resetFields()},0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen},async open(W){if(this.confirmLoading=!0,this.record=W?{...W}:null,this.visible=!0,await this.init(),setTimeout(()=>{this.confirmLoading=!1},100),this.needLoad)return new Promise((E,L)=>{E({instance:this,done:this.setData})})},openHand(W){if(this.confirmLoading=!0,this.record=W?{...W}:null,this.visible=!0,setTimeout(()=>{this.confirmLoading=!1},100),this.needLoad)return new Promise((E,L)=>{E({instance:this,done:this.setData})})},closed(){this.$refs.ruleForm&&this.$refs.ruleForm.resetFields(),this.fullscreen=!1,this.visible=!1,this.record=null},handleSubmit(W){W.item.functionName,this.$refs.ruleForm.validate((E,L)=>{if(E){let s={...this.ruleFormData};this.columns.forEach(h=>{["switch"].includes(h.effectType)&&s[h.prop]!==void 0&&(s[h.prop]=s[h.prop]?1:0)}),this.$emit("sbumit",{data:Object.assign({},{...s}),record:this.record,btn:W},this,this.closed)}})},doEvent(W){if(W.item.validate){this.handleSubmit(W);return}this.$emit("sbumit",{data:Object.assign({},{...this.ruleFormData}),record:this.record,btn:W},this,this.closed)},selectFk(W){this.$emit("selectFk",W)}}};var xe=function(){var E=this,L=E._self._c;return L("div",[E.formMode==="dialog"?L("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:E.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:E.fullscreen,visible:E.visible,width:E.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(s){E.visible=s},closed:E.closed}},[L("gd-modal-title",{attrs:{slot:"title",title:E.headTitle,fullscreen:E.fullscreen,buttons:E.buttons,confirmLoading:E.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:E.doEvent,toggleFullscreen:E.toggleFullscreen,close:E.closed},slot:"title"}),E.visible?L("el-form",{directives:[{name:"loading",rawName:"v-loading",value:E.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",class:`gd-form gd-form-${E.inline}`,style:E.style,attrs:{model:E.ruleFormData,"label-width":E.labelWidth,"label-position":E.labelPosition,size:E.size,inline:E.inline},nativeOn:{submit:function(s){s.preventDefault()}}},[E._l(E.getColumns,function(s,h){return[s.type==="slot"&&s.slotType==="none"?L("el-form-item",{style:E.istyle,attrs:{label:""}}):s.type==="slot"&&s.slotType==="divider"?L("el-divider"):L("el-form-item",{style:E.istyle,attrs:{prop:s.prop,rules:s.rules}},[L("span",{attrs:{slot:"label",title:E.$i18nt(s.transKey,s.label)},slot:"label"},[E._v(" "+E._s(E.$i18nt(s.transKey,s.label))+" ")]),s.type==="slot"?E._t(s.slotType,null,{data:E.ruleFormData,column:s,record:E.record}):L("child-ren-column",{attrs:{ruleFormData:E.ruleFormData,record:s,defaultProps:E.defaultProps,visible:E.visible},on:{selectFk:E.selectFk}})],2)]})],2):E._e()],1):L("el-drawer",{attrs:{visible:E.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:E.width,"custom-class":"gd-drawer-form","show-close":!1},on:{"update:visible":function(s){E.visible=s}}},[L("gd-modal-title",{attrs:{slot:"title",title:E.headTitle,fullscreen:E.fullscreen,buttons:E.buttons,confirmLoading:E.confirmLoading,emitFun:!0,showFullscreen:!1,showClose:!0},on:{changeEvent:E.doEvent,close:E.closed},slot:"title"}),L("div",[E.visible?L("el-form",{directives:[{name:"loading",rawName:"v-loading",value:E.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",class:`gd-form gd-form-${E.inline}`,style:E.style,attrs:{model:E.ruleFormData,"label-width":E.labelWidth,"label-position":E.labelPosition,size:E.size,inline:E.inline},nativeOn:{submit:function(s){s.preventDefault()}}},[E._l(E.getColumns,function(s,h){return[s.type==="slot"&&s.slotType==="none"?L("el-form-item",{style:E.istyle,attrs:{label:""}}):s.type==="slot"&&s.slotType==="divider"?L("el-divider"):L("el-form-item",{style:E.istyle,attrs:{label:E.$i18nt(s.transKey,s.label),prop:s.prop,rules:s.rules}},[L("span",{attrs:{slot:"label",title:E.$i18nt(s.transKey,s.label)},slot:"label"},[E._v(" "+E._s(E.$i18nt(s.transKey,s.label))+" ")]),s.type==="slot"?E._t(s.slotType,null,{data:E.ruleFormData,column:s}):L("childRenColumn",{attrs:{ruleFormData:E.ruleFormData,record:s,defaultProps:E.defaultProps,visible:E.visible}})],2)]})],2):E._e()],1)],1)],1)},Se=[],Pe=he.normalizeComponent(Ne,xe,Se,!1,null,"7186772d",null,null);const pe=Pe.exports;pe.install=function(W){W.component(pe.name,pe)};var me={exports:{}},ve={exports:{}};/*!
|
|
2
2
|
* Quill Editor v1.3.7
|
|
3
3
|
* https://quilljs.com/
|
|
4
4
|
* Copyright (c) 2014, Jason Chen
|
|
5
5
|
* Copyright (c) 2013, salesforce.com
|
|
6
|
-
*/var ge;function Le(){return ge||(ge=1,function(
|
|
7
|
-
`;for(var t=v.iterator(this.ops),u=new d,l=0;t.hasNext();){if(t.peekType()!=="insert")return;var a=t.peek(),i=v.length(a)-t.peekLength(),r=typeof a.insert=="string"?a.insert.indexOf(e,i)-i:-1;if(r<0)u.push(t.next());else if(r>0)u.push(t.next(r));else{if(o(u,t.next(1).attributes||{},l)===!1)return;l+=1,u=new d}}u.length()>0&&o(u,{},l)},d.prototype.transform=function(o,e){if(e=!!e,typeof o=="number")return this.transformPosition(o,e);for(var t=v.iterator(this.ops),u=v.iterator(o.ops),l=new d;t.hasNext()||u.hasNext();)if(t.peekType()==="insert"&&(e||u.peekType()!=="insert"))l.retain(v.length(t.next()));else if(u.peekType()==="insert")l.push(u.next());else{var a=Math.min(t.peekLength(),u.peekLength()),i=t.next(a),r=u.next(a);if(i.delete)continue;r.delete?l.push(r):l.retain(a,v.attributes.transform(i.attributes,r.attributes,e))}return l.chop()},d.prototype.transformPosition=function(o,e){e=!!e;for(var t=v.iterator(this.ops),u=0;t.hasNext()&&u<=o;){var l=t.peekLength(),a=t.peekType();if(t.next(),a==="delete"){o-=Math.min(l,o-u);continue}else a==="insert"&&(u<o||!e)&&(o+=l);u+=l}return o},L.exports=d},function(L,
|
|
6
|
+
*/var ge;function Le(){return ge||(ge=1,function(W,E){(function(s,h){W.exports=h()})(typeof self<"u"?self:ye,function(){return function(L){var s={};function h(N){if(s[N])return s[N].exports;var w=s[N]={i:N,l:!1,exports:{}};return L[N].call(w.exports,w,w.exports,h),w.l=!0,w.exports}return h.m=L,h.c=s,h.d=function(N,w,O){h.o(N,w)||Object.defineProperty(N,w,{configurable:!1,enumerable:!0,get:O})},h.n=function(N){var w=N&&N.__esModule?function(){return N.default}:function(){return N};return h.d(w,"a",w),w},h.o=function(N,w){return Object.prototype.hasOwnProperty.call(N,w)},h.p="",h(h.s=109)}([function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=h(17),w=h(18),O=h(19),v=h(45),y=h(46),d=h(47),o=h(48),e=h(49),t=h(12),u=h(32),l=h(33),a=h(31),i=h(1),r={Scope:i.Scope,create:i.create,find:i.find,query:i.query,register:i.register,Container:N.default,Format:w.default,Leaf:O.default,Embed:o.default,Scroll:v.default,Block:d.default,Inline:y.default,Text:e.default,Attributor:{Attribute:t.default,Class:u.default,Style:l.default,Store:a.default}};s.default=r},function(L,s,h){var N=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var f in r)r.hasOwnProperty(f)&&(i[f]=r[f])};return function(i,r){a(i,r);function f(){this.constructor=i}i.prototype=r===null?Object.create(r):(f.prototype=r.prototype,new f)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=function(a){N(i,a);function i(r){var f=this;return r="[Parchment] "+r,f=a.call(this,r)||this,f.message=r,f.name=f.constructor.name,f}return i}(Error);s.ParchmentError=w;var O={},v={},y={},d={};s.DATA_KEY="__blot";var o;(function(a){a[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY"})(o=s.Scope||(s.Scope={}));function e(a,i){var r=u(a);if(r==null)throw new w("Unable to create "+a+" blot");var f=r,n=a instanceof Node||a.nodeType===Node.TEXT_NODE?a:f.create(i);return new f(n,i)}s.create=e;function t(a,i){return i===void 0&&(i=!1),a==null?null:a[s.DATA_KEY]!=null?a[s.DATA_KEY].blot:i?t(a.parentNode,i):null}s.find=t;function u(a,i){i===void 0&&(i=o.ANY);var r;if(typeof a=="string")r=d[a]||O[a];else if(a instanceof Text||a.nodeType===Node.TEXT_NODE)r=d.text;else if(typeof a=="number")a&o.LEVEL&o.BLOCK?r=d.block:a&o.LEVEL&o.INLINE&&(r=d.inline);else if(a instanceof HTMLElement){var f=(a.getAttribute("class")||"").split(/\s+/);for(var n in f)if(r=v[f[n]],r)break;r=r||y[a.tagName]}return r==null?null:i&o.LEVEL&r.scope&&i&o.TYPE&r.scope?r:null}s.query=u;function l(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(a.length>1)return a.map(function(n){return l(n)});var r=a[0];if(typeof r.blotName!="string"&&typeof r.attrName!="string")throw new w("Invalid definition");if(r.blotName==="abstract")throw new w("Cannot register abstract class");if(d[r.blotName||r.attrName]=r,typeof r.keyName=="string")O[r.keyName]=r;else if(r.className!=null&&(v[r.className]=r),r.tagName!=null){Array.isArray(r.tagName)?r.tagName=r.tagName.map(function(n){return n.toUpperCase()}):r.tagName=r.tagName.toUpperCase();var f=Array.isArray(r.tagName)?r.tagName:[r.tagName];f.forEach(function(n){(y[n]==null||r.className==null)&&(y[n]=r)})}return r}s.register=l},function(L,s,h){var N=h(51),w=h(11),O=h(3),v=h(20),y=String.fromCharCode(0),d=function(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]};d.prototype.insert=function(o,e){var t={};return o.length===0?this:(t.insert=o,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t))},d.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},d.prototype.retain=function(o,e){if(o<=0)return this;var t={retain:o};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t)},d.prototype.push=function(o){var e=this.ops.length,t=this.ops[e-1];if(o=O(!0,{},o),typeof t=="object"){if(typeof o.delete=="number"&&typeof t.delete=="number")return this.ops[e-1]={delete:t.delete+o.delete},this;if(typeof t.delete=="number"&&o.insert!=null&&(e-=1,t=this.ops[e-1],typeof t!="object"))return this.ops.unshift(o),this;if(w(o.attributes,t.attributes)){if(typeof o.insert=="string"&&typeof t.insert=="string")return this.ops[e-1]={insert:t.insert+o.insert},typeof o.attributes=="object"&&(this.ops[e-1].attributes=o.attributes),this;if(typeof o.retain=="number"&&typeof t.retain=="number")return this.ops[e-1]={retain:t.retain+o.retain},typeof o.attributes=="object"&&(this.ops[e-1].attributes=o.attributes),this}}return e===this.ops.length?this.ops.push(o):this.ops.splice(e,0,o),this},d.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},d.prototype.filter=function(o){return this.ops.filter(o)},d.prototype.forEach=function(o){this.ops.forEach(o)},d.prototype.map=function(o){return this.ops.map(o)},d.prototype.partition=function(o){var e=[],t=[];return this.forEach(function(u){var l=o(u)?e:t;l.push(u)}),[e,t]},d.prototype.reduce=function(o,e){return this.ops.reduce(o,e)},d.prototype.changeLength=function(){return this.reduce(function(o,e){return e.insert?o+v.length(e):e.delete?o-e.delete:o},0)},d.prototype.length=function(){return this.reduce(function(o,e){return o+v.length(e)},0)},d.prototype.slice=function(o,e){o=o||0,typeof e!="number"&&(e=1/0);for(var t=[],u=v.iterator(this.ops),l=0;l<e&&u.hasNext();){var a;l<o?a=u.next(o-l):(a=u.next(e-l),t.push(a)),l+=v.length(a)}return new d(t)},d.prototype.compose=function(o){var e=v.iterator(this.ops),t=v.iterator(o.ops),u=[],l=t.peek();if(l!=null&&typeof l.retain=="number"&&l.attributes==null){for(var a=l.retain;e.peekType()==="insert"&&e.peekLength()<=a;)a-=e.peekLength(),u.push(e.next());l.retain-a>0&&t.next(l.retain-a)}for(var i=new d(u);e.hasNext()||t.hasNext();)if(t.peekType()==="insert")i.push(t.next());else if(e.peekType()==="delete")i.push(e.next());else{var r=Math.min(e.peekLength(),t.peekLength()),f=e.next(r),n=t.next(r);if(typeof n.retain=="number"){var c={};typeof f.retain=="number"?c.retain=r:c.insert=f.insert;var A=v.attributes.compose(f.attributes,n.attributes,typeof f.retain=="number");if(A&&(c.attributes=A),i.push(c),!t.hasNext()&&w(i.ops[i.ops.length-1],c)){var b=new d(e.rest());return i.concat(b).chop()}}else typeof n.delete=="number"&&typeof f.retain=="number"&&i.push(n)}return i.chop()},d.prototype.concat=function(o){var e=new d(this.ops.slice());return o.ops.length>0&&(e.push(o.ops[0]),e.ops=e.ops.concat(o.ops.slice(1))),e},d.prototype.diff=function(o,e){if(this.ops===o.ops)return new d;var t=[this,o].map(function(r){return r.map(function(f){if(f.insert!=null)return typeof f.insert=="string"?f.insert:y;var n=r===o?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),u=new d,l=N(t[0],t[1],e),a=v.iterator(this.ops),i=v.iterator(o.ops);return l.forEach(function(r){for(var f=r[1].length;f>0;){var n=0;switch(r[0]){case N.INSERT:n=Math.min(i.peekLength(),f),u.push(i.next(n));break;case N.DELETE:n=Math.min(f,a.peekLength()),a.next(n),u.delete(n);break;case N.EQUAL:n=Math.min(a.peekLength(),i.peekLength(),f);var c=a.next(n),A=i.next(n);w(c.insert,A.insert)?u.retain(n,v.attributes.diff(c.attributes,A.attributes)):u.push(A).delete(n);break}f-=n}}),u.chop()},d.prototype.eachLine=function(o,e){e=e||`
|
|
7
|
+
`;for(var t=v.iterator(this.ops),u=new d,l=0;t.hasNext();){if(t.peekType()!=="insert")return;var a=t.peek(),i=v.length(a)-t.peekLength(),r=typeof a.insert=="string"?a.insert.indexOf(e,i)-i:-1;if(r<0)u.push(t.next());else if(r>0)u.push(t.next(r));else{if(o(u,t.next(1).attributes||{},l)===!1)return;l+=1,u=new d}}u.length()>0&&o(u,{},l)},d.prototype.transform=function(o,e){if(e=!!e,typeof o=="number")return this.transformPosition(o,e);for(var t=v.iterator(this.ops),u=v.iterator(o.ops),l=new d;t.hasNext()||u.hasNext();)if(t.peekType()==="insert"&&(e||u.peekType()!=="insert"))l.retain(v.length(t.next()));else if(u.peekType()==="insert")l.push(u.next());else{var a=Math.min(t.peekLength(),u.peekLength()),i=t.next(a),r=u.next(a);if(i.delete)continue;r.delete?l.push(r):l.retain(a,v.attributes.transform(i.attributes,r.attributes,e))}return l.chop()},d.prototype.transformPosition=function(o,e){e=!!e;for(var t=v.iterator(this.ops),u=0;t.hasNext()&&u<=o;){var l=t.peekLength(),a=t.peekType();if(t.next(),a==="delete"){o-=Math.min(l,o-u);continue}else a==="insert"&&(u<o||!e)&&(o+=l);u+=l}return o},L.exports=d},function(L,s){var h=Object.prototype.hasOwnProperty,N=Object.prototype.toString,w=Object.defineProperty,O=Object.getOwnPropertyDescriptor,v=function(t){return typeof Array.isArray=="function"?Array.isArray(t):N.call(t)==="[object Array]"},y=function(t){if(!t||N.call(t)!=="[object Object]")return!1;var u=h.call(t,"constructor"),l=t.constructor&&t.constructor.prototype&&h.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!u&&!l)return!1;var a;for(a in t);return typeof a>"u"||h.call(t,a)},d=function(t,u){w&&u.name==="__proto__"?w(t,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):t[u.name]=u.newValue},o=function(t,u){if(u==="__proto__")if(h.call(t,u)){if(O)return O(t,u).value}else return;return t[u]};L.exports=function e(){var t,u,l,a,i,r,f=arguments[0],n=1,c=arguments.length,A=!1;for(typeof f=="boolean"&&(A=f,f=arguments[1]||{},n=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});n<c;++n)if(t=arguments[n],t!=null)for(u in t)l=o(f,u),a=o(t,u),f!==a&&(A&&a&&(y(a)||(i=v(a)))?(i?(i=!1,r=l&&v(l)?l:[]):r=l&&y(l)?l:{},d(f,{name:u,newValue:e(A,r,a)})):typeof a<"u"&&d(f,{name:u,newValue:a}));return f}},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BlockEmbed=s.bubbleFormats=void 0;var N=function(){function p(m,T){for(var S=0;S<T.length;S++){var R=T[S];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(m,R.key,R)}}return function(m,T,S){return T&&p(m.prototype,T),S&&p(m,S),m}}(),w=function p(m,T,S){m===null&&(m=Function.prototype);var R=Object.getOwnPropertyDescriptor(m,T);if(R===void 0){var B=Object.getPrototypeOf(m);return B===null?void 0:p(B,T,S)}else{if("value"in R)return R.value;var C=R.get;return C===void 0?void 0:C.call(S)}},O=h(3),v=f(O),y=h(2),d=f(y),o=h(0),e=f(o),t=h(16),u=f(t),l=h(6),a=f(l),i=h(7),r=f(i);function f(p){return p&&p.__esModule?p:{default:p}}function n(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function c(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function A(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var b=1,_=function(p){A(m,p);function m(){return n(this,m),c(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return N(m,[{key:"attach",value:function(){w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"attach",this).call(this),this.attributes=new e.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new d.default().insert(this.value(),(0,v.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(S,R){var B=e.default.query(S,e.default.Scope.BLOCK_ATTRIBUTE);B!=null&&this.attributes.attribute(B,R)}},{key:"formatAt",value:function(S,R,B,C){this.format(B,C)}},{key:"insertAt",value:function(S,R,B){if(typeof R=="string"&&R.endsWith(`
|
|
8
8
|
`)){var C=e.default.create(x.blotName);this.parent.insertBefore(C,S===0?this:this.next),C.insertAt(0,R.slice(0,-1))}else w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertAt",this).call(this,S,R,B)}}]),m}(e.default.Embed);_.scope=e.default.Scope.BLOCK_BLOT;var x=function(p){A(m,p);function m(T){n(this,m);var S=c(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,T));return S.cache={},S}return N(m,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(e.default.Leaf).reduce(function(S,R){return R.length()===0?S:S.insert(R.value(),g(R))},new d.default).insert(`
|
|
9
9
|
`,g(this))),this.cache.delta}},{key:"deleteAt",value:function(S,R){w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"deleteAt",this).call(this,S,R),this.cache={}}},{key:"formatAt",value:function(S,R,B,C){R<=0||(e.default.query(B,e.default.Scope.BLOCK)?S+R===this.length()&&this.format(B,C):w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"formatAt",this).call(this,S,Math.min(R,this.length()-S-1),B,C),this.cache={})}},{key:"insertAt",value:function(S,R,B){if(B!=null)return w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertAt",this).call(this,S,R,B);if(R.length!==0){var C=R.split(`
|
|
10
|
-
`),W=C.shift();W.length>0&&(S<this.length()-1||this.children.tail==null?w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertAt",this).call(this,Math.min(S,this.length()-1),W):this.children.tail.insertAt(this.children.tail.length(),W),this.cache={});var F=this;C.reduce(function(j,k){return F=F.split(j,!0),F.insertAt(0,k),k.length},S+W.length)}}},{key:"insertBefore",value:function(S,R){var B=this.children.head;w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertBefore",this).call(this,S,R),B instanceof u.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"length",this).call(this)+b),this.cache.length}},{key:"moveChildren",value:function(S,R){w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"moveChildren",this).call(this,S,R),this.cache={}}},{key:"optimize",value:function(S){w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,S),this.cache={}}},{key:"path",value:function(S){return w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"path",this).call(this,S,!0)}},{key:"removeChild",value:function(S){w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"removeChild",this).call(this,S),this.cache={}}},{key:"split",value:function(S){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R&&(S===0||S>=this.length()-b)){var B=this.clone();return S===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var C=w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"split",this).call(this,S,R);return this.cache={},C}}}]),m}(e.default.Block);x.blotName="block",x.tagName="P",x.defaultChild="break",x.allowedChildren=[a.default,e.default.Embed,r.default];function g(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return p==null||(typeof p.formats=="function"&&(m=(0,v.default)(m,p.formats())),p.parent==null||p.parent.blotName=="scroll"||p.parent.statics.scope!==p.statics.scope)?m:g(p.parent,m)}f.bubbleFormats=g,f.BlockEmbed=_,f.default=x},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.overload=f.expandConfig=void 0;var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},w=function(){function F(j,k){var q=[],D=!0,U=!1,M=void 0;try{for(var P=j[Symbol.iterator](),I;!(D=(I=P.next()).done)&&(q.push(I.value),!(k&&q.length===k));D=!0);}catch($){U=!0,M=$}finally{try{!D&&P.return&&P.return()}finally{if(U)throw M}}return q}return function(j,k){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return F(j,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function F(j,k){for(var q=0;q<k.length;q++){var D=k[q];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(j,D.key,D)}}return function(j,k,q){return k&&F(j.prototype,k),q&&F(j,q),j}}();h(50);var v=h(2),y=g(v),d=h(14),o=g(d),e=h(8),t=g(e),u=h(9),l=g(u),a=h(0),i=g(a),r=h(15),s=g(r),n=h(3),c=g(n),A=h(10),b=g(A),_=h(34),x=g(_);function g(F){return F&&F.__esModule?F:{default:F}}function p(F,j,k){return j in F?Object.defineProperty(F,j,{value:k,enumerable:!0,configurable:!0,writable:!0}):F[j]=k,F}function m(F,j){if(!(F instanceof j))throw new TypeError("Cannot call a class as a function")}var T=(0,b.default)("quill"),S=function(){O(F,null,[{key:"debug",value:function(k){k===!0&&(k="log"),b.default.level(k)}},{key:"find",value:function(k){return k.__quill||i.default.find(k)}},{key:"import",value:function(k){return this.imports[k]==null&&T.error("Cannot import "+k+". Are you sure it was registered?"),this.imports[k]}},{key:"register",value:function(k,q){var D=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof k!="string"){var M=k.attrName||k.blotName;typeof M=="string"?this.register("formats/"+M,k,q):Object.keys(k).forEach(function(P){D.register(P,k[P],q)})}else this.imports[k]!=null&&!U&&T.warn("Overwriting "+k+" with",q),this.imports[k]=q,(k.startsWith("blots/")||k.startsWith("formats/"))&&q.blotName!=="abstract"?i.default.register(q):k.startsWith("modules")&&typeof q.register=="function"&&q.register()}}]);function F(j){var k=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(m(this,F),this.options=R(j,q),this.container=this.options.container,this.container==null)return T.error("Invalid Quill container",j);this.options.debug&&F.debug(this.options.debug);var D=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=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 t.default,this.scroll=i.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o.default(this.scroll),this.selection=new s.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(t.default.events.EDITOR_CHANGE,function(M){M===t.default.events.TEXT_CHANGE&&k.root.classList.toggle("ql-blank",k.editor.isBlank())}),this.emitter.on(t.default.events.SCROLL_UPDATE,function(M,P){var I=k.selection.lastRange,$=I&&I.length===0?I.index:void 0;B.call(k,function(){return k.editor.update(null,P,$)},M)});var U=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+D+"<p><br></p></div>");this.setContents(U),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return O(F,[{key:"addContainer",value:function(k){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof k=="string"){var D=k;k=document.createElement("div"),k.classList.add(D)}return this.container.insertBefore(k,q),k}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(k,q,D){var U=this,M=C(k,q,D),P=w(M,4);return k=P[0],q=P[1],D=P[3],B.call(this,function(){return U.editor.deleteText(k,q)},D,k,-1*q)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(k),this.container.classList.toggle("ql-disabled",!k)}},{key:"focus",value:function(){var k=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=k,this.scrollIntoView()}},{key:"format",value:function(k,q){var D=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.default.sources.API;return B.call(this,function(){var M=D.getSelection(!0),P=new y.default;if(M==null)return P;if(i.default.query(k,i.default.Scope.BLOCK))P=D.editor.formatLine(M.index,M.length,p({},k,q));else{if(M.length===0)return D.selection.format(k,q),P;P=D.editor.formatText(M.index,M.length,p({},k,q))}return D.setSelection(M,t.default.sources.SILENT),P},U)}},{key:"formatLine",value:function(k,q,D,U,M){var P=this,I=void 0,$=C(k,q,D,U,M),H=w($,4);return k=H[0],q=H[1],I=H[2],M=H[3],B.call(this,function(){return P.editor.formatLine(k,q,I)},M,k,0)}},{key:"formatText",value:function(k,q,D,U,M){var P=this,I=void 0,$=C(k,q,D,U,M),H=w($,4);return k=H[0],q=H[1],I=H[2],M=H[3],B.call(this,function(){return P.editor.formatText(k,q,I)},M,k,0)}},{key:"getBounds",value:function(k){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D=void 0;typeof k=="number"?D=this.selection.getBounds(k,q):D=this.selection.getBounds(k.index,k.length);var U=this.container.getBoundingClientRect();return{bottom:D.bottom-U.top,height:D.height,left:D.left-U.left,right:D.right-U.left,top:D.top-U.top,width:D.width}}},{key:"getContents",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,D=C(k,q),U=w(D,2);return k=U[0],q=U[1],this.editor.getContents(k,q)}},{key:"getFormat",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof k=="number"?this.editor.getFormat(k,q):this.editor.getFormat(k.index,k.length)}},{key:"getIndex",value:function(k){return k.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(k){return this.scroll.leaf(k)}},{key:"getLine",value:function(k){return this.scroll.line(k)}},{key:"getLines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof k!="number"?this.scroll.lines(k.index,k.length):this.scroll.lines(k,q)}},{key:"getModule",value:function(k){return this.theme.modules[k]}},{key:"getSelection",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return k&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,D=C(k,q),U=w(D,2);return k=U[0],q=U[1],this.editor.getText(k,q)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(k,q,D){var U=this,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:F.sources.API;return B.call(this,function(){return U.editor.insertEmbed(k,q,D)},M,k)}},{key:"insertText",value:function(k,q,D,U,M){var P=this,I=void 0,$=C(k,0,D,U,M),H=w($,4);return k=H[0],I=H[2],M=H[3],B.call(this,function(){return P.editor.insertText(k,q,I)},M,k,q.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,arguments)}},{key:"pasteHTML",value:function(k,q,D){this.clipboard.dangerouslyPasteHTML(k,q,D)}},{key:"removeFormat",value:function(k,q,D){var U=this,M=C(k,q,D),P=w(M,4);return k=P[0],q=P[1],D=P[3],B.call(this,function(){return U.editor.removeFormat(k,q)},D,k)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(k){var q=this,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return B.call(this,function(){k=new y.default(k);var U=q.getLength(),M=q.editor.deleteText(0,U),P=q.editor.applyDelta(k),I=P.ops[P.ops.length-1];I!=null&&typeof I.insert=="string"&&I.insert[I.insert.length-1]===`
|
|
11
|
-
`&&(q.editor.deleteText(q.getLength()-1,1),P.delete(1));var $=M.compose(P);return $},D)}},{key:"setSelection",value:function(k,q,D){if(k==null)this.selection.setRange(null,q||F.sources.API);else{var U=C(k,q,D),M=w(U,4);k=M[0],q=M[1],D=M[3],this.selection.setRange(new r.Range(k,q),D),D!==t.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(k){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API,D=new y.default().insert(k);return this.setContents(D,q)}},{key:"update",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.default.sources.USER,q=this.scroll.update(k);return this.selection.update(k),q}},{key:"updateContents",value:function(k){var q=this,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return B.call(this,function(){return k=new y.default(k),q.editor.applyDelta(k,D)},D,!0)}}]),F}();S.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},S.events=t.default.events,S.sources=t.default.sources,S.version="1.3.7",S.imports={delta:y.default,parchment:i.default,"core/module":l.default,"core/theme":x.default};function R(F,j){if(j=(0,c.default)(!0,{container:F,modules:{clipboard:!0,keyboard:!0,history:!0}},j),!j.theme||j.theme===S.DEFAULTS.theme)j.theme=x.default;else if(j.theme=S.import("themes/"+j.theme),j.theme==null)throw new Error("Invalid theme "+j.theme+". Did you register it?");var k=(0,c.default)(!0,{},j.theme.DEFAULTS);[k,j].forEach(function(U){U.modules=U.modules||{},Object.keys(U.modules).forEach(function(M){U.modules[M]===!0&&(U.modules[M]={})})});var q=Object.keys(k.modules).concat(Object.keys(j.modules)),D=q.reduce(function(U,M){var P=S.import("modules/"+M);return P==null?T.error("Cannot load "+M+" module. Are you sure you registered it?"):U[M]=P.DEFAULTS||{},U},{});return j.modules!=null&&j.modules.toolbar&&j.modules.toolbar.constructor!==Object&&(j.modules.toolbar={container:j.modules.toolbar}),j=(0,c.default)(!0,{},S.DEFAULTS,{modules:D},k,j),["bounds","container","scrollingContainer"].forEach(function(U){typeof j[U]=="string"&&(j[U]=document.querySelector(j[U]))}),j.modules=Object.keys(j.modules).reduce(function(U,M){return j.modules[M]&&(U[M]=j.modules[M]),U},{}),j}function B(F,j,k,q){if(this.options.strict&&!this.isEnabled()&&j===t.default.sources.USER)return new y.default;var D=k==null?null:this.getSelection(),U=this.editor.delta,M=F();if(D!=null&&(k===!0&&(k=D.index),q==null?D=W(D,M,j):q!==0&&(D=W(D,k,q,j)),this.setSelection(D,t.default.sources.SILENT)),M.length()>0){var P,I=[t.default.events.TEXT_CHANGE,M,U,j];if((P=this.emitter).emit.apply(P,[t.default.events.EDITOR_CHANGE].concat(I)),j!==t.default.sources.SILENT){var $;($=this.emitter).emit.apply($,I)}}return M}function C(F,j,k,q,D){var U={};return typeof F.index=="number"&&typeof F.length=="number"?typeof j!="number"?(D=q,q=k,k=j,j=F.length,F=F.index):(j=F.length,F=F.index):typeof j!="number"&&(D=q,q=k,k=j,j=0),(typeof k>"u"?"undefined":N(k))==="object"?(U=k,D=q):typeof k=="string"&&(q!=null?U[k]=q:D=k),D=D||t.default.sources.API,[F,j,U,D]}function W(F,j,k,q){if(F==null)return null;var D=void 0,U=void 0;if(j instanceof y.default){var M=[F.index,F.index+F.length].map(function(H){return j.transformPosition(H,q!==t.default.sources.USER)}),P=w(M,2);D=P[0],U=P[1]}else{var I=[F.index,F.index+F.length].map(function(H){return H<j||H===j&&q===t.default.sources.USER?H:k>=0?H+k:Math.max(j,H+k)}),$=w(I,2);D=$[0],U=$[1]}return new r.Range(D,U-D)}f.expandConfig=R,f.overload=C,f.default=S},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function a(i,r){for(var s=0;s<r.length;s++){var n=r[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,r,s){return r&&a(i.prototype,r),s&&a(i,s),i}}(),w=function a(i,r,s){i===null&&(i=Function.prototype);var n=Object.getOwnPropertyDescriptor(i,r);if(n===void 0){var c=Object.getPrototypeOf(i);return c===null?void 0:a(c,r,s)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(s)}},O=h(7),v=o(O),y=h(0),d=o(y);function o(a){return a&&a.__esModule?a:{default:a}}function e(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function t(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function u(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var l=function(a){u(i,a);function i(){return e(this,i),t(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return N(i,[{key:"formatAt",value:function(s,n,c,A){if(i.compare(this.statics.blotName,c)<0&&d.default.query(c,d.default.Scope.BLOT)){var b=this.isolate(s,n);A&&b.wrap(c,A)}else w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"formatAt",this).call(this,s,n,c,A)}},{key:"optimize",value:function(s){if(w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"optimize",this).call(this,s),this.parent instanceof i&&i.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(s,n){var c=i.order.indexOf(s),A=i.order.indexOf(n);return c>=0||A>=0?c-A:s===n?0:s<n?-1:1}}]),i}(d.default.Inline);l.allowedChildren=[l,d.default.Embed,v.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],f.default=l},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=h(0),w=O(N);function O(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){d(t,e);function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default.Text);f.default=o},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function r(s,n){for(var c=0;c<n.length;c++){var A=n[c];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(s,A.key,A)}}return function(s,n,c){return n&&r(s.prototype,n),c&&r(s,c),s}}(),w=function r(s,n,c){s===null&&(s=Function.prototype);var A=Object.getOwnPropertyDescriptor(s,n);if(A===void 0){var b=Object.getPrototypeOf(s);return b===null?void 0:r(b,n,c)}else{if("value"in A)return A.value;var _=A.get;return _===void 0?void 0:_.call(c)}},O=h(54),v=o(O),y=h(10),d=o(y);function o(r){return r&&r.__esModule?r:{default:r}}function e(r,s){if(!(r instanceof s))throw new TypeError("Cannot call a class as a function")}function t(r,s){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:r}function u(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);r.prototype=Object.create(s&&s.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(r,s):r.__proto__=s)}var l=(0,d.default)("quill:events"),a=["selectionchange","mousedown","mouseup","click"];a.forEach(function(r){document.addEventListener(r,function(){for(var s=arguments.length,n=Array(s),c=0;c<s;c++)n[c]=arguments[c];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(A){if(A.__quill&&A.__quill.emitter){var b;(b=A.__quill.emitter).handleDOM.apply(b,n)}})})});var i=function(r){u(s,r);function s(){e(this,s);var n=t(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));return n.listeners={},n.on("error",l.error),n}return N(s,[{key:"emit",value:function(){l.log.apply(l,arguments),w(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(c){for(var A=arguments.length,b=Array(A>1?A-1:0),_=1;_<A;_++)b[_-1]=arguments[_];(this.listeners[c.type]||[]).forEach(function(x){var g=x.node,p=x.handler;(c.target===g||g.contains(c.target))&&p.apply(void 0,[c].concat(b))})}},{key:"listenDOM",value:function(c,A,b){this.listeners[c]||(this.listeners[c]=[]),this.listeners[c].push({node:A,handler:b})}}]),s}(v.default);i.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"},i.sources={API:"api",SILENT:"silent",USER:"user"},f.default=i},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});function N(O,v){if(!(O instanceof v))throw new TypeError("Cannot call a class as a function")}var w=function O(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};N(this,O),this.quill=v,this.options=y};w.DEFAULTS={},f.default=w},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=["error","warn","log","info"],w="warn";function O(y){if(N.indexOf(y)<=N.indexOf(w)){for(var d,o=arguments.length,e=Array(o>1?o-1:0),t=1;t<o;t++)e[t-1]=arguments[t];(d=console)[y].apply(d,e)}}function v(y){return N.reduce(function(d,o){return d[o]=O.bind(console,o,y),d},{})}O.level=v.level=function(y){w=y},f.default=v},function(L,f,h){var N=Array.prototype.slice,w=h(52),O=h(53),v=L.exports=function(e,t,u){return u||(u={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||typeof e!="object"&&typeof t!="object"?u.strict?e===t:e==t:o(e,t,u)};function y(e){return e==null}function d(e){return!(!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number")}function o(e,t,u){var l,a;if(y(e)||y(t)||e.prototype!==t.prototype)return!1;if(O(e))return O(t)?(e=N.call(e),t=N.call(t),v(e,t,u)):!1;if(d(e)){if(!d(t)||e.length!==t.length)return!1;for(l=0;l<e.length;l++)if(e[l]!==t[l])return!1;return!0}try{var i=w(e),r=w(t)}catch{return!1}if(i.length!=r.length)return!1;for(i.sort(),r.sort(),l=i.length-1;l>=0;l--)if(i[l]!=r[l])return!1;for(l=i.length-1;l>=0;l--)if(a=i[l],!v(e[a],t[a],u))return!1;return typeof e==typeof t}},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=h(1),w=function(){function O(v,y,d){d===void 0&&(d={}),this.attrName=v,this.keyName=y;var o=N.Scope.TYPE&N.Scope.ATTRIBUTE;d.scope!=null?this.scope=d.scope&N.Scope.LEVEL|o:this.scope=N.Scope.ATTRIBUTE,d.whitelist!=null&&(this.whitelist=d.whitelist)}return O.keys=function(v){return[].map.call(v.attributes,function(y){return y.name})},O.prototype.add=function(v,y){return this.canAdd(v,y)?(v.setAttribute(this.keyName,y),!0):!1},O.prototype.canAdd=function(v,y){var d=N.query(v,N.Scope.BLOT&(this.scope|N.Scope.TYPE));return d==null?!1:this.whitelist==null?!0:typeof y=="string"?this.whitelist.indexOf(y.replace(/["']/g,""))>-1:this.whitelist.indexOf(y)>-1},O.prototype.remove=function(v){v.removeAttribute(this.keyName)},O.prototype.value=function(v){var y=v.getAttribute(this.keyName);return this.canAdd(v,y)&&y?y:""},O}();f.default=w},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.Code=void 0;var N=function(){function _(x,g){var p=[],m=!0,T=!1,S=void 0;try{for(var R=x[Symbol.iterator](),B;!(m=(B=R.next()).done)&&(p.push(B.value),!(g&&p.length===g));m=!0);}catch(C){T=!0,S=C}finally{try{!m&&R.return&&R.return()}finally{if(T)throw S}}return p}return function(x,g){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return _(x,g);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function _(x,g){for(var p=0;p<g.length;p++){var m=g[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(x,m.key,m)}}return function(x,g,p){return g&&_(x.prototype,g),p&&_(x,p),x}}(),O=function _(x,g,p){x===null&&(x=Function.prototype);var m=Object.getOwnPropertyDescriptor(x,g);if(m===void 0){var T=Object.getPrototypeOf(x);return T===null?void 0:_(T,g,p)}else{if("value"in m)return m.value;var S=m.get;return S===void 0?void 0:S.call(p)}},v=h(2),y=r(v),d=h(0),o=r(d),e=h(4),t=r(e),u=h(6),l=r(u),a=h(7),i=r(a);function r(_){return _&&_.__esModule?_:{default:_}}function s(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")}function n(_,x){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:_}function c(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(_,x):_.__proto__=x)}var A=function(_){c(x,_);function x(){return s(this,x),n(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return x}(l.default);A.blotName="code",A.tagName="CODE";var b=function(_){c(x,_);function x(){return s(this,x),n(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return w(x,[{key:"delta",value:function(){var p=this,m=this.domNode.textContent;return m.endsWith(`
|
|
10
|
+
`),Z=C.shift();Z.length>0&&(S<this.length()-1||this.children.tail==null?w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertAt",this).call(this,Math.min(S,this.length()-1),Z):this.children.tail.insertAt(this.children.tail.length(),Z),this.cache={});var F=this;C.reduce(function(j,k){return F=F.split(j,!0),F.insertAt(0,k),k.length},S+Z.length)}}},{key:"insertBefore",value:function(S,R){var B=this.children.head;w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertBefore",this).call(this,S,R),B instanceof u.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"length",this).call(this)+b),this.cache.length}},{key:"moveChildren",value:function(S,R){w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"moveChildren",this).call(this,S,R),this.cache={}}},{key:"optimize",value:function(S){w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,S),this.cache={}}},{key:"path",value:function(S){return w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"path",this).call(this,S,!0)}},{key:"removeChild",value:function(S){w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"removeChild",this).call(this,S),this.cache={}}},{key:"split",value:function(S){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R&&(S===0||S>=this.length()-b)){var B=this.clone();return S===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var C=w(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"split",this).call(this,S,R);return this.cache={},C}}}]),m}(e.default.Block);x.blotName="block",x.tagName="P",x.defaultChild="break",x.allowedChildren=[a.default,e.default.Embed,r.default];function g(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return p==null||(typeof p.formats=="function"&&(m=(0,v.default)(m,p.formats())),p.parent==null||p.parent.blotName=="scroll"||p.parent.statics.scope!==p.statics.scope)?m:g(p.parent,m)}s.bubbleFormats=g,s.BlockEmbed=_,s.default=x},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.overload=s.expandConfig=void 0;var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},w=function(){function F(j,k){var q=[],D=!0,U=!1,M=void 0;try{for(var P=j[Symbol.iterator](),I;!(D=(I=P.next()).done)&&(q.push(I.value),!(k&&q.length===k));D=!0);}catch($){U=!0,M=$}finally{try{!D&&P.return&&P.return()}finally{if(U)throw M}}return q}return function(j,k){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return F(j,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function F(j,k){for(var q=0;q<k.length;q++){var D=k[q];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(j,D.key,D)}}return function(j,k,q){return k&&F(j.prototype,k),q&&F(j,q),j}}();h(50);var v=h(2),y=g(v),d=h(14),o=g(d),e=h(8),t=g(e),u=h(9),l=g(u),a=h(0),i=g(a),r=h(15),f=g(r),n=h(3),c=g(n),A=h(10),b=g(A),_=h(34),x=g(_);function g(F){return F&&F.__esModule?F:{default:F}}function p(F,j,k){return j in F?Object.defineProperty(F,j,{value:k,enumerable:!0,configurable:!0,writable:!0}):F[j]=k,F}function m(F,j){if(!(F instanceof j))throw new TypeError("Cannot call a class as a function")}var T=(0,b.default)("quill"),S=function(){O(F,null,[{key:"debug",value:function(k){k===!0&&(k="log"),b.default.level(k)}},{key:"find",value:function(k){return k.__quill||i.default.find(k)}},{key:"import",value:function(k){return this.imports[k]==null&&T.error("Cannot import "+k+". Are you sure it was registered?"),this.imports[k]}},{key:"register",value:function(k,q){var D=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof k!="string"){var M=k.attrName||k.blotName;typeof M=="string"?this.register("formats/"+M,k,q):Object.keys(k).forEach(function(P){D.register(P,k[P],q)})}else this.imports[k]!=null&&!U&&T.warn("Overwriting "+k+" with",q),this.imports[k]=q,(k.startsWith("blots/")||k.startsWith("formats/"))&&q.blotName!=="abstract"?i.default.register(q):k.startsWith("modules")&&typeof q.register=="function"&&q.register()}}]);function F(j){var k=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(m(this,F),this.options=R(j,q),this.container=this.options.container,this.container==null)return T.error("Invalid Quill container",j);this.options.debug&&F.debug(this.options.debug);var D=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=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 t.default,this.scroll=i.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(t.default.events.EDITOR_CHANGE,function(M){M===t.default.events.TEXT_CHANGE&&k.root.classList.toggle("ql-blank",k.editor.isBlank())}),this.emitter.on(t.default.events.SCROLL_UPDATE,function(M,P){var I=k.selection.lastRange,$=I&&I.length===0?I.index:void 0;B.call(k,function(){return k.editor.update(null,P,$)},M)});var U=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+D+"<p><br></p></div>");this.setContents(U),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return O(F,[{key:"addContainer",value:function(k){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof k=="string"){var D=k;k=document.createElement("div"),k.classList.add(D)}return this.container.insertBefore(k,q),k}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(k,q,D){var U=this,M=C(k,q,D),P=w(M,4);return k=P[0],q=P[1],D=P[3],B.call(this,function(){return U.editor.deleteText(k,q)},D,k,-1*q)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(k),this.container.classList.toggle("ql-disabled",!k)}},{key:"focus",value:function(){var k=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=k,this.scrollIntoView()}},{key:"format",value:function(k,q){var D=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.default.sources.API;return B.call(this,function(){var M=D.getSelection(!0),P=new y.default;if(M==null)return P;if(i.default.query(k,i.default.Scope.BLOCK))P=D.editor.formatLine(M.index,M.length,p({},k,q));else{if(M.length===0)return D.selection.format(k,q),P;P=D.editor.formatText(M.index,M.length,p({},k,q))}return D.setSelection(M,t.default.sources.SILENT),P},U)}},{key:"formatLine",value:function(k,q,D,U,M){var P=this,I=void 0,$=C(k,q,D,U,M),H=w($,4);return k=H[0],q=H[1],I=H[2],M=H[3],B.call(this,function(){return P.editor.formatLine(k,q,I)},M,k,0)}},{key:"formatText",value:function(k,q,D,U,M){var P=this,I=void 0,$=C(k,q,D,U,M),H=w($,4);return k=H[0],q=H[1],I=H[2],M=H[3],B.call(this,function(){return P.editor.formatText(k,q,I)},M,k,0)}},{key:"getBounds",value:function(k){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D=void 0;typeof k=="number"?D=this.selection.getBounds(k,q):D=this.selection.getBounds(k.index,k.length);var U=this.container.getBoundingClientRect();return{bottom:D.bottom-U.top,height:D.height,left:D.left-U.left,right:D.right-U.left,top:D.top-U.top,width:D.width}}},{key:"getContents",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,D=C(k,q),U=w(D,2);return k=U[0],q=U[1],this.editor.getContents(k,q)}},{key:"getFormat",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof k=="number"?this.editor.getFormat(k,q):this.editor.getFormat(k.index,k.length)}},{key:"getIndex",value:function(k){return k.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(k){return this.scroll.leaf(k)}},{key:"getLine",value:function(k){return this.scroll.line(k)}},{key:"getLines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof k!="number"?this.scroll.lines(k.index,k.length):this.scroll.lines(k,q)}},{key:"getModule",value:function(k){return this.theme.modules[k]}},{key:"getSelection",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return k&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,D=C(k,q),U=w(D,2);return k=U[0],q=U[1],this.editor.getText(k,q)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(k,q,D){var U=this,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:F.sources.API;return B.call(this,function(){return U.editor.insertEmbed(k,q,D)},M,k)}},{key:"insertText",value:function(k,q,D,U,M){var P=this,I=void 0,$=C(k,0,D,U,M),H=w($,4);return k=H[0],I=H[2],M=H[3],B.call(this,function(){return P.editor.insertText(k,q,I)},M,k,q.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,arguments)}},{key:"pasteHTML",value:function(k,q,D){this.clipboard.dangerouslyPasteHTML(k,q,D)}},{key:"removeFormat",value:function(k,q,D){var U=this,M=C(k,q,D),P=w(M,4);return k=P[0],q=P[1],D=P[3],B.call(this,function(){return U.editor.removeFormat(k,q)},D,k)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(k){var q=this,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return B.call(this,function(){k=new y.default(k);var U=q.getLength(),M=q.editor.deleteText(0,U),P=q.editor.applyDelta(k),I=P.ops[P.ops.length-1];I!=null&&typeof I.insert=="string"&&I.insert[I.insert.length-1]===`
|
|
11
|
+
`&&(q.editor.deleteText(q.getLength()-1,1),P.delete(1));var $=M.compose(P);return $},D)}},{key:"setSelection",value:function(k,q,D){if(k==null)this.selection.setRange(null,q||F.sources.API);else{var U=C(k,q,D),M=w(U,4);k=M[0],q=M[1],D=M[3],this.selection.setRange(new r.Range(k,q),D),D!==t.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(k){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API,D=new y.default().insert(k);return this.setContents(D,q)}},{key:"update",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.default.sources.USER,q=this.scroll.update(k);return this.selection.update(k),q}},{key:"updateContents",value:function(k){var q=this,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return B.call(this,function(){return k=new y.default(k),q.editor.applyDelta(k,D)},D,!0)}}]),F}();S.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},S.events=t.default.events,S.sources=t.default.sources,S.version="1.3.7",S.imports={delta:y.default,parchment:i.default,"core/module":l.default,"core/theme":x.default};function R(F,j){if(j=(0,c.default)(!0,{container:F,modules:{clipboard:!0,keyboard:!0,history:!0}},j),!j.theme||j.theme===S.DEFAULTS.theme)j.theme=x.default;else if(j.theme=S.import("themes/"+j.theme),j.theme==null)throw new Error("Invalid theme "+j.theme+". Did you register it?");var k=(0,c.default)(!0,{},j.theme.DEFAULTS);[k,j].forEach(function(U){U.modules=U.modules||{},Object.keys(U.modules).forEach(function(M){U.modules[M]===!0&&(U.modules[M]={})})});var q=Object.keys(k.modules).concat(Object.keys(j.modules)),D=q.reduce(function(U,M){var P=S.import("modules/"+M);return P==null?T.error("Cannot load "+M+" module. Are you sure you registered it?"):U[M]=P.DEFAULTS||{},U},{});return j.modules!=null&&j.modules.toolbar&&j.modules.toolbar.constructor!==Object&&(j.modules.toolbar={container:j.modules.toolbar}),j=(0,c.default)(!0,{},S.DEFAULTS,{modules:D},k,j),["bounds","container","scrollingContainer"].forEach(function(U){typeof j[U]=="string"&&(j[U]=document.querySelector(j[U]))}),j.modules=Object.keys(j.modules).reduce(function(U,M){return j.modules[M]&&(U[M]=j.modules[M]),U},{}),j}function B(F,j,k,q){if(this.options.strict&&!this.isEnabled()&&j===t.default.sources.USER)return new y.default;var D=k==null?null:this.getSelection(),U=this.editor.delta,M=F();if(D!=null&&(k===!0&&(k=D.index),q==null?D=Z(D,M,j):q!==0&&(D=Z(D,k,q,j)),this.setSelection(D,t.default.sources.SILENT)),M.length()>0){var P,I=[t.default.events.TEXT_CHANGE,M,U,j];if((P=this.emitter).emit.apply(P,[t.default.events.EDITOR_CHANGE].concat(I)),j!==t.default.sources.SILENT){var $;($=this.emitter).emit.apply($,I)}}return M}function C(F,j,k,q,D){var U={};return typeof F.index=="number"&&typeof F.length=="number"?typeof j!="number"?(D=q,q=k,k=j,j=F.length,F=F.index):(j=F.length,F=F.index):typeof j!="number"&&(D=q,q=k,k=j,j=0),(typeof k>"u"?"undefined":N(k))==="object"?(U=k,D=q):typeof k=="string"&&(q!=null?U[k]=q:D=k),D=D||t.default.sources.API,[F,j,U,D]}function Z(F,j,k,q){if(F==null)return null;var D=void 0,U=void 0;if(j instanceof y.default){var M=[F.index,F.index+F.length].map(function(H){return j.transformPosition(H,q!==t.default.sources.USER)}),P=w(M,2);D=P[0],U=P[1]}else{var I=[F.index,F.index+F.length].map(function(H){return H<j||H===j&&q===t.default.sources.USER?H:k>=0?H+k:Math.max(j,H+k)}),$=w(I,2);D=$[0],U=$[1]}return new r.Range(D,U-D)}s.expandConfig=R,s.overload=C,s.default=S},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function a(i,r){for(var f=0;f<r.length;f++){var n=r[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,r,f){return r&&a(i.prototype,r),f&&a(i,f),i}}(),w=function a(i,r,f){i===null&&(i=Function.prototype);var n=Object.getOwnPropertyDescriptor(i,r);if(n===void 0){var c=Object.getPrototypeOf(i);return c===null?void 0:a(c,r,f)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(f)}},O=h(7),v=o(O),y=h(0),d=o(y);function o(a){return a&&a.__esModule?a:{default:a}}function e(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function t(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function u(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var l=function(a){u(i,a);function i(){return e(this,i),t(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return N(i,[{key:"formatAt",value:function(f,n,c,A){if(i.compare(this.statics.blotName,c)<0&&d.default.query(c,d.default.Scope.BLOT)){var b=this.isolate(f,n);A&&b.wrap(c,A)}else w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"formatAt",this).call(this,f,n,c,A)}},{key:"optimize",value:function(f){if(w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"optimize",this).call(this,f),this.parent instanceof i&&i.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(f,n){var c=i.order.indexOf(f),A=i.order.indexOf(n);return c>=0||A>=0?c-A:f===n?0:f<n?-1:1}}]),i}(d.default.Inline);l.allowedChildren=[l,d.default.Embed,v.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],s.default=l},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=h(0),w=O(N);function O(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){d(t,e);function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default.Text);s.default=o},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function r(f,n){for(var c=0;c<n.length;c++){var A=n[c];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(f,A.key,A)}}return function(f,n,c){return n&&r(f.prototype,n),c&&r(f,c),f}}(),w=function r(f,n,c){f===null&&(f=Function.prototype);var A=Object.getOwnPropertyDescriptor(f,n);if(A===void 0){var b=Object.getPrototypeOf(f);return b===null?void 0:r(b,n,c)}else{if("value"in A)return A.value;var _=A.get;return _===void 0?void 0:_.call(c)}},O=h(54),v=o(O),y=h(10),d=o(y);function o(r){return r&&r.__esModule?r:{default:r}}function e(r,f){if(!(r instanceof f))throw new TypeError("Cannot call a class as a function")}function t(r,f){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:r}function u(r,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);r.prototype=Object.create(f&&f.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(r,f):r.__proto__=f)}var l=(0,d.default)("quill:events"),a=["selectionchange","mousedown","mouseup","click"];a.forEach(function(r){document.addEventListener(r,function(){for(var f=arguments.length,n=Array(f),c=0;c<f;c++)n[c]=arguments[c];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(A){if(A.__quill&&A.__quill.emitter){var b;(b=A.__quill.emitter).handleDOM.apply(b,n)}})})});var i=function(r){u(f,r);function f(){e(this,f);var n=t(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return n.listeners={},n.on("error",l.error),n}return N(f,[{key:"emit",value:function(){l.log.apply(l,arguments),w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(c){for(var A=arguments.length,b=Array(A>1?A-1:0),_=1;_<A;_++)b[_-1]=arguments[_];(this.listeners[c.type]||[]).forEach(function(x){var g=x.node,p=x.handler;(c.target===g||g.contains(c.target))&&p.apply(void 0,[c].concat(b))})}},{key:"listenDOM",value:function(c,A,b){this.listeners[c]||(this.listeners[c]=[]),this.listeners[c].push({node:A,handler:b})}}]),f}(v.default);i.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"},i.sources={API:"api",SILENT:"silent",USER:"user"},s.default=i},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});function N(O,v){if(!(O instanceof v))throw new TypeError("Cannot call a class as a function")}var w=function O(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};N(this,O),this.quill=v,this.options=y};w.DEFAULTS={},s.default=w},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=["error","warn","log","info"],w="warn";function O(y){if(N.indexOf(y)<=N.indexOf(w)){for(var d,o=arguments.length,e=Array(o>1?o-1:0),t=1;t<o;t++)e[t-1]=arguments[t];(d=console)[y].apply(d,e)}}function v(y){return N.reduce(function(d,o){return d[o]=O.bind(console,o,y),d},{})}O.level=v.level=function(y){w=y},s.default=v},function(L,s,h){var N=Array.prototype.slice,w=h(52),O=h(53),v=L.exports=function(e,t,u){return u||(u={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||typeof e!="object"&&typeof t!="object"?u.strict?e===t:e==t:o(e,t,u)};function y(e){return e==null}function d(e){return!(!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number")}function o(e,t,u){var l,a;if(y(e)||y(t)||e.prototype!==t.prototype)return!1;if(O(e))return O(t)?(e=N.call(e),t=N.call(t),v(e,t,u)):!1;if(d(e)){if(!d(t)||e.length!==t.length)return!1;for(l=0;l<e.length;l++)if(e[l]!==t[l])return!1;return!0}try{var i=w(e),r=w(t)}catch{return!1}if(i.length!=r.length)return!1;for(i.sort(),r.sort(),l=i.length-1;l>=0;l--)if(i[l]!=r[l])return!1;for(l=i.length-1;l>=0;l--)if(a=i[l],!v(e[a],t[a],u))return!1;return typeof e==typeof t}},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=h(1),w=function(){function O(v,y,d){d===void 0&&(d={}),this.attrName=v,this.keyName=y;var o=N.Scope.TYPE&N.Scope.ATTRIBUTE;d.scope!=null?this.scope=d.scope&N.Scope.LEVEL|o:this.scope=N.Scope.ATTRIBUTE,d.whitelist!=null&&(this.whitelist=d.whitelist)}return O.keys=function(v){return[].map.call(v.attributes,function(y){return y.name})},O.prototype.add=function(v,y){return this.canAdd(v,y)?(v.setAttribute(this.keyName,y),!0):!1},O.prototype.canAdd=function(v,y){var d=N.query(v,N.Scope.BLOT&(this.scope|N.Scope.TYPE));return d==null?!1:this.whitelist==null?!0:typeof y=="string"?this.whitelist.indexOf(y.replace(/["']/g,""))>-1:this.whitelist.indexOf(y)>-1},O.prototype.remove=function(v){v.removeAttribute(this.keyName)},O.prototype.value=function(v){var y=v.getAttribute(this.keyName);return this.canAdd(v,y)&&y?y:""},O}();s.default=w},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.Code=void 0;var N=function(){function _(x,g){var p=[],m=!0,T=!1,S=void 0;try{for(var R=x[Symbol.iterator](),B;!(m=(B=R.next()).done)&&(p.push(B.value),!(g&&p.length===g));m=!0);}catch(C){T=!0,S=C}finally{try{!m&&R.return&&R.return()}finally{if(T)throw S}}return p}return function(x,g){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return _(x,g);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function _(x,g){for(var p=0;p<g.length;p++){var m=g[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(x,m.key,m)}}return function(x,g,p){return g&&_(x.prototype,g),p&&_(x,p),x}}(),O=function _(x,g,p){x===null&&(x=Function.prototype);var m=Object.getOwnPropertyDescriptor(x,g);if(m===void 0){var T=Object.getPrototypeOf(x);return T===null?void 0:_(T,g,p)}else{if("value"in m)return m.value;var S=m.get;return S===void 0?void 0:S.call(p)}},v=h(2),y=r(v),d=h(0),o=r(d),e=h(4),t=r(e),u=h(6),l=r(u),a=h(7),i=r(a);function r(_){return _&&_.__esModule?_:{default:_}}function f(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")}function n(_,x){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:_}function c(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(_,x):_.__proto__=x)}var A=function(_){c(x,_);function x(){return f(this,x),n(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return x}(l.default);A.blotName="code",A.tagName="CODE";var b=function(_){c(x,_);function x(){return f(this,x),n(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return w(x,[{key:"delta",value:function(){var p=this,m=this.domNode.textContent;return m.endsWith(`
|
|
12
12
|
`)&&(m=m.slice(0,-1)),m.split(`
|
|
13
13
|
`).reduce(function(T,S){return T.insert(S).insert(`
|
|
14
|
-
`,p.formats())},new y.default)}},{key:"format",value:function(p,m){if(!(p===this.statics.blotName&&m)){var T=this.descendant(i.default,this.length()-1),S=N(T,1),R=S[0];R!=null&&R.deleteAt(R.length()-1,1),O(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,p,m)}}},{key:"formatAt",value:function(p,m,T,S){if(m!==0&&!(o.default.query(T,o.default.Scope.BLOCK)==null||T===this.statics.blotName&&S===this.statics.formats(this.domNode))){var R=this.newlineIndex(p);if(!(R<0||R>=p+m)){var B=this.newlineIndex(p,!0)+1,C=R-B+1,
|
|
14
|
+
`,p.formats())},new y.default)}},{key:"format",value:function(p,m){if(!(p===this.statics.blotName&&m)){var T=this.descendant(i.default,this.length()-1),S=N(T,1),R=S[0];R!=null&&R.deleteAt(R.length()-1,1),O(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,p,m)}}},{key:"formatAt",value:function(p,m,T,S){if(m!==0&&!(o.default.query(T,o.default.Scope.BLOCK)==null||T===this.statics.blotName&&S===this.statics.formats(this.domNode))){var R=this.newlineIndex(p);if(!(R<0||R>=p+m)){var B=this.newlineIndex(p,!0)+1,C=R-B+1,Z=this.isolate(B,C),F=Z.next;Z.format(T,S),F instanceof x&&F.formatAt(0,p-B+m-C,T,S)}}}},{key:"insertAt",value:function(p,m,T){if(T==null){var S=this.descendant(i.default,p),R=N(S,2),B=R[0],C=R[1];B.insertAt(C,m)}}},{key:"length",value:function(){var p=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
|
|
15
15
|
`)?p:p+1}},{key:"newlineIndex",value:function(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(m)return this.domNode.textContent.slice(0,p).lastIndexOf(`
|
|
16
16
|
`);var T=this.domNode.textContent.slice(p).indexOf(`
|
|
17
17
|
`);return T>-1?p+T:-1}},{key:"optimize",value:function(p){this.domNode.textContent.endsWith(`
|
|
18
18
|
`)||this.appendChild(o.default.create("text",`
|
|
19
|
-
`)),O(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,p);var m=this.next;m!=null&&m.prev===this&&m.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===m.statics.formats(m.domNode)&&(m.optimize(p),m.moveChildren(this),m.remove())}},{key:"replace",value:function(p){O(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replace",this).call(this,p),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(m){var T=o.default.find(m);T==null?m.parentNode.removeChild(m):T instanceof o.default.Embed?T.remove():T.unwrap()})}}],[{key:"create",value:function(p){var m=O(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,p);return m.setAttribute("spellcheck",!1),m}},{key:"formats",value:function(){return!0}}]),x}(t.default);b.blotName="code-block",b.tagName="PRE",b.TAB=" ",
|
|
19
|
+
`)),O(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,p);var m=this.next;m!=null&&m.prev===this&&m.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===m.statics.formats(m.domNode)&&(m.optimize(p),m.moveChildren(this),m.remove())}},{key:"replace",value:function(p){O(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replace",this).call(this,p),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(m){var T=o.default.find(m);T==null?m.parentNode.removeChild(m):T instanceof o.default.Embed?T.remove():T.unwrap()})}}],[{key:"create",value:function(p){var m=O(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,p);return m.setAttribute("spellcheck",!1),m}},{key:"formats",value:function(){return!0}}]),x}(t.default);b.blotName="code-block",b.tagName="PRE",b.TAB=" ",s.Code=A,s.default=b},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},w=function(){function F(j,k){var q=[],D=!0,U=!1,M=void 0;try{for(var P=j[Symbol.iterator](),I;!(D=(I=P.next()).done)&&(q.push(I.value),!(k&&q.length===k));D=!0);}catch($){U=!0,M=$}finally{try{!D&&P.return&&P.return()}finally{if(U)throw M}}return q}return function(j,k){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return F(j,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function F(j,k){for(var q=0;q<k.length;q++){var D=k[q];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(j,D.key,D)}}return function(j,k,q){return k&&F(j.prototype,k),q&&F(j,q),j}}(),v=h(2),y=m(v),d=h(20),o=m(d),e=h(0),t=m(e),u=h(13),l=m(u),a=h(24),i=m(a),r=h(4),f=m(r),n=h(16),c=m(n),A=h(21),b=m(A),_=h(11),x=m(_),g=h(3),p=m(g);function m(F){return F&&F.__esModule?F:{default:F}}function T(F,j,k){return j in F?Object.defineProperty(F,j,{value:k,enumerable:!0,configurable:!0,writable:!0}):F[j]=k,F}function S(F,j){if(!(F instanceof j))throw new TypeError("Cannot call a class as a function")}var R=/^[ -~]*$/,B=function(){function F(j){S(this,F),this.scroll=j,this.delta=this.getDelta()}return O(F,[{key:"applyDelta",value:function(k){var q=this,D=!1;this.scroll.update();var U=this.scroll.length();return this.scroll.batchStart(),k=Z(k),k.reduce(function(M,P){var I=P.retain||P.delete||P.insert.length||1,$=P.attributes||{};if(P.insert!=null){if(typeof P.insert=="string"){var H=P.insert;H.endsWith(`
|
|
20
20
|
`)&&D&&(D=!1,H=H.slice(0,-1)),M>=U&&!H.endsWith(`
|
|
21
|
-
`)&&(D=!0),q.scroll.insertAt(M,H);var V=q.scroll.line(M),X=w(V,2),J=X[0],ee=X[1],ie=(0,p.default)({},(0,r.bubbleFormats)(J));if(J instanceof
|
|
21
|
+
`)&&(D=!0),q.scroll.insertAt(M,H);var V=q.scroll.line(M),X=w(V,2),J=X[0],ee=X[1],ie=(0,p.default)({},(0,r.bubbleFormats)(J));if(J instanceof f.default){var oe=J.descendant(t.default.Leaf,ee),se=w(oe,1),ue=se[0];ie=(0,p.default)(ie,(0,r.bubbleFormats)(ue))}$=o.default.attributes.diff(ie,$)||{}}else if(N(P.insert)==="object"){var z=Object.keys(P.insert)[0];if(z==null)return M;q.scroll.insertAt(M,z,P.insert[z])}U+=I}return Object.keys($).forEach(function(K){q.scroll.formatAt(M,I,K,$[K])}),M+I},0),k.reduce(function(M,P){return typeof P.delete=="number"?(q.scroll.deleteAt(M,P.delete),M):M+(P.retain||P.insert.length||1)},0),this.scroll.batchEnd(),this.update(k)}},{key:"deleteText",value:function(k,q){return this.scroll.deleteAt(k,q),this.update(new y.default().retain(k).delete(q))}},{key:"formatLine",value:function(k,q){var D=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(U).forEach(function(M){if(!(D.scroll.whitelist!=null&&!D.scroll.whitelist[M])){var P=D.scroll.lines(k,Math.max(q,1)),I=q;P.forEach(function($){var H=$.length();if(!($ instanceof l.default))$.format(M,U[M]);else{var V=k-$.offset(D.scroll),X=$.newlineIndex(V+I)-V+1;$.formatAt(V,X,M,U[M])}I-=H})}}),this.scroll.optimize(),this.update(new y.default().retain(k).retain(q,(0,b.default)(U)))}},{key:"formatText",value:function(k,q){var D=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(U).forEach(function(M){D.scroll.formatAt(k,q,M,U[M])}),this.update(new y.default().retain(k).retain(q,(0,b.default)(U)))}},{key:"getContents",value:function(k,q){return this.delta.slice(k,k+q)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(k,q){return k.concat(q.delta())},new y.default)}},{key:"getFormat",value:function(k){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D=[],U=[];q===0?this.scroll.path(k).forEach(function(P){var I=w(P,1),$=I[0];$ instanceof f.default?D.push($):$ instanceof t.default.Leaf&&U.push($)}):(D=this.scroll.lines(k,q),U=this.scroll.descendants(t.default.Leaf,k,q));var M=[D,U].map(function(P){if(P.length===0)return{};for(var I=(0,r.bubbleFormats)(P.shift());Object.keys(I).length>0;){var $=P.shift();if($==null)return I;I=C((0,r.bubbleFormats)($),I)}return I});return p.default.apply(p.default,M)}},{key:"getText",value:function(k,q){return this.getContents(k,q).filter(function(D){return typeof D.insert=="string"}).map(function(D){return D.insert}).join("")}},{key:"insertEmbed",value:function(k,q,D){return this.scroll.insertAt(k,q,D),this.update(new y.default().retain(k).insert(T({},q,D)))}},{key:"insertText",value:function(k,q){var D=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return q=q.replace(/\r\n/g,`
|
|
22
22
|
`).replace(/\r/g,`
|
|
23
|
-
`),this.scroll.insertAt(k,q),Object.keys(U).forEach(function(M){D.scroll.formatAt(k,q.length,M,U[M])}),this.update(new y.default().retain(k).insert(q,(0,b.default)(U)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var k=this.scroll.children.head;return k.statics.blotName!==
|
|
24
|
-
`));var V=this.getContents(k,q+$),X=V.diff(new y.default().insert(D).concat(H)),J=new y.default().retain(k).concat(X);return this.applyDelta(J)}},{key:"update",value:function(k){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,U=this.delta;if(q.length===1&&q[0].type==="characterData"&&q[0].target.data.match(R)&&t.default.find(q[0].target)){var M=t.default.find(q[0].target),P=(0,r.bubbleFormats)(M),I=M.offset(this.scroll),$=q[0].oldValue.replace(i.default.CONTENTS,""),H=new y.default().insert($),V=new y.default().insert(M.value()),X=new y.default().retain(I).concat(H.diff(V,D));k=X.reduce(function(J,ee){return ee.insert?J.insert(ee.insert,P):J.push(ee)},new y.default),this.delta=U.compose(k)}else this.delta=this.getDelta(),(!k||!(0,x.default)(U.compose(k),this.delta))&&(k=U.diff(this.delta,D));return k}}]),F}();function C(F,j){return Object.keys(j).reduce(function(k,q){return F[q]==null||(j[q]===F[q]?k[q]=j[q]:Array.isArray(j[q])?j[q].indexOf(F[q])<0&&(k[q]=j[q].concat([F[q]])):k[q]=[j[q],F[q]]),k},{})}function
|
|
23
|
+
`),this.scroll.insertAt(k,q),Object.keys(U).forEach(function(M){D.scroll.formatAt(k,q.length,M,U[M])}),this.update(new y.default().retain(k).insert(q,(0,b.default)(U)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var k=this.scroll.children.head;return k.statics.blotName!==f.default.blotName||k.children.length>1?!1:k.children.head instanceof c.default}},{key:"removeFormat",value:function(k,q){var D=this.getText(k,q),U=this.scroll.line(k+q),M=w(U,2),P=M[0],I=M[1],$=0,H=new y.default;P!=null&&(P instanceof l.default?$=P.newlineIndex(I)-I+1:$=P.length()-I,H=P.delta().slice(I,I+$-1).insert(`
|
|
24
|
+
`));var V=this.getContents(k,q+$),X=V.diff(new y.default().insert(D).concat(H)),J=new y.default().retain(k).concat(X);return this.applyDelta(J)}},{key:"update",value:function(k){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,U=this.delta;if(q.length===1&&q[0].type==="characterData"&&q[0].target.data.match(R)&&t.default.find(q[0].target)){var M=t.default.find(q[0].target),P=(0,r.bubbleFormats)(M),I=M.offset(this.scroll),$=q[0].oldValue.replace(i.default.CONTENTS,""),H=new y.default().insert($),V=new y.default().insert(M.value()),X=new y.default().retain(I).concat(H.diff(V,D));k=X.reduce(function(J,ee){return ee.insert?J.insert(ee.insert,P):J.push(ee)},new y.default),this.delta=U.compose(k)}else this.delta=this.getDelta(),(!k||!(0,x.default)(U.compose(k),this.delta))&&(k=U.diff(this.delta,D));return k}}]),F}();function C(F,j){return Object.keys(j).reduce(function(k,q){return F[q]==null||(j[q]===F[q]?k[q]=j[q]:Array.isArray(j[q])?j[q].indexOf(F[q])<0&&(k[q]=j[q].concat([F[q]])):k[q]=[j[q],F[q]]),k},{})}function Z(F){return F.reduce(function(j,k){if(k.insert===1){var q=(0,b.default)(k.attributes);return delete q.image,j.insert({image:k.attributes.image},q)}if(k.attributes!=null&&(k.attributes.list===!0||k.attributes.bullet===!0)&&(k=(0,b.default)(k),k.attributes.list?k.attributes.list="ordered":(k.attributes.list="bullet",delete k.attributes.bullet)),typeof k.insert=="string"){var D=k.insert.replace(/\r\n/g,`
|
|
25
25
|
`).replace(/\r/g,`
|
|
26
|
-
`);return j.insert(D,k.attributes)}return j.push(k)},new y.default)}f.default=B},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.Range=void 0;var N=function(){function _(x,g){var p=[],m=!0,T=!1,S=void 0;try{for(var R=x[Symbol.iterator](),B;!(m=(B=R.next()).done)&&(p.push(B.value),!(g&&p.length===g));m=!0);}catch(C){T=!0,S=C}finally{try{!m&&R.return&&R.return()}finally{if(T)throw S}}return p}return function(x,g){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return _(x,g);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function _(x,g){for(var p=0;p<g.length;p++){var m=g[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(x,m.key,m)}}return function(x,g,p){return g&&_(x.prototype,g),p&&_(x,p),x}}(),O=h(0),v=i(O),y=h(21),d=i(y),o=h(11),e=i(o),t=h(8),u=i(t),l=h(10),a=i(l);function i(_){return _&&_.__esModule?_:{default:_}}function r(_){if(Array.isArray(_)){for(var x=0,g=Array(_.length);x<_.length;x++)g[x]=_[x];return g}else return Array.from(_)}function s(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")}var n=(0,a.default)("quill:selection"),c=function _(x){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;s(this,_),this.index=x,this.length=g},A=function(){function _(x,g){var p=this;s(this,_),this.emitter=g,this.scroll=x,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=v.default.create("cursor",this),this.lastRange=this.savedRange=new c(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){p.mouseDown||setTimeout(p.update.bind(p,u.default.sources.USER),1)}),this.emitter.on(u.default.events.EDITOR_CHANGE,function(m,T){m===u.default.events.TEXT_CHANGE&&T.length()>0&&p.update(u.default.sources.SILENT)}),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!p.hasFocus()){var m=p.getNativeRange();m!=null&&m.start.node!==p.cursor.textNode&&p.emitter.once(u.default.events.SCROLL_UPDATE,function(){try{p.setNativeRange(m.start.node,m.start.offset,m.end.node,m.end.offset)}catch{}})}}),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,function(m,T){if(T.range){var S=T.range,R=S.startNode,B=S.startOffset,C=S.endNode,W=S.endOffset;p.setNativeRange(R,B,C,W)}}),this.update(u.default.sources.SILENT)}return w(_,[{key:"handleComposition",value:function(){var g=this;this.root.addEventListener("compositionstart",function(){g.composing=!0}),this.root.addEventListener("compositionend",function(){if(g.composing=!1,g.cursor.parent){var p=g.cursor.restore();if(!p)return;setTimeout(function(){g.setNativeRange(p.startNode,p.startOffset,p.endNode,p.endOffset)},1)}})}},{key:"handleDragging",value:function(){var g=this;this.emitter.listenDOM("mousedown",document.body,function(){g.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){g.mouseDown=!1,g.update(u.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(g,p){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[g])){this.scroll.update();var m=this.getNativeRange();if(!(m==null||!m.native.collapsed||v.default.query(g,v.default.Scope.BLOCK))){if(m.start.node!==this.cursor.textNode){var T=v.default.find(m.start.node,!1);if(T==null)return;if(T instanceof v.default.Leaf){var S=T.split(m.start.offset);T.parent.insertBefore(this.cursor,S)}else T.insertBefore(this.cursor,m.start.node);this.cursor.attach()}this.cursor.format(g,p),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(g){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,m=this.scroll.length();g=Math.min(g,m-1),p=Math.min(g+p,m-1)-g;var T=void 0,S=this.scroll.leaf(g),R=N(S,2),B=R[0],C=R[1];if(B==null)return null;var W=B.position(C,!0),F=N(W,2);T=F[0],C=F[1];var j=document.createRange();if(p>0){j.setStart(T,C);var k=this.scroll.leaf(g+p),q=N(k,2);if(B=q[0],C=q[1],B==null)return null;var D=B.position(C,!0),U=N(D,2);return T=U[0],C=U[1],j.setEnd(T,C),j.getBoundingClientRect()}else{var M="left",P=void 0;return T instanceof Text?(C<T.data.length?(j.setStart(T,C),j.setEnd(T,C+1)):(j.setStart(T,C-1),j.setEnd(T,C),M="right"),P=j.getBoundingClientRect()):(P=B.domNode.getBoundingClientRect(),C>0&&(M="right")),{bottom:P.top+P.height,height:P.height,left:P[M],right:P[M],top:P.top,width:0}}}},{key:"getNativeRange",value:function(){var g=document.getSelection();if(g==null||g.rangeCount<=0)return null;var p=g.getRangeAt(0);if(p==null)return null;var m=this.normalizeNative(p);return n.info("getNativeRange",m),m}},{key:"getRange",value:function(){var g=this.getNativeRange();if(g==null)return[null,null];var p=this.normalizedToRange(g);return[p,g]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(g){var p=this,m=[[g.start.node,g.start.offset]];g.native.collapsed||m.push([g.end.node,g.end.offset]);var T=m.map(function(B){var C=N(B,2),W=C[0],F=C[1],j=v.default.find(W,!0),k=j.offset(p.scroll);return F===0?k:j instanceof v.default.Container?k+j.length():k+j.index(W,F)}),S=Math.min(Math.max.apply(Math,r(T)),this.scroll.length()-1),R=Math.min.apply(Math,[S].concat(r(T)));return new c(R,S-R)}},{key:"normalizeNative",value:function(g){if(!b(this.root,g.startContainer)||!g.collapsed&&!b(this.root,g.endContainer))return null;var p={start:{node:g.startContainer,offset:g.startOffset},end:{node:g.endContainer,offset:g.endOffset},native:g};return[p.start,p.end].forEach(function(m){for(var T=m.node,S=m.offset;!(T instanceof Text)&&T.childNodes.length>0;)if(T.childNodes.length>S)T=T.childNodes[S],S=0;else if(T.childNodes.length===S)T=T.lastChild,S=T instanceof Text?T.data.length:T.childNodes.length+1;else break;m.node=T,m.offset=S}),p}},{key:"rangeToNative",value:function(g){var p=this,m=g.collapsed?[g.index]:[g.index,g.index+g.length],T=[],S=this.scroll.length();return m.forEach(function(R,B){R=Math.min(S-1,R);var C=void 0,W=p.scroll.leaf(R),F=N(W,2),j=F[0],k=F[1],q=j.position(k,B!==0),D=N(q,2);C=D[0],k=D[1],T.push(C,k)}),T.length<2&&(T=T.concat(T)),T}},{key:"scrollIntoView",value:function(g){var p=this.lastRange;if(p!=null){var m=this.getBounds(p.index,p.length);if(m!=null){var T=this.scroll.length()-1,S=this.scroll.line(Math.min(p.index,T)),R=N(S,1),B=R[0],C=B;if(p.length>0){var W=this.scroll.line(Math.min(p.index+p.length,T)),F=N(W,1);C=F[0]}if(!(B==null||C==null)){var j=g.getBoundingClientRect();m.top<j.top?g.scrollTop-=j.top-m.top:m.bottom>j.bottom&&(g.scrollTop+=m.bottom-j.bottom)}}}}},{key:"setNativeRange",value:function(g,p){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:p,S=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",g,p,m,T),!(g!=null&&(this.root.parentNode==null||g.parentNode==null||m.parentNode==null))){var R=document.getSelection();if(R!=null)if(g!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||S||g!==B.startContainer||p!==B.startOffset||m!==B.endContainer||T!==B.endOffset){g.tagName=="BR"&&(p=[].indexOf.call(g.parentNode.childNodes,g),g=g.parentNode),m.tagName=="BR"&&(T=[].indexOf.call(m.parentNode.childNodes,m),m=m.parentNode);var C=document.createRange();C.setStart(g,p),C.setEnd(m,T),R.removeAllRanges(),R.addRange(C)}}else R.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(g){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;if(typeof p=="string"&&(m=p,p=!1),n.info("setRange",g),g!=null){var T=this.rangeToNative(g);this.setNativeRange.apply(this,r(T).concat([p]))}else this.setNativeRange(null);this.update(m)}},{key:"update",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.default.sources.USER,p=this.lastRange,m=this.getRange(),T=N(m,2),S=T[0],R=T[1];if(this.lastRange=S,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,e.default)(p,this.lastRange)){var B;!this.composing&&R!=null&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var C=[u.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(p),g];if((B=this.emitter).emit.apply(B,[u.default.events.EDITOR_CHANGE].concat(C)),g!==u.default.sources.SILENT){var W;(W=this.emitter).emit.apply(W,C)}}}}]),_}();function b(_,x){try{x.parentNode}catch{return!1}return x instanceof Text&&(x=x.parentNode),_.contains(x)}f.Range=c,f.default=A},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function u(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&u(l.prototype,a),i&&u(l,i),l}}(),w=function u(l,a,i){l===null&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(r===void 0){var s=Object.getPrototypeOf(l);return s===null?void 0:u(s,a,i)}else{if("value"in r)return r.value;var n=r.get;return n===void 0?void 0:n.call(i)}},O=h(0),v=y(O);function y(u){return u&&u.__esModule?u:{default:u}}function d(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function e(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var t=function(u){e(l,u);function l(){return d(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return N(l,[{key:"insertInto",value:function(i,r){i.children.length===0?w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertInto",this).call(this,i,r):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),l}(v.default.Embed);t.blotName="break",t.tagName="BR",f.default=t},function(L,f,h){var N=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var u in t)t.hasOwnProperty(u)&&(e[u]=t[u])};return function(e,t){o(e,t);function u(){this.constructor=e}e.prototype=t===null?Object.create(t):(u.prototype=t.prototype,new u)}}();Object.defineProperty(f,"__esModule",{value:!0});var w=h(44),O=h(30),v=h(1),y=function(o){N(e,o);function e(t){var u=o.call(this,t)||this;return u.build(),u}return e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new w.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(u){try{var l=d(u);t.insertBefore(l,t.children.head||void 0)}catch(a){if(a instanceof v.ParchmentError)return;throw a}})},e.prototype.deleteAt=function(t,u){if(t===0&&u===this.length())return this.remove();this.children.forEachAt(t,u,function(l,a,i){l.deleteAt(a,i)})},e.prototype.descendant=function(t,u){var l=this.children.find(u),a=l[0],i=l[1];return t.blotName==null&&t(a)||t.blotName!=null&&a instanceof t?[a,i]:a instanceof e?a.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,u,l){u===void 0&&(u=0),l===void 0&&(l=Number.MAX_VALUE);var a=[],i=l;return this.children.forEachAt(u,l,function(r,s,n){(t.blotName==null&&t(r)||t.blotName!=null&&r instanceof t)&&a.push(r),r instanceof e&&(a=a.concat(r.descendants(t,s,i))),i-=n}),a},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),o.prototype.detach.call(this)},e.prototype.formatAt=function(t,u,l,a){this.children.forEachAt(t,u,function(i,r,s){i.formatAt(r,s,l,a)})},e.prototype.insertAt=function(t,u,l){var a=this.children.find(t),i=a[0],r=a[1];if(i)i.insertAt(r,u,l);else{var s=l==null?v.create("text",u):v.create(u,l);this.appendChild(s)}},e.prototype.insertBefore=function(t,u){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(l){return t instanceof l}))throw new v.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,u)},e.prototype.length=function(){return this.children.reduce(function(t,u){return t+u.length()},0)},e.prototype.moveChildren=function(t,u){this.children.forEach(function(l){t.insertBefore(l,u)})},e.prototype.optimize=function(t){if(o.prototype.optimize.call(this,t),this.children.length===0)if(this.statics.defaultChild!=null){var u=v.create(this.statics.defaultChild);this.appendChild(u),u.optimize(t)}else this.remove()},e.prototype.path=function(t,u){u===void 0&&(u=!1);var l=this.children.find(t,u),a=l[0],i=l[1],r=[[this,t]];return a instanceof e?r.concat(a.path(i,u)):(a!=null&&r.push([a,i]),r)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(t){t instanceof e&&t.moveChildren(this),o.prototype.replace.call(this,t)},e.prototype.split=function(t,u){if(u===void 0&&(u=!1),!u){if(t===0)return this;if(t===this.length())return this.next}var l=this.clone();return this.parent.insertBefore(l,this.next),this.children.forEachAt(t,this.length(),function(a,i,r){a=a.split(i,u),l.appendChild(a)}),l},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,u){var l=this,a=[],i=[];t.forEach(function(r){r.target===l.domNode&&r.type==="childList"&&(a.push.apply(a,r.addedNodes),i.push.apply(i,r.removedNodes))}),i.forEach(function(r){if(!(r.parentNode!=null&&r.tagName!=="IFRAME"&&document.body.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var s=v.find(r);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===l.domNode)&&s.detach()}}),a.filter(function(r){return r.parentNode==l.domNode}).sort(function(r,s){return r===s?0:r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(r){var s=null;r.nextSibling!=null&&(s=v.find(r.nextSibling));var n=d(r);(n.next!=s||n.next==null)&&(n.parent!=null&&n.parent.removeChild(l),l.insertBefore(n,s||void 0))})},e}(O.default);function d(o){var e=v.find(o);if(e==null)try{e=v.create(o)}catch{e=v.create(v.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(u){e.domNode.appendChild(u)}),o.parentNode&&o.parentNode.replaceChild(e.domNode,o),e.attach()}return e}f.default=y},function(L,f,h){var N=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var u in t)t.hasOwnProperty(u)&&(e[u]=t[u])};return function(e,t){o(e,t);function u(){this.constructor=e}e.prototype=t===null?Object.create(t):(u.prototype=t.prototype,new u)}}();Object.defineProperty(f,"__esModule",{value:!0});var w=h(12),O=h(31),v=h(17),y=h(1),d=function(o){N(e,o);function e(t){var u=o.call(this,t)||this;return u.attributes=new O.default(u.domNode),u}return e.formats=function(t){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()},e.prototype.format=function(t,u){var l=y.query(t);l instanceof w.default?this.attributes.attribute(l,u):u&&l!=null&&(t!==this.statics.blotName||this.formats()[t]!==u)&&this.replaceWith(t,u)},e.prototype.formats=function(){var t=this.attributes.values(),u=this.statics.formats(this.domNode);return u!=null&&(t[this.statics.blotName]=u),t},e.prototype.replaceWith=function(t,u){var l=o.prototype.replaceWith.call(this,t,u);return this.attributes.copy(l),l},e.prototype.update=function(t,u){var l=this;o.prototype.update.call(this,t,u),t.some(function(a){return a.target===l.domNode&&a.type==="attributes"})&&this.attributes.build()},e.prototype.wrap=function(t,u){var l=o.prototype.wrap.call(this,t,u);return l instanceof e&&l.statics.scope===this.statics.scope&&this.attributes.move(l),l},e}(v.default);f.default=d},function(L,f,h){var N=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var e in o)o.hasOwnProperty(e)&&(d[e]=o[e])};return function(d,o){y(d,o);function e(){this.constructor=d}d.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(f,"__esModule",{value:!0});var w=h(30),O=h(1),v=function(y){N(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.value=function(o){return!0},d.prototype.index=function(o,e){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},d.prototype.position=function(o,e){var t=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(t+=1),[this.parent.domNode,t]},d.prototype.value=function(){var o;return o={},o[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},d.scope=O.Scope.INLINE_BLOT,d}(w.default);f.default=v},function(L,f,h){var N=h(11),w=h(3),O={attributes:{compose:function(y,d,o){typeof y!="object"&&(y={}),typeof d!="object"&&(d={});var e=w(!0,{},d);o||(e=Object.keys(e).reduce(function(u,l){return e[l]!=null&&(u[l]=e[l]),u},{}));for(var t in y)y[t]!==void 0&&d[t]===void 0&&(e[t]=y[t]);return Object.keys(e).length>0?e:void 0},diff:function(y,d){typeof y!="object"&&(y={}),typeof d!="object"&&(d={});var o=Object.keys(y).concat(Object.keys(d)).reduce(function(e,t){return N(y[t],d[t])||(e[t]=d[t]===void 0?null:d[t]),e},{});return Object.keys(o).length>0?o:void 0},transform:function(y,d,o){if(typeof y!="object")return d;if(typeof d=="object"){if(!o)return d;var e=Object.keys(d).reduce(function(t,u){return y[u]===void 0&&(t[u]=d[u]),t},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(y){return new v(y)},length:function(y){return typeof y.delete=="number"?y.delete:typeof y.retain=="number"?y.retain:typeof y.insert=="string"?y.insert.length:1}};function v(y){this.ops=y,this.index=0,this.offset=0}v.prototype.hasNext=function(){return this.peekLength()<1/0},v.prototype.next=function(y){y||(y=1/0);var d=this.ops[this.index];if(d){var o=this.offset,e=O.length(d);if(y>=e-o?(y=e-o,this.index+=1,this.offset=0):this.offset+=y,typeof d.delete=="number")return{delete:y};var t={};return d.attributes&&(t.attributes=d.attributes),typeof d.retain=="number"?t.retain=y:typeof d.insert=="string"?t.insert=d.insert.substr(o,y):t.insert=d.insert,t}else return{retain:1/0}},v.prototype.peek=function(){return this.ops[this.index]},v.prototype.peekLength=function(){return this.ops[this.index]?O.length(this.ops[this.index])-this.offset:1/0},v.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},v.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var y=this.offset,d=this.index,o=this.next(),e=this.ops.slice(this.index);return this.offset=y,this.index=d,[o].concat(e)}else return[]},L.exports=O},function(L,f){var h=function(){function N(l,a){return a!=null&&l instanceof a}var w;try{w=Map}catch{w=function(){}}var O;try{O=Set}catch{O=function(){}}var v;try{v=Promise}catch{v=function(){}}function y(l,a,i,r,s){typeof a=="object"&&(i=a.depth,r=a.prototype,s=a.includeNonEnumerable,a=a.circular);var n=[],c=[],A=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof i>"u"&&(i=1/0);function b(_,x){if(_===null)return null;if(x===0)return _;var g,p;if(typeof _!="object")return _;if(N(_,w))g=new w;else if(N(_,O))g=new O;else if(N(_,v))g=new v(function(j,k){_.then(function(q){j(b(q,x-1))},function(q){k(b(q,x-1))})});else if(y.__isArray(_))g=[];else if(y.__isRegExp(_))g=new RegExp(_.source,u(_)),_.lastIndex&&(g.lastIndex=_.lastIndex);else if(y.__isDate(_))g=new Date(_.getTime());else{if(A&&Buffer.isBuffer(_))return Buffer.allocUnsafe?g=Buffer.allocUnsafe(_.length):g=new Buffer(_.length),_.copy(g),g;N(_,Error)?g=Object.create(_):typeof r>"u"?(p=Object.getPrototypeOf(_),g=Object.create(p)):(g=Object.create(r),p=r)}if(a){var m=n.indexOf(_);if(m!=-1)return c[m];n.push(_),c.push(g)}N(_,w)&&_.forEach(function(j,k){var q=b(k,x-1),D=b(j,x-1);g.set(q,D)}),N(_,O)&&_.forEach(function(j){var k=b(j,x-1);g.add(k)});for(var T in _){var S;p&&(S=Object.getOwnPropertyDescriptor(p,T)),!(S&&S.set==null)&&(g[T]=b(_[T],x-1))}if(Object.getOwnPropertySymbols)for(var R=Object.getOwnPropertySymbols(_),T=0;T<R.length;T++){var B=R[T],C=Object.getOwnPropertyDescriptor(_,B);C&&!C.enumerable&&!s||(g[B]=b(_[B],x-1),C.enumerable||Object.defineProperty(g,B,{enumerable:!1}))}if(s)for(var W=Object.getOwnPropertyNames(_),T=0;T<W.length;T++){var F=W[T],C=Object.getOwnPropertyDescriptor(_,F);C&&C.enumerable||(g[F]=b(_[F],x-1),Object.defineProperty(g,F,{enumerable:!1}))}return g}return b(l,i)}y.clonePrototype=function(a){if(a===null)return null;var i=function(){};return i.prototype=a,new i};function d(l){return Object.prototype.toString.call(l)}y.__objToStr=d;function o(l){return typeof l=="object"&&d(l)==="[object Date]"}y.__isDate=o;function e(l){return typeof l=="object"&&d(l)==="[object Array]"}y.__isArray=e;function t(l){return typeof l=="object"&&d(l)==="[object RegExp]"}y.__isRegExp=t;function u(l){var a="";return l.global&&(a+="g"),l.ignoreCase&&(a+="i"),l.multiline&&(a+="m"),a}return y.__getRegExpFlags=u,y}();typeof L=="object"&&L.exports&&(L.exports=h)},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function g(p,m){var T=[],S=!0,R=!1,B=void 0;try{for(var C=p[Symbol.iterator](),W;!(S=(W=C.next()).done)&&(T.push(W.value),!(m&&T.length===m));S=!0);}catch(F){R=!0,B=F}finally{try{!S&&C.return&&C.return()}finally{if(R)throw B}}return T}return function(p,m){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return g(p,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function g(p,m){for(var T=0;T<m.length;T++){var S=m[T];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(p,S.key,S)}}return function(p,m,T){return m&&g(p.prototype,m),T&&g(p,T),p}}(),O=function g(p,m,T){p===null&&(p=Function.prototype);var S=Object.getOwnPropertyDescriptor(p,m);if(S===void 0){var R=Object.getPrototypeOf(p);return R===null?void 0:g(R,m,T)}else{if("value"in S)return S.value;var B=S.get;return B===void 0?void 0:B.call(T)}},v=h(0),y=n(v),d=h(8),o=n(d),e=h(4),t=n(e),u=h(16),l=n(u),a=h(13),i=n(a),r=h(25),s=n(r);function n(g){return g&&g.__esModule?g:{default:g}}function c(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function A(g,p){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:g}function b(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(g,p):g.__proto__=p)}function _(g){return g instanceof t.default||g instanceof e.BlockEmbed}var x=function(g){b(p,g);function p(m,T){c(this,p);var S=A(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,m));return S.emitter=T.emitter,Array.isArray(T.whitelist)&&(S.whitelist=T.whitelist.reduce(function(R,B){return R[B]=!0,R},{})),S.domNode.addEventListener("DOMNodeInserted",function(){}),S.optimize(),S.enable(),S}return w(p,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(T,S){var R=this.line(T),B=N(R,2),C=B[0],W=B[1],F=this.line(T+S),j=N(F,1),k=j[0];if(O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"deleteAt",this).call(this,T,S),k!=null&&C!==k&&W>0){if(C instanceof e.BlockEmbed||k instanceof e.BlockEmbed){this.optimize();return}if(C instanceof i.default){var q=C.newlineIndex(C.length(),!0);if(q>-1&&(C=C.split(q+1),C===k)){this.optimize();return}}else if(k instanceof i.default){var D=k.newlineIndex(0);D>-1&&k.split(D+1)}var U=k.children.head instanceof l.default?null:k.children.head;C.moveChildren(k,U),C.remove()}this.optimize()}},{key:"enable",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",T)}},{key:"formatAt",value:function(T,S,R,B){this.whitelist!=null&&!this.whitelist[R]||(O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"formatAt",this).call(this,T,S,R,B),this.optimize())}},{key:"insertAt",value:function(T,S,R){if(!(R!=null&&this.whitelist!=null&&!this.whitelist[S])){if(T>=this.length())if(R==null||y.default.query(S,y.default.Scope.BLOCK)==null){var B=y.default.create(this.statics.defaultChild);this.appendChild(B),R==null&&S.endsWith(`
|
|
27
|
-
`)&&(S=S.slice(0,-1)),B.insertAt(0,S,R)}else{var C=y.default.create(S,R);this.appendChild(C)}else O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertAt",this).call(this,T,S,R);this.optimize()}}},{key:"insertBefore",value:function(T,S){if(T.statics.scope===y.default.Scope.INLINE_BLOT){var R=y.default.create(this.statics.defaultChild);R.appendChild(T),T=R}O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertBefore",this).call(this,T,S)}},{key:"leaf",value:function(T){return this.path(T).pop()||[null,-1]}},{key:"line",value:function(T){return T===this.length()?this.line(T-1):this.descendant(_,T)}},{key:"lines",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,R=function B(C,
|
|
26
|
+
`);return j.insert(D,k.attributes)}return j.push(k)},new y.default)}s.default=B},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.Range=void 0;var N=function(){function _(x,g){var p=[],m=!0,T=!1,S=void 0;try{for(var R=x[Symbol.iterator](),B;!(m=(B=R.next()).done)&&(p.push(B.value),!(g&&p.length===g));m=!0);}catch(C){T=!0,S=C}finally{try{!m&&R.return&&R.return()}finally{if(T)throw S}}return p}return function(x,g){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return _(x,g);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function _(x,g){for(var p=0;p<g.length;p++){var m=g[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(x,m.key,m)}}return function(x,g,p){return g&&_(x.prototype,g),p&&_(x,p),x}}(),O=h(0),v=i(O),y=h(21),d=i(y),o=h(11),e=i(o),t=h(8),u=i(t),l=h(10),a=i(l);function i(_){return _&&_.__esModule?_:{default:_}}function r(_){if(Array.isArray(_)){for(var x=0,g=Array(_.length);x<_.length;x++)g[x]=_[x];return g}else return Array.from(_)}function f(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")}var n=(0,a.default)("quill:selection"),c=function _(x){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;f(this,_),this.index=x,this.length=g},A=function(){function _(x,g){var p=this;f(this,_),this.emitter=g,this.scroll=x,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=v.default.create("cursor",this),this.lastRange=this.savedRange=new c(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){p.mouseDown||setTimeout(p.update.bind(p,u.default.sources.USER),1)}),this.emitter.on(u.default.events.EDITOR_CHANGE,function(m,T){m===u.default.events.TEXT_CHANGE&&T.length()>0&&p.update(u.default.sources.SILENT)}),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!p.hasFocus()){var m=p.getNativeRange();m!=null&&m.start.node!==p.cursor.textNode&&p.emitter.once(u.default.events.SCROLL_UPDATE,function(){try{p.setNativeRange(m.start.node,m.start.offset,m.end.node,m.end.offset)}catch{}})}}),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,function(m,T){if(T.range){var S=T.range,R=S.startNode,B=S.startOffset,C=S.endNode,Z=S.endOffset;p.setNativeRange(R,B,C,Z)}}),this.update(u.default.sources.SILENT)}return w(_,[{key:"handleComposition",value:function(){var g=this;this.root.addEventListener("compositionstart",function(){g.composing=!0}),this.root.addEventListener("compositionend",function(){if(g.composing=!1,g.cursor.parent){var p=g.cursor.restore();if(!p)return;setTimeout(function(){g.setNativeRange(p.startNode,p.startOffset,p.endNode,p.endOffset)},1)}})}},{key:"handleDragging",value:function(){var g=this;this.emitter.listenDOM("mousedown",document.body,function(){g.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){g.mouseDown=!1,g.update(u.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(g,p){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[g])){this.scroll.update();var m=this.getNativeRange();if(!(m==null||!m.native.collapsed||v.default.query(g,v.default.Scope.BLOCK))){if(m.start.node!==this.cursor.textNode){var T=v.default.find(m.start.node,!1);if(T==null)return;if(T instanceof v.default.Leaf){var S=T.split(m.start.offset);T.parent.insertBefore(this.cursor,S)}else T.insertBefore(this.cursor,m.start.node);this.cursor.attach()}this.cursor.format(g,p),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(g){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,m=this.scroll.length();g=Math.min(g,m-1),p=Math.min(g+p,m-1)-g;var T=void 0,S=this.scroll.leaf(g),R=N(S,2),B=R[0],C=R[1];if(B==null)return null;var Z=B.position(C,!0),F=N(Z,2);T=F[0],C=F[1];var j=document.createRange();if(p>0){j.setStart(T,C);var k=this.scroll.leaf(g+p),q=N(k,2);if(B=q[0],C=q[1],B==null)return null;var D=B.position(C,!0),U=N(D,2);return T=U[0],C=U[1],j.setEnd(T,C),j.getBoundingClientRect()}else{var M="left",P=void 0;return T instanceof Text?(C<T.data.length?(j.setStart(T,C),j.setEnd(T,C+1)):(j.setStart(T,C-1),j.setEnd(T,C),M="right"),P=j.getBoundingClientRect()):(P=B.domNode.getBoundingClientRect(),C>0&&(M="right")),{bottom:P.top+P.height,height:P.height,left:P[M],right:P[M],top:P.top,width:0}}}},{key:"getNativeRange",value:function(){var g=document.getSelection();if(g==null||g.rangeCount<=0)return null;var p=g.getRangeAt(0);if(p==null)return null;var m=this.normalizeNative(p);return n.info("getNativeRange",m),m}},{key:"getRange",value:function(){var g=this.getNativeRange();if(g==null)return[null,null];var p=this.normalizedToRange(g);return[p,g]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(g){var p=this,m=[[g.start.node,g.start.offset]];g.native.collapsed||m.push([g.end.node,g.end.offset]);var T=m.map(function(B){var C=N(B,2),Z=C[0],F=C[1],j=v.default.find(Z,!0),k=j.offset(p.scroll);return F===0?k:j instanceof v.default.Container?k+j.length():k+j.index(Z,F)}),S=Math.min(Math.max.apply(Math,r(T)),this.scroll.length()-1),R=Math.min.apply(Math,[S].concat(r(T)));return new c(R,S-R)}},{key:"normalizeNative",value:function(g){if(!b(this.root,g.startContainer)||!g.collapsed&&!b(this.root,g.endContainer))return null;var p={start:{node:g.startContainer,offset:g.startOffset},end:{node:g.endContainer,offset:g.endOffset},native:g};return[p.start,p.end].forEach(function(m){for(var T=m.node,S=m.offset;!(T instanceof Text)&&T.childNodes.length>0;)if(T.childNodes.length>S)T=T.childNodes[S],S=0;else if(T.childNodes.length===S)T=T.lastChild,S=T instanceof Text?T.data.length:T.childNodes.length+1;else break;m.node=T,m.offset=S}),p}},{key:"rangeToNative",value:function(g){var p=this,m=g.collapsed?[g.index]:[g.index,g.index+g.length],T=[],S=this.scroll.length();return m.forEach(function(R,B){R=Math.min(S-1,R);var C=void 0,Z=p.scroll.leaf(R),F=N(Z,2),j=F[0],k=F[1],q=j.position(k,B!==0),D=N(q,2);C=D[0],k=D[1],T.push(C,k)}),T.length<2&&(T=T.concat(T)),T}},{key:"scrollIntoView",value:function(g){var p=this.lastRange;if(p!=null){var m=this.getBounds(p.index,p.length);if(m!=null){var T=this.scroll.length()-1,S=this.scroll.line(Math.min(p.index,T)),R=N(S,1),B=R[0],C=B;if(p.length>0){var Z=this.scroll.line(Math.min(p.index+p.length,T)),F=N(Z,1);C=F[0]}if(!(B==null||C==null)){var j=g.getBoundingClientRect();m.top<j.top?g.scrollTop-=j.top-m.top:m.bottom>j.bottom&&(g.scrollTop+=m.bottom-j.bottom)}}}}},{key:"setNativeRange",value:function(g,p){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:p,S=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",g,p,m,T),!(g!=null&&(this.root.parentNode==null||g.parentNode==null||m.parentNode==null))){var R=document.getSelection();if(R!=null)if(g!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||S||g!==B.startContainer||p!==B.startOffset||m!==B.endContainer||T!==B.endOffset){g.tagName=="BR"&&(p=[].indexOf.call(g.parentNode.childNodes,g),g=g.parentNode),m.tagName=="BR"&&(T=[].indexOf.call(m.parentNode.childNodes,m),m=m.parentNode);var C=document.createRange();C.setStart(g,p),C.setEnd(m,T),R.removeAllRanges(),R.addRange(C)}}else R.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(g){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;if(typeof p=="string"&&(m=p,p=!1),n.info("setRange",g),g!=null){var T=this.rangeToNative(g);this.setNativeRange.apply(this,r(T).concat([p]))}else this.setNativeRange(null);this.update(m)}},{key:"update",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.default.sources.USER,p=this.lastRange,m=this.getRange(),T=N(m,2),S=T[0],R=T[1];if(this.lastRange=S,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,e.default)(p,this.lastRange)){var B;!this.composing&&R!=null&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var C=[u.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(p),g];if((B=this.emitter).emit.apply(B,[u.default.events.EDITOR_CHANGE].concat(C)),g!==u.default.sources.SILENT){var Z;(Z=this.emitter).emit.apply(Z,C)}}}}]),_}();function b(_,x){try{x.parentNode}catch{return!1}return x instanceof Text&&(x=x.parentNode),_.contains(x)}s.Range=c,s.default=A},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function u(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&u(l.prototype,a),i&&u(l,i),l}}(),w=function u(l,a,i){l===null&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(r===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:u(f,a,i)}else{if("value"in r)return r.value;var n=r.get;return n===void 0?void 0:n.call(i)}},O=h(0),v=y(O);function y(u){return u&&u.__esModule?u:{default:u}}function d(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function e(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var t=function(u){e(l,u);function l(){return d(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return N(l,[{key:"insertInto",value:function(i,r){i.children.length===0?w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertInto",this).call(this,i,r):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),l}(v.default.Embed);t.blotName="break",t.tagName="BR",s.default=t},function(L,s,h){var N=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var u in t)t.hasOwnProperty(u)&&(e[u]=t[u])};return function(e,t){o(e,t);function u(){this.constructor=e}e.prototype=t===null?Object.create(t):(u.prototype=t.prototype,new u)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=h(44),O=h(30),v=h(1),y=function(o){N(e,o);function e(t){var u=o.call(this,t)||this;return u.build(),u}return e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new w.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(u){try{var l=d(u);t.insertBefore(l,t.children.head||void 0)}catch(a){if(a instanceof v.ParchmentError)return;throw a}})},e.prototype.deleteAt=function(t,u){if(t===0&&u===this.length())return this.remove();this.children.forEachAt(t,u,function(l,a,i){l.deleteAt(a,i)})},e.prototype.descendant=function(t,u){var l=this.children.find(u),a=l[0],i=l[1];return t.blotName==null&&t(a)||t.blotName!=null&&a instanceof t?[a,i]:a instanceof e?a.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,u,l){u===void 0&&(u=0),l===void 0&&(l=Number.MAX_VALUE);var a=[],i=l;return this.children.forEachAt(u,l,function(r,f,n){(t.blotName==null&&t(r)||t.blotName!=null&&r instanceof t)&&a.push(r),r instanceof e&&(a=a.concat(r.descendants(t,f,i))),i-=n}),a},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),o.prototype.detach.call(this)},e.prototype.formatAt=function(t,u,l,a){this.children.forEachAt(t,u,function(i,r,f){i.formatAt(r,f,l,a)})},e.prototype.insertAt=function(t,u,l){var a=this.children.find(t),i=a[0],r=a[1];if(i)i.insertAt(r,u,l);else{var f=l==null?v.create("text",u):v.create(u,l);this.appendChild(f)}},e.prototype.insertBefore=function(t,u){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(l){return t instanceof l}))throw new v.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,u)},e.prototype.length=function(){return this.children.reduce(function(t,u){return t+u.length()},0)},e.prototype.moveChildren=function(t,u){this.children.forEach(function(l){t.insertBefore(l,u)})},e.prototype.optimize=function(t){if(o.prototype.optimize.call(this,t),this.children.length===0)if(this.statics.defaultChild!=null){var u=v.create(this.statics.defaultChild);this.appendChild(u),u.optimize(t)}else this.remove()},e.prototype.path=function(t,u){u===void 0&&(u=!1);var l=this.children.find(t,u),a=l[0],i=l[1],r=[[this,t]];return a instanceof e?r.concat(a.path(i,u)):(a!=null&&r.push([a,i]),r)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(t){t instanceof e&&t.moveChildren(this),o.prototype.replace.call(this,t)},e.prototype.split=function(t,u){if(u===void 0&&(u=!1),!u){if(t===0)return this;if(t===this.length())return this.next}var l=this.clone();return this.parent.insertBefore(l,this.next),this.children.forEachAt(t,this.length(),function(a,i,r){a=a.split(i,u),l.appendChild(a)}),l},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,u){var l=this,a=[],i=[];t.forEach(function(r){r.target===l.domNode&&r.type==="childList"&&(a.push.apply(a,r.addedNodes),i.push.apply(i,r.removedNodes))}),i.forEach(function(r){if(!(r.parentNode!=null&&r.tagName!=="IFRAME"&&document.body.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var f=v.find(r);f!=null&&(f.domNode.parentNode==null||f.domNode.parentNode===l.domNode)&&f.detach()}}),a.filter(function(r){return r.parentNode==l.domNode}).sort(function(r,f){return r===f?0:r.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(r){var f=null;r.nextSibling!=null&&(f=v.find(r.nextSibling));var n=d(r);(n.next!=f||n.next==null)&&(n.parent!=null&&n.parent.removeChild(l),l.insertBefore(n,f||void 0))})},e}(O.default);function d(o){var e=v.find(o);if(e==null)try{e=v.create(o)}catch{e=v.create(v.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(u){e.domNode.appendChild(u)}),o.parentNode&&o.parentNode.replaceChild(e.domNode,o),e.attach()}return e}s.default=y},function(L,s,h){var N=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var u in t)t.hasOwnProperty(u)&&(e[u]=t[u])};return function(e,t){o(e,t);function u(){this.constructor=e}e.prototype=t===null?Object.create(t):(u.prototype=t.prototype,new u)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=h(12),O=h(31),v=h(17),y=h(1),d=function(o){N(e,o);function e(t){var u=o.call(this,t)||this;return u.attributes=new O.default(u.domNode),u}return e.formats=function(t){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()},e.prototype.format=function(t,u){var l=y.query(t);l instanceof w.default?this.attributes.attribute(l,u):u&&l!=null&&(t!==this.statics.blotName||this.formats()[t]!==u)&&this.replaceWith(t,u)},e.prototype.formats=function(){var t=this.attributes.values(),u=this.statics.formats(this.domNode);return u!=null&&(t[this.statics.blotName]=u),t},e.prototype.replaceWith=function(t,u){var l=o.prototype.replaceWith.call(this,t,u);return this.attributes.copy(l),l},e.prototype.update=function(t,u){var l=this;o.prototype.update.call(this,t,u),t.some(function(a){return a.target===l.domNode&&a.type==="attributes"})&&this.attributes.build()},e.prototype.wrap=function(t,u){var l=o.prototype.wrap.call(this,t,u);return l instanceof e&&l.statics.scope===this.statics.scope&&this.attributes.move(l),l},e}(v.default);s.default=d},function(L,s,h){var N=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var e in o)o.hasOwnProperty(e)&&(d[e]=o[e])};return function(d,o){y(d,o);function e(){this.constructor=d}d.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=h(30),O=h(1),v=function(y){N(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.value=function(o){return!0},d.prototype.index=function(o,e){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},d.prototype.position=function(o,e){var t=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(t+=1),[this.parent.domNode,t]},d.prototype.value=function(){var o;return o={},o[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},d.scope=O.Scope.INLINE_BLOT,d}(w.default);s.default=v},function(L,s,h){var N=h(11),w=h(3),O={attributes:{compose:function(y,d,o){typeof y!="object"&&(y={}),typeof d!="object"&&(d={});var e=w(!0,{},d);o||(e=Object.keys(e).reduce(function(u,l){return e[l]!=null&&(u[l]=e[l]),u},{}));for(var t in y)y[t]!==void 0&&d[t]===void 0&&(e[t]=y[t]);return Object.keys(e).length>0?e:void 0},diff:function(y,d){typeof y!="object"&&(y={}),typeof d!="object"&&(d={});var o=Object.keys(y).concat(Object.keys(d)).reduce(function(e,t){return N(y[t],d[t])||(e[t]=d[t]===void 0?null:d[t]),e},{});return Object.keys(o).length>0?o:void 0},transform:function(y,d,o){if(typeof y!="object")return d;if(typeof d=="object"){if(!o)return d;var e=Object.keys(d).reduce(function(t,u){return y[u]===void 0&&(t[u]=d[u]),t},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(y){return new v(y)},length:function(y){return typeof y.delete=="number"?y.delete:typeof y.retain=="number"?y.retain:typeof y.insert=="string"?y.insert.length:1}};function v(y){this.ops=y,this.index=0,this.offset=0}v.prototype.hasNext=function(){return this.peekLength()<1/0},v.prototype.next=function(y){y||(y=1/0);var d=this.ops[this.index];if(d){var o=this.offset,e=O.length(d);if(y>=e-o?(y=e-o,this.index+=1,this.offset=0):this.offset+=y,typeof d.delete=="number")return{delete:y};var t={};return d.attributes&&(t.attributes=d.attributes),typeof d.retain=="number"?t.retain=y:typeof d.insert=="string"?t.insert=d.insert.substr(o,y):t.insert=d.insert,t}else return{retain:1/0}},v.prototype.peek=function(){return this.ops[this.index]},v.prototype.peekLength=function(){return this.ops[this.index]?O.length(this.ops[this.index])-this.offset:1/0},v.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},v.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var y=this.offset,d=this.index,o=this.next(),e=this.ops.slice(this.index);return this.offset=y,this.index=d,[o].concat(e)}else return[]},L.exports=O},function(L,s){var h=function(){function N(l,a){return a!=null&&l instanceof a}var w;try{w=Map}catch{w=function(){}}var O;try{O=Set}catch{O=function(){}}var v;try{v=Promise}catch{v=function(){}}function y(l,a,i,r,f){typeof a=="object"&&(i=a.depth,r=a.prototype,f=a.includeNonEnumerable,a=a.circular);var n=[],c=[],A=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof i>"u"&&(i=1/0);function b(_,x){if(_===null)return null;if(x===0)return _;var g,p;if(typeof _!="object")return _;if(N(_,w))g=new w;else if(N(_,O))g=new O;else if(N(_,v))g=new v(function(j,k){_.then(function(q){j(b(q,x-1))},function(q){k(b(q,x-1))})});else if(y.__isArray(_))g=[];else if(y.__isRegExp(_))g=new RegExp(_.source,u(_)),_.lastIndex&&(g.lastIndex=_.lastIndex);else if(y.__isDate(_))g=new Date(_.getTime());else{if(A&&Buffer.isBuffer(_))return Buffer.allocUnsafe?g=Buffer.allocUnsafe(_.length):g=new Buffer(_.length),_.copy(g),g;N(_,Error)?g=Object.create(_):typeof r>"u"?(p=Object.getPrototypeOf(_),g=Object.create(p)):(g=Object.create(r),p=r)}if(a){var m=n.indexOf(_);if(m!=-1)return c[m];n.push(_),c.push(g)}N(_,w)&&_.forEach(function(j,k){var q=b(k,x-1),D=b(j,x-1);g.set(q,D)}),N(_,O)&&_.forEach(function(j){var k=b(j,x-1);g.add(k)});for(var T in _){var S;p&&(S=Object.getOwnPropertyDescriptor(p,T)),!(S&&S.set==null)&&(g[T]=b(_[T],x-1))}if(Object.getOwnPropertySymbols)for(var R=Object.getOwnPropertySymbols(_),T=0;T<R.length;T++){var B=R[T],C=Object.getOwnPropertyDescriptor(_,B);C&&!C.enumerable&&!f||(g[B]=b(_[B],x-1),C.enumerable||Object.defineProperty(g,B,{enumerable:!1}))}if(f)for(var Z=Object.getOwnPropertyNames(_),T=0;T<Z.length;T++){var F=Z[T],C=Object.getOwnPropertyDescriptor(_,F);C&&C.enumerable||(g[F]=b(_[F],x-1),Object.defineProperty(g,F,{enumerable:!1}))}return g}return b(l,i)}y.clonePrototype=function(a){if(a===null)return null;var i=function(){};return i.prototype=a,new i};function d(l){return Object.prototype.toString.call(l)}y.__objToStr=d;function o(l){return typeof l=="object"&&d(l)==="[object Date]"}y.__isDate=o;function e(l){return typeof l=="object"&&d(l)==="[object Array]"}y.__isArray=e;function t(l){return typeof l=="object"&&d(l)==="[object RegExp]"}y.__isRegExp=t;function u(l){var a="";return l.global&&(a+="g"),l.ignoreCase&&(a+="i"),l.multiline&&(a+="m"),a}return y.__getRegExpFlags=u,y}();typeof L=="object"&&L.exports&&(L.exports=h)},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function g(p,m){var T=[],S=!0,R=!1,B=void 0;try{for(var C=p[Symbol.iterator](),Z;!(S=(Z=C.next()).done)&&(T.push(Z.value),!(m&&T.length===m));S=!0);}catch(F){R=!0,B=F}finally{try{!S&&C.return&&C.return()}finally{if(R)throw B}}return T}return function(p,m){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return g(p,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function g(p,m){for(var T=0;T<m.length;T++){var S=m[T];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(p,S.key,S)}}return function(p,m,T){return m&&g(p.prototype,m),T&&g(p,T),p}}(),O=function g(p,m,T){p===null&&(p=Function.prototype);var S=Object.getOwnPropertyDescriptor(p,m);if(S===void 0){var R=Object.getPrototypeOf(p);return R===null?void 0:g(R,m,T)}else{if("value"in S)return S.value;var B=S.get;return B===void 0?void 0:B.call(T)}},v=h(0),y=n(v),d=h(8),o=n(d),e=h(4),t=n(e),u=h(16),l=n(u),a=h(13),i=n(a),r=h(25),f=n(r);function n(g){return g&&g.__esModule?g:{default:g}}function c(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function A(g,p){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:g}function b(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(g,p):g.__proto__=p)}function _(g){return g instanceof t.default||g instanceof e.BlockEmbed}var x=function(g){b(p,g);function p(m,T){c(this,p);var S=A(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,m));return S.emitter=T.emitter,Array.isArray(T.whitelist)&&(S.whitelist=T.whitelist.reduce(function(R,B){return R[B]=!0,R},{})),S.domNode.addEventListener("DOMNodeInserted",function(){}),S.optimize(),S.enable(),S}return w(p,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(T,S){var R=this.line(T),B=N(R,2),C=B[0],Z=B[1],F=this.line(T+S),j=N(F,1),k=j[0];if(O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"deleteAt",this).call(this,T,S),k!=null&&C!==k&&Z>0){if(C instanceof e.BlockEmbed||k instanceof e.BlockEmbed){this.optimize();return}if(C instanceof i.default){var q=C.newlineIndex(C.length(),!0);if(q>-1&&(C=C.split(q+1),C===k)){this.optimize();return}}else if(k instanceof i.default){var D=k.newlineIndex(0);D>-1&&k.split(D+1)}var U=k.children.head instanceof l.default?null:k.children.head;C.moveChildren(k,U),C.remove()}this.optimize()}},{key:"enable",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",T)}},{key:"formatAt",value:function(T,S,R,B){this.whitelist!=null&&!this.whitelist[R]||(O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"formatAt",this).call(this,T,S,R,B),this.optimize())}},{key:"insertAt",value:function(T,S,R){if(!(R!=null&&this.whitelist!=null&&!this.whitelist[S])){if(T>=this.length())if(R==null||y.default.query(S,y.default.Scope.BLOCK)==null){var B=y.default.create(this.statics.defaultChild);this.appendChild(B),R==null&&S.endsWith(`
|
|
27
|
+
`)&&(S=S.slice(0,-1)),B.insertAt(0,S,R)}else{var C=y.default.create(S,R);this.appendChild(C)}else O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertAt",this).call(this,T,S,R);this.optimize()}}},{key:"insertBefore",value:function(T,S){if(T.statics.scope===y.default.Scope.INLINE_BLOT){var R=y.default.create(this.statics.defaultChild);R.appendChild(T),T=R}O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertBefore",this).call(this,T,S)}},{key:"leaf",value:function(T){return this.path(T).pop()||[null,-1]}},{key:"line",value:function(T){return T===this.length()?this.line(T-1):this.descendant(_,T)}},{key:"lines",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,R=function B(C,Z,F){var j=[],k=F;return C.children.forEachAt(Z,F,function(q,D,U){_(q)?j.push(q):q instanceof y.default.Container&&(j=j.concat(B(q,D,k))),k-=U}),j};return R(this,T,S)}},{key:"optimize",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,T,S),T.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,T,S))}},{key:"path",value:function(T){return O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"path",this).call(this,T).slice(1)}},{key:"update",value:function(T){if(this.batch!==!0){var S=o.default.sources.USER;typeof T=="string"&&(S=T),Array.isArray(T)||(T=this.observer.takeRecords()),T.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,S,T),O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"update",this).call(this,T.concat([])),T.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,S,T)}}}]),p}(y.default.Scroll);x.blotName="scroll",x.className="ql-editor",x.tagName="DIV",x.defaultChild="block",x.allowedChildren=[t.default,e.BlockEmbed,f.default],s.default=x},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.SHORTKEY=s.default=void 0;var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},w=function(){function P(I,$){var H=[],V=!0,X=!1,J=void 0;try{for(var ee=I[Symbol.iterator](),ie;!(V=(ie=ee.next()).done)&&(H.push(ie.value),!($&&H.length===$));V=!0);}catch(oe){X=!0,J=oe}finally{try{!V&&ee.return&&ee.return()}finally{if(X)throw J}}return H}return function(I,$){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return P(I,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function P(I,$){for(var H=0;H<$.length;H++){var V=$[H];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(I,V.key,V)}}return function(I,$,H){return $&&P(I.prototype,$),H&&P(I,H),I}}(),v=h(21),y=g(v),d=h(11),o=g(d),e=h(3),t=g(e),u=h(2),l=g(u),a=h(20),i=g(a),r=h(0),f=g(r),n=h(5),c=g(n),A=h(10),b=g(A),_=h(9),x=g(_);function g(P){return P&&P.__esModule?P:{default:P}}function p(P,I,$){return I in P?Object.defineProperty(P,I,{value:$,enumerable:!0,configurable:!0,writable:!0}):P[I]=$,P}function m(P,I){if(!(P instanceof I))throw new TypeError("Cannot call a class as a function")}function T(P,I){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:P}function S(P,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);P.prototype=Object.create(I&&I.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(P,I):P.__proto__=I)}var R=(0,b.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(P){S(I,P),O(I,null,[{key:"match",value:function(H,V){return V=M(V),["altKey","ctrlKey","metaKey","shiftKey"].some(function(X){return!!V[X]!==H[X]&&V[X]!==null})?!1:V.key===(H.which||H.keyCode)}}]);function I($,H){m(this,I);var V=T(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,$,H));return V.bindings={},Object.keys(V.options.bindings).forEach(function(X){X==="list autofill"&&$.scroll.whitelist!=null&&!$.scroll.whitelist.list||V.options.bindings[X]&&V.addBinding(V.options.bindings[X])}),V.addBinding({key:I.keys.ENTER,shiftKey:null},q),V.addBinding({key:I.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(V.addBinding({key:I.keys.BACKSPACE},{collapsed:!0},F),V.addBinding({key:I.keys.DELETE},{collapsed:!0},j)):(V.addBinding({key:I.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},F),V.addBinding({key:I.keys.DELETE},{collapsed:!0,suffix:/^.?$/},j)),V.addBinding({key:I.keys.BACKSPACE},{collapsed:!1},k),V.addBinding({key:I.keys.DELETE},{collapsed:!1},k),V.addBinding({key:I.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},F),V.listen(),V}return O(I,[{key:"addBinding",value:function(H){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},J=M(H);if(J==null||J.key==null)return R.warn("Attempted to add invalid keyboard binding",J);typeof V=="function"&&(V={handler:V}),typeof X=="function"&&(X={handler:X}),J=(0,t.default)(J,V,X),this.bindings[J.key]=this.bindings[J.key]||[],this.bindings[J.key].push(J)}},{key:"listen",value:function(){var H=this;this.quill.root.addEventListener("keydown",function(V){if(!V.defaultPrevented){var X=V.which||V.keyCode,J=(H.bindings[X]||[]).filter(function(ae){return I.match(V,ae)});if(J.length!==0){var ee=H.quill.getSelection();if(!(ee==null||!H.quill.hasFocus())){var ie=H.quill.getLine(ee.index),oe=w(ie,2),se=oe[0],ue=oe[1],z=H.quill.getLeaf(ee.index),K=w(z,2),Y=K[0],Q=K[1],G=ee.length===0?[Y,Q]:H.quill.getLeaf(ee.index+ee.length),te=w(G,2),ne=te[0],re=te[1],fe=Y instanceof f.default.Text?Y.value().slice(0,Q):"",ce=ne instanceof f.default.Text?ne.value().slice(re):"",le={collapsed:ee.length===0,empty:ee.length===0&&se.length()<=1,format:H.quill.getFormat(ee),offset:ue,prefix:fe,suffix:ce},Oe=J.some(function(ae){if(ae.collapsed!=null&&ae.collapsed!==le.collapsed||ae.empty!=null&&ae.empty!==le.empty||ae.offset!=null&&ae.offset!==le.offset)return!1;if(Array.isArray(ae.format)){if(ae.format.every(function(de){return le.format[de]==null}))return!1}else if(N(ae.format)==="object"&&!Object.keys(ae.format).every(function(de){return ae.format[de]===!0?le.format[de]!=null:ae.format[de]===!1?le.format[de]==null:(0,o.default)(ae.format[de],le.format[de])}))return!1;return ae.prefix!=null&&!ae.prefix.test(le.prefix)||ae.suffix!=null&&!ae.suffix.test(le.suffix)?!1:ae.handler.call(H,ee,le)!==!0});Oe&&V.preventDefault()}}}})}}]),I}(x.default);C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:U("bold"),italic:U("italic"),underline:U("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(I,$){if($.collapsed&&$.offset!==0)return!0;this.quill.format("indent","+1",c.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(I,$){if($.collapsed&&$.offset!==0)return!0;this.quill.format("indent","-1",c.default.sources.USER)}},"outdent backspace":{key:C.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(I,$){$.format.indent!=null?this.quill.format("indent","-1",c.default.sources.USER):$.format.list!=null&&this.quill.format("list",!1,c.default.sources.USER)}},"indent code-block":D(!0),"outdent code-block":D(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(I){this.quill.deleteText(I.index-1,1,c.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(I){this.quill.history.cutoff();var $=new l.default().retain(I.index).delete(I.length).insert(" ");this.quill.updateContents($,c.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index+1,c.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(I,$){this.quill.format("list",!1,c.default.sources.USER),$.format.indent&&this.quill.format("indent",!1,c.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(I){var $=this.quill.getLine(I.index),H=w($,2),V=H[0],X=H[1],J=(0,t.default)({},V.formats(),{list:"checked"}),ee=new l.default().retain(I.index).insert(`
|
|
28
28
|
`,J).retain(V.length()-X-1).retain(1,{list:"unchecked"});this.quill.updateContents(ee,c.default.sources.USER),this.quill.setSelection(I.index+1,c.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(I,$){var H=this.quill.getLine(I.index),V=w(H,2),X=V[0],J=V[1],ee=new l.default().retain(I.index).insert(`
|
|
29
|
-
`,$.format).retain(X.length()-J-1).retain(1,{header:null});this.quill.updateContents(ee,c.default.sources.USER),this.quill.setSelection(I.index+1,c.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(I,$){var H=$.prefix.length,V=this.quill.getLine(I.index),X=w(V,2),J=X[0],ee=X[1];if(ee>H)return!0;var ie=void 0;switch($.prefix.trim()){case"[]":case"[ ]":ie="unchecked";break;case"[x]":ie="checked";break;case"-":case"*":ie="bullet";break;default:ie="ordered"}this.quill.insertText(I.index," ",c.default.sources.USER),this.quill.history.cutoff();var oe=new l.default().retain(I.index-ee).delete(H+1).retain(J.length()-2-ee).retain(1,{list:ie});this.quill.updateContents(oe,c.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index-H,c.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(I){var $=this.quill.getLine(I.index),H=w($,2),V=H[0],X=H[1],J=new l.default().retain(I.index+V.length()-X-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(J,c.default.sources.USER)}},"embed left":
|
|
30
|
-
`,H,c.default.sources.USER),this.quill.setSelection(P.index+1,c.default.sources.SILENT),this.quill.focus(),Object.keys(I.format).forEach(function(V){H[V]==null&&(Array.isArray(I.format[V])||V!=="link"&&$.quill.format(V,I.format[V],c.default.sources.USER))})}function D(P){return{key:C.keys.TAB,shiftKey:!P,format:{"code-block":!0},handler:function($){var H=
|
|
31
|
-
`);oe=0,K.forEach(function(Y,Q){P?(ie.insertAt(ue+oe,H.TAB),oe+=H.TAB.length,Q===0?V+=H.TAB.length:X+=H.TAB.length):Y.startsWith(H.TAB)&&(ie.deleteAt(ue+oe,H.TAB.length),oe-=H.TAB.length,Q===0?V-=H.TAB.length:X-=H.TAB.length),oe+=Y.length+1}),this.quill.update(c.default.sources.USER),this.quill.setSelection(V,X,c.default.sources.SILENT)}}}}function U(P){return{key:P[0].toUpperCase(),shortKey:!0,handler:function($,H){this.quill.format(P,!H.format[P],c.default.sources.USER)}}}function M(P){if(typeof P=="string"||typeof P=="number")return M({key:P});if((typeof P>"u"?"undefined":N(P))==="object"&&(P=(0,y.default)(P,!1)),typeof P.key=="string")if(C.keys[P.key.toUpperCase()]!=null)P.key=C.keys[P.key.toUpperCase()];else if(P.key.length===1)P.key=P.key.toUpperCase().charCodeAt(0);else return null;return P.shortKey&&(P[B]=P.shortKey,delete P.shortKey),P}f.default=C,f.SHORTKEY=B},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function i(r,s){var n=[],c=!0,A=!1,b=void 0;try{for(var _=r[Symbol.iterator](),x;!(c=(x=_.next()).done)&&(n.push(x.value),!(s&&n.length===s));c=!0);}catch(g){A=!0,b=g}finally{try{!c&&_.return&&_.return()}finally{if(A)throw b}}return n}return function(r,s){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return i(r,s);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function i(r,s,n){r===null&&(r=Function.prototype);var c=Object.getOwnPropertyDescriptor(r,s);if(c===void 0){var A=Object.getPrototypeOf(r);return A===null?void 0:i(A,s,n)}else{if("value"in c)return c.value;var b=c.get;return b===void 0?void 0:b.call(n)}},O=function(){function i(r,s){for(var n=0;n<s.length;n++){var c=s[n];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(r,c.key,c)}}return function(r,s,n){return s&&i(r.prototype,s),n&&i(r,n),r}}(),v=h(0),y=e(v),d=h(7),o=e(d);function e(i){return i&&i.__esModule?i:{default:i}}function t(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function u(i,r){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:i}function l(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);i.prototype=Object.create(r&&r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(i,r):i.__proto__=r)}var a=function(i){l(r,i),O(r,null,[{key:"value",value:function(){}}]);function r(s,n){t(this,r);var c=u(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,s));return c.selection=n,c.textNode=document.createTextNode(r.CONTENTS),c.domNode.appendChild(c.textNode),c._length=0,c}return O(r,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,c){if(this._length!==0)return w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,n,c);for(var A=this,b=0;A!=null&&A.statics.scope!==y.default.Scope.BLOCK_BLOT;)b+=A.offset(A.parent),A=A.parent;A!=null&&(this._length=r.CONTENTS.length,A.optimize(),A.formatAt(b,r.CONTENTS.length,n,c),this._length=0)}},{key:"index",value:function(n,c){return n===this.textNode?0:w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"index",this).call(this,n,c)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,c=this.selection.getNativeRange(),A=void 0,b=void 0,_=void 0;if(c!=null&&c.start.node===n&&c.end.node===n){var x=[n,c.start.offset,c.end.offset];A=x[0],b=x[1],_=x[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==r.CONTENTS){var g=this.textNode.data.split(r.CONTENTS).join("");this.next instanceof o.default?(A=this.next.domNode,this.next.insertAt(0,g),this.textNode.data=r.CONTENTS):(this.textNode.data=g,this.parent.insertBefore(y.default.create(this.textNode),this),this.textNode=document.createTextNode(r.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),b!=null){var p=[b,_].map(function(T){return Math.max(0,Math.min(A.data.length,T-1))}),m=N(p,2);return b=m[0],_=m[1],{startNode:A,startOffset:b,endNode:A,endOffset:_}}}}},{key:"update",value:function(n,c){var A=this;if(n.some(function(_){return _.type==="characterData"&&_.target===A.textNode})){var b=this.restore();b&&(c.range=b)}}},{key:"value",value:function(){return""}}]),r}(y.default.Embed);a.blotName="cursor",a.className="ql-cursor",a.tagName="span",a.CONTENTS="\uFEFF",f.default=a},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=h(0),w=y(N),O=h(4),v=y(O);function y(u){return u&&u.__esModule?u:{default:u}}function d(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function e(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var t=function(u){e(l,u);function l(){return d(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(w.default.Container);t.allowedChildren=[v.default,O.BlockEmbed,t],f.default=t},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.ColorStyle=f.ColorClass=f.ColorAttributor=void 0;var N=function(){function a(i,r){for(var s=0;s<r.length;s++){var n=r[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,r,s){return r&&a(i.prototype,r),s&&a(i,s),i}}(),w=function a(i,r,s){i===null&&(i=Function.prototype);var n=Object.getOwnPropertyDescriptor(i,r);if(n===void 0){var c=Object.getPrototypeOf(i);return c===null?void 0:a(c,r,s)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(s)}},O=h(0),v=y(O);function y(a){return a&&a.__esModule?a:{default:a}}function d(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function o(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function e(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var t=function(a){e(i,a);function i(){return d(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return N(i,[{key:"value",value:function(s){var n=w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,s);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(c){return("00"+parseInt(c).toString(16)).slice(-2)}).join("")):n}}]),i}(v.default.Attributor.Style),u=new v.default.Attributor.Class("color","ql-color",{scope:v.default.Scope.INLINE}),l=new t("color","color",{scope:v.default.Scope.INLINE});f.ColorAttributor=t,f.ColorClass=u,f.ColorStyle=l},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.sanitize=f.default=void 0;var N=function(){function l(a,i){for(var r=0;r<i.length;r++){var s=i[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}return function(a,i,r){return i&&l(a.prototype,i),r&&l(a,r),a}}(),w=function l(a,i,r){a===null&&(a=Function.prototype);var s=Object.getOwnPropertyDescriptor(a,i);if(s===void 0){var n=Object.getPrototypeOf(a);return n===null?void 0:l(n,i,r)}else{if("value"in s)return s.value;var c=s.get;return c===void 0?void 0:c.call(r)}},O=h(6),v=y(O);function y(l){return l&&l.__esModule?l:{default:l}}function d(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function e(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var t=function(l){e(a,l);function a(){return d(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return N(a,[{key:"format",value:function(r,s){if(r!==this.statics.blotName||!s)return w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,r,s);s=this.constructor.sanitize(s),this.domNode.setAttribute("href",s)}}],[{key:"create",value:function(r){var s=w(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,r);return r=this.sanitize(r),s.setAttribute("href",r),s.setAttribute("rel","noopener noreferrer"),s.setAttribute("target","_blank"),s}},{key:"formats",value:function(r){return r.getAttribute("href")}},{key:"sanitize",value:function(r){return u(r,this.PROTOCOL_WHITELIST)?r:this.SANITIZED_URL}}]),a}(v.default);t.blotName="link",t.tagName="A",t.SANITIZED_URL="about:blank",t.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function u(l,a){var i=document.createElement("a");i.href=l;var r=i.href.slice(0,i.href.indexOf(":"));return a.indexOf(r)>-1}f.default=t,f.sanitize=u},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},w=function(){function a(i,r){for(var s=0;s<r.length;s++){var n=r[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,r,s){return r&&a(i.prototype,r),s&&a(i,s),i}}(),O=h(23),v=o(O),y=h(107),d=o(y);function o(a){return a&&a.__esModule?a:{default:a}}function e(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}var t=0;function u(a,i){a.setAttribute(i,a.getAttribute(i)!=="true")}var l=function(){function a(i){var r=this;e(this,a),this.select=i,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){r.togglePicker()}),this.label.addEventListener("keydown",function(s){switch(s.keyCode){case v.default.keys.ENTER:r.togglePicker();break;case v.default.keys.ESCAPE:r.escape(),s.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return w(a,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(r){var s=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),r.hasAttribute("value")&&n.setAttribute("data-value",r.getAttribute("value")),r.textContent&&n.setAttribute("data-label",r.textContent),n.addEventListener("click",function(){s.selectItem(n,!0)}),n.addEventListener("keydown",function(c){switch(c.keyCode){case v.default.keys.ENTER:s.selectItem(n,!0),c.preventDefault();break;case v.default.keys.ESCAPE:s.escape(),c.preventDefault();break}}),n}},{key:"buildLabel",value:function(){var r=document.createElement("span");return r.classList.add("ql-picker-label"),r.innerHTML=d.default,r.tabIndex="0",r.setAttribute("role","button"),r.setAttribute("aria-expanded","false"),this.container.appendChild(r),r}},{key:"buildOptions",value:function(){var r=this,s=document.createElement("span");s.classList.add("ql-picker-options"),s.setAttribute("aria-hidden","true"),s.tabIndex="-1",s.id="ql-picker-options-"+t,t+=1,this.label.setAttribute("aria-controls",s.id),this.options=s,[].slice.call(this.select.options).forEach(function(n){var c=r.buildItem(n);s.appendChild(c),n.selected===!0&&r.selectItem(c)}),this.container.appendChild(s)}},{key:"buildPicker",value:function(){var r=this;[].slice.call(this.select.attributes).forEach(function(s){r.container.setAttribute(s.name,s.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var r=this;this.close(),setTimeout(function(){return r.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(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(r!==n&&(n!=null&&n.classList.remove("ql-selected"),r!=null&&(r.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(r.parentNode.children,r),r.hasAttribute("data-value")?this.label.setAttribute("data-value",r.getAttribute("data-value")):this.label.removeAttribute("data-value"),r.hasAttribute("data-label")?this.label.setAttribute("data-label",r.getAttribute("data-label")):this.label.removeAttribute("data-label"),s))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":N(Event))==="object"){var c=document.createEvent("Event");c.initEvent("change",!0,!0),this.select.dispatchEvent(c)}this.close()}}},{key:"update",value:function(){var r=void 0;if(this.select.selectedIndex>-1){var s=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];r=this.select.options[this.select.selectedIndex],this.selectItem(s)}else this.selectItem(null);var n=r!=null&&r!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),a}();f.default=l},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=h(0),w=R(N),O=h(5),v=R(O),y=h(4),d=R(y),o=h(16),e=R(o),t=h(25),u=R(t),l=h(24),a=R(l),i=h(35),r=R(i),s=h(6),n=R(s),c=h(22),A=R(c),b=h(7),_=R(b),x=h(55),g=R(x),p=h(42),m=R(p),T=h(23),S=R(T);function R(B){return B&&B.__esModule?B:{default:B}}v.default.register({"blots/block":d.default,"blots/block/embed":y.BlockEmbed,"blots/break":e.default,"blots/container":u.default,"blots/cursor":a.default,"blots/embed":r.default,"blots/inline":n.default,"blots/scroll":A.default,"blots/text":_.default,"modules/clipboard":g.default,"modules/history":m.default,"modules/keyboard":S.default}),w.default.register(d.default,e.default,a.default,n.default,A.default,_.default),f.default=v.default},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=h(1),w=function(){function O(v){this.domNode=v,this.domNode[N.DATA_KEY]={blot:this}}return Object.defineProperty(O.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),O.create=function(v){if(this.tagName==null)throw new N.ParchmentError("Blot definition missing tagName");var y;return Array.isArray(this.tagName)?(typeof v=="string"&&(v=v.toUpperCase(),parseInt(v).toString()===v&&(v=parseInt(v))),typeof v=="number"?y=document.createElement(this.tagName[v-1]):this.tagName.indexOf(v)>-1?y=document.createElement(v):y=document.createElement(this.tagName[0])):y=document.createElement(this.tagName),this.className&&y.classList.add(this.className),y},O.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},O.prototype.clone=function(){var v=this.domNode.cloneNode(!1);return N.create(v)},O.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[N.DATA_KEY]},O.prototype.deleteAt=function(v,y){var d=this.isolate(v,y);d.remove()},O.prototype.formatAt=function(v,y,d,o){var e=this.isolate(v,y);if(N.query(d,N.Scope.BLOT)!=null&&o)e.wrap(d,o);else if(N.query(d,N.Scope.ATTRIBUTE)!=null){var t=N.create(this.statics.scope);e.wrap(t),t.format(d,o)}},O.prototype.insertAt=function(v,y,d){var o=d==null?N.create("text",y):N.create(y,d),e=this.split(v);this.parent.insertBefore(o,e)},O.prototype.insertInto=function(v,y){y===void 0&&(y=null),this.parent!=null&&this.parent.children.remove(this);var d=null;v.children.insertBefore(this,y),y!=null&&(d=y.domNode),(this.domNode.parentNode!=v.domNode||this.domNode.nextSibling!=d)&&v.domNode.insertBefore(this.domNode,d),this.parent=v,this.attach()},O.prototype.isolate=function(v,y){var d=this.split(v);return d.split(y),d},O.prototype.length=function(){return 1},O.prototype.offset=function(v){return v===void 0&&(v=this.parent),this.parent==null||this==v?0:this.parent.children.offset(this)+this.parent.offset(v)},O.prototype.optimize=function(v){this.domNode[N.DATA_KEY]!=null&&delete this.domNode[N.DATA_KEY].mutations},O.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},O.prototype.replace=function(v){v.parent!=null&&(v.parent.insertBefore(this,v.next),v.remove())},O.prototype.replaceWith=function(v,y){var d=typeof v=="string"?N.create(v,y):v;return d.replace(this),d},O.prototype.split=function(v,y){return v===0?this:this.next},O.prototype.update=function(v,y){},O.prototype.wrap=function(v,y){var d=typeof v=="string"?N.create(v,y):v;return this.parent!=null&&this.parent.insertBefore(d,this.next),d.appendChild(this),d},O.blotName="abstract",O}();f.default=w},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=h(12),w=h(32),O=h(33),v=h(1),y=function(){function d(o){this.attributes={},this.domNode=o,this.build()}return d.prototype.attribute=function(o,e){e?o.add(this.domNode,e)&&(o.value(this.domNode)!=null?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},d.prototype.build=function(){var o=this;this.attributes={};var e=N.default.keys(this.domNode),t=w.default.keys(this.domNode),u=O.default.keys(this.domNode);e.concat(t).concat(u).forEach(function(l){var a=v.query(l,v.Scope.ATTRIBUTE);a instanceof N.default&&(o.attributes[a.attrName]=a)})},d.prototype.copy=function(o){var e=this;Object.keys(this.attributes).forEach(function(t){var u=e.attributes[t].value(e.domNode);o.format(t,u)})},d.prototype.move=function(o){var e=this;this.copy(o),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},d.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(e,t){return e[t]=o.attributes[t].value(o.domNode),e},{})},d}();f.default=y},function(L,f,h){var N=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var e in o)o.hasOwnProperty(e)&&(d[e]=o[e])};return function(d,o){y(d,o);function e(){this.constructor=d}d.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(f,"__esModule",{value:!0});var w=h(12);function O(y,d){var o=y.getAttribute("class")||"";return o.split(/\s+/).filter(function(e){return e.indexOf(d+"-")===0})}var v=function(y){N(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},d.prototype.add=function(o,e){return this.canAdd(o,e)?(this.remove(o),o.classList.add(this.keyName+"-"+e),!0):!1},d.prototype.remove=function(o){var e=O(o,this.keyName);e.forEach(function(t){o.classList.remove(t)}),o.classList.length===0&&o.removeAttribute("class")},d.prototype.value=function(o){var e=O(o,this.keyName)[0]||"",t=e.slice(this.keyName.length+1);return this.canAdd(o,t)?t:""},d}(w.default);f.default=v},function(L,f,h){var N=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var e in o)o.hasOwnProperty(e)&&(d[e]=o[e])};return function(d,o){y(d,o);function e(){this.constructor=d}d.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(f,"__esModule",{value:!0});var w=h(12);function O(y){var d=y.split("-"),o=d.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return d[0]+o}var v=function(y){N(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(e){var t=e.split(":");return t[0].trim()})},d.prototype.add=function(o,e){return this.canAdd(o,e)?(o.style[O(this.keyName)]=e,!0):!1},d.prototype.remove=function(o){o.style[O(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},d.prototype.value=function(o){var e=o.style[O(this.keyName)];return this.canAdd(o,e)?e:""},d}(w.default);f.default=v},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function v(y,d){for(var o=0;o<d.length;o++){var e=d[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(y,e.key,e)}}return function(y,d,o){return d&&v(y.prototype,d),o&&v(y,o),y}}();function w(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}var O=function(){function v(y,d){w(this,v),this.quill=y,this.options=d,this.modules={}}return N(v,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(o){d.modules[o]==null&&d.addModule(o)})}},{key:"addModule",value:function(d){var o=this.quill.constructor.import("modules/"+d);return this.modules[d]=new o(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),v}();O.DEFAULTS={modules:{}},O.themes={default:O},f.default=O},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function i(r,s){for(var n=0;n<s.length;n++){var c=s[n];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(r,c.key,c)}}return function(r,s,n){return s&&i(r.prototype,s),n&&i(r,n),r}}(),w=function i(r,s,n){r===null&&(r=Function.prototype);var c=Object.getOwnPropertyDescriptor(r,s);if(c===void 0){var A=Object.getPrototypeOf(r);return A===null?void 0:i(A,s,n)}else{if("value"in c)return c.value;var b=c.get;return b===void 0?void 0:b.call(n)}},O=h(0),v=o(O),y=h(7),d=o(y);function o(i){return i&&i.__esModule?i:{default:i}}function e(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function t(i,r){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:i}function u(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);i.prototype=Object.create(r&&r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(i,r):i.__proto__=r)}var l="\uFEFF",a=function(i){u(r,i);function r(s){e(this,r);var n=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,s));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(c){n.contentNode.appendChild(c)}),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return N(r,[{key:"index",value:function(n,c){return n===this.leftGuard?0:n===this.rightGuard?1:w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"index",this).call(this,n,c)}},{key:"restore",value:function(n){var c=void 0,A=void 0,b=n.data.split(l).join("");if(n===this.leftGuard)if(this.prev instanceof d.default){var _=this.prev.length();this.prev.insertAt(_,b),c={startNode:this.prev.domNode,startOffset:_+b.length}}else A=document.createTextNode(b),this.parent.insertBefore(v.default.create(A),this),c={startNode:A,startOffset:b.length};else n===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,b),c={startNode:this.next.domNode,startOffset:b.length}):(A=document.createTextNode(b),this.parent.insertBefore(v.default.create(A),this.next),c={startNode:A,startOffset:b.length}));return n.data=l,c}},{key:"update",value:function(n,c){var A=this;n.forEach(function(b){if(b.type==="characterData"&&(b.target===A.leftGuard||b.target===A.rightGuard)){var _=A.restore(b.target);_&&(c.range=_)}})}}]),r}(v.default.Embed);f.default=a},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.AlignStyle=f.AlignClass=f.AlignAttribute=void 0;var N=h(0),w=O(N);function O(e){return e&&e.__esModule?e:{default:e}}var v={scope:w.default.Scope.BLOCK,whitelist:["right","center","justify"]},y=new w.default.Attributor.Attribute("align","align",v),d=new w.default.Attributor.Class("align","ql-align",v),o=new w.default.Attributor.Style("align","text-align",v);f.AlignAttribute=y,f.AlignClass=d,f.AlignStyle=o},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.BackgroundStyle=f.BackgroundClass=void 0;var N=h(0),w=v(N),O=h(26);function v(o){return o&&o.__esModule?o:{default:o}}var y=new w.default.Attributor.Class("background","ql-bg",{scope:w.default.Scope.INLINE}),d=new O.ColorAttributor("background","background-color",{scope:w.default.Scope.INLINE});f.BackgroundClass=y,f.BackgroundStyle=d},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.DirectionStyle=f.DirectionClass=f.DirectionAttribute=void 0;var N=h(0),w=O(N);function O(e){return e&&e.__esModule?e:{default:e}}var v={scope:w.default.Scope.BLOCK,whitelist:["rtl"]},y=new w.default.Attributor.Attribute("direction","dir",v),d=new w.default.Attributor.Class("direction","ql-direction",v),o=new w.default.Attributor.Style("direction","direction",v);f.DirectionAttribute=y,f.DirectionClass=d,f.DirectionStyle=o},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.FontClass=f.FontStyle=void 0;var N=function(){function i(r,s){for(var n=0;n<s.length;n++){var c=s[n];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(r,c.key,c)}}return function(r,s,n){return s&&i(r.prototype,s),n&&i(r,n),r}}(),w=function i(r,s,n){r===null&&(r=Function.prototype);var c=Object.getOwnPropertyDescriptor(r,s);if(c===void 0){var A=Object.getPrototypeOf(r);return A===null?void 0:i(A,s,n)}else{if("value"in c)return c.value;var b=c.get;return b===void 0?void 0:b.call(n)}},O=h(0),v=y(O);function y(i){return i&&i.__esModule?i:{default:i}}function d(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function o(i,r){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:i}function e(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);i.prototype=Object.create(r&&r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(i,r):i.__proto__=r)}var t={scope:v.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new v.default.Attributor.Class("font","ql-font",t),l=function(i){e(r,i);function r(){return d(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return N(r,[{key:"value",value:function(n){return w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),r}(v.default.Attributor.Style),a=new l("font","font-family",t);f.FontStyle=a,f.FontClass=u},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.SizeStyle=f.SizeClass=void 0;var N=h(0),w=O(N);function O(d){return d&&d.__esModule?d:{default:d}}var v=new w.default.Attributor.Class("size","ql-size",{scope:w.default.Scope.INLINE,whitelist:["small","large","huge"]}),y=new w.default.Attributor.Style("size","font-size",{scope:w.default.Scope.INLINE,whitelist:["10px","18px","32px"]});f.SizeClass=v,f.SizeStyle=y},function(L,f,h){L.exports={align:{"":h(76),center:h(77),right:h(78),justify:h(79)},background:h(80),blockquote:h(81),bold:h(82),clean:h(83),code:h(58),"code-block":h(58),color:h(84),direction:{"":h(85),rtl:h(86)},float:{center:h(87),full:h(88),left:h(89),right:h(90)},formula:h(91),header:{1:h(92),2:h(93)},italic:h(94),image:h(95),indent:{"+1":h(96),"-1":h(97)},link:h(98),list:{ordered:h(99),bullet:h(100),check:h(101)},script:{sub:h(102),super:h(103)},strike:h(104),underline:h(105),video:h(106)}},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.getLastChangeIndex=f.default=void 0;var N=function(){function s(n,c){for(var A=0;A<c.length;A++){var b=c[A];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(n,b.key,b)}}return function(n,c,A){return c&&s(n.prototype,c),A&&s(n,A),n}}(),w=h(0),O=e(w),v=h(5),y=e(v),d=h(9),o=e(d);function e(s){return s&&s.__esModule?s:{default:s}}function t(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function u(s,n){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:s}function l(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(s,n):s.__proto__=n)}var a=function(s){l(n,s);function n(c,A){t(this,n);var b=u(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,c,A));return b.lastRecorded=0,b.ignoreChange=!1,b.clear(),b.quill.on(y.default.events.EDITOR_CHANGE,function(_,x,g,p){_!==y.default.events.TEXT_CHANGE||b.ignoreChange||(!b.options.userOnly||p===y.default.sources.USER?b.record(x,g):b.transform(x))}),b.quill.keyboard.addBinding({key:"Z",shortKey:!0},b.undo.bind(b)),b.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},b.redo.bind(b)),/Win/i.test(navigator.platform)&&b.quill.keyboard.addBinding({key:"Y",shortKey:!0},b.redo.bind(b)),b}return N(n,[{key:"change",value:function(A,b){if(this.stack[A].length!==0){var _=this.stack[A].pop();this.stack[b].push(_),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(_[A],y.default.sources.USER),this.ignoreChange=!1;var x=r(_[A]);this.quill.setSelection(x)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(A,b){if(A.ops.length!==0){this.stack.redo=[];var _=this.quill.getContents().diff(b),x=Date.now();if(this.lastRecorded+this.options.delay>x&&this.stack.undo.length>0){var g=this.stack.undo.pop();_=_.compose(g.undo),A=g.redo.compose(A)}else this.lastRecorded=x;this.stack.undo.push({redo:A,undo:_}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(A){this.stack.undo.forEach(function(b){b.undo=A.transform(b.undo,!0),b.redo=A.transform(b.redo,!0)}),this.stack.redo.forEach(function(b){b.undo=A.transform(b.undo,!0),b.redo=A.transform(b.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(o.default);a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function i(s){var n=s.ops[s.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
|
|
32
|
-
`):n.attributes!=null?Object.keys(n.attributes).some(function(c){return O.default.query(c,O.default.Scope.BLOCK)!=null}):!1}function r(s){var n=s.reduce(function(A,b){return A+=b.delete||0,A},0),c=s.length()-n;return i(s)&&(c-=1),c}f.default=a,f.getLastChangeIndex=r},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.BaseTooltip=void 0;var N=function(){function q(D,U){for(var M=0;M<U.length;M++){var P=U[M];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(D,P.key,P)}}return function(D,U,M){return U&&q(D.prototype,U),M&&q(D,M),D}}(),w=function q(D,U,M){D===null&&(D=Function.prototype);var P=Object.getOwnPropertyDescriptor(D,U);if(P===void 0){var I=Object.getPrototypeOf(D);return I===null?void 0:q(I,U,M)}else{if("value"in P)return P.value;var $=P.get;return $===void 0?void 0:$.call(M)}},O=h(3),v=x(O),y=h(2),d=x(y),o=h(8),e=x(o),t=h(23),u=x(t),l=h(34),a=x(l),i=h(59),r=x(i),s=h(60),n=x(s),c=h(28),A=x(c),b=h(61),_=x(b);function x(q){return q&&q.__esModule?q:{default:q}}function g(q,D){if(!(q instanceof D))throw new TypeError("Cannot call a class as a function")}function p(q,D){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:q}function m(q,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);q.prototype=Object.create(D&&D.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(q,D):q.__proto__=D)}var T=[!1,"center","right","justify"],S=["#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"],R=[!1,"serif","monospace"],B=["1","2","3",!1],C=["small",!1,"large","huge"],W=function(q){m(D,q);function D(U,M){g(this,D);var P=p(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,U,M)),I=function $(H){if(!document.body.contains(U.root))return document.body.removeEventListener("click",$);P.tooltip!=null&&!P.tooltip.root.contains(H.target)&&document.activeElement!==P.tooltip.textbox&&!P.quill.hasFocus()&&P.tooltip.hide(),P.pickers!=null&&P.pickers.forEach(function(V){V.container.contains(H.target)||V.close()})};return U.emitter.listenDOM("click",document.body,I),P}return N(D,[{key:"addModule",value:function(M){var P=w(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"addModule",this).call(this,M);return M==="toolbar"&&this.extendToolbar(P),P}},{key:"buildButtons",value:function(M,P){M.forEach(function(I){var $=I.getAttribute("class")||"";$.split(/\s+/).forEach(function(H){if(!!H.startsWith("ql-")&&(H=H.slice(3),P[H]!=null))if(H==="direction")I.innerHTML=P[H][""]+P[H].rtl;else if(typeof P[H]=="string")I.innerHTML=P[H];else{var V=I.value||"";V!=null&&P[H][V]&&(I.innerHTML=P[H][V])}})})}},{key:"buildPickers",value:function(M,P){var I=this;this.pickers=M.map(function(H){if(H.classList.contains("ql-align"))return H.querySelector("option")==null&&k(H,T),new n.default(H,P.align);if(H.classList.contains("ql-background")||H.classList.contains("ql-color")){var V=H.classList.contains("ql-background")?"background":"color";return H.querySelector("option")==null&&k(H,S,V==="background"?"#ffffff":"#000000"),new r.default(H,P[V])}else return H.querySelector("option")==null&&(H.classList.contains("ql-font")?k(H,R):H.classList.contains("ql-header")?k(H,B):H.classList.contains("ql-size")&&k(H,C)),new A.default(H)});var $=function(){I.pickers.forEach(function(V){V.update()})};this.quill.on(e.default.events.EDITOR_CHANGE,$)}}]),D}(a.default);W.DEFAULTS=(0,v.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var D=this,U=this.container.querySelector("input.ql-image[type=file]");U==null&&(U=document.createElement("input"),U.setAttribute("type","file"),U.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),U.classList.add("ql-image"),U.addEventListener("change",function(){if(U.files!=null&&U.files[0]!=null){var M=new FileReader;M.onload=function(P){var I=D.quill.getSelection(!0);D.quill.updateContents(new d.default().retain(I.index).delete(I.length).insert({image:P.target.result}),e.default.sources.USER),D.quill.setSelection(I.index+1,e.default.sources.SILENT),U.value=""},M.readAsDataURL(U.files[0])}}),this.container.appendChild(U)),U.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var F=function(q){m(D,q);function D(U,M){g(this,D);var P=p(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,U,M));return P.textbox=P.root.querySelector('input[type="text"]'),P.listen(),P}return N(D,[{key:"listen",value:function(){var M=this;this.textbox.addEventListener("keydown",function(P){u.default.match(P,"enter")?(M.save(),P.preventDefault()):u.default.match(P,"escape")&&(M.cancel(),P.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),P!=null?this.textbox.value=P:M!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+M)||""),this.root.setAttribute("data-mode",M)}},{key:"restoreFocus",value:function(){var M=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=M}},{key:"save",value:function(){var M=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var P=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",M,e.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",M,e.default.sources.USER)),this.quill.root.scrollTop=P;break}case"video":M=j(M);case"formula":{if(!M)break;var I=this.quill.getSelection(!0);if(I!=null){var $=I.index+I.length;this.quill.insertEmbed($,this.root.getAttribute("data-mode"),M,e.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText($+1," ",e.default.sources.USER),this.quill.setSelection($+2,e.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),D}(_.default);function j(q){var D=q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return D?(D[1]||"https")+"://www.youtube.com/embed/"+D[2]+"?showinfo=0":(D=q.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(D[1]||"https")+"://player.vimeo.com/video/"+D[2]+"/":q}function k(q,D){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;D.forEach(function(M){var P=document.createElement("option");M===U?P.setAttribute("selected","selected"):P.setAttribute("value",M),q.appendChild(P)})}f.BaseTooltip=F,f.default=W},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function w(){this.head=this.tail=null,this.length=0}return w.prototype.append=function(){for(var O=[],v=0;v<arguments.length;v++)O[v]=arguments[v];this.insertBefore(O[0],null),O.length>1&&this.append.apply(this,O.slice(1))},w.prototype.contains=function(O){for(var v,y=this.iterator();v=y();)if(v===O)return!0;return!1},w.prototype.insertBefore=function(O,v){!O||(O.next=v,v!=null?(O.prev=v.prev,v.prev!=null&&(v.prev.next=O),v.prev=O,v===this.head&&(this.head=O)):this.tail!=null?(this.tail.next=O,O.prev=this.tail,this.tail=O):(O.prev=null,this.head=this.tail=O),this.length+=1)},w.prototype.offset=function(O){for(var v=0,y=this.head;y!=null;){if(y===O)return v;v+=y.length(),y=y.next}return-1},w.prototype.remove=function(O){!this.contains(O)||(O.prev!=null&&(O.prev.next=O.next),O.next!=null&&(O.next.prev=O.prev),O===this.head&&(this.head=O.next),O===this.tail&&(this.tail=O.prev),this.length-=1)},w.prototype.iterator=function(O){return O===void 0&&(O=this.head),function(){var v=O;return O!=null&&(O=O.next),v}},w.prototype.find=function(O,v){v===void 0&&(v=!1);for(var y,d=this.iterator();y=d();){var o=y.length();if(O<o||v&&O===o&&(y.next==null||y.next.length()!==0))return[y,O];O-=o}return[null,0]},w.prototype.forEach=function(O){for(var v,y=this.iterator();v=y();)O(v)},w.prototype.forEachAt=function(O,v,y){if(!(v<=0))for(var d=this.find(O),o=d[0],e=d[1],t,u=O-e,l=this.iterator(o);(t=l())&&u<O+v;){var a=t.length();O>u?y(t,O-u,Math.min(v,u+a-O)):y(t,0,Math.min(a,O+v-u)),u+=a}},w.prototype.map=function(O){return this.reduce(function(v,y){return v.push(O(y)),v},[])},w.prototype.reduce=function(O,v){for(var y,d=this.iterator();y=d();)v=O(v,y);return v},w}();f.default=N},function(L,f,h){var N=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var u in t)t.hasOwnProperty(u)&&(e[u]=t[u])};return function(e,t){o(e,t);function u(){this.constructor=e}e.prototype=t===null?Object.create(t):(u.prototype=t.prototype,new u)}}();Object.defineProperty(f,"__esModule",{value:!0});var w=h(17),O=h(1),v={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},y=100,d=function(o){N(e,o);function e(t){var u=o.call(this,t)||this;return u.scroll=u,u.observer=new MutationObserver(function(l){u.update(l)}),u.observer.observe(u.domNode,v),u.attach(),u}return e.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(t,u){this.update(),t===0&&u===this.length()?this.children.forEach(function(l){l.remove()}):o.prototype.deleteAt.call(this,t,u)},e.prototype.formatAt=function(t,u,l,a){this.update(),o.prototype.formatAt.call(this,t,u,l,a)},e.prototype.insertAt=function(t,u,l){this.update(),o.prototype.insertAt.call(this,t,u,l)},e.prototype.optimize=function(t,u){var l=this;t===void 0&&(t=[]),u===void 0&&(u={}),o.prototype.optimize.call(this,u);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)t.push(a.pop());for(var i=function(c,A){A===void 0&&(A=!0),!(c==null||c===l)&&c.domNode.parentNode!=null&&(c.domNode[O.DATA_KEY].mutations==null&&(c.domNode[O.DATA_KEY].mutations=[]),A&&i(c.parent))},r=function(c){c.domNode[O.DATA_KEY]==null||c.domNode[O.DATA_KEY].mutations==null||(c instanceof w.default&&c.children.forEach(r),c.optimize(u))},s=t,n=0;s.length>0;n+=1){if(n>=y)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(function(c){var A=O.find(c.target,!0);A!=null&&(A.domNode===c.target&&(c.type==="childList"?(i(O.find(c.previousSibling,!1)),[].forEach.call(c.addedNodes,function(b){var _=O.find(b,!1);i(_,!1),_ instanceof w.default&&_.children.forEach(function(x){i(x,!1)})})):c.type==="attributes"&&i(A.prev)),i(A))}),this.children.forEach(r),s=[].slice.call(this.observer.takeRecords()),a=s.slice();a.length>0;)t.push(a.pop())}},e.prototype.update=function(t,u){var l=this;u===void 0&&(u={}),t=t||this.observer.takeRecords(),t.map(function(a){var i=O.find(a.target,!0);return i==null?null:i.domNode[O.DATA_KEY].mutations==null?(i.domNode[O.DATA_KEY].mutations=[a],i):(i.domNode[O.DATA_KEY].mutations.push(a),null)}).forEach(function(a){a==null||a===l||a.domNode[O.DATA_KEY]==null||a.update(a.domNode[O.DATA_KEY].mutations||[],u)}),this.domNode[O.DATA_KEY].mutations!=null&&o.prototype.update.call(this,this.domNode[O.DATA_KEY].mutations,u),this.optimize(t,u)},e.blotName="scroll",e.defaultChild="block",e.scope=O.Scope.BLOCK_BLOT,e.tagName="DIV",e}(w.default);f.default=d},function(L,f,h){var N=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t])};return function(o,e){d(o,e);function t(){this.constructor=o}o.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(f,"__esModule",{value:!0});var w=h(18),O=h(1);function v(d,o){if(Object.keys(d).length!==Object.keys(o).length)return!1;for(var e in d)if(d[e]!==o[e])return!1;return!0}var y=function(d){N(o,d);function o(){return d!==null&&d.apply(this,arguments)||this}return o.formats=function(e){if(e.tagName!==o.tagName)return d.formats.call(this,e)},o.prototype.format=function(e,t){var u=this;e===this.statics.blotName&&!t?(this.children.forEach(function(l){l instanceof w.default||(l=l.wrap(o.blotName,!0)),u.attributes.copy(l)}),this.unwrap()):d.prototype.format.call(this,e,t)},o.prototype.formatAt=function(e,t,u,l){if(this.formats()[u]!=null||O.query(u,O.Scope.ATTRIBUTE)){var a=this.isolate(e,t);a.format(u,l)}else d.prototype.formatAt.call(this,e,t,u,l)},o.prototype.optimize=function(e){d.prototype.optimize.call(this,e);var t=this.formats();if(Object.keys(t).length===0)return this.unwrap();var u=this.next;u instanceof o&&u.prev===this&&v(t,u.formats())&&(u.moveChildren(this),u.remove())},o.blotName="inline",o.scope=O.Scope.INLINE_BLOT,o.tagName="SPAN",o}(w.default);f.default=y},function(L,f,h){var N=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var e in o)o.hasOwnProperty(e)&&(d[e]=o[e])};return function(d,o){y(d,o);function e(){this.constructor=d}d.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(f,"__esModule",{value:!0});var w=h(18),O=h(1),v=function(y){N(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.formats=function(o){var e=O.query(d.blotName).tagName;if(o.tagName!==e)return y.formats.call(this,o)},d.prototype.format=function(o,e){O.query(o,O.Scope.BLOCK)!=null&&(o===this.statics.blotName&&!e?this.replaceWith(d.blotName):y.prototype.format.call(this,o,e))},d.prototype.formatAt=function(o,e,t,u){O.query(t,O.Scope.BLOCK)!=null?this.format(t,u):y.prototype.formatAt.call(this,o,e,t,u)},d.prototype.insertAt=function(o,e,t){if(t==null||O.query(e,O.Scope.INLINE)!=null)y.prototype.insertAt.call(this,o,e,t);else{var u=this.split(o),l=O.create(e,t);u.parent.insertBefore(l,u)}},d.prototype.update=function(o,e){navigator.userAgent.match(/Trident/)?this.build():y.prototype.update.call(this,o,e)},d.blotName="block",d.scope=O.Scope.BLOCK_BLOT,d.tagName="P",d}(w.default);f.default=v},function(L,f,h){var N=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,d){y.__proto__=d}||function(y,d){for(var o in d)d.hasOwnProperty(o)&&(y[o]=d[o])};return function(y,d){v(y,d);function o(){this.constructor=y}y.prototype=d===null?Object.create(d):(o.prototype=d.prototype,new o)}}();Object.defineProperty(f,"__esModule",{value:!0});var w=h(19),O=function(v){N(y,v);function y(){return v!==null&&v.apply(this,arguments)||this}return y.formats=function(d){},y.prototype.format=function(d,o){v.prototype.formatAt.call(this,0,this.length(),d,o)},y.prototype.formatAt=function(d,o,e,t){d===0&&o===this.length()?this.format(e,t):v.prototype.formatAt.call(this,d,o,e,t)},y.prototype.formats=function(){return this.statics.formats(this.domNode)},y}(w.default);f.default=O},function(L,f,h){var N=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var e in o)o.hasOwnProperty(e)&&(d[e]=o[e])};return function(d,o){y(d,o);function e(){this.constructor=d}d.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(f,"__esModule",{value:!0});var w=h(19),O=h(1),v=function(y){N(d,y);function d(o){var e=y.call(this,o)||this;return e.text=e.statics.value(e.domNode),e}return d.create=function(o){return document.createTextNode(o)},d.value=function(o){var e=o.data;return e.normalize&&(e=e.normalize()),e},d.prototype.deleteAt=function(o,e){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+e)},d.prototype.index=function(o,e){return this.domNode===o?e:-1},d.prototype.insertAt=function(o,e,t){t==null?(this.text=this.text.slice(0,o)+e+this.text.slice(o),this.domNode.data=this.text):y.prototype.insertAt.call(this,o,e,t)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(o){y.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(o,e){return[this.domNode,o]},d.prototype.split=function(o,e){if(e===void 0&&(e=!1),!e){if(o===0)return this;if(o===this.length())return this.next}var t=O.create(this.domNode.splitText(o));return this.parent.insertBefore(t,this.next),this.text=this.statics.value(this.domNode),t},d.prototype.update=function(o,e){var t=this;o.some(function(u){return u.type==="characterData"&&u.target===t.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=O.Scope.INLINE_BLOT,d}(w.default);f.default=v},function(L,f,h){var N=document.createElement("div");if(N.classList.toggle("test-class",!1),N.classList.contains("test-class")){var w=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(O,v){return arguments.length>1&&!this.contains(O)==!v?v:w.call(this,O)}}String.prototype.startsWith||(String.prototype.startsWith=function(O,v){return v=v||0,this.substr(v,O.length)===O}),String.prototype.endsWith||(String.prototype.endsWith=function(O,v){var y=this.toString();(typeof v!="number"||!isFinite(v)||Math.floor(v)!==v||v>y.length)&&(v=y.length),v-=O.length;var d=y.indexOf(O,v);return d!==-1&&d===v}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(v){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof v!="function")throw new TypeError("predicate must be a function");for(var y=Object(this),d=y.length>>>0,o=arguments[1],e,t=0;t<d;t++)if(e=y[t],v.call(o,e,t,y))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(L,f){var h=-1,N=1,w=0;function O(n,c,A){if(n==c)return n?[[w,n]]:[];(A<0||n.length<A)&&(A=null);var b=o(n,c),_=n.substring(0,b);n=n.substring(b),c=c.substring(b),b=e(n,c);var x=n.substring(n.length-b);n=n.substring(0,n.length-b),c=c.substring(0,c.length-b);var g=v(n,c);return _&&g.unshift([w,_]),x&&g.push([w,x]),u(g),A!=null&&(g=i(g,A)),g=r(g),g}function v(n,c){var A;if(!n)return[[N,c]];if(!c)return[[h,n]];var b=n.length>c.length?n:c,_=n.length>c.length?c:n,x=b.indexOf(_);if(x!=-1)return A=[[N,b.substring(0,x)],[w,_],[N,b.substring(x+_.length)]],n.length>c.length&&(A[0][0]=A[2][0]=h),A;if(_.length==1)return[[h,n],[N,c]];var g=t(n,c);if(g){var p=g[0],m=g[1],T=g[2],S=g[3],R=g[4],B=O(p,T),C=O(m,S);return B.concat([[w,R]],C)}return y(n,c)}function y(n,c){for(var A=n.length,b=c.length,_=Math.ceil((A+b)/2),x=_,g=2*_,p=new Array(g),m=new Array(g),T=0;T<g;T++)p[T]=-1,m[T]=-1;p[x+1]=0,m[x+1]=0;for(var S=A-b,R=S%2!=0,B=0,C=0,W=0,F=0,j=0;j<_;j++){for(var k=-j+B;k<=j-C;k+=2){var q=x+k,D;k==-j||k!=j&&p[q-1]<p[q+1]?D=p[q+1]:D=p[q-1]+1;for(var U=D-k;D<A&&U<b&&n.charAt(D)==c.charAt(U);)D++,U++;if(p[q]=D,D>A)C+=2;else if(U>b)B+=2;else if(R){var M=x+S-k;if(M>=0&&M<g&&m[M]!=-1){var P=A-m[M];if(D>=P)return d(n,c,D,U)}}}for(var I=-j+W;I<=j-F;I+=2){var M=x+I,P;I==-j||I!=j&&m[M-1]<m[M+1]?P=m[M+1]:P=m[M-1]+1;for(var $=P-I;P<A&&$<b&&n.charAt(A-P-1)==c.charAt(b-$-1);)P++,$++;if(m[M]=P,P>A)F+=2;else if($>b)W+=2;else if(!R){var q=x+S-I;if(q>=0&&q<g&&p[q]!=-1){var D=p[q],U=x+D-q;if(P=A-P,D>=P)return d(n,c,D,U)}}}}return[[h,n],[N,c]]}function d(n,c,A,b){var _=n.substring(0,A),x=c.substring(0,b),g=n.substring(A),p=c.substring(b),m=O(_,x),T=O(g,p);return m.concat(T)}function o(n,c){if(!n||!c||n.charAt(0)!=c.charAt(0))return 0;for(var A=0,b=Math.min(n.length,c.length),_=b,x=0;A<_;)n.substring(x,_)==c.substring(x,_)?(A=_,x=A):b=_,_=Math.floor((b-A)/2+A);return _}function e(n,c){if(!n||!c||n.charAt(n.length-1)!=c.charAt(c.length-1))return 0;for(var A=0,b=Math.min(n.length,c.length),_=b,x=0;A<_;)n.substring(n.length-_,n.length-x)==c.substring(c.length-_,c.length-x)?(A=_,x=A):b=_,_=Math.floor((b-A)/2+A);return _}function t(n,c){var A=n.length>c.length?n:c,b=n.length>c.length?c:n;if(A.length<4||b.length*2<A.length)return null;function _(C,W,F){for(var j=C.substring(F,F+Math.floor(C.length/4)),k=-1,q="",D,U,M,P;(k=W.indexOf(j,k+1))!=-1;){var I=o(C.substring(F),W.substring(k)),$=e(C.substring(0,F),W.substring(0,k));q.length<$+I&&(q=W.substring(k-$,k)+W.substring(k,k+I),D=C.substring(0,F-$),U=C.substring(F+I),M=W.substring(0,k-$),P=W.substring(k+I))}return q.length*2>=C.length?[D,U,M,P,q]:null}var x=_(A,b,Math.ceil(A.length/4)),g=_(A,b,Math.ceil(A.length/2)),p;if(!x&&!g)return null;g?x?p=x[4].length>g[4].length?x:g:p=g:p=x;var m,T,S,R;n.length>c.length?(m=p[0],T=p[1],S=p[2],R=p[3]):(S=p[0],R=p[1],m=p[2],T=p[3]);var B=p[4];return[m,T,S,R,B]}function u(n){n.push([w,""]);for(var c=0,A=0,b=0,_="",x="",g;c<n.length;)switch(n[c][0]){case N:b++,x+=n[c][1],c++;break;case h:A++,_+=n[c][1],c++;break;case w:A+b>1?(A!==0&&b!==0&&(g=o(x,_),g!==0&&(c-A-b>0&&n[c-A-b-1][0]==w?n[c-A-b-1][1]+=x.substring(0,g):(n.splice(0,0,[w,x.substring(0,g)]),c++),x=x.substring(g),_=_.substring(g)),g=e(x,_),g!==0&&(n[c][1]=x.substring(x.length-g)+n[c][1],x=x.substring(0,x.length-g),_=_.substring(0,_.length-g))),A===0?n.splice(c-b,A+b,[N,x]):b===0?n.splice(c-A,A+b,[h,_]):n.splice(c-A-b,A+b,[h,_],[N,x]),c=c-A-b+(A?1:0)+(b?1:0)+1):c!==0&&n[c-1][0]==w?(n[c-1][1]+=n[c][1],n.splice(c,1)):c++,b=0,A=0,_="",x="";break}n[n.length-1][1]===""&&n.pop();var p=!1;for(c=1;c<n.length-1;)n[c-1][0]==w&&n[c+1][0]==w&&(n[c][1].substring(n[c][1].length-n[c-1][1].length)==n[c-1][1]?(n[c][1]=n[c-1][1]+n[c][1].substring(0,n[c][1].length-n[c-1][1].length),n[c+1][1]=n[c-1][1]+n[c+1][1],n.splice(c-1,1),p=!0):n[c][1].substring(0,n[c+1][1].length)==n[c+1][1]&&(n[c-1][1]+=n[c+1][1],n[c][1]=n[c][1].substring(n[c+1][1].length)+n[c+1][1],n.splice(c+1,1),p=!0)),c++;p&&u(n)}var l=O;l.INSERT=N,l.DELETE=h,l.EQUAL=w,L.exports=l;function a(n,c){if(c===0)return[w,n];for(var A=0,b=0;b<n.length;b++){var _=n[b];if(_[0]===h||_[0]===w){var x=A+_[1].length;if(c===x)return[b+1,n];if(c<x){n=n.slice();var g=c-A,p=[_[0],_[1].slice(0,g)],m=[_[0],_[1].slice(g)];return n.splice(b,1,p,m),[b+1,n]}else A=x}}throw new Error("cursor_pos is out of bounds!")}function i(n,c){var A=a(n,c),b=A[1],_=A[0],x=b[_],g=b[_+1];if(x==null)return n;if(x[0]!==w)return n;if(g!=null&&x[1]+g[1]===g[1]+x[1])return b.splice(_,2,g,x),s(b,_,2);if(g!=null&&g[1].indexOf(x[1])===0){b.splice(_,2,[g[0],x[1]],[0,x[1]]);var p=g[1].slice(x[1].length);return p.length>0&&b.splice(_+2,0,[g[0],p]),s(b,_,3)}else return n}function r(n){for(var c=!1,A=function(g){return g.charCodeAt(0)>=56320&&g.charCodeAt(0)<=57343},b=function(g){return g.charCodeAt(g.length-1)>=55296&&g.charCodeAt(g.length-1)<=56319},_=2;_<n.length;_+=1)n[_-2][0]===w&&b(n[_-2][1])&&n[_-1][0]===h&&A(n[_-1][1])&&n[_][0]===N&&A(n[_][1])&&(c=!0,n[_-1][1]=n[_-2][1].slice(-1)+n[_-1][1],n[_][1]=n[_-2][1].slice(-1)+n[_][1],n[_-2][1]=n[_-2][1].slice(0,-1));if(!c)return n;for(var x=[],_=0;_<n.length;_+=1)n[_][1].length>0&&x.push(n[_]);return x}function s(n,c,A){for(var b=c+A-1;b>=0&&b>=c-1;b--)if(b+1<n.length){var _=n[b],x=n[b+1];_[0]===x[1]&&n.splice(b,2,[_[0],_[1]+x[1]])}return n}},function(L,f){f=L.exports=typeof Object.keys=="function"?Object.keys:h,f.shim=h;function h(N){var w=[];for(var O in N)w.push(O);return w}},function(L,f){var h=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";f=L.exports=h?N:w,f.supported=N;function N(O){return Object.prototype.toString.call(O)=="[object Arguments]"}f.unsupported=w;function w(O){return O&&typeof O=="object"&&typeof O.length=="number"&&Object.prototype.hasOwnProperty.call(O,"callee")&&!Object.prototype.propertyIsEnumerable.call(O,"callee")||!1}},function(L,f){var h=Object.prototype.hasOwnProperty,N="~";function w(){}Object.create&&(w.prototype=Object.create(null),new w().__proto__||(N=!1));function O(y,d,o){this.fn=y,this.context=d,this.once=o||!1}function v(){this._events=new w,this._eventsCount=0}v.prototype.eventNames=function(){var d=[],o,e;if(this._eventsCount===0)return d;for(e in o=this._events)h.call(o,e)&&d.push(N?e.slice(1):e);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(o)):d},v.prototype.listeners=function(d,o){var e=N?N+d:d,t=this._events[e];if(o)return!!t;if(!t)return[];if(t.fn)return[t.fn];for(var u=0,l=t.length,a=new Array(l);u<l;u++)a[u]=t[u].fn;return a},v.prototype.emit=function(d,o,e,t,u,l){var a=N?N+d:d;if(!this._events[a])return!1;var i=this._events[a],r=arguments.length,s,n;if(i.fn){switch(i.once&&this.removeListener(d,i.fn,void 0,!0),r){case 1:return i.fn.call(i.context),!0;case 2:return i.fn.call(i.context,o),!0;case 3:return i.fn.call(i.context,o,e),!0;case 4:return i.fn.call(i.context,o,e,t),!0;case 5:return i.fn.call(i.context,o,e,t,u),!0;case 6:return i.fn.call(i.context,o,e,t,u,l),!0}for(n=1,s=new Array(r-1);n<r;n++)s[n-1]=arguments[n];i.fn.apply(i.context,s)}else{var c=i.length,A;for(n=0;n<c;n++)switch(i[n].once&&this.removeListener(d,i[n].fn,void 0,!0),r){case 1:i[n].fn.call(i[n].context);break;case 2:i[n].fn.call(i[n].context,o);break;case 3:i[n].fn.call(i[n].context,o,e);break;case 4:i[n].fn.call(i[n].context,o,e,t);break;default:if(!s)for(A=1,s=new Array(r-1);A<r;A++)s[A-1]=arguments[A];i[n].fn.apply(i[n].context,s)}}return!0},v.prototype.on=function(d,o,e){var t=new O(o,e||this),u=N?N+d:d;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],t]:this._events[u].push(t):(this._events[u]=t,this._eventsCount++),this},v.prototype.once=function(d,o,e){var t=new O(o,e||this,!0),u=N?N+d:d;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],t]:this._events[u].push(t):(this._events[u]=t,this._eventsCount++),this},v.prototype.removeListener=function(d,o,e,t){var u=N?N+d:d;if(!this._events[u])return this;if(!o)return--this._eventsCount===0?this._events=new w:delete this._events[u],this;var l=this._events[u];if(l.fn)l.fn===o&&(!t||l.once)&&(!e||l.context===e)&&(--this._eventsCount===0?this._events=new w:delete this._events[u]);else{for(var a=0,i=[],r=l.length;a<r;a++)(l[a].fn!==o||t&&!l[a].once||e&&l[a].context!==e)&&i.push(l[a]);i.length?this._events[u]=i.length===1?i[0]:i:--this._eventsCount===0?this._events=new w:delete this._events[u]}return this},v.prototype.removeAllListeners=function(d){var o;return d?(o=N?N+d:d,this._events[o]&&(--this._eventsCount===0?this._events=new w:delete this._events[o])):(this._events=new w,this._eventsCount=0),this},v.prototype.off=v.prototype.removeListener,v.prototype.addListener=v.prototype.on,v.prototype.setMaxListeners=function(){return this},v.prefixed=N,v.EventEmitter=v,typeof L<"u"&&(L.exports=v)},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.matchText=f.matchSpacing=f.matchNewline=f.matchBlot=f.matchAttributor=f.default=void 0;var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},w=function(){function z(K,Y){var Q=[],Z=!0,te=!1,ne=void 0;try{for(var re=K[Symbol.iterator](),fe;!(Z=(fe=re.next()).done)&&(Q.push(fe.value),!(Y&&Q.length===Y));Z=!0);}catch(ce){te=!0,ne=ce}finally{try{!Z&&re.return&&re.return()}finally{if(te)throw ne}}return Q}return function(K,Y){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return z(K,Y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function z(K,Y){for(var Q=0;Q<Y.length;Q++){var Z=Y[Q];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(K,Z.key,Z)}}return function(K,Y,Q){return Y&&z(K.prototype,Y),Q&&z(K,Q),K}}(),v=h(3),y=m(v),d=h(2),o=m(d),e=h(0),t=m(e),u=h(5),l=m(u),a=h(10),i=m(a),r=h(9),s=m(r),n=h(36),c=h(37),A=h(13),b=m(A),_=h(26),x=h(38),g=h(39),p=h(40);function m(z){return z&&z.__esModule?z:{default:z}}function T(z,K,Y){return K in z?Object.defineProperty(z,K,{value:Y,enumerable:!0,configurable:!0,writable:!0}):z[K]=Y,z}function S(z,K){if(!(z instanceof K))throw new TypeError("Cannot call a class as a function")}function R(z,K){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:z}function B(z,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);z.prototype=Object.create(K&&K.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(z,K):z.__proto__=K)}var C=(0,i.default)("quill:clipboard"),W="__ql-matcher",F=[[Node.TEXT_NODE,ue],[Node.TEXT_NODE,ie],["br",X],[Node.ELEMENT_NODE,ie],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,oe],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,se],["li",ee],["b",$.bind($,"bold")],["i",$.bind($,"italic")],["style",J]],j=[n.AlignAttribute,x.DirectionAttribute].reduce(function(z,K){return z[K.keyName]=K,z},{}),k=[n.AlignStyle,c.BackgroundStyle,_.ColorStyle,x.DirectionStyle,g.FontStyle,p.SizeStyle].reduce(function(z,K){return z[K.keyName]=K,z},{}),q=function(z){B(K,z);function K(Y,Q){S(this,K);var Z=R(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,Y,Q));return Z.quill.root.addEventListener("paste",Z.onPaste.bind(Z)),Z.container=Z.quill.addContainer("ql-clipboard"),Z.container.setAttribute("contenteditable",!0),Z.container.setAttribute("tabindex",-1),Z.matchers=[],F.concat(Z.options.matchers).forEach(function(te){var ne=w(te,2),re=ne[0],fe=ne[1];!Q.matchVisual&&fe===oe||Z.addMatcher(re,fe)}),Z}return O(K,[{key:"addMatcher",value:function(Q,Z){this.matchers.push([Q,Z])}},{key:"convert",value:function(Q){if(typeof Q=="string")return this.container.innerHTML=Q.replace(/\>\r?\n +\</g,"><"),this.convert();var Z=this.quill.getFormat(this.quill.selection.savedRange.index);if(Z[b.default.blotName]){var te=this.container.innerText;return this.container.innerHTML="",new o.default().insert(te,T({},b.default.blotName,Z[b.default.blotName]))}var ne=this.prepareMatching(),re=w(ne,2),fe=re[0],ce=re[1],le=I(this.container,fe,ce);return M(le,`
|
|
33
|
-
`)&&le.ops[le.ops.length-1].attributes==null&&(le=le.compose(new o.default().retain(le.length()-1).delete(1))),C.log("convert",this.container.innerHTML,le),this.container.innerHTML="",le}},{key:"dangerouslyPasteHTML",value:function(Q,
|
|
29
|
+
`,$.format).retain(X.length()-J-1).retain(1,{header:null});this.quill.updateContents(ee,c.default.sources.USER),this.quill.setSelection(I.index+1,c.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(I,$){var H=$.prefix.length,V=this.quill.getLine(I.index),X=w(V,2),J=X[0],ee=X[1];if(ee>H)return!0;var ie=void 0;switch($.prefix.trim()){case"[]":case"[ ]":ie="unchecked";break;case"[x]":ie="checked";break;case"-":case"*":ie="bullet";break;default:ie="ordered"}this.quill.insertText(I.index," ",c.default.sources.USER),this.quill.history.cutoff();var oe=new l.default().retain(I.index-ee).delete(H+1).retain(J.length()-2-ee).retain(1,{list:ie});this.quill.updateContents(oe,c.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index-H,c.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(I){var $=this.quill.getLine(I.index),H=w($,2),V=H[0],X=H[1],J=new l.default().retain(I.index+V.length()-X-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(J,c.default.sources.USER)}},"embed left":Z(C.keys.LEFT,!1),"embed left shift":Z(C.keys.LEFT,!0),"embed right":Z(C.keys.RIGHT,!1),"embed right shift":Z(C.keys.RIGHT,!0)}};function Z(P,I){var $,H=P===C.keys.LEFT?"prefix":"suffix";return $={key:P,shiftKey:I,altKey:null},p($,H,/^$/),p($,"handler",function(X){var J=X.index;P===C.keys.RIGHT&&(J+=X.length+1);var ee=this.quill.getLeaf(J),ie=w(ee,1),oe=ie[0];return oe instanceof f.default.Embed?(P===C.keys.LEFT?I?this.quill.setSelection(X.index-1,X.length+1,c.default.sources.USER):this.quill.setSelection(X.index-1,c.default.sources.USER):I?this.quill.setSelection(X.index,X.length+1,c.default.sources.USER):this.quill.setSelection(X.index+X.length+1,c.default.sources.USER),!1):!0}),$}function F(P,I){if(!(P.index===0||this.quill.getLength()<=1)){var $=this.quill.getLine(P.index),H=w($,1),V=H[0],X={};if(I.offset===0){var J=this.quill.getLine(P.index-1),ee=w(J,1),ie=ee[0];if(ie!=null&&ie.length()>1){var oe=V.formats(),se=this.quill.getFormat(P.index-1,1);X=i.default.attributes.diff(oe,se)||{}}}var ue=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(I.prefix)?2:1;this.quill.deleteText(P.index-ue,ue,c.default.sources.USER),Object.keys(X).length>0&&this.quill.formatLine(P.index-ue,ue,X,c.default.sources.USER),this.quill.focus()}}function j(P,I){var $=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(I.suffix)?2:1;if(!(P.index>=this.quill.getLength()-$)){var H={},V=0,X=this.quill.getLine(P.index),J=w(X,1),ee=J[0];if(I.offset>=ee.length()-1){var ie=this.quill.getLine(P.index+1),oe=w(ie,1),se=oe[0];if(se){var ue=ee.formats(),z=this.quill.getFormat(P.index,1);H=i.default.attributes.diff(ue,z)||{},V=se.length()}}this.quill.deleteText(P.index,$,c.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(P.index+V-1,$,H,c.default.sources.USER)}}function k(P){var I=this.quill.getLines(P),$={};if(I.length>1){var H=I[0].formats(),V=I[I.length-1].formats();$=i.default.attributes.diff(V,H)||{}}this.quill.deleteText(P,c.default.sources.USER),Object.keys($).length>0&&this.quill.formatLine(P.index,1,$,c.default.sources.USER),this.quill.setSelection(P.index,c.default.sources.SILENT),this.quill.focus()}function q(P,I){var $=this;P.length>0&&this.quill.scroll.deleteAt(P.index,P.length);var H=Object.keys(I.format).reduce(function(V,X){return f.default.query(X,f.default.Scope.BLOCK)&&!Array.isArray(I.format[X])&&(V[X]=I.format[X]),V},{});this.quill.insertText(P.index,`
|
|
30
|
+
`,H,c.default.sources.USER),this.quill.setSelection(P.index+1,c.default.sources.SILENT),this.quill.focus(),Object.keys(I.format).forEach(function(V){H[V]==null&&(Array.isArray(I.format[V])||V!=="link"&&$.quill.format(V,I.format[V],c.default.sources.USER))})}function D(P){return{key:C.keys.TAB,shiftKey:!P,format:{"code-block":!0},handler:function($){var H=f.default.query("code-block"),V=$.index,X=$.length,J=this.quill.scroll.descendant(H,V),ee=w(J,2),ie=ee[0],oe=ee[1];if(ie!=null){var se=this.quill.getIndex(ie),ue=ie.newlineIndex(oe,!0)+1,z=ie.newlineIndex(se+oe+X),K=ie.domNode.textContent.slice(ue,z).split(`
|
|
31
|
+
`);oe=0,K.forEach(function(Y,Q){P?(ie.insertAt(ue+oe,H.TAB),oe+=H.TAB.length,Q===0?V+=H.TAB.length:X+=H.TAB.length):Y.startsWith(H.TAB)&&(ie.deleteAt(ue+oe,H.TAB.length),oe-=H.TAB.length,Q===0?V-=H.TAB.length:X-=H.TAB.length),oe+=Y.length+1}),this.quill.update(c.default.sources.USER),this.quill.setSelection(V,X,c.default.sources.SILENT)}}}}function U(P){return{key:P[0].toUpperCase(),shortKey:!0,handler:function($,H){this.quill.format(P,!H.format[P],c.default.sources.USER)}}}function M(P){if(typeof P=="string"||typeof P=="number")return M({key:P});if((typeof P>"u"?"undefined":N(P))==="object"&&(P=(0,y.default)(P,!1)),typeof P.key=="string")if(C.keys[P.key.toUpperCase()]!=null)P.key=C.keys[P.key.toUpperCase()];else if(P.key.length===1)P.key=P.key.toUpperCase().charCodeAt(0);else return null;return P.shortKey&&(P[B]=P.shortKey,delete P.shortKey),P}s.default=C,s.SHORTKEY=B},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function i(r,f){var n=[],c=!0,A=!1,b=void 0;try{for(var _=r[Symbol.iterator](),x;!(c=(x=_.next()).done)&&(n.push(x.value),!(f&&n.length===f));c=!0);}catch(g){A=!0,b=g}finally{try{!c&&_.return&&_.return()}finally{if(A)throw b}}return n}return function(r,f){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return i(r,f);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function i(r,f,n){r===null&&(r=Function.prototype);var c=Object.getOwnPropertyDescriptor(r,f);if(c===void 0){var A=Object.getPrototypeOf(r);return A===null?void 0:i(A,f,n)}else{if("value"in c)return c.value;var b=c.get;return b===void 0?void 0:b.call(n)}},O=function(){function i(r,f){for(var n=0;n<f.length;n++){var c=f[n];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(r,c.key,c)}}return function(r,f,n){return f&&i(r.prototype,f),n&&i(r,n),r}}(),v=h(0),y=e(v),d=h(7),o=e(d);function e(i){return i&&i.__esModule?i:{default:i}}function t(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function u(i,r){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:i}function l(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);i.prototype=Object.create(r&&r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(i,r):i.__proto__=r)}var a=function(i){l(r,i),O(r,null,[{key:"value",value:function(){}}]);function r(f,n){t(this,r);var c=u(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,f));return c.selection=n,c.textNode=document.createTextNode(r.CONTENTS),c.domNode.appendChild(c.textNode),c._length=0,c}return O(r,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,c){if(this._length!==0)return w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,n,c);for(var A=this,b=0;A!=null&&A.statics.scope!==y.default.Scope.BLOCK_BLOT;)b+=A.offset(A.parent),A=A.parent;A!=null&&(this._length=r.CONTENTS.length,A.optimize(),A.formatAt(b,r.CONTENTS.length,n,c),this._length=0)}},{key:"index",value:function(n,c){return n===this.textNode?0:w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"index",this).call(this,n,c)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,c=this.selection.getNativeRange(),A=void 0,b=void 0,_=void 0;if(c!=null&&c.start.node===n&&c.end.node===n){var x=[n,c.start.offset,c.end.offset];A=x[0],b=x[1],_=x[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==r.CONTENTS){var g=this.textNode.data.split(r.CONTENTS).join("");this.next instanceof o.default?(A=this.next.domNode,this.next.insertAt(0,g),this.textNode.data=r.CONTENTS):(this.textNode.data=g,this.parent.insertBefore(y.default.create(this.textNode),this),this.textNode=document.createTextNode(r.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),b!=null){var p=[b,_].map(function(T){return Math.max(0,Math.min(A.data.length,T-1))}),m=N(p,2);return b=m[0],_=m[1],{startNode:A,startOffset:b,endNode:A,endOffset:_}}}}},{key:"update",value:function(n,c){var A=this;if(n.some(function(_){return _.type==="characterData"&&_.target===A.textNode})){var b=this.restore();b&&(c.range=b)}}},{key:"value",value:function(){return""}}]),r}(y.default.Embed);a.blotName="cursor",a.className="ql-cursor",a.tagName="span",a.CONTENTS="\uFEFF",s.default=a},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=h(0),w=y(N),O=h(4),v=y(O);function y(u){return u&&u.__esModule?u:{default:u}}function d(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function e(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var t=function(u){e(l,u);function l(){return d(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(w.default.Container);t.allowedChildren=[v.default,O.BlockEmbed,t],s.default=t},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.ColorStyle=s.ColorClass=s.ColorAttributor=void 0;var N=function(){function a(i,r){for(var f=0;f<r.length;f++){var n=r[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,r,f){return r&&a(i.prototype,r),f&&a(i,f),i}}(),w=function a(i,r,f){i===null&&(i=Function.prototype);var n=Object.getOwnPropertyDescriptor(i,r);if(n===void 0){var c=Object.getPrototypeOf(i);return c===null?void 0:a(c,r,f)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(f)}},O=h(0),v=y(O);function y(a){return a&&a.__esModule?a:{default:a}}function d(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function o(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function e(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var t=function(a){e(i,a);function i(){return d(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return N(i,[{key:"value",value:function(f){var n=w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,f);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(c){return("00"+parseInt(c).toString(16)).slice(-2)}).join("")):n}}]),i}(v.default.Attributor.Style),u=new v.default.Attributor.Class("color","ql-color",{scope:v.default.Scope.INLINE}),l=new t("color","color",{scope:v.default.Scope.INLINE});s.ColorAttributor=t,s.ColorClass=u,s.ColorStyle=l},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.sanitize=s.default=void 0;var N=function(){function l(a,i){for(var r=0;r<i.length;r++){var f=i[r];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,i,r){return i&&l(a.prototype,i),r&&l(a,r),a}}(),w=function l(a,i,r){a===null&&(a=Function.prototype);var f=Object.getOwnPropertyDescriptor(a,i);if(f===void 0){var n=Object.getPrototypeOf(a);return n===null?void 0:l(n,i,r)}else{if("value"in f)return f.value;var c=f.get;return c===void 0?void 0:c.call(r)}},O=h(6),v=y(O);function y(l){return l&&l.__esModule?l:{default:l}}function d(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function e(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var t=function(l){e(a,l);function a(){return d(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return N(a,[{key:"format",value:function(r,f){if(r!==this.statics.blotName||!f)return w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,r,f);f=this.constructor.sanitize(f),this.domNode.setAttribute("href",f)}}],[{key:"create",value:function(r){var f=w(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,r);return r=this.sanitize(r),f.setAttribute("href",r),f.setAttribute("rel","noopener noreferrer"),f.setAttribute("target","_blank"),f}},{key:"formats",value:function(r){return r.getAttribute("href")}},{key:"sanitize",value:function(r){return u(r,this.PROTOCOL_WHITELIST)?r:this.SANITIZED_URL}}]),a}(v.default);t.blotName="link",t.tagName="A",t.SANITIZED_URL="about:blank",t.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function u(l,a){var i=document.createElement("a");i.href=l;var r=i.href.slice(0,i.href.indexOf(":"));return a.indexOf(r)>-1}s.default=t,s.sanitize=u},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},w=function(){function a(i,r){for(var f=0;f<r.length;f++){var n=r[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,r,f){return r&&a(i.prototype,r),f&&a(i,f),i}}(),O=h(23),v=o(O),y=h(107),d=o(y);function o(a){return a&&a.__esModule?a:{default:a}}function e(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}var t=0;function u(a,i){a.setAttribute(i,a.getAttribute(i)!=="true")}var l=function(){function a(i){var r=this;e(this,a),this.select=i,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){r.togglePicker()}),this.label.addEventListener("keydown",function(f){switch(f.keyCode){case v.default.keys.ENTER:r.togglePicker();break;case v.default.keys.ESCAPE:r.escape(),f.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return w(a,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(r){var f=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),r.hasAttribute("value")&&n.setAttribute("data-value",r.getAttribute("value")),r.textContent&&n.setAttribute("data-label",r.textContent),n.addEventListener("click",function(){f.selectItem(n,!0)}),n.addEventListener("keydown",function(c){switch(c.keyCode){case v.default.keys.ENTER:f.selectItem(n,!0),c.preventDefault();break;case v.default.keys.ESCAPE:f.escape(),c.preventDefault();break}}),n}},{key:"buildLabel",value:function(){var r=document.createElement("span");return r.classList.add("ql-picker-label"),r.innerHTML=d.default,r.tabIndex="0",r.setAttribute("role","button"),r.setAttribute("aria-expanded","false"),this.container.appendChild(r),r}},{key:"buildOptions",value:function(){var r=this,f=document.createElement("span");f.classList.add("ql-picker-options"),f.setAttribute("aria-hidden","true"),f.tabIndex="-1",f.id="ql-picker-options-"+t,t+=1,this.label.setAttribute("aria-controls",f.id),this.options=f,[].slice.call(this.select.options).forEach(function(n){var c=r.buildItem(n);f.appendChild(c),n.selected===!0&&r.selectItem(c)}),this.container.appendChild(f)}},{key:"buildPicker",value:function(){var r=this;[].slice.call(this.select.attributes).forEach(function(f){r.container.setAttribute(f.name,f.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var r=this;this.close(),setTimeout(function(){return r.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(r){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(r!==n&&(n!=null&&n.classList.remove("ql-selected"),r!=null&&(r.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(r.parentNode.children,r),r.hasAttribute("data-value")?this.label.setAttribute("data-value",r.getAttribute("data-value")):this.label.removeAttribute("data-value"),r.hasAttribute("data-label")?this.label.setAttribute("data-label",r.getAttribute("data-label")):this.label.removeAttribute("data-label"),f))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":N(Event))==="object"){var c=document.createEvent("Event");c.initEvent("change",!0,!0),this.select.dispatchEvent(c)}this.close()}}},{key:"update",value:function(){var r=void 0;if(this.select.selectedIndex>-1){var f=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];r=this.select.options[this.select.selectedIndex],this.selectItem(f)}else this.selectItem(null);var n=r!=null&&r!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),a}();s.default=l},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=h(0),w=R(N),O=h(5),v=R(O),y=h(4),d=R(y),o=h(16),e=R(o),t=h(25),u=R(t),l=h(24),a=R(l),i=h(35),r=R(i),f=h(6),n=R(f),c=h(22),A=R(c),b=h(7),_=R(b),x=h(55),g=R(x),p=h(42),m=R(p),T=h(23),S=R(T);function R(B){return B&&B.__esModule?B:{default:B}}v.default.register({"blots/block":d.default,"blots/block/embed":y.BlockEmbed,"blots/break":e.default,"blots/container":u.default,"blots/cursor":a.default,"blots/embed":r.default,"blots/inline":n.default,"blots/scroll":A.default,"blots/text":_.default,"modules/clipboard":g.default,"modules/history":m.default,"modules/keyboard":S.default}),w.default.register(d.default,e.default,a.default,n.default,A.default,_.default),s.default=v.default},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=h(1),w=function(){function O(v){this.domNode=v,this.domNode[N.DATA_KEY]={blot:this}}return Object.defineProperty(O.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),O.create=function(v){if(this.tagName==null)throw new N.ParchmentError("Blot definition missing tagName");var y;return Array.isArray(this.tagName)?(typeof v=="string"&&(v=v.toUpperCase(),parseInt(v).toString()===v&&(v=parseInt(v))),typeof v=="number"?y=document.createElement(this.tagName[v-1]):this.tagName.indexOf(v)>-1?y=document.createElement(v):y=document.createElement(this.tagName[0])):y=document.createElement(this.tagName),this.className&&y.classList.add(this.className),y},O.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},O.prototype.clone=function(){var v=this.domNode.cloneNode(!1);return N.create(v)},O.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[N.DATA_KEY]},O.prototype.deleteAt=function(v,y){var d=this.isolate(v,y);d.remove()},O.prototype.formatAt=function(v,y,d,o){var e=this.isolate(v,y);if(N.query(d,N.Scope.BLOT)!=null&&o)e.wrap(d,o);else if(N.query(d,N.Scope.ATTRIBUTE)!=null){var t=N.create(this.statics.scope);e.wrap(t),t.format(d,o)}},O.prototype.insertAt=function(v,y,d){var o=d==null?N.create("text",y):N.create(y,d),e=this.split(v);this.parent.insertBefore(o,e)},O.prototype.insertInto=function(v,y){y===void 0&&(y=null),this.parent!=null&&this.parent.children.remove(this);var d=null;v.children.insertBefore(this,y),y!=null&&(d=y.domNode),(this.domNode.parentNode!=v.domNode||this.domNode.nextSibling!=d)&&v.domNode.insertBefore(this.domNode,d),this.parent=v,this.attach()},O.prototype.isolate=function(v,y){var d=this.split(v);return d.split(y),d},O.prototype.length=function(){return 1},O.prototype.offset=function(v){return v===void 0&&(v=this.parent),this.parent==null||this==v?0:this.parent.children.offset(this)+this.parent.offset(v)},O.prototype.optimize=function(v){this.domNode[N.DATA_KEY]!=null&&delete this.domNode[N.DATA_KEY].mutations},O.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},O.prototype.replace=function(v){v.parent!=null&&(v.parent.insertBefore(this,v.next),v.remove())},O.prototype.replaceWith=function(v,y){var d=typeof v=="string"?N.create(v,y):v;return d.replace(this),d},O.prototype.split=function(v,y){return v===0?this:this.next},O.prototype.update=function(v,y){},O.prototype.wrap=function(v,y){var d=typeof v=="string"?N.create(v,y):v;return this.parent!=null&&this.parent.insertBefore(d,this.next),d.appendChild(this),d},O.blotName="abstract",O}();s.default=w},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=h(12),w=h(32),O=h(33),v=h(1),y=function(){function d(o){this.attributes={},this.domNode=o,this.build()}return d.prototype.attribute=function(o,e){e?o.add(this.domNode,e)&&(o.value(this.domNode)!=null?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},d.prototype.build=function(){var o=this;this.attributes={};var e=N.default.keys(this.domNode),t=w.default.keys(this.domNode),u=O.default.keys(this.domNode);e.concat(t).concat(u).forEach(function(l){var a=v.query(l,v.Scope.ATTRIBUTE);a instanceof N.default&&(o.attributes[a.attrName]=a)})},d.prototype.copy=function(o){var e=this;Object.keys(this.attributes).forEach(function(t){var u=e.attributes[t].value(e.domNode);o.format(t,u)})},d.prototype.move=function(o){var e=this;this.copy(o),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},d.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(e,t){return e[t]=o.attributes[t].value(o.domNode),e},{})},d}();s.default=y},function(L,s,h){var N=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var e in o)o.hasOwnProperty(e)&&(d[e]=o[e])};return function(d,o){y(d,o);function e(){this.constructor=d}d.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=h(12);function O(y,d){var o=y.getAttribute("class")||"";return o.split(/\s+/).filter(function(e){return e.indexOf(d+"-")===0})}var v=function(y){N(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},d.prototype.add=function(o,e){return this.canAdd(o,e)?(this.remove(o),o.classList.add(this.keyName+"-"+e),!0):!1},d.prototype.remove=function(o){var e=O(o,this.keyName);e.forEach(function(t){o.classList.remove(t)}),o.classList.length===0&&o.removeAttribute("class")},d.prototype.value=function(o){var e=O(o,this.keyName)[0]||"",t=e.slice(this.keyName.length+1);return this.canAdd(o,t)?t:""},d}(w.default);s.default=v},function(L,s,h){var N=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var e in o)o.hasOwnProperty(e)&&(d[e]=o[e])};return function(d,o){y(d,o);function e(){this.constructor=d}d.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=h(12);function O(y){var d=y.split("-"),o=d.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return d[0]+o}var v=function(y){N(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(e){var t=e.split(":");return t[0].trim()})},d.prototype.add=function(o,e){return this.canAdd(o,e)?(o.style[O(this.keyName)]=e,!0):!1},d.prototype.remove=function(o){o.style[O(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},d.prototype.value=function(o){var e=o.style[O(this.keyName)];return this.canAdd(o,e)?e:""},d}(w.default);s.default=v},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function v(y,d){for(var o=0;o<d.length;o++){var e=d[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(y,e.key,e)}}return function(y,d,o){return d&&v(y.prototype,d),o&&v(y,o),y}}();function w(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}var O=function(){function v(y,d){w(this,v),this.quill=y,this.options=d,this.modules={}}return N(v,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(o){d.modules[o]==null&&d.addModule(o)})}},{key:"addModule",value:function(d){var o=this.quill.constructor.import("modules/"+d);return this.modules[d]=new o(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),v}();O.DEFAULTS={modules:{}},O.themes={default:O},s.default=O},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function i(r,f){for(var n=0;n<f.length;n++){var c=f[n];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(r,c.key,c)}}return function(r,f,n){return f&&i(r.prototype,f),n&&i(r,n),r}}(),w=function i(r,f,n){r===null&&(r=Function.prototype);var c=Object.getOwnPropertyDescriptor(r,f);if(c===void 0){var A=Object.getPrototypeOf(r);return A===null?void 0:i(A,f,n)}else{if("value"in c)return c.value;var b=c.get;return b===void 0?void 0:b.call(n)}},O=h(0),v=o(O),y=h(7),d=o(y);function o(i){return i&&i.__esModule?i:{default:i}}function e(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function t(i,r){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:i}function u(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);i.prototype=Object.create(r&&r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(i,r):i.__proto__=r)}var l="\uFEFF",a=function(i){u(r,i);function r(f){e(this,r);var n=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,f));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(c){n.contentNode.appendChild(c)}),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return N(r,[{key:"index",value:function(n,c){return n===this.leftGuard?0:n===this.rightGuard?1:w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"index",this).call(this,n,c)}},{key:"restore",value:function(n){var c=void 0,A=void 0,b=n.data.split(l).join("");if(n===this.leftGuard)if(this.prev instanceof d.default){var _=this.prev.length();this.prev.insertAt(_,b),c={startNode:this.prev.domNode,startOffset:_+b.length}}else A=document.createTextNode(b),this.parent.insertBefore(v.default.create(A),this),c={startNode:A,startOffset:b.length};else n===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,b),c={startNode:this.next.domNode,startOffset:b.length}):(A=document.createTextNode(b),this.parent.insertBefore(v.default.create(A),this.next),c={startNode:A,startOffset:b.length}));return n.data=l,c}},{key:"update",value:function(n,c){var A=this;n.forEach(function(b){if(b.type==="characterData"&&(b.target===A.leftGuard||b.target===A.rightGuard)){var _=A.restore(b.target);_&&(c.range=_)}})}}]),r}(v.default.Embed);s.default=a},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.AlignStyle=s.AlignClass=s.AlignAttribute=void 0;var N=h(0),w=O(N);function O(e){return e&&e.__esModule?e:{default:e}}var v={scope:w.default.Scope.BLOCK,whitelist:["right","center","justify"]},y=new w.default.Attributor.Attribute("align","align",v),d=new w.default.Attributor.Class("align","ql-align",v),o=new w.default.Attributor.Style("align","text-align",v);s.AlignAttribute=y,s.AlignClass=d,s.AlignStyle=o},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.BackgroundStyle=s.BackgroundClass=void 0;var N=h(0),w=v(N),O=h(26);function v(o){return o&&o.__esModule?o:{default:o}}var y=new w.default.Attributor.Class("background","ql-bg",{scope:w.default.Scope.INLINE}),d=new O.ColorAttributor("background","background-color",{scope:w.default.Scope.INLINE});s.BackgroundClass=y,s.BackgroundStyle=d},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.DirectionStyle=s.DirectionClass=s.DirectionAttribute=void 0;var N=h(0),w=O(N);function O(e){return e&&e.__esModule?e:{default:e}}var v={scope:w.default.Scope.BLOCK,whitelist:["rtl"]},y=new w.default.Attributor.Attribute("direction","dir",v),d=new w.default.Attributor.Class("direction","ql-direction",v),o=new w.default.Attributor.Style("direction","direction",v);s.DirectionAttribute=y,s.DirectionClass=d,s.DirectionStyle=o},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.FontClass=s.FontStyle=void 0;var N=function(){function i(r,f){for(var n=0;n<f.length;n++){var c=f[n];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(r,c.key,c)}}return function(r,f,n){return f&&i(r.prototype,f),n&&i(r,n),r}}(),w=function i(r,f,n){r===null&&(r=Function.prototype);var c=Object.getOwnPropertyDescriptor(r,f);if(c===void 0){var A=Object.getPrototypeOf(r);return A===null?void 0:i(A,f,n)}else{if("value"in c)return c.value;var b=c.get;return b===void 0?void 0:b.call(n)}},O=h(0),v=y(O);function y(i){return i&&i.__esModule?i:{default:i}}function d(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function o(i,r){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:i}function e(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);i.prototype=Object.create(r&&r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(i,r):i.__proto__=r)}var t={scope:v.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new v.default.Attributor.Class("font","ql-font",t),l=function(i){e(r,i);function r(){return d(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return N(r,[{key:"value",value:function(n){return w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),r}(v.default.Attributor.Style),a=new l("font","font-family",t);s.FontStyle=a,s.FontClass=u},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.SizeStyle=s.SizeClass=void 0;var N=h(0),w=O(N);function O(d){return d&&d.__esModule?d:{default:d}}var v=new w.default.Attributor.Class("size","ql-size",{scope:w.default.Scope.INLINE,whitelist:["small","large","huge"]}),y=new w.default.Attributor.Style("size","font-size",{scope:w.default.Scope.INLINE,whitelist:["10px","18px","32px"]});s.SizeClass=v,s.SizeStyle=y},function(L,s,h){L.exports={align:{"":h(76),center:h(77),right:h(78),justify:h(79)},background:h(80),blockquote:h(81),bold:h(82),clean:h(83),code:h(58),"code-block":h(58),color:h(84),direction:{"":h(85),rtl:h(86)},float:{center:h(87),full:h(88),left:h(89),right:h(90)},formula:h(91),header:{1:h(92),2:h(93)},italic:h(94),image:h(95),indent:{"+1":h(96),"-1":h(97)},link:h(98),list:{ordered:h(99),bullet:h(100),check:h(101)},script:{sub:h(102),super:h(103)},strike:h(104),underline:h(105),video:h(106)}},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.getLastChangeIndex=s.default=void 0;var N=function(){function f(n,c){for(var A=0;A<c.length;A++){var b=c[A];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(n,b.key,b)}}return function(n,c,A){return c&&f(n.prototype,c),A&&f(n,A),n}}(),w=h(0),O=e(w),v=h(5),y=e(v),d=h(9),o=e(d);function e(f){return f&&f.__esModule?f:{default:f}}function t(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}function u(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:f}function l(f,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}var a=function(f){l(n,f);function n(c,A){t(this,n);var b=u(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,c,A));return b.lastRecorded=0,b.ignoreChange=!1,b.clear(),b.quill.on(y.default.events.EDITOR_CHANGE,function(_,x,g,p){_!==y.default.events.TEXT_CHANGE||b.ignoreChange||(!b.options.userOnly||p===y.default.sources.USER?b.record(x,g):b.transform(x))}),b.quill.keyboard.addBinding({key:"Z",shortKey:!0},b.undo.bind(b)),b.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},b.redo.bind(b)),/Win/i.test(navigator.platform)&&b.quill.keyboard.addBinding({key:"Y",shortKey:!0},b.redo.bind(b)),b}return N(n,[{key:"change",value:function(A,b){if(this.stack[A].length!==0){var _=this.stack[A].pop();this.stack[b].push(_),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(_[A],y.default.sources.USER),this.ignoreChange=!1;var x=r(_[A]);this.quill.setSelection(x)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(A,b){if(A.ops.length!==0){this.stack.redo=[];var _=this.quill.getContents().diff(b),x=Date.now();if(this.lastRecorded+this.options.delay>x&&this.stack.undo.length>0){var g=this.stack.undo.pop();_=_.compose(g.undo),A=g.redo.compose(A)}else this.lastRecorded=x;this.stack.undo.push({redo:A,undo:_}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(A){this.stack.undo.forEach(function(b){b.undo=A.transform(b.undo,!0),b.redo=A.transform(b.redo,!0)}),this.stack.redo.forEach(function(b){b.undo=A.transform(b.undo,!0),b.redo=A.transform(b.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(o.default);a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function i(f){var n=f.ops[f.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
|
|
32
|
+
`):n.attributes!=null?Object.keys(n.attributes).some(function(c){return O.default.query(c,O.default.Scope.BLOCK)!=null}):!1}function r(f){var n=f.reduce(function(A,b){return A+=b.delete||0,A},0),c=f.length()-n;return i(f)&&(c-=1),c}s.default=a,s.getLastChangeIndex=r},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BaseTooltip=void 0;var N=function(){function q(D,U){for(var M=0;M<U.length;M++){var P=U[M];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(D,P.key,P)}}return function(D,U,M){return U&&q(D.prototype,U),M&&q(D,M),D}}(),w=function q(D,U,M){D===null&&(D=Function.prototype);var P=Object.getOwnPropertyDescriptor(D,U);if(P===void 0){var I=Object.getPrototypeOf(D);return I===null?void 0:q(I,U,M)}else{if("value"in P)return P.value;var $=P.get;return $===void 0?void 0:$.call(M)}},O=h(3),v=x(O),y=h(2),d=x(y),o=h(8),e=x(o),t=h(23),u=x(t),l=h(34),a=x(l),i=h(59),r=x(i),f=h(60),n=x(f),c=h(28),A=x(c),b=h(61),_=x(b);function x(q){return q&&q.__esModule?q:{default:q}}function g(q,D){if(!(q instanceof D))throw new TypeError("Cannot call a class as a function")}function p(q,D){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:q}function m(q,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);q.prototype=Object.create(D&&D.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(q,D):q.__proto__=D)}var T=[!1,"center","right","justify"],S=["#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"],R=[!1,"serif","monospace"],B=["1","2","3",!1],C=["small",!1,"large","huge"],Z=function(q){m(D,q);function D(U,M){g(this,D);var P=p(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,U,M)),I=function $(H){if(!document.body.contains(U.root))return document.body.removeEventListener("click",$);P.tooltip!=null&&!P.tooltip.root.contains(H.target)&&document.activeElement!==P.tooltip.textbox&&!P.quill.hasFocus()&&P.tooltip.hide(),P.pickers!=null&&P.pickers.forEach(function(V){V.container.contains(H.target)||V.close()})};return U.emitter.listenDOM("click",document.body,I),P}return N(D,[{key:"addModule",value:function(M){var P=w(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"addModule",this).call(this,M);return M==="toolbar"&&this.extendToolbar(P),P}},{key:"buildButtons",value:function(M,P){M.forEach(function(I){var $=I.getAttribute("class")||"";$.split(/\s+/).forEach(function(H){if(!!H.startsWith("ql-")&&(H=H.slice(3),P[H]!=null))if(H==="direction")I.innerHTML=P[H][""]+P[H].rtl;else if(typeof P[H]=="string")I.innerHTML=P[H];else{var V=I.value||"";V!=null&&P[H][V]&&(I.innerHTML=P[H][V])}})})}},{key:"buildPickers",value:function(M,P){var I=this;this.pickers=M.map(function(H){if(H.classList.contains("ql-align"))return H.querySelector("option")==null&&k(H,T),new n.default(H,P.align);if(H.classList.contains("ql-background")||H.classList.contains("ql-color")){var V=H.classList.contains("ql-background")?"background":"color";return H.querySelector("option")==null&&k(H,S,V==="background"?"#ffffff":"#000000"),new r.default(H,P[V])}else return H.querySelector("option")==null&&(H.classList.contains("ql-font")?k(H,R):H.classList.contains("ql-header")?k(H,B):H.classList.contains("ql-size")&&k(H,C)),new A.default(H)});var $=function(){I.pickers.forEach(function(V){V.update()})};this.quill.on(e.default.events.EDITOR_CHANGE,$)}}]),D}(a.default);Z.DEFAULTS=(0,v.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var D=this,U=this.container.querySelector("input.ql-image[type=file]");U==null&&(U=document.createElement("input"),U.setAttribute("type","file"),U.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),U.classList.add("ql-image"),U.addEventListener("change",function(){if(U.files!=null&&U.files[0]!=null){var M=new FileReader;M.onload=function(P){var I=D.quill.getSelection(!0);D.quill.updateContents(new d.default().retain(I.index).delete(I.length).insert({image:P.target.result}),e.default.sources.USER),D.quill.setSelection(I.index+1,e.default.sources.SILENT),U.value=""},M.readAsDataURL(U.files[0])}}),this.container.appendChild(U)),U.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var F=function(q){m(D,q);function D(U,M){g(this,D);var P=p(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,U,M));return P.textbox=P.root.querySelector('input[type="text"]'),P.listen(),P}return N(D,[{key:"listen",value:function(){var M=this;this.textbox.addEventListener("keydown",function(P){u.default.match(P,"enter")?(M.save(),P.preventDefault()):u.default.match(P,"escape")&&(M.cancel(),P.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),P!=null?this.textbox.value=P:M!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+M)||""),this.root.setAttribute("data-mode",M)}},{key:"restoreFocus",value:function(){var M=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=M}},{key:"save",value:function(){var M=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var P=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",M,e.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",M,e.default.sources.USER)),this.quill.root.scrollTop=P;break}case"video":M=j(M);case"formula":{if(!M)break;var I=this.quill.getSelection(!0);if(I!=null){var $=I.index+I.length;this.quill.insertEmbed($,this.root.getAttribute("data-mode"),M,e.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText($+1," ",e.default.sources.USER),this.quill.setSelection($+2,e.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),D}(_.default);function j(q){var D=q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return D?(D[1]||"https")+"://www.youtube.com/embed/"+D[2]+"?showinfo=0":(D=q.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(D[1]||"https")+"://player.vimeo.com/video/"+D[2]+"/":q}function k(q,D){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;D.forEach(function(M){var P=document.createElement("option");M===U?P.setAttribute("selected","selected"):P.setAttribute("value",M),q.appendChild(P)})}s.BaseTooltip=F,s.default=Z},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function w(){this.head=this.tail=null,this.length=0}return w.prototype.append=function(){for(var O=[],v=0;v<arguments.length;v++)O[v]=arguments[v];this.insertBefore(O[0],null),O.length>1&&this.append.apply(this,O.slice(1))},w.prototype.contains=function(O){for(var v,y=this.iterator();v=y();)if(v===O)return!0;return!1},w.prototype.insertBefore=function(O,v){!O||(O.next=v,v!=null?(O.prev=v.prev,v.prev!=null&&(v.prev.next=O),v.prev=O,v===this.head&&(this.head=O)):this.tail!=null?(this.tail.next=O,O.prev=this.tail,this.tail=O):(O.prev=null,this.head=this.tail=O),this.length+=1)},w.prototype.offset=function(O){for(var v=0,y=this.head;y!=null;){if(y===O)return v;v+=y.length(),y=y.next}return-1},w.prototype.remove=function(O){!this.contains(O)||(O.prev!=null&&(O.prev.next=O.next),O.next!=null&&(O.next.prev=O.prev),O===this.head&&(this.head=O.next),O===this.tail&&(this.tail=O.prev),this.length-=1)},w.prototype.iterator=function(O){return O===void 0&&(O=this.head),function(){var v=O;return O!=null&&(O=O.next),v}},w.prototype.find=function(O,v){v===void 0&&(v=!1);for(var y,d=this.iterator();y=d();){var o=y.length();if(O<o||v&&O===o&&(y.next==null||y.next.length()!==0))return[y,O];O-=o}return[null,0]},w.prototype.forEach=function(O){for(var v,y=this.iterator();v=y();)O(v)},w.prototype.forEachAt=function(O,v,y){if(!(v<=0))for(var d=this.find(O),o=d[0],e=d[1],t,u=O-e,l=this.iterator(o);(t=l())&&u<O+v;){var a=t.length();O>u?y(t,O-u,Math.min(v,u+a-O)):y(t,0,Math.min(a,O+v-u)),u+=a}},w.prototype.map=function(O){return this.reduce(function(v,y){return v.push(O(y)),v},[])},w.prototype.reduce=function(O,v){for(var y,d=this.iterator();y=d();)v=O(v,y);return v},w}();s.default=N},function(L,s,h){var N=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var u in t)t.hasOwnProperty(u)&&(e[u]=t[u])};return function(e,t){o(e,t);function u(){this.constructor=e}e.prototype=t===null?Object.create(t):(u.prototype=t.prototype,new u)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=h(17),O=h(1),v={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},y=100,d=function(o){N(e,o);function e(t){var u=o.call(this,t)||this;return u.scroll=u,u.observer=new MutationObserver(function(l){u.update(l)}),u.observer.observe(u.domNode,v),u.attach(),u}return e.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(t,u){this.update(),t===0&&u===this.length()?this.children.forEach(function(l){l.remove()}):o.prototype.deleteAt.call(this,t,u)},e.prototype.formatAt=function(t,u,l,a){this.update(),o.prototype.formatAt.call(this,t,u,l,a)},e.prototype.insertAt=function(t,u,l){this.update(),o.prototype.insertAt.call(this,t,u,l)},e.prototype.optimize=function(t,u){var l=this;t===void 0&&(t=[]),u===void 0&&(u={}),o.prototype.optimize.call(this,u);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)t.push(a.pop());for(var i=function(c,A){A===void 0&&(A=!0),!(c==null||c===l)&&c.domNode.parentNode!=null&&(c.domNode[O.DATA_KEY].mutations==null&&(c.domNode[O.DATA_KEY].mutations=[]),A&&i(c.parent))},r=function(c){c.domNode[O.DATA_KEY]==null||c.domNode[O.DATA_KEY].mutations==null||(c instanceof w.default&&c.children.forEach(r),c.optimize(u))},f=t,n=0;f.length>0;n+=1){if(n>=y)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(function(c){var A=O.find(c.target,!0);A!=null&&(A.domNode===c.target&&(c.type==="childList"?(i(O.find(c.previousSibling,!1)),[].forEach.call(c.addedNodes,function(b){var _=O.find(b,!1);i(_,!1),_ instanceof w.default&&_.children.forEach(function(x){i(x,!1)})})):c.type==="attributes"&&i(A.prev)),i(A))}),this.children.forEach(r),f=[].slice.call(this.observer.takeRecords()),a=f.slice();a.length>0;)t.push(a.pop())}},e.prototype.update=function(t,u){var l=this;u===void 0&&(u={}),t=t||this.observer.takeRecords(),t.map(function(a){var i=O.find(a.target,!0);return i==null?null:i.domNode[O.DATA_KEY].mutations==null?(i.domNode[O.DATA_KEY].mutations=[a],i):(i.domNode[O.DATA_KEY].mutations.push(a),null)}).forEach(function(a){a==null||a===l||a.domNode[O.DATA_KEY]==null||a.update(a.domNode[O.DATA_KEY].mutations||[],u)}),this.domNode[O.DATA_KEY].mutations!=null&&o.prototype.update.call(this,this.domNode[O.DATA_KEY].mutations,u),this.optimize(t,u)},e.blotName="scroll",e.defaultChild="block",e.scope=O.Scope.BLOCK_BLOT,e.tagName="DIV",e}(w.default);s.default=d},function(L,s,h){var N=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t])};return function(o,e){d(o,e);function t(){this.constructor=o}o.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=h(18),O=h(1);function v(d,o){if(Object.keys(d).length!==Object.keys(o).length)return!1;for(var e in d)if(d[e]!==o[e])return!1;return!0}var y=function(d){N(o,d);function o(){return d!==null&&d.apply(this,arguments)||this}return o.formats=function(e){if(e.tagName!==o.tagName)return d.formats.call(this,e)},o.prototype.format=function(e,t){var u=this;e===this.statics.blotName&&!t?(this.children.forEach(function(l){l instanceof w.default||(l=l.wrap(o.blotName,!0)),u.attributes.copy(l)}),this.unwrap()):d.prototype.format.call(this,e,t)},o.prototype.formatAt=function(e,t,u,l){if(this.formats()[u]!=null||O.query(u,O.Scope.ATTRIBUTE)){var a=this.isolate(e,t);a.format(u,l)}else d.prototype.formatAt.call(this,e,t,u,l)},o.prototype.optimize=function(e){d.prototype.optimize.call(this,e);var t=this.formats();if(Object.keys(t).length===0)return this.unwrap();var u=this.next;u instanceof o&&u.prev===this&&v(t,u.formats())&&(u.moveChildren(this),u.remove())},o.blotName="inline",o.scope=O.Scope.INLINE_BLOT,o.tagName="SPAN",o}(w.default);s.default=y},function(L,s,h){var N=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var e in o)o.hasOwnProperty(e)&&(d[e]=o[e])};return function(d,o){y(d,o);function e(){this.constructor=d}d.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=h(18),O=h(1),v=function(y){N(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.formats=function(o){var e=O.query(d.blotName).tagName;if(o.tagName!==e)return y.formats.call(this,o)},d.prototype.format=function(o,e){O.query(o,O.Scope.BLOCK)!=null&&(o===this.statics.blotName&&!e?this.replaceWith(d.blotName):y.prototype.format.call(this,o,e))},d.prototype.formatAt=function(o,e,t,u){O.query(t,O.Scope.BLOCK)!=null?this.format(t,u):y.prototype.formatAt.call(this,o,e,t,u)},d.prototype.insertAt=function(o,e,t){if(t==null||O.query(e,O.Scope.INLINE)!=null)y.prototype.insertAt.call(this,o,e,t);else{var u=this.split(o),l=O.create(e,t);u.parent.insertBefore(l,u)}},d.prototype.update=function(o,e){navigator.userAgent.match(/Trident/)?this.build():y.prototype.update.call(this,o,e)},d.blotName="block",d.scope=O.Scope.BLOCK_BLOT,d.tagName="P",d}(w.default);s.default=v},function(L,s,h){var N=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,d){y.__proto__=d}||function(y,d){for(var o in d)d.hasOwnProperty(o)&&(y[o]=d[o])};return function(y,d){v(y,d);function o(){this.constructor=y}y.prototype=d===null?Object.create(d):(o.prototype=d.prototype,new o)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=h(19),O=function(v){N(y,v);function y(){return v!==null&&v.apply(this,arguments)||this}return y.formats=function(d){},y.prototype.format=function(d,o){v.prototype.formatAt.call(this,0,this.length(),d,o)},y.prototype.formatAt=function(d,o,e,t){d===0&&o===this.length()?this.format(e,t):v.prototype.formatAt.call(this,d,o,e,t)},y.prototype.formats=function(){return this.statics.formats(this.domNode)},y}(w.default);s.default=O},function(L,s,h){var N=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var e in o)o.hasOwnProperty(e)&&(d[e]=o[e])};return function(d,o){y(d,o);function e(){this.constructor=d}d.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=h(19),O=h(1),v=function(y){N(d,y);function d(o){var e=y.call(this,o)||this;return e.text=e.statics.value(e.domNode),e}return d.create=function(o){return document.createTextNode(o)},d.value=function(o){var e=o.data;return e.normalize&&(e=e.normalize()),e},d.prototype.deleteAt=function(o,e){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+e)},d.prototype.index=function(o,e){return this.domNode===o?e:-1},d.prototype.insertAt=function(o,e,t){t==null?(this.text=this.text.slice(0,o)+e+this.text.slice(o),this.domNode.data=this.text):y.prototype.insertAt.call(this,o,e,t)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(o){y.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(o,e){return[this.domNode,o]},d.prototype.split=function(o,e){if(e===void 0&&(e=!1),!e){if(o===0)return this;if(o===this.length())return this.next}var t=O.create(this.domNode.splitText(o));return this.parent.insertBefore(t,this.next),this.text=this.statics.value(this.domNode),t},d.prototype.update=function(o,e){var t=this;o.some(function(u){return u.type==="characterData"&&u.target===t.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=O.Scope.INLINE_BLOT,d}(w.default);s.default=v},function(L,s,h){var N=document.createElement("div");if(N.classList.toggle("test-class",!1),N.classList.contains("test-class")){var w=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(O,v){return arguments.length>1&&!this.contains(O)==!v?v:w.call(this,O)}}String.prototype.startsWith||(String.prototype.startsWith=function(O,v){return v=v||0,this.substr(v,O.length)===O}),String.prototype.endsWith||(String.prototype.endsWith=function(O,v){var y=this.toString();(typeof v!="number"||!isFinite(v)||Math.floor(v)!==v||v>y.length)&&(v=y.length),v-=O.length;var d=y.indexOf(O,v);return d!==-1&&d===v}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(v){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof v!="function")throw new TypeError("predicate must be a function");for(var y=Object(this),d=y.length>>>0,o=arguments[1],e,t=0;t<d;t++)if(e=y[t],v.call(o,e,t,y))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(L,s){var h=-1,N=1,w=0;function O(n,c,A){if(n==c)return n?[[w,n]]:[];(A<0||n.length<A)&&(A=null);var b=o(n,c),_=n.substring(0,b);n=n.substring(b),c=c.substring(b),b=e(n,c);var x=n.substring(n.length-b);n=n.substring(0,n.length-b),c=c.substring(0,c.length-b);var g=v(n,c);return _&&g.unshift([w,_]),x&&g.push([w,x]),u(g),A!=null&&(g=i(g,A)),g=r(g),g}function v(n,c){var A;if(!n)return[[N,c]];if(!c)return[[h,n]];var b=n.length>c.length?n:c,_=n.length>c.length?c:n,x=b.indexOf(_);if(x!=-1)return A=[[N,b.substring(0,x)],[w,_],[N,b.substring(x+_.length)]],n.length>c.length&&(A[0][0]=A[2][0]=h),A;if(_.length==1)return[[h,n],[N,c]];var g=t(n,c);if(g){var p=g[0],m=g[1],T=g[2],S=g[3],R=g[4],B=O(p,T),C=O(m,S);return B.concat([[w,R]],C)}return y(n,c)}function y(n,c){for(var A=n.length,b=c.length,_=Math.ceil((A+b)/2),x=_,g=2*_,p=new Array(g),m=new Array(g),T=0;T<g;T++)p[T]=-1,m[T]=-1;p[x+1]=0,m[x+1]=0;for(var S=A-b,R=S%2!=0,B=0,C=0,Z=0,F=0,j=0;j<_;j++){for(var k=-j+B;k<=j-C;k+=2){var q=x+k,D;k==-j||k!=j&&p[q-1]<p[q+1]?D=p[q+1]:D=p[q-1]+1;for(var U=D-k;D<A&&U<b&&n.charAt(D)==c.charAt(U);)D++,U++;if(p[q]=D,D>A)C+=2;else if(U>b)B+=2;else if(R){var M=x+S-k;if(M>=0&&M<g&&m[M]!=-1){var P=A-m[M];if(D>=P)return d(n,c,D,U)}}}for(var I=-j+Z;I<=j-F;I+=2){var M=x+I,P;I==-j||I!=j&&m[M-1]<m[M+1]?P=m[M+1]:P=m[M-1]+1;for(var $=P-I;P<A&&$<b&&n.charAt(A-P-1)==c.charAt(b-$-1);)P++,$++;if(m[M]=P,P>A)F+=2;else if($>b)Z+=2;else if(!R){var q=x+S-I;if(q>=0&&q<g&&p[q]!=-1){var D=p[q],U=x+D-q;if(P=A-P,D>=P)return d(n,c,D,U)}}}}return[[h,n],[N,c]]}function d(n,c,A,b){var _=n.substring(0,A),x=c.substring(0,b),g=n.substring(A),p=c.substring(b),m=O(_,x),T=O(g,p);return m.concat(T)}function o(n,c){if(!n||!c||n.charAt(0)!=c.charAt(0))return 0;for(var A=0,b=Math.min(n.length,c.length),_=b,x=0;A<_;)n.substring(x,_)==c.substring(x,_)?(A=_,x=A):b=_,_=Math.floor((b-A)/2+A);return _}function e(n,c){if(!n||!c||n.charAt(n.length-1)!=c.charAt(c.length-1))return 0;for(var A=0,b=Math.min(n.length,c.length),_=b,x=0;A<_;)n.substring(n.length-_,n.length-x)==c.substring(c.length-_,c.length-x)?(A=_,x=A):b=_,_=Math.floor((b-A)/2+A);return _}function t(n,c){var A=n.length>c.length?n:c,b=n.length>c.length?c:n;if(A.length<4||b.length*2<A.length)return null;function _(C,Z,F){for(var j=C.substring(F,F+Math.floor(C.length/4)),k=-1,q="",D,U,M,P;(k=Z.indexOf(j,k+1))!=-1;){var I=o(C.substring(F),Z.substring(k)),$=e(C.substring(0,F),Z.substring(0,k));q.length<$+I&&(q=Z.substring(k-$,k)+Z.substring(k,k+I),D=C.substring(0,F-$),U=C.substring(F+I),M=Z.substring(0,k-$),P=Z.substring(k+I))}return q.length*2>=C.length?[D,U,M,P,q]:null}var x=_(A,b,Math.ceil(A.length/4)),g=_(A,b,Math.ceil(A.length/2)),p;if(!x&&!g)return null;g?x?p=x[4].length>g[4].length?x:g:p=g:p=x;var m,T,S,R;n.length>c.length?(m=p[0],T=p[1],S=p[2],R=p[3]):(S=p[0],R=p[1],m=p[2],T=p[3]);var B=p[4];return[m,T,S,R,B]}function u(n){n.push([w,""]);for(var c=0,A=0,b=0,_="",x="",g;c<n.length;)switch(n[c][0]){case N:b++,x+=n[c][1],c++;break;case h:A++,_+=n[c][1],c++;break;case w:A+b>1?(A!==0&&b!==0&&(g=o(x,_),g!==0&&(c-A-b>0&&n[c-A-b-1][0]==w?n[c-A-b-1][1]+=x.substring(0,g):(n.splice(0,0,[w,x.substring(0,g)]),c++),x=x.substring(g),_=_.substring(g)),g=e(x,_),g!==0&&(n[c][1]=x.substring(x.length-g)+n[c][1],x=x.substring(0,x.length-g),_=_.substring(0,_.length-g))),A===0?n.splice(c-b,A+b,[N,x]):b===0?n.splice(c-A,A+b,[h,_]):n.splice(c-A-b,A+b,[h,_],[N,x]),c=c-A-b+(A?1:0)+(b?1:0)+1):c!==0&&n[c-1][0]==w?(n[c-1][1]+=n[c][1],n.splice(c,1)):c++,b=0,A=0,_="",x="";break}n[n.length-1][1]===""&&n.pop();var p=!1;for(c=1;c<n.length-1;)n[c-1][0]==w&&n[c+1][0]==w&&(n[c][1].substring(n[c][1].length-n[c-1][1].length)==n[c-1][1]?(n[c][1]=n[c-1][1]+n[c][1].substring(0,n[c][1].length-n[c-1][1].length),n[c+1][1]=n[c-1][1]+n[c+1][1],n.splice(c-1,1),p=!0):n[c][1].substring(0,n[c+1][1].length)==n[c+1][1]&&(n[c-1][1]+=n[c+1][1],n[c][1]=n[c][1].substring(n[c+1][1].length)+n[c+1][1],n.splice(c+1,1),p=!0)),c++;p&&u(n)}var l=O;l.INSERT=N,l.DELETE=h,l.EQUAL=w,L.exports=l;function a(n,c){if(c===0)return[w,n];for(var A=0,b=0;b<n.length;b++){var _=n[b];if(_[0]===h||_[0]===w){var x=A+_[1].length;if(c===x)return[b+1,n];if(c<x){n=n.slice();var g=c-A,p=[_[0],_[1].slice(0,g)],m=[_[0],_[1].slice(g)];return n.splice(b,1,p,m),[b+1,n]}else A=x}}throw new Error("cursor_pos is out of bounds!")}function i(n,c){var A=a(n,c),b=A[1],_=A[0],x=b[_],g=b[_+1];if(x==null)return n;if(x[0]!==w)return n;if(g!=null&&x[1]+g[1]===g[1]+x[1])return b.splice(_,2,g,x),f(b,_,2);if(g!=null&&g[1].indexOf(x[1])===0){b.splice(_,2,[g[0],x[1]],[0,x[1]]);var p=g[1].slice(x[1].length);return p.length>0&&b.splice(_+2,0,[g[0],p]),f(b,_,3)}else return n}function r(n){for(var c=!1,A=function(g){return g.charCodeAt(0)>=56320&&g.charCodeAt(0)<=57343},b=function(g){return g.charCodeAt(g.length-1)>=55296&&g.charCodeAt(g.length-1)<=56319},_=2;_<n.length;_+=1)n[_-2][0]===w&&b(n[_-2][1])&&n[_-1][0]===h&&A(n[_-1][1])&&n[_][0]===N&&A(n[_][1])&&(c=!0,n[_-1][1]=n[_-2][1].slice(-1)+n[_-1][1],n[_][1]=n[_-2][1].slice(-1)+n[_][1],n[_-2][1]=n[_-2][1].slice(0,-1));if(!c)return n;for(var x=[],_=0;_<n.length;_+=1)n[_][1].length>0&&x.push(n[_]);return x}function f(n,c,A){for(var b=c+A-1;b>=0&&b>=c-1;b--)if(b+1<n.length){var _=n[b],x=n[b+1];_[0]===x[1]&&n.splice(b,2,[_[0],_[1]+x[1]])}return n}},function(L,s){s=L.exports=typeof Object.keys=="function"?Object.keys:h,s.shim=h;function h(N){var w=[];for(var O in N)w.push(O);return w}},function(L,s){var h=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";s=L.exports=h?N:w,s.supported=N;function N(O){return Object.prototype.toString.call(O)=="[object Arguments]"}s.unsupported=w;function w(O){return O&&typeof O=="object"&&typeof O.length=="number"&&Object.prototype.hasOwnProperty.call(O,"callee")&&!Object.prototype.propertyIsEnumerable.call(O,"callee")||!1}},function(L,s){var h=Object.prototype.hasOwnProperty,N="~";function w(){}Object.create&&(w.prototype=Object.create(null),new w().__proto__||(N=!1));function O(y,d,o){this.fn=y,this.context=d,this.once=o||!1}function v(){this._events=new w,this._eventsCount=0}v.prototype.eventNames=function(){var d=[],o,e;if(this._eventsCount===0)return d;for(e in o=this._events)h.call(o,e)&&d.push(N?e.slice(1):e);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(o)):d},v.prototype.listeners=function(d,o){var e=N?N+d:d,t=this._events[e];if(o)return!!t;if(!t)return[];if(t.fn)return[t.fn];for(var u=0,l=t.length,a=new Array(l);u<l;u++)a[u]=t[u].fn;return a},v.prototype.emit=function(d,o,e,t,u,l){var a=N?N+d:d;if(!this._events[a])return!1;var i=this._events[a],r=arguments.length,f,n;if(i.fn){switch(i.once&&this.removeListener(d,i.fn,void 0,!0),r){case 1:return i.fn.call(i.context),!0;case 2:return i.fn.call(i.context,o),!0;case 3:return i.fn.call(i.context,o,e),!0;case 4:return i.fn.call(i.context,o,e,t),!0;case 5:return i.fn.call(i.context,o,e,t,u),!0;case 6:return i.fn.call(i.context,o,e,t,u,l),!0}for(n=1,f=new Array(r-1);n<r;n++)f[n-1]=arguments[n];i.fn.apply(i.context,f)}else{var c=i.length,A;for(n=0;n<c;n++)switch(i[n].once&&this.removeListener(d,i[n].fn,void 0,!0),r){case 1:i[n].fn.call(i[n].context);break;case 2:i[n].fn.call(i[n].context,o);break;case 3:i[n].fn.call(i[n].context,o,e);break;case 4:i[n].fn.call(i[n].context,o,e,t);break;default:if(!f)for(A=1,f=new Array(r-1);A<r;A++)f[A-1]=arguments[A];i[n].fn.apply(i[n].context,f)}}return!0},v.prototype.on=function(d,o,e){var t=new O(o,e||this),u=N?N+d:d;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],t]:this._events[u].push(t):(this._events[u]=t,this._eventsCount++),this},v.prototype.once=function(d,o,e){var t=new O(o,e||this,!0),u=N?N+d:d;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],t]:this._events[u].push(t):(this._events[u]=t,this._eventsCount++),this},v.prototype.removeListener=function(d,o,e,t){var u=N?N+d:d;if(!this._events[u])return this;if(!o)return--this._eventsCount===0?this._events=new w:delete this._events[u],this;var l=this._events[u];if(l.fn)l.fn===o&&(!t||l.once)&&(!e||l.context===e)&&(--this._eventsCount===0?this._events=new w:delete this._events[u]);else{for(var a=0,i=[],r=l.length;a<r;a++)(l[a].fn!==o||t&&!l[a].once||e&&l[a].context!==e)&&i.push(l[a]);i.length?this._events[u]=i.length===1?i[0]:i:--this._eventsCount===0?this._events=new w:delete this._events[u]}return this},v.prototype.removeAllListeners=function(d){var o;return d?(o=N?N+d:d,this._events[o]&&(--this._eventsCount===0?this._events=new w:delete this._events[o])):(this._events=new w,this._eventsCount=0),this},v.prototype.off=v.prototype.removeListener,v.prototype.addListener=v.prototype.on,v.prototype.setMaxListeners=function(){return this},v.prefixed=N,v.EventEmitter=v,typeof L<"u"&&(L.exports=v)},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.matchText=s.matchSpacing=s.matchNewline=s.matchBlot=s.matchAttributor=s.default=void 0;var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},w=function(){function z(K,Y){var Q=[],G=!0,te=!1,ne=void 0;try{for(var re=K[Symbol.iterator](),fe;!(G=(fe=re.next()).done)&&(Q.push(fe.value),!(Y&&Q.length===Y));G=!0);}catch(ce){te=!0,ne=ce}finally{try{!G&&re.return&&re.return()}finally{if(te)throw ne}}return Q}return function(K,Y){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return z(K,Y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function z(K,Y){for(var Q=0;Q<Y.length;Q++){var G=Y[Q];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(K,G.key,G)}}return function(K,Y,Q){return Y&&z(K.prototype,Y),Q&&z(K,Q),K}}(),v=h(3),y=m(v),d=h(2),o=m(d),e=h(0),t=m(e),u=h(5),l=m(u),a=h(10),i=m(a),r=h(9),f=m(r),n=h(36),c=h(37),A=h(13),b=m(A),_=h(26),x=h(38),g=h(39),p=h(40);function m(z){return z&&z.__esModule?z:{default:z}}function T(z,K,Y){return K in z?Object.defineProperty(z,K,{value:Y,enumerable:!0,configurable:!0,writable:!0}):z[K]=Y,z}function S(z,K){if(!(z instanceof K))throw new TypeError("Cannot call a class as a function")}function R(z,K){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:z}function B(z,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);z.prototype=Object.create(K&&K.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(z,K):z.__proto__=K)}var C=(0,i.default)("quill:clipboard"),Z="__ql-matcher",F=[[Node.TEXT_NODE,ue],[Node.TEXT_NODE,ie],["br",X],[Node.ELEMENT_NODE,ie],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,oe],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,se],["li",ee],["b",$.bind($,"bold")],["i",$.bind($,"italic")],["style",J]],j=[n.AlignAttribute,x.DirectionAttribute].reduce(function(z,K){return z[K.keyName]=K,z},{}),k=[n.AlignStyle,c.BackgroundStyle,_.ColorStyle,x.DirectionStyle,g.FontStyle,p.SizeStyle].reduce(function(z,K){return z[K.keyName]=K,z},{}),q=function(z){B(K,z);function K(Y,Q){S(this,K);var G=R(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,Y,Q));return G.quill.root.addEventListener("paste",G.onPaste.bind(G)),G.container=G.quill.addContainer("ql-clipboard"),G.container.setAttribute("contenteditable",!0),G.container.setAttribute("tabindex",-1),G.matchers=[],F.concat(G.options.matchers).forEach(function(te){var ne=w(te,2),re=ne[0],fe=ne[1];!Q.matchVisual&&fe===oe||G.addMatcher(re,fe)}),G}return O(K,[{key:"addMatcher",value:function(Q,G){this.matchers.push([Q,G])}},{key:"convert",value:function(Q){if(typeof Q=="string")return this.container.innerHTML=Q.replace(/\>\r?\n +\</g,"><"),this.convert();var G=this.quill.getFormat(this.quill.selection.savedRange.index);if(G[b.default.blotName]){var te=this.container.innerText;return this.container.innerHTML="",new o.default().insert(te,T({},b.default.blotName,G[b.default.blotName]))}var ne=this.prepareMatching(),re=w(ne,2),fe=re[0],ce=re[1],le=I(this.container,fe,ce);return M(le,`
|
|
33
|
+
`)&&le.ops[le.ops.length-1].attributes==null&&(le=le.compose(new o.default().retain(le.length()-1).delete(1))),C.log("convert",this.container.innerHTML,le),this.container.innerHTML="",le}},{key:"dangerouslyPasteHTML",value:function(Q,G){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.default.sources.API;if(typeof Q=="string")this.quill.setContents(this.convert(Q),G),this.quill.setSelection(0,l.default.sources.SILENT);else{var ne=this.convert(G);this.quill.updateContents(new o.default().retain(Q).concat(ne),te),this.quill.setSelection(Q+ne.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(Q){var G=this;if(!(Q.defaultPrevented||!this.quill.isEnabled())){var te=this.quill.getSelection(),ne=new o.default().retain(te.index),re=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout(function(){ne=ne.concat(G.convert()).delete(te.length),G.quill.updateContents(ne,l.default.sources.USER),G.quill.setSelection(ne.length()-te.length,l.default.sources.SILENT),G.quill.scrollingContainer.scrollTop=re,G.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Q=this,G=[],te=[];return this.matchers.forEach(function(ne){var re=w(ne,2),fe=re[0],ce=re[1];switch(fe){case Node.TEXT_NODE:te.push(ce);break;case Node.ELEMENT_NODE:G.push(ce);break;default:[].forEach.call(Q.container.querySelectorAll(fe),function(le){le[Z]=le[Z]||[],le[Z].push(ce)});break}}),[G,te]}}]),K}(f.default);q.DEFAULTS={matchers:[],matchVisual:!0};function D(z,K,Y){return(typeof K>"u"?"undefined":N(K))==="object"?Object.keys(K).reduce(function(Q,G){return D(Q,G,K[G])},z):z.reduce(function(Q,G){return G.attributes&&G.attributes[K]?Q.push(G):Q.insert(G.insert,(0,y.default)({},T({},K,Y),G.attributes))},new o.default)}function U(z){if(z.nodeType!==Node.ELEMENT_NODE)return{};var K="__ql-computed-style";return z[K]||(z[K]=window.getComputedStyle(z))}function M(z,K){for(var Y="",Q=z.ops.length-1;Q>=0&&Y.length<K.length;--Q){var G=z.ops[Q];if(typeof G.insert!="string")break;Y=G.insert+Y}return Y.slice(-1*K.length)===K}function P(z){if(z.childNodes.length===0)return!1;var K=U(z);return["block","list-item"].indexOf(K.display)>-1}function I(z,K,Y){return z.nodeType===z.TEXT_NODE?Y.reduce(function(Q,G){return G(z,Q)},new o.default):z.nodeType===z.ELEMENT_NODE?[].reduce.call(z.childNodes||[],function(Q,G){var te=I(G,K,Y);return G.nodeType===z.ELEMENT_NODE&&(te=K.reduce(function(ne,re){return re(G,ne)},te),te=(G[Z]||[]).reduce(function(ne,re){return re(G,ne)},te)),Q.concat(te)},new o.default):new o.default}function $(z,K,Y){return D(Y,z,!0)}function H(z,K){var Y=t.default.Attributor.Attribute.keys(z),Q=t.default.Attributor.Class.keys(z),G=t.default.Attributor.Style.keys(z),te={};return Y.concat(Q).concat(G).forEach(function(ne){var re=t.default.query(ne,t.default.Scope.ATTRIBUTE);re!=null&&(te[re.attrName]=re.value(z),te[re.attrName])||(re=j[ne],re!=null&&(re.attrName===ne||re.keyName===ne)&&(te[re.attrName]=re.value(z)||void 0),re=k[ne],re!=null&&(re.attrName===ne||re.keyName===ne)&&(re=k[ne],te[re.attrName]=re.value(z)||void 0))}),Object.keys(te).length>0&&(K=D(K,te)),K}function V(z,K){var Y=t.default.query(z);if(Y==null)return K;if(Y.prototype instanceof t.default.Embed){var Q={},G=Y.value(z);G!=null&&(Q[Y.blotName]=G,K=new o.default().insert(Q,Y.formats(z)))}else typeof Y.formats=="function"&&(K=D(K,Y.blotName,Y.formats(z)));return K}function X(z,K){return M(K,`
|
|
34
34
|
`)||K.insert(`
|
|
35
35
|
`),K}function J(){return new o.default}function ee(z,K){var Y=t.default.query(z);if(Y==null||Y.blotName!=="list-item"||!M(K,`
|
|
36
|
-
`))return K;for(var Q=-1,
|
|
36
|
+
`))return K;for(var Q=-1,G=z.parentNode;!G.classList.contains("ql-clipboard");)(t.default.query(G)||{}).blotName==="list"&&(Q+=1),G=G.parentNode;return Q<=0?K:K.compose(new o.default().retain(K.length()-1).retain(1,{indent:Q}))}function ie(z,K){return M(K,`
|
|
37
37
|
`)||(P(z)||K.length()>0&&z.nextSibling&&P(z.nextSibling))&&K.insert(`
|
|
38
38
|
`),K}function oe(z,K){if(P(z)&&z.nextElementSibling!=null&&!M(K,`
|
|
39
39
|
|
|
40
40
|
`)){var Y=z.offsetHeight+parseFloat(U(z).marginTop)+parseFloat(U(z).marginBottom);z.nextElementSibling.offsetTop>z.offsetTop+Y*1.5&&K.insert(`
|
|
41
|
-
`)}return K}function se(z,K){var Y={},Q=z.style||{};return Q.fontStyle&&U(z).fontStyle==="italic"&&(Y.italic=!0),Q.fontWeight&&(U(z).fontWeight.startsWith("bold")||parseInt(U(z).fontWeight)>=700)&&(Y.bold=!0),Object.keys(Y).length>0&&(K=D(K,Y)),parseFloat(Q.textIndent||0)>0&&(K=new o.default().insert(" ").concat(K)),K}function ue(z,K){var Y=z.data;if(z.parentNode.tagName==="O:P")return K.insert(Y.trim());if(Y.trim().length===0&&z.parentNode.classList.contains("ql-clipboard"))return K;if(!U(z.parentNode).whiteSpace.startsWith("pre")){var Q=function(te,ne){return ne=ne.replace(/[^\u00a0]/g,""),ne.length<1&&te?" ":ne};Y=Y.replace(/\r\n/g," ").replace(/\n/g," "),Y=Y.replace(/\s\s+/g,Q.bind(Q,!0)),(z.previousSibling==null&&P(z.parentNode)||z.previousSibling!=null&&P(z.previousSibling))&&(Y=Y.replace(/^\s+/,Q.bind(Q,!1))),(z.nextSibling==null&&P(z.parentNode)||z.nextSibling!=null&&P(z.nextSibling))&&(Y=Y.replace(/\s+$/,Q.bind(Q,!1)))}return K.insert(Y)}f.default=q,f.matchAttributor=H,f.matchBlot=V,f.matchNewline=ie,f.matchSpacing=oe,f.matchText=ue},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function u(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&u(l.prototype,a),i&&u(l,i),l}}(),w=function u(l,a,i){l===null&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(r===void 0){var s=Object.getPrototypeOf(l);return s===null?void 0:u(s,a,i)}else{if("value"in r)return r.value;var n=r.get;return n===void 0?void 0:n.call(i)}},O=h(6),v=y(O);function y(u){return u&&u.__esModule?u:{default:u}}function d(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function e(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var t=function(u){e(l,u);function l(){return d(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return N(l,[{key:"optimize",value:function(i){w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,i),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return w(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),l}(v.default);t.blotName="bold",t.tagName=["STRONG","B"],f.default=t},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.addControls=f.default=void 0;var N=function(){function p(m,T){var S=[],R=!0,B=!1,C=void 0;try{for(var W=m[Symbol.iterator](),F;!(R=(F=W.next()).done)&&(S.push(F.value),!(T&&S.length===T));R=!0);}catch(j){B=!0,C=j}finally{try{!R&&W.return&&W.return()}finally{if(B)throw C}}return S}return function(m,T){if(Array.isArray(m))return m;if(Symbol.iterator in Object(m))return p(m,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function p(m,T){for(var S=0;S<T.length;S++){var R=T[S];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(m,R.key,R)}}return function(m,T,S){return T&&p(m.prototype,T),S&&p(m,S),m}}(),O=h(2),v=i(O),y=h(0),d=i(y),o=h(5),e=i(o),t=h(10),u=i(t),l=h(9),a=i(l);function i(p){return p&&p.__esModule?p:{default:p}}function r(p,m,T){return m in p?Object.defineProperty(p,m,{value:T,enumerable:!0,configurable:!0,writable:!0}):p[m]=T,p}function s(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function n(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function c(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var A=(0,u.default)("quill:toolbar"),b=function(p){c(m,p);function m(T,S){s(this,m);var R=n(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,T,S));if(Array.isArray(R.options.container)){var B=document.createElement("div");x(B,R.options.container),T.container.parentNode.insertBefore(B,T.container),R.container=B}else typeof R.options.container=="string"?R.container=document.querySelector(R.options.container):R.container=R.options.container;if(!(R.container instanceof HTMLElement)){var C;return C=A.error("Container required for toolbar",R.options),n(R,C)}return R.container.classList.add("ql-toolbar"),R.controls=[],R.handlers={},Object.keys(R.options.handlers).forEach(function(W){R.addHandler(W,R.options.handlers[W])}),[].forEach.call(R.container.querySelectorAll("button, select"),function(W){R.attach(W)}),R.quill.on(e.default.events.EDITOR_CHANGE,function(W,F){W===e.default.events.SELECTION_CHANGE&&R.update(F)}),R.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){var W=R.quill.selection.getRange(),F=N(W,1),j=F[0];R.update(j)}),R}return w(m,[{key:"addHandler",value:function(S,R){this.handlers[S]=R}},{key:"attach",value:function(S){var R=this,B=[].find.call(S.classList,function(W){return W.indexOf("ql-")===0});if(!!B){if(B=B.slice(3),S.tagName==="BUTTON"&&S.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){A.warn("ignoring attaching to disabled format",B,S);return}if(d.default.query(B)==null){A.warn("ignoring attaching to nonexistent format",B,S);return}}var C=S.tagName==="SELECT"?"change":"click";S.addEventListener(C,function(W){var F=void 0;if(S.tagName==="SELECT"){if(S.selectedIndex<0)return;var j=S.options[S.selectedIndex];j.hasAttribute("selected")?F=!1:F=j.value||!1}else S.classList.contains("ql-active")?F=!1:F=S.value||!S.hasAttribute("value"),W.preventDefault();R.quill.focus();var k=R.quill.selection.getRange(),q=N(k,1),D=q[0];if(R.handlers[B]!=null)R.handlers[B].call(R,F);else if(d.default.query(B).prototype instanceof d.default.Embed){if(F=prompt("Enter "+B),!F)return;R.quill.updateContents(new v.default().retain(D.index).delete(D.length).insert(r({},B,F)),e.default.sources.USER)}else R.quill.format(B,F,e.default.sources.USER);R.update(D)}),this.controls.push([B,S])}}},{key:"update",value:function(S){var R=S==null?{}:this.quill.getFormat(S);this.controls.forEach(function(B){var C=N(B,2),W=C[0],F=C[1];if(F.tagName==="SELECT"){var j=void 0;if(S==null)j=null;else if(R[W]==null)j=F.querySelector("option[selected]");else if(!Array.isArray(R[W])){var k=R[W];typeof k=="string"&&(k=k.replace(/\"/g,'\\"')),j=F.querySelector('option[value="'+k+'"]')}j==null?(F.value="",F.selectedIndex=-1):j.selected=!0}else if(S==null)F.classList.remove("ql-active");else if(F.hasAttribute("value")){var q=R[W]===F.getAttribute("value")||R[W]!=null&&R[W].toString()===F.getAttribute("value")||R[W]==null&&!F.getAttribute("value");F.classList.toggle("ql-active",q)}else F.classList.toggle("ql-active",R[W]!=null)})}}]),m}(a.default);b.DEFAULTS={};function _(p,m,T){var S=document.createElement("button");S.setAttribute("type","button"),S.classList.add("ql-"+m),T!=null&&(S.value=T),p.appendChild(S)}function x(p,m){Array.isArray(m[0])||(m=[m]),m.forEach(function(T){var S=document.createElement("span");S.classList.add("ql-formats"),T.forEach(function(R){if(typeof R=="string")_(S,R);else{var B=Object.keys(R)[0],C=R[B];Array.isArray(C)?g(S,B,C):_(S,B,C)}}),p.appendChild(S)})}function g(p,m,T){var S=document.createElement("select");S.classList.add("ql-"+m),T.forEach(function(R){var B=document.createElement("option");R!==!1?B.setAttribute("value",R):B.setAttribute("selected","selected"),S.appendChild(B)}),p.appendChild(S)}b.DEFAULTS={container:null,handlers:{clean:function(){var m=this,T=this.quill.getSelection();if(T!=null)if(T.length==0){var S=this.quill.getFormat();Object.keys(S).forEach(function(R){d.default.query(R,d.default.Scope.INLINE)!=null&&m.quill.format(R,!1)})}else this.quill.removeFormat(T,e.default.sources.USER)},direction:function(m){var T=this.quill.getFormat().align;m==="rtl"&&T==null?this.quill.format("align","right",e.default.sources.USER):!m&&T==="right"&&this.quill.format("align",!1,e.default.sources.USER),this.quill.format("direction",m,e.default.sources.USER)},indent:function(m){var T=this.quill.getSelection(),S=this.quill.getFormat(T),R=parseInt(S.indent||0);if(m==="+1"||m==="-1"){var B=m==="+1"?1:-1;S.direction==="rtl"&&(B*=-1),this.quill.format("indent",R+B,e.default.sources.USER)}},link:function(m){m===!0&&(m=prompt("Enter link URL:")),this.quill.format("link",m,e.default.sources.USER)},list:function(m){var T=this.quill.getSelection(),S=this.quill.getFormat(T);m==="check"?S.list==="checked"||S.list==="unchecked"?this.quill.format("list",!1,e.default.sources.USER):this.quill.format("list","unchecked",e.default.sources.USER):this.quill.format("list",m,e.default.sources.USER)}}},f.default=b,f.addControls=x},function(L,f){L.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(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function u(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&u(l.prototype,a),i&&u(l,i),l}}(),w=function u(l,a,i){l===null&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(r===void 0){var s=Object.getPrototypeOf(l);return s===null?void 0:u(s,a,i)}else{if("value"in r)return r.value;var n=r.get;return n===void 0?void 0:n.call(i)}},O=h(28),v=y(O);function y(u){return u&&u.__esModule?u:{default:u}}function d(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function e(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var t=function(u){e(l,u);function l(a,i){d(this,l);var r=o(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return r.label.innerHTML=i,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(s){s.classList.add("ql-primary")}),r}return N(l,[{key:"buildItem",value:function(i){var r=w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"buildItem",this).call(this,i);return r.style.backgroundColor=i.getAttribute("value")||"",r}},{key:"selectItem",value:function(i,r){w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,i,r);var s=this.label.querySelector(".ql-color-label"),n=i&&i.getAttribute("data-value")||"";s&&(s.tagName==="line"?s.style.stroke=n:s.style.fill=n)}}]),l}(v.default);f.default=t},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function u(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&u(l.prototype,a),i&&u(l,i),l}}(),w=function u(l,a,i){l===null&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(r===void 0){var s=Object.getPrototypeOf(l);return s===null?void 0:u(s,a,i)}else{if("value"in r)return r.value;var n=r.get;return n===void 0?void 0:n.call(i)}},O=h(28),v=y(O);function y(u){return u&&u.__esModule?u:{default:u}}function d(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function e(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var t=function(u){e(l,u);function l(a,i){d(this,l);var r=o(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),function(s){s.innerHTML=i[s.getAttribute("data-value")||""]}),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return N(l,[{key:"selectItem",value:function(i,r){w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,i,r),i=i||this.defaultItem,this.label.innerHTML=i.innerHTML}}]),l}(v.default);f.default=t},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function v(y,d){for(var o=0;o<d.length;o++){var e=d[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(y,e.key,e)}}return function(y,d,o){return d&&v(y.prototype,d),o&&v(y,o),y}}();function w(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}var O=function(){function v(y,d){var o=this;w(this,v),this.quill=y,this.boundsContainer=d||document.body,this.root=y.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return N(v,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var o=d.left+d.width/2-this.root.offsetWidth/2,e=d.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=e+"px",this.root.classList.remove("ql-flip");var t=this.boundsContainer.getBoundingClientRect(),u=this.root.getBoundingClientRect(),l=0;if(u.right>t.right&&(l=t.right-u.right,this.root.style.left=o+l+"px"),u.left<t.left&&(l=t.left-u.left,this.root.style.left=o+l+"px"),u.bottom>t.bottom){var a=u.bottom-u.top,i=d.bottom-d.top+a;this.root.style.top=e-i+"px",this.root.classList.add("ql-flip")}return l}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),v}();f.default=O},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function g(p,m){var T=[],S=!0,R=!1,B=void 0;try{for(var C=p[Symbol.iterator](),W;!(S=(W=C.next()).done)&&(T.push(W.value),!(m&&T.length===m));S=!0);}catch(F){R=!0,B=F}finally{try{!S&&C.return&&C.return()}finally{if(R)throw B}}return T}return function(p,m){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return g(p,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function g(p,m,T){p===null&&(p=Function.prototype);var S=Object.getOwnPropertyDescriptor(p,m);if(S===void 0){var R=Object.getPrototypeOf(p);return R===null?void 0:g(R,m,T)}else{if("value"in S)return S.value;var B=S.get;return B===void 0?void 0:B.call(T)}},O=function(){function g(p,m){for(var T=0;T<m.length;T++){var S=m[T];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(p,S.key,S)}}return function(p,m,T){return m&&g(p.prototype,m),T&&g(p,T),p}}(),v=h(3),y=s(v),d=h(8),o=s(d),e=h(43),t=s(e),u=h(27),l=s(u),a=h(15),i=h(41),r=s(i);function s(g){return g&&g.__esModule?g:{default:g}}function n(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function c(g,p){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:g}function A(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(g,p):g.__proto__=p)}var b=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],_=function(g){A(p,g);function p(m,T){n(this,p),T.modules.toolbar!=null&&T.modules.toolbar.container==null&&(T.modules.toolbar.container=b);var S=c(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,m,T));return S.quill.container.classList.add("ql-snow"),S}return O(p,[{key:"extendToolbar",value:function(T){T.container.classList.add("ql-snow"),this.buildButtons([].slice.call(T.container.querySelectorAll("button")),r.default),this.buildPickers([].slice.call(T.container.querySelectorAll("select")),r.default),this.tooltip=new x(this.quill,this.options.bounds),T.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(S,R){T.handlers.link.call(T,!R.format.link)})}}]),p}(t.default);_.DEFAULTS=(0,y.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(p){if(p){var m=this.quill.getSelection();if(m==null||m.length==0)return;var T=this.quill.getText(m);/^\S+@\S+\.\S+$/.test(T)&&T.indexOf("mailto:")!==0&&(T="mailto:"+T);var S=this.quill.theme.tooltip;S.edit("link",T)}else this.quill.format("link",!1)}}}}});var x=function(g){A(p,g);function p(m,T){n(this,p);var S=c(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,m,T));return S.preview=S.root.querySelector("a.ql-preview"),S}return O(p,[{key:"listen",value:function(){var T=this;w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(S){T.root.classList.contains("ql-editing")?T.save():T.edit("link",T.preview.textContent),S.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(S){if(T.linkRange!=null){var R=T.linkRange;T.restoreFocus(),T.quill.formatText(R,"link",!1,o.default.sources.USER),delete T.linkRange}S.preventDefault(),T.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(S,R,B){if(S!=null){if(S.length===0&&B===o.default.sources.USER){var C=T.quill.scroll.descendant(l.default,S.index),W=N(C,2),F=W[0],j=W[1];if(F!=null){T.linkRange=new a.Range(S.index-j,F.length());var k=l.default.formats(F.domNode);T.preview.textContent=k,T.preview.setAttribute("href",k),T.show(),T.position(T.quill.getBounds(T.linkRange));return}}else delete T.linkRange;T.hide()}})}},{key:"show",value:function(){w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),p}(e.BaseTooltip);x.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>'].join(""),f.default=_},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=h(29),w=Z(N),O=h(36),v=h(38),y=h(64),d=h(65),o=Z(d),e=h(66),t=Z(e),u=h(67),l=Z(u),a=h(37),i=h(26),r=h(39),s=h(40),n=h(56),c=Z(n),A=h(68),b=Z(A),_=h(27),x=Z(_),g=h(69),p=Z(g),m=h(70),T=Z(m),S=h(71),R=Z(S),B=h(72),C=Z(B),W=h(73),F=Z(W),j=h(13),k=Z(j),q=h(74),D=Z(q),U=h(75),M=Z(U),P=h(57),I=Z(P),$=h(41),H=Z($),V=h(28),X=Z(V),J=h(59),ee=Z(J),ie=h(60),oe=Z(ie),se=h(61),ue=Z(se),z=h(108),K=Z(z),Y=h(62),Q=Z(Y);function Z(te){return te&&te.__esModule?te:{default:te}}w.default.register({"attributors/attribute/direction":v.DirectionAttribute,"attributors/class/align":O.AlignClass,"attributors/class/background":a.BackgroundClass,"attributors/class/color":i.ColorClass,"attributors/class/direction":v.DirectionClass,"attributors/class/font":r.FontClass,"attributors/class/size":s.SizeClass,"attributors/style/align":O.AlignStyle,"attributors/style/background":a.BackgroundStyle,"attributors/style/color":i.ColorStyle,"attributors/style/direction":v.DirectionStyle,"attributors/style/font":r.FontStyle,"attributors/style/size":s.SizeStyle},!0),w.default.register({"formats/align":O.AlignClass,"formats/direction":v.DirectionClass,"formats/indent":y.IndentClass,"formats/background":a.BackgroundStyle,"formats/color":i.ColorStyle,"formats/font":r.FontClass,"formats/size":s.SizeClass,"formats/blockquote":o.default,"formats/code-block":k.default,"formats/header":t.default,"formats/list":l.default,"formats/bold":c.default,"formats/code":j.Code,"formats/italic":b.default,"formats/link":x.default,"formats/script":p.default,"formats/strike":T.default,"formats/underline":R.default,"formats/image":C.default,"formats/video":F.default,"formats/list/item":u.ListItem,"modules/formula":D.default,"modules/syntax":M.default,"modules/toolbar":I.default,"themes/bubble":K.default,"themes/snow":Q.default,"ui/icons":H.default,"ui/picker":X.default,"ui/icon-picker":oe.default,"ui/color-picker":ee.default,"ui/tooltip":ue.default},!0),f.default=w.default},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.IndentClass=void 0;var N=function(){function l(a,i){for(var r=0;r<i.length;r++){var s=i[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}return function(a,i,r){return i&&l(a.prototype,i),r&&l(a,r),a}}(),w=function l(a,i,r){a===null&&(a=Function.prototype);var s=Object.getOwnPropertyDescriptor(a,i);if(s===void 0){var n=Object.getPrototypeOf(a);return n===null?void 0:l(n,i,r)}else{if("value"in s)return s.value;var c=s.get;return c===void 0?void 0:c.call(r)}},O=h(0),v=y(O);function y(l){return l&&l.__esModule?l:{default:l}}function d(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function e(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var t=function(l){e(a,l);function a(){return d(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return N(a,[{key:"add",value:function(r,s){if(s==="+1"||s==="-1"){var n=this.value(r)||0;s=s==="+1"?n+1:n-1}return s===0?(this.remove(r),!0):w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"add",this).call(this,r,s)}},{key:"canAdd",value:function(r,s){return w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,r,s)||w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,r,parseInt(s))}},{key:"value",value:function(r){return parseInt(w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,r))||void 0}}]),a}(v.default.Attributor.Class),u=new t("indent","ql-indent",{scope:v.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});f.IndentClass=u},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=h(4),w=O(N);function O(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){d(t,e);function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default);o.blotName="blockquote",o.tagName="blockquote",f.default=o},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function t(u,l){for(var a=0;a<l.length;a++){var i=l[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(u,i.key,i)}}return function(u,l,a){return l&&t(u.prototype,l),a&&t(u,a),u}}(),w=h(4),O=v(w);function v(t){return t&&t.__esModule?t:{default:t}}function y(t,u){if(!(t instanceof u))throw new TypeError("Cannot call a class as a function")}function d(t,u){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:t}function o(t,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);t.prototype=Object.create(u&&u.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(t,u):t.__proto__=u)}var e=function(t){o(u,t);function u(){return y(this,u),d(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return N(u,null,[{key:"formats",value:function(a){return this.tagName.indexOf(a.tagName)+1}}]),u}(O.default);e.blotName="header",e.tagName=["H1","H2","H3","H4","H5","H6"],f.default=e},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.ListItem=void 0;var N=function(){function n(c,A){for(var b=0;b<A.length;b++){var _=A[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(c,_.key,_)}}return function(c,A,b){return A&&n(c.prototype,A),b&&n(c,b),c}}(),w=function n(c,A,b){c===null&&(c=Function.prototype);var _=Object.getOwnPropertyDescriptor(c,A);if(_===void 0){var x=Object.getPrototypeOf(c);return x===null?void 0:n(x,A,b)}else{if("value"in _)return _.value;var g=_.get;return g===void 0?void 0:g.call(b)}},O=h(0),v=t(O),y=h(4),d=t(y),o=h(25),e=t(o);function t(n){return n&&n.__esModule?n:{default:n}}function u(n,c,A){return c in n?Object.defineProperty(n,c,{value:A,enumerable:!0,configurable:!0,writable:!0}):n[c]=A,n}function l(n,c){if(!(n instanceof c))throw new TypeError("Cannot call a class as a function")}function a(n,c){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:n}function i(n,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);n.prototype=Object.create(c&&c.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(n,c):n.__proto__=c)}var r=function(n){i(c,n);function c(){return l(this,c),a(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return N(c,[{key:"format",value:function(b,_){b===s.blotName&&!_?this.replaceWith(v.default.create(this.statics.scope)):w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,b,_)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(b,_){return this.parent.isolate(this.offset(this.parent),this.length()),b===this.parent.statics.blotName?(this.parent.replaceWith(b,_),this):(this.parent.unwrap(),w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"replaceWith",this).call(this,b,_))}}],[{key:"formats",value:function(b){return b.tagName===this.tagName?void 0:w(c.__proto__||Object.getPrototypeOf(c),"formats",this).call(this,b)}}]),c}(d.default);r.blotName="list-item",r.tagName="LI";var s=function(n){i(c,n),N(c,null,[{key:"create",value:function(b){var _=b==="ordered"?"OL":"UL",x=w(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,_);return(b==="checked"||b==="unchecked")&&x.setAttribute("data-checked",b==="checked"),x}},{key:"formats",value:function(b){if(b.tagName==="OL")return"ordered";if(b.tagName==="UL")return b.hasAttribute("data-checked")?b.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function c(A){l(this,c);var b=a(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,A)),_=function(g){if(g.target.parentNode===A){var p=b.statics.formats(A),m=v.default.find(g.target);p==="checked"?m.format("list","unchecked"):p==="unchecked"&&m.format("list","checked")}};return A.addEventListener("touchstart",_),A.addEventListener("mousedown",_),b}return N(c,[{key:"format",value:function(b,_){this.children.length>0&&this.children.tail.format(b,_)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(b,_){if(b instanceof r)w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"insertBefore",this).call(this,b,_);else{var x=_==null?this.length():_.offset(this),g=this.split(x);g.parent.insertBefore(b,g)}}},{key:"optimize",value:function(b){w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"optimize",this).call(this,b);var _=this.next;_!=null&&_.prev===this&&_.statics.blotName===this.statics.blotName&&_.domNode.tagName===this.domNode.tagName&&_.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(_.moveChildren(this),_.remove())}},{key:"replace",value:function(b){if(b.statics.blotName!==this.statics.blotName){var _=v.default.create(this.statics.defaultChild);b.moveChildren(_),this.appendChild(_)}w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"replace",this).call(this,b)}}]),c}(e.default);s.blotName="list",s.scope=v.default.Scope.BLOCK_BLOT,s.tagName=["OL","UL"],s.defaultChild="list-item",s.allowedChildren=[r],f.ListItem=r,f.default=s},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=h(56),w=O(N);function O(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){d(t,e);function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default);o.blotName="italic",o.tagName=["EM","I"],f.default=o},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function u(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&u(l.prototype,a),i&&u(l,i),l}}(),w=function u(l,a,i){l===null&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(r===void 0){var s=Object.getPrototypeOf(l);return s===null?void 0:u(s,a,i)}else{if("value"in r)return r.value;var n=r.get;return n===void 0?void 0:n.call(i)}},O=h(6),v=y(O);function y(u){return u&&u.__esModule?u:{default:u}}function d(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function e(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var t=function(u){e(l,u);function l(){return d(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return N(l,null,[{key:"create",value:function(i){return i==="super"?document.createElement("sup"):i==="sub"?document.createElement("sub"):w(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,i)}},{key:"formats",value:function(i){if(i.tagName==="SUB")return"sub";if(i.tagName==="SUP")return"super"}}]),l}(v.default);t.blotName="script",t.tagName=["SUB","SUP"],f.default=t},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=h(6),w=O(N);function O(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){d(t,e);function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default);o.blotName="strike",o.tagName="S",f.default=o},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=h(6),w=O(N);function O(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){d(t,e);function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default);o.blotName="underline",o.tagName="U",f.default=o},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function a(i,r){for(var s=0;s<r.length;s++){var n=r[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,r,s){return r&&a(i.prototype,r),s&&a(i,s),i}}(),w=function a(i,r,s){i===null&&(i=Function.prototype);var n=Object.getOwnPropertyDescriptor(i,r);if(n===void 0){var c=Object.getPrototypeOf(i);return c===null?void 0:a(c,r,s)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(s)}},O=h(0),v=d(O),y=h(27);function d(a){return a&&a.__esModule?a:{default:a}}function o(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function e(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function t(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var u=["alt","height","width"],l=function(a){t(i,a);function i(){return o(this,i),e(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return N(i,[{key:"format",value:function(s,n){u.indexOf(s)>-1?n?this.domNode.setAttribute(s,n):this.domNode.removeAttribute(s):w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,s,n)}}],[{key:"create",value:function(s){var n=w(i.__proto__||Object.getPrototypeOf(i),"create",this).call(this,s);return typeof s=="string"&&n.setAttribute("src",this.sanitize(s)),n}},{key:"formats",value:function(s){return u.reduce(function(n,c){return s.hasAttribute(c)&&(n[c]=s.getAttribute(c)),n},{})}},{key:"match",value:function(s){return/\.(jpe?g|gif|png)$/.test(s)||/^data:image\/.+;base64/.test(s)}},{key:"sanitize",value:function(s){return(0,y.sanitize)(s,["http","https","data"])?s:"//:0"}},{key:"value",value:function(s){return s.getAttribute("src")}}]),i}(v.default.Embed);l.blotName="image",l.tagName="IMG",f.default=l},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0});var N=function(){function a(i,r){for(var s=0;s<r.length;s++){var n=r[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,r,s){return r&&a(i.prototype,r),s&&a(i,s),i}}(),w=function a(i,r,s){i===null&&(i=Function.prototype);var n=Object.getOwnPropertyDescriptor(i,r);if(n===void 0){var c=Object.getPrototypeOf(i);return c===null?void 0:a(c,r,s)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(s)}},O=h(4),v=h(27),y=d(v);function d(a){return a&&a.__esModule?a:{default:a}}function o(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function e(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function t(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var u=["height","width"],l=function(a){t(i,a);function i(){return o(this,i),e(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return N(i,[{key:"format",value:function(s,n){u.indexOf(s)>-1?n?this.domNode.setAttribute(s,n):this.domNode.removeAttribute(s):w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,s,n)}}],[{key:"create",value:function(s){var n=w(i.__proto__||Object.getPrototypeOf(i),"create",this).call(this,s);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(s)),n}},{key:"formats",value:function(s){return u.reduce(function(n,c){return s.hasAttribute(c)&&(n[c]=s.getAttribute(c)),n},{})}},{key:"sanitize",value:function(s){return y.default.sanitize(s)}},{key:"value",value:function(s){return s.getAttribute("src")}}]),i}(O.BlockEmbed);l.blotName="video",l.className="ql-video",l.tagName="IFRAME",f.default=l},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.FormulaBlot=void 0;var N=function(){function s(n,c){for(var A=0;A<c.length;A++){var b=c[A];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(n,b.key,b)}}return function(n,c,A){return c&&s(n.prototype,c),A&&s(n,A),n}}(),w=function s(n,c,A){n===null&&(n=Function.prototype);var b=Object.getOwnPropertyDescriptor(n,c);if(b===void 0){var _=Object.getPrototypeOf(n);return _===null?void 0:s(_,c,A)}else{if("value"in b)return b.value;var x=b.get;return x===void 0?void 0:x.call(A)}},O=h(35),v=t(O),y=h(5),d=t(y),o=h(9),e=t(o);function t(s){return s&&s.__esModule?s:{default:s}}function u(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function l(s,n){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:s}function a(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(s,n):s.__proto__=n)}var i=function(s){a(n,s);function n(){return u(this,n),l(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return N(n,null,[{key:"create",value:function(A){var b=w(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,A);return typeof A=="string"&&(window.katex.render(A,b,{throwOnError:!1,errorColor:"#f00"}),b.setAttribute("data-value",A)),b}},{key:"value",value:function(A){return A.getAttribute("data-value")}}]),n}(v.default);i.blotName="formula",i.className="ql-formula",i.tagName="SPAN";var r=function(s){a(n,s),N(n,null,[{key:"register",value:function(){d.default.register(i,!0)}}]);function n(){u(this,n);var c=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return c}return n}(e.default);f.FormulaBlot=i,f.default=r},function(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.CodeToken=f.CodeBlock=void 0;var N=function(){function A(b,_){for(var x=0;x<_.length;x++){var g=_[x];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(b,g.key,g)}}return function(b,_,x){return _&&A(b.prototype,_),x&&A(b,x),b}}(),w=function A(b,_,x){b===null&&(b=Function.prototype);var g=Object.getOwnPropertyDescriptor(b,_);if(g===void 0){var p=Object.getPrototypeOf(b);return p===null?void 0:A(p,_,x)}else{if("value"in g)return g.value;var m=g.get;return m===void 0?void 0:m.call(x)}},O=h(0),v=l(O),y=h(5),d=l(y),o=h(9),e=l(o),t=h(13),u=l(t);function l(A){return A&&A.__esModule?A:{default:A}}function a(A,b){if(!(A instanceof b))throw new TypeError("Cannot call a class as a function")}function i(A,b){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:A}function r(A,b){if(typeof b!="function"&&b!==null)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)}var s=function(A){r(b,A);function b(){return a(this,b),i(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return N(b,[{key:"replaceWith",value:function(x){this.domNode.textContent=this.domNode.textContent,this.attach(),w(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replaceWith",this).call(this,x)}},{key:"highlight",value:function(x){var g=this.domNode.textContent;this.cachedText!==g&&((g.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=x(g),this.domNode.normalize(),this.attach()),this.cachedText=g)}}]),b}(u.default);s.className="ql-syntax";var n=new v.default.Attributor.Class("token","hljs",{scope:v.default.Scope.INLINE}),c=function(A){r(b,A),N(b,null,[{key:"register",value:function(){d.default.register(n,!0),d.default.register(s,!0)}}]);function b(_,x){a(this,b);var g=i(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,_,x));if(typeof g.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var p=null;return g.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(p),p=setTimeout(function(){g.highlight(),p=null},g.options.interval)}),g.highlight(),g}return N(b,[{key:"highlight",value:function(){var x=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var g=this.quill.getSelection();this.quill.scroll.descendants(s).forEach(function(p){p.highlight(x.options.highlight)}),this.quill.update(d.default.sources.SILENT),g!=null&&this.quill.setSelection(g,d.default.sources.SILENT)}}}]),b}(e.default);c.DEFAULTS={highlight:function(){return window.hljs==null?null:function(A){var b=window.hljs.highlightAuto(A);return b.value}}(),interval:1e3},f.CodeBlock=s,f.CodeToken=n,f.default=c},function(L,f){L.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>'},function(L,f){L.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(L,f){L.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(L,f){L.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>'},function(L,f){L.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>'},function(L,f){L.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(L,f){L.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>'},function(L,f){L.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(L,f){L.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>'},function(L,f){L.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(L,f){L.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>'},function(L,f){L.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(L,f){L.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>'},function(L,f){L.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(L,f){L.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>'},function(L,f){L.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>'},function(L,f){L.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>'},function(L,f){L.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>'},function(L,f){L.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(L,f){L.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(L,f){L.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>'},function(L,f){L.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(L,f){L.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>'},function(L,f){L.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>'},function(L,f){L.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(L,f){L.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>'},function(L,f){L.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>'},function(L,f){L.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>'},function(L,f){L.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>'},function(L,f){L.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(L,f){L.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>'},function(L,f){L.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(L,f,h){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.BubbleTooltip=void 0;var N=function b(_,x,g){_===null&&(_=Function.prototype);var p=Object.getOwnPropertyDescriptor(_,x);if(p===void 0){var m=Object.getPrototypeOf(_);return m===null?void 0:b(m,x,g)}else{if("value"in p)return p.value;var T=p.get;return T===void 0?void 0:T.call(g)}},w=function(){function b(_,x){for(var g=0;g<x.length;g++){var p=x[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(_,p.key,p)}}return function(_,x,g){return x&&b(_.prototype,x),g&&b(_,g),_}}(),O=h(3),v=a(O),y=h(8),d=a(y),o=h(43),e=a(o),t=h(15),u=h(41),l=a(u);function a(b){return b&&b.__esModule?b:{default:b}}function i(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function r(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function s(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],c=function(b){s(_,b);function _(x,g){i(this,_),g.modules.toolbar!=null&&g.modules.toolbar.container==null&&(g.modules.toolbar.container=n);var p=r(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,x,g));return p.quill.container.classList.add("ql-bubble"),p}return w(_,[{key:"extendToolbar",value:function(g){this.tooltip=new A(this.quill,this.options.bounds),this.tooltip.root.appendChild(g.container),this.buildButtons([].slice.call(g.container.querySelectorAll("button")),l.default),this.buildPickers([].slice.call(g.container.querySelectorAll("select")),l.default)}}]),_}(e.default);c.DEFAULTS=(0,v.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(_){_?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var A=function(b){s(_,b);function _(x,g){i(this,_);var p=r(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,x,g));return p.quill.on(d.default.events.EDITOR_CHANGE,function(m,T,S,R){if(m===d.default.events.SELECTION_CHANGE)if(T!=null&&T.length>0&&R===d.default.sources.USER){p.show(),p.root.style.left="0px",p.root.style.width="",p.root.style.width=p.root.offsetWidth+"px";var B=p.quill.getLines(T.index,T.length);if(B.length===1)p.position(p.quill.getBounds(T));else{var C=B[B.length-1],W=p.quill.getIndex(C),F=Math.min(C.length()-1,T.index+T.length-W),j=p.quill.getBounds(new t.Range(W,F));p.position(j)}}else document.activeElement!==p.textbox&&p.quill.hasFocus()&&p.hide()}),p}return w(_,[{key:"listen",value:function(){var g=this;N(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){g.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!g.root.classList.contains("ql-hidden")){var p=g.quill.getSelection();p!=null&&g.position(g.quill.getBounds(p))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(g){var p=N(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"position",this).call(this,g),m=this.root.querySelector(".ql-tooltip-arrow");if(m.style.marginLeft="",p===0)return p;m.style.marginLeft=-1*p-m.offsetWidth/2+"px"}}]),_}(o.BaseTooltip);A.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>"].join(""),f.BubbleTooltip=A,f.default=c},function(L,f,h){L.exports=h(63)}]).default})}(ve)),ve.exports}(function(G,E){(function(L,f){G.exports=f(Le())})(ye,function(L){return function(f){function h(w){if(N[w])return N[w].exports;var O=N[w]={i:w,l:!1,exports:{}};return f[w].call(O.exports,O,O.exports,h),O.l=!0,O.exports}var N={};return h.m=f,h.c=N,h.i=function(w){return w},h.d=function(w,O,v){h.o(w,O)||Object.defineProperty(w,O,{configurable:!1,enumerable:!0,get:v})},h.n=function(w){var O=w&&w.__esModule?function(){return w.default}:function(){return w};return h.d(O,"a",O),O},h.o=function(w,O){return Object.prototype.hasOwnProperty.call(w,O)},h.p="/",h(h.s=2)}([function(f,h){f.exports=L},function(f,h,N){Object.defineProperty(h,"__esModule",{value:!0});var w=N(4),O=N.n(w),v=N(6),y=N(5),d=y(O.a,v.a,!1,null,null,null);h.default=d.exports},function(f,h,N){function w(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(h,"__esModule",{value:!0}),h.install=h.quillEditor=h.Quill=void 0;var O=N(0),v=w(O),y=N(1),d=w(y),o=window.Quill||v.default,e=function(u,l){l&&(d.default.props.globalOptions.default=function(){return l}),u.component(d.default.name,d.default)},t={Quill:o,quillEditor:d.default,install:e};h.default=t,h.Quill=o,h.quillEditor=d.default,h.install=e},function(f,h,N){Object.defineProperty(h,"__esModule",{value:!0}),h.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(f,h,N){function w(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(h,"__esModule",{value:!0});var O=N(0),v=w(O),y=N(3),d=w(y),o=window.Quill||v.default;typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(e,t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var u=Object(e),l=1;l<arguments.length;l++){var a=arguments[l];if(a!=null)for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(u[i]=a[i])}return u},writable:!0,configurable:!0}),h.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:d.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var e=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new o(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",function(t){t?e.$emit("focus",e.quill):e.$emit("blur",e.quill)}),this.quill.on("text-change",function(t,u,l){var a=e.$refs.editor.children[0].innerHTML,i=e.quill,r=e.quill.getText();a==="<p><br></p>"&&(a=""),e._content=a,e.$emit("input",e._content),e.$emit("change",{html:a,text:r,quill:i})}),this.$emit("ready",this.quill))}},watch:{content:function(e,t){this.quill&&(e&&e!==this._content?(this._content=e,this.quill.pasteHTML(e)):e||this.quill.setText(""))},value:function(e,t){this.quill&&(e&&e!==this._content?(this._content=e,this.quill.pasteHTML(e)):e||this.quill.setText(""))},disabled:function(e,t){this.quill&&this.quill.enable(!e)}}}},function(f,h){f.exports=function(N,w,O,v,y,d){var o,e=N=N||{},t=typeof N.default;t!=="object"&&t!=="function"||(o=N,e=N.default);var u=typeof e=="function"?e.options:e;w&&(u.render=w.render,u.staticRenderFns=w.staticRenderFns,u._compiled=!0),O&&(u.functional=!0),y&&(u._scopeId=y);var l;if(d?(l=function(r){r=r||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,r||typeof __VUE_SSR_CONTEXT__>"u"||(r=__VUE_SSR_CONTEXT__),v&&v.call(this,r),r&&r._registeredComponents&&r._registeredComponents.add(d)},u._ssrRegister=l):v&&(l=v),l){var a=u.functional,i=a?u.render:u.beforeCreate;a?(u._injectStyles=l,u.render=function(r,s){return l.call(s),i(r,s)}):u.beforeCreate=i?[].concat(i,l):[l]}return{esModule:o,exports:e,options:u}}},function(f,h,N){var w=function(){var y=this,d=y.$createElement,o=y._self._c||d;return o("div",{staticClass:"quill-editor"},[y._t("toolbar"),y._v(" "),o("div",{ref:"editor"})],2)},O=[],v={render:w,staticRenderFns:O};h.a=v}])})})(me);const qe={props:{record:{type:Object,default:()=>({})},ruleFormData:{type:Object,required:!0}},components:{quillEditor:me.exports.quillEditor},data(){return{}},computed:{editorOption(){return{placeholder:this.$i18nt(this.record.placeholderTransKey,this.record.placeholder)}},style(){return{height:`${this.record.height|300}px`}},disabled(){return this.record.disabled===void 0?!1:this.record.disabled}},methods:{onEditorBlur(){},onEditorFocus(){},onEditorChange(G){this.$emit("change",G.html)}},mounted(){this.$refs.vueQuillEditor.quill.enable(!1),this.$nextTick(()=>{setTimeout(()=>{this.$refs.vueQuillEditor.quill.blur(),this.$refs.vueQuillEditor.quill.enable(!0)},1e3)})}};var De=function(){var E=this,L=E._self._c;return L("quillEditor",{ref:"vueQuillEditor",staticClass:"ql-editor-class",class:{chinesization:!0},style:E.style,attrs:{options:E.editorOption,disabled:E.disabled},on:{blur:function(f){return E.onEditorBlur(f)},focus:function(f){return E.onEditorFocus(f)},change:function(f){return E.onEditorChange(f)}},model:{value:E.ruleFormData[E.record.prop],callback:function(f){E.$set(E.ruleFormData,E.record.prop,f)},expression:"ruleFormData[record.prop]"}})},Re=[],je=he.normalizeComponent(qe,De,Re,!1,null,"17f85232",null,null);const be=je.exports;const Ie={props:{record:{type:Object,default:()=>({})},ruleFormData:{type:Object,required:!0},defaultProps:{type:Object,default:()=>({children:"children",label:"title",value:"value"})},visible:{type:Boolean,default:!1}},components:{childEditor:be,iconSelector:Ee.GDpackage,SelectFkMultiple:Pe},watch:{visible:{handler(G){this.handleFile(G),this.fileclick(G)},deep:!0,immediate:!0}},computed:{fieldFormat(){return this.record.valueFormat!==void 0?this.record.valueFormat.replace("DD","dd"):"yyyy-MM-dd"},predefine(){return["#F5222D","#52C41A","#FAAD14","#13C2C2","#1890FF","#722ED1","#eee"]},disabled(){return this.record.disabled===void 0?!1:this.record.disabled},...he.mapGetters(["primaryColor"])},data(){return{headers:{"Content-Type":"multipart/form-data"},fileListFile:[],imgList:[],currentImg:""}},methods:{handleIcon(){this.$refs.iconSelector.open()},fileclick(G){this.$nextTick(()=>{setTimeout(()=>{const E=this.ruleFormData[this.record.prop]?this.ruleFormData[this.record.prop]:[];["file"].includes(this.record.effectType)&&(this.fileListFile=[...E])},0)})},handleFile(G){if(!!["image"].includes(this.record.effectType)){if(!G){this.fileList=[];return}this.$nextTick(()=>{setTimeout(()=>{this.$refs.uploadImg.setData(this.ruleFormData[this.record.prop])},0)})}},uploadFile(G){new FormData().append("file",G.file),Oe.sysFileInfoUploadShop(G).then(L=>{if(L.code===200){const f=L.data.url,N=(this.ruleFormData[this.record.prop]?this.ruleFormData[this.record.prop].split(","):[]).concat([f]);return this.ruleFormData[this.record.prop]=N.join(","),G.onSuccess(L.data),L.data}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+L.message),G.onError()}).catch(L=>{G.onError(L)})},successFile(G,E,L){},removeFile(G,E){let L=[];E.forEach(f=>{f.response&&f.response.id?L.push(f.response.id):L.push(f.url)}),this.ruleFormData[this.record.prop]=L.join(",")},previewFile(G){let E="";G.response&&G.response.fileOriginName?(E=G.response.fileOriginName,G.response.url):(E=G.name,G.url);const L=E.substr(E.lastIndexOf(".")+1).toLowerCase();["gif","jpeg","png","jpg","JPG","PNG"].includes(L)?(this.imgList=[E],this.currentImg=E,this.$refs.imgPreview.open()):this.downFile(G)},downFile(G){console.log(G)},changeEditor(G){this.ruleFormData[this.record.prop]=G},getDict(G){return G.dictData?G.dictData:this.getDictionary(G)},getDictionary(G){return this.$options.filters.dictData(G.dictTypeCode)},selectFk(G){this.$emit("selectFk",G)}}};var Fe=function(){var E=this,L=E._self._c;return L("div",[["input"].includes(E.record.effectType)?[L("el-input",{attrs:{disabled:E.disabled,placeholder:E.$i18nt(E.record.placeholderTransKey,E.record.placeholder)},model:{value:E.ruleFormData[E.record.prop],callback:function(f){E.$set(E.ruleFormData,E.record.prop,f)},expression:"ruleFormData[record.prop]"}})]:["inputnumber","double","currency"].includes(E.record.effectType)?L("el-input-number",{attrs:{disabled:E.disabled,type:"number",min:E.record.min||E.record.min===0?E.record.min:-1/0,max:E.record.max||E.record.max===0?E.record.max:1/0,step:E.record.step||1,precision:E.record.precision||0,placeholder:E.$i18nt(E.record.placeholderTransKey,E.record.placeholder),"controls-position":"right"},model:{value:E.ruleFormData[E.record.prop],callback:function(f){E.$set(E.ruleFormData,E.record.prop,f)},expression:"ruleFormData[record.prop]"}}):["textarea"].includes(E.record.effectType)?L("el-input",{attrs:{disabled:E.disabled,type:"textarea",placeholder:E.$i18nt(E.record.placeholderTransKey,E.record.placeholder),autosize:E.record.autosize||{minRows:4,maxRows:6}},model:{value:E.ruleFormData[E.record.prop],callback:function(f){E.$set(E.ruleFormData,E.record.prop,f)},expression:"ruleFormData[record.prop]"}}):["switch"].includes(E.record.effectType)?L("el-switch",{attrs:{disabled:E.disabled,"active-color":E.primaryColor},model:{value:E.ruleFormData[E.record.prop],callback:function(f){E.$set(E.ruleFormData,E.record.prop,f)},expression:"ruleFormData[record.prop]"}}):["date"].includes(E.record.effectType)?L("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:E.disabled,type:"date","value-format":E.fieldFormat,format:E.fieldFormat,placeholder:E.$i18nt(E.record.placeholderTransKey,E.record.placeholder)},model:{value:E.ruleFormData[E.record.prop],callback:function(f){E.$set(E.ruleFormData,E.record.prop,f)},expression:"ruleFormData[record.prop]"}}):["selectTree"].includes(E.record.effectType)?L("gd-select-tree",{attrs:{defaultProps:E.defaultProps,filterable:E.record.filterable||!0,"tree-options":E.record.treeOptions||[],"default-value":E.ruleFormData[E.record.prop],placeholder:E.$i18nt(E.record.placeholderTransKey,E.record.placeholder),disabled:E.disabled},model:{value:E.ruleFormData[E.record.prop],callback:function(f){E.$set(E.ruleFormData,E.record.prop,f)},expression:"ruleFormData[record.prop]"}}):["radio"].includes(E.record.effectType)?[L("el-radio-group",{model:{value:E.ruleFormData[E.record.prop],callback:function(f){E.$set(E.ruleFormData,E.record.prop,f)},expression:"ruleFormData[record.prop]"}},E._l(E.getDict(E.record),function(f){return L("el-radio",{key:f.code,attrs:{label:f.code,disabled:E.disabled}},[E._v(" "+E._s(E.$i18nt(`Dynamics.${f.transKey}`,f.name))+" ")])}),1)]:["checkbox"].includes(E.record.effectType)&&E.ruleFormData[E.record.prop]?[L("el-checkbox-group",{model:{value:E.ruleFormData[E.record.prop],callback:function(f){E.$set(E.ruleFormData,E.record.prop,f)},expression:"ruleFormData[record.prop]"}},E._l(E.getDict(E.record),function(f){return L("el-checkbox",{key:f.code,attrs:{label:f.code,name:f.name,disabled:E.disabled}},[E._v(" "+E._s(E.$i18nt(`Dynamics.${f.transKey}`,f.name))+" ")])}),1)]:["select"].includes(E.record.effectType)?[L("el-select",{staticStyle:{width:"100%"},attrs:{disabled:E.disabled},model:{value:E.ruleFormData[E.record.prop],callback:function(f){E.$set(E.ruleFormData,E.record.prop,f)},expression:"ruleFormData[record.prop]"}},E._l(E.getDict(E.record),function(f){return L("el-option",{key:f.code,attrs:{label:f.name,value:f.code}},[E._v(" "+E._s(E.$i18nt(`Dynamics.${f.transKey}`,f.name))+" ")])}),1)]:["colorPicker"].includes(E.record.effectType)?[L("el-input",{attrs:{disabled:E.disabled,placeholder:E.$i18nt(E.record.placeholderTransKey,E.record.placeholder)},model:{value:E.ruleFormData[E.record.prop],callback:function(f){E.$set(E.ruleFormData,E.record.prop,f)},expression:"ruleFormData[record.prop]"}},[L("el-color-picker",{ref:"colorPicker",staticClass:"theme-picker",staticStyle:{"margin-right":"-5px"},attrs:{slot:"suffix",size:"small",predefine:E.predefine,"popper-class":"theme-picker-dropdown"},slot:"suffix",model:{value:E.ruleFormData[E.record.prop],callback:function(f){E.$set(E.ruleFormData,E.record.prop,f)},expression:"ruleFormData[record.prop]"}})],1)]:["icon"].includes(E.record.effectType)?[L("div",{staticClass:"item-operator"},[L("el-input",{attrs:{placeholder:E.$i18nt(E.record.placeholderTransKey,E.record.placeholder),clearable:""},model:{value:E.ruleFormData[E.record.prop],callback:function(f){E.$set(E.ruleFormData,E.record.prop,f)},expression:"ruleFormData[record.prop]"}},[E.ruleFormData[E.record.prop]?L("i",{staticClass:"el-input__icon gd-icons active-color",class:E.ruleFormData[E.record.prop],staticStyle:{"font-size":"18px"},attrs:{slot:"prefix"},slot:"prefix"}):E._e()]),L("div",{staticClass:"item-operator-cao"},[L("i",{staticClass:"el-icon-search",on:{click:E.handleIcon}})])],1)]:["editor"].includes(E.record.effectType)?L("childEditor",{attrs:{record:E.record,ruleFormData:E.ruleFormData},on:{change:E.changeEditor}}):["image"].includes(E.record.effectType)?L("gd-upload-img",{ref:"uploadImg",attrs:{record:E.record,model:E.ruleFormData,limit:E.record.limit,prop:E.record.prop}}):["file"].includes(E.record.effectType)?L("el-upload",{attrs:{action:"","on-preview":E.previewFile,"on-remove":E.removeFile,multiple:"",limit:E.record.limit,"http-request":E.uploadFile,"file-list":E.fileListFile,"on-success":E.successFile}},[L("el-button",{attrs:{size:"mini",type:"primary"}},[L("i",{staticClass:"gd-icons gd-icon-shangchuan"}),E._v(" "+E._s(E.$i18nt("gd.btn.upload","\u4E0A\u4F20"))+" ")])],1):["selectFkMultiple"].includes(E.record.effectType)?[L("SelectFkMultiple",{attrs:{column:E.record,multiple:E.record.multiple,visible:E.visible,disabled:E.disabled,ruleFormData:E.ruleFormData},on:{selectFk:E.selectFk}})]:["datetime"].includes(E.record.effectType)?L("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:E.disabled,type:"datetime","value-format":E.fieldFormat,format:E.fieldFormat,placeholder:E.$i18nt(E.record.placeholderTransKey,E.record.placeholder)},model:{value:E.ruleFormData[E.record.prop],callback:function(f){E.$set(E.ruleFormData,E.record.prop,f)},expression:"ruleFormData[record.prop]"}}):E._e(),["image","file"].includes(E.record.effectType)?L("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:E.imgList.length>0,imgList:E.imgList,currentImg:E.currentImg}}):E._e(),["icon"].includes(E.record.effectType)?L("iconSelector",{ref:"iconSelector",model:{value:E.ruleFormData[E.record.prop],callback:function(f){E.$set(E.ruleFormData,E.record.prop,f)},expression:"ruleFormData[record.prop]"}}):E._e()],2)},Me=[],Be=he.normalizeComponent(Ie,Fe,Me,!1,null,"dfafeab8",null,null);const Ce=Be.exports;const Ue={name:"GdEditForm",props:{width:{type:String,default:"800px"},transKey:{type:String,default:""},title:{type:String,default:"\u6807\u9898"},labelWidth:{type:String,default:"140px"},size:{type:String,default:"small"},inline:{type:Boolean,default:!1},formWidth:{type:String,default:"100%"},formItemWidth:{type:String,default:"100%"},loading:{type:Boolean,default:!1},buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},defaultProps:{type:Object,default:()=>({children:"children",label:"title",value:"value"})},labelPosition:{type:String,default:"right"},needLoad:{type:Boolean,default:!1},formMode:{type:String,default:"dialog"}},components:{childRenColumn:Ce},data(){return{record:null,confirmLoading:!1,visible:!1,fullscreen:!1,ruleFormData:{}}},watch:{loading(G){this.confirmLoading=G}},computed:{getColumns(){let G=[...this.columns];return G.filter(E=>(E.rules.filter(L=>(L.oldMessage===void 0&&(L.oldMessage=L.message),L.message=this.$i18nt(L.transKey,L.message),!0)),!0)),[...G]},headTitle(){return this.$i18nt(this.transKey,this.title)},style(){return`width:${this.formWidth};margin: 0 auto;min-height:400px;--form-inline-wid:calc(100% - ${this.labelWidth})`},istyle(){return this.inline?`width:50%;padding-left:0px;margin:${this.formMode==="dialog"?"0 auto":"7px auto"} ;`:this.formMode==="dialog"?`width:${this.formItemWidth};margin: 0 auto;`:`width:${this.formItemWidth};margin: 14px auto;`}},methods:{init(){return new Promise((G,E)=>{this.$nextTick(()=>{setTimeout(()=>{const L=this.record&&typeof this.record=="object"?this.record:{};let f=new Map,h=new Map;this.columns.forEach(N=>{if(!(N.type==="slot"&&(N.slotType==="none"||N.slotType==="divider")))if(["input","textarea","image","file","editor"].includes(N.effectType))f.set(N.prop,N.defaultValue!==void 0?N.defaultValue:"");else if(["fk","user","select","radio"].includes(N.effectType))f.set(N.prop,N.defaultValue!==void 0?N.defaultValue:"");else if(["participants","checkbox"].includes(N.effectType))f.set(N.prop,N.defaultValue!==void 0?N.defaultValue:[]);else if(["switch"].includes(N.effectType)){const w=N.defaultValue!==void 0?N.defaultValue:!1,O=L[N.prop]===void 0?w:L[N.prop]==1;f.set(N.prop,O),h.set(N.prop,O)}else["inputnumber","currency","double"].includes(N.effectType)?f.set(N.prop,N.defaultValue!==void 0?N.defaultValue==="undefined"?void 0:N.defaultValue:void 0):f.set(N.prop,N.defaultValue!==void 0?N.defaultValue:"")}),this.ruleFormData=Object.assign(Object.fromEntries(f),{...L},Object.fromEntries(h)),this.$refs.ruleForm&&this.$refs.ruleForm.resetFields(),G(this.ruleFormData)},0)})})},setData(G){this.$nextTick(()=>{setTimeout(()=>{const E=G||{};this.ruleFormData=Object.assign({...this.ruleFormData},{...E}),this.$refs.ruleForm.resetFields()},0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen},open(G){if(this.record=G?{...G}:null,this.visible=!0,this.init(),this.needLoad)return new Promise((E,L)=>{E({instance:this,done:this.setData})})},openHand(G){if(this.record=G?{...G}:null,this.visible=!0,this.needLoad)return new Promise((E,L)=>{E({instance:this,done:this.setData})})},closed(){this.$refs.ruleForm&&this.$refs.ruleForm.resetFields(),this.fullscreen=!1,this.visible=!1,this.record=null},handleSubmit(G){G.item.functionName,this.$refs.ruleForm.validate((E,L)=>{if(E){let f={...this.ruleFormData};this.columns.forEach(h=>{["switch"].includes(h.effectType)&&f[h.prop]!==void 0&&(f[h.prop]=f[h.prop]?1:0)}),this.$emit("sbumit",{data:Object.assign({},{...f}),record:this.record,btn:G},this,this.closed)}})},doEvent(G){if(G.item.validate){this.handleSubmit(G);return}this.$emit("sbumit",{data:Object.assign({},{...this.ruleFormData}),record:this.record,btn:G},this,this.closed)},selectFk(G){this.$emit("selectFk",G)}}};var $e=function(){var E=this,L=E._self._c;return L("div",[E.formMode==="dialog"?L("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:E.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:E.fullscreen,visible:E.visible,width:E.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(f){E.visible=f},closed:E.closed}},[L("gd-modal-title",{attrs:{slot:"title",title:E.headTitle,fullscreen:E.fullscreen,buttons:E.buttons,confirmLoading:E.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:E.doEvent,toggleFullscreen:E.toggleFullscreen,close:E.closed},slot:"title"}),E.visible?L("el-form",{directives:[{name:"loading",rawName:"v-loading",value:E.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",class:`gd-form gd-form-${E.inline}`,style:E.style,attrs:{model:E.ruleFormData,"label-width":E.labelWidth,"label-position":E.labelPosition,size:E.size,inline:E.inline},nativeOn:{submit:function(f){f.preventDefault()}}},[E._l(E.getColumns,function(f,h){return[f.type==="slot"&&f.slotType==="none"?L("el-form-item",{style:E.istyle,attrs:{label:""}}):f.type==="slot"&&f.slotType==="divider"?L("el-divider"):L("el-form-item",{style:E.istyle,attrs:{prop:f.prop,rules:f.rules}},[L("span",{attrs:{slot:"label",title:E.$i18nt(f.transKey,f.label)},slot:"label"},[E._v(" "+E._s(E.$i18nt(f.transKey,f.label))+" ")]),f.type==="slot"?E._t(f.slotType,null,{data:E.ruleFormData,column:f,record:E.record}):L("child-ren-column",{attrs:{ruleFormData:E.ruleFormData,record:f,defaultProps:E.defaultProps,visible:E.visible},on:{selectFk:E.selectFk}})],2)]})],2):E._e()],1):L("el-drawer",{attrs:{visible:E.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:E.width,"custom-class":"gd-drawer-form","show-close":!1},on:{"update:visible":function(f){E.visible=f}}},[L("gd-modal-title",{attrs:{slot:"title",title:E.headTitle,fullscreen:E.fullscreen,buttons:E.buttons,confirmLoading:E.confirmLoading,emitFun:!0,showFullscreen:!1,showClose:!0},on:{changeEvent:E.doEvent,close:E.closed},slot:"title"}),L("div",[E.visible?L("el-form",{directives:[{name:"loading",rawName:"v-loading",value:E.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",class:`gd-form gd-form-${E.inline}`,style:E.style,attrs:{model:E.ruleFormData,"label-width":E.labelWidth,"label-position":E.labelPosition,size:E.size,inline:E.inline},nativeOn:{submit:function(f){f.preventDefault()}}},[E._l(E.getColumns,function(f,h){return[f.type==="slot"&&f.slotType==="none"?L("el-form-item",{style:E.istyle,attrs:{label:""}}):f.type==="slot"&&f.slotType==="divider"?L("el-divider"):L("el-form-item",{style:E.istyle,attrs:{label:E.$i18nt(f.transKey,f.label),prop:f.prop,rules:f.rules}},[L("span",{attrs:{slot:"label",title:E.$i18nt(f.transKey,f.label)},slot:"label"},[E._v(" "+E._s(E.$i18nt(f.transKey,f.label))+" ")]),f.type==="slot"?E._t(f.slotType,null,{data:E.ruleFormData,column:f}):L("childRenColumn",{attrs:{ruleFormData:E.ruleFormData,record:f,defaultProps:E.defaultProps,visible:E.visible}})],2)]})],2):E._e()],1)],1)],1)},He=[],ze=he.normalizeComponent(Ue,$e,He,!1,null,"f553700d",null,null);const pe=ze.exports;pe.install=function(G){G.component(pe.name,pe)};exports.GDpackage=pe;exports.childEditor=be;exports.commonjsGlobal=ye;exports.getAugmentedNamespace=Te;exports.getDefaultExportFromCjs=we;exports.vueQuillEditor=me;
|
|
41
|
+
`)}return K}function se(z,K){var Y={},Q=z.style||{};return Q.fontStyle&&U(z).fontStyle==="italic"&&(Y.italic=!0),Q.fontWeight&&(U(z).fontWeight.startsWith("bold")||parseInt(U(z).fontWeight)>=700)&&(Y.bold=!0),Object.keys(Y).length>0&&(K=D(K,Y)),parseFloat(Q.textIndent||0)>0&&(K=new o.default().insert(" ").concat(K)),K}function ue(z,K){var Y=z.data;if(z.parentNode.tagName==="O:P")return K.insert(Y.trim());if(Y.trim().length===0&&z.parentNode.classList.contains("ql-clipboard"))return K;if(!U(z.parentNode).whiteSpace.startsWith("pre")){var Q=function(te,ne){return ne=ne.replace(/[^\u00a0]/g,""),ne.length<1&&te?" ":ne};Y=Y.replace(/\r\n/g," ").replace(/\n/g," "),Y=Y.replace(/\s\s+/g,Q.bind(Q,!0)),(z.previousSibling==null&&P(z.parentNode)||z.previousSibling!=null&&P(z.previousSibling))&&(Y=Y.replace(/^\s+/,Q.bind(Q,!1))),(z.nextSibling==null&&P(z.parentNode)||z.nextSibling!=null&&P(z.nextSibling))&&(Y=Y.replace(/\s+$/,Q.bind(Q,!1)))}return K.insert(Y)}s.default=q,s.matchAttributor=H,s.matchBlot=V,s.matchNewline=ie,s.matchSpacing=oe,s.matchText=ue},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function u(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&u(l.prototype,a),i&&u(l,i),l}}(),w=function u(l,a,i){l===null&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(r===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:u(f,a,i)}else{if("value"in r)return r.value;var n=r.get;return n===void 0?void 0:n.call(i)}},O=h(6),v=y(O);function y(u){return u&&u.__esModule?u:{default:u}}function d(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function e(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var t=function(u){e(l,u);function l(){return d(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return N(l,[{key:"optimize",value:function(i){w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,i),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return w(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),l}(v.default);t.blotName="bold",t.tagName=["STRONG","B"],s.default=t},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.addControls=s.default=void 0;var N=function(){function p(m,T){var S=[],R=!0,B=!1,C=void 0;try{for(var Z=m[Symbol.iterator](),F;!(R=(F=Z.next()).done)&&(S.push(F.value),!(T&&S.length===T));R=!0);}catch(j){B=!0,C=j}finally{try{!R&&Z.return&&Z.return()}finally{if(B)throw C}}return S}return function(m,T){if(Array.isArray(m))return m;if(Symbol.iterator in Object(m))return p(m,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function p(m,T){for(var S=0;S<T.length;S++){var R=T[S];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(m,R.key,R)}}return function(m,T,S){return T&&p(m.prototype,T),S&&p(m,S),m}}(),O=h(2),v=i(O),y=h(0),d=i(y),o=h(5),e=i(o),t=h(10),u=i(t),l=h(9),a=i(l);function i(p){return p&&p.__esModule?p:{default:p}}function r(p,m,T){return m in p?Object.defineProperty(p,m,{value:T,enumerable:!0,configurable:!0,writable:!0}):p[m]=T,p}function f(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function n(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function c(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var A=(0,u.default)("quill:toolbar"),b=function(p){c(m,p);function m(T,S){f(this,m);var R=n(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,T,S));if(Array.isArray(R.options.container)){var B=document.createElement("div");x(B,R.options.container),T.container.parentNode.insertBefore(B,T.container),R.container=B}else typeof R.options.container=="string"?R.container=document.querySelector(R.options.container):R.container=R.options.container;if(!(R.container instanceof HTMLElement)){var C;return C=A.error("Container required for toolbar",R.options),n(R,C)}return R.container.classList.add("ql-toolbar"),R.controls=[],R.handlers={},Object.keys(R.options.handlers).forEach(function(Z){R.addHandler(Z,R.options.handlers[Z])}),[].forEach.call(R.container.querySelectorAll("button, select"),function(Z){R.attach(Z)}),R.quill.on(e.default.events.EDITOR_CHANGE,function(Z,F){Z===e.default.events.SELECTION_CHANGE&&R.update(F)}),R.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){var Z=R.quill.selection.getRange(),F=N(Z,1),j=F[0];R.update(j)}),R}return w(m,[{key:"addHandler",value:function(S,R){this.handlers[S]=R}},{key:"attach",value:function(S){var R=this,B=[].find.call(S.classList,function(Z){return Z.indexOf("ql-")===0});if(!!B){if(B=B.slice(3),S.tagName==="BUTTON"&&S.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){A.warn("ignoring attaching to disabled format",B,S);return}if(d.default.query(B)==null){A.warn("ignoring attaching to nonexistent format",B,S);return}}var C=S.tagName==="SELECT"?"change":"click";S.addEventListener(C,function(Z){var F=void 0;if(S.tagName==="SELECT"){if(S.selectedIndex<0)return;var j=S.options[S.selectedIndex];j.hasAttribute("selected")?F=!1:F=j.value||!1}else S.classList.contains("ql-active")?F=!1:F=S.value||!S.hasAttribute("value"),Z.preventDefault();R.quill.focus();var k=R.quill.selection.getRange(),q=N(k,1),D=q[0];if(R.handlers[B]!=null)R.handlers[B].call(R,F);else if(d.default.query(B).prototype instanceof d.default.Embed){if(F=prompt("Enter "+B),!F)return;R.quill.updateContents(new v.default().retain(D.index).delete(D.length).insert(r({},B,F)),e.default.sources.USER)}else R.quill.format(B,F,e.default.sources.USER);R.update(D)}),this.controls.push([B,S])}}},{key:"update",value:function(S){var R=S==null?{}:this.quill.getFormat(S);this.controls.forEach(function(B){var C=N(B,2),Z=C[0],F=C[1];if(F.tagName==="SELECT"){var j=void 0;if(S==null)j=null;else if(R[Z]==null)j=F.querySelector("option[selected]");else if(!Array.isArray(R[Z])){var k=R[Z];typeof k=="string"&&(k=k.replace(/\"/g,'\\"')),j=F.querySelector('option[value="'+k+'"]')}j==null?(F.value="",F.selectedIndex=-1):j.selected=!0}else if(S==null)F.classList.remove("ql-active");else if(F.hasAttribute("value")){var q=R[Z]===F.getAttribute("value")||R[Z]!=null&&R[Z].toString()===F.getAttribute("value")||R[Z]==null&&!F.getAttribute("value");F.classList.toggle("ql-active",q)}else F.classList.toggle("ql-active",R[Z]!=null)})}}]),m}(a.default);b.DEFAULTS={};function _(p,m,T){var S=document.createElement("button");S.setAttribute("type","button"),S.classList.add("ql-"+m),T!=null&&(S.value=T),p.appendChild(S)}function x(p,m){Array.isArray(m[0])||(m=[m]),m.forEach(function(T){var S=document.createElement("span");S.classList.add("ql-formats"),T.forEach(function(R){if(typeof R=="string")_(S,R);else{var B=Object.keys(R)[0],C=R[B];Array.isArray(C)?g(S,B,C):_(S,B,C)}}),p.appendChild(S)})}function g(p,m,T){var S=document.createElement("select");S.classList.add("ql-"+m),T.forEach(function(R){var B=document.createElement("option");R!==!1?B.setAttribute("value",R):B.setAttribute("selected","selected"),S.appendChild(B)}),p.appendChild(S)}b.DEFAULTS={container:null,handlers:{clean:function(){var m=this,T=this.quill.getSelection();if(T!=null)if(T.length==0){var S=this.quill.getFormat();Object.keys(S).forEach(function(R){d.default.query(R,d.default.Scope.INLINE)!=null&&m.quill.format(R,!1)})}else this.quill.removeFormat(T,e.default.sources.USER)},direction:function(m){var T=this.quill.getFormat().align;m==="rtl"&&T==null?this.quill.format("align","right",e.default.sources.USER):!m&&T==="right"&&this.quill.format("align",!1,e.default.sources.USER),this.quill.format("direction",m,e.default.sources.USER)},indent:function(m){var T=this.quill.getSelection(),S=this.quill.getFormat(T),R=parseInt(S.indent||0);if(m==="+1"||m==="-1"){var B=m==="+1"?1:-1;S.direction==="rtl"&&(B*=-1),this.quill.format("indent",R+B,e.default.sources.USER)}},link:function(m){m===!0&&(m=prompt("Enter link URL:")),this.quill.format("link",m,e.default.sources.USER)},list:function(m){var T=this.quill.getSelection(),S=this.quill.getFormat(T);m==="check"?S.list==="checked"||S.list==="unchecked"?this.quill.format("list",!1,e.default.sources.USER):this.quill.format("list","unchecked",e.default.sources.USER):this.quill.format("list",m,e.default.sources.USER)}}},s.default=b,s.addControls=x},function(L,s){L.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(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function u(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&u(l.prototype,a),i&&u(l,i),l}}(),w=function u(l,a,i){l===null&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(r===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:u(f,a,i)}else{if("value"in r)return r.value;var n=r.get;return n===void 0?void 0:n.call(i)}},O=h(28),v=y(O);function y(u){return u&&u.__esModule?u:{default:u}}function d(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function e(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var t=function(u){e(l,u);function l(a,i){d(this,l);var r=o(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return r.label.innerHTML=i,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(f){f.classList.add("ql-primary")}),r}return N(l,[{key:"buildItem",value:function(i){var r=w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"buildItem",this).call(this,i);return r.style.backgroundColor=i.getAttribute("value")||"",r}},{key:"selectItem",value:function(i,r){w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,i,r);var f=this.label.querySelector(".ql-color-label"),n=i&&i.getAttribute("data-value")||"";f&&(f.tagName==="line"?f.style.stroke=n:f.style.fill=n)}}]),l}(v.default);s.default=t},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function u(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&u(l.prototype,a),i&&u(l,i),l}}(),w=function u(l,a,i){l===null&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(r===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:u(f,a,i)}else{if("value"in r)return r.value;var n=r.get;return n===void 0?void 0:n.call(i)}},O=h(28),v=y(O);function y(u){return u&&u.__esModule?u:{default:u}}function d(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function e(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var t=function(u){e(l,u);function l(a,i){d(this,l);var r=o(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),function(f){f.innerHTML=i[f.getAttribute("data-value")||""]}),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return N(l,[{key:"selectItem",value:function(i,r){w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,i,r),i=i||this.defaultItem,this.label.innerHTML=i.innerHTML}}]),l}(v.default);s.default=t},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function v(y,d){for(var o=0;o<d.length;o++){var e=d[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(y,e.key,e)}}return function(y,d,o){return d&&v(y.prototype,d),o&&v(y,o),y}}();function w(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}var O=function(){function v(y,d){var o=this;w(this,v),this.quill=y,this.boundsContainer=d||document.body,this.root=y.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return N(v,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var o=d.left+d.width/2-this.root.offsetWidth/2,e=d.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=e+"px",this.root.classList.remove("ql-flip");var t=this.boundsContainer.getBoundingClientRect(),u=this.root.getBoundingClientRect(),l=0;if(u.right>t.right&&(l=t.right-u.right,this.root.style.left=o+l+"px"),u.left<t.left&&(l=t.left-u.left,this.root.style.left=o+l+"px"),u.bottom>t.bottom){var a=u.bottom-u.top,i=d.bottom-d.top+a;this.root.style.top=e-i+"px",this.root.classList.add("ql-flip")}return l}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),v}();s.default=O},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function g(p,m){var T=[],S=!0,R=!1,B=void 0;try{for(var C=p[Symbol.iterator](),Z;!(S=(Z=C.next()).done)&&(T.push(Z.value),!(m&&T.length===m));S=!0);}catch(F){R=!0,B=F}finally{try{!S&&C.return&&C.return()}finally{if(R)throw B}}return T}return function(p,m){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return g(p,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function g(p,m,T){p===null&&(p=Function.prototype);var S=Object.getOwnPropertyDescriptor(p,m);if(S===void 0){var R=Object.getPrototypeOf(p);return R===null?void 0:g(R,m,T)}else{if("value"in S)return S.value;var B=S.get;return B===void 0?void 0:B.call(T)}},O=function(){function g(p,m){for(var T=0;T<m.length;T++){var S=m[T];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(p,S.key,S)}}return function(p,m,T){return m&&g(p.prototype,m),T&&g(p,T),p}}(),v=h(3),y=f(v),d=h(8),o=f(d),e=h(43),t=f(e),u=h(27),l=f(u),a=h(15),i=h(41),r=f(i);function f(g){return g&&g.__esModule?g:{default:g}}function n(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function c(g,p){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:g}function A(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(g,p):g.__proto__=p)}var b=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],_=function(g){A(p,g);function p(m,T){n(this,p),T.modules.toolbar!=null&&T.modules.toolbar.container==null&&(T.modules.toolbar.container=b);var S=c(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,m,T));return S.quill.container.classList.add("ql-snow"),S}return O(p,[{key:"extendToolbar",value:function(T){T.container.classList.add("ql-snow"),this.buildButtons([].slice.call(T.container.querySelectorAll("button")),r.default),this.buildPickers([].slice.call(T.container.querySelectorAll("select")),r.default),this.tooltip=new x(this.quill,this.options.bounds),T.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(S,R){T.handlers.link.call(T,!R.format.link)})}}]),p}(t.default);_.DEFAULTS=(0,y.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(p){if(p){var m=this.quill.getSelection();if(m==null||m.length==0)return;var T=this.quill.getText(m);/^\S+@\S+\.\S+$/.test(T)&&T.indexOf("mailto:")!==0&&(T="mailto:"+T);var S=this.quill.theme.tooltip;S.edit("link",T)}else this.quill.format("link",!1)}}}}});var x=function(g){A(p,g);function p(m,T){n(this,p);var S=c(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,m,T));return S.preview=S.root.querySelector("a.ql-preview"),S}return O(p,[{key:"listen",value:function(){var T=this;w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(S){T.root.classList.contains("ql-editing")?T.save():T.edit("link",T.preview.textContent),S.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(S){if(T.linkRange!=null){var R=T.linkRange;T.restoreFocus(),T.quill.formatText(R,"link",!1,o.default.sources.USER),delete T.linkRange}S.preventDefault(),T.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(S,R,B){if(S!=null){if(S.length===0&&B===o.default.sources.USER){var C=T.quill.scroll.descendant(l.default,S.index),Z=N(C,2),F=Z[0],j=Z[1];if(F!=null){T.linkRange=new a.Range(S.index-j,F.length());var k=l.default.formats(F.domNode);T.preview.textContent=k,T.preview.setAttribute("href",k),T.show(),T.position(T.quill.getBounds(T.linkRange));return}}else delete T.linkRange;T.hide()}})}},{key:"show",value:function(){w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),p}(e.BaseTooltip);x.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>'].join(""),s.default=_},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=h(29),w=G(N),O=h(36),v=h(38),y=h(64),d=h(65),o=G(d),e=h(66),t=G(e),u=h(67),l=G(u),a=h(37),i=h(26),r=h(39),f=h(40),n=h(56),c=G(n),A=h(68),b=G(A),_=h(27),x=G(_),g=h(69),p=G(g),m=h(70),T=G(m),S=h(71),R=G(S),B=h(72),C=G(B),Z=h(73),F=G(Z),j=h(13),k=G(j),q=h(74),D=G(q),U=h(75),M=G(U),P=h(57),I=G(P),$=h(41),H=G($),V=h(28),X=G(V),J=h(59),ee=G(J),ie=h(60),oe=G(ie),se=h(61),ue=G(se),z=h(108),K=G(z),Y=h(62),Q=G(Y);function G(te){return te&&te.__esModule?te:{default:te}}w.default.register({"attributors/attribute/direction":v.DirectionAttribute,"attributors/class/align":O.AlignClass,"attributors/class/background":a.BackgroundClass,"attributors/class/color":i.ColorClass,"attributors/class/direction":v.DirectionClass,"attributors/class/font":r.FontClass,"attributors/class/size":f.SizeClass,"attributors/style/align":O.AlignStyle,"attributors/style/background":a.BackgroundStyle,"attributors/style/color":i.ColorStyle,"attributors/style/direction":v.DirectionStyle,"attributors/style/font":r.FontStyle,"attributors/style/size":f.SizeStyle},!0),w.default.register({"formats/align":O.AlignClass,"formats/direction":v.DirectionClass,"formats/indent":y.IndentClass,"formats/background":a.BackgroundStyle,"formats/color":i.ColorStyle,"formats/font":r.FontClass,"formats/size":f.SizeClass,"formats/blockquote":o.default,"formats/code-block":k.default,"formats/header":t.default,"formats/list":l.default,"formats/bold":c.default,"formats/code":j.Code,"formats/italic":b.default,"formats/link":x.default,"formats/script":p.default,"formats/strike":T.default,"formats/underline":R.default,"formats/image":C.default,"formats/video":F.default,"formats/list/item":u.ListItem,"modules/formula":D.default,"modules/syntax":M.default,"modules/toolbar":I.default,"themes/bubble":K.default,"themes/snow":Q.default,"ui/icons":H.default,"ui/picker":X.default,"ui/icon-picker":oe.default,"ui/color-picker":ee.default,"ui/tooltip":ue.default},!0),s.default=w.default},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.IndentClass=void 0;var N=function(){function l(a,i){for(var r=0;r<i.length;r++){var f=i[r];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,i,r){return i&&l(a.prototype,i),r&&l(a,r),a}}(),w=function l(a,i,r){a===null&&(a=Function.prototype);var f=Object.getOwnPropertyDescriptor(a,i);if(f===void 0){var n=Object.getPrototypeOf(a);return n===null?void 0:l(n,i,r)}else{if("value"in f)return f.value;var c=f.get;return c===void 0?void 0:c.call(r)}},O=h(0),v=y(O);function y(l){return l&&l.__esModule?l:{default:l}}function d(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function e(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var t=function(l){e(a,l);function a(){return d(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return N(a,[{key:"add",value:function(r,f){if(f==="+1"||f==="-1"){var n=this.value(r)||0;f=f==="+1"?n+1:n-1}return f===0?(this.remove(r),!0):w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"add",this).call(this,r,f)}},{key:"canAdd",value:function(r,f){return w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,r,f)||w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,r,parseInt(f))}},{key:"value",value:function(r){return parseInt(w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,r))||void 0}}]),a}(v.default.Attributor.Class),u=new t("indent","ql-indent",{scope:v.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});s.IndentClass=u},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=h(4),w=O(N);function O(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){d(t,e);function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default);o.blotName="blockquote",o.tagName="blockquote",s.default=o},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function t(u,l){for(var a=0;a<l.length;a++){var i=l[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(u,i.key,i)}}return function(u,l,a){return l&&t(u.prototype,l),a&&t(u,a),u}}(),w=h(4),O=v(w);function v(t){return t&&t.__esModule?t:{default:t}}function y(t,u){if(!(t instanceof u))throw new TypeError("Cannot call a class as a function")}function d(t,u){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:t}function o(t,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);t.prototype=Object.create(u&&u.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(t,u):t.__proto__=u)}var e=function(t){o(u,t);function u(){return y(this,u),d(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return N(u,null,[{key:"formats",value:function(a){return this.tagName.indexOf(a.tagName)+1}}]),u}(O.default);e.blotName="header",e.tagName=["H1","H2","H3","H4","H5","H6"],s.default=e},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.ListItem=void 0;var N=function(){function n(c,A){for(var b=0;b<A.length;b++){var _=A[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(c,_.key,_)}}return function(c,A,b){return A&&n(c.prototype,A),b&&n(c,b),c}}(),w=function n(c,A,b){c===null&&(c=Function.prototype);var _=Object.getOwnPropertyDescriptor(c,A);if(_===void 0){var x=Object.getPrototypeOf(c);return x===null?void 0:n(x,A,b)}else{if("value"in _)return _.value;var g=_.get;return g===void 0?void 0:g.call(b)}},O=h(0),v=t(O),y=h(4),d=t(y),o=h(25),e=t(o);function t(n){return n&&n.__esModule?n:{default:n}}function u(n,c,A){return c in n?Object.defineProperty(n,c,{value:A,enumerable:!0,configurable:!0,writable:!0}):n[c]=A,n}function l(n,c){if(!(n instanceof c))throw new TypeError("Cannot call a class as a function")}function a(n,c){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:n}function i(n,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);n.prototype=Object.create(c&&c.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(n,c):n.__proto__=c)}var r=function(n){i(c,n);function c(){return l(this,c),a(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return N(c,[{key:"format",value:function(b,_){b===f.blotName&&!_?this.replaceWith(v.default.create(this.statics.scope)):w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,b,_)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(b,_){return this.parent.isolate(this.offset(this.parent),this.length()),b===this.parent.statics.blotName?(this.parent.replaceWith(b,_),this):(this.parent.unwrap(),w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"replaceWith",this).call(this,b,_))}}],[{key:"formats",value:function(b){return b.tagName===this.tagName?void 0:w(c.__proto__||Object.getPrototypeOf(c),"formats",this).call(this,b)}}]),c}(d.default);r.blotName="list-item",r.tagName="LI";var f=function(n){i(c,n),N(c,null,[{key:"create",value:function(b){var _=b==="ordered"?"OL":"UL",x=w(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,_);return(b==="checked"||b==="unchecked")&&x.setAttribute("data-checked",b==="checked"),x}},{key:"formats",value:function(b){if(b.tagName==="OL")return"ordered";if(b.tagName==="UL")return b.hasAttribute("data-checked")?b.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function c(A){l(this,c);var b=a(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,A)),_=function(g){if(g.target.parentNode===A){var p=b.statics.formats(A),m=v.default.find(g.target);p==="checked"?m.format("list","unchecked"):p==="unchecked"&&m.format("list","checked")}};return A.addEventListener("touchstart",_),A.addEventListener("mousedown",_),b}return N(c,[{key:"format",value:function(b,_){this.children.length>0&&this.children.tail.format(b,_)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(b,_){if(b instanceof r)w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"insertBefore",this).call(this,b,_);else{var x=_==null?this.length():_.offset(this),g=this.split(x);g.parent.insertBefore(b,g)}}},{key:"optimize",value:function(b){w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"optimize",this).call(this,b);var _=this.next;_!=null&&_.prev===this&&_.statics.blotName===this.statics.blotName&&_.domNode.tagName===this.domNode.tagName&&_.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(_.moveChildren(this),_.remove())}},{key:"replace",value:function(b){if(b.statics.blotName!==this.statics.blotName){var _=v.default.create(this.statics.defaultChild);b.moveChildren(_),this.appendChild(_)}w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"replace",this).call(this,b)}}]),c}(e.default);f.blotName="list",f.scope=v.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[r],s.ListItem=r,s.default=f},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=h(56),w=O(N);function O(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){d(t,e);function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default);o.blotName="italic",o.tagName=["EM","I"],s.default=o},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function u(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&u(l.prototype,a),i&&u(l,i),l}}(),w=function u(l,a,i){l===null&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(r===void 0){var f=Object.getPrototypeOf(l);return f===null?void 0:u(f,a,i)}else{if("value"in r)return r.value;var n=r.get;return n===void 0?void 0:n.call(i)}},O=h(6),v=y(O);function y(u){return u&&u.__esModule?u:{default:u}}function d(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function e(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var t=function(u){e(l,u);function l(){return d(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return N(l,null,[{key:"create",value:function(i){return i==="super"?document.createElement("sup"):i==="sub"?document.createElement("sub"):w(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,i)}},{key:"formats",value:function(i){if(i.tagName==="SUB")return"sub";if(i.tagName==="SUP")return"super"}}]),l}(v.default);t.blotName="script",t.tagName=["SUB","SUP"],s.default=t},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=h(6),w=O(N);function O(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){d(t,e);function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default);o.blotName="strike",o.tagName="S",s.default=o},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=h(6),w=O(N);function O(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){d(t,e);function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default);o.blotName="underline",o.tagName="U",s.default=o},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function a(i,r){for(var f=0;f<r.length;f++){var n=r[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,r,f){return r&&a(i.prototype,r),f&&a(i,f),i}}(),w=function a(i,r,f){i===null&&(i=Function.prototype);var n=Object.getOwnPropertyDescriptor(i,r);if(n===void 0){var c=Object.getPrototypeOf(i);return c===null?void 0:a(c,r,f)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(f)}},O=h(0),v=d(O),y=h(27);function d(a){return a&&a.__esModule?a:{default:a}}function o(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function e(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function t(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var u=["alt","height","width"],l=function(a){t(i,a);function i(){return o(this,i),e(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return N(i,[{key:"format",value:function(f,n){u.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=w(i.__proto__||Object.getPrototypeOf(i),"create",this).call(this,f);return typeof f=="string"&&n.setAttribute("src",this.sanitize(f)),n}},{key:"formats",value:function(f){return u.reduce(function(n,c){return f.hasAttribute(c)&&(n[c]=f.getAttribute(c)),n},{})}},{key:"match",value:function(f){return/\.(jpe?g|gif|png)$/.test(f)||/^data:image\/.+;base64/.test(f)}},{key:"sanitize",value:function(f){return(0,y.sanitize)(f,["http","https","data"])?f:"//:0"}},{key:"value",value:function(f){return f.getAttribute("src")}}]),i}(v.default.Embed);l.blotName="image",l.tagName="IMG",s.default=l},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0});var N=function(){function a(i,r){for(var f=0;f<r.length;f++){var n=r[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,r,f){return r&&a(i.prototype,r),f&&a(i,f),i}}(),w=function a(i,r,f){i===null&&(i=Function.prototype);var n=Object.getOwnPropertyDescriptor(i,r);if(n===void 0){var c=Object.getPrototypeOf(i);return c===null?void 0:a(c,r,f)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(f)}},O=h(4),v=h(27),y=d(v);function d(a){return a&&a.__esModule?a:{default:a}}function o(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function e(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function t(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var u=["height","width"],l=function(a){t(i,a);function i(){return o(this,i),e(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return N(i,[{key:"format",value:function(f,n){u.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=w(i.__proto__||Object.getPrototypeOf(i),"create",this).call(this,f);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(f)),n}},{key:"formats",value:function(f){return u.reduce(function(n,c){return f.hasAttribute(c)&&(n[c]=f.getAttribute(c)),n},{})}},{key:"sanitize",value:function(f){return y.default.sanitize(f)}},{key:"value",value:function(f){return f.getAttribute("src")}}]),i}(O.BlockEmbed);l.blotName="video",l.className="ql-video",l.tagName="IFRAME",s.default=l},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.FormulaBlot=void 0;var N=function(){function f(n,c){for(var A=0;A<c.length;A++){var b=c[A];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(n,b.key,b)}}return function(n,c,A){return c&&f(n.prototype,c),A&&f(n,A),n}}(),w=function f(n,c,A){n===null&&(n=Function.prototype);var b=Object.getOwnPropertyDescriptor(n,c);if(b===void 0){var _=Object.getPrototypeOf(n);return _===null?void 0:f(_,c,A)}else{if("value"in b)return b.value;var x=b.get;return x===void 0?void 0:x.call(A)}},O=h(35),v=t(O),y=h(5),d=t(y),o=h(9),e=t(o);function t(f){return f&&f.__esModule?f:{default:f}}function u(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}function l(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:f}function a(f,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}var i=function(f){a(n,f);function n(){return u(this,n),l(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return N(n,null,[{key:"create",value:function(A){var b=w(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,A);return typeof A=="string"&&(window.katex.render(A,b,{throwOnError:!1,errorColor:"#f00"}),b.setAttribute("data-value",A)),b}},{key:"value",value:function(A){return A.getAttribute("data-value")}}]),n}(v.default);i.blotName="formula",i.className="ql-formula",i.tagName="SPAN";var r=function(f){a(n,f),N(n,null,[{key:"register",value:function(){d.default.register(i,!0)}}]);function n(){u(this,n);var c=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return c}return n}(e.default);s.FormulaBlot=i,s.default=r},function(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.CodeToken=s.CodeBlock=void 0;var N=function(){function A(b,_){for(var x=0;x<_.length;x++){var g=_[x];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(b,g.key,g)}}return function(b,_,x){return _&&A(b.prototype,_),x&&A(b,x),b}}(),w=function A(b,_,x){b===null&&(b=Function.prototype);var g=Object.getOwnPropertyDescriptor(b,_);if(g===void 0){var p=Object.getPrototypeOf(b);return p===null?void 0:A(p,_,x)}else{if("value"in g)return g.value;var m=g.get;return m===void 0?void 0:m.call(x)}},O=h(0),v=l(O),y=h(5),d=l(y),o=h(9),e=l(o),t=h(13),u=l(t);function l(A){return A&&A.__esModule?A:{default:A}}function a(A,b){if(!(A instanceof b))throw new TypeError("Cannot call a class as a function")}function i(A,b){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:A}function r(A,b){if(typeof b!="function"&&b!==null)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)}var f=function(A){r(b,A);function b(){return a(this,b),i(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return N(b,[{key:"replaceWith",value:function(x){this.domNode.textContent=this.domNode.textContent,this.attach(),w(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replaceWith",this).call(this,x)}},{key:"highlight",value:function(x){var g=this.domNode.textContent;this.cachedText!==g&&((g.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=x(g),this.domNode.normalize(),this.attach()),this.cachedText=g)}}]),b}(u.default);f.className="ql-syntax";var n=new v.default.Attributor.Class("token","hljs",{scope:v.default.Scope.INLINE}),c=function(A){r(b,A),N(b,null,[{key:"register",value:function(){d.default.register(n,!0),d.default.register(f,!0)}}]);function b(_,x){a(this,b);var g=i(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,_,x));if(typeof g.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var p=null;return g.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(p),p=setTimeout(function(){g.highlight(),p=null},g.options.interval)}),g.highlight(),g}return N(b,[{key:"highlight",value:function(){var x=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var g=this.quill.getSelection();this.quill.scroll.descendants(f).forEach(function(p){p.highlight(x.options.highlight)}),this.quill.update(d.default.sources.SILENT),g!=null&&this.quill.setSelection(g,d.default.sources.SILENT)}}}]),b}(e.default);c.DEFAULTS={highlight:function(){return window.hljs==null?null:function(A){var b=window.hljs.highlightAuto(A);return b.value}}(),interval:1e3},s.CodeBlock=f,s.CodeToken=n,s.default=c},function(L,s){L.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>'},function(L,s){L.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(L,s){L.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(L,s){L.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>'},function(L,s){L.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>'},function(L,s){L.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(L,s){L.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>'},function(L,s){L.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(L,s){L.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>'},function(L,s){L.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(L,s){L.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>'},function(L,s){L.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(L,s){L.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>'},function(L,s){L.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(L,s){L.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>'},function(L,s){L.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>'},function(L,s){L.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>'},function(L,s){L.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>'},function(L,s){L.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(L,s){L.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(L,s){L.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>'},function(L,s){L.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(L,s){L.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>'},function(L,s){L.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>'},function(L,s){L.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(L,s){L.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>'},function(L,s){L.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>'},function(L,s){L.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>'},function(L,s){L.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>'},function(L,s){L.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(L,s){L.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>'},function(L,s){L.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(L,s,h){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BubbleTooltip=void 0;var N=function b(_,x,g){_===null&&(_=Function.prototype);var p=Object.getOwnPropertyDescriptor(_,x);if(p===void 0){var m=Object.getPrototypeOf(_);return m===null?void 0:b(m,x,g)}else{if("value"in p)return p.value;var T=p.get;return T===void 0?void 0:T.call(g)}},w=function(){function b(_,x){for(var g=0;g<x.length;g++){var p=x[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(_,p.key,p)}}return function(_,x,g){return x&&b(_.prototype,x),g&&b(_,g),_}}(),O=h(3),v=a(O),y=h(8),d=a(y),o=h(43),e=a(o),t=h(15),u=h(41),l=a(u);function a(b){return b&&b.__esModule?b:{default:b}}function i(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function r(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function f(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],c=function(b){f(_,b);function _(x,g){i(this,_),g.modules.toolbar!=null&&g.modules.toolbar.container==null&&(g.modules.toolbar.container=n);var p=r(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,x,g));return p.quill.container.classList.add("ql-bubble"),p}return w(_,[{key:"extendToolbar",value:function(g){this.tooltip=new A(this.quill,this.options.bounds),this.tooltip.root.appendChild(g.container),this.buildButtons([].slice.call(g.container.querySelectorAll("button")),l.default),this.buildPickers([].slice.call(g.container.querySelectorAll("select")),l.default)}}]),_}(e.default);c.DEFAULTS=(0,v.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(_){_?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var A=function(b){f(_,b);function _(x,g){i(this,_);var p=r(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,x,g));return p.quill.on(d.default.events.EDITOR_CHANGE,function(m,T,S,R){if(m===d.default.events.SELECTION_CHANGE)if(T!=null&&T.length>0&&R===d.default.sources.USER){p.show(),p.root.style.left="0px",p.root.style.width="",p.root.style.width=p.root.offsetWidth+"px";var B=p.quill.getLines(T.index,T.length);if(B.length===1)p.position(p.quill.getBounds(T));else{var C=B[B.length-1],Z=p.quill.getIndex(C),F=Math.min(C.length()-1,T.index+T.length-Z),j=p.quill.getBounds(new t.Range(Z,F));p.position(j)}}else document.activeElement!==p.textbox&&p.quill.hasFocus()&&p.hide()}),p}return w(_,[{key:"listen",value:function(){var g=this;N(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){g.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!g.root.classList.contains("ql-hidden")){var p=g.quill.getSelection();p!=null&&g.position(g.quill.getBounds(p))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(g){var p=N(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"position",this).call(this,g),m=this.root.querySelector(".ql-tooltip-arrow");if(m.style.marginLeft="",p===0)return p;m.style.marginLeft=-1*p-m.offsetWidth/2+"px"}}]),_}(o.BaseTooltip);A.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>"].join(""),s.BubbleTooltip=A,s.default=c},function(L,s,h){L.exports=h(63)}]).default})}(ve)),ve.exports}(function(W,E){(function(L,s){W.exports=s(Le())})(ye,function(L){return function(s){function h(w){if(N[w])return N[w].exports;var O=N[w]={i:w,l:!1,exports:{}};return s[w].call(O.exports,O,O.exports,h),O.l=!0,O.exports}var N={};return h.m=s,h.c=N,h.i=function(w){return w},h.d=function(w,O,v){h.o(w,O)||Object.defineProperty(w,O,{configurable:!1,enumerable:!0,get:v})},h.n=function(w){var O=w&&w.__esModule?function(){return w.default}:function(){return w};return h.d(O,"a",O),O},h.o=function(w,O){return Object.prototype.hasOwnProperty.call(w,O)},h.p="/",h(h.s=2)}([function(s,h){s.exports=L},function(s,h,N){Object.defineProperty(h,"__esModule",{value:!0});var w=N(4),O=N.n(w),v=N(6),y=N(5),d=y(O.a,v.a,!1,null,null,null);h.default=d.exports},function(s,h,N){function w(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(h,"__esModule",{value:!0}),h.install=h.quillEditor=h.Quill=void 0;var O=N(0),v=w(O),y=N(1),d=w(y),o=window.Quill||v.default,e=function(u,l){l&&(d.default.props.globalOptions.default=function(){return l}),u.component(d.default.name,d.default)},t={Quill:o,quillEditor:d.default,install:e};h.default=t,h.Quill=o,h.quillEditor=d.default,h.install=e},function(s,h,N){Object.defineProperty(h,"__esModule",{value:!0}),h.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(s,h,N){function w(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(h,"__esModule",{value:!0});var O=N(0),v=w(O),y=N(3),d=w(y),o=window.Quill||v.default;typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(e,t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var u=Object(e),l=1;l<arguments.length;l++){var a=arguments[l];if(a!=null)for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(u[i]=a[i])}return u},writable:!0,configurable:!0}),h.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:d.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var e=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new o(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",function(t){t?e.$emit("focus",e.quill):e.$emit("blur",e.quill)}),this.quill.on("text-change",function(t,u,l){var a=e.$refs.editor.children[0].innerHTML,i=e.quill,r=e.quill.getText();a==="<p><br></p>"&&(a=""),e._content=a,e.$emit("input",e._content),e.$emit("change",{html:a,text:r,quill:i})}),this.$emit("ready",this.quill))}},watch:{content:function(e,t){this.quill&&(e&&e!==this._content?(this._content=e,this.quill.pasteHTML(e)):e||this.quill.setText(""))},value:function(e,t){this.quill&&(e&&e!==this._content?(this._content=e,this.quill.pasteHTML(e)):e||this.quill.setText(""))},disabled:function(e,t){this.quill&&this.quill.enable(!e)}}}},function(s,h){s.exports=function(N,w,O,v,y,d){var o,e=N=N||{},t=typeof N.default;t!=="object"&&t!=="function"||(o=N,e=N.default);var u=typeof e=="function"?e.options:e;w&&(u.render=w.render,u.staticRenderFns=w.staticRenderFns,u._compiled=!0),O&&(u.functional=!0),y&&(u._scopeId=y);var l;if(d?(l=function(r){r=r||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,r||typeof __VUE_SSR_CONTEXT__>"u"||(r=__VUE_SSR_CONTEXT__),v&&v.call(this,r),r&&r._registeredComponents&&r._registeredComponents.add(d)},u._ssrRegister=l):v&&(l=v),l){var a=u.functional,i=a?u.render:u.beforeCreate;a?(u._injectStyles=l,u.render=function(r,f){return l.call(f),i(r,f)}):u.beforeCreate=i?[].concat(i,l):[l]}return{esModule:o,exports:e,options:u}}},function(s,h,N){var w=function(){var y=this,d=y.$createElement,o=y._self._c||d;return o("div",{staticClass:"quill-editor"},[y._t("toolbar"),y._v(" "),o("div",{ref:"editor"})],2)},O=[],v={render:w,staticRenderFns:O};h.a=v}])})})(me);const qe={props:{record:{type:Object,default:()=>({})},ruleFormData:{type:Object,required:!0},defaultProps:{type:Object,default:()=>({children:"children",label:"title",value:"value"})},visible:{type:Boolean,default:!1}},components:{childEditor:()=>Promise.resolve().then(()=>be),iconSelector:()=>Promise.resolve().then(()=>require("./components.iconselector.f5a58033.js")),SelectFkMultiple:()=>Promise.resolve().then(()=>_e)},watch:{visible:{handler(W){this.handleFile(W),this.fileclick(W)},deep:!0,immediate:!0}},computed:{fieldFormat(){return this.record.valueFormat!==void 0?this.record.valueFormat.replace("DD","dd"):"yyyy-MM-dd"},predefine(){return["#F5222D","#52C41A","#FAAD14","#13C2C2","#1890FF","#722ED1","#eee"]},disabled(){return this.record.disabled===void 0?!1:this.record.disabled},...he.mapGetters(["primaryColor"])},data(){return{headers:{"Content-Type":"multipart/form-data"},fileListFile:[],imgList:[],currentImg:""}},methods:{handleIcon(){this.$refs.iconSelector.open()},fileclick(W){this.$nextTick(()=>{setTimeout(()=>{const E=this.ruleFormData[this.record.prop]?this.ruleFormData[this.record.prop]:[];["file"].includes(this.record.effectType)&&(this.fileListFile=[...E])},0)})},handleFile(W){if(!!["image"].includes(this.record.effectType)){if(!W){this.fileList=[];return}this.$nextTick(()=>{setTimeout(()=>{this.$refs.uploadImg.setData(this.ruleFormData[this.record.prop])},0)})}},uploadFile(W){new FormData().append("file",W.file),Ee.sysFileInfoUploadShop(W).then(L=>{if(L.code===200){const s=L.data.url,N=(this.ruleFormData[this.record.prop]?this.ruleFormData[this.record.prop].split(","):[]).concat([s]);return this.ruleFormData[this.record.prop]=N.join(","),W.onSuccess(L.data),L.data}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+L.message),W.onError()}).catch(L=>{W.onError(L)})},successFile(W,E,L){},removeFile(W,E){let L=[];E.forEach(s=>{s.response&&s.response.id?L.push(s.response.id):L.push(s.url)}),this.ruleFormData[this.record.prop]=L.join(",")},previewFile(W){let E="";W.response&&W.response.fileOriginName?(E=W.response.fileOriginName,W.response.url):(E=W.name,W.url);const L=E.substr(E.lastIndexOf(".")+1).toLowerCase();["gif","jpeg","png","jpg","JPG","PNG"].includes(L)?(this.imgList=[E],this.currentImg=E,this.$refs.imgPreview.open()):this.downFile(W)},downFile(W){console.log(W)},changeEditor(W){this.ruleFormData[this.record.prop]=W},getDict(W){return W.dictData?W.dictData:this.getDictionary(W)},getDictionary(W){return this.$options.filters.dictData(W.dictTypeCode)},selectFk(W){this.$emit("selectFk",W)}}};var De=function(){var E=this,L=E._self._c;return L("div",[["input"].includes(E.record.effectType)?[L("el-input",{attrs:{disabled:E.disabled,placeholder:E.$i18nt(E.record.placeholderTransKey,E.record.placeholder)},model:{value:E.ruleFormData[E.record.prop],callback:function(s){E.$set(E.ruleFormData,E.record.prop,s)},expression:"ruleFormData[record.prop]"}})]:["inputnumber","double","currency"].includes(E.record.effectType)?L("el-input-number",{attrs:{disabled:E.disabled,type:"number",min:E.record.min||E.record.min===0?E.record.min:-1/0,max:E.record.max||E.record.max===0?E.record.max:1/0,step:E.record.step||1,precision:E.record.precision||0,placeholder:E.$i18nt(E.record.placeholderTransKey,E.record.placeholder),"controls-position":"right"},model:{value:E.ruleFormData[E.record.prop],callback:function(s){E.$set(E.ruleFormData,E.record.prop,s)},expression:"ruleFormData[record.prop]"}}):["textarea"].includes(E.record.effectType)?L("el-input",{attrs:{disabled:E.disabled,type:"textarea",placeholder:E.$i18nt(E.record.placeholderTransKey,E.record.placeholder),autosize:E.record.autosize||{minRows:4,maxRows:6}},model:{value:E.ruleFormData[E.record.prop],callback:function(s){E.$set(E.ruleFormData,E.record.prop,s)},expression:"ruleFormData[record.prop]"}}):["switch"].includes(E.record.effectType)?L("el-switch",{attrs:{disabled:E.disabled,"active-color":E.primaryColor},model:{value:E.ruleFormData[E.record.prop],callback:function(s){E.$set(E.ruleFormData,E.record.prop,s)},expression:"ruleFormData[record.prop]"}}):["date"].includes(E.record.effectType)?L("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:E.disabled,type:"date","value-format":E.fieldFormat,format:E.fieldFormat,placeholder:E.$i18nt(E.record.placeholderTransKey,E.record.placeholder)},model:{value:E.ruleFormData[E.record.prop],callback:function(s){E.$set(E.ruleFormData,E.record.prop,s)},expression:"ruleFormData[record.prop]"}}):["selectTree"].includes(E.record.effectType)?L("gd-select-tree",{attrs:{defaultProps:E.defaultProps,filterable:E.record.filterable||!0,"tree-options":E.record.treeOptions||[],"default-value":E.ruleFormData[E.record.prop],placeholder:E.$i18nt(E.record.placeholderTransKey,E.record.placeholder),disabled:E.disabled},model:{value:E.ruleFormData[E.record.prop],callback:function(s){E.$set(E.ruleFormData,E.record.prop,s)},expression:"ruleFormData[record.prop]"}}):["radio"].includes(E.record.effectType)?[L("el-radio-group",{model:{value:E.ruleFormData[E.record.prop],callback:function(s){E.$set(E.ruleFormData,E.record.prop,s)},expression:"ruleFormData[record.prop]"}},E._l(E.getDict(E.record),function(s){return L("el-radio",{key:s.code,attrs:{label:s.code,disabled:E.disabled}},[E._v(" "+E._s(E.$i18nt(`Dynamics.${s.transKey}`,s.name))+" ")])}),1)]:["checkbox"].includes(E.record.effectType)&&E.ruleFormData[E.record.prop]?[L("el-checkbox-group",{model:{value:E.ruleFormData[E.record.prop],callback:function(s){E.$set(E.ruleFormData,E.record.prop,s)},expression:"ruleFormData[record.prop]"}},E._l(E.getDict(E.record),function(s){return L("el-checkbox",{key:s.code,attrs:{label:s.code,name:s.name,disabled:E.disabled}},[E._v(" "+E._s(E.$i18nt(`Dynamics.${s.transKey}`,s.name))+" ")])}),1)]:["select"].includes(E.record.effectType)?[L("el-select",{staticStyle:{width:"100%"},attrs:{disabled:E.disabled},model:{value:E.ruleFormData[E.record.prop],callback:function(s){E.$set(E.ruleFormData,E.record.prop,s)},expression:"ruleFormData[record.prop]"}},E._l(E.getDict(E.record),function(s){return L("el-option",{key:s.code,attrs:{label:E.$i18nt(`Dynamics.${s.transKey}`,s.name),value:s.code}},[E._v(" "+E._s(E.$i18nt(`Dynamics.${s.transKey}`,s.name))+" ")])}),1)]:["colorPicker"].includes(E.record.effectType)?[L("el-input",{attrs:{disabled:E.disabled,placeholder:E.$i18nt(E.record.placeholderTransKey,E.record.placeholder)},model:{value:E.ruleFormData[E.record.prop],callback:function(s){E.$set(E.ruleFormData,E.record.prop,s)},expression:"ruleFormData[record.prop]"}},[L("el-color-picker",{ref:"colorPicker",staticClass:"theme-picker",staticStyle:{"margin-right":"-5px"},attrs:{slot:"suffix",size:"small",predefine:E.predefine,"popper-class":"theme-picker-dropdown"},slot:"suffix",model:{value:E.ruleFormData[E.record.prop],callback:function(s){E.$set(E.ruleFormData,E.record.prop,s)},expression:"ruleFormData[record.prop]"}})],1)]:["icon"].includes(E.record.effectType)?[L("div",{staticClass:"item-operator"},[L("el-input",{attrs:{placeholder:E.$i18nt(E.record.placeholderTransKey,E.record.placeholder),clearable:""},model:{value:E.ruleFormData[E.record.prop],callback:function(s){E.$set(E.ruleFormData,E.record.prop,s)},expression:"ruleFormData[record.prop]"}},[E.ruleFormData[E.record.prop]?L("i",{staticClass:"el-input__icon gd-icons active-color",class:E.ruleFormData[E.record.prop],staticStyle:{"font-size":"18px"},attrs:{slot:"prefix"},slot:"prefix"}):E._e()]),L("div",{staticClass:"item-operator-cao"},[L("i",{staticClass:"el-icon-search",on:{click:E.handleIcon}})])],1)]:["editor"].includes(E.record.effectType)?L("childEditor",{attrs:{record:E.record,ruleFormData:E.ruleFormData},on:{change:E.changeEditor}}):["image"].includes(E.record.effectType)?L("gd-upload-img",{ref:"uploadImg",attrs:{record:E.record,model:E.ruleFormData,limit:E.record.limit,prop:E.record.prop}}):["file"].includes(E.record.effectType)?L("el-upload",{attrs:{action:"","on-preview":E.previewFile,"on-remove":E.removeFile,multiple:"",limit:E.record.limit,"http-request":E.uploadFile,"file-list":E.fileListFile,"on-success":E.successFile}},[L("el-button",{attrs:{size:"mini",type:"primary"}},[L("i",{staticClass:"gd-icons gd-icon-shangchuan"}),E._v(" "+E._s(E.$i18nt("gd.btn.upload","\u4E0A\u4F20"))+" ")])],1):["selectFkMultiple"].includes(E.record.effectType)?[L("SelectFkMultiple",{attrs:{column:E.record,multiple:E.record.multiple,visible:E.visible,disabled:E.disabled,ruleFormData:E.ruleFormData},on:{selectFk:E.selectFk}})]:["datetime"].includes(E.record.effectType)?L("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:E.disabled,type:"datetime","value-format":E.fieldFormat,format:E.fieldFormat,placeholder:E.$i18nt(E.record.placeholderTransKey,E.record.placeholder)},model:{value:E.ruleFormData[E.record.prop],callback:function(s){E.$set(E.ruleFormData,E.record.prop,s)},expression:"ruleFormData[record.prop]"}}):E._e(),["image","file"].includes(E.record.effectType)?L("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:E.imgList.length>0,imgList:E.imgList,currentImg:E.currentImg}}):E._e(),["icon"].includes(E.record.effectType)?L("iconSelector",{ref:"iconSelector",model:{value:E.ruleFormData[E.record.prop],callback:function(s){E.$set(E.ruleFormData,E.record.prop,s)},expression:"ruleFormData[record.prop]"}}):E._e()],2)},Re=[],je=he.normalizeComponent(qe,De,Re,!1,null,"965a5b33",null,null);const Ie=je.exports,Fe=Object.freeze(Object.defineProperty({__proto__:null,default:Ie},Symbol.toStringTag,{value:"Module"}));const Me={props:{record:{type:Object,default:()=>({})},ruleFormData:{type:Object,required:!0}},components:{quillEditor:me.exports.quillEditor},data(){return{}},computed:{editorOption(){return{placeholder:this.$i18nt(this.record.placeholderTransKey,this.record.placeholder)}},style(){return{height:`${this.record.height|300}px`}},disabled(){return this.record.disabled===void 0?!1:this.record.disabled}},methods:{onEditorBlur(){},onEditorFocus(){},onEditorChange(W){this.$emit("change",W.html)}},mounted(){this.$refs.vueQuillEditor.quill.enable(!1),this.$nextTick(()=>{setTimeout(()=>{this.$refs.vueQuillEditor.quill.blur(),this.$refs.vueQuillEditor.quill.enable(!0)},1e3)})}};var Be=function(){var E=this,L=E._self._c;return L("quillEditor",{ref:"vueQuillEditor",staticClass:"ql-editor-class",class:{chinesization:!0},style:E.style,attrs:{options:E.editorOption,disabled:E.disabled},on:{blur:function(s){return E.onEditorBlur(s)},focus:function(s){return E.onEditorFocus(s)},change:function(s){return E.onEditorChange(s)}},model:{value:E.ruleFormData[E.record.prop],callback:function(s){E.$set(E.ruleFormData,E.record.prop,s)},expression:"ruleFormData[record.prop]"}})},Ce=[],Ue=he.normalizeComponent(Me,Be,Ce,!1,null,"17f85232",null,null);const $e=Ue.exports,be=Object.freeze(Object.defineProperty({__proto__:null,default:$e},Symbol.toStringTag,{value:"Module"}));const He={props:{column:{type:Object,default:()=>({})},ruleFormData:{type:Object,required:!0},multiple:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},data(){return{fkData:[],loading:!1,firstLoading:!1,filterList:null}},computed:{effectType(){return this.column.effectType?this.column.effectType:"about"},disabled(){return this.column.disabled!==void 0?this.column.disabled:!1}},methods:{getFkData(){!this.column.fkData||(this.fkData=this.column.fkData?this.column.fkData:[],this.firstLoading=!0)},getViewFilter(){!this.column.viewId||we.sysViewDetails({id:this.column.viewId}).then(W=>{W.code===200&&(this.filterConfig=W.data.filterconfig?JSON.parse(W.data.filterconfig):null)})},setData(W){this.fkData=[...W]},lookup(){if(this.disabled)return;const W=this.ruleFormData[this.column.prop];let E={fkEntityName:this.column.fkEntityName,effectType:this.effectType,val:W||[]};this.column.viewId&&Object.assign(E,{viewId:this.column.viewId}),this.$refs.viewSearch.open(E)},lookupSeled(W){this.fkData=[...W.fkData],this.ruleFormData[this.column.prop]=this.effectType!=="participants"?W.data[0]:W.data},fkSearch(){this.firstLoading||(this.searchData(""),this.firstLoading=!0)},searchData(W){this.loading=!0;const E=this.ruleFormData[this.column.prop]?this.ruleFormData[this.column.prop]:[],L=E?[E]:[],s=this.column.fkEntityName.split(",")[0];let h={name:W,fkEntityName:s};this.filterConfig&&Object.assign(h,{filterConfig:this.filterConfig});const N=this.fkData.filter(w=>L.includes(w.id));ke.baseFkList(h).then(w=>{if(this.loading=!1,w.code===200){const O=w.data.filter(v=>!L.includes(v.id)).map(v=>(v.tableName=s,v));this.fkData=N.concat(O)}})},changeTemplate(W){this.$emit("selectFk",W)}},mounted(){this.getFkData(),this.column.setData=this.setData,this.getViewFilter()}};var ze=function(){var E=this,L=E._self._c;return L("div",{staticClass:"cao_about"},[L("el-select",{staticClass:"cao_input",attrs:{disabled:E.disabled,placeholder:E.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:E.loading,"reserve-keyword":"",filterable:"",remote:"",clearable:"","remote-method":E.searchData,multiple:E.multiple,"collapse-tags":!0},on:{focus:E.fkSearch,change:E.changeTemplate},model:{value:E.ruleFormData[E.column.prop],callback:function(s){E.$set(E.ruleFormData,E.column.prop,s)},expression:"ruleFormData[column.prop]"}},E._l(E.fkData,function(s){return L("el-option",{key:s.id,attrs:{label:s.name,value:s.id}})}),1),L("div",{staticClass:"cao_setting",class:E.disabled?"cao_setting-disabled":""},[L("i",{staticClass:"el-input__icon el-icon-search",on:{click:E.lookup}})]),L("gd-search",{ref:"viewSearch",attrs:{appendToBody:!0},on:{lookupSeled:E.lookupSeled}})],1)},Ke=[],Ve=he.normalizeComponent(He,ze,Ke,!1,null,"3ab90674",null,null);const We=Ve.exports,_e=Object.freeze(Object.defineProperty({__proto__:null,default:We},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=pe;exports.commonjsGlobal=ye;exports.editor=be;exports.getAugmentedNamespace=Ae;exports.getDefaultExportFromCjs=Te;exports.selectFkMultiple=_e;exports.vueQuillEditor=me;
|