@emailmaker/emailmaker 1.0.31 → 1.0.33
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 +1 -1
- package/iframe/{iframe-eblock.b53500d17048c23a89cc.html → iframe-eblock.a8bef4943d19ed8120eb.html} +1 -1
- package/iframe/{iframe.b53500d17048c23a89cc.html → iframe.a8bef4943d19ed8120eb.html} +1 -1
- package/iframe/js/cssbeautify.js +1 -1
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox.js +1 -1
- package/package.json +1 -1
- package/translations.pot +34 -34
- package/asset-manifest.json +0 -373
- package/css.worker.js +0 -2
- package/css.worker.js.LICENSE.txt +0 -6
- package/editor.worker.js +0 -1
- package/emailmaker-esm.js +0 -1
- package/emailmaker.d.ts +0 -1055
- package/emailmaker.js +0 -1
- package/html.worker.js +0 -2
- package/html.worker.js.LICENSE.txt +0 -14
- package/iframe/429.js +0 -1
- package/json.worker.js +0 -2
- package/json.worker.js.LICENSE.txt +0 -6
- package/plugin.html +0 -273
- package/plugin_blocks_test.html +0 -144
- package/plugin_default.html +0 -56
- package/plugin_s.html +0 -31
- package/static/css/1795.3b54559d.css +0 -1
- package/static/css/2256.d0db3199.css +0 -1
- package/static/css/3215.3a2b7cfe.css +0 -1
- package/static/css/4877.237f7f6b.css +0 -1
- package/static/css/5571.4415a91e.css +0 -1
- package/static/css/698.9a48c3be.css +0 -1
- package/static/css/984.b0f773d2.css +0 -1
- package/static/js/1028.4360e11f.js +0 -1
- package/static/js/1052.d1f85a29.js +0 -1
- package/static/js/1101.c32ce4f7.chunk.js +0 -2
- package/static/js/1101.c32ce4f7.chunk.js.LICENSE.txt +0 -6
- package/static/js/119.9a0f51df.chunk.js +0 -2
- package/static/js/119.9a0f51df.chunk.js.LICENSE.txt +0 -6
- package/static/js/1197.7e9444b1.js +0 -1
- package/static/js/1212.15b852ca.js +0 -1
- package/static/js/127.9f5a0761.chunk.js +0 -2
- package/static/js/127.9f5a0761.chunk.js.LICENSE.txt +0 -6
- package/static/js/1271.d2ba7d58.chunk.js +0 -2
- package/static/js/1271.d2ba7d58.chunk.js.LICENSE.txt +0 -6
- package/static/js/1283.b7058deb.chunk.js +0 -2
- package/static/js/1283.b7058deb.chunk.js.LICENSE.txt +0 -6
- package/static/js/1307.74cb7b10.js +0 -1
- package/static/js/1366.f647b62f.js +0 -2
- package/static/js/1366.f647b62f.js.LICENSE.txt +0 -6
- package/static/js/1399.cb6eb2fa.js +0 -1
- package/static/js/1403.68211890.js +0 -1
- package/static/js/1472.c8712709.js +0 -1
- package/static/js/1619.bb9c2d4f.chunk.js +0 -2
- package/static/js/1619.bb9c2d4f.chunk.js.LICENSE.txt +0 -6
- package/static/js/1663.cd15901b.chunk.js +0 -2
- package/static/js/1663.cd15901b.chunk.js.LICENSE.txt +0 -6
- package/static/js/1667.101647da.js +0 -1
- package/static/js/1729.b71e4a99.chunk.js +0 -1
- package/static/js/1792.c02dd1d4.js +0 -1
- package/static/js/1795.da1917e4.js +0 -1
- package/static/js/1818.053eb89f.chunk.js +0 -2
- package/static/js/1818.053eb89f.chunk.js.LICENSE.txt +0 -6
- package/static/js/1821.a8efb62e.chunk.js +0 -2
- package/static/js/1821.a8efb62e.chunk.js.LICENSE.txt +0 -6
- package/static/js/197.a135382e.js +0 -1
- package/static/js/2016.e08ef9ce.js +0 -1
- package/static/js/2029.041a1c1a.chunk.js +0 -2
- package/static/js/2029.041a1c1a.chunk.js.LICENSE.txt +0 -6
- package/static/js/2179.73130a54.chunk.js +0 -2
- package/static/js/2179.73130a54.chunk.js.LICENSE.txt +0 -6
- package/static/js/222.280bf6b3.js +0 -1
- package/static/js/2223.17806e9a.js +0 -2
- package/static/js/2223.17806e9a.js.LICENSE.txt +0 -10
- package/static/js/2225.d78bdfb7.js +0 -1
- package/static/js/2256.225fba63.js +0 -1
- package/static/js/227.5fd33eeb.chunk.js +0 -2
- package/static/js/227.5fd33eeb.chunk.js.LICENSE.txt +0 -10
- package/static/js/2464.2c009f8c.js +0 -2
- package/static/js/2464.2c009f8c.js.LICENSE.txt +0 -6
- package/static/js/2475.c86d0c20.chunk.js +0 -2
- package/static/js/2475.c86d0c20.chunk.js.LICENSE.txt +0 -6
- package/static/js/2547.9cdcf5fd.chunk.js +0 -2
- package/static/js/2547.9cdcf5fd.chunk.js.LICENSE.txt +0 -6
- package/static/js/2581.4558746b.chunk.js +0 -2
- package/static/js/2581.4558746b.chunk.js.LICENSE.txt +0 -6
- package/static/js/2582.d77da683.js +0 -2
- package/static/js/2582.d77da683.js.LICENSE.txt +0 -31
- package/static/js/2642.53da04d8.js +0 -1
- package/static/js/2675.dbe09fe1.chunk.js +0 -2
- package/static/js/2675.dbe09fe1.chunk.js.LICENSE.txt +0 -6
- package/static/js/2851.fea52359.chunk.js +0 -2
- package/static/js/2851.fea52359.chunk.js.LICENSE.txt +0 -6
- package/static/js/2896.fac80e3c.js +0 -2
- package/static/js/2896.fac80e3c.js.LICENSE.txt +0 -6
- package/static/js/2935.c0d4b469.chunk.js +0 -2
- package/static/js/2935.c0d4b469.chunk.js.LICENSE.txt +0 -6
- package/static/js/2951.3f25f72c.chunk.js +0 -2
- package/static/js/2951.3f25f72c.chunk.js.LICENSE.txt +0 -6
- package/static/js/3041.e05fa027.js +0 -1
- package/static/js/3068.591718b0.chunk.js +0 -2
- package/static/js/3068.591718b0.chunk.js.LICENSE.txt +0 -6
- package/static/js/3142.6792174f.js +0 -1
- package/static/js/3148.2e2f27ce.js +0 -1
- package/static/js/3299.983ba49b.chunk.js +0 -2
- package/static/js/3299.983ba49b.chunk.js.LICENSE.txt +0 -6
- package/static/js/3303.576ded0e.js +0 -1
- package/static/js/3447.2a559817.chunk.js +0 -2
- package/static/js/3447.2a559817.chunk.js.LICENSE.txt +0 -6
- package/static/js/353.3e6b29fb.js +0 -1
- package/static/js/3555.3ae2b597.chunk.js +0 -2
- package/static/js/3555.3ae2b597.chunk.js.LICENSE.txt +0 -6
- package/static/js/3651.8f2624f3.js +0 -1
- package/static/js/3682.d155b110.js +0 -2
- package/static/js/3682.d155b110.js.LICENSE.txt +0 -18
- package/static/js/3683.9414adf5.chunk.js +0 -2
- package/static/js/3683.9414adf5.chunk.js.LICENSE.txt +0 -6
- package/static/js/3704.aef08abb.js +0 -1
- package/static/js/3763.5f775790.chunk.js +0 -2
- package/static/js/3763.5f775790.chunk.js.LICENSE.txt +0 -6
- package/static/js/3768.f13fcea4.js +0 -1
- package/static/js/393.2f571faf.chunk.js +0 -2
- package/static/js/393.2f571faf.chunk.js.LICENSE.txt +0 -6
- package/static/js/3960.89f3c9f4.chunk.js +0 -2
- package/static/js/3960.89f3c9f4.chunk.js.LICENSE.txt +0 -6
- package/static/js/3991.d0073826.js +0 -1
- package/static/js/4001.0602b191.chunk.js +0 -2
- package/static/js/4001.0602b191.chunk.js.LICENSE.txt +0 -6
- package/static/js/4047.25747214.chunk.js +0 -2
- package/static/js/4047.25747214.chunk.js.LICENSE.txt +0 -6
- package/static/js/4087.48b614cb.js +0 -1
- package/static/js/4122.efa76a71.js +0 -1
- package/static/js/4159.cd6afba9.chunk.js +0 -2
- package/static/js/4159.cd6afba9.chunk.js.LICENSE.txt +0 -6
- package/static/js/4231.0dca1f81.js +0 -1
- package/static/js/4299.440bc3d2.chunk.js +0 -2
- package/static/js/4299.440bc3d2.chunk.js.LICENSE.txt +0 -6
- package/static/js/4325.e27cebb3.chunk.js +0 -2
- package/static/js/4325.e27cebb3.chunk.js.LICENSE.txt +0 -6
- package/static/js/4384.d7dc931a.js +0 -2
- package/static/js/4384.d7dc931a.js.LICENSE.txt +0 -15
- package/static/js/4417.4b3f75b4.chunk.js +0 -2
- package/static/js/4417.4b3f75b4.chunk.js.LICENSE.txt +0 -6
- package/static/js/4498.0767c1ee.js +0 -1
- package/static/js/451.d254d20c.chunk.js +0 -2
- package/static/js/451.d254d20c.chunk.js.LICENSE.txt +0 -6
- package/static/js/4627.cedc745b.chunk.js +0 -2
- package/static/js/4627.cedc745b.chunk.js.LICENSE.txt +0 -6
- package/static/js/4805.1ac956f6.js +0 -1
- package/static/js/4845.c3ae91f2.js +0 -1
- package/static/js/4867.ae5eb9c0.chunk.js +0 -2
- package/static/js/4867.ae5eb9c0.chunk.js.LICENSE.txt +0 -6
- package/static/js/4877.6ed62a0e.js +0 -1
- package/static/js/51.0157cb43.chunk.js +0 -2
- package/static/js/51.0157cb43.chunk.js.LICENSE.txt +0 -6
- package/static/js/515.16219a24.js +0 -2
- package/static/js/515.16219a24.js.LICENSE.txt +0 -6
- package/static/js/5243.c58a8a21.chunk.js +0 -2
- package/static/js/5243.c58a8a21.chunk.js.LICENSE.txt +0 -6
- package/static/js/5315.1a03f762.chunk.js +0 -2
- package/static/js/5315.1a03f762.chunk.js.LICENSE.txt +0 -6
- package/static/js/5319.92df1268.js +0 -1
- package/static/js/5339.df02c3e0.chunk.js +0 -2
- package/static/js/5339.df02c3e0.chunk.js.LICENSE.txt +0 -6
- package/static/js/5445.7db0b349.chunk.js +0 -2
- package/static/js/5445.7db0b349.chunk.js.LICENSE.txt +0 -6
- package/static/js/5475.dc9057be.chunk.js +0 -2
- package/static/js/5475.dc9057be.chunk.js.LICENSE.txt +0 -6
- package/static/js/5491.d8b1b7b0.chunk.js +0 -2
- package/static/js/5491.d8b1b7b0.chunk.js.LICENSE.txt +0 -6
- package/static/js/5497.a3910de2.js +0 -1
- package/static/js/5571.9c285c1e.js +0 -1
- package/static/js/577.ca8a62c4.chunk.js +0 -2
- package/static/js/577.ca8a62c4.chunk.js.LICENSE.txt +0 -6
- package/static/js/5796.4b4a1748.js +0 -2
- package/static/js/5796.4b4a1748.js.LICENSE.txt +0 -1
- package/static/js/5853.ce87dead.chunk.js +0 -2
- package/static/js/5853.ce87dead.chunk.js.LICENSE.txt +0 -6
- package/static/js/5873.5fdbcd6c.js +0 -1
- package/static/js/5916.3a56abae.js +0 -1
- package/static/js/5923.e8e7b96d.chunk.js +0 -2
- package/static/js/5923.e8e7b96d.chunk.js.LICENSE.txt +0 -6
- package/static/js/5927.4afcefc8.chunk.js +0 -1
- package/static/js/5957.d2ad88af.js +0 -2
- package/static/js/5957.d2ad88af.js.LICENSE.txt +0 -9
- package/static/js/5974.9d34d7d3.js +0 -1
- package/static/js/6021.7f32cea2.chunk.js +0 -2
- package/static/js/6021.7f32cea2.chunk.js.LICENSE.txt +0 -6
- package/static/js/6051.6cefb17a.chunk.js +0 -2
- package/static/js/6051.6cefb17a.chunk.js.LICENSE.txt +0 -6
- package/static/js/6075.38c621ae.chunk.js +0 -2
- package/static/js/6075.38c621ae.chunk.js.LICENSE.txt +0 -6
- package/static/js/6083.0ef791dc.chunk.js +0 -2
- package/static/js/6083.0ef791dc.chunk.js.LICENSE.txt +0 -6
- package/static/js/6091.804a3e5a.js +0 -2
- package/static/js/6091.804a3e5a.js.LICENSE.txt +0 -6
- package/static/js/6133.0da38de9.js +0 -1
- package/static/js/6154.eda7a5eb.js +0 -1
- package/static/js/6161.6a73be6e.chunk.js +0 -2
- package/static/js/6161.6a73be6e.chunk.js.LICENSE.txt +0 -6
- package/static/js/6242.14f46d39.js +0 -2
- package/static/js/6242.14f46d39.js.LICENSE.txt +0 -43
- package/static/js/6275.19545c93.chunk.js +0 -2
- package/static/js/6275.19545c93.chunk.js.LICENSE.txt +0 -6
- package/static/js/6300.1ed0e3a4.js +0 -1
- package/static/js/6547.377fc02b.chunk.js +0 -2
- package/static/js/6547.377fc02b.chunk.js.LICENSE.txt +0 -6
- package/static/js/6567.cad55045.js +0 -1
- package/static/js/6643.1eb62a36.chunk.js +0 -2
- package/static/js/6643.1eb62a36.chunk.js.LICENSE.txt +0 -6
- package/static/js/6691.1ee2f23b.chunk.js +0 -2
- package/static/js/6691.1ee2f23b.chunk.js.LICENSE.txt +0 -6
- package/static/js/6701.8bd3807d.chunk.js +0 -2
- package/static/js/6701.8bd3807d.chunk.js.LICENSE.txt +0 -6
- package/static/js/6739.22d13837.chunk.js +0 -2
- package/static/js/6739.22d13837.chunk.js.LICENSE.txt +0 -6
- package/static/js/687.147e9138.js +0 -1
- package/static/js/6915.e4ede32f.chunk.js +0 -2
- package/static/js/6915.e4ede32f.chunk.js.LICENSE.txt +0 -6
- package/static/js/698.aebcf9cd.js +0 -1
- package/static/js/7018.f481e3a0.js +0 -1
- package/static/js/7051.c0c7cf26.chunk.js +0 -2
- package/static/js/7051.c0c7cf26.chunk.js.LICENSE.txt +0 -6
- package/static/js/7059.9c893bc0.chunk.js +0 -2
- package/static/js/7059.9c893bc0.chunk.js.LICENSE.txt +0 -6
- package/static/js/7187.7e67eebe.chunk.js +0 -2
- package/static/js/7187.7e67eebe.chunk.js.LICENSE.txt +0 -6
- package/static/js/721.4c6f728a.chunk.js +0 -2
- package/static/js/721.4c6f728a.chunk.js.LICENSE.txt +0 -6
- package/static/js/7471.fe46efd9.js +0 -1
- package/static/js/7533.a49f7784.js +0 -1
- package/static/js/7635.9d5d1322.chunk.js +0 -2
- package/static/js/7635.9d5d1322.chunk.js.LICENSE.txt +0 -6
- package/static/js/7698.f82d28d4.js +0 -1
- package/static/js/7779.0d221377.chunk.js +0 -2
- package/static/js/7779.0d221377.chunk.js.LICENSE.txt +0 -6
- package/static/js/7795.c0e8c528.chunk.js +0 -2
- package/static/js/7795.c0e8c528.chunk.js.LICENSE.txt +0 -6
- package/static/js/7824.e0daa1f7.chunk.js +0 -1
- package/static/js/7963.a4acc856.chunk.js +0 -2
- package/static/js/7963.a4acc856.chunk.js.LICENSE.txt +0 -6
- package/static/js/8003.a4a62303.chunk.js +0 -2
- package/static/js/8003.a4a62303.chunk.js.LICENSE.txt +0 -6
- package/static/js/8015.b608b9db.chunk.js +0 -2
- package/static/js/8015.b608b9db.chunk.js.LICENSE.txt +0 -6
- package/static/js/8030.0b457006.js +0 -1
- package/static/js/8075.bea74e99.js +0 -1
- package/static/js/8179.acf16a1a.chunk.js +0 -1
- package/static/js/823.48325ac1.js +0 -2
- package/static/js/823.48325ac1.js.LICENSE.txt +0 -7
- package/static/js/8236.bdefaa6b.js +0 -2
- package/static/js/8236.bdefaa6b.js.LICENSE.txt +0 -42
- package/static/js/8309.7e81b18b.js +0 -1
- package/static/js/8319.7ea4b259.chunk.js +0 -2
- package/static/js/8319.7ea4b259.chunk.js.LICENSE.txt +0 -6
- package/static/js/8345.e3795419.js +0 -1
- package/static/js/851.23920710.chunk.js +0 -2
- package/static/js/851.23920710.chunk.js.LICENSE.txt +0 -6
- package/static/js/8671.6a83db75.js +0 -1
- package/static/js/8679.f65e4d91.chunk.js +0 -2
- package/static/js/8679.f65e4d91.chunk.js.LICENSE.txt +0 -6
- package/static/js/8689.5fdcff24.chunk.js +0 -1
- package/static/js/8694.60896e26.js +0 -1
- package/static/js/8696.301b3f9b.js +0 -1
- package/static/js/8738.3ba7b2e7.js +0 -2
- package/static/js/8738.3ba7b2e7.js.LICENSE.txt +0 -87
- package/static/js/8740.a2a83fd4.js +0 -1
- package/static/js/8779.f6f8b6f7.chunk.js +0 -2
- package/static/js/8779.f6f8b6f7.chunk.js.LICENSE.txt +0 -6
- package/static/js/883.616a487d.chunk.js +0 -2
- package/static/js/883.616a487d.chunk.js.LICENSE.txt +0 -6
- package/static/js/8879.10db9af5.js +0 -2
- package/static/js/8879.10db9af5.js.LICENSE.txt +0 -86
- package/static/js/8881.ce638df9.chunk.js +0 -2
- package/static/js/8881.ce638df9.chunk.js.LICENSE.txt +0 -6
- package/static/js/8911.8253711c.chunk.js +0 -2
- package/static/js/8911.8253711c.chunk.js.LICENSE.txt +0 -6
- package/static/js/9005.62fb383a.chunk.js +0 -2
- package/static/js/9005.62fb383a.chunk.js.LICENSE.txt +0 -6
- package/static/js/9019.7efd13af.js +0 -2
- package/static/js/9019.7efd13af.js.LICENSE.txt +0 -96
- package/static/js/9055.1f85af27.js +0 -1
- package/static/js/9061.3366c9e5.js +0 -1
- package/static/js/9101.08739c9d.js +0 -1
- package/static/js/9267.67d8f2bb.chunk.js +0 -2
- package/static/js/9267.67d8f2bb.chunk.js.LICENSE.txt +0 -6
- package/static/js/9328.74394e00.js +0 -1
- package/static/js/9603.4321e1c5.chunk.js +0 -2
- package/static/js/9603.4321e1c5.chunk.js.LICENSE.txt +0 -6
- package/static/js/9649.ff98467b.js +0 -1
- package/static/js/9653.3c3fd842.js +0 -1
- package/static/js/9763.2e0a4d2d.chunk.js +0 -2
- package/static/js/9763.2e0a4d2d.chunk.js.LICENSE.txt +0 -6
- package/static/js/9796.52daf89f.js +0 -1
- package/static/js/9878.cca6854e.js +0 -2
- package/static/js/9878.cca6854e.js.LICENSE.txt +0 -8
- package/static/js/9898.93cc5558.chunk.js +0 -2
- package/static/js/9898.93cc5558.chunk.js.LICENSE.txt +0 -6
- package/static/js/9907.c26468b0.js +0 -1
- package/static/js/9935.52cd750c.chunk.js +0 -2
- package/static/js/9935.52cd750c.chunk.js.LICENSE.txt +0 -6
- package/static/js/ant-locale/locale0.fdb32a9f.chunk.js +0 -1
- package/static/js/ant-locale/locale1.5b1308da.chunk.js +0 -1
- package/static/js/ant-locale/locale10.f74ae841.chunk.js +0 -1
- package/static/js/ant-locale/locale11.cf703a34.chunk.js +0 -1
- package/static/js/ant-locale/locale13.9bcbe954.chunk.js +0 -1
- package/static/js/ant-locale/locale14.138842ea.chunk.js +0 -1
- package/static/js/ant-locale/locale15.e80eb12a.chunk.js +0 -1
- package/static/js/ant-locale/locale16.49bc0148.chunk.js +0 -1
- package/static/js/ant-locale/locale17.2daaf9a6.chunk.js +0 -1
- package/static/js/ant-locale/locale18.f9e62843.chunk.js +0 -1
- package/static/js/ant-locale/locale19.c98c053a.chunk.js +0 -1
- package/static/js/ant-locale/locale2.b54c0d79.chunk.js +0 -1
- package/static/js/ant-locale/locale20.b5cb6b02.chunk.js +0 -1
- package/static/js/ant-locale/locale21.7764c4b3.chunk.js +0 -1
- package/static/js/ant-locale/locale22.5cbb9959.chunk.js +0 -1
- package/static/js/ant-locale/locale23.2342f692.chunk.js +0 -1
- package/static/js/ant-locale/locale24.3c622cfa.chunk.js +0 -1
- package/static/js/ant-locale/locale25.7658de4e.chunk.js +0 -1
- package/static/js/ant-locale/locale26.b7e751bd.chunk.js +0 -1
- package/static/js/ant-locale/locale27.a47676d9.chunk.js +0 -1
- package/static/js/ant-locale/locale28.c89eee28.chunk.js +0 -1
- package/static/js/ant-locale/locale3.48f0afe7.chunk.js +0 -1
- package/static/js/ant-locale/locale30.4d3672db.chunk.js +0 -1
- package/static/js/ant-locale/locale31.406215d5.chunk.js +0 -1
- package/static/js/ant-locale/locale32.6167b5e8.chunk.js +0 -1
- package/static/js/ant-locale/locale33.4be05b3c.chunk.js +0 -1
- package/static/js/ant-locale/locale34.3813ab2f.chunk.js +0 -1
- package/static/js/ant-locale/locale35.d58b9c31.chunk.js +0 -1
- package/static/js/ant-locale/locale36.34d5c9ee.chunk.js +0 -1
- package/static/js/ant-locale/locale37.1c16e25b.chunk.js +0 -1
- package/static/js/ant-locale/locale38.dfa6d712.chunk.js +0 -1
- package/static/js/ant-locale/locale39.31c90381.chunk.js +0 -1
- package/static/js/ant-locale/locale4.e6fdd0ee.chunk.js +0 -1
- package/static/js/ant-locale/locale40.fe7ab935.chunk.js +0 -1
- package/static/js/ant-locale/locale41.4dee0621.chunk.js +0 -1
- package/static/js/ant-locale/locale42.7061d0fc.chunk.js +0 -1
- package/static/js/ant-locale/locale43.b3c810a8.chunk.js +0 -1
- package/static/js/ant-locale/locale44.df0a5a76.chunk.js +0 -1
- package/static/js/ant-locale/locale45.a7f6f97e.chunk.js +0 -1
- package/static/js/ant-locale/locale46.8f49c2cd.chunk.js +0 -1
- package/static/js/ant-locale/locale47.b84733ce.chunk.js +0 -1
- package/static/js/ant-locale/locale48.bfb8c2b3.chunk.js +0 -1
- package/static/js/ant-locale/locale49.c67382b7.chunk.js +0 -1
- package/static/js/ant-locale/locale5.b2b61134.chunk.js +0 -1
- package/static/js/ant-locale/locale50.6520fd45.chunk.js +0 -1
- package/static/js/ant-locale/locale51.9b89fb56.chunk.js +0 -1
- package/static/js/ant-locale/locale52.11d21631.chunk.js +0 -1
- package/static/js/ant-locale/locale53.cea142dd.chunk.js +0 -1
- package/static/js/ant-locale/locale54.16ef125d.chunk.js +0 -1
- package/static/js/ant-locale/locale55.b1a653c1.chunk.js +0 -1
- package/static/js/ant-locale/locale56.83c76bd5.chunk.js +0 -1
- package/static/js/ant-locale/locale57.e685764a.chunk.js +0 -1
- package/static/js/ant-locale/locale58.d003f49e.chunk.js +0 -1
- package/static/js/ant-locale/locale59.556522b5.chunk.js +0 -1
- package/static/js/ant-locale/locale60.bf3ddb83.chunk.js +0 -1
- package/static/js/ant-locale/locale61.30fe9720.chunk.js +0 -1
- package/static/js/ant-locale/locale62.b21e6edb.chunk.js +0 -1
- package/static/js/ant-locale/locale63.8e66417e.chunk.js +0 -1
- package/static/js/ant-locale/locale64.fdae6858.chunk.js +0 -1
- package/static/js/ant-locale/locale65.58003560.chunk.js +0 -1
- package/static/js/ant-locale/locale66.94ea41f2.chunk.js +0 -1
- package/static/js/ant-locale/locale68.8a9f32b5.chunk.js +0 -1
- package/static/js/ant-locale/locale69.27295717.chunk.js +0 -1
- package/static/js/ant-locale/locale7.1509b3e0.chunk.js +0 -1
- package/static/js/ant-locale/locale70.964bc038.chunk.js +0 -1
- package/static/js/ant-locale/locale71.99926e0d.chunk.js +0 -1
- package/static/js/ant-locale/locale8.134136c4.chunk.js +0 -1
- package/static/js/ant-locale/locale9.9b87d751.chunk.js +0 -1
- package/static/js/emailmaker_core.80378bf9.js +0 -1
- package/static/js/mergeTags/locale0.23c595c1.chunk.js +0 -1
- package/static/js/mergeTags/locale1.3448e6cb.chunk.js +0 -1
- package/static/js/mocks.90ebae7c.chunk.js +0 -1
- package/static/media/ai-image.7c42c2e1.png +0 -0
- package/static/media/codicon.f13d28f3.ttf +0 -0
- package/static/media/empty-image.1827d656.png +0 -0
- package/static/media/frame_dark.318d7ed5.png +0 -0
- package/static/media/frame_light.22a9b4ec.png +0 -0
- package/static/media/frame_template_gallery.85693b39.png +0 -0
- package/static/media/icon-border-radius.2a56b93a7711558098a622296b7ae2e1.svg +0 -1
- package/static/media/icon-create-block.0b077f4000bf7907b9ea871d28c7fb1e.svg +0 -1
- package/static/media/sign_up_01.33327158.png +0 -0
- package/static/media/sign_up_01_blocks.5538cfdb.png +0 -0
- package/static/media/sign_up_02.d99d2aa6.png +0 -0
- package/static/media/sign_up_02_blocks.837fc2c9.png +0 -0
- package/static/media/sign_up_03.5545ffad.png +0 -0
- package/static/media/sign_up_03_blocks.126601f7.png +0 -0
- package/static/media/sign_up_04.398a4ca5.png +0 -0
- package/static/media/sign_up_04_blocks.255c5c07.png +0 -0
- package/static/media/sign_up_05.4c58df1b.png +0 -0
- package/static/media/sign_up_05_blocks.431b6844.png +0 -0
- package/static/media/video.854adea5.png +0 -0
- package/ts.worker.js +0 -2
- package/ts.worker.js.LICENSE.txt +0 -21
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9796],{91134:(e,t,o)=>{o.r(t),o.d(t,{SelectionAnchorSet:()=>p});var i=o(89527),n=o(84181),s=o(44948),r=o(50051),a=o(21429),c=o(29671),d=o(38016),l=o(40350),h=function(e,t,o,i){var n,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,o,r):n(t,o))||r);return s>3&&r&&Object.defineProperty(t,o,r),r},u=function(e,t){return function(o,i){t(o,i,e)}},g=function(e,t,o,i){return new(o||(o=Promise))((function(n,s){function r(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};const p=new l.N1("selectionAnchorSet",!1);let m=class e{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=p.bindTo(t),this.modelChangeListener=e.onDidChangeModel((()=>this.selectionAnchorSetContextKey.reset()))}static get(t){return t.getContribution(e.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations((t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(a.L.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:(new n.Bc).appendText((0,d.kg)("selectionAnchor","Selection Anchor")),className:"selection-anchor"})})),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,i.xE)((0,d.kg)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(a.L.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations((t=>{t.removeDecoration(e),this.decorationId=void 0})),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};m.ID="editor.contrib.selectionAnchorController",m=h([u(1,l.fN)],m);class f extends r.ks{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,d.kg)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:c.R.editorTextFocus,primary:(0,s.m5)(2089,2080),weight:100}})}run(e,t){var o;return g(this,void 0,void 0,(function*(){null===(o=m.get(t))||void 0===o||o.setSelectionAnchor()}))}}class _ extends r.ks{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,d.kg)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:p})}run(e,t){var o;return g(this,void 0,void 0,(function*(){null===(o=m.get(t))||void 0===o||o.goToSelectionAnchor()}))}}class C extends r.ks{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,d.kg)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:p,kbOpts:{kbExpr:c.R.editorTextFocus,primary:(0,s.m5)(2089,2089),weight:100}})}run(e,t){var o;return g(this,void 0,void 0,(function*(){null===(o=m.get(t))||void 0===o||o.selectFromAnchorToCursor()}))}}class v extends r.ks{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,d.kg)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:p,kbOpts:{kbExpr:c.R.editorTextFocus,primary:9,weight:100}})}run(e,t){var o;return g(this,void 0,void 0,(function*(){null===(o=m.get(t))||void 0===o||o.cancelSelectionAnchor()}))}}(0,r.HW)(m.ID,m),(0,r.Fl)(f),(0,r.Fl)(_),(0,r.Fl)(C),(0,r.Fl)(v)},79042:(e,t,o)=>{o.r(t),o.d(t,{BracketMatchingController:()=>y});var i=o(86683),n=o(26819),s=o(50051),r=o(62612),a=o(15186),c=o(21429),d=o(29671),l=o(72330),h=o(28715),u=o(80764),g=o(38016),p=o(21850),m=o(93467),f=o(86471);const _=(0,m.x1A)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},g.kg("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class C extends s.ks{constructor(){super({id:"editor.action.jumpToBracket",label:g.kg("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:d.R.editorTextFocus,primary:3160,weight:100}})}run(e,t){var o;null===(o=y.get(t))||void 0===o||o.jumpToBracket()}}class v extends s.ks{constructor(){super({id:"editor.action.selectToBracket",label:g.kg("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,o){var i;let n=!0;o&&!1===o.selectBrackets&&(n=!1),null===(i=y.get(t))||void 0===i||i.selectToBracket(n)}}class b{constructor(e,t,o){this.position=e,this.brackets=t,this.options=o}}class y extends n.jG{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new i.uC((()=>this._updateBrackets()),50)),this._matchBrackets=this._editor.getOption(65),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition((e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelContent((e=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModel((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelLanguageConfiguration((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(65)&&(this._matchBrackets=this._editor.getOption(65),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))),this._register(e.onDidBlurEditorWidget((()=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidFocusEditorWidget((()=>{this._updateBracketsSoon.schedule()})))}static get(e){return e.getContribution(y.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map((t=>{const o=t.getStartPosition(),i=e.bracketPairs.matchBracket(o);let n=null;if(i)i[0].containsPosition(o)&&!i[1].containsPosition(o)?n=i[1].getStartPosition():i[1].containsPosition(o)&&(n=i[0].getStartPosition());else{const t=e.bracketPairs.findEnclosingBrackets(o);if(t)n=t[1].getStartPosition();else{const t=e.bracketPairs.findNextBracket(o);t&&t.range&&(n=t.range.getStartPosition())}}return n?new c.L(n.lineNumber,n.column,n.lineNumber,n.column):new c.L(o.lineNumber,o.column,o.lineNumber,o.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),o=[];this._editor.getSelections().forEach((i=>{const n=i.getStartPosition();let s=t.bracketPairs.matchBracket(n);if(!s&&(s=t.bracketPairs.findEnclosingBrackets(n),!s)){const e=t.bracketPairs.findNextBracket(n);e&&e.range&&(s=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let r=null,d=null;if(s){s.sort(a.Q.compareRangesUsingStarts);const[t,o]=s;if(r=e?t.getStartPosition():t.getEndPosition(),d=e?o.getEndPosition():o.getStartPosition(),o.containsPosition(n)){const e=r;r=d,d=e}}r&&d&&o.push(new c.L(r.lineNumber,r.column,d.lineNumber,d.column))})),o.length>0&&(this._editor.setSelections(o),this._editor.revealRange(o[0]))}_updateBrackets(){if("never"===this._matchBrackets)return;this._recomputeBrackets();const e=[];let t=0;for(const o of this._lastBracketsData){const i=o.brackets;i&&(e[t++]={range:i[0],options:o.options},e[t++]={range:i[1],options:o.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return this._lastBracketsData=[],void(this._lastVersionId=0);const e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);const t=this._editor.getModel(),o=t.getVersionId();let i=[];this._lastVersionId===o&&(i=this._lastBracketsData);const n=[];let s=0;for(let r=0,h=e.length;r<h;r++){const t=e[r];t.isEmpty()&&(n[s++]=t.getStartPosition())}n.length>1&&n.sort(r.y.compare);const a=[];let c=0,d=0;const l=i.length;for(let r=0,h=n.length;r<h;r++){const e=n[r];for(;d<l&&i[d].position.isBefore(e);)d++;if(d<l&&i[d].position.equals(e))a[c++]=i[d];else{let o=t.bracketPairs.matchBracket(e,20),i=y._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;o||"always"!==this._matchBrackets||(o=t.bracketPairs.findEnclosingBrackets(e,20),i=y._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[c++]=new b(e,o,i)}}this._lastBracketsData=a,this._lastVersionId=o}}y.ID="editor.contrib.bracketMatchingController",y._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=h.kI.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:(0,f.Yf)(_),position:l.A5.Center}}),y._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=h.kI.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"}),(0,s.HW)(y.ID,y),(0,s.Fl)(v),(0,s.Fl)(C),(0,f.zy)(((e,t)=>{const o=e.getColor(u.RU);o&&t.addRule(`.monaco-editor .bracket-match { background-color: ${o}; }`);const i=e.getColor(u.$u);i&&t.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)})),p.ZG.appendMenuItem(p.D8.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:g.kg({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},96752:(e,t,o)=>{o.r(t);var i=o(50051),n=o(29671),s=o(15186),r=o(21429);class a{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const o=this._selection.startLineNumber,i=this._selection.startColumn,n=this._selection.endColumn;if((!this._isMovingLeft||1!==i)&&(this._isMovingLeft||n!==e.getLineMaxColumn(o)))if(this._isMovingLeft){const r=new s.Q(o,i-1,o,i),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new s.Q(o,n,o,n),a)}else{const r=new s.Q(o,n,o,n+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new s.Q(o,i,o,i),a)}}computeCursorState(e,t){return this._isMovingLeft?new r.L(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new r.L(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}var c=o(38016);class d extends i.ks{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const o=[],i=t.getSelections();for(const n of i)o.push(new a(n,this.left));t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}(0,i.Fl)(class extends d{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:c.kg("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:n.R.writable})}}),(0,i.Fl)(class extends d{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:c.kg("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:n.R.writable})}})},95421:(e,t,o)=>{o.r(t);var i=o(50051),n=o(53353),s=o(5849),r=o(15186),a=o(29671),c=o(38016);class d extends i.ks{constructor(){super({id:"editor.action.transposeLetters",label:c.kg("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:a.R.writable,kbOpts:{kbExpr:a.R.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const o=t.getModel(),i=[],a=t.getSelections();for(const c of a){if(!c.isEmpty())continue;const e=c.startLineNumber,t=c.startColumn,a=o.getLineMaxColumn(e);if(1===e&&(1===t||2===t&&2===a))continue;const d=t===a?c.getPosition():s.I.rightPosition(o,c.getPosition().lineNumber,c.getPosition().column),l=s.I.leftPosition(o,d),h=s.I.leftPosition(o,l),u=o.getValueInRange(r.Q.fromPositions(h,l)),g=o.getValueInRange(r.Q.fromPositions(l,d)),p=r.Q.fromPositions(h,d);i.push(new n.iu(p,g+u))}i.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop())}}(0,i.Fl)(d)},39891:(e,t,o)=>{o.r(t),o.d(t,{CopyAction:()=>v,CutAction:()=>C,PasteAction:()=>b});var i=o(47702),n=o(17032),s=o(50633),r=o(50051),a=o(10664),c=o(29671),d=o(38016),l=o(21850),h=o(51985),u=function(e,t,o,i){return new(o||(o=Promise))((function(n,s){function r(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};const g="9_cutcopypaste",p=n.ib||document.queryCommandSupported("cut"),m=n.ib||document.queryCommandSupported("copy"),f="undefined"!==typeof navigator.clipboard&&!i.isFirefox||document.queryCommandSupported("paste");function _(e){return e.register(),e}const C=p?_(new r.fE({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:n.ib?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:l.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:l.D8.EditorContext,group:g,title:d.kg("actions.clipboard.cutLabel","Cut"),when:c.R.writable,order:1},{menuId:l.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.cutLabel","Cut"),order:1},{menuId:l.D8.SimpleEditorContext,group:g,title:d.kg("actions.clipboard.cutLabel","Cut"),when:c.R.writable,order:1}]})):void 0,v=m?_(new r.fE({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:n.ib?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:l.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:l.D8.EditorContext,group:g,title:d.kg("actions.clipboard.copyLabel","Copy"),order:2},{menuId:l.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.copyLabel","Copy"),order:1},{menuId:l.D8.SimpleEditorContext,group:g,title:d.kg("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;l.ZG.appendMenuItem(l.D8.MenubarEditMenu,{submenu:l.D8.MenubarCopy,title:{value:d.kg("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3}),l.ZG.appendMenuItem(l.D8.EditorContext,{submenu:l.D8.EditorContextCopy,title:{value:d.kg("copy as","Copy As"),original:"Copy As"},group:g,order:3}),l.ZG.appendMenuItem(l.D8.EditorContext,{submenu:l.D8.EditorContextShare,title:{value:d.kg("share","Share"),original:"Share"},group:"11_share",order:-1});const b=f?_(new r.fE({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:n.ib?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:l.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:l.D8.EditorContext,group:g,title:d.kg("actions.clipboard.pasteLabel","Paste"),when:c.R.writable,order:4},{menuId:l.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:l.D8.SimpleEditorContext,group:g,title:d.kg("actions.clipboard.pasteLabel","Paste"),when:c.R.writable,order:4}]})):void 0;class y extends r.ks{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:d.kg("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:c.R.textInputFocus,primary:0,weight:100}})}run(e,t){if(!t.hasModel())return;!t.getOption(33)&&t.getSelection().isEmpty()||(s.Eq.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),s.Eq.forceCopyWithSyntaxHighlighting=!1)}}function k(e,t){e&&(e.addImplementation(1e4,"code-editor",((e,o)=>{const i=e.get(a.T).getFocusedCodeEditor();if(i&&i.hasTextFocus()){const e=i.getOption(33),o=i.getSelection();return o&&o.isEmpty()&&!e||document.execCommand(t),!0}return!1})),e.addImplementation(0,"generic-dom",((e,o)=>(document.execCommand(t),!0))))}k(C,"cut"),k(v,"copy"),b&&(b.addImplementation(1e4,"code-editor",((e,t)=>{const o=e.get(a.T),i=e.get(h.h),r=o.getFocusedCodeEditor();if(r&&r.hasTextFocus()){return!(!document.execCommand("paste")&&n.HZ)||u(void 0,void 0,void 0,(function*(){const e=yield i.readText();if(""!==e){const t=s.bs.INSTANCE.get(e);let o=!1,i=null,n=null;t&&(o=r.getOption(33)&&!!t.isFromEmptySelection,i="undefined"!==typeof t.multicursorText?t.multicursorText:null,n=t.mode),r.trigger("keyboard","paste",{text:e,pasteOnNewLine:o,multicursorText:i,mode:n})}}))}return!1})),b.addImplementation(0,"generic-dom",((e,t)=>(document.execCommand("paste"),!0)))),m&&(0,r.Fl)(y)},10993:(e,t,o)=>{o.d(t,{C9:()=>b,Rw:()=>k,Uy:()=>y,Vi:()=>w,Xj:()=>C,dU:()=>L,k_:()=>_,v8:()=>v});var i=o(39869),n=o(74832),s=o(24156),r=o(26819),a=o(54605),c=o(85693),d=o(15186),l=o(21429),h=o(47665),u=o(84562),g=o(84134),p=o(53397),m=o(68975),f=function(e,t,o,i){return new(o||(o=Promise))((function(n,s){function r(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};const _="editor.action.codeAction",C="editor.action.refactor",v="editor.action.refactor.preview",b="editor.action.sourceAction",y="editor.action.organizeImports",k="editor.action.fixAll";class w{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return f(this,void 0,void 0,(function*(){if((null===(t=this.provider)||void 0===t?void 0:t.resolveCodeAction)&&!this.action.edit){let t;try{t=yield this.provider.resolveCodeAction(this.action,e)}catch(o){(0,s.M_)(o)}t&&(this.action.edit=t.edit)}return this}))}}class S extends r.jG{constructor(e,t,o){super(),this.documentation=t,this._register(o),this.allActions=[...e].sort(S.codeActionsComparator),this.validActions=this.allActions.filter((({action:e})=>!e.disabled))}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:(0,i.EI)(e.diagnostics)?(0,i.EI)(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:(0,i.EI)(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some((({action:e})=>!!e.kind&&p.gB.QuickFix.contains(new p.gB(e.kind))&&!!e.isPreferred))}}const x={actions:[],documentation:void 0};function L(e,t,o,n,a,d){var l;const h=n.filter||{},u={only:null===(l=h.include)||void 0===l?void 0:l.value,trigger:n.type},g=new c.ER(t,d),m=function(e,t,o){return e.all(t).filter((e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some((e=>(0,p.uJ)(o,new p.gB(e))))))}(e,t,h),_=new r.Cm,C=m.map((e=>f(this,void 0,void 0,(function*(){try{a.report(e);const i=yield e.provideCodeActions(t,o,u,g.token);if(i&&_.add(i),g.token.isCancellationRequested)return x;const n=((null===i||void 0===i?void 0:i.actions)||[]).filter((e=>e&&(0,p.aF)(h,e))),s=function(e,t,o){if(!e.documentation)return;const i=e.documentation.map((e=>({kind:new p.gB(e.kind),command:e.command})));if(o){let e;for(const t of i)t.kind.contains(o)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return null===e||void 0===e?void 0:e.command}for(const n of t)if(n.kind)for(const e of i)if(e.kind.contains(new p.gB(n.kind)))return e.command;return}(e,n,h.include);return{actions:n.map((t=>new w(t,e))),documentation:s}}catch(i){if((0,s.MB)(i))throw i;return(0,s.M_)(i),x}})))),v=e.onDidChange((()=>{const o=e.all(t);(0,i.aI)(o,m)||g.cancel()}));return Promise.all(C).then((e=>{const t=e.map((e=>e.actions)).flat(),o=(0,i.Yc)(e.map((e=>e.documentation)));return new S(t,o,_)})).finally((()=>{v.dispose(),g.dispose()}))}u.wb.registerCommand("_executeCodeActionProvider",(function(e,t,o,i,r){return f(this,void 0,void 0,(function*(){if(!(t instanceof a.r))throw(0,s.Qg)();const{codeActionProvider:c}=e.get(m.u),u=e.get(h.S).getModel(t);if(!u)throw(0,s.Qg)();const f=l.L.isISelection(o)?l.L.liftSelection(o):d.Q.isIRange(o)?u.validateRange(o):void 0;if(!f)throw(0,s.Qg)();const _="string"===typeof i?new p.gB(i):void 0,C=yield L(c,u,f,{type:1,triggerAction:p.fo.Default,filter:{includeSourceActions:!0,include:_}},g.ke.None,n.X.None),v=[],b=Math.min(C.validActions.length,"number"===typeof r?r:0);for(let e=0;e<b;e++)v.push(C.validActions[e].resolve(n.X.None));try{return yield Promise.all(v),C.validActions.map((e=>e.action))}finally{setTimeout((()=>C.dispose()),100)}}))}))},50971:(e,t,o)=>{o.d(t,{tD:()=>xe,bw:()=>ve,pk:()=>Se,Ez:()=>we,hi:()=>Ce,d1:()=>pe,Hd:()=>be,fV:()=>ye,GX:()=>ke});var i=o(74832),n=o(60157),s=o(26819),r=o(53817),a=o(50051),c=o(65896),d=o(29671),l=o(68975),h=o(10993),u=o(24156),g=o(5179),p=o(93218),m=o(38278),f=o(48624),_=o(62612),C=o(53397),v=o(21571),b=o(84278),y=o(206),k=function(e,t,o,i){var n,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,o,r):n(t,o))||r);return s>3&&r&&Object.defineProperty(t,o,r),r},w=function(e,t){return function(o,i){t(o,i,e)}},S=function(e,t,o,i){return new(o||(o=Promise))((function(n,s){function r(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};class x extends f.rc{constructor(e,t){super(e.command?e.command.id:e.title,e.title.replace(/\r\n|\r|\n/g," "),void 0,!e.disabled,t),this.action=e}}let L=class extends s.jG{constructor(e,t,o,i,n,r){super(),this._editor=e,this._delegate=t,this._contextMenuService=o,this._languageFeaturesService=n,this._telemetryService=r,this._visible=!1,this._showingActions=this._register(new s.HE),this._keybindingResolver=new A({getKeybindings:()=>i.getKeybindings()})}get isVisible(){return this._visible}show(e,t,o,i){return S(this,void 0,void 0,(function*(){const n=i.includeDisabledActions?t.allActions:t.validActions;if(!n.length)return void(this._visible=!1);if(!this._editor.getDomNode())throw this._visible=!1,(0,u.aD)();this._visible=!0,this._showingActions.value=t;const s=this.getMenuActions(e,n,t.documentation),r=_.y.isIPosition(o)?this._toCoords(o):o||{x:0,y:0},a=this._keybindingResolver.getResolver(),c=this._editor.getOption(116);this._contextMenuService.showContextMenu({domForShadowRoot:c?this._editor.getDomNode():void 0,getAnchor:()=>r,getActions:()=>s,onHide:o=>{const n=i.fromLightbulb?C.fo.Lightbulb:e.triggerAction;this._telemetryService.publicLog2("codeAction.applyCodeAction",{codeActionFrom:n,validCodeActions:t.validActions.length,cancelled:o}),this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:e=>e instanceof x?a(e.action):void 0})}))}getMenuActions(e,t,o){var i,n;const s=t=>new x(t.action,(()=>this._delegate.onSelectCodeAction(t,e))),r=t.map(s),a=[...o],c=this._editor.getModel();if(c&&r.length)for(const d of this._languageFeaturesService.codeActionProvider.all(c))d._getAdditionalMenuItems&&a.push(...d._getAdditionalMenuItems({trigger:e.type,only:null===(n=null===(i=e.filter)||void 0===i?void 0:i.include)||void 0===n?void 0:n.value},t.map((e=>e.action))));return a.length&&r.push(new f.wv,...a.map((e=>s(new h.Vi({title:e.title,command:e},void 0))))),r}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),o=(0,m.BK)(this._editor.getDomNode());return{x:o.left+t.left,y:o.top+t.top+t.height}}};L=k([w(2,v.Z),w(3,b.b),w(4,l.u),w(5,y.k)],L);class A{constructor(e){this._keybindingProvider=e}getResolver(){const e=new n.d((()=>this._keybindingProvider.getKeybindings().filter((e=>A.codeActionCommands.indexOf(e.command)>=0)).filter((e=>e.resolvedKeybinding)).map((e=>{let t=e.commandArgs;return e.command===h.Uy?t={kind:C.gB.SourceOrganizeImports.value}:e.command===h.Rw&&(t={kind:C.gB.SourceFixAll.value}),Object.assign({resolvedKeybinding:e.resolvedKeybinding},C.QA.fromUser(t,{kind:C.gB.None,apply:"never"}))}))));return t=>{if(t.kind){const o=this.bestKeybindingForCodeAction(t,e.getValue());return null===o||void 0===o?void 0:o.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const o=new C.gB(e.kind);return t.filter((e=>e.kind.contains(o))).filter((t=>!t.preferred||e.isPreferred)).reduceRight(((e,t)=>e?e.kind.contains(t.kind)?t:e:t),void 0)}}A.codeActionCommands=[h.Xj,h.k_,h.C9,h.Uy,h.Rw];var D,P=o(37777),M=o(82747),N=o(74663),I=o(42948),E=o(38016),O=o(93467),R=o(86471),T=function(e,t,o,i){var n,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,o,r):n(t,o))||r);return s>3&&r&&Object.defineProperty(t,o,r),r},F=function(e,t){return function(o,i){t(o,i,e)}};!function(e){e.Hidden={type:0};e.Showing=class{constructor(e,t,o,i){this.actions=e,this.trigger=t,this.editorPosition=o,this.widgetPosition=i,this.type=1}}}(D||(D={}));let B=class e extends s.jG{constructor(e,t,o,i){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=o,this._keybindingService=i,this._onClick=this._register(new N.vl),this.onClick=this._onClick.event,this._state=D.Hidden,this._domNode=document.createElement("div"),this._domNode.className=M.W6.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent((e=>{const t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide()}))),P.q.ignoreTarget(this._domNode),this._register(m.Xc(this._domNode,(e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();const{top:t,height:o}=m.BK(this._domNode),i=this._editor.getOption(60);let n=Math.floor(i/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(n+=i),this._onClick.fire({x:e.posx,y:t+o+n,actions:this.state.actions,trigger:this.state.trigger})}))),this._register(m.ko(this._domNode,"mouseenter",(e=>{1===(1&e.buttons)&&this.hide()}))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(58)&&!this._editor.getOption(58).enabled&&this.hide()}))),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(t,o,i){if(t.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(58).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),c=s.getOptions().tabSize,d=n.get(45),l=s.getLineContent(r),h=(0,I.G)(l,c),u=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1);let g=r;if(!(d.spaceWidth*h>22))if(r>1&&!u(r-1))g-=1;else if(u(r+1)){if(a*d.spaceWidth<22)return this.hide()}else g+=1;this.state=new D.Showing(t,o,i,{position:{lineNumber:g,column:1},preference:e._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=D.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(1===this.state.type&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...M.W6.lightBulb.classNamesArray),this._domNode.classList.add(...M.W6.lightbulbAutofix.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(e)return void(this.title=E.kg("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",e.getLabel()))}this._domNode.classList.remove(...M.W6.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...M.W6.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);this.title=e?E.kg("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):E.kg("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};B._posPref=[0],B=T([F(3,b.b)],B),(0,R.zy)(((e,t)=>{var o;const i=null===(o=e.getColor(O.YtV))||void 0===o?void 0:o.transparent(.7),n=e.getColor(O.yHf);n&&t.addRule(`\n\t\t.monaco-editor .contentWidgets ${M.W6.lightBulb.cssSelector} {\n\t\t\tcolor: ${n};\n\t\t\tbackground-color: ${i};\n\t\t}`);const s=e.getColor(O.qTN);s&&t.addRule(`\n\t\t.monaco-editor .contentWidgets ${M.W6.lightbulbAutofix.cssSelector} {\n\t\t\tcolor: ${s};\n\t\t\tbackground-color: ${i};\n\t\t}`)}));var W,V=function(e,t,o,i){var n,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,o,r):n(t,o))||r);return s>3&&r&&Object.defineProperty(t,o,r),r},j=function(e,t){return function(o,i){t(o,i,e)}},Q=function(e,t,o,i){return new(o||(o=Promise))((function(n,s){function r(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))},H=function(e,t,o,i,n){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(e,o):n?n.value=o:t.set(e,o),o},U=function(e,t,o,i){if("a"===o&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?i:"a"===o?i.call(e):i?i.value:t.get(e)};let z=class extends s.jG{constructor(e,t,o,i,r){super(),this._editor=e,this.delegate=i,this._activeCodeActions=this._register(new s.HE),W.set(this,!1),this._codeActionWidget=new n.d((()=>this._register(r.createInstance(L,this._editor,{onSelectCodeAction:(e,t)=>Q(this,void 0,void 0,(function*(){this.delegate.applyCodeAction(e,!0,Boolean(t.preview))}))})))),this._lightBulbWidget=new n.d((()=>{const e=this._register(r.createInstance(B,this._editor,t,o));return this._register(e.onClick((e=>this.showCodeActionList(e.trigger,e.actions,e,{includeDisabledActions:!1,fromLightbulb:!0})))),e}))}dispose(){H(this,W,!0,"f"),super.dispose()}update(e){var t,o,i,n,s;return Q(this,void 0,void 0,(function*(){if(1!==e.type)return void(null===(t=this._lightBulbWidget.rawValue)||void 0===t||t.hide());let r;try{r=yield e.actions}catch(a){return void(0,u.dz)(a)}if(!U(this,W,"f"))if(this._lightBulbWidget.getValue().update(r,e.trigger,e.position),1===e.trigger.type){if(null===(o=e.trigger.filter)||void 0===o?void 0:o.include){const t=this.tryGetValidActionToApply(e.trigger,r);if(t){try{this._lightBulbWidget.getValue().hide(),yield this.delegate.applyCodeAction(t,!1,!1)}finally{r.dispose()}return}if(e.trigger.context){const t=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,r);if(t&&t.action.disabled)return null===(i=g.k.get(this._editor))||void 0===i||i.showMessage(t.action.disabled,e.trigger.context.position),void r.dispose()}}const t=!!(null===(n=e.trigger.filter)||void 0===n?void 0:n.include);if(e.trigger.context&&(!r.allActions.length||!t&&!r.validActions.length))return null===(s=g.k.get(this._editor))||void 0===s||s.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=r,void r.dispose();this._activeCodeActions.value=r,this._codeActionWidget.getValue().show(e.trigger,r,e.position,{includeDisabledActions:t,fromLightbulb:!1})}else this._codeActionWidget.getValue().isVisible?r.dispose():this._activeCodeActions.value=r}))}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find((({action:e})=>e.disabled)):void 0}tryGetValidActionToApply(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}showCodeActionList(e,t,o,i){return Q(this,void 0,void 0,(function*(){this._codeActionWidget.getValue().show(e,t,o,i)}))}};W=new WeakMap,z=V([j(4,p._Y)],z);var $,K=o(84562),G=o(40350),q=o(1882),Z=o(84134),X=o(11734),J=o(86683),Y=o(9934),ee=o(15186),te=function(e,t,o,i){if("a"===o&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?i:"a"===o?i.call(e):i?i.value:t.get(e)},oe=function(e,t,o,i,n){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(e,o):n?n.value=o:t.set(e,o),o};const ie=new G.N1("supportedCodeAction","");class ne extends s.jG{constructor(e,t,o,i=250){super(),this._editor=e,this._markerService=t,this._signalChange=o,this._delay=i,this._autoTriggerTimer=this._register(new J.pc),this._register(this._markerService.onMarkerChanged((e=>this._onMarkerChanges(e)))),this._register(this._editor.onDidChangeCursorPosition((()=>this._onCursorChange())))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some((e=>(0,Y.n4)(e,t.uri)))&&this._autoTriggerTimer.cancelAndSet((()=>{this.trigger({type:2,triggerAction:C.fo.Default})}),this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet((()=>{this.trigger({type:2,triggerAction:C.fo.Default})}),this._delay)}_getRangeOfMarker(e){const t=this._editor.getModel();if(t)for(const o of this._markerService.read({resource:t.uri})){const i=t.validateRange(o);if(ee.Q.intersectRanges(i,e))return ee.Q.lift(i)}}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),o=this._editor.getSelection();if(o.isEmpty()&&2===e.type){const{lineNumber:e,column:i}=o.getPosition(),n=t.getLineContent(e);if(0===n.length)return;if(1===i){if(/\s/.test(n[0]))return}else if(i===t.getLineMaxColumn(e)){if(/\s/.test(n[n.length-1]))return}else if(/\s/.test(n[i-2])&&/\s/.test(n[i-1]))return}return o}_createEventAndSignalChange(e,t){const o=this._editor.getModel();if(!t||!o)return void this._signalChange(void 0);const i=this._getRangeOfMarker(t),n=i?i.getStartPosition():t.getStartPosition(),s={trigger:e,selection:t,position:n};return this._signalChange(s),s}}var se;!function(e){e.Empty={type:0};e.Triggered=class{constructor(e,t,o,i){this.trigger=e,this.rangeOrSelection=t,this.position=o,this._cancellablePromise=i,this.type=1,this.actions=i.catch((e=>{if((0,u.MB)(e))return re;throw e}))}cancel(){this._cancellablePromise.cancel()}}}(se||(se={}));const re={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class ae extends s.jG{constructor(e,t,o,i,n){super(),this._editor=e,this._registry=t,this._markerService=o,this._progressService=n,this._codeActionOracle=this._register(new s.HE),this._state=se.Empty,this._onDidChangeState=this._register(new N.vl),this.onDidChangeState=this._onDidChangeState.event,$.set(this,!1),this._supportedCodeActions=ie.bindTo(i),this._register(this._editor.onDidChangeModel((()=>this._update()))),this._register(this._editor.onDidChangeModelLanguage((()=>this._update()))),this._register(this._registry.onDidChange((()=>this._update()))),this._update()}dispose(){te(this,$,"f")||(oe(this,$,!0,"f"),super.dispose(),this.setState(se.Empty,!0))}_update(){if(te(this,$,"f"))return;this._codeActionOracle.value=void 0,this.setState(se.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(82)){const t=[];for(const o of this._registry.all(e))Array.isArray(o.providedCodeActionKinds)&&t.push(...o.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new ne(this._editor,this._markerService,(t=>{var o;if(!t)return void this.setState(se.Empty);const i=(0,J.SS)((o=>(0,h.dU)(this._registry,e,t.selection,t.trigger,Z.ke.None,o)));1===t.trigger.type&&(null===(o=this._progressService)||void 0===o||o.showWhile(i,250)),this.setState(new se.Triggered(t.trigger,t.selection,t.position,i))}),void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:C.fo.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;null===(t=this._codeActionOracle.value)||void 0===t||t.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,t||te(this,$,"f")||this._onDidChangeState.fire(e))}}$=new WeakMap;var ce=function(e,t,o,i){var n,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,o,r):n(t,o))||r);return s>3&&r&&Object.defineProperty(t,o,r),r},de=function(e,t){return function(o,i){t(o,i,e)}},le=function(e,t,o,i){return new(o||(o=Promise))((function(n,s){function r(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};function he(e){return G.M$.regex(ie.keys()[0],new RegExp("(\\s|^)"+(0,r.bm)(e.value)+"\\b"))}function ue(e,t,o,i){const n=C.QA.fromUser(t,{kind:C.gB.Refactor,apply:"never"});return _e(e,"string"===typeof(null===t||void 0===t?void 0:t.kind)?n.preferred?E.kg("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",t.kind):E.kg("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",t.kind):n.preferred?E.kg("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):E.kg("editor.action.refactor.noneMessage","No refactorings available"),{include:C.gB.Refactor.contains(n.kind)?n.kind:C.gB.None,onlyIncludePreferredActions:n.preferred},n.apply,o,i)}const ge={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:E.kg("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:E.kg("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[E.kg("args.schema.apply.first","Always apply the first returned code action."),E.kg("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),E.kg("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:E.kg("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let pe=class e extends s.jG{constructor(e,t,o,i,s,r){super(),this._instantiationService=s,this._editor=e,this._model=this._register(new ae(this._editor,r.codeActionProvider,t,o,i)),this._register(this._model.onDidChangeState((e=>this.update(e)))),this._ui=new n.d((()=>this._register(new z(e,Ce.Id,xe.Id,{applyCodeAction:(e,t,o)=>le(this,void 0,void 0,(function*(){try{yield this._applyCodeAction(e,o)}finally{t&&this._trigger({type:2,triggerAction:C.fo.QuickFix,filter:{}})}}))},this._instantiationService))))}static get(t){return t.getContribution(e.ID)}update(e){this._ui.getValue().update(e)}showCodeActions(e,t,o){return this._ui.getValue().showCodeActionList(e,t,o,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,o,i,n){var s;if(!this._editor.hasModel())return;null===(s=g.k.get(this._editor))||void 0===s||s.closeMessage();const r=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:o,autoApply:i,context:{notAvailableMessage:e,position:r},preview:n})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t){return this._instantiationService.invokeFunction(fe,e,me.FromCodeActions,{preview:t,editor:this._editor})}};var me;function fe(e,t,o,n){return le(this,void 0,void 0,(function*(){const s=e.get(c.nu),r=e.get(K.wT),a=e.get(y.k),d=e.get(X.Ot);if(a.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred,reason:o}),yield t.resolve(i.X.None),t.action.edit&&(yield s.apply(c.jN.convert(t.action.edit),{editor:null===n||void 0===n?void 0:n.editor,label:t.action.title,quotableLabel:t.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:!0,showPreview:null===n||void 0===n?void 0:n.preview})),t.action.command)try{yield r.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(l){const e=function(e){return"string"===typeof e?e:e instanceof Error&&"string"===typeof e.message?e.message:void 0}(l);d.error("string"===typeof e?e:E.kg("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}))}function _e(e,t,o,i,n=!1,s=C.fo.Default){if(e.hasModel()){const r=pe.get(e);null===r||void 0===r||r.manualTriggerAtCurrentPosition(t,s,o,i,n)}}pe.ID="editor.contrib.quickFixController",pe=ce([de(1,q.DR),de(2,G.fN),de(3,Z.N8),de(4,p._Y),de(5,l.u)],pe),function(e){e.OnSave="onSave",e.FromProblemsView="fromProblemsView",e.FromCodeActions="fromCodeActions"}(me||(me={}));class Ce extends a.ks{constructor(){super({id:Ce.Id,label:E.kg("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:G.M$.and(d.R.writable,d.R.hasCodeActionsProvider),kbOpts:{kbExpr:d.R.editorTextFocus,primary:2132,weight:100}})}run(e,t){return _e(t,E.kg("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,!1,C.fo.QuickFix)}}Ce.Id="editor.action.quickFix";class ve extends a.DX{constructor(){super({id:h.k_,precondition:G.M$.and(d.R.writable,d.R.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:ge}]}})}runEditorCommand(e,t,o){const i=C.QA.fromUser(o,{kind:C.gB.Empty,apply:"ifSingle"});return _e(t,"string"===typeof(null===o||void 0===o?void 0:o.kind)?i.preferred?E.kg("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",o.kind):E.kg("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",o.kind):i.preferred?E.kg("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):E.kg("editor.action.codeAction.noneMessage","No code actions available"),{include:i.kind,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)}}class be extends a.ks{constructor(){super({id:h.Xj,label:E.kg("refactor.label","Refactor..."),alias:"Refactor...",precondition:G.M$.and(d.R.writable,d.R.hasCodeActionsProvider),kbOpts:{kbExpr:d.R.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:G.M$.and(d.R.writable,he(C.gB.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:ge}]}})}run(e,t,o){return ue(t,o,!1,C.fo.Refactor)}}class ye extends a.ks{constructor(){super({id:h.v8,label:E.kg("refactor.preview.label","Refactor with Preview..."),alias:"Refactor Preview...",precondition:G.M$.and(d.R.writable,d.R.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:ge}]}})}run(e,t,o){return ue(t,o,!0,C.fo.RefactorPreview)}}class ke extends a.ks{constructor(){super({id:h.C9,label:E.kg("source.label","Source Action..."),alias:"Source Action...",precondition:G.M$.and(d.R.writable,d.R.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:G.M$.and(d.R.writable,he(C.gB.Source))},description:{description:"Source Action...",args:[{name:"args",schema:ge}]}})}run(e,t,o){const i=C.QA.fromUser(o,{kind:C.gB.Source,apply:"never"});return _e(t,"string"===typeof(null===o||void 0===o?void 0:o.kind)?i.preferred?E.kg("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",o.kind):E.kg("editor.action.source.noneMessage.kind","No source actions for '{0}' available",o.kind):i.preferred?E.kg("editor.action.source.noneMessage.preferred","No preferred source actions available"):E.kg("editor.action.source.noneMessage","No source actions available"),{include:C.gB.Source.contains(i.kind)?i.kind:C.gB.None,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply,void 0,C.fo.SourceAction)}}class we extends a.ks{constructor(){super({id:h.Uy,label:E.kg("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:G.M$.and(d.R.writable,he(C.gB.SourceOrganizeImports)),kbOpts:{kbExpr:d.R.editorTextFocus,primary:1581,weight:100}})}run(e,t){return _e(t,E.kg("editor.action.organize.noneMessage","No organize imports action available"),{include:C.gB.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,C.fo.OrganizeImports)}}class Se extends a.ks{constructor(){super({id:h.Rw,label:E.kg("fixAll.label","Fix All"),alias:"Fix All",precondition:G.M$.and(d.R.writable,he(C.gB.SourceFixAll))})}run(e,t){return _e(t,E.kg("fixAll.noneMessage","No fix all action available"),{include:C.gB.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,C.fo.FixAll)}}class xe extends a.ks{constructor(){super({id:xe.Id,label:E.kg("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:G.M$.and(d.R.writable,he(C.gB.QuickFix)),kbOpts:{kbExpr:d.R.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return _e(t,E.kg("editor.action.autoFix.noneMessage","No auto fixes available"),{include:C.gB.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,C.fo.AutoFix)}}xe.Id="editor.action.autoFix"},35950:(e,t,o)=>{o.r(t);var i=o(50051),n=o(50971);(0,i.HW)(n.d1.ID,n.d1),(0,i.Fl)(n.hi),(0,i.Fl)(n.Hd),(0,i.Fl)(n.fV),(0,i.Fl)(n.GX),(0,i.Fl)(n.Ez),(0,i.Fl)(n.tD),(0,i.Fl)(n.pk),(0,i.E_)(new n.bw)},53397:(e,t,o)=>{o.d(t,{QA:()=>c,aF:()=>r,fo:()=>n,gB:()=>i,uJ:()=>s});class i{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||""===this.value||e.value.startsWith(this.value+i.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new i(this.value+i.sep+e)}}var n;function s(e,t){return!(e.include&&!e.include.intersects(t))&&((!e.excludes||!e.excludes.some((o=>a(t,o,e.include))))&&!(!e.includeSourceActions&&i.Source.contains(t)))}function r(e,t){const o=t.kind?new i(t.kind):void 0;return!!(!e.include||o&&e.include.contains(o))&&(!(e.excludes&&o&&e.excludes.some((t=>a(o,t,e.include))))&&(!(!e.includeSourceActions&&o&&i.Source.contains(o))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)))}function a(e,t,o){return!!t.contains(e)&&(!o||!t.contains(o))}i.sep=".",i.None=new i("@@none@@"),i.Empty=new i(""),i.QuickFix=new i("quickfix"),i.Refactor=new i("refactor"),i.Source=new i("source"),i.SourceOrganizeImports=i.Source.append("organizeImports"),i.SourceFixAll=i.Source.append("fixAll"),function(e){e.Refactor="refactor",e.RefactorPreview="refactor preview",e.Lightbulb="lightbulb",e.Default="other (default)",e.SourceAction="source action",e.QuickFix="quick fix action",e.FixAll="fix all",e.OrganizeImports="organize imports",e.AutoFix="auto fix",e.QuickFixHover="quick fix hover window",e.OnSave="save participants",e.ProblemsView="problems view"}(n||(n={}));class c{constructor(e,t,o){this.kind=e,this.apply=t,this.preferred=o}static fromUser(e,t){return e&&"object"===typeof e?new c(c.getKindFromUser(e,t.kind),c.getApplyFromUser(e,t.apply),c.getPreferredUser(e)):new c(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch("string"===typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return"string"===typeof e.kind?new i(e.kind):t}static getPreferredUser(e){return"boolean"===typeof e.preferred&&e.preferred}}},70149:(e,t,o)=>{o.r(t),o.d(t,{CodeLensContribution:()=>z});var i=o(38278),n=o(86683),s=o(24156),r=o(82671),a=o(26819),c=o(24195),d=o(50051),l=o(86979),h=o(29671),u=o(74832),g=o(4562),p=o(54605),m=o(47665),f=o(84562),_=o(68975),C=function(e,t,o,i){return new(o||(o=Promise))((function(n,s){function r(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};class v{constructor(){this.lenses=[],this._disposables=new a.Cm}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const o of e.lenses)this.lenses.push({symbol:o,provider:t})}}function b(e,t,o){return C(this,void 0,void 0,(function*(){const i=e.ordered(t),n=new Map,r=new v,a=i.map(((e,i)=>C(this,void 0,void 0,(function*(){n.set(e,i);try{const i=yield Promise.resolve(e.provideCodeLenses(t,o));i&&r.add(i,e)}catch(a){(0,s.M_)(a)}}))));return yield Promise.all(a),r.lenses=r.lenses.sort(((e,t)=>e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:n.get(e.provider)<n.get(t.provider)?-1:n.get(e.provider)>n.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0)),r}))}f.wb.registerCommand("_executeCodeLensProvider",(function(e,...t){let[o,i]=t;(0,g.j)(p.r.isUri(o)),(0,g.j)("number"===typeof i||!i);const{codeLensProvider:n}=e.get(_.u),r=e.get(m.S).getModel(o);if(!r)throw(0,s.Qg)();const c=[],d=new a.Cm;return b(n,r,u.X.None).then((e=>{d.add(e);const t=[];for(const o of e.lenses)void 0===i||null===i||Boolean(o.symbol.command)?c.push(o.symbol):i-- >0&&o.provider.resolveCodeLens&&t.push(Promise.resolve(o.provider.resolveCodeLens(r,o.symbol,u.X.None)).then((e=>c.push(e||o.symbol))));return Promise.all(t)})).then((()=>c)).finally((()=>{setTimeout((()=>d.dispose()),100)}))}));var y=o(82382),k=o(1713),w=o(15186),S=o(44785),x=o(93218),L=o(2234),A=function(e,t,o,i){var n,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,o,r):n(t,o))||r);return s>3&&r&&Object.defineProperty(t,o,r),r},D=function(e,t){return function(o,i){t(o,i,e)}};const P=(0,x.u1)("ICodeLensCache");class M{constructor(e,t){this.lineCount=e,this.data=t}}let N=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new k.qK(20,.75);(0,n.cx)((()=>e.remove("codelens/cache",1)));const t="codelens/cache2",o=e.get(t,1,"{}");this._deserialize(o),(0,y.O)(e.onWillSaveState)((o=>{o.reason===L.LP.SHUTDOWN&&e.store(t,this._serialize(),1,1)}))}put(e,t){const o=t.lenses.map((e=>{var t;return{range:e.symbol.range,command:e.symbol.command&&{id:"",title:null===(t=e.symbol.command)||void 0===t?void 0:t.title}}})),i=new v;i.add({lenses:o,dispose:()=>{}},this._fakeProvider);const n=new M(e.getLineCount(),i);this._cache.set(e.uri.toString(),n)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,o]of this._cache){const i=new Set;for(const e of o.data.lenses)i.add(e.symbol.range.startLineNumber);e[t]={lineCount:o.lineCount,lines:[...i.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const e in t){const o=t[e],i=[];for(const e of o.lines)i.push({range:new w.Q(e,1,e,11)});const n=new v;n.add({lenses:i,dispose(){}},this._fakeProvider),this._cache.set(e,new M(o.lineCount,n))}}catch(t){}}};N=A([D(0,L.CS)],N),(0,S.v)(P,N);var I=o(8301),E=o(28715);class O{constructor(e,t,o){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=o,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return 0!==this._lastHeight&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class R{constructor(e,t,o){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+R._idPool++,this.updatePosition(o),this._domNode=document.createElement("span"),this._domNode.className=`codelens-decoration ${t}`}withCommands(e,t){this._commands.clear();const o=[];let n=!1;for(let s=0;s<e.length;s++){const t=e[s];if(t&&(n=!0,t.command)){const n=(0,I.n)(t.command.title.trim());t.command.id?(o.push(i.$("a",{id:String(s),title:t.command.tooltip,role:"button"},...n)),this._commands.set(String(s),t.command)):o.push(i.$("span",{title:t.command.tooltip},...n)),s+1<e.length&&o.push(i.$("span",void 0,"\xa0|\xa0"))}}n?(i.Ln(this._domNode,...o),this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):i.Ln(this._domNode,i.$("span",void 0,"no commands"))}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){const t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}getPosition(){return this._widgetPosition||null}}R._idPool=0;class T{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){const t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let o=0,i=t.length;o<i;o++)this._addDecorationsCallbacks[o](t[o])}}class F{constructor(e,t,o,i,n,s,r){let a;this._isDisposed=!1,this._editor=t,this._className=o,this._data=e,this._decorationIds=[];const c=[];this._data.forEach(((e,t)=>{e.symbol.command&&c.push(e.symbol),i.addDecoration({range:e.symbol.range,options:E.kI.EMPTY},(e=>this._decorationIds[t]=e)),a=a?w.Q.plusRange(a,e.symbol.range):w.Q.lift(e.symbol.range)})),this._viewZone=new O(a.startLineNumber-1,s,r),this._viewZoneId=n.addZone(this._viewZone),c.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(c,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new R(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],null===t||void 0===t||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some(((e,t)=>{const o=this._editor.getModel().getDecorationRange(e),i=this._data[t].symbol;return!(!o||w.Q.isEmpty(i.range)!==o.isEmpty())}))}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach(((e,o)=>{t.addDecoration({range:e.symbol.range,options:E.kI.EMPTY},(e=>this._decorationIds[o]=e))}))}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t<this._decorationIds.length;t++){const o=e.getDecorationRange(this._decorationIds[t]);o&&(this._data[t].symbol.range=o)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let t=0;t<this._data.length;t++){const o=e[t];if(o){const{symbol:e}=this._data[t];e.command=o.command||e.command}}}getCommand(e){var t;return null===(t=this._contentWidget)||void 0===t?void 0:t.getCommand(e)}getLineNumber(){const e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){if(this.isValid()){const t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}}var B=o(38016),W=o(11734),V=o(92002),j=o(14399),Q=function(e,t,o,i){var n,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,o,r):n(t,o))||r);return s>3&&r&&Object.defineProperty(t,o,r),r},H=function(e,t){return function(o,i){t(o,i,e)}},U=function(e,t,o,i){return new(o||(o=Promise))((function(n,s){function r(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};let z=class{constructor(e,t,o,s,c,d){this._editor=e,this._languageFeaturesService=t,this._commandService=s,this._notificationService=c,this._codeLensCache=d,this._disposables=new a.Cm,this._localToDispose=new a.Cm,this._lenses=[],this._oldCodeLensModels=new a.Cm,this._provideCodeLensDebounce=o.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=o.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new n.uC((()=>this._resolveCodeLensesInViewport()),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(45)||e.hasChanged(16)||e.hasChanged(15))&&this._updateLensStyle(),e.hasChanged(14)&&this._onModelChange()}))),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._styleClassName="_"+(0,r.tW)(this._editor.getId()).toString(16),this._styleElement=i.li(i.Cl(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),null===(e=this._currentCodeLensModel)||void 0===e||e.dispose(),this._styleElement.remove()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(60)/this._editor.getOption(47));let t=this._editor.getOption(16);return(!t||t<5)&&(t=.9*this._editor.getOption(47)|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),o=this._editor.getOption(15),i=this._editor.getOption(45),n=`--codelens-font-family${this._styleClassName}`,s=`--codelens-font-features${this._styleClassName}`;let r=`\n\t\t.monaco-editor .codelens-decoration.${this._styleClassName} { line-height: ${e}px; font-size: ${t}px; padding-right: ${Math.round(.5*t)}px; font-feature-settings: var(${s}) }\n\t\t.monaco-editor .codelens-decoration.${this._styleClassName} span.codicon { line-height: ${e}px; font-size: ${t}px; }\n\t\t`;o&&(r+=`.monaco-editor .codelens-decoration.${this._styleClassName} { font-family: var(${n}), ${l.jU.fontFamily}}`),this._styleElement.textContent=r,this._editor.getContainerDomNode().style.setProperty(n,null!==o&&void 0!==o?o:"inherit"),this._editor.getContainerDomNode().style.setProperty(s,i.fontFeatureSettings),this._editor.changeViewZones((t=>{for(const o of this._lenses)o.updateHeight(e,t)}))}_localDispose(){var e,t,o;null===(e=this._getCodeLensModelPromise)||void 0===e||e.cancel(),this._getCodeLensModelPromise=void 0,null===(t=this._resolveCodeLensesPromise)||void 0===t||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),null===(o=this._currentCodeLensModel)||void 0===o||o.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e)return;if(!this._editor.getOption(14))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e))return void(t&&this._localToDispose.add((0,n.EQ)((()=>{const o=this._codeLensCache.get(e);t===o&&(this._codeLensCache.delete(e),this._onModelChange())}),3e4)));for(const i of this._languageFeaturesService.codeLensProvider.all(e))if("function"===typeof i.onDidChange){const e=i.onDidChange((()=>o.schedule()));this._localToDispose.add(e)}const o=new n.uC((()=>{var t;const i=Date.now();null===(t=this._getCodeLensModelPromise)||void 0===t||t.cancel(),this._getCodeLensModelPromise=(0,n.SS)((t=>b(this._languageFeaturesService.codeLensProvider,e,t))),this._getCodeLensModelPromise.then((t=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=t,this._codeLensCache.put(e,t);const n=this._provideCodeLensDebounce.update(e,Date.now()-i);o.delay=n,this._renderCodeLensSymbols(t),this._resolveCodeLensesInViewportSoon()}),s.dz)}),this._provideCodeLensDebounce.get(e));this._localToDispose.add(o),this._localToDispose.add((0,a.s)((()=>this._resolveCodeLensesScheduler.cancel()))),this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const o=[];let i=-1;this._lenses.forEach((e=>{e.isValid()&&i!==e.getLineNumber()?(e.update(t),i=e.getLineNumber()):o.push(e)}));const n=new T;o.forEach((e=>{e.dispose(n,t),this._lenses.splice(this._lenses.indexOf(e),1)})),n.commit(e)}))})),o.schedule()}))),this._localToDispose.add(this._editor.onDidFocusEditorWidget((()=>{o.schedule()}))),this._localToDispose.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add(this._editor.onDidLayoutChange((()=>{this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add((0,a.s)((()=>{if(this._editor.getModel()){const e=c.D.capture(this._editor);this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{this._disposeAllLenses(e,t)}))})),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseDown((e=>{if(9!==e.target.type)return;let t=e.target.element;if("SPAN"===(null===t||void 0===t?void 0:t.tagName)&&(t=t.parentElement),"A"===(null===t||void 0===t?void 0:t.tagName))for(const o of this._lenses){const e=o.getCommand(t);if(e){this._commandService.executeCommand(e.id,...e.arguments||[]).catch((e=>this._notificationService.error(e)));break}}}))),o.schedule()}_disposeAllLenses(e,t){const o=new T;for(const i of this._lenses)i.dispose(o,t);e&&o.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),o=[];let i;for(const r of e.lenses){const e=r.symbol.range.startLineNumber;e<1||e>t||(i&&i[i.length-1].symbol.range.startLineNumber===e?i.push(r):(i=[r],o.push(i)))}const n=c.D.capture(this._editor),s=this._getLayoutInfo();this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const i=new T;let n=0,r=0;for(;r<o.length&&n<this._lenses.length;){const e=o[r][0].symbol.range.startLineNumber,a=this._lenses[n].getLineNumber();a<e?(this._lenses[n].dispose(i,t),this._lenses.splice(n,1)):a===e?(this._lenses[n].updateCodeLensSymbols(o[r],i),r++,n++):(this._lenses.splice(n,0,new F(o[r],this._editor,this._styleClassName,i,t,s.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),n++,r++)}for(;n<this._lenses.length;)this._lenses[n].dispose(i,t),this._lenses.splice(n,1);for(;r<o.length;)this._lenses.push(new F(o[r],this._editor,this._styleClassName,i,t,s.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),r++;i.commit(e)}))})),n.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const o=[],i=[];if(this._lenses.forEach((e=>{const n=e.computeIfNecessary(t);n&&(o.push(n),i.push(e))})),0===o.length)return;const r=Date.now(),a=(0,n.SS)((e=>{const n=o.map(((o,n)=>{const r=new Array(o.length),a=o.map(((o,i)=>o.symbol.command||"function"!==typeof o.provider.resolveCodeLens?(r[i]=o.symbol,Promise.resolve(void 0)):Promise.resolve(o.provider.resolveCodeLens(t,o.symbol,e)).then((e=>{r[i]=e}),s.M_)));return Promise.all(a).then((()=>{e.isCancellationRequested||i[n].isDisposed()||i[n].updateCommands(r)}))}));return Promise.all(n)}));this._resolveCodeLensesPromise=a,this._resolveCodeLensesPromise.then((()=>{const e=this._resolveCodeLensesDebounce.update(t,Date.now()-r);this._resolveCodeLensesScheduler.delay=e,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}),(e=>{(0,s.dz)(e),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}))}getModel(){return this._currentCodeLensModel}};z.ID="css.editor.codeLens",z=Q([H(1,_.u),H(2,j.U),H(3,f.wT),H(4,W.Ot),H(5,P)],z),(0,d.HW)(z.ID,z),(0,d.Fl)(class extends d.ks{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:h.R.hasCodeLensProvider,label:(0,B.kg)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return U(this,void 0,void 0,(function*(){if(!t.hasModel())return;const o=e.get(V.GK),i=e.get(f.wT),n=e.get(W.Ot),s=t.getSelection().positionLineNumber,r=t.getContribution(z.ID);if(!r)return;const a=r.getModel();if(!a)return;const c=[];for(const e of a.lenses)e.symbol.command&&e.symbol.range.startLineNumber===s&&c.push({label:e.symbol.command.title,command:e.symbol.command});if(0===c.length)return;const d=yield o.pick(c,{canPickMany:!1});if(d){if(a.isDisposed)return yield i.executeCommand(this.id);try{yield i.executeCommand(d.command.id,...d.command.arguments||[])}catch(l){n.error(l)}}}))}})},27009:(e,t,o)=>{o.d(t,{R:()=>h,j:()=>l});var i=o(74832),n=o(24156),s=o(54605),r=o(15186),a=o(47665),c=o(84562),d=o(68975);function l(e,t,o){const i=[],n=e.ordered(t).reverse().map((e=>Promise.resolve(e.provideDocumentColors(t,o)).then((t=>{if(Array.isArray(t))for(const o of t)i.push({colorInfo:o,provider:e})}))));return Promise.all(n).then((()=>i))}function h(e,t,o,i){return Promise.resolve(o.provideColorPresentations(e,t,i))}c.wb.registerCommand("_executeDocumentColorProvider",(function(e,...t){const[o]=t;if(!(o instanceof s.r))throw(0,n.Qg)();const{colorProvider:r}=e.get(d.u),c=e.get(a.S).getModel(o);if(!c)throw(0,n.Qg)();const l=[],h=r.ordered(c).reverse().map((e=>Promise.resolve(e.provideDocumentColors(c,i.X.None)).then((e=>{if(Array.isArray(e))for(const t of e)l.push({range:t.range,color:[t.color.red,t.color.green,t.color.blue,t.color.alpha]})}))));return Promise.all(h).then((()=>l))})),c.wb.registerCommand("_executeColorPresentationProvider",(function(e,...t){const[o,c]=t,{uri:l,range:h}=c;if(!(l instanceof s.r)||!Array.isArray(o)||4!==o.length||!r.Q.isIRange(h))throw(0,n.Qg)();const[u,g,p,m]=o,{colorProvider:f}=e.get(d.u),_=e.get(a.S).getModel(l);if(!_)throw(0,n.Qg)();const C={range:h,color:{red:u,green:g,blue:p,alpha:m}},v=[],b=f.ordered(_).reverse().map((e=>Promise.resolve(e.provideColorPresentations(_,C,i.X.None)).then((e=>{Array.isArray(e)&&v.push(...e)}))));return Promise.all(b).then((()=>v))}))},3568:(e,t,o)=>{o.r(t),o.d(t,{ColorContribution:()=>R});var i=o(26819),n=o(50051),s=o(15186),r=o(12231),a=o(86683),c=o(74832),d=o(60196),l=o(27009),h=o(74663);class u{constructor(e,t,o){this.presentationIndex=o,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new h.vl,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new h.vl,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){for(let o=0;o<this.colorPresentations.length;o++)if(t.toLowerCase()===this.colorPresentations[o].label){this.presentationIndex=o,this._onDidChangePresentation.fire(this.presentation);break}}flushColor(){this._onColorFlushed.fire(this._color)}}var g=o(47702),p=o(38278),m=o(29757),f=o(4981),_=o(38016),C=o(93467),v=o(86471);const b=p.$;class y extends i.jG{constructor(e,t,o){super(),this.model=t,this.domNode=b(".colorpicker-header"),p.BC(e,this.domNode),this.pickedColorNode=p.BC(this.domNode,b(".picked-color"));const i=(0,_.kg)("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this.pickedColorNode.setAttribute("title",i);const n=p.BC(this.domNode,b(".original-color"));n.style.backgroundColor=d.Q1.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=o.getColorTheme().getColor(C.WfR)||d.Q1.white,this._register((0,v.zy)(((e,t)=>{this.backgroundColor=e.getColor(C.WfR)||d.Q1.white}))),this._register(p.ko(this.pickedColorNode,p.Bx.CLICK,(()=>this.model.selectNextColorPresentation()))),this._register(p.ko(n,p.Bx.CLICK,(()=>{this.model.color=this.model.originalColor,this.model.flushColor()}))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=d.Q1.Format.CSS.format(t.color)||"",this.pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=d.Q1.Format.CSS.format(e)||"",this.pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this.pickedColorNode.prepend(b(".codicon.codicon-color-mode"))}}class k extends i.jG{constructor(e,t,o){super(),this.model=t,this.pixelRatio=o,this.domNode=b(".colorpicker-body"),p.BC(e,this.domNode),this.saturationBox=new w(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new x(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new L(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const o=this.model.color.hsva;this.model.color=new d.Q1(new d.$J(o.h,e,t,o.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new d.Q1(new d.$J(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,o=360*(1-e);this.model.color=new d.Q1(new d.$J(360===o?0:o,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class w extends i.jG{constructor(e,t,o){super(),this.model=t,this.pixelRatio=o,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,this.domNode=b(".saturation-wrap"),p.BC(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",p.BC(this.domNode,this.canvas),this.selection=b(".saturation-selection"),p.BC(this.domNode,this.selection),this.layout(),this._register(p.ko(this.domNode,p.Bx.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new m._);const t=p.BK(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangePosition(e.pageX-t.left,e.pageY-t.top)),(()=>null));const o=p.ko(document,p.Bx.POINTER_UP,(()=>{this._onColorFlushed.fire(),o.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)}),!0)}onDidChangePosition(e,t){const o=Math.max(0,Math.min(1,e/this.width)),i=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(o,i),this._onDidChange.fire({s:o,v:i})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new d.Q1(new d.$J(e.h,1,1,1)),o=this.canvas.getContext("2d"),i=o.createLinearGradient(0,0,this.canvas.width,0);i.addColorStop(0,"rgba(255, 255, 255, 1)"),i.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),i.addColorStop(1,"rgba(255, 255, 255, 0)");const n=o.createLinearGradient(0,0,0,this.canvas.height);n.addColorStop(0,"rgba(0, 0, 0, 0)"),n.addColorStop(1,"rgba(0, 0, 0, 1)"),o.rect(0,0,this.canvas.width,this.canvas.height),o.fillStyle=d.Q1.Format.CSS.format(t),o.fill(),o.fillStyle=i,o.fill(),o.fillStyle=n,o.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class S extends i.jG{constructor(e,t){super(),this.model=t,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,this.domNode=p.BC(e,b(".strip")),this.overlay=p.BC(this.domNode,b(".overlay")),this.slider=p.BC(this.domNode,b(".slider")),this.slider.style.top="0px",this._register(p.ko(this.domNode,p.Bx.POINTER_DOWN,(e=>this.onPointerDown(e)))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new m._),o=p.BK(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangeTop(e.pageY-o.top)),(()=>null));const i=p.ko(document,p.Bx.POINTER_UP,(()=>{this._onColorFlushed.fire(),i.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")}),!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class x extends S{constructor(e,t){super(e,t),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:o,b:i}=e.rgba,n=new d.Q1(new d.bU(t,o,i,1)),s=new d.Q1(new d.bU(t,o,i,0));this.overlay.style.background=`linear-gradient(to bottom, ${n} 0%, ${s} 100%)`}getValue(e){return e.hsva.a}}class L extends S{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class A extends f.x{constructor(e,t,o,i){super(),this.model=t,this.pixelRatio=o,this._register(g.PixelRatio.onDidChange((()=>this.layout())));const n=b(".colorpicker-widget");e.appendChild(n);const s=new y(n,this.model,i);this.body=new k(n,this.model,this.pixelRatio),this._register(s),this._register(this.body)}layout(){this.body.layout()}}var D=function(e,t,o,i){var n,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,o,r):n(t,o))||r);return s>3&&r&&Object.defineProperty(t,o,r),r},P=function(e,t){return function(o,i){t(o,i,e)}},M=function(e,t,o,i){return new(o||(o=Promise))((function(n,s){function r(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};class N{constructor(e,t,o,i){this.owner=e,this.range=t,this.model=o,this.provider=i,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let I=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=1}computeSync(e,t){return[]}computeAsync(e,t,o){return a.AE.fromPromise(this._computeAsync(e,t,o))}_computeAsync(e,t,o){return M(this,void 0,void 0,(function*(){if(!this._editor.hasModel())return[];const e=r.m.get(this._editor);if(!e)return[];for(const o of t){if(!e.isColorDecoration(o))continue;const t=e.getColorData(o.range.getStartPosition());if(t){return[yield this._createColorHover(this._editor.getModel(),t.colorInfo,t.provider)]}}return[]}))}_createColorHover(e,t,o){return M(this,void 0,void 0,(function*(){const i=e.getValueInRange(t.range),{red:n,green:r,blue:a,alpha:h}=t.color,g=new d.bU(Math.round(255*n),Math.round(255*r),Math.round(255*a),h),p=new d.Q1(g),m=yield(0,l.R)(e,t,o,c.X.None),f=new u(p,[],0);return f.colorPresentations=m||[],f.guessColorPresentation(p,i),new N(this,s.Q.lift(t.range),f,o)}))}renderHoverParts(e,t){if(0===t.length||!this._editor.hasModel())return i.jG.None;const o=new i.Cm,n=t[0],r=this._editor.getModel(),a=n.model,d=o.add(new A(e.fragment,a,this._editor.getOption(130),this._themeService));e.setColorPicker(d);let h=new s.Q(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn);const u=()=>{let t,o;if(a.presentation.textEdit){t=[a.presentation.textEdit],o=new s.Q(a.presentation.textEdit.range.startLineNumber,a.presentation.textEdit.range.startColumn,a.presentation.textEdit.range.endLineNumber,a.presentation.textEdit.range.endColumn);const e=this._editor.getModel()._setTrackedRange(null,o,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",t),o=this._editor.getModel()._getTrackedRange(e)||o}else t=[{range:h,text:a.presentation.label,forceMoveMarkers:!1}],o=h.setEndPosition(h.endLineNumber,h.startColumn+a.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",t);a.presentation.additionalTextEdits&&(t=[...a.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",t),e.hide()),this._editor.pushUndoStop(),h=o},g=e=>(0,l.R)(r,{range:h,color:{red:e.rgba.r/255,green:e.rgba.g/255,blue:e.rgba.b/255,alpha:e.rgba.a}},n.provider,c.X.None).then((e=>{a.colorPresentations=e||[]}));return o.add(a.onColorFlushed((e=>{g(e).then(u)}))),o.add(a.onDidChangeColor(g)),o}};I=D([P(1,v.Gy)],I);var E=o(49785),O=o(1418);class R extends i.jG{constructor(e){super(),this._editor=e,this._register(e.onMouseDown((e=>this.onMouseDown(e))))}dispose(){super.dispose()}onMouseDown(e){const t=e.target;if(6!==t.type)return;if(!t.detail.injectedText)return;if(t.detail.injectedText.options.attachedData!==r.n)return;if(!t.range)return;const o=this._editor.getContribution(E.ModesHoverController.ID);if(o&&!o.isColorPickerVisible()){const e=new s.Q(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);o.showContentHover(e,1,!1)}}}R.ID="editor.contrib.colorContribution",(0,n.HW)(R.ID,R),O.B2.register(I)},12231:(e,t,o)=>{o.d(t,{m:()=>y,n:()=>b});var i=o(86683),n=o(60196),s=o(24156),r=o(26819),a=o(43792),c=o(53817),d=o(69373),l=o(50051),h=o(15186),u=o(28715),g=o(14399),p=o(68975),m=o(27009),f=o(7548),_=function(e,t,o,i){var n,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,o,r):n(t,o))||r);return s>3&&r&&Object.defineProperty(t,o,r),r},C=function(e,t){return function(o,i){t(o,i,e)}},v=function(e,t,o,i){return new(o||(o=Promise))((function(n,s){function r(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};const b=Object.create({});let y=class e extends r.jG{constructor(t,o,i,n){super(),this._editor=t,this._configurationService=o,this._languageFeaturesService=i,this._localToDispose=this._register(new r.Cm),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new d.Qn(this._editor),this._colorDecorationClassRefs=this._register(new r.Cm),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:e.RECOMPUTE_TIME}),this._register(t.onDidChangeModel((()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()}))),this._register(t.onDidChangeModelLanguage((()=>this.onModelChanged()))),this._register(i.colorProvider.onDidChange((()=>this.onModelChanged()))),this._register(t.onDidChangeConfiguration((()=>{const e=this._isEnabled;this._isEnabled=this.isEnabled(),e!==this._isEnabled&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())}))),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),o=this._configurationService.getValue(t);if(o&&"object"===typeof o){const e=o.colorDecorators;if(e&&void 0!==e.enable&&!e.enable)return e.enable}return this._editor.getOption(17)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const e=this._editor.getModel();e&&this._languageFeaturesService.colorProvider.has(e)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._timeoutTimer||(this._timeoutTimer=new i.pc,this._timeoutTimer.cancelAndSet((()=>{this._timeoutTimer=null,this.beginCompute()}),this._debounceInformation.get(e)))}))),this.beginCompute())}beginCompute(){this._computePromise=(0,i.SS)((e=>v(this,void 0,void 0,(function*(){const t=this._editor.getModel();if(!t)return Promise.resolve([]);const o=new a.W(!1),i=yield(0,m.j)(this._languageFeaturesService.colorProvider,t,e);return this._debounceInformation.update(t,o.elapsed()),i})))),this._computePromise.then((e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}),s.dz)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map((e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:u.kI.EMPTY})));this._editor.changeDecorations((o=>{this._decorationsIds=o.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach(((t,o)=>this._colorDatas.set(t,e[o])))}))}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[];for(let o=0;o<e.length&&t.length<500;o++){const{red:i,green:s,blue:r,alpha:a}=e[o].colorInfo.color,d=new n.bU(Math.round(255*i),Math.round(255*s),Math.round(255*r),a),l=`rgba(${d.r}, ${d.g}, ${d.b}, ${d.a})`,h=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:l}));t.push({range:{startLineNumber:e[o].colorInfo.range.startLineNumber,startColumn:e[o].colorInfo.range.startColumn,endLineNumber:e[o].colorInfo.range.endLineNumber,endColumn:e[o].colorInfo.range.endColumn},options:{description:"colorDetector",before:{content:c.S8,inlineClassName:`${h.className} colorpicker-color-decoration`,inlineClassNameAffectsLetterSpacing:!0,attachedData:b}}})}this._colorDecoratorIds.set(t)}removeAllDecorations(){this._editor.removeDecorations(this._decorationsIds),this._decorationsIds=[],this._colorDecoratorIds.clear(),this._colorDecorationClassRefs.clear()}getColorData(e){const t=this._editor.getModel();if(!t)return null;const o=t.getDecorationsInRange(h.Q.fromPositions(e,e)).filter((e=>this._colorDatas.has(e.id)));return 0===o.length?null:this._colorDatas.get(o[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};y.ID="editor.contrib.colorDetector",y.RECOMPUTE_TIME=1e3,y=_([C(1,f.pG),C(2,p.u),C(3,g.U)],y),(0,l.HW)(y.ID,y)},20077:(e,t,o)=>{o.r(t);var i=o(44948),n=o(50051),s=o(15186),r=o(29671),a=o(91835),c=o(48282),d=o(62612),l=o(21429);class h{constructor(e,t,o){this.languageConfigurationService=o,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,o){if(o<0)return!1;const i=t.length;if(o+i>e.length)return!1;for(let n=0;n<i;n++){const i=e.charCodeAt(o+n),s=t.charCodeAt(n);if(i!==s&&(!(i>=65&&i<=90&&i+32===s)&&!(s>=65&&s<=90&&s+32===i)))return!1}return!0}_createOperationsForBlockComment(e,t,o,i,n,r){const a=e.startLineNumber,c=e.startColumn,d=e.endLineNumber,l=e.endColumn,u=n.getLineContent(a),g=n.getLineContent(d);let p,m=u.lastIndexOf(t,c-1+t.length),f=g.indexOf(o,l-1-o.length);if(-1!==m&&-1!==f)if(a===d){u.substring(m+t.length,f).indexOf(o)>=0&&(m=-1,f=-1)}else{const e=u.substring(m+t.length),i=g.substring(0,f);(e.indexOf(o)>=0||i.indexOf(o)>=0)&&(m=-1,f=-1)}-1!==m&&-1!==f?(i&&m+t.length<u.length&&32===u.charCodeAt(m+t.length)&&(t+=" "),i&&f>0&&32===g.charCodeAt(f-1)&&(o=" "+o,f-=1),p=h._createRemoveBlockCommentOperations(new s.Q(a,m+t.length+1,d,f+1),t,o)):(p=h._createAddBlockCommentOperations(e,t,o,this._insertSpace),this._usedEndToken=1===p.length?o:null);for(const s of p)r.addTrackedEditOperation(s.range,s.text)}static _createRemoveBlockCommentOperations(e,t,o){const i=[];return s.Q.isEmpty(e)?i.push(c.k.delete(new s.Q(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+o.length))):(i.push(c.k.delete(new s.Q(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),i.push(c.k.delete(new s.Q(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+o.length)))),i}static _createAddBlockCommentOperations(e,t,o,i){const n=[];return s.Q.isEmpty(e)?n.push(c.k.replace(new s.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+o)):(n.push(c.k.insert(new d.y(e.startLineNumber,e.startColumn),t+(i?" ":""))),n.push(c.k.insert(new d.y(e.endLineNumber,e.endColumn),(i?" ":"")+o))),n}getEditOperations(e,t){const o=this._selection.startLineNumber,i=this._selection.startColumn;e.tokenization.tokenizeIfCheap(o);const n=e.getLanguageIdAtPosition(o,i),s=this.languageConfigurationService.getLanguageConfiguration(n).comments;s&&s.blockCommentStartToken&&s.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,s.blockCommentStartToken,s.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const o=t.getInverseEditOperations();if(2===o.length){const e=o[0],t=o[1];return new l.L(e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{const e=o[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0;return new l.L(e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}var u=o(53817);class g{constructor(e,t,o,i,n,s,r){this.languageConfigurationService=e,this._selection=t,this._tabSize=o,this._type=i,this._insertSpace=n,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=s,this._ignoreFirstLine=r||!1}static _gatherPreflightCommentStrings(e,t,o,i){e.tokenization.tokenizeIfCheap(t);const n=e.getLanguageIdAtPosition(t,1),s=i.getLanguageConfiguration(n).comments,r=s?s.lineCommentToken:null;if(!r)return null;const a=[];for(let c=0,d=o-t+1;c<d;c++)a[c]={ignore:!1,commentStr:r,commentStrOffset:0,commentStrLength:r.length};return a}static _analyzeLines(e,t,o,i,n,s,r,a){let c,d=!0;c=0===e||1!==e;for(let l=0,g=i.length;l<g;l++){const a=i[l],g=n+l;if(g===n&&r){a.ignore=!0;continue}const p=o.getLineContent(g),m=u.HG(p);if(-1!==m){if(d=!1,a.ignore=!1,a.commentStrOffset=m,c&&!h._haystackHasNeedleAtOffset(p,a.commentStr,m)&&(0===e?c=!1:1===e||(a.ignore=!0)),c&&t){const e=m+a.commentStrLength;e<p.length&&32===p.charCodeAt(e)&&(a.commentStrLength+=1)}}else a.ignore=s,a.commentStrOffset=p.length}if(0===e&&d){c=!1;for(let e=0,t=i.length;e<t;e++)i[e].ignore=!1}return{supported:!0,shouldRemoveComments:c,lines:i}}static _gatherPreflightData(e,t,o,i,n,s,r,a){const c=g._gatherPreflightCommentStrings(o,i,n,a);return null===c?{supported:!1}:g._analyzeLines(e,t,o,c,i,s,r,a)}_executeLineComments(e,t,o,i){let n;o.shouldRemoveComments?n=g._createRemoveLineCommentsOperations(o.lines,i.startLineNumber):(g._normalizeInsertionPoint(e,o.lines,i.startLineNumber,this._tabSize),n=this._createAddLineCommentsOperations(o.lines,i.startLineNumber));const r=new d.y(i.positionLineNumber,i.positionColumn);for(let a=0,c=n.length;a<c;a++)if(t.addEditOperation(n[a].range,n[a].text),s.Q.isEmpty(n[a].range)&&s.Q.getStartPosition(n[a].range).equals(r)){e.getLineContent(r.lineNumber).length+1===r.column&&(this._deltaColumn=(n[a].text||"").length)}this._selectionId=t.trackSelection(i)}_attemptRemoveBlockComment(e,t,o,i){let n=t.startLineNumber,r=t.endLineNumber;const a=i.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn);let c=e.getLineContent(n).lastIndexOf(o,a-1),d=e.getLineContent(r).indexOf(i,t.endColumn-1-o.length);return-1!==c&&-1===d&&(d=e.getLineContent(n).indexOf(i,c+o.length),r=n),-1===c&&-1!==d&&(c=e.getLineContent(r).lastIndexOf(o,d),n=r),!t.isEmpty()||-1!==c&&-1!==d||(c=e.getLineContent(n).indexOf(o),-1!==c&&(d=e.getLineContent(n).indexOf(i,c+o.length))),-1!==c&&32===e.getLineContent(n).charCodeAt(c+o.length)&&(o+=" "),-1!==d&&32===e.getLineContent(r).charCodeAt(d-1)&&(i=" "+i,d-=1),-1!==c&&-1!==d?h._createRemoveBlockCommentOperations(new s.Q(n,c+o.length+1,r,d+1),o,i):null}_executeBlockComment(e,t,o){e.tokenization.tokenizeIfCheap(o.startLineNumber);const i=e.getLanguageIdAtPosition(o.startLineNumber,1),n=this.languageConfigurationService.getLanguageConfiguration(i).comments;if(!n||!n.blockCommentStartToken||!n.blockCommentEndToken)return;const r=n.blockCommentStartToken,a=n.blockCommentEndToken;let c=this._attemptRemoveBlockComment(e,o,r,a);if(!c){if(o.isEmpty()){const t=e.getLineContent(o.startLineNumber);let i=u.HG(t);-1===i&&(i=t.length),c=h._createAddBlockCommentOperations(new s.Q(o.startLineNumber,i+1,o.startLineNumber,t.length+1),r,a,this._insertSpace)}else c=h._createAddBlockCommentOperations(new s.Q(o.startLineNumber,e.getLineFirstNonWhitespaceColumn(o.startLineNumber),o.endLineNumber,e.getLineMaxColumn(o.endLineNumber)),r,a,this._insertSpace);1===c.length&&(this._deltaColumn=r.length+1)}this._selectionId=t.trackSelection(o);for(const s of c)t.addEditOperation(s.range,s.text)}getEditOperations(e,t){let o=this._selection;if(this._moveEndPositionDown=!1,o.startLineNumber===o.endLineNumber&&this._ignoreFirstLine)return t.addEditOperation(new s.Q(o.startLineNumber,e.getLineMaxColumn(o.startLineNumber),o.startLineNumber+1,1),o.startLineNumber===e.getLineCount()?"":"\n"),void(this._selectionId=t.trackSelection(o));o.startLineNumber<o.endLineNumber&&1===o.endColumn&&(this._moveEndPositionDown=!0,o=o.setEndPosition(o.endLineNumber-1,e.getLineMaxColumn(o.endLineNumber-1)));const i=g._gatherPreflightData(this._type,this._insertSpace,e,o.startLineNumber,o.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return i.supported?this._executeLineComments(e,t,i,o):this._executeBlockComment(e,t,o)}computeCursorState(e,t){let o=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(o=o.setEndPosition(o.endLineNumber+1,1)),new l.L(o.selectionStartLineNumber,o.selectionStartColumn+this._deltaColumn,o.positionLineNumber,o.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(e,t){const o=[];for(let i=0,n=e.length;i<n;i++){const n=e[i];n.ignore||o.push(c.k.delete(new s.Q(t+i,n.commentStrOffset+1,t+i,n.commentStrOffset+n.commentStrLength+1)))}return o}_createAddLineCommentsOperations(e,t){const o=[],i=this._insertSpace?" ":"";for(let n=0,s=e.length;n<s;n++){const s=e[n];s.ignore||o.push(c.k.insert(new d.y(t+n,s.commentStrOffset+1),s.commentStr+i))}return o}static nextVisibleColumn(e,t,o,i){return o?e+(t-e%t):e+i}static _normalizeInsertionPoint(e,t,o,i){let n,s,r=1073741824;for(let a=0,c=t.length;a<c;a++){if(t[a].ignore)continue;const n=e.getLineContent(o+a);let s=0;for(let e=0,o=t[a].commentStrOffset;s<r&&e<o;e++)s=g.nextVisibleColumn(s,i,9===n.charCodeAt(e),1);s<r&&(r=s)}r=Math.floor(r/i)*i;for(let a=0,c=t.length;a<c;a++){if(t[a].ignore)continue;const c=e.getLineContent(o+a);let d=0;for(n=0,s=t[a].commentStrOffset;d<r&&n<s;n++)d=g.nextVisibleColumn(d,i,9===c.charCodeAt(n),1);t[a].commentStrOffset=d>r?n-1:n}}}var p=o(38016),m=o(21850);class f extends n.ks{constructor(e,t){super(t),this._type=e}run(e,t){const o=e.get(a.JZ);if(!t.hasModel())return;const i=[],n=t.getModel().getOptions(),r=t.getOption(19),c=t.getSelections().map(((e,t)=>({selection:e,index:t,ignoreFirstLine:!1})));c.sort(((e,t)=>s.Q.compareRangesUsingStarts(e.selection,t.selection)));let d=c[0];for(let s=1;s<c.length;s++){const e=c[s];d.selection.endLineNumber===e.selection.startLineNumber&&(d.index<e.index?e.ignoreFirstLine=!0:(d.ignoreFirstLine=!0,d=e))}for(const s of c)i.push(new g(o,s.selection,n.tabSize,this._type,r.insertSpace,r.ignoreEmptyLines,s.ignoreFirstLine));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class _ extends n.ks{constructor(){super({id:"editor.action.blockComment",label:p.kg("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:r.R.writable,kbOpts:{kbExpr:r.R.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:m.D8.MenubarEditMenu,group:"5_insert",title:p.kg({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}run(e,t){const o=e.get(a.JZ);if(!t.hasModel())return;const i=t.getOption(19),n=[],s=t.getSelections();for(const r of s)n.push(new h(r,i.insertSpace,o));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}(0,n.Fl)(class extends f{constructor(){super(0,{id:"editor.action.commentLine",label:p.kg("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:r.R.writable,kbOpts:{kbExpr:r.R.editorTextFocus,primary:2133,weight:100},menuOpts:{menuId:m.D8.MenubarEditMenu,group:"5_insert",title:p.kg({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}}),(0,n.Fl)(class extends f{constructor(){super(1,{id:"editor.action.addCommentLine",label:p.kg("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:r.R.writable,kbOpts:{kbExpr:r.R.editorTextFocus,primary:(0,i.m5)(2089,2081),weight:100}})}}),(0,n.Fl)(class extends f{constructor(){super(2,{id:"editor.action.removeCommentLine",label:p.kg("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:r.R.writable,kbOpts:{kbExpr:r.R.editorTextFocus,primary:(0,i.m5)(2089,2099),weight:100}})}}),(0,n.Fl)(_)},33887:(e,t,o)=>{o.r(t),o.d(t,{ContextMenuController:()=>C});var i=o(38278),n=o(83872),s=o(48624),r=o(26819),a=o(17032),c=o(50051),d=o(29671),l=o(38016),h=o(21850),u=o(40350),g=o(21571),p=o(84278),m=o(7548),f=function(e,t,o,i){var n,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,o,r):n(t,o))||r);return s>3&&r&&Object.defineProperty(t,o,r),r},_=function(e,t){return function(o,i){t(o,i,e)}};let C=class e{constructor(e,t,o,n,s,a,c){this._contextMenuService=t,this._contextViewService=o,this._contextKeyService=n,this._keybindingService=s,this._menuService=a,this._configurationService=c,this._toDispose=new r.Cm,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu((e=>this._onContextMenu(e)))),this._toDispose.add(this._editor.onMouseWheel((e=>{if(this._contextMenuIsBeingShownCount>0){const t=this._contextViewService.getContextViewElement(),o=e.srcElement;o.shadowRoot&&i.jG(t)===o.shadowRoot||this._contextViewService.hideContextView()}}))),this._toDispose.add(this._editor.onKeyDown((e=>{this._editor.getOption(20)&&58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu())})))}static get(t){return t.getContribution(e.ID)}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(20))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12===e.target.type)return;if(6===e.target.type&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),11===e.target.type)return this._showScrollbarContextMenu({x:e.event.posx-1,width:2,y:e.event.posy-1,height:2});if(6!==e.target.type&&7!==e.target.type&&1!==e.target.type)return;if(this._editor.focus(),e.target.position){let t=!1;for(const o of this._editor.getSelections())if(o.containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}let t=null;1!==e.target.type&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(20))return;if(!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?h.D8.SimpleEditorContext:h.D8.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const o=[],i=this._menuService.createMenu(t,this._contextKeyService),n=i.getActions({arg:e.uri});i.dispose();for(const r of n){const[,t]=r;let i=0;for(const n of t)if(n instanceof h.nI){const t=this._getMenuActions(e,n.item.submenu);t.length>0&&(o.push(new s.YH(n.id,n.label,t)),i++)}else o.push(n),i++;i&&o.push(new s.wv)}return o.length&&o.pop(),o}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const o=this._editor.getOption(54);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const e=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),o=i.BK(this._editor.getDomNode()),n=o.left+e.left,s=o.top+e.top+e.height;t={x:n,y:s}}const s=this._editor.getOption(116)&&!a.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:s?this._editor.getDomNode():void 0,getAnchor:()=>t,getActions:()=>e,getActionViewItem:e=>{const t=this._keybindingFor(e);if(t)return new n.Z(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});const o=e;return"function"===typeof o.getActionViewItem?o.getActionViewItem():new n.Z(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:e=>this._keybindingFor(e),onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus(),this._editor.updateOptions({hover:o})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;const t=this._editor.getOption(66);let o=0;const i=e=>({id:"menu-action-"+ ++o,label:e.label,tooltip:"",class:void 0,enabled:"undefined"===typeof e.enabled||e.enabled,checked:e.checked,run:e.run,dispose:()=>null}),n=(e,t,n,r,a)=>{if(!t)return i({label:e,enabled:t,run:()=>{}});const c=e=>()=>{this._configurationService.updateValue(n,e)},d=[];for(const o of a)d.push(i({label:o.label,checked:r===o.value,run:c(o.value)}));return((e,t)=>new s.YH("menu-action-"+ ++o,e,t,void 0))(e,d)},r=[];r.push(i({label:l.kg("context.minimap.showMinimap","Show Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),r.push(new s.wv),r.push(i({label:l.kg("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),r.push(n(l.kg("context.minimap.size","Size"),t.enabled,"editor.minimap.size",t.size,[{label:l.kg("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:l.kg("context.minimap.size.fill","Fill"),value:"fill"},{label:l.kg("context.minimap.size.fit","Fit"),value:"fit"}])),r.push(n(l.kg("context.minimap.scale","Scale"),t.enabled,"editor.minimap.scale",t.scale,[{label:l.kg("context.minimap.scale.1","1"),value:1},{label:l.kg("context.minimap.scale.2","2"),value:2},{label:l.kg("context.minimap.scale.3","3"),value:3}])),r.push(n(l.kg("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:l.kg("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:l.kg("context.minimap.slider.always","Always"),value:"always"}]));const c=this._editor.getOption(116)&&!a.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:c?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>r,onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};C.ID="editor.contrib.contextmenu",C=f([_(1,g.Z),_(2,g.l),_(3,u.fN),_(4,p.b),_(5,h.ez),_(6,m.pG)],C);class v extends c.ks{constructor(){super({id:"editor.action.showContextMenu",label:l.kg("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:d.R.textInputFocus,primary:1092,weight:100}})}run(e,t){var o;null===(o=C.get(t))||void 0===o||o.showContextMenu()}}(0,c.HW)(C.ID,C),(0,c.Fl)(v)},9445:(e,t,o)=>{o.r(t);var i=o(50051),n=o(71088),s=o(97888),r=o(38278),a=o(86683),c=o(72608),d=o(26819),l=o(79063),h=o(46176),u=o(36228),g=o(65896),p=o(15186),m=o(68975),f=o(85693),_=o(80509),C=o(21608),v=o(51985),b=o(7548),y=function(e,t,o,i){var n,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,o,r):n(t,o))||r);return s>3&&r&&Object.defineProperty(t,o,r),r},k=function(e,t){return function(o,i){t(o,i,e)}},w=function(e,t,o,i){return new(o||(o=Promise))((function(n,s){function r(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};const S="application/vnd.code.copyMetadata";let x=class extends d.jG{constructor(e,t,o,i,n){super(),this._bulkEditService=t,this._clipboardService=o,this._configurationService=i,this._languageFeaturesService=n,this._editor=e;const s=e.getContainerDomNode();this._register((0,r.ko)(s,"copy",(e=>this.handleCopy(e)))),this._register((0,r.ko)(s,"cut",(e=>this.handleCopy(e)))),this._register((0,r.ko)(s,"paste",(e=>this.handlePaste(e)),!0))}arePasteActionsEnabled(e){return this._configurationService.getValue("editor.experimental.pasteActions.enabled",{resource:e.uri})}handleCopy(e){var t;if(!e.clipboardData||!this._editor.hasTextFocus())return;const o=this._editor.getModel(),i=this._editor.getSelections();if(!o||!(null===i||void 0===i?void 0:i.length))return;if(!this.arePasteActionsEnabled(o))return;const n=[...i],s=i[0],r=s.isEmpty();if(r){if(!this._editor.getOption(33))return;n[0]=new p.Q(s.startLineNumber,0,s.startLineNumber,o.getLineLength(s.startLineNumber))}const c=this._languageFeaturesService.documentPasteEditProvider.ordered(o).filter((e=>!!e.prepareDocumentPaste));if(!c.length)return void this.setCopyMetadata(e.clipboardData,{wasFromEmptySelection:r});const d=(0,u.q_)(e.clipboardData),l=(0,h.b)();this.setCopyMetadata(e.clipboardData,{id:l,wasFromEmptySelection:r});const g=(0,a.SS)((e=>w(this,void 0,void 0,(function*(){const t=yield Promise.all(c.map((t=>t.prepareDocumentPaste(o,n,d,e))));for(const e of t)null===e||void 0===e||e.forEach(((e,t)=>{d.replace(t,e)}));return d}))));null===(t=this._currentClipboardItem)||void 0===t||t.dataTransferPromise.cancel(),this._currentClipboardItem={handle:l,dataTransferPromise:g}}setCopyMetadata(e,t){e.setData(S,JSON.stringify(t))}handlePaste(e){var t,o,i;return w(this,void 0,void 0,(function*(){if(!e.clipboardData||!this._editor.hasTextFocus())return;const n=this._editor.getSelections();if(!(null===n||void 0===n?void 0:n.length)||!this._editor.hasModel())return;const r=this._editor.getModel();if(!this.arePasteActionsEnabled(r))return;let a;const d=null===(t=e.clipboardData)||void 0===t?void 0:t.getData(S);d&&"string"===typeof d&&(a=JSON.parse(d));const h=this._languageFeaturesService.documentPasteEditProvider.ordered(r);if(!h.length)return;e.preventDefault(),e.stopImmediatePropagation();const p=r.getVersionId(),m=new f.gI(this._editor,3);try{const t=(0,u.q_)(e.clipboardData);if((null===a||void 0===a?void 0:a.id)&&(null===(o=this._currentClipboardItem)||void 0===o?void 0:o.handle)===a.id){(yield this._currentClipboardItem.dataTransferPromise).forEach(((e,o)=>{t.replace(o,e)}))}if(!t.has(l.K.uriList)){const e=yield this._clipboardService.readResources();e.length&&t.append(l.K.uriList,(0,c.gf)(u.jt.create(e)))}t.delete(S);for(const e of h){if(!e.pasteMimeTypes.some((e=>e.toLowerCase()===s.t.FILES.toLowerCase()?[...t.values()].some((e=>e.asFile())):t.has(e))))continue;const o=yield e.provideDocumentPasteEdits(r,n,t,m.token);if(p!==r.getVersionId())return;if(o)return(0,_.performSnippetEdit)(this._editor,"string"===typeof o.insertText?C.fr.escape(o.insertText):o.insertText.snippet,n),void(o.additionalEdit&&(yield this._bulkEditService.apply(g.jN.convert(o.additionalEdit),{editor:this._editor})))}const d=null!==(i=t.get(l.K.text))&&void 0!==i?i:t.get("text");if(!d)return;const f=yield d.asString();if(p!==r.getVersionId())return;this._editor.trigger("keyboard","paste",{text:f,pasteOnNewLine:null===a||void 0===a?void 0:a.wasFromEmptySelection,multicursorText:null})}finally{m.dispose()}}))}};x.ID="editor.contrib.copyPasteActionController",x=y([k(1,g.nu),k(2,v.h),k(3,b.pG),k(4,m.u)],x);var L=o(38016),A=o(67343),D=o(5046);(0,i.HW)(x.ID,x),D.O.as(A.Fd.Configuration).registerConfiguration(Object.assign(Object.assign({},n.JJ),{properties:{"editor.experimental.pasteActions.enabled":{type:"boolean",scope:5,description:L.kg("pasteActions","Enable/disable running edits from extensions on paste."),default:!1}}}))},25543:(e,t,o)=>{o.r(t),o.d(t,{CursorRedo:()=>h,CursorUndo:()=>l,CursorUndoRedoController:()=>d});var i=o(26819),n=o(50051),s=o(29671),r=o(38016);class a{constructor(e){this.selections=e}equals(e){const t=this.selections.length;if(t!==e.selections.length)return!1;for(let o=0;o<t;o++)if(!this.selections[o].equalsSelection(e.selections[o]))return!1;return!0}}class c{constructor(e,t,o){this.cursorState=e,this.scrollTop=t,this.scrollLeft=o}}class d extends i.jG{constructor(e){super(),this._editor=e,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(e.onDidChangeModel((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeModelContent((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeCursorSelection((t=>{if(this._isCursorUndoRedo)return;if(!t.oldSelections)return;if(t.oldModelVersionId!==t.modelVersionId)return;const o=new a(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(o)||(this._undoStack.push(new c(o,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())})))}static get(e){return e.getContribution(d.ID)}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new c(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new c(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}d.ID="editor.contrib.cursorUndoRedoController";class l extends n.ks{constructor(){super({id:"cursorUndo",label:r.kg("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:s.R.textInputFocus,primary:2099,weight:100}})}run(e,t,o){var i;null===(i=d.get(t))||void 0===i||i.cursorUndo()}}class h extends n.ks{constructor(){super({id:"cursorRedo",label:r.kg("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,o){var i;null===(i=d.get(t))||void 0===i||i.cursorRedo()}}(0,n.HW)(d.ID,d),(0,n.Fl)(l),(0,n.Fl)(h)}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 9878.cca6854e.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9878],{84362:(t,e,r)=>{"use strict";var n=r(91002)(),o=r(4545)("Object.prototype.toString"),c=function(t){return!(n&&t&&"object"===typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o(t)},i=function(t){return!!c(t)||null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Array]"!==o(t)&&"[object Function]"===o(t.callee)},a=function(){return c(arguments)}();c.isLegacyArguments=i,t.exports=a?c:i},41248:t=>{function e(t){return!!t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(e(t)||function(t){return"function"===typeof t.readFloatLE&&"function"===typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}},35786:t=>{"use strict";var e,r,n=Function.prototype.toString,o="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof o&&"function"===typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,e)}catch(d){d!==r&&(o=null)}else o=null;var c=/^\s*class\b/,i=function(t){try{var e=n.call(t);return c.test(e)}catch(r){return!1}},a=function(t){try{return!i(t)&&(n.call(t),!0)}catch(e){return!1}},u=Object.prototype.toString,f="function"===typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),s=function(){return!1};if("object"===typeof document){var p=document.all;u.call(p)===u.call(document.all)&&(s=function(t){if((l||!t)&&("undefined"===typeof t||"object"===typeof t))try{var e=u.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(r){}return!1})}t.exports=o?function(t){if(s(t))return!0;if(!t)return!1;if("function"!==typeof t&&"object"!==typeof t)return!1;try{o(t,null,e)}catch(n){if(n!==r)return!1}return!i(t)&&a(t)}:function(t){if(s(t))return!0;if(!t)return!1;if("function"!==typeof t&&"object"!==typeof t)return!1;if(f)return a(t);if(i(t))return!1;var e=u.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},33962:(t,e,r)=>{"use strict";var n,o=Object.prototype.toString,c=Function.prototype.toString,i=/^\s*(?:function)?\*/,a=r(91002)(),u=Object.getPrototypeOf;t.exports=function(t){if("function"!==typeof t)return!1;if(i.test(c.call(t)))return!0;if(!a)return"[object GeneratorFunction]"===o.call(t);if(!u)return!1;if("undefined"===typeof n){var e=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&u(e)}return u(t)===n}},2566:(t,e,r)=>{"use strict";var n=r(88317);t.exports=function(t){return!!n(t)}},99211:(t,e,r)=>{var n=r(9766),o=function(t){var e="",r=Object.keys(t);return r.forEach((function(o,c){var i=t[o];(function(t){return/[height|width]$/.test(t)})(o=n(o))&&"number"===typeof i&&(i+="px"),e+=!0===i?o:!1===i?"not "+o:"("+o+": "+i+")",c<r.length-1&&(e+=" and ")})),e};t.exports=function(t){var e="";return"string"===typeof t?t:t instanceof Array?(t.forEach((function(r,n){e+=o(r),n<t.length-1&&(e+=", ")})),e):o(t)}},48409:(t,e,r)=>{!function(){var e=r(29981),n=r(80985).utf8,o=r(41248),c=r(80985).bin,i=function(t,r){t.constructor==String?t=r&&"binary"===r.encoding?c.stringToBytes(t):n.stringToBytes(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var a=e.bytesToWords(t),u=8*t.length,f=1732584193,l=-271733879,s=-1732584194,p=271733878,d=0;d<a.length;d++)a[d]=16711935&(a[d]<<8|a[d]>>>24)|4278255360&(a[d]<<24|a[d]>>>8);a[u>>>5]|=128<<u%32,a[14+(u+64>>>9<<4)]=u;var y=i._ff,h=i._gg,g=i._hh,b=i._ii;for(d=0;d<a.length;d+=16){var v=f,m=l,A=s,x=p;f=y(f,l,s,p,a[d+0],7,-680876936),p=y(p,f,l,s,a[d+1],12,-389564586),s=y(s,p,f,l,a[d+2],17,606105819),l=y(l,s,p,f,a[d+3],22,-1044525330),f=y(f,l,s,p,a[d+4],7,-176418897),p=y(p,f,l,s,a[d+5],12,1200080426),s=y(s,p,f,l,a[d+6],17,-1473231341),l=y(l,s,p,f,a[d+7],22,-45705983),f=y(f,l,s,p,a[d+8],7,1770035416),p=y(p,f,l,s,a[d+9],12,-1958414417),s=y(s,p,f,l,a[d+10],17,-42063),l=y(l,s,p,f,a[d+11],22,-1990404162),f=y(f,l,s,p,a[d+12],7,1804603682),p=y(p,f,l,s,a[d+13],12,-40341101),s=y(s,p,f,l,a[d+14],17,-1502002290),f=h(f,l=y(l,s,p,f,a[d+15],22,1236535329),s,p,a[d+1],5,-165796510),p=h(p,f,l,s,a[d+6],9,-1069501632),s=h(s,p,f,l,a[d+11],14,643717713),l=h(l,s,p,f,a[d+0],20,-373897302),f=h(f,l,s,p,a[d+5],5,-701558691),p=h(p,f,l,s,a[d+10],9,38016083),s=h(s,p,f,l,a[d+15],14,-660478335),l=h(l,s,p,f,a[d+4],20,-405537848),f=h(f,l,s,p,a[d+9],5,568446438),p=h(p,f,l,s,a[d+14],9,-1019803690),s=h(s,p,f,l,a[d+3],14,-187363961),l=h(l,s,p,f,a[d+8],20,1163531501),f=h(f,l,s,p,a[d+13],5,-1444681467),p=h(p,f,l,s,a[d+2],9,-51403784),s=h(s,p,f,l,a[d+7],14,1735328473),f=g(f,l=h(l,s,p,f,a[d+12],20,-1926607734),s,p,a[d+5],4,-378558),p=g(p,f,l,s,a[d+8],11,-2022574463),s=g(s,p,f,l,a[d+11],16,1839030562),l=g(l,s,p,f,a[d+14],23,-35309556),f=g(f,l,s,p,a[d+1],4,-1530992060),p=g(p,f,l,s,a[d+4],11,1272893353),s=g(s,p,f,l,a[d+7],16,-155497632),l=g(l,s,p,f,a[d+10],23,-1094730640),f=g(f,l,s,p,a[d+13],4,681279174),p=g(p,f,l,s,a[d+0],11,-358537222),s=g(s,p,f,l,a[d+3],16,-722521979),l=g(l,s,p,f,a[d+6],23,76029189),f=g(f,l,s,p,a[d+9],4,-640364487),p=g(p,f,l,s,a[d+12],11,-421815835),s=g(s,p,f,l,a[d+15],16,530742520),f=b(f,l=g(l,s,p,f,a[d+2],23,-995338651),s,p,a[d+0],6,-198630844),p=b(p,f,l,s,a[d+7],10,1126891415),s=b(s,p,f,l,a[d+14],15,-1416354905),l=b(l,s,p,f,a[d+5],21,-57434055),f=b(f,l,s,p,a[d+12],6,1700485571),p=b(p,f,l,s,a[d+3],10,-1894986606),s=b(s,p,f,l,a[d+10],15,-1051523),l=b(l,s,p,f,a[d+1],21,-2054922799),f=b(f,l,s,p,a[d+8],6,1873313359),p=b(p,f,l,s,a[d+15],10,-30611744),s=b(s,p,f,l,a[d+6],15,-1560198380),l=b(l,s,p,f,a[d+13],21,1309151649),f=b(f,l,s,p,a[d+4],6,-145523070),p=b(p,f,l,s,a[d+11],10,-1120210379),s=b(s,p,f,l,a[d+2],15,718787259),l=b(l,s,p,f,a[d+9],21,-343485551),f=f+v>>>0,l=l+m>>>0,s=s+A>>>0,p=p+x>>>0}return e.endian([f,l,s,p])};i._ff=function(t,e,r,n,o,c,i){var a=t+(e&r|~e&n)+(o>>>0)+i;return(a<<c|a>>>32-c)+e},i._gg=function(t,e,r,n,o,c,i){var a=t+(e&n|r&~n)+(o>>>0)+i;return(a<<c|a>>>32-c)+e},i._hh=function(t,e,r,n,o,c,i){var a=t+(e^r^n)+(o>>>0)+i;return(a<<c|a>>>32-c)+e},i._ii=function(t,e,r,n,o,c,i){var a=t+(r^(e|~n))+(o>>>0)+i;return(a<<c|a>>>32-c)+e},i._blocksize=16,i._digestsize=16,t.exports=function(t,r){if(void 0===t||null===t)throw new Error("Illegal argument "+t);var n=e.wordsToBytes(i(t,r));return r&&r.asBytes?n:r&&r.asString?c.bytesToString(n):e.bytesToHex(n)}}()},99694:t=>{t.exports=function(t,e){var r,n,o=0;function c(){var c,i,a=r,u=arguments.length;t:for(;a;){if(a.args.length===arguments.length){for(i=0;i<u;i++)if(a.args[i]!==arguments[i]){a=a.next;continue t}return a!==r&&(a===n&&(n=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=r,a.prev=null,r.prev=a,r=a),a.val}a=a.next}for(c=new Array(u),i=0;i<u;i++)c[i]=arguments[i];return a={args:c,val:t.apply(null,c)},r?(r.prev=a,a.next=r):n=a,o===e.maxSize?(n=n.prev).next=null:o++,r=a,a.val}return e=e||{},c.clear=function(){r=null,n=null,o=0},c}},62813:(t,e,r)=>{"use strict";r.d(e,{o4:()=>W});var n=r(33825).Buffer;const o="3.7.2",c=o,i="function"===typeof atob,a="function"===typeof btoa,u="function"===typeof n,f="function"===typeof TextDecoder?new TextDecoder:void 0,l="function"===typeof TextEncoder?new TextEncoder:void 0,s=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),p=(t=>{let e={};return t.forEach(((t,r)=>e[t]=r)),e})(s),d=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,y=String.fromCharCode.bind(String),h="function"===typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(t,e=(t=>t))=>new Uint8Array(Array.prototype.slice.call(t,0).map(e)),g=t=>t.replace(/=/g,"").replace(/[+\/]/g,(t=>"+"==t?"-":"_")),b=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),v=t=>{let e,r,n,o,c="";const i=t.length%3;for(let a=0;a<t.length;){if((r=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255||(o=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|o,c+=s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}return i?c.slice(0,i-3)+"===".substring(i):c},m=a?t=>btoa(t):u?t=>n.from(t,"binary").toString("base64"):v,A=u?t=>n.from(t).toString("base64"):t=>{let e=[];for(let r=0,n=t.length;r<n;r+=4096)e.push(y.apply(null,t.subarray(r,r+4096)));return m(e.join(""))},x=(t,e=!1)=>e?g(A(t)):A(t),w=t=>{if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?y(192|e>>>6)+y(128|63&e):y(224|e>>>12&15)+y(128|e>>>6&63)+y(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return y(240|e>>>18&7)+y(128|e>>>12&63)+y(128|e>>>6&63)+y(128|63&e)},j=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,C=t=>t.replace(j,w),S=u?t=>n.from(t,"utf8").toString("base64"):l?t=>A(l.encode(t)):t=>m(C(t)),T=(t,e=!1)=>e?g(S(t)):S(t),O=t=>T(t,!0),E=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,F=t=>{switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return y(55296+(e>>>10))+y(56320+(1023&e));case 3:return y((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return y((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},R=t=>t.replace(E,F),B=t=>{if(t=t.replace(/\s+/g,""),!d.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));let e,r,n,o="";for(let c=0;c<t.length;)e=p[t.charAt(c++)]<<18|p[t.charAt(c++)]<<12|(r=p[t.charAt(c++)])<<6|(n=p[t.charAt(c++)]),o+=64===r?y(e>>16&255):64===n?y(e>>16&255,e>>8&255):y(e>>16&255,e>>8&255,255&e);return o},U=i?t=>atob(b(t)):u?t=>n.from(t,"base64").toString("binary"):B,_=u?t=>h(n.from(t,"base64")):t=>h(U(t),(t=>t.charCodeAt(0))),I=t=>_(J(t)),D=u?t=>n.from(t,"base64").toString("utf8"):f?t=>f.decode(_(t)):t=>R(U(t)),J=t=>b(t.replace(/[-_]/g,(t=>"-"==t?"+":"/"))),k=t=>D(J(t)),z=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),L=function(){const t=(t,e)=>Object.defineProperty(String.prototype,t,z(e));t("fromBase64",(function(){return k(this)})),t("toBase64",(function(t){return T(this,t)})),t("toBase64URI",(function(){return T(this,!0)})),t("toBase64URL",(function(){return T(this,!0)})),t("toUint8Array",(function(){return I(this)}))},P=function(){const t=(t,e)=>Object.defineProperty(Uint8Array.prototype,t,z(e));t("toBase64",(function(t){return x(this,t)})),t("toBase64URI",(function(){return x(this,!0)})),t("toBase64URL",(function(){return x(this,!0)}))},W={version:o,VERSION:c,atob:U,atobPolyfill:B,btoa:m,btoaPolyfill:v,fromBase64:k,toBase64:T,encode:T,encodeURI:O,encodeURL:O,utob:C,btou:R,decode:k,isValid:t=>{if("string"!==typeof t)return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},fromUint8Array:x,toUint8Array:I,extendString:L,extendUint8Array:P,extendBuiltins:()=>{L(),P()}}},49211:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}r.d(e,{A:()=>c});var o=function t(e,r){function o(t,o,c){if("undefined"!==typeof document){"number"===typeof(c=n({},r,c)).expires&&(c.expires=new Date(Date.now()+864e5*c.expires)),c.expires&&(c.expires=c.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in c)c[a]&&(i+="; "+a,!0!==c[a]&&(i+="="+c[a].split(";")[0]));return document.cookie=t+"="+e.write(o,t)+i}}return Object.create({set:o,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},o=0;o<r.length;o++){var c=r[o].split("="),i=c.slice(1).join("=");try{var a=decodeURIComponent(c[0]);if(n[a]=e.read(i,a),t===a)break}catch(u){}}return t?n[t]:n}},remove:function(t,e){o(t,"",n({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,n({},this.attributes,e))},withConverter:function(e){return t(n({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const c=o},47271:(t,e,r)=>{"use strict";r.d(e,{iU:()=>l});new TextEncoder;const n=new TextDecoder;const o=t=>{let e=t;e instanceof Uint8Array&&(e=n.decode(e)),e=e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(t=>{const e=atob(t),r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r})(e)}catch(r){throw new TypeError("The input to be decoded is not correctly encoded.")}};class c extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(t){var e;super(t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,null===(e=Error.captureStackTrace)||void 0===e||e.call(Error,this,this.constructor)}}class i extends c{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}Symbol.asyncIterator;const a=crypto;a.getRandomValues.bind(a);function u(t){if("object"!==typeof(e=t)||null===e||"[object Object]"!==Object.prototype.toString.call(t))return!1;var e;if(null===Object.getPrototypeOf(t))return!0;let r=t;for(;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r}Symbol();const f=o;function l(t){if("string"!==typeof t)throw new i("JWTs must use Compact JWS serialization, JWT must be a string");const{1:e,length:r}=t.split(".");if(5===r)throw new i("Only JWTs using Compact JWS serialization can be decoded");if(3!==r)throw new i("Invalid JWT");if(!e)throw new i("JWTs must contain a payload");let o,c;try{o=f(e)}catch(a){throw new i("Failed to base64url decode the payload")}try{c=JSON.parse(n.decode(o))}catch(l){throw new i("Failed to parse the decoded payload as JSON")}if(!u(c))throw new i("Invalid JWT Claims Set");return c}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 9898.93cc5558.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9898],{49898:(e,t,n)=>{n.r(t),n.d(t,{CloseTagAdapter:()=>jt,CompletionAdapter:()=>gt,DefinitionAdapter:()=>yt,DiagnosticsAdapter:()=>ct,DocumentColorAdapter:()=>Pt,DocumentFormattingEditProvider:()=>Rt,DocumentHighlightAdapter:()=>kt,DocumentLinkAdapter:()=>St,DocumentRangeFormattingEditProvider:()=>Tt,DocumentSymbolAdapter:()=>It,FoldingRangeAdapter:()=>Mt,HoverAdapter:()=>vt,ReferenceAdapter:()=>Et,RenameAdapter:()=>xt,SelectionRangeAdapter:()=>Lt,SignatureHelpAdapter:()=>Ft,WorkerManager:()=>se,fromPosition:()=>lt,fromRange:()=>ht,setupMode:()=>Ot,toRange:()=>ft,toTextEdit:()=>mt});var r,i,o=n(38903),a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of u(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},g={};d(g,r=o,"default"),i&&d(i,r,"default");var l,h,f,p,m,v,_,w,k,b,y,C,E,x,I,A,S,R,T,D,P,M,L,F,j,O,N,U,W,V,H,K,z,X,B,$,q,Q,G,J,Y,Z,ee,te,ne,re,ie,oe,ae,se=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=g.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(h=l||(l={})).MIN_VALUE=-2147483648,h.MAX_VALUE=2147483647,(p=f||(f={})).MIN_VALUE=0,p.MAX_VALUE=2147483647,(v=m||(m={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=f.MAX_VALUE),t===Number.MAX_VALUE&&(t=f.MAX_VALUE),{line:e,character:t}},v.is=function(e){var t=e;return st.objectLiteral(t)&&st.uinteger(t.line)&&st.uinteger(t.character)},(w=_||(_={})).create=function(e,t,n,r){if(st.uinteger(e)&&st.uinteger(t)&&st.uinteger(n)&&st.uinteger(r))return{start:m.create(e,t),end:m.create(n,r)};if(m.is(e)&&m.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},w.is=function(e){var t=e;return st.objectLiteral(t)&&m.is(t.start)&&m.is(t.end)},(b=k||(k={})).create=function(e,t){return{uri:e,range:t}},b.is=function(e){var t=e;return st.defined(t)&&_.is(t.range)&&(st.string(t.uri)||st.undefined(t.uri))},(C=y||(y={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},C.is=function(e){var t=e;return st.defined(t)&&_.is(t.targetRange)&&st.string(t.targetUri)&&(_.is(t.targetSelectionRange)||st.undefined(t.targetSelectionRange))&&(_.is(t.originSelectionRange)||st.undefined(t.originSelectionRange))},(x=E||(E={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},x.is=function(e){var t=e;return st.numberRange(t.red,0,1)&&st.numberRange(t.green,0,1)&&st.numberRange(t.blue,0,1)&&st.numberRange(t.alpha,0,1)},(A=I||(I={})).create=function(e,t){return{range:e,color:t}},A.is=function(e){var t=e;return _.is(t.range)&&E.is(t.color)},(R=S||(S={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},R.is=function(e){var t=e;return st.string(t.label)&&(st.undefined(t.textEdit)||X.is(t))&&(st.undefined(t.additionalTextEdits)||st.typedArray(t.additionalTextEdits,X.is))},(D=T||(T={})).Comment="comment",D.Imports="imports",D.Region="region",(M=P||(P={})).create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return st.defined(n)&&(o.startCharacter=n),st.defined(r)&&(o.endCharacter=r),st.defined(i)&&(o.kind=i),o},M.is=function(e){var t=e;return st.uinteger(t.startLine)&&st.uinteger(t.startLine)&&(st.undefined(t.startCharacter)||st.uinteger(t.startCharacter))&&(st.undefined(t.endCharacter)||st.uinteger(t.endCharacter))&&(st.undefined(t.kind)||st.string(t.kind))},(F=L||(L={})).create=function(e,t){return{location:e,message:t}},F.is=function(e){var t=e;return st.defined(t)&&k.is(t.location)&&st.string(t.message)},(O=j||(j={})).Error=1,O.Warning=2,O.Information=3,O.Hint=4,(U=N||(N={})).Unnecessary=1,U.Deprecated=2,(W||(W={})).is=function(e){var t=e;return void 0!==t&&null!==t&&st.string(t.href)},(H=V||(V={})).create=function(e,t,n,r,i,o){var a={range:e,message:t};return st.defined(n)&&(a.severity=n),st.defined(r)&&(a.code=r),st.defined(i)&&(a.source=i),st.defined(o)&&(a.relatedInformation=o),a},H.is=function(e){var t,n=e;return st.defined(n)&&_.is(n.range)&&st.string(n.message)&&(st.number(n.severity)||st.undefined(n.severity))&&(st.integer(n.code)||st.string(n.code)||st.undefined(n.code))&&(st.undefined(n.codeDescription)||st.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(st.string(n.source)||st.undefined(n.source))&&(st.undefined(n.relatedInformation)||st.typedArray(n.relatedInformation,L.is))},(z=K||(K={})).create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return st.defined(n)&&n.length>0&&(i.arguments=n),i},z.is=function(e){var t=e;return st.defined(t)&&st.string(t.title)&&st.string(t.command)},(B=X||(X={})).replace=function(e,t){return{range:e,newText:t}},B.insert=function(e,t){return{range:{start:e,end:e},newText:t}},B.del=function(e){return{range:e,newText:""}},B.is=function(e){var t=e;return st.objectLiteral(t)&&st.string(t.newText)&&_.is(t.range)},(q=$||($={})).create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},q.is=function(e){var t=e;return void 0!==t&&st.objectLiteral(t)&&st.string(t.label)&&(st.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(st.string(t.description)||void 0===t.description)},(Q||(Q={})).is=function(e){return"string"===typeof e},(J=G||(G={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},J.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},J.del=function(e,t){return{range:e,newText:"",annotationId:t}},J.is=function(e){var t=e;return X.is(t)&&($.is(t.annotationId)||Q.is(t.annotationId))},(Z=Y||(Y={})).create=function(e,t){return{textDocument:e,edits:t}},Z.is=function(e){var t=e;return st.defined(t)&&le.is(t.textDocument)&&Array.isArray(t.edits)},(te=ee||(ee={})).create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},te.is=function(e){var t=e;return t&&"create"===t.kind&&st.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||st.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||st.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Q.is(t.annotationId))},(re=ne||(ne={})).create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},re.is=function(e){var t=e;return t&&"rename"===t.kind&&st.string(t.oldUri)&&st.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||st.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||st.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Q.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},oe.is=function(e){var t=e;return t&&"delete"===t.kind&&st.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||st.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||st.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Q.is(t.annotationId))},(ae||(ae={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return st.string(e.kind)?ee.is(e)||ne.is(e)||ie.is(e):Y.is(e)})))};var ue,ce,de,ge,le,he,fe,pe,me,ve,_e,we,ke,be,ye,Ce,Ee,xe,Ie,Ae,Se,Re,Te,De,Pe,Me,Le,Fe,je,Oe,Ne,Ue,We,Ve,He,Ke,ze,Xe,Be,$e,qe,Qe,Ge,Je,Ye,Ze,et,tt,nt,rt,it,ot=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=X.insert(e,t):Q.is(n)?(i=n,r=G.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=G.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=X.replace(e,t):Q.is(n)?(i=n,r=G.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=G.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=X.del(e):Q.is(t)?(r=t,n=G.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=G.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),at=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(Q.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new at(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(Y.is(e)){var n=new ot(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ot(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(le.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new ot(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ot(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new at,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if($.is(t)||Q.is(t)?r=t:n=t,void 0===r?i=ee.create(e,n):(o=Q.is(r)?r:this._changeAnnotations.manage(r),i=ee.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if($.is(n)||Q.is(n)?i=n:r=n,void 0===i?o=ne.create(e,t,r):(a=Q.is(i)?i:this._changeAnnotations.manage(i),o=ne.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if($.is(t)||Q.is(t)?r=t:n=t,void 0===r?i=ie.create(e,n):(o=Q.is(r)?r:this._changeAnnotations.manage(r),i=ie.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}();(ce=ue||(ue={})).create=function(e){return{uri:e}},ce.is=function(e){var t=e;return st.defined(t)&&st.string(t.uri)},(ge=de||(de={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){var t=e;return st.defined(t)&&st.string(t.uri)&&st.integer(t.version)},(he=le||(le={})).create=function(e,t){return{uri:e,version:t}},he.is=function(e){var t=e;return st.defined(t)&&st.string(t.uri)&&(null===t.version||st.integer(t.version))},(pe=fe||(fe={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},pe.is=function(e){var t=e;return st.defined(t)&&st.string(t.uri)&&st.string(t.languageId)&&st.integer(t.version)&&st.string(t.text)},(ve=me||(me={})).PlainText="plaintext",ve.Markdown="markdown",function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(me||(me={})),(_e||(_e={})).is=function(e){var t=e;return st.objectLiteral(e)&&me.is(t.kind)&&st.string(t.value)},(ke=we||(we={})).Text=1,ke.Method=2,ke.Function=3,ke.Constructor=4,ke.Field=5,ke.Variable=6,ke.Class=7,ke.Interface=8,ke.Module=9,ke.Property=10,ke.Unit=11,ke.Value=12,ke.Enum=13,ke.Keyword=14,ke.Snippet=15,ke.Color=16,ke.File=17,ke.Reference=18,ke.Folder=19,ke.EnumMember=20,ke.Constant=21,ke.Struct=22,ke.Event=23,ke.Operator=24,ke.TypeParameter=25,(ye=be||(be={})).PlainText=1,ye.Snippet=2,(Ce||(Ce={})).Deprecated=1,(xe=Ee||(Ee={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},xe.is=function(e){var t=e;return t&&st.string(t.newText)&&_.is(t.insert)&&_.is(t.replace)},(Ae=Ie||(Ie={})).asIs=1,Ae.adjustIndentation=2,(Se||(Se={})).create=function(e){return{label:e}},(Re||(Re={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(De=Te||(Te={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},De.is=function(e){var t=e;return st.string(t)||st.objectLiteral(t)&&st.string(t.language)&&st.string(t.value)},(Pe||(Pe={})).is=function(e){var t=e;return!!t&&st.objectLiteral(t)&&(_e.is(t.contents)||Te.is(t.contents)||st.typedArray(t.contents,Te.is))&&(void 0===e.range||_.is(e.range))},(Me||(Me={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Le||(Le={})).create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return st.defined(t)&&(i.documentation=t),st.defined(n)?i.parameters=n:i.parameters=[],i},(je=Fe||(Fe={})).Text=1,je.Read=2,je.Write=3,(Oe||(Oe={})).create=function(e,t){var n={range:e};return st.number(t)&&(n.kind=t),n},(Ue=Ne||(Ne={})).File=1,Ue.Module=2,Ue.Namespace=3,Ue.Package=4,Ue.Class=5,Ue.Method=6,Ue.Property=7,Ue.Field=8,Ue.Constructor=9,Ue.Enum=10,Ue.Interface=11,Ue.Function=12,Ue.Variable=13,Ue.Constant=14,Ue.String=15,Ue.Number=16,Ue.Boolean=17,Ue.Array=18,Ue.Object=19,Ue.Key=20,Ue.Null=21,Ue.EnumMember=22,Ue.Struct=23,Ue.Event=24,Ue.Operator=25,Ue.TypeParameter=26,(We||(We={})).Deprecated=1,(Ve||(Ve={})).create=function(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o},(Ke=He||(He={})).create=function(e,t,n,r,i,o){var a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},Ke.is=function(e){var t=e;return t&&st.string(t.name)&&st.number(t.kind)&&_.is(t.range)&&_.is(t.selectionRange)&&(void 0===t.detail||st.string(t.detail))&&(void 0===t.deprecated||st.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(Xe=ze||(ze={})).Empty="",Xe.QuickFix="quickfix",Xe.Refactor="refactor",Xe.RefactorExtract="refactor.extract",Xe.RefactorInline="refactor.inline",Xe.RefactorRewrite="refactor.rewrite",Xe.Source="source",Xe.SourceOrganizeImports="source.organizeImports",Xe.SourceFixAll="source.fixAll",($e=Be||(Be={})).create=function(e,t){var n={diagnostics:e};return void 0!==t&&null!==t&&(n.only=t),n},$e.is=function(e){var t=e;return st.defined(t)&&st.typedArray(t.diagnostics,V.is)&&(void 0===t.only||st.typedArray(t.only,st.string))},(Qe=qe||(qe={})).create=function(e,t,n){var r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):K.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},Qe.is=function(e){var t=e;return t&&st.string(t.title)&&(void 0===t.diagnostics||st.typedArray(t.diagnostics,V.is))&&(void 0===t.kind||st.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||K.is(t.command))&&(void 0===t.isPreferred||st.boolean(t.isPreferred))&&(void 0===t.edit||ae.is(t.edit))},(Je=Ge||(Ge={})).create=function(e,t){var n={range:e};return st.defined(t)&&(n.data=t),n},Je.is=function(e){var t=e;return st.defined(t)&&_.is(t.range)&&(st.undefined(t.command)||K.is(t.command))},(Ze=Ye||(Ye={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},Ze.is=function(e){var t=e;return st.defined(t)&&st.uinteger(t.tabSize)&&st.boolean(t.insertSpaces)},(tt=et||(et={})).create=function(e,t,n){return{range:e,target:t,data:n}},tt.is=function(e){var t=e;return st.defined(t)&&_.is(t.range)&&(st.undefined(t.target)||st.string(t.target))},(rt=nt||(nt={})).create=function(e,t){return{range:e,parent:t}},rt.is=function(e){var t=e;return void 0!==t&&_.is(t.range)&&(void 0===t.parent||rt.is(t.parent))},function(e){function t(e,n){if(e.length<=1)return e;var r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);for(var a=0,s=0,u=0;a<i.length&&s<o.length;){var c=n(i[a],o[s]);e[u++]=c<=0?i[a++]:o[s++]}for(;a<i.length;)e[u++]=i[a++];for(;s<o.length;)e[u++]=o[s++];return e}e.create=function(e,t,n,r){return new ut(e,t,n,r)},e.is=function(e){var t=e;return!!(st.defined(t)&&st.string(t.uri)&&(st.undefined(t.languageId)||st.string(t.languageId))&&st.uinteger(t.lineCount)&&st.func(t.getText)&&st.func(t.positionAt)&&st.func(t.offsetAt))},e.applyEdits=function(e,n){for(var r=e.getText(),i=t(n,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length,a=i.length-1;a>=0;a--){var s=i[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+s.newText+r.substring(c,r.length),o=u}return r}}(it||(it={}));var st,ut=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return m.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return m.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(st||(st={}));var ct=class{constructor(e,t,n){this._languageId=e,this._worker=t;const r=e=>{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{g.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(g.editor.onDidCreateModel(r)),this._disposables.push(g.editor.onWillDisposeModel(i)),this._disposables.push(g.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{g.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{g.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),g.editor.getModels().forEach(r)}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"===typeof t.code?String(t.code):t.code;return{severity:dt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=g.editor.getModel(e);i&&i.getLanguageId()===t&&g.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function dt(e){switch(e){case j.Error:return g.MarkerSeverity.Error;case j.Warning:return g.MarkerSeverity.Warning;case j.Information:return g.MarkerSeverity.Info;case j.Hint:return g.MarkerSeverity.Hint;default:return g.MarkerSeverity.Info}}var gt=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),lt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),o=new g.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),a=n.items.map((e=>{const n={uri:i,position:lt(t),label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(r=e.command,r&&"editor.action.triggerSuggest"===r.command?{id:r.command,title:r.title,arguments:r.arguments}:void 0),range:o,kind:pt(e.kind)};var r,a;return e.textEdit&&("undefined"!==typeof(a=e.textEdit).insert&&"undefined"!==typeof a.replace?n.range={insert:ft(e.textEdit.insert),replace:ft(e.textEdit.replace)}:n.range=ft(e.textEdit.range),n.insertText=e.textEdit.newText),e.additionalTextEdits&&(n.additionalTextEdits=e.additionalTextEdits.map(mt)),e.insertTextFormat===be.Snippet&&(n.insertTextRules=g.languages.CompletionItemInsertTextRule.InsertAsSnippet),n}));return{isIncomplete:n.isIncomplete,suggestions:a}}))}resolveCompletionItem(e,t){const n=e.uri,r=e.position;return this._worker(n).then((t=>t.doResolve(n.toString(),r,e)))}};function lt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function ht(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function ft(e){if(e)return new g.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function pt(e){const t=g.languages.CompletionItemKind;switch(e){case we.Text:return t.Text;case we.Method:return t.Method;case we.Function:return t.Function;case we.Constructor:return t.Constructor;case we.Field:return t.Field;case we.Variable:return t.Variable;case we.Class:return t.Class;case we.Interface:return t.Interface;case we.Module:return t.Module;case we.Property:return t.Property;case we.Unit:return t.Unit;case we.Value:return t.Value;case we.Enum:return t.Enum;case we.Keyword:return t.Keyword;case we.Snippet:return t.Snippet;case we.Color:return t.Color;case we.File:return t.File;case we.Reference:return t.Reference}return t.Property}function mt(e){if(e)return{range:ft(e.range),text:e.newText}}var vt=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),lt(t)))).then((e=>{if(e)return{range:ft(e.range),contents:wt(e.contents)}}))}};function _t(e){return"string"===typeof e?{value:e}:(t=e)&&"object"===typeof t&&"string"===typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function wt(e){if(e)return Array.isArray(e)?e.map(_t):[_t(e)]}var kt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),lt(t)))).then((e=>{if(e)return e.map((e=>({range:ft(e.range),kind:bt(e.kind)})))}))}};function bt(e){switch(e){case Fe.Read:return g.languages.DocumentHighlightKind.Read;case Fe.Write:return g.languages.DocumentHighlightKind.Write;case Fe.Text:return g.languages.DocumentHighlightKind.Text}return g.languages.DocumentHighlightKind.Text}var yt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),lt(t)))).then((e=>{if(e)return[Ct(e)]}))}};function Ct(e){return{uri:g.Uri.parse(e.uri),range:ft(e.range)}}var Et=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),lt(t)))).then((e=>{if(e)return e.map(Ct)}))}},xt=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),lt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=g.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:ft(i.range),text:i.newText}})}return{edits:t}}(e)))}};var It=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>({name:e.name,detail:"",containerName:e.containerName,kind:At(e.kind),range:ft(e.location.range),selectionRange:ft(e.location.range),tags:[]})))}))}};function At(e){let t=g.languages.SymbolKind;switch(e){case Ne.File:return t.Array;case Ne.Module:return t.Module;case Ne.Namespace:return t.Namespace;case Ne.Package:return t.Package;case Ne.Class:return t.Class;case Ne.Method:return t.Method;case Ne.Property:return t.Property;case Ne.Field:return t.Field;case Ne.Constructor:return t.Constructor;case Ne.Enum:return t.Enum;case Ne.Interface:return t.Interface;case Ne.Function:return t.Function;case Ne.Variable:return t.Variable;case Ne.Constant:return t.Constant;case Ne.String:return t.String;case Ne.Number:return t.Number;case Ne.Boolean:return t.Boolean;case Ne.Array:return t.Array}return t.Function}var St=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:ft(e.range),url:e.target})))}}))}},Rt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,Dt(t)).then((e=>{if(e&&0!==e.length)return e.map(mt)}))))}},Tt=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),ht(t),Dt(n)).then((e=>{if(e&&0!==e.length)return e.map(mt)}))))}};function Dt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Pt=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:ft(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,ht(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=mt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(mt)),t}))}))}},Mt=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return"undefined"!==typeof e.kind&&(t.kind=function(e){switch(e){case T.Comment:return g.languages.FoldingRangeKind.Comment;case T.Imports:return g.languages.FoldingRangeKind.Imports;case T.Region:return g.languages.FoldingRangeKind.Region}}(e.kind)),t}))}))}};var Lt=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(lt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:ft(e.range)}),e=e.parent;return t}))}))}},Ft=class{constructor(e){this._worker=e}signatureHelpTriggerCharacters=["(",","];async provideSignatureHelp(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSignatureHelpItems(r.toString(),lt(t)))).then((t=>{if(t&&!e.isDisposed())return{value:t,dispose(){}}}))}},jt=class{constructor(e){this._worker=e}get triggerCharacters(){return[">"]}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doAutoInsert(i.toString(),lt(t)))).then((t=>{if(t&&!e.isDisposed())return{isIncomplete:!0,suggestions:[{label:t.substring(t.indexOf("<")),kind:g.languages.CompletionItemKind.Property,documentation:t,insertText:t,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}))}};function Ot(e){const t=[],n=[],r=new se(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;Ut(n),r.completionItems&&n.push(g.languages.registerCompletionItemProvider(t,new gt(i,["/","-",":"]))),r.hovers&&n.push(g.languages.registerHoverProvider(t,new vt(i))),r.documentHighlights&&n.push(g.languages.registerDocumentHighlightProvider(t,new kt(i))),r.definitions&&n.push(g.languages.registerDefinitionProvider(t,new yt(i))),r.references&&n.push(g.languages.registerReferenceProvider(t,new Et(i))),r.documentSymbols&&n.push(g.languages.registerDocumentSymbolProvider(t,new It(i))),r.rename&&n.push(g.languages.registerRenameProvider(t,new xt(i))),r.colors&&n.push(g.languages.registerColorProvider(t,new Pt(i))),r.foldingRanges&&n.push(g.languages.registerFoldingRangeProvider(t,new Mt(i))),r.diagnostics&&n.push(new ct(t,i,e.onDidChange)),r.selectionRanges&&n.push(g.languages.registerSelectionRangeProvider(t,new Lt(i))),r.documentFormattingEdits&&n.push(g.languages.registerDocumentFormattingEditProvider(t,new Rt(i))),r.documentRangeFormattingEdits&&n.push(g.languages.registerDocumentRangeFormattingEditProvider(t,new Tt(i)))}(),t.push(Nt(n)),Nt(t)}function Nt(e){return{dispose:()=>Ut(e)}}function Ut(e){for(;e.length;)e.pop().dispose()}}}]);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.34.0(dee69564fa27426c7ebb706c3d2ed3d1acccedfe)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9907],{79907:(e,o,i)=>{i.d(o,{A:()=>ee});var t=i(92810),l=i(81662),d=i(95838),r=i(12280),a=i(66726),s=i(29234),n=i(2018),m=i(7744),b=i(71086),g=i(55039),u=i(43005),c=i(54316),h=i(4815),p=i(62767),x=i(11007),f=i(38883),v=i.n(f),B=i(45934),A=i(23287),j=i(47358),S=i(26238),k=i(21519),P=i(71495),R=i(49343),_=i(28381),y=i(68031),w=i(58341),N=i(24615),T=i(95955),E=i(35015),L=i(99983),I=i(18405),C=i(48513),F=i(40187),O=i(45509),V=i(34353),M=i(46929),D=i(77416),H=i(13071),W=i(78541),X=i(62303),z=i(44997),G=i(65655),Y=i(85163),U=i(47520),q=i(45695),J=i(56991),K=(i(9589),i(70082));const{Option:Q}=l.A,Z=(0,K.jsxs)(l.A,{className:"select-after",getPopupContainer:e=>e.parentNode,children:[(0,K.jsx)(Q,{value:"px",children:"px"}),(0,K.jsx)(Q,{value:"%",children:"%"})]}),{useToken:$}=d.A,ee=({elementSettings:e})=>{var o;const{__:i}=(0,A.s9)(),d=(0,q.XW)(),[f]=r.A.useForm(),[Q,ee]=(0,t.useState)({}),[oe,ie]=(0,t.useState)({}),[te,le]=(0,t.useState)(!0),[de,re]=(0,t.useState)({}),[ae,se]=(0,t.useState)({}),[ne,me]=(0,t.useState)(!0),be=(0,B.d4)(j.Ct),ge=(0,B.d4)(j.CS),ue=(0,J.rD)(),[ce,he]=(0,t.useState)(""===(null===(o=e.backgroundImage)||void 0===o?void 0:o[0].value)),pe=(0,B.d4)(j.Fv),xe=(0,B.d4)(j.yy),fe=pe&&"bottom"!==xe,{token:ve}=$(),Be=(0,t.useRef)(null),Ae=(0,t.useRef)(null),[je,Se]=(0,t.useState)(!1),[ke,Pe]=(0,t.useState)(!1),[Re,_e]=(0,t.useState)(!1),[ye,we]=(0,t.useState)(!1),[Ne,Te]=(0,t.useState)(!1),[Ee,Le]=(0,t.useState)(!1),[Ie,Ce]=(0,t.useState)(!1),[Fe,Oe]=(0,t.useState)(!1),[Ve,Me]=(0,t.useState)(!1),[De,He]=(0,t.useState)(!1),[We,Xe]=(0,t.useState)(!1),[ze,Ge]=(0,t.useState)(!1),[Ye,Ue]=(0,t.useState)(!1),[qe,Je]=(0,t.useState)(!1),[Ke,Qe]=(0,t.useState)(""),[Ze,$e]=(0,t.useState)("https://"),[eo,oo]=(0,t.useState)(),[io,to]=(0,t.useState)(!1),lo=[{label:i("Not defined"),value:"none"},{label:i("Do not repeat background (no-repeat)"),value:"no-repeat"},{label:i("Repeat background (repeat)"),value:"repeat"},{label:i("Repeat background horizontally (repeat-x)"),value:"repeat-x"},{label:i("Repeat background vertically (repeat-y)"),value:"repeat-y"}];(0,t.useEffect)((()=>{if(e){var o,i,t,l,d,r,a,s,n,m,b,g,u,c,h,p,x,v,B,A,j,S,k,P,R,_,y,w,N,T,E,L,I,C,F,O,V,M,D,H,W,X,z,G,Y,q,J,K,Q,Z,$,oe,te,de,ae,ne,be,ge,ue,ce,pe,xe,fe,ve,Be,Ae,je,ke,Re,ye,Ne,Ee,Ie,Fe,Ve,De,We,ze,Ye,qe,Ke,Qe,Ze,eo,oo,io,to,lo,ro,ao,so,no,mo,bo,go,uo,co,ho,po,xo,fo,vo,Bo,Ao,jo,So,ko,Po,Ro,_o;const yo=e.border||{},wo=e.boxShadow||{},No=e.mobileBorder||{},To=e.mobileBoxShadow||{},Eo=e.mobileBorderRadius||{},Lo=e.mobilePadding||{},Io=e.mobileBoxShadow||{},Co=e.mobileAlign||{},Fo=e.mobileBackgroundImage||[];ee(yo),ie(wo),re(No),se(To);const Oo=Object.keys(yo).find((e=>{var o,i,t;return(null===(o=yo[e])||void 0===o?void 0:o.width)||(null===(i=yo[e])||void 0===i?void 0:i.style)||(null===(t=yo[e])||void 0===t?void 0:t.color)})),Vo=Object.keys(No).find((e=>{var o,i,t;return(null===(o=No[e])||void 0===o?void 0:o.width)||(null===(i=No[e])||void 0===i?void 0:i.style)||(null===(t=No[e])||void 0===t?void 0:t.color)}));e.href&&("https://"===e.href.substring(0,8)||"http://"===e.href.substring(0,7)?$e("https://"):"mailto:"===e.href.substring(0,7)?$e("mailto:"):"tel:"===e.href.substring(0,4)?$e("tel:"):"sms:"===e.href.substring(0,4)?$e("sms:"):"ftp://"===e.href.substring(0,6)?$e("ftp://"):"skype:"===e.href.substring(0,6)?$e("skype:"):"viber:"===e.href.substring(0,6)?$e("viber:"):$e("")),f.setFieldsValue({...e,href:e.href?e.href:"https://",width:null===(o=e.width)||void 0===o?void 0:o.value,widthDim:null===(i=e.width)||void 0===i?void 0:i.dim,height:null===(t=e.height)||void 0===t?void 0:t.value,heightDim:null===(l=e.height)||void 0===l?void 0:l.dim,backgroundImage:null===(d=e.backgroundImage)||void 0===d?void 0:d[0].value,show:e.show?e.show:"all",borderPosition:Oo||"all",borderWidth:(null===(r=yo[Oo])||void 0===r?void 0:r.width)||"",borderColor:(null===(a=yo[Oo])||void 0===a?void 0:a.color)||"",borderStyle:(null===(s=yo[Oo])||void 0===s?void 0:s.style)||"",paddingTop:(0,U.ok)(null===(n=e.padding)||void 0===n?void 0:n.all)||(0,U.ok)(null===(m=e.padding)||void 0===m?void 0:m.top),paddingLeft:(0,U.ok)(null===(b=e.padding)||void 0===b?void 0:b.all)||(0,U.ok)(null===(g=e.padding)||void 0===g?void 0:g.left),paddingRight:(0,U.ok)(null===(u=e.padding)||void 0===u?void 0:u.all)||(0,U.ok)(null===(c=e.padding)||void 0===c?void 0:c.right),paddingBottom:(0,U.ok)(null===(h=e.padding)||void 0===h?void 0:h.all)||(0,U.ok)(null===(p=e.padding)||void 0===p?void 0:p.bottom),paddingLeftRight:(0,U.ok)(null===(x=e.padding)||void 0===x?void 0:x.left)||(0,U.ok)(null===(v=e.padding)||void 0===v?void 0:v.right),paddingTopBottom:(0,U.ok)(null===(B=e.padding)||void 0===B?void 0:B.top)||(0,U.ok)(null===(A=e.padding)||void 0===A?void 0:A.bottom),borderRadiusAll:(0,U.ok)(null===(j=e.borderRadius)||void 0===j?void 0:j.all),borderRadiusTopLeft:(0,U.ok)(null===(S=e.borderRadius)||void 0===S?void 0:S.topLeft),borderRadiusBottomLeft:(0,U.ok)(null===(k=e.borderRadius)||void 0===k?void 0:k.bottomLeft),borderRadiusTopRight:(0,U.ok)(null===(P=e.borderRadius)||void 0===P?void 0:P.topRight),borderRadiusBottomRight:(0,U.ok)(null===(R=e.borderRadius)||void 0===R?void 0:R.bottomRight),boxShadowInset:(0,U.ok)(null===(_=e.boxShadow)||void 0===_?void 0:_.inset)||!1,boxShadowHOffset:(0,U.ok)(null===(y=e.boxShadow)||void 0===y?void 0:y.hOffset),boxShadowVOffset:(0,U.ok)(null===(w=e.boxShadow)||void 0===w?void 0:w.vOffset),boxShadowBlurRadius:(0,U.ok)(null===(N=e.boxShadow)||void 0===N?void 0:N.blurRadius),boxShadowSpreadRadius:(0,U.ok)(null===(T=e.boxShadow)||void 0===T?void 0:T.spreadRadius),boxShadowColor:(0,U.ok)(null===(E=e.boxShadow)||void 0===E?void 0:E.color),mobileWidth:(0,U.xc)(null===(L=e.mobileWidth)||void 0===L?void 0:L.value),mobileWidthDim:null===(I=e.mobileWidth)||void 0===I?void 0:I.dim,mobileHeight:(0,U.xc)(null===(C=e.mobileHeight)||void 0===C?void 0:C.value),mobileHeightDim:null===(F=e.mobileHeight)||void 0===F?void 0:F.dim,mobileBorderPosition:Vo||"all",mobileBorderWidth:null!==(null===(O=No[Vo])||void 0===O?void 0:O.width)?null===(V=No[Vo])||void 0===V?void 0:V.width:"",mobileBorderColor:(null===(M=No[Vo])||void 0===M?void 0:M.color)||"",mobileBorderStyle:(null===(D=No[Vo])||void 0===D?void 0:D.style)||"",mobileBorderRadiusAll:(0,U.ok)(null===(H=e.mobileBorderRadius)||void 0===H?void 0:H.all),mobileRadiusTopLeft:(0,U.ok)(null!==(null===(W=e.mobileBorderRadius)||void 0===W?void 0:W.topLeft)?null===(X=e.mobileBorderRadius)||void 0===X?void 0:X.topLeft:null===(z=e.mobileBorderRadius)||void 0===z?void 0:z.all),mobileRadiusBottomLeft:(0,U.ok)(null!==(null===(G=e.mobileBorderRadius)||void 0===G?void 0:G.bottomLeft)?null===(Y=e.mobileBorderRadius)||void 0===Y?void 0:Y.bottomLeft:null===(q=e.mobileBorderRadius)||void 0===q?void 0:q.all),mobileRadiusTopRight:(0,U.ok)(null!==(null===(J=e.mobileBorderRadius)||void 0===J?void 0:J.topRight)?null===(K=e.mobileBorderRadius)||void 0===K?void 0:K.topRight:null===(Q=e.mobileBorderRadius)||void 0===Q?void 0:Q.all),mobileRadiusBottomRight:(0,U.ok)(null!==(null===(Z=e.mobileBorderRadius)||void 0===Z?void 0:Z.bottomRight)?null===($=e.mobileBorderRadius)||void 0===$?void 0:$.bottomRight:null===(oe=e.mobileBorderRadius)||void 0===oe?void 0:oe.all),mobileBoxShadowInset:(0,U.ok)(null===Io||void 0===Io?void 0:Io.inset)||!1,mobileBoxShadowHOffset:(0,U.ok)(null===Io||void 0===Io?void 0:Io.hOffset),mobileBoxShadowVOffset:(0,U.ok)(null===Io||void 0===Io?void 0:Io.vOffset),mobileBoxShadowBlurRadius:(0,U.ok)(null===Io||void 0===Io?void 0:Io.blurRadius),mobileBoxShadowSpreadRadius:(0,U.ok)(null===Io||void 0===Io?void 0:Io.spreadRadius),mobileBoxShadowColor:(0,U.ok)(null===Io||void 0===Io?void 0:Io.color),mobileAlign:(0,U.ok)(null===Co||void 0===Co?void 0:Co.value),mobileVerticalAlign:(0,U.ok)(null===(te=e.mobileVerticalAlign)||void 0===te?void 0:te.value),mobileBackgroundColor:(0,U.ok)("none"!==(null===(de=e.mobileBackgroundColor)||void 0===de?void 0:de.value)?null===(ae=e.mobileBackgroundColor)||void 0===ae?void 0:ae.value:""),mobileBackgroundImage:"none"!==(null===(ne=Fo[0])||void 0===ne?void 0:ne.value)?null===(be=Fo[0])||void 0===be?void 0:be.value:"",mobileBackgroundPositionX:(0,U.ok)(null===(ge=e.mobileBackgroundPositionX)||void 0===ge?void 0:ge.value),mobileBackgroundPositionY:(0,U.ok)(null===(ue=e.mobileBackgroundPositionY)||void 0===ue?void 0:ue.value),mobileBackgroundRepeat:null!==(ce=e.mobileBackgroundRepeat)&&void 0!==ce&&ce.value?null===(pe=e.mobileBackgroundRepeat)||void 0===pe?void 0:pe.value:"none",mobilePaddingTop:(0,U.ok)(Lo.all)||(0,U.ok)(Lo.top),mobilePaddingLeft:(0,U.ok)(Lo.all)||(0,U.ok)(Lo.left),mobilePaddingRight:(0,U.ok)(Lo.all)||(0,U.ok)(Lo.right),mobilePaddingBottom:(0,U.ok)(Lo.all)||(0,U.ok)(Lo.bottom),mobilePaddingTopBottom:(0,U.ok)(Lo.top)||(0,U.ok)(Lo.bottom),mobilePaddingLeftRight:(0,U.ok)(Lo.left)||(0,U.ok)(Lo.right),exportAsPicture:null===e||void 0===e?void 0:e.exportAsPicture,mobileFontSize:(0,U.ok)(null===(xe=e.mobileFontSize)||void 0===xe?void 0:xe.value)}),!(0,U.ok)(null===(fe=e.borderRadius)||void 0===fe?void 0:fe.all)&&((0,U.ok)(null===(ve=e.borderRadius)||void 0===ve?void 0:ve.topLeft)||(0,U.ok)(null===(Be=e.borderRadius)||void 0===Be?void 0:Be.bottomLeft)||(0,U.ok)(null===(Ae=e.borderRadius)||void 0===Ae?void 0:Ae.topRight)||(0,U.ok)(null===(je=e.borderRadius)||void 0===je?void 0:je.bottomRight))?le(!1):le(!0),(0,U.ok)(Eo.topLeft)||(0,U.ok)(Eo.bottomLeft)||(0,U.ok)(Eo.topRight)||(0,U.ok)(Eo.bottomRight)?me(!1):me(!0),he(""===(null===(ke=e.backgroundImage)||void 0===ke?void 0:ke[0].value)),(0,U.ok)(null===(Re=e.padding)||void 0===Re?void 0:Re.all)||!((0,U.ok)(null===(ye=e.padding)||void 0===ye?void 0:ye.top)||(0,U.ok)(null===(Ne=e.padding)||void 0===Ne?void 0:Ne.right)||(0,U.ok)(null===(Ee=e.padding)||void 0===Ee?void 0:Ee.bottom)||(0,U.ok)(null===(Ie=e.padding)||void 0===Ie?void 0:Ie.left))||(null===(Fe=e.padding)||void 0===Fe?void 0:Fe.top)===(null===(Ve=e.padding)||void 0===Ve?void 0:Ve.bottom)&&(null===(De=e.padding)||void 0===De?void 0:De.right)===(null===(We=e.padding)||void 0===We?void 0:We.left)?Se(!0):Se(!1),(0,U.ok)(Lo.all)||!((0,U.ok)(Lo.top)||(0,U.ok)(Lo.right)||(0,U.ok)(Lo.bottom)||(0,U.ok)(Lo.left))||Lo.top===Lo.bottom&&Lo.right===Lo.left?Pe(!0):Pe(!1),_e(!(null===(ze=yo[Oo])||void 0===ze||!ze.width)),we(!(null===(Ye=No[Vo])||void 0===Ye||!Ye.width)),Te(!(null===(qe=e.borderRadius)||void 0===qe||!qe.all)||!(null===(Ke=e.borderRadius)||void 0===Ke||!Ke.topLeft)||!(null===(Qe=e.borderRadius)||void 0===Qe||!Qe.bottomLeft)||!(null===(Ze=e.borderRadius)||void 0===Ze||!Ze.topRight)||!(null===(eo=e.borderRadius)||void 0===eo||!eo.bottomRight)),Le(!(null===(oo=e.mobileBorderRadius)||void 0===oo||!oo.all)||!(null===(io=e.mobileBorderRadius)||void 0===io||!io.topLeft)||!(null===(to=e.mobileBorderRadius)||void 0===to||!to.bottomLeft)||!(null===(lo=e.mobileBorderRadius)||void 0===lo||!lo.topRight)||!(null===(ro=e.mobileBorderRadius)||void 0===ro||!ro.bottomRight)),Ce(!!e.boxShadow),Oe(!(null===(ao=e.mobileBoxShadow)||void 0===ao||!ao.blurRadius)||!(null===(so=e.mobileBoxShadow)||void 0===so||!so.color)||!(null===(no=e.mobileBoxShadow)||void 0===no||!no.hOffset)||!(null===(mo=e.mobileBoxShadow)||void 0===mo||!mo.inset)||!(null===(bo=e.mobileBoxShadow)||void 0===bo||!bo.spreadRadius)||!(null===(go=e.mobileBoxShadow)||void 0===go||!go.vOffset)),Me(!(null===(uo=e.mobileWidth)||void 0===uo||!uo.value)||!(null===(co=e.mobileHeight)||void 0===co||!co.value)),He(!!e.backgroundColor||!(null===(ho=e.backgroundImage)||void 0===ho||!ho[0].value)||!!e.backgroundPositionY||!!e.backgroundPositionX||"repeat"!==e.backgroundRepeat||!e.backgroundRepeat),Xe(!(null===(po=e.mobileBackgroundColor)||void 0===po||!po.value)),Ge(!(null===(xo=e.mobileFontSize)||void 0===xo||!xo.value)||!!e.showOnMobile),Ue(!(null===(fo=e.padding)||void 0===fo||!fo.all)||!(null===(vo=e.padding)||void 0===vo||!vo.top)||!(null===(Bo=e.padding)||void 0===Bo||!Bo.bottom)||!(null===(Ao=e.padding)||void 0===Ao||!Ao.left)||!(null===(jo=e.padding)||void 0===jo||!jo.right)),Je(!(null===(So=e.mobilePadding)||void 0===So||!So.all)||!(null===(ko=e.mobilePadding)||void 0===ko||!ko.top)||!(null===(Po=e.mobilePadding)||void 0===Po||!Po.bottom)||!(null===(Ro=e.mobilePadding)||void 0===Ro||!Ro.left)||!(null===(_o=e.mobilePadding)||void 0===_o||!_o.right))}}),[f,e,fe]);const ro=e=>{f.setFieldValue("href",""),$e(e)};return(0,t.useEffect)((()=>{var o;to(!(null===(o=e.textReplacer)||void 0===o||!o.length))}),[e]),(0,K.jsxs)(r.A,{form:f,layout:"vertical",name:"selected_button_form",initialValues:{backgroundColor:"",backgroundImage:"",backgroundPositionX:"",backgroundPositionY:"",backgroundRepeat:"",exportAsPicture:!1,width:"",height:"",widthDim:"",heightDim:"",align:"",valign:"",border:"",boxShadow:"",show:"all",borderPosition:"",borderColor:"",borderWidth:"",borderStyle:"",paddingTop:"",paddingLeft:"",paddingRight:"",paddingBottom:"",borderRadiusAll:"",RadiusTopLeft:"",RadiusBottomLeft:"",RadiusTopRight:"",RadiusBottomRight:"",mobileWidth:"",mobileWidthDim:"",mobileHeight:"",mobileHeightDim:"",mobileBorder:"",mobileBorderPosition:"",mobileBorderColor:"",mobileBorderWidth:"",mobileBorderStyle:"",mobileBoxShadow:"",mobileAlign:"",mobileVerticalAlign:"",mobileBackgroundColor:"",mobileBackgroundImage:"",mobilePaddingTop:"",mobilePaddingLeft:"",mobilePaddingRight:"",mobilePaddingBottom:"",borderRadiusTopLeft:"",borderRadiusBottomLeft:"",borderRadiusTopRight:"",borderRadiusBottomRight:"",href:"https://"},onValuesChange:o=>{const i=f.getFieldsValue(!0),t=Object.keys(o)[0];let l;switch(Qe("%"===f.getFieldsValue(!0).widthDim?100:""),t){case"exportAsPicture":l={exportAsPicture:i.exportAsPicture};break;case"boxShadowInset":case"boxShadowHOffset":case"boxShadowVOffset":case"boxShadowBlurRadius":case"boxShadowSpreadRadius":case"boxShadowColor":l={boxShadow:{hOffset:i.boxShadowHOffset,vOffset:i.boxShadowVOffset,blurRadius:i.boxShadowBlurRadius,spreadRadius:i.boxShadowSpreadRadius,color:i.boxShadowColor,inset:i.boxShadowInset}};break;case"borderStyle":l={border:{[i.borderPosition]:{...Q[i.borderPosition],style:o[t]}}},"all"===i.borderPosition?ee((e=>({...Y.iV,[i.borderPosition]:{...e[i.borderPosition],style:o[t]}}))):ee((e=>({...e,[i.borderPosition]:{...e[i.borderPosition],style:o[t]}})));break;case"borderColor":l={border:{[i.borderPosition]:{...Q[i.borderPosition],color:o[t]}}},"all"===i.borderPosition?ee((e=>({...Y.iV,[i.borderPosition]:{...e[i.borderPosition],color:o[t]}}))):ee((e=>({...e,[i.borderPosition]:{...e[i.borderPosition],color:o[t]}})));break;case"borderWidth":l={border:{[i.borderPosition]:{...Q[i.borderPosition],width:o[t]}}},"all"===i.borderPosition?ee((e=>({...Y.iV,[i.borderPosition]:{...e[i.borderPosition],width:o[t]}}))):ee((e=>({...e,[i.borderPosition]:{...e[i.borderPosition],width:o[t]}})));break;case"borderPosition":f.setFieldsValue({borderWidth:Q[o[t]].width||"",borderColor:Q[o[t]].color||"",borderStyle:Q[o[t]].style||""});break;case"width":l={[t]:{value:o[t],dim:i.widthDim}};break;case"height":l={[t]:{value:o[t],dim:i.heightDim}};break;case"widthDim":l={width:{value:i.width,dim:o[t]}};break;case"heightDim":l={height:{value:i.height,dim:o[t]}};break;case"backgroundImage":he(""===o[t]),l={[t]:[{...e.backgroundImage[0],value:o[t]}]};break;case"paddingTop":case"paddingLeft":case"paddingRight":case"paddingBottom":l={padding:{[U.yy[t]]:+o[t]}};break;case"paddingTopBottom":l={padding:{top:+o[t],bottom:+o[t]}},i.paddingTop=i.paddingBottom=+o[t];break;case"paddingLeftRight":l={padding:{left:+o[t],right:+o[t]}},i.paddingLeft=i.paddingRight=+o[t];break;case"borderRadiusAll":case"borderRadiusTopLeft":case"borderRadiusBottomLeft":case"borderRadiusTopRight":case"borderRadiusBottomRight":l={borderRadius:{[Y.wF[t]]:+o[t]}};break;case"mobileWidth":l={[t]:{classNamePrefix:"em-mob-width-",value:o[t],dim:i.mobileWidthDim}};break;case"mobileWidthDim":l={mobileWidth:{classNamePrefix:"em-mob-width-",value:i.mobileWidth,dim:o[t]}};break;case"mobileHeight":l={[t]:{classNamePrefix:"em-mob-height-",value:o[t],dim:i.mobileHeightDim},mobileLineHeight:{classNamePrefix:"em-mob-line_height-",value:o[t],dim:i.mobileHeightDim}};break;case"mobileHeightDim":l={mobileHeight:{classNamePrefix:"em-mob-height-",value:i.mobileHeight,dim:o[t]}};break;case"mobileBorderStyle":l={mobileBorder:{[i.mobileBorderPosition]:{...de[i.mobileBorderPosition],style:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}}},"all"===i.mobileBorderPosition?re((e=>({...Y.iV,[i.mobileBorderPosition]:{...e[i.mobileBorderPosition],style:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}}))):re((e=>({...e,[i.mobileBorderPosition]:{...e[i.mobileBorderPosition],style:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}})));break;case"mobileBorderColor":l={mobileBorder:{[i.mobileBorderPosition]:{...de[i.mobileBorderPosition],color:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}}},"all"===i.mobileBorderPosition?re((e=>({...Y.iV,[i.mobileBorderPosition]:{...e[i.mobileBorderPosition],color:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}}))):re((e=>({...e,[i.mobileBorderPosition]:{...e[i.mobileBorderPosition],color:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}})));break;case"mobileBorderWidth":l={mobileBorder:{[i.mobileBorderPosition]:{...de[i.mobileBorderPosition],width:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}}},"all"===i.mobileBorderPosition?re((e=>({...Y.iV,[i.mobileBorderPosition]:{...e[i.mobileBorderPosition],width:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}}))):re((e=>({...e,[i.mobileBorderPosition]:{...e[i.mobileBorderPosition],width:o[t],classNamePrefix:"em-mob-border_"+i.mobileBorderPosition+"-"}})));break;case"mobileBorderPosition":f.setFieldsValue({mobileBorderWidth:de[o[t]].width||"",mobileBorderColor:de[o[t]].color||"",mobileBorderStyle:de[o[t]].style||""});break;case"mobileBorderRadiusAll":case"mobileRadiusTopLeft":case"mobileRadiusBottomLeft":case"mobileRadiusTopRight":case"mobileRadiusBottomRight":l={mobileBorderRadius:{[U.NW[t]]:o[t],classNamePrefix:"em-mob-border_radius_"+U.NW[t]+"-"}};break;case"mobileBoxShadowInset":case"mobileBoxShadowHOffset":case"mobileBoxShadowVOffset":case"mobileBoxShadowBlurRadius":case"mobileBoxShadowSpreadRadius":case"mobileBoxShadowColor":l={mobileBoxShadow:{hOffset:i.mobileBoxShadowHOffset,vOffset:i.mobileBoxShadowVOffset,blurRadius:i.mobileBoxShadowBlurRadius,spreadRadius:i.mobileBoxShadowSpreadRadius,color:i.mobileBoxShadowColor,inset:i.mobileBoxShadowInset,classNamePrefix:"em-mob-box_shadow-"}};break;case"mobileAlign":l={[t]:{classNamePrefix:"em-mob-table_align-",value:o[t]}};break;case"mobileTextAlign":l={[t]:{classNamePrefix:"em-mob-text_align-",value:o[t]}};break;case"mobileVerticalAlign":l={[t]:{classNamePrefix:"em-mob-vertical_align-",value:o[t]}};break;case"mobileBackgroundColor":l={[t]:{classNamePrefix:"em-mob-background_color-",value:o[t]}};break;case"mobileBackgroundPositionX":l={[t]:{classNamePrefix:"em-mob-background_position_x-",value:o[t]}};break;case"mobileBackgroundPositionY":l={[t]:{classNamePrefix:"em-mob-background_position_x-",value:o[t]}};break;case"mobileBackgroundRepeat":l={[t]:{classNamePrefix:"em-mob-background_repeat-",value:o[t]}};break;case"mobilePaddingTop":case"mobilePaddingLeft":case"mobilePaddingRight":case"mobilePaddingBottom":l={mobilePadding:{all:null,top:""!==i.mobilePaddingTop?i.mobilePaddingTop:null,right:""!==i.mobilePaddingRight?i.mobilePaddingRight:null,bottom:""!==i.mobilePaddingBottom?i.mobilePaddingBottom:null,left:""!==i.mobilePaddingLeft?i.mobilePaddingLeft:null,classNamePrefix:"em-mob-padding_"}};break;case"mobilePaddingTopBottom":i.mobilePaddingTop=i.mobilePaddingBottom=o[t],l={mobilePadding:{all:null,top:""!==i.mobilePaddingTop?i.mobilePaddingTop:null,right:""!==i.mobilePaddingRight?i.mobilePaddingRight:null,bottom:""!==i.mobilePaddingBottom?i.mobilePaddingBottom:null,left:""!==i.mobilePaddingLeft?i.mobilePaddingLeft:null,classNamePrefix:"em-mob-padding_"}};break;case"mobilePaddingLeftRight":i.mobilePaddingLeft=i.mobilePaddingRight=o[t],l={mobilePadding:{all:null,top:""!==i.mobilePaddingTop?i.mobilePaddingTop:null,right:""!==i.mobilePaddingRight?i.mobilePaddingRight:null,bottom:""!==i.mobilePaddingBottom?i.mobilePaddingBottom:null,left:""!==i.mobilePaddingLeft?i.mobilePaddingLeft:null,classNamePrefix:"em-mob-padding_"}};break;case"mobileFontSize":l={[t]:{classNamePrefix:"em-mob-font_size-",value:o[t],dim:i.mobileFontSizeDim}};break;case"href":let d=o[t];"https://http"===d.substring(0,12)&&(d=d.substring(8,d.length),i.href=d),l={[t]:d},"https://"===o[t].substring(0,8)||"http://"===o[t].substring(0,7)?$e("https://"):"mailto:"===o[t].substring(0,7)?$e("mailto:"):"tel:"===o[t].substring(0,4)?$e("tel:"):"sms:"===o[t].substring(0,4)?$e("sms:"):"ftp://"===o[t].substring(0,6)?$e("ftp://"):"skype:"===o[t].substring(0,6)?$e("skype:"):"viber:"===o[t].substring(0,6)?$e("viber:"):$e("");break;default:l=o}"borderPosition"!==t&&d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:l})},autoComplete:"off",className:"element-controls",children:[!fe&&(0,K.jsx)(a.A,{title:i("To change the appearance of the element on the mobile device, edit the fields below. If the fields remain empty, the desktop styles will be applied to the mobile version."),placement:"bottom",children:(0,K.jsx)(s.A,{className:"selected_form-mobile-props-title",message:i("Appearance on mobile devices"),type:"info"})}),fe?(0,K.jsx)(D.A,{form:f,elementSettings:e,showAddParagraph:!1,isButton:!0}):(0,K.jsx)(K.Fragment,{children:be===Y.ND&&ge.styles?(0,K.jsx)("div",{id:"selected_element_form_mobile_props",className:"selected_form-mobile-props",children:(0,K.jsxs)("div",{className:"selected_form-mobile-props-wrapper",children:[(0,K.jsxs)(n.A,{gutter:20,style:{paddingBottom:4},children:[(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(C.A,{form:f,elementSettings:e,imgParent:!0})}),ue.formButtonFieldTextAlignEnabled&&(0,K.jsx)(m.A,{span:12,style:{textAlign:"right"},children:(0,K.jsx)(F.A,{form:f,name:"mobileTextAlign",elementSettings:e,imgParent:!0})})]}),!!e.showOnMobile&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider",style:{marginBottom:24}}),(0,K.jsx)(a.A,{trigger:["hover"],title:i("Hyperlink URL"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"href",style:{marginBottom:ve.formItemMarginBottomMD+4},children:(0,K.jsx)(g.A,{addonBefore:(0,K.jsx)(U.Ai,{linkProtocol:Ze,handleLinkProtocolsChange:ro,__:i}),placeholder:i("Hyperlink URL"),allowClear:!0,prefix:(0,K.jsx)(U.RM,{linkProtocol:Ze})})})})]}),(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Text")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Ge((e=>!e)),ze&&(o.mobileFontSize="",d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileFontSize:{value:null,dim:"px",classNamePrefix:"em-mob-font_size-"}}}))}))},children:ze?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),ze&&(0,K.jsxs)(K.Fragment,{children:[!!e.showOnMobile&&(0,K.jsx)(M.A,{form:f,elementSettings:e,setLinkProtocol:$e,showAddParagraph:!1,isButton:!0}),(0,K.jsx)(n.A,{gutter:10,style:{marginBottom:4},children:(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(G.A,{})})})]}),(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),ue.formButtonFieldPaddingsEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Padding")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Je((e=>!e)),qe&&(o.mobilePaddingLeftRight="",o.mobilePaddingLeft="",o.mobilePaddingRight="",o.mobilePaddingTopBottom="",o.mobilePaddingTop="",o.mobilePaddingBottom="",d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobilePadding:{all:null,top:null,right:null,bottom:null,left:null,classNamePrefix:"em-mob-padding_"}}}))}))},children:qe?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),qe&&(0,K.jsx)(n.A,{gutter:10,style:{paddingBottom:8},children:(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(V.A,{form:f,elementSettings:e,mobilePaddingsExt:ke,setMobilePaddingsExt:Pe})})}),(0,K.jsx)(b.A,{className:"selected-td-form__divider"})]}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Size")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Me((e=>!e)),Ve&&(o.mobileWidth="",o.mobileHeight="",d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileWidth:{value:null,dim:"px",classNamePrefix:"em-mob-width-"},mobileHeight:{value:null,dim:"px",classNamePrefix:"em-mob-height-"}}}))}))},children:Ve?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),Ve&&(0,K.jsxs)(n.A,{gutter:10,style:{paddingBottom:8},children:[(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)("div",{style:{marginBottom:2*ve.formItemMarginBottomXS},children:(0,K.jsx)(a.A,{title:i("Width"),placement:"bottom",children:(0,K.jsx)(N.A,{form:f,name:"mobileWidth",elementSettings:e})})})}),(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)("div",{style:{marginBottom:2*ve.formItemMarginBottomXS},children:(0,K.jsx)(a.A,{title:i("Height"),placement:"bottom",children:(0,K.jsx)(T.A,{form:f,name:"mobileHeight",elementSettings:e})})})})]}),(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Background")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Xe((e=>!e)),o.mobileBackgroundColor=We?"":e.commonStyles.buttons.backgroundColor||"#1C52DC",d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBackgroundColor:{classNamePrefix:"em-mob-background_color-",value:o.mobileBackgroundColor}}})}))},children:We?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),We&&(0,K.jsx)(K.Fragment,{children:(0,K.jsx)("div",{style:{marginBottom:(ue.formButtonFieldBackgroundImageEnabled,ve.formItemMarginBottomMD+4)},children:(0,K.jsx)(O.A,{form:f,elementSettings:e,label:i("Background color")})})}),ue.formFieldBorderEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Borders")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{we((e=>!e)),ye&&(o.mobileBorderWidth=null,o.mobileBorderColor="",o.mobileBorderStyle=""),re((e=>({...Y.iV,[o.mobileBorderPosition]:{...e[o.mobileBorderPosition],width:o.mobileBorderWidth,color:o.mobileBorderColor,style:o.mobileBorderStyle}}))),d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBorder:{all:{color:o.mobileBorderColor,style:o.mobileBorderStyle,width:o.mobileBorderWidth,classNamePrefix:"em-mob-border_"+o.mobileBorderPosition+"-"}}}})}))},children:ye?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),ye&&(0,K.jsx)("div",{style:{marginBottom:4},children:(0,K.jsx)(E.A,{mobileBorders:de})})]}),ue.formFieldBorderRadiusEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Border radius")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Le((e=>!e)),o.mobileBorderRadiusAll=Ee?null:5,d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBorderRadius:{all:o.mobileBorderRadiusAll,classNamePrefix:"em-mob-border_radius_all-"}}})}))},children:Ee?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),Ee&&(0,K.jsx)("div",{style:{marginBottom:4},children:(0,K.jsx)(L.A,{form:f,oneMobileBorderRadiusValue:ne,setOneMobileBorderRadiusValue:me})})]}),ue.formFieldBoxShadowEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Box shadow")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Oe((e=>!e)),Fe?(o.mobileBoxShadowInset=!1,o.mobileBoxShadowHOffset=null,o.mobileBoxShadowVOffset=null,o.mobileBoxShadowBlurRadius=null,o.mobileBoxShadowSpreadRadius=null,o.mobileBoxShadowColor=""):(o.mobileBoxShadowInset=!1,o.mobileBoxShadowHOffset=5,o.mobileBoxShadowVOffset=5,o.mobileBoxShadowBlurRadius=10,o.mobileBoxShadowSpreadRadius=-5,o.mobileBoxShadowColor="#000000"),d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBoxShadow:{blurRadius:o.mobileBoxShadowBlurRadius,color:o.mobileBoxShadowColor,hOffset:o.mobileBoxShadowHOffset,inset:o.mobileBoxShadowInset,spreadRadius:o.mobileBoxShadowSpreadRadius,vOffset:o.mobileBoxShadowVOffset,classNamePrefix:"em-mob-box_shadow-"}}})}))},children:Fe?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),Fe&&(0,K.jsx)("div",{style:{marginBottom:4},children:(0,K.jsx)(I.A,{mobileBoxShadow:ae,form:f,elementSettings:e})})]}),ue.formFieldAmpVisibilityEnabled&&e.ampShow&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsx)("div",{className:"form-group-title",children:i("AMP visibility")}),(0,K.jsx)(n.A,{gutter:20,style:{marginBottom:4},children:(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(W.A,{})})})]}),ue.formFieldAmpVisibilityEnabled&&e.isAmp&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsx)("div",{className:"form-group-title",children:i("AMP visibility")}),(0,K.jsx)(n.A,{gutter:20,style:{marginBottom:4},children:(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(W.A,{})})})]})]})}):(0,K.jsxs)("div",{id:"selected_element_form_desktop_props",children:[(0,K.jsx)(s.A,{className:"selected_form-desktop-props-title",message:i("Appearance on mobile devices"),type:"info"}),(0,K.jsxs)("div",{className:"selected_form-props-wrapper",children:[(0,K.jsxs)(n.A,{gutter:20,style:{paddingBottom:4},children:[(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(_.A,{form:f,elementSettings:e})}),ue.formButtonFieldTextAlignEnabled&&(0,K.jsx)(m.A,{span:12,style:{textAlign:"right"},children:(0,K.jsx)(y.A,{form:f,name:"textAlign",elementSettings:e})})]}),(0,K.jsx)(b.A,{className:"selected-td-form__divider",style:{marginBottom:24}}),(0,K.jsx)(a.A,{trigger:["hover"],title:i("Hyperlink URL"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"href",style:{marginBottom:ve.formItemMarginBottomXS},children:(0,K.jsx)(g.A,{addonBefore:(0,K.jsx)(U.Ai,{linkProtocol:Ze,handleLinkProtocolsChange:ro,__:i}),placeholder:i("Hyperlink URL"),allowClear:!0,onSelect:({target:e})=>e&&oo(e),prefix:(0,K.jsx)(U.RM,{linkProtocol:Ze})})})}),(0,K.jsxs)(n.A,{gutter:10,children:[(0,K.jsx)(m.A,{span:3,children:(0,K.jsx)(a.A,{title:i("Text replacer"),placement:"bottom",getPopupContainer:e=>e.closest(".email-pane__collapse-wrapper"),children:(0,K.jsx)(u.Ay,{className:v()("selected-td-form__button ant-form-item",{"selected-td-form__button--active":io}),icon:(0,K.jsx)(X.A,{icon:"Replacer",className:"selected-td-form__icon-radius"}),onClick:()=>{to(!io),io?(f.setFieldValue("textReplacer",""),d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{textReplacer:""}})):setTimeout((()=>Be.current.focus()))},ref:Ae})})}),(0,K.jsx)(m.A,{span:21,children:io&&(0,K.jsx)(a.A,{trigger:["hover"],title:i("Text"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"textReplacer",children:(0,K.jsx)(g.A,{placeholder:i("The code that will replace this text"),allowClear:!0,prefix:(0,K.jsx)("span",{className:"addon-text-content",children:"Text"}),onChange:e=>{""!==e.target.value&&Ae.current.classList.add("selected-td-form__button--active")},ref:Be})})})})]}),(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),ue.formButtonFieldPaddingsEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Padding")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Ue((e=>!e)),Ye&&(o.paddingLeftRight="",o.paddingLeft="",o.paddingRight="",o.paddingTopBottom="",o.paddingTop="",o.paddingBottom="",d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{padding:{all:0}}}))}))},children:Ye?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),Ye&&(0,K.jsx)(n.A,{gutter:ve.marginSM,style:{marginBottom:4},children:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(m.A,{span:10,style:{width:156,flex:"auto",maxWidth:"none"},children:[(0,K.jsx)("div",{className:"padding-collapsed",style:{display:je?"block":"none"},children:(0,K.jsx)(a.A,{title:i("Horizontal padding"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"paddingLeftRight",children:(0,K.jsx)(z.A,{min:0,placeholder:i("Horizontal"),prefix:(0,K.jsx)(X.A,{icon:"PaddingLeftRight"}),addonAfter:"px"})})})}),(0,K.jsxs)("div",{className:"padding-extended",style:{display:je?"none":"block"},children:[(0,K.jsx)(a.A,{trigger:["hover"],title:i("Left padding"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"paddingLeft",style:{marginBottom:ve.formItemMarginBottomXS},children:(0,K.jsx)(z.A,{min:0,placeholder:i("Left"),prefix:(0,K.jsx)(X.A,{icon:"PaddingLeft"}),addonAfter:"px"})})}),(0,K.jsx)(a.A,{trigger:["hover"],title:i("Right padding"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"paddingRight",children:(0,K.jsx)(z.A,{min:0,placeholder:i("Right"),prefix:(0,K.jsx)(X.A,{icon:"PaddingRight"}),addonAfter:"px"})})})]})]}),(0,K.jsxs)(m.A,{span:10,style:{width:156,flex:"auto",maxWidth:"none"},children:[(0,K.jsx)("div",{className:"padding-collapsed",style:{display:je?"block":"none"},children:(0,K.jsx)(a.A,{title:i("Vertical padding"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"paddingTopBottom",children:(0,K.jsx)(z.A,{min:0,placeholder:i("Vertical"),prefix:(0,K.jsx)(X.A,{icon:"PaddingTopBottom"}),addonAfter:"px"})})})}),(0,K.jsxs)("div",{className:"padding-extended",style:{display:je?"none":"block"},children:[(0,K.jsx)(a.A,{trigger:["hover"],title:i("Top padding"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"paddingTop",style:{marginBottom:ve.formItemMarginBottomXS},children:(0,K.jsx)(z.A,{min:0,placeholder:i("Top"),prefix:(0,K.jsx)(X.A,{icon:"PaddingTop"}),addonAfter:"px"})})}),(0,K.jsx)(a.A,{trigger:["hover"],title:i("Bottom padding"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"paddingBottom",children:(0,K.jsx)(z.A,{min:0,placeholder:i("Bottom"),prefix:(0,K.jsx)(X.A,{icon:"PaddingBottom"}),addonAfter:"px"})})})]})]}),(0,K.jsx)(m.A,{span:4,style:{width:45,flex:"auto",maxWidth:"none"},children:(0,K.jsx)(a.A,{title:i("Individual padding"),placement:"bottom",children:(0,K.jsx)(u.Ay,{className:v()("selected-td-form__button",{"selected-td-form__button--active":!je}),onClick:()=>{Se((e=>!e));const o=f.getFieldsValue(!0);je||(o.paddingLeftRight=o.paddingLeft,o.paddingTopBottom=o.paddingTop,o.paddingRight=o.paddingLeft,o.paddingBottom=o.paddingTop,d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{padding:{top:o.paddingTopBottom,bottom:o.paddingTopBottom,left:o.paddingLeftRight,right:o.paddingLeftRight}}}))},children:(0,K.jsx)(X.A,{icon:"PaddingSwitcher"})})})})]})}),(0,K.jsx)(b.A,{className:"selected-td-form__divider"})]}),(0,K.jsx)("div",{className:"form-group-title",children:i("Size")}),(0,K.jsxs)(n.A,{gutter:ve.marginSM,style:{marginBottom:4},children:[(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(a.A,{title:i("Width"),placement:"left",children:(0,K.jsx)(r.A.Item,{name:"width",style:{marginBottom:ve.formItemMarginBottomXS},children:(0,K.jsx)(z.A,{min:0,max:Ke,placeholder:i("Width"),prefix:(0,K.jsx)(p.A,{}),addonAfter:(0,K.jsx)(r.A.Item,{name:"widthDim",noStyle:!0,children:Z})})})})}),(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(a.A,{title:i("Height"),placement:"left",children:(0,K.jsx)(r.A.Item,{name:"height",children:(0,K.jsx)(z.A,{min:0,placeholder:i("Height"),prefix:(0,K.jsx)(x.A,{}),addonAfter:"px"})})})})]}),(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsx)("div",{style:{paddingTop:ve.formItemMarginBottomMD+4,paddingBottom:4},children:(0,K.jsx)(M.A,{form:f,elementSettings:e,showAddParagraph:!1,isButton:!0,setLinkProtocol:$e,linkTarget:eo})}),(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Background")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{He((e=>!e)),De?(o.backgroundColor="",o.backgroundImage="",o.backgroundPositionX="",o.backgroundPositionY="",o.backgroundRepeat="none",he(!0)):o.backgroundColor="#E5E5E5",d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{backgroundColor:o.backgroundColor,backgroundImage:[{type:"url",value:o.backgroundImage}],backgroundPositionX:o.backgroundPositionX,backgroundPositionY:o.backgroundPositionY,backgroundRepeat:o.backgroundRepeat}})}))},children:De?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),De&&(0,K.jsxs)(n.A,{gutter:10,style:{marginBottom:ce?14:0},children:[(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(a.A,{trigger:["hover"],title:i("Background color"),placement:"bottom",zIndex:1,getPopupContainer:e=>e.parentNode,children:(0,K.jsx)(r.A.Item,{name:"backgroundColor",style:{marginBottom:ue.formButtonFieldBackgroundImageEnabled?ve.formItemMarginBottomXS:ve.formItemMarginBottomMD+4},children:(0,K.jsx)(S.A,{placeholder:i("Background color"),usedColors:e.usedColors})})})}),ue.formButtonFieldBackgroundImageEnabled&&(0,K.jsxs)(m.A,{span:ce?12:24,children:[(0,K.jsx)("div",{style:{paddingBottom:ce?4:0},children:(0,K.jsx)(R.A,{form:f,label:i("Background image"),name:"backgroundImage",tooltipTitle:i("Background image")})}),!ce&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(n.A,{gutter:10,children:[(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(a.A,{trigger:["hover"],title:i("Horizontal position"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"backgroundPositionX",style:{marginBottom:ve.formItemMarginBottomXS},children:(0,K.jsx)(z.A,{placeholder:i("Horizontal position"),prefix:(0,K.jsx)(X.A,{icon:"BgPositionHorizontal"})})})})}),(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(a.A,{trigger:["hover"],title:i("Vertical position"),placement:"bottom",children:(0,K.jsx)(r.A.Item,{name:"backgroundPositionY",style:{marginBottom:ve.formItemMarginBottomXS},children:(0,K.jsx)(z.A,{placeholder:i("Vertical position"),prefix:(0,K.jsx)(X.A,{icon:"BgPositionVertical"})})})})})]}),(0,K.jsx)(a.A,{trigger:["hover"],title:i("Background image repeat"),placement:"left",children:(0,K.jsx)(r.A.Item,{name:"backgroundRepeat",style:{marginBottom:ve.formItemMarginBottomMD+4},children:(0,K.jsx)(l.A,{placeholder:i("Please select"),options:lo,getPopupContainer:e=>e.parentNode})})})]})]})]}),ue.formFieldBorderEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Borders")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{_e((e=>!e)),Re&&(o.borderWidth=null,o.borderColor="",o.borderStyle=""),ee((e=>({...Y.iV,[o.borderPosition]:{...e[o.borderPosition],width:o.borderWidth,color:o.borderColor,style:o.borderStyle}}))),d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{border:{all:{color:o.borderColor,style:o.borderStyle,width:o.borderWidth}}}})}))},children:Re?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),Re&&(0,K.jsx)("div",{style:{marginBottom:4},children:(0,K.jsx)(k.A,{borders:Q})})]}),ue.formFieldBorderRadiusEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Border radius")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Te((e=>!e)),o.borderRadiusAll=Ne?0:5,d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{borderRadius:{all:o.borderRadiusAll}}})}))},children:Ne?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),Ne&&(0,K.jsx)("div",{style:{marginBottom:4},children:(0,K.jsx)(P.A,{form:f,oneBorderRadiusValue:te,setOneBorderRadiusValue:le,elementSettings:e})})]}),ue.formFieldBoxShadowEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsxs)(n.A,{gutter:10,align:"middle",children:[(0,K.jsx)(m.A,{span:20,children:(0,K.jsx)("div",{className:"form-group-title",children:i("Box shadow")})}),(0,K.jsx)(m.A,{span:4,align:"right",children:(0,K.jsx)(u.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{const o=f.getFieldsValue(!0);setTimeout((()=>{Ce((e=>!e)),Ie?(o.boxShadowInset=!1,o.boxShadowHOffset=0,o.boxShadowVOffset=0,o.boxShadowBlurRadius=0,o.boxShadowSpreadRadius=0,o.boxShadowColor=""):(o.boxShadowInset=!1,o.boxShadowHOffset=5,o.boxShadowVOffset=5,o.boxShadowBlurRadius=10,o.boxShadowSpreadRadius=-5,o.boxShadowColor="#000000"),d({operation:Y.Ru.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{boxShadow:{blurRadius:o.boxShadowBlurRadius,color:o.boxShadowColor,hOffset:o.boxShadowHOffset,inset:o.boxShadowInset,spreadRadius:o.boxShadowSpreadRadius,vOffset:o.boxShadowVOffset}}})}))},children:Ie?(0,K.jsx)(h.A,{}):(0,K.jsx)(c.A,{})})})]}),Ie&&(0,K.jsx)("div",{style:{marginBottom:4},children:(0,K.jsx)(w.A,{boxShadow:oe})})]}),ue.formFieldVisibilityEnabled&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsx)("div",{className:"form-group-title",children:i("Display control")}),(0,K.jsx)(n.A,{gutter:20,style:{marginBottom:4},children:(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(H.A,{elementSettings:e,form:f})})})]}),ue.formFieldAmpVisibilityEnabled&&e.ampShow&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b.A,{className:"selected-td-form__divider"}),(0,K.jsx)("div",{className:"form-group-title",children:i("AMP visibility")}),(0,K.jsx)(n.A,{gutter:20,style:{marginBottom:4},children:(0,K.jsx)(m.A,{span:12,children:(0,K.jsx)(W.A,{})})})]})]})]})})]})}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 9935.52cd750c.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9935],{49935:(e,t,i)=>{i.r(t),i.d(t,{conf:()=>o,language:()=>n});var o={comments:{lineComment:"COMMENT"},brackets:[["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:":",close:"."}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"},{open:":",close:"."}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),end:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}},n={tokenPostfix:".lexon",ignoreCase:!0,keywords:["lexon","lex","clause","terms","contracts","may","pay","pays","appoints","into","to"],typeKeywords:["amount","person","key","time","date","asset","text"],operators:["less","greater","equal","le","gt","or","and","add","added","subtract","subtracted","multiply","multiplied","times","divide","divided","is","be","certified"],symbols:/[=><!~?:&|+\-*\/\^%]+/,tokenizer:{root:[[/^(\s*)(comment:?(?:\s.*|))$/,["","comment"]],[/"/,{token:"identifier.quote",bracket:"@open",next:"@quoted_identifier"}],["LEX$",{token:"keyword",bracket:"@open",next:"@identifier_until_period"}],["LEXON",{token:"keyword",bracket:"@open",next:"@semver"}],[":",{token:"delimiter",bracket:"@open",next:"@identifier_until_period"}],[/[a-z_$][\w$]*/,{cases:{"@operators":"operator","@typeKeywords":"keyword.type","@keywords":"keyword","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d*\.\d*/,"number.semver"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"]],quoted_identifier:[[/[^\\"]+/,"identifier"],[/"/,{token:"identifier.quote",bracket:"@close",next:"@pop"}]],space_identifier_until_period:[[":","delimiter"],[" ",{token:"white",next:"@identifier_rest"}]],identifier_until_period:[{include:"@whitespace"},[":",{token:"delimiter",next:"@identifier_rest"}],[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],identifier_rest:[[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],semver:[{include:"@whitespace"},[":","delimiter"],[/\d*\.\d*\.\d*/,{token:"number.semver",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"]]}}}}]);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.34.0(dee69564fa27426c7ebb706c3d2ed3d1acccedfe)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[4695],{98941:(e,a,l)=>{l.r(a),l.d(a,{default:()=>i});const t={locale:"ar_EG",today:"\u0627\u0644\u064a\u0648\u0645",now:"\u0627\u0644\u0623\u0646",backToToday:"\u0627\u0644\u0639\u0648\u062f\u0629 \u0625\u0644\u0649 \u0627\u0644\u064a\u0648\u0645",ok:"\u062a\u0623\u0643\u064a\u062f",clear:"\u0645\u0633\u062d",month:"\u0627\u0644\u0634\u0647\u0631",year:"\u0627\u0644\u0633\u0646\u0629",timeSelect:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0648\u0642\u062a",dateSelect:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u062a\u0627\u0631\u064a\u062e",monthSelect:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0634\u0647\u0631",yearSelect:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0633\u0646\u0629",decadeSelect:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0639\u0642\u062f",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u0627\u0644\u0634\u0647\u0631 \u0627\u0644\u0633\u0627\u0628\u0642 (PageUp)",nextMonth:"\u0627\u0644\u0634\u0647\u0631 \u0627\u0644\u062a\u0627\u0644\u0649(PageDown)",previousYear:"\u0627\u0644\u0639\u0627\u0645 \u0627\u0644\u0633\u0627\u0628\u0642 (Control + left)",nextYear:"\u0627\u0644\u0639\u0627\u0645 \u0627\u0644\u062a\u0627\u0644\u0649 (Control + right)",previousDecade:"\u0627\u0644\u0639\u0642\u062f \u0627\u0644\u0633\u0627\u0628\u0642",nextDecade:"\u0627\u0644\u0639\u0642\u062f \u0627\u0644\u062a\u0627\u0644\u0649",previousCentury:"\u0627\u0644\u0642\u0631\u0646 \u0627\u0644\u0633\u0627\u0628\u0642",nextCentury:"\u0627\u0644\u0642\u0631\u0646 \u0627\u0644\u062a\u0627\u0644\u0649"},r={placeholder:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0648\u0642\u062a"},n={lang:Object.assign({placeholder:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u062a\u0627\u0631\u064a\u062e",rangePlaceholder:["\u0627\u0644\u0628\u062f\u0627\u064a\u0629","\u0627\u0644\u0646\u0647\u0627\u064a\u0629"]},t),timePickerLocale:Object.assign({},r),dateFormat:"DD-MM-YYYY",monthFormat:"MM-YYYY",dateTimeFormat:"DD-MM-YYYY HH:mm:ss",weekFormat:"wo-YYYY"},o="\u0644\u064a\u0633 ${label} \u0645\u0646 \u0646\u0648\u0639 ${type} \u0635\u0627\u0644\u062d\u064b\u0627",i={locale:"ar",Pagination:{items_per_page:"/ \u0627\u0644\u0635\u0641\u062d\u0629",jump_to:"\u0627\u0644\u0630\u0647\u0627\u0628 \u0625\u0644\u0649",jump_to_confirm:"\u062a\u0623\u0643\u064a\u062f",page:"\u0627\u0644\u0635\u0641\u062d\u0629",prev_page:"\u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629",next_page:"\u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629",prev_5:"\u062e\u0645\u0633 \u0635\u0641\u062d\u0627\u062a \u0633\u0627\u0628\u0642\u0629",next_5:"\u062e\u0645\u0633 \u0635\u0641\u062d\u0627\u062a \u062a\u0627\u0644\u064a\u0629",prev_3:"\u062b\u0644\u0627\u062b \u0635\u0641\u062d\u0627\u062a \u0633\u0627\u0628\u0642\u0629",next_3:"\u062b\u0644\u0627\u062b \u0635\u0641\u062d\u0627\u062a \u062a\u0627\u0644\u064a\u0629",page_size:"\u0645\u0642\u0627\u0633 \u0627\u0644\u0635\u0641\u062d\u0647"},DatePicker:n,TimePicker:r,Calendar:n,global:{placeholder:"\u064a\u0631\u062c\u0649 \u0627\u0644\u062a\u062d\u062f\u064a\u062f"},Table:{filterTitle:"\u0627\u0644\u0641\u0644\u0627\u062a\u0631",filterConfirm:"\u062a\u0623\u0643\u064a\u062f",filterReset:"\u0625\u0639\u0627\u062f\u0629 \u0636\u0628\u0637",selectAll:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0643\u0644",selectInvert:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0627\u062e\u062a\u064a\u0627\u0631",selectionAll:"\u062d\u062f\u062f \u062c\u0645\u064a\u0639 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a",sortTitle:"\u0631\u062a\u0628",expand:"\u062a\u0648\u0633\u064a\u0639 \u0627\u0644\u0635\u0641",collapse:"\u0637\u064a \u0627\u0644\u0635\u0641",triggerDesc:"\u062a\u0631\u062a\u064a\u0628 \u062a\u0646\u0627\u0632\u0644\u064a",triggerAsc:"\u062a\u0631\u062a\u064a\u0628 \u062a\u0635\u0627\u0639\u062f\u064a",cancelSort:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062a\u0631\u062a\u064a\u0628"},Modal:{okText:"\u062a\u0623\u0643\u064a\u062f",cancelText:"\u0625\u0644\u063a\u0627\u0621",justOkText:"\u062a\u0623\u0643\u064a\u062f"},Popconfirm:{okText:"\u062a\u0623\u0643\u064a\u062f",cancelText:"\u0625\u0644\u063a\u0627\u0621"},Transfer:{titles:["",""],searchPlaceholder:"\u0627\u0628\u062d\u062b \u0647\u0646\u0627",itemUnit:"\u0639\u0646\u0635\u0631",itemsUnit:"\u0639\u0646\u0627\u0635\u0631"},Upload:{uploading:"\u062c\u0627\u0631\u064a \u0627\u0644\u0631\u0641\u0639...",removeFile:"\u0627\u062d\u0630\u0641 \u0627\u0644\u0645\u0644\u0641",uploadError:"\u0645\u0634\u0643\u0644\u0629 \u0641\u0649 \u0627\u0644\u0631\u0641\u0639",previewFile:"\u0627\u0633\u062a\u0639\u0631\u0636 \u0627\u0644\u0645\u0644\u0641",downloadFile:"\u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0645\u0644\u0641"},Empty:{description:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0628\u064a\u0627\u0646\u0627\u062a"},Icon:{icon:"\u0623\u064a\u0642\u0648\u0646\u0629"},Text:{edit:"\u062a\u0639\u062f\u064a\u0644",copy:"\u0646\u0633\u062e",copied:"\u0646\u0642\u0644",expand:"\u0648\u0633\u0639"},PageHeader:{back:"\u0639\u0648\u062f\u0629"},Form:{defaultValidateMessages:{default:"\u062e\u0637\u0623 \u0641\u064a \u062d\u0642\u0644 \u0627\u0644\u0625\u062f\u062e\u0627\u0644 ${label}",required:"\u064a\u0631\u062c\u0649 \u0625\u062f\u062e\u0627\u0644 ${label}",enum:"${label} \u064a\u062c\u0628 \u0623\u0646 \u064a\u0643\u0648\u0646 \u0648\u0627\u062d\u062f\u0627 \u0645\u0646 [${enum}]",whitespace:"${label} \u0644\u0627 \u064a\u0645\u0643\u0646 \u0623\u0646 \u064a\u0643\u0648\u0646 \u062d\u0631\u0641\u064b\u0627 \u0641\u0627\u0631\u063a\u064b\u0627",date:{format:"${label} \u062a\u0646\u0633\u064a\u0642 \u0627\u0644\u062a\u0627\u0631\u064a\u062e \u063a\u064a\u0631 \u0635\u062d\u064a\u062d",parse:"${label} \u0644\u0627 \u064a\u0645\u0643\u0646 \u062a\u062d\u0648\u064a\u0644\u0647\u0627 \u0625\u0644\u0649 \u062a\u0627\u0631\u064a\u062e",invalid:"\u062a\u0627\u0631\u064a\u062e ${label} \u063a\u064a\u0631 \u0635\u062d\u064a\u062d"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"\u064a\u062c\u0628 ${label} \u0627\u0646 \u064a\u0643\u0648\u0646 ${len} \u0623\u062d\u0631\u0641",min:"${label} \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644 ${min} \u0623\u062d\u0631\u0641",max:"${label} \u064a\u0635\u0644 \u0625\u0644\u0649 ${max} \u0623\u062d\u0631\u0641",range:"\u064a\u062c\u0628 ${label} \u0627\u0646 \u064a\u0643\u0648\u0646 \u0645\u0627\u0628\u064a\u0646 ${min}-${max} \u0623\u062d\u0631\u0641"},number:{len:"${len} \u0627\u0646 \u064a\u0633\u0627\u0648\u064a ${label} \u064a\u062c\u0628",min:"${min} \u0627\u0644\u0623\u062f\u0646\u0649 \u0647\u0648 ${label} \u062d\u062f",max:"${max} \u0627\u0644\u0623\u0642\u0635\u0649 \u0647\u0648 ${label} \u062d\u062f",range:"${max}-${min} \u0627\u0646 \u064a\u0643\u0648\u0646 \u0645\u0627\u0628\u064a\u0646 ${label} \u064a\u062c\u0628"},array:{len:"\u064a\u062c\u0628 \u0623\u0646 \u064a\u0643\u0648\u0646 ${label} \u0637\u0648\u0644\u0647 ${len}",min:"\u064a\u062c\u0628 \u0623\u0646 \u064a\u0643\u0648\u0646 ${label} \u0637\u0648\u0644\u0647 \u0627\u0644\u0623\u062f\u0646\u0649 ${min}",max:"\u064a\u062c\u0628 \u0623\u0646 \u064a\u0643\u0648\u0646 ${label} \u0637\u0648\u0644\u0647 \u0627\u0644\u0623\u0642\u0635\u0649 ${max}",range:"\u064a\u062c\u0628 \u0623\u0646 \u064a\u0643\u0648\u0646 ${label} \u0637\u0648\u0644\u0647 \u0645\u0627\u0628\u064a\u0646 ${min}-${max}"},pattern:{mismatch:"\u0644\u0627 \u064a\u062a\u0637\u0627\u0628\u0642 ${label} \u0645\u0639 ${pattern}"}}}}}}]);
|