@jackuait/blok 0.11.0 → 0.11.1
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/README.md +36 -0
- package/dist/blok.cjs +1 -0
- package/dist/blok.iife.js +526 -0
- package/dist/blok.mjs +2 -2
- package/dist/chunks/_basePickBy-mUHvTE6c.cjs +1 -0
- package/dist/chunks/_baseUniq-BP5sM8qF.cjs +1 -0
- package/dist/chunks/am-CyXvGFRE.cjs +1 -0
- package/dist/chunks/ar-BbusVfTp.cjs +1 -0
- package/dist/chunks/arc-lSzOinJz.cjs +1 -0
- package/dist/chunks/architecture-YZFGNWBL-D91d5pcl.cjs +1 -0
- package/dist/chunks/architectureDiagram-Q4EWVU46-CyW5N5Ic.cjs +36 -0
- package/dist/chunks/array-BMXfsgb2.cjs +1 -0
- package/dist/chunks/az-D7MMnw6r.cjs +1 -0
- package/dist/chunks/bg-C3H2Qh_2.cjs +1 -0
- package/dist/chunks/blockDiagram-DXYQGD6D-DmhBCLgd.cjs +132 -0
- package/dist/chunks/blok-CNEP3LpI.cjs +16 -0
- package/dist/chunks/{blok-CUidffof.mjs → blok-DNvzyOYn.mjs} +1 -1
- package/dist/chunks/bn-BGOycYTM.cjs +1 -0
- package/dist/chunks/bs-C7amuK1D.cjs +1 -0
- package/dist/chunks/c-DNJHkQXQ.cjs +1 -0
- package/dist/chunks/c4Diagram-AHTNJAMY-DU2IYTXY.cjs +10 -0
- package/dist/chunks/ccount-DtzbJUOh.cjs +1 -0
- package/dist/chunks/channel-BqhnS5zl.cjs +1 -0
- package/dist/chunks/chunk-2KRD3SAO-COfwt0om.cjs +1 -0
- package/dist/chunks/chunk-336JU56O-CqWDeAp1.cjs +1 -0
- package/dist/chunks/chunk-426QAEUC-MjtXwzdI.cjs +1 -0
- package/dist/chunks/chunk-4BX2VUAB-Zs4zJRk9.cjs +1 -0
- package/dist/chunks/chunk-4TB4RGXK-Bq0teBqe.cjs +206 -0
- package/dist/chunks/chunk-55IACEB6-DyTTYuc2.cjs +1 -0
- package/dist/chunks/chunk-5FUZZQ4R-6rlcIGG-.cjs +62 -0
- package/dist/chunks/chunk-5PVQY5BW-DmATt7Fz.cjs +2 -0
- package/dist/chunks/chunk-67CJDMHE-zWcmgvwZ.cjs +1 -0
- package/dist/chunks/chunk-7N4EOEYR-CAuNhdG9.cjs +1 -0
- package/dist/chunks/chunk-AA7GKIK3-YMbh5HEs.cjs +1 -0
- package/dist/chunks/chunk-BSJP7CBP-CjkEoJDh.cjs +1 -0
- package/dist/chunks/chunk-CIAEETIT-BP9BiKe5.cjs +1 -0
- package/dist/chunks/chunk-EDXVE4YY-Bw1v2mUF.cjs +1 -0
- package/dist/chunks/chunk-ENJZ2VHE-9fAN50L-.cjs +10 -0
- package/dist/chunks/chunk-FMBD7UC4-CH_SSwhS.cjs +15 -0
- package/dist/chunks/chunk-FOC6F5B3-ScFIigAO.cjs +1 -0
- package/dist/chunks/chunk-ICPOFSXX-DQ4NxQTM.cjs +122 -0
- package/dist/chunks/chunk-K5T4RW27-BdGvq1o8.cjs +94 -0
- package/dist/chunks/chunk-KGLVRYIC-uzPiXgAg.cjs +1 -0
- package/dist/chunks/chunk-Kud-AIAt.cjs +1 -0
- package/dist/chunks/chunk-LIHQZDEY-ChgbfPTz.cjs +1 -0
- package/dist/chunks/chunk-ORNJ4GCN-HF28XIop.cjs +1 -0
- package/dist/chunks/chunk-OYMX7WX6-CGUpemDb.cjs +231 -0
- package/dist/chunks/chunk-QZHKN3VN-d_ESXyai.cjs +1 -0
- package/dist/chunks/chunk-U2HBQHQK-D62A_XCV.cjs +70 -0
- package/dist/chunks/chunk-X2U36JSP-BEHpYlmW.cjs +1 -0
- package/dist/chunks/chunk-XPW4576I-BidQL50C.cjs +32 -0
- package/dist/chunks/chunk-YZCP3GAM-DuLQPyT4.cjs +1 -0
- package/dist/chunks/chunk-ZZ45TVLE-CZOUDLGO.cjs +1 -0
- package/dist/chunks/classDiagram-6PBFFD2Q-GDkPRBlp.cjs +1 -0
- package/dist/chunks/classDiagram-v2-HSJHXN6E-B4vt694Q.cjs +1 -0
- package/dist/chunks/clone-_XTzxdN3.cjs +1 -0
- package/dist/chunks/constants-DJjFgioo.cjs +451 -0
- package/dist/chunks/{constants-C4TrPxXY.mjs → constants-DMsOCPcF.mjs} +1 -1
- package/dist/chunks/core-C8BHLAAO.cjs +12 -0
- package/dist/chunks/cose-bilkent-S5V4N54A-RkR02HV4.cjs +1 -0
- package/dist/chunks/cpp-DVBevX-J.cjs +1 -0
- package/dist/chunks/cs-BUD3Muxp.cjs +1 -0
- package/dist/chunks/csharp-CHUT4JOq.cjs +1 -0
- package/dist/chunks/css-QEheyxtB.cjs +1 -0
- package/dist/chunks/cytoscape.esm-CjWrb5SM.cjs +321 -0
- package/dist/chunks/da-CO2FYbLa.cjs +1 -0
- package/dist/chunks/dagre-KV5264BT-B5pZgbkN.cjs +4 -0
- package/dist/chunks/dagre-VHP8Ngkv.cjs +1 -0
- package/dist/chunks/dart-jPH5d8ma.cjs +1 -0
- package/dist/chunks/de-B8nkOjfD.cjs +1 -0
- package/dist/chunks/default-DP8dtTxC.cjs +1 -0
- package/dist/chunks/defaultLocale-BxWls4I1.cjs +1 -0
- package/dist/chunks/diagram-5BDNPKRD-C1llOHQP.cjs +10 -0
- package/dist/chunks/diagram-G4DWMVQ6-CLdEGHkn.cjs +24 -0
- package/dist/chunks/diagram-MMDJMWI5-CnbiCUM3.cjs +43 -0
- package/dist/chunks/diagram-TYMM5635-BtMB4AKf.cjs +24 -0
- package/dist/chunks/dist-CxdzFxpy.cjs +1 -0
- package/dist/chunks/dockerfile-B2jMQOes.cjs +1 -0
- package/dist/chunks/el-D2ILhp1-.cjs +1 -0
- package/dist/chunks/engine-javascript-HHRWd9yA.cjs +141 -0
- package/dist/chunks/erDiagram-SMLLAGMA-luvZB3lF.cjs +85 -0
- package/dist/chunks/es-DXxnOS9P.cjs +1 -0
- package/dist/chunks/et-mT4xnDc7.cjs +1 -0
- package/dist/chunks/fa-D9CUFSHX.cjs +1 -0
- package/dist/chunks/fi-DpCqdl_1.cjs +1 -0
- package/dist/chunks/fil-BjeZREJI.cjs +1 -0
- package/dist/chunks/flowDiagram-DWJPFMVM-BpYbAeYP.cjs +162 -0
- package/dist/chunks/fr-DYmwW1y1.cjs +1 -0
- package/dist/chunks/ganttDiagram-T4ZO3ILL-BaWZufgI.cjs +292 -0
- package/dist/chunks/gitGraph-7Q5UKJZL-Ds_Z9h4o.cjs +1 -0
- package/dist/chunks/gitGraphDiagram-UUTBAWPF-DjMU1Vyg.cjs +106 -0
- package/dist/chunks/go-BX-cNLGO.cjs +1 -0
- package/dist/chunks/graphlib-CYv_-0LK.cjs +1 -0
- package/dist/chunks/graphql-BnxAS09v.cjs +1 -0
- package/dist/chunks/gu-4g6NA9h8.cjs +1 -0
- package/dist/chunks/he-2H5DcbO0.cjs +1 -0
- package/dist/chunks/hi-Dvb4O5oj.cjs +1 -0
- package/dist/chunks/hr-B4Y5vULZ.cjs +1 -0
- package/dist/chunks/html-CAN0GHkJ.cjs +1 -0
- package/dist/chunks/hu-D3Pi7CJx.cjs +1 -0
- package/dist/chunks/hy-DZ74SDlC.cjs +1 -0
- package/dist/chunks/i18next-CkovSPO7.cjs +1 -0
- package/dist/chunks/i18next-loader-cGwOOjK3.cjs +1 -0
- package/dist/chunks/id-WfjZeYKN.cjs +1 -0
- package/dist/chunks/info-OMHHGYJF-u0RRQ9Uo.cjs +1 -0
- package/dist/chunks/infoDiagram-42DDH7IO-DOYkYMWg.cjs +2 -0
- package/dist/chunks/init-BvlcnoG2.cjs +1 -0
- package/dist/chunks/isArrayLikeObject-CnaR8YJm.cjs +1 -0
- package/dist/chunks/isEmpty-BHdznGlG.cjs +1 -0
- package/dist/chunks/ishikawaDiagram-UXIWVN3A-CbqoivFu.cjs +70 -0
- package/dist/chunks/it-hqsqt6f7.cjs +1 -0
- package/dist/chunks/ja-BwLgKsdH.cjs +1 -0
- package/dist/chunks/java-O-rzZ2Bn.cjs +1 -0
- package/dist/chunks/javascript-z9G2vOAZ.cjs +1 -0
- package/dist/chunks/journeyDiagram-VCZTEJTY-B5Peb7wS.cjs +139 -0
- package/dist/chunks/json-C_epQRuA.cjs +1 -0
- package/dist/chunks/ka-xoKako16.cjs +1 -0
- package/dist/chunks/kanban-definition-6JOO6SKY-CwmSo6Ve.cjs +89 -0
- package/dist/chunks/katex-_C7fvrbX.cjs +265 -0
- package/dist/chunks/km-D7Fl8wAA.cjs +1 -0
- package/dist/chunks/kn-Ckju1oeq.cjs +1 -0
- package/dist/chunks/ko-Dt1tQEjC.cjs +1 -0
- package/dist/chunks/kotlin-Dj7KFgV1.cjs +1 -0
- package/dist/chunks/ku-_i2C5XD5.cjs +1 -0
- package/dist/chunks/latex-u7qVP95p.cjs +1 -0
- package/dist/chunks/lightweight-i18n-CGBjC2TJ.cjs +1 -0
- package/dist/chunks/line-B7XG48Uf.cjs +1 -0
- package/dist/chunks/linear-D5j5Vgij.cjs +1 -0
- package/dist/chunks/lo-DfEpgG9m.cjs +1 -0
- package/dist/chunks/lt-BwLILIED.cjs +1 -0
- package/dist/chunks/lua-6ceNckPi.cjs +1 -0
- package/dist/chunks/lv-DdrYab3x.cjs +1 -0
- package/dist/chunks/markdown-Vce1p-mO.cjs +1 -0
- package/dist/chunks/mdast-util-math-B9OHoBuN.cjs +5 -0
- package/dist/chunks/mermaid-Cu5vPKfS.cjs +1 -0
- package/dist/chunks/mermaid-parser.core-BrZQFEht.cjs +3 -0
- package/dist/chunks/mermaid.core-GiTRPJLF.cjs +10 -0
- package/dist/chunks/messages--CbdZY2w.cjs +1 -0
- package/dist/chunks/messages-1hpCmcb5.cjs +1 -0
- package/dist/chunks/messages-4_3WFJMy2.cjs +1 -0
- package/dist/chunks/messages-ADxG1iWK2.cjs +1 -0
- package/dist/chunks/messages-B3MONaxw2.cjs +1 -0
- package/dist/chunks/messages-B3tNgyxG2.cjs +1 -0
- package/dist/chunks/messages-B91FdwB0.cjs +1 -0
- package/dist/chunks/messages-B9igXgiw.cjs +1 -0
- package/dist/chunks/messages-BB1xM_oB.cjs +1 -0
- package/dist/chunks/messages-BGZLiYrQ.cjs +1 -0
- package/dist/chunks/messages-BK6gK3wu.cjs +1 -0
- package/dist/chunks/messages-BKmAFG9Z.cjs +1 -0
- package/dist/chunks/messages-BMVJq-1T.cjs +1 -0
- package/dist/chunks/messages-BMsqJNz0.cjs +1 -0
- package/dist/chunks/messages-BSVhckNg.cjs +1 -0
- package/dist/chunks/messages-BUaHDggs.cjs +1 -0
- package/dist/chunks/messages-BUaJv5qS.cjs +1 -0
- package/dist/chunks/messages-BXcSH14N.cjs +1 -0
- package/dist/chunks/messages-BYOYrUOu.cjs +1 -0
- package/dist/chunks/messages-BYSE1Iq2.cjs +1 -0
- package/dist/chunks/messages-Bb225KE6.cjs +1 -0
- package/dist/chunks/messages-BiDR95AW.cjs +1 -0
- package/dist/chunks/messages-BkAoxm6t.cjs +1 -0
- package/dist/chunks/messages-BpUasRQ3.cjs +1 -0
- package/dist/chunks/messages-BxV8K7y42.cjs +1 -0
- package/dist/chunks/messages-Bxhns4Ui.cjs +1 -0
- package/dist/chunks/messages-C0sxGmLV2.cjs +1 -0
- package/dist/chunks/messages-C5nqE8O42.cjs +1 -0
- package/dist/chunks/messages-C7il6l-S.cjs +1 -0
- package/dist/chunks/messages-CFyGEGXM2.cjs +1 -0
- package/dist/chunks/messages-CN2yjHzW.cjs +1 -0
- package/dist/chunks/messages-CTy_3-mw2.cjs +1 -0
- package/dist/chunks/messages-C_ogasse2.cjs +1 -0
- package/dist/chunks/messages-CbFuceEb.cjs +1 -0
- package/dist/chunks/messages-CbbYb7cc.cjs +1 -0
- package/dist/chunks/messages-CfO5kKI72.cjs +1 -0
- package/dist/chunks/messages-Cgv5DuNV.cjs +1 -0
- package/dist/chunks/messages-CkBrRFY02.cjs +1 -0
- package/dist/chunks/messages-CpppvIiu.cjs +1 -0
- package/dist/chunks/messages-D8-vyZ2V.cjs +1 -0
- package/dist/chunks/messages-DIpVfyX-2.cjs +1 -0
- package/dist/chunks/messages-DJBeEI7G.cjs +1 -0
- package/dist/chunks/messages-DR8nFHdw2.cjs +1 -0
- package/dist/chunks/messages-DT5Ux3el.cjs +1 -0
- package/dist/chunks/messages-Da2SYMf52.cjs +1 -0
- package/dist/chunks/messages-DaaqkvOz2.cjs +1 -0
- package/dist/chunks/messages-DdiqfVCc.cjs +1 -0
- package/dist/chunks/messages-DfZe7SKZ.cjs +1 -0
- package/dist/chunks/messages-DkJ0bcqu.cjs +1 -0
- package/dist/chunks/messages-DkmG49t8.cjs +1 -0
- package/dist/chunks/messages-Do4o9ckW.cjs +1 -0
- package/dist/chunks/messages-DrbTe09r.cjs +1 -0
- package/dist/chunks/messages-DtgIZDlN.cjs +1 -0
- package/dist/chunks/messages-DxCaGN-Q2.cjs +1 -0
- package/dist/chunks/messages-DxpBJ5ZY.cjs +1 -0
- package/dist/chunks/messages-DyWu9_0D.cjs +1 -0
- package/dist/chunks/messages-Hg0BECWK.cjs +1 -0
- package/dist/chunks/messages-JlduXweH2.cjs +1 -0
- package/dist/chunks/messages-Km2PU_o7.cjs +1 -0
- package/dist/chunks/messages-MgJnGL9X2.cjs +1 -0
- package/dist/chunks/messages-PIoKW4js2.cjs +1 -0
- package/dist/chunks/messages-VEm9mp5H.cjs +1 -0
- package/dist/chunks/messages-WgwkG5PL2.cjs +1 -0
- package/dist/chunks/messages-X46KAUoI.cjs +1 -0
- package/dist/chunks/messages-ZZd1ckSO2.cjs +1 -0
- package/dist/chunks/messages-vRqPeNM_.cjs +1 -0
- package/dist/chunks/messages-vhq442qv.cjs +1 -0
- package/dist/chunks/micromark-extension-math-BXJknrtf.cjs +1 -0
- package/dist/chunks/micromark-factory-space-BnsBDplI.cjs +1 -0
- package/dist/chunks/mindmap-definition-QFDTVHPH-6O8s-b35.cjs +96 -0
- package/dist/chunks/mk-CsPHE4cO.cjs +1 -0
- package/dist/chunks/ml-CAsiw8BP.cjs +1 -0
- package/dist/chunks/mn-Db6DwHPv.cjs +1 -0
- package/dist/chunks/mr-BBAuoEIQ.cjs +1 -0
- package/dist/chunks/ms-Cfv7BOEG.cjs +1 -0
- package/dist/chunks/my-DOLHceI8.cjs +1 -0
- package/dist/chunks/native-DbFHGXp1.cjs +1 -0
- package/dist/chunks/ne-B2gHspK_.cjs +1 -0
- package/dist/chunks/nl-C5ezxTkA.cjs +1 -0
- package/dist/chunks/no-D4hjenPs.cjs +1 -0
- package/dist/chunks/notifier-CwnFVNdD.cjs +1 -0
- package/dist/chunks/objectSpread2-iNkE6aJh.cjs +1 -0
- package/dist/chunks/objectWithoutProperties-BbzyiphF.cjs +1 -0
- package/dist/chunks/one-light-D2mpnHEP.cjs +1 -0
- package/dist/chunks/ordinal-DFFZs5-y.cjs +1 -0
- package/dist/chunks/pa-CemLebw7.cjs +1 -0
- package/dist/chunks/packet-4T2RLAQJ-B5XvZd2W.cjs +1 -0
- package/dist/chunks/path-CLcQoP7n.cjs +1 -0
- package/dist/chunks/php-BMavm1CR.cjs +1 -0
- package/dist/chunks/pie-ZZUOXDRM-SOG0aDPa.cjs +1 -0
- package/dist/chunks/pieDiagram-DEJITSTG-BkEwYBz9.cjs +30 -0
- package/dist/chunks/pl-D_sFAkCs.cjs +1 -0
- package/dist/chunks/ps-ygHHO68A.cjs +1 -0
- package/dist/chunks/pt-x_mmaTtD.cjs +1 -0
- package/dist/chunks/python-Dcoit5Q5.cjs +1 -0
- package/dist/chunks/quadrantDiagram-34T5L4WZ-RJme4lkz.cjs +7 -0
- package/dist/chunks/r-BdDCwgEs.cjs +1 -0
- package/dist/chunks/radar-PYXPWWZC-Doch8Lt3.cjs +1 -0
- package/dist/chunks/requirementDiagram-MS252O5E-CMqFsK_K.cjs +84 -0
- package/dist/chunks/ro-CLGSgHzJ.cjs +1 -0
- package/dist/chunks/rough.esm-BaIXPgTh.cjs +1 -0
- package/dist/chunks/ru-LpaLXWmO.cjs +1 -0
- package/dist/chunks/ruby-DHm8_lqY.cjs +1 -0
- package/dist/chunks/rust-Cdm0j4IC.cjs +1 -0
- package/dist/chunks/sankeyDiagram-XADWPNL6-BPaUkDQv.cjs +10 -0
- package/dist/chunks/scala-Tb1u_9W3.cjs +1 -0
- package/dist/chunks/sd-B5PS8K1I.cjs +1 -0
- package/dist/chunks/sequenceDiagram-FGHM5R23-DbM-gyMR.cjs +157 -0
- package/dist/chunks/shellscript-D6KsENaG.cjs +1 -0
- package/dist/chunks/si-BjMoO5xu.cjs +1 -0
- package/dist/chunks/sk-pQPYnDDU.cjs +1 -0
- package/dist/chunks/sl-B_yalM3h.cjs +1 -0
- package/dist/chunks/sq-gzZkHXFJ.cjs +1 -0
- package/dist/chunks/sql-BlpbD7FB.cjs +1 -0
- package/dist/chunks/sr-O4v1KJY1.cjs +1 -0
- package/dist/chunks/src-d9yswOqA.cjs +1 -0
- package/dist/chunks/stateDiagram-FHFEXIEX-CEcLtV9Z.cjs +1 -0
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-aa692V81.cjs +1 -0
- package/dist/chunks/sv-D0tEFwN7.cjs +1 -0
- package/dist/chunks/sw-DE8oPVEt.cjs +1 -0
- package/dist/chunks/swift-DubrdZus.cjs +1 -0
- package/dist/chunks/ta-BCVLtFMU.cjs +1 -0
- package/dist/chunks/te-BISdOeGS.cjs +1 -0
- package/dist/chunks/th-CJXhSA-L.cjs +1 -0
- package/dist/chunks/timeline-definition-GMOUNBTQ-ceXDJGg_.cjs +120 -0
- package/dist/chunks/{tools-CmNY86rS.mjs → tools-DPov06L-.mjs} +1 -1
- package/dist/chunks/tools-NAqHj-Cy.cjs +9 -0
- package/dist/chunks/tr-BjTvmhJt.cjs +1 -0
- package/dist/chunks/treeView-SZITEDCU-BUuSm_Hn.cjs +1 -0
- package/dist/chunks/treemap-W4RFUUIX-BerKlw0i.cjs +1 -0
- package/dist/chunks/tw-CjHZc17C.cjs +1 -0
- package/dist/chunks/types-BQX8SD8Q.cjs +1 -0
- package/dist/chunks/typescript-BKtlqLze.cjs +1 -0
- package/dist/chunks/ug-DsQjxbOa.cjs +1 -0
- package/dist/chunks/uk-BPzbNIjw.cjs +1 -0
- package/dist/chunks/ur-Do8k1hR-.cjs +1 -0
- package/dist/chunks/vennDiagram-DHZGUBPP-BzOeMJe8.cjs +34 -0
- package/dist/chunks/vi-CCTEx9XR.cjs +1 -0
- package/dist/chunks/vitesse-dark-BSL-cCXL.cjs +1 -0
- package/dist/chunks/wardley-RL74JXVD-BzKtPJ3g.cjs +1 -0
- package/dist/chunks/wardleyDiagram-NUSXRM2D-qo6LFohO.cjs +20 -0
- package/dist/chunks/xml-CwiH0x4E.cjs +1 -0
- package/dist/chunks/xychartDiagram-5P7HB3ND-CH1Z2Cbf.cjs +7 -0
- package/dist/chunks/yaml-CkVxfQ4c.cjs +1 -0
- package/dist/chunks/zh-Ive4on8E.cjs +1 -0
- package/dist/full.cjs +1 -0
- package/dist/full.mjs +3 -3
- package/dist/markdown.cjs +3 -0
- package/dist/react.cjs +1 -0
- package/dist/react.mjs +2 -2
- package/dist/tools.cjs +1 -0
- package/dist/tools.mjs +2 -2
- package/package.json +17 -8
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
const e=require(`./chunk-Kud-AIAt.cjs`),t=require(`./objectSpread2-iNkE6aJh.cjs`),n=require(`./tw-CjHZc17C.cjs`);var r={interface:`data-blok-interface`,element:`data-blok-element`,elementContent:`data-blok-element-content`,editor:`data-blok-editor`,redactor:`data-blok-redactor`,id:`data-blok-id`,component:`data-blok-component`,tool:`data-blok-tool`,depth:`data-blok-depth`,hidden:`data-blok-hidden`,disabled:`data-blok-disabled`,focused:`data-blok-focused`,selected:`data-blok-selected`,stretched:`data-blok-stretched`,empty:`data-blok-empty`,contentAlign:`data-blok-content-align`,rtl:`data-blok-rtl`,dragging:`data-blok-dragging`,draggingMulti:`data-blok-dragging-multi`,duplicating:`data-blok-duplicating`,dragHandle:`data-blok-drag-handle`,toolbar:`data-blok-toolbar`,settingsToggler:`data-blok-settings-toggler`,toolboxOpened:`data-blok-toolbox-opened`,blockSettingsOpened:`data-blok-block-settings-opened`,opened:`data-blok-opened`,popover:`data-blok-popover`,popoverContainer:`data-blok-popover-container`,popoverItems:`data-blok-popover-items`,popoverOverlay:`data-blok-popover-overlay`,popoverCustomContent:`data-blok-popover-custom-content`,popoverCustomClass:`data-blok-popover-custom-class`,popoverInline:`data-blok-popover-inline`,popoverOpened:`data-blok-popover-opened`,popoverOpenTop:`data-blok-popover-open-top`,popoverOpenLeft:`data-blok-popover-open-left`,nested:`data-blok-nested`,nestedLevel:`data-blok-nested-level`,promotedGroupLabel:`data-blok-promoted-group-label`,popoverHeader:`data-blok-popover-header`,popoverHeaderText:`data-blok-popover-header-text`,popoverHeaderBackButton:`data-blok-popover-header-back-button`,popoverItem:`data-blok-popover-item`,popoverItemIcon:`data-blok-popover-item-icon`,popoverItemIconChevronRight:`data-blok-popover-item-icon-chevron-right`,popoverItemTitle:`data-blok-popover-item-title`,popoverItemSecondaryTitle:`data-blok-popover-item-secondary-title`,popoverItemActive:`data-blok-popover-item-active`,popoverItemConfirmation:`data-blok-popover-item-confirmation`,popoverItemNoHover:`data-blok-popover-item-no-hover`,popoverItemNoFocus:`data-blok-popover-item-no-focus`,popoverItemDestructive:`data-blok-popover-item-destructive`,popoverItemSeparator:`data-blok-popover-item-separator`,popoverItemSeparatorLine:`data-blok-popover-item-separator-line`,popoverItemHtml:`data-blok-popover-item-html`,hasChildren:`data-blok-has-children`,itemName:`data-blok-item-name`,nothingFoundDisplayed:`data-blok-nothing-found-displayed`,overlay:`data-blok-overlay`,overlayContainer:`data-blok-overlay-container`,overlayRectangle:`data-blok-overlay-rectangle`,overlayHidden:`data-blok-overlay-hidden`,fakeCursor:`data-blok-fake-cursor`,fakeBackground:`data-blok-fake-background`,scrollZone:`data-blok-scroll-zone`,scrollLocked:`data-blok-scroll-locked`,scrollLockedHard:`data-blok-scroll-locked-hard`,shadowCaret:`data-blok-shadow-caret`,placeholder:`data-blok-placeholder`,placeholderActive:`data-blok-placeholder-active`,nestedBlocks:`data-blok-nested-blocks`,mutationFree:`data-blok-mutation-free`,navigationFocused:`data-blok-navigation-focused`,flipperNavigationTarget:`data-blok-flipper-navigation-target`,inlineToolbar:`data-blok-inline-toolbar`,linkToolActive:`data-blok-link-tool-active`,linkToolUnlink:`data-blok-link-tool-unlink`,linkToolInputOpened:`data-blok-link-tool-input-opened`,boldCollapsedLength:`data-blok-bold-collapsed-length`,boldCollapsedActive:`data-blok-bold-collapsed-active`,boldPrevLength:`data-blok-bold-prev-length`,boldLeadingWs:`data-blok-bold-leading-ws`,boldMarker:`data-blok-bold-marker`,shown:`data-blok-shown`,placement:`data-blok-placement`,bounceIn:`data-blok-bounce-in`,announcer:`data-blok-announcer`,stub:`data-blok-stub`,stubInfo:`data-blok-stub-info`,stubTitle:`data-blok-stub-title`,stubSubtitle:`data-blok-stub-subtitle`,slashSearch:`data-blok-slash-search`,testid:`data-blok-testid`,forceHover:`data-blok-force-hover`},i=(e,t)=>t===void 0?`[${e}]`:`[${e}="${t}"]`,a={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46,NUMBER_KEY_MIN:47,NUMBER_KEY_MAX:58,LETTER_KEY_MIN:64,LETTER_KEY_MAX:91,META:91,NUMPAD_KEY_MIN:95,NUMPAD_KEY_MAX:112,PUNCTUATION_KEY_MIN:185,PUNCTUATION_KEY_MAX:193,BRACKET_KEY_MIN:218,BRACKET_KEY_MAX:223,PROCESSING_KEY:229,SLASH:191},o={LEFT:0,WHEEL:1,RIGHT:2,BACKWARD:3,FORWARD:4},s=()=>`0.11.1`,c=function(e){return e.VERBOSE=`VERBOSE`,e.INFO=`INFO`,e.WARN=`WARN`,e.ERROR=`ERROR`,e}({}),l=(e,t,n=`log`,r,i=`color: inherit`)=>{let a=typeof console>`u`?void 0:console;if(!a||typeof a[n]!=`function`)return;let o=[`info`,`log`,`warn`,`error`].includes(n),u=[];switch(l.logLevel){case c.VERBOSE:break;case c.ERROR:if(n!==`error`)return;break;case c.WARN:if(![`error`,`warn`].includes(n))return;break;case c.INFO:if(!o||e)return;break}r&&u.push(r);let d=`Blok ${s()}`,f=e?o?(u.unshift(`line-height: 1em;
|
|
2
|
+
color: #006FEA;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
font-size: 11px;
|
|
5
|
+
line-height: 1em;
|
|
6
|
+
background-color: #fff;
|
|
7
|
+
padding: 4px 9px;
|
|
8
|
+
border-radius: 30px;
|
|
9
|
+
border: 1px solid rgba(56, 138, 229, 0.16);
|
|
10
|
+
margin: 4px 5px 4px 0;`,i),`%c${d}%c ${t}`):`( ${d} )${t}`:t,p=o?r===void 0?[f,...u]:[`${f} %o`,...u]:[f];try{a[n](...p)}catch(e){}};l.logLevel=c.VERBOSE;var u=e=>{l.logLevel=e},d=(e,t=`log`,n,r)=>{l(!1,e,t,n,r)},f=(e,t=`log`,n,r)=>{l(!0,e,t,n,r)},p=e=>typeof e==`function`,m=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},h=e=>typeof e==`string`,g=e=>typeof e==`boolean`,_=e=>typeof e==`number`,v=function(e){return e===void 0},y=e=>e==null?!0:typeof e==`string`||Array.isArray(e)?e.length===0:e instanceof Map||e instanceof Set?e.size===0:typeof e==`object`?Object.keys(e).length===0:!1,ee=(e,t)=>function(...n){setTimeout(()=>e.apply(this,n),t)},te=(e,t,n)=>{let r={timeoutId:null};return function(...i){let a=()=>{r.timeoutId=null,n!==!0&&e.apply(this,i)},o=n===!0&&r.timeoutId===null;r.timeoutId!==null&&clearTimeout(r.timeoutId),r.timeoutId=setTimeout(a,t),o&&e.apply(this,i)}},ne=(e,t,n)=>{let r=(n==null?void 0:n.leading)!==!1,i=(n==null?void 0:n.trailing)!==!1,a={lastCallTime:void 0,lastInvokeTime:0,timerId:void 0,lastArgs:void 0,lastThis:void 0},o=t=>{a.lastInvokeTime=t;let n=a.lastArgs,r=a.lastThis;return a.lastArgs=void 0,a.lastThis=void 0,e.apply(r,n==null?[]:n)},s=e=>{var n;let r=e-((n=a.lastCallTime)==null?0:n),o=e-a.lastInvokeTime,s=t-r;return i?Math.min(s,t-o):s},c=e=>{var n;let r=e-((n=a.lastCallTime)==null?0:n),i=e-a.lastInvokeTime;return a.lastCallTime===void 0||r>=t||r<0||i>=t},l=()=>{let e=Date.now();if(!c(e)){a.timerId=setTimeout(l,s(e));return}a.timerId=void 0,i&&a.lastArgs!==void 0&&o(e),a.lastArgs=void 0,a.lastThis=void 0};return function(...e){let n=Date.now(),i=c(n);if(a.lastArgs=e,a.lastThis=this,a.lastCallTime=n,i&&a.timerId===void 0)return a.lastInvokeTime=n,a.timerId=setTimeout(l,t),r?o(n):void 0}},b=(()=>{try{return Function(`return this`)()}catch(e){return}})();b&&b.window===void 0&&(b.window=b);var x=()=>{if(b!=null&&b.window)return b.window},re=()=>{if(b!=null&&b.navigator)return b.navigator;let e=x();return e==null?void 0:e.navigator},ie=e=>/^[-\w]+\/([-+\w]+|\*)$/.test(e),ae=()=>{var e,t;let n={win:!1,mac:!1,x11:!1,linux:!1},r=re(),i=(e=r==null||(t=r.userAgent)==null?void 0:t.toLowerCase())==null?``:e,a=i?Object.keys(n).find(e=>i.indexOf(e)!==-1):void 0;return a===void 0||(n[a]=!0),n},oe=()=>{let e=x();return!e||typeof e.matchMedia!=`function`?!1:e.matchMedia(`(max-width: 650px)`).matches},se=(()=>{var e;let t=re();if(!t)return!1;let n=t.userAgent||``,r=t.userAgentData,i=r==null?void 0:r.platform;if(/iP(ad|hone|od)/.test(n)||i!==void 0&&i!==``&&/iP(ad|hone|od)/.test(i))return!0;let a=((e=t.maxTouchPoints)==null?0:e)>1,o=()=>t.platform,s=i!==void 0&&i!==``?i:void 0;return(a?s==null?o():s:void 0)===`MacIntel`})(),ce=e=>{try{return new URL(e).href}catch(e){}let t=x();return e.substring(0,2)===`//`?t?`${t.location.protocol}${e}`:e:t?`${t.location.origin}${e}`:e},le=e=>{let t=x();t&&t.open(e,`_blank`)},ue=e=>e&&e.slice(0,1).toUpperCase()+e.slice(1),de=e=>{let t=ae(),n=e.replace(/shift/gi,`⇧`).replace(/backspace/gi,`⌫`).replace(/enter/gi,`⏎`).replace(/up/gi,`↑`).replace(/left/gi,`→`).replace(/down/gi,`↓`).replace(/right/gi,`←`).replace(/escape/gi,`⎋`).replace(/insert/gi,`Ins`).replace(/delete/gi,`␡`).replace(/\+/gi,` + `);return t.mac?n.replace(/ctrl|cmd/gi,`⌘`).replace(/alt/gi,`⌥`):n.replace(/cmd/gi,`Ctrl`).replace(/windows/gi,`WIN`)},fe=(e,n)=>{let r=t.t({},e);return Object.keys(n).forEach(e=>{let t=r[e],i=n[e];if(i!==void 0){if(m(i)&&m(t)&&!Array.isArray(i)){r[e]=fe(t,i);return}r[e]=i}}),r},S=(e,...t)=>{if(!m(e)||t.length===0)return e;let n=t.reduce((e,t)=>m(t)?fe(e,t):e,e);return Object.assign(e,n),e},pe=(e,t)=>e.length===t.length?e.every((e,n)=>C(e,t[n])):!1,C=(e,t)=>{if(e===t)return!0;if(e===null||t===null||typeof e!=`object`||typeof t!=`object`||Array.isArray(e)!==Array.isArray(t))return!1;if(Array.isArray(e)&&Array.isArray(t))return pe(e,t);let n=Object.keys(e),r=Object.keys(t);return n.length===r.length?n.every(n=>Object.prototype.hasOwnProperty.call(t,n)&&C(e[n],t[n])):!1},me=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,he=(e=21)=>{let t=``,n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=me[n[e]&63];return t},ge=1e8,_e=16,ve=()=>he(10),ye=(e=``)=>`${e}${Math.floor(Math.random()*ge).toString(_e)}`,w=class e{static isSingleTag(e){return!!e.tagName&&[`AREA`,`BASE`,`BR`,`COL`,`COMMAND`,`EMBED`,`HR`,`IMG`,`INPUT`,`KEYGEN`,`LINK`,`META`,`PARAM`,`SOURCE`,`TRACK`,`WBR`].includes(e.tagName)}static isLineBreakTag(e){return[`BR`,`WBR`].includes(e.tagName)}static isValidClassName(e){if(e===``||/\s/.test(e))return!1;try{return document.createElement(`div`).classList.add(e),!0}catch(e){return!1}}static safelyAddClasses(t,n){let r=[],i=[];for(let t of n)e.isValidClassName(t)?r.push(t):i.push(t);if(r.length>0&&t.classList.add(...r),i.length>0){let e=t.className,n=e?`${e} ${i.join(` `)}`:i.join(` `);t.setAttribute(`class`,n)}}static make(t,n=null,r={}){let i=document.createElement(t);if(Array.isArray(n)){let t=n.filter(e=>e!==void 0&&e!==``).flatMap(e=>e.split(` `)).filter(e=>e!==``);e.safelyAddClasses(i,t)}if(typeof n==`string`&&n!==``){let t=n.split(` `).filter(e=>e!==``);e.safelyAddClasses(i,t)}for(let e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;let t=r[e];if(t!=null){if(e in i){i[e]=t;continue}i.setAttribute(e,String(t))}}return i}static text(e){return document.createTextNode(e)}static append(e,t){Array.isArray(t)?t.forEach(t=>e.appendChild(t)):e.appendChild(t)}static prepend(e,t){Array.isArray(t)?[...t].reverse().forEach(t=>e.prepend(t)):e.prepend(t)}static find(e=document,t){return e.querySelector(t)}static get(e){return document.getElementById(e)}static findAll(e=document,t){return e.querySelectorAll(t)}static get allInputsSelector(){return`[contenteditable=true], textarea, input:not([type]), `+[`text`,`password`,`email`,`number`,`search`,`tel`,`url`].map(e=>`input[type="${e}"]`).join(`, `)}static findAllInputs(t){let n=Array.from(t.querySelectorAll(e.allInputsSelector)),r=[];for(let e of n)e instanceof HTMLElement&&r.push(e);return r.reduce((t,n)=>e.isNativeInput(n)||e.containsOnlyInlineElements(n)?[...t,n]:[...t,...e.getDeepestBlockElements(n)],[])}static getDeepestNode(t,n=!1){var r;let i=n?`lastChild`:`firstChild`,a=n?`previousSibling`:`nextSibling`;if(t===null||t.nodeType!==Node.ELEMENT_NODE)return t;let o=t[i];if(o===null)return t;let s=o;if(!(e.isSingleTag(s)&&!e.isNativeInput(s)&&!e.isLineBreakTag(s)))return this.getDeepestNode(s,n);let c=s[a];if(c)return this.getDeepestNode(c,n);let l=(r=s.parentNode)==null?void 0:r[a];return l?this.getDeepestNode(l,n):s.parentNode}static isElement(e){return _(e)?!1:typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){return _(e)?!1:typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isContentEditable(e){return e.contentEditable===`true`}static isNativeInput(e){return typeof e==`object`&&e&&`tagName`in e&&typeof e.tagName==`string`?[`INPUT`,`TEXTAREA`].includes(e.tagName):!1}static canSetCaret(t){return e.isNativeInput(t)?!new Set([`file`,`checkbox`,`radio`,`hidden`,`submit`,`button`,`image`,`reset`]).has(t.type):e.isContentEditable(t)}static isNodeEmpty(e,t){var n,r;if(this.isSingleTag(e)&&!this.isLineBreakTag(e))return!1;let i=this.isElement(e)&&this.isNativeInput(e)?e.value:(n=e.textContent)==null?void 0:n.replace(``,``),a=t?i==null?void 0:i.replace(new RegExp(t,`g`),``):i;return((r=a==null?void 0:a.length)==null?0:r)===0}static isLeaf(e){return e.childNodes.length===0}static isEmpty(e,t){let n=[e];for(;n.length>0;){let e=n.shift();if(e){if(this.isLeaf(e)&&!this.isNodeEmpty(e,t))return!1;n.push(...Array.from(e.childNodes))}}return!0}static isHTMLString(t){let n=e.make(`div`);return n.innerHTML=t,n.childElementCount>0}static getContentLength(t){var n,r;return e.isNativeInput(t)?t.value.length:t.nodeType===Node.TEXT_NODE?t.length:(n=(r=t.textContent)==null?void 0:r.length)==null?0:n}static get blockElements(){return`address.article.aside.blockquote.canvas.div.dl.dt.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.li.main.nav.noscript.ol.output.p.pre.ruby.section.table.tbody.thead.tr.tfoot.ul.video`.split(`.`)}static containsOnlyInlineElements(t){let n=h(t)?(()=>{let e=document.createElement(`div`);return e.innerHTML=t,e})():t,r=t=>!e.blockElements.includes(t.tagName.toLowerCase())&&Array.from(t.children).every(r);return Array.from(n.children).every(r)}static getDeepestBlockElements(t){return e.containsOnlyInlineElements(t)?[t]:Array.from(t.children).reduce((t,n)=>[...t,...e.getDeepestBlockElements(n)],[])}static getHolder(e){if(!h(e))return e;let t=document.getElementById(e);if(t!==null)return t;throw Error(`Element with id "${e}" not found`)}static isAnchor(e){return e.tagName.toLowerCase()===`a`}static offset(e){let t=e.getBoundingClientRect(),n=window.scrollX||document.documentElement.scrollLeft,r=window.scrollY||document.documentElement.scrollTop,i=t.top+r,a=t.left+n;return{top:i,left:a,bottom:i+t.height,right:a+t.width}}static getNodeByOffset(e,t){let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r=(e,i,a,o)=>{var s;if(!e&&a){let e=i-o,n=Math.max(t-e,0);return{node:a,offset:Math.min(n,o)}}if(!e)return{node:null,offset:0};let c=((s=e.textContent)==null?``:s).length;return i+c>=t?{node:e,offset:Math.min(t-i,c)}:r(n.nextNode(),i+c,e,c)},{node:i,offset:a}=r(n.nextNode(),0,null,0);if(!i)return{node:null,offset:0};let o=i.textContent;return!o||o.length===0?{node:null,offset:0}:{node:i,offset:a}}},be=e=>!/[^\t\n\r \u200B]/.test(e),xe=e=>{e.setAttribute(`data-blok-empty`,w.isEmpty(e)?`true`:`false`)},Se=[`header`,`table`],T=new Map,Ce=e=>{let t=[...new Set(e)];for(let e of t){var n;let t=(n=T.get(e))==null?0:n;T.set(e,t+1)}let r={cleanedUp:!1};return()=>{if(!r.cleanedUp){r.cleanedUp=!0;for(let e of t){let t=T.get(e);t!==void 0&&(t<=1?T.delete(e):T.set(e,t-1))}}}},we=()=>[...Se,...T.keys()],Te=e=>e?(e instanceof HTMLElement?e:e.holder).closest(`[data-blok-table-cell-blocks]`)!==null:!1,Ee=e=>Se.includes(e)||T.has(e),De=class{constructor(){this.allListeners=[]}on(e,t,n,r=!1){if(this.findOne(e,t,n,r))return;let i=ye(`l`),a={id:i,element:e,eventType:t,handler:n,options:r};return this.allListeners.push(a),e.addEventListener(t,n,r),i}off(e,t,n,r){let i=this.findAll(e,t,n,r);i.forEach((e,t)=>{let n=this.allListeners.indexOf(i[t]);n>-1&&(this.allListeners.splice(n,1),e.element.removeEventListener(e.eventType,e.handler,e.options))})}offById(e){let t=this.findById(e);if(!t)return;t.element.removeEventListener(t.eventType,t.handler,t.options);let n=this.allListeners.indexOf(t);n>-1&&this.allListeners.splice(n,1)}findOne(e,t,n,r){var i;return(i=this.findAll(e,t,n,r)[0])==null?null:i}findAll(e,t,n,r){return e?this.findByEventTarget(e).filter(e=>{let i=t===void 0||e.eventType===t,a=n===void 0||e.handler===n,o=this.areOptionsEqual(e.options,r);return i&&a&&o}):[]}removeAll(){this.allListeners.forEach(e=>{e.element.removeEventListener(e.eventType,e.handler,e.options)}),this.allListeners=[]}destroy(){this.removeAll()}findByEventTarget(e){return this.allListeners.filter(t=>t.element===e)}findByType(e){return this.allListeners.filter(t=>t.eventType===e)}findByHandler(e){return this.allListeners.filter(t=>t.handler===e)}findById(e){return this.allListeners.find(t=>t.id===e)}normalizeListenerOptions(e){var t,n,r;return typeof e==`boolean`?{capture:e,once:!1,passive:!1}:e?{capture:(t=e.capture)==null?!1:t,once:(n=e.once)==null?!1:n,passive:(r=e.passive)==null?!1:r,signal:e.signal}:{capture:!1,once:!1,passive:!1}}areOptionsEqual(e,t){if(t===void 0)return!0;let n=this.normalizeListenerOptions(e),r=this.normalizeListenerOptions(t);return n.capture===r.capture&&n.once===r.once&&n.passive===r.passive&&n.signal===r.signal}},E=(e,t)=>{if(!e.conversionConfig)return!1;let n=e.conversionConfig[t];return p(n)||h(n)},D=(e,t)=>{let n=t.includes(`.`)?t:`toolNames.${t}`;return e.has(n)?e.t(n):void 0},Oe=(e,t,n=``)=>{let r=t.titleKey?D(e,t.titleKey):void 0;if(r!==void 0)return r;let i=t.title?D(e,t.title):void 0;if(i!==void 0)return i;if(t.title)return t.title;let a=n?D(e,n):void 0;return a==null?n:a},ke=(e,t,n)=>{let r=t?D(e,t):void 0;if(r!==void 0)return r;let i=D(e,n);return i==null?n:i},Ae=(e,t)=>E(e.tool,t),je=(e,t)=>Object.entries(e).some((([e,n])=>t[e]&&C(t[e],n))),Me=async(e,n)=>{let r=(await e.save()).data,i=n.find(t=>t.name===e.name);return i!==void 0&&!E(i,`export`)?[]:n.reduce((n,i)=>{if(!E(i,`import`)||i.toolbox===void 0)return n;let a=new Set(i.toolbox.map(e=>e.data).filter(e=>e!==void 0).flatMap(e=>Object.keys(e))),o=i.toolbox.filter(t=>{if(y(t)||t.icon===void 0)return!1;let n=t.data!==void 0;return!(n&&t.data!==void 0&&[...a].every(e=>{let n=t.data===void 0?void 0:t.data[e],i=r[e];return C(n,i)})||!n&&i.name===e.name)});return o.length>0&&n.push(t.t(t.t({},i),{},{toolbox:o})),n},[])},Ne=(e,t)=>e.mergeable?e.name===t.name?!0:Ae(t,`export`)&&Ae(e,`import`):!1,Pe=async(e,n)=>{if(e.length===0)return[];if(e.length===1)return Me(e[0],n);for(let t of e){let e=n.find(e=>e.name===t.name);if(e!==void 0&&!E(e,`export`))return[]}let r=new Set(e.map(e=>e.name));return n.reduce((e,n)=>{if(!E(n,`import`)||n.toolbox===void 0)return e;let i=n.toolbox.filter(e=>!(y(e)||e.icon===void 0||e.data===void 0&&r.size===1&&r.has(n.name)));return i.length>0&&e.push(t.t(t.t({},n),{},{toolbox:i})),e},[])},Fe=(e,t)=>{let n=t==null?void 0:t.export;return p(n)?n(e):h(n)?e[n]:(n!==void 0&&d(`Conversion «export» property must be a string or function. String means key of saved data object to export. Function should export processed string to export.`),``)},Ie=(e,t,n)=>{let r=t==null?void 0:t.import;return p(r)?r(e,n):h(r)?{[r]:e}:(r!==void 0&&d(`Conversion «import» property must be a string or function. String means key of tool data to import. Function accepts a imported string and return composed tool data.`),{})},Le=class{constructor(){this.subscribers={}}on(e,t){e in this.subscribers||(this.subscribers[e]=[]),this.subscribers[e].push(t)}once(e,t){e in this.subscribers||(this.subscribers[e]=[]);let n=r=>{let i=t(r),a=this.subscribers[e].indexOf(n);return a!==-1&&this.subscribers[e].splice(a,1),i};this.subscribers[e].push(n)}emit(e,t){y(this.subscribers)||!this.subscribers[e]||this.subscribers[e].reduce((e,t)=>{let n=t(e);return n===void 0?e:n},t)}off(e,t){let n=this.subscribers[e];if(n===void 0){console.warn(`EventDispatcher .off(): there is no subscribers for event "${e.toString()}". Probably, .off() called before .on()`);return}let r=n.indexOf(t);r!==-1&&n.splice(r,1)}destroy(){this.subscribers={}}},Re=`blok`,ze=`inline-toolbar`,Be=`tooltip`,Ve=`[data-blok-interface=inline-toolbar]`,He=typeof process<`u`?process.platform===`darwin`?`Meta`:`Control`:typeof navigator<`u`&&navigator.userAgent.toLowerCase().includes(`mac`)?`Meta`:`Control`,O=class{static getAnchorNode(){let e=window.getSelection();return e?e.anchorNode:null}static getAnchorElement(){let e=window.getSelection();if(!e)return null;let t=e.anchorNode;return t?w.isElement(t)?t:t.parentElement:null}static getAnchorOffset(){let e=window.getSelection();return e?e.anchorOffset:null}static getIsCollapsed(){let e=window.getSelection();return e?e.isCollapsed:null}static isSelectionAtBlok(e){if(!e)return!1;let t=e.anchorNode||e.focusNode,n=t&&t.nodeType===Node.TEXT_NODE?t.parentNode:t,a=n&&n instanceof Element?n.closest(i(r.redactor)):null;return a?a.nodeType===Node.ELEMENT_NODE:!1}static getIsAtBlok(){return this.isSelectionAtBlok(this.get())}static isRangeAtBlok(e){if(!e)return;let t=e.startContainer&&e.startContainer.nodeType===Node.TEXT_NODE?e.startContainer.parentNode:e.startContainer,n=t&&t instanceof Element?t.closest(i(r.redactor)):null;return n?n.nodeType===Node.ELEMENT_NODE:!1}static getIsSelectionExists(){let e=this.get();return!!(e!=null&&e.anchorNode)}static get(){return window.getSelection()}static getRange(){return this.getRangeFromSelection(this.get())}static getRangeFromSelection(e){return e&&e.rangeCount?e.getRangeAt(0):null}static getRect(){let e={x:0,y:0,width:0,height:0},t=window.getSelection();if(!t)return d(`Method window.getSelection returned null`,`warn`),e;if(t.rangeCount===null||Number.isNaN(t.rangeCount))return d(`Method SelectionUtils.rangeCount is not supported`,`warn`),e;if(t.rangeCount===0)return e;let n=t.getRangeAt(0).cloneRange(),r=n.getBoundingClientRect();if(r.x===0&&r.y===0){let e=document.createElement(`span`);e.appendChild(document.createTextNode(``)),n.insertNode(e);let t=e.getBoundingClientRect(),r=e.parentNode;return r==null||r.removeChild(e),r==null||r.normalize(),t}return r}static getText(){var e;let t=window.getSelection();return(e=t==null?void 0:t.toString())==null?``:e}},Ue=class{static setCursor(e,t=0){var n,r;let i=document.createRange(),a=window.getSelection(),o=w.isNativeInput(e);if(o&&!w.canSetCaret(e))return e.getBoundingClientRect();if(o)return e.focus(),e.selectionStart=t,e.selectionEnd=t,e.getBoundingClientRect();if(i.setStart(e,t),i.setEnd(e,t),!a)return e.getBoundingClientRect();a.removeAllRanges(),a.addRange(i);let s=w.isContentEditable(e)?e:(n=(r=e.parentElement)==null?void 0:r.closest(`[contenteditable="true"]`))==null?null:n;return s!==null&&document.activeElement!==s&&s.focus(),i.getBoundingClientRect()}static isRangeInsideContainer(e){let t=O.getRange();return t===null?!1:e.contains(t.startContainer)}static collapseToEnd(){let e=window.getSelection();if(!e||!e.focusNode)return;let t=document.createRange();t.selectNodeContents(e.focusNode),t.collapse(!1),e.removeAllRanges(),e.addRange(t)}},We,k=class{static applyBoxShadowToWrapper(e){let t=e.parentElement;if(!t)return;let n=window.getComputedStyle(t),r=window.getComputedStyle(e),i=parseFloat(n.lineHeight),a=parseFloat(r.fontSize),o=Number.isNaN(i)?a*1.2:i,s=e.getBoundingClientRect(),c=Math.max(0,(o-s.height)/2);c>0&&(e.style.boxShadow=`0 ${c}px 0 ${this.BG_COLOR}, 0 -${c}px 0 ${this.BG_COLOR}`)}static applyLineHeightExtensions(e){let t=this.collectAllLineRects(e);if(t.length===0)return;t.sort((e,t)=>e.top-t.top);let n=this.groupRectsByLine(t);e.forEach(e=>{this.applyMultiLineBoxShadow(e,n)})}static collectAllLineRects(e){let t=[];return e.forEach(e=>{let n=e.getClientRects();Array.from(n).forEach(n=>{t.push({top:n.top,bottom:n.bottom,span:e})})}),t}static groupRectsByLine(e){let t=[];return e.forEach(e=>{let n=t.find(t=>Math.abs(t.top-e.top)<2);n?(n.top=Math.min(n.top,e.top),n.bottom=Math.max(n.bottom,e.bottom)):t.push({top:e.top,bottom:e.bottom})}),t.sort((e,t)=>e.top-t.top),t}static applyMultiLineBoxShadow(e,t){let n=e.getClientRects();if(n.length===0)return;let r=e.parentElement;if(!r)return;let i=window.getComputedStyle(r),a=parseFloat(i.lineHeight),o=parseFloat(window.getComputedStyle(e).fontSize),s=Number.isNaN(a)?o*1.2:a,c=n[0],l=n[n.length-1],u=this.findLineIndex(c.top,t),d=this.findLineIndex(l.top,t),f=n.length>1&&u!==d,p=u===0,m=d===t.length-1,h=Math.max(0,(s-c.height)/2),g=f?this.calculateLineTopExtension(h,p,t,u):h,_=f?this.calculateLineBottomExtension(h,m,t,d):h,v=this.buildBoxShadow(g,_);e.style.boxShadow=v}static findLineIndex(e,t){let n=t.findIndex(t=>Math.abs(t.top-e)<5);return n>=0?n:0}static calculateLineTopExtension(e,t,n,r){return e}static calculateLineBottomExtension(e,t,n,r){if(t)return e;let i=n[r],a=n[r+1].top-i.bottom,o=e;return e+Math.max(0,a-o)}static buildBoxShadow(e,t){let n=[];return n.push(`inset 0 0 0 9999px ${this.BG_COLOR}`),t>0&&n.push(`0 ${t}px 0 ${this.BG_COLOR}`),e>0&&n.push(`0 -${e}px 0 ${this.BG_COLOR}`),n.join(`, `)}};We=k,We.BG_COLOR=`rgba(0, 0, 0, 0.08)`;var Ge=class{static collectTextNodes(e){let t=[],{commonAncestorContainer:n}=e;if(n.nodeType===Node.TEXT_NODE)return t.push(n),t;let r=document.createTreeWalker(n,NodeFilter.SHOW_TEXT,{acceptNode:t=>e.intersectsNode(t)&&t.textContent&&t.textContent.length>0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT});for(;r.nextNode();)t.push(r.currentNode);return t}static findLineBreakPositions(e,t){let n=e.textContent||``,r=document.createRange();return Array.from({length:n.length},(e,t)=>t).reduce((n,i)=>{if(n.positions.length>=t-1)return n;r.setStart(e,i),r.setEnd(e,i+1);let a=r.getBoundingClientRect();return n.lastTop!==-1&&Math.abs(a.top-n.lastTop)>5&&n.positions.push(i),{positions:n.positions,lastTop:a.top}},{positions:[],lastTop:-1}).positions}static splitTextAtPositions(e,t){let n=[0,...t,e.length];return n.slice(0,-1).map((t,r)=>e.substring(t,n[r+1])).filter(e=>e.length>0)}},A=class{static wrapRangeWithHighlight(e){if(e.collapsed)return null;let t=w.make(`span`);t.setAttribute(`data-blok-testid`,`fake-background`),t.setAttribute(`data-blok-fake-background`,`true`),t.setAttribute(`data-blok-mutation-free`,`true`),t.style.color=`inherit`,t.style.boxDecorationBreak=`clone`,t.style[`-webkit-box-decoration-break`]=`clone`,t.style.whiteSpace=`pre-wrap`;let n=e.extractContents();return n.childNodes.length===0?null:(t.appendChild(n),e.insertNode(t),t)}static postProcessHighlightWrappers(e){let t=[];return e.forEach(e=>{let n=this.splitMultiLineWrapper(e);t.push(...n)}),t}static splitMultiLineWrapper(e){let t=e.getClientRects();if(t.length<=1)return k.applyBoxShadowToWrapper(e),[e];let n=e.textContent||``,r=e.parentNode;if(!r||!n)return k.applyBoxShadowToWrapper(e),[e];let i=[],a=e.firstChild;if(!a||a.nodeType!==Node.TEXT_NODE)return k.applyBoxShadowToWrapper(e),[e];let o=Ge.findLineBreakPositions(a,t.length);if(o.length===0)return k.applyBoxShadowToWrapper(e),[e];let s=Ge.splitTextAtPositions(n,o),c=document.createDocumentFragment();return s.forEach(e=>{if(e.length===0)return;let t=w.make(`span`);t.setAttribute(`data-blok-testid`,`fake-background`),t.setAttribute(`data-blok-fake-background`,`true`),t.setAttribute(`data-blok-mutation-free`,`true`),t.style.color=`inherit`,t.style.boxDecorationBreak=`clone`,t.style[`-webkit-box-decoration-break`]=`clone`,t.style.whiteSpace=`pre-wrap`,t.textContent=e,c.appendChild(t),i.push(t)}),r.replaceChild(c,e),i}static unwrapFakeBackground(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}},Ke=class{constructor(e){this.selectionUtils=e}setFakeBackground(){this.removeFakeBackground();let e=window.getSelection();if(!e||e.rangeCount===0)return;let t=e.getRangeAt(0);if(t.collapsed)return;let n=Ge.collectTextNodes(t);if(n.length===0)return;let r=t.startContainer,i=t.startOffset,a=t.endContainer,o=t.endOffset,s=[];if(n.forEach(e=>{var t,n;let c=document.createRange(),l=e===r,u=e===a,d=l?i:0,f=(t=(n=e.textContent)==null?void 0:n.length)==null?0:t,p=u?o:f;if(d===p)return;c.setStart(e,d),c.setEnd(e,p);let m=A.wrapRangeWithHighlight(c);m&&s.push(m)}),s.length===0)return;let c=A.postProcessHighlightWrappers(s);k.applyLineHeightExtensions(c);let l=document.createRange();l.setStartBefore(c[0]),l.setEndAfter(c[c.length-1]),this.selectionUtils.savedSelectionRange=l.cloneRange();let u=window.getSelection();u&&(u.removeAllRanges(),u.addRange(l)),this.selectionUtils.isFakeBackgroundEnabled=!0}removeFakeBackground(){this.selectionUtils.isFakeBackgroundEnabled&&(this.removeHighlightSpans(),this.selectionUtils.isFakeBackgroundEnabled=!1),this.removeOrphanedFakeBackgroundElements()}removeOrphanedFakeBackgroundElements(){document.querySelectorAll(`[data-blok-fake-background="true"]`).forEach(e=>{A.unwrapFakeBackground(e)})}clearFakeBackground(){this.removeOrphanedFakeBackgroundElements(),this.selectionUtils.isFakeBackgroundEnabled=!1}removeHighlightSpans(){let e=document.querySelectorAll(`[data-blok-fake-background="true"]`);if(e.length===0)return;let t=e[0],n=e[e.length-1],r=t.firstChild,i=n.lastChild;if(e.forEach(e=>{A.unwrapFakeBackground(e)}),r&&i){var a;let e=document.createRange();e.setStart(r,0),e.setEnd(i,((a=i.textContent)==null?void 0:a.length)||0),this.selectionUtils.savedSelectionRange=e}}},qe=class{static addFakeCursor(){let e=O.getRange();if(e===null)return;let t=w.make(`span`);t.setAttribute(r.fakeCursor,``),t.setAttribute(`data-blok-mutation-free`,`true`),e.collapse(),e.insertNode(t)}static isFakeCursorInsideContainer(e){return w.find(e,i(r.fakeCursor))!==null}static removeFakeCursor(e=document.body){let t=w.find(e,i(r.fakeCursor));t&&t.remove()}},Je=class{static findParentTag(e,t,n=10){let r=window.getSelection();if(!r||!r.anchorNode||!r.focusNode)return null;let i=[r.anchorNode,r.focusNode],a=r=>{let i=(n,r)=>{if(r<=0||!n)return null;let a=n.nodeType===Node.ELEMENT_NODE&&n.tagName===e,o=!t||n.classList&&n.classList.contains(t);if(a&&o)return n;if(!n.parentNode)return null;let s=n.parentNode,c=!t||s.classList&&s.classList.contains(t);return s.tagName===e&&c?s:i(s,r-1)};return i(r,n)};for(let e of i){let t=a(e);if(t)return t}return null}static expandToTag(e){let t=window.getSelection();if(!t)return;t.removeAllRanges();let n=document.createRange();n.selectNodeContents(e),t.addRange(n)}},Ye=class{constructor(){this.instance=null,this.selection=null,this.savedSelectionRange=null,this.isFakeBackgroundEnabled=!1,this.fakeBackgroundManager=new Ke(this)}static get anchorNode(){return O.getAnchorNode()}static get anchorElement(){return O.getAnchorElement()}static get anchorOffset(){return O.getAnchorOffset()}static get isCollapsed(){return O.getIsCollapsed()}static get isAtBlok(){return O.getIsAtBlok()}static isSelectionAtBlok(e){return O.isSelectionAtBlok(e)}static isRangeAtBlok(e){return O.isRangeAtBlok(e)}static get isSelectionExists(){return O.getIsSelectionExists()}static get range(){return O.getRange()}static getRangeFromSelection(e){return O.getRangeFromSelection(e)}static get rect(){return O.getRect()}static get text(){return O.getText()}static get(){return O.get()}static setCursor(e,t=0){return Ue.setCursor(e,t)}static isRangeInsideContainer(e){return Ue.isRangeInsideContainer(e)}static addFakeCursor(){qe.addFakeCursor()}static isFakeCursorInsideContainer(e){return qe.isFakeCursorInsideContainer(e)}static removeFakeCursor(e=document.body){qe.removeFakeCursor(e)}removeFakeBackground(){this.fakeBackgroundManager.removeFakeBackground()}removeOrphanedFakeBackgroundElements(){this.fakeBackgroundManager.removeOrphanedFakeBackgroundElements()}clearFakeBackground(){this.fakeBackgroundManager.clearFakeBackground()}setFakeBackground(){this.fakeBackgroundManager.setFakeBackground()}save(){this.savedSelectionRange=O.getRange()}restore(){if(!this.savedSelectionRange)return;let e=window.getSelection();e&&(e.removeAllRanges(),e.addRange(this.savedSelectionRange))}clearSaved(){this.savedSelectionRange=null}collapseToEnd(){Ue.collapseToEnd()}findParentTag(e,t,n=10){return Je.findParentTag(e,t,n)}expandToTag(e){Je.expandToTag(e)}},j=function(e){return e.Default=`default`,e.Separator=`separator`,e.Html=`html`,e}({}),Xe=e.t(((e,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(`html-janitor`,r):typeof e==`object`?t.exports=r():n.HTMLJanitor=r()})(e,function(){function e(e){var t=e.tags;if(!Object.keys(t).map(function(e){return typeof t[e]}).every(function(e){return e===`object`||e===`boolean`||e===`function`}))throw Error(`The configuration was invalid`);this.config=e}var t=[`P`,`LI`,`TD`,`TH`,`DIV`,`H1`,`H2`,`H3`,`H4`,`H5`,`H6`,`PRE`];function n(e){return t.indexOf(e.nodeName)!==-1}var r=[`A`,`B`,`STRONG`,`I`,`EM`,`SUB`,`SUP`,`U`,`STRIKE`];function i(e){return r.indexOf(e.nodeName)!==-1}e.prototype.clean=function(e){let t=document.implementation.createHTMLDocument(),n=t.createElement(`div`);return n.innerHTML=e,this._sanitize(t,n),n.innerHTML},e.prototype._sanitize=function(e,t){var r=a(e,t),l=r.firstChild();if(l)do{if(l.nodeType===Node.TEXT_NODE)if(l.data.trim()===``&&(l.previousElementSibling&&n(l.previousElementSibling)||l.nextElementSibling&&n(l.nextElementSibling))){t.removeChild(l),this._sanitize(e,t);break}else continue;if(l.nodeType===Node.COMMENT_NODE){t.removeChild(l),this._sanitize(e,t);break}var u=i(l),d;u&&(d=Array.prototype.some.call(l.childNodes,n));var f=!!t.parentNode,p=n(t)&&n(l)&&f,m=l.nodeName.toLowerCase(),h=o(this.config,m,l);if(u&&d||s(l,h)||!this.config.keepNestedBlockElements&&p){if(!(l.nodeName===`SCRIPT`||l.nodeName===`STYLE`))for(;l.childNodes.length>0;)t.insertBefore(l.childNodes[0],l);t.removeChild(l),this._sanitize(e,t);break}for(var g=0;g<l.attributes.length;g+=1){var _=l.attributes[g];c(_,h,l)&&(l.removeAttribute(_.name),--g)}this._sanitize(e,l)}while(l=r.nextSibling())};function a(e,t){return e.createTreeWalker(t,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT,null,!1)}function o(e,t,n){return typeof e.tags[t]==`function`?e.tags[t](n):e.tags[t]}function s(e,t){return t===void 0?!0:typeof t==`boolean`?!t:!1}function c(e,t,n){var r=e.name.toLowerCase();return t===!0?!1:typeof t[r]==`function`?!t[r](e.value,n):t[r]===void 0||t[r]===!1?!0:typeof t[r]==`string`?t[r]!==e.value:!1}return e})})),Ze=e.o(Xe()),Qe=/^\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)/i,$e=/\s*(?:href|src)\s*=\s*(?:"\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^"]*"|'\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^']*|(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^ \t\r\n>]*)/gi,et=(e,n,r={})=>e.map(e=>{let i=p(n)?n(e.tool):n,a=i==null?{}:i;return m(a)&&y(a)&&y(r)?e:t.t(t.t({},e),{},{data:tt(e.data,a,r)})}),M=(e,t={})=>new Ze.default({tags:t}).clean(e),tt=(e,t,n)=>Array.isArray(e)?nt(e,t,n):m(e)?rt(e,t,n):h(e)?it(e,t,n):e,nt=(e,t,n)=>e.map(e=>tt(e,t,n)),rt=(e,t,n)=>{let r={},i=e;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a))continue;let o=i[a],s=m(t)?t:void 0,c=s==null?void 0:s[a];r[a]=tt(o,c!==void 0&&at(c)?c:t,n)}return r},it=(e,t,n)=>{let r=mt(t,n);return r?st(gt(M(e,r),r)):y(n)?st(e):st(gt(M(e,n),n))},at=e=>m(e)||g(e)||p(e),ot=e=>e?Qe.test(e):!1,st=e=>{if(!e||e.indexOf(`<`)===-1)return e;if(typeof document<`u`){let t=document.createElement(`template`);return t.innerHTML=e,t.content.querySelectorAll(`[href],[src]`).forEach(e=>{[`href`,`src`].forEach(t=>{ot(e.getAttribute(t))&&e.removeAttribute(t)})}),t.innerHTML}return e.replace($e,``)},ct=e=>{if(y(e))return{};let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=N(e[n]));return t},lt=e=>function(t){let n=e.call(this,t);return n==null?{}:n},ut=new Set([`class`,`id`,`title`,`role`,`dir`,`lang`]),dt=e=>{let t=e.toLowerCase();return t.startsWith(`data-`)||t.startsWith(`aria-`)||ut.has(t)},ft=e=>{let t={};return Array.from(e.attributes).forEach(e=>{dt(e.name)&&(t[e.name]=!0)}),t},N=e=>e===!0?lt(ft):e===!1?!1:p(e)?lt(e):h(e)?e:m(e)?S({},e):e,pt=(e,t)=>{if(y(e))return ct(t);let n={};for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=e[r],a=t?t[r]:void 0;if(p(a)){n[r]=N(a);continue}if(p(i)){n[r]=N(i);continue}if(m(i)&&m(a)){n[r]=S({},a,i);continue}if(a!==void 0){n[r]=N(a);continue}n[r]=N(i)}if(!t)return n;for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(Object.prototype.hasOwnProperty.call(n,e)||(n[e]=N(t[e])));return n},mt=(e,t)=>m(e)&&!p(e)?pt(t,e):e===!1?{}:y(t)?null:ct(t),ht=(e,...t)=>{if(y(e))return Object.assign({},...t);let n=ct(e);return t.forEach(e=>{if(e)for(let t in e){if(!Object.prototype.hasOwnProperty.call(e,t))continue;let r=e[t];if(!Object.prototype.hasOwnProperty.call(n,t))continue;let i=n[t];if(p(r)){n[t]=r;continue}if(!(r===!0&&p(i))){if(r===!0){n[t]=m(i)&&!p(i)?S({},i):N(r);continue}if(m(r)&&m(i)){n[t]=S({},i,r);continue}n[t]=N(r)}}}),n},gt=(e,t)=>{if(typeof document>`u`||!e||e.indexOf(`<`)===-1)return e;let n=Object.entries(t).filter(([,e])=>p(e));if(n.length===0)return e;let r=document.createElement(`template`);return r.innerHTML=e,n.forEach(([e,t])=>{r.content.querySelectorAll(e).forEach(e=>{let n=t(e);if(!(g(n)||p(n)||n==null))for(let[t,r]of Object.entries(n)){if(r===!1){e.removeAttribute(t);continue}r!==!0&&h(r)&&e.setAttribute(t,r)}})}),r.innerHTML},_t,vt=10,yt=`tooltip`,bt=`aria-hidden`,xt=`false`,St=`true`,Ct=`visibility`,wt=`visible`,Tt=`hidden`,Et=class e{get CSS(){return{tooltip:n.t(`absolute z-overlay top-0 left-0`,`bg-tooltip-bg opacity-0`,`select-none pointer-events-none`,`rounded-lg shadow-tooltip`,`before:content-[''] before:absolute before:inset-0 before:bg-tooltip-bg before:-z-10 before:rounded-lg`,`mobile:hidden`).split(` `),tooltipContent:n.t(`px-2.5 py-1.5`,`text-tooltip-font text-xs text-center`,`tracking-[0.02em] leading-[1em]`).split(` `),tooltipShown:[`opacity-100`]}}static getInstance(){return e.instance||(e.instance=new e),e.instance}constructor(){this.nodes={wrapper:null,content:null},this.showed=!1,this.offsetTop=vt,this.offsetLeft=vt,this.offsetRight=vt,this.showingTimeout=null,this.ariaObserver=null,this.handleWindowScroll=()=>{this.showed&&this.hide()},this.prepare(),window.addEventListener(`scroll`,this.handleWindowScroll,{passive:!0})}show(e,t,n={}){this.nodes.wrapper||this.prepare(),this.showingTimeout&&(clearTimeout(this.showingTimeout),this.showingTimeout=null);let r=Object.assign({placement:`bottom`,marginTop:0,marginLeft:0,marginRight:0,marginBottom:0,delay:0},n);if(this.nodes.content&&(this.nodes.content.innerHTML=``,this.nodes.content.appendChild(this.createContentNode(t)),this.nodes.wrapper)){switch(r.placement){case`top`:this.placeTop(e,r);break;case`left`:this.placeLeft(e,r);break;case`right`:this.placeRight(e,r);break;default:this.placeBottom(e,r);break}if(r&&r.delay){this.showingTimeout=setTimeout(()=>{if(this.showingTimeout=null,this.nodes.wrapper){let e=Array.isArray(this.CSS.tooltipShown)?this.CSS.tooltipShown:[this.CSS.tooltipShown];this.nodes.wrapper.classList.add(...e),this.updateTooltipVisibility()}this.showed=!0},r.delay);return}if(this.nodes.wrapper){let e=Array.isArray(this.CSS.tooltipShown)?this.CSS.tooltipShown:[this.CSS.tooltipShown];this.nodes.wrapper.classList.add(...e),this.updateTooltipVisibility()}this.showed=!0}}createContentNode(e){if(typeof e==`string`)return document.createTextNode(e);if(e instanceof Node)return e;throw Error(`[Blok Tooltip] Wrong type of «content» passed. It should be an instance of Node or String. But `+typeof e+` given.`)}hide(){if(this.showingTimeout&&(clearTimeout(this.showingTimeout),this.showingTimeout=null),this.nodes.wrapper){let e=Array.isArray(this.CSS.tooltipShown)?this.CSS.tooltipShown:[this.CSS.tooltipShown];this.nodes.wrapper.classList.remove(...e),this.updateTooltipVisibility()}this.showed=!1}onHover(e,t,n={}){e.addEventListener(`mouseenter`,()=>{let r=document.querySelector(`[data-blok-popover-opened="true"]`);r!==null&&!r.contains(e)||this.show(e,t,n)}),e.addEventListener(`mouseleave`,()=>{this.hide()})}destroy(){var t;(t=this.ariaObserver)==null||t.disconnect(),this.ariaObserver=null,this.nodes.wrapper&&this.nodes.wrapper.remove(),window.removeEventListener(`scroll`,this.handleWindowScroll),e.instance=null}prepare(){this.nodes.wrapper=this.make(`div`,this.CSS.tooltip),this.nodes.wrapper.setAttribute(r.interface,Be),this.nodes.wrapper.setAttribute(`data-blok-testid`,`tooltip`),this.nodes.content=this.make(`div`,this.CSS.tooltipContent),this.nodes.content.setAttribute(`data-blok-testid`,`tooltip-content`),this.nodes.wrapper&&this.nodes.content&&(this.append(this.nodes.wrapper,this.nodes.content),this.append(document.body,this.nodes.wrapper),this.ensureTooltipAttributes())}updateTooltipVisibility(){if(!this.nodes.wrapper)return;let e=Array.isArray(this.CSS.tooltipShown)?this.CSS.tooltipShown[0]:this.CSS.tooltipShown,t=this.nodes.wrapper.classList.contains(e);this.nodes.wrapper.style.setProperty(Ct,t?wt:Tt,t?``:`important`),this.nodes.wrapper.setAttribute(bt,t?xt:St),this.nodes.wrapper.setAttribute(`data-blok-shown`,t?`true`:`false`)}watchTooltipVisibility(){var e;this.nodes.wrapper&&((e=this.ariaObserver)==null||e.disconnect(),this.updateTooltipVisibility(),this.ariaObserver=new MutationObserver(()=>{this.updateTooltipVisibility()}),this.ariaObserver.observe(this.nodes.wrapper,{attributes:!0,attributeFilter:[`class`]}))}ensureTooltipAttributes(){this.nodes.wrapper&&((!this.nodes.wrapper.hasAttribute(r.interface)||this.nodes.wrapper.getAttribute(r.interface)!==`tooltip`)&&this.nodes.wrapper.setAttribute(r.interface,Be),this.nodes.wrapper.setAttribute(`role`,yt),this.watchTooltipVisibility())}placeBottom(e,t){var n;if(!this.nodes.wrapper)return;let r=e.getBoundingClientRect(),i=r.left+e.clientWidth/2-this.nodes.wrapper.offsetWidth/2,a=r.bottom+this.getScrollTop()+this.offsetTop+((n=t.marginTop)==null?0:n);this.applyPlacement(`bottom`,i,a)}placeTop(e,t){if(!this.nodes.wrapper)return;let n=e.getBoundingClientRect(),r=n.left+e.clientWidth/2-this.nodes.wrapper.offsetWidth/2,i=n.top+this.getScrollTop()-this.nodes.wrapper.clientHeight-this.offsetTop;this.applyPlacement(`top`,r,i)}placeLeft(e,t){var n;if(!this.nodes.wrapper)return;let r=e.getBoundingClientRect(),i=r.left-this.nodes.wrapper.offsetWidth-this.offsetLeft-((n=t.marginLeft)==null?0:n),a=r.top+this.getScrollTop()+e.clientHeight/2-this.nodes.wrapper.offsetHeight/2;this.applyPlacement(`left`,i,a)}placeRight(e,t){var n;if(!this.nodes.wrapper)return;let r=e.getBoundingClientRect(),i=r.right+this.offsetRight+((n=t.marginRight)==null?0:n),a=r.top+this.getScrollTop()+e.clientHeight/2-this.nodes.wrapper.offsetHeight/2;this.applyPlacement(`right`,i,a)}applyPlacement(e,t,n){this.nodes.wrapper&&(this.nodes.wrapper.setAttribute(`data-blok-placement`,e),this.nodes.wrapper.style.left=`${t}px`,this.nodes.wrapper.style.top=`${n}px`)}getScrollTop(){var e,t,n;return typeof window.scrollY==`number`?window.scrollY:(e=(t=(n=document.documentElement)==null?void 0:n.scrollTop)==null?document.body.scrollTop:t)==null?0:e}make(e,t=null,n={}){let r=document.createElement(e);Array.isArray(t)&&r.classList.add(...t),typeof t==`string`&&r.classList.add(t);for(let e in n)Object.prototype.hasOwnProperty.call(n,e)&&(r[e]=n[e]);return r}append(e,t){Array.isArray(t)?t.forEach(t=>e.appendChild(t)):e.appendChild(t)}};_t=Et,_t.instance=null;var P=()=>Et.getInstance(),Dt=(e,t,n)=>{P().show(e,t,n==null?{}:n)},Ot=()=>{P().hide()},kt=(e,t,n)=>{P().onHover(e,t,n==null?{}:n)},At=()=>{P().destroy()},jt=()=>{var e,t;let n=window.getSelection();if(n===null)return[null,0];let r=n.focusNode,i=n.focusOffset;if(r===null)return[null,0];if(r.nodeType===Node.TEXT_NODE||r.childNodes.length===0)return[r,i];let a=r.childNodes[i];if(a!==void 0)return[a,0];let o=(e=r.childNodes[i-1])==null?null:e,s=(t=o==null?void 0:o.textContent)==null?null:t;return[o,s===null?0:s.length]},Mt=e=>{var t;let n=window.getSelection();if(n===null||n.rangeCount===0)return 0;let r=n.getRangeAt(0),i=e==null?(t=r.startContainer.parentElement)==null?void 0:t.closest(`[contenteditable="true"]`):e;if(i==null)return 0;let a=document.createRange();return a.selectNodeContents(i),a.setEnd(r.startContainer,r.startOffset),a.toString().length},Nt=(e,t,n,r)=>{let i=document.createRange();r===`left`?(i.selectNodeContents(e),i.setEnd(t,n)):(i.selectNodeContents(e),i.setStart(t,n));let a=i.cloneContents(),o=document.createElement(`div`);o.appendChild(a);let s=o.textContent||``;if(o.querySelectorAll(`img, br, hr, input, area, base, col, embed, link, meta, param, source, track, wbr`).length>0&&!(r===`right`&&o.querySelectorAll(`img, hr, input, area, base, col, embed, link, meta, param, source, track, wbr`).length===0&&s.trim()===``))return!1;let c=s.includes(`\xA0`)||o.innerHTML.includes(` `)||i.toString().includes(`\xA0`),l=t.nodeType===Node.TEXT_NODE&&(r===`left`?(t.textContent||``).slice(0,n):(t.textContent||``).slice(n)).includes(`\xA0`);if(c||l)return!1;o.style.position=`absolute`,o.style.visibility=`hidden`,o.style.height=`auto`,o.style.width=`auto`,o.style.whiteSpace=window.getComputedStyle(e).whiteSpace,document.body.appendChild(o);let u=o.getBoundingClientRect().width;return document.body.removeChild(o),!(u>0||!be(s)||window.getComputedStyle(e).whiteSpace.startsWith(`pre`)&&s.length>0)},Pt=e=>{var t;let n=w.getDeepestNode(e);if(n===null||w.isEmpty(e))return!0;if(w.isNativeInput(n))return n.selectionEnd===0;if(w.isEmpty(e))return!0;let[r,i]=jt();if(r===null)return!1;let a=window.getSelection(),o=(t=a==null?void 0:a.focusNode)==null?null:t;return o!==null&&o!==e&&!(o.nodeType===Node.TEXT_NODE&&o.parentNode===e)?!1:Nt(e,r,i,`left`)},Ft=e=>{let t=w.getDeepestNode(e,!0);if(t===null)return!0;if(w.isNativeInput(t))return t.selectionEnd===t.value.length;let[n,r]=jt();return n===null?!1:Nt(e,n,r,`right`)},It,F=class e{constructor(e,t){this.cursor=-1,this.items=[],this.items=e==null?[]:e,this.focusedCssClass=t}get currentItem(){return this.cursor===-1?null:this.items[this.cursor]}setCursor(e){e<this.items.length&&e>=-1&&(this.dropCursor(),this.cursor=e,this.items[this.cursor].classList.add(this.focusedCssClass),this.items[this.cursor].setAttribute(`data-blok-focused`,`true`))}setItems(e){this.items=e}hasItems(){return this.items.length>0}next(){this.cursor=this.leafNodesAndReturnIndex(e.directions.RIGHT)}previous(){this.cursor=this.leafNodesAndReturnIndex(e.directions.LEFT)}dropCursor(){this.cursor!==-1&&(this.items[this.cursor].classList.remove(this.focusedCssClass),this.items[this.cursor].removeAttribute(`data-blok-focused`),this.cursor=-1)}leafNodesAndReturnIndex(t){if(this.items.length===0)return this.cursor;let n=t===e.directions.RIGHT?-1:0,r=this.cursor===-1?n:this.cursor;r!==-1&&(this.items[r].classList.remove(this.focusedCssClass),this.items[r].removeAttribute(`data-blok-focused`));let i=t===e.directions.RIGHT?(r+1)%this.items.length:(this.items.length+r-1)%this.items.length;return w.canSetCaret(this.items[i])&&ee(()=>Ye.setCursor(this.items[i]),50)(),this.items[i].classList.add(this.focusedCssClass),this.items[i].setAttribute(`data-blok-focused`,`true`),i}};It=F,It.directions={RIGHT:`right`,LEFT:`left`};var Lt=class e{get isActivated(){return this.activated}constructor(t){var n,r;this.iterator=null,this.activated=!1,this.skipNextTabFocus=!1,this.flipCallbacks=[],this.onKeyDown=t=>{var n;let r=t.target;if(this.shouldSkipTarget(r,t))return;let i=this.getKeyCode(t),o=i===a.LEFT||i===a.RIGHT||i===a.UP||i===a.DOWN;if(!(t.shiftKey&&o)&&this.isEventReadyForHandling(t)&&!(i===a.ENTER&&!((n=this.iterator)!=null&&n.currentItem)))switch(t.stopPropagation(),t.stopImmediatePropagation(),i!==null&&e.usedKeys.includes(i)&&t.preventDefault(),i){case a.TAB:this.handleTabPress(t);break;case a.LEFT:this.onArrowLeftCallback&&this.onArrowLeftCallback();break;case a.UP:this.flipLeft();break;case a.RIGHT:var s;(s=this.iterator)!=null&&s.currentItem&&this.currentItemHasChildren()&&this.handleEnterPress(t);break;case a.DOWN:this.flipRight();break;case a.ENTER:this.handleEnterPress(t);break;case null:break}},this.iterator=new F(t.items||[],(n=t.focusedItemClass)==null?``:n),this.activateCallback=t.activateCallback,this.allowedKeys=t.allowedKeys||e.usedKeys,this.handleContentEditableTargets=(r=t.handleContentEditableTargets)==null?!1:r,this.onArrowLeftCallback=t.onArrowLeft}static get usedKeys(){return[a.TAB,a.LEFT,a.RIGHT,a.ENTER,a.UP,a.DOWN]}activate(e,t){if(this.activated=!0,e){var n;(n=this.iterator)==null||n.setItems(e)}if(t!==void 0){var r;(r=this.iterator)==null||r.setCursor(t)}document.addEventListener(`keydown`,this.onKeyDown,!0),window.addEventListener(`keydown`,this.onKeyDown,!0)}deactivate(){this.activated=!1,this.dropCursor(),this.skipNextTabFocus=!1,document.removeEventListener(`keydown`,this.onKeyDown,!0),window.removeEventListener(`keydown`,this.onKeyDown,!0)}focusFirst(){this.dropCursor(),this.flipRight()}focusItem(e,t){var n;let r=this.iterator;if(r&&r.hasItems()){if(e<0){r.dropCursor();return}((n=t==null?void 0:t.skipNextTab)==null?!r.currentItem&&e===0:n)&&(this.skipNextTabFocus=!0),r.setCursor(e)}}flipLeft(){var e;(e=this.iterator)==null||e.previous(),this.flipCallback()}flipRight(){var e;(e=this.iterator)==null||e.next(),this.flipCallback()}hasFocus(){var e;return!!((e=this.iterator)!=null&&e.currentItem)}currentItemHasChildren(){var e;let t=(e=this.iterator)==null?void 0:e.currentItem;return t?t.hasAttribute(`data-blok-has-children`):!1}onFlip(e){this.flipCallbacks.push(e)}removeOnFlip(e){this.flipCallbacks=this.flipCallbacks.filter(t=>t!==e)}dropCursor(){var e;(e=this.iterator)==null||e.dropCursor()}getKeyCode(e){var t;return(t={Tab:a.TAB,Enter:a.ENTER,ArrowLeft:a.LEFT,ArrowRight:a.RIGHT,ArrowUp:a.UP,ArrowDown:a.DOWN}[e.key])==null?null:t}isEventReadyForHandling(e){let t=this.getKeyCode(e);return this.activated&&t!==null&&this.allowedKeys.includes(t)}setHandleContentEditableTargets(e){this.handleContentEditableTargets=e}getHandleContentEditableTargets(){return this.handleContentEditableTargets}handleTabPress(e){let t=e.shiftKey?F.directions.LEFT:F.directions.RIGHT;if(this.skipNextTabFocus){this.skipNextTabFocus=!1;return}switch(t){case F.directions.RIGHT:this.flipRight();break;case F.directions.LEFT:this.flipLeft();break}}handleExternalKeydown(e){this.onKeyDown(e)}handleEnterPress(e){var t,n;this.activated&&((t=this.iterator)!=null&&t.currentItem&&(e.stopPropagation(),e.preventDefault(),this.iterator.currentItem.click()),p(this.activateCallback)&&(n=this.iterator)!=null&&n.currentItem&&this.activateCallback(this.iterator.currentItem))}scrollElementIntoView(e){let t=e;if(typeof t.scrollIntoViewIfNeeded==`function`){t.scrollIntoViewIfNeeded();return}t.scrollIntoView({block:`nearest`})}flipCallback(){var e;(e=this.iterator)!=null&&e.currentItem&&this.scrollElementIntoView(this.iterator.currentItem),this.flipCallbacks.forEach(e=>e())}shouldSkipTarget(e,t){if(!e)return!1;let n=e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement,r=t.key===`Tab`||t.key===`ArrowUp`||t.key===`ArrowDown`||t.key===`Enter`||t.key===`ArrowRight`||t.key===`ArrowLeft`,i=e.getAttribute(`data-blok-flipper-navigation-target`)===`true`&&r,a=e.isContentEditable,o=e.closest(`[data-blok-link-tool-input-opened="true"]`)!==null,s=a&&!this.handleContentEditableTargets;return n&&!i||s||o}},Rt=[{name:`gray`,text:`#787774`,bg:`#f1f1ef`},{name:`brown`,text:`#9f6b53`,bg:`#f4eeee`},{name:`orange`,text:`#d9730d`,bg:`#fbecdd`},{name:`yellow`,text:`#cb9b00`,bg:`#fbf3db`},{name:`green`,text:`#448361`,bg:`#edf3ec`},{name:`blue`,text:`#337ea9`,bg:`#e7f3f8`},{name:`purple`,text:`#9065b0`,bg:`#f6f3f9`},{name:`pink`,text:`#c14c8a`,bg:`#f9f0f5`},{name:`red`,text:`#d44c47`,bg:`#fdebec`}],zt=[{name:`gray`,text:`#9b9b9b`,bg:`#2f2f2f`},{name:`brown`,text:`#c59177`,bg:`#452a1c`},{name:`orange`,text:`#dc8c47`,bg:`#4d2f14`},{name:`yellow`,text:`#d4ab49`,bg:`#544012`},{name:`green`,text:`#5db184`,bg:`#1e432f`},{name:`blue`,text:`#5c9fcc`,bg:`#123a54`},{name:`purple`,text:`#a67dca`,bg:`#341d49`},{name:`pink`,text:`#d45e99`,bg:`#4b1b33`},{name:`red`,text:`#dd5e5a`,bg:`#4e1a18`}];function Bt(e,t){return`var(--blok-color-${e}-${t})`}function Vt(e,t,n){let r=t/100,i=n/100;if(r===0){let e=Math.round(i*255);return[e,e,e]}let a=e=>e<0?e+1:e>1?e-1:e,o=(e,t,n)=>{let r=a(n);return r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e},s=i<.5?i*(1+r):i+r-i*r,c=2*i-s,l=e/360;return[Math.round(o(c,s,l+1/3)*255),Math.round(o(c,s,l)*255),Math.round(o(c,s,l-1/3)*255)]}function I(e){let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(t)return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)];let n=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})[0-9a-f]{2}$/i.exec(e);if(n)return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)];let r=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(e);if(r)return[parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16),parseInt(r[3]+r[3],16)];let i=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]$/i.exec(e);if(i)return[parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16),parseInt(i[3]+i[3],16)];let a=/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*[\d.]+\s*)?\)$/i.exec(e);if(a)return[Number(a[1]),Number(a[2]),Number(a[3])];let o=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*(?:,\s*[\d.]+\s*)?\)$/i.exec(e);return o?Vt(Number(o[1]),Number(o[2]),Number(o[3])):null}var Ht=.1;function L(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=(i+a)/2;if(i===a)return[0,0,o];let s=i-a,c=o>.5?s/(2-i-a):s/(i+a);return[(e=>e===t?((n-r)/s+(n<r?6:0))/6:e===n?((r-t)/s+2)/6:((t-n)/s+4)/6)(i)*360,c,o]}function Ut(e,t){let n=e[1]<Ht,r=t[1]<Ht;if(n&&r){let n=Math.abs(e[2]-t[2]);return n*n}if(n!==r)return 1e3;let i=Math.abs(e[0]-t[0]),a=Math.min(i,360-i)/180,o=Math.abs(e[1]-t[1]),s=Math.abs(e[2]-t[2]);return 8*a*a+1*o*o+1*s*s}function R(e,t){let n=I(e);if(n===null)return e;let r=L(n);return Rt.reduce((e,n)=>{let i=I(n[t]);if(i===null)return e;let a=Ut(r,L(i));return a<e.distance?{color:n[t],distance:a}:e},{color:e,distance:1/0}).color}function Wt(e,t){var n;let r=I(e);if(r===null)return null;let i=L(r),a=[...Rt,...zt].reduce((e,n)=>{let r=I(n[t]);if(r===null)return e;let a=Ut(i,L(r));return e===null||a<e.distance?{name:n.name,distance:a}:e},null);return(n=a==null?void 0:a.name)==null?null:n}var z=`data-blok-table-cells`;function Gt(e,t,n){return e?`background-color: ${n}`:t?`background-color: transparent`:``}function Kt(e){if(e.length===0)return{rows:0,cols:0,cells:[]};let t=Math.min(...e.map(e=>e.row)),n=Math.min(...e.map(e=>e.col)),r=Math.max(...e.map(e=>e.row)),i=Math.max(...e.map(e=>e.col)),a=r-t+1,o=i-n+1,s=Array.from({length:a},()=>Array.from({length:o},()=>({blocks:[]})));for(let r of e){let e=r.row-t,i=r.col-n;s[e][i]={blocks:r.blocks},r.color!==void 0&&(s[e][i].color=r.color),r.textColor!==void 0&&(s[e][i].textColor=r.textColor),r.placement!==void 0&&(s[e][i].placement=r.placement)}return{rows:a,cols:o,cells:s}}function qt(e){let{data:t}=e;return typeof t.text==`string`?t.text:Array.isArray(t.items)?t.items.filter(e=>typeof e==`string`).join(` `):``}function Jt(e){var t;let n=document.createElement(`div`);return n.innerHTML=e,(t=n.textContent)==null?``:t}function Yt(e){return Jt(qt(e))}function Xt(e){return`<table ${z}='${JSON.stringify(e).replace(/'/g,`'`)}'>${e.cells.map(e=>`<tr>${e.map(e=>{let t=e.blocks.map(qt).join(` `),n=[e.color?`background-color: ${e.color}`:``,e.textColor?`color: ${e.textColor}`:``].filter(Boolean).join(`; `);return`<td${n?` style="${n}"`:``}>${t}</td>`}).join(``)}</tr>`).join(``)}</table>`}function Zt(e){return e.cells.map(e=>e.map(e=>e.blocks.map(Yt).join(` `)).join(` `)).join(`
|
|
11
|
+
`)}var Qt=new Set([`color`,`background-color`]),$t={b:!0,strong:!0,i:!0,em:!0,br:!0,a:{href:!0,target:`_blank`,rel:`nofollow`},mark:e=>{let t=e.style,n=Array.from({length:t.length},(e,n)=>t.item(n));for(let e of n)Qt.has(e)||t.removeProperty(e);return t.length>0?{style:!0}:{}}};function B(e){let t=e.replace(/\s/g,``);return t===`rgb(0,0,0)`||t===`#000000`}function en(e){let t=e.cloneNode(!0);for(let e of Array.from(t.querySelectorAll(`span`))){var n,r,i;let t=(n=e.getAttribute(`style`))==null?``:n,a=/font-weight\s*:\s*(700|bold)/i.test(t),o=/font-style\s*:\s*italic/i.test(t),s=RegExp(`(?<![a-z-])color\\s*:\\s*([^;]+)`,`i`).exec(t),c=/background-color\s*:\s*([^;]+)/i.exec(t),l=s==null||(r=s[1])==null?void 0:r.trim(),u=c==null||(i=c[1])==null?void 0:i.trim(),d=l!==void 0&&!B(l),f=u!==void 0&&u!==`transparent`;if(!a&&!o&&!d&&!f)continue;let p=d?R(l,`text`):``,m=f?R(u,`bg`):``,h=[d?`color: ${p}`:``,Gt(f,d,m)].filter(Boolean).join(`; `),g=e.innerHTML,_=h?`<mark style="${h};">${g}</mark>`:g,v=o?`<i>${_}</i>`:_,y=a?`<b>${v}</b>`:v;e.replaceWith(document.createRange().createContextualFragment(y))}for(let e of Array.from(t.querySelectorAll(`a[style]`))){var a,o,s;let t=(a=e.getAttribute(`style`))==null?``:a,n=RegExp(`(?<![a-z-])color\\s*:\\s*([^;]+)`,`i`).exec(t),r=/background-color\s*:\s*([^;]+)/i.exec(t),i=n==null||(o=n[1])==null?void 0:o.trim(),c=r==null||(s=r[1])==null?void 0:s.trim(),l=i!==void 0&&!B(i)&&i!==`inherit`,u=c!==void 0&&c!==`transparent`&&c!==`inherit`;if(!l&&!u)continue;let d=l?R(i,`text`):``,f=u?R(c,`bg`):``,p=[l?`color: ${d}`:``,Gt(u,l,f)].filter(Boolean).join(`; `),m=e;m.innerHTML=`<mark style="${p};">${m.innerHTML}</mark>`,m.style.removeProperty(`color`),m.style.removeProperty(`background-color`)}for(let e of Array.from(t.querySelectorAll(`p`))){let t=document.createRange().createContextualFragment(e.innerHTML+`<br>`);e.replaceWith(t)}return M(t.innerHTML,$t).replace(/(<br\s*\/?>|\s)+$/i,``).trim()}function tn(e){if(!e)return null;let t=new DOMParser().parseFromString(e,`text/html`).querySelector(`table`);if(!t||t.hasAttribute(z))return null;let n=t.querySelectorAll(`tr`);if(n.length===0)return null;let r=[];n.forEach(e=>{let t=e.querySelectorAll(`td, th`),n=[];t.forEach(e=>{var t;let r=en(e).split(/<br\s*\/?>/i).map(e=>e.trim()).filter(Boolean),i={blocks:r.length>0?r.map(e=>({tool:`paragraph`,data:{text:e}})):[{tool:`paragraph`,data:{text:``}}]},a=(t=e.getAttribute(`style`))==null?``:t,o=/background-color\s*:\s*([^;]+)/i.exec(a);o!=null&&o[1]&&(i.color=R(o[1].trim(),`bg`));let s=RegExp(`(?<![a-z-])color\\s*:\\s*([^;]+)`,`i`).exec(a);s!=null&&s[1]&&!B(s[1].trim())&&(i.textColor=R(s[1].trim(),`text`)),n.push(i)}),r.push(n)});let i=Math.max(0,...r.map(e=>e.length));if(r.length===0||i===0)return null;for(let e of r)for(;e.length<i;)e.push({blocks:[{tool:`paragraph`,data:{text:``}}]});return{rows:r.length,cols:i,cells:r}}function nn(e){let t=RegExp(`${z}='([^']*)'|${z}="([^"]*)"`,`s`).exec(e);if(!t)return null;try{var n;let e=(n=t[1])==null?t[2]:n;if(e===void 0)return null;let r=e.replace(/'/g,`'`).replace(/"/g,`"`).replace(/</g,`<`).replace(/>/g,`>`).replace(/&/g,`&`);return JSON.parse(r)}catch(e){return null}}var rn=`
|
|
12
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
13
|
+
<path d="m4.5 10.5 4 4 7-8" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
14
|
+
</svg>
|
|
15
|
+
`,an=`
|
|
16
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
17
|
+
<path d="M10 2 Q10 10 18 10 Q10 10 10 18 Q10 10 2 10 Q10 10 10 2Z" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"/>
|
|
18
|
+
</svg>
|
|
19
|
+
`,on=`
|
|
20
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
21
|
+
<path d="m5 15 10-10m0 10L5 5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
22
|
+
</svg>
|
|
23
|
+
`,sn=`
|
|
24
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
25
|
+
<path
|
|
26
|
+
transform="translate(0,-1)"
|
|
27
|
+
d="M6 11h4.9231c.6528 0 1.2789-.3161 1.7405-.8787.4617-.56259.721-1.32565.721-2.1213 0-.79565-.2593-1.55871-.721-2.12132C12.202 5.31607 11.5759 5 10.9231 5H6v6Zm0 0h5.5385c.6528 0 1.2789.3161 1.7405.8787.4617.5626.721 1.3257.721 2.1213 0 .7956-.2593 1.5587-.721 2.1213-.4616.5626-1.0877.8787-1.7405.8787H6v-6Z"
|
|
28
|
+
stroke="currentColor"
|
|
29
|
+
stroke-width="1.25"
|
|
30
|
+
stroke-linecap="round"
|
|
31
|
+
stroke-linejoin="round"
|
|
32
|
+
/>
|
|
33
|
+
</svg>
|
|
34
|
+
`,cn=`
|
|
35
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
36
|
+
<path
|
|
37
|
+
d="M8.5 4h6m-10 12h6m1-12-4 12"
|
|
38
|
+
stroke="currentColor"
|
|
39
|
+
stroke-width="1.25"
|
|
40
|
+
stroke-linecap="round"
|
|
41
|
+
stroke-linejoin="round"
|
|
42
|
+
/>
|
|
43
|
+
</svg>
|
|
44
|
+
`,ln=`
|
|
45
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
46
|
+
<path d="M8.5 11.5a3.5 3.5 0 0 0 5 0l2-2a3.536 3.536 0 0 0-5-5l-1 1" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
47
|
+
<path d="M11.5 8.5a3.5 3.5 0 0 0-5 0l-2 2a3.536 3.536 0 0 0 5 5l1-1" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
48
|
+
</svg>
|
|
49
|
+
`,un=`
|
|
50
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
51
|
+
<rect x="1.25" y="1.25" width="17.5" height="17.5" rx="4.5" stroke="currentColor" stroke-width="1.25"/>
|
|
52
|
+
<path d="M6.5 14.5L10 5.5l3.5 9" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
53
|
+
<path d="M8.5 11h3" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
54
|
+
</svg>
|
|
55
|
+
`,dn=`
|
|
56
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
57
|
+
<path d="M5.5 3.5v7.5a4.5 4.5 0 0 0 9 0V3.5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
58
|
+
<path d="M3.5 18.5h13" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
59
|
+
</svg>
|
|
60
|
+
`,fn=`
|
|
61
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
62
|
+
<path d="M4 10h12" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
63
|
+
<path d="M8.2 10c-1-.5-1.8-1.27-1.8-2.4 0-1.99 1.61-3.6 3.6-3.6s3.6 1.61 3.6 3.6" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
64
|
+
<path d="M11.8 10c1 .5 1.8 1.27 1.8 2.4 0 1.99-1.61 3.6-3.6 3.6s-3.6-1.61-3.6-3.6" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
65
|
+
</svg>
|
|
66
|
+
`,pn=`
|
|
67
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
68
|
+
<path d="M14.5 6.5l2-2-2-2" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
69
|
+
<path d="M16.5 4.5h-4a5 5 0 0 0-5 5v1" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
70
|
+
<path d="M5.5 13.5l-2 2 2 2" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
71
|
+
<path d="M3.5 15.5h4a5 5 0 0 0 5-5v-1" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
72
|
+
</svg>
|
|
73
|
+
`,mn=`
|
|
74
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
75
|
+
<circle cx="7.5" cy="5.5" r="1" fill="currentColor"/>
|
|
76
|
+
<circle cx="12.5" cy="5.5" r="1" fill="currentColor"/>
|
|
77
|
+
<circle cx="7.5" cy="10" r="1" fill="currentColor"/>
|
|
78
|
+
<circle cx="12.5" cy="10" r="1" fill="currentColor"/>
|
|
79
|
+
<circle cx="7.5" cy="14.5" r="1" fill="currentColor"/>
|
|
80
|
+
<circle cx="12.5" cy="14.5" r="1" fill="currentColor"/>
|
|
81
|
+
</svg>
|
|
82
|
+
`,hn=`
|
|
83
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
84
|
+
<path d="M4.5 10h11M10 4.5v11" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
85
|
+
</svg>
|
|
86
|
+
`,gn=`
|
|
87
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
88
|
+
<path d="m6 8 4 4 4-4" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
89
|
+
</svg>
|
|
90
|
+
`,_n=`
|
|
91
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
92
|
+
<path d="m12 5-5 5 5 5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
93
|
+
</svg>
|
|
94
|
+
`,vn=`
|
|
95
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
96
|
+
<path d="m8 5 5 5-5 5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
97
|
+
</svg>
|
|
98
|
+
`,yn=`
|
|
99
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
100
|
+
<circle cx="9" cy="9" r="4.5" stroke="currentColor" stroke-width="1.25"/>
|
|
101
|
+
<path d="m12.5 12.5 3.5 3.5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
102
|
+
</svg>
|
|
103
|
+
`,bn=`
|
|
104
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
105
|
+
<path
|
|
106
|
+
d="M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 5 2.5-1.66667V15"
|
|
107
|
+
stroke="currentColor"
|
|
108
|
+
stroke-width="1.25"
|
|
109
|
+
stroke-linecap="round"
|
|
110
|
+
stroke-linejoin="round"
|
|
111
|
+
/>
|
|
112
|
+
</svg>
|
|
113
|
+
`,xn=`
|
|
114
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
115
|
+
<path
|
|
116
|
+
d="M3.33334 10H10m-6.66666 5V5M10 15V5m7.5 10h-3.3333c0-3.3333 3.3333-2.5 3.3333-5 0-1.25-1.6667-2.08333-3.3333-.83333"
|
|
117
|
+
stroke="currentColor"
|
|
118
|
+
stroke-width="1.25"
|
|
119
|
+
stroke-linecap="round"
|
|
120
|
+
stroke-linejoin="round"
|
|
121
|
+
/>
|
|
122
|
+
</svg>
|
|
123
|
+
`,Sn=`
|
|
124
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
125
|
+
<path
|
|
126
|
+
d="M3.33334 10H10m-6.66666 5V5M10 15V5m4.5833 3.75C16 7.91667 17.5 8.75 17.5 10c0 .442-.1756.866-.4882 1.1785-.3125.3126-.7364.4882-1.1785.4882.4421 0 .866.1756 1.1785.4881.3126.3126.4882.7365.4882 1.1785 0 1.5-1.6667 2.5-3.3333 1.25"
|
|
127
|
+
stroke="currentColor"
|
|
128
|
+
stroke-width="1.25"
|
|
129
|
+
stroke-linecap="round"
|
|
130
|
+
stroke-linejoin="round"
|
|
131
|
+
/>
|
|
132
|
+
</svg>
|
|
133
|
+
`,Cn=`
|
|
134
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
135
|
+
<path
|
|
136
|
+
d="M10 15V5M14.1667 8.33333V10.8333C14.1667 11.0543 14.2545 11.2663 14.4107 11.4226C14.567 11.5789 14.779 11.6667 15 11.6667H17.5M17.5 8.33333V15M3.33334 10H10M3.33334 15V5"
|
|
137
|
+
stroke="currentColor"
|
|
138
|
+
stroke-width="1.25"
|
|
139
|
+
stroke-linecap="round"
|
|
140
|
+
stroke-linejoin="round"
|
|
141
|
+
/>
|
|
142
|
+
</svg>
|
|
143
|
+
`,wn=`
|
|
144
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
145
|
+
<path
|
|
146
|
+
d="M3.33334 10H10M3.33334 15V5M10 15V5M17.5 8.33333H14.1667V10.8333H15.25C16.5 10.8333 17.5 11.75 17.5 12.9167C17.5 14.0833 16.5 15 15.25 15C14.8333 15 14.5 14.9167 14.1667 14.75"
|
|
147
|
+
stroke="currentColor"
|
|
148
|
+
stroke-width="1.25"
|
|
149
|
+
stroke-linecap="round"
|
|
150
|
+
stroke-linejoin="round"
|
|
151
|
+
/>
|
|
152
|
+
</svg>
|
|
153
|
+
`,Tn=`
|
|
154
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
155
|
+
<path
|
|
156
|
+
d="M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 8.3333c0 .9205.7462 1.6667 1.6666 1.6667.9205 0 1.6667-.7462 1.6667-1.6667 0-.9204-.7462-1.6666-1.6667-1.6666-.9204 0-1.6666.7462-1.6666 1.6666Zm0 0c0-2.0833.8333-3.3333 2.5-4.99997"
|
|
157
|
+
stroke="currentColor"
|
|
158
|
+
stroke-width="1.25"
|
|
159
|
+
stroke-linecap="round"
|
|
160
|
+
stroke-linejoin="round"
|
|
161
|
+
/>
|
|
162
|
+
</svg>
|
|
163
|
+
`,En=`
|
|
164
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
165
|
+
<path
|
|
166
|
+
d="M14.5 7.28571V6h-9v1.28571M10 6v9m0 0H8.71429M10 15h1.2857"
|
|
167
|
+
stroke="currentColor"
|
|
168
|
+
stroke-width="1.25"
|
|
169
|
+
stroke-linecap="round"
|
|
170
|
+
stroke-linejoin="round"
|
|
171
|
+
/>
|
|
172
|
+
</svg>
|
|
173
|
+
`,Dn=`
|
|
174
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
175
|
+
<path d="M10 4 3 16h14Z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
176
|
+
<path d="M10 8.5v3.5m0 2v.01" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
177
|
+
</svg>
|
|
178
|
+
`,On=`
|
|
179
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
180
|
+
<path
|
|
181
|
+
d="M3 3l3 2-3 2M9 5h8M6 10h11M6 15h11"
|
|
182
|
+
stroke="currentColor"
|
|
183
|
+
stroke-width="1.25"
|
|
184
|
+
stroke-linecap="round"
|
|
185
|
+
stroke-linejoin="round"
|
|
186
|
+
/>
|
|
187
|
+
</svg>
|
|
188
|
+
`,kn=`
|
|
189
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
190
|
+
<path
|
|
191
|
+
d="M8 5h9M8 10h9M8 15h9"
|
|
192
|
+
stroke="currentColor"
|
|
193
|
+
stroke-width="1.25"
|
|
194
|
+
stroke-linecap="round"
|
|
195
|
+
/>
|
|
196
|
+
<circle cx="4" cy="5" r="1" fill="currentColor"/>
|
|
197
|
+
<circle cx="4" cy="10" r="1" fill="currentColor"/>
|
|
198
|
+
<circle cx="4" cy="15" r="1" fill="currentColor"/>
|
|
199
|
+
</svg>
|
|
200
|
+
`,An=`
|
|
201
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
202
|
+
<path d="M8 5h9M8 10h9M8 15h9" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
203
|
+
<text x="4" y="6" fill="currentColor" font-size="5" font-family="sans-serif" text-anchor="middle" dominant-baseline="central">1</text>
|
|
204
|
+
<text x="4" y="11" fill="currentColor" font-size="5" font-family="sans-serif" text-anchor="middle" dominant-baseline="central">2</text>
|
|
205
|
+
<text x="4" y="16" fill="currentColor" font-size="5" font-family="sans-serif" text-anchor="middle" dominant-baseline="central">3</text>
|
|
206
|
+
</svg>
|
|
207
|
+
`,jn=`
|
|
208
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
209
|
+
<path
|
|
210
|
+
d="M10 5h7M10 10h7M10 15h7M3 5l1 1 2-2M3 10l1 1 2-2M3 15l1 1 2-2"
|
|
211
|
+
stroke="currentColor"
|
|
212
|
+
stroke-width="1.25"
|
|
213
|
+
stroke-linecap="round"
|
|
214
|
+
stroke-linejoin="round"
|
|
215
|
+
/>
|
|
216
|
+
</svg>
|
|
217
|
+
`,Mn=`
|
|
218
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
219
|
+
<rect x="3" y="4" width="14" height="12" rx="1.5" stroke="currentColor" stroke-width="1.25"/>
|
|
220
|
+
<path d="M3 8h14M3 12h14M7.5 4v12M12.5 4v12" stroke="currentColor" stroke-width="1.25"/>
|
|
221
|
+
</svg>
|
|
222
|
+
`,Nn=`
|
|
223
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
224
|
+
<path d="M4.5 4h11A1.5 1.5 0 0 1 17 5.5V8H3V5.5A1.5 1.5 0 0 1 4.5 4Z" fill="currentColor"/>
|
|
225
|
+
<rect x="3" y="4" width="14" height="12" rx="1.5" stroke="currentColor" stroke-width="1.25"/>
|
|
226
|
+
<path d="M3 8h14M3 12h14M7.5 4v12M12.5 4v12" stroke="currentColor" stroke-width="1.25"/>
|
|
227
|
+
</svg>
|
|
228
|
+
`,Pn=`
|
|
229
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
230
|
+
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>
|
|
231
|
+
<circle cx="12" cy="12" r="3"/>
|
|
232
|
+
</svg>
|
|
233
|
+
`,Fn=`
|
|
234
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
235
|
+
<path d="M4.5 4H7.5v12H4.5A1.5 1.5 0 0 1 3 14.5v-9A1.5 1.5 0 0 1 4.5 4Z" fill="currentColor"/>
|
|
236
|
+
<rect x="3" y="4" width="14" height="12" rx="1.5" stroke="currentColor" stroke-width="1.25"/>
|
|
237
|
+
<path d="M3 8h14M3 12h14M7.5 4v12M12.5 4v12" stroke="currentColor" stroke-width="1.25"/>
|
|
238
|
+
</svg>
|
|
239
|
+
`,In=`
|
|
240
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
241
|
+
<path d="M10 4l-3 3m3-3l3 3M10 4v7M5 16h10" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
242
|
+
</svg>
|
|
243
|
+
`,Ln=`
|
|
244
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
245
|
+
<path d="M10 16l-3-3m3 3l3-3M10 16V9M5 4h10" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
246
|
+
</svg>
|
|
247
|
+
`,Rn=`
|
|
248
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
249
|
+
<path d="M4 10l3-3M4 10l3 3M4 10h7M16 5v10" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
250
|
+
</svg>
|
|
251
|
+
`,zn=`
|
|
252
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
253
|
+
<path d="M16 10l-3-3m3 3l-3 3M16 10H9M4 5v10" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
254
|
+
</svg>
|
|
255
|
+
`,Bn=`
|
|
256
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
257
|
+
<rect x="7" y="7" width="9" height="9" rx="1.5" stroke="currentColor" stroke-width="1.25"/>
|
|
258
|
+
<path d="M5 13h-.5A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h7A1.5 1.5 0 0 1 13 4.5V5" stroke="currentColor" stroke-width="1.25"/>
|
|
259
|
+
</svg>
|
|
260
|
+
`,Vn=`
|
|
261
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
262
|
+
<path d="M12.5 5.5l2 2M4.5 13.5l8-8 2 2-8 8H4.5v-2z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
263
|
+
</svg>
|
|
264
|
+
`,Hn=`
|
|
265
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
266
|
+
<path d="M4.5 6.5h11" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
267
|
+
<path d="M8 6.5V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1.5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
268
|
+
<path d="M6.5 6.5l.5 8.5a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1l.5-8.5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
269
|
+
<path d="M8.5 9.5v3.5M11.5 9.5v3.5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
270
|
+
</svg>
|
|
271
|
+
`,Un=`
|
|
272
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
273
|
+
<circle cx="5" cy="10" r="1.25" fill="currentColor"/>
|
|
274
|
+
<circle cx="10" cy="10" r="1.25" fill="currentColor"/>
|
|
275
|
+
<circle cx="15" cy="10" r="1.25" fill="currentColor"/>
|
|
276
|
+
</svg>
|
|
277
|
+
`,Wn=`
|
|
278
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
279
|
+
<path d="M2.5 10h5M2.5 15V5M7.5 15V5m3.5 5 2-1.5V15" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
280
|
+
<path d="M16 7l2.5 3-2.5 3" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
281
|
+
</svg>
|
|
282
|
+
`,Gn=`
|
|
283
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
284
|
+
<path d="M2.5 10h5M2.5 15V5M7.5 15V5m7 10h-3c0-3 3-2.25 3-4.5 0-1.125-1.5-1.875-3-.75" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
285
|
+
<path d="M16 7l2.5 3-2.5 3" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
286
|
+
</svg>
|
|
287
|
+
`,Kn=`
|
|
288
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
289
|
+
<path d="M2.5 10h5M2.5 15V5M7.5 15V5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
290
|
+
<path d="M11 8.5c1.25-.75 2.5-.25 2.5.75 0 .75-1 1.25-1 1.25s1 .5 1 1.25c0 1-1.25 1.5-2.5.75" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
291
|
+
<path d="M16 7l2.5 3-2.5 3" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
292
|
+
</svg>
|
|
293
|
+
`,qn=`
|
|
294
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
295
|
+
<circle cx="10" cy="10" r="6" stroke="currentColor" stroke-width="1.25"/>
|
|
296
|
+
<path d="M10 4C8 6 7.5 8 7.5 10C7.5 12 8 14 10 16" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
297
|
+
<path d="M10 4C12 6 12.5 8 12.5 10C12.5 12 12 14 10 16" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
298
|
+
<path d="M4 10H16" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
299
|
+
</svg>
|
|
300
|
+
`,Jn=`
|
|
301
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
302
|
+
<rect x="3" y="5.5" width="14" height="9" rx="1.5" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"/>
|
|
303
|
+
<path d="M3 8L10 10L17 8" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
304
|
+
</svg>
|
|
305
|
+
`,Yn=`
|
|
306
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
307
|
+
<path d="M7.5 4L7.5 16" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
308
|
+
<path d="M12.5 4L12.5 16" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
309
|
+
<path d="M4 8H16" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
310
|
+
<path d="M4 12H16" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
311
|
+
</svg>
|
|
312
|
+
`,Xn=`
|
|
313
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
314
|
+
<path d="M4 4v12" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>
|
|
315
|
+
<path d="M9 6h7" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
316
|
+
<path d="M9 10h7" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
317
|
+
<path d="M9 14h5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
318
|
+
</svg>
|
|
319
|
+
`,Zn=`<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><line x1="9" y1="10" x2="15" y2="10"/><line x1="12" y1="7" x2="12" y2="13"/></svg>`,Qn=`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
320
|
+
<rect x="2.5" y="3" width="12" height="6" rx="1.5" stroke="currentColor" stroke-width="1.25"/>
|
|
321
|
+
<path d="M14.5 6H16a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-6a1 1 0 0 0-1 1V14" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
322
|
+
<rect x="8" y="14" width="3" height="3.5" rx="0.75" stroke="currentColor" stroke-width="1.25"/>
|
|
323
|
+
</svg>`,$n=`
|
|
324
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
325
|
+
<path d="M4 10h12" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
326
|
+
</svg>
|
|
327
|
+
`,er=`
|
|
328
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
329
|
+
<path d="m7 6-4 4 4 4m6-8 4 4-4 4" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
330
|
+
</svg>
|
|
331
|
+
`,tr=`
|
|
332
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
333
|
+
<path d="m6 7-3 3 3 3m8-6 3 3-3 3" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
334
|
+
<path d="m12 5-4 10" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
335
|
+
</svg>
|
|
336
|
+
`,nr=`
|
|
337
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
338
|
+
<path d="M10 3l2.2 4.4 4.8.7-3.5 3.4.8 4.8L10 14l-4.3 2.3.8-4.8L3 8.1l4.8-.7L10 3z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
339
|
+
</svg>
|
|
340
|
+
`,rr=`
|
|
341
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
342
|
+
<circle cx="10" cy="10" r="6.5" stroke="currentColor" stroke-width="1.25"/>
|
|
343
|
+
<circle cx="7.5" cy="8.5" r="0.75" fill="currentColor"/>
|
|
344
|
+
<circle cx="12.5" cy="8.5" r="0.75" fill="currentColor"/>
|
|
345
|
+
<path d="M7.5 12a3 3 0 0 0 5 0" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
346
|
+
</svg>
|
|
347
|
+
`,ir=`
|
|
348
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
349
|
+
<path d="M10 17v-7" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
350
|
+
<path d="M10 13c-3 0-6-2-6-5 3 0 6 2 6 5z" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"/>
|
|
351
|
+
<path d="M10 10c3 0 6-2.5 6-5.5-3 0-6 2.5-6 5.5z" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"/>
|
|
352
|
+
</svg>
|
|
353
|
+
`,ar=`
|
|
354
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
355
|
+
<path d="M5 3v4c0 1.1.9 2 2 2v8" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
356
|
+
<path d="M9 3v4c0 1.1-.9 2-2 2" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
357
|
+
<path d="M7 3v3" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
358
|
+
<path d="M13 3v14" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
359
|
+
<path d="M13 3c1.7 0 3 1.5 3 3.5S13 10 13 10" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"/>
|
|
360
|
+
</svg>
|
|
361
|
+
`,or=`
|
|
362
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
363
|
+
<circle cx="10" cy="10" r="6.5" stroke="currentColor" stroke-width="1.25"/>
|
|
364
|
+
<path d="M10 7.5l2.4 1.7-.9 2.8h-3l-.9-2.8z" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"/>
|
|
365
|
+
<path d="M10 7.5V4" stroke="currentColor" stroke-width="1.25"/>
|
|
366
|
+
<path d="M12.4 9.2l3.1-1.1" stroke="currentColor" stroke-width="1.25"/>
|
|
367
|
+
<path d="M11.5 12l2 2.6" stroke="currentColor" stroke-width="1.25"/>
|
|
368
|
+
<path d="M8.5 12l-2 2.6" stroke="currentColor" stroke-width="1.25"/>
|
|
369
|
+
<path d="M7.6 9.2l-3.1-1.1" stroke="currentColor" stroke-width="1.25"/>
|
|
370
|
+
</svg>
|
|
371
|
+
`,sr=`
|
|
372
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
373
|
+
<circle cx="10" cy="10" r="6.5" stroke="currentColor" stroke-width="1.25"/>
|
|
374
|
+
<ellipse cx="10" cy="10" rx="2.75" ry="6.5" stroke="currentColor" stroke-width="1.25"/>
|
|
375
|
+
<path d="M3.5 10h13" stroke="currentColor" stroke-width="1.25"/>
|
|
376
|
+
</svg>
|
|
377
|
+
`,cr=`
|
|
378
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
379
|
+
<path d="M8 13.5c-.25-1.5-1.5-3.5-2.5-5.5a4.5 4.5 0 0 1 9 0c-1 2-2.25 4-2.5 5.5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
380
|
+
<path d="M8 13.5v1.75c0 .41.34.75.75.75h2.5c.41 0 .75-.34.75-.75V13.5" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"/>
|
|
381
|
+
<path d="M8 14.75h4" stroke="currentColor" stroke-width="1.25"/>
|
|
382
|
+
<path d="M9.25 11l.75-3 .75 3" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
383
|
+
<circle cx="10" cy="7" r="1" stroke="currentColor" stroke-width="1"/>
|
|
384
|
+
</svg>
|
|
385
|
+
`,lr=`
|
|
386
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
387
|
+
<path d="M8.5 5l-1 10" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
388
|
+
<path d="M12.5 5l-1 10" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
389
|
+
<path d="M5 8h10" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
390
|
+
<path d="M5 12h10" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
391
|
+
</svg>
|
|
392
|
+
`,ur=`
|
|
393
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
394
|
+
<path d="M5 17V3" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
395
|
+
<path d="M5 3c2 0 3 1.5 5 1.5S14 3 16 3v8c-2 0-3 1.5-5 1.5S7 11 5 11" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
396
|
+
</svg>
|
|
397
|
+
`,dr=`
|
|
398
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
399
|
+
<ellipse cx="10" cy="5.5" rx="6" ry="2.5" stroke="currentColor" stroke-width="1.25"/>
|
|
400
|
+
<path d="M4 5.5v4c0 1.38 2.69 2.5 6 2.5s6-1.12 6-2.5v-4" stroke="currentColor" stroke-width="1.25"/>
|
|
401
|
+
<path d="M4 9.5v4c0 1.38 2.69 2.5 6 2.5s6-1.12 6-2.5v-4" stroke="currentColor" stroke-width="1.25"/>
|
|
402
|
+
</svg>
|
|
403
|
+
`,fr=`
|
|
404
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
405
|
+
<rect x="3" y="4" width="14" height="12" rx="1.5" stroke="currentColor" stroke-width="1.25"/>
|
|
406
|
+
<path d="M7.5 4v12M12.5 4v12" stroke="currentColor" stroke-width="1.25"/>
|
|
407
|
+
<rect x="4.5" y="6" width="1.5" height="2" rx="0.5" fill="currentColor"/>
|
|
408
|
+
<rect x="4.5" y="9" width="1.5" height="2" rx="0.5" fill="currentColor"/>
|
|
409
|
+
<rect x="9" y="6" width="1.5" height="2" rx="0.5" fill="currentColor"/>
|
|
410
|
+
<rect x="14" y="6" width="1.5" height="2" rx="0.5" fill="currentColor"/>
|
|
411
|
+
</svg>
|
|
412
|
+
`,pr=`
|
|
413
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
414
|
+
<circle cx="4.5" cy="6.5" r="1" fill="currentColor"/>
|
|
415
|
+
<circle cx="4.5" cy="10" r="1" fill="currentColor"/>
|
|
416
|
+
<circle cx="4.5" cy="13.5" r="1" fill="currentColor"/>
|
|
417
|
+
<path d="M7.5 6.5h9M7.5 10h9M7.5 13.5h9" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
418
|
+
</svg>
|
|
419
|
+
`,mr=`
|
|
420
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
421
|
+
<rect x="3" y="4.5" width="14" height="12" rx="1.5" stroke="currentColor" stroke-width="1.25"/>
|
|
422
|
+
<path d="M3 8.5h14" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
423
|
+
<path d="M7 3v3M13 3v3" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
424
|
+
<circle cx="7" cy="12" r="1" fill="currentColor"/>
|
|
425
|
+
<circle cx="10" cy="12" r="1" fill="currentColor"/>
|
|
426
|
+
<circle cx="13" cy="12" r="1" fill="currentColor"/>
|
|
427
|
+
</svg>
|
|
428
|
+
`,hr=`
|
|
429
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
430
|
+
<path d="M10 4v12" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-dasharray="1.5 2"/>
|
|
431
|
+
<path d="M5.5 7 8.5 10 5.5 13" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
432
|
+
<path d="M14.5 7 11.5 10 14.5 13" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
433
|
+
</svg>
|
|
434
|
+
`,gr=`<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M12 3v18"/><path d="M8 8l4 4-4 4"/><path d="M16 8l-4 4 4 4"/></svg>`,_r=`
|
|
435
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
436
|
+
<rect x="3" y="4" width="6" height="12" rx="1.5" stroke="currentColor" stroke-width="1.25"/>
|
|
437
|
+
<rect x="11" y="4" width="6" height="12" rx="1.5" stroke="currentColor" stroke-width="1.25"/>
|
|
438
|
+
</svg>
|
|
439
|
+
`,vr=`
|
|
440
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
441
|
+
<circle cx="6" cy="6" r="1.25" fill="currentColor"/>
|
|
442
|
+
<circle cx="10" cy="6" r="1.25" fill="currentColor"/>
|
|
443
|
+
<circle cx="14" cy="6" r="1.25" fill="currentColor"/>
|
|
444
|
+
<circle cx="6" cy="10" r="1.25" fill="currentColor"/>
|
|
445
|
+
<circle cx="10" cy="10" r="1.25" fill="currentColor"/>
|
|
446
|
+
<circle cx="14" cy="10" r="1.25" fill="currentColor"/>
|
|
447
|
+
<circle cx="6" cy="14" r="1.25" fill="currentColor"/>
|
|
448
|
+
<circle cx="10" cy="14" r="1.25" fill="currentColor"/>
|
|
449
|
+
<circle cx="14" cy="14" r="1.25" fill="currentColor"/>
|
|
450
|
+
</svg>
|
|
451
|
+
`,yr={"⌘":`⌘`,"⇧":`⇧`,"⌥":`⌥`,"⌃":`⌃`,"⌫":`⌫`,"⏎":`⏎`,"⎋":`⎋`,"␡":`⌦`,"↑":`↑`,"↓":`↓`,"←":`←`,"→":`→`,ctrl:`⌃`,alt:`⌥`,shift:`⇧`,enter:`↵`,backspace:`⌫`,escape:`⎋`,esc:`⎋`,delete:`⌦`,del:`Del`,tab:`⇥`,ins:`Ins`,win:`⊞`};function br(e){var t,n;let r=e.trim();return(t=(n=yr[r.toLowerCase()])==null?yr[r]:n)==null?r:t}function xr(e){let t=/([⌘⇧⌥⌃⌫⏎⎋⌦↑↓←→↵⇥])|([^⌘⇧⌥⌃⌫⏎⎋⌦↑↓←→↵⇥]+)/gu,n=[];for(let r of e.matchAll(t)){let e=r[0].trim();e&&n.push(e)}return n}function Sr(e){let t=e.length===1,n=t?13:11,r=t?13:7.5,i=Math.ceil(e.length*r);return`<svg xmlns="http://www.w3.org/2000/svg" width="${i}" height="16" viewBox="0 0 ${i} 16" style="display:inline-block;vertical-align:middle;flex-shrink:0" aria-hidden="true"><text x="${i/2}" y="9" text-anchor="middle" dominant-baseline="middle" font-family="-apple-system,BlinkMacSystemFont,'SF Pro Text','Helvetica Neue',sans-serif" font-size="${n}" font-weight="400" fill="currentColor">${e}</text></svg>`}function V(e){let t=e.split(` + `).flatMap(xr);return t.length===0?e:`<span style="display:inline-flex;align-items:center;line-height:1">${t.map(e=>Sr(br(e))).join(``)}</span>`}var Cr={"⌘":`Command`,"⇧":`Shift`,"⌥":`Option`,"⌃":`Control`,"⌫":`Backspace`,"⌦":`Delete`,"⏎":`Return`,"↵":`Return`,"⎋":`Escape`,"⇥":`Tab`,"↑":`Up`,"↓":`Down`,"←":`Left`,"→":`Right`,del:`Delete`,ins:`Insert`,"⊞":`Win`};function wr(e){let t=e.split(` + `).flatMap(xr);return t.length===0?e:t.map(e=>{var t,n;let r=e.trim(),i=r.toLowerCase();return(t=(n=Cr[r])==null?Cr[i]:n)==null?r.toUpperCase():t}).join(`+`)}var H={root:``,alignedStart:`text-start`,alignedCenter:`text-center`,title:``,description:`opacity-60 mt-[3px]`},Tr=class{constructor(e){let t=e.alignment===`center`?`center`:`start`;this.nodes={root:w.make(`div`,[H.root,t===`center`?H.alignedCenter:H.alignedStart]),title:w.make(`div`,H.title,{textContent:e.title})},this.nodes.root.setAttribute(`data-alignment`,t),this.nodes.root.appendChild(this.nodes.title),e.description!==void 0&&(this.nodes.description=w.make(`div`,H.description),this.nodes.description.innerHTML=V(e.description),this.nodes.root.appendChild(this.nodes.description))}getElement(){return this.nodes.root}},Er=class{constructor(e){this.params=e}get name(){if(this.params!==void 0&&`name`in this.params)return this.params.name}destroy(){Ot()}onChildrenOpen(){var e;this.params!==void 0&&`children`in this.params&&typeof((e=this.params.children)==null?void 0:e.onOpen)==`function`&&this.params.children.onOpen()}onChildrenClose(){var e;this.params!==void 0&&`children`in this.params&&typeof((e=this.params.children)==null?void 0:e.onClose)==`function`&&this.params.children.onClose()}handleClick(){var e,t;this.params!==void 0&&`onActivate`in this.params&&((e=(t=this.params).onActivate)==null||e.call(t,this.params))}addHint(e,t){kt(e,new Tr(t).getElement(),{placement:t.position})}getMountElement(){return this.getElement()}get children(){var e;return this.params!==void 0&&`children`in this.params&&((e=this.params.children)==null?void 0:e.items)!==void 0?this.params.children.items:[]}get hasChildren(){return this.children.length>0}get isChildrenOpen(){var e;return this.params!==void 0&&`children`in this.params&&((e=this.params.children)==null?void 0:e.isOpen)===!0}get isChevronHidden(){var e;return this.params!==void 0&&`children`in this.params&&((e=this.params.children)==null?void 0:e.hideChevron)===!0}get isChildrenFlippable(){var e;return!(this.params===void 0||!(`children`in this.params)||((e=this.params.children)==null?void 0:e.isFlippable)===!1)}get isChildrenSearchable(){var e;return this.params!==void 0&&`children`in this.params&&((e=this.params.children)==null?void 0:e.searchable)===!0}get childrenWidth(){var e;if(!(this.params===void 0||!(`children`in this.params)))return(e=this.params.children)==null?void 0:e.width}get childrenMinWidth(){var e;if(!(this.params===void 0||!(`children`in this.params)))return(e=this.params.children)==null?void 0:e.minWidth}get closeOnActivate(){return this.params!==void 0&&`closeOnActivate`in this.params&&this.params.closeOnActivate}get isActive(){return this.params===void 0||!(`isActive`in this.params)?!1:typeof this.params.isActive==`function`?this.params.isActive():this.params.isActive===!0}},U={item:`flex items-center select-none border-none bg-transparent rounded-lg px-2 py-1 text-text-primary mb-px outline-hidden max-h-9 overflow-hidden data-blok-popover-item-active:bg-icon-active-bg data-blok-popover-item-active:text-icon-active-text can-hover:hover:cursor-pointer can-hover:hover:bg-item-hover-bg data-blok-force-hover:cursor-pointer data-blok-force-hover:bg-item-hover-bg data-[blok-focused="true"]:bg-item-focus-bg data-blok-popover-item-no-hover:hover:bg-transparent data-blok-popover-item-no-hover:cursor-default can-hover:data-blok-popover-item-destructive:hover:text-item-destructive-text can-hover:data-blok-popover-item-destructive:hover:bg-item-destructive-hover-bg [&[data-blok-popover-item-destructive][data-blok-force-hover]]:text-item-destructive-text [&[data-blok-popover-item-destructive][data-blok-force-hover]]:bg-item-destructive-hover-bg [&[data-blok-popover-item-destructive][data-blok-focused="true"]]:text-item-destructive-text [&[data-blok-popover-item-destructive][data-blok-focused="true"]]:bg-item-destructive-hover-bg`,itemDisabled:`cursor-default pointer-events-none text-text-secondary`,icon:`flex items-center justify-center w-7 h-7 shrink-0 rounded-lg bg-popover-icon-bg [&_svg]:w-icon [&_svg]:h-icon`,focused:`is-focused`},Dr={item:`rounded-lg p-1`,itemIconOnly:`aspect-square justify-center`},Or={item:`rounded p-[3px] mobile:p-1`},W=class extends Er{get isDisabled(){return this.params.isDisabled===!0}get toggle(){return this.params.toggle}get title(){return this.params.title}get englishTitle(){return this.params.englishTitle}get searchTerms(){return this.params.searchTerms}get isConfirmationStateEnabled(){return this.confirmationState!==null}get isFocused(){return this.nodes.root===null?!1:this.nodes.root.hasAttribute(r.focused)}constructor(e,t){super(e),this.params=e,this.nodes={root:null,icon:null,titleEl:null,secondaryLabelEl:null,chevron:null},this.confirmationState=null,this.removeSpecialFocusBehavior=()=>{this.setNoFocus(!1)},this.removeSpecialHoverBehavior=()=>{this.setNoHover(!1)},this.renderParams=t,this.nodes.root=this.createRootElement(e,t)}getElement(){return this.nodes.root}handleClick(){if(this.isConfirmationStateEnabled&&this.confirmationState!==null){this.activateOrEnableConfirmationMode(this.confirmationState);return}this.activateOrEnableConfirmationMode(this.params)}toggleActive(e){if(this.nodes.root===null)return;let t=this.nodes.root.hasAttribute(r.popoverItemActive),n=e===void 0?!t:e;this.setActive(n)}toggleHidden(e){this.setHidden(e)}reset(){this.isConfirmationStateEnabled&&this.disableConfirmationMode()}onFocus(){this.disableSpecialHoverAndFocusBehavior()}createRootElement(e,n){var i,a;let o=(i=n==null?void 0:n.wrapperTag)==null?`div`:i,s=document.createElement(o);if(o===`button`&&s.setAttribute(`type`,`button`),s.className=this.getContainerClass(),s.setAttribute(r.popoverItem,``),s.setAttribute(`data-blok-testid`,`popover-item`),e.name&&s.setAttribute(`data-blok-item-name`,e.name),e.dataset&&Object.entries(e.dataset).forEach(([e,t])=>{s.setAttribute(`data-${e}`,t)}),e.isDisabled&&s.setAttribute(r.disabled,`true`),`isDestructive`in e&&e.isDestructive&&s.setAttribute(r.popoverItemDestructive,`true`),this.isActive&&s.setAttribute(r.popoverItemActive,`true`),this.hasChildren&&s.setAttribute(r.hasChildren,`true`),this.createContentElements(s,e,n),e.hint!==void 0&&(n==null||(a=n.hint)==null?void 0:a.enabled)!==!1&&e.hint!==void 0){var c,l;this.addHint(s,t.t(t.t({},e.hint),{},{position:(n==null||(c=n.hint)==null?void 0:c.position)||`right`,alignment:(n==null||(l=n.hint)==null?void 0:l.alignment)||`center`}))}return s}createContentElements(e,t,n){var i,a,o;let s=(i=n==null?void 0:n.iconWithGap)==null?!0:i,c=(a=n==null?void 0:n.isInline)==null?!1:a,l=(o=n==null?void 0:n.isNestedInline)==null?!1:o,u=t.title;if(t.icon&&(this.nodes.icon=this.createIconElement(t.icon,s,c,l),e.appendChild(this.nodes.icon)),u!==void 0){let n=document.createElement(`div`);n.className=t.secondaryLabel?`grow whitespace-nowrap text-[13px] font-medium leading-5`:`mr-auto whitespace-nowrap text-[13px] font-medium leading-5`,n.setAttribute(r.popoverItemTitle,``),n.setAttribute(`data-blok-testid`,`popover-item-title`),n.textContent=u,e.appendChild(n),this.nodes.titleEl=n}if(t.secondaryLabel){let n=document.createElement(`div`);if(n.className=`ml-auto shrink-0 inline-flex items-center whitespace-nowrap pl-20 leading-none text-text-secondary/60`,n.setAttribute(r.popoverItemSecondaryTitle,``),n.setAttribute(`data-blok-testid`,`popover-item-secondary-title`),n.innerHTML=V(t.secondaryLabel),e.appendChild(n),this.nodes.secondaryLabelEl=n,t.title!==void 0){var d;kt((d=n.firstElementChild)==null?n:d,wr(t.secondaryLabel),{placement:`top`})}}if(t.trailingIcon){let n=document.createElement(`div`);n.className=`ml-auto shrink-0 flex items-center justify-center [&_svg]:w-icon [&_svg]:h-icon`,n.setAttribute(`data-blok-testid`,`popover-item-trailing-icon`),n.innerHTML=t.trailingIcon,e.appendChild(n)}if(this.hasChildren&&!this.isChevronHidden){let t=document.createElement(`div`);t.className=this.getChevronClass(c),t.setAttribute(r.popoverItemIcon,``),t.setAttribute(r.popoverItemIconChevronRight,``),t.setAttribute(`data-blok-testid`,`popover-item-chevron-right`),t.innerHTML=vn,e.appendChild(t),this.nodes.chevron=t}}createIconElement(e,t,n,i){let a=document.createElement(`div`);return a.className=this.getIconClass(t,n,i),a.setAttribute(r.popoverItemIcon,``),a.setAttribute(`data-blok-testid`,`popover-item-icon`),a.innerHTML=e,t&&a.setAttribute(r.tool,``),a}getContainerClass(){var e,t,r,i;let a=(e=(t=this.renderParams)==null?void 0:t.isInline)==null?!1:e,o=(r=(i=this.renderParams)==null?void 0:i.isNestedInline)==null?!1:r;return n.n(U.item,!a&&!o&&`pl-2 pr-3`,a&&Dr.item,a&&this.params.icon&&Dr.itemIconOnly,o&&Or.item,this.params.isDisabled&&U.itemDisabled)}getIconClass(e,t,r){return n.n(U.icon,t&&`w-auto h-auto bg-transparent [&_svg]:w-icon [&_svg]:h-icon mobile:[&_svg]:w-icon-mobile mobile:[&_svg]:h-icon-mobile`,r&&`w-toolbox-btn h-toolbox-btn`,e&&`mr-3`,e&&t&&`shadow-none mr-0!`,e&&r&&`mr-2!`)}getChevronClass(e){return n.n(U.icon,`w-5 h-5 bg-transparent`,e&&`rotate-90`)}setActive(e){this.nodes.root&&(e?this.nodes.root.setAttribute(r.popoverItemActive,`true`):this.nodes.root.removeAttribute(r.popoverItemActive))}setHidden(e){this.nodes.root&&(e?(this.nodes.root.setAttribute(r.hidden,`true`),this.nodes.root.classList.add(`opacity-0`,`max-h-0!`,`py-0!`,`mb-0!`)):(this.nodes.root.removeAttribute(r.hidden),this.nodes.root.classList.remove(`opacity-0`,`max-h-0!`,`py-0!`,`mb-0!`)))}setFocused(e){this.nodes.root&&(e?(this.nodes.root.setAttribute(r.focused,`true`),this.nodes.root.classList.add(`bg-item-focus-bg!`)):(this.nodes.root.removeAttribute(r.focused),this.nodes.root.classList.remove(`bg-item-focus-bg!`)))}setNoHover(e){this.nodes.root&&(e?this.nodes.root.setAttribute(r.popoverItemNoHover,`true`):this.nodes.root.removeAttribute(r.popoverItemNoHover))}setNoFocus(e){this.nodes.root&&(e?this.nodes.root.setAttribute(r.popoverItemNoFocus,`true`):this.nodes.root.removeAttribute(r.popoverItemNoFocus))}enableConfirmationMode(e){if(this.nodes.root===null)return;let n=t.t(t.t(t.t({},this.params),e),{},{confirmation:`confirmation`in e?e.confirmation:void 0});this.setConfirmation(n),this.confirmationState=e,this.enableSpecialHoverAndFocusBehavior()}setConfirmation(e){if(this.nodes.root){if(e===null){this.clearConfirmationState();return}this.applyConfirmationState(e)}}clearConfirmationState(){this.nodes.root&&(this.nodes.root.removeAttribute(r.popoverItemConfirmation),this.nodes.root.classList.remove(`bg-item-confirm-bg!`,`text-white!`),this.restoreOriginalIcon(),this.restoreOriginalTitle(),this.restoreOriginalSecondaryLabel())}applyConfirmationState(e){this.nodes.root&&(this.nodes.root.setAttribute(r.popoverItemConfirmation,`true`),this.nodes.root.classList.add(`bg-item-confirm-bg!`,`text-white!`),this.updateIcon(e.icon),this.updateTitle(e),this.updateSecondaryLabel(e.secondaryLabel))}restoreOriginalIcon(){!this.nodes.icon||!this.params.icon||(this.nodes.icon.innerHTML=this.params.icon)}restoreOriginalTitle(){!this.nodes.titleEl||this.params.title===void 0||(this.nodes.titleEl.textContent=this.params.title)}restoreOriginalSecondaryLabel(){if(!this.nodes.secondaryLabelEl)return;let e=this.params.secondaryLabel;this.nodes.secondaryLabelEl.innerHTML=e?V(e):``,this.nodes.secondaryLabelEl.style.display=e?``:`none`}updateIcon(e){!this.nodes.icon||!e||(this.nodes.icon.innerHTML=e)}updateTitle(e){!this.nodes.titleEl||e.title===void 0||(this.nodes.titleEl.textContent=e.title)}updateSecondaryLabel(e){this.nodes.secondaryLabelEl&&(this.nodes.secondaryLabelEl.innerHTML=e?V(e):``,this.nodes.secondaryLabelEl.style.display=e?``:`none`)}disableConfirmationMode(){this.nodes.root!==null&&(this.setConfirmation(null),this.confirmationState=null,this.disableSpecialHoverAndFocusBehavior())}enableSpecialHoverAndFocusBehavior(){var e;this.setNoHover(!0),this.setNoFocus(!0),(e=this.nodes.root)==null||e.addEventListener(`mouseleave`,this.removeSpecialHoverBehavior,{once:!0})}disableSpecialHoverAndFocusBehavior(){var e;this.removeSpecialFocusBehavior(),this.removeSpecialHoverBehavior(),(e=this.nodes.root)==null||e.removeEventListener(`mouseleave`,this.removeSpecialHoverBehavior)}activateOrEnableConfirmationMode(e){if(!(`confirmation`in e)||e.confirmation===void 0)try{var t;(t=e.onActivate)==null||t.call(e,e),this.disableConfirmationMode()}catch(e){}else this.enableConfirmationMode(e.confirmation)}getIconElement(){return this.nodes.icon}},G={container:`py-1.5 px-2 max-h-5 overflow-hidden`,containerHidden:`opacity-0 max-h-0! py-0!`,line:`h-px w-full bg-popover-border/60`},K={container:`px-1 py-0 max-h-none`,line:`h-full w-px`,nestedContainer:`py-1 px-[3px]`,nestedLine:`w-full h-px`},kr=class extends Er{constructor(e){var t,n;super(),this.nodes={root:null,line:null},this.isInline=(t=e==null?void 0:e.isInline)==null?!1:t,this.isNestedInline=(n=e==null?void 0:e.isNestedInline)==null?!1:n,this.nodes.root=this.createRootElement()}getElement(){return this.nodes.root}toggleHidden(e){if(!this.nodes.root)return;let t=this.getContainerClass(!1),n=this.getContainerClass(!0);this.nodes.root.className=e?n:t,e?this.nodes.root.setAttribute(r.hidden,`true`):this.nodes.root.removeAttribute(r.hidden)}getContainerClass(e){let t=G.container;return this.isNestedInline?n.n(t,K.nestedContainer,e&&G.containerHidden):this.isInline?n.n(t,K.container,e&&G.containerHidden):n.n(t,e&&G.containerHidden)}getLineClass(){return this.isNestedInline?n.n(G.line,K.nestedLine):this.isInline?n.n(G.line,K.line):G.line}createRootElement(){let e=document.createElement(`div`);e.className=this.getContainerClass(!1),e.setAttribute(r.popoverItemSeparator,``),e.setAttribute(`data-blok-testid`,`popover-item-separator`);let t=document.createElement(`div`);return t.className=this.getLineClass(),t.setAttribute(r.popoverItemSeparatorLine,``),e.appendChild(t),this.nodes.line=t,e}},q={root:``,rootHidden:`hidden`},Ar={root:`flex items-center`},J=class extends Er{constructor(e,t){var n;super(e),this.nodes={root:null},this.isHidden=!1,this.isInline=(n=t==null?void 0:t.isInline)==null?!1:n,this.nodes.root=this.createRootElement(e,t)}getElement(){return this.nodes.root}toggleHidden(e){this.isHidden=e,this.updateRootClasses(),this.nodes.root&&(e?this.nodes.root.setAttribute(r.hidden,`true`):this.nodes.root.removeAttribute(r.hidden))}getControls(){if(!this.nodes.root)return[];let e=this.nodes.root.querySelectorAll(`button, ${w.allInputsSelector}`);return Array.from(e)}updateRootClasses(){this.nodes.root&&(this.nodes.root.className=n.n(q.root,this.isInline&&Ar.root,this.isHidden&&q.rootHidden))}createRootElement(e,i){var a;let o=document.createElement(`div`);if(o.className=n.n(q.root,this.isInline&&Ar.root),o.setAttribute(r.popoverItemHtml,``),o.setAttribute(`data-blok-testid`,`popover-item-html`),e.name&&o.setAttribute(`data-blok-item-name`,e.name),o.appendChild(e.element),e.hint!==void 0&&(i==null||(a=i.hint)==null?void 0:a.enabled)!==!1){var s,c;this.addHint(o,t.t(t.t({},e.hint),{},{position:(i==null||(s=i.hint)==null?void 0:s.position)||`right`,alignment:(i==null||(c=i.hint)==null?void 0:c.alignment)||`center`}))}return o}},jr={wrapper:`bg-search-input-bg border border-search-input-border rounded-lg p-1 grid grid-cols-[auto_1fr] grid-rows-[auto] focus-within:border-search-input-focus-border focus-within:shadow-[0_0_0_2px_rgba(35,131,226,0.15)]`,icon:`w-toolbox-btn h-toolbox-btn flex items-center justify-center mr-2 [&_svg]:w-icon [&_svg]:h-icon [&_svg]:text-gray-text`,input:`text-sm outline-hidden font-medium font-inherit border-0 bg-transparent m-0 p-0 leading-[22px] min-w-[calc(100%-(--spacing(6))-10px)] text-text-primary placeholder:text-gray-text/80 placeholder:font-normal`},Mr=(e,t)=>{if(e.length===0)return t.length;if(t.length===0)return e.length;let n=Array.from({length:t.length+1},(e,t)=>t),r=Array(t.length+1);for(let[i,a]of[...e].entries()){r[0]=i+1;for(let[e,i]of[...t].entries()){let t=e+1,o=a===i?0:1;r[t]=Math.min(n[t]+1,r[t-1]+1,n[t-1]+o)}n.splice(0,n.length,...r)}return n[t.length]},Nr=(e,t)=>[...e].reduce((e,n)=>e<t.length&&n===t[e]?e+1:e,0)===t.length,Pr=(e,t)=>[...e].reduce((n,r,i)=>{let a=i===0||e[i-1]===` `||e[i-1]===`-`||e[i-1]===`_`;return n<t.length&&a&&r===t[n]?n+1:n},0)===t.length,Fr=(e,t)=>{if(e===t)return 100;if(e.startsWith(t))return 90;if(e.includes(t))return 75;if(t.length>=2&&Pr(e,t))return 55;if(t.length>=2&&Nr(e,t))return 35;if(t.length>=3){let n=Math.floor(t.length/3);if(Mr(e,t)<=n)return 15}return 0},Y=(e,t)=>{if(t===``)return 100;let n=t.toLowerCase(),r=[];if(e.title!==void 0&&r.push(e.title.toLowerCase()),e.englishTitle!==void 0&&r.push(e.englishTitle.toLowerCase()),e.searchTerms!==void 0)for(let t of e.searchTerms)r.push(t.toLowerCase());return r.reduce((e,t)=>{let r=Fr(t,n);return r>e?r:e},0)},Ir=function(e){return e.Search=`search`,e}({}),Lr=class extends Le{constructor({items:e,placeholder:t}){super(),this.searchQuery=``,this.handleValueChange=()=>{this.applySearch(this.input.value)},this.listeners=new De,this.items=e,this.wrapper=w.make(`div`,jr.wrapper),this.wrapper.setAttribute(`data-blok-testid`,`popover-search-field`);let n=w.make(`div`,jr.icon,{innerHTML:yn});this.input=w.make(`input`,jr.input,{type:`search`,placeholder:t,tabIndex:-1}),this.input.setAttribute(`data-blok-flipper-navigation-target`,`true`),this.input.setAttribute(`data-blok-testid`,`popover-search-input`),this.wrapper.appendChild(n),this.wrapper.appendChild(this.input),this.overrideValueProperty(),[`input`,`keyup`,`search`,`change`].forEach(e=>{this.listeners.on(this.input,e,this.handleValueChange)})}getElement(){return this.wrapper}focus(){this.input.focus()}clear(){this.input.value=``}applySearch(e){this.searchQuery!==e&&(this.searchQuery=e,this.emit(Ir.Search,{query:e,items:this.foundItems}))}overrideValueProperty(){var e,t;let n=Object.getPrototypeOf(this.input),r=Object.getOwnPropertyDescriptor(n,`value`);if((r==null?void 0:r.set)===void 0||r.get===void 0)return;let i=this.applySearch.bind(this),a=r.get,o=r.set;Object.defineProperty(this.input,`value`,{configurable:(e=r.configurable)==null?!0:e,enumerable:(t=r.enumerable)==null?!1:t,get(){let e=a==null?void 0:a.call(this);return typeof e==`string`?e:``},set(e){o==null||o.call(this,e),i(e)}})}destroy(){this.listeners.removeAll()}get foundItems(){return this.items.map(e=>({item:e,score:Y(e,this.searchQuery)})).filter(({score:e})=>e>0).sort((e,t)=>t.score-e.score).map(({item:e})=>e)}},Rr,X=class e{constructor(){this.stack=[],this.boundPointerDown=null}static get instance(){return e._instance===null&&(e._instance=new e),e._instance}static resetForTests(){var t;return(t=e._instance)==null||t.destroy(),e._instance=new e,e._instance}register(e,t){let n=[...this.stack];for(let t of n)t.popover!==e&&(t.popover.hide(),this.removeFromStack(t.popover));this.stack.push({popover:e,triggerElement:t}),this.ensureDocumentListener()}unregister(e){this.removeFromStack(e),this.stack.length===0&&this.removeDocumentListener()}closeTopmost(){return this.stack.length===0?!1:(this.stack[this.stack.length-1].popover.hide(),!0)}hasOpenPopovers(){return this.stack.length>0}destroy(){this.removeDocumentListener(),this.stack=[]}handleDocumentPointerDown(e){let t=e.target;if(!(t instanceof Node))return;let n=[];for(let e of[...this.stack].reverse()){if(e.popover.hasNode(t)||e.triggerElement.contains(t))break;n.push(e)}for(let e of n)e.popover.hide()}ensureDocumentListener(){this.boundPointerDown===null&&(this.boundPointerDown=e=>this.handleDocumentPointerDown(e),document.addEventListener(`pointerdown`,this.boundPointerDown))}removeDocumentListener(){this.boundPointerDown!==null&&(document.removeEventListener(`pointerdown`,this.boundPointerDown),this.boundPointerDown=null)}removeFromStack(e){let t=this.stack.findIndex(t=>t.popover===e);t!==-1&&this.stack.splice(t,1)}};Rr=X,Rr._instance=null;var Z={popoverContainer:`absolute flex flex-col overflow-hidden box-border opacity-0 pointer-events-none p-0 border-none z-4 max-h-0 min-w-(--width) w-(--width) rounded-xl text-sm left-(--popover-left) top-(--popover-top) bg-popover-bg`,popoverContainerMobile:`fixed max-w-none rounded-[10px] min-w-[calc(100%-var(--offset)*2)] left-auto top-auto inset-[auto_var(--offset)_calc(var(--offset)+env(safe-area-inset-bottom))_var(--offset)]`,popoverContainerOpened:`opacity-100 pointer-events-auto p-1.5 max-h-(--max-height) border-none`,popoverOverlay:`hidden bg-dark`,items:`overflow-y-auto overscroll-contain`,scrollHaze:`absolute inset-x-0 h-6 pointer-events-none z-1 transition-opacity duration-300 ease-in-out`},zr={popover:`relative`,popoverContainer:`flex-row top-0 min-w-max w-max p-1 mobile:absolute`},Br=e=>`level-${e}`,Q=function(e){return e.NestingLevel=`--nesting-level`,e.PopoverHeight=`--popover-height`,e.InlinePopoverWidth=`--inline-popover-width`,e.PopoverTop=`--popover-top`,e.PopoverLeft=`--popover-left`,e.TriggerItemLeft=`--trigger-item-left`,e.TriggerItemTop=`--trigger-item-top`,e}({}),$=function(e){return e.Closed=`closed`,e.ClosedOnActivate=`closed-on-activate`,e}({}),Vr=class extends Le{get itemsDefault(){return this.items.filter(e=>e instanceof W)}constructor(e,n={}){super(),this.params=e,this.itemsRenderParams=n,this.listeners=new De,this.messages={nothingFound:`Nothing found`,search:`Search`},this.permanentlyHiddenNames=new Set,this.items=this.buildItems(e.items),e.messages&&(this.messages=t.t(t.t({},this.messages),e.messages)),this.nodes=this.createPopoverDOM(),this.appendItemElements(),this.nodes.popoverContainer&&this.listeners.on(this.nodes.popoverContainer,`click`,e=>this.handleClick(e)),this.nodes.items&&this.listeners.on(this.nodes.items,`scroll`,()=>this.updateScrollHazes())}getElement(){return this.nodes.popover}getMountElement(){return this.nodes.popover}get isShown(){return this.nodes.popover.hasAttribute(r.popoverOpened)}show(){var e;let t=this.nodes.popover;t!==null&&!t.isConnected&&document.body.appendChild(t),this.nodes.popover.setAttribute(r.popoverOpened,`true`),this.nodes.popoverContainer.className=n.n(this.nodes.popoverContainer.className,Z.popoverContainerOpened),this.itemsDefault.forEach(e=>this.refreshItemActiveState(e)),this.search!==void 0&&this.search.focus(),this.nodes.scrollHazeTop.style.transition=`none`,this.nodes.scrollHazeBottom.style.transition=`none`,this.updateScrollHazes(),requestAnimationFrame(()=>{this.nodes.scrollHazeTop.style.transition=``,this.nodes.scrollHazeBottom.style.transition=``});let{trigger:i}=this.params;((e=this.params.nestingLevel)==null?0:e)===0&&i!==void 0&&X.instance.register(this,i)}hide(){this.nodes.popover.removeAttribute(r.popoverOpened),this.nodes.popover.removeAttribute(r.popoverOpenTop),this.nodes.popover.removeAttribute(r.popoverOpenLeft),this.nodes.popoverContainer.className=Z.popoverContainer,this.itemsDefault.forEach(e=>e.reset()),this.nodes.scrollHazeTop.style.opacity=`0`,this.nodes.scrollHazeBottom.style.opacity=`0`,this.search!==void 0&&this.search.clear(),X.instance.unregister(this),this.emit($.Closed)}destroy(){var e,t;this.items.forEach(e=>e.destroy()),(e=this.nodes.popover)==null||e.remove(),this.listeners.removeAll(),(t=this.search)==null||t.destroy()}filterItems(e){}toggleItemHiddenByName(e,t){this.items.filter(t=>t.name===e).forEach(e=>e.toggleHidden(t)),t?this.permanentlyHiddenNames.add(e):this.permanentlyHiddenNames.delete(e)}isNamePermanentlyHidden(e){return this.permanentlyHiddenNames.has(e)}activateItemByName(e){let t=this.items.find(t=>t.name===e);t!==void 0&&this.handleItemClick(t)}buildItems(e){return e.map(e=>{switch(e.type){case j.Separator:return new kr(this.itemsRenderParams[j.Separator]);case j.Html:return new J(e,this.itemsRenderParams[j.Html]);case j.Default:case void 0:return new W(e,this.itemsRenderParams[j.Default])}})}getTargetItem(e){return this.items.filter(e=>e instanceof W||e instanceof J).find(t=>{let n=t.getElement();return n===null?!1:e.composedPath().includes(n)})}handleItemClick(e){if(!(e instanceof W&&e.isDisabled)){if(e.hasChildren){this.showNestedItems(e),this.callHandleClickIfPresent(e);return}this.itemsDefault.filter(t=>t!==e).forEach(e=>e.reset()),this.callHandleClickIfPresent(e),this.toggleItemActivenessIfNeeded(e),this.refreshItemActiveState(e),e.closeOnActivate===!0&&(this.hide(),this.emit($.ClosedOnActivate))}}handleClick(e){let t=this.getTargetItem(e);t!==void 0&&this.handleItemClick(t)}toggleItemActivenessIfNeeded(e){if(!(e instanceof W)||(e.toggle===!0&&e.toggleActive(),typeof e.toggle!=`string`))return;let t=this.itemsDefault.filter(t=>t.toggle===e.toggle);if(t.length===1){e.toggleActive();return}t.forEach(t=>{t.toggleActive(t===e)})}refreshItemActiveState(e){e instanceof W&&e.toggle===void 0&&e.toggleActive(e.isActive)}callHandleClickIfPresent(e){`handleClick`in e&&typeof e.handleClick==`function`&&e.handleClick()}toggleNothingFoundMessage(e){e?(this.nodes.nothingFoundMessage.classList.remove(`hidden`),this.nodes.nothingFoundMessage.setAttribute(r.nothingFoundDisplayed,`true`)):(this.nodes.nothingFoundMessage.classList.add(`hidden`),this.nodes.nothingFoundMessage.removeAttribute(r.nothingFoundDisplayed))}setOpenTop(e){e?this.nodes.popover.setAttribute(r.popoverOpenTop,`true`):this.nodes.popover.removeAttribute(r.popoverOpenTop)}setOpenLeft(e){e?this.nodes.popover.setAttribute(r.popoverOpenLeft,`true`):this.nodes.popover.removeAttribute(r.popoverOpenLeft)}updateScrollHazes(){let{items:e,scrollHazeTop:t,scrollHazeBottom:n}=this.nodes,r=e.scrollHeight>e.clientHeight,i=e.scrollTop<=0,a=e.scrollTop+e.clientHeight>=e.scrollHeight-1;t.style.opacity=r&&!i?`1`:`0`,n.style.opacity=r&&!a?`1`:`0`,t.style.top=`${e.offsetTop}px`,n.style.top=`${e.offsetTop+e.clientHeight-n.offsetHeight}px`}hasNode(e){return this.nodes.popover.contains(e)}createPopoverDOM(){var e,t;let i=document.createElement(`div`);this.params.class&&(i.className=this.params.class),i.setAttribute(r.popover,``),this.params.class&&i.setAttribute(`data-blok-popover-custom-class`,this.params.class),i.setAttribute(`data-blok-testid`,`popover`),i.style.setProperty(`--width`,(e=this.params.width)==null?`auto`:e),i.style.setProperty(`--item-padding`,`4px`),i.style.setProperty(`--item-height`,`calc(1.75rem + 2 * var(--item-padding))`),i.style.setProperty(`--popover-top`,`calc(100% + 0.5rem)`),i.style.setProperty(`--popover-left`,`0`),i.style.setProperty(`--nested-popover-overlap`,`0.25rem`),i.style.setProperty(`--max-height`,`400px`);let a=document.createElement(`div`);a.className=Z.popoverContainer,a.style.boxShadow=`var(--blok-popover-box-shadow)`,a.setAttribute(r.popoverContainer,``),a.setAttribute(`data-blok-testid`,`popover-container`);let o=document.createElement(`div`);o.className=n.n(`cursor-default text-[13px] leading-5 font-normal whitespace-nowrap overflow-hidden text-ellipsis text-gray-text px-3 py-4 text-center`,`hidden`),o.setAttribute(`data-blok-testid`,`popover-nothing-found`),o.textContent=(t=this.messages.nothingFound)==null?`Nothing found`:t;let s=document.createElement(`div`);s.className=Z.items,s.setAttribute(r.popoverItems,``),s.setAttribute(`data-blok-testid`,`popover-items`);let c=document.createElement(`div`);c.className=Z.scrollHaze,c.style.background=`linear-gradient(to bottom, var(--blok-popover-bg), transparent)`,c.style.opacity=`0`;let l=document.createElement(`div`);return l.className=Z.scrollHaze,l.style.background=`linear-gradient(to top, var(--blok-popover-bg), transparent)`,l.style.opacity=`0`,a.appendChild(o),a.appendChild(s),a.appendChild(c),a.appendChild(l),i.appendChild(a),{popover:i,popoverContainer:a,nothingFoundMessage:o,items:s,scrollHazeTop:c,scrollHazeBottom:l}}appendItemElements(){this.items.forEach(e=>{var t,n,r;let i=(t=(n=e.getMountElement)==null?void 0:n.call(e))==null?e.getElement():t;i!==null&&((r=this.nodes.items)==null||r.appendChild(i))})}};function Hr(e,t,n){return e<=t?!1:e<=n}function Ur(e){var t;let{anchor:n,popoverSize:r,scopeBounds:i,viewportSize:a,scrollOffset:o,offset:s=8,leftAlignRect:c}=e,l=Math.min(a.height,i.bottom),u=Math.max(0,i.top),d=l-n.bottom-s,f=n.top-s-u,p=Hr(r.height,d,f),m=p?n.top-s-r.height+o.y:n.bottom+s+o.y,h=i.top+o.y,g=m<h?h:m,_=Math.min(a.width,i.right),v=Math.max(0,i.left),y=((t=c==null?void 0:c.left)==null?n.left:t)+o.x,ee=n.right+o.x,te=_+o.x-y,ne=ee-v-o.x,b=Hr(r.width,te,ne),x=b?Math.max(v+o.x,n.right-r.width+o.x):y;return{top:g,left:x+r.width>_+o.x?Math.max(v+o.x,_+o.x-r.width):x,openTop:p,openLeft:b}}var Wr=class e extends Vr{setLeftAlignElement(e){this.leftAlignElement=e}constructor(e,t){var n;if(super(e,t),this.nestingLevel=0,this.nestedPopoverTriggerItem=null,this.previouslyHoveredItem=null,this.scopeElement=document.body,this.promotedItemCache=null,this.promotedSeparators=[],this.hide=()=>{var e;this.cleanupPromotedItems(),super.hide(),this.destroyNestedPopoverIfExists(),(e=this.flipper)==null||e.deactivate(),this.previouslyHoveredItem=null,this.params.position=void 0,this.nodes.popover.style.top=``,this.nodes.popover.style.left=``},this.onFlip=()=>{let e=this.itemsDefault.find(e=>e.isFocused);e==null||e.onFocus()},this.onSearch=e=>{var t;let n=e.query===``,i=e.topLevelItems,a=!n&&e.promotedItems.length>0?this.deduplicateAgainstPromoted(i,e.promotedItems):i,o=a.length===0&&e.promotedItems.length===0;this.items.forEach(e=>{let t=e instanceof W,r=e instanceof kr||e instanceof J,i=t?!a.includes(e)||e.name!==void 0&&this.isNamePermanentlyHidden(e.name):r&&(o||!n);e.toggleHidden(i)}),this._size=void 0,!n&&a.length>0?this.reorderItemsByRank(a):n&&this.originalItemOrder!==void 0&&this.restoreOriginalItemOrder();for(let e of this.promotedSeparators)e.remove();if(this.promotedSeparators=[],this.promotedItemCache!==null)for(let e of this.promotedItemCache.items){var s;(s=e.getElement())==null||s.remove()}if(e.promotedItems.length>0){let t=new Map;for(let n of e.promotedItems){let e=n.chain.join(` › `),r=t.get(e);r===void 0?t.set(e,[{item:n.item,score:n.score}]):r.push({item:n.item,score:n.score})}let n=[...t.entries()].sort((e,t)=>{let n=Math.max(...e[1].map(e=>e.score));return Math.max(...t[1].map(e=>e.score))-n});for(let[e,t]of n){var c;let n=this.createGroupSeparator(e);this.promotedSeparators.push(n),(c=this.nodes.items)==null||c.appendChild(n),this.appendPromotedGroupElements(t)}}if(this.toggleNothingFoundMessage(o),this.updateScrollHazes(),this.trigger&&this.nodes.popover.hasAttribute(r.popoverOpened)){let{top:e,left:t,openTop:n,openLeft:r}=this.calculatePosition();this.nodes.popover.style.top=`${e}px`,this.nodes.popover.style.left=`${t}px`,this.setOpenTop(n),this.setOpenLeft(r)}let l=n?this.flippableElements:a.map(e=>e.getElement()),u=e.promotedItems.map(({item:e})=>e.getElement()),d=[...l,...u].filter(e=>e!==null);(t=this.flipper)!=null&&t.isActivated&&(this.flipper.deactivate(),this.flipper.activate(d),d.length>0&&this.flipper.focusItem(0,{skipNextTab:!0}))},e.trigger&&(this.trigger=e.trigger),e.leftAlignElement&&(this.leftAlignElement=e.leftAlignElement),e.nestingLevel!==void 0&&(this.nestingLevel=e.nestingLevel),this.nestingLevel>0&&this.nodes.popover.setAttribute(r.nested,`true`),e.scopeElement!==void 0&&(this.scopeElement=e.scopeElement),this.nodes.popoverContainer!==null&&(this.listeners.on(this.nodes.popoverContainer,`mouseover`,e=>this.handleHover(e)),this.listeners.on(this.nodes.popoverContainer,`mouseleave`,e=>this.handleMouseLeave(e))),e.searchable&&this.addSearch(),e.flippable===!1)return;let i=e.flipper;i===void 0?this.flipper=new Lt({items:this.flippableElements,focusedItemClass:U.focused,allowedKeys:[a.TAB,a.UP,a.DOWN,a.ENTER,a.RIGHT,a.LEFT],onArrowLeft:e.onNavigateBack,handleContentEditableTargets:e.handleContentEditableNavigation}):(i.deactivate(),i.removeOnFlip(this.onFlip),this.flipper=i),(n=this.flipper)==null||n.onFlip(this.onFlip)}hasFocus(){return this.flipper===void 0?!1:this.flipper.hasFocus()}toggleItemHiddenByName(e,t){super.toggleItemHiddenByName(e,t),this._size=void 0}get scrollTop(){return this.nodes.items===null?0:this.nodes.items.scrollTop}get offsetTop(){return this.nodes.popoverContainer===null?0:this.nodes.popoverContainer.offsetTop}show(){var e;let t=this.getMountElement();if(this.trigger&&t&&document.body.appendChild(t),this.trigger){let{top:e,left:t,openTop:n,openLeft:r}=this.calculatePosition();this.nodes.popover.style.position=`absolute`,this.nodes.popover.style.top=`${e}px`,this.nodes.popover.style.left=`${t}px`,this.nodes.popover.style.setProperty(Q.PopoverTop,`0px`),this.nodes.popover.style.setProperty(Q.PopoverLeft,`0px`),this.setOpenTop(n),this.setOpenLeft(r)}let n=this.size;if(this.nodes.popover.style.setProperty(Q.PopoverHeight,n.height+`px`),this.params.width===void 0||this.params.width===`auto`){let e=this.params.minWidth===void 0?0:parseFloat(this.params.minWidth),t=Math.max(n.width,e);this.nodes.popover.style.setProperty(`--width`,t+`px`)}if(!this.trigger){let{openTop:e,openLeft:t}=Ur({anchor:this.nodes.popoverContainer.getBoundingClientRect(),popoverSize:n,scopeBounds:this.scopeElement.getBoundingClientRect(),viewportSize:{width:window.innerWidth,height:window.innerHeight},scrollOffset:{x:window.scrollX,y:window.scrollY},offset:0});e&&(this.setOpenTop(!0),this.nodes.popover.style.setProperty(Q.PopoverTop,`calc(-1 * (0.5rem + var(--popover-height)))`)),t&&(this.setOpenLeft(!0),this.nodes.popover.style.setProperty(Q.PopoverLeft,`calc(-1 * var(--width) + 100%)`))}super.show(),(e=this.flipper)==null||e.activate(this.flippableElements),queueMicrotask(()=>{this.focusInitialElement()})}focusInitialElement(){var e;if(this.search){this.search.focus();return}this.params.autoFocusFirstItem!==!1&&((e=this.flipper)==null||e.focusItem(0,{skipNextTab:!0}))}updatePosition(e){if(this.params.position=e,this.nodes.popover.hasAttribute(`data-blok-popover-opened`)){let{top:e,left:t,openTop:n,openLeft:r}=this.calculatePosition();this.nodes.popover.style.top=`${e}px`,this.nodes.popover.style.left=`${t}px`,this.setOpenTop(n),this.setOpenLeft(r)}}calculatePosition(){var e,t;let n=this.params.position,r=n==null?(e=this.trigger)==null?void 0:e.getBoundingClientRect():n;if(!r)return{top:0,left:0,openTop:!1,openLeft:!1};let i=n===void 0?(t=this.leftAlignElement)==null?void 0:t.getBoundingClientRect():void 0;return Ur({anchor:r,popoverSize:this.size,scopeBounds:this.scopeElement.getBoundingClientRect(),viewportSize:{width:window.innerWidth,height:window.innerHeight},scrollOffset:{x:window.scrollX,y:window.scrollY},offset:8,leftAlignRect:i})}destroy(){this.hide(),super.destroy()}hasNode(e){return super.hasNode(e)?!0:this.nestedPopover!==void 0&&this.nestedPopover!==null?this.nestedPopover.hasNode(e):!1}showNestedItems(e){this.nestedPopover!==null&&this.nestedPopover!==void 0||(this.nestedPopoverTriggerItem=e,this.showNestedPopoverForItem(e))}handleHover(e){let t=this.getTargetItem(e);t!==void 0&&this.previouslyHoveredItem!==t&&(this.nestedPopover!==void 0&&this.nestedPopover!==null&&e.target instanceof Node&&this.nestedPopover.hasNode(e.target)||(this.destroyNestedPopoverIfExists(!1),this.previouslyHoveredItem=t,t.hasChildren&&this.showNestedPopoverForItem(t)))}handleMouseLeave(e){let t=e.relatedTarget;t instanceof Node&&this.nestedPopover!==void 0&&this.nestedPopover!==null&&this.nestedPopover.hasNode(t)||(this.destroyNestedPopoverIfExists(!1),this.previouslyHoveredItem=null)}getTargetItem(e){return(this.promotedItemCache===null?this.items:[...this.items,...this.promotedItemCache.items]).filter(e=>e instanceof W||e instanceof J).find(t=>{let n=t.getElement();return n===null?!1:e.composedPath().includes(n)})}setTriggerItemPosition(e,t){let n=t.getElement(),i=(n?n.offsetTop:0)-this.scrollTop,a=this.offsetTop+i,o=e.querySelector(`[${r.popover}]`);(o instanceof HTMLElement?o:e).style.setProperty(Q.TriggerItemTop,a+`px`)}destroyNestedPopoverIfExists(e=!0){var t,n,r;if(this.nestedPopover===void 0||this.nestedPopover===null)return;let i=(t=this.nestedPopoverTriggerItem)==null?void 0:t.getElement(),a=this.nestedPopover.getElement();this.nestedPopover.off($.ClosedOnActivate,this.hide),this.nestedPopover.hide(),this.nestedPopover.destroy(),a.remove(),this.nestedPopover=null,(n=this.flipper)==null||n.activate(this.flippableElements),e&&this.focusAfterNestedPopoverClose(i),(r=this.nestedPopoverTriggerItem)==null||r.onChildrenClose(),this.nestedPopoverTriggerItem=null}focusAfterNestedPopoverClose(e){if(!e||!this.flipper){var t;(t=this.flipper)==null||t.focusFirst();return}let n=this.flippableElements.indexOf(e);if(n!==-1){this.flipper.focusItem(n,{skipNextTab:!1});return}this.flipper.focusFirst()}showNestedPopoverForItem(t){var n,r;let i=(n=this.flipper)==null?void 0:n.getHandleContentEditableTargets();this.nestedPopover=new e({searchable:t.isChildrenSearchable,items:t.children,nestingLevel:this.nestingLevel+1,flippable:t.isChildrenFlippable,messages:this.messages,onNavigateBack:this.destroyNestedPopoverIfExists.bind(this),width:t.childrenWidth,minWidth:t.childrenMinWidth,handleContentEditableNavigation:i,autoFocusFirstItem:this.params.autoFocusFirstItem}),t.onChildrenOpen(),this.nestedPopover.on($.ClosedOnActivate,this.hide);let a=this.nestedPopover.getMountElement(),o=this.nestedPopover.getElement();return this.nodes.popover.appendChild(a),this.setTriggerItemPosition(a,t),o.style.setProperty(Q.NestingLevel,this.nestedPopover.nestingLevel.toString()),this.applyNestedPopoverPositioning(a),this.listeners.on(a,`click`,()=>{this.nestedPopoverTriggerItem!==null&&this.refreshItemActiveState(this.nestedPopoverTriggerItem)}),this.nestedPopover.show(),(r=this.flipper)==null||r.deactivate(),this.nestedPopover}applyNestedPopoverPositioning(e){let t=e.querySelector(`[${r.popoverContainer}]`);if(!(t instanceof HTMLElement))return;let n=t,i=e.querySelector(`[${r.popover}]`),a=i instanceof HTMLElement?i:e;this.nodes.popover.hasAttribute(r.popoverOpenTop);let o=this.nodes.popover.hasAttribute(r.popoverOpenLeft);n.style.position=`absolute`;let s=this.params.width===void 0||this.params.width===`auto`?`${this.nodes.popoverContainer.offsetWidth}px`:`var(--width)`;o?a.style.setProperty(Q.PopoverLeft,`calc(-1 * (var(--nesting-level) + 1) * ${s} + 100%)`):a.style.setProperty(Q.PopoverLeft,`calc(var(--nesting-level) * (${s} - var(--nested-popover-overlap)))`),n.style.top=`calc(var(--trigger-item-top) - var(--popover-height) / 2 + var(--item-height) / 2)`}get size(){var e;if(this._size)return this._size;let t={height:0,width:0};if(this.nodes.popover===null)return t;let i=this.nodes.popover.cloneNode(!0);i.style.visibility=`hidden`,i.style.position=`absolute`,i.style.top=`-1000px`,i.setAttribute(r.popoverOpened,`true`),(e=i.querySelector(`[${r.nested}]`))==null||e.remove();let a=i.querySelector(`[${r.popoverContainer}]`);return a.className=n.n(a.className,Z.popoverContainerOpened),document.body.appendChild(i),t.height=a.offsetHeight,t.width=a.offsetWidth,i.remove(),this._size=t,t}invalidateSizeCache(){this._size=void 0}get flippableElements(){return this.items.flatMap(e=>this.getFlippableElementsForItem(e)).filter(e=>e!=null)}getFlippableElementsForItem(e){if(e instanceof J){let t=e.getElement();return t?[t]:[]}if(!(e instanceof W)||e.isDisabled)return[];let t=e.getElement();return t?[t]:[]}buildPromotedItemCache(){let e={items:[],parentChains:new Map};return this.collectPromotedChildren(this.items,[],e),e}collectPromotedChildren(e,t,n){for(let a of e){var r,i;if(!(a instanceof W)||!a.hasChildren)continue;let e=(r=(i=a.title)==null?a.name:i)==null?``:r,o=[...t,e];this.collectDefaultChildren(a.children,o,n)}}collectDefaultChildren(e,t,n){for(let r of e){if(r.type!==void 0&&r.type!==j.Default)continue;let e=new W(r);if(e.name!==void 0&&this.isNamePermanentlyHidden(e.name)){e.destroy();continue}n.items.push(e),n.parentChains.set(e,t),e.hasChildren&&this.collectPromotedChildren([e],t,n)}}cleanupPromotedItems(){for(let e of this.promotedSeparators)e.remove();if(this.promotedSeparators=[],this.promotedItemCache!==null){for(let t of this.promotedItemCache.items){var e;(e=t.getElement())==null||e.remove(),t.destroy()}this.promotedItemCache=null}}createGroupSeparator(e){let t=document.createElement(`div`);return t.setAttribute(r.promotedGroupLabel,``),t.setAttribute(`role`,`separator`),t.className=`px-3 pt-2.5 pb-1 text-[11px] font-medium uppercase tracking-wide text-gray-text/50 cursor-default`,t.textContent=e,t}appendPromotedGroupElements(e){for(let{item:n}of e){let e=n.getElement();if(e!==null){var t;(t=this.nodes.items)==null||t.appendChild(e)}}}deduplicateAgainstPromoted(e,t){let n=new Set;for(let{item:e}of t)e.title!==void 0&&n.add(e.title.toLowerCase());return e.filter(e=>!(e instanceof W)||e.title===void 0?!0:!n.has(e.title.toLowerCase()))}addSearch(){this.search=new Lr({items:this.itemsDefault,placeholder:this.messages.search}),this.search.on(Ir.Search,e=>{if(e.query===``){this.cleanupPromotedItems(),this.onSearch({query:e.query,topLevelItems:e.items,promotedItems:[]});return}this.promotedItemCache===null&&(this.promotedItemCache=this.buildPromotedItemCache());let{parentChains:t}=this.promotedItemCache,n=this.promotedItemCache.items.map(n=>{var r;return{item:n,score:Y(n,e.query),chain:(r=t.get(n))==null?[]:r}}).filter(({score:e})=>e>0).sort((e,t)=>t.score-e.score);this.onSearch({query:e.query,topLevelItems:e.items,promotedItems:n})});let e=this.search.getElement();e.classList.add(`mb-1.5`),this.nodes.popoverContainer.insertBefore(e,this.nodes.popoverContainer.firstChild)}filterItems(e){if(e===``){this.cleanupPromotedItems(),this.onSearch({query:e,topLevelItems:this.itemsDefault,promotedItems:[]});return}this.promotedItemCache===null&&(this.promotedItemCache=this.buildPromotedItemCache());let t=this.itemsDefault.map(t=>({item:t,score:Y(t,e)})).filter(({score:e})=>e>0).sort((e,t)=>t.score-e.score),{parentChains:n}=this.promotedItemCache,r=this.promotedItemCache.items.map(t=>{var r;return{item:t,score:Y(t,e),chain:(r=n.get(t))==null?[]:r}}).filter(({score:e})=>e>0).sort((e,t)=>t.score-e.score);this.onSearch({query:e,topLevelItems:t.map(({item:e})=>e),promotedItems:r})}reorderItemsByRank(e){this.originalItemOrder===void 0&&this.nodes.items!==null&&(this.originalItemOrder=Array.from(this.nodes.items.children));let t=this.nodes.items;if(t!==null)for(let n of e){let e=n.getElement();e!==null&&t.appendChild(e)}}restoreOriginalItemOrder(){let e=this.nodes.items;if(!(e===null||this.originalItemOrder===void 0)){for(let t of this.originalItemOrder)e.appendChild(t);this.originalItemOrder=void 0}}},Gr=function(e){let t=w.make(`div`);return t.style.display=`flex`,t.style.flexDirection=`column`,t.style.gap=`4px`,e.forEach(e=>{let n=w.make(`div`),r=e.indexOf(` `);if(r>0){let t=e.substring(0,r),i=e.substring(r),a=w.make(`span`,null,{textContent:t});a.style.color=`white`,n.appendChild(a),n.appendChild(document.createTextNode(i))}else n.appendChild(document.createTextNode(e));t.appendChild(n)}),t},Kr,qr=class{constructor({api:e}){this.i18nAPI=e.i18n,this.blocksAPI=e.blocks,this.selectionAPI=e.selection,this.toolsAPI=e.tools,this.caretAPI=e.caret,this.i18nInstance={t:(e,t)=>this.i18nAPI.t(e),has:e=>this.i18nAPI.t(e)!==e}}async render(){var e=this;let t=Ye.get();if(t===null)return[];let n=e.blocksAPI.getBlockByElement(t.anchorNode);if(n===void 0)return[];let r=await Me(n,e.toolsAPI.getBlockTools());if(r.length===0)return[];let i=r.reduce((t,r)=>{var i;return(i=r.toolbox)==null||i.forEach(i=>{var a;i.title!==void 0&&t.push({icon:i.icon,title:Oe(e.i18nInstance,i,r.name),name:(a=i.name)==null?r.name:a,closeOnActivate:!0,onActivate:async()=>{let t=await e.blocksAPI.convert(n.id,r.name,i.data);e.caretAPI.setToBlock(t,`end`)}})}),t},[]),a=await n.getActiveToolboxEntry(),o=a?Oe(e.i18nInstance,a,n.name):ke(e.i18nInstance,n.name,ue(n.name)),s=!oe();return{name:`convert-to`,title:o,hint:{title:e.i18nAPI.t(`popover.convertTo`)},children:{items:i,width:`auto`,onOpen:()=>{s&&(e.selectionAPI.setFakeBackground(),e.selectionAPI.save())},onClose:()=>{s&&(e.selectionAPI.restore(),e.selectionAPI.removeFakeBackground())}}}}};Kr=qr,Kr.isInline=!0;var Jr=`toggle`,Yr=`tools.toggle.placeholder`,Xr=`tools.toggle.bodyPlaceholder`,Zr=`tools.toggle.ariaLabelCollapse`,Qr=`tools.toggle.ariaLabelExpand`,$r=`outline-hidden py-[7px] mt-[2px] mb-px`,ei=`outline-hidden pl-0.5 leading-[1.5] flex-1 min-w-0`,ti=`flex items-center`,ni=`flex-shrink-0 p-[8px] flex items-center justify-center cursor-pointer select-none rounded can-hover:hover:bg-item-hover-bg transition-colors duration-200 ease-in-out focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none in-data-[blok-toggle-empty=true]:text-gray-text`,ri=`<svg aria-hidden="true" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.5 2.5L8.5 6L4.5 9.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`,ii=`hidden pl-7 pt-[8px] pb-[8px] text-gray-text leading-[1.5] cursor-pointer select-none`,ai=`pl-7`,oi={toggleOpen:`data-blok-toggle-open`,toggleArrow:`data-blok-toggle-arrow`,toggleContent:`data-blok-toggle-content`,toggleBodyPlaceholder:`data-blok-toggle-body-placeholder`,toggleChildren:`data-blok-toggle-children`,toggleEmpty:`data-blok-toggle-empty`};Object.defineProperty(exports,`$`,{enumerable:!0,get:function(){return xn}}),Object.defineProperty(exports,`$n`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`$t`,{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return Zn}}),Object.defineProperty(exports,`An`,{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,`At`,{enumerable:!0,get:function(){return _r}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return $n}}),Object.defineProperty(exports,`Bn`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`Bt`,{enumerable:!0,get:function(){return an}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,`Cn`,{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,`Ct`,{enumerable:!0,get:function(){return vr}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return fr}}),Object.defineProperty(exports,`Dn`,{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,`Dt`,{enumerable:!0,get:function(){return pn}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`En`,{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,`Et`,{enumerable:!0,get:function(){return Xn}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return er}}),Object.defineProperty(exports,`Fn`,{enumerable:!0,get:function(){return be}}),Object.defineProperty(exports,`Ft`,{enumerable:!0,get:function(){return Gn}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return lr}}),Object.defineProperty(exports,`Gn`,{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,`Gt`,{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return or}}),Object.defineProperty(exports,`Hn`,{enumerable:!0,get:function(){return ue}}),Object.defineProperty(exports,`Ht`,{enumerable:!0,get:function(){return Qt}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return tr}}),Object.defineProperty(exports,`In`,{enumerable:!0,get:function(){return xe}}),Object.defineProperty(exports,`It`,{enumerable:!0,get:function(){return Kn}}),Object.defineProperty(exports,`J`,{enumerable:!0,get:function(){return ir}}),Object.defineProperty(exports,`Jn`,{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,`Jt`,{enumerable:!0,get:function(){return Kt}}),Object.defineProperty(exports,`K`,{enumerable:!0,get:function(){return cr}}),Object.defineProperty(exports,`Kn`,{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,`Kt`,{enumerable:!0,get:function(){return nn}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return Bn}}),Object.defineProperty(exports,`Ln`,{enumerable:!0,get:function(){return ve}}),Object.defineProperty(exports,`Lt`,{enumerable:!0,get:function(){return On}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return gn}}),Object.defineProperty(exports,`Mn`,{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,`Mt`,{enumerable:!0,get:function(){return Mn}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return _n}}),Object.defineProperty(exports,`Nn`,{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,`Nt`,{enumerable:!0,get:function(){return En}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return sn}}),Object.defineProperty(exports,`On`,{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,`Ot`,{enumerable:!0,get:function(){return yn}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return vn}}),Object.defineProperty(exports,`Pn`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`Pt`,{enumerable:!0,get:function(){return Wn}}),Object.defineProperty(exports,`Q`,{enumerable:!0,get:function(){return bn}}),Object.defineProperty(exports,`Qn`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`Qt`,{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return on}}),Object.defineProperty(exports,`Rn`,{enumerable:!0,get:function(){return he}}),Object.defineProperty(exports,`Rt`,{enumerable:!0,get:function(){return Hn}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return Br}}),Object.defineProperty(exports,`Sn`,{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,`St`,{enumerable:!0,get:function(){return Vn}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`Tn`,{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,`Tt`,{enumerable:!0,get:function(){return Pn}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return ur}}),Object.defineProperty(exports,`Un`,{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,`Ut`,{enumerable:!0,get:function(){return Xt}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return Un}}),Object.defineProperty(exports,`Vn`,{enumerable:!0,get:function(){return de}}),Object.defineProperty(exports,`Vt`,{enumerable:!0,get:function(){return Dn}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return sr}}),Object.defineProperty(exports,`Wn`,{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,`Wt`,{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(exports,`X`,{enumerable:!0,get:function(){return ar}}),Object.defineProperty(exports,`Xn`,{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,`Xt`,{enumerable:!0,get:function(){return Wt}}),Object.defineProperty(exports,`Y`,{enumerable:!0,get:function(){return nr}}),Object.defineProperty(exports,`Yn`,{enumerable:!0,get:function(){return te}}),Object.defineProperty(exports,`Yt`,{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,`Z`,{enumerable:!0,get:function(){return qn}}),Object.defineProperty(exports,`Zn`,{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,`Zt`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return Vr}}),Object.defineProperty(exports,`_n`,{enumerable:!0,get:function(){return ze}}),Object.defineProperty(exports,`_t`,{enumerable:!0,get:function(){return Jn}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return $r}}),Object.defineProperty(exports,`an`,{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(exports,`ar`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`at`,{enumerable:!0,get:function(){return Fn}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,`bn`,{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,`bt`,{enumerable:!0,get:function(){return hr}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return ei}}),Object.defineProperty(exports,`cn`,{enumerable:!0,get:function(){return kt}}),Object.defineProperty(exports,`cr`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`ct`,{enumerable:!0,get:function(){return Ln}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return ai}}),Object.defineProperty(exports,`dn`,{enumerable:!0,get:function(){return ht}}),Object.defineProperty(exports,`dr`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`dt`,{enumerable:!0,get:function(){return cn}}),Object.defineProperty(exports,`en`,{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(exports,`er`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`et`,{enumerable:!0,get:function(){return Sn}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return ti}}),Object.defineProperty(exports,`fn`,{enumerable:!0,get:function(){return et}}),Object.defineProperty(exports,`ft`,{enumerable:!0,get:function(){return ln}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return Wr}}),Object.defineProperty(exports,`gn`,{enumerable:!0,get:function(){return Ve}}),Object.defineProperty(exports,`gt`,{enumerable:!0,get:function(){return An}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return Gr}}),Object.defineProperty(exports,`hn`,{enumerable:!0,get:function(){return Re}}),Object.defineProperty(exports,`ht`,{enumerable:!0,get:function(){return jn}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return ni}}),Object.defineProperty(exports,`in`,{enumerable:!0,get:function(){return jt}}),Object.defineProperty(exports,`ir`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`it`,{enumerable:!0,get:function(){return Yn}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return rn}}),Object.defineProperty(exports,`jn`,{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,`jt`,{enumerable:!0,get:function(){return fn}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return mr}}),Object.defineProperty(exports,`kn`,{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,`kt`,{enumerable:!0,get:function(){return gr}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return Yr}}),Object.defineProperty(exports,`ln`,{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(exports,`lr`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`lt`,{enumerable:!0,get:function(){return Rn}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return qr}}),Object.defineProperty(exports,`mn`,{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(exports,`mt`,{enumerable:!0,get:function(){return kn}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Qr}}),Object.defineProperty(exports,`nn`,{enumerable:!0,get:function(){return Ft}}),Object.defineProperty(exports,`nr`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`nt`,{enumerable:!0,get:function(){return wn}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return Xr}}),Object.defineProperty(exports,`on`,{enumerable:!0,get:function(){return At}}),Object.defineProperty(exports,`or`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`ot`,{enumerable:!0,get:function(){return Nn}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return Jr}}),Object.defineProperty(exports,`pn`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`pt`,{enumerable:!0,get:function(){return pr}}),Object.defineProperty(exports,`q`,{enumerable:!0,get:function(){return rr}}),Object.defineProperty(exports,`qn`,{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,`qt`,{enumerable:!0,get:function(){return tn}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return ri}}),Object.defineProperty(exports,`rn`,{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(exports,`rr`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`rt`,{enumerable:!0,get:function(){return Tn}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return ii}}),Object.defineProperty(exports,`sn`,{enumerable:!0,get:function(){return Ot}}),Object.defineProperty(exports,`sr`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`st`,{enumerable:!0,get:function(){return In}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Zr}}),Object.defineProperty(exports,`tn`,{enumerable:!0,get:function(){return Lt}}),Object.defineProperty(exports,`tr`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`tt`,{enumerable:!0,get:function(){return Cn}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return oi}}),Object.defineProperty(exports,`un`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`ur`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`ut`,{enumerable:!0,get:function(){return zn}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,`vn`,{enumerable:!0,get:function(){return He}}),Object.defineProperty(exports,`vt`,{enumerable:!0,get:function(){return un}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`wn`,{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,`wt`,{enumerable:!0,get:function(){return hn}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return zr}}),Object.defineProperty(exports,`xn`,{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,`xt`,{enumerable:!0,get:function(){return Qn}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`yn`,{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,`yt`,{enumerable:!0,get:function(){return mn}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return dr}}),Object.defineProperty(exports,`zn`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`zt`,{enumerable:!0,get:function(){return dn}});
|