(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7822],{89768:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M15.312 11.424a5.5 5.5 0 01-9.201 2.466l-.312-.311h2.433a.75.75 0 000-1.5H3.989a.75.75 0 00-.75.75v4.242a.75.75 0 001.5 0v-2.43l.31.31a7 7 0 0011.712-3.138.75.75 0 00-1.449-.39zm1.23-3.723a.75.75 0 00.219-.53V2.929a.75.75 0 00-1.5 0V5.36l-.31-.31A7 7 0 003.239 8.188a.75.75 0 101.448.389A5.5 5.5 0 0113.89 6.11l.311.31h-2.432a.75.75 0 000 1.5h4.243a.75.75 0 00.53-.219z",clipRule:"evenodd"}))});e.exports=o},36311:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M3.28 2.22a.75.75 0 00-1.06 1.06L5.44 6.5H2.75a.75.75 0 000 1.5h4.5A.75.75 0 008 7.25v-4.5a.75.75 0 00-1.5 0v2.69L3.28 2.22zM13.5 2.75a.75.75 0 00-1.5 0v4.5c0 .414.336.75.75.75h4.5a.75.75 0 000-1.5h-2.69l3.22-3.22a.75.75 0 00-1.06-1.06L13.5 5.44V2.75zM3.28 17.78l3.22-3.22v2.69a.75.75 0 001.5 0v-4.5a.75.75 0 00-.75-.75h-4.5a.75.75 0 000 1.5h2.69l-3.22 3.22a.75.75 0 101.06 1.06zM13.5 14.56l3.22 3.22a.75.75 0 101.06-1.06l-3.22-3.22h2.69a.75.75 0 000-1.5h-4.5a.75.75 0 00-.75.75v4.5a.75.75 0 001.5 0v-2.69z"}))});e.exports=o},68701:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M13.28 7.78l3.22-3.22v2.69a.75.75 0 001.5 0v-4.5a.75.75 0 00-.75-.75h-4.5a.75.75 0 000 1.5h2.69l-3.22 3.22a.75.75 0 001.06 1.06zM2 17.25v-4.5a.75.75 0 011.5 0v2.69l3.22-3.22a.75.75 0 011.06 1.06L4.56 16.5h2.69a.75.75 0 010 1.5h-4.5a.747.747 0 01-.75-.75zM12.22 13.28l3.22 3.22h-2.69a.75.75 0 000 1.5h4.5a.747.747 0 00.75-.75v-4.5a.75.75 0 00-1.5 0v2.69l-3.22-3.22a.75.75 0 10-1.06 1.06zM3.5 4.56l3.22 3.22a.75.75 0 001.06-1.06L4.56 3.5h2.69a.75.75 0 000-1.5h-4.5a.75.75 0 00-.75.75v4.5a.75.75 0 001.5 0V4.56z"}))});e.exports=o},22296:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M5.25 12a.75.75 0 01.75-.75h.01a.75.75 0 01.75.75v.01a.75.75 0 01-.75.75H6a.75.75 0 01-.75-.75V12zM6 13.25a.75.75 0 00-.75.75v.01c0 .414.336.75.75.75h.01a.75.75 0 00.75-.75V14a.75.75 0 00-.75-.75H6zM7.25 12a.75.75 0 01.75-.75h.01a.75.75 0 01.75.75v.01a.75.75 0 01-.75.75H8a.75.75 0 01-.75-.75V12zM8 13.25a.75.75 0 00-.75.75v.01c0 .414.336.75.75.75h.01a.75.75 0 00.75-.75V14a.75.75 0 00-.75-.75H8zM9.25 10a.75.75 0 01.75-.75h.01a.75.75 0 01.75.75v.01a.75.75 0 01-.75.75H10a.75.75 0 01-.75-.75V10zM10 11.25a.75.75 0 00-.75.75v.01c0 .414.336.75.75.75h.01a.75.75 0 00.75-.75V12a.75.75 0 00-.75-.75H10zM9.25 14a.75.75 0 01.75-.75h.01a.75.75 0 01.75.75v.01a.75.75 0 01-.75.75H10a.75.75 0 01-.75-.75V14zM12 9.25a.75.75 0 00-.75.75v.01c0 .414.336.75.75.75h.01a.75.75 0 00.75-.75V10a.75.75 0 00-.75-.75H12zM11.25 12a.75.75 0 01.75-.75h.01a.75.75 0 01.75.75v.01a.75.75 0 01-.75.75H12a.75.75 0 01-.75-.75V12zM12 13.25a.75.75 0 00-.75.75v.01c0 .414.336.75.75.75h.01a.75.75 0 00.75-.75V14a.75.75 0 00-.75-.75H12zM13.25 10a.75.75 0 01.75-.75h.01a.75.75 0 01.75.75v.01a.75.75 0 01-.75.75H14a.75.75 0 01-.75-.75V10zM14 11.25a.75.75 0 00-.75.75v.01c0 .414.336.75.75.75h.01a.75.75 0 00.75-.75V12a.75.75 0 00-.75-.75H14z"}),r.createElement("path",{fillRule:"evenodd",d:"M5.75 2a.75.75 0 01.75.75V4h7V2.75a.75.75 0 011.5 0V4h.25A2.75 2.75 0 0118 6.75v8.5A2.75 2.75 0 0115.25 18H4.75A2.75 2.75 0 012 15.25v-8.5A2.75 2.75 0 014.75 4H5V2.75A.75.75 0 015.75 2zm-1 5.5c-.69 0-1.25.56-1.25 1.25v6.5c0 .69.56 1.25 1.25 1.25h10.5c.69 0 1.25-.56 1.25-1.25v-6.5c0-.69-.56-1.25-1.25-1.25H4.75z",clipRule:"evenodd"}))});e.exports=o},37184:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))});e.exports=o},27901:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M12.232 4.232a2.5 2.5 0 013.536 3.536l-1.225 1.224a.75.75 0 001.061 1.06l1.224-1.224a4 4 0 00-5.656-5.656l-3 3a4 4 0 00.225 5.865.75.75 0 00.977-1.138 2.5 2.5 0 01-.142-3.667l3-3z"}),r.createElement("path",{d:"M11.603 7.963a.75.75 0 00-.977 1.138 2.5 2.5 0 01.142 3.667l-3 3a2.5 2.5 0 01-3.536-3.536l1.225-1.224a.75.75 0 00-1.061-1.06l-1.224 1.224a4 4 0 105.656 5.656l3-3a4 4 0 00-.225-5.865z"}))});e.exports=o},75909:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M10.75 4.75a.75.75 0 00-1.5 0v4.5h-4.5a.75.75 0 000 1.5h4.5v4.5a.75.75 0 001.5 0v-4.5h4.5a.75.75 0 000-1.5h-4.5v-4.5z"}))});e.exports=o},75931:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5L12 21m0 0l-7.5-7.5M12 21V3"}))});e.exports=o},44622:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"}))});e.exports=o},79198:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3"}))});e.exports=o},36942:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"}))});e.exports=o},57793:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))});e.exports=o},27051:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5L12 3m0 0l7.5 7.5M12 3v18"}))});e.exports=o},8541:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25"}))});e.exports=o},32173:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"}))});e.exports=o},23630:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))});e.exports=o},78653:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z"}))});e.exports=o},96959:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 013 19.875v-6.75zM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V8.625zM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V4.125z"}))});e.exports=o},99069:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6a7.5 7.5 0 107.5 7.5h-7.5V6z"}),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5H21A7.5 7.5 0 0013.5 3v7.5z"}))});e.exports=o},55232:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 9.75a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 01.778-.332 48.294 48.294 0 005.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"}))});e.exports=o},46712:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 01-2.555-.337A5.972 5.972 0 015.41 20.97a5.969 5.969 0 01-.474-.065 4.48 4.48 0 00.978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25z"}))});e.exports=o},67042:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"}))});e.exports=o},10568:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0118 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3l1.5 1.5 3-3.75"}))});e.exports=o},72705:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z"}))});e.exports=o},54549:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"}))});e.exports=o},26894:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"}))});e.exports=o},74818:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM12.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM18.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0z"}))});e.exports=o},37948:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.75a.75.75 0 110-1.5.75.75 0 010 1.5zM12 12.75a.75.75 0 110-1.5.75.75 0 010 1.5zM12 18.75a.75.75 0 110-1.5.75.75 0 010 1.5z"}))});e.exports=o},86163:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 13.5h3.86a2.25 2.25 0 012.012 1.244l.256.512a2.25 2.25 0 002.013 1.244h3.218a2.25 2.25 0 002.013-1.244l.256-.512a2.25 2.25 0 012.013-1.244h3.859m-19.5.338V18a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18v-4.162c0-.224-.034-.447-.1-.661L19.24 5.338a2.25 2.25 0 00-2.15-1.588H6.911a2.25 2.25 0 00-2.15 1.588L2.35 13.177a2.25 2.25 0 00-.1.661z"}))});e.exports=o},55689:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"}))});e.exports=o},71394:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zM3.75 12h.007v.008H3.75V12zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm-.375 5.25h.007v.008H3.75v-.008zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"}))});e.exports=o},78515:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"}))});e.exports=o},74170:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5V6.75a4.5 4.5 0 119 0v3.75M3.75 21.75h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H3.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"}))});e.exports=o},82242:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"}))});e.exports=o},61149:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.375 12.739l-7.693 7.693a4.5 4.5 0 01-6.364-6.364l10.94-10.94A3 3 0 1119.5 7.372L8.552 18.32m.009-.01l-.01.01m5.699-9.941l-7.81 7.81a1.5 1.5 0 002.112 2.13"}))});e.exports=o},40779:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"}))});e.exports=o},4063:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"}))});e.exports=o},92284:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"}))});e.exports=o},16084:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.exports=o},88519:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m6-6H6"}))});e.exports=o},285:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 7.125C2.25 6.504 2.754 6 3.375 6h6c.621 0 1.125.504 1.125 1.125v3.75c0 .621-.504 1.125-1.125 1.125h-6a1.125 1.125 0 01-1.125-1.125v-3.75zM14.25 8.625c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v8.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 01-1.125-1.125v-8.25zM3.75 16.125c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v2.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 01-1.125-1.125v-2.25z"}))});e.exports=o},26291:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6.878V6a2.25 2.25 0 012.25-2.25h7.5A2.25 2.25 0 0118 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 004.5 9v.878m13.5-3A2.25 2.25 0 0119.5 9v.878m0 0a2.246 2.246 0 00-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0121 12v6a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 18v-6c0-.98.626-1.813 1.5-2.122"}))});e.exports=o},8271:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z"}))});e.exports=o},22927:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z"}))});e.exports=o},45401:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"}))});e.exports=o},71858:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.568 3H5.25A2.25 2.25 0 003 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 005.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 009.568 3z"}),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6h.008v.008H6V6z"}))});e.exports=o},84703:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))});e.exports=o},46811:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0012 15.75a7.488 7.488 0 00-5.982 2.975m11.963 0a9 9 0 10-11.963 0m11.963 0A8.966 8.966 0 0112 21a8.966 8.966 0 01-5.982-2.275M15 9.75a3 3 0 11-6 0 3 3 0 016 0z"}))});e.exports=o},89954:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 18.72a9.094 9.094 0 003.741-.479 3 3 0 00-4.682-2.72m.94 3.198l.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0112 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 016 18.719m12 0a5.971 5.971 0 00-.941-3.197m0 0A5.995 5.995 0 0012 12.75a5.995 5.995 0 00-5.058 2.772m0 0a3 3 0 00-4.681 2.72 8.986 8.986 0 003.74.477m.94-3.197a5.971 5.971 0 00-.94 3.197M15 6.75a3 3 0 11-6 0 3 3 0 016 0zm6 3a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0zm-13.5 0a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0z"}))});e.exports=o},69137:function(e,t,n){let r=n(2784),o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"}))});e.exports=o},47988:function(e,t,n){"use strict";var r,o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=(r=n(2784),r&&r.__esModule?r:{default:r});t.Z=function(e){var t=e.fill,n=e.width,r=e.height,o=e.style,l=function(e,t){var n={};for(var r in e)!(t.indexOf(r)>=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:void 0===t?"currentColor":t,width:void 0===n?24:n,height:void 0===r?24:r},void 0===o?{}:o)},l),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},16331:function(e,t,n){"use strict";var r,o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=(r=n(2784),r&&r.__esModule?r:{default:r});t.Z=function(e){var t=e.fill,n=e.width,r=e.height,o=e.style,l=function(e,t){var n={};for(var r in e)!(t.indexOf(r)>=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:void 0===t?"currentColor":t,width:void 0===n?24:n,height:void 0===r?24:r},void 0===o?{}:o)},l),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},46338:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM6.24 5h11.52l.81.97H5.44l.8-.97zM5 19V8h14v11H5zm8.45-9h-2.9v3H8l4 4 4-4h-2.55z"}),"ArchiveOutlined")},19491:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)([(0,o.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"},"0"),(0,o.jsx)("path",{d:"M14 17H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"},"1")],"ArticleOutlined")},86447:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M6 20c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2s-2 .9-2 2v7c0 1.1.9 2 2 2zm10-5v3c0 1.1.9 2 2 2s2-.9 2-2v-3c0-1.1-.9-2-2-2s-2 .9-2 2zm-4 5c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2s-2 .9-2 2v12c0 1.1.9 2 2 2z"}),"BarChartRounded")},81680:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66.19-.34.05-.08.07-.12C8.48 10.94 10.42 7.54 13 3h1l-1 7h3.5c.49 0 .56.33.47.51l-.07.15C12.96 17.55 11 21 11 21z"}),"Bolt")},88877:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"}),"CalendarMonthOutlined")},62162:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10zm1-17.93c3.94.49 7 3.85 7 7.93s-3.05 7.44-7 7.93V4.07z"}),"ContrastOutlined")},53766:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)([(0,o.jsx)("path",{d:"M7 13h4v4H7zm6 0h4v4h-4z"},"0"),(0,o.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"},"1"),(0,o.jsx)("path",{d:"M7 7h4v4H7zm6 0h4v4h-4z"},"2")],"DatasetOutlined")},69342:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"}),"FilterNoneOutlined")},42965:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"}),"FormatListBulletedOutlined")},75819:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z"}),"GridViewOutlined")},65722:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"}),"HelpOutlineOutlined")},69710:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"LaunchOutlined")},11593:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"}),"NotificationsOutlined")},71402:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 10v9H4.98V5h9V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zm-2.94-2.06L17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7zM12 8l-1.25 2.75L8 12l2.75 1.25L12 16l1.25-2.75L16 12l-2.75-1.25z"}),"PhotoFilterOutlined")},65623:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}),"SettingsOutlined")},32198:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"}),"TableChartOutlined")},79694:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M22 5.18 10.59 16.6l-4.24-4.24 1.41-1.41 2.83 2.83 10-10L22 5.18zm-2.21 5.04c.13.57.21 1.17.21 1.78 0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8c1.58 0 3.04.46 4.28 1.25l1.44-1.44C16.1 2.67 14.13 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.19-.22-2.33-.6-3.39l-1.61 1.61z"}),"TaskAltOutlined")},12029:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M18 4h3v16h-3V4zM3 13h3v7H3v-7zm11-9h3v3h-3V4zm-4 1h3v4h-3V5zm-3 5h3v4H7v-4z"}),"WaterfallChartOutlined")},46733:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"m9 19 1.41-1.41L5.83 13H22v-2H5.83l4.59-4.59L9 5l-7 7 7 7z"}),"WestOutlined")},40447:function(e,t,n){"use strict";var r=n(554),o=n(52322);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M14 6V4h-4v2h4zM4 8v11h16V8H4zm16-2c1.11 0 2 .89 2 2v11c0 1.11-.89 2-2 2H4c-1.11 0-2-.89-2-2l.01-11c0-1.11.88-2 1.99-2h4V4c0-1.11.89-2 2-2h4c1.11 0 2 .89 2 2v2h4z"}),"WorkOutlineOutlined")},42719:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 2===e.length?r(e[0],e[1])||null:e.slice(1).reduce(function(e,t){return r(e,t)},e[0])||null};var n=new WeakMap;function r(e,t){if(e&&t){var r=n.get(e)||new WeakMap;n.set(e,r);var i=r.get(t)||function(n){o(e,n),o(t,n)};return r.set(t,i),i}return e||t}function o(e,t){"function"==typeof e?e(t):e.current=t}},30387:function(e,t){"use strict";t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t})}return!0}},40844:function(e){var t=/[\\\/\-_+.# \t"@\[\(\{&]/,n=/[\\\/\-_+.# \t"@\[\(\{&]/g;e.exports=function(e,r){return function e(r,o,i,a,l,s){if(s===o.length)return l===r.length?1:.99;for(var u,c,d,p=a.charAt(s),h=i.indexOf(p,l),f=0;h>=0;)(u=e(r,o,i,a,h+1,s+1))>f&&(h===l?u*=1:t.test(r.charAt(h-1))?(u*=.9,(d=r.slice(l,h-1).match(n))&&l>0&&(u*=Math.pow(.999,d.length))):t.test(r.slice(l,h-1))?(u*=0,l>0&&(u*=Math.pow(.999,h-l))):(u*=.3,l>0&&(u*=Math.pow(.999,h-l))),r.charAt(h)!==o.charAt(s)&&(u*=.9999)),u<.1&&i.charAt(h-1)===a.charAt(s+1)&&i.charAt(h-1)!==a.charAt(s)&&.1*(c=e(r,o,i,a,h+1,s+2))>u&&(u=.1*c),u>f&&(f=u),h=i.indexOf(p,h+1);return f}(e,r,e.toLowerCase(),r.toLowerCase(),0,0)}},29242:function(e,t,n){"use strict";n.d(t,{Oq:function(){return d},dO:function(){return l},jn:function(){return o},iz:function(){return p},Dz:function(){return r},cv:function(){return u},oc:function(){return c}});var r=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},o=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},i=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},a={top:0,right:0,bottom:0,left:0},l=function(e){var t=e.borderBox,n=e.margin,l=void 0===n?a:n,s=e.border,u=void 0===s?a:s,c=e.padding,d=void 0===c?a:c,p=r(o(t,l)),h=r(i(t,u)),f=r(i(h,d));return{marginBox:p,borderBox:r(t),paddingBox:h,contentBox:f,margin:l,border:u,padding:d}},s=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){if(!e)throw Error("Invariant failed")}(!1),n},u=function(e,t){var n,r,o,i=e.borderBox,a=e.border,s=e.margin,u=e.padding;return l({borderBox:{top:i.top+t.y,left:i.left+t.x,bottom:i.bottom+t.y,right:i.right+t.x},border:a,margin:s,padding:u})},c=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),u(e,t)},d=function(e,t){var n={top:s(t.marginTop),right:s(t.marginRight),bottom:s(t.marginBottom),left:s(t.marginLeft)},r={top:s(t.paddingTop),right:s(t.paddingRight),bottom:s(t.paddingBottom),left:s(t.paddingLeft)},o={top:s(t.borderTopWidth),right:s(t.borderRightWidth),bottom:s(t.borderBottomWidth),left:s(t.borderLeftWidth)};return l({borderBox:e,margin:n,padding:r,border:o})},p=function(e){var t;return d(e.getBoundingClientRect(),window.getComputedStyle(e))}},39714:function(e){"use strict";var t=function(e){var t,r,o,i;return t=e,!!t&&"object"==typeof t&&(r=e,o=Object.prototype.toString.call(r),"[object RegExp]"!==o&&"[object Date]"!==o&&(i=r,i.$$typeof!==n))},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){var n;return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function o(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function i(e){var t;return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function a(e,t){try{return t in e}catch(n){return!1}}function l(e,n,s){(s=s||{}).arrayMerge=s.arrayMerge||o,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=r;var u,c,d,p,h,f=Array.isArray(n);return f!==Array.isArray(e)?r(n,s):f?s.arrayMerge(e,n,s):(p={},(d=s).isMergeableObject(e)&&i(e).forEach(function(t){p[t]=r(e[t],d)}),i(n).forEach(function(t){var o,i;(!a(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(a(e,t)&&d.isMergeableObject(n[t])?p[t]=(function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l})(t,d)(e[t],n[t],d):p[t]=r(n[t],d))}),p)}l.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},e.exports=l},48102:function(e){"use strict";e.exports=e=>{if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},43264:function(e){var t,n;"undefined"!=typeof self&&self,n=function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){function r(){throw TypeError("The given URL is not a string. Please verify your string|array.")}function o(e){"string"!=typeof e&&r();for(var t=0,n=0,o=0,l=e.length,s=0;l--&&++s&&!(t&&-1<i.indexOf(e[s]));)"."===e[s]&&(++t,n=s);for(t=s,s=n;s--;)if(-1!==a.indexOf(e[s])){o=s+1;break}return 2>o?"":e.slice(o,t)}var i=["/",":","?","#"],a=[".","/","@"];e.exports=function(e){if("string"==typeof e)return o(e);if(Array.isArray(e)){var t,n=[],i=0;for(t=e.length;i<t;i++)n.push(o(e[i]));return n}r()}}])},e.exports=n()},69378:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var r,o,i,a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},74163:function(e){"use strict";e.exports=function(e,n){for(var r,o,i,a=e||"",l=n||"div",s={},u=0;u<a.length;)t.lastIndex=u,i=t.exec(a),(r=a.slice(u,i?i.index:a.length))&&(o?"#"===o?s.id=r:s.className?s.className.push(r):s.className=[r]:l=r,u+=r.length),i&&(o=i[0],u++);return{type:"element",tagName:l,properties:s,children:[]}};var t=/[#.]/g},68924:function(e,t,n){"use strict";var r=n(74248),o=n(93111),i=n(74163),a=n(93235).Q,l=n(73178).Q;e.exports=function(e,t,n){var o=n?function(e){for(var t,n=e.length,r=-1,o={};++r<n;)o[(t=e[r]).toLowerCase()]=t;return o}(n):null;return function(e,n){var r,a,l,u,d,p,h=i(e,t),f=Array.prototype.slice.call(arguments,2),m=h.tagName.toLowerCase();if(h.tagName=o&&s.call(o,m)?o[m]:m,n&&(a=n,l=h,"string"==typeof a||"length"in a||(u=l.tagName,d=a,p=d.type,"input"!==u&&p&&"string"==typeof p&&("object"==typeof d.children&&"length"in d.children||((p=p.toLowerCase(),"button"===u)?"menu"!==p&&"submit"!==p&&"reset"!==p&&"button"!==p:"value"in d))))&&(f.unshift(n),n=null),n)for(r in n)c(h.properties,r,n[r]);return function e(t,n){var r,o;if("string"==typeof n||"number"==typeof n){t.push({type:"text",value:String(n)});return}if("object"==typeof n&&"length"in n){for(r=-1,o=n.length;++r<o;)e(t,n[r]);return}if("object"!=typeof n||!("type"in n))throw Error("Expected node, nodes, or string, got `"+n+"`");t.push(n)}(h.children,f),"template"===h.tagName&&(h.content={type:"root",children:h.children},h.children=[]),h};function c(t,n,o){var i,s,c;null!=o&&o==o&&(s=(i=r(e,n)).property,"string"==typeof(c=o)&&(i.spaceSeparated?c=a(c):i.commaSeparated?c=l(c):i.commaOrSpaceSeparated&&(c=a(l(c).join(" ")))),"style"===s&&"string"!=typeof o&&(c=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(c)),"className"===s&&t.className&&(c=t.className.concat(c)),t[s]=function(e,t,n){var r,o,i;if("object"!=typeof n||!("length"in n))return u(e,t,n);for(o=n.length,r=-1,i=[];++r<o;)i[r]=u(e,t,n[r]);return i}(i,s,c))}};var s={}.hasOwnProperty;function u(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&"string"==typeof r&&(""===r||o(n)===o(t))&&(r=!0),r}},88977:function(e,t,n){"use strict";var r=n(54851),o=n(68924)(r,"div");o.displayName="html",e.exports=o},22896:function(e,t,n){"use strict";e.exports=n(88977)},73178:function(e,t){"use strict";t.Q=function(e){for(var t,n=[],r=String(e||""),o=r.indexOf(","),i=0,a=!1;!a;)-1===o&&(o=r.length,a=!0),((t=r.slice(i,o).trim())||!a)&&n.push(t),i=o+1,o=r.indexOf(",",i);return n}},74248:function(e,t,n){"use strict";var r=n(93111),o=n(12599),i=n(83789),a="data";e.exports=function(e,t){var n,p,h,f,m=r(t),g=t,v=i;return m in e.normal?e.property[e.normal[m]]:(m.length>4&&m.slice(0,4)===a&&l.test(t)&&("-"===t.charAt(4)?(n=t,p=n.slice(5).replace(s,d),g=a+p.charAt(0).toUpperCase()+p.slice(1)):(h=t,f=h.slice(4),t=s.test(f)?h:("-"!==(f=f.replace(u,c)).charAt(0)&&(f="-"+f),a+f)),v=o),new v(g,t))};var l=/^data[-\w.:]+$/i,s=/-[a-z]/g,u=/[A-Z]/g;function c(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},54851:function(e,t,n){"use strict";var r=n(57626),o=n(43088),i=n(59502),a=n(22084),l=n(42352),s=n(91385);e.exports=r([i,o,a,l,s])},42352:function(e,t,n){"use strict";var r=n(17250),o=n(87018),i=r.booleanish,a=r.number,l=r.spaceSeparated;e.exports=o({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:i,ariaAutoComplete:null,ariaBusy:i,ariaChecked:i,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:l,ariaCurrent:null,ariaDescribedBy:l,ariaDetails:null,ariaDisabled:i,ariaDropEffect:l,ariaErrorMessage:null,ariaExpanded:i,ariaFlowTo:l,ariaGrabbed:i,ariaHasPopup:null,ariaHidden:i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:l,ariaLevel:a,ariaLive:null,ariaModal:i,ariaMultiLine:i,ariaMultiSelectable:i,ariaOrientation:null,ariaOwns:l,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:i,ariaReadOnly:i,ariaRelevant:null,ariaRequired:i,ariaRoleDescription:l,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:i,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}})},91385:function(e,t,n){"use strict";var r=n(17250),o=n(87018),i=n(40125),a=r.boolean,l=r.overloadedBoolean,s=r.booleanish,u=r.number,c=r.spaceSeparated,d=r.commaSeparated;e.exports=o({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:i,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:c,accessKey:c,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:c,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:c,cols:u,colSpan:null,content:null,contentEditable:s,controls:a,controlsList:c,coords:u|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:l,draggable:s,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:c,height:u,hidden:a,high:u,href:null,hrefLang:null,htmlFor:c,httpEquiv:c,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:c,itemRef:c,itemScope:a,itemType:c,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:u,manifest:null,max:null,maxLength:u,media:null,method:null,min:null,minLength:u,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:u,pattern:null,ping:c,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:c,required:a,reversed:a,rows:u,rowSpan:u,sandbox:c,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:u,sizes:null,slot:null,span:u,spellCheck:s,src:null,srcDoc:null,srcLang:null,srcSet:d,start:u,step:null,style:null,tabIndex:u,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:s,width:u,wrap:null,align:null,aLink:null,archive:c,axis:null,background:null,bgColor:null,border:u,borderColor:null,bottomMargin:u,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:u,leftMargin:u,link:null,longDesc:null,lowSrc:null,marginHeight:u,marginWidth:u,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:u,rules:null,scheme:null,scrolling:s,standby:null,summary:null,text:null,topMargin:u,valueType:null,version:null,vAlign:null,vLink:null,vSpace:u,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:u,security:null,unselectable:null}})},40125:function(e,t,n){"use strict";var r=n(93998);e.exports=function(e,t){return r(e,t.toLowerCase())}},93998:function(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},87018:function(e,t,n){"use strict";var r=n(93111),o=n(74358),i=n(12599);e.exports=function(e){var t,n,a=e.space,l=e.mustUseProperty||[],s=e.attributes||{},u=e.properties,c=e.transform,d={},p={};for(t in u)n=new i(t,c(s,t),u[t],a),-1!==l.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new o(d,p,a)}},12599:function(e,t,n){"use strict";var r=n(83789),o=n(17250);e.exports=l,l.prototype=new r,l.prototype.defined=!0;var i=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=i.length;function l(e,t,n,l){var u,c=-1;for(s(this,"space",l),r.call(this,e,t);++c<a;)s(this,u=i[c],(n&o[u])===o[u])}function s(e,t,n){n&&(e[t]=n)}},83789:function(e){"use strict";e.exports=n;var t=n.prototype;function n(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},57626:function(e,t,n){"use strict";var r=n(51960),o=n(74358);e.exports=function(e){for(var t,n,i=e.length,a=[],l=[],s=-1;++s<i;)t=e[s],a.push(t.property),l.push(t.normal),n=t.space;return new o(r.apply(null,a),r.apply(null,l),n)}},74358:function(e){"use strict";e.exports=n;var t=n.prototype;function n(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}t.space=null,t.normal={},t.property={}},17250:function(e,t){"use strict";var n=0;function r(){return Math.pow(2,++n)}t.boolean=r(),t.booleanish=r(),t.overloadedBoolean=r(),t.number=r(),t.spaceSeparated=r(),t.commaSeparated=r(),t.commaOrSpaceSeparated=r()},43088:function(e,t,n){"use strict";var r=n(87018);e.exports=r({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},59502:function(e,t,n){"use strict";var r=n(87018);e.exports=r({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},22084:function(e,t,n){"use strict";var r=n(87018),o=n(40125);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:o,properties:{xmlns:null,xmlnsXLink:null}})},93111:function(e){"use strict";e.exports=function(e){return e.toLowerCase()}},93235:function(e,t){"use strict";t.Q=function(e){var t=String(e||"").trim();return""===t?[]:t.split(n)};var n=/[ \t\n\r\f]+/g},73463:function(e,t,n){"use strict";var r=n(73887),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=h(n);o&&o!==f&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var l=s(t),m=s(n),g=0;g<a.length;++g){var v=a[g];if(!i[v]&&!(r&&r[v])&&!(m&&m[v])&&!(l&&l[v])){var b=p(n,v);try{u(t,v,b)}catch(y){}}}}return t}},43459:function(e,t){"use strict";/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case l:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case m:case s:return e;default:return t}}case o:return t}}}function E(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||w(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},73887:function(e,t,n){"use strict";e.exports=n(43459)},73756:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},65279:function(e,t,n){"use strict";var r=n(73756),o=n(61278);e.exports=function(e){return r(e)||o(e)}},61278:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},22777:function(e,t,n){"use strict";/*!
 * is-extendable <https://github.com/jonschlinkert/is-extendable>
 *
 * Copyright (c) 2015-2017, Jon Schlinkert.
 * Released under the MIT License.
 */ var r=n(15690);e.exports=function(e){return r(e)||"function"==typeof e||Array.isArray(e)}},69694:function(e,t,n){"use strict";var r=n(16414);e.exports=Number.isFinite||function(e){return!("number"!=typeof e||r(e)||e===1/0||e===-1/0)}},48833:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},17831:function(e,t,n){var r=n(62026);e.exports=Number.isInteger||function(e){return"number"==typeof e&&r(e)&&Math.floor(e)===e}},62026:function(e){"use strict";e.exports=Number.isFinite||function(e){return!("number"!=typeof e||e!=e||e===1/0||e===-1/0)}},15690:function(e,t,n){"use strict";/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */ var r=n(98558);function o(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==o(e)&&"function"==typeof(t=e.constructor)&&!1!==o(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}},98558:function(e){"use strict";/*!
 * isobject <https://github.com/jonschlinkert/isobject>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */ e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},3845:function(e,t){"use strict";var n,r;let o=Object.keys;function i(e){return"string"==typeof e}function a(e){return"number"==typeof e}function l(e){return"object"==typeof e?null!==e:s(e)}function s(e){return"function"==typeof e}function u(e,t){if(e)for(let n of o(e))t(e[n],n)}let c={animationIterationCount:0,borderImageOutset:0,borderImageSlice:0,borderImageWidth:0,boxFlex:0,boxFlexGroup:0,boxOrdinalGroup:0,columnCount:0,columns:0,flex:0,flexGrow:0,flexPositive:0,flexShrink:0,flexNegative:0,flexOrder:0,gridArea:0,gridRow:0,gridRowEnd:0,gridRowSpan:0,gridRowStart:0,gridColumn:0,gridColumnEnd:0,gridColumnSpan:0,gridColumnStart:0,fontWeight:0,lineClamp:0,lineHeight:0,opacity:0,order:0,orphans:0,tabSize:0,widows:0,zIndex:0,zoom:0,fillOpacity:0,floodOpacity:0,stopOpacity:0,strokeDasharray:0,strokeDashoffset:0,strokeMiterlimit:0,strokeOpacity:0,strokeWidth:0},d=["Webkit","ms","Moz","O"];o(c).forEach(e=>{d.forEach(t=>{var n,r;c[t+(r=e).charAt(0).toUpperCase()+r.substring(1)]=0})});let p=Symbol.for("jsx-dom:type");(n=r||(r={})).ShadowRoot="ShadowRoot";function h(e){var t;return"boolean"!=typeof e&&null!=e}let f="undefined"!=typeof DOMTokenList?DOMTokenList:function(){},m={animate:0,circle:0,clipPath:0,defs:0,desc:0,ellipse:0,feBlend:0,feColorMatrix:0,feComponentTransfer:0,feComposite:0,feConvolveMatrix:0,feDiffuseLighting:0,feDisplacementMap:0,feDistantLight:0,feFlood:0,feFuncA:0,feFuncB:0,feFuncG:0,feFuncR:0,feGaussianBlur:0,feImage:0,feMerge:0,feMergeNode:0,feMorphology:0,feOffset:0,fePointLight:0,feSpecularLighting:0,feSpotLight:0,feTile:0,feTurbulence:0,filter:0,foreignObject:0,g:0,image:0,line:0,linearGradient:0,marker:0,mask:0,metadata:0,path:0,pattern:0,polygon:0,polyline:0,radialGradient:0,rect:0,stop:0,svg:0,switch:0,symbol:0,text:0,textPath:0,tspan:0,use:0,view:0},g=/^(a(ll|t|u)|base[FP]|c(al|lipPathU|on)|di|ed|ex|filter[RU]|g(lyphR|r)|ke|l(en|im)|ma(rker[HUW]|s)|n|pat|pr|point[^e]|re[^n]|s[puy]|st[^or]|ta|textL|vi|xC|y|z)/;Object.defineProperties((class e{constructor(e){this.props=e}render(){return null}}).prototype,{isReactComponent:{value:!0}});function v(e,t){for(var n=arguments.length,u=Array(n>2?n-2:0),c=2;c<n;c++)u[c-2]=arguments[c];return(i(t)||Array.isArray(t))&&(u.unshift(t),t={}),null==(t=t||{}).children||u.length||({children:u,...t}=t),function e(t,n){let{children:u,...c}=n;c.namespaceURI||0!==m[t]||(c={...c,namespaceURI:"http://www.w3.org/2000/svg"});let d;if(i(t)){if(d=c.namespaceURI?document.createElementNS(c.namespaceURI,t):document.createElement(t),function(e,t){for(let n of o(e))w(n,e[n],t)}(c,d),function e(t,n){var o,s,u;if(l(t)&&"number"==typeof t.length&&"number"!=typeof t.nodeType)!function(t,n){for(let r of[...t])e(r,n);return n}(t,n);else if(i(t)||a(t))y(document.createTextNode(t),n);else if(null===t)y(document.createComment(""),n);else if((s=t)&&"number"==typeof s.nodeType)y(t,n);else if(null!=(u=t)&&u[p]===r.ShadowRoot){let c=n.attachShadow(t.attr);e(t.children,c),b(t.ref,c)}}(u,d),d instanceof window.HTMLSelectElement&&null!=c.value){if(!0===c.multiple&&Array.isArray(c.value)){let h=c.value.map(e=>String(e));d.querySelectorAll("option").forEach(e=>e.selected=h.includes(e.value))}else d.value=c.value}b(c.ref,d)}else if(s(t))l(t.defaultProps)&&(c={...t.defaultProps,...c}),d=!function(e){let{prototype:t}=e;return!!(t&&t.isReactComponent)}(t)?t({...c,children:u}):function(e,t,n){t={...t,children:n};let r=new e(t);return r.render()}(t,c,u);else throw TypeError(`Invalid JSX element type: ${t}`);return d}(e,{...t,children:u},t.key)}function b(e,t){var n;(n=e,l(n)&&"current"in n)?e.current=t:s(e)&&e(t)}function y(e,t){t instanceof window.HTMLTemplateElement?t.content.appendChild(e):t.appendChild(e)}function x(e,t){return e.replace(/[A-Z]/g,e=>t+e.toLowerCase())}function w(e,t,n){switch(e){case"xlinkActuate":case"xlinkArcrole":case"xlinkHref":case"xlinkRole":case"xlinkShow":case"xlinkTitle":case"xlinkType":k(n,"http://www.w3.org/1999/xlink",x(e,":"),t);return;case"xmlnsXlink":E(n,x(e,":"),t);return;case"xmlBase":case"xmlLang":case"xmlSpace":k(n,"http://www.w3.org/XML/1998/namespace",x(e,":"),t);return}switch(e){case"htmlFor":E(n,"for",t);return;case"dataset":u(t,(e,t)=>{null!=e&&(n.dataset[t]=e)});return;case"innerHTML":case"innerText":case"textContent":h(t)&&(n[e]=t);return;case"dangerouslySetInnerHTML":l(t)&&(n.innerHTML=t.__html);return;case"value":if(null==t||n instanceof window.HTMLSelectElement)return;if(n instanceof window.HTMLTextAreaElement){n.value=t;return}break;case"spellCheck":n.spellcheck=t;return;case"class":case"className":s(t)?t(n):E(n,"class",function e(t){return Array.isArray(t)?t.map(e).filter(Boolean).join(" "):t instanceof f?""+t:l(t)?o(t).filter(e=>t[e]).join(" "):h(t)?""+t:""}(t));return;case"ref":case"namespaceURI":return;case"style":!function e(t,n){null==n||!1===n||(Array.isArray(n)?n.forEach(n=>e(t,n)):i(n)?t.setAttribute("style",n):l(n)&&u(n,(e,n)=>{a(e)&&0!==c[n]?t.style[n]=e+"px":t.style[n]=e}))}(n,t);return;case"on":case"onCapture":u(t,(t,r)=>{n.addEventListener(r,t,"onCapture"===e)});return}if(s(t)){if("o"===e[0]&&"n"===e[1]){let r=e.toLowerCase(),d=r.endsWith("capture");if(d||null!==n[r]){if(d)n.addEventListener(r.substring(2,r.length-7),t,!0);else{let p;if(r in window){let m=r.substring(2);p=m}else{let v=r[2]+e.slice(3);p=v}n.addEventListener(p,t)}}else n[r]=t}}else l(t)?n[e]=t:!0===t?E(n,e,""):!1!==t&&null!=t&&(n instanceof SVGElement&&!g.test(e)?E(n,x(e,"-"),t):E(n,e,t))}function E(e,t,n){e.setAttribute(t,n)}function k(e,t,n,r){e.setAttributeNS(t,n,r)}let C=new Map,S=e=>function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return n=>{let{style:o,...i}=n,a=t.length-1,l=t.slice(0,a).reduce((e,t,n)=>e+t+r[n](i),"")+t[a];return v(e,{style:[l,o],...i})}},M=e=>S(e);new Proxy(M,{get:(e,t)=>(function(e,t,n){if(e.has(t))return e.get(t);{let r=n(t);return e.set(t,r),r}})(C,t,()=>S(t))}),t.h=v},89419:function(e,t,n){var r=n(23059);e.exports=function(e){return"function"==typeof e?e:r}},9850:function(e,t,n){var r=n(18874);e.exports=function(e){return r(e,5)}},15253:function(e,t,n){var r=n(26548),o=n(89419);e.exports=function(e,t){return e&&r(e,o(t))}},16760:function(e,t,n){var r=n(50343),o=n(68286),i=n(93401),a=n(86152);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},85598:function(e,t){"use strict";var n="undefined"!=typeof Reflect?Reflect.construct:void 0,r=Object.defineProperty,o=Error.captureStackTrace;function i(e){void 0!==e&&r(this,"message",{configurable:!0,value:e,writable:!0});var t=this.constructor.name;void 0!==t&&t!==this.name&&r(this,"name",{configurable:!0,value:t,writable:!0}),o(this,this.constructor)}void 0===o&&(o=function(e){var t=Error();r(e,"stack",{configurable:!0,get:function(){var e=t.stack;return r(this,"stack",{configurable:!0,value:e,writable:!0}),e},set:function(t){r(e,"stack",{configurable:!0,value:t,writable:!0})}})}),i.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:i,writable:!0}});var a=function(){function e(e,t){return r(e,"name",{configurable:!0,value:t})}try{var t=function(){};if(e(t,"foo"),"foo"===t.name)return e}catch(n){}}();(e.exports=function(e,t){if(null==t||t===Error)t=i;else if("function"!=typeof t)throw TypeError("super_ should be a function");if("string"==typeof e)r=e,e=void 0!==n?function(){return n(t,arguments,this.constructor)}:function(){t.apply(this,arguments)},void 0!==a&&(a(e,r),r=void 0);else if("function"!=typeof e)throw TypeError("constructor should be either a string or a function");e.super_=e.super=t;var r,o={constructor:{configurable:!0,value:e,writable:!0}};return void 0!==r&&(o.name={configurable:!0,value:r,writable:!0}),e.prototype=Object.create(t.prototype,o),e}).BaseError=i},36631:function(e,t){"use strict";var n=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function r(e,t){return!!(e===t||n(e)&&n(t))}function o(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1;return!0}t.Z=function(e,t){void 0===t&&(t=o);var n,r,i=[],a=!1;return function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return a&&n===this&&t(o,i)||(r=e.apply(this,o),a=!0,n=this,i=o),r}}},42569:function(e,t){var n,r,o,i;i=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n="boolean"==typeof RegExp().sticky;function r(e){return e&&"[object RegExp]"===t.call(e)}function o(e){return e&&"object"==typeof e&&!r(e)&&!Array.isArray(e)}function i(e){return RegExp("|"+e).exec("").length-1}function a(e){return"("+e+")"}function l(e){return e.length?"(?:"+e.map(function(e){return"(?:"+e+")"}).join("|")+")":"(?!)"}function s(e){if("string"==typeof e){var t;return"(?:"+e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")"}if(r(e)){if(e.ignoreCase)throw Error("RegExp /i flag not allowed");if(e.global)throw Error("RegExp /g flag is implied");if(e.sticky)throw Error("RegExp /y flag is implied");if(e.multiline)throw Error("RegExp /m flag is implied");return e.source}throw Error("Not a pattern: "+e)}function u(e,t){return e.length>t?e:Array(t-e.length+1).join(" ")+e}function c(t,n){if(o(n)||(n={match:n}),n.include)throw Error("Matching rules cannot also include states");var i={defaultType:t,lineBreaks:!!n.error||!!n.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var a in n)e.call(n,a)&&(i[a]=n[a]);if("string"==typeof i.type&&t!==i.type)throw Error("Type transform cannot be a string (type '"+i.type+"' for token '"+t+"')");var l=i.match;return i.match=Array.isArray(l)?l:l?[l]:[],i.match.sort(function(e,t){return r(e)&&r(t)?0:r(t)?-1:r(e)?1:t.length-e.length}),i}function d(e){return Array.isArray(e)?function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(r.include){for(var o=[].concat(r.include),i=0;i<o.length;i++)t.push({include:o[i]});continue}if(!r.type)throw Error("Rule has no type: "+JSON.stringify(r));t.push(c(r.type,r))}return t}(e):function(e){for(var t=Object.getOwnPropertyNames(e),n=[],r=0;r<t.length;r++){var i=t[r],a=[].concat(e[i]);if("include"===i){for(var l=0;l<a.length;l++)n.push({include:a[l]});continue}var s=[];a.forEach(function(e){o(e)?(s.length&&n.push(c(i,s)),n.push(c(i,e)),s=[]):s.push(e)}),s.length&&n.push(c(i,s))}return n}(e)}var p=c("error",{lineBreaks:!0,shouldThrow:!0});function h(e,t){for(var o=null,u=Object.create(null),c=!0,d=null,h=[],f=[],m=0;m<e.length;m++)e[m].fallback&&(c=!1);for(var m=0;m<e.length;m++){var g=e[m];if(g.include)throw Error("Inheritance is not allowed in stateless lexers");if(g.error||g.fallback){if(o){if(!g.fallback==!o.fallback)throw Error("Multiple "+(g.fallback?"fallback":"error")+" rules not allowed (for token '"+g.defaultType+"')");throw Error("fallback and error are mutually exclusive (for token '"+g.defaultType+"')")}o=g}var v=g.match.slice();if(c)for(;v.length&&"string"==typeof v[0]&&1===v[0].length;)u[v.shift().charCodeAt(0)]=g;if(g.pop||g.push||g.next){if(!t)throw Error("State-switching options are not allowed in stateless lexers (for token '"+g.defaultType+"')");if(g.fallback)throw Error("State-switching options are not allowed on fallback tokens (for token '"+g.defaultType+"')")}if(0!==v.length){c=!1,h.push(g);for(var b=0;b<v.length;b++){var y=v[b];if(r(y)){if(null===d)d=y.unicode;else if(d!==y.unicode&&!1===g.fallback)throw Error("If one rule is /u then all must be")}}var x=l(v.map(s)),w=RegExp(x);if(w.test(""))throw Error("RegExp matches empty string: "+w);if(i(x)>0)throw Error("RegExp has capture groups: "+w+"\nUse (?: … ) instead");if(!g.lineBreaks&&w.test("\n"))throw Error("Rule should declare lineBreaks: "+w);f.push(a(x))}}var E=o&&o.fallback,k=n&&!E?"ym":"gm";return!0===d&&(k+="u"),{regexp:RegExp(l(f)+(n||E?"":"|"),k),groups:h,fast:u,error:o||p}}function f(e,t,n){var r=e&&(e.push||e.next);if(r&&!n[r])throw Error("Missing state '"+r+"' (in token '"+e.defaultType+"' of state '"+t+"')");if(e&&e.pop&&1!=+e.pop)throw Error("pop must be 1 (in token '"+e.defaultType+"' of state '"+t+"')")}var m=function(e,t){this.startState=t,this.states=e,this.buffer="",this.stack=[],this.reset()};m.prototype.reset=function(e,t){return this.buffer=e||"",this.index=0,this.line=t?t.line:1,this.col=t?t.col:1,this.queuedToken=t?t.queuedToken:null,this.queuedText=t?t.queuedText:"",this.queuedThrow=t?t.queuedThrow:null,this.setState(t?t.state:this.startState),this.stack=t&&t.stack?t.stack.slice():[],this},m.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},m.prototype.setState=function(e){if(e&&this.state!==e){this.state=e;var t=this.states[e];this.groups=t.groups,this.error=t.error,this.re=t.regexp,this.fast=t.fast}},m.prototype.popState=function(){this.setState(this.stack.pop())},m.prototype.pushState=function(e){this.stack.push(this.state),this.setState(e)};var g=n?function(e,t){return e.exec(t)}:function(e,t){var n=e.exec(t);return 0===n[0].length?null:n};function v(){return this.value}if(m.prototype._getGroup=function(e){for(var t=this.groups.length,n=0;n<t;n++)if(void 0!==e[n+1])return this.groups[n];throw Error("Cannot find token type for matched text")},m.prototype.next=function(){var e=this.index;if(this.queuedGroup){var t=this._token(this.queuedGroup,this.queuedText,e);return this.queuedGroup=null,this.queuedText="",t}var n=this.buffer;if(e!==n.length){var r=this.fast[n.charCodeAt(e)];if(r)return this._token(r,n.charAt(e),e);var o=this.re;o.lastIndex=e;var i=g(o,n),a=this.error;if(null==i)return this._token(a,n.slice(e,n.length),e);var r=this._getGroup(i),l=i[0];return a.fallback&&i.index!==e?(this.queuedGroup=r,this.queuedText=l,this._token(a,n.slice(e,i.index),e)):this._token(r,l,e)}},m.prototype._token=function(e,t,n){var r=0;if(e.lineBreaks){var o=/\n/g,i=1;if("\n"===t)r=1;else for(;o.exec(t);)r++,i=o.lastIndex}var a={type:"function"==typeof e.type&&e.type(t)||e.defaultType,value:"function"==typeof e.value?e.value(t):t,text:t,toString:v,offset:n,lineBreaks:r,line:this.line,col:this.col},l=t.length;if(this.index+=l,this.line+=r,0!==r?this.col=l-i+1:this.col+=l,e.shouldThrow)throw Error(this.formatError(a,"invalid syntax"));return e.pop?this.popState():e.push?this.pushState(e.push):e.next&&this.setState(e.next),a},"undefined"!=typeof Symbol&&Symbol.iterator){var b=function(e){this.lexer=e};b.prototype.next=function(){var e=this.lexer.next();return{value:e,done:!e}},b.prototype[Symbol.iterator]=function(){return this},m.prototype[Symbol.iterator]=function(){return new b(this)}}return m.prototype.formatError=function(e,t){if(null==e)var n=this.buffer.slice(this.index),e={text:n,offset:this.index,lineBreaks:-1===n.indexOf("\n")?0:1,line:this.line,col:this.col};var r=Math.max(e.line-2,1),o=String(e.line+2).length,i=(function(e,t){for(var n=e.length,r=0;;){var o=e.lastIndexOf("\n",n-1);if(-1===o)break;if(r++,n=o,r===t||0===n)break}var i=r<t?0:n+1;return e.substring(i).split("\n")})(this.buffer,this.line-e.line+2+1).slice(0,5),a=[];a.push(t+" at line "+e.line+" col "+e.col+":"),a.push("");for(var l=0;l<i.length;l++){var s=i[l],c=r+l;a.push(u(String(c),o)+"  "+s),c===e.line&&a.push(u("",o+e.col+1)+"^")}return a.join("\n")},m.prototype.clone=function(){return new m(this.states,this.state)},m.prototype.has=function(e){return!0},{compile:function(e){var t=h(d(e));return new m({start:t},"start")},states:function(e,t){var n=e.$all?d(e.$all):[];delete e.$all;var r=Object.getOwnPropertyNames(e);t||(t=r[0]);for(var o=Object.create(null),i=0;i<r.length;i++){var a=r[i];o[a]=d(e[a]).concat(n)}for(var i=0;i<r.length;i++)for(var a=r[i],l=o[a],s=Object.create(null),u=0;u<l.length;u++){var c=l[u];if(c.include){var p=[u,1];if(c.include!==a&&!s[c.include]){s[c.include]=!0;var g=o[c.include];if(!g)throw Error("Cannot include nonexistent state '"+c.include+"' (in state '"+a+"')");for(var v=0;v<g.length;v++){var b=g[v];-1===l.indexOf(b)&&p.push(b)}}l.splice.apply(l,p),u--}}for(var y=Object.create(null),i=0;i<r.length;i++){var a=r[i];y[a]=h(o[a],!0)}for(var i=0;i<r.length;i++){for(var x=r[i],w=y[x],E=w.groups,u=0;u<E.length;u++)f(E[u],x,y);for(var k=Object.getOwnPropertyNames(w.fast),u=0;u<k.length;u++)f(w.fast[k[u]],x,y)}return new m(y,t)},error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:function(e){for(var t="undefined"!=typeof Map,n=t?new Map:Object.create(null),r=Object.getOwnPropertyNames(e),o=0;o<r.length;o++){var i=r[o],a=e[i];(Array.isArray(a)?a:[a]).forEach(function(e){if("string"!=typeof e)throw Error("keyword must be string (in keyword '"+i+"')");t?n.set(e,i):n[e]=i})}return function(e){return t?n.get(e):n[e]}}}},void 0!==(o=i.apply(t,[]))&&(e.exports=o)},16414:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},13e3:function(e,t,n){"use strict";/*!
 * object.omit <https://github.com/jonschlinkert/object.omit>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */ var r=n(22777);e.exports=function(e,t,n){if(!r(e))return{};"function"==typeof t&&(n=t,t=[]),"string"==typeof t&&(t=[t]);for(var o="function"==typeof n,i=Object.keys(e),a={},l=0;l<i.length;l++){var s=i[l],u=e[s];(!t||-1===t.indexOf(s)&&(!o||n(u,s,e)))&&(a[s]=u)}return a}},86883:function(e,t,n){"use strict";/*!
 * object.pick <https://github.com/jonschlinkert/object.pick>
 *
 * Copyright (c) 2014-2015 Jon Schlinkert, contributors.
 * Licensed under the MIT License
 */ var r=n(98558);e.exports=function(e,t){if(!r(e)&&"function"!=typeof e)return{};var n={};if("string"==typeof t)return t in e&&(n[t]=e[t]),n;for(var o=t.length,i=-1;++i<o;){var a=t[i];a in e&&(n[a]=e[a])}return n}},81553:function(e){"use strict";function t(e,t){if("string"!=typeof e)return[e];var n=[e];"string"==typeof t||Array.isArray(t)?t={brackets:t}:t||(t={});var r=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],o=t.escape||"___",i=!!t.flat;r.forEach(function(e){var t=RegExp(["\\",e[0],"[^\\",e[0],"\\",e[1],"]*\\",e[1]].join("")),r=[];function i(t,i,a){var l=n.push(t.slice(e[0].length,-e[1].length))-1;return r.push(l),o+l+o}n.forEach(function(e,r){for(var o,a=0;e!=o;)if(o=e,e=e.replace(t,i),a++>1e4)throw Error("References have circular dependency. Please, check them.");n[r]=e}),r=r.reverse(),n=n.map(function(t){return r.forEach(function(n){t=t.replace(RegExp("(\\"+o+n+"\\"+o+")","g"),e[0]+"$1"+e[1])}),t})});var a=RegExp("\\"+o+"([0-9]+)\\"+o);return i?n:function e(t,n,r){for(var o,i=[],l=0;o=a.exec(t);){if(l++>1e4)throw Error("Circular references in parenthesis");i.push(t.slice(0,o.index)),i.push(e(n[o[1]],n)),t=t.slice(o.index+o[0].length)}return i.push(t),i}(n[0],n)}function n(e,t){if(t&&t.flat){var n,r=t&&t.escape||"___",o=e[0];if(!o)return"";for(var i=RegExp("\\"+r+"([0-9]+)\\"+r),a=0;o!=n;){if(a++>1e4)throw Error("Circular references in "+e);n=o,o=o.replace(i,l)}return o}return e.reduce(function e(t,n){return Array.isArray(n)&&(n=n.reduce(e,"")),t+n},"");function l(t,n){if(null==e[n])throw Error("Reference "+n+"is undefined");return e[n]}}function r(e,r){return Array.isArray(e)?n(e,r):t(e,r)}r.parse=t,r.stringify=n,e.exports=r},68108:function(e){"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&n!==r&&n}},18309:function(e,t,n){"use strict";var r=n(93562),o=n(71216),i=n(61278),a=n(48833),l=n(65279),s=n(68108);e.exports=function(e,t){var n,i,a={};for(i in t||(t={}),p)n=t[i],a[i]=null==n?p[i]:n;return(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start),function(e,t){var n,i,a,p,w,E,k,C,S,M,O,A,_,T,R,z,L,I,H,N=t.additional,P=t.nonTerminated,D=t.text,j=t.reference,B=t.warning,F=t.textContext,V=t.referenceContext,$=t.warningContext,W=t.position,U=t.indent||[],Z=e.length,G=0,K=-1,Y=W.column||1,q=W.line||1,X="",J=[];for("string"==typeof N&&(N=N.charCodeAt(0)),z=Q(),C=B?function(e,t){var n=Q();n.column+=t,n.offset+=t,B.call($,b[e],n,e)}:d,G--,Z++;++G<Z;)if(10===w&&(Y=U[K]||1),38===(w=e.charCodeAt(G))){if(9===(k=e.charCodeAt(G+1))||10===k||12===k||32===k||38===k||60===k||k!=k||N&&k===N){X+=c(w),Y++;continue}for(A=_=G+1,H=_,35===k?(H=++A,88===(k=e.charCodeAt(H))||120===k?(T=f,H=++A):T=m):T=h,n="",O="",p="",R=v[T],H--;++H<Z&&R(k=e.charCodeAt(H));)p+=c(k),T===h&&u.call(r,p)&&(n=p,O=r[p]);(a=59===e.charCodeAt(H))&&(H++,(i=T===h&&s(p))&&(n=p,O=i)),I=1+H-_,(a||P)&&(p?T===h?(a&&!O?C(5,1):(n!==p&&(I=1+(H=A+n.length)-A,a=!1),a||(S=n?1:3,t.attribute?61===(k=e.charCodeAt(H))?(C(S,I),O=null):l(k)?O=null:C(S,I):C(S,I))),E=O):(a||C(2,I),E=parseInt(p,g[T]),y(E)?(C(7,I),E=c(65533)):E in o?(C(6,I),E=o[E]):(M="",x(E)&&C(6,I),E>65535&&(E-=65536,M+=c(E>>>10|55296),E=56320|1023&E),E=M+c(E))):T!==h&&C(4,I)),E?(ee(),z=Q(),G=H-1,Y+=H-_+1,J.push(E),L=Q(),L.offset++,j&&j.call(V,E,{start:z,end:L},e.slice(_-1,H)),z=L):(X+=p=e.slice(_-1,H),Y+=p.length,G=H-1)}else 10===w&&(q++,K++,Y=0),w==w?(X+=c(w),Y++):ee();return J.join("");function Q(){return{line:q,column:Y,offset:G+(W.offset||0)}}function ee(){X&&(J.push(X),D&&D.call(F,X,{start:z,end:Q()}),X="")}}(e,a)};var u={}.hasOwnProperty,c=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},h="named",f="hexadecimal",m="decimal",g={};g[f]=16,g[m]=10;var v={};v[h]=l,v[m]=i,v[f]=a;var b={};function y(e){return e>=55296&&e<=57343||e>1114111}function x(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(65535&e)==65535||(65535&e)==65534}b[1]="Named character references must be terminated by a semicolon",b[2]="Numeric character references must be terminated by a semicolon",b[3]="Named character references cannot be empty",b[4]="Numeric character references cannot be empty",b[5]="Named character references must be known",b[6]="Numeric character references cannot be disallowed",b[7]="Numeric character references cannot be outside the permissible Unicode range"},41643:function(e){"use strict";var t=/^(-?\d?\.?\d+)e([\+\-]\d)+/;e.exports=function(e){var n=e.match(t);if(!n)throw Error("Invalid exponential");return n.slice(1)}},52379:function(e,t,n){"use strict";var r=n(69694),o=n(41643);e.exports=function(e){if(!r(e))throw Error("Value must be a finite number");var t=o(e.toExponential()),n=t[0],i=parseInt(t[1],10),a=(n.split(".")[1]||"").length;return!a&&i>0?0:a+-1*i}},53712:function(e,t,n){var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(n[i=o.util.objId(t)])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":if(n[i=o.util.objId(t)])return n[i];return r=[],n[i]=r,t.forEach(function(t,o){r[o]=e(t,n)}),r;default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var l in i)if(i.hasOwnProperty(l)){if(l==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(l)||(a[l]=i[l])}var u=r[e];return r[e]=a,o.languages.DFS(o.languages,function(t,n){n===u&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],r||l);var s=t[l],u=o.util.type(s);"Object"!==u||i[a(s)]?"Array"!==u||i[a(s)]||(i[a(s)]=!0,e(s,n,l,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=o.util.getLanguage(t),a=o.languages[i];o.util.setLanguage(t,i);var l=t.parentElement;l&&"pre"===l.nodeName.toLowerCase()&&o.util.setLanguage(l,i);var s=t.textContent,u={element:t,language:i,grammar:a,code:s};function c(e){u.highlightedCode=e,o.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,o.hooks.run("after-highlight",u),o.hooks.run("complete",u),r&&r.call(u.element)}if(o.hooks.run("before-sanity-check",u),(l=u.element.parentElement)&&"pre"===l.nodeName.toLowerCase()&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!u.code){o.hooks.run("complete",u),r&&r.call(u.element);return}if(o.hooks.run("before-highlight",u),!u.grammar){c(o.util.encode(u.code));return}if(n&&e.Worker){var d=new Worker(o.filename);d.onmessage=function(e){c(e.data)},d.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else c(o.highlight(u.code,u.grammar,u.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(o.hooks.run("before-tokenize",r),!r.grammar)throw Error('The language "'+r.language+'" has no grammar.');return r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var c=new l;return s(c,c.head,e),function e(t,n,r,l,c,d){for(var p in r)if(r.hasOwnProperty(p)&&r[p]){var h=r[p];h=Array.isArray(h)?h:[h];for(var f=0;f<h.length;++f){if(d&&d.cause==p+","+f)return;var m=h[f],g=m.inside,v=!!m.lookbehind,b=!!m.greedy,y=m.alias;if(b&&!m.pattern.global){var x=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,x+"g")}for(var w=m.pattern||m,E=l.next,k=c;E!==n.tail&&(!d||!(k>=d.reach));k+=E.value.length,E=E.next){var C,S=E.value;if(n.length>t.length)return;if(!(S instanceof i)){var M=1;if(b){if(!(C=a(w,k,t,v))||C.index>=t.length)break;var O=C.index,A=C.index+C[0].length,_=k;for(_+=E.value.length;O>=_;)_+=(E=E.next).value.length;if(_-=E.value.length,k=_,E.value instanceof i)continue;for(var T=E;T!==n.tail&&(_<A||"string"==typeof T.value);T=T.next)M++,_+=T.value.length;M--,S=t.slice(k,_),C.index-=k}else if(!(C=a(w,0,S,v)))continue;var O=C.index,R=C[0],z=S.slice(0,O),L=S.slice(O+R.length),I=k+S.length;d&&I>d.reach&&(d.reach=I);var H=E.prev;z&&(H=s(n,H,z),k+=z.length),u(n,H,M);var N=new i(p,g?o.tokenize(R,g):R,y,R);if(E=s(n,H,N),L&&s(n,E,L),M>1){var P={cause:p+","+f,reach:I};e(t,n,r,E.prev,k,P),d&&P.reach>d.reach&&(d.reach=P.reach)}}}}}}(e,c,t,c.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(c)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var l="";for(var s in i.attributes)l+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+l+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener&&(o.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()},!1)),o;var c=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(c&&(o.filename=c.src,c.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&c&&c.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},26947:function(e,t){"use strict";var n=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,!n&&(n=requestAnimationFrame(function(){n=null,e.apply(void 0,t)}))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};t.Z=n},6226:function(e,t,n){"use strict";n.d(t,{xS:function(){return o0},e8:function(){return ie}});var r=n(2784),o=n(7151),i=function(e,t,n,r,o){var i=o.clientWidth,a=o.clientHeight,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=l-(o.getBoundingClientRect().left+window.pageXOffset),c=s-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var d=void 0;if(d=c<0?0:c>a?1:Math.round(100*c/a)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var p=void 0;if(r!==(p=u<0?0:u>i?1:Math.round(100*u/i)/100))return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}return null},a={},l=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var i=o.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,o.width,o.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),o.toDataURL()):null},s=function(e,t,n,r){var o=e+"-"+t+"-"+n+(r?"-server":"");if(a[o])return a[o];var i=l(e,t,n,r);return a[o]=i,i},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(e){var t=e.white,n=e.grey,i=e.size,a=e.renderers,l=e.borderRadius,c=e.boxShadow,d=e.children,p=(0,o.ZP)({default:{grid:{borderRadius:l,boxShadow:c,absolute:"0px 0px 0px 0px",background:"url("+s(t,n,i,a.canvas)+") center left"}}});return(0,r.isValidElement)(d)?r.cloneElement(d,u({},d.props,{style:u({},d.props.style,p.grid)})):r.createElement("div",{style:p.grid})};c.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function h(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var f=function(e){function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);for(var e,n,r,o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=h(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e){var t=i(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},h(r,n)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),p(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,o.ZP)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:d({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return r.createElement("div",{style:n.alpha},r.createElement("div",{style:n.checkboard},r.createElement(c,{renderers:this.props.renderers})),r.createElement("div",{style:n.gradient}),r.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("div",{style:n.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:n.slider}))))}}]),t}(r.PureComponent||r.Component),m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g=[38,40],v=1,b=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r,o=Number(String(t=e.target.value).replace(/%/g,""));if(!isNaN(o)&&(r=e.keyCode,g.indexOf(r)>-1)){var i=n.getArrowOffset(),a=38===e.keyCode?o+i:o-i;n.setUpdatedValue(a,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+v++,n}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),m(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value!==this.state.value&&(e.value!==this.props.value||t.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){var t,n,r;return t={},(n=this.props.label)in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,o.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return r.createElement("div",{style:t.wrap},r.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?r.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(r.PureComponent||r.Component),y=function(e,t,n,r){var o=r.clientWidth,i=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c=void 0;if(c=u<0?359:u>i?0:360*(-(100*u/i)+100)/100,n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d=void 0;if(d=s<0?0:s>o?359:360*(100*s/o)/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},x=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function w(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var E=function(e){function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);for(var e,n,r,o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=w(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleChange=function(e){var t=y(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},w(r,n)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),x(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,i=(0,o.ZP)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(100*this.props.hsl.h/360)+100+"%"}}},{vertical:"vertical"===n});return r.createElement("div",{style:i.hue},r.createElement("div",{className:"hue-"+n,style:i.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("style",null,"\n            .hue-horizontal {\n              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n\n            .hue-vertical {\n              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n          "),r.createElement("div",{style:i.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:i.slider}))))}}]),t}(r.PureComponent||r.Component),k=n(13980),C=n.n(k),S=function(){this.__data__=[],this.size=0},M=function(e,t){return e===t||e!=e&&t!=t},O=function(e,t){for(var n=e.length;n--;)if(M(e[n][0],t))return n;return -1},A=Array.prototype.splice,_=function(e){var t=this.__data__,n=O(t,e);return!(n<0)&&(n==t.length-1?t.pop():A.call(t,n,1),--this.size,!0)},T=function(e){var t=this.__data__,n=O(t,e);return n<0?void 0:t[n][1]},R=function(e){return O(this.__data__,e)>-1},z=function(e,t){var n=this.__data__,r=O(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function L(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}L.prototype.clear=S,L.prototype.delete=_,L.prototype.get=T,L.prototype.has=R,L.prototype.set=z;var I,H=function(){this.__data__=new L,this.size=0},N=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},P=function(e){return this.__data__.get(e)},D=function(e){return this.__data__.has(e)},j="object"==typeof global&&global&&global.Object===Object&&global,B="object"==typeof self&&self&&self.Object===Object&&self,F=j||B||Function("return this")(),V=F.Symbol,$=Object.prototype,W=$.hasOwnProperty,U=$.toString,Z=V?V.toStringTag:void 0,G=function(e){var t=W.call(e,Z),n=e[Z];try{e[Z]=void 0;var r=!0}catch(o){}var i=U.call(e);return r&&(t?e[Z]=n:delete e[Z]),i},K=Object.prototype.toString,Y=V?V.toStringTag:void 0,q=function(e){var t;return null==e?void 0===e?"[object Undefined]":"[object Null]":Y&&Y in Object(e)?G(e):K.call(e)},X=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},J=function(e){if(!X(e))return!1;var t=q(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Q=F["__core-js_shared__"],ee=(I=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"",et=Function.prototype.toString,en=function(e){if(null!=e){try{return et.call(e)}catch(t){}try{return e+""}catch(n){}}return""},er=/^\[object .+?Constructor\]$/,eo=Function.prototype,ei=Object.prototype,ea=eo.toString,el=ei.hasOwnProperty,es=RegExp("^"+ea.call(el).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eu=function(e){var t;return!!X(e)&&(!ee||!(ee in e))&&(J(e)?es:er).test(en(e))},ec=function(e,t){var n,r,o=null==e?void 0:e[t];return eu(o)?o:void 0},ed=ec(F,"Map"),ep=ec(Object,"create"),eh=function(){this.__data__=ep?ep(null):{},this.size=0},ef=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},em=Object.prototype.hasOwnProperty,eg=function(e){var t=this.__data__;if(ep){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return em.call(t,e)?t[e]:void 0},ev=Object.prototype.hasOwnProperty,eb=function(e){var t=this.__data__;return ep?void 0!==t[e]:ev.call(t,e)},ey=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ep&&void 0===t?"__lodash_hash_undefined__":t,this};function ex(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ex.prototype.clear=eh,ex.prototype.delete=ef,ex.prototype.get=eg,ex.prototype.has=eb,ex.prototype.set=ey;var ew=function(){this.size=0,this.__data__={hash:new ex,map:new(ed||L),string:new ex}},eE=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},ek=function(e,t){var n=e.__data__;return eE(t)?n["string"==typeof t?"string":"hash"]:n.map},eC=function(e){var t=ek(this,e).delete(e);return this.size-=t?1:0,t},eS=function(e){return ek(this,e).get(e)},eM=function(e){return ek(this,e).has(e)},eO=function(e,t){var n=ek(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function eA(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}eA.prototype.clear=ew,eA.prototype.delete=eC,eA.prototype.get=eS,eA.prototype.has=eM,eA.prototype.set=eO;var e_=function(e,t){var n=this.__data__;if(n instanceof L){var r=n.__data__;if(!ed||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new eA(r)}return n.set(e,t),this.size=n.size,this};function eT(e){var t=this.__data__=new L(e);this.size=t.size}eT.prototype.clear=H,eT.prototype.delete=N,eT.prototype.get=P,eT.prototype.has=D,eT.prototype.set=e_;var eR=function(){try{var e=ec(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),ez=function(e,t,n){"__proto__"==t&&eR?eR(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},eL=function(e,t,n){(void 0===n||M(e[t],n))&&(void 0!==n||t in e)||ez(e,t,n)},eI=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var l=i[++r];if(!1===t(o[l],l,o))break}return e},eH="object"==typeof exports&&exports&&!exports.nodeType&&exports,eN=eH&&"object"==typeof module&&module&&!module.nodeType&&module,eP=eN&&eN.exports===eH?F.Buffer:void 0,eD=eP?eP.allocUnsafe:void 0,ej=function(e,t){if(t)return e.slice();var n=e.length,r=eD?eD(n):new e.constructor(n);return e.copy(r),r},eB=F.Uint8Array,eF=function(e){var t=new e.constructor(e.byteLength);return new eB(t).set(new eB(e)),t},eV=function(e,t){var n=t?eF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},e$=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},eW=Object.create,eU=function(){function e(){}return function(t){if(!X(t))return{};if(eW)return eW(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),eZ=function(e,t){return function(n){return e(t(n))}},eG=eZ(Object.getPrototypeOf,Object),eK=Object.prototype,eY=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eK)},eq=function(e){return null!=e&&"object"==typeof e},eX=function(e){return eq(e)&&"[object Arguments]"==q(e)},eJ=Object.prototype,eQ=eJ.hasOwnProperty,e0=eJ.propertyIsEnumerable,e1=eX(function(){return arguments}())?eX:function(e){return eq(e)&&eQ.call(e,"callee")&&!e0.call(e,"callee")},e2=Array.isArray,e5=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},e4=function(e){return null!=e&&e5(e.length)&&!J(e)};function e3(){return!1}var e7,e6="object"==typeof exports&&exports&&!exports.nodeType&&exports,e8=e6&&"object"==typeof module&&module&&!module.nodeType&&module,e9=e8&&e8.exports===e6?F.Buffer:void 0,te=(e9?e9.isBuffer:void 0)||e3,tt=Function.prototype,tn=Object.prototype,tr=tt.toString,to=tn.hasOwnProperty,ti=tr.call(Object),ta=function(e){if(!eq(e)||"[object Object]"!=q(e))return!1;var t=eG(e);if(null===t)return!0;var n=to.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&tr.call(n)==ti},tl={};tl["[object Float32Array]"]=tl["[object Float64Array]"]=tl["[object Int8Array]"]=tl["[object Int16Array]"]=tl["[object Int32Array]"]=tl["[object Uint8Array]"]=tl["[object Uint8ClampedArray]"]=tl["[object Uint16Array]"]=tl["[object Uint32Array]"]=!0,tl["[object Arguments]"]=tl["[object Array]"]=tl["[object ArrayBuffer]"]=tl["[object Boolean]"]=tl["[object DataView]"]=tl["[object Date]"]=tl["[object Error]"]=tl["[object Function]"]=tl["[object Map]"]=tl["[object Number]"]=tl["[object Object]"]=tl["[object RegExp]"]=tl["[object Set]"]=tl["[object String]"]=tl["[object WeakMap]"]=!1;var ts,tu=function(e){return eq(e)&&e5(e.length)&&!!tl[q(e)]},tc="object"==typeof exports&&exports&&!exports.nodeType&&exports,td=tc&&"object"==typeof module&&module&&!module.nodeType&&module,tp=td&&td.exports===tc&&j.process,th=function(){try{var e=td&&td.require&&td.require("util").types;if(e)return e;return tp&&tp.binding&&tp.binding("util")}catch(t){}}(),tf=th&&th.isTypedArray,tm=tf?function(e){return tf(e)}:tu,tg=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},tv=Object.prototype.hasOwnProperty,tb=function(e,t,n){var r=e[t];tv.call(e,t)&&M(r,n)&&(void 0!==n||t in e)||ez(e,t,n)},ty=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],s=r?r(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),o?ez(n,l,s):tb(n,l,s)}return n},tx=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},tw=/^(?:0|[1-9]\d*)$/,tE=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&tw.test(e))&&e>-1&&e%1==0&&e<t},tk=Object.prototype.hasOwnProperty,tC=function(e,t){var n=e2(e),r=!n&&e1(e),o=!n&&!r&&te(e),i=!n&&!r&&!o&&tm(e),a=n||r||o||i,l=a?tx(e.length,String):[],s=l.length;for(var u in e)(t||tk.call(e,u))&&!(a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||tE(u,s)))&&l.push(u);return l},tS=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},tM=Object.prototype.hasOwnProperty,tO=function(e){if(!X(e))return tS(e);var t=eY(e),n=[];for(var r in e)"constructor"==r&&(t||!tM.call(e,r))||n.push(r);return n},tA=function(e){return e4(e)?tC(e,!0):tO(e)},t_=function(e,t,n,r,o,i,a){var l=tg(e,n),s=tg(t,n),u=a.get(s);if(u){eL(e,n,u);return}var c=i?i(l,s,n+"",e,t,a):void 0,d=void 0===c;if(d){var p,h,f,m=e2(s),g=!m&&te(s),v=!m&&!g&&tm(s);(c=s,m||g||v)?e2(l)?c=l:(p=l,eq(p)&&e4(p))?c=e$(l):g?(d=!1,c=ej(s,!0)):v?(d=!1,c=eV(s,!0)):c=[]:ta(s)||e1(s)?(c=l,e1(l))?(h=l,c=ty(h,tA(h))):(!X(l)||J(l))&&(c="function"!=typeof(f=s).constructor||eY(f)?{}:eU(eG(f))):d=!1}d&&(a.set(s,c),o(c,s,r,i,a),a.delete(s)),eL(e,n,c)};function tT(e){return e}var tR,tz,tL,tI,tH=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},tN=Math.max,tP=Date.now,tD=(tR=eR?function(e,t){var n;return eR(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:tT,tz=0,tL=0,function(){var e=tP(),t=16-(e-tL);if(tL=e,t>0){if(++tz>=800)return arguments[0]}else tz=0;return tR.apply(void 0,arguments)}),tj=function(e,t){var n,r,o;return tD((r=tN(void 0===(r=t)?e.length-1:r,0),function(){for(var t=arguments,n=-1,o=tN(t.length-r,0),i=Array(o);++n<o;)i[n]=t[r+n];n=-1;for(var a=Array(r+1);++n<r;)a[n]=t[n];return a[r]=function(e){return e}(i),tH(e,this,a)}),e+"")},tB=function(e,t,n){if(!X(n))return!1;var r=typeof t;return("number"==r?!!(e4(n)&&tE(t,n.length)):"string"==r&&t in n)&&M(n[t],e)},tF=(tI=function(e,t,n){(function e(t,n,r,o,i){t!==n&&eI(n,function(a,l){if(i||(i=new eT),X(a))t_(t,n,l,r,e,o,i);else{var s=o?o(tg(t,l),a,l+"",t,n,i):void 0;void 0===s&&(s=a),eL(t,l,s)}},tA)})(e,t,n)},tj(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=tI.length>3&&"function"==typeof o?(r--,o):void 0,i&&tB(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&tI(e,a,n,o)}return e})),tV=function(e){var t=e.zDepth,n=e.radius,i=e.background,a=e.children,l=e.styles,s=(0,o.ZP)(tF({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},void 0===l?{}:l),{"zDepth-1":1===t});return r.createElement("div",{style:s.wrap},r.createElement("div",{style:s.bg}),r.createElement("div",{style:s.content},a))};tV.propTypes={background:C().string,zDepth:C().oneOf([0,1,2,3,4,5]),radius:C().number,styles:C().object},tV.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var t$,tW,tU=function(){return F.Date.now()},tZ=/\s/,tG=function(e){for(var t=e.length;t--&&tZ.test(e.charAt(t)););return t},tK=/^\s+/,tY=function(e){return"symbol"==typeof e||eq(e)&&"[object Symbol]"==q(e)},tq=0/0,tX=/^[-+]0x[0-9a-f]+$/i,tJ=/^0b[01]+$/i,tQ=/^0o[0-7]+$/i,t0=parseInt,t1=function(e){if("number"==typeof e)return e;if(tY(e))return tq;if(X(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=X(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,tG(t)+1).replace(tK,""):t;var r=tJ.test(e);return r||tQ.test(e)?t0(e.slice(2),r?2:8):tX.test(e)?tq:+e},t2=Math.max,t5=Math.min,t4=function(e,t,n){var r,o,i,a,l,s,u=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function h(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function f(e){var n=e-s,r=e-u;return void 0===s||n>=t||n<0||d&&r>=i}function m(){var e,n,r,o,a=tU();if(f(a))return g(a);l=setTimeout(m,(n=a-s,r=a-u,o=t-n,d?t5(o,i-r):o))}function g(e){return(l=void 0,p&&r)?h(e):(r=o=void 0,a)}function v(){var e,n=tU(),i=f(n);if(r=arguments,o=this,s=n,i){if(void 0===l)return u=e=s,l=setTimeout(m,t),c?h(e):a;if(d)return clearTimeout(l),l=setTimeout(m,t),h(s)}return void 0===l&&(l=setTimeout(m,t)),a}return t=t1(t)||0,X(n)&&(c=!!n.leading,i=(d="maxWait"in n)?t2(t1(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=s=o=l=void 0},v.flush=function(){return void 0===l?a:g(tU())},v},t3=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return X(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),t4(e,t,{leading:r,maxWait:t,trailing:o})},t7=function(e,t,n){var r=n.getBoundingClientRect(),o=r.width,i=r.height,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=a-(n.getBoundingClientRect().left+window.pageXOffset),u=l-(n.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),u<0?u=0:u>i&&(u=i);var c=s/o,d=1-u/i;return{h:t.h,s:c,v:d,a:t.a,source:"hsv"}},t6=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t8=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,t7(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=t3(function(e,t,n){e(t,n)},50),n}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t6(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,i=t.white,a=t.black,l=t.pointer,s=t.circle,u=(0,o.ZP)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(100*this.props.hsv.v)+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n            0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:i,black:a,pointer:l,circle:s}},{custom:!!this.props.style});return r.createElement("div",{style:u.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("style",null,"\n          .saturation-white {\n            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n            background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n          }\n          .saturation-black {\n            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n            background: linear-gradient(to top, #000, rgba(0,0,0,0));\n          }\n        "),r.createElement("div",{style:u.white,className:"saturation-white"},r.createElement("div",{style:u.black,className:"saturation-black"}),r.createElement("div",{style:u.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:u.circle}))))}}]),t}(r.PureComponent||r.Component),t9=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},ne=eZ(Object.keys,Object),nt=Object.prototype.hasOwnProperty,nn=function(e){if(!eY(e))return ne(e);var t=[];for(var n in Object(e))nt.call(e,n)&&"constructor"!=n&&t.push(n);return t},nr=function(e){return e4(e)?tC(e):nn(e)},no=function(e,t){return e&&eI(e,t,nr)},ni=function(e,t){if(null==e)return e;if(!e4(e))return no(e,t);for(var n=e.length,r=tW?n:-1,o=Object(e);(tW?r--:++r<n)&&!1!==t(o[r],r,o););return e},na=function(e,t){var n;return(e2(e)?t9:ni)(e,"function"==typeof t?t:tT)};function nl(e){return(nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ns=/^\s+/,nu=/\s+$/;function nc(e,t){if(e=e||"",t=t||{},e instanceof nc)return e;if(!(this instanceof nc))return new nc(e,t);var n,r,o,i,a,l,s,u,c,d,p,h,f,m,g,v,b,y,x,w,E,k,C,S=(n=e,r={r:0,g:0,b:0},o=1,i=null,a=null,l=null,s=!1,u=!1,"string"==typeof n&&(n=function(e){e=e.replace(ns,"").replace(nu,"").toLowerCase();var t,n=!1;if(nO[e])e=nO[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=nB.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=nB.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=nB.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=nB.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=nB.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=nB.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=nB.hex8.exec(e))?{r:nz(t[1]),g:nz(t[2]),b:nz(t[3]),a:nN(t[4]),format:n?"name":"hex8"}:(t=nB.hex6.exec(e))?{r:nz(t[1]),g:nz(t[2]),b:nz(t[3]),format:n?"name":"hex"}:(t=nB.hex4.exec(e))?{r:nz(t[1]+""+t[1]),g:nz(t[2]+""+t[2]),b:nz(t[3]+""+t[3]),a:nN(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=nB.hex3.exec(e))&&{r:nz(t[1]+""+t[1]),g:nz(t[2]+""+t[2]),b:nz(t[3]+""+t[3]),format:n?"name":"hex"}}(n)),"object"==nl(n)&&(nF(n.r)&&nF(n.g)&&nF(n.b)?(c=n.r,d=n.g,p=n.b,r={r:255*nT(c,255),g:255*nT(d,255),b:255*nT(p,255)},s=!0,u="%"===String(n.r).substr(-1)?"prgb":"rgb"):nF(n.h)&&nF(n.s)&&nF(n.v)?(i=nI(n.s),a=nI(n.v),h=n.h,f=i,m=a,h=6*nT(h,360),f=nT(f,100),m=nT(m,100),g=Math.floor(h),v=h-g,b=m*(1-f),y=m*(1-v*f),x=m*(1-(1-v)*f),E=[m,y,b,b,x,m][w=g%6],k=[x,m,m,y,b,b][w],r={r:255*E,g:255*k,b:255*(C=[b,b,x,m,m,y][w])},s=!0,u="hsv"):nF(n.h)&&nF(n.s)&&nF(n.l)&&(i=nI(n.s),l=nI(n.l),r=function(e,t,n){var r,o,i;function a(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=nT(e,360),t=nT(t,100),n=nT(n,100),0===t)r=o=i=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=a(s,l,e+1/3),o=a(s,l,e),i=a(s,l,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(n.h,i,l),s=!0,u="hsl"),n.hasOwnProperty("a")&&(o=n.a)),o=n_(o),{ok:s,format:n.format||u,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:o});this._originalInput=e,this._r=S.r,this._g=S.g,this._b=S.b,this._a=S.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||S.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=S.ok}function nd(e,t,n){e=nT(e,255),t=nT(t,255),n=nT(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),l=(i+a)/2;if(i==a)r=o=0;else{var s=i-a;switch(o=l>.5?s/(2-i-a):s/(i+a),i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,l:l}}function np(e,t,n){e=nT(e,255),t=nT(t,255),n=nT(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),l=i-a;if(o=0===i?0:l/i,i==a)r=0;else{switch(i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:i}}function nh(e,t,n,r){var o=[nL(Math.round(e).toString(16)),nL(Math.round(t).toString(16)),nL(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function nf(e,t,n,r){return[nL(nH(r)),nL(Math.round(e).toString(16)),nL(Math.round(t).toString(16)),nL(Math.round(n).toString(16))].join("")}function nm(e,t){t=0===t?0:t||10;var n=nc(e).toHsl();return n.s-=t/100,n.s=nR(n.s),nc(n)}function ng(e,t){t=0===t?0:t||10;var n=nc(e).toHsl();return n.s+=t/100,n.s=nR(n.s),nc(n)}function nv(e){return nc(e).desaturate(100)}function nb(e,t){t=0===t?0:t||10;var n=nc(e).toHsl();return n.l+=t/100,n.l=nR(n.l),nc(n)}function ny(e,t){t=0===t?0:t||10;var n=nc(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(255*(t/100))))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(255*(t/100))))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(255*(t/100))))),nc(n)}function nx(e,t){t=0===t?0:t||10;var n=nc(e).toHsl();return n.l-=t/100,n.l=nR(n.l),nc(n)}function nw(e,t){var n=nc(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,nc(n)}function nE(e){var t=nc(e).toHsl();return t.h=(t.h+180)%360,nc(t)}function nk(e,t){if(isNaN(t)||t<=0)throw Error("Argument to polyad must be a positive number");for(var n=nc(e).toHsl(),r=[nc(e)],o=360/t,i=1;i<t;i++)r.push(nc({h:(n.h+i*o)%360,s:n.s,l:n.l}));return r}function nC(e){var t=nc(e).toHsl(),n=t.h;return[nc(e),nc({h:(n+72)%360,s:t.s,l:t.l}),nc({h:(n+216)%360,s:t.s,l:t.l})]}function nS(e,t,n){t=t||6,n=n||30;var r=nc(e).toHsl(),o=360/n,i=[nc(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(nc(r));return i}function nM(e,t){t=t||6;for(var n=nc(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(nc({h:r,s:o,v:i})),i=(i+l)%1;return a}nc.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r,o,i=this.toRgb();return e=i.r/255,t=i.g/255,n=i.b/255,r=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4),.2126*r+.7152*(o=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=n_(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=np(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=np(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=nd(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=nd(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return nh(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t,n,r,o,i,a;return t=this._r,n=this._g,r=this._b,o=this._a,i=e,a=[nL(Math.round(t).toString(16)),nL(Math.round(n).toString(16)),nL(Math.round(r).toString(16)),nL(nH(o))],i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*nT(this._r,255))+"%",g:Math.round(100*nT(this._g,255))+"%",b:Math.round(100*nT(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*nT(this._r,255))+"%, "+Math.round(100*nT(this._g,255))+"%, "+Math.round(100*nT(this._b,255))+"%)":"rgba("+Math.round(100*nT(this._r,255))+"%, "+Math.round(100*nT(this._g,255))+"%, "+Math.round(100*nT(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&!!nA[nh(this._r,this._g,this._b,!0)]},toFilter:function(e){var t="#"+nf(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=nc(e);n="#"+nf(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return nc(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(nb,arguments)},brighten:function(){return this._applyModification(ny,arguments)},darken:function(){return this._applyModification(nx,arguments)},desaturate:function(){return this._applyModification(nm,arguments)},saturate:function(){return this._applyModification(ng,arguments)},greyscale:function(){return this._applyModification(nv,arguments)},spin:function(){return this._applyModification(nw,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(nS,arguments)},complement:function(){return this._applyCombination(nE,arguments)},monochromatic:function(){return this._applyCombination(nM,arguments)},splitcomplement:function(){return this._applyCombination(nC,arguments)},triad:function(){return this._applyCombination(nk,[3])},tetrad:function(){return this._applyCombination(nk,[4])}},nc.fromRatio=function(e,t){if("object"==nl(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&("a"===r?n[r]=e[r]:n[r]=nI(e[r]));e=n}return nc(e,t)},nc.equals=function(e,t){return!!e&&!!t&&nc(e).toRgbString()==nc(t).toRgbString()},nc.random=function(){return nc.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},nc.mix=function(e,t,n){n=0===n?0:n||50;var r=nc(e).toRgb(),o=nc(t).toRgb(),i=n/100;return nc({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},nc.readability=function(e,t){var n=nc(e),r=nc(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},nc.isReadable=function(e,t,n){var r,o,i,a,l,s=nc.readability(e,t);switch(o=!1,(r=(a=((i=(i=n)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),l=(i.size||"small").toLowerCase(),"AA"!==a&&"AAA"!==a&&(a="AA"),"small"!==l&&"large"!==l&&(l="small"),{level:a,size:l})).level+r.size){case"AAsmall":case"AAAlarge":o=s>=4.5;break;case"AAlarge":o=s>=3;break;case"AAAsmall":o=s>=7}return o},nc.mostReadable=function(e,t,n){var r,o,i,a,l=null,s=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var u=0;u<t.length;u++)(r=nc.readability(e,t[u]))>s&&(s=r,l=nc(t[u]));return nc.isReadable(e,l,{level:i,size:a})||!o?l:(n.includeFallbackColors=!1,nc.mostReadable(e,["#fff","#000"],n))};var nO=nc.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},nA=nc.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(nO);function n_(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function nT(e,t){n=e,"string"==typeof n&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var n,r,o=(r=e,"string"==typeof r&&-1!=r.indexOf("%"));return(e=Math.min(t,Math.max(0,parseFloat(e))),o&&(e=parseInt(e*t,10)/100),1e-6>Math.abs(e-t))?1:e%t/parseFloat(t)}function nR(e){return Math.min(1,Math.max(0,e))}function nz(e){return parseInt(e,16)}function nL(e){return 1==e.length?"0"+e:""+e}function nI(e){return e<=1&&(e=100*e+"%"),e}function nH(e){return Math.round(255*parseFloat(e)).toString(16)}function nN(e){return nz(e)/255}var nP,nD,nj,nB=(nD="[\\s|\\(]+("+(nP="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+nP+")[,|\\s]+("+nP+")\\s*\\)?",nj="[\\s|\\(]+("+nP+")[,|\\s]+("+nP+")[,|\\s]+("+nP+")[,|\\s]+("+nP+")\\s*\\)?",{CSS_UNIT:RegExp(nP),rgb:RegExp("rgb"+nD),rgba:RegExp("rgba"+nj),hsl:RegExp("hsl"+nD),hsla:RegExp("hsla"+nj),hsv:RegExp("hsv"+nD),hsva:RegExp("hsva"+nj),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function nF(e){return!!nB.CSS_UNIT.exec(e)}var nV=function(e){var t=0,n=0;return na(["r","g","b","a","h","s","l","v"],function(r){e[r]&&(t+=1,isNaN(e[r])||(n+=1),("s"===r||"l"===r)&&/^\d+%$/.test(e[r])&&(n+=1))}),t===n&&e},n$=function(e,t){var n=e.hex?nc(e.hex):nc(e),r=n.toHsl(),o=n.toHsv(),i=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===a&&0===i.a?"transparent":"#"+a,rgb:i,hsv:o,oldHue:e.h||t||r.h,source:e.source}},nW=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&nc(e).isValid()},nU=function(e){if(!e)return"#fff";var t=n$(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},nZ=function(e,t){return nc(t+" ("+e.replace("\xb0","")+")")._ok},nG=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nK=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),nY=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(nV(e)){var r=n$(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(nV(e)){var r=n$(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=nG({},n$(e.color,0)),t.debounce=t4(function(e,t,n){e(t,n)},100),t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),nK(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),r.createElement(e,nG({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return nG({},n$(e.color,t.oldHue))}}]),n}(r.PureComponent||r.Component);return t.propTypes=nG({},e.propTypes),t.defaultProps=nG({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t},nq=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nX=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function nJ(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var nQ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n0=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o);for(var e,t,n,r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=n=nJ(this,(e=o.__proto__||Object.getPrototypeOf(o)).call.apply(e,[this].concat(i))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},nJ(n,t)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),nX(o,[{key:"render",value:function(){return r.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},r.createElement(e,nq({},this.props,this.state)))}}]),o}(r.Component)}(function(e){var t=e.color,n=e.style,i=e.onClick,a=void 0===i?function(){}:i,l=e.onHover,s=e.title,u=e.children,d=e.focus,p=e.focusStyle,h=(0,o.ZP)({default:{swatch:nQ({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,d?void 0===p?{}:p:{})}}),f=function(e){return a(t,e)},m=function(e){return 13===e.keyCode&&a(t,e)},g=function(e){return l(t,e)},v={};return l&&(v.onMouseOver=g),r.createElement("div",nQ({style:h.swatch,onClick:f,title:void 0===s?t:s,tabIndex:0,onKeyDown:m},v),u,"transparent"===t&&r.createElement(c,{borderRadius:h.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))}),n1=function(e){var t=e.direction,n=(0,o.ZP)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.createElement("div",{style:n.picker})},n2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n5=function(e){var t=e.rgb,n=e.hsl,i=e.width,a=e.height,l=e.onChange,s=e.direction,u=e.style,c=e.renderers,d=e.pointer,p=e.className,h=(0,o.ZP)({default:{picker:{position:"relative",width:i,height:a},alpha:{radius:"2px",style:u}}});return r.createElement("div",{style:h.picker,className:"alpha-picker "+(void 0===p?"":p)},r.createElement(f,n2({},h.alpha,{rgb:t,hsl:n,pointer:d,renderers:c,onChange:l,direction:s})))};n5.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:n1},nY(n5);var n4=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},n3=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},n7=function(e){return this.__data__.has(e)};function n6(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new eA;++t<n;)this.add(e[t])}n6.prototype.add=n6.prototype.push=n3,n6.prototype.has=n7;var n8=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},n9=function(e,t,n,r,o,i){var a=1&n,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,h=2&n?new n6:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var f=e[d],m=t[d];if(r)var g=a?r(m,f,d,t,e,i):r(f,m,d,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(h){if(!n8(t,function(e,t){var a,l;if(!h.has(t)&&(f===e||o(f,e,n,r,i)))return h.push(t)})){p=!1;break}}else if(!(f===m||o(f,m,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p},re=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n},rt=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},rn=V?V.prototype:void 0,rr=rn?rn.valueOf:void 0,ro=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!i(new eB(e),new eB(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return M(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=re;case"[object Set]":if(l||(l=rt),e.size!=t.size&&!(1&r))break;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var u=n9(l(e),l(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(rr)return rr.call(e)==rr.call(t)}return!1},ri=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},ra=function(e,t,n){var r=t(e);return e2(e)?r:ri(r,n(e))},rl=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};function rs(){return[]}var ru=Object.prototype.propertyIsEnumerable,rc=Object.getOwnPropertySymbols,rd=rc?function(e){return null==e?[]:rl(rc(e=Object(e)),function(t){return ru.call(e,t)})}:rs,rp=function(e){return ra(e,nr,rd)},rh=Object.prototype.hasOwnProperty,rf=function(e,t,n,r,o,i){var a=1&n,l=rp(e),s=l.length,u=rp(t).length;if(s!=u&&!a)return!1;for(var c=s;c--;){var d=l[c];if(!(a?d in t:rh.call(t,d)))return!1}var p=i.get(e),h=i.get(t);if(p&&h)return p==t&&h==e;var f=!0;i.set(e,t),i.set(t,e);for(var m=a;++c<s;){var g=e[d=l[c]],v=t[d];if(r)var b=a?r(v,g,d,t,e,i):r(g,v,d,e,t,i);if(!(void 0===b?g===v||o(g,v,n,r,i):b)){f=!1;break}m||(m="constructor"==d)}if(f&&!m){var y=e.constructor,x=t.constructor;y!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof x&&x instanceof x)&&(f=!1)}return i.delete(e),i.delete(t),f},rm=ec(F,"DataView"),rg=ec(F,"Promise"),rv=ec(F,"Set"),rb=ec(F,"WeakMap"),ry="[object Map]",rx="[object Promise]",rw="[object Set]",rE="[object WeakMap]",rk="[object DataView]",rC=en(rm),rS=en(ed),rM=en(rg),rO=en(rv),rA=en(rb),r_=q;(rm&&r_(new rm(new ArrayBuffer(1)))!=rk||ed&&r_(new ed)!=ry||rg&&r_(rg.resolve())!=rx||rv&&r_(new rv)!=rw||rb&&r_(new rb)!=rE)&&(r_=function(e){var t=q(e),n="[object Object]"==t?e.constructor:void 0,r=n?en(n):"";if(r)switch(r){case rC:return rk;case rS:return ry;case rM:return rx;case rO:return rw;case rA:return rE}return t});var rT=r_,rR="[object Arguments]",rz="[object Array]",rL="[object Object]",rI=Object.prototype.hasOwnProperty,rH=function(e,t,n,r,o,i){var a=e2(e),l=e2(t),s=a?rz:rT(e),u=l?rz:rT(t);s=s==rR?rL:s,u=u==rR?rL:u;var c=s==rL,d=u==rL,p=s==u;if(p&&te(e)){if(!te(t))return!1;a=!0,c=!1}if(p&&!c)return i||(i=new eT),a||tm(e)?n9(e,t,n,r,o,i):ro(e,t,s,n,r,o,i);if(!(1&n)){var h=c&&rI.call(e,"__wrapped__"),f=d&&rI.call(t,"__wrapped__");if(h||f){var m=h?e.value():e,g=f?t.value():t;return i||(i=new eT),o(m,g,n,r,i)}}return!!p&&(i||(i=new eT),rf(e,t,n,r,o,i))};function rN(e,t,n,r,o){return e===t||(null!=e&&null!=t&&(eq(e)||eq(t))?rH(e,t,n,r,rN,o):e!=e&&t!=t)}var rP=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<i;){var s=(l=n[o])[0],u=e[s],c=l[1];if(a&&l[2]){if(void 0===u&&!(s in e))return!1}else{var d=new eT;if(r)var p=r(u,c,s,e,t,d);if(!(void 0===p?rN(c,u,3,r,d):p))return!1}}return!0},rD=function(e){return e==e&&!X(e)},rj=function(e){for(var t=nr(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,rD(o)]}return t},rB=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},rF=function(e){var t=rj(e);return 1==t.length&&t[0][2]?rB(t[0][0],t[0][1]):function(n){return n===e||rP(n,e,t)}},rV=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r$=/^\w*$/,rW=function(e,t){if(e2(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||tY(e))||r$.test(e)||!rV.test(e)||null!=t&&e in Object(t)};function rU(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(rU.Cache||eA),n}rU.Cache=eA;var rZ,rG,rK,rY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rq=/\\(\\)?/g,rX=(rK=(rG=rU(rZ=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(rY,function(e,n,r,o){t.push(r?o.replace(rq,"$1"):n||e)}),t},function(e){return 500===rK.size&&rK.clear(),e})).cache,rG),rJ=1/0,rQ=V?V.prototype:void 0,r0=rQ?rQ.toString:void 0,r1=function(e,t){var n;return e2(e)?e:rW(e,t)?[e]:rX(null==e?"":function e(t){if("string"==typeof t)return t;if(e2(t))return n4(t,e)+"";if(tY(t))return r0?r0.call(t):"";var n=t+"";return"0"==n&&1/t==-rJ?"-0":n}(e))},r2=1/0,r5=function(e){if("string"==typeof e||tY(e))return e;var t=e+"";return"0"==t&&1/e==-r2?"-0":t},r4=function(e,t){t=r1(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[r5(t[n++])];return n&&n==r?e:void 0},r3=function(e,t,n){var r=null==e?void 0:r4(e,t);return void 0===r?n:r},r7=function(e,t){return null!=e&&t in Object(e)},r6=function(e,t,n){t=r1(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=r5(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&e5(o)&&tE(a,o)&&(e2(e)||e1(e))},r8=function(e){var t,n;return rW(e)?(t=r5(e),function(e){return null==e?void 0:e[t]}):function(t){return r4(t,e)}},r9=function(e){if("function"==typeof e)return e;if(null==e)return tT;if("object"==typeof e){var t,n;return e2(e)?(t=e[0],n=e[1],rW(t)&&rD(n)?rB(r5(t),n):function(e){var r,o,i=r3(e,t);return void 0===i&&i===n?null!=e&&r6(e,t,r7):rN(n,i,3)}):rF(e)}return r8(e)},oe=function(e,t){var n=-1,r=e4(e)?Array(e.length):[];return ni(e,function(e,o,i){r[++n]=t(e,o,i)}),r},ot=function(e,t){return(e2(e)?n4:oe)(e,r9(t,3))},on=function(e){var t=e.colors,n=e.onClick,i=e.onSwatchHover,a=(0,o.ZP)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return r.createElement("div",{style:a.swatches},ot(t,function(e){return r.createElement(n0,{key:e,color:e,style:a.swatch,onClick:n,onHover:i,focusStyle:{boxShadow:"0 0 4px "+e}})}),r.createElement("div",{style:a.clear}))},or=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.hex,a=e.colors,l=e.width,s=e.triangle,u=e.styles,d=e.className,p=function(e,n){nW(e)&&t({hex:e,source:"hex"},n)},h=(0,o.ZP)(tF({default:{card:{width:l,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:nU(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},void 0===u?{}:u),{"hide-triangle":"hide"===s});return r.createElement("div",{style:h.card,className:"block-picker "+(void 0===d?"":d)},r.createElement("div",{style:h.triangle}),r.createElement("div",{style:h.head},"transparent"===i&&r.createElement(c,{borderRadius:"6px 6px 0 0"}),r.createElement("div",{style:h.label},i)),r.createElement("div",{style:h.body},r.createElement(on,{colors:a,onClick:p,onSwatchHover:n}),r.createElement(b,{style:{input:h.input},value:i,onChange:p})))};or.propTypes={width:C().oneOfType([C().string,C().number]),colors:C().arrayOf(C().string),triangle:C().oneOf(["top","hide"]),styles:C().object},or.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},nY(or);var oo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},oi={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},oa={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},ol={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},ou={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},oc={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},od={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},op={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},oh={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},of={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},om={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},og={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},ov={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},ob={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},oy={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},ox={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},ow={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},oE={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},ok=function(e){var t=e.color,n=e.onClick,i=e.onSwatchHover,a=e.hover,l=e.active,s=e.circleSize,u=e.circleSpacing,c=(0,o.ZP)({default:{swatch:{width:s,height:s,marginRight:u,marginBottom:u,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:a,active:l});return r.createElement("div",{style:c.swatch},r.createElement(n0,{style:c.Swatch,color:t,onClick:n,onHover:i,focusStyle:{boxShadow:c.Swatch.boxShadow+", 0 0 5px "+t}}))};ok.defaultProps={circleSize:28,circleSpacing:14};var oC=(0,o.tz)(ok),oS=function(e){var t=e.width,n=e.onChange,i=e.onSwatchHover,a=e.colors,l=e.hex,s=e.circleSize,u=e.styles,c=e.circleSpacing,d=e.className,p=(0,o.ZP)(tF({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},void 0===u?{}:u)),h=function(e,t){return n({hex:e,source:"hex"},t)};return r.createElement("div",{style:p.card,className:"circle-picker "+(void 0===d?"":d)},ot(a,function(e){return r.createElement(oC,{key:e,color:e,onClick:h,onSwatchHover:i,active:l===e.toLowerCase(),circleSize:s,circleSpacing:c})}))};oS.propTypes={width:C().oneOfType([C().string,C().number]),circleSize:C().number,circleSpacing:C().number,styles:C().object},oS.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[oo[500],oi[500],oa[500],ol[500],ou[500],oc[500],od[500],op[500],oh[500],of[500],om[500],og[500],ov[500],ob[500],oy[500],ox[500],ow[500],oE[500]],styles:{}},nY(oS);var oM=function(e){return void 0===e},oO=n(16331),oA=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o_=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?nW(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(oM(e.s)?n.props.hsl.s:e.s),l:Number(oM(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),oA(t,[{key:"render",value:function(){var e=this,t=(0,o.ZP)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=r.createElement("div",{style:t.fields,className:"flexbox-fix"},r.createElement("div",{style:t.field},r.createElement(b,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=r.createElement("div",{style:t.fields,className:"flexbox-fix"},r.createElement("div",{style:t.field},r.createElement(b,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(b,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(b,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),r.createElement("div",{style:t.alpha},r.createElement(b,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=r.createElement("div",{style:t.fields,className:"flexbox-fix"},r.createElement("div",{style:t.field},r.createElement(b,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(b,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(b,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),r.createElement("div",{style:t.alpha},r.createElement(b,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),r.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,r.createElement("div",{style:t.toggle},r.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},r.createElement(oO.Z,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(r.Component);o_.defaultProps={view:"hex"};var oT=function(){var e=(0,o.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.createElement("div",{style:e.picker})},oR=function(){var e=(0,o.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return r.createElement("div",{style:e.picker})},oz=function(e){var t=e.width,n=e.onChange,i=e.disableAlpha,a=e.rgb,l=e.hsl,s=e.hsv,u=e.hex,d=e.renderers,p=e.styles,h=e.className,m=e.defaultView,g=(0,o.ZP)(tF({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},void 0===p?{}:p),{disableAlpha:i});return r.createElement("div",{style:g.picker,className:"chrome-picker "+(void 0===h?"":h)},r.createElement("div",{style:g.saturation},r.createElement(t8,{style:g.Saturation,hsl:l,hsv:s,pointer:oR,onChange:n})),r.createElement("div",{style:g.body},r.createElement("div",{style:g.controls,className:"flexbox-fix"},r.createElement("div",{style:g.color},r.createElement("div",{style:g.swatch},r.createElement("div",{style:g.active}),r.createElement(c,{renderers:d}))),r.createElement("div",{style:g.toggles},r.createElement("div",{style:g.hue},r.createElement(E,{style:g.Hue,hsl:l,pointer:oT,onChange:n})),r.createElement("div",{style:g.alpha},r.createElement(f,{style:g.Alpha,rgb:a,hsl:l,pointer:oT,renderers:d,onChange:n})))),r.createElement(o_,{rgb:a,hsl:l,hex:u,view:m,onChange:n,disableAlpha:i})))};oz.propTypes={width:C().oneOfType([C().string,C().number]),disableAlpha:C().bool,styles:C().object,defaultView:C().oneOf(["hex","rgb","hsl"])},oz.defaultProps={width:225,disableAlpha:!1,styles:{}},nY(oz);var oL=function(e){var t=e.color,n=e.onClick,i=e.onSwatchHover,a=e.active,l=(0,o.ZP)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:nU(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.createElement(n0,{style:l.color,color:t,onClick:void 0===n?function(){}:n,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},r.createElement("div",{style:l.dot}))},oI=function(e){var t=e.hex,n=e.rgb,i=e.onChange,a=(0,o.ZP)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),l=function(e,t){e.r||e.g||e.b?i({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):i({hex:e.hex,source:"hex"},t)};return r.createElement("div",{style:a.fields,className:"flexbox-fix"},r.createElement("div",{style:a.active}),r.createElement(b,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:t,onChange:l}),r.createElement(b,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:l}),r.createElement(b,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:l}),r.createElement(b,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:l}))},oH=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.colors,a=e.hex,l=e.rgb,s=e.styles,u=void 0===s?{}:s,c=e.className,d=(0,o.ZP)(tF({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),p=function(e,n){e.hex?nW(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return r.createElement(tV,{style:d.Compact,styles:u},r.createElement("div",{style:d.compact,className:"compact-picker "+(void 0===c?"":c)},r.createElement("div",null,ot(i,function(e){return r.createElement(oL,{key:e,color:e,active:e.toLowerCase()===a,onClick:p,onSwatchHover:n})}),r.createElement("div",{style:d.clear})),r.createElement(oI,{hex:a,rgb:l,onChange:p})))};oH.propTypes={colors:C().arrayOf(C().string),styles:C().object},oH.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},nY(oH);var oN=function(e){var t=e.hover,n=e.color,i=e.onClick,a=e.onSwatchHover,l={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=(0,o.ZP)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:l}},{hover:t});return r.createElement("div",{style:s.swatch},r.createElement(n0,{color:n,onClick:i,onHover:a,focusStyle:l}))},oP=(0,o.tz)(oN),oD=function(e){var t=e.width,n=e.colors,i=e.onChange,a=e.onSwatchHover,l=e.triangle,s=e.styles,u=e.className,c=(0,o.ZP)(tF({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},void 0===s?{}:s),{"hide-triangle":"hide"===l,"top-left-triangle":"top-left"===l,"top-right-triangle":"top-right"===l,"bottom-left-triangle":"bottom-left"===l,"bottom-right-triangle":"bottom-right"===l}),d=function(e,t){return i({hex:e,source:"hex"},t)};return r.createElement("div",{style:c.card,className:"github-picker "+(void 0===u?"":u)},r.createElement("div",{style:c.triangleShadow}),r.createElement("div",{style:c.triangle}),ot(n,function(e){return r.createElement(oP,{color:e,key:e,onClick:d,onSwatchHover:a})}))};oD.propTypes={width:C().oneOfType([C().string,C().number]),colors:C().arrayOf(C().string),triangle:C().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:C().object},oD.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},nY(oD);var oj=function(e){var t=e.direction,n=(0,o.ZP)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.createElement("div",{style:n.picker})},oB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oF=function(e){var t=e.width,n=e.height,i=e.onChange,a=e.hsl,l=e.direction,s=e.pointer,u=e.styles,c=e.className,d=(0,o.ZP)(tF({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},void 0===u?{}:u)),p=function(e){return i({a:1,h:e.h,l:.5,s:1})};return r.createElement("div",{style:d.picker,className:"hue-picker "+(void 0===c?"":c)},r.createElement(E,oB({},d.hue,{hsl:a,pointer:s,onChange:p,direction:l})))};oF.propTypes={styles:C().object},oF.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:oj,styles:{}},nY(oF),nY(function(e){var t=e.onChange,n=e.hex,i=e.rgb,a=e.styles,l=void 0===a?{}:a,s=e.className,u=(0,o.ZP)(tF({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},l)),c=function(e,n){e.hex?nW(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||i.r,g:e.g||i.g,b:e.b||i.b,source:"rgb"},n)};return r.createElement(tV,{styles:l},r.createElement("div",{style:u.material,className:"material-picker "+(void 0===s?"":s)},r.createElement(b,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"hex",value:n,onChange:c}),r.createElement("div",{style:u.split,className:"flexbox-fix"},r.createElement("div",{style:u.third},r.createElement(b,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:i.r,onChange:c})),r.createElement("div",{style:u.third},r.createElement(b,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:i.g,onChange:c})),r.createElement("div",{style:u.third},r.createElement(b,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:i.b,onChange:c})))))});var oV=function(e){var t=e.onChange,n=e.rgb,i=e.hsv,a=e.hex,l=(0,o.ZP)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(e,r){e["#"]?nW(e["#"])&&t({hex:e["#"],source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},r):(e.h||e.s||e.v)&&t({h:e.h||i.h,s:e.s||i.s,v:e.v||i.v,source:"hsv"},r)};return r.createElement("div",{style:l.fields},r.createElement(b,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"h",value:Math.round(i.h),onChange:s}),r.createElement(b,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"s",value:Math.round(100*i.s),onChange:s}),r.createElement(b,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"v",value:Math.round(100*i.v),onChange:s}),r.createElement("div",{style:l.divider}),r.createElement(b,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:n.r,onChange:s}),r.createElement(b,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:n.g,onChange:s}),r.createElement(b,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:n.b,onChange:s}),r.createElement("div",{style:l.divider}),r.createElement(b,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"#",value:a.replace("#",""),onChange:s}),r.createElement("div",{style:l.fieldSymbols},r.createElement("div",{style:l.symbol},"\xb0"),r.createElement("div",{style:l.symbol},"%"),r.createElement("div",{style:l.symbol},"%")))},o$=function(e){var t=e.hsl,n=(0,o.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return r.createElement("div",{style:n.picker})},oW=function(){var e=(0,o.ZP)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return r.createElement("div",{style:e.pointer},r.createElement("div",{style:e.left},r.createElement("div",{style:e.leftInside})),r.createElement("div",{style:e.right},r.createElement("div",{style:e.rightInside})))},oU=function(e){var t=e.onClick,n=e.label,i=e.children,a=e.active,l=(0,o.ZP)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return r.createElement("div",{style:l.button,onClick:t},n||i)},oZ=function(e){var t=e.rgb,n=e.currentColor,i=(0,o.ZP)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return r.createElement("div",null,r.createElement("div",{style:i.label},"new"),r.createElement("div",{style:i.swatches},r.createElement("div",{style:i.new}),r.createElement("div",{style:i.current})),r.createElement("div",{style:i.label},"current"))},oG=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),oK=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),oG(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=e.className,i=(0,o.ZP)(tF({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},void 0===t?{}:t));return r.createElement("div",{style:i.picker,className:"photoshop-picker "+(void 0===n?"":n)},r.createElement("div",{style:i.head},this.props.header),r.createElement("div",{style:i.body,className:"flexbox-fix"},r.createElement("div",{style:i.saturation},r.createElement(t8,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:o$,onChange:this.props.onChange})),r.createElement("div",{style:i.hue},r.createElement(E,{direction:"vertical",hsl:this.props.hsl,pointer:oW,onChange:this.props.onChange})),r.createElement("div",{style:i.controls},r.createElement("div",{style:i.top,className:"flexbox-fix"},r.createElement("div",{style:i.previews},r.createElement(oZ,{rgb:this.props.rgb,currentColor:this.state.currentColor})),r.createElement("div",{style:i.actions},r.createElement(oU,{label:"OK",onClick:this.props.onAccept,active:!0}),r.createElement(oU,{label:"Cancel",onClick:this.props.onCancel}),r.createElement(oV,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(r.Component);oK.propTypes={header:C().string,styles:C().object},oK.defaultProps={header:"Color Picker",styles:{}},nY(oK);var oY=function(e){var t=e.onChange,n=e.rgb,i=e.hsl,a=e.hex,l=e.disableAlpha,s=(0,o.ZP)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:l}),u=function(e,r){e.hex?nW(e.hex)&&t({hex:e.hex,source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},r):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:i.h,s:i.s,l:i.l,a:e.a,source:"rgb"},r))};return r.createElement("div",{style:s.fields,className:"flexbox-fix"},r.createElement("div",{style:s.double},r.createElement(b,{style:{input:s.input,label:s.label},label:"hex",value:a.replace("#",""),onChange:u})),r.createElement("div",{style:s.single},r.createElement(b,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:s.single},r.createElement(b,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:s.single},r.createElement(b,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:s.alpha},r.createElement(b,{style:{input:s.input,label:s.label},label:"a",value:Math.round(100*n.a),onChange:u,dragLabel:"true",dragMax:"100"})))},oq=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oX=function(e){var t=e.colors,n=e.onClick,i=void 0===n?function(){}:n,a=e.onSwatchHover,l=(0,o.ZP)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),s=function(e,t){i({hex:e,source:"hex"},t)};return r.createElement("div",{style:l.colors,className:"flexbox-fix"},t.map(function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return r.createElement("div",{key:n,style:l.swatchWrap},r.createElement(n0,oq({},t,{style:l.swatch,onClick:s,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))}))};oX.propTypes={colors:C().arrayOf(C().oneOfType([C().string,C().shape({color:C().string,title:C().string})])).isRequired};var oJ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oQ=function(e){var t=e.width,n=e.rgb,i=e.hex,a=e.hsv,l=e.hsl,s=e.onChange,u=e.onSwatchHover,d=e.disableAlpha,p=e.presetColors,h=e.renderers,m=e.styles,g=void 0===m?{}:m,v=e.className,b=(0,o.ZP)(tF({default:oJ({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},g),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},g),{disableAlpha:d});return r.createElement("div",{style:b.picker,className:"sketch-picker "+(void 0===v?"":v)},r.createElement("div",{style:b.saturation},r.createElement(t8,{style:b.Saturation,hsl:l,hsv:a,onChange:s})),r.createElement("div",{style:b.controls,className:"flexbox-fix"},r.createElement("div",{style:b.sliders},r.createElement("div",{style:b.hue},r.createElement(E,{style:b.Hue,hsl:l,onChange:s})),r.createElement("div",{style:b.alpha},r.createElement(f,{style:b.Alpha,rgb:n,hsl:l,renderers:h,onChange:s}))),r.createElement("div",{style:b.color},r.createElement(c,null),r.createElement("div",{style:b.activeColor}))),r.createElement(oY,{rgb:n,hsl:l,hex:i,onChange:s,disableAlpha:d}),r.createElement(oX,{colors:p,onClick:s,onSwatchHover:u}))};oQ.propTypes={disableAlpha:C().bool,width:C().oneOfType([C().string,C().number]),styles:C().object},oQ.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};var o0=nY(oQ),o1=function(e){var t=e.hsl,n=e.offset,i=e.onClick,a=void 0===i?function(){}:i,l=e.active,s=e.first,u=e.last,c=(0,o.ZP)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:l,first:s,last:u}),d=function(e){return a({h:t.h,s:.5,l:n,source:"hsl"},e)};return r.createElement("div",{style:c.swatch,onClick:d})},o2=function(e){var t=e.onClick,n=e.hsl,i=(0,o.ZP)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}});return r.createElement("div",{style:i.swatches},r.createElement("div",{style:i.swatch},r.createElement(o1,{hsl:n,offset:".80",active:.1>Math.abs(n.l-.8)&&.1>Math.abs(n.s-.5),onClick:t,first:!0})),r.createElement("div",{style:i.swatch},r.createElement(o1,{hsl:n,offset:".65",active:.1>Math.abs(n.l-.65)&&.1>Math.abs(n.s-.5),onClick:t})),r.createElement("div",{style:i.swatch},r.createElement(o1,{hsl:n,offset:".50",active:.1>Math.abs(n.l-.5)&&.1>Math.abs(n.s-.5),onClick:t})),r.createElement("div",{style:i.swatch},r.createElement(o1,{hsl:n,offset:".35",active:.1>Math.abs(n.l-.35)&&.1>Math.abs(n.s-.5),onClick:t})),r.createElement("div",{style:i.swatch},r.createElement(o1,{hsl:n,offset:".20",active:.1>Math.abs(n.l-.2)&&.1>Math.abs(n.s-.5),onClick:t,last:!0})),r.createElement("div",{style:i.clear}))},o5=function(){var e=(0,o.ZP)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.createElement("div",{style:e.picker})},o4=function(e){var t=e.hsl,n=e.onChange,i=e.pointer,a=e.styles,l=e.className,s=(0,o.ZP)(tF({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},void 0===a?{}:a));return r.createElement("div",{style:s.wrap||{},className:"slider-picker "+(void 0===l?"":l)},r.createElement("div",{style:s.hue},r.createElement(E,{style:s.Hue,hsl:t,pointer:i,onChange:n})),r.createElement("div",{style:s.swatches},r.createElement(o2,{hsl:t,onClick:n})))};o4.propTypes={styles:C().object},o4.defaultProps={pointer:o5,styles:{}},nY(o4);var o3=n(47988),o7=function(e){var t=e.color,n=e.onClick,i=e.onSwatchHover,a=e.first,l=e.last,s=e.active,u=(0,o.ZP)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:nU(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:l,active:s,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.createElement(n0,{color:t,style:u.color,onClick:void 0===n?function(){}:n,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},r.createElement("div",{style:u.check},r.createElement(o3.Z,null)))},o6=function(e){var t=e.onClick,n=e.onSwatchHover,i=e.group,a=e.active,l=(0,o.ZP)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return r.createElement("div",{style:l.group},ot(i,function(e,o){return r.createElement(o7,{key:e,color:e,active:e.toLowerCase()===a,first:0===o,last:o===i.length-1,onClick:t,onSwatchHover:n})}))},o8=function(e){var t=e.width,n=e.height,i=e.onChange,a=e.onSwatchHover,l=e.colors,s=e.hex,u=e.styles,c=e.className,d=(0,o.ZP)(tF({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},void 0===u?{}:u)),p=function(e,t){return i({hex:e,source:"hex"},t)};return r.createElement("div",{style:d.picker,className:"swatches-picker "+(void 0===c?"":c)},r.createElement(tV,null,r.createElement("div",{style:d.overflow},r.createElement("div",{style:d.body},ot(l,function(e){return r.createElement(o6,{key:e.toString(),group:e,active:s,onClick:p,onSwatchHover:a})}),r.createElement("div",{style:d.clear})))))};o8.propTypes={width:C().oneOfType([C().string,C().number]),height:C().oneOfType([C().string,C().number]),colors:C().arrayOf(C().arrayOf(C().string)),styles:C().object},o8.defaultProps={width:320,height:240,colors:[[oo[900],oo[700],oo[500],oo[300],oo[100]],[oi[900],oi[700],oi[500],oi[300],oi[100]],[oa[900],oa[700],oa[500],oa[300],oa[100]],[ol[900],ol[700],ol[500],ol[300],ol[100]],[ou[900],ou[700],ou[500],ou[300],ou[100]],[oc[900],oc[700],oc[500],oc[300],oc[100]],[od[900],od[700],od[500],od[300],od[100]],[op[900],op[700],op[500],op[300],op[100]],[oh[900],oh[700],oh[500],oh[300],oh[100]],["#194D33",of[700],of[500],of[300],of[100]],[om[900],om[700],om[500],om[300],om[100]],[og[900],og[700],og[500],og[300],og[100]],[ov[900],ov[700],ov[500],ov[300],ov[100]],[ob[900],ob[700],ob[500],ob[300],ob[100]],[oy[900],oy[700],oy[500],oy[300],oy[100]],[ox[900],ox[700],ox[500],ox[300],ox[100]],[ow[900],ow[700],ow[500],ow[300],ow[100]],[oE[900],oE[700],oE[500],oE[300],oE[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},nY(o8);var o9=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.hex,a=e.colors,l=e.width,s=e.triangle,u=e.styles,c=e.className,d=(0,o.ZP)(tF({default:{card:{width:l,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},void 0===u?{}:u),{"hide-triangle":"hide"===s,"top-left-triangle":"top-left"===s,"top-right-triangle":"top-right"===s}),p=function(e,n){nW(e)&&t({hex:e,source:"hex"},n)};return r.createElement("div",{style:d.card,className:"twitter-picker "+(void 0===c?"":c)},r.createElement("div",{style:d.triangleShadow}),r.createElement("div",{style:d.triangle}),r.createElement("div",{style:d.body},ot(a,function(e,t){return r.createElement(n0,{key:t,color:e,hex:e,style:d.swatch,onClick:p,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})}),r.createElement("div",{style:d.hash},"#"),r.createElement(b,{label:null,style:{input:d.input},value:i.replace("#",""),onChange:p}),r.createElement("div",{style:d.clear})))};o9.propTypes={width:C().oneOfType([C().string,C().number]),triangle:C().oneOf(["hide","top-left","top-right"]),colors:C().arrayOf(C().string),styles:C().object},o9.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};var ie=nY(o9),it=function(e){var t=(0,o.ZP)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return r.createElement("div",{style:t.picker})};it.propTypes={hsl:C().shape({h:C().number,s:C().number,l:C().number,a:C().number})},it.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var ir=function(e){var t=(0,o.ZP)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return r.createElement("div",{style:t.picker})};ir.propTypes={hsl:C().shape({h:C().number,s:C().number,l:C().number,a:C().number})},ir.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var io=function(e){var t=e.onChange,n=e.rgb,i=e.hsl,a=e.hex,l=e.hsv,s=function(e,n){if(e.hex)nW(e.hex)&&t({hex:e.hex,source:"hex"},n);else if(e.rgb){var r=e.rgb.split(",");nZ(e.rgb,"rgb")&&t({r:r[0],g:r[1],b:r[2],a:1,source:"rgb"},n)}else if(e.hsv){var o=e.hsv.split(",");nZ(e.hsv,"hsv")&&(o[2]=o[2].replace("%",""),o[1]=o[1].replace("%",""),o[0]=o[0].replace("\xb0",""),1==o[1]?o[1]=.01:1==o[2]&&(o[2]=.01),t({h:Number(o[0]),s:Number(o[1]),v:Number(o[2]),source:"hsv"},n))}else if(e.hsl){var i=e.hsl.split(",");nZ(e.hsl,"hsl")&&(i[2]=i[2].replace("%",""),i[1]=i[1].replace("%",""),i[0]=i[0].replace("\xb0",""),1==p[1]?p[1]=.01:1==p[2]&&(p[2]=.01),t({h:Number(i[0]),s:Number(i[1]),v:Number(i[2]),source:"hsl"},n))}},u=(0,o.ZP)({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),c=n.r+", "+n.g+", "+n.b,d=Math.round(i.h)+"\xb0, "+Math.round(100*i.s)+"%, "+Math.round(100*i.l)+"%",p=Math.round(l.h)+"\xb0, "+Math.round(100*l.s)+"%, "+Math.round(100*l.v)+"%";return r.createElement("div",{style:u.wrap,className:"flexbox-fix"},r.createElement("div",{style:u.fields},r.createElement("div",{style:u.double},r.createElement(b,{style:{input:u.input,label:u.label},label:"hex",value:a,onChange:s})),r.createElement("div",{style:u.column},r.createElement("div",{style:u.single},r.createElement(b,{style:{input:u.input2,label:u.label2},label:"rgb",value:c,onChange:s})),r.createElement("div",{style:u.single},r.createElement(b,{style:{input:u.input2,label:u.label2},label:"hsv",value:p,onChange:s})),r.createElement("div",{style:u.single},r.createElement(b,{style:{input:u.input2,label:u.label2},label:"hsl",value:d,onChange:s})))))},ii=function(e){var t=e.width,n=e.onChange,i=e.rgb,a=e.hsl,l=e.hsv,s=e.hex,u=e.header,c=e.styles,d=e.className,p=(0,o.ZP)(tF({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+i.r+", "+i.g+", "+i.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},void 0===c?{}:c));return r.createElement("div",{style:p.picker,className:"google-picker "+(void 0===d?"":d)},r.createElement("div",{style:p.head},u),r.createElement("div",{style:p.swatch}),r.createElement("div",{style:p.saturation},r.createElement(t8,{hsl:a,hsv:l,pointer:it,onChange:n})),r.createElement("div",{style:p.body},r.createElement("div",{style:p.controls,className:"flexbox-fix"},r.createElement("div",{style:p.hue},r.createElement(E,{style:p.Hue,hsl:a,radius:"4px",pointer:ir,onChange:n}))),r.createElement(io,{rgb:i,hsl:a,hex:s,hsv:l,onChange:n})))};ii.propTypes={width:C().oneOfType([C().string,C().number]),styles:C().object,header:C().string},ii.defaultProps={width:652,styles:{},header:"Color picker"},nY(ii)},74424:function(e,t,n){"use strict";n.d(t,{uI:function(){return J}});var r=n(2784),o=n(13980),i=n.n(o),a=n(5163),l=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function s(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=l.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var u=[".DS_Store","Thumbs.db"];function c(e){return"object"==typeof e&&null!==e}function d(e){return e.filter(function(e){return -1===u.indexOf(e.name)})}function p(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function h(e){if("function"!=typeof e.webkitGetAsEntry)return f(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?g(t):f(e)}function f(e){var t=e.getAsFile();return t?Promise.resolve(s(t)):Promise.reject("".concat(e," is not a File"))}function m(e){return(0,a.__awaiter)(this,void 0,void 0,function(){return(0,a.__generator)(this,function(t){return[2,e.isDirectory?g(e):function(e){return(0,a.__awaiter)(this,void 0,void 0,function(){return(0,a.__generator)(this,function(t){return[2,new Promise(function(t,n){e.file(function(n){t(s(n,e.fullPath))},function(e){n(e)})})]})})}(e)]})})}function g(e){var t=e.createReader();return new Promise(function(e,n){var r=[];!function o(){var i=this;t.readEntries(function(t){return(0,a.__awaiter)(i,void 0,void 0,function(){var i,l,s;return(0,a.__generator)(this,function(i){switch(i.label){case 0:if(t.length)return[3,5];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return e(i.sent()),[3,4];case 3:return n(i.sent()),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(m)),r.push(s),o(),i.label=6;case 6:return[2]}})})},function(e){n(e)})}()})}var v=n(30387);function b(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(s){l=!0,r=s}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||k(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var S=function(e){var t=Array.isArray(e=Array.isArray(e)&&1===e.length?e[0]:e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},M=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},O=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},A={code:"too-many-files",message:"Too many files"};function _(e,t){var n="application/x-moz-file"===e.type||(0,v.Z)(e,t);return[n,n?null:S(t)]}function T(e,t,n){if(R(e.size)){if(R(t)&&R(n)){if(e.size>n)return[!1,M(n)];if(e.size<t)return[!1,O(t)]}else if(R(t)&&e.size<t)return[!1,O(t)];else if(R(n)&&e.size>n)return[!1,M(n)]}return[!0,null]}function R(e){return null!=e}function z(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function L(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function I(e){e.preventDefault()}function H(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some(function(t){return!z(e)&&t&&t.apply(void 0,[e].concat(r)),z(e)})}}function N(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function P(e){return/^.*\.[\w]+$/.test(e)}var D=["children"],j=["open"],B=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],F=["refKey","onChange","onClick"];function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(s){l=!0,r=s}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||$(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){if(e){if("string"==typeof e)return W(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W(e,t)}}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Y=(0,r.forwardRef)(function(e,t){var n=e.children,o=K(e,D),i=J(o),a=i.open,l=K(i,j);return(0,r.useImperativeHandle)(t,function(){return{open:a}},[a]),r.createElement(r.Fragment,null,n(Z(Z({},l),{},{open:a})))});Y.displayName="Dropzone";var q={disabled:!1,getFilesFromEvent:function(e){return(0,a.__awaiter)(this,void 0,void 0,function(){return(0,a.__generator)(this,function(t){var n,r,o;if(c(e)&&(n=e.dataTransfer,c(n)))return[2,function(e,t){return(0,a.__awaiter)(this,void 0,void 0,function(){var n,r;return(0,a.__generator)(this,function(r){switch(r.label){case 0:if(!e.items)return[3,2];if(n=p(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,n];return[4,Promise.all(n.map(h))];case 1:return[2,d(function e(t){return t.reduce(function(t,n){return(0,a.__spreadArray)((0,a.__spreadArray)([],(0,a.__read)(t),!1),(0,a.__read)(Array.isArray(n)?e(n):[n]),!1)},[])}(r.sent()))];case 2:return[2,d(p(e.files).map(function(e){return s(e)}))]}})})}(e.dataTransfer,e.type)];if(r=e,c(r)&&c(r.target)){return[2,(o=e,p(o.target.files).map(function(e){return s(e)}))]}return Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,a.__awaiter)(this,void 0,void 0,function(){var t;return(0,a.__generator)(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(e){return e.getFile()}))];case 1:return[2,t.sent().map(function(e){return s(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Y.defaultProps=q,Y.propTypes={children:i().func,accept:i().objectOf(i().arrayOf(i().string)),multiple:i().bool,preventDropOnDocument:i().bool,noClick:i().bool,noKeyboard:i().bool,noDrag:i().bool,noDragEventsBubbling:i().bool,minSize:i().number,maxSize:i().number,maxFiles:i().number,disabled:i().bool,getFilesFromEvent:i().func,onFileDialogCancel:i().func,onFileDialogOpen:i().func,useFsAccessApi:i().bool,autoFocus:i().bool,onDragEnter:i().func,onDragLeave:i().func,onDragOver:i().func,onDrop:i().func,onDropAccepted:i().func,onDropRejected:i().func,onError:i().func,validator:i().func};var X={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Z(Z({},q),e),n=t.accept,o=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,l=t.minSize,s=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,p=t.onDragOver,h=t.onDrop,f=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,y=t.useFsAccessApi,k=t.autoFocus,C=t.preventDropOnDocument,S=t.noClick,M=t.noKeyboard,O=t.noDrag,D=t.noDragEventsBubbling,j=t.onError,U=t.validator,Y=(0,r.useMemo)(function(){return function(e){if(R(e))return Object.entries(e).reduce(function(e,t){var n=E(t,2),r=n[0],o=n[1];return[].concat(b(e),[r],b(o))},[]).filter(function(e){return N(e)||P(e)}).join(",")}(n)},[n]),J=(0,r.useMemo)(function(){var e;return e=n,R(e)?[{description:"Files",accept:Object.entries(e).filter(function(e){var t=E(e,2),n=t[0],r=t[1],o=!0;return N(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(P)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(e,t){var n=E(t,2),r=n[0],o=n[1];return x(x({},e),{},w({},r,o))},{})}]:e},[n]),et=(0,r.useMemo)(function(){return"function"==typeof v?v:ee},[v]),en=(0,r.useMemo)(function(){return"function"==typeof g?g:ee},[g]),er=(0,r.useRef)(null),eo=(0,r.useRef)(null),ei=(0,r.useReducer)(Q,X),ea=V(ei,2),el=ea[0],es=ea[1],eu=el.isFocused,ec=el.isFileDialogActive,ed=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),ep=function(){!ed.current&&ec&&setTimeout(function(){eo.current&&(eo.current.files.length||(es({type:"closeDialog"}),en()))},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",ep,!1),function(){window.removeEventListener("focus",ep,!1)}},[eo,ec,en,ed]);var eh=(0,r.useRef)([]),ef=function(e){!(er.current&&er.current.contains(e.target))&&(e.preventDefault(),eh.current=[])};(0,r.useEffect)(function(){return C&&(document.addEventListener("dragover",I,!1),document.addEventListener("drop",ef,!1)),function(){C&&(document.removeEventListener("dragover",I),document.removeEventListener("drop",ef))}},[er,C]),(0,r.useEffect)(function(){return!o&&k&&er.current&&er.current.focus(),function(){}},[er,k,o]);var em=(0,r.useCallback)(function(e){j?j(e):console.error(e)},[j]),eg=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),e_(e),eh.current=[].concat(function(e){if(Array.isArray(e))return W(e)}(t=eh.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||$(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),L(e)&&Promise.resolve(i(e)).then(function(t){if(!z(e)||D){var n,r,o,i,d,p,h,f,m=t.length,g=m>0&&(r=(n={files:t,accept:Y,minSize:l,maxSize:a,multiple:s,maxFiles:u,validator:U}).files,o=n.accept,i=n.minSize,d=n.maxSize,p=n.multiple,h=n.maxFiles,f=n.validator,(!!p||!(r.length>1))&&(!p||!(h>=1)||!(r.length>h))&&r.every(function(e){var t=_(e,o),n=E(t,1)[0],r=T(e,i,d),a=E(r,1)[0],l=f?f(e):null;return n&&a&&!l}));es({isDragAccept:g,isDragReject:m>0&&!g,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return em(e)})},[i,c,em,D,Y,l,a,s,u,U]),ev=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),e_(e);var t=L(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(n){}return t&&p&&p(e),!1},[p,D]),eb=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),e_(e);var t=eh.current.filter(function(e){return er.current&&er.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),eh.current=t,!(t.length>0)&&(es({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),L(e)&&d&&d(e))},[er,d,D]),ey=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=_(e,Y),o=V(t,2),i=o[0],s=o[1],u=T(e,l,a),c=V(u,2),d=c[0],p=c[1],h=U?U(e):null;if(i&&d&&!h)n.push(e);else{var f=[s,p];h&&(f=f.concat(h)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!s&&n.length>1||s&&u>=1&&n.length>u)&&(n.forEach(function(e){r.push({file:e,errors:[A]})}),n.splice(0)),es({acceptedFiles:n,fileRejections:r,type:"setFiles"}),h&&h(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&f&&f(n,t)},[es,s,Y,l,a,u,h,f,m,U]),ex=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),e_(e),eh.current=[],L(e)&&Promise.resolve(i(e)).then(function(t){(!z(e)||D)&&ey(t,e)}).catch(function(e){return em(e)}),es({type:"reset"})},[i,ey,em,D]),ew=(0,r.useCallback)(function(){if(ed.current){es({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:s,types:J}).then(function(e){return i(e)}).then(function(e){ey(e,null),es({type:"closeDialog"})}).catch(function(e){var t,n;e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(en(e),es({type:"closeDialog"})):(n=e)instanceof DOMException&&("SecurityError"===n.name||n.code===n.SECURITY_ERR)?(ed.current=!1,eo.current?(eo.current.value=null,eo.current.click()):em(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):em(e)});return}eo.current&&(es({type:"openDialog"}),et(),eo.current.value=null,eo.current.click())},[es,et,en,y,ey,em,J,s]),eE=(0,r.useCallback)(function(e){er.current&&er.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),ew())},[er,ew]),ek=(0,r.useCallback)(function(){es({type:"focus"})},[]),eC=(0,r.useCallback)(function(){es({type:"blur"})},[]),eS=(0,r.useCallback)(function(){!S&&(!function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==n.indexOf("MSIE")||-1!==n.indexOf("Trident/")||-1!==n.indexOf("Edge/")}()?ew():setTimeout(ew,0))},[S,ew]),eM=function(e){return o?null:e},eO=function(e){return M?null:eM(e)},eA=function(e){return O?null:eM(e)},e_=function(e){D&&e.stopPropagation()},eT=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,r=e.onKeyDown,i=e.onFocus,a=e.onBlur,l=e.onClick,s=e.onDragEnter,u=e.onDragOver,c=e.onDragLeave,d=e.onDrop,p=K(e,B);return Z(Z(G({onKeyDown:eO(H(r,eE)),onFocus:eO(H(i,ek)),onBlur:eO(H(a,eC)),onClick:eM(H(l,eS)),onDragEnter:eA(H(s,eg)),onDragOver:eA(H(u,ev)),onDragLeave:eA(H(c,eb)),onDrop:eA(H(d,ex)),role:"string"==typeof n&&""!==n?n:"presentation"},void 0===t?"ref":t,er),o||M?{}:{tabIndex:0}),p)}},[er,eE,ek,eC,eS,eg,ev,eb,ex,M,O,o]),eR=(0,r.useCallback)(function(e){e.stopPropagation()},[]),ez=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,o=K(e,F),i=G({accept:Y,multiple:s,type:"file",style:{display:"none"},onChange:eM(H(n,ex)),onClick:eM(H(r,eR)),tabIndex:-1},void 0===t?"ref":t,eo);return Z(Z({},i),o)}},[eo,n,s,ex,o]);return Z(Z({},el),{},{isFocused:eu&&!o,getRootProps:eT,getInputProps:ez,rootRef:er,inputRef:eo,open:eM(ew)})}function Q(e,t){switch(t.type){case"focus":return Z(Z({},e),{},{isFocused:!0});case"blur":return Z(Z({},e),{},{isFocused:!1});case"openDialog":return Z(Z({},X),{},{isFileDialogActive:!0});case"closeDialog":return Z(Z({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Z(Z({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Z(Z({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Z({},X);default:return e}}function ee(){}},64157:function(e,t,n){"use strict";n.d(t,{zt:function(){return c},$j:function(){return J}});var r=n(2784),o=r.createContext(null);function i(e){e()}var a=i,l={notify:function(){},get:function(){return[]}};function s(e,t){var n,r=l;function o(){s.onStateChange&&s.onStateChange()}function i(){if(!n){var i,l,s;n=t?t.addNestedSub(o):e.subscribe(o),i=a,l=null,s=null,r={clear:function(){l=null,s=null},notify:function(){i(function(){for(var e=l;e;)e.callback(),e=e.next})},get:function(){for(var e=[],t=l;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,n=s={callback:e,next:null,prev:s};return n.prev?n.prev.next=n:l=n,function(){t&&null!==l&&(t=!1,n.next?n.next.prev=n.prev:s=n.prev,n.prev?n.prev.next=n.next:l=n.next)}}}}}var s={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=l)},getListeners:function(){return r}};return s}var u="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,c=function(e){var t=e.store,n=e.context,i=e.children,a=(0,r.useMemo)(function(){var e=s(t);return{store:t,subscription:e}},[t]),l=(0,r.useMemo)(function(){return t.getState()},[t]);return u(function(){var e=a.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[a,l]),r.createElement((n||o).Provider,{value:a},i)},d=n(7896),p=n(31461),h=n(73463),f=n.n(h),m=n(63920),g=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],v=["reactReduxForwardedRef"],b=[],y=[null,null];function x(e,t){var n=e[1];return[t.payload,n+1]}function w(e,t,n){u(function(){return e.apply(void 0,t)},n)}function E(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function k(e,t,n,r,o,i,a,l,s,u){if(e){var c=!1,d=null,p=function(){if(!c){var e,n,p=t.getState();try{e=r(p,o.current)}catch(h){n=h,d=h}n||(d=null),e===i.current?a.current||s():(i.current=e,l.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=p,n.trySubscribe(),p(),function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var C=function(){return[null,0]};function S(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function M(e,t){if(S(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!S(e[n[o]],t[n[o]]))return!1;return!0}function O(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function A(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function _(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=A(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=A(o),o=r(t,n)),o},r}}var T=[function(e){return"function"==typeof e?_(e,"mapDispatchToProps"):void 0},function(e){return e?void 0:O(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?O(function(t){return function(e,t){var n={};for(var r in e)!function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})}(r);return n}(e,t)}):void 0}];function R(e,t,n){return(0,d.Z)({},n,e,t)}var z=[function(e){var t;return"function"==typeof e?function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,l){var s=e(t,n,l);return a?o&&i(s,r)||(r=s):(a=!0,r=s),r}}:void 0},function(e){return e?void 0:function(){return R}}],L=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function I(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function H(e,t,n,r,o){var i,a,l,s,u,c=o.areStatesEqual,d=o.areOwnPropsEqual,p=o.areStatePropsEqual,h=!1;return function(o,f){var m,g,v,b,y,x,w,E;return h?(v=o,b=f,w=!d(b,a),E=!c(v,i,b,a),(i=v,a=b,w&&E)?(l=e(i,a),t.dependsOnOwnProps&&(s=t(r,a)),u=n(l,s,a)):w?(e.dependsOnOwnProps&&(l=e(i,a)),t.dependsOnOwnProps&&(s=t(r,a)),u=n(l,s,a)):E?(x=!p(y=e(i,a),l),l=y,x&&(u=n(l,s,a)),u):u):(l=e(i=o,a=f),u=n(l,s=t(r,a),a),h=!0,u)}}var N=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function P(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function D(e,t){return e===t}var j,B,F,V,$,W,U,Z,G,K,Y,q,X,J=(V=void 0===(F=(B=void 0===j?{}:j).connectHOC)?function e(t,n){void 0===n&&(n={});var i=n,a=i.getDisplayName,l=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,u=i.methodName,c=void 0===u?"connectAdvanced":u,h=i.renderCountProp,S=void 0===h?void 0:h,M=i.shouldHandleStateChanges,O=void 0===M||M,A=i.storeKey,_=void 0===A?"store":A,T=(i.withRef,i.forwardRef),R=void 0!==T&&T,z=i.context,L=(0,p.Z)(i,g),I=void 0===z?o:z;return function(e){var n=e.displayName||e.name||"Component",o=l(n),i=(0,d.Z)({},L,{getDisplayName:l,methodName:c,renderCountProp:S,shouldHandleStateChanges:O,storeKey:_,displayName:o,wrappedComponentName:n,WrappedComponent:e}),a=L.pure,u=a?r.useMemo:function(e){return e()};function h(n){var o=(0,r.useMemo)(function(){var e=n.reactReduxForwardedRef,t=(0,p.Z)(n,v);return[n.context,e,t]},[n]),a=o[0],l=o[1],c=o[2],h=(0,r.useMemo)(function(){return a&&a.Consumer&&(0,m.isContextConsumer)(r.createElement(a.Consumer,null))?a:I},[a,I]),f=(0,r.useContext)(h),g=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(f)&&f.store;var S=g?n.store:f.store,M=(0,r.useMemo)(function(){var e;return t(S.dispatch,i)},[S]),A=(0,r.useMemo)(function(){if(!O)return y;var e=s(S,g?null:f.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[S,g,f]),_=A[0],T=A[1],R=(0,r.useMemo)(function(){return g?f:(0,d.Z)({},f,{subscription:_})},[g,f,_]),z=(0,r.useReducer)(x,b,C),L=z[0][0],H=z[1];if(L&&L.error)throw L.error;var N=(0,r.useRef)(),P=(0,r.useRef)(c),D=(0,r.useRef)(),j=(0,r.useRef)(!1),B=u(function(){return D.current&&c===P.current?D.current:M(S.getState(),c)},[S,L,c]);w(E,[P,N,j,c,B,D,T]),w(k,[O,S,_,M,P,N,j,D,T,H],[S,_,M]);var F=(0,r.useMemo)(function(){return r.createElement(e,(0,d.Z)({},B,{ref:l}))},[l,e,B]);return(0,r.useMemo)(function(){return O?r.createElement(h.Provider,{value:R},F):F},[h,F,R])}var g=a?r.memo(h):h;if(g.WrappedComponent=e,g.displayName=h.displayName=o,R){var M=r.forwardRef(function(e,t){return r.createElement(g,(0,d.Z)({},e,{reactReduxForwardedRef:t}))});return M.displayName=o,M.WrappedComponent=e,f()(M,e)}return f()(g,e)}}:F,W=void 0===($=B.mapStateToPropsFactories)?[function(e){return"function"==typeof e?_(e,"mapStateToProps"):void 0},function(e){return e?void 0:O(function(){return{}})}]:$,Z=void 0===(U=B.mapDispatchToPropsFactories)?T:U,K=void 0===(G=B.mergePropsFactories)?z:G,q=void 0===(Y=B.selectorFactory)?function e(t,n){var r=n.initMapStateToProps,o=n.initMapDispatchToProps,i=n.initMergeProps,a=(0,p.Z)(n,L),l=r(t,a),s=o(t,a),u=i(t,a);return(a.pure?H:I)(l,s,u,t,a)}:Y,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,a=o.areStatesEqual,l=o.areOwnPropsEqual,s=o.areStatePropsEqual,u=o.areMergedPropsEqual,c=(0,p.Z)(o,N),h=P(e,W,"mapStateToProps"),f=P(t,Z,"mapDispatchToProps"),m=P(n,K,"mergeProps");return V(q,(0,d.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:h,initMapDispatchToProps:f,initMergeProps:m,pure:void 0===i||i,areStatesEqual:void 0===a?D:a,areOwnPropsEqual:void 0===l?M:l,areStatePropsEqual:void 0===s?M:s,areMergedPropsEqual:void 0===u?M:u},c))});a=X=n(28316).unstable_batchedUpdates},98559:function(e,t){"use strict";/** @license React v17.0.2
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ var n=60103,r=60106,o=60107,i=60108,a=60114,l=60109,s=60110,u=60112,c=60113,d=60120,p=60115,h=60116,f=60121,m=60122,g=60117,v=60129,b=60131;if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),o=y("react.fragment"),i=y("react.strict_mode"),a=y("react.profiler"),l=y("react.provider"),s=y("react.context"),u=y("react.forward_ref"),c=y("react.suspense"),d=y("react.suspense_list"),p=y("react.memo"),h=y("react.lazy"),y("react.block"),y("react.server.block"),y("react.fundamental"),y("react.debug_trace_mode"),y("react.legacy_hidden")}t.isContextConsumer=function(e){return function e(t){if("object"==typeof t&&null!==t){var f=t.$$typeof;switch(f){case n:switch(t=t.type){case o:case a:case i:case c:case d:return t;default:switch(t=t&&t.$$typeof){case s:case u:case h:case p:case l:return t;default:return f}}case r:return f}}}(e)===s}},63920:function(e,t,n){"use strict";e.exports=n(98559)},81167:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,o,i=(r=n(15253),r&&r.__esModule?r:{default:r}),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},s=t.autoprefix=function(e){var t={};return(0,i.default)(e,function(e,n){var r={};(0,i.default)(e,function(e,t){var n=l[t];n?r=a({},r,n(e)):r[t]=e}),t[n]=r}),t};t.default=s},72523:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=(r=n(2784),r&&r.__esModule?r:{default:r});function l(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var s=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r);for(var n,o,s,u=arguments.length,c=Array(u),d=0;d<u;d++)c[d]=arguments[d];return o=s=l(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(c))),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return a.default.createElement(t,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},a.default.createElement(e,i({},s.props,s.state)))},l(s,o)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r}(a.default.Component)};t.default=s},92106:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=(r=n(2784),r&&r.__esModule?r:{default:r});function l(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var s=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r);for(var n,o,s,u=arguments.length,c=Array(u),d=0;d<u;d++)c[d]=arguments[d];return o=s=l(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(c))),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return a.default.createElement(t,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},a.default.createElement(e,i({},s.props,s.state)))},l(s,o)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r}(a.default.Component)};t.default=s},30378:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=n(85505),o=d(r),i=n(15253),a=d(i),l=n(97030),s=d(l),u=n(16760),c=d(u);function d(e){return e&&e.__esModule?e:{default:e}}var p=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,c.default)(t,function(t){Array.isArray(t)?e(t).map(function(e){return n.push(e)}):(0,s.default)(t)?(0,a.default)(t,function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)}):(0,o.default)(t)&&n.push(t)}),n};t.default=p},7151:function(e,t,n){"use strict";t.tz=void 0;var r=n(30378),o=m(r),i=n(87214),a=m(i),l=n(81167),s=m(l),u=n(92106),c=m(u),d=n(72523),p=m(d),h=n(76983),f=m(h);function m(e){return e&&e.__esModule?e:{default:e}}c.default,t.tz=c.default,p.default,f.default;var g=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=(0,o.default)(n),l=(0,a.default)(e,i);return(0,s.default)(l)};t.ZP=g},76983:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){var n={},r=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n};t.default=n},87214:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=n(15253),o=s(r),i=n(9850),a=s(i),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function s(e){return e&&e.__esModule?e:{default:e}}var u=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,a.default)(e.default)||{};return t.map(function(t){var r=e[t];return r&&(0,o.default)(r,function(e,t){n[t]||(n[t]={}),n[t]=l({},n[t],r[t])}),t}),n};t.default=u},38726:function(e,t,n){"use strict";n.d(t,{md:function(){return f},DE:function(){return p},qC:function(){return h},MT:function(){return c}});var r=n(56666);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var l="function"==typeof Symbol&&Symbol.observable||"@@observable",s=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};function c(e,t,n){if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw Error(a(1));return n(c)(e,t)}if("function"!=typeof e)throw Error(a(2));var r,o=e,i=t,s=[],d=s,p=!1;function h(){d===s&&(d=s.slice())}function f(){if(p)throw Error(a(3));return i}function m(e){if("function"!=typeof e)throw Error(a(4));if(p)throw Error(a(5));var t=!0;return h(),d.push(e),function(){if(t){if(p)throw Error(a(6));t=!1,h();var n=d.indexOf(e);d.splice(n,1),s=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw Error(a(7));if(void 0===e.type)throw Error(a(8));if(p)throw Error(a(9));try{p=!0,i=o(i,e)}finally{p=!1}for(var t=s=d,n=0;n<t.length;n++)(0,t[n])();return e}return g({type:u.INIT}),(r={dispatch:g,subscribe:m,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw Error(a(10));o=e,g({type:u.REPLACE})}})[l]=function(){var e;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw Error(a(11));function t(){e.next&&e.next(f())}return t(),{unsubscribe:m(t)}}})[l]=function(){return this},e},r}function d(e,t){return function(){return t(e.apply(this,arguments))}}function p(e,t){if("function"==typeof e)return d(e,t);if("object"!=typeof e||null===e)throw Error(a(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=d(o,t))}return n}function h(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw Error(a(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},l=t.map(function(e){return e(o)});return r=h.apply(void 0,l)(n.dispatch),i(i({},n),{},{dispatch:r})}}}},92037:function(e,t,n){"use strict";var r,o,i="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{},a=(r="Prism"in i,o=r?i.Prism:void 0,function(){r?i.Prism=o:delete i.Prism,r=void 0,o=void 0});i.Prism={manual:!0,disableWorkerMessageHandler:!0};var l=n(22896),s=n(18309),u=n(53712),c=n(26495),d=n(40614),p=n(42449),h=n(28473);a();var f={}.hasOwnProperty;function m(){}m.prototype=u;var g=new m;function v(e){if("function"!=typeof e||!e.displayName)throw Error("Expected `function` for `grammar`, got `"+e+"`");void 0===g.languages[e.displayName]&&e(g)}function b(e){return e}e.exports=g,g.highlight=function(e,t){var n,r=u.highlight;if("string"!=typeof e)throw Error("Expected `string` for `value`, got `"+e+"`");if("Object"===g.util.type(t))n=t,t=null;else{if("string"!=typeof t)throw Error("Expected `string` for `name`, got `"+t+"`");if(f.call(g.languages,t))n=g.languages[t];else throw Error("Unknown language: `"+t+"` is not registered")}return r.call(this,e,n,t)},g.register=v,g.alias=function(e,t){var n,r,o,i,a=g.languages,l=e;for(n in t&&((l={})[e]=t),l)for(o=(r="string"==typeof(r=l[n])?[r]:r).length,i=-1;++i<o;)a[r[i]]=a[n]},g.registered=function(e){if("string"!=typeof e)throw Error("Expected `string` for `language`, got `"+e+"`");return f.call(g.languages,e)},g.listLanguages=function(){var e,t=g.languages,n=[];for(e in t)f.call(t,e)&&"object"==typeof t[e]&&n.push(e);return n},v(c),v(d),v(p),v(h),g.util.encode=b,g.Token.stringify=function(e,t,n){var r;return"string"==typeof e?{type:"text",value:e}:"Array"===g.util.type(e)?function(e,t){for(var n,r=[],o=e.length,i=-1;++i<o;)""!==(n=e[i])&&null!=n&&r.push(n);for(i=-1,o=r.length;++i<o;)n=r[i],r[i]=g.Token.stringify(n,t,r);return r}(e,t):(r={type:e.type,content:g.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(r.classes=r.classes.concat(e.alias)),g.hooks.run("wrap",r),l(r.tag+"."+r.classes.join("."),function(e){var t;for(t in e)e[t]=s(e[t]);return e}(r.attributes),r.content))}},42449:function(e){"use strict";function t(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="clike",t.aliases=[]},40614:function(e){"use strict";function t(e){var t,n,r;n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,(t=e).languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css,(r=t.languages.markup)&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}e.exports=t,t.displayName="css",t.aliases=[]},28473:function(e){"use strict";function t(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source)+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}e.exports=t,t.displayName="javascript",t.aliases=["js"]},26495:function(e){"use strict";function t(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e.exports=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},12013:function(e,t,n){"use strict";var r=n(69694),o=n(17831);e.exports=function(e,t){if(!r(e))throw Error("Value must be a finite number");if(!o(t)||t<0)throw Error("Precision must be a non-negative integer");return parseFloat(e.toFixed(t))}},84621:function(e,t,n){"use strict";var r=n(12013),o=n(52379);e.exports=a;var i={down:"floor",up:"ceil"};function a(e,t,n){if(t=t||1,n){if(!i.hasOwnProperty(n))throw Error("invalid direction");return r(Math[i[n]](e/t)*t,o(t))}var l=a(e,t,"down"),s=a(e,t,"up");return e-l<s-e?l:s}a.up=function(e,t){return a(e,t,"up")},a.down=function(e,t){return a(e,t,"down")}},55518:function(e,t){"use strict";t.Z=function(e,t){}},31118:function(e,t,n){"use strict";n.d(t,{I4:function(){return a},Ye:function(){return i}});var r=n(2784);function o(e,t){var n=(0,r.useState)(function(){return{inputs:t,result:e()}})[0],o=(0,r.useRef)(!0),i=(0,r.useRef)(n),a=o.current||Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,r.useEffect)(function(){o.current=!1,i.current=a},[a]),a.result}var i=o,a=function(e,t){return o(function(){return e},t)}},51960:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var o in r)t.call(r,o)&&(e[o]=r[o])}return e};var t=Object.prototype.hasOwnProperty},421:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.lexer=t.states=void 0;let o=r(n(42569));t.states={body:{doubleapos:{match:"''",value:()=>"'"},quoted:{lineBreaks:!0,match:/'[{}#](?:[^]*?[^'])?'(?!')/u,value:e=>e.slice(1,-1).replace(/''/g,"'")},argument:{lineBreaks:!0,match:/\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,push:"arg",value:e=>e.substring(1).trim()},octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/[^][^{}#']*/u}},arg:{select:{lineBreaks:!0,match:/,\s*(?:plural|select|selectordinal)\s*,\s*/u,next:"select",value:e=>e.split(",")[1].trim()},"func-args":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,next:"body",value:e=>e.split(",")[1].trim()},"func-simple":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,value:e=>e.substring(1).trim()},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/\s*offset\s*:\s*\d+\s*/u,value:e=>e.split(":")[1].trim()},case:{lineBreaks:!0,match:/\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,push:"body",value:e=>e.substring(0,e.indexOf("{")).trim()},end:{match:/\s*\}/u,pop:1}}},t.lexer=o.default.states(t.states)},38604:function(e,t,n){"use strict";n(421)},46319:function(e,t,n){"use strict";n.d(t,{p:function(){return R}});var r,o=n(2784),i=n(3703),a=n(90544),l=n(33401),s=n(80586),u=n(99108),c=n(15426),d=n(47215),p=n(37352),h=n(29833),f=n(55559);let m=null!=(r=o.startTransition)?r:function(e){e()};var g,v,b=((g=b||{})[g.Open=0]="Open",g[g.Closed=1]="Closed",g),y=((v=y||{})[v.ToggleDisclosure=0]="ToggleDisclosure",v[v.CloseDisclosure=1]="CloseDisclosure",v[v.SetButtonId=2]="SetButtonId",v[v.SetPanelId=3]="SetPanelId",v[v.LinkPanel=4]="LinkPanel",v[v.UnlinkPanel=5]="UnlinkPanel",v);let x={0:e=>({...e,disclosureState:(0,i.E)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},w=(0,o.createContext)(null);function E(e){let t=(0,o.useContext)(w);if(null===t){let n=Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,E),n}return t}w.displayName="DisclosureContext";let k=(0,o.createContext)(null);k.displayName="DisclosureAPIContext";let C=(0,o.createContext)(null);function S(e,t){return(0,i.E)(t.type,x,e,t)}C.displayName="DisclosurePanelContext";let M=o.Fragment,O=a.AN.RenderStrategy|a.AN.Static,A=(0,a.yV)(function(e,t){let{defaultOpen:n=!1,...r}=e,s=(0,o.useRef)(null),u=(0,l.T)(t,(0,l.h)(e=>{s.current=e},void 0===e.as||e.as===o.Fragment)),c=(0,o.useRef)(null),p=(0,o.useRef)(null),m=(0,o.useReducer)(S,{disclosureState:n?0:1,linkedPanel:!1,buttonRef:p,panelRef:c,buttonId:null,panelId:null}),[{disclosureState:g,buttonId:v},b]=m,y=(0,f.z)(e=>{b({type:1});let t=(0,h.r)(s);if(!t||!v)return;let n=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(v):t.getElementById(v);null==n||n.focus()}),x=(0,o.useMemo)(()=>({close:y}),[y]),E=(0,o.useMemo)(()=>({open:0===g,close:y}),[g,y]);return o.createElement(w.Provider,{value:m},o.createElement(k.Provider,{value:x},o.createElement(d.up,{value:(0,i.E)(g,{0:d.ZM.Open,1:d.ZM.Closed})},(0,a.sY)({ourProps:{ref:u},theirProps:r,slot:E,defaultTag:M,name:"Disclosure"}))))}),_=(0,a.yV)(function(e,t){let n=(0,s.M)(),{id:r=`headlessui-disclosure-button-${n}`,...i}=e,[d,h]=E("Disclosure.Button"),m=(0,o.useContext)(C),g=null!==m&&m===d.panelId,v=(0,o.useRef)(null),b=(0,l.T)(v,t,g?null:d.buttonRef);(0,o.useEffect)(()=>{if(!g)return h({type:2,buttonId:r}),()=>{h({type:2,buttonId:null})}},[r,h,g]);let y=(0,f.z)(e=>{var t;if(g){if(1===d.disclosureState)return;switch(e.key){case u.R.Space:case u.R.Enter:e.preventDefault(),e.stopPropagation(),h({type:0}),null==(t=d.buttonRef.current)||t.focus()}}else switch(e.key){case u.R.Space:case u.R.Enter:e.preventDefault(),e.stopPropagation(),h({type:0})}}),x=(0,f.z)(e=>{e.key===u.R.Space&&e.preventDefault()}),w=(0,f.z)(t=>{var n;(0,c.P)(t.currentTarget)||e.disabled||(g?(h({type:0}),null==(n=d.buttonRef.current)||n.focus()):h({type:0}))}),k=(0,o.useMemo)(()=>({open:0===d.disclosureState}),[d]),S=(0,p.f)(e,v),M=g?{ref:b,type:S,onKeyDown:y,onClick:w}:{ref:b,id:r,type:S,"aria-expanded":e.disabled?void 0:0===d.disclosureState,"aria-controls":d.linkedPanel?d.panelId:void 0,onKeyDown:y,onKeyUp:x,onClick:w};return(0,a.sY)({ourProps:M,theirProps:i,slot:k,defaultTag:"button",name:"Disclosure.Button"})}),T=(0,a.yV)(function(e,t){let n=(0,s.M)(),{id:r=`headlessui-disclosure-panel-${n}`,...i}=e,[u,c]=E("Disclosure.Panel"),{close:p}=function e(t){let n=(0,o.useContext)(k);if(null===n){let r=Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,e),r}return n}("Disclosure.Panel"),h=(0,l.T)(t,u.panelRef,e=>{m(()=>c({type:e?4:5}))});(0,o.useEffect)(()=>(c({type:3,panelId:r}),()=>{c({type:3,panelId:null})}),[r,c]);let f=(0,d.oJ)(),g=null!==f?(f&d.ZM.Open)===d.ZM.Open:0===u.disclosureState,v=(0,o.useMemo)(()=>({open:0===u.disclosureState,close:p}),[u,p]);return o.createElement(C.Provider,{value:u.panelId},(0,a.sY)({ourProps:{ref:h,id:r},theirProps:i,slot:v,defaultTag:"div",features:O,visible:g,name:"Disclosure.Panel"}))}),R=Object.assign(A,{Button:_,Panel:T})},62671:function(e,t,n){"use strict";n.d(t,{O:function(){return B}});var r=n(2784),o=n(90544),i=n(80586),a=n(3703),l=n(99108),s=n(52929),u=n(88064),c=n(33401),d=n(37352),p=n(61742),h=n(36799);function f({onFocus:e}){let[t,n]=(0,r.useState)(!0);return t?r.createElement(h._,{as:"button",type:"button",features:h.A.Focusable,onFocus(t){t.preventDefault();let r,o=50;function i(){if(o--<=0){r&&cancelAnimationFrame(r);return}if(e()){n(!1),cancelAnimationFrame(r);return}r=requestAnimationFrame(i)}r=requestAnimationFrame(i)}}):null}var m=n(55559),g=n(91554),v=n(29833);let b=r.createContext(null);function y({children:e}){let t=r.useRef({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let o=null!=(n=r.get(t))?n:0;r.set(t,o+1);let i;return[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return r.createElement(b.Provider,{value:t},e)}function x(e){let t=r.useContext(b);if(!t)throw Error("You must wrap your component in a <StableCollection>");let n=function(){var e,t,n;let o=null!=(n=null==(t=null==(e=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!o)return Symbol();let i=[],a=o;for(;a;)i.push(a.index),a=a.return;return"$."+i.join(".")}(),[o,i]=t.current.get(e,n);return r.useEffect(()=>i,[]),o}var w,E,k,C=((w=C||{})[w.Forwards=0]="Forwards",w[w.Backwards=1]="Backwards",w),S=((E=S||{})[E.Less=-1]="Less",E[E.Equal=0]="Equal",E[E.Greater=1]="Greater",E),M=((k=M||{})[k.SetSelectedIndex=0]="SetSelectedIndex",k[k.RegisterTab=1]="RegisterTab",k[k.UnregisterTab=2]="UnregisterTab",k[k.RegisterPanel=3]="RegisterPanel",k[k.UnregisterPanel=4]="UnregisterPanel",k);let O={0(e,t){var n;let r=(0,s.z2)(e.tabs,e=>e.current),o=(0,s.z2)(e.panels,e=>e.current),i=r.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),l={...e,tabs:r,panels:o};if(t.index<0||t.index>r.length-1){let u=(0,a.E)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,a.E)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});return 0===i.length?l:{...l,selectedIndex:(0,a.E)(u,{0:()=>r.indexOf(i[0]),1:()=>r.indexOf(i[i.length-1])})}}let c=r.slice(0,t.index),d=[...r.slice(t.index),...c].find(e=>i.includes(e));if(!d)return l;let p=null!=(n=r.indexOf(d))?n:e.selectedIndex;return -1===p&&(p=e.selectedIndex),{...l,selectedIndex:p}},1(e,t){var n;if(e.tabs.includes(t.tab))return e;let r=e.tabs[e.selectedIndex],o=(0,s.z2)([...e.tabs,t.tab],e=>e.current),i=null!=(n=o.indexOf(r))?n:e.selectedIndex;return -1===i&&(i=e.selectedIndex),{...e,tabs:o,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,s.z2)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},A=(0,r.createContext)(null);function _(e){let t=(0,r.useContext)(A);if(null===t){let n=Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,_),n}return t}A.displayName="TabsDataContext";let T=(0,r.createContext)(null);function R(e){let t=(0,r.useContext)(T);if(null===t){let n=Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,R),n}return t}function z(e,t){return(0,a.E)(t.type,O,e,t)}T.displayName="TabsActionsContext";let L=r.Fragment,I=o.AN.RenderStrategy|o.AN.Static,H=(0,o.yV)(function(e,t){var n,p;let h=(0,i.M)(),{id:f=`headlessui-tabs-tab-${h}`,...b}=e,{orientation:y,activation:w,selectedIndex:E,tabs:k,panels:C}=_("Tab"),S=R("Tab"),M=_("Tab"),O=(0,r.useRef)(null),A=(0,c.T)(O,t);(0,u.e)(()=>S.registerTab(O),[S,O]);let T=x("tabs"),z=k.indexOf(O);-1===z&&(z=T);let L=z===E,I=(0,m.z)(e=>{var t;let n=e();if(n===s.fE.Success&&"auto"===w){let r=null==(t=(0,v.r)(O))?void 0:t.activeElement,o=M.tabs.findIndex(e=>e.current===r);-1!==o&&S.change(o)}return n}),H=(0,m.z)(e=>{let t=k.map(e=>e.current).filter(Boolean);if(e.key===l.R.Space||e.key===l.R.Enter){e.preventDefault(),e.stopPropagation(),S.change(z);return}switch(e.key){case l.R.Home:case l.R.PageUp:return e.preventDefault(),e.stopPropagation(),I(()=>(0,s.jA)(t,s.TO.First));case l.R.End:case l.R.PageDown:return e.preventDefault(),e.stopPropagation(),I(()=>(0,s.jA)(t,s.TO.Last))}if(I(()=>(0,a.E)(y,{vertical:()=>e.key===l.R.ArrowUp?(0,s.jA)(t,s.TO.Previous|s.TO.WrapAround):e.key===l.R.ArrowDown?(0,s.jA)(t,s.TO.Next|s.TO.WrapAround):s.fE.Error,horizontal:()=>e.key===l.R.ArrowLeft?(0,s.jA)(t,s.TO.Previous|s.TO.WrapAround):e.key===l.R.ArrowRight?(0,s.jA)(t,s.TO.Next|s.TO.WrapAround):s.fE.Error}))===s.fE.Success)return e.preventDefault()}),N=(0,r.useRef)(!1),P=(0,m.z)(()=>{var e;N.current||(N.current=!0,null==(e=O.current)||e.focus(),S.change(z),(0,g.Y)(()=>{N.current=!1}))}),D=(0,m.z)(e=>{e.preventDefault()}),j=(0,r.useMemo)(()=>({selected:L}),[L]),B={ref:A,onKeyDown:H,onMouseDown:D,onClick:P,id:f,role:"tab",type:(0,d.f)(e,O),"aria-controls":null==(p=null==(n=C[z])?void 0:n.current)?void 0:p.id,"aria-selected":L,tabIndex:L?0:-1};return(0,o.sY)({ourProps:B,theirProps:b,slot:j,defaultTag:"button",name:"Tabs.Tab"})}),N=(0,o.yV)(function(e,t){let{defaultIndex:n=0,vertical:i=!1,manual:a=!1,onChange:l,selectedIndex:d=null,...h}=e,g=i?"vertical":"horizontal",v=a?"manual":"auto",b=null!==d,x=(0,c.T)(t),[w,E]=(0,r.useReducer)(z,{selectedIndex:null!=d?d:n,tabs:[],panels:[]}),k=(0,r.useMemo)(()=>({selectedIndex:w.selectedIndex}),[w.selectedIndex]),C=(0,p.E)(l||(()=>{})),S=(0,p.E)(w.tabs),M=(0,r.useMemo)(()=>({orientation:g,activation:v,...w}),[g,v,w]),O=(0,m.z)(e=>(E({type:1,tab:e}),()=>E({type:2,tab:e}))),_=(0,m.z)(e=>(E({type:3,panel:e}),()=>E({type:4,panel:e}))),R=(0,m.z)(e=>{I.current!==e&&C.current(e),b||E({type:0,index:e})}),I=(0,p.E)(b?e.selectedIndex:w.selectedIndex),H=(0,r.useMemo)(()=>({registerTab:O,registerPanel:_,change:R}),[]);return(0,u.e)(()=>{E({type:0,index:null!=d?d:n})},[d]),(0,u.e)(()=>{if(void 0===I.current||w.tabs.length<=0)return;let e=(0,s.z2)(w.tabs,e=>e.current);e.some((e,t)=>w.tabs[t]!==e)&&R(e.indexOf(w.tabs[I.current]))}),r.createElement(y,null,r.createElement(T.Provider,{value:H},r.createElement(A.Provider,{value:M},M.tabs.length<=0&&r.createElement(f,{onFocus(){var e,t;for(let n of S.current)if((null==(e=n.current)?void 0:e.tabIndex)===0)return null==(t=n.current)||t.focus(),!0;return!1}}),(0,o.sY)({ourProps:{ref:x},theirProps:h,slot:k,defaultTag:L,name:"Tabs"}))))}),P=(0,o.yV)(function(e,t){let{orientation:n,selectedIndex:r}=_("Tab.List"),i=(0,c.T)(t);return(0,o.sY)({ourProps:{ref:i,role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})}),D=(0,o.yV)(function(e,t){let{selectedIndex:n}=_("Tab.Panels"),i=(0,c.T)(t),a=(0,r.useMemo)(()=>({selectedIndex:n}),[n]);return(0,o.sY)({ourProps:{ref:i},theirProps:e,slot:a,defaultTag:"div",name:"Tabs.Panels"})}),j=(0,o.yV)(function(e,t){var n,a,l,s;let d=(0,i.M)(),{id:p=`headlessui-tabs-panel-${d}`,tabIndex:f=0,...m}=e,{selectedIndex:g,tabs:v,panels:b}=_("Tab.Panel"),y=R("Tab.Panel"),w=(0,r.useRef)(null),E=(0,c.T)(w,t);(0,u.e)(()=>y.registerPanel(w),[y,w]);let k=x("panels"),C=b.indexOf(w);-1===C&&(C=k);let S=C===g,M=(0,r.useMemo)(()=>({selected:S}),[S]),O={ref:E,id:p,role:"tabpanel","aria-labelledby":null==(a=null==(n=v[C])?void 0:n.current)?void 0:a.id,tabIndex:S?f:-1};return S||null!=(l=m.unmount)&&!l||null!=(s=m.static)&&s?(0,o.sY)({ourProps:O,theirProps:m,slot:M,defaultTag:"div",features:I,visible:S,name:"Tabs.Panel"}):r.createElement(h._,{as:"span",...O})}),B=Object.assign(H,{Group:N,List:P,Panels:D,Panel:j})},38756:function(e,t,n){"use strict";n.d(t,{By:function(){return h},Eg:function(){return s},RC:function(){return g},Vp:function(){return c},Z9:function(){return u},eX:function(){return p},lk:function(){return f},mA:function(){return b},vO:function(){return v},xV:function(){return m},zr:function(){return d}});var r,o,i,a,l,s="ProseMirror-selectednode",u="￼",c="\0",d="__state_override__",p={LastNodeCompatible:"lastNodeCompatible",FormattingMark:"formattingMark",FormattingNode:"formattingNode",NodeCursor:"nodeCursor",FontStyle:"fontStyle",Link:"link",Color:"color",Alignment:"alignment",Indentation:"indentation",Behavior:"behavior",Code:"code",InlineNode:"inline",ListContainerNode:"listContainer",ListItemNode:"listItemNode",Block:"block",BlockNode:"block",TextBlock:"textBlock",ExcludeInputRules:"excludeFromInputRules",PreventExits:"preventsExits",Media:"media"},h=Symbol.for("__remirror__"),f=((r=f||{}).PlainExtension="RemirrorPlainExtension",r.NodeExtension="RemirrorNodeExtension",r.MarkExtension="RemirrorMarkExtension",r.PlainExtensionConstructor="RemirrorPlainExtensionConstructor",r.NodeExtensionConstructor="RemirrorNodeExtensionConstructor",r.MarkExtensionConstructor="RemirrorMarkExtensionConstructor",r.Manager="RemirrorManager",r.Preset="RemirrorPreset",r.PresetConstructor="RemirrorPresetConstructor",r),m=((o=m||{})[o.Critical=1e6]="Critical",o[o.Highest=1e5]="Highest",o[o.High=1e4]="High",o[o.Medium=1e3]="Medium",o[o.Default=100]="Default",o[o.Low=10]="Low",o[o.Lowest=0]="Lowest",o),g=((i=g||{})[i.None=0]="None",i[i.Create=1]="Create",i[i.EditorView=2]="EditorView",i[i.Runtime=3]="Runtime",i[i.Destroy=4]="Destroy",i),v=((a=v||{}).Undo="_|undo|_",a.Redo="_|redo|_",a.Bold="_|bold|_",a.Italic="_|italic|_",a.Underline="_|underline|_",a.Strike="_|strike|_",a.Code="_|code|_",a.Paragraph="_|paragraph|_",a.H1="_|h1|_",a.H2="_|h2|_",a.H3="_|h3|_",a.H4="_|h4|_",a.H5="_|h5|_",a.H6="_|h6|_",a.TaskList="_|task|_",a.BulletList="_|bullet|_",a.OrderedList="_|number|_",a.Quote="_|quote|_",a.Divider="_|divider|_",a.Codeblock="_|codeblock|_",a.ClearFormatting="_|clear|_",a.Superscript="_|sup|_",a.Subscript="_|sub|_",a.LeftAlignment="_|left-align|_",a.CenterAlignment="_|center-align|_",a.RightAlignment="_|right-align|_",a.JustifyAlignment="_|justify-align|_",a.InsertLink="_|link|_",a.Find="_|find|_",a.FindBackwards="_|find-backwards|_",a.FindReplace="_|find-replace|_",a.AddFootnote="_|footnote|_",a.AddComment="_|comment|_",a.ContextMenu="_|context-menu|_",a.IncreaseFontSize="_|inc-font-size|_",a.DecreaseFontSize="_|dec-font-size|_",a.IncreaseIndent="_|indent|_",a.DecreaseIndent="_|dedent|_",a.Shortcuts="_|shortcuts|_",a.Copy="_|copy|_",a.Cut="_|cut|_",a.Paste="_|paste|_",a.PastePlain="_|paste-plain|_",a.SelectAll="_|select-all|_",a.Format="_|format|_",a),b=((l=b||{}).PROD="RMR0000",l.UNKNOWN="RMR0001",l.INVALID_COMMAND_ARGUMENTS="RMR0002",l.CUSTOM="RMR0003",l.CORE_HELPERS="RMR0004",l.MUTATION="RMR0005",l.INTERNAL="RMR0006",l.MISSING_REQUIRED_EXTENSION="RMR0007",l.MANAGER_PHASE_ERROR="RMR0008",l.INVALID_GET_EXTENSION="RMR0010",l.INVALID_MANAGER_ARGUMENTS="RMR0011",l.SCHEMA="RMR0012",l.HELPERS_CALLED_IN_OUTER_SCOPE="RMR0013",l.INVALID_MANAGER_EXTENSION="RMR0014",l.DUPLICATE_COMMAND_NAMES="RMR0016",l.DUPLICATE_HELPER_NAMES="RMR0017",l.NON_CHAINABLE_COMMAND="RMR0018",l.INVALID_EXTENSION="RMR0019",l.INVALID_CONTENT="RMR0021",l.INVALID_NAME="RMR0050",l.EXTENSION="RMR0100",l.EXTENSION_SPEC="RMR0101",l.EXTENSION_EXTRA_ATTRIBUTES="RMR0102",l.INVALID_SET_EXTENSION_OPTIONS="RMR0103",l.REACT_PROVIDER_CONTEXT="RMR0200",l.REACT_GET_ROOT_PROPS="RMR0201",l.REACT_EDITOR_VIEW="RMR0202",l.REACT_CONTROLLED="RMR0203",l.REACT_NODE_VIEW="RMR0204",l.REACT_GET_CONTEXT="RMR0205",l.REACT_COMPONENTS="RMR0206",l.REACT_HOOKS="RMR0207",l.I18N_CONTEXT="RMR0300",l)},71071:function(e,t,n){"use strict";n.d(t,{RF:function(){return u},hu:function(){return d},fp:function(){return c},kC:function(){return P},uZ:function(){return G},cx:function(){return et},RH:function(){return Z},bH:function(){return ea},qh:function(){return h},JD:function(){return D},VF:function(){return function e(t){let n=[];for(let r of t){let o=I(r)?e(r):[r];n.push(...o)}return n}},vV:function(){return el},r2:function(){return ee},q9:function(){return g},kG:function(){return ei},kJ:function(){return I},jn:function(){return M},yD:function(){return H},Qr:function(){return L},Xy:function(){return $},mf:function(){return S},V9:function(){return R},Of:function(){return N},le:function(){return _},hj:function(){return C},Kn:function(){return T},PO:function(){return O},Kj:function(){return z},HD:function(){return k},o8:function(){return E},XP:function(){return f},Z$:function(){return K},ZT:function(){return U},Ry:function(){return v},Yc:function(){return V},w6:function(){return J},DY:function(){return Y},qn:function(){return F},BB:function(){return b},Nb:function(){return W},uw:function(){return X},EL:function(){return B},zN:function(){return q},VO:function(){return m},uh:function(){return Q}});var r=n(85598),o=n(38756),i=function(){let e=Array.prototype.slice.call(arguments).filter(Boolean),t={},n=[];e.forEach(e=>{let r=e?e.split(" "):[];r.forEach(e=>{if(e.startsWith("atm_")){let[,r]=e.split("_");t[r]=e}else n.push(e)})});let r=[];for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.push(t[o]);return r.push(...n),r.join(" ")},a=n(39714),l=n(69378),s=n(13e3);function u(e){return e}function c(e,t,n){let r=e[t];return d(!E(r),n),r}function d(e,t){if(!e)throw new p(t)}n(86883);var p=class extends r.BaseError{constructor(){super(...arguments),this.name="AssertionError"}};function h(e){return Object.entries(e)}function f(e){return Object.keys(e)}function m(e){return Object.values(e)}function g(e,t,n){return e.includes(t,n)}function v(e){return Object.assign(Object.create(null),e)}function b(e){return Object.prototype.toString.call(e)}function y(e){let t=b(e).slice(8,-1);return t}function x(e,t){return n=>typeof n===e&&(!t||t(n))}function w(e){return t=>y(t)===e}var E=x("undefined"),k=x("string"),C=x("number",e=>!Number.isNaN(e)),S=x("function");function M(e){return!0===e||!1===e}function O(e){if("Object"!==y(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})}function A(e){return null==e||/^[bns]/.test(typeof e)}function _(e){var t;return null===e||E(e)}function T(e){return!_(e)&&(S(e)||x("object")(e))}function R(e){return t=>T(t)&&t instanceof e}x("symbol");var z=w("RegExp");function L(e){var t,n;return T(e)&&!w("Map")(e)&&!w("Set")(e)&&0===Object.keys(e).length}w("Date"),w("Error");var I=Array.isArray;function H(e){return I(e)&&0===e.length}function N(e){return I(e)&&e.length>0}function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}function D(e,t,n=e=>!!e){t.lastIndex=0;let r=[],o=t.flags,i;o.includes("g")||(t=RegExp(t.source,`g${o}`));do(i=t.exec(e))&&r.push(i);while(n(i));return t.lastIndex=0,r}function j(){let e=Date.now(),t=j.last||e;return j.last=e>t?e:t+1}function B(e=""){return`${e}${j().toString(36)}`}function F(e,t){return t=Math.max(Math.min(0,t),t),e.slice(0,t)}function V(e){return s(e,e=>!E(e))}j.last=0;var $=l;function W(e,t=!1){let n=t?[...e].reverse():e,r=new Set(n);return t?[...r].reverse():[...r]}function U(){}function Z(...e){return a.all(e,{isMergeableObject:O})}function G({min:e,max:t,value:n}){return n<e?e:n>t?t:n}function K(e){return e[e.length-1]}function Y(e,t){return[...e].map((e,t)=>({value:e,index:t})).sort((e,n)=>t(e.value,n.value)||e.index-n.index).map(({value:e})=>e)}function q(e,t){let n=function(e){if(!O(e))throw Error("An invalid value was passed into this clone utility. Expected a plain object");return{...e}}(t),r=n;for(let[o,i]of e.entries()){let a=o>=e.length-1,l=r[i];if(a){if(I(r)){let s=Number.parseInt(i.toString(),10);C(s)&&r.splice(s,1)}else Reflect.deleteProperty(r,i);break}if(A(l))break;l=I(l)?[...l]:{...l},r[i]=l,r=l}return n}function X(e,t,n=!1){var r;let o=[],i=new Set,a=S(t)?t:e=>(function(e,t,n){try{if(k(t)&&t in e)return e[t];I(t)&&(t=`['${t.join("']['")}']`);let r=e;return t.replace(/\[\s*(["'])(.*?)\1\s*]|^\s*(\w+)\s*(?=\.|\[|$)|\.\s*(\w*)\s*(?=\.|\[|$)|\[\s*(-?\d+)\s*]/g,(e,t,n,o,i,a)=>(r=r[n||o||i||a],"")),void 0===r?n:r}catch{return n}})(e,t),l=n?[...e].reverse():e;for(let s of l){let u=a(s);i.has(u)||(i.add(u),o.push(s))}return n?o.reverse():o}function J(e,t){let n=I(e)?e[0]:e;return C(t)?n<=t?Array.from({length:t+1-n},(e,t)=>t+n):Array.from({length:n+1-t},(e,t)=>-1*t+n):Array.from({length:Math.abs(n)},(e,t)=>(n<0?-1:1)*t)}function Q(e,...t){let n=t.filter(C);return e>=Math.min(...n)&&e<=Math.max(...n)}function ee(e){return S(e)?e():e}function et(...e){return W(i(...e).split(" ")).join(" ")}var en="https://remirror.io/docs/errors",er={[o.mA.UNKNOWN]:"An error occurred but we're not quite sure why. \uD83E\uDDD0",[o.mA.INVALID_COMMAND_ARGUMENTS]:"The arguments passed to the command method were invalid.",[o.mA.CUSTOM]:"This is a custom error, possibly thrown by an external library.",[o.mA.CORE_HELPERS]:"An error occurred in a function called from the `@remirror/core-helpers` library.",[o.mA.MUTATION]:"Mutation of immutable value detected.",[o.mA.INTERNAL]:"This is an error which should not occur and is internal to the remirror codebase.",[o.mA.MISSING_REQUIRED_EXTENSION]:"Your editor is missing a required extension.",[o.mA.MANAGER_PHASE_ERROR]:"This occurs when accessing a method or property before it is available.",[o.mA.INVALID_GET_EXTENSION]:"The user requested an invalid extension from the getExtensions method. Please check the `createExtensions` return method is returning an extension with the defined constructor.",[o.mA.INVALID_MANAGER_ARGUMENTS]:"Invalid value(s) passed into `Manager` constructor. Only `Presets` and `Extensions` are supported.",[o.mA.SCHEMA]:"There is a problem with the schema or you are trying to access a node / mark that doesn't exists.",[o.mA.HELPERS_CALLED_IN_OUTER_SCOPE]:"The `helpers` method which is passed into the ``create*` method should only be called within returned method since it relies on an active view (not present in the outer scope).",[o.mA.INVALID_MANAGER_EXTENSION]:"You requested an invalid extension from the manager.",[o.mA.DUPLICATE_COMMAND_NAMES]:"Command method names must be unique within the editor.",[o.mA.DUPLICATE_HELPER_NAMES]:"Helper method names must be unique within the editor.",[o.mA.NON_CHAINABLE_COMMAND]:"Attempted to chain a non chainable command.",[o.mA.INVALID_EXTENSION]:"The provided extension is invalid.",[o.mA.INVALID_CONTENT]:"The content provided to the editor is not supported.",[o.mA.INVALID_NAME]:"An invalid name was used for the extension.",[o.mA.EXTENSION]:"An error occurred within an extension. More details should be made available.",[o.mA.EXTENSION_SPEC]:"The spec was defined without calling the `defaults`, `parse` or `dom` methods.",[o.mA.EXTENSION_EXTRA_ATTRIBUTES]:"Extra attributes must either be a string or an object.",[o.mA.INVALID_SET_EXTENSION_OPTIONS]:"A call to `extension.setOptions` was made with invalid keys.",[o.mA.REACT_PROVIDER_CONTEXT]:"`useRemirrorContext` was called outside of the `remirror` context. It can only be used within an active remirror context created by the `<Remirror />`.",[o.mA.REACT_GET_ROOT_PROPS]:"`getRootProps` has been attached to the DOM more than once. It should only be attached to the dom once per editor.",[o.mA.REACT_EDITOR_VIEW]:"A problem occurred adding the editor view to the dom.",[o.mA.REACT_CONTROLLED]:"There is a problem with your controlled editor setup.",[o.mA.REACT_NODE_VIEW]:"Something went wrong with your custom ReactNodeView Component.",[o.mA.REACT_GET_CONTEXT]:"You attempted to call `getContext` provided by the `useRemirror` prop during the first render of the editor. This is not possible and should only be after the editor first mounts.",[o.mA.REACT_COMPONENTS]:"An error occurred within a remirror component.",[o.mA.REACT_HOOKS]:"An error occurred within a remirror hook.",[o.mA.I18N_CONTEXT]:"You called `useI18n()` outside of an `I18nProvider` context."},eo=class extends r.BaseError{constructor({code:e,message:t,disableLogging:n=!1}={}){var r;let i=k(e)&&g(m(o.mA),e)?e:o.mA.CUSTOM;super(function(e,t){let n=er[e],r=n?`${n}

`:"",o=t?`${t}

`:"";return`${r}${o}For more information visit ${en}#${e.toLowerCase()}`}(i,t)),this.errorCode=i,this.url=`${en}#${i.toLowerCase()}`,n||console.error(this.message)}static create(e={}){return new eo(e)}};function ei(e,t){if(!e)throw eo.create(t)}function ea(e){if("object"!=typeof e||null===e)return e;let t=Symbol.toStringTag in e&&"Module"===e[Symbol.toStringTag]?e.default??e:e;return t&&"object"==typeof e&&"__esModule"in t&&t.__esModule&&void 0!==t.default?t.default:t}function el(e,t={}){return e}},71688:function(e,t,n){"use strict";n.d(t,{Q2:function(){return G},PZ:function(){return N},V1:function(){return Y},ju:function(){return R},EP:function(){return function e(t){let{content:n,schema:i,document:a,stringHandler:l,onError:s,attempts:u=0}=t;if((0,o.kG)(s&&u<=3||0===u,{code:r.mA.INVALID_CONTENT,message:"The invalid content has been called recursively more than ${MAX_ATTEMPTS} times. The content is invalid and the error handler has not been able to recover properly."}),(0,o.HD)(n))return(0,o.kG)(l,{code:r.mA.INVALID_CONTENT,message:`The string '${n}' was added to the editor, but no \`stringHandler\` was added. Please provide a valid string handler which transforms your content to a \`ProsemirrorNode\` to prevent this error.`}),l({document:a,content:n,schema:i});if(er(n))return n.doc;if(ee(n))return n;try{return i.nodeFromJSON(n)}catch(p){let c=function({json:e,schema:t,...n}){let r=new Set((0,o.XP)(t.marks)),i=new Set((0,o.XP)(t.nodes)),a=function e(t){let{json:n,validMarks:r,validNodes:i,path:a=[]}=t,l={validMarks:r,validNodes:i},s=[],{type:u,marks:c,content:d}=n,{invalidParentMark:p=!1,invalidParentNode:h=!1}=t;if(c){let f=[];for(let[m,g]of c.entries()){let v=(0,o.HD)(g)?g:g.type;!r.has(v)&&(f.unshift({name:v,path:[...a,"marks",`${m}`],type:"mark",invalidParentMark:p,invalidParentNode:h}),p=!0)}s.push(...f)}if(i.has(u)||(s.push({name:u,type:"node",path:a,invalidParentMark:p,invalidParentNode:h}),h=!0),d){let b=[];for(let[y,x]of d.entries())b.unshift(...e({...l,json:x,path:[...a,"content",`${y}`],invalidParentMark:p,invalidParentNode:h}));s.unshift(...b)}return s}({json:e,path:[],validNodes:i,validMarks:r});return{json:e,invalidContent:a,transformers:eL,...n}}({schema:i,error:p,json:n}),d=null==s?void 0:s(c);return(0,o.kG)(d,{code:r.mA.INVALID_CONTENT,message:`An error occurred when processing the content. Please provide an \`onError\` handler to process the invalid content: ${JSON.stringify(c.invalidContent,null,2)}`}),e({...t,content:d,attempts:u+1})}}},NZ:function(){return w},N2:function(){return eY},as:function(){return eX},hK:function(){return B},JB:function(){return F},Kk:function(){return j},Tr:function(){return V},EM:function(){return Z},qh:function(){return eJ},QC:function(){return ev},Lp:function(){return ew},JN:function(){return ed},Me:function(){return ek},yv:function(){return O},IH:function(){return ef},x4:function(){return em},FI:function(){return ex},jo:function(){return J},JM:function(){return ey},Jv:function(){return eK},C2:function(){return E},b0:function(){return eE},yZ:function(){return W},OC:function(){return e_},d7:function(){return ei},xN:function(){return ep},$q:function(){return ec},mV:function(){return z},jd:function(){return L},mp:function(){return eh},OA:function(){return eI},pI:function(){return X},yw:function(){return eu},Ig:function(){return U},$9:function(){return H},EG:function(){return es},mt:function(){return et},K_:function(){return en},PH:function(){return ee},gf:function(){return q},G6:function(){return e$},Ab:function(){return $},GK:function(){return eN},sg:function(){return eH},hT:function(){return eo},X3:function(){return ez},Cf:function(){return eQ},d3:function(){return I},bk:function(){return K},x2:function(){return e0},Kh:function(){return eR},YD:function(){return M},Em:function(){return eA},P9:function(){return eU},aS:function(){return P},IY:function(){return D},lp:function(){return eW},uJ:function(){return eB},yL:function(){return k},zU:function(){return eF},bm:function(){return ej},dy:function(){return eP},ym:function(){return eD}});var r=n(38756),o=n(71071),i=n(27191),a=n(26151),l=/[A-Z]/g,s=/^ms-/,u={};function c(e){return"-"+e.toLowerCase()}var d=function(e){if(u.hasOwnProperty(e))return u[e];var t=e.replace(l,c);return u[e]=s.test(t)?"-"+t:t};function p(e,t){var n;return d(e)+":"+t}function h(){return"undefined"!=typeof document?document:null}var f=n(13e3),m=n(30764),g=n(81553),v=n(75114),b=n(88892),y=n(41466),x=n(93542),w={get isBrowser(){return!!("undefined"!=typeof window&&void 0!==window.document&&window.navigator&&window.navigator.userAgent)},get isJSDOM(){return w.isBrowser&&window.navigator.userAgent.includes("jsdom")},get isNode(){return void 0!==x&&null!=x.versions&&null!=x.versions.node},get isIos(){return w.isBrowser&&/iPod|iPhone|iPad/.test(navigator.platform)},get isMac(){return w.isBrowser&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)},get isApple(){return w.isNode?"darwin"===x.platform:!!w.isBrowser&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)},get isDevelopment(){return!1},get isTest(){return!1},get isProduction(){return!0}};function E(e,t){var n;let r=eS(e);return(null==(n=null==r?void 0:r.getComputedStyle(e))?void 0:n.getPropertyValue(t))??""}function k(e,t){return Object.assign(e.style,t)}var C=["px","rem","em","in","q","mm","cm","pt","pc","vh","vw","vmin","vmax"],S=/[\d-.]+(\w+)$/;function M(e="0"){let t=e||"0",n=Number.parseFloat(t),r=t.match(S),i=((null==r?void 0:r[1])??"px").toLowerCase();return[n,(0,o.q9)(C,i)?i:"px"]}function O(e){if(L(e))return E(e,"font-size")||O(e.parentElement);let t=eS(e);return t?E(t.document.documentElement,"font-size"):""}var A=/^([a-z]+)\((.+)\)$/i;function _(e,t){let[n,r]=M(e);return t(n,r)}function T(e,t){let n=function(e){let t=eO(e),n=t.document.documentElement||t.document.body;return(r,o)=>{switch(o){case"rem":return r*T(O(n));case"em":return r*T(O(e),null==e?void 0:e.parentElement);case"in":return 96*r;case"q":return 96*r/25.4/4;case"mm":return 96*r/25.4;case"cm":return 960*r/25.4;case"pt":return 96*r/72;case"pc":return 96*r/6;case"vh":return(r*t.innerHeight||n.clientWidth)/100;case"vw":return(r*t.innerWidth||n.clientHeight)/100;case"vmin":return r*Math.min(t.innerWidth||n.clientWidth,t.innerHeight||n.clientHeight)/100;case"vmax":return r*Math.max(t.innerWidth||n.clientWidth,t.innerHeight||n.clientHeight)/100;default:return r}}}(t);return A.test(e)?function e(t,n){if(!A.test(t))return Number.NaN;let r=g(t,{brackets:["()"],escape:"_",flat:!0});if(!r||0===r.length)return Number.NaN;function i(e){return e.replace(/_(\d+)_/g,(e,t)=>{let n=Number.parseFloat(t);return r[n]??""})}let a=ex(r,0);for(let l of(0,o.JD)(a,A)){let s=ex(l,1),u=i(ex(l,2)),c=u.split(/\s*,\s*/),d=c.map(t=>{if(A.test(t)){let r=i(t);return e(r,n)}return _(t,n)});switch(s){case"min":return Math.min(...d);case"max":return Math.max(...d);case"clamp":{let[p,h,f]=d;if((0,o.hj)(p)&&(0,o.hj)(h)&&(0,o.hj)(f))return(0,o.uZ)({min:p,max:f,value:h});break}default:return Number.NaN}}return Number.NaN}(e.toLowerCase(),n):_(e,n)}function R(e,t,n){let r=eO(n),o=r.document.documentElement||r.document.body,i=T(e,n);switch(t){case"px":default:return i;case"rem":return i/T(O(o));case"em":return i*T(O(n),null==n?void 0:n.parentElement);case"in":return i/96;case"q":return i/96*101.6;case"mm":return i/96*25.4;case"cm":return i/96/10*25.4;case"pt":return i/96*72;case"pc":return i/96*6;case"vh":return i/(r.innerHeight||o.clientWidth)*100;case"vw":return i/(r.innerWidth||o.clientHeight)*100;case"vmin":return i/Math.min(r.innerWidth||o.clientWidth,r.innerHeight||o.clientHeight)*100;case"vmax":return i/Math.max(r.innerWidth||o.clientWidth,r.innerHeight||o.clientHeight)*100}}function z(e){return(0,o.Kn)(e)&&(0,o.hj)(e.nodeType)&&(0,o.HD)(e.nodeName)}function L(e){return z(e)&&1===e.nodeType}function I(e,t){let n=Math.min(e.left,t.left),r=Math.max(e.right,t.right),o=Math.min(e.top,t.top),i=Math.max(e.bottom,t.bottom);return new DOMRect(n,o,r-n,i-o)}function H(e){let{types:t,node:n}=e;if(!n)return!1;let r=e=>e===n.type||e===n.type.name;return(0,o.kJ)(t)?t.some(r):r(t)}function N(e,t){let{tr:n}=t;return e.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function P({pos:e,tr:t}){let n=t.doc.nodeAt(e);return n&&t.delete(e,e+n.nodeSize),t}function D({pos:e,tr:t,content:n}){let r=t.doc.nodeAt(e);return r&&t.replaceWith(e,e+r.nodeSize,n),t}function j(e){let{predicate:t,selection:n}=e,r=er(n)?n.selection.$from:ea(n)?n.$from:n;for(let o=r.depth;o>0;o--){let i=r.node(o),a=o>0?r.before(o):0,l=r.start(o),s=a+i.nodeSize;if(t(i,a))return{pos:a,depth:o,node:i,start:l,end:s}}}function B(e){let{depth:t}=e,n=t>0?e.before(t):0,r=e.node(t),o=e.start(t),i=n+r.nodeSize;return{pos:n,start:o,node:r,end:i,depth:t}}function F(e){let t=j({predicate:()=>!0,selection:e});return(0,o.kG)(t,{message:"No parent node found for the selection provided."}),t}function V(e){let{types:t,selection:n}=e;return j({predicate:e=>H({types:t,node:e}),selection:n})}function $(e){return ea(e)?e.empty:e.selection.empty}function W(e){return e.docChanged||e.selectionSet}function U(e){return!!Z(e)}function Z(e){let{state:t,type:n,attrs:i}=e,{selection:a,doc:l}=t,s=(0,o.HD)(n)?l.type.schema.nodes[n]:n;(0,o.kG)(s,{code:r.mA.SCHEMA,message:`No node exists for ${n}`});let u=function(e){let{types:t,selection:n}=e;if(es(n)&&H({types:t,node:n.node}))return{pos:n.$from.pos,depth:n.$from.depth,start:n.$from.start(),end:n.$from.pos+n.node.nodeSize,node:n.node}}({selection:a,types:n})??j({predicate:e=>e.type===s,selection:a});return!i||(0,o.Qr)(i)||!u?u:u.node.hasMarkup(s,{...u.node.attrs,...i})?u:void 0}function G(...e){return t=>{if(!(0,o.Of)(e))return!1;let[n,...r]=e,i=!1,a=(...e)=>()=>{if(!(0,o.Of)(e))return!1;i=!0;let[,...n]=e;return G(...e)({...t,next:a(...n)})},l=a(...r),s=n({...t,next:l});return i||s?s:l()}}function K(e){return function(e,t){let n=new Map,r=(0,o.Ry)();for(let i of e)for(let[a,l]of(0,o.qh)(i)){let s=n.get(a)??[],u=[...s,l],c=G(...u);n.set(a,u),r[a]=t(c)}return r}(e,e=>(t,n,r)=>e({state:t,dispatch:n,view:r,tr:t.tr,next:()=>!1}))}function Y(e,t){let n=e.attrs??{};return Object.entries(t).every(([e,t])=>n[e]===t)}function q(e){return(0,o.Kn)(e)}function X(e,t){return(0,o.kJ)(t)?(0,o.q9)(t,e[r.By]):t===e[r.By]}function J(e,t){return(0,o.HD)(e)?(0,o.fp)(t.nodes,e):e}function Q(e){return(0,o.Kn)(e)&&e instanceof m.ZU}function ee(e){return(0,o.Kn)(e)&&e instanceof m.NB}function et(e){return(0,o.Kn)(e)&&e instanceof m.HY}function en(e){return(0,o.Kn)(e)&&e instanceof m.vc}function er(e){return(0,o.Kn)(e)&&e instanceof i.yy}function eo(e){return(0,o.Kn)(e)&&e instanceof i.Bs}function ei(e){return(0,o.Kn)(e)&&e instanceof i.C1}function ea(e){return(0,o.Kn)(e)&&e instanceof i.Y1}function el(e){var t,n;let{trState:r,from:i,to:a,type:l,attrs:s={}}=e,{doc:u}=r,c=(n=u.type.schema,(0,o.HD)(l)?(0,o.fp)(n.marks,l):l);if(0===Object.keys(s).length)return u.rangeHasMark(i,a,c);let d=!1;return a>i&&u.nodesBetween(i,a,e=>{if(d)return!1;let t=e.marks??[];return!(d=t.some(e=>e.type===c&&Y(e,s)))}),d}function es(e){return(0,o.Kn)(e)&&e instanceof i.qv}function eu(e){let{trState:t,type:n,attrs:i={},from:a,to:l}=e,{selection:s,doc:u,storedMarks:c}=t,d=(0,o.HD)(n)?u.type.schema.marks[n]:n;if((0,o.kG)(d,{code:r.mA.SCHEMA,message:`Mark type: ${n} does not exist on the current schema.`}),a&&l)try{return Math.max(a,l)<u.nodeSize&&el({...e,from:a,to:l})}catch{return!1}if(s.empty){let p=c??s.$from.marks();return p.some(e=>e.type===n&&Y(e,i??{}))}return el({...e,from:s.from,to:s.to})}function ec(e,t={}){var n,r;let o=(n=e.type.schema,(null==(r=n.nodes.doc)?void 0:r.createAndFill())??void 0);if(!o)return!1;let{ignoreAttributes:i,ignoreDocAttributes:a}=t;return i?function e(t,n){if(t===n)return!0;let r=t.type===n.type&&m.vc.sameSet(t.marks,n.marks);return r&&function(){if(t.content===n.content)return!0;if(t.content.size!==n.content.size)return!1;let r=[],o=[];for(let[i,a]of(t.content.forEach(e=>r.push(e)),n.content.forEach(e=>o.push(e)),r.entries())){let l=o[i];if(!l||!e(a,l))return!1}return!0}()}(o,e):a?o.content.eq(e.content):o.eq(e)}function ed(e){for(let t of Object.values(e.nodes))if("doc"!==t.name&&(t.isBlock||t.isTextblock))return t;(0,o.kG)(!1,{code:r.mA.SCHEMA,message:"No default block node found for the provided schema."})}function ep(e){return e.type===ed(e.type.schema)}function eh(e){return!!e&&e.type.isBlock&&!e.textContent&&!e.childCount}function ef(e,t,n){let i=e.parent.childAfter(e.parentOffset);if(!i.node)return;let a=(0,o.HD)(t)?t:t.name,l=i.node.marks.find(({type:e})=>e.name===a),s=e.index(),u=e.start()+i.offset,c=s+1,d=u+i.node.nodeSize;if(!l)return n&&d<n.pos?ef(e.doc.resolve(d+1),t,n):void 0;for(;s>0&&l.isInSet(e.parent.child(s-1).marks);)s-=1,u-=e.parent.child(s).nodeSize;for(;c<e.parent.childCount&&l.isInSet(e.parent.child(c).marks);)d+=e.parent.child(c).nodeSize,c+=1;let p=e.doc.textBetween(u,d,r.Z9,"\n\n");return{from:u,to:d,text:p,mark:l}}function em(e,t){let n=[],{$from:r,$to:o}=e,i=r;for(;;){let a=ef(i,t,o);if(!a)return n;if(n.push(a),a.to<o.pos){i=r.doc.resolve(a.to+1);continue}return n}}function eg(e,t){return 0===t.length||t.some(t=>e instanceof t)}function ev(e,t=[]){let n=[],{steps:r,mapping:i}=e,l=i.invert();r.forEach((e,r)=>{var o;if(!eg(e,t))return;let s=[],u=e.getMap(),c=i.slice(r);if(0===u.ranges.length&&eg(e,[a.WJ,a.FC,a.Pu,a.xu])){let{from:d,to:p}=e;s.push({from:d,to:p})}else u.forEach((e,t)=>{s.push({from:e,to:t})});s.forEach(e=>{let t=c.map(e.from,-1),r=c.map(e.to);n.push({from:t,to:r,prevFrom:l.map(t,-1),prevTo:l.map(r)})})});let s=(0,o.DY)(n,(e,t)=>e.from-t.from);return function(e){let t=(0,o.uw)(e,({from:e,to:t,prevFrom:n,prevTo:r})=>`${e}_${t}_${n}_${r}`);return t.filter((e,t,n)=>!n.some((n,r)=>t!==r&&e.prevFrom>=n.prevFrom&&e.prevTo<=n.prevTo&&e.from>=n.from&&e.to<=n.to))}(s)}function eb(e){var t;return(null==(t=e.content.firstChild)?void 0:t.textContent)??""}function ey(e){return function(e,t){if(!eo(e.selection))return;let{from:n,to:o}=e.selection,a=(t,n)=>eb(i.Bs.between(e.doc.resolve(t),e.doc.resolve(n)).content());for(let l=a(n-1,n);l&&!t.test(l);l=a(--n-1,n));for(let s=a(o,o+1);s&&!t.test(s);s=a(++o,o+1));if(n===o)return;let u=e.doc.textBetween(n,o,r.Z9,"\n\n");return{from:n,to:o,text:u}}(e,/\W/)}function ex(e,t=0){let n=(0,o.kJ)(e)?e[t]:e;return(0,o.hu)((0,o.HD)(n),`No match string found for match ${e}`),n??""}function ew(e){return eo(e)?e.$cursor:void 0}function eE(e,t){var n,r;let a=t.nodeSize-2,l,s=e=>(0,o.uZ)({min:0,max:a,value:e});if(ea(e))return e;if("all"===e)return new i.C1(t);if(l="start"===e?0:"end"===e?a:(n=e,(0,o.Kn)(n)&&n instanceof m.ZQ)?e.pos:e,(0,o.hj)(l))return l=s(l),i.Bs.near(t.resolve(l));if(r=l,(0,o.Kn)(r)&&(0,o.hj)(r.anchor)&&(0,o.hj)(r.head)){let u=s(l.anchor),c=s(l.head);return i.Bs.between(t.resolve(u),t.resolve(c))}let d=s(l.from),p=s(l.to);return i.Bs.between(t.resolve(d),t.resolve(p))}function ek(){let e=h();if(e)return e;throw Error("Unable to retrieve the document from the global scope. \nIt seems that you are running Remirror in a non-browser environment. Remirror need browser APIs to work. \nIf you are using Jest (or other testing frameworks), make sure that you are using the JSDOM environment (https://jestjs.io/docs/29.0/configuration#testenvironment-string). \nIf you are using Next.js (or other server-side rendering frameworks), please use dynamic import with `ssr: false` to load the editor component without rendering it on the server (https://nextjs.org/docs/advanced-features/dynamic-import#with-no-ssr). \nIf you are using Node.js, you can install JSDOM and Remirror will try to use it automatically, or you can create a fake document and pass it to Remirror")}function eC(e){var t;return(null==e?void 0:e.defaultView)??("undefined"!=typeof window?window:void 0)??(null==(t=h())?void 0:t.defaultView)}function eS(e){return eC(null==e?void 0:e.ownerDocument)}function eM(e){let t=eC(e)??ek().defaultView;if(t)return t;throw Error("Unable to retrieve the window from the global scope")}function eO(e){return eM(null==e?void 0:e.ownerDocument)}function eA(e,t=ek()){let n=t.createElement("div");return n.append(function(e,t=ek()){var n,r;let o=(r=e.type.schema,ee(e)&&(r?e.type===r.nodes.doc:"doc"===e.type.name))?e.content:m.HY.from(e);return m.PW.fromSchema(e.type.schema).serializeFragment(o,{document:t})}(e,t)),n.innerHTML}function e_(e){let{content:t,schema:n,document:r,fragment:o=!1,...i}=e,a=function(e,t){let n=new(eM(t)).DOMParser;return n.parseFromString(`<body>${e}</body>`,"text/html").body}(t,r),l=m.aw.fromSchema(n);return o?l.parseSlice(a,{...eT,...i}).content:l.parse(a,{...eT,...i})}var eT={preserveWhitespace:!1};function eR(e,t){let n=(0,o.XP)(t.defaults());return f({...e},n)}function ez(e,t){let n="";t&&(n=`${t.trim()}`);let r=function(e){var t="";for(var n in e){var r=e[n];("string"==typeof r||"number"==typeof r)&&(t&&(t+=";"),t+=p(n,r))}return t}(e);if(!r)return n;let o=(n.endsWith(";")," ");return`${n}${o}${r}`}var eL={remove(e,t){let n=e;for(let r of t)!r.invalidParentNode&&(n=(0,o.zN)(r.path,n));return n}};function eI(e){return!!(eo(e)&&e.$cursor&&e.$cursor.parentOffset>=e.$cursor.parent.content.size)}function eH(e){return!!(eo(e)&&e.$cursor&&e.$cursor.parentOffset<=0)}function eN(e){let t=i.Y1.atStart(e.$anchor.doc);return!!(eH(e)&&t.anchor===e.anchor)}function eP(e){return({dispatch:t,tr:n})=>{let{type:r,attrs:a=(0,o.Ry)(),appendText:l,range:s}=e,u=s?i.Bs.between(n.doc.resolve(s.from),n.doc.resolve(s.to)):n.selection,{$from:c,from:d,to:p}=u,h=0===c.depth&&n.doc.type.allowsMarkType(r);return n.doc.nodesBetween(d,p,e=>{if(h)return!1;e.inlineContent&&e.type.allowsMarkType(r)&&(h=!0)}),!!h&&(null==t||t(n.addMark(d,p,r.create(a))&&l?n.insertText(l):n),!0)}}function eD(e,t={},n){return function(r){let{tr:i,dispatch:l,state:s}=r,u=(0,o.HD)(e)?(0,o.fp)(s.schema.nodes,e):e,{from:c,to:d}=eE(n??i.selection,i.doc),p=i.doc.resolve(c),h=i.doc.resolve(d),f=p.blockRange(h),m=f&&(0,a.nd)(f,u,t);return!!m&&!!f&&(null==l||l(i.wrap(f,m).scrollIntoView()),!0)}}function ej(e,t={},n){return r=>{let{tr:i,state:l}=r,s=(0,o.HD)(e)?(0,o.fp)(l.schema.nodes,e):e,u=Z({state:i,type:s,attrs:t});return u?function({tr:e,dispatch:t}){let{$from:n,$to:r}=e.selection,i=n.blockRange(r),l=i&&(0,a.k9)(i);return!!(0,o.hj)(l)&&!!i&&(null==t||t(e.lift(i,l).scrollIntoView()),!0)}(r):eD(e,t,n)(r)}}function eB(e,t,n,r=!0){return function(i){let{tr:a,dispatch:l,state:s}=i,u=(0,o.HD)(e)?(0,o.fp)(s.schema.nodes,e):e,{from:c,to:d}=eE(n??a.selection,a.doc),p=!1,h;return a.doc.nodesBetween(c,d,(e,n)=>{if(p)return!1;if(!e.isTextblock||e.hasMarkup(u,t))return;if(e.type===u){p=!0,h=e.attrs;return}let r=a.doc.resolve(n),o=r.index();(p=r.parent.canReplaceWith(o,o+1,u))&&(h=r.parent.attrs)}),!!p&&(null==l||l(a.setBlockType(c,d,u,{...r?h:{},...t}).scrollIntoView()),!0)}}function eF(e){return t=>{let{tr:n,state:r}=t,{type:o,attrs:i,preserveAttrs:a=!0}=e,l=Z({state:n,type:o,attrs:i}),s=e.toggleType??ed(r.schema);if(l)return eB(s,{...a?l.node.attrs:{},...i})(t);let u=Z({state:n,type:s,attrs:i});return eB(o,{...a?null==u?void 0:u.node.attrs:{},...i})(t)}}function eV(e=0){let t=navigator.userAgent.match(/Chrom(e|ium)\/(\d+)\./);return!!t&&Number.parseInt((0,o.fp)(t,2),10)>=e}function e$(e=0){let t=navigator.userAgent.match(/Mac/),n=navigator.userAgent.match(/Safari\/(\d+)\./);return!!t&&!eV()&&!!n&&Number.parseInt((0,o.fp)(n,1),10)>=e}function eW(e){let{attrs:t={},appendText:n="",content:a="",keepSelection:l=!1,range:s}=e;return({state:u,tr:c,dispatch:d})=>{var p,h;let f=u.schema,g=eE(e.selection??s??c.selection,c.doc),v=g.$from.index(),{from:b,to:y,$from:x}=g,w=(0,o.HD)(e.type)?f.nodes[e.type]??f.marks[e.type]:e.type;if((0,o.kG)(!(0,o.HD)(e.type)||w,{code:r.mA.SCHEMA,message:`Schema contains no marks or nodes with name ${w}`}),(0,o.Kn)(w)&&w instanceof m.Jq){if(!x.parent.canReplaceWith(v,v,w))return!1;c.replaceWith(b,y,w.create(t,a?f.text(a):void 0))}else(0,o.kG)(a,{message:"`replaceText` cannot be called without content when using a mark type"}),c.replaceWith(b,y,f.text(a,Q(w)?[w.create(t)]:void 0));return n&&c.insertText(n),l&&function(e,t){let{head:n,empty:r,anchor:o}=e;for(let a of t.steps){let l=a.getMap();n=l.map(n)}r?t.setSelection(i.Bs.near(t.doc.resolve(n))):t.setSelection(i.Bs.between(t.doc.resolve(o),t.doc.resolve(n)))}(u.selection,c),d&&(eV(60)&&(null==(p=document.getSelection())||p.empty()),d(c)),!0}}function eU(e){return({dispatch:t,tr:n,state:i})=>{let{type:a,expand:l=!0,range:s}=e,u=eE(e.selection??s??n.selection,n.doc),{from:c,to:d,$from:p,$to:h}=u,f=(0,o.HD)(a)?i.schema.marks[a]:a;null!==f&&(0,o.kG)(f,{code:r.mA.SCHEMA,message:`Mark type: ${a} does not exist on the current schema.`});let m=f??function e(t,n){let r=t.parent.childAfter(t.parentOffset);if(!r.node)return;let{marks:o,nodeSize:i}=r.node;if(o[0])return o[0].type;let a=t.start()+r.offset;return e(t.doc.resolve(a+i+1),n)}(p);if(!m)return!1;let g=ef(p,m,h);return l&&g&&(c=Math.max(0,Math.min(c,g.from)),d=Math.min(Math.max(d,g.to),n.doc.nodeSize-2)),null==t||t(n.removeMark(c,(0,o.hj)(d)?d:c,Q(f)?f:void 0)),!0}}function eZ(e){let t=["command","cmd","meta"];return w.isMac&&t.push("mod"),t.includes(e)}function eG(e){let t=["control","ctrl"];return w.isMac||t.push("mod"),t.includes(e)}function eK(e){let t=[];for(let n of e.split("-")){if(eZ(n=n.toLowerCase())){t.push({type:"modifier",symbol:"⌘",key:"command",i18n:v.LS.COMMAND_KEY});continue}if(eG(n)){t.push({type:"modifier",symbol:"⌃",key:"control",i18n:v.LS.CONTROL_KEY});continue}switch(n){case"shift":t.push({type:"modifier",symbol:"⇧",key:n,i18n:v.LS.SHIFT_KEY});continue;case"alt":t.push({type:"modifier",symbol:"⌥",key:n,i18n:v.LS.ALT_KEY});continue;case"\n":case"\r":case"enter":t.push({type:"named",symbol:"↵",key:n,i18n:v.LS.ENTER_KEY});continue;case"backspace":t.push({type:"named",symbol:"⌫",key:n,i18n:v.LS.BACKSPACE_KEY});continue;case"delete":t.push({type:"named",symbol:"⌦",key:n,i18n:v.LS.DELETE_KEY});continue;case"escape":t.push({type:"named",symbol:"␛",key:n,i18n:v.LS.ESCAPE_KEY});continue;case"tab":t.push({type:"named",symbol:"⇥",key:n,i18n:v.LS.TAB_KEY});continue;case"capslock":t.push({type:"named",symbol:"⇪",key:n,i18n:v.LS.CAPS_LOCK_KEY});continue;case"space":t.push({type:"named",symbol:"␣",key:n,i18n:v.LS.SPACE_KEY});continue;case"pageup":t.push({type:"named",symbol:"⤒",key:n,i18n:v.LS.PAGE_UP_KEY});continue;case"pagedown":t.push({type:"named",symbol:"⤓",key:n,i18n:v.LS.PAGE_DOWN_KEY});continue;case"home":t.push({type:"named",key:n,i18n:v.LS.HOME_KEY});continue;case"end":t.push({type:"named",key:n,i18n:v.LS.END_KEY});continue;case"arrowleft":t.push({type:"named",symbol:"←",key:n,i18n:v.LS.ARROW_LEFT_KEY});continue;case"arrowright":t.push({type:"named",symbol:"→",key:n,i18n:v.LS.ARROW_RIGHT_KEY});continue;case"arrowup":t.push({type:"named",symbol:"→",key:n,i18n:v.LS.ARROW_UP_KEY});continue;case"arrowdown":t.push({type:"named",symbol:"↓",key:n,i18n:v.LS.ARROW_DOWN_KEY});continue;default:t.push({type:"char",key:n});continue}}return t}function eY(e){let{node:t,predicate:n,descend:i=!0,action:a}=e;(0,o.kG)(ee(t),{code:r.mA.INTERNAL,message:'Invalid "node" parameter passed to "findChildren".'}),(0,o.kG)((0,o.mf)(n),{code:r.mA.INTERNAL,message:'Invalid "predicate" parameter passed to "findChildren".'});let l=[];return t.descendants((e,t)=>{let r={node:e,pos:t},o=n(r);return o&&(l.push(r),null==a||a(r)),i}),l}function eq({predicate:e}){return t=>eY({...t,predicate:e})}function eX(e){let{type:t,...n}=e;return eY({...n,predicate:e=>e.node.type===t})}function eJ(e,t={}){let{descend:n=!1,predicate:r,StepTypes:o}=t,i=function(e,t){let n=[],r=ev(e,t);for(let o of r)try{let i=e.doc.resolve(o.from),a=e.doc.resolve(o.to),l=i.blockRange(a);l&&n.push(l)}catch{}return n}(e,o),a=[];for(let l of i){let{start:s,end:u}=l;e.doc.nodesBetween(s,u,(e,t)=>{let o=(null==r?void 0:r(e,t,l))??!0;return o&&a.push({node:e,pos:t}),n})}return a}function eQ(e){let{regexp:t,type:n,getAttributes:i,ignoreWhitespace:a=!1,beforeDispatch:l,updateCaptured:s,shouldSkip:u,invalidMarks:c}=e,d,p=new b.VK(t,(e,t,h,f)=>{let{tr:m,schema:g}=e;d||(d=(0,o.HD)(n)?g.marks[n]:n,(0,o.kG)(d,{code:r.mA.SCHEMA,message:`Mark type: ${n} does not exist on the current schema.`}));let v=t[1],b=t[0],y=e1({captureGroup:v,fullMatch:b,end:f,start:h,rule:p,state:e,ignoreWhitespace:a,invalidMarks:c,shouldSkip:u,updateCaptured:s});if(!y)return null;({start:h,end:f,captureGroup:v,fullMatch:b}=y);let x=(0,o.mf)(i)?i(t):i,w=f,E=[];if(v){let k=b.search(/\S/),C=h+b.indexOf(v),S=C+v.length;E=m.storedMarks??[],S<f&&m.delete(S,f),C>h&&m.delete(h+k,C),w=h+k+v.length}return m.addMark(h,w,d.create(x)),m.setStoredMarks(E),null==l||l({tr:m,match:t,start:h,end:f}),m});return p}function e0(e){let{regexp:t,type:n,getAttributes:i,beforeDispatch:a,shouldSkip:l,ignoreWhitespace:s=!1,updateCaptured:u,invalidMarks:c}=e,d=new b.VK(t,(e,t,p,h)=>{let f=(0,o.mf)(i)?i(t):i,{tr:m,schema:g}=e,v=(0,o.HD)(n)?g.nodes[n]:n,b=t[1],y=t[0],x=e1({captureGroup:b,fullMatch:y,end:h,start:p,rule:d,state:e,ignoreWhitespace:s,invalidMarks:c,shouldSkip:l,updateCaptured:u});if(!x)return null;({start:p,end:h,captureGroup:b,fullMatch:y}=x),(0,o.kG)(v,{code:r.mA.SCHEMA,message:`No node exists for ${n} in the schema.`});let w=v.createAndFill(f);return w&&(m.replaceRangeWith(v.isBlock?m.doc.resolve(p).before():p,h,w),null==a||a({tr:m,match:[y,b??""],start:p,end:h})),m});return d}function e1({captureGroup:e,fullMatch:t,end:n,start:r,rule:o,ignoreWhitespace:i,shouldSkip:a,updateCaptured:l,state:s,invalidMarks:u}){var c;if(null==t)return null;let d=(null==l?void 0:l({captureGroup:e,fullMatch:t,start:r,end:n}))??{};e=d.captureGroup??e,t=d.fullMatch??t,r=d.start??r,n=d.end??n;let p=s.doc.resolve(r),h=s.doc.resolve(n);return u&&(0,y.j4)({$from:p,$to:h},u)||o.invalidMarks&&(0,y.j4)({$from:p,$to:h},o.invalidMarks)||i&&(null==e?void 0:e.trim())===""||(null==a?void 0:a({state:s,captureGroup:e,fullMatch:t,start:r,end:n,ruleType:"mark"}))||(null==(c=o.shouldSkip)?void 0:c.call(o,{state:s,captureGroup:e,fullMatch:t,start:r,end:n,ruleType:"mark"}))?null:{captureGroup:e,end:n,fullMatch:t,start:r}}eq({predicate:e=>e.node.isText}),eq({predicate:e=>e.node.isInline}),eq({predicate:e=>e.node.isBlock})},37495:function(e,t,n){"use strict";n.d(t,{H:function(){return d}});var r=n(50697),o=n(38756),i=n(71688),a=n(71071),l=n(75114),s=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?u(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&s(t,n,i),i},d=class extends r.uS7{get name(){return"bold"}createTags(){return[o.eX.FormattingMark,o.eX.FontStyle]}createMarkSpec(e,t){return{...t,attrs:e.defaults(),parseDOM:[{tag:"strong",getAttrs:e.parse},{tag:"b",getAttrs:t=>!!(0,i.jd)(t)&&"normal"!==t.style.fontWeight&&e.parse(t)},{style:"font-weight",getAttrs:e=>!!((0,a.HD)(e)&&/^(bold(er)?|[5-9]\d{2,})$/.test(e))&&null},...t.parseDOM??[]],toDOM:t=>{let{weight:n}=this.options;return n?["strong",{"font-weight":n.toString()},0]:["strong",e.dom(t),0]}}}createInputRules(){return[(0,i.Cf)({regexp:/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/,type:this.type,ignoreWhitespace:!0})]}toggleBold(e){return(0,r.w9d)({type:this.type,selection:e})}setBold(e){return({tr:t,dispatch:n})=>{let{from:r,to:o}=(0,i.b0)(e??t.selection,t.doc);return null==n||n(t.addMark(r,o,this.type.create())),!0}}removeBold(e){return({tr:t,dispatch:n})=>{let{from:r,to:o}=(0,i.b0)(e??t.selection,t.doc);return!!t.doc.rangeHasMark(r,o,this.type)&&(null==n||n(t.removeMark(r,o,this.type)),!0)}}shortcut(e){return this.toggleBold()(e)}};c([(0,r.WDe)({icon:"bold",label:({t:e})=>e(l.ov.LABEL),description:({t:e})=>e(l.ov.DESCRIPTION)})],d.prototype,"toggleBold",1),c([(0,r.WDe)()],d.prototype,"setBold",1),c([(0,r.WDe)()],d.prototype,"removeBold",1),c([(0,r.IGC)({shortcut:o.vO.Bold,command:"toggleBold"})],d.prototype,"shortcut",1),d=c([(0,r.AOx)({defaultOptions:{weight:void 0},staticKeys:["weight"]})],d)},75961:function(e,t,n){"use strict";n.d(t,{d:function(){return x}});var r=n(50697),o=n(38756),i=n(71688),a=n(30764),l=n(27191),s=n(21251),u=n(71071),c=n(75114),d=Object.defineProperty,p=Object.getOwnPropertyDescriptor,h=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?p(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&d(t,n,i),i},f="data-callout-type",m="data-callout-emoji",{DESCRIPTION:g,LABEL:v}=c.GI,b={icon({attrs:e}){switch(null==e?void 0:e.type){case"error":return"closeCircleLine";case"success":return"checkboxCircleLine";case"warning":return"errorWarningLine";default:return"informationLine"}},description:({t:e,attrs:t})=>e(g,{type:null==t?void 0:t.type}),label:({t:e,attrs:t})=>e(v,{type:null==t?void 0:t.type})};function y(e,t,n){return(0,u.q9)(t,e)?e:n}var x=class extends r.QR{constructor(){super(...arguments),this.tags=[o.eX.Block]}get name(){return"callout"}createNodeViews(){return(e,t,n)=>{let{type:r,emoji:o}=e.attrs,{renderEmoji:i}=this.options,a=document.createElement("div"),l=document.createElement("div");if(a.setAttribute(f,r),o){let u=document.createElement("div"),c=i(e,t,n);a.setAttribute(m,o),u.classList.add(s.X5.CALLOUT_EMOJI_WRAPPER),c&&(u.append(c),a.append(u))}return a.append(l),{dom:a,contentDOM:l}}}createNodeSpec(e,t){let{defaultType:n,validTypes:r,defaultEmoji:o}=this.options;return{content:"block+",defining:!0,draggable:!1,...t,attrs:{...e.defaults(),type:{default:n},emoji:{default:o}},parseDOM:[{tag:`div[${f}]`,getAttrs(t){if(!(0,i.jd)(t))return!1;let o=t.getAttribute(f),a=t.getAttribute(m)??"",l=y(o,r,n),s=t.textContent;return{...e.parse(t),type:l,emoji:a,content:s}}},...t.parseDOM??[]],toDOM(t){let{type:n,emoji:r,...o}=(0,i.Kh)(t.attrs,e),a=r?{[m]:r}:{},l={...e.dom(t),...o,[f]:n,...a};return["div",l,0]}}}createInputRules(){return[(0,i.x2)({regexp:/^:::([\dA-Za-z]*) $/,type:this.type,beforeDispatch({tr:e,start:t}){let n=e.doc.resolve(t);e.setSelection(l.Bs.near(n))},getAttributes:e=>{let{defaultType:t,validTypes:n}=this.options;return{type:y((0,i.FI)(e,1),n,t)}}})]}toggleCallout(e={}){return(0,i.bm)(this.type,e)}updateCallout(e,t){var n;return(n=this.type,(e,t)=>({state:{tr:r,selection:o,doc:a},dispatch:l})=>{if(!function(e){if(e&&(0,u.Kn)(e)){let t=Object.entries(e).map(([e,t])=>{switch(e){case"type":case"emoji":return!!((0,u.HD)(t)&&t.length>0);default:return!0}});return t.every(e=>!!e)}return!1}(e))throw Error("Invalid attrs passed to the updateAttributes method");let s=(0,i.Tr)({types:n,selection:t?a.resolve(t):o});return!(!s||(0,u.Xy)(e,s.node.attrs))&&(r.setNodeMarkup(s.pos,n,{...s.node.attrs,...e}),l&&l(r),!0)})(e,t)}handleEnterKey({dispatch:e,tr:t}){if(!((0,i.hT)(t.selection)&&t.selection.empty))return!1;let{nodeBefore:n,parent:r}=t.selection.$from;if(!(null==n?void 0:n.isText)||!r.type.isTextblock)return!1;let o=/^:::([A-Za-z]*)?$/,{text:s,nodeSize:u}=n,{textContent:c}=r;if(!s)return!1;let d=s.match(o),p=c.match(o);if(!d||!p)return!1;let{defaultType:h,validTypes:f}=this.options,m=y(d[1],f,h),g=t.selection.$from.before();if(e){let v=new a.p2(a.HY.from(this.type.create({type:m})),0,1);t.replace(g,g+u+1,v),t.setSelection(l.Bs.near(t.doc.resolve(g+1))),e(t)}return!0}handleBackspace({dispatch:e,tr:t}){if(!t.selection.empty)return!1;let{$from:n}=t.selection;if(0!==n.parentOffset)return!1;let r=n.before(n.depth)-1;if(r<1)return!1;let o=t.doc.resolve(r);if(!(null==o?void 0:o.parent))return!1;let a=o.parent,{node:s,pos:u}=(0,i.JB)(t.selection);if(s.type!==this.type&&a.type===this.type){let{content:c,nodeSize:d}=s;return t.delete(u,u+d),t.setSelection(l.Bs.near(t.doc.resolve(r-1))),t.insert(r-1,c),e&&e(t),!0}return!1}};h([(0,r.WDe)(b)],x.prototype,"toggleCallout",1),h([(0,r.WDe)(b)],x.prototype,"updateCallout",1),h([(0,r.IGC)({shortcut:"Enter"})],x.prototype,"handleEnterKey",1),h([(0,r.IGC)({shortcut:"Backspace"})],x.prototype,"handleBackspace",1),x=h([(0,r.AOx)({defaultOptions:{defaultType:"info",validTypes:["info","warning","error","success","blank"],defaultEmoji:"",renderEmoji:function(e){let t=document.createElement("span");return t.textContent=e.attrs.emoji,t}},staticKeys:["defaultType","validTypes","defaultEmoji"]})],x)},90642:function(e,t,n){"use strict";n.d(t,{W:function(){return T}});var r,o,i,a=n(92037),l=n(50697),s=n(38756),u=n(71688),c=n(71071),d=n(17890),p=n(27191),h=n(21251),f=n(52780),m=n(75114),g=Object.defineProperty,v=Object.getOwnPropertyDescriptor,b=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?v(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&g(t,n,i),i},y=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},x=(e,t,n)=>(y(e,t,"read from private field"),n?n.call(e):t.get(e)),w=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},E=(e,t,n,r)=>(y(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),k="data-code-block-language";function C(e,t){var n;let{node:r,pos:o}=e,i=M({language:null==(n=r.attrs.language)?void 0:n.replace("language-",""),fallback:"markup"}),l=a.highlight(r.textContent??"",i),s=function e(t,n,r=[]){return t.map(t=>{let o=[...r];return("element"===t.type&&t.properties.className?o.push(...t.properties.className):"text"===t.type&&0===o.length&&n&&o.push(n),"element"===t.type)?e(t.children,n,o):{text:t.value,classes:o}})}(l,t),u=o+1;return(0,c.VF)(s).map(function(e){let t=u,n=t+e.text.length;return u=n,{...e,from:t,to:n}})}function S(e){let{blocks:t,skipLast:n,plainTextClassName:r}=e,o=[];for(let i of t){let a=C(i,r),l=n?a.length-1:a.length;for(let s of(0,c.w6)(l)){let u=a[s],d=null==u?void 0:u.classes;if(!u||!(null==d?void 0:d.length))continue;let p=f.p.inline(u.from,u.to,{class:d.join(" ")});o.push(p)}}return o}function M(e){let{language:t,fallback:n}=e;if(!t)return n;let r=a.listLanguages();for(let o of r)if(o.toLowerCase()===t.toLowerCase())return o;return n}var{DESCRIPTION:O,LABEL:A}=m.J,_=class{constructor(e,t){w(this,r,void 0),w(this,o,void 0),w(this,i,!1),E(this,o,e),E(this,r,t)}init(e){let t=(0,u.as)({node:e.doc,type:x(this,o)});return this.refreshDecorationSet(e.doc,t),this}refreshDecorationSet(e,t){let n=S({blocks:t,skipLast:x(this,i),defaultLanguage:x(this,r).options.defaultLanguage,plainTextClassName:x(this,r).options.plainTextClassName??void 0});this.decorationSet=f.EH.create(e,n)}apply(e,t){if(!e.docChanged)return this;this.decorationSet=this.decorationSet.map(e.mapping,e.doc);let n=(0,u.qh)(e,{descend:!0,predicate:e=>e.type===x(this,o),StepTypes:[]});return this.updateDecorationSet(e,n),this}updateDecorationSet(e,t){if(0===t.length)return;let n=this.decorationSet;for(let{node:o,pos:a}of t)n=this.decorationSet.remove(this.decorationSet.find(a,a+o.nodeSize));this.decorationSet=n.add(e.doc,S({blocks:t,skipLast:x(this,i),defaultLanguage:x(this,r).options.defaultLanguage,plainTextClassName:x(this,r).options.plainTextClassName??void 0}))}setDeleted(e){E(this,i,e)}};r=new WeakMap,o=new WeakMap,i=new WeakMap;var T=class extends l.QR{get name(){return"codeBlock"}createTags(){return[s.eX.Block,s.eX.Code]}init(){this.registerLanguages()}createNodeSpec(e,t){let n=/highlight-(?:text|source)-([\da-z]+)/;return{content:"text*",marks:"",defining:!0,isolating:!0,draggable:!1,...t,code:!0,attrs:{...e.defaults(),language:{default:this.options.defaultLanguage},wrap:{default:this.options.defaultWrap}},parseDOM:[{tag:"div.highlight",preserveWhitespace:"full",getAttrs(t){var r,o;if(!(0,u.jd)(t))return!1;let i=t.querySelector("pre.code");if(!(0,u.jd)(i))return!1;let a="pre-wrap"===(0,u.C2)(i,"white-space"),l=null==(o=null==(r=t.className.match(n))?void 0:r[1])?void 0:o.replace("language-","");return{...e.parse(t),language:l,wrap:a}}},{tag:"pre",preserveWhitespace:"full",getAttrs:t=>{if(!(0,u.jd)(t))return!1;let n=t.querySelector("code");if(!(0,u.jd)(n))return!1;let r="pre-wrap"===(0,u.C2)(n,"white-space"),o=this.options.getLanguageFromDom(n,t);return{...e.parse(t),language:o,wrap:r}}},...t.parseDOM??[]],toDOM:t=>(function(e,t){let{language:n,wrap:r}=(0,u.Kh)(e.attrs,t),{style:o,...i}=t.dom(e),a=i.style;r&&(a=(0,u.X3)({whiteSpace:"pre-wrap",wordBreak:"break-all"},a));let l={spellcheck:"false",...i,class:(0,c.cx)(i.class,`language-${n}`)};return["pre",l,["code",{[k]:n,style:a},0]]})(t,e)}}createAttributes(){return{class:h.uV[this.options.syntaxTheme.toUpperCase()]}}createInputRules(){let e=e=>{let t=M({language:(0,u.FI)(e,1),fallback:this.options.defaultLanguage});return{language:t}};return[(0,u.x2)({regexp:/^```([\dA-Za-z]*) $/,type:this.type,beforeDispatch({tr:e,start:t}){let n=e.doc.resolve(t);e.setSelection(p.Bs.near(n))},getAttributes:e})]}onSetOptions(e){let{changes:t}=e;t.supportedLanguages.changed&&this.registerLanguages(),t.syntaxTheme.changed&&this.store.updateAttributes()}createPlugin(){let e=new _(this.type,this),t=()=>(e.setDeleted(!0),!1);return{state:{init:(t,n)=>e.init(n),apply:(t,n,r,o)=>e.apply(t,o)},props:{handleKeyDown:(0,d.$)({Backspace:t,"Mod-Backspace":t,Delete:t,"Mod-Delete":t,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t}),decorations:()=>(e.setDeleted(!1),e.decorationSet)}}}toggleCodeBlock(e={}){return(0,u.zU)({type:this.type,toggleType:this.options.toggleName,attrs:{language:this.options.defaultLanguage,...e}})}createCodeBlock(e){return(0,u.uJ)(this.type,e)}updateCodeBlock(e){var t;return(t=this.type,e=>({state:{tr:n,selection:r},dispatch:o})=>{var i;if(!(e&&(0,c.Kn)(e)&&(0,c.HD)(e.language))||!(e.language.length>0))throw Error("Invalid attrs passed to the updateAttributes method");let a=(0,u.Tr)({types:t,selection:r});return!(!a||(0,c.Xy)(e,a.node.attrs))&&(n.setNodeMarkup(a.pos,t,{...a.node.attrs,...e}),o&&o(n),!0)})(e)}formatCodeBlock(e){var t;return(t={type:this.type,formatter:this.options.formatter,defaultLanguage:this.options.defaultLanguage},({pos:e}=(0,c.Ry)())=>({tr:n,dispatch:r})=>{let{type:o,formatter:i,defaultLanguage:a}=t,{from:l,to:s}=e?{from:e,to:e}:n.selection,c=(0,u.Tr)({types:o,selection:n.selection});if(!c)return!1;let{node:{attrs:d,textContent:h},start:f}=c,m=l-f,g=s-f,v=M({language:d.language,fallback:a}),b=i({source:h,language:v,cursorOffset:m}),y;if(m!==g&&(y=i({source:h,language:v,cursorOffset:g})),!b)return!1;let{cursorOffset:x,formatted:w}=b;if(w===h)return!1;let E=f+h.length;n.insertText(w,f,E);let k=f+x,C=y?f+y.cursorOffset:void 0;return n.setSelection(p.Bs.between(n.doc.resolve(k),n.doc.resolve(C??k))),r&&r(n),!0})(e)}tabKey({state:e,dispatch:t}){let{selection:n,tr:r,schema:o}=e,{node:i}=(0,u.JB)(n);if(!(0,u.$9)({node:i,types:this.type}))return!1;if(n.empty)r.insertText("	");else{let{from:a,to:l}=n;r.replaceWith(a,l,o.text("	"))}return t&&t(r),!0}backspaceKey({dispatch:e,tr:t,state:n}){if(!t.selection.empty)return!1;let r=(0,u.Tr)({types:this.type,selection:t.selection});if((null==r?void 0:r.start)!==t.selection.from)return!1;let{pos:o,node:i,start:a}=r,l=(0,c.fp)(n.schema.nodes,this.options.toggleName);return""===i.textContent.trim()?t.doc.lastChild===i&&t.doc.firstChild===i?(0,u.IY)({pos:o,tr:t,content:l.create()}):(0,u.aS)({pos:o,tr:t}):a>2?t.setSelection(p.Bs.near(t.doc.resolve(a-2))):(t.insert(0,l.create()),t.setSelection(p.Bs.near(t.doc.resolve(1)))),e&&e(t),!0}enterKey({dispatch:e,tr:t}){if(!((0,u.hT)(t.selection)&&t.selection.empty))return!1;let{nodeBefore:n,parent:r}=t.selection.$anchor;if(!(null==n?void 0:n.isText)||!r.type.isTextblock)return!1;let o=/^```([A-Za-z]*)?$/,{text:i,nodeSize:a}=n,{textContent:l}=r;if(!i)return!1;let s=i.match(o),c=l.match(o);if(!s||!c)return!1;let[,d]=s,h=M({language:d,fallback:this.options.defaultLanguage}),f=t.selection.$from.before();return t.replaceWith(f,f+a+1,this.type.create({language:h})),t.setSelection(p.Bs.near(t.doc.resolve(f+1))),e&&e(t),!0}formatShortcut({tr:e}){let t=this.store.commands;if(!(0,u.Ig)({type:this.type,state:e}))return!1;let n=t.formatCodeBlock.isEnabled();return n&&t.formatCodeBlock(),n}registerLanguages(){for(let e of this.options.supportedLanguages)a.register(e)}};b([(0,l.WDe)({icon:"bracesLine",description:({t:e})=>e(O),label:({t:e})=>e(A)})],T.prototype,"toggleCodeBlock",1),b([(0,l.WDe)()],T.prototype,"createCodeBlock",1),b([(0,l.WDe)()],T.prototype,"updateCodeBlock",1),b([(0,l.WDe)()],T.prototype,"formatCodeBlock",1),b([(0,l.IGC)({shortcut:"Tab"})],T.prototype,"tabKey",1),b([(0,l.IGC)({shortcut:"Backspace"})],T.prototype,"backspaceKey",1),b([(0,l.IGC)({shortcut:"Enter"})],T.prototype,"enterKey",1),b([(0,l.IGC)({shortcut:s.vO.Format})],T.prototype,"formatShortcut",1),T=b([(0,l.AOx)({defaultOptions:{supportedLanguages:[],toggleName:"paragraph",formatter:({source:e})=>({cursorOffset:0,formatted:e}),syntaxTheme:"a11y_dark",defaultLanguage:"markup",defaultWrap:!1,plainTextClassName:"",getLanguageFromDom:function(e){var t;return null==(t=e.getAttribute(k)??e.classList[0])?void 0:t.replace("language-","")}},staticKeys:["getLanguageFromDom"]})],T)},5717:function(e,t,n){"use strict";n.d(t,{l:function(){return p}});var r=n(50697),o=n(38756),i=n(71688),a=n(75114),l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?s(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&l(t,n,i),i},{DESCRIPTION:c,LABEL:d}=a.jz,p=class extends r.uS7{get name(){return"code"}createTags(){return[o.eX.Code,o.eX.ExcludeInputRules]}createMarkSpec(e,t){return{excludes:"_",...t,attrs:e.defaults(),parseDOM:[{tag:"code",getAttrs:e.parse},...t.parseDOM??[]],toDOM:t=>["code",{spellcheck:"false",...e.dom(t)},0]}}createKeymap(){return{"Mod-`":(0,r.w9d)({type:this.type})}}keyboardShortcut(e){return this.toggleCode()(e)}toggleCode(){return(0,r.w9d)({type:this.type})}createInputRules(){return[(0,i.Cf)({regexp:RegExp(`(?:\`)([^\`${o.Z9}]+)(?:\`)$`),type:this.type,ignoreWhitespace:!0})]}createPasteRules(){return[{type:"mark",regexp:/`([^`]+)`/g,markType:this.type}]}};u([(0,r.IGC)({shortcut:o.vO.Code,command:"toggleCode"})],p.prototype,"keyboardShortcut",1),u([(0,r.WDe)({icon:"codeLine",description:({t:e})=>e(c),label:({t:e})=>e(d)})],p.prototype,"toggleCode",1),p=u([(0,r.AOx)({})],p)},77636:function(e,t,n){"use strict";n.d(t,{U:function(){return u}});var r=n(50697),o=n(27191),i=n(26151);class a{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(n=t.width)&&void 0!==n?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,n;if(t){let r=e.nodeBefore,o=e.nodeAfter;if(r||o){let i=this.editorView.nodeDOM(this.cursorPos-(r?r.nodeSize:0));if(i){let a=i.getBoundingClientRect(),l=r?a.bottom:a.top;r&&o&&(l=(l+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),n={left:a.left,right:a.right,top:l-this.width/2,bottom:l+this.width/2}}}}if(!n){let s=this.editorView.coordsAtPos(this.cursorPos);n={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let u=this.editorView.dom.offsetParent;!this.element&&(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",t),this.element.classList.toggle("prosemirror-dropcursor-inline",!t);let c,d;if(u&&(u!=document.body||"static"!=getComputedStyle(u).position)){let p=u.getBoundingClientRect();c=p.left-u.scrollLeft,d=p.top-u.scrollTop}else c=-pageXOffset,d=-pageYOffset;this.element.style.left=n.left-c+"px",this.element.style.top=n.top-d+"px",this.element.style.width=n.right-n.left+"px",this.element.style.height=n.bottom-n.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,o="function"==typeof r?r(this.editorView,t,e):r;if(t&&!o){let a=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=(0,i.nj)(this.editorView.state.doc,a,this.editorView.dragging.slice);null!=l&&(a=l)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}var l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=class extends r.nNj{get name(){return"dropCursor"}createExternalPlugins(){let{color:e,width:t}=this.options;return[function(e={}){return new o.Sy({view:t=>new a(t,e)})}({color:e,width:t})]}};u=((e,t,n,r)=>{for(var o,i=r>1?void 0:r?s(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&l(t,n,i),i})([(0,r.AOx)({defaultOptions:{color:"black",width:1}})],u)},19812:function(e,t,n){"use strict";n.d(t,{Q:function(){return c}});var r=n(50697),o=n(71071),i=n(71688),a=n(38756),l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?s(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&l(t,n,i),i},c=class extends r.nNj{constructor(){super(...arguments),this.mousedown=!1,this.mouseover=!1,this.createMouseEventHandler=e=>(t,n)=>{let r=function(e,t){let n=t.target;if(n){let r=function(e,t,n,r){let o=e.docView.posFromDOM(t,0,void 0);return null===o||o<0?null:o}(e,n,0);if(null!==r){let o=e.state.doc.resolve(r),i=o.node().isLeaf?0:1,a=o.start()-i;return{pos:r,inside:a}}}return e.posAtCoords({left:t.clientX,top:t.clientY})??void 0}(t,n);if(!r)return!1;let l=[],s=[],{inside:u,pos:c}=r;if(-1===u)return!1;let d=t.state.doc.resolve(c),p=d.depth+1;for(let h of(0,o.w6)(p,1))l.push({node:h>d.depth&&d.nodeAfter?d.nodeAfter:d.node(h),pos:d.before(h)});for(let{type:f}of d.marksAcross(d)??[]){let m=(0,i.IH)(d,f);m&&s.push(m)}return e(n,{view:t,nodes:l,marks:s,getMark(e){let n=(0,o.HD)(e)?t.state.schema.marks[e]:e;return(0,o.kG)(n,{code:a.mA.EXTENSION,message:`The mark ${e} being checked does not exist within the editor schema.`}),s.find(e=>e.mark.type===n)},getNode(e){var n;let r=(0,o.HD)(e)?t.state.schema.nodes[e]:e;(0,o.kG)(r,{code:a.mA.EXTENSION,message:"The node being checked does not exist"});let i=l.find(({node:e})=>e.type===r);if(i)return{...i,isRoot:!!(null==(n=l[0])?void 0:n.node.eq(i.node))}}})}}get name(){return"events"}onView(){var e,t;if(null==(e=this.store.managerSettings.exclude)||!e.clickHandler)for(let n of this.store.extensions){if(!n.createEventHandlers||(null==(t=n.options.exclude)?void 0:t.clickHandler))continue;let r=n.createEventHandlers();for(let[i,a]of(0,o.qh)(r))this.addHandler(i,a)}}createPlugin(){let e=new WeakMap,t=(t,n,r,l,s,u,c,d)=>{let p=this.store.currentState,{schema:h,doc:f}=p,m=f.resolve(l),g=e.has(c),v=function(e){let{handled:t,view:n,$pos:r,state:l}=e,s={getMark:o.ZT,markRanges:[],view:n,state:l};if(t)return s;for(let{type:u}of r.marks()){let c=(0,i.IH)(r,u);c&&s.markRanges.push(c)}return s.getMark=e=>{let t=(0,o.HD)(e)?l.schema.marks[e]:e;return(0,o.kG)(t,{code:a.mA.EXTENSION,message:`The mark ${e} being checked does not exist within the editor schema.`}),s.markRanges.find(e=>e.mark.type===t)},s}({$pos:m,handled:g,view:r,state:p}),b=!1;g||(b=t(c,v)||b);let y={...v,pos:l,direct:d,nodeWithPosition:{node:s,pos:u},getNode(e){let t=(0,o.HD)(e)?h.nodes[e]:e;return(0,o.kG)(t,{code:a.mA.EXTENSION,message:"The node being checked does not exist"}),t===s.type?{node:s,pos:u}:void 0}};return e.set(c,!0),n(c,y)||b};return{props:{handleKeyPress:(e,t)=>this.options.keypress(t)||!1,handleKeyDown:(e,t)=>this.options.keydown(t)||!1,handleTextInput:(e,t,n,r)=>this.options.textInput({from:t,to:n,text:r})||!1,handleClickOn:(e,n,r,o,i,a)=>t(this.options.clickMark,this.options.click,e,n,r,o,i,a),handleDoubleClickOn:(e,n,r,o,i,a)=>t(this.options.doubleClickMark,this.options.doubleClick,e,n,r,o,i,a),handleTripleClickOn:(e,n,r,o,i,a)=>t(this.options.tripleClickMark,this.options.tripleClick,e,n,r,o,i,a),handleDOMEvents:{focus:(e,t)=>this.options.focus(t)||!1,blur:(e,t)=>this.options.blur(t)||!1,mousedown:(e,t)=>(this.startMouseover(),this.options.mousedown(t)||!1),mouseup:(e,t)=>(this.endMouseover(),this.options.mouseup(t)||!1),mouseleave:(e,t)=>(this.mouseover=!1,this.options.mouseleave(t)||!1),mouseenter:(e,t)=>(this.mouseover=!0,this.options.mouseenter(t)||!1),keyup:(e,t)=>this.options.keyup(t)||!1,mouseout:this.createMouseEventHandler((e,t)=>{let n={...t,hovering:!1};return this.options.hover(e,n)||!1}),mouseover:this.createMouseEventHandler((e,t)=>{let n={...t,hovering:!0};return this.options.hover(e,n)||!1}),contextmenu:this.createMouseEventHandler((e,t)=>this.options.contextmenu(e,t)||!1),scroll:(e,t)=>this.options.scroll(t)||!1,copy:(e,t)=>this.options.copy(t)||!1,cut:(e,t)=>this.options.cut(t)||!1,paste:(e,t)=>this.options.paste(t)||!1}}}}isInteracting(){return this.mousedown&&this.mouseover}startMouseover(){this.mouseover=!0,!this.mousedown&&(this.mousedown=!0,this.store.document.documentElement.addEventListener("mouseup",()=>{this.endMouseover()},{once:!0}))}endMouseover(){this.mousedown&&(this.mousedown=!1,this.store.commands.emptyUpdate())}};u([(0,r._y)()],c.prototype,"isInteracting",1),c=u([(0,r.AOx)({handlerKeys:["blur","focus","mousedown","mouseup","mouseenter","mouseleave","textInput","keypress","keyup","keydown","click","clickMark","doubleClick","doubleClickMark","tripleClick","tripleClickMark","contextmenu","hover","scroll","copy","cut","paste"],handlerKeyOptions:{blur:{earlyReturnValue:!0},focus:{earlyReturnValue:!0},mousedown:{earlyReturnValue:!0},mouseleave:{earlyReturnValue:!0},mouseup:{earlyReturnValue:!0},click:{earlyReturnValue:!0},doubleClick:{earlyReturnValue:!0},tripleClick:{earlyReturnValue:!0},hover:{earlyReturnValue:!0},contextmenu:{earlyReturnValue:!0},scroll:{earlyReturnValue:!0},copy:{earlyReturnValue:!0},cut:{earlyReturnValue:!0},paste:{earlyReturnValue:!0}},defaultPriority:a.xV.High})],c)},50629:function(e,t,n){"use strict";n.d(t,{X:function(){return h}});var r=n(84621),o=n(50697),i=n(38756),a=n(71688),l=n(71071),s=n(75114),u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?c(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&u(t,n,i),i},p="data-font-size-mark",h=class extends o.uS7{get name(){return"fontSize"}createTags(){return[i.eX.FormattingMark,i.eX.FontStyle]}createMarkSpec(e,t){return{...t,attrs:{...e.defaults(),size:{default:this.options.defaultSize}},parseDOM:[{tag:`span[${p}]`,getAttrs:t=>{if(!(0,a.jd)(t))return null;let n=t.getAttribute(p);return n?(n=`${(0,a.ju)(n,this.options.unit,t)}${this.options.unit}`,{...e.parse(t),size:n}):null}},{style:"font-size",priority:i.xV.Low,getAttrs:e=>(0,l.HD)(e)?(e=this.getFontSize(e),{size:e}):null},...t.parseDOM??[]],toDOM:t=>{let{size:n,...r}=(0,a.Kh)(t.attrs,e),o=e.dom(t),i=o.style,l;return n&&(i=(0,a.X3)({fontSize:this.getFontSize(n)},i)),["span",{...r,...o,style:i,[p]:l},0]}}}getFontSize(e){var t;let{unit:n,roundingMultiple:o,max:i,min:s,defaultSize:u}=this.options,c=(0,a.ju)(e,n,null==(t=this.store.view)?void 0:t.dom);if(Number.isNaN(c))return u||"1rem";let d=(0,l.uZ)({value:r(c,o),max:i,min:s});return`${d}${n}`}setFontSize(e,t){return this.store.commands.applyMark.original(this.type,{size:String(e)},null==t?void 0:t.selection)}increaseFontSize(e){let{increment:t}=this.options;return n=>{let[r]=this.getFontSizeForSelection(null==e?void 0:e.selection),[o]=r;return o+=(0,l.mf)(t)?t(r,1):t,this.setFontSize(o,e)(n)}}decreaseFontSize(e){let{increment:t}=this.options;return n=>{let[r]=this.getFontSizeForSelection(null==e?void 0:e.selection),[o]=r;return o-=(0,l.mf)(t)?t(r,-1):t,this.setFontSize(o,e)(n)}}removeFontSize(e){return this.store.commands.removeMark.original({type:this.type,expand:!1,...e})}increaseFontSizeShortcut(e){return this.increaseFontSize()(e)}decreaseFontSizeShortcut(e){return this.decreaseFontSize()(e)}getFontSizeForSelection(e){let t=this.store.getState(),n=(0,a.b0)(e??t.selection,t.doc),[r,...o]=(0,a.x4)(n,this.type);if(r)return[(0,a.YD)(r.mark.attrs.size),...o.map(e=>(0,a.YD)(e.mark.attrs.size))];let{defaultSize:i,unit:l}=this.options,s=[(0,a.ju)(i,l),l];return[s]}getFontSizeFromDom(e){let t=this.store.getState(),n=(0,a.b0)(e??t.selection,t.doc),r=this.store.view.domAtPos(n.from),o=(0,a.jd)(r.node)?r.node:this.store.view.dom;return(0,a.YD)((0,a.yv)(o))}};d([(0,o.WDe)({icon:"fontSize",description:({t:e})=>e(s.p.SET_DESCRIPTION),label:({t:e})=>e(s.p.SET_LABEL)})],h.prototype,"setFontSize",1),d([(0,o.WDe)({icon:"addLine",description:({t:e})=>e(s.p.INCREASE_DESCRIPTION),label:({t:e})=>e(s.p.INCREASE_LABEL)})],h.prototype,"increaseFontSize",1),d([(0,o.WDe)({icon:"subtractLine",description:({t:e})=>e(s.p.DECREASE_DESCRIPTION),label:({t:e})=>e(s.p.DECREASE_LABEL)})],h.prototype,"decreaseFontSize",1),d([(0,o.WDe)()],h.prototype,"removeFontSize",1),d([(0,o.IGC)({shortcut:i.vO.IncreaseFontSize,command:"increaseFontSize"})],h.prototype,"increaseFontSizeShortcut",1),d([(0,o.IGC)({shortcut:i.vO.IncreaseFontSize,command:"decreaseFontSize"})],h.prototype,"decreaseFontSizeShortcut",1),d([(0,o._y)()],h.prototype,"getFontSizeForSelection",1),d([(0,o._y)()],h.prototype,"getFontSizeFromDom",1),h=d([(0,o.AOx)({defaultOptions:{defaultSize:"",unit:"pt",increment:1,max:100,min:1,roundingMultiple:.5},staticKeys:["defaultSize"]})],h)},50941:function(e,t,n){"use strict";n.d(t,{e:function(){return f}});var r=n(50697),o=n(38756),i=n(71688),a=n(71071),l=n(88892),s=n(75114),u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?c(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&u(t,n,i),i},{LABEL:p}=s.bk,h=[o.vO.H1,o.vO.H2,o.vO.H3,o.vO.H4,o.vO.H5,o.vO.H6],f=class extends r.QR{get name(){return"heading"}createTags(){return[o.eX.Block,o.eX.TextBlock,o.eX.FormattingNode]}createNodeSpec(e,t){return{content:"inline*",defining:!0,draggable:!1,...t,attrs:{...e.defaults(),level:{default:this.options.defaultLevel}},parseDOM:[...this.options.levels.map(t=>({tag:`h${t}`,getAttrs:n=>({...e.parse(n),level:t})})),...t.parseDOM??[]],toDOM:t=>this.options.levels.includes(t.attrs.level)?[`h${t.attrs.level}`,e.dom(t),0]:[`h${this.options.defaultLevel}`,e.dom(t),0]}}toggleHeading(e={}){return(0,i.zU)({type:this.type,toggleType:"paragraph",attrs:e})}createKeymap(e){let t=this.store.getExtension(r.i8b),n=(0,a.Ry)(),l=[];for(let s of this.options.levels){let u=h[s-1]??o.vO.H1;n[u]=(0,i.uJ)(this.type,{level:s}),l.push({attrs:{level:s},shortcut:e(u)[0]})}return t.updateDecorated("toggleHeading",{shortcut:l}),n}createInputRules(){return this.options.levels.map(e=>(0,l.zK)(RegExp(`^(#{1,${e}})\\s$`),this.type,()=>({level:e})))}createPasteRules(){return this.options.levels.map(e=>({type:"node",nodeType:this.type,regexp:RegExp(`^#{${e}}\\s([\\s\\w]+)$`),getAttributes:()=>({level:e}),startOfTextBlock:!0}))}};d([(0,r.WDe)({icon:({attrs:e})=>`h${(null==e?void 0:e.level)??"1"}`,label:({t:e,attrs:t})=>e(p,{level:null==t?void 0:t.level})})],f.prototype,"toggleHeading",1),f=d([(0,r.AOx)({defaultOptions:{levels:[1,2,3,4,5,6],defaultLevel:1},staticKeys:["defaultLevel","levels"]})],f)},8064:function(e,t,n){"use strict";n.d(t,{u:function(){return h}});var r=n(50697),o=n(71071),i=n(71688),a=n(65832),l=n(38756),s=n(75114),u=n(51801),c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,p=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?d(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&c(t,n,i),i},h=class extends r.nNj{constructor(){super(...arguments),this.wrapMethod=(e,t)=>({state:n,dispatch:r,view:i})=>{let{getState:a,getDispatch:l}=this.options,s=(0,o.mf)(a)?a():n,u=(0,o.mf)(l)&&r?l():r,c=e(s,u,i);return null==t||t(c),c}}get name(){return"history"}createKeymap(){return{"Mod-y":i.NZ.isMac?()=>!1:this.wrapMethod(u.KX,this.options.onRedo),"Mod-z":this.wrapMethod(u.Yw,this.options.onUndo),"Shift-Mod-z":this.wrapMethod(u.KX,this.options.onRedo)}}undoShortcut(e){return this.wrapMethod(u.Yw,this.options.onUndo)(e)}redoShortcut(e){return this.wrapMethod(u.KX,this.options.onRedo)(e)}createExternalPlugins(){let{depth:e,newGroupDelay:t}=this.options;return[(0,u.m8)({depth:e,newGroupDelay:t})]}undo(){return(0,a.fB)(this.wrapMethod(u.Yw,this.options.onUndo))}redo(){return(0,a.fB)(this.wrapMethod(u.KX,this.options.onRedo))}undoDepth(e=this.store.getState()){return(0,u.of)(e)}redoDepth(e=this.store.getState()){return(0,u.AH)(e)}};p([(0,r.IGC)({shortcut:l.vO.Undo,command:"undo"})],h.prototype,"undoShortcut",1),p([(0,r.IGC)({shortcut:l.vO.Redo,command:"redo"})],h.prototype,"redoShortcut",1),p([(0,r.WDe)({disableChaining:!0,description:({t:e})=>e(s.XW.UNDO_DESCRIPTION),label:({t:e})=>e(s.XW.UNDO_LABEL),icon:"arrowGoBackFill"})],h.prototype,"undo",1),p([(0,r.WDe)({disableChaining:!0,description:({t:e})=>e(s.XW.REDO_DESCRIPTION),label:({t:e})=>e(s.XW.REDO_LABEL),icon:"arrowGoForwardFill"})],h.prototype,"redo",1),p([(0,r._y)()],h.prototype,"undoDepth",1),p([(0,r._y)()],h.prototype,"redoDepth",1),h=p([(0,r.AOx)({defaultOptions:{depth:100,newGroupDelay:500,getDispatch:void 0,getState:void 0},staticKeys:["depth","newGroupDelay"],handlerKeys:["onUndo","onRedo"]})],h)},9609:function(e,t,n){"use strict";n.d(t,{Gc:function(){return R}});var r,o,i,a,l,s,u=n(50697),c=n(38756),d=n(71688),p=n(71071),h=n(26151),f=n(21251),m=n(79899),g=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},v=(e,t,n)=>(g(e,t,"read from private field"),n?n.call(e):t.get(e)),b=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},y=(e,t,n,r)=>(g(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),x=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="22" height="22" fill="rgba(0, 0, 0, 0.65)" stroke="rgba(255, 255, 255, 0.5)" transform="rotate(90)" xmlns:v="https://vecta.io/nano"><path fill-rule="evenodd" d="M14 0a2 2 0 0 0-2 2v10H2a2 2 0 1 0 0 4h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/></svg>'),w=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="22" height="22" fill="rgba(0, 0, 0, 0.65)" stroke="rgba(255, 255, 255, 0.5)" transform="matrix(0 1 1 0 0 0)" xmlns:v="https://vecta.io/nano"><path fill-rule="evenodd" d="M14 0a2 2 0 0 0-2 2v10H2a2 2 0 1 0 0 4h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/></svg>'),E=class{constructor(e){b(this,r,void 0);let t=document.createElement("div"),n=document.createElement("div");this.dom=t,y(this,r,n),this.type=e,this.createHandle(e)}createHandle(e){switch((0,d.yL)(this.dom,{position:"absolute",pointerEvents:"auto",display:"flex",alignItems:"center",justifyContent:"center",zIndex:"100"}),(0,d.yL)(v(this,r),{opacity:"0",transition:"opacity 300ms ease-in 0s"}),v(this,r).dataset.dragging="",e){case 0:(0,d.yL)(this.dom,{right:"0px",top:"0px",height:"100%",width:"15px",cursor:"col-resize"}),(0,d.yL)(v(this,r),{width:" 4px",height:"36px",maxHeight:"50%",boxSizing:"content-box",background:"rgba(0, 0, 0, 0.65)",border:"1px solid rgba(255, 255, 255, 0.5)",borderRadius:"6px"});break;case 1:(0,d.yL)(this.dom,{left:"0px",top:"0px",height:"100%",width:"15px",cursor:"col-resize"}),(0,d.yL)(v(this,r),{width:" 4px",height:"36px",maxHeight:"50%",boxSizing:"content-box",background:"rgba(0, 0, 0, 0.65)",border:"1px solid rgba(255, 255, 255, 0.5)",borderRadius:"6px"});break;case 2:(0,d.yL)(this.dom,{bottom:"0px",width:"100%",height:"14px",cursor:"row-resize"}),(0,d.yL)(v(this,r),{width:" 42px",height:"4px",boxSizing:"content-box",maxWidth:"50%",background:"rgba(0, 0, 0, 0.65)",border:"1px solid rgba(255, 255, 255, 0.5)",borderRadius:"6px"});break;case 3:(0,d.yL)(this.dom,{right:"-1px",bottom:"-2px",width:"30px",height:"30px",cursor:"nwse-resize",zIndex:"101"}),(0,d.yL)(v(this,r),{height:"22px",width:"22px",backgroundRepeat:"no-repeat",backgroundImage:`url("data:image/svg+xml,${w}") `});break;case 4:(0,d.yL)(this.dom,{left:"-1px",bottom:"-2px",width:"30px",height:"30px",cursor:"nesw-resize",zIndex:"101"}),(0,d.yL)(v(this,r),{height:"22px",width:"22px",backgroundRepeat:"no-repeat",backgroundImage:`url("data:image/svg+xml,${x}") `})}this.dom.append(v(this,r))}setHandleVisibility(e){let t=e||!!v(this,r).dataset.dragging;v(this,r).style.opacity=t?"1":"0"}dataSetDragging(e){v(this,r).dataset.dragging=e?"true":""}};r=new WeakMap;var k,C=((k=C||{})[k.Fixed=0]="Fixed",k[k.Flexible=1]="Flexible",k),S=class{constructor({node:e,view:t,getPos:n,aspectRatio:r=0,options:u,initialSize:c}){b(this,o,void 0),b(this,i,void 0),b(this,a,[]),b(this,l,void 0),b(this,s,void 0);let d=this.createWrapper(e,c),p=this.createElement({node:e,view:t,getPos:n,options:u}),h=(1===r?[0,1,2,3,4]:[0,1]).map(e=>new E(e));for(let f of h){let m=e=>{this.startResizing(e,t,n,f)};f.dom.addEventListener("mousedown",m),v(this,a).push(()=>f.dom.removeEventListener("mousedown",m)),d.append(f.dom)}let g=()=>{h.forEach(e=>e.setHandleVisibility(!0))},x=()=>{h.forEach(e=>e.setHandleVisibility(!1))};d.addEventListener("mouseover",g),d.addEventListener("mouseout",x),v(this,a).push(()=>d.removeEventListener("mouseover",g),()=>d.removeEventListener("mouseout",x)),d.append(p),this.dom=d,y(this,i,e),y(this,o,p),this.aspectRatio=r}createWrapper(e,t){let n=document.createElement("div");return n.classList.add("remirror-resizable-view"),n.style.position="relative",t?(0,d.yL)(n,{width:M(t.width),aspectRatio:`${t.width} / ${t.height}`}):(0,d.yL)(n,{width:M(e.attrs.width),aspectRatio:`${e.attrs.width} / ${e.attrs.height}`}),(0,d.yL)(n,{maxWidth:"100%",minWidth:"50px",verticalAlign:"bottom",display:"inline-block",lineHeight:"0",transition:"width 0.15s ease-out, height 0.15s ease-out"}),n}startResizing(e,t,n,r){var u,c;e.preventDefault(),r.dataSetDragging(!0),v(this,o).style.pointerEvents="none";let d=e.pageX,p=e.pageY,h=(null==(u=v(this,o))?void 0:u.getBoundingClientRect().width)||0,f=(null==(c=v(this,o))?void 0:c.getBoundingClientRect().height)||0,g=(0,m.P)(100,!1,e=>{let t=e.pageX,n=e.pageY,o=t-d,i=n-p,a=null,u=null;if(0===this.aspectRatio&&h&&f)switch(r.type){case 0:case 3:a=h+o,u=f/h*a;break;case 1:case 4:a=h-o,u=f/h*a;break;case 2:u=f+i,a=h/f*u}else if(1===this.aspectRatio)switch(r.type){case 0:a=h+o;break;case 1:a=h-o;break;case 2:u=f+i;break;case 3:a=h+o,u=f+i;break;case 4:a=h-o,u=f+i}"number"==typeof a&&a<50&&(0===this.aspectRatio&&h&&f?u=f/h*(a=50):1===this.aspectRatio&&(a=50)),a&&(y(this,l,Math.round(a)),this.dom.style.width=`${v(this,l)}px`),u&&y(this,s,Math.round(u)),(a||u)&&(this.dom.style.aspectRatio=`${v(this,l)} / ${v(this,s)}`)}),b=e=>{e.preventDefault(),r.dataSetDragging(!1),r.setHandleVisibility(!1),v(this,o).style.pointerEvents="auto",document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",b);let a=n(),u=t.state.tr.setNodeMarkup(a,void 0,{...v(this,i).attrs,width:v(this,l),height:v(this,s)});t.dispatch(u)};document.addEventListener("mousemove",g),document.addEventListener("mouseup",b),v(this,a).push(()=>document.removeEventListener("mousemove",g)),v(this,a).push(()=>document.removeEventListener("mouseup",b))}update(e){var t,n,r;return e.type===v(this,i).type&&(0!==this.aspectRatio||!e.attrs.width||e.attrs.width===v(this,l))&&(1!==this.aspectRatio||!e.attrs.width||!e.attrs.height||e.attrs.width===v(this,l)||e.attrs.height===v(this,s))&&(t=v(this,i),n=e,r=["width","height"],!!(t===n||function(e,t,n){let r=e.attrs,o=t.attrs,i={};for(let a of n)i[a]=null;e.attrs={...r,...i},t.attrs={...o,...i};let l=e.sameMarkup(t);return e.attrs=r,t.attrs=o,l}(t,n,r)&&t.content.eq(n.content)))&&(y(this,i,e),y(this,l,e.attrs.width),y(this,s,e.attrs.height),!0)}destroy(){v(this,a).forEach(e=>e())}};function M(e){return"number"==typeof e?`${e}px`:e||void 0}o=new WeakMap,i=new WeakMap,a=new WeakMap,l=new WeakMap,s=new WeakMap;var O=Object.defineProperty,A=Object.getOwnPropertyDescriptor,_=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?A(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&O(t,n,i),i},T=class extends S{constructor(e,t,n){super({node:e,view:t,getPos:n,aspectRatio:C.Fixed})}createElement({node:e}){let t=document.createElement("img");return t.setAttribute("src",e.attrs.src),(0,d.yL)(t,{width:"100%",minWidth:"50px",objectFit:"contain"}),t}},R=class extends u.QR{get name(){return"image"}createTags(){return[c.eX.InlineNode,c.eX.Media]}createNodeSpec(e,t){let{preferPastedTextContent:n}=this.options;return{inline:!0,draggable:!0,selectable:!1,...t,attrs:{...e.defaults(),alt:{default:""},crop:{default:null},height:{default:null},width:{default:null},rotate:{default:null},src:{default:null},title:{default:""},fileName:{default:null},resizable:{default:!1}},parseDOM:[{tag:"img[src]",getAttrs(t){var r;if((0,d.jd)(t)){let o=function({element:e,parse:t}){let{width:n,height:r}=function(e){let{width:t,height:n}=e.style;return t=t||e.getAttribute("width")||"",n=n||e.getAttribute("height")||"",{width:t,height:n}}(e);return{...t(e),alt:e.getAttribute("alt")??"",height:Number.parseInt(r||"0",10)||null,src:e.getAttribute("src")??null,title:e.getAttribute("title")??"",width:Number.parseInt(n||"0",10)||null,fileName:e.getAttribute("data-file-name")??null}}({element:t,parse:e.parse});return!(n&&(null==(r=o.src)?void 0:r.startsWith("file:///")))&&o}return{}}},...t.parseDOM??[]],toDOM(t){let n=(0,d.Kh)(t.attrs,e);return["img",{...e.dom(t),...n}]}}}insertImage(e,t){return({tr:n,dispatch:r})=>{let{from:o,to:i}=(0,d.b0)(t??n.selection,n.doc),a=this.type.create(e);return null==r||r(n.replaceRangeWith(o,i,a)),!0}}uploadImage(e,t){let{updatePlaceholder:n,destroyPlaceholder:r,createPlaceholder:o}=this.options;return i=>{let{tr:a}=i,l=a.selection.from;return this.store.createPlaceholderCommand({promise:e,placeholder:{type:"widget",get pos(){return l},createElement(e,n){let r=o(e,n);return null==t||t(r),r},onUpdate(e,t,r,o){n(e,t,r,o)},onDestroy(e,t){r(e,t)}},onSuccess:(e,t,n)=>this.insertImage(e,t)(n)}).validate(({tr:e,dispatch:t})=>{let n=(0,h.Yo)(e.doc,l,this.type);return null!=n&&(l=n,e.selection.empty||null==t||t(e.deleteSelection()),!0)},"unshift").generateCommand()(i)}}fileUploadFileHandler(e,t,n){var r,o;let{preferPastedTextContent:i,uploadHandler:a}=this.options;if(i&&(o=t,void 0!==o.clipboardData)&&(null==(r=t.clipboardData)?void 0:r.getData("text/plain")))return!1;let{commands:l,chain:s}=this.store,u=e.map((e,t)=>({file:e,progress(e){l.updatePlaceholder(c[t],e)}})),c=a(u);for(let d of((0,p.hj)(n)&&s.selectText(n),c))s.uploadImage(d);return s.run(),!0}createPasteRules(){return[{type:"file",regexp:/image/i,fileHandler:e=>{let t="drop"===e.type?e.pos:void 0;return this.fileUploadFileHandler(e.files,e.event,t)}}]}createNodeViews(){return this.options.enableResizing?(e,t,n)=>new T(e,t,n):{}}};_([(0,u.WDe)()],R.prototype,"insertImage",1),_([(0,u.WDe)()],R.prototype,"uploadImage",1),R=_([(0,u.AOx)({defaultOptions:{createPlaceholder:function(e,t){let n=document.createElement("div");return n.classList.add(f.Jl.IMAGE_LOADER),n},updatePlaceholder(){},destroyPlaceholder(){},uploadHandler:function(e){(0,p.kG)(e.length>0,{code:c.mA.EXTENSION,message:"The upload handler was applied for the image extension without any valid files"});let t=0,n=[];for(let{file:r,progress:o}of e)n.push(()=>new Promise(n=>{let i=new FileReader;i.addEventListener("load",i=>{var a;o((t+=1)/e.length),n({src:null==(a=i.target)?void 0:a.result,fileName:r.name})},{once:!0}),i.readAsDataURL(r)}));return n},enableResizing:!1,preferPastedTextContent:!0}})],R)},16658:function(e,t,n){"use strict";n.d(t,{f:function(){return c}});var r=n(50697),o=n(38756),i=n(71688),a=n(75114),l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?s(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&l(t,n,i),i},c=class extends r.uS7{get name(){return"italic"}createTags(){return[o.eX.FontStyle,o.eX.FormattingMark]}createMarkSpec(e,t){return{...t,attrs:e.defaults(),parseDOM:[{tag:"i",getAttrs:e.parse},{tag:"em",getAttrs:e.parse},{style:"font-style=italic"},...t.parseDOM??[]],toDOM:t=>["em",e.dom(t),0]}}createKeymap(){return{"Mod-i":(0,r.w9d)({type:this.type})}}createInputRules(){return[(0,i.Cf)({regexp:/(?:^|[^*])\*([^*]+)\*$/,type:this.type,ignoreWhitespace:!0,updateCaptured:({fullMatch:e,start:t})=>e.startsWith("*")?{}:{fullMatch:e.slice(1),start:t+1}}),(0,i.Cf)({regexp:/(?:^|\W)_([^_]+)_$/,type:this.type,ignoreWhitespace:!0,updateCaptured:({fullMatch:e,start:t})=>e.startsWith("_")?{}:{fullMatch:e.slice(1),start:t+1}})]}createPasteRules(){return[{type:"mark",markType:this.type,regexp:/(?:^|\W)_([^_]+)_/g},{type:"mark",markType:this.type,regexp:/\*([^*]+)\*/g}]}toggleItalic(e){return(0,r.w9d)({type:this.type,selection:e})}shortcut(e){return this.toggleItalic()(e)}};u([(0,r.WDe)({icon:"italic",label:({t:e})=>e(a.wr.LABEL),description:({t:e})=>e(a.wr.DESCRIPTION)})],c.prototype,"toggleItalic",1),u([(0,r.IGC)({shortcut:o.vO.Italic,command:"toggleItalic"})],c.prototype,"shortcut",1),c=u([(0,r.AOx)({})],c)},3046:function(e,t,n){"use strict";n.d(t,{y5:function(){return m}});var r=n(43264),o=n(50697),i=n(38756),a=n(71071),l=n(71688),s=n(51801),u=n(27191),c=n(26151),d=Object.defineProperty,p=Object.getOwnPropertyDescriptor,h=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?p(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&d(t,n,i),i},f="updateLink",m=class extends o.uS7{constructor(){super(...arguments),this._autoLinkRegexNonGlobal=void 0}get name(){return"link"}createTags(){return[i.eX.Link,i.eX.ExcludeInputRules]}createMarkSpec(e,t){let n="data-link-auto",r=e=>{let{defaultTarget:t,supportedTargets:n}=this.options;return e&&(0,a.q9)(t?[...n,t]:n,e)?{target:e}:void 0};return{inclusive:!1,excludes:"_",...t,attrs:{...e.defaults(),href:{},target:{default:this.options.defaultTarget},auto:{default:!1}},parseDOM:[{tag:"a[href]",getAttrs:t=>{if(!(0,l.jd)(t))return!1;let o=t.getAttribute("href"),i=t.textContent,a=this.options.autoLink&&(t.hasAttribute(n)||o===i||(null==o?void 0:o.replace(`${this.options.defaultProtocol}//`,""))===i);return{...e.parse(t),href:o,auto:a,...r(t.getAttribute("target"))}}},...t.parseDOM??[]],toDOM(t){let{auto:o,target:i,...a}=(0,l.Kh)(t.attrs,e),s=t.attrs.auto?{[n]:""}:{},u={...e.dom(t),...a,rel:"noopener noreferrer nofollow",...s,...r(t.attrs.target)};return["a",u,0]}}}onCreate(){let{autoLinkRegex:e}=this.options;this._autoLinkRegexNonGlobal=RegExp(`^${e.source}$`,e.flags.replace("g",""))}shortcut({tr:e}){let t="",{from:n,to:r,empty:o,$from:i}=e.selection,a=!1,s=(0,l.IH)(i,this.type);if(o){let u=s??(0,l.JM)(e);if(!u)return!1;({text:t,from:n,to:r}=u),a=!0}return n!==r&&(a||(t=e.doc.textBetween(n,r)),this.options.onActivateLink(t),this.options.onShortcut({activeLink:s?{attrs:s.mark.attrs,from:s.from,to:s.to}:void 0,selectedText:t,from:n,to:r}),!0)}updateLink(e,t){return n=>{let{tr:r}=n,o=(0,l.hT)(r.selection)&&!(0,l.Ab)(r.selection)||(0,l.d7)(r.selection)||(0,l.yw)({trState:r,type:this.type});return(!!o||!!t)&&(r.setMeta(this.name,{command:f,attrs:e,range:t}),(0,l.dy)({type:this.type,attrs:e,range:t})(n))}}selectLink(){return this.store.commands.selectMark.original(this.type)}removeLink(e){return t=>{let{tr:n}=t;return!!(0,l.yw)({trState:n,type:this.type,...e})&&(0,l.P9)({type:this.type,expand:!0,range:e})(t)}}createPasteRules(){return[{type:"mark",regexp:this.options.autoLinkRegex,markType:this.type,getAttributes:(e,t)=>({href:this.buildHref((0,l.FI)(e)),auto:!t}),transformMatch:e=>{let t=(0,l.FI)(e);return!!(t&&this.isValidUrl(t))&&t}}]}createEventHandlers(){return{clickMark:(e,t)=>{let n=t.getMark(this.type);if(!n)return;let r=n.mark.attrs,o={...r,...n};if(this.options.onClick(e,o))return!0;let i=!1;if(this.options.openLinkOnClick){i=!0;let a=r.href;window.open(a,"_blank")}return this.options.selectTextOnClick&&(i=!0,this.store.commands.selectText(n)),i}}}createPlugin(){return{props:{handleClick:(e,t)=>{if(!this.options.selectTextOnClick&&!this.options.openLinkOnClick)return!1;let{doc:n,tr:r}=e.state,o=(0,l.IH)(n.resolve(t),this.type);if(!o)return!1;if(this.options.openLinkOnClick){let i=o.mark.attrs.href;window.open(i,"_blank")}if(this.options.selectTextOnClick){let a=n.resolve(o.from),s=n.resolve(o.to),c=r.setSelection(u.Bs.between(a,s));e.dispatch(c)}return!0}},appendTransaction:(e,t,n)=>{let r=e.filter(e=>!!e.getMeta(this.name));if(r.forEach(e=>{let t=e.getMeta(this.name);if(t.command===f){let{range:r,attrs:o}=t,{selection:i,doc:a}=n,{from:l,to:s}=r??i;this.options.onUpdateLink(a.textBetween(l,s),{range:r,selection:i,doc:a,attrs:o})}}),!this.options.autoLink)return;let o=(0,s.of)(t)-(0,s.of)(n)==1;if(o)return;let i=e.some(e=>e.docChanged);if(!i)return;let a=(0,l.PZ)(e,t),u=(0,l.QC)(a,[c.FC,c.Pu]),{mapping:d}=a,{tr:p,doc:h}=n,{updateLink:m,removeLink:g}=this.store.chain(p);if(u.forEach(({prevFrom:e,prevTo:n,from:r,to:o})=>{let i=[],a=o-r==2,l=this.getLinkMarksInRange(t.doc,e,n,!0).filter(e=>e.mark.type===this.type).map(({from:e,to:t,text:n})=>({mappedFrom:d.map(e),mappedTo:d.map(t),text:n,from:e,to:t}));l.forEach(({mappedFrom:e,mappedTo:n,from:s,to:u},c)=>this.getLinkMarksInRange(h,e,n,!0).filter(e=>e.mark.type===this.type).forEach(n=>{let d=t.doc.textBetween(s,u,void 0," "),p=h.textBetween(n.from,n.to+1,void 0," ").trim(),f=this.isValidUrl(d),v=this.isValidUrl(p);if(!v)f&&(g({from:n.from,to:n.to}).tr(),l.splice(c,1)),!a&&r===o&&this.findAutoLinks(p).map(t=>this.addLinkProperties({...t,from:e+t.start,to:e+t.end})).forEach(({attrs:e,range:t,text:n})=>{m(e,t).tr(),i.push({attrs:e,range:t,text:n})})})),this.findTextBlocksInRange(h,{from:r,to:o}).forEach(({text:e,positionStart:t})=>{this.findAutoLinks(e).map(e=>this.addLinkProperties({...e,from:t+e.start+1,to:t+e.end+1})).filter(({range:e})=>{let t=r>=e.from&&r<=e.to,n=o>=e.from&&o<=e.to;return t||n||a}).filter(({range:e})=>0===this.getLinkMarksInRange(p.doc,e.from,e.to,!1).length).filter(({range:{from:e},text:t})=>!l.some(({text:n,mappedFrom:r})=>r===e&&n===t)).forEach(({attrs:e,text:t,range:n})=>{m(e,n).tr(),i.push({attrs:e,range:n,text:t})})}),window.requestAnimationFrame(()=>{i.forEach(({attrs:e,range:t,text:n})=>{let{doc:r,selection:o}=p;this.options.onUpdateLink(n,{attrs:e,doc:r,range:t,selection:o})})})}),0!==p.steps.length)return p}}}buildHref(e){return this.options.extractHref({url:e,defaultProtocol:this.options.defaultProtocol})}getLinkMarksInRange(e,t,n,r){let o=[];if(t===n){let i=e.resolve(Math.max(t-1,0)),a=(0,l.IH)(i,this.type);(null==a?void 0:a.mark.attrs.auto)===r&&o.push(a)}else e.nodesBetween(t,n,(e,t)=>{let n=e.marks??[],i=n.find(({type:e,attrs:t})=>e===this.type&&t.auto===r);i&&o.push({from:t,to:t+e.nodeSize,mark:i,text:e.textContent})});return o}findTextBlocksInRange(e,t){let n=[];return e.nodesBetween(t.from,t.to,(e,t)=>{e.isTextblock&&e.type.allowsMarkType(this.type)&&n.push({node:e,pos:t})}),n.map(t=>({text:e.textBetween(t.pos,t.pos+t.node.nodeSize,void 0," "),positionStart:t.pos}))}addLinkProperties({from:e,to:t,href:n,...r}){return{...r,range:{from:e,to:t},attrs:{href:n,auto:!0}}}findAutoLinks(e){if(this.options.findAutoLinks)return this.options.findAutoLinks(e,this.options.defaultProtocol);let t=[];for(let n of(0,a.JD)(e,this.options.autoLinkRegex)){let r=(0,l.FI)(n);if(!r)continue;let o=this.buildHref(r);(this.isValidTLD(o)||o.startsWith("tel:"))&&t.push({text:r,href:o,start:n.index,end:n.index+r.length})}return t}isValidUrl(e){var t;return this.options.isValidUrl?this.options.isValidUrl(e,this.options.defaultProtocol):this.isValidTLD(this.buildHref(e))&&!!(null==(t=this._autoLinkRegexNonGlobal)?void 0:t.test(e))}isValidTLD(e){let{autoLinkAllowedTLDs:t}=this.options;if(0===t.length)return!0;let n=r(e);if(""===n)return!0;let o=(0,a.Z$)(n.split("."));return t.includes(o)}};h([(0,o.IGC)({shortcut:i.vO.InsertLink})],m.prototype,"shortcut",1),h([(0,o.WDe)()],m.prototype,"updateLink",1),h([(0,o.WDe)()],m.prototype,"selectLink",1),h([(0,o.WDe)()],m.prototype,"removeLink",1),m=h([(0,o.AOx)({defaultOptions:{autoLink:!1,defaultProtocol:"",selectTextOnClick:!1,openLinkOnClick:!1,autoLinkRegex:/(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?:[\da-z\u00A1-\uFFFF][\w\u00A1-\uFFFF-]{0,62})?[\da-z\u00A1-\uFFFF]\.)*(?:(?:\d(?!\.)|[a-z\u00A1-\uFFFF])(?:[\da-z\u00A1-\uFFFF][\w\u00A1-\uFFFF-]{0,62})?[\da-z\u00A1-\uFFFF]\.)+[a-z\u00A1-\uFFFF]{2,}(?::\d{2,5})?(?:[#/?]\S*)?/gi,autoLinkAllowedTLDs:["com","de","net","org","uk","cn","ga","nl","cf","ml","tk","ru","br","gq","xyz","fr","eu","info","co","au","ca","it","in","ch","pl","es","online","us","top","be","jp","biz","se","at","dk","cz","za","me","ir","icu","shop","kr","site","mx","hu","io","cc","club","no","cyou"],findAutoLinks:void 0,isValidUrl:void 0,defaultTarget:null,supportedTargets:[],extractHref:function({url:e,defaultProtocol:t}){let n=/^((?:https?|ftp)?:)\/\//.test(e),r=!n&&e.includes("@");return r?`mailto:${e}`:n?e:`${t}//${e}`}},staticKeys:["autoLinkRegex"],handlerKeyOptions:{onClick:{earlyReturnValue:!0}},handlerKeys:["onActivateLink","onShortcut","onUpdateLink","onClick"],defaultPriority:i.xV.Medium})],m)},48756:function(e,t,n){"use strict";n.d(t,{UQ:function(){return H},Jb:function(){return z},_3:function(){return N}});var r=n(50697),o=n(38756),i=n(71071),a=n(75114),l=n(88892),s=n(27191),u=n(21251),c=n(65832),d=n(71688),p=n(60737),h=n(30764),f=n(26151),m=Object.defineProperty,g=Object.getOwnPropertyDescriptor,v=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?g(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&m(t,n,i),i};function b(e){var t;return!!(null==(t=e.spec.group)?void 0:t.includes(o.eX.ListContainerNode))}function y(e){return b(e.type)}function x(e){var t,n;return!!(null==(n=(t=e.type).spec.group)?void 0:n.includes(o.eX.ListItemNode))}function w(e,t){return n=>{let{dispatch:r,tr:o}=n,i=(0,c.Ux)(o,n.state),{$from:a,$to:l}=o.selection,s=a.blockRange(l);if(!s)return!1;let u=(0,d.Kk)({predicate:e=>b(e.type),selection:o.selection});if(u&&s.depth-u.depth<=1&&0===s.startIndex){if(u.node.type===e)return S(t)(n);if(b(u.node.type))return e.validContent(u.node.content)?(null==r||r(o.setNodeMarkup(u.pos,e)),!0):!!function(e,t,n,r){let o=t.node,i=e.doc.resolve(t.start),a=i.node(-1),l=i.index(-1);if(!a||!a.canReplace(l,l+1,h.HY.from(n.create())))return!1;let s=[];for(let u=0;u<o.childCount;u++){let c=o.child(u);if(!r.validContent(c.content))return!1;let d=r.createChecked(null,c.content);s.push(d)}let p=n.createChecked(null,s),f=t.pos,m=f+o.nodeSize,g=e.selection.from;return e.replaceRangeWith(f,m,p),e.setSelection(e.selection.constructor.near(e.doc.resolve(g))),!0}(o,u,e,t)&&(null==r||r(o.scrollIntoView()),!0)}return(function(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i),l=!1,s=a;if(!a)return!1;if(a.depth>=2&&o.node(a.depth-1).type.compatibleContent(e)&&0==a.startIndex){if(0==o.index(a.depth-1))return!1;let u=n.doc.resolve(a.start-2);s=new h.Ts(u,u,a.depth),a.endIndex<a.parent.childCount&&(a=new h.Ts(o,n.doc.resolve(i.end(a.depth)),a.depth)),l=!0}let c=(0,f.nd)(s,e,t,a);return!!c&&(r&&r((function(e,t,n,r,o){let i=h.HY.empty;for(let a=n.length-1;a>=0;a--)i=h.HY.from(n[a].type.create(n[a].attrs,i));e.step(new f.FC(t.start-(r?2:0),t.end,t.start,t.end,new h.p2(i,0,0),n.length,!0));let l=0;for(let s=0;s<n.length;s++)n[s].type==o&&(l=s+1);let u=n.length-l,c=t.start+n.length-(r?2:0),d=t.parent;for(let p=t.startIndex,m=t.endIndex,g=!0;p<m;p++,g=!1)!g&&(0,f.Ax)(e.doc,c,u)&&(e.split(c,u),c+=2*u),c+=d.child(p).nodeSize;return e})(n.tr,a,c,l,e).scrollIntoView()),!0)}})(e)(i,r)}}function E(e,t=["checked"]){return function({tr:n,dispatch:r,state:o}){var i,a;let l=(0,d.jo)(e,o.schema),{$from:u,$to:c}=n.selection;if((0,d.EG)(n.selection)&&n.selection.node.isBlock||u.depth<2||!u.sameParent(c))return!1;let p=u.node(-1);if(p.type!==l)return!1;if(0===u.parent.content.size&&u.node(-1).childCount===u.indexAfter(-1)){if(2===u.depth||u.node(-3).type!==l||u.index(-2)!==u.node(-2).childCount-1)return!1;if(r){let m=u.index(-1)>0,g=h.HY.empty;for(let v=u.depth-(m?1:2);v>=u.depth-3;v--)g=h.HY.from(u.node(v).copy(g));let b=(null==(i=l.contentMatch.defaultType)?void 0:i.createAndFill())||void 0;g=g.append(h.HY.from(l.createAndFill(null,b)||void 0));let y=u.indexAfter(-1)<u.node(-2).childCount?1:u.indexAfter(-2)<u.node(-3).childCount?2:3;n.replace(u.before(m?void 0:-1),u.after(-y),new h.p2(g,m?3:2,2)),n.setSelection(n.selection.constructor.near(n.doc.resolve(u.pos+(m?3:2)))),r(n.scrollIntoView())}return!0}if(p.attrs.closed&&u.sameParent(c)&&c.pos===c.end()){if(r){let x=u.after(-1),w=(null==(a=l.contentMatch.defaultType)?void 0:a.createAndFill())||void 0,E=l.createAndFill(null,w);E&&(n.insert(x,E),n.setSelection(s.Bs.near(n.doc.resolve(x+1)))),n.delete(u.pos,c.pos),r(n.scrollIntoView())}return!0}let k=Object.fromEntries(Object.entries(p.attrs).filter(([e])=>!t.includes(e))),C=c.pos===u.end()?p.contentMatchAt(0).defaultType:null,S={...u.node().attrs};return n.delete(u.pos,c.pos),!!(0,f.Ax)(n.doc,u.pos,2)&&(r&&r(n.split(u.pos,2,C?[{type:l,attrs:k},{type:C,attrs:S}]:[{type:l,attrs:k}]).scrollIntoView()),!0)}}function k({listType:e,itemType:t,tr:n}){let r=M(n.selection);if(!r)return!1;let o=0===r.startIndex,{from:i,to:a}=n.selection;return!!function({listType:e,itemType:t,tr:n,range:r}){var o;let i=r.parent,a=n.doc.slice(r.start,r.end);if(i.type===e&&(null==(o=a.content.firstChild)?void 0:o.type)===t)return!1;let l=[];for(let s=0;s<a.content.childCount;s++){let u=a.content.child(s);if(!t.validContent(u.content))return!1;let c=t.createChecked(null,u.content);l.push(c)}let d=e.createChecked(null,l);return n.replaceRange(r.start,r.end,new h.p2(h.HY.from(d),0,0)),!0}({listType:e,itemType:t,tr:n,range:r})&&(n.setSelection(s.Bs.between(n.doc.resolve(o?i:i+2),n.doc.resolve(o?a:a+2))),n.scrollIntoView(),!0)}function C(e,t){let n=t||e.selection.$from,r=[],o,i,a,l;for(let s=n.depth;s>=0;s--){if(i=n.node(s),o=n.index(s),a=i.maybeChild(o-1),l=i.maybeChild(o),a&&l&&a.type.name===l.type.name&&y(a)){let u=n.before(s+1);r.push(u)}if(o=n.indexAfter(s),a=i.maybeChild(o-1),l=i.maybeChild(o),a&&l&&a.type.name===l.type.name&&y(a)){let c=n.after(s+1);r.push(c)}}r=[...new Set(r)].sort((e,t)=>t-e);let d=!1;for(let p of r)(0,f.Mn)(e.doc,p)&&(e.join(p),d=!0);return d}function S(e){return t=>{let{dispatch:n,tr:r}=t,o=(0,c.Ux)(r,t.state),i=function(e,t){let{$from:n,$to:r}=t,o=n.blockRange(r,t=>{var n;return(null==(n=t.firstChild)?void 0:n.type)===e});return o}(e,r.selection);return!!i&&(!n||(!function(e,t,n){let r=e.tr,o=n.parent,i=r.mapping.maps.length;for(let a=n.end,l=n.endIndex-1,s=n.startIndex;l>s;l--)a-=o.child(l).nodeSize,r.delete(a-1,a+1);let u=r.doc.resolve(n.start),c=u.nodeAfter;if(!c||r.mapping.slice(i).map(n.end)!==n.start+c.nodeSize)return!1;let d=0===n.startIndex,p=n.endIndex===o.childCount,m=u.node(-1),g=u.index(-1);if(!m.canReplace(g+(d?0:1),g+1,c.content.append(p?h.HY.empty:h.HY.from(o))))return!1;let v=u.pos,b=v+c.nodeSize;return r.step(new f.FC(v-(d?1:0),b+(p?1:0),v+1,b-1,new h.p2((d?h.HY.empty:h.HY.from(o.copy(h.HY.empty))).append(p?h.HY.empty:h.HY.from(o.copy(h.HY.empty))),d?0:1,p?0:1),d?0:1)),t(r.scrollIntoView()),!0}(o,n,i),!0))}}function M(e){let{$from:t,$to:n}=e;return t.blockRange(n,y)}function O({view:e}){if(!e)return!1;{let t=e.state.selection.$cursor;if(!t||t.parentOffset>0)return!1;let n=t.blockRange();if(!n||!x(n.parent)||0!==n.startIndex)return!1}{let r=e.state.tr;(function(e){let t=e.selection.$from,n=t.blockRange();if(!n||!x(n.parent)||0!==n.startIndex)return!1;let r=t.node(n.depth-2),o=t.index(n.depth),i=t.index(n.depth-1),a=t.index(n.depth-2),l=r.maybeChild(a-1),s=null==l?void 0:l.lastChild;if(0!==o||0!==i)return!1;if(l&&y(l)&&s&&x(s))return k({listType:l.type,itemType:s.type,tr:e});if(x(r)){let u=t.node(n.depth-3);if(y(u))return k({listType:u.type,itemType:r.type,tr:e})}return!1})(r)&&e.dispatch(r)}{let o=e.state.selection.$cursor;if(!o||o.parentOffset>0)return!1;let i=o.blockRange();if(!i||!x(i.parent)||0!==i.startIndex)return!1;let a=o.index(i.depth),l=o.index(i.depth-1),s=o.index(i.depth-2),u=i.depth-2>=1&&x(o.node(i.depth-2));if(0===a&&0===l&&s<=1&&u){var c;(c=i.parent.type,function(e,t){let{$from:n,$to:r}=e.selection,o=n.blockRange(r,e=>e.childCount>0&&e.firstChild.type==c);return!!o&&(!t||(n.node(o.depth-1).type==c?function(e,t,n,r){let o=e.tr,i=r.end,a=r.$to.end(r.depth);i<a&&(o.step(new f.FC(i-1,a,i,a,new h.p2(h.HY.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new h.Ts(o.doc.resolve(r.$from.pos),o.doc.resolve(a),r.depth));let l=(0,f.k9)(r);if(null==l)return!1;o.lift(r,l);let s=o.mapping.map(i,-1)-1;return(0,f.Mn)(o.doc,s)&&o.join(s),t(o.scrollIntoView()),!0}(e,t,c,o):function(e,t,n){let r=e.tr,o=n.parent;for(let i=n.end,a=n.endIndex-1,l=n.startIndex;a>l;a--)i-=o.child(a).nodeSize,r.delete(i-1,i+1);let s=r.doc.resolve(n.start),u=s.nodeAfter;if(r.mapping.map(n.end)!=n.start+s.nodeAfter.nodeSize)return!1;let c=0==n.startIndex,d=n.endIndex==o.childCount,p=s.node(-1),m=s.index(-1);if(!p.canReplace(m+(c?0:1),m+1,u.content.append(d?h.HY.empty:h.HY.from(o))))return!1;let g=s.pos,v=g+u.nodeSize;return r.step(new f.FC(g-(c?1:0),v+(d?1:0),g+1,v-1,new h.p2((c?h.HY.empty:h.HY.from(o.copy(h.HY.empty))).append(d?h.HY.empty:h.HY.from(o.copy(h.HY.empty))),c?0:1,d?0:1),c?0:1)),t(r.scrollIntoView()),!0}(e,t,o)))})(e.state,e.dispatch)}}return(0,p.al)(e.state,e.dispatch,e),!0}function A({node:e,mark:t,updateDOM:n,updateMark:r}){let o=document.createElement("label");o.contentEditable="false",o.classList.add(u.MQ.LIST_ITEM_MARKER_CONTAINER),o.append(t);let i=document.createElement("div"),a=document.createElement("li");a.classList.add(u.MQ.LIST_ITEM_WITH_CUSTOM_MARKER),a.append(o),a.append(i);let l=o=>o.type===e.type&&(n(e=o,a),r(e,t),!0);return l(e),{dom:a,contentDOM:i,update:l}}var _=({tr:e,dispatch:t})=>!!function(e){let t=M(e.selection);if(!t)return!1;let n=function(e,t){let n=e.node(t.depth-1),r=e.node(t.depth-2);return!!(x(n)&&y(r))&&{parentItem:n,parentList:r}}(e.selection.$from,t);if(!n)return!1;let{parentItem:r,parentList:o}=n;t=function(e,t){let n=t.parent,r=t.parent.child(t.endIndex-1),o=t.end,i=t.$to.end(t.depth);return o<i?(e.step(new f.FC(o-1,i,o,i,new h.p2(h.HY.from(r.type.create(null,n.copy())),1,0),1,!0)),new h.Ts(e.doc.resolve(t.$from.pos),e.doc.resolve(i),t.depth)):t}(e,t),t=function(e,t){let n=t.parent,r=t.parent.child(t.endIndex-1),o=t.end,i=t.$to.end(t.depth-1);return o+1<i?(e.step(new f.FC(o-1,i,o+1,i,new h.p2(h.HY.from(n.type.create(null,r.type.create(null))),2,0),0,!0)),new h.Ts(e.selection.$from,e.selection.$to,t.depth)):t}(e,t),t=function(e,t,n,r){let o=k({listType:n.type,itemType:r.type,tr:e});return o?new h.Ts(e.selection.$from,e.selection.$to,t.depth):t}(e,t,o,r);let i=(0,f.k9)(t);return"number"!=typeof i||(e.lift(t,i),(t=M(e.selection))&&C(e,e.doc.resolve(t.end-2)),!0)}(e)&&(null==t||t(e.scrollIntoView()),!0),T=({tr:e,dispatch:t})=>!!function(e){let{$from:t,$to:n}=e.selection,r=M(e.selection);if(!r)return!1;let o=e.doc.resolve(r.start).node();if(!y(o))return!1;let i=function(e,t,n){let r,o,i,a,l=t.doc;if(n.startIndex>=1){r=e.child(n.startIndex-1),o=e,i=(a=l.resolve(n.start).start(n.depth))+1;for(let s=0;s<n.startIndex-1;s++)i+=o.child(s).nodeSize}else{let u=t.index(n.depth-1);if(!(u>=1))return!1;{let c=t.node(n.depth-1),d=t.start(n.depth-1);if(!y(o=c.child(u-1)))return!1;a=d+1;for(let p=0;p<u-1;p++)a+=c.child(p).nodeSize;if(r=o.child(o.childCount-1),i=a+o.nodeSize-r.nodeSize-1,!x(r))return!1}}return{previousItem:r,previousList:o,previousItemStart:i,previousListStart:a}}(o,t,r);if(!i)return!1;let{previousItem:a,previousList:l,previousItemStart:u}=i,{selectedSlice:c,unselectedSlice:d}=function(e,t,n){let r,o,i=n.start,a=t.depth>=n.depth+2?t.end(n.depth+2):n.end-1,l=n.end;return a+1>=l?(r=e.slice(i,l),o=null):(r=e.slice(i,a),o=e.slice(a+1,l-1)),{selectedSlice:r,unselectedSlice:o}}(e.doc,n,r),p=a.content.append(h.HY.fromArray([o.copy(c.content)])).append(d?d.content:h.HY.empty);e.deleteRange(r.start,r.end);let f=u+a.nodeSize-2,m=a.copy(p);return m.check(),e.replaceRangeWith(u-1,f+1,m),e.setSelection(l===o?s.Bs.between(e.doc.resolve(t.pos),e.doc.resolve(n.pos)):s.Bs.between(e.doc.resolve(t.pos-2),e.doc.resolve(n.pos-2))),!0}(e)&&(null==t||t(e.scrollIntoView()),!0),R=class extends r.nNj{get name(){return"listItemShared"}createKeymap(){let e={Tab:T,"Shift-Tab":_,Backspace:O,"Mod-Backspace":O};if(d.NZ.isMac){let t={"Ctrl-h":e.Backspace,"Alt-Backspace":e["Mod-Backspace"]};return{...e,...t}}return e}createPlugin(){return{appendTransaction(e,t,n){let r=n.tr,o=C(r);return o?r:null}}}},z=class extends r.QR{get name(){return"listItem"}createTags(){return[o.eX.ListItemNode]}createNodeSpec(e,t){return{content:"paragraph block*",defining:!0,draggable:!1,...t,attrs:{...e.defaults(),closed:{default:!1},nested:{default:!1}},parseDOM:[{tag:"li",getAttrs:e.parse,priority:o.xV.Lowest},...t.parseDOM??[]],toDOM(t){let n=e.dom(t);return["li",n,0]}}}createNodeViews(){return this.options.enableCollapsible?(e,t,n)=>{let r=document.createElement("div");return r.classList.add(u.MQ.COLLAPSIBLE_LIST_ITEM_BUTTON),r.contentEditable="false",r.addEventListener("click",()=>{if(r.classList.contains("disabled"))return;let e=n(),o=s.qv.create(t.state.doc,e);return t.dispatch(t.state.tr.setSelection(o)),this.store.commands.toggleListItemClosed(),!0}),A({mark:r,node:e,updateDOM:L,updateMark:I})}:{}}createKeymap(){return{Enter:E(this.type)}}createExtensions(){return[new R]}toggleListItemClosed(e){return({state:{tr:t,selection:n},dispatch:r})=>{if(!(0,d.EG)(n)||n.node.type.name!==this.name)return!1;let{node:o,from:a}=n;return e=(0,i.jn)(e)?e:!o.attrs.closed,null==r||r(t.setNodeMarkup(a,void 0,{...o.attrs,closed:e})),!0}}liftListItemOutOfList(e){return S(e??this.type)}};function L(e,t){e.attrs.closed?t.classList.add(u.MQ.COLLAPSIBLE_LIST_ITEM_CLOSED):t.classList.remove(u.MQ.COLLAPSIBLE_LIST_ITEM_CLOSED)}function I(e,t){e.childCount<=1?t.classList.add("disabled"):t.classList.remove("disabled")}v([(0,r.WDe)()],z.prototype,"toggleListItemClosed",1),v([(0,r.WDe)()],z.prototype,"liftListItemOutOfList",1);var H=class extends r.QR{get name(){return"bulletList"}createTags(){return[o.eX.Block,o.eX.ListContainerNode]}createNodeSpec(e,t){return{content:"listItem+",...t,attrs:e.defaults(),parseDOM:[{tag:"ul",getAttrs:e.parse},...t.parseDOM??[]],toDOM:t=>["ul",e.dom(t),0]}}createNodeViews(){return this.options.enableSpine?(e,t,n)=>{var r;let o=document.createElement("div");o.style.position="relative";let i=n(),a=t.state.doc.resolve(i+1),l=a.node(a.depth-1),c=(null==(r=null==l?void 0:l.type)?void 0:r.name)!=="listItem";if(!c){let d=document.createElement("div");d.contentEditable="false",d.classList.add(u.MQ.LIST_SPINE),d.addEventListener("click",e=>{let r=n(),o=t.state.doc.resolve(r+1),i=o.start(o.depth-1),a=s.qv.create(t.state.doc,i-1);t.dispatch(t.state.tr.setSelection(a)),this.store.commands.toggleListItemClosed(),e.preventDefault(),e.stopPropagation()}),o.append(d)}let p=document.createElement("ul");return p.classList.add(u.MQ.UL_LIST_CONTENT),o.append(p),{dom:o,contentDOM:p}}:{}}createExtensions(){return[new(z=v([(0,r.AOx)({defaultOptions:{enableCollapsible:!1},staticKeys:["enableCollapsible"]})],z))({priority:o.xV.Low,enableCollapsible:this.options.enableSpine})]}toggleBulletList(){return w(this.type,(0,i.fp)(this.store.schema.nodes,"listItem"))}listShortcut(e){return this.toggleBulletList()(e)}createInputRules(){let e=/^\s*([*+-])\s$/;return[(0,l.S0)(e,this.type),new l.VK(e,(e,t,n,r)=>{let o=e.tr;o.deleteRange(n,r);let a=k({listType:this.type,itemType:(0,i.fp)(this.store.schema.nodes,"listItem"),tr:o});return a?o:null})]}};v([(0,r.WDe)({icon:"listUnordered",label:({t:e})=>e(a.it.BULLET_LIST_LABEL)})],H.prototype,"toggleBulletList",1),v([(0,r.IGC)({shortcut:o.vO.BulletList,command:"toggleBulletList"})],H.prototype,"listShortcut",1),H=v([(0,r.AOx)({defaultOptions:{enableSpine:!1},staticKeys:["enableSpine"]})],H);var N=class extends r.QR{get name(){return"orderedList"}createTags(){return[o.eX.Block,o.eX.ListContainerNode]}createNodeSpec(e,t){return{content:"listItem+",...t,attrs:{...e.defaults(),order:{default:1}},parseDOM:[{tag:"ol",getAttrs:t=>(0,d.jd)(t)?{...e.parse(t),order:+(t.getAttribute("start")??1)}:{}},...t.parseDOM??[]],toDOM(t){let n=e.dom(t);return 1===t.attrs.order?["ol",n,0]:["ol",{...n,start:t.attrs.order},0]}}}createExtensions(){return[new z({priority:o.xV.Low})]}toggleOrderedList(){return w(this.type,(0,i.fp)(this.store.schema.nodes,"listItem"))}listShortcut(e){return this.toggleOrderedList()(e)}createInputRules(){let e=/^(\d+)\.\s$/;return[(0,l.S0)(e,this.type,e=>({order:+(0,i.fp)(e,1)}),(e,t)=>t.childCount+t.attrs.order===+(0,i.fp)(e,1)),new l.VK(e,(e,t,n,r)=>{let o=e.tr;o.deleteRange(n,r);let a=k({listType:this.type,itemType:(0,i.fp)(this.store.schema.nodes,"listItem"),tr:o});if(!a)return null;let l=+(0,i.fp)(t,1);if(1!==l){let s=(0,d.Tr)({selection:o.selection,types:this.type});s&&o.setNodeMarkup(s.pos,void 0,{order:l})}return o})]}};v([(0,r.WDe)({icon:"listOrdered",label:({t:e})=>e(a.it.ORDERED_LIST_LABEL)})],N.prototype,"toggleOrderedList",1),v([(0,r.IGC)({shortcut:o.vO.OrderedList,command:"toggleOrderedList"})],N.prototype,"listShortcut",1),N=v([(0,r.AOx)({})],N);var P=class extends r.QR{get name(){return"taskListItem"}createTags(){return[o.eX.ListItemNode]}createNodeSpec(e,t){return{content:"paragraph block*",defining:!0,draggable:!1,...t,attrs:{...e.defaults(),checked:{default:!1}},parseDOM:[{tag:"li[data-task-list-item]",getAttrs(t){let n=!1;return(0,d.jd)(t)&&null!==t.getAttribute("data-checked")&&(n=!0),{checked:n,...e.parse(t)}},priority:o.xV.Medium},...t.parseDOM??[]],toDOM:t=>["li",{...e.dom(t),"data-task-list-item":"","data-checked":t.attrs.checked?"":void 0},0]}}createNodeViews(){return(e,t,n)=>{let r=document.createElement("input");return r.type="checkbox",r.classList.add(u.MQ.LIST_ITEM_CHECKBOX),r.contentEditable="false",r.addEventListener("click",e=>{t.editable||e.preventDefault()}),r.addEventListener("change",()=>{let e=n(),r=t.state.doc.resolve(e+1);this.store.commands.toggleCheckboxChecked({$pos:r})}),r.checked=e.attrs.checked,A({node:e,mark:r,updateDOM:D,updateMark:j})}}createKeymap(){return{Enter:E(this.type)}}createExtensions(){return[new R]}toggleCheckboxChecked(e){let t,n;return"boolean"==typeof e?t=e:e&&(t=e.checked,n=e.$pos),({tr:e,dispatch:r})=>{let o=(0,d.Tr)({selection:n??e.selection.$from,types:this.type});if(!o)return!1;let{node:i,pos:a}=o,l={...i.attrs,checked:t??!i.attrs.checked};return null==r||r(e.setNodeMarkup(a,void 0,l)),!0}}createInputRules(){let e=/^\s*(\[( ?|x|X)]\s)$/;return[(0,l.S0)(e,this.type,e=>({checked:["x","X"].includes((0,d.FI)(e,2))})),new l.VK(e,(e,t,n,r)=>{let o=e.tr;o.deleteRange(n,r);let a=k({listType:(0,i.fp)(this.store.schema.nodes,"taskList"),itemType:this.type,tr:o});if(!a)return null;let l=["x","X"].includes((0,d.FI)(t,2));if(l){let s=(0,d.Tr)({selection:o.selection,types:this.type});s&&o.setNodeMarkup(s.pos,void 0,{checked:l})}return o})]}};function D(e,t){e.attrs.checked?t.setAttribute("data-checked",""):t.removeAttribute("data-checked"),t.setAttribute("data-task-list-item","")}function j(e,t){t.checked=!!e.attrs.checked}v([(0,r.WDe)()],P.prototype,"toggleCheckboxChecked",1);var B=class extends r.QR{get name(){return"taskList"}createTags(){return[o.eX.Block,o.eX.ListContainerNode]}createNodeSpec(e,t){return{content:"taskListItem+",...t,attrs:e.defaults(),parseDOM:[{tag:"ul[data-task-list]",getAttrs:e.parse,priority:o.xV.Medium},...t.parseDOM??[]],toDOM:t=>["ul",{...e.dom(t),"data-task-list":""},0]}}createExtensions(){return[new P({})]}toggleTaskList(){return w(this.type,(0,i.fp)(this.store.schema.nodes,"taskListItem"))}listShortcut(e){return this.toggleTaskList()(e)}};v([(0,r.WDe)({icon:"checkboxMultipleLine",label:({t:e})=>e(a.it.TASK_LIST_LABEL)})],B.prototype,"toggleTaskList",1),v([(0,r.IGC)({shortcut:o.vO.TaskList,command:"toggleTaskList"})],B.prototype,"listShortcut",1)},31055:function(e,t,n){"use strict";n.d(t,{D:function(){return f}});var r=n(50697),o=n(38756),i=n(71688),a=n(27343),l=n(71071),s=n(86883),u=n(41466),c=n(21251),d=Object.defineProperty,p=Object.getOwnPropertyDescriptor,h=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?p(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&d(t,n,i),i},f=class extends r.QR{get name(){return"mentionAtom"}createTags(){return[o.eX.InlineNode,o.eX.Behavior]}createNodeSpec(e,t){let n="data-mention-atom-id",r="data-mention-atom-name";return{inline:!0,marks:"",selectable:this.options.selectable,draggable:this.options.draggable,atom:!0,...t,attrs:{...e.defaults(),id:{},label:{},name:{}},parseDOM:[...this.options.matchers.map(t=>({tag:`${t.mentionTag??this.options.mentionTag}[${n}]`,getAttrs(t){if(!(0,i.jd)(t))return!1;let o=t.getAttribute(n),a=t.getAttribute(r),l=t.textContent;return{...e.parse(t),id:o,label:l,name:a}}})),...t.parseDOM??[]],toDOM:t=>{let{label:o,id:l,name:s}=(0,i.Kh)(t.attrs,e),u=this.options.matchers.find(e=>e.name===s),c=u?u.mentionClassName??m.mentionClassName:m.mentionClassName,d={...e.dom(t),class:s?`${c} ${c}-${(0,a.GL)(s)}`:c,[n]:l,[r]:s};return[(null==u?void 0:u.mentionTag)??this.options.mentionTag,d,o]}}}createMentionAtom(e,t){var n,r;let{name:a,range:s}=e,u=this.options.matchers.some(e=>a===e.name);(0,l.kG)(u,{code:o.mA.EXTENSION,message:`Invalid name '${a}' provided when creating a mention. Please ensure you only use names that were configured on the matchers when creating the \`MentionAtomExtension\`.`});let{appendText:c,...d}=t;return(0,i.lp)({type:this.type,appendText:(n=c,r=this.options.appendText,(0,l.HD)(n)?n:(0,l.HD)(r)?r:m.appendText),attrs:{name:a,...d},range:s})}createEventHandlers(){return{click:(e,t)=>{if(!t.direct)return;let n=t.getNode(this.type);if(n)return this.options.onClick(e,n)}}}createSuggesters(){let e=s(this.options,["invalidMarks","invalidNodes","isValidPosition","validMarks","validNodes","suggestTag","disableDecorations","appendText"]);return this.options.matchers.map(t=>({...m,...e,...t,onChange:e=>{let{name:t,range:n}=e,{createMentionAtom:r}=this.store.commands;this.options.onChange(e,function(e){r({name:t,range:n},e)})}}))}};h([(0,r.WDe)()],f.prototype,"createMentionAtom",1),f=h([(0,r.AOx)({defaultOptions:{selectable:!0,draggable:!1,mentionTag:"span",matchers:[],appendText:" ",suggestTag:"span",disableDecorations:!1,invalidMarks:[],invalidNodes:[],isValidPosition:()=>!0,validMarks:null,validNodes:null},handlerKeyOptions:{onClick:{earlyReturnValue:!0}},handlerKeys:["onChange","onClick"],staticKeys:["selectable","draggable","mentionTag","matchers"]})],f);var m={...s(u.ZF,["startOfLine","supportedCharacters","validPrefixCharacters","invalidPrefixCharacters"]),appendText:"",matchOffset:1,suggestClassName:c.T4.SUGGEST_ATOM,mentionClassName:c.T4.MENTION_ATOM}},66925:function(e,t,n){"use strict";n.d(t,{X:function(){return c}});var r=n(50697),o=n(71688),i=n(38756),a=n(52780),l=n(21251),s=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=class extends r.nNj{get name(){return"placeholder"}createAttributes(){return{"aria-placeholder":this.options.placeholder}}createPlugin(){return{state:{init:(e,t)=>({...this.options,empty:(0,o.$q)(t.doc,{ignoreAttributes:!0})}),apply:(e,t,n,r)=>(function(e){let{pluginState:t,extension:n,tr:r,state:i}=e;return r.docChanged?{...n.options,empty:(0,o.$q)(i.doc)}:t})({pluginState:t,tr:e,extension:this,state:r})},props:{decorations:e=>(function(e){let{extension:t,state:n}=e,{empty:r}=t.pluginKey.getState(n),{emptyNodeClass:o,placeholder:i}=t.options;if(!r)return null;let l=[];return n.doc.descendants((e,t)=>{let n=a.p.node(t,t+e.nodeSize,{class:o,"data-placeholder":i});l.push(n)}),a.EH.create(n.doc,l)})({state:e,extension:this})}}}onSetOptions(e){let{changes:t}=e;t.placeholder.changed&&this.store.phase>=i.RC.EditorView&&this.store.updateAttributes()}};c=((e,t,n,r)=>{for(var o,i=r>1?void 0:r?u(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&s(t,n,i),i})([(0,r.AOx)({defaultOptions:{emptyNodeClass:l._x.IS_EMPTY,placeholder:""}})],c)},10501:function(e,t,n){"use strict";n.d(t,{$7:function(){return Y},Cp:function(){return U},SY:function(){return N},Xf:function(){return _},kl:function(){return T},oI:function(){return H},sX:function(){return A},xv:function(){return K}});var r,o,i,a,l,s,u,c,d,p=n(71688),h=n(20242),f=n(71071),m=n(38756),g=n(50697),v=n(79899),b=n(52780),y=n(21251),x=Object.defineProperty,w=Object.getOwnPropertyDescriptor,E=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?w(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&x(t,n,i),i},k=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},C=(e,t,n)=>(k(e,t,"read from private field"),n?n.call(e):t.get(e)),S=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},M=(e,t,n,r)=>(k(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),O=class{constructor(e){S(this,r,(0,h.i)()),S(this,o,[]),S(this,i,new Map),S(this,a,[]),S(this,l,!1),S(this,s,void 0),S(this,u,void 0),S(this,c,void 0),S(this,d,void 0),this.addListener=(e,t)=>C(this,r).on(e,t),M(this,s,e),M(this,u,e.getActive),M(this,d,e.getPosition),M(this,c,e.getID),this.hasChanged=e.hasChanged,this.events=e.events??["state","scroll"]}static create(e){return new O(e)}static fromPositioner(e,t){return O.create({...e.basePositioner,...t})}get basePositioner(){return{getActive:C(this,u),getPosition:C(this,d),hasChanged:this.hasChanged,events:this.events,getID:C(this,c)}}onActiveChanged(e){this.recentUpdate=e;let t=C(this,u).call(this,e);M(this,o,t),M(this,i,new Map),M(this,l,!1),M(this,a,[]);let n=[];for(let[s,c]of t.entries()){let d=this.getID(c,s);C(this,a).push(d),n.push({setElement:t=>this.addProps({...e,data:c,element:t},s),id:d,data:c})}C(this,r).emit("update",n)}getID(e,t){var n;return(null==(n=C(this,c))?void 0:n.call(this,e,t))??t.toString()}addProps(e,t){if(C(this,l)||(C(this,i).set(t,e),C(this,i).size<C(this,o).length))return;let n=[];for(let s of C(this,o).keys()){let u=C(this,i).get(s);(0,f.kG)(u,{code:m.mA.INTERNAL,message:"Something went wrong when retrieving the parameters"});let c=C(this,a)[s];if(!c)return;n.push({position:C(this,d).call(this,u),element:u.element,id:c})}C(this,r).emit("done",n)}clone(e){return O.create({...C(this,s),...(0,f.mf)(e)?e(C(this,s)):e})}active(e){let t=(0,f.mf)(e)?e:()=>e;return this.clone(e=>({getActive:n=>e.getActive(n).filter(t)}))}},A=O;function _(e){let{tr:t,state:n,previousState:r}=e;return!!(!r||t&&function(e,t=z){let{key:n}=(null==e?void 0:e.getMeta(R))??{};return n===t}(t))||(t?(0,p.yZ)(t):!n.doc.eq(r.doc)||!n.selection.eq(r.selection))}function T(e,t,n={}){let r=t.getBoundingClientRect(),{accountForPadding:o=!1}=n,i=0,a=0,l=0,s=0;if((0,p.jd)(t)&&o){let u=Number.parseFloat((0,p.C2)(t,"padding-left").replace("px","")),c=Number.parseFloat((0,p.C2)(t,"padding-right").replace("px","")),d=Number.parseFloat((0,p.C2)(t,"padding-top").replace("px","")),h=Number.parseFloat((0,p.C2)(t,"padding-bottom").replace("px","")),m=Number.parseFloat((0,p.C2)(t,"border-left").replace("px","")),g=Number.parseFloat((0,p.C2)(t,"border-right").replace("px","")),v=Number.parseFloat((0,p.C2)(t,"border-top").replace("px","")),b=Number.parseFloat((0,p.C2)(t,"border-bottom").replace("px","")),y=t.offsetWidth-t.clientWidth,x=t.offsetHeight-t.clientHeight;i+=u+m+("rtl"===t.dir?y:0),a+=c+g+("rtl"===t.dir?0:y),l+=d+v,s+=h+b+x}let w=new DOMRect(r.left+i,r.top+l,r.width-a,r.height-s);for(let[E,k]of[[e.top,e.left],[e.top,e.right],[e.bottom,e.left],[e.bottom,e.right]])if((0,f.uh)(E,w.top,w.bottom)&&(0,f.uh)(k,w.left,w.right))return!0;return!1}r=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,l=new WeakMap,s=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap,A.EMPTY=[];var R="positionerUpdate",z="__all_positioners__",L={y:-999999,x:-999999,width:0,height:0},I={...L,left:-999999,top:-999999,bottom:-999999,right:-999999},H={...L,rect:{...I,toJSON:()=>I},visible:!1},N=A.create({hasChanged:_,getActive(e){let{state:t}=e;if(!(0,p.Ab)(t)||t.selection.$anchor.depth>2)return A.EMPTY;let n=(0,p.Kk)({predicate:e=>e.type.isBlock,selection:t});return n?[n]:A.EMPTY},getPosition(e){let{view:t,data:n}=e,r=t.nodeDOM(n.pos);if(!(0,p.jd)(r))return H;let o=r.getBoundingClientRect(),i=t.dom.getBoundingClientRect(),a=o.height,l=o.width,s=t.dom.scrollLeft+o.left-i.left,u=t.dom.scrollTop+o.top-i.top,c=T(o,t.dom);return{y:u,x:s,height:a,width:l,rect:o,visible:c}}}),P=N.clone(({getActive:e})=>({getActive(t){let[n]=e(t);return n&&(0,p.mp)(n.node)&&n.node.type===(0,p.JN)(t.state.schema)?[n]:A.EMPTY}})),D=P.clone(({getPosition:e})=>({getPosition:t=>({...e(t),width:1})})),j=P.clone(({getPosition:e})=>({getPosition(t){let{width:n,x:r,y:o,height:i}=e(t);return{...e(t),width:1,x:n+r,rect:new DOMRect(n+r,o,1,i)}}}));function B(e){return A.create({hasChanged:_,getActive(t){let{state:n,view:r}=t;if(!e(n)||!(0,p.hT)(n.selection))return A.EMPTY;try{let{head:o,anchor:i}=n.selection;return[{from:r.coordsAtPos(i),to:r.coordsAtPos(o)}]}catch{return A.EMPTY}},getPosition(e){let{element:t,data:n,view:r}=e,{from:o,to:i}=n,a=t.offsetParent??r.dom,l=a.getBoundingClientRect(),s=Math.abs(i.bottom-o.top),u=s>o.bottom-o.top,c=Math.min(o.left,i.left),d=Math.min(o.top,i.top),p=a.scrollLeft+(u?i.left-l.left:c-l.left),h=a.scrollTop+d-l.top,f=u?1:Math.abs(o.left-i.right),m=new DOMRect(u?i.left:c,d,f,s),g=T(m,r.dom);return{rect:m,y:h,x:p,height:s,width:f,visible:g}}})}var F=B(e=>!e.selection.empty),V=B(e=>e.selection.empty),$=B(()=>!0),W=F.clone(()=>({getActive(e){let{state:t,view:n}=e;if(!t.selection.empty)return A.EMPTY;let r=(0,p.JM)(t);if(!r)return A.EMPTY;try{return[{from:n.coordsAtPos(r.from),to:n.coordsAtPos(r.to)}]}catch{return A.EMPTY}}}));function U(e){let{type:t,all:n=!1,onlyVisible:r=!1}=e;return A.create({hasChanged:_,getActive(e){let{state:o,view:i}=e,a=(0,p.b0)(n?"all":o.selection,o.doc);try{let l=(0,p.x4)(a,t).map(e=>{let{from:t,to:n}=e,r={from:i.coordsAtPos(t),to:i.coordsAtPos(n)},o=T(Z(r.from),i.dom)||T(Z(r.to),i.dom);return{...e,visible:o,cursor:r}});return r?l.filter(e=>e.visible):l}catch{return A.EMPTY}},getPosition(e){let{element:t,data:n,view:r}=e,{cursor:o,visible:i}=n,{from:a,to:l}=o,s=t.offsetParent??r.dom,u=s.getBoundingClientRect(),c=Math.abs(l.bottom-a.top),d=c>a.bottom-a.top,p=Math.min(a.left,l.left),h=Math.min(a.top,l.top),f=s.scrollLeft+(d?l.left-u.left:p-u.left),m=s.scrollTop+h-u.top,g=d?1:Math.abs(a.left-l.right),v=new DOMRect(d?l.left:p,h,g,c);return{rect:v,y:m,x:f,height:c,width:g,visible:i}}})}function Z(e){return new DOMRect(e.left,e.top,1,e.top-e.bottom)}var G={selection:F,cursor:V,always:$,block:N,emptyBlock:P,emptyBlockStart:D,emptyBlockEnd:j,nearestWord:W},K=class extends g.nNj{constructor(){super(...arguments),this.positioners=[],this.onAddCustomHandler=({positioner:e})=>{if(e)return this.positioners=[...this.positioners,e],this.store.commands.forceUpdate(),()=>{this.positioners=this.positioners.filter(t=>t!==e)}}}get name(){return"positioner"}createAttributes(){return{class:y.bu.EDITOR}}init(){this.onScroll=(0,v.D)(this.options.scrollDebounce,this.onScroll.bind(this))}createEventHandlers(){return{scroll:()=>(this.onScroll(),!1),hover:(e,t)=>(this.positioner(this.getBaseProps("hover",{hover:t})),!1),contextmenu:(e,t)=>(this.positioner(this.getBaseProps("contextmenu",{contextmenu:t})),!1)}}onStateUpdate(e){this.positioner({...e,previousState:e.firstUpdate?void 0:e.previousState,event:"state",helpers:this.store.helpers})}createDecorations(e){if(this.element,this.element=this.createElement(),!this.element.hasChildNodes())return b.EH.empty;let t=b.p.widget(0,this.element,{key:"positioner-widget",side:-1,stopEvent:()=>!0});return b.EH.create(e.doc,[t])}forceUpdatePositioners(e=z){return({tr:t,dispatch:n})=>(null==n||n(t.setMeta(R,{key:e})),!0)}getPositionerWidget(){return this.element??(this.element=this.createElement())}createElement(){let e=document.createElement("span");return e.dataset.id="remirror-positioner-widget",e.setAttribute("role","presentation"),e}triggerPositioner(e,t){e.hasChanged(t)&&e.onActiveChanged({...t,view:this.store.view})}positioner(e){for(let t of this.positioners){let n=!t.events.includes(e.event);!n&&this.triggerPositioner(t,e)}}getBaseProps(e,t){let n=this.store.getState(),r=this.store.previousState;return{helpers:this.store.helpers,event:e,firstUpdate:!1,previousState:r,state:n,...t}}onScroll(){this.positioner(this.getBaseProps("scroll",{scroll:{scrollTop:this.store.view.dom.scrollTop}}))}};function Y(e){return(0,f.HD)(e)?G[e].clone():(0,f.mf)(e)?e().clone():e.clone()}E([(0,g.WDe)()],K.prototype,"forceUpdatePositioners",1),E([(0,g._y)()],K.prototype,"getPositionerWidget",1),K=E([(0,g.AOx)({defaultOptions:{scrollDebounce:100},customHandlerKeys:["positioner"],staticKeys:["scrollDebounce"]})],K)},11397:function(e,t,n){"use strict";n.d(t,{vI:function(){return tF}}),n(2784);var r,o,i=n(71688),a=n(10501),l=n(27191),s=n(30764),u=n(52780),c=n(17890),d=n(26151);if("undefined"!=typeof WeakMap){let p=new WeakMap;r=e=>p.get(e),o=(e,t)=>(p.set(e,t),t)}else{let h=[],f=0;r=e=>{for(let t=0;t<h.length;t+=2)if(h[t]==e)return h[t+1]},o=(e,t)=>(10==f&&(f=0),h[f++]=e,h[f++]=t)}var m=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){let n=this.map[t];if(n!=e)continue;let r=t%this.width,o=t/this.width|0,i=r+1,a=o+1;for(let l=1;i<this.width&&this.map[t+l]==n;l++)i++;for(let s=1;a<this.height&&this.map[t+this.width*s]==n;s++)a++;return{left:r,top:o,right:i,bottom:a}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){let{left:r,right:o,top:i,bottom:a}=this.findCell(e);return"horiz"==t?(n<0?0==r:o==this.width)?null:this.map[i*this.width+(n<0?r-1:o)]:(n<0?0==i:a==this.height)?null:this.map[r+this.width*(n<0?i-1:a)]}rectBetween(e,t){let{left:n,right:r,top:o,bottom:i}=this.findCell(e),{left:a,right:l,top:s,bottom:u}=this.findCell(t);return{left:Math.min(n,a),top:Math.min(o,s),right:Math.max(r,l),bottom:Math.max(i,u)}}cellsInRect(e){let t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let o=e.left;o<e.right;o++){let i=r*this.width+o,a=this.map[i];if(!n[a]){if(n[a]=!0,o==e.left&&o&&this.map[i-1]==a||r==e.top&&r&&this.map[i-this.width]==a)continue;t.push(a)}}return t}positionAt(e,t,n){for(let r=0,o=0;;r++){let i=o+n.child(r).nodeSize;if(r==e){let a=t+e*this.width,l=(e+1)*this.width;for(;a<l&&this.map[a]<o;)a++;return a==l?i-1:this.map[a]}o=i}}static get(e){return r(e)||o(e,function(e){if("table"!=e.type.spec.tableRole)throw RangeError("Not a table node: "+e.type.name);let t=function(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){let o=e.child(r),i=0;if(n)for(let a=0;a<r;a++){let l=e.child(a);for(let s=0;s<l.childCount;s++){let u=l.child(s);a+u.attrs.rowspan>r&&(i+=u.attrs.colspan)}}for(let c=0;c<o.childCount;c++){let d=o.child(c);i+=d.attrs.colspan,d.attrs.rowspan>1&&(n=!0)}-1==t?t=i:t!=i&&(t=Math.max(t,i))}return t}(e),n=e.childCount,r=[],o=0,i=null,a=[];for(let l=0,s=t*n;l<s;l++)r[l]=0;for(let u=0,c=0;u<n;u++){let d=e.child(u);c++;for(let p=0;;p++){for(;o<r.length&&0!=r[o];)o++;if(p==d.childCount)break;let h=d.child(p),{colspan:f,rowspan:v,colwidth:b}=h.attrs;for(let y=0;y<v;y++){if(y+u>=n){(i||(i=[])).push({type:"overlong_rowspan",pos:c,n:v-y});break}let x=o+y*t;for(let w=0;w<f;w++){0==r[x+w]?r[x+w]=c:(i||(i=[])).push({type:"collision",row:u,pos:c,n:f-w});let E=b&&b[w];if(E){let k=(x+w)%t*2,C=a[k];null==C||C!=E&&1==a[k+1]?(a[k]=E,a[k+1]=1):C==E&&a[k+1]++}}}o+=f,c+=h.nodeSize}let S=(u+1)*t,M=0;for(;o<S;)0==r[o++]&&M++;M&&(i||(i=[])).push({type:"missing",row:u,n:M}),c++}let O=new m(t,n,r,i),A=!1;for(let _=0;!A&&_<a.length;_+=2)null!=a[_]&&a[_+1]<n&&(A=!0);return A&&function(e,t,n){e.problems||(e.problems=[]);let r={};for(let o=0;o<e.map.length;o++){let i=e.map[o];if(r[i])continue;r[i]=!0;let a=n.nodeAt(i);if(!a)throw RangeError(`No cell with offset ${i} found`);let l=null,s=a.attrs;for(let u=0;u<s.colspan;u++){let c=(o+u)%e.width,d=t[2*c];null==d||s.colwidth&&s.colwidth[u]==d||((l||(l=g(s)))[u]=d)}l&&e.problems.unshift({type:"colwidth mismatch",pos:i,colwidth:l})}}(O,a,e),O}(e))}};function g(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function v(e){let t=e.cached.tableNodeTypes;if(!t)for(let n in t=e.cached.tableNodeTypes={},e.nodes){let r=e.nodes[n],o=r.spec.tableRole;o&&(t[o]=r)}return t}var b=new l.H$("selectingCells");function y(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function x(e){let t=e.selection.$head;for(let n=t.depth;n>0;n--)if("row"==t.node(n).type.spec.tableRole)return!0;return!1}function w(e){let t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;let n=y(t.$head)||function(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(let o=e.nodeBefore,i=e.pos;o;o=o.lastChild,i--){let a=o.type.spec.tableRole;if("cell"==a||"header_cell"==a)return e.doc.resolve(i-o.nodeSize)}}(t.$head);if(n)return n;throw RangeError(`No cell found around position ${t.head}`)}function E(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function k(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function C(e,t,n){let r=e.node(-1),o=m.get(r),i=e.start(-1),a=o.nextCell(e.pos-i,t,n);return null==a?null:e.node(0).resolve(i+a)}function S(e,t,n=1){let r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}function M(e,t,n=1){let r={...e,colspan:e.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let o=0;o<n;o++)r.colwidth.splice(t,0,0)}return r}var O=class extends l.Y1{constructor(e,t=e){let n=e.node(-1),r=m.get(n),o=e.start(-1),i=r.rectBetween(e.pos-o,t.pos-o),a=e.node(0),s=r.cellsInRect(i).filter(e=>e!=t.pos-o);s.unshift(t.pos-o);let u=s.map(e=>{let t=n.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let r=o+e+1;return new l.xm(a.resolve(r),a.resolve(r+t.content.size))});super(u[0].$from,u[0].$to,u),this.$anchorCell=e,this.$headCell=t}map(e,t){let n=e.resolve(t.map(this.$anchorCell.pos)),r=e.resolve(t.map(this.$headCell.pos));if(E(n)&&E(r)&&k(n,r)){let o=this.$anchorCell.node(-1)!=n.node(-1);return o&&this.isRowSelection()?O.rowSelection(n,r):o&&this.isColSelection()?O.colSelection(n,r):new O(n,r)}return l.Bs.between(n,r)}content(){let e=this.$anchorCell.node(-1),t=m.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),o={},i=[];for(let a=r.top;a<r.bottom;a++){let l=[];for(let u=a*t.width+r.left,c=r.left;c<r.right;c++,u++){let d=t.map[u];if(o[d])continue;o[d]=!0;let p=t.findCell(d),h=e.nodeAt(d);if(!h)throw RangeError(`No cell with offset ${d} found`);let f=r.left-p.left,g=p.right-r.right;if(f>0||g>0){let v=h.attrs;if(f>0&&(v=S(v,0,f)),g>0&&(v=S(v,v.colspan-g,g)),p.left<r.left){if(!(h=h.type.createAndFill(v)))throw RangeError(`Could not create cell with attrs ${JSON.stringify(v)}`)}else h=h.type.create(v,h.content)}if(p.top<r.top||p.bottom>r.bottom){let b={...h.attrs,rowspan:Math.min(p.bottom,r.bottom)-Math.max(p.top,r.top)};h=p.top<r.top?h.type.createAndFill(b):h.type.create(b,h.content)}l.push(h)}i.push(e.child(a).copy(s.HY.from(l)))}let y=this.isColSelection()&&this.isRowSelection()?e:i;return new s.p2(s.HY.from(y),1,1)}replace(e,t=s.p2.empty){let n=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:i,$to:a}=r[o],u=e.mapping.slice(n);e.replace(u.map(i.pos),u.map(a.pos),o?s.p2.empty:t)}let c=l.Y1.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);c&&e.setSelection(c)}replaceWith(e,t){this.replace(e,new s.p2(s.HY.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=m.get(t),r=this.$anchorCell.start(-1),o=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let i=0;i<o.length;i++)e(t.nodeAt(o[i]),r+o[i])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;let n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(e,t=e){let n=e.node(-1),r=m.get(n),o=e.start(-1),i=r.findCell(e.pos-o),a=r.findCell(t.pos-o),l=e.node(0);return i.top<=a.top?(i.top>0&&(e=l.resolve(o+r.map[i.left])),a.bottom<r.height&&(t=l.resolve(o+r.map[r.width*(r.height-1)+a.right-1]))):(a.top>0&&(t=l.resolve(o+r.map[a.left])),i.bottom<r.height&&(e=l.resolve(o+r.map[r.width*(r.height-1)+i.right-1]))),new O(e,t)}isRowSelection(){let e=this.$anchorCell.node(-1),t=m.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),o=t.colCount(this.$headCell.pos-n);if(Math.min(r,o)>0)return!1;let i=r+this.$anchorCell.nodeAfter.attrs.colspan,a=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(i,a)==t.width}eq(e){return e instanceof O&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,t=e){let n=e.node(-1),r=m.get(n),o=e.start(-1),i=r.findCell(e.pos-o),a=r.findCell(t.pos-o),l=e.node(0);return i.left<=a.left?(i.left>0&&(e=l.resolve(o+r.map[i.top*r.width])),a.right<r.width&&(t=l.resolve(o+r.map[r.width*(a.top+1)-1]))):(a.left>0&&(t=l.resolve(o+r.map[a.top*r.width])),i.right<r.width&&(e=l.resolve(o+r.map[r.width*(i.top+1)-1]))),new O(e,t)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,t){return new O(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){return new O(e.resolve(t),e.resolve(n))}getBookmark(){return new A(this.$anchorCell.pos,this.$headCell.pos)}};O.prototype.visible=!1,l.Y1.jsonID("cell",O);var A=class{constructor(e,t){this.anchor=e,this.head=t}map(e){return new A(e.map(this.anchor),e.map(this.head))}resolve(e){let t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&k(t,n)?new O(t,n):l.Y1.near(n,1)}};function _(e){if(!(e.selection instanceof O))return null;let t=[];return e.selection.forEachCell((e,n)=>{t.push(u.p.node(n,n+e.nodeSize,{class:"selectedCell"}))}),u.EH.create(e.doc,t)}var T=new l.H$("fix-tables");function R(e,t){let n,r=(t,r)=>{"table"==t.type.spec.tableRole&&(n=function(e,t,n,r){let o=m.get(t);if(!o.problems)return r;r||(r=e.tr);let i=[];for(let a=0;a<o.height;a++)i.push(0);for(let l=0;l<o.problems.length;l++){let s=o.problems[l];if("collision"==s.type){let u=t.nodeAt(s.pos);if(!u)continue;let c=u.attrs;for(let d=0;d<c.rowspan;d++)i[s.row+d]+=s.n;r.setNodeMarkup(r.mapping.map(n+1+s.pos),null,S(c,c.colspan-s.n,s.n))}else if("missing"==s.type)i[s.row]+=s.n;else if("overlong_rowspan"==s.type){let p=t.nodeAt(s.pos);if(!p)continue;r.setNodeMarkup(r.mapping.map(n+1+s.pos),null,{...p.attrs,rowspan:p.attrs.rowspan-s.n})}else if("colwidth mismatch"==s.type){let h=t.nodeAt(s.pos);if(!h)continue;r.setNodeMarkup(r.mapping.map(n+1+s.pos),null,{...h.attrs,colwidth:s.colwidth})}}let f,g;for(let b=0;b<i.length;b++)i[b]&&(null==f&&(f=b),g=b);for(let y=0,x=n+1;y<o.height;y++){let w=t.child(y),E=x+w.nodeSize,k=i[y];if(k>0){let C="cell";w.firstChild&&(C=w.firstChild.type.spec.tableRole);let M=[];for(let O=0;O<k;O++){let A=v(e.schema)[C].createAndFill();A&&M.push(A)}let _=(0==y||f==y-1)&&g==y?x+1:E-1;r.insert(r.mapping.map(_),M)}x=E}return r.setMeta(T,{fixTables:!0})}(e,t,r,n))};return t?t.doc!=e.doc&&function e(t,n,r,o){let i=t.childCount,a=n.childCount;outer:for(let l=0,s=0;l<a;l++){let u=n.child(l);for(let c=s,d=Math.min(i,l+3);c<d;c++)if(t.child(c)==u){s=c+1,r+=u.nodeSize;continue outer}o(u,r),s<i&&t.child(s).sameMarkup(u)?e(t.child(s),u,r+1,o):u.nodesBetween(0,u.content.size,o,r+1),r+=u.nodeSize}}(t.doc,e.doc,0,r):e.doc.descendants(r),n}function z(e,t){let n=e.createAndFill(),r=new d.wx(n).replace(0,n.content.size,t);return r.doc}function L(e,t,n,r,o,i,a,l){if(0==a||a==t.height)return!1;let s=!1;for(let u=o;u<i;u++){let c=a*t.width+u,d=t.map[c];if(t.map[c-t.width]==d){s=!0;let p=n.nodeAt(d),{top:h,left:f}=t.findCell(d);e.setNodeMarkup(e.mapping.slice(l).map(d+r),null,{...p.attrs,rowspan:a-h}),e.insert(e.mapping.slice(l).map(t.positionAt(a,f,n)),p.type.createAndFill({...p.attrs,rowspan:h+p.attrs.rowspan-a})),u+=p.attrs.colspan-1}}return s}function I(e,t,n,r,o,i,a,l){if(0==a||a==t.width)return!1;let s=!1;for(let u=o;u<i;u++){let c=u*t.width+a,d=t.map[c];if(t.map[c-1]==d){s=!0;let p=n.nodeAt(d),h=t.colCount(d),f=e.mapping.slice(l).map(d+r);e.setNodeMarkup(f,null,S(p.attrs,a-h,p.attrs.colspan-(a-h))),e.insert(f+p.nodeSize,p.type.createAndFill(S(p.attrs,0,a-h))),u+=p.attrs.rowspan-1}}return s}function H(e,t,n,r,o){let i=n?e.doc.nodeAt(n-1):e.doc;if(!i)throw Error("No table found");let a=m.get(i),{top:l,left:u}=r,c=u+o.width,d=l+o.height,p=e.tr,h=0;function f(){if(!(i=n?p.doc.nodeAt(n-1):p.doc))throw Error("No table found");a=m.get(i),h=p.mapping.maps.length}(function(e,t,n,r,o,i,a){let l=e.doc.type.schema,u=v(l),c,d;if(o>t.width)for(let p=0,h=0;p<t.height;p++){let f=n.child(p);h+=f.nodeSize;let m=[],g;g=null==f.lastChild||f.lastChild.type==u.cell?c||(c=u.cell.createAndFill()):d||(d=u.header_cell.createAndFill());for(let b=t.width;b<o;b++)m.push(g);e.insert(e.mapping.slice(a).map(h-1+r),m)}if(i>t.height){let y=[];for(let x=0,w=(t.height-1)*t.width;x<Math.max(t.width,o);x++){let E=!(x>=t.width)&&n.nodeAt(t.map[w+x]).type==u.header_cell;y.push(E?d||(d=u.header_cell.createAndFill()):c||(c=u.cell.createAndFill()))}let k=u.row.create(null,s.HY.from(y)),C=[];for(let S=t.height;S<i;S++)C.push(k);e.insert(e.mapping.slice(a).map(r+n.nodeSize-2),C)}return!!(c||d)})(p,a,i,n,c,d,h)&&f(),L(p,a,i,n,u,c,l,h)&&f(),L(p,a,i,n,u,c,d,h)&&f(),I(p,a,i,n,l,d,u,h)&&f(),I(p,a,i,n,l,d,c,h)&&f();for(let g=l;g<d;g++){let b=a.positionAt(g,u,i),y=a.positionAt(g,c,i);p.replace(p.mapping.slice(h).map(b+n),p.mapping.slice(h).map(y+n),new s.p2(o.rows[g-l],0,0))}f(),p.setSelection(new O(p.doc.resolve(n+a.positionAt(l,u,i)),p.doc.resolve(n+a.positionAt(d-1,c-1,i)))),t(p)}var N=(0,c.$)({ArrowLeft:D("horiz",-1),ArrowRight:D("horiz",1),ArrowUp:D("vert",-1),ArrowDown:D("vert",1),"Shift-ArrowLeft":j("horiz",-1),"Shift-ArrowRight":j("horiz",1),"Shift-ArrowUp":j("vert",-1),"Shift-ArrowDown":j("vert",1),Backspace:B,"Mod-Backspace":B,Delete:B,"Mod-Delete":B});function P(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function D(e,t){return(n,r,o)=>{if(!o)return!1;let i=n.selection;if(i instanceof O)return P(n,r,l.Y1.near(i.$headCell,t));if("horiz"!=e&&!i.empty)return!1;let a=W(o,e,t);if(null==a)return!1;if("horiz"==e)return P(n,r,l.Y1.near(n.doc.resolve(i.head+t),t));{let s=n.doc.resolve(a),u=C(s,e,t),c;return c=u?l.Y1.near(u,1):t<0?l.Y1.near(n.doc.resolve(s.before(-1)),-1):l.Y1.near(n.doc.resolve(s.after(-1)),1),P(n,r,c)}}}function j(e,t){return(n,r,o)=>{if(!o)return!1;let i=n.selection,a;if(i instanceof O)a=i;else{let l=W(o,e,t);if(null==l)return!1;a=new O(n.doc.resolve(l))}let s=C(a.$headCell,e,t);return!!s&&P(n,r,new O(a.$anchorCell,s))}}function B(e,t){let n=e.selection;if(!(n instanceof O))return!1;if(t){let r=e.tr,o=v(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(o)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new s.p2(o,0,0))}),r.docChanged&&t(r)}return!0}function F(e,t){let n=e.state.doc,r=y(n.resolve(t));return!!r&&(e.dispatch(e.state.tr.setSelection(new O(r))),!0)}function V(e,t,n){if(!x(e.state))return!1;let r=function(e){if(!e.size)return null;let{content:t,openStart:n,openEnd:r}=e;for(;1==t.childCount&&(n>0&&r>0||"table"==t.child(0).type.spec.tableRole);)n--,r--,t=t.child(0).content;let o=t.child(0),i=o.type.spec.tableRole,a=o.type.schema,l=[];if("row"==i)for(let u=0;u<t.childCount;u++){let c=t.child(u).content,d=u?0:Math.max(0,n-1),p=u<t.childCount-1?0:Math.max(0,r-1);(d||p)&&(c=z(v(a).row,new s.p2(c,d,p)).content),l.push(c)}else{if("cell"!=i&&"header_cell"!=i)return null;l.push(n||r?z(v(a).row,new s.p2(t,n,r)).content:t)}return function(e,t){let n=[];for(let r=0;r<t.length;r++){let o=t[r];for(let i=o.childCount-1;i>=0;i--){let{rowspan:a,colspan:l}=o.child(i).attrs;for(let u=r;u<r+a;u++)n[u]=(n[u]||0)+l}}let c=0;for(let d=0;d<n.length;d++)c=Math.max(c,n[d]);for(let p=0;p<n.length;p++)if(p>=t.length&&t.push(s.HY.empty),n[p]<c){let h=v(e).cell.createAndFill(),f=[];for(let m=n[p];m<c;m++)f.push(h);t[p]=t[p].append(s.HY.from(f))}return{height:t.length,width:c,rows:t}}(a,l)}(n),o=e.state.selection;if(o instanceof O){r||(r={width:1,height:1,rows:[s.HY.from(z(v(e.state.schema).cell,n))]});let i=o.$anchorCell.node(-1),a=o.$anchorCell.start(-1),l=m.get(i).rectBetween(o.$anchorCell.pos-a,o.$headCell.pos-a);return r=function({width:e,height:t,rows:n},r,o){if(e!=r){let i=[],a=[];for(let l=0;l<n.length;l++){let u=n[l],c=[];for(let d=i[l]||0,p=0;d<r;p++){let h=u.child(p%u.childCount);d+h.attrs.colspan>r&&(h=h.type.createChecked(S(h.attrs,h.attrs.colspan,d+h.attrs.colspan-r),h.content)),c.push(h),d+=h.attrs.colspan;for(let f=1;f<h.attrs.rowspan;f++)i[l+f]=(i[l+f]||0)+h.attrs.colspan}a.push(s.HY.from(c))}n=a,e=r}if(t!=o){let m=[];for(let g=0,v=0;g<o;g++,v++){let b=[],y=n[v%t];for(let x=0;x<y.childCount;x++){let w=y.child(x);g+w.attrs.rowspan>o&&(w=w.type.create({...w.attrs,rowspan:Math.max(1,o-w.attrs.rowspan)},w.content)),b.push(w)}m.push(s.HY.from(b))}n=m,t=o}return{width:e,height:t,rows:n}}(r,l.right-l.left,l.bottom-l.top),H(e.state,e.dispatch,a,l,r),!0}if(!r)return!1;{let u=w(e.state),c=u.start(-1);return H(e.state,e.dispatch,c,m.get(u.node(-1)).findCell(u.pos-c),r),!0}}function $(e,t){var n;if(t.ctrlKey||t.metaKey)return;let r=U(e,t.target),o;if(t.shiftKey&&e.state.selection instanceof O)i(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&null!=(o=y(e.state.selection.$anchor))&&(null==(n=Z(e,t))?void 0:n.pos)!=o.pos)i(o,t),t.preventDefault();else if(!r)return;function i(t,n){let r=Z(e,n),o=null==b.getState(e.state);if(!r||!k(t,r)){if(!o)return;r=t}let i=new O(t,r);if(o||!e.state.selection.eq(i)){let a=e.state.tr.setSelection(i);o&&a.setMeta(b,t.pos),e.dispatch(a)}}function a(){e.root.removeEventListener("mouseup",a),e.root.removeEventListener("dragstart",a),e.root.removeEventListener("mousemove",l),null!=b.getState(e.state)&&e.dispatch(e.state.tr.setMeta(b,-1))}function l(n){let o=b.getState(e.state),l;if(null!=o)l=e.state.doc.resolve(o);else if(U(e,n.target)!=r&&!(l=Z(e,t)))return a();l&&i(l,n)}e.root.addEventListener("mouseup",a),e.root.addEventListener("dragstart",a),e.root.addEventListener("mousemove",l)}function W(e,t,n){if(!(e.state.selection instanceof l.Bs))return null;let{$head:r}=e.state.selection;for(let o=r.depth-1;o>=0;o--){let i=r.node(o),a=n<0?r.index(o):r.indexAfter(o);if(a!=(n<0?0:i.childCount))break;if("cell"==i.type.spec.tableRole||"header_cell"==i.type.spec.tableRole){let s=r.before(o),u="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(u)?s:null}}return null}function U(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function Z(e,t){let n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?y(e.state.doc.resolve(n.pos)):null}var G=class{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),K(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,K(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function K(e,t,n,r,o,i){var a;let l=0,s=!0,u=t.firstChild,c=e.firstChild;if(c){for(let d=0,p=0;d<c.childCount;d++){let{colspan:h,colwidth:f}=c.child(d).attrs;for(let m=0;m<h;m++,p++){let g=o==p?i:f&&f[m],v=g?g+"px":"";l+=g||r,g||(s=!1),u?(u.style.width!=v&&(u.style.width=v),u=u.nextSibling):t.appendChild(document.createElement("col")).style.width=v}}for(;u;){let b=u.nextSibling;null==(a=u.parentNode)||a.removeChild(u),u=b}s?(n.style.width=l+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=l+"px")}}var Y=new l.H$("tableColumnResizing"),q=class{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(e){let t=e.getMeta(Y);if(t&&null!=t.setHandle)return new q(t.setHandle,!1);if(t&&void 0!==t.setDragging)return new q(this.activeHandle,t.setDragging);if(this.activeHandle>-1&&e.docChanged){let n=e.mapping.map(this.activeHandle,-1);return E(e.doc.resolve(n))||(n=-1),new q(n,this.dragging)}return this}};function X(e,t,n){let r=e.posAtCoords({left:t.clientX,top:t.clientY});if(!r)return -1;let{pos:o}=r,i=y(e.state.doc.resolve(o));if(!i)return -1;if("right"==n)return i.pos;let a=m.get(i.node(-1)),l=i.start(-1),s=a.map.indexOf(i.pos-l);return s%a.width==0?-1:l+a.map[s-1]}function J(e,t,n){let r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function Q(e,t){e.dispatch(e.state.tr.setMeta(Y,{setHandle:t}))}function ee(e){return Array(e).fill(0)}function et(e){let t=e.selection,n=w(e),r=n.node(-1),o=n.start(-1),i=m.get(r),a=t instanceof O?i.rectBetween(t.$anchorCell.pos-o,t.$headCell.pos-o):i.findCell(n.pos-o);return{...a,tableStart:o,map:i,table:r}}function en(e,{map:t,tableStart:n,table:r},o){let i=o>0?-1:0;(function(e,t,n){let r=v(t.type.schema).header_cell;for(let o=0;o<e.height;o++)if(t.nodeAt(e.map[n+o*e.width]).type!=r)return!1;return!0})(t,r,o+i)&&(i=0==o||o==t.width?null:0);for(let a=0;a<t.height;a++){let l=a*t.width+o;if(o>0&&o<t.width&&t.map[l-1]==t.map[l]){let s=t.map[l],u=r.nodeAt(s);e.setNodeMarkup(e.mapping.map(n+s),null,M(u.attrs,o-t.colCount(s))),a+=u.attrs.rowspan-1}else{let c=null==i?v(r.type.schema).cell:r.nodeAt(t.map[l+i]).type,d=t.positionAt(a,o,r);e.insert(e.mapping.map(n+d),c.createAndFill())}}return e}function er(e,t){if(!x(e))return!1;if(t){let n=et(e);t(en(e.tr,n,n.left))}return!0}function eo(e,t){if(!x(e))return!1;if(t){let n=et(e);t(en(e.tr,n,n.right))}return!0}function ei(e,{map:t,table:n,tableStart:r},o){let i=e.mapping.maps.length;for(let a=0;a<t.height;){let l=a*t.width+o,s=t.map[l],u=n.nodeAt(s),c=u.attrs;if(o>0&&t.map[l-1]==s||o<t.width-1&&t.map[l+1]==s)e.setNodeMarkup(e.mapping.slice(i).map(r+s),null,S(c,o-t.colCount(s)));else{let d=e.mapping.slice(i).map(r+s);e.delete(d,d+u.nodeSize)}a+=c.rowspan}}function ea(e,t){if(!x(e))return!1;if(t){let n=et(e),r=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let o=n.right-1;ei(r,n,o),o!=n.left;o--){let i=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!i)throw RangeError("No table found");n.table=i,n.map=m.get(i)}t(r)}return!0}function el(e,{map:t,tableStart:n,table:r},o){var i;let a=n;for(let l=0;l<o;l++)a+=r.child(l).nodeSize;let s=[],u=o>0?-1:0;(function(e,t,n){var r;let o=v(t.type.schema).header_cell;for(let i=0;i<e.width;i++)if((null==(r=t.nodeAt(e.map[i+n*e.width]))?void 0:r.type)!=o)return!1;return!0})(t,r,o+u)&&(u=0==o||o==t.height?null:0);for(let c=0,d=t.width*o;c<t.width;c++,d++)if(o>0&&o<t.height&&t.map[d]==t.map[d-t.width]){let p=t.map[d],h=r.nodeAt(p).attrs;e.setNodeMarkup(n+p,null,{...h,rowspan:h.rowspan+1}),c+=h.colspan-1}else{let f=null==u?v(r.type.schema).cell:null==(i=r.nodeAt(t.map[d+u*t.width]))?void 0:i.type,m=null==f?void 0:f.createAndFill();m&&s.push(m)}return e.insert(a,v(r.type.schema).row.create(null,s)),e}function es(e,t){if(!x(e))return!1;if(t){let n=et(e);t(el(e.tr,n,n.top))}return!0}function eu(e,t){if(!x(e))return!1;if(t){let n=et(e);t(el(e.tr,n,n.bottom))}return!0}function ec(e,{map:t,table:n,tableStart:r},o){let i=0;for(let a=0;a<o;a++)i+=n.child(a).nodeSize;let l=i+n.child(o).nodeSize,s=e.mapping.maps.length;e.delete(i+r,l+r);for(let u=0,c=o*t.width;u<t.width;u++,c++){let d=t.map[c];if(o>0&&d==t.map[c-t.width]){let p=n.nodeAt(d).attrs;e.setNodeMarkup(e.mapping.slice(s).map(d+r),null,{...p,rowspan:p.rowspan-1}),u+=p.colspan-1}else if(o<t.width&&d==t.map[c+t.width]){let h=n.nodeAt(d),f=h.attrs,m=h.type.create({...f,rowspan:h.attrs.rowspan-1},h.content),g=t.positionAt(o+1,u,n);e.insert(e.mapping.slice(s).map(r+g),m),u+=f.colspan-1}}}function ed(e,t){if(!x(e))return!1;if(t){let n=et(e),r=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let o=n.bottom-1;ec(r,n,o),o!=n.top;o--){let i=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!i)throw RangeError("No table found");n.table=i,n.map=m.get(n.table)}t(r)}return!0}function ep(e){let t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function eh(e,t){let n=e.selection;if(!(n instanceof O)||n.$anchorCell.pos==n.$headCell.pos)return!1;let r=et(e),{map:o}=r;if(function({width:e,height:t,map:n},r){let o=r.top*e+r.left,i=o,a=(r.bottom-1)*e+r.left,l=o+(r.right-r.left-1);for(let s=r.top;s<r.bottom;s++){if(r.left>0&&n[i]==n[i-1]||r.right<e&&n[l]==n[l+1])return!0;i+=e,l+=e}for(let u=r.left;u<r.right;u++){if(r.top>0&&n[o]==n[o-e]||r.bottom<t&&n[a]==n[a+e])return!0;o++,a++}return!1}(o,r))return!1;if(t){let i=e.tr,a={},l=s.HY.empty,u,c;for(let d=r.top;d<r.bottom;d++)for(let p=r.left;p<r.right;p++){let h=o.map[d*o.width+p],f=r.table.nodeAt(h);if(!a[h]&&f){if(a[h]=!0,null==u)u=h,c=f;else{ep(f)||(l=l.append(f.content));let m=i.mapping.map(h+r.tableStart);i.delete(m,m+f.nodeSize)}}}if(null==u||null==c)return!0;if(i.setNodeMarkup(u+r.tableStart,null,{...M(c.attrs,c.attrs.colspan,r.right-r.left-c.attrs.colspan),rowspan:r.bottom-r.top}),l.size){let g=u+1+c.content.size,v=ep(c)?u+1:g;i.replaceWith(v+r.tableStart,g+r.tableStart,l)}i.setSelection(new O(i.doc.resolve(u+r.tableStart))),t(i)}return!0}function ef(e,t){var n;let r=v(e.schema);return(n=({node:e})=>r[e.type.spec.tableRole],(e,t)=>{var r;let o=e.selection,i,a;if(o instanceof O){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;i=o.$anchorCell.nodeAfter,a=o.$anchorCell.pos}else{if(!(i=function(e){for(let t=e.depth;t>0;t--){let n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}(o.$from)))return!1;a=null==(r=y(o.$from))?void 0:r.pos}if(null==i||null==a||1==i.attrs.colspan&&1==i.attrs.rowspan)return!1;if(t){let l=i.attrs,s=[],u=l.colwidth;l.rowspan>1&&(l={...l,rowspan:1}),l.colspan>1&&(l={...l,colspan:1});let c=et(e),d=e.tr;for(let p=0;p<c.right-c.left;p++)s.push(u?{...l,colwidth:u&&u[p]?[u[p]]:null}:l);let h;for(let f=c.top;f<c.bottom;f++){let m=c.map.positionAt(f,c.left,c.table);f==c.top&&(m+=i.nodeSize);for(let g=c.left,v=0;g<c.right;g++,v++)(g!=c.left||f!=c.top)&&d.insert(h=d.mapping.map(m+c.tableStart,1),n({node:i,row:f,col:g}).createAndFill(s[v]))}d.setNodeMarkup(a,n({node:i,row:c.top,col:c.left}),s[0]),o instanceof O&&d.setSelection(new O(d.doc.resolve(o.$anchorCell.pos),h?d.doc.resolve(h):void 0)),t(d)}return!0})(e,t)}function em(e,t,n){let r=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let o=0;o<r.length;o++){let i=t.table.nodeAt(r[o]);if(i&&i.type!==n.header_cell)return!1}return!0}function eg(e,t){if((t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic){var n;return function(t,n){if(!x(t))return!1;if(n){let r=v(t.schema),o=et(t),i=t.tr,a=o.map.cellsInRect("column"==e?{left:o.left,top:0,right:o.right,bottom:o.map.height}:"row"==e?{left:0,top:o.top,right:o.map.width,bottom:o.bottom}:o),l=a.map(e=>o.table.nodeAt(e));for(let s=0;s<a.length;s++)l[s].type==r.header_cell&&i.setNodeMarkup(o.tableStart+a[s],r.cell,l[s].attrs);if(0==i.steps.length)for(let u=0;u<a.length;u++)i.setNodeMarkup(o.tableStart+a[u],r.header_cell,l[u].attrs);n(i)}return!0}}return function(t,n){if(!x(t))return!1;if(n){let r=v(t.schema),o=et(t),i=t.tr,a=em("row",o,r),l=em("column",o,r),s="column"===e?a:"row"===e&&l,u=s?1:0,c="column"==e?{left:0,top:u,right:1,bottom:o.map.height}:"row"==e?{left:u,top:0,right:o.map.width,bottom:1}:o,d="column"==e?l?r.cell:r.header_cell:"row"==e?a?r.cell:r.header_cell:r.cell;o.map.cellsInRect(c).forEach(e=>{let t=e+o.tableStart,n=i.doc.nodeAt(t);n&&i.setNodeMarkup(t,d,n.attrs)}),n(i)}return!0}}var ev=eg("row",{useDeprecatedLogic:!0}),eb=eg("column",{useDeprecatedLogic:!0}),ey=eg("cell",{useDeprecatedLogic:!0});function ex(e,t){let n=e.selection.$anchor;for(let r=n.depth;r>0;r--){let o=n.node(r);if("table"==o.type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0}return!1}function ew({allowTableNodeSelection:e=!1}={}){return new l.Sy({key:b,state:{init:()=>null,apply(e,t){let n=e.getMeta(b);if(null!=n)return -1==n?null:n;if(null==t||!e.docChanged)return t;let{deleted:r,pos:o}=e.mapping.mapResult(t);return r?null:o}},props:{decorations:_,handleDOMEvents:{mousedown:$},createSelectionBetween:e=>null!=b.getState(e.state)?e.state.selection:null,handleTripleClick:F,handleKeyDown:N,handlePaste:V},appendTransaction:(t,n,r)=>(function(e,t,n){let r=(t||e).selection,o=(t||e).doc,i,a;if(r instanceof l.qv&&(a=r.node.type.spec.tableRole)){if("cell"==a||"header_cell"==a)i=O.create(o,r.from);else if("row"==a){let s=o.resolve(r.from+1);i=O.rowSelection(s,s)}else if(!n){let u=m.get(r.node),c=r.from+1,d=c+u.map[u.width*u.height-1];i=O.create(o,c+1,d)}}else r instanceof l.Bs&&function({$from:e,$to:t}){if(e.pos==t.pos||e.pos<e.pos-6)return!1;let n=e.pos,r=t.pos,o=e.depth;for(;o>=0&&!(e.after(o+1)<e.end(o));o--,n++);for(let i=t.depth;i>=0&&!(t.before(i+1)>t.start(i));i--,r--);return n==r&&/row|table/.test(e.node(o).type.spec.tableRole)}(r)?i=l.Bs.create(o,r.from):r instanceof l.Bs&&function({$from:e,$to:t}){let n,r;for(let o=e.depth;o>0;o--){let i=e.node(o);if("cell"===i.type.spec.tableRole||"header_cell"===i.type.spec.tableRole){n=i;break}}for(let a=t.depth;a>0;a--){let l=t.node(a);if("cell"===l.type.spec.tableRole||"header_cell"===l.type.spec.tableRole){r=l;break}}return n!==r&&0===t.parentOffset}(r)&&(i=l.Bs.create(o,r.$from.start(),r.$from.end()));return i&&(t||(t=e.tr)).setSelection(i),t})(r,R(r,n),e)})}function eE(e){return"object"==typeof e&&e instanceof O}var ek=n(71071),eC=n(79899),eS=n(21251),eM=n(25535),eO=n(3845),eA=n(2107),e_=n(40653),eT=n(82792);function eR(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function ez(e,t,n){var r=[],o=(0,eT.fp)(e,r,n);return r.length<2?n:o+t(r)}var eL,eI=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},eH=function(e){var t=(0,eA.Z)(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=(0,e_.O)(n,t.registered,void 0);return(0,eT.My)(t,o,!1),t.key+"-"+o.name},r=function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return ez(t.registered,n,eI(r))};return{css:n,cx:r,injectGlobal:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=(0,e_.O)(n,t.registered);eR(t,o)},keyframes:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=(0,e_.O)(n,t.registered),i="animation-"+o.name;return eR(t,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(e){e.forEach(function(e){t.inserted[e]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:eT.fp.bind(null,t.registered),merge:ez.bind(null,t.registered,n)}}({key:"css"}),eN=(eH.flush,eH.hydrate,eH.cx,eH.merge,eH.getRegisteredStyles,eH.injectGlobal,eH.keyframes,eH.css);eH.sheet,eH.cache;var eP=n(38756),eD=n(65832),ej=n(50697),eB=n(75114),eF=Object.defineProperty,eV=Object.getOwnPropertyDescriptor,e$=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?eV(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&eF(t,n,i),i};function eW(e){let t=e.getAttribute("data-colwidth"),n=t&&/^\d+(,\d+)*$/.test(t)?t.split(",").map(e=>Number(e)):null,r=Number(e.getAttribute("colspan")??1),o=e.getAttribute("data-background-color");return{colspan:r,rowspan:Number(e.getAttribute("rowspan")??1),colwidth:n&&n.length===r?n:null,background:o||e.style.backgroundColor||null}}function eU(e){let t={};return 1!==e.attrs.colspan&&(t.colspan=e.attrs.colspan),1!==e.attrs.rowspan&&(t.rowspan=e.attrs.rowspan),e.attrs.colwidth&&(t["data-colwidth"]=e.attrs.colwidth.join(",")),e.attrs.background&&(t.style=`${t.style??""}background-color: ${e.attrs.background};`,t["data-background-color"]=e.attrs.background),t}function eZ(e,t){let n={...e.defaults(),colspan:{default:1},rowspan:{default:1},colwidth:{default:null},background:{default:null}};return{table:{isolating:!0,...t,attrs:e.defaults(),content:"tableRow+",tableRole:"table",parseDOM:[{tag:"table",getAttrs:e.parse},...t.parseDOM??[]],toDOM:t=>["table",e.dom(t),["tbody",0]]},tableRow:{...t,attrs:e.defaults(),content:"(tableCell | tableHeaderCell)*",tableRole:"row",parseDOM:[{tag:"tr",getAttrs:e.parse},...t.parseDOM??[]],toDOM:t=>["tr",e.dom(t),0]},tableCell:{isolating:!0,content:`${eP.eX.Block}+`,...t,attrs:n,tableRole:"cell",parseDOM:[{tag:"td",getAttrs:t=>({...e.parse(t),...eW(t)})},...t.parseDOM??[]],toDOM:t=>["td",{...e.dom(t),...eU(t)},0]},tableHeaderCell:{isolating:!0,content:`${eP.eX.Block}+`,...t,attrs:n,tableRole:"header_cell",parseDOM:[{tag:"th",getAttrs:t=>({...e.parse(t),...eW(t)})},...t.parseDOM??[]],toDOM:t=>["th",{...e.dom(t),...eU(t)},0]}}}var eG=["table","row","cell","header_cell"];function eK(e){let{content:t,type:n}=e;return t?n.createChecked(null,t):n.createAndFill()}function eY(e){let{schema:t,cellContent:n,columnsCount:r=3,rowsCount:o=3,withHeaderRow:i=!0}=e,{cell:a,header_cell:l,row:s,table:u}=function(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;let t=(0,ek.Ry)();for(let n of(e.cached.tableNodeTypes=t,(0,ek.VO)(e.nodes)))(0,ek.q9)(eG,n.spec.tableRole)&&(t[n.spec.tableRole]=n);return t}(t);(0,ek.kG)(a&&l&&s&&u,{code:eP.mA.EXTENSION,message:"Table Extension unable to locate required nodes."});let c=[],d=[];for(let p=0;p<r;p++)c.push(eK({type:a,content:n})),i&&d.push(eK({type:l,content:n}));let h=[];for(let f=0;f<o;f++){let m=i&&0===f?d:c;h.push(s.createChecked(null,m))}return u.createChecked(null,h)}function eq(e){return(0,i.Tr)({selection:e,types:"table"})}function eX(e){return(0,i.Tr)({selection:e,types:["tableHeaderCell","tableCell"]})}var{CREATE_COMMAND_DESCRIPTION:eJ,CREATE_COMMAND_LABEL:eQ}=eB.XK,e0={icon:"table2",description:({t:e})=>e(eJ),label:({t:e})=>e(eQ)},e1=!1,e2=class extends ej.QR{constructor(){super(...arguments),this.lastGoodState=void 0}get name(){return"table"}createTags(){return[eP.eX.Block]}createNodeSpec(e,t){return eZ(e,t).table}createExtensions(){return[new e5({priority:eP.xV.Low})]}onStateUpdate(e){var t;let{tr:n,state:r}=e;(null==(t=null==n?void 0:n.getMeta(T))?void 0:t.fixTables)&&(this.lastGoodState=r)}onView(e){!1===this.store.helpers.isViewEditable()&&this.store.updateExtensionPlugins(this)}createExternalPlugins(){let e=[];if(this.store.isMounted()&&!1===this.store.helpers.isViewEditable())return e;let{resizable:t,resizeableOptions:n}=this.options;return t&&e.push(function({handleWidth:e=5,cellMinWidth:t=25,View:n=G,lastColumnResizable:r=!0}={}){let o=new l.Sy({key:Y,state:{init:(e,r)=>(o.spec.props.nodeViews[v(r.schema).table.name]=(e,r)=>new n(e,t,r),new q(-1,!1)),apply:(e,t)=>t.apply(e)},props:{attributes(e){let t=Y.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove(n,o){(function(e,t,n,r,o){let i=Y.getState(e.state);if(i&&!i.dragging){let a=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target),l=-1;if(a){let{left:s,right:u}=a.getBoundingClientRect();t.clientX-s<=n?l=X(e,t,"left"):u-t.clientX<=n&&(l=X(e,t,"right"))}if(l!=i.activeHandle){if(!o&&-1!==l){let c=e.state.doc.resolve(l),d=c.node(-1),p=m.get(d),h=c.start(-1),f=p.colCount(c.pos-h)+c.nodeAfter.attrs.colspan-1;if(f==p.width-1)return}Q(e,l)}}})(n,o,e,t,r)},mouseleave(e){(function(e){let t=Y.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&Q(e,-1)})(e)},mousedown(e,n){(function(e,t,n){let r=Y.getState(e.state);if(!r||-1==r.activeHandle||r.dragging)return!1;let o=e.state.doc.nodeAt(r.activeHandle),i=function(e,t,{colspan:n,colwidth:r}){let o=r&&r[r.length-1];if(o)return o;let i=e.domAtPos(t),a=i.node.childNodes[i.offset],l=a.offsetWidth,s=n;if(r)for(let u=0;u<n;u++)r[u]&&(l-=r[u],s--);return l/s}(e,r.activeHandle,o.attrs);function a(t){window.removeEventListener("mouseup",a),window.removeEventListener("mousemove",l);let r=Y.getState(e.state);(null==r?void 0:r.dragging)&&(function(e,t,n){let r=e.state.doc.resolve(t),o=r.node(-1),i=m.get(o),a=r.start(-1),l=i.colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1,s=e.state.tr;for(let u=0;u<i.height;u++){let c=u*i.width+l;if(u&&i.map[c]==i.map[c-i.width])continue;let d=i.map[c],p=o.nodeAt(d).attrs,h=1==p.colspan?0:l-i.colCount(d);if(p.colwidth&&p.colwidth[h]==n)continue;let f=p.colwidth?p.colwidth.slice():ee(p.colspan);f[h]=n,s.setNodeMarkup(a+d,null,{...p,colwidth:f})}s.docChanged&&e.dispatch(s)}(e,r.activeHandle,J(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Y,{setDragging:null})))}function l(t){if(!t.which)return a(t);let r=Y.getState(e.state);if(r&&r.dragging){let o=J(r.dragging,t,n);(function(e,t,n,r){let o=e.state.doc.resolve(t),i=o.node(-1),a=o.start(-1),l=m.get(i).colCount(o.pos-a)+o.nodeAfter.attrs.colspan-1,s=e.domAtPos(o.start(-1)).node;for(;s&&"TABLE"!=s.nodeName;)s=s.parentNode;s&&K(i,s.firstChild,s,r,l,n)})(e,r.activeHandle,o,n)}}e.dispatch(e.state.tr.setMeta(Y,{setDragging:{startX:t.clientX,startWidth:i}})),window.addEventListener("mouseup",a),window.addEventListener("mousemove",l),t.preventDefault()})(e,n,t)}},decorations(e){let t=Y.getState(e);if(t&&t.activeHandle>-1)return function(e,t){let n=[],r=e.doc.resolve(t),o=r.node(-1);if(!o)return u.EH.empty;let i=m.get(o),a=r.start(-1),l=i.colCount(r.pos-a)+r.nodeAfter.attrs.colspan;for(let s=0;s<i.height;s++){let c=l+s*i.width-1;if((l==i.width||i.map[c]!=i.map[c+1])&&(0==s||i.map[c-1]!=i.map[c-1-i.width])){let d=i.map[c],p=a+d+o.nodeAt(d).nodeSize-1,h=document.createElement("div");h.className="column-resize-handle",n.push(u.p.widget(p,h))}}return u.EH.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}});return o}(n)),e.push(ew()),e}createPlugin(){let{resizable:e,resizeableOptions:t}=this.options;if(!e||!this.store.isMounted()||this.store.helpers.isViewEditable())return{};let{cellMinWidth:n=25}=t;return{props:{nodeViews:{table(e,t,r){let o=t.nodeDOM(r());return(0,i.jd)(o)&&"TABLE"===o.tagName&&K(e,o.firstChild,o,n),new G(e,n)}}}}}createTable(e={}){return t=>{let{tr:n,dispatch:r,state:o}=t;if(!n.selection.empty)return!1;let i=n.selection.anchor+1,a=eY({schema:o.schema,...e});return null==r||r(n.replaceSelectionWith(a).scrollIntoView().setSelection(l.Bs.near(n.doc.resolve(i)))),!0}}deleteTable(){return(0,eD.A_)(ex)}addTableColumnBefore(){return(0,eD.A_)(er)}addTableColumnAfter(){return(0,eD.A_)(eo)}deleteTableColumn(){return(0,eD.A_)(ea)}addTableRowBefore(){return(0,eD.A_)(es)}addTableRowAfter(){return(0,eD.A_)(eu)}deleteTableRow(){return(0,eD.A_)(ed)}toggleTableCellMerge(){return e6}mergeTableCells(){return(0,eD.A_)(eh)}splitTableCell(){return(0,eD.A_)(ef)}toggleTableHeaderColumn(){return(0,eD.A_)(eb)}toggleTableHeaderRow(){return(0,eD.A_)(ev)}toggleTableHeaderCell(){return(0,eD.A_)(ey)}setTableCellAttribute(e,t){var n,r;return(0,eD.A_)(function(n,r){if(!x(n))return!1;let o=w(n);if(o.nodeAfter.attrs[e]===t)return!1;if(r){let i=n.tr;n.selection instanceof O?n.selection.forEachCell((n,r)=>{n.attrs[e]!==t&&i.setNodeMarkup(r,null,{...n.attrs,[e]:t})}):i.setNodeMarkup(o.pos,null,{...o.nodeAfter.attrs,[e]:t}),r(i)}return!0})}fixTables(){var e;return(0,eD.fB)((e=this.lastGoodState,({state:t,dispatch:n})=>{let r=R(t,e);return!!r&&(n&&n(r),!0)}))}enableTableSupport(){e1||(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"),e1=!0)}setTableCellBackground(e){return t=>{let{tr:n}=t,{dispatch:r}=t,{selection:o}=n;if(o instanceof O)return o.forEachCell((t,r)=>{n=n.setNodeMarkup(r,void 0,{...t.attrs,background:e})}),null==r||r(n),!0;let a=(0,i.Tr)({selection:o,types:["tableCell","tableHeaderCell"]});return!!a&&(null==r||r(n.setNodeMarkup(a.pos,void 0,{...a.node.attrs,background:e})),!0)}}selectParentCell(){return({dispatch:e,tr:t})=>{let n=eX(t.selection.$from);return!!n&&(null==e||e(t.setSelection(O.create(t.doc,n.pos))),!0)}}expandCellSelection(e="all"){return({dispatch:t,tr:n})=>{if(!eE(n.selection))return!1;if("row"!==e){let{$anchorCell:r,$headCell:o}=n.selection;n.setSelection(O.colSelection(r,o))}if("column"!==e){let{$anchorCell:i,$headCell:a}=n.selection;n.setSelection(O.rowSelection(i,a))}return null==t||t(n),!0}}onSetOptions(e){let{changes:t}=e;t.resizable.changed&&this.store.updateExtensionPlugins(this)}};e$([(0,ej.WDe)(e0)],e2.prototype,"createTable",1),e$([(0,ej.WDe)()],e2.prototype,"deleteTable",1),e$([(0,ej.WDe)()],e2.prototype,"addTableColumnBefore",1),e$([(0,ej.WDe)()],e2.prototype,"addTableColumnAfter",1),e$([(0,ej.WDe)()],e2.prototype,"deleteTableColumn",1),e$([(0,ej.WDe)()],e2.prototype,"addTableRowBefore",1),e$([(0,ej.WDe)()],e2.prototype,"addTableRowAfter",1),e$([(0,ej.WDe)()],e2.prototype,"deleteTableRow",1),e$([(0,ej.WDe)()],e2.prototype,"toggleTableCellMerge",1),e$([(0,ej.WDe)()],e2.prototype,"mergeTableCells",1),e$([(0,ej.WDe)()],e2.prototype,"splitTableCell",1),e$([(0,ej.WDe)()],e2.prototype,"toggleTableHeaderColumn",1),e$([(0,ej.WDe)()],e2.prototype,"toggleTableHeaderRow",1),e$([(0,ej.WDe)()],e2.prototype,"toggleTableHeaderCell",1),e$([(0,ej.WDe)()],e2.prototype,"setTableCellAttribute",1),e$([(0,ej.WDe)({disableChaining:!0})],e2.prototype,"fixTables",1),e$([(0,ej._y)()],e2.prototype,"enableTableSupport",1),e$([(0,ej.WDe)()],e2.prototype,"setTableCellBackground",1),e$([(0,ej.WDe)()],e2.prototype,"selectParentCell",1),e$([(0,ej.WDe)()],e2.prototype,"expandCellSelection",1),e2=e$([(0,ej.AOx)({defaultOptions:{resizable:!0,resizeableOptions:{}},defaultPriority:eP.xV.Default})],e2);var e5=class extends ej.QR{get name(){return"tableRow"}createExtensions(){return[new e4({priority:eP.xV.Low}),new e3({priority:eP.xV.Low})]}createNodeSpec(e,t){return eZ(e,t).tableRow}};e5=e$([(0,ej.AOx)({defaultPriority:eP.xV.Low})],e5);var e4=class extends ej.QR{get name(){return"tableCell"}createNodeSpec(e,t){return eZ(e,t).tableCell}};e4=e$([(0,ej.AOx)({defaultPriority:eP.xV.Low})],e4);var e3=class extends ej.QR{get name(){return"tableHeaderCell"}createNodeSpec(e,t){return eZ(e,t).tableHeaderCell}};e3=e$([(0,ej.AOx)({defaultPriority:eP.xV.Low})],e3);var e7=class extends ej.QR{get name(){return"tableControllerCell"}createNodeSpec(e,t){return{tableRole:"header_cell"}}};function e6({state:e,dispatch:t}){return!eh(e,t)&&ef(e,t)}e7=e$([(0,ej.AOx)({defaultPriority:eP.xV.Low})],e7),a.sX.create({hasChanged:a.Xf,getActive(e){let{selection:t}=e.state,n=eq(t);return n?[n]:a.sX.EMPTY},getPosition(e){let{view:t,data:n}=e,r=t.nodeDOM(n.pos);if(!(0,i.jd)(r))return a.oI;let o=r.getBoundingClientRect(),l=t.dom.getBoundingClientRect(),s=o.height,u=o.width,c=t.dom.scrollLeft+o.left-l.left-1,d=t.dom.scrollTop+o.top-l.top-1;return{x:c,y:d,height:s,width:u,rect:o,visible:(0,a.kl)(o,t.dom)}}}).clone(()=>({getActive(e){let{selection:t}=e.state,n=eX(t);return n?[n]:a.sX.EMPTY}})),a.sX.create({hasChanged:a.Xf,getActive(e){let{selection:t}=e.state,n=eq(t);if(!n)return a.sX.EMPTY;let r=function(e,t){let n=eq(e);if(!n)return;let r=m.get(n.node);if(t>0||t>r.width-1)return;let o=r.cellsInRect({left:0,right:r.width,top:t,bottom:t+1}),i=[];return o.forEach(e=>{i.push({node:n.node.nodeAt(e),pos:n.start+e})}),i}(t,0)??[];return 0===r.length?a.sX.EMPTY:r},getID:e=>`${e.pos}`,getPosition(e){let{view:t,data:n}=e,r=t.nodeDOM(n.pos);if(!(0,i.jd)(r))return a.oI;let o=r.getBoundingClientRect(),l=t.dom.getBoundingClientRect(),s=o.width,u=t.dom.scrollLeft+o.left-l.left-1,c=t.dom.scrollTop+o.top-l.top-1,d=new DOMRect(o.x-1,o.y-1,s,1);return{x:u,y:c,width:s,height:1,rect:d,visible:(0,a.kl)(d,t.dom)}}}).clone(()=>({getActive(e){let{selection:t}=e.state,n=eq(t);if(!n)return a.sX.EMPTY;let r=function(e,t){let n=eq(e);if(!n)return;let r=m.get(n.node);if(t>0||t>r.width-1)return;let o=r.cellsInRect({left:t,right:t+1,top:0,bottom:r.height}),i=[];return o.forEach(e=>{i.push({node:n.node.nodeAt(e),pos:n.start+e})}),i}(t,0)??[];return 0===r.length?a.sX.EMPTY:r},getPosition(e){let{view:t,data:n}=e,r=t.nodeDOM(n.pos);if(!(0,i.jd)(r))return a.oI;let o=r.getBoundingClientRect(),l=t.dom.getBoundingClientRect(),s=o.height,u=t.dom.scrollLeft+o.left-l.left-1,c=t.dom.scrollTop+o.top-l.top-1,d=new DOMRect(o.x-1,o.y-1,1,s);return{x:u,y:c,width:1,height:s,rect:d,visible:(0,a.kl)(d,t.dom)}}}));var e8=a.sX.create({hasChanged:a.Xf,getActive(e){let{state:t,view:n}=e,{selection:r}=t,o=eq(r);if(!o)return a.sX.EMPTY;let l=eX(r);if(!l)return a.sX.EMPTY;let{pos:s}=l,u=n.nodeDOM(o.pos),c=n.nodeDOM(s);if(!(0,i.jd)(u)||!(0,i.jd)(c))return a.sX.EMPTY;let d=u.getBoundingClientRect(),p=c.getBoundingClientRect();return[{pos:s,rect:new DOMRect(p.x,d.y,p.width,d.height)}]},getID:({pos:e})=>`${e}`,getPosition(e){let{view:t,data:{rect:n}}=e,r=t.dom.getBoundingClientRect(),o=n.height,i=n.width,l=t.dom.scrollLeft+n.left-r.left-1,s=t.dom.scrollTop+n.top-r.top-1;return{x:l,y:s,width:i,height:o,rect:n,visible:(0,a.kl)(n,t.dom)}}}),e9=e8.clone(()=>({getActive(e){let{state:t,view:n}=e,{selection:r}=t,o=eq(r);if(!o)return a.sX.EMPTY;let l=eX(r);if(!l)return a.sX.EMPTY;let{pos:s}=l,u=n.nodeDOM(o.pos),c=n.nodeDOM(s);if(!(0,i.jd)(u)||!(0,i.jd)(c))return a.sX.EMPTY;let d=u.getBoundingClientRect(),p=c.getBoundingClientRect();return[{pos:s,rect:new DOMRect(d.x,p.y,d.width,p.height)}]}}));e8.clone(({getActive:e})=>({getActive(t){let[n]=e(t);if(!n)return a.sX.EMPTY;let{selection:r}=t.state;if(!eE(r)||!r.isColSelection())return a.sX.EMPTY;let o=eq(r);if(!o)return a.sX.EMPTY;let{node:i,start:l}=o,{$anchorCell:s,$headCell:u}=r,c=m.get(i),d=c.rectBetween(s.pos-l,u.pos-l);return d.right-d.left!=1?a.sX.EMPTY:[n]}})),e9.clone(({getActive:e})=>({getActive(t){let[n]=e(t);if(!n)return a.sX.EMPTY;let{selection:r}=t.state;if(!eE(r)||!r.isRowSelection())return a.sX.EMPTY;let o=eq(r);if(!o)return a.sX.EMPTY;let{node:i,start:l}=o,{$anchorCell:s,$headCell:u}=r,c=m.get(i),d=c.rectBetween(s.pos-l,u.pos-l);return d.bottom-d.top!=1?a.sX.EMPTY:[n]}}));var te=a.sX.create({hasChanged:a.Xf,getActive(e){let{selection:t}=e.state;return eE(t)?[t]:a.sX.EMPTY},getPosition(e){let{view:t,data:n}=e,{$headCell:r,$anchorCell:o}=n,l=t.nodeDOM(r.pos),s=t.nodeDOM(o.pos);if(!(0,i.jd)(l)||!(0,i.jd)(s))return a.oI;let u=(0,i.d3)(l.getBoundingClientRect(),s.getBoundingClientRect()),c=t.dom.getBoundingClientRect(),d=u.height,p=u.width,h=t.dom.scrollLeft+u.left-c.left-1,f=t.dom.scrollTop+u.top-c.top-1;return{x:h,y:f,width:p,height:d,rect:u,visible:(0,a.kl)(u,t.dom)}}});te.clone(({getActive:e})=>({getActive(t){let[n]=e(t);return(null==n?void 0:n.isColSelection())?[n]:a.sX.EMPTY}})),te.clone(({getActive:e})=>({getActive(t){let[n]=e(t);return(null==n?void 0:n.isRowSelection())?[n]:a.sX.EMPTY}})),te.clone(({getActive:e})=>({getActive(t){let[n]=e(t);return(null==n?void 0:n.isColSelection())&&n.isRowSelection()?[n]:a.sX.EMPTY}}));var tt=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,tr=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?tn(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&tt(t,n,i),i},to=["tableCell","tableHeaderCell"];function ti(e,{map:t,tableStart:n,table:r},o){let i=o<t.width?0:-1;for(let a=0;a<t.height;a++){let l=a*t.width+o;if(o>0&&o<t.width&&t.map[l-1]===t.map[l]){let s=t.map[l],u=r.nodeAt(s);e.setNodeMarkup(e.mapping.map(n+s),void 0,M(u.attrs,o-t.colCount(s))),a+=u.attrs.rowspan-1}else{let c=r.nodeAt(t.map[l+i]).type,d=t.positionAt(a,o,r);e.insert(e.mapping.map(n+d),c.createAndFill())}}return e}function ta(e,t){if(!x(e))return!1;if(t){let n=et(e);t(ti(e.tr,n,n.left))}return!0}function tl(e,t){if(!x(e))return!1;if(t){let n=et(e);t(ti(e.tr,n,n.right))}return!0}function ts(e,{map:t,tableStart:n,table:r},o){let i=n;for(let a=0;a<o;a++)i+=r.child(a).nodeSize;let l=o<t.height-1?0:-1,s=[];for(let u=0,c=t.width*o;u<t.width;u++,c++)if(o>0&&o<t.height&&t.map[c]===t.map[c-t.width]){let d=t.map[c],p=r.nodeAt(d).attrs;e.setNodeMarkup(n+d,void 0,tg(p,"rowspan",p.rowspan+1)),u+=p.colspan-1}else{let h=r.nodeAt(t.map[c+l*t.width]).type;s.push(h.createAndFill())}return e.insert(i,v(r.type.schema).row.create(null,s)),e}function tu(e,t){if(!x(e))return!1;if(t){let n=et(e);t(ts(e.tr,n,n.top))}return!0}function tc(e,t){if(!x(e))return!1;if(t){let n=et(e);t(ts(e.tr,n,n.bottom))}return!0}a.SY.clone(()=>({getActive(e){var t;let n=(t=e.state.selection)instanceof O?(0,i.Tr)({selection:t.$head,types:to}):(0,i.Tr)({selection:t,types:to});return n?[n]:a.sX.EMPTY}}));var td=null,tp=function({view:e,tableRect:t,attrs:n,removeInsertButton:r}){var o;let i=(0,eO.h)("div",{className:`${eS.UV.TABLE_INSERT_BUTTON} ${eS.UV.CONTROLLERS_TOGGLE}`,style:{top:`${n.y-9-5}px`,left:`${n.x-9}px`}},function(){if(td)return td;let e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("xmlns",e),t.setAttribute("viewBox","0 0 24 24");let n=document.createElementNS(e,"g");for(let r of eM.addFill){let o=document.createElementNS(e,r.tag);for(let[i,a]of Object.entries(r.attr))o.setAttribute(i,a);n.append(o)}return t.append(n),td=t,t}()),a=()=>{let o=e.state.tr;if(-1!==n.col)o=ti(o,t,n.col);else{if(-1===n.row)return;o=ts(o,t,n.row)}e.dispatch(r(o))};return i.addEventListener("mousedown",()=>{a()}),i};function th(e,t,n,r){if(!(r=r||e.doc.nodeAt(t)))throw RangeError("No node at given position");let o=r.type,i=o.create({...r.attrs,...n},void 0,r.marks);if(r.isLeaf)return e.replaceWith(t,t+r.nodeSize,i);if(!o.validContent(r.content))throw RangeError(`Invalid content for node type ${o.name}`);return e.step(new d.FC(t,t+r.nodeSize,t+1,t+r.nodeSize-1,new s.p2(s.HY.from(i),0,0),1,!0))}var tf=class{constructor(e,t,n,r,o){this.node=e,this.cellMinWidth=t,this.decorations=n,this.view=r,this.getPos=o,this.map=m.get(this.node),this.tbody=(0,eO.h)("tbody",{className:eS.UV.TABLE_TBODY_WITH_CONTROLLERS}),this.colgroup=(0,eO.h)("colgroup",{className:eS.UV.TABLE_COLGROUP},...(0,ek.w6)(this.map.width).map(()=>(0,eO.h)("col"))),this.table=(0,eO.h)("table",{className:eS.UV.TABLE,dataset:{controllersInjected:""}},this.colgroup,this.tbody),this.insertButtonWrapper=(0,eO.h)("div"),this.root=(0,eO.h)("div",null,this.table,this.insertButtonWrapper),this.render(),this.showInsertButton=!1,this.handleMouseMove=(0,eC.P)(100,e=>{if(this.showInsertButton){var t,n;let r=this.attrs().insertButtonAttrs;r&&(-1!==r.col?e.clientX<r.triggerRect.left-400||e.clientX>r.triggerRect.right+400||e.clientY<r.triggerRect.top-60||e.clientY>r.triggerRect.bottom:-1===r.row||e.clientX<r.triggerRect.left-40||e.clientX>r.triggerRect.right||e.clientY<r.triggerRect.top-100||e.clientY>r.triggerRect.bottom+100)&&(this.showInsertButton=!1,tm(this.insertButtonWrapper,[]),this.removeInsertButton&&this.view.dispatch(this.removeInsertButton(this.view.state.tr)))}}),document.addEventListener("mousemove",this.handleMouseMove)}get dom(){return this.root}get contentDOM(){return this.tbody}update(e,t){return e.type===this.node.type&&(this.decorations=t,this.node=e,this.map=m.get(this.node),this.render(),!0)}render(){this.renderTable(),this.attrs().isControllersInjected&&this.renderInsertButton()}renderTable(){if(this.colgroup.children.length!==this.map.width){let e=(0,ek.w6)(this.map.width).map(()=>(0,eO.h)("col"));tm(this.colgroup,e)}let t=[eS.UV.TABLE,this.attrs().isControllersInjected?eS.UV.TABLE_WITH_CONTROLLERS:eS.UV.TABLE_WAITTING_CONTROLLERS].join(" ");this.table.className!==t&&(this.table.className=t),K(this.node,this.colgroup,this.table,this.cellMinWidth)}renderInsertButton(){let e=this.attrs().insertButtonAttrs;if(e){let t={map:this.map,table:this.node,tableStart:this.getPos()+1,left:0,top:0,right:0,bottom:0};this.removeInsertButton=e=>th(e,t.tableStart-1,{insertButtonAttrs:null});let n=tp({view:this.view,attrs:e,tableRect:t,removeInsertButton:this.removeInsertButton});tm(this.insertButtonWrapper,[n]),this.showInsertButton=!0}else tm(this.insertButtonWrapper,[]),this.showInsertButton=!1}attrs(){return this.node.attrs}ignoreMutation(){return!0}destroy(){document.removeEventListener("mousemove",this.handleMouseMove)}};function tm(e,t){for(;e.firstChild;)e.firstChild.remove();for(let n of t)e.append(n)}function tg(e,t,n){let r={};for(let o in e)r[o]=e[o];return r[t]=n,r}var tv=new l.H$("tableColumnResizing"),tb=class{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(e){let t=this,n=e.getMeta(tv);if(n&&null!=n.setHandle)return new tb(n.setHandle,null);if(n&&void 0!==n.setDragging)return new tb(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){var r;let o=e.mapping.map(t.activeHandle,-1);("row"!=(r=e.doc.resolve(o)).parent.type.spec.tableRole||!r.nodeAfter)&&(o=null),t=new tb(o,t.dragging)}return t}};function ty(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList.contains("ProseMirror")?null:e.parentNode;return e}function tx(e,t,n){let r=e.posAtCoords({left:t.clientX,top:t.clientY});if(!r)return -1;let{pos:o}=r,i=y(e.state.doc.resolve(o));if(!i)return -1;if("right"==n)return i.pos;let a=m.get(i.node(-1)),l=i.start(-1),s=a.map.indexOf(i.pos-l);return s%a.width==0?-1:l+a.map[s-1]}function tw(e,t,n){let r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function tE(e,t){e.dispatch(e.state.tr.setMeta(tv,{setHandle:t}))}function tk(e){let t=[];for(let n=0;n<e;n++)t.push(0);return t}var tC=(0,eS.y2)("color","table","preselect","border"),tS=(0,eS.y2)("color","table","preselect","controller"),tM=new l.H$("remirrorTableControllerPluginKey"),tO=class{constructor(e){this.action=e,this.values={tableNodeResult:null,preselectTable:!1,preselectColumn:-1,preselectRow:-1,predelete:!1,insertButtonAttrs:null,...e}}apply(e){this.values.tableNodeResult=(0,i.Tr)({types:"table",selection:e.selection});let t=e.getMeta(tM);return t?new tO({...this.values,...t}):this}};function tA(e,t){return e.setMeta(tM,t)}function t_({schema:e,getMap:t,table:n}){let r=e.nodes.tableControllerCell.create(),o=function(e,t){let n=[];for(let r=0;r<t;r++)n.push(e);return n}(r,t().width+1),i=e.nodes.tableRow.create({},o),a=[i],l=n.content;l.forEach(t=>{if(t.content.child(0).type===e.nodes.tableControllerCell){a.push(t.copy());return}let n=t.content,o=s.HY.from(r).append(n),i=t.copy(o);a.push(i)});let u=s.HY.fromArray(a),c=n.copy(u);return c.attrs={...c.attrs,isControllersInjected:!0},c}function tT(e){return(t,n,...r)=>{let o=n();if(o)return e(t,o,...r)}}var tR=tT((e,t,n)=>{var r;let o=m.get(t.node),i=tI(o,n,0),a=e.state.tr,l=o.map[i+1],s=t.pos+l+1,u=a.doc.resolve(s),c=O.rowSelection(u);a=a.setSelection(c),e.dispatch(a)}),tz=tT((e,t,n)=>{var r;let o=m.get(t.node),i=tI(o,0,n),a=e.state.tr,l=o.map[i],s=t.pos+l+1,u=a.doc.resolve(s),c=O.colSelection(u);a=a.setSelection(c),e.dispatch(a)}),tL=tT((e,t)=>{let n=m.get(t.node);if(n.map.length>0){var r;let o=e.state.tr,i=n.map[0],a=n.map[n.map.length-1],l=t.pos+i+1,s=t.pos+a+1,u=o.doc.resolve(l),c=o.doc.resolve(s),d=new O(u,c);o=o.setSelection(d),e.dispatch(o)}});function tI(e,t,n){return e.width*t+n}function tH(e,t){let n=ty(t.target);if(!n)return null;let r=n.getBoundingClientRect();return function(e,t){let n=e.posAtCoords(t);if(!n)return null;let r=y(e.state.doc.resolve(n.pos));if(!r)return null;let o=m.get(r.node(-1)),i=r.start(-1),a=o.findCell(r.pos-i),{left:l,top:s}=a;return{col:l,row:s}}(e,{left:r.left+1,top:r.top+1})}a.sX.create({hasChanged:a.Xf,getActive(e){let{state:t}=e,{selection:n}=t;if(eE(n)){var r;let o=(r=n,r.isRowSelection()?r.isColSelection()?3:1:r.isColSelection()?2:4);if(2===o||1===o){let l=(0,i.Tr)({types:"table",selection:n});if(l){let s={tableResult:l,cellSelectionType:o,anchorCellPos:n.$anchorCell.pos,headCellPos:n.$headCell.pos};return[s]}}}return a.sX.EMPTY},getPosition(e){let{view:t,data:n}=e,r=t.nodeDOM(n.anchorCellPos),o=t.nodeDOM(n.headCellPos);if(!r||!o||!(0,i.jd)(r)||!(0,i.jd)(o))return a.oI;let l=m.get(n.tableResult.node);if(2===n.cellSelectionType&&l.width<=2||1===n.cellSelectionType&&l.height<=2)return a.oI;let s=r.getBoundingClientRect(),u=o.getBoundingClientRect(),c=(0,i.d3)(s,u),d=t.dom.getBoundingClientRect(),p=c.height,h=c.width,f=t.dom.scrollLeft+c.left-d.left,g=t.dom.scrollTop+c.top-d.top,v=(0,a.kl)(c,t.dom);return 1===n.cellSelectionType?{rect:c,visible:v,height:0,width:0,x:f-16,y:g+p/2}:{rect:c,visible:v,height:0,width:0,x:f+h/2,y:g-16}}}),a.sX.create({hasChanged:a.Xf,getActive(e){let{selection:t}=e.state,n=(0,i.Tr)({types:"table",selection:t});return n?[{tableResult:n}]:a.sX.EMPTY},getPosition(e){let{view:t,data:n}=e,{node:r,pos:o}=n.tableResult,l=m.get(r),s=t.nodeDOM(o+l.map[0]+1),u=t.nodeDOM(o+(0,ek.Z$)(l.map)+1);if(!s||!u||!(0,i.jd)(s)||!(0,i.jd)(u))return a.oI;let c=(0,i.d3)(s.getBoundingClientRect(),u.getBoundingClientRect()),d=t.dom.getBoundingClientRect(),p=t.dom.scrollLeft+c.left-d.left,h=t.dom.scrollTop+c.top-d.top,f=(0,a.kl)(c,t.dom);return{rect:c,visible:f,height:0,width:0,x:p+c.width/2,y:h+c.height+16}}});var tN=({isTopLeft:e,view:t,findTable:n})=>{let r=(0,eO.h)("div",{className:eS.UV.TABLE_CONTROLLER_TRIGGER_AREA,onMouseEnter(o){let i=tH(t,o);if(i){let a;i.row>0?a=e?3:4:i.col>0&&(a=e?1:2),a&&function(e,t,n,r,o){let i=null==e?void 0:e.getBoundingClientRect();if(!i||!(i.width||i.height))return;let a=t();if(!a)return;let l=function(e,t,n,r){let{row:o,col:i}=r,a=function(e,t){let n=t.getBoundingClientRect();return{x:e.x+t.scrollLeft-n.left,y:e.y+t.scrollTop-n.top}}(t,n);switch(e){case 1:return{triggerRect:t,x:a.x-1,y:a.y+12,row:-1,col:i};case 2:return{triggerRect:t,x:a.x+t.width,y:a.y+12,row:-1,col:i+1};case 3:return{triggerRect:t,x:a.x+12,y:a.y+5-1,row:o,col:-1};default:return{triggerRect:t,x:a.x+12,y:a.y+5+t.height,row:o+1,col:-1}}}(n,i,o.dom,r);o.dispatch(th(o.state.tr,a.pos,{insertButtonAttrs:l}))}(r,n,a,i,t)}}});return r},tP=({view:e,findTable:t})=>[tN({view:e,findTable:t,isTopLeft:!0}),tN({view:e,findTable:t,isTopLeft:!1})],tD=()=>[(0,eO.h)("div",{className:eS.UV.TABLE_CONTROLLER_MARK_ROW_CORNER}),(0,eO.h)("div",{className:eS.UV.TABLE_CONTROLLER_MARK_COLUMN_CORNER})],tj=({view:e,getPos:t,contentDOM:n})=>{let r=()=>(0,i.Tr)({types:"table",selection:e.state.doc.resolve(t())}),o=function({view:e,findTable:t}){return{onClick(n){let r=tH(e,n);r&&(r.row>0?tR(e,t,r.row):r.col>0?tz(e,t,r.col):tL(e,t))},onMouseEnter(t){let n=tH(e,t);n&&(n.row>0?function(e,t){e.dispatch(tA(e.state.tr,{preselectRow:t}))}(e,n.row):n.col>0?function(e,t){e.dispatch(tA(e.state.tr,{preselectColumn:t}))}(e,n.col):function(e,t){e.dispatch(tA(e.state.tr,{preselectTable:t}))}(e,!0))},onMouseLeave(){!function(e){var t;e.dispatch(tA(t=e.state.tr,{preselectRow:-1,preselectColumn:-1,preselectTable:!1,predelete:!1}))}(e)}}}({view:e,findTable:r}),a=e.editable?[...tP({view:e,findTable:r}),...tD()]:[],l=(0,eO.h)("div",{contentEditable:"false",className:eS.UV.TABLE_CONTROLLER_WRAPPER},n,...a);return(0,eO.h)("th",{contentEditable:"false",className:`${eS.UV.TABLE_CONTROLLER} ${eS.UV.CONTROLLERS_TOGGLE}`,dataset:{controllerCell:""},...o},l)},tB=class{constructor(e,t,n){this.node=e,this.view=t,this.getPos=n,this.contentDOM=(0,eO.h)("div",{contentEditable:!1}),this.dom=tj({view:t,getPos:n,contentDOM:this.contentDOM})}ignoreMutation(){return!0}stopEvent(){return!0}},tF=class extends e2{get name(){return"table"}createNodeViews(){return(e,t,n,r)=>new tf(e,10,r,t,n)}createExternalPlugins(){let e=[];if(this.store.isMounted()&&!1===this.store.helpers.isViewEditable())return e;let{resizable:t,resizeableOptions:n}=this.options;return t&&e.push(function({handleWidth:e=5,cellMinWidth:t=25,View:n=tf,lastColumnResizable:r=!0,firstResizableColumn:o=0}={}){return new l.Sy({key:tv,state:{init:(e,t)=>new tb(-1,!1),apply:(e,t)=>t.apply(e)},props:{attributes:e=>tv.getState(e).activeHandle>-1?{class:"resize-cursor"}:null,handleDOMEvents:{mousemove(n,i){(function(e,t,n,r,o,i){let a=tv.getState(e.state);if(!a.dragging){let l=ty(t.target),s=-1;if(l){let{left:u,right:c}=l.getBoundingClientRect();t.clientX-u<=n?s=tx(e,t,"left"):c-t.clientX<=n&&(s=tx(e,t,"right"))}if(s!=a.activeHandle){if(-1!==s){let d=e.state.doc.resolve(s),p=d.node(-1),h=m.get(p),f=d.start(-1),g=h.colCount(d.pos-f)+d.nodeAfter.attrs.colspan-1;if(g<i||!o&&g==h.width-1)return}tE(e,s)}}})(n,i,e,t,r,o)},mouseleave(e){var t;let n;t=e,n=tv.getState(t.state),n.activeHandle>-1&&!n.dragging&&tE(t,-1)},mousedown(e,n){(function(e,t,n){let r=tv.getState(e.state);if(-1==r.activeHandle||r.dragging)return!1;let o=e.state.doc.nodeAt(r.activeHandle),i=function(e,t,{colspan:n,colwidth:r}){let o=r&&r[r.length-1];if(o)return o;let i=e.domAtPos(t),a=i.node.childNodes[i.offset].offsetWidth,l=n;if(r)for(let s=0;s<n;s++)r[s]&&(a-=r[s],l--);return a/l}(e,r.activeHandle,o.attrs);function a(t){window.removeEventListener("mouseup",a),window.removeEventListener("mousemove",l);let r=tv.getState(e.state);r.dragging&&(function(e,t,n){let r=e.state.doc.resolve(t),o=r.node(-1),i=m.get(o),a=r.start(-1),l=i.colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1,s=e.state.tr;for(let u=0;u<i.height;u++){let c=u*i.width+l;if(u&&i.map[c]==i.map[c-i.width])continue;let d=i.map[c],{attrs:p}=o.nodeAt(d),h=1==p.colspan?0:l-i.colCount(d);if(p.colwidth&&p.colwidth[h]==n)continue;let f=p.colwidth?p.colwidth.slice():tk(p.colspan);f[h]=n,s.setNodeMarkup(a+d,null,tg(p,"colwidth",f))}s.docChanged&&e.dispatch(s)}(e,r.activeHandle,tw(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(tv,{setDragging:null})))}function l(t){if(!t.which)return a(t);let r=tv.getState(e.state),o=tw(r.dragging,t,n);(function(e,t,n,r){let o=e.state.doc.resolve(t),i=o.node(-1),a=o.start(-1),l=m.get(i).colCount(o.pos-a)+o.nodeAfter.attrs.colspan-1,s=e.domAtPos(o.start(-1)).node;for(;"TABLE"!=s.nodeName;)s=s.parentNode;K(i,s.firstChild,s,r,l,n)})(e,r.activeHandle,o,n)}e.dispatch(e.state.tr.setMeta(tv,{setDragging:{startX:t.clientX,startWidth:i}})),window.addEventListener("mouseup",a),window.addEventListener("mousemove",l),t.preventDefault()})(e,n,t)}},decorations(e){let t=tv.getState(e);if(t.activeHandle>-1)return function(e,t){let n=[],r=e.doc.resolve(t),o=r.node(-1),i=m.get(o),a=r.start(-1),l=i.colCount(r.pos-a)+r.nodeAfter.attrs.colspan;for(let s=0;s<i.height;s++){let c=l+s*i.width-1;if((l==i.width||i.map[c]!=i.map[c+1])&&(0==s||i.map[c-1]!=i.map[c-1-i.width])){let d=i.map[c],p=a+d+o.nodeAt(d).nodeSize-1,h=document.createElement("div");h.className="column-resize-handle",n.push(u.p.widget(p,h))}}return u.EH.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}})}({...n,firstResizableColumn:1})),e.push(ew(),new l.Sy({key:tM,state:{init:()=>new tO({}),apply:(e,t)=>t.apply(e)},props:{decorations(e){let t=tM.getState(e);if(!t)return null;let{tableNodeResult:n,predelete:r,preselectTable:o}=t.values;if(n){let i=function e(t){let n=eN`
    /* Make the border-style 'double' instead of 'solid'. This works because 'double' has a higher priority than 'solid' */
    border-style: double;
    border-color: ${tC};
  `,r=eN`
    ${n}
    background-color: ${tS};
  `,o="";return -1!==t.preselectColumn?o=eN`
      & table.${eS.UV.TABLE} tbody tr {
        th,
        td {
          &:nth-child(${t.preselectColumn+1}) {
            ${n};
          }
        }
        th.${eS.UV.TABLE_CONTROLLER}:nth-child(${t.preselectColumn+1}) {
          ${r}
        }
      }
    `:-1!==t.preselectRow?o=eN`
      & table.${eS.UV.TABLE} tbody tr:nth-child(${t.preselectRow+1}) {
        td,
        th {
          ${n};
        }
        th.${eS.UV.TABLE_CONTROLLER} {
          ${r}
        }
      }
    `:t.preselectTable&&(o=eN`
      &.${eS.UV.TABLE_PRESELECT_ALL} table.${eS.UV.TABLE} tbody tr {
        td,
        th {
          ${n};
        }
        th.${eS.UV.TABLE_CONTROLLER} {
          ${r}
        }
      }
    `),o}(t.values),a=`${eS.UV.TABLE_SHOW_CONTROLLERS} ${i}`;o&&(a+=` ${eS.UV.TABLE_PRESELECT_ALL}`),r&&(a+=` ${eS.UV.TABLE_SHOW_PREDELETE}`);let l=[u.p.node(n.pos,n.end,{class:a})];return u.EH.create(e.doc,l)}return null}}})),e}createNodeSpec(e){let t={isolating:!0,attrs:{...e.defaults(),isControllersInjected:{default:!1},insertButtonAttrs:{default:null}},content:"tableRow+",tableRole:"table",parseDOM:[{tag:"table",getAttrs:t=>(0,i.jd)(t)?{...e.parse(t),isControllersInjected:t.hasAttribute("data-controllers-injected")}:{}}],toDOM(t){let n={};return t.attrs.isControllersInjected&&(n["data-controllers-injected"]=""),["table",{...e.dom(t),...n},["tbody",0]]},allowGapCursor:!1};return t}createExtensions(){return[new tV({priority:eP.xV.Low})]}onView(e){super.onView(e);let t=this.store.schema;t.cached.tableNodeTypes={cell:t.nodes.tableCell,row:t.nodes.tableRow,table:t.nodes.table,header_cell:t.nodes.tableHeaderCell};let{dispatch:n,state:{doc:r,tr:o}}=e,a=(0,i.N2)({node:r,predicate:({node:{type:e,attrs:n}})=>e===t.nodes.table&&!1===n.isControllersInjected});if(0!==a.length){for(let{node:l,pos:s}of a){let u=t_({schema:t,getMap:()=>m.get(l),table:l});(0,i.IY)({pos:s,tr:o,content:u})}n(o.setMeta("addToHistory",!1))}}createTable(e={}){return t=>{let{tr:n,dispatch:r,state:o}=t;if(!n.selection.empty)return!1;let{schema:i}=o,a=n.selection.anchor+1,s=eY({schema:i,...e}),u=t_({schema:i,getMap:()=>m.get(s),table:s});return null==r||r(n.replaceSelectionWith(u).scrollIntoView().setSelection(l.Bs.near(n.doc.resolve(a)))),!0}}addTableColumnBefore(){return(0,eD.A_)(ta)}addTableColumnAfter(){return(0,eD.A_)(tl)}addTableRowBefore(){return(0,eD.A_)(tu)}addTableRowAfter(){return(0,eD.A_)(tc)}createPlugin(){return{appendTransaction(e,t,n){let r=(0,i.PZ)(e,t),{schema:o,tr:a}=n,l=(0,i.qh)(r,{predicate:({type:e})=>e===o.nodes.table});if(0!==l.length){for(let{node:s,pos:u}of l){if(s.attrs.isControllersInjected)continue;let c=t_({schema:o,getMap:()=>m.get(s),table:s});(0,i.IY)({pos:u,tr:a,content:c})}return a.steps.length>0?a:void 0}}}}};tr([(0,ej.WDe)(e0)],tF.prototype,"createTable",1),tr([(0,ej.WDe)()],tF.prototype,"addTableColumnBefore",1),tr([(0,ej.WDe)()],tF.prototype,"addTableColumnAfter",1),tr([(0,ej.WDe)()],tF.prototype,"addTableRowBefore",1),tr([(0,ej.WDe)()],tF.prototype,"addTableRowAfter",1);var tV=class extends e5{get name(){return"tableRow"}createNodeSpec(e,t){let n=super.createNodeSpec(e,t);return n.content="(tableCell | tableHeaderCell | tableControllerCell)*",n.toDOM=t=>["tr",e.dom(t),0],n.allowGapCursor=!1,n}createExtensions(){return[new tW({priority:eP.xV.Low}),new tU({priority:eP.xV.Medium}),new t$({priority:eP.xV.Low})]}},t$=class extends e3{get name(){return"tableHeaderCell"}createNodeSpec(e,t){let n=super.createNodeSpec(e,t);return n.attrs={...n.attrs},n.allowGapCursor=!1,n}},tW=class extends e4{get name(){return"tableCell"}createNodeSpec(e,t){let n=super.createNodeSpec(e,t);return n.allowGapCursor=!1,n}},tU=class extends e7{createNodeSpec(e){let t={...e.defaults(),colspan:{default:1},rowspan:{default:1},colwidth:{default:null},background:{default:null}};return{atom:!0,isolating:!0,content:"block*",attrs:t,tableRole:"header_cell",parseDOM:[{tag:"th[data-controller-cell]"}],toDOM:()=>["th",{"data-controller-cell":""},0],allowGapCursor:!1}}createNodeViews(){return(e,t,n)=>new tB(e,t,n)}createExtensions(){return[]}createPlugin(){return{filterTransaction:e=>{let t=(0,i.qh)(e,{descend:!0,predicate:e=>e.type===this.type&&""!==e.textContent});return 0===t.length}}}}},72407:function(e,t,n){"use strict";n.d(t,{V:function(){return c}});var r=n(50697),o=n(38756),i=n(71688),a=n(75114),l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?s(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&l(t,n,i),i},c=class extends r.uS7{get name(){return"strike"}createTags(){return[o.eX.FontStyle,o.eX.FormattingMark]}createMarkSpec(e,t){return{...t,attrs:e.defaults(),parseDOM:[{tag:"s",getAttrs:e.parse},{tag:"del",getAttrs:e.parse},{tag:"strike",getAttrs:e.parse},{style:"text-decoration",getAttrs:e=>"line-through"===e&&{}},...t.parseDOM??[]],toDOM:t=>["s",e.dom(t),0]}}toggleStrike(){return(0,r.w9d)({type:this.type})}shortcut(e){return this.toggleStrike()(e)}createInputRules(){return[(0,i.Cf)({regexp:/~([^~]+)~$/,type:this.type,ignoreWhitespace:!0})]}createPasteRules(){return[{regexp:/~([^~]+)~/g,type:"mark",markType:this.type}]}};u([(0,r.WDe)({icon:"strikethrough",label:({t:e})=>e(a.Mo.LABEL),description:({t:e})=>e(a.Mo.DESCRIPTION)})],c.prototype,"toggleStrike",1),u([(0,r.IGC)({shortcut:o.vO.Strike,command:"toggleStrike"})],c.prototype,"shortcut",1),c=u([(0,r.AOx)({})],c)},43152:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(50697),o=n(38756),i=n(75114),a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?l(t,n):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&a(t,n,i),i},u=class extends r.uS7{get name(){return"underline"}createTags(){return[o.eX.FontStyle,o.eX.FormattingMark]}createMarkSpec(e,t){return{...t,attrs:e.defaults(),parseDOM:[{tag:"u",getAttrs:e.parse},{style:"text-decoration",getAttrs:e=>"underline"===e&&{}},...t.parseDOM??[]],toDOM:t=>["u",e.dom(t),0]}}toggleUnderline(e){return(0,r.w9d)({type:this.type,selection:e})}shortcut(e){return this.toggleUnderline()(e)}};s([(0,r.WDe)({icon:"underline",label:({t:e})=>e(i.bA.LABEL),description:({t:e})=>e(i.bA.DESCRIPTION)})],u.prototype,"toggleUnderline",1),s([(0,r.IGC)({shortcut:o.vO.Underline,command:"toggleUnderline"})],u.prototype,"shortcut",1),u=s([(0,r.AOx)({})],u)},25535:function(e,t,n){"use strict";n.r(t),n.d(t,{ab:function(){return r},addFill:function(){return o},addLine:function(){return i},alertLine:function(){return a},alignBottom:function(){return l},alignCenter:function(){return s},alignJustify:function(){return u},alignLeft:function(){return c},alignRight:function(){return d},alignTop:function(){return p},alignVertically:function(){return h},appsLine:function(){return f},arrowDownSFill:function(){return m},arrowGoBackFill:function(){return g},arrowGoForwardFill:function(){return v},arrowLeftSFill:function(){return b},arrowRightSFill:function(){return y},arrowUpSFill:function(){return x},asterisk:function(){return w},attachment2:function(){return E},bold:function(){return k},bracesLine:function(){return C},bringForward:function(){return S},bringToFront:function(){return M},chatNewLine:function(){return O},checkboxCircleLine:function(){return A},checkboxMultipleLine:function(){return _},clipboardFill:function(){return T},clipboardLine:function(){return R},closeCircleLine:function(){return z},closeFill:function(){return L},closeLine:function(){return I},codeLine:function(){return H},codeView:function(){return N},deleteBinFill:function(){return P},deleteBinLine:function(){return D},deleteColumn:function(){return j},deleteRow:function(){return B},doubleQuotesL:function(){return F},doubleQuotesR:function(){return V},download2Fill:function(){return $},dragDropLine:function(){return W},emphasis:function(){return Z},emphasisCn:function(){return U},englishInput:function(){return G},errorWarningLine:function(){return K},externalLinkFill:function(){return Y},fileCopyLine:function(){return q},flowChart:function(){return X},fontColor:function(){return J},fontSize:function(){return ee},fontSize2:function(){return Q},formatClear:function(){return et},fullscreenExitLine:function(){return en},fullscreenLine:function(){return er},functions:function(){return eo},galleryUploadLine:function(){return ei},h1:function(){return ea},h2:function(){return el},h3:function(){return es},h4:function(){return eu},h5:function(){return ec},h6:function(){return ed},hashtag:function(){return ep},heading:function(){return eh},imageAddLine:function(){return ef},imageEditLine:function(){return em},imageLine:function(){return eg},indentDecrease:function(){return ev},indentIncrease:function(){return eb},informationLine:function(){return ey},inputCursorMove:function(){return ex},insertColumnLeft:function(){return ew},insertColumnRight:function(){return eE},insertRowBottom:function(){return ek},insertRowTop:function(){return eC},italic:function(){return eS},layoutColumnLine:function(){return eM},lineHeight:function(){return eO},link:function(){return eR},linkM:function(){return eA},linkUnlink:function(){return eT},linkUnlinkM:function(){return e_},listCheck:function(){return eL},listCheck2:function(){return ez},listOrdered:function(){return eI},listUnordered:function(){return eH},markPenLine:function(){return eN},markdownFill:function(){return eP},markdownLine:function(){return eD},mergeCellsHorizontal:function(){return ej},mergeCellsVertical:function(){return eB},mindMap:function(){return eF},moreFill:function(){return eV},nodeTree:function(){return e$},number0:function(){return eW},number1:function(){return eU},number2:function(){return eZ},number3:function(){return eG},number4:function(){return eK},number5:function(){return eY},number6:function(){return eq},number7:function(){return eX},number8:function(){return eJ},number9:function(){return eQ},omega:function(){return e0},organizationChart:function(){return e1},pageSeparator:function(){return e2},paragraph:function(){return e5},pencilFill:function(){return e4},pencilLine:function(){return e3},pinyinInput:function(){return e7},questionMark:function(){return e6},roundedCorner:function(){return e8},scissorsFill:function(){return e9},sendBackward:function(){return te},sendToBack:function(){return tt},separator:function(){return tn},singleQuotesL:function(){return tr},singleQuotesR:function(){return to},sortAsc:function(){return ti},sortDesc:function(){return ta},space:function(){return tl},spamLine:function(){return ts},splitCellsHorizontal:function(){return tu},splitCellsVertical:function(){return tc},strikethrough:function(){return tp},strikethrough2:function(){return td},subscript:function(){return tf},subscript2:function(){return th},subtractLine:function(){return tm},superscript:function(){return tv},superscript2:function(){return tg},table2:function(){return tb},tableLine:function(){return ty},text:function(){return tC},textDirectionL:function(){return tx},textDirectionR:function(){return tw},textSpacing:function(){return tE},textWrap:function(){return tk},translate:function(){return tM},translate2:function(){return tS},underline:function(){return tO},upload2Fill:function(){return tA},videoLine:function(){return t_},wubiInput:function(){return tT}});var r=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 15v2c0 1.054.95 2 2 2h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM3 3h6a3 3 0 0 1 2.235 5A3 3 0 0 1 9 13H3V3zm6 6H5v2h4a1 1 0 0 0 0-2zm8-6a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM9 5H5v2h4a1 1 0 1 0 0-2z"}}],o=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"}}],i=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"}}],a=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M12.866 3l9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0zm-8.66 16h15.588L12 5.5 4.206 19zM11 16h2v2h-2v-2zm0-7h2v5h-2V9z"}}],l=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 19h18v2H3v-2zm5-6h3l-4 4-4-4h3V3h2v10zm10 0h3l-4 4-4-4h3V3h2v10z"}}],s=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm2 15h14v2H5v-2zm-2-5h18v2H3v-2zm2-5h14v2H5V9z"}}],u=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm0 15h18v2H3v-2zm0-5h18v2H3v-2zm0-5h18v2H3V9z"}}],c=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm0 15h14v2H3v-2zm0-5h18v2H3v-2zm0-5h14v2H3V9z"}}],d=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm4 15h14v2H7v-2zm-4-5h18v2H3v-2zm4-5h14v2H7V9z"}}],p=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 3h18v2H3V3zm5 8v10H6V11H3l4-4 4 4H8zm10 0v10h-2V11h-3l4-4 4 4h-3z"}}],h=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 11h18v2H3v-2zm15 7v3h-2v-3h-3l4-4 4 4h-3zM8 18v3H6v-3H3l4-4 4 4H8zM18 6h3l-4 4-4-4h3V3h2v3zM8 6h3l-4 4-4-4h3V3h2v3z"}}],f=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6.75 2.5A4.25 4.25 0 0 1 11 6.75V11H6.75a4.25 4.25 0 1 1 0-8.5zM9 9V6.75A2.25 2.25 0 1 0 6.75 9H9zm-2.25 4H11v4.25A4.25 4.25 0 1 1 6.75 13zm0 2A2.25 2.25 0 1 0 9 17.25V15H6.75zm10.5-12.5a4.25 4.25 0 1 1 0 8.5H13V6.75a4.25 4.25 0 0 1 4.25-4.25zm0 6.5A2.25 2.25 0 1 0 15 6.75V9h2.25zM13 13h4.25A4.25 4.25 0 1 1 13 17.25V13zm2 2v2.25A2.25 2.25 0 1 0 17.25 15H15z"}}],m=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 16l-6-6h12z"}}],g=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 7v4L2 6l6-5v4h5a8 8 0 1 1 0 16H4v-2h9a6 6 0 1 0 0-12H8z"}}],v=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 7h-5a6 6 0 1 0 0 12h9v2h-9a8 8 0 1 1 0-16h5V1l6 5-6 5V7z"}}],b=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 12l6-6v12z"}}],y=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 12l-6 6V6z"}}],x=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8l6 6H6z"}}],w=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 3v7.267l6.294-3.633 1 1.732-6.293 3.633 6.293 3.635-1 1.732L13 13.732V21h-2v-7.268l-6.294 3.634-1-1.732L9.999 12 3.706 8.366l1-1.732L11 10.267V3z"}}],E=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14.828 7.757l-5.656 5.657a1 1 0 1 0 1.414 1.414l5.657-5.656A3 3 0 1 0 12 4.929l-5.657 5.657a5 5 0 1 0 7.071 7.07L19.071 12l1.414 1.414-5.657 5.657a7 7 0 1 1-9.9-9.9l5.658-5.656a5 5 0 0 1 7.07 7.07L12 16.244A3 3 0 1 1 7.757 12l5.657-5.657 1.414 1.414z"}}],k=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 11h4.5a2.5 2.5 0 1 0 0-5H8v5zm10 4.5a4.5 4.5 0 0 1-4.5 4.5H6V4h6.5a4.5 4.5 0 0 1 3.256 7.606A4.498 4.498 0 0 1 18 15.5zM8 13v5h5.5a2.5 2.5 0 1 0 0-5H8z"}}],C=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 18v-3.7a1.5 1.5 0 0 0-1.5-1.5H2v-1.6h.5A1.5 1.5 0 0 0 4 9.7V6a3 3 0 0 1 3-3h1v2H7a1 1 0 0 0-1 1v4.1A2 2 0 0 1 4.626 12 2 2 0 0 1 6 13.9V18a1 1 0 0 0 1 1h1v2H7a3 3 0 0 1-3-3zm16-3.7V18a3 3 0 0 1-3 3h-1v-2h1a1 1 0 0 0 1-1v-4.1a2 2 0 0 1 1.374-1.9A2 2 0 0 1 18 10.1V6a1 1 0 0 0-1-1h-1V3h1a3 3 0 0 1 3 3v3.7a1.5 1.5 0 0 0 1.5 1.5h.5v1.6h-.5a1.5 1.5 0 0 0-1.5 1.5z"}}],S=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M14 3c.552 0 1 .448 1 1v5h5c.552 0 1 .448 1 1v10c0 .552-.448 1-1 1H10c-.552 0-1-.448-1-1v-5H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h10zm-1 2H5v8h8V5z"}}],M=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M11 3c.552 0 1 .448 1 1v2h5c.552 0 1 .448 1 1v5h2c.552 0 1 .448 1 1v7c0 .552-.448 1-1 1h-7c-.552 0-1-.448-1-1v-2H7c-.552 0-1-.448-1-1v-5H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h7zm5 5H8v8h8V8z"}}],O=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14 3v2H4v13.385L5.763 17H20v-7h2v8a1 1 0 0 1-1 1H6.455L2 22.5V4a1 1 0 0 1 1-1h11zm5 0V0h2v3h3v2h-3v3h-2V5h-3V3h3z"}}],A=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-.997-4L6.76 11.757l1.414-1.414 2.829 2.829 5.656-5.657 1.415 1.414L11.003 16z"}}],_=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M7 7V3a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-4v3.993c0 .556-.449 1.007-1.007 1.007H3.007A1.006 1.006 0 0 1 2 20.993l.003-12.986C2.003 7.451 2.452 7 3.01 7H7zm2 0h6.993C16.549 7 17 7.449 17 8.007V15h3V4H9v3zm6 2H4.003L4 20h11V9zm-6.497 9l-3.536-3.536 1.414-1.414 2.122 2.122 4.242-4.243 1.414 1.414L8.503 18z"}}],T=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 4v4h12V4h2.007c.548 0 .993.445.993.993v16.014a.994.994 0 0 1-.993.993H3.993A.994.994 0 0 1 3 21.007V4.993C3 4.445 3.445 4 3.993 4H6zm2-2h8v4H8V2z"}}],R=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 4V2h10v2h3.007c.548 0 .993.445.993.993v16.014a.994.994 0 0 1-.993.993H3.993A.994.994 0 0 1 3 21.007V4.993C3 4.445 3.445 4 3.993 4H7zm0 2H5v14h14V6h-2v2H7V6zm2-2v2h6V4H9z"}}],z=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-9.414l2.828-2.829 1.415 1.415L13.414 12l2.829 2.828-1.415 1.415L12 13.414l-2.828 2.829-1.415-1.415L10.586 12 7.757 9.172l1.415-1.415L12 10.586z"}}],L=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"}}],I=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"}}],H=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M23 12l-7.071 7.071-1.414-1.414L20.172 12l-5.657-5.657 1.414-1.414L23 12zM3.828 12l5.657 5.657-1.414 1.414L1 12l7.071-7.071 1.414 1.414L3.828 12z"}}],N=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.95 8.464l1.414-1.414 4.95 4.95-4.95 4.95-1.414-1.414L20.485 12 16.95 8.464zm-9.9 0L3.515 12l3.535 3.536-1.414 1.414L.686 12l4.95-4.95L7.05 8.464z"}}],P=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3zm-8 5v6h2v-6H9zm4 0v6h2v-6h-2zM9 4v2h6V4H9z"}}],D=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3zm1 2H6v12h12V8zm-9 3h2v6H9v-6zm4 0h2v6h-2v-6zM9 4v2h6V4H9z"}}],j=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M12 3c.552 0 1 .448 1 1v8c.835-.628 1.874-1 3-1 2.761 0 5 2.239 5 5s-2.239 5-5 5c-1.032 0-1.99-.313-2.787-.848L13 20c0 .552-.448 1-1 1H6c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h6zm-1 2H7v14h4V5zm8 10h-6v2h6v-2z"}}],B=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 5c.552 0 1 .448 1 1v6c0 .552-.448 1-1 1 .628.835 1 1.874 1 3 0 2.761-2.239 5-5 5s-5-2.239-5-5c0-1.126.372-2.165 1-3H4c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1h16zm-7 10v2h6v-2h-6zm6-8H5v4h14V7z"}}],F=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4.583 17.321C3.553 16.227 3 15 3 13.011c0-3.5 2.457-6.637 6.03-8.188l.893 1.378c-3.335 1.804-3.987 4.145-4.247 5.621.537-.278 1.24-.375 1.929-.311 1.804.167 3.226 1.648 3.226 3.489a3.5 3.5 0 0 1-3.5 3.5c-1.073 0-2.099-.49-2.748-1.179zm10 0C13.553 16.227 13 15 13 13.011c0-3.5 2.457-6.637 6.03-8.188l.893 1.378c-3.335 1.804-3.987 4.145-4.247 5.621.537-.278 1.24-.375 1.929-.311 1.804.167 3.226 1.648 3.226 3.489a3.5 3.5 0 0 1-3.5 3.5c-1.073 0-2.099-.49-2.748-1.179z"}}],V=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19.417 6.679C20.447 7.773 21 9 21 10.989c0 3.5-2.457 6.637-6.03 8.188l-.893-1.378c3.335-1.804 3.987-4.145 4.247-5.621-.537.278-1.24.375-1.929.311-1.804-.167-3.226-1.648-3.226-3.489a3.5 3.5 0 0 1 3.5-3.5c1.073 0 2.099.49 2.748 1.179zm-10 0C10.447 7.773 11 9 11 10.989c0 3.5-2.457 6.637-6.03 8.188l-.893-1.378c3.335-1.804 3.987-4.145 4.247-5.621-.537.278-1.24.375-1.929.311C4.591 12.322 3.17 10.841 3.17 9a3.5 3.5 0 0 1 3.5-3.5c1.073 0 2.099.49 2.748 1.179z"}}],$=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 19h16v-7h2v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-8h2v7zM14 9h5l-7 7-7-7h5V3h4v6z"}}],W=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M16 13l6.964 4.062-2.973.85 2.125 3.681-1.732 1-2.125-3.68-2.223 2.15L16 13zm-2-7h2v2h5a1 1 0 0 1 1 1v4h-2v-3H10v10h4v2H9a1 1 0 0 1-1-1v-5H6v-2h2V9a1 1 0 0 1 1-1h5V6zM4 14v2H2v-2h2zm0-4v2H2v-2h2zm0-4v2H2V6h2zm0-4v2H2V2h2zm4 0v2H6V2h2zm4 0v2h-2V2h2zm4 0v2h-2V2h2z"}}],U=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 19a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm-5.5 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm11 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zM13 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.621 6.302 14.685 14.685 0 0 0 5.327 3.042l-.536 1.93A16.685 16.685 0 0 1 12 13.726a16.696 16.696 0 0 1-6.202 3.547l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042 18.077 18.077 0 0 1-2.822-4.3h2.24A16.031 16.031 0 0 0 12 10.876a16.168 16.168 0 0 0 2.91-4.876L5 6V4h6V2h2z"}}],Z=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 19a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm-5.5 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm11 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zM18 3v2H8v4h9v2H8v4h10v2H6V3h12z"}}],G=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14 10h2v.757a4.5 4.5 0 0 1 7 3.743V20h-2v-5.5c0-1.43-1.175-2.5-2.5-2.5S16 13.07 16 14.5V20h-2V10zm-2-6v2H4v5h8v2H4v5h8v2H2V4h10z"}}],K=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-1-5h2v2h-2v-2zm0-8h2v6h-2V7z"}}],Y=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm11-3v9l-3.794-3.793-5.999 6-1.414-1.414 5.999-6L12 3h9z"}}],q=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1.001 1.001 0 0 1 3 21l.003-14c0-.552.45-1 1.007-1H7zM5.003 8L5 20h10V8H5.003zM9 6h8v10h2V4H9v2z"}}],X=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M6 21.5c-1.933 0-3.5-1.567-3.5-3.5s1.567-3.5 3.5-3.5c1.585 0 2.924 1.054 3.355 2.5H15v-2h2V9.242L14.757 7H9V9H3V3h6v2h5.757L18 1.756 22.243 6 19 9.241V15L21 15v6h-6v-2H9.355c-.43 1.446-1.77 2.5-3.355 2.5zm0-5c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm13 .5h-2v2h2v-2zM18 4.586L16.586 6 18 7.414 19.414 6 18 4.586zM7 5H5v2h2V5z"}}],J=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.246 14H8.754l-1.6 4H5l6-15h2l6 15h-2.154l-1.6-4zm-.8-2L12 5.885 9.554 12h4.892zM3 20h18v2H3v-2z"}}],Q=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 6v15H8V6H2V4h14v2h-6zm8 8v7h-2v-7h-3v-2h8v2h-3z"}}],ee=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11.246 15H4.754l-2 5H.6L7 4h2l6.4 16h-2.154l-2-5zm-.8-2L8 6.885 5.554 13h4.892zM21 12.535V12h2v8h-2v-.535a4 4 0 1 1 0-6.93zM19 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"}}],et=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12.651 14.065L11.605 20H9.574l1.35-7.661-7.41-7.41L4.93 3.515 20.485 19.07l-1.414 1.414-6.42-6.42zm-.878-6.535l.27-1.53h-1.8l-2-2H20v2h-5.927L13.5 9.257 11.773 7.53z"}}],en=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z"}}],er=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 3h2v6h-2V5h-4V3h4zM4 3h4v2H4v4H2V3h2zm16 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z"}}],eo=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 18l7.68-6L5 6V4h14v2H8.263L16 12l-7.737 6H19v2H5v-2z"}}],ei=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 1v4H4v14h16V3h1.008c.548 0 .992.445.992.993v16.014a1 1 0 0 1-.992.993H2.992A.993.993 0 0 1 2 20.007V3.993A1 1 0 0 1 2.992 3H6V1h2zm4 7l4 4h-3v4h-2v-4H8l4-4zm6-7v4h-8V3h6V1h2z"}}],ea=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M13 20h-2v-7H4v7H2V4h2v7h7V4h2v16zm8-12v12h-2v-9.796l-2 .536V8.67L19.5 8H21z"}}],el=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M4 4v7h7V4h2v16h-2v-7H4v7H2V4h2zm14.5 4c2.071 0 3.75 1.679 3.75 3.75 0 .857-.288 1.648-.772 2.28l-.148.18L18.034 18H22v2h-7v-1.556l4.82-5.546c.268-.307.43-.709.43-1.148 0-.966-.784-1.75-1.75-1.75-.918 0-1.671.707-1.744 1.606l-.006.144h-2C14.75 9.679 16.429 8 18.5 8z"}}],es=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M22 8l-.002 2-2.505 2.883c1.59.435 2.757 1.89 2.757 3.617 0 2.071-1.679 3.75-3.75 3.75-1.826 0-3.347-1.305-3.682-3.033l1.964-.382c.156.806.866 1.415 1.718 1.415.966 0 1.75-.784 1.75-1.75s-.784-1.75-1.75-1.75c-.286 0-.556.069-.794.19l-1.307-1.547L19.35 10H15V8h7zM4 4v7h7V4h2v16h-2v-7H4v7H2V4h2z"}}],eu=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M13 20h-2v-7H4v7H2V4h2v7h7V4h2v16zm9-12v8h1.5v2H22v2h-2v-2h-5.5v-1.34l5-8.66H22zm-2 3.133L17.19 16H20v-4.867z"}}],ec=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M22 8v2h-4.323l-.464 2.636c.33-.089.678-.136 1.037-.136 2.21 0 4 1.79 4 4s-1.79 4-4 4c-1.827 0-3.367-1.224-3.846-2.897l1.923-.551c.24.836 1.01 1.448 1.923 1.448 1.105 0 2-.895 2-2s-.895-2-2-2c-.63 0-1.193.292-1.56.748l-1.81-.904L16 8h6zM4 4v7h7V4h2v16h-2v-7H4v7H2V4h2z"}}],ed=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M21.097 8l-2.598 4.5c2.21 0 4.001 1.79 4.001 4s-1.79 4-4 4-4-1.79-4-4c0-.736.199-1.426.546-2.019L18.788 8h2.309zM4 4v7h7V4h2v16h-2v-7H4v7H2V4h2zm14.5 10.5c-1.105 0-2 .895-2 2s.895 2 2 2 2-.895 2-2-.895-2-2-2z"}}],ep=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.784 14l.42-4H4V8h4.415l.525-5h2.011l-.525 5h3.989l.525-5h2.011l-.525 5H20v2h-3.784l-.42 4H20v2h-4.415l-.525 5h-2.011l.525-5H9.585l-.525 5H7.049l.525-5H4v-2h3.784zm2.011 0h3.99l.42-4h-3.99l-.42 4z"}}],eh=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 11V4h2v17h-2v-8H7v8H5V4h2v7z"}}],ef=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 15v3h3v2h-3v3h-2v-3h-3v-2h3v-3h2zm.008-12c.548 0 .992.445.992.993V13h-2V5H4v13.999L14 9l3 3v2.829l-3-3L6.827 19H14v2H2.992A.993.993 0 0 1 2 20.007V3.993A1 1 0 0 1 2.992 3h18.016zM8 7a2 2 0 1 1 0 4 2 2 0 0 1 0-4z"}}],em=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 3c.552 0 1 .448 1 1v1.757l-2 2V5H5v8.1l4-4 4.328 4.329-1.415 1.413L9 11.93l-4 3.999V19h10.533l.708.001 1.329-1.33L18.9 19h.1v-2.758l2-2V20c0 .552-.448 1-1 1H4c-.55 0-1-.45-1-1V4c0-.552.448-1 1-1h16zm1.778 4.808l1.414 1.414L15.414 17l-1.416-.002.002-1.412 7.778-7.778zM15.5 7c.828 0 1.5.672 1.5 1.5s-.672 1.5-1.5 1.5S14 9.328 14 8.5 14.672 7 15.5 7z"}}],eg=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4.828 21l-.02.02-.021-.02H2.992A.993.993 0 0 1 2 20.007V3.993A1 1 0 0 1 2.992 3h18.016c.548 0 .992.445.992.993v16.014a1 1 0 0 1-.992.993H4.828zM20 15V5H4v14L14 9l6 6zm0 2.828l-6-6L6.828 19H20v-1.172zM8 11a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"}}],ev=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm0 15h18v2H3v-2zm8-5h10v2H11v-2zm0-5h10v2H11V9zm-8 3.5L7 9v7l-4-3.5z"}}],eb=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm0 15h18v2H3v-2zm8-5h10v2H11v-2zm0-5h10v2H11V9zm-4 3.5L3 16V9l4 3.5z"}}],ey=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM11 7h2v2h-2V7zm0 4h2v6h-2v-6z"}}],ex=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 21v-2h3V5H8V3h8v2h-3v14h3v2H8zM18.05 7.05L23 12l-4.95 4.95-1.414-1.414L20.172 12l-3.536-3.536L18.05 7.05zm-12.1 0l1.414 1.414L3.828 12l3.536 3.536L5.95 16.95 1 12l4.95-4.95z"}}],ew=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 3c.552 0 1 .448 1 1v16c0 .552-.448 1-1 1h-6c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h6zm-1 2h-4v14h4V5zM6 7c2.761 0 5 2.239 5 5s-2.239 5-5 5-5-2.239-5-5 2.239-5 5-5zm1 2H5v1.999L3 11v2l2-.001V15h2v-2.001L9 13v-2l-2-.001V9z"}}],eE=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M10 3c.552 0 1 .448 1 1v16c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h6zM9 5H5v14h4V5zm9 2c2.761 0 5 2.239 5 5s-2.239 5-5 5-5-2.239-5-5 2.239-5 5-5zm1 2h-2v1.999L15 11v2l2-.001V15h2v-2.001L21 13v-2l-2-.001V9z"}}],ek=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M12 13c2.761 0 5 2.239 5 5s-2.239 5-5 5-5-2.239-5-5 2.239-5 5-5zm1 2h-2v1.999L9 17v2l2-.001V21h2v-2.001L15 19v-2l-2-.001V15zm7-12c.552 0 1 .448 1 1v6c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16zM5 5v4h14V5H5z"}}],eC=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 13c.552 0 1 .448 1 1v6c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1v-6c0-.552.448-1 1-1h16zm-1 2H5v4h14v-4zM12 1c2.761 0 5 2.239 5 5s-2.239 5-5 5-5-2.239-5-5 2.239-5 5-5zm1 2h-2v1.999L9 5v2l2-.001V9h2V6.999L15 7V5l-2-.001V3z"}}],eS=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15 20H7v-2h2.927l2.116-12H9V4h8v2h-2.927l-2.116 12H15z"}}],eM=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M11 5H5v14h6V5zm2 0v14h6V5h-6zM4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"}}],eO=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 4h10v2H11V4zM6 7v4H4V7H1l4-4 4 4H6zm0 10h3l-4 4-4-4h3v-4h2v4zm5 1h10v2H11v-2zm-2-7h12v2H9v-2z"}}],eA=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.657 14.828l-1.414-1.414L17.657 12A4 4 0 1 0 12 6.343l-1.414 1.414-1.414-1.414 1.414-1.414a6 6 0 0 1 8.485 8.485l-1.414 1.414zm-2.829 2.829l-1.414 1.414a6 6 0 1 1-8.485-8.485l1.414-1.414 1.414 1.414L6.343 12A4 4 0 1 0 12 17.657l1.414-1.414 1.414 1.414zm0-9.9l1.415 1.415-7.071 7.07-1.415-1.414 7.071-7.07z"}}],e_=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.657 14.828l-1.414-1.414L17.657 12A4 4 0 1 0 12 6.343l-1.414 1.414-1.414-1.414 1.414-1.414a6 6 0 0 1 8.485 8.485l-1.414 1.414zm-2.829 2.829l-1.414 1.414a6 6 0 1 1-8.485-8.485l1.414-1.414 1.414 1.414L6.343 12A4 4 0 1 0 12 17.657l1.414-1.414 1.414 1.414zm0-9.9l1.415 1.415-7.071 7.07-1.415-1.414 7.071-7.07zM5.775 2.293l1.932-.518L8.742 5.64l-1.931.518-1.036-3.864zm9.483 16.068l1.931-.518 1.036 3.864-1.932.518-1.035-3.864zM2.293 5.775l3.864 1.036-.518 1.931-3.864-1.035.518-1.932zm16.068 9.483l3.864 1.035-.518 1.932-3.864-1.036.518-1.931z"}}],eT=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 17h5v2h-3v3h-2v-5zM7 7H2V5h3V2h2v5zm11.364 8.536L16.95 14.12l1.414-1.414a5 5 0 1 0-7.071-7.071L9.879 7.05 8.464 5.636 9.88 4.222a7 7 0 0 1 9.9 9.9l-1.415 1.414zm-2.828 2.828l-1.415 1.414a7 7 0 0 1-9.9-9.9l1.415-1.414L7.05 9.88l-1.414 1.414a5 5 0 1 0 7.071 7.071l1.414-1.414 1.415 1.414zm-.708-10.607l1.415 1.415-7.071 7.07-1.415-1.414 7.071-7.07z"}}],eR=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18.364 15.536L16.95 14.12l1.414-1.414a5 5 0 1 0-7.071-7.071L9.879 7.05 8.464 5.636 9.88 4.222a7 7 0 0 1 9.9 9.9l-1.415 1.414zm-2.828 2.828l-1.415 1.414a7 7 0 0 1-9.9-9.9l1.415-1.414L7.05 9.88l-1.414 1.414a5 5 0 1 0 7.071 7.071l1.414-1.414 1.415 1.414zm-.708-10.607l1.415 1.415-7.071 7.07-1.415-1.414 7.071-7.07z"}}],ez=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 4h10v2H11V4zm0 4h6v2h-6V8zm0 6h10v2H11v-2zm0 4h6v2h-6v-2zM3 4h6v6H3V4zm2 2v2h2V6H5zm-2 8h6v6H3v-6zm2 2v2h2v-2H5z"}}],eL=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 4h13v2H8V4zm-5-.5h3v3H3v-3zm0 7h3v3H3v-3zm0 7h3v3H3v-3zM8 11h13v2H8v-2zm0 7h13v2H8v-2z"}}],eI=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 4h13v2H8V4zM5 3v3h1v1H3V6h1V4H3V3h2zM3 14v-2.5h2V11H3v-1h3v2.5H4v.5h2v1H3zm2 5.5H3v-1h2V18H3v-1h3v4H3v-1h2v-.5zM8 11h13v2H8v-2zm0 7h13v2H8v-2z"}}],eH=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 4h13v2H8V4zM4.5 6.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 6.9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM8 11h13v2H8v-2zm0 7h13v2H8v-2z"}}],eN=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.243 4.515l-6.738 6.737-.707 2.121-1.04 1.041 2.828 2.829 1.04-1.041 2.122-.707 6.737-6.738-4.242-4.242zm6.364 3.535a1 1 0 0 1 0 1.414l-7.779 7.779-2.12.707-1.415 1.414a1 1 0 0 1-1.414 0l-4.243-4.243a1 1 0 0 1 0-1.414l1.414-1.414.707-2.121 7.779-7.779a1 1 0 0 1 1.414 0l5.657 5.657zm-6.364-.707l1.414 1.414-4.95 4.95-1.414-1.414 4.95-4.95zM4.283 16.89l2.828 2.829-1.414 1.414-4.243-1.414 2.828-2.829z"}}],eP=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm4 12.5v-4l2 2 2-2v4h2v-7h-2l-2 2-2-2H5v7h2zm11-3v-4h-2v4h-2l3 3 3-3h-2z"}}],eD=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm1 2v14h16V5H4zm3 10.5H5v-7h2l2 2 2-2h2v7h-2v-4l-2 2-2-2v4zm11-3h2l-3 3-3-3h2v-4h2v4z"}}],ej=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 3c.552 0 1 .448 1 1v16c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16zm-9 2H5v5.999h2V9l3 3-3 3v-2H5v6h6v-2h2v2h6v-6h-2v2l-3-3 3-3v1.999h2V5h-6v2h-2V5zm2 8v2h-2v-2h2zm0-4v2h-2V9h2z"}}],eB=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M21 20c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16c.552 0 1 .448 1 1v16zm-2-9V5h-5.999v2H15l-3 3-3-3h2V5H5v6h2v2H5v6h6v-2H9l3-3 3 3h-1.999v2H19v-6h-2v-2h2zm-8 2H9v-2h2v2zm4 0h-2v-2h2v2z"}}],eF=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M18 3c1.657 0 3 1.343 3 3s-1.343 3-3 3h-3c-1.306 0-2.417-.834-2.829-2H11c-1.1 0-2 .9-2 2v.171c1.166.412 2 1.523 2 2.829 0 1.306-.834 2.417-2 2.829V15c0 1.1.9 2 2 2h1.17c.412-1.165 1.524-2 2.83-2h3c1.657 0 3 1.343 3 3s-1.343 3-3 3h-3c-1.306 0-2.417-.834-2.829-2H11c-2.21 0-4-1.79-4-4H5c-1.657 0-3-1.343-3-3s1.343-3 3-3h2c0-2.21 1.79-4 4-4h1.17c.412-1.165 1.524-2 2.83-2h3zm0 14h-3c-.552 0-1 .448-1 1s.448 1 1 1h3c.552 0 1-.448 1-1s-.448-1-1-1zM8 11H5c-.552 0-1 .448-1 1s.448 1 1 1h3c.552 0 1-.448 1-1s-.448-1-1-1zm10-6h-3c-.552 0-1 .448-1 1s.448 1 1 1h3c.552 0 1-.448 1-1s-.448-1-1-1z"}}],eV=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm14 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}],e$=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M10 2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H8v2h5V9c0-.552.448-1 1-1h6c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-6c-.552 0-1-.448-1-1v-1H8v6h5v-1c0-.552.448-1 1-1h6c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-6c-.552 0-1-.448-1-1v-1H7c-.552 0-1-.448-1-1V8H4c-.552 0-1-.448-1-1V3c0-.552.448-1 1-1h6zm9 16h-4v2h4v-2zm0-8h-4v2h4v-2zM9 4H5v2h4V4z"}}],eW=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 1.5c1.321 0 2.484.348 3.447.994.963.645 1.726 1.588 2.249 2.778.522 1.19.804 2.625.804 4.257v4.942c0 1.632-.282 3.068-.804 4.257-.523 1.19-1.286 2.133-2.25 2.778-.962.646-2.125.994-3.446.994-1.321 0-2.484-.348-3.447-.994-.963-.645-1.726-1.588-2.249-2.778-.522-1.19-.804-2.625-.804-4.257V9.529c0-1.632.282-3.068.804-4.257.523-1.19 1.286-2.133 2.25-2.778C9.515 1.848 10.678 1.5 12 1.5zm0 2c-.916 0-1.694.226-2.333.655-.637.427-1.158 1.07-1.532 1.92-.412.94-.635 2.108-.635 3.454v4.942c0 1.346.223 2.514.635 3.453.374.851.895 1.494 1.532 1.921.639.429 1.417.655 2.333.655.916 0 1.694-.226 2.333-.655.637-.427 1.158-1.07 1.532-1.92.412-.94.635-2.108.635-3.454V9.529c0-1.346-.223-2.514-.635-3.453-.374-.851-.895-1.494-1.532-1.921C13.694 3.726 12.916 3.5 12 3.5z"}}],eU=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14 1.5V22h-2V3.704L7.5 4.91V2.839l5-1.339z"}}],eZ=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 7.5a4 4 0 1 0-8 0H6a6 6 0 1 1 10.663 3.776l-7.32 8.723L18 20v2H6v-1.127l9.064-10.802A3.982 3.982 0 0 0 16 7.5z"}}],eG=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 2v1.362L12.809 9.55a6.501 6.501 0 1 1-7.116 8.028l1.94-.486A4.502 4.502 0 0 0 16.5 16a4.5 4.5 0 0 0-6.505-4.03l-.228.122-.69-1.207L14.855 4 6.5 4V2H18z"}}],eK=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 1.5V16h3v2h-3v4h-2v-4H4v-1.102L14 1.5h2zM14 16V5.171L6.968 16H14z"}}],eY=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 2v2H9.3l-.677 6.445a6.5 6.5 0 1 1-2.93 7.133l1.94-.486A4.502 4.502 0 0 0 16.5 16a4.5 4.5 0 0 0-4.5-4.5c-2.022 0-3.278.639-3.96 1.53l-1.575-1.182L7.5 2H18z"}}],eq=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14.886 2l-4.438 7.686A6.5 6.5 0 1 1 6.4 12.7L12.576 2h2.31zM12 11.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9z"}}],eX=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 2v1.5L10.763 22H8.574l8.013-18H6V2z"}}],eJ=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 1.5a5.5 5.5 0 0 1 3.352 9.86C17.24 12.41 18.5 14.32 18.5 16.5c0 3.314-2.91 6-6.5 6s-6.5-2.686-6.5-6c0-2.181 1.261-4.09 3.147-5.141A5.5 5.5 0 0 1 12 1.5zm0 11c-2.52 0-4.5 1.828-4.5 4 0 2.172 1.98 4 4.5 4s4.5-1.828 4.5-4c0-2.172-1.98-4-4.5-4zm0-9a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7z"}}],eQ=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 1.5a6.5 6.5 0 0 1 5.619 9.77l-6.196 10.729H9.114l4.439-7.686A6.5 6.5 0 1 1 12 1.5zm0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9z"}}],e0=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M14 20v-2.157c1.863-1.192 3.5-3.875 3.5-6.959 0-3.073-2-6.029-5.5-6.029s-5.5 2.956-5.5 6.03c0 3.083 1.637 5.766 3.5 6.958V20H3v-2h4.76C5.666 16.505 4 13.989 4 10.884 4 6.247 7.5 3 12 3s8 3.247 8 7.884c0 3.105-1.666 5.621-3.76 7.116H21v2h-7z"}}],e1=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M15 3c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-2v2h4c.552 0 1 .448 1 1v3h2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-6c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1h2v-2H8v2h2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1h2v-3c0-.552.448-1 1-1h4V9H9c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h6zM9 17H5v2h4v-2zm10 0h-4v2h4v-2zM14 5h-4v2h4V5z"}}],e2=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 21v-4H7v4H5v-5a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v5h-2zM7 3v4h10V3h2v5a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V3h2zM2 9l4 3-4 3V9zm20 0v6l-4-3 4-3z"}}],e5=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 6v15h-2v-5a6 6 0 1 1 0-12h10v2h-3v15h-2V6h-3zm-2 0a4 4 0 1 0 0 8V6z"}}],e4=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12.9 6.858l4.242 4.243L7.242 21H3v-4.243l9.9-9.9zm1.414-1.414l2.121-2.122a1 1 0 0 1 1.414 0l2.829 2.829a1 1 0 0 1 0 1.414l-2.122 2.121-4.242-4.242z"}}],e3=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.728 9.686l-1.414-1.414L5 17.586V19h1.414l9.314-9.314zm1.414-1.414l1.414-1.414-1.414-1.414-1.414 1.414 1.414 1.414zM7.242 21H3v-4.243L16.435 3.322a1 1 0 0 1 1.414 0l2.829 2.829a1 1 0 0 1 0 1.414L7.243 21z"}}],e7=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.934 3.036l1.732 1L18.531 6H21v2h-2v4h2v2h-2v7h-2v-7h-3.084c-.325 2.862-1.564 5.394-3.37 7.193l-1.562-1.27c1.52-1.438 2.596-3.522 2.917-5.922L10 14v-2l2-.001V8h-2V6h2.467l-1.133-1.964 1.732-1L14.777 6h1.444l1.713-2.964zM5 13.803l-2 .536v-2.071l2-.536V8H3V6h2V3h2v3h2v2H7v3.197l2-.536v2.07l-2 .536V18.5A2.5 2.5 0 0 1 4.5 21H3v-2h1.5a.5.5 0 0 0 .492-.41L5 18.5v-4.697zM17 8h-3v4h3V8z"}}],e6=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M12 19c.828 0 1.5.672 1.5 1.5S12.828 22 12 22s-1.5-.672-1.5-1.5.672-1.5 1.5-1.5zm0-17c3.314 0 6 2.686 6 6 0 2.165-.753 3.29-2.674 4.923C13.399 14.56 13 15.297 13 17h-2c0-2.474.787-3.695 3.031-5.601C15.548 10.11 16 9.434 16 8c0-2.21-1.79-4-4-4S8 5.79 8 8v1H6V8c0-3.314 2.686-6 6-6z"}}],e8=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M21 19v2h-2v-2h2zm-4 0v2h-2v-2h2zm-4 0v2h-2v-2h2zm-4 0v2H7v-2h2zm-4 0v2H3v-2h2zm16-4v2h-2v-2h2zM5 15v2H3v-2h2zm0-4v2H3v-2h2zm11-8c2.687 0 4.882 2.124 4.995 4.783L21 8v5h-2V8c0-1.591-1.255-2.903-2.824-2.995L16 5h-5V3h5zM5 7v2H3V7h2zm0-4v2H3V3h2zm4 0v2H7V3h2z"}}],e9=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9.683 7.562L12 9.88l6.374-6.375a2 2 0 0 1 2.829 0l.707.707L9.683 16.438a4 4 0 1 1-2.121-2.121L9.88 12 7.562 9.683a4 4 0 1 1 2.121-2.121zM6 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 12a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm9.535-6.587l6.375 6.376-.707.707a2 2 0 0 1-2.829 0l-4.96-4.961 2.12-2.122z"}}],te=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M14 3c.552 0 1 .448 1 1v5h5c.552 0 1 .448 1 1v10c0 .552-.448 1-1 1H10c-.552 0-1-.448-1-1v-5H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h10zm-1 2H5v8h4v-3c0-.552.448-1 1-1h3V5z"}}],tt=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M11 3c.552 0 1 .448 1 1v2h5c.552 0 1 .448 1 1v5h2c.552 0 1 .448 1 1v7c0 .552-.448 1-1 1h-7c-.552 0-1-.448-1-1v-2H7c-.552 0-1-.448-1-1v-5H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h7zm5 5h-4v3c0 .552-.448 1-1 1H8v4h4v-3c0-.552.448-1 1-1h3V8z"}}],tn=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M2 11h2v2H2v-2zm4 0h12v2H6v-2zm14 0h2v2h-2v-2z"}}],tr=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9.583 17.321C8.553 16.227 8 15 8 13.011c0-3.5 2.457-6.637 6.03-8.188l.893 1.378c-3.335 1.804-3.987 4.145-4.247 5.621.537-.278 1.24-.375 1.929-.311 1.804.167 3.226 1.648 3.226 3.489a3.5 3.5 0 0 1-3.5 3.5c-1.073 0-2.099-.49-2.748-1.179z"}}],to=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14.417 6.679C15.447 7.773 16 9 16 10.989c0 3.5-2.457 6.637-6.03 8.188l-.893-1.378c3.335-1.804 3.987-4.145 4.247-5.621-.537.278-1.24.375-1.929.311C9.591 12.322 8.17 10.841 8.17 9a3.5 3.5 0 0 1 3.5-3.5c1.073 0 2.099.49 2.748 1.179z"}}],ti=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M19 3l4 5h-3v12h-2V8h-3l4-5zm-5 15v2H3v-2h11zm0-7v2H3v-2h11zm-2-7v2H3V4h9z"}}],ta=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 4v12h3l-4 5-4-5h3V4h2zm-8 14v2H3v-2h9zm2-7v2H3v-2h11zm0-7v2H3V4h11z"}}],tl=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 9v4h16V9h2v5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V9h2z"}}],ts=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M17.5 2.5L23 12l-5.5 9.5h-11L1 12l5.5-9.5h11zm-1.153 2H7.653L3.311 12l4.342 7.5h8.694l4.342-7.5-4.342-7.5zM11 15h2v2h-2v-2zm0-8h2v6h-2V7z"}}],tu=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 3c.552 0 1 .448 1 1v16c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16zm-9 2H5v14h6v-4h2v4h6V5h-6v4h-2V5zm4 4l3 3-3 3v-2H9v2l-3-3 3-3v2h6V9z"}}],tc=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 3c.552 0 1 .448 1 1v16c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16zm-1 2H5v5.999L9 11v2H5v6h14v-6h-4v-2l4-.001V5zm-7 1l3 3h-2v6h2l-3 3-3-3h2V9H9l3-3z"}}],td=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 9h-2V6H5V4h14v2h-6v3zm0 6v5h-2v-5h2zM3 11h18v2H3v-2z"}}],tp=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.154 14c.23.516.346 1.09.346 1.72 0 1.342-.524 2.392-1.571 3.147C14.88 19.622 13.433 20 11.586 20c-1.64 0-3.263-.381-4.87-1.144V16.6c1.52.877 3.075 1.316 4.666 1.316 2.551 0 3.83-.732 3.839-2.197a2.21 2.21 0 0 0-.648-1.603l-.12-.117H3v-2h18v2h-3.846zm-4.078-3H7.629a4.086 4.086 0 0 1-.481-.522C6.716 9.92 6.5 9.246 6.5 8.452c0-1.236.466-2.287 1.397-3.153C8.83 4.433 10.271 4 12.222 4c1.471 0 2.879.328 4.222.984v2.152c-1.2-.687-2.515-1.03-3.946-1.03-2.48 0-3.719.782-3.719 2.346 0 .42.218.786.654 1.099.436.313.974.562 1.613.75.62.18 1.297.414 2.03.699z"}}],th=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 6v13H9V6H3V4h14v2h-6zm8.55 10.58a.8.8 0 1 0-1.32-.36l-1.154.33A2.001 2.001 0 0 1 19 14a2 2 0 0 1 1.373 3.454L18.744 19H21v1h-4v-1l2.55-2.42z"}}],tf=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5.596 4L10.5 9.928 15.404 4H18l-6.202 7.497L18 18.994V19h-2.59l-4.91-5.934L5.59 19H3v-.006l6.202-7.497L3 4h2.596zM21.55 16.58a.8.8 0 1 0-1.32-.36l-1.155.33A2.001 2.001 0 0 1 21 14a2 2 0 0 1 1.373 3.454L20.744 19H23v1h-4v-1l2.55-2.42z"}}],tm=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 11h14v2H5z"}}],tg=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 7v13H9V7H3V5h12v2h-4zm8.55-.42a.8.8 0 1 0-1.32-.36l-1.154.33A2.001 2.001 0 0 1 19 4a2 2 0 0 1 1.373 3.454L18.744 9H21v1h-4V9l2.55-2.42z"}}],tv=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5.596 5l4.904 5.928L15.404 5H18l-6.202 7.497L18 19.994V20h-2.59l-4.91-5.934L5.59 20H3v-.006l6.202-7.497L3 5h2.596zM21.55 6.58a.8.8 0 1 0-1.32-.36l-1.155.33A2.001 2.001 0 0 1 21 4a2 2 0 0 1 1.373 3.454L20.744 9H23v1h-4V9l2.55-2.42z"}}],tb=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M13 10v4h6v-4h-6zm-2 0H5v4h6v-4zm2 9h6v-3h-6v3zm-2 0v-3H5v3h6zm2-14v3h6V5h-6zm-2 0H5v3h6V5zM4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"}}],ty=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 8h16V5H4v3zm10 11v-9h-4v9h4zm2 0h4v-9h-4v9zm-8 0v-9H4v9h4zM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"}}],tx=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2zM9 5a2 2 0 1 0 0 4V5zm8 12v-2.5l4 3.5-4 3.5V19H5v-2h12z"}}],tw=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2zM9 5a2 2 0 1 0 0 4V5zM7 17h12v2H7v2.5L3 18l4-3.5V17z"}}],tE=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 17h10v-2.5l3.5 3.5-3.5 3.5V19H7v2.5L3.5 18 7 14.5V17zm6-11v9h-2V6H5V4h14v2h-6z"}}],tk=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15 18h1.5a2.5 2.5 0 1 0 0-5H3v-2h13.5a4.5 4.5 0 1 1 0 9H15v2l-4-3 4-3v2zM3 4h18v2H3V4zm6 14v2H3v-2h6z"}}],tC=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 6v15h-2V6H5V4h14v2z"}}],tS=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301 14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"}}],tM=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z"}}],tO=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 3v9a4 4 0 1 0 8 0V3h2v9a6 6 0 1 1-12 0V3h2zM4 20h16v2H4v-2z"}}],tA=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 19h16v-7h2v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-8h2v7zM14 9v6h-4V9H5l7-7 7 7h-5z"}}],t_=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 3.993C3 3.445 3.445 3 3.993 3h16.014c.548 0 .993.445.993.993v16.014a.994.994 0 0 1-.993.993H3.993A.994.994 0 0 1 3 20.007V3.993zM5 5v14h14V5H5zm5.622 3.415l4.879 3.252a.4.4 0 0 1 0 .666l-4.88 3.252a.4.4 0 0 1-.621-.332V8.747a.4.4 0 0 1 .622-.332z"}}],tT=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 21v-2h3.662l1.234-7H5v-2h3.249l.881-5H4V3h16v2h-8.839l-.882 5H18v9h3v2H3zm13-9H9.927l-1.235 7H16v-7z"}}]},75114:function(e,t,n){"use strict";n.d(t,{GI:function(){return a},J:function(){return l},LS:function(){return o},Mo:function(){return m},Vb:function(){return r},XK:function(){return g},XW:function(){return d},bA:function(){return v},bk:function(){return c},iR:function(){return f},it:function(){return h},jz:function(){return s},ov:function(){return i},p:function(){return u},wr:function(){return p}});var r=Object.freeze({__proto__:null,COPY_LABEL:{id:"extension.command.copy.label",comment:"Label for copy command.",message:"Copy"},COPY_DESCRIPTION:{id:"extension.command.copy.description",comment:"Description for copy command.",message:"Copy the selected text"},CUT_LABEL:{id:"extension.command.cut.label",comment:"Label for cut command.",message:"Cut"},CUT_DESCRIPTION:{id:"extension.command.cut.description",comment:"Description for cut command.",message:"Cut the selected text"},PASTE_LABEL:{id:"extension.command.paste.label",comment:"Label for paste command.",message:"Paste"},PASTE_DESCRIPTION:{id:"extension.command.paste.description",comment:"Description for paste command.",message:"Paste content into the editor"},SELECT_ALL_LABEL:{id:"extension.command.select-all.label",comment:"Label for select all command.",message:"Select all"},SELECT_ALL_DESCRIPTION:{id:"extension.command.select-all.description",comment:"Description for select all command.",message:"Select all content within the editor"}}),o=Object.freeze({__proto__:null,ESCAPE_KEY:{id:"keyboard.shortcut.escape",comment:"Label for escape key in shortcuts.",message:"Enter"},COMMAND_KEY:{id:"keyboard.shortcut.command",comment:"Label for command key in shortcuts.",message:"Command"},CONTROL_KEY:{id:"keyboard.shortcut.control",comment:"Label for control key in shortcuts.",message:"Control"},ENTER_KEY:{id:"keyboard.shortcut.enter",comment:"Label for enter key in shortcuts.",message:"Enter"},SHIFT_KEY:{id:"keyboard.shortcut.shift",comment:"Label for shift key in shortcuts.",message:"Shift"},ALT_KEY:{id:"keyboard.shortcut.alt",comment:"Label for alt key in shortcuts.",message:"Alt"},CAPS_LOCK_KEY:{id:"keyboard.shortcut.capsLock",comment:"Label for caps lock key in shortcuts.",message:"Caps Lock"},BACKSPACE_KEY:{id:"keyboard.shortcut.backspace",comment:"Label for backspace key in shortcuts.",message:"Backspace"},TAB_KEY:{id:"keyboard.shortcut.tab",comment:"Label for tab key in shortcuts.",message:"Tab"},SPACE_KEY:{id:"keyboard.shortcut.space",comment:"Label for space key in shortcuts.",message:"Space"},DELETE_KEY:{id:"keyboard.shortcut.delete",comment:"Label for delete key in shortcuts.",message:"Delete"},PAGE_UP_KEY:{id:"keyboard.shortcut.pageUp",comment:"Label for page up key in shortcuts.",message:"Page Up"},PAGE_DOWN_KEY:{id:"keyboard.shortcut.pageDown",comment:"Label for page down key in shortcuts.",message:"Page Down"},HOME_KEY:{id:"keyboard.shortcut.home",comment:"Label for home key in shortcuts.",message:"Home"},END_KEY:{id:"keyboard.shortcut.end",comment:"Label for end key in shortcuts.",message:"End"},ARROW_LEFT_KEY:{id:"keyboard.shortcut.arrowLeft",comment:"Label for arrow left key in shortcuts.",message:"Arrow Left"},ARROW_RIGHT_KEY:{id:"keyboard.shortcut.arrowRight",comment:"Label for arrow right key in shortcuts.",message:"Arrow Right"},ARROW_UP_KEY:{id:"keyboard.shortcut.arrowUp",comment:"Label for arrow up key in shortcuts.",message:"Arrow Up"},ARROW_DOWN_KEY:{id:"keyboard.shortcut.arrowDown",comment:"Label for arrowDown key in shortcuts.",message:"Arrow Down"}}),i=Object.freeze({__proto__:null,LABEL:{id:"extension.command.toggle-bold.label",comment:"Label for bold formatting command.",message:"Bold"},DESCRIPTION:{id:"extension.command.toggle-bold.description",comment:"Description for bold formatting command.",message:"Add bold formatting to the selected text"}}),a=Object.freeze({__proto__:null,LABEL:{id:"extension.command.toggle-callout.label",comment:"Label for callout command with support for callout types.",message:"{type, select, info {Information Callout}\nwarning {Warning Callout}\nerror {Error Callout}\nsuccess {Success Callout}\nother {Callout}}"},DESCRIPTION:{id:"extension.command.toggle-callout.description",comment:"Description of the callout command with support for callout types.",message:"{type, select, info {Create an information callout block}\nwarning {Create a warning callout block}\nerror {Create an error callout block}\nsuccess {Create a success callout block}\nother {Create a callout block}}"}}),l=Object.freeze({__proto__:null,LABEL:{id:"extension.command.toggle-code-block.label",comment:"Label for the code block command.",message:"Codeblock"},DESCRIPTION:{id:"extension.command.toggle-code-block.description",comment:"Description for the code block command.",message:"Add a code block"}}),s=Object.freeze({__proto__:null,LABEL:{id:"extension.command.toggle-code.label",comment:"Label for the inline code formatting.",message:"Code"},DESCRIPTION:{id:"extension.command.toggle-code.description",comment:"Description for the inline code formatting command.",message:"Add inline code formatting to the selected text"}}),u=Object.freeze({__proto__:null,SET_LABEL:{id:"extension.command.set-font-size.label",comment:"Label for adding a font size.",message:"Font size"},SET_DESCRIPTION:{id:"extension.command.set-font-size.description",comment:"Description for adding a font size.",message:"Set the font size for the selected text."},INCREASE_LABEL:{id:"extension.command.increase-font-size.label",comment:"Label for increasing the font size.",message:"Increase"},INCREASE_DESCRIPTION:{id:"extension.command.increase-font-size.description",comment:"Description for increasing the font size.",message:"Increase the font size"},DECREASE_LABEL:{id:"extension.command.decrease-font-size.label",comment:"Label for decreasing the font size.",message:"Decrease"},DECREASE_DESCRIPTION:{id:"extension.command.decrease-font-size.description",comment:"Description for decreasing the font size.",message:"Decrease the font size."}}),c=Object.freeze({__proto__:null,LABEL:{id:"extension.command.toggle-heading.label",comment:"Label for heading command with support for levels.",message:"{level, select, 1 {Heading 1}\n2 {Heading 2}\n3 {Heading 3}\n4 {Heading 4}\n5 {Heading 5}\n6 {Heading 6}\nother {Heading}}"}}),d=Object.freeze({__proto__:null,UNDO_LABEL:{id:"extension.command.undo.label",comment:"Label for undo.",message:"Undo"},UNDO_DESCRIPTION:{id:"extension.command.undo.description",comment:"Description for undo.",message:"Undo the most recent action"},REDO_LABEL:{id:"extension.command.redo.label",comment:"Label for redo.",message:"Redo"},REDO_DESCRIPTION:{id:"extension.command.redo.description",comment:"Description for redo.",message:"Redo the most recent action"}}),p=Object.freeze({__proto__:null,LABEL:{id:"extension.command.toggle-italic.label",comment:"Label for italic formatting command.",message:"Italic"},DESCRIPTION:{id:"extension.command.toggle-italic.description",comment:"Description for italic formatting command.",message:"Italicize the selected text"}}),h=Object.freeze({__proto__:null,ORDERED_LIST_LABEL:{id:"extension.command.toggle-ordered-list.label",comment:"Label for inserting an ordered list into the editor.",message:"Ordered list"},BULLET_LIST_LABEL:{id:"extension.command.toggle-bullet-list.description",comment:"Description for inserting a bullet list into the editor.",message:"Bulleted list"},TASK_LIST_LABEL:{id:"extension.command.toggle-task-list.description",comment:"Description for inserting a task list into the editor.",message:"Tasked list"}}),f=Object.freeze({__proto__:null,INSERT_LABEL:{id:"extension.command.insert-paragraph.label",comment:"Label for inserting a paragraph.",message:"Insert Paragraph"},INSERT_DESCRIPTION:{id:"extension.command.insert-paragraph.description",comment:"Description for inserting a paragraph.",message:"Insert a new paragraph"},CONVERT_LABEL:{id:"extension.command.convert-paragraph.label",comment:"Label for converting the current node into a paragraph.",message:"Convert Paragraph"},CONVERT_DESCRIPTION:{id:"extension.command.convert-paragraph.description",comment:"Description for converting a paragraph.",message:"Convert current block into a paragraph block."}}),m=Object.freeze({__proto__:null,LABEL:{id:"extension.command.toggle-strike.label",comment:"Label for strike formatting command.",message:"Strikethrough"},DESCRIPTION:{id:"extension.command.toggle-strike.description",comment:"Description for strike formatting command.",message:"Strikethrough the selected text"}}),g=Object.freeze({__proto__:null,CREATE_COMMAND_LABEL:{id:"extension.command.create-table.label",comment:"Label for creating a table",message:"Create table"},CREATE_COMMAND_DESCRIPTION:{id:"extension.command.create-table.description",comment:"Description for creating a table",message:"Create a table with set number of rows and columns."},COLUMN_COUNT:{id:"extension.table.column_count",comment:"The number of columns",message:"{count, plural, one {# column} other {# columns}}"},ROW_COUNT:{id:"extension.table.row_count",comment:"The number of rows",message:"{count, plural, one {# row} other {# rows}}"}}),v=Object.freeze({__proto__:null,LABEL:{id:"extension.command.toggle-underline.label",comment:"Label for underline formatting command.",message:"Underline"},DESCRIPTION:{id:"extension.command.toggle-underline.description",comment:"Description for underline formatting command.",message:"Underline the selected text"}})},65832:function(e,t,n){"use strict";n.d(t,{A_:function(){return a},Ux:function(){return i},fB:function(){return l}});var r=n(38756),o=n(71071);function i(e,t){let n=Object.getPrototypeOf(t),r=e.selection,i=e.doc,a=e.storedMarks,l=(0,o.Ry)();for(let[s,u]of Object.entries(t))l[s]={value:u};return Object.create(n,{...l,storedMarks:{get:()=>a},selection:{get:()=>r},doc:{get:()=>i},tr:{get:()=>(r=e.selection,i=e.doc,a=e.storedMarks,e)}})}function a(e){return({state:t,dispatch:n,view:r,tr:o})=>e(i(o,t),n,r)}function l(e){return t=>{var n;return(0,o.kG)(void 0===t.dispatch||t.dispatch===(null==(n=t.view)?void 0:n.dispatch),{code:r.mA.NON_CHAINABLE_COMMAND}),e(t)}}},16446:function(e,t,n){"use strict";n.d(t,{Mn:function(){return rw},ZI:function(){return rB},jQ:function(){return rN},Vu:function(){return rE},Om:function(){return rk},SN:function(){return rC},pQ:function(){return rS},NV:function(){return rM},XR:function(){return rO},kj:function(){return rA},Ts:function(){return r_}});var r=n(2784),o=n.t(r,2),i=n(31461),a=n(7896),l=n(6277);function s(e,t,n){let r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){let o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function u(e,t,n){var r;return void 0===e||"string"==typeof e?t:(0,a.Z)({},t,{ownerState:(0,a.Z)({},t.ownerState,n)})}function c(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function d(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function p(e){if(e.type)return e;if("#"===e.charAt(0))return p(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw Error(c(9,e));let r=e.substring(t+1,e.length-1),o;if("color"===n){if(o=(r=r.split(" ")).shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw Error(c(10,o))}else r=r.split(",");return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:o}}function h(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),`${t}(${r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`})`}function f(e){let t="hsl"===(e=p(e)).type||"hsla"===e.type?p(function(e){e=p(e);let{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1),l="rgb",s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),h({type:l,values:s})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function m(e,t){return e=p(e),t=d(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,h(e)}var g=n(92603);/**
 * @mui/styled-engine v5.12.3
 *
 * @license MIT
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ function v(e,t){let n=(0,g.Z)(e,t);return n}let b=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function y(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function x(e,t,n={clone:!0}){let r=n.clone?(0,a.Z)({},e):e;return y(e)&&y(t)&&Object.keys(t).forEach(o=>{"__proto__"!==o&&(y(t[o])&&o in e&&y(e[o])?r[o]=x(e[o],t[o],n):n.clone?r[o]=y(t[o])?function e(t){if(!y(t))return t;let n={};return Object.keys(t).forEach(r=>{n[r]=e(t[r])}),n}(t[o]):t[o]:r[o]=t[o])}),r}let w=["values","unit","step"],E=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,a.Z)({},e,{[t.key]:t.val}),{})};var k={borderRadius:4};let C={xs:0,sm:600,md:900,lg:1200,xl:1536},S={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${C[e]}px)`};function M(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let o=r.breakpoints||S;return t.reduce((e,r,i)=>(e[o.up(o.keys[i])]=n(t[i]),e),{})}if("object"==typeof t){let i=r.breakpoints||S;return Object.keys(t).reduce((e,r)=>{if(-1!==Object.keys(i.values||C).indexOf(r)){let o=i.up(r);e[o]=n(t[r],r)}else e[r]=t[r];return e},{})}let a=n(t);return a}function O(e={}){var t;let n=null==(t=e.keys)?void 0:t.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{});return n||{}}function A(e,t){return e.reduce((e,t)=>{let n=e[t],r=!n||0===Object.keys(n).length;return r&&delete e[t],e},t)}function _({values:e,breakpoints:t,base:n}){let r=n||function(e,t){if("object"!=typeof e)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t),{})}function T(e){if("string"!=typeof e)throw Error(c(7));return e.charAt(0).toUpperCase()+e.slice(1)}function R(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){let r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function z(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:R(e,n)||r,t&&(o=t(o,r,e)),o}var L=function(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;let i=e[t],a=e.theme,l=R(a,r)||{},s=e=>{let r=z(l,o,e);return(e===r&&"string"==typeof e&&(r=z(l,o,`${t}${"default"===e?"":T(e)}`,e)),!1===n)?r:{[n]:r}};return M(e,i,s)};return i.propTypes={},i.filterProps=[t],i},I=function(e,t){return t?x(e,t,{clone:!1}):e};let H={m:"margin",p:"padding"},N={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},P={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},D=function(e){let t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!P[e])return[e];e=P[e]}let[t,n]=e.split(""),r=H[t],o=N[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),j=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],B=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],F=[...j,...B];function V(e,t,n,r){var o;let i=null!=(o=R(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>void 0}function $(e){return V(e,"spacing",8,"spacing")}function W(e,t){if("string"==typeof t||null==t)return t;let n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function U(e,t){let n=$(e.theme);return Object.keys(e).map(r=>(function(e,t,n,r){var o,i;if(-1===t.indexOf(n))return null;let a=D(n),l=e=>a.reduce((t,n)=>(t[n]=W(r,e),t),{}),s=e[n];return M(e,s,l)})(e,t,r,n)).reduce(I,{})}function Z(e){return U(e,j)}function G(e){return U(e,B)}function K(e){return U(e,F)}Z.propTypes={},Z.filterProps=j,G.propTypes={},G.filterProps=B,K.propTypes={},K.filterProps=F;var Y=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?I(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n};function q(e){return"number"!=typeof e?e:`${e}px solid`}let X=L({prop:"border",themeKey:"borders",transform:q}),J=L({prop:"borderTop",themeKey:"borders",transform:q}),Q=L({prop:"borderRight",themeKey:"borders",transform:q}),ee=L({prop:"borderBottom",themeKey:"borders",transform:q}),et=L({prop:"borderLeft",themeKey:"borders",transform:q}),en=L({prop:"borderColor",themeKey:"palette"}),er=L({prop:"borderTopColor",themeKey:"palette"}),eo=L({prop:"borderRightColor",themeKey:"palette"}),ei=L({prop:"borderBottomColor",themeKey:"palette"}),ea=L({prop:"borderLeftColor",themeKey:"palette"}),el=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=V(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:W(t,e)});return M(e,e.borderRadius,n)}return null};el.propTypes={},el.filterProps=["borderRadius"],Y(X,J,Q,ee,et,en,er,eo,ei,ea,el);let es=e=>{if(void 0!==e.gap&&null!==e.gap){let t=V(e.theme,"spacing",8,"gap"),n=e=>({gap:W(t,e)});return M(e,e.gap,n)}return null};es.propTypes={},es.filterProps=["gap"];let eu=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=V(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:W(t,e)});return M(e,e.columnGap,n)}return null};eu.propTypes={},eu.filterProps=["columnGap"];let ec=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=V(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:W(t,e)});return M(e,e.rowGap,n)}return null};ec.propTypes={},ec.filterProps=["rowGap"];let ed=L({prop:"gridColumn"}),ep=L({prop:"gridRow"}),eh=L({prop:"gridAutoFlow"}),ef=L({prop:"gridAutoColumns"}),em=L({prop:"gridAutoRows"}),eg=L({prop:"gridTemplateColumns"}),ev=L({prop:"gridTemplateRows"}),eb=L({prop:"gridTemplateAreas"}),ey=L({prop:"gridArea"});function ex(e,t){return"grey"===t?t:e}Y(es,eu,ec,ed,ep,eh,ef,em,eg,ev,eb,ey);let ew=L({prop:"color",themeKey:"palette",transform:ex}),eE=L({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ex}),ek=L({prop:"backgroundColor",themeKey:"palette",transform:ex});function eC(e){return e<=1&&0!==e?`${100*e}%`:e}Y(ew,eE,ek);let eS=L({prop:"width",transform:eC}),eM=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){let t=t=>{var n,r,o;let i=(null==(n=e.theme)?void 0:null==(r=n.breakpoints)?void 0:null==(o=r.values)?void 0:o[t])||C[t];return{maxWidth:i||eC(t)}};return M(e,e.maxWidth,t)}return null};eM.filterProps=["maxWidth"];let eO=L({prop:"minWidth",transform:eC}),eA=L({prop:"height",transform:eC}),e_=L({prop:"maxHeight",transform:eC}),eT=L({prop:"minHeight",transform:eC});L({prop:"size",cssProperty:"width",transform:eC}),L({prop:"size",cssProperty:"height",transform:eC});let eR=L({prop:"boxSizing"});Y(eS,eM,eO,eA,e_,eT,eR);var ez={border:{themeKey:"borders",transform:q},borderTop:{themeKey:"borders",transform:q},borderRight:{themeKey:"borders",transform:q},borderBottom:{themeKey:"borders",transform:q},borderLeft:{themeKey:"borders",transform:q},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:el},color:{themeKey:"palette",transform:ex},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ex},backgroundColor:{themeKey:"palette",transform:ex},p:{style:G},pt:{style:G},pr:{style:G},pb:{style:G},pl:{style:G},px:{style:G},py:{style:G},padding:{style:G},paddingTop:{style:G},paddingRight:{style:G},paddingBottom:{style:G},paddingLeft:{style:G},paddingX:{style:G},paddingY:{style:G},paddingInline:{style:G},paddingInlineStart:{style:G},paddingInlineEnd:{style:G},paddingBlock:{style:G},paddingBlockStart:{style:G},paddingBlockEnd:{style:G},m:{style:Z},mt:{style:Z},mr:{style:Z},mb:{style:Z},ml:{style:Z},mx:{style:Z},my:{style:Z},margin:{style:Z},marginTop:{style:Z},marginRight:{style:Z},marginBottom:{style:Z},marginLeft:{style:Z},marginX:{style:Z},marginY:{style:Z},marginInline:{style:Z},marginInlineStart:{style:Z},marginInlineEnd:{style:Z},marginBlock:{style:Z},marginBlockStart:{style:Z},marginBlockEnd:{style:Z},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:es},rowGap:{style:ec},columnGap:{style:eu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:eC},maxWidth:{style:eM},minWidth:{transform:eC},height:{transform:eC},maxHeight:{transform:eC},minHeight:{transform:eC},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};let eL=function(){function e(e,t,n,r){let o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};let{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};let c=R(n,l)||{};if(u)return u(o);let d=t=>{let n=z(c,s,t);return(t===n&&"string"==typeof t&&(n=z(c,s,`${e}${"default"===t?"":T(t)}`,t)),!1===a)?n:{[a]:n}};return M(o,t,d)}return function t(n){var r;let{sx:o,theme:i={}}=n||{};if(!o)return null;let a=null!=(r=i.unstable_sxConfig)?r:ez;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;let o=O(i.breakpoints),l=Object.keys(o),s=o;return Object.keys(r).forEach(n=>{var o,l;let u="function"==typeof(o=r[n])?o(i):o;if(null!=u){if("object"==typeof u){if(a[n])s=I(s,e(n,u,i,a));else{let c=M({theme:i},u,e=>({[n]:e}));(function(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)})(c,u)?s[n]=t({sx:u,theme:i}):s=I(s,c)}}else s=I(s,e(n,u,i,a))}}),A(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();eL.filterProps=["sx"];let eI=["breakpoints","palette","spacing","shape"];var eH=function(e={},...t){let{breakpoints:n={},palette:r={},spacing:o,shape:l={}}=e,s=(0,i.Z)(e,eI),u=function(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=(0,i.Z)(e,w),l=E(t),s=Object.keys(l);function u(e){let r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}${n})`}function c(e){let o="number"==typeof t[e]?t[e]:e;return`@media (max-width:${o-r/100}${n})`}function d(e,o){let i=s.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[s[i]]?t[s[i]]:o)-r/100}${n})`}return(0,a.Z)({keys:s,values:l,up:u,down:c,between:d,only:function(e){return s.indexOf(e)+1<s.length?d(e,s[s.indexOf(e)+1]):u(e)},not:function(e){let t=s.indexOf(e);return 0===t?u(s[1]):t===s.length-1?c(s[t]):d(e,s[s.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),c=function(e=8){if(e.mui)return e;let t=$({spacing:e}),n=(...e)=>{let n=0===e.length?[1]:e;return n.map(e=>{let n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ")};return n.mui=!0,n}(o),d=x({breakpoints:u,direction:"ltr",components:{},palette:(0,a.Z)({mode:"light"},r),spacing:c,shape:(0,a.Z)({},k,l)},s);return(d=t.reduce((e,t)=>x(e,t),d)).unstable_sxConfig=(0,a.Z)({},ez,null==s?void 0:s.unstable_sxConfig),d.unstable_sx=function(e){return eL({sx:e,theme:this})},d};let eN=["variant"];function eP(e){return 0===e.length}function eD(e){let{variant:t}=e,n=(0,i.Z)(e,eN),r=t||"";return Object.keys(n).sort().forEach(t=>{"color"===t?r+=eP(r)?e[t]:T(e[t]):r+=`${eP(r)?t:T(t)}${T(e[t].toString())}`}),r}let ej=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],eB=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,eF=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);let r={};return n.forEach(e=>{let t=eD(e.props);r[t]=e.style}),r},eV=(e,t,n,r)=>{var o,i;let{ownerState:a={}}=e,l=[],s=null==n?void 0:null==(o=n.components)?void 0:null==(i=o[r])?void 0:i.variants;return s&&s.forEach(n=>{let r=!0;Object.keys(n.props).forEach(t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)}),r&&l.push(t[eD(n.props)])}),l};function e$(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let eW=eH();function eU({defaultTheme:e,theme:t,themeId:n}){var r;return 0===Object.keys(t).length?e:t[n]||t}function eZ(e={}){let{themeId:t,defaultTheme:n=eW,rootShouldForwardProp:r=e$,slotShouldForwardProp:o=e$}=e,l=e=>eL((0,a.Z)({},e,{theme:eU((0,a.Z)({},e,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(e,s={})=>{b(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:u,slot:c,skipVariantsResolver:d,skipSx:p,overridesResolver:h}=s,f=(0,i.Z)(s,ej),m=void 0!==d?d:c&&"Root"!==c||!1,g=p||!1,y,x=e$;if("Root"===c)x=r;else if(c)x=o;else{var w;"string"==typeof e&&e.charCodeAt(0)>96&&(x=void 0)}let E=v(e,(0,a.Z)({shouldForwardProp:x,label:y},f)),k=(r,...o)=>{let i=o?o.map(e=>"function"==typeof e&&e.__emotion_real!==e?r=>e((0,a.Z)({},r,{theme:eU((0,a.Z)({},r,{defaultTheme:n,themeId:t}))})):e):[],s=r;u&&h&&i.push(e=>{let r=eU((0,a.Z)({},e,{defaultTheme:n,themeId:t})),o=eB(u,r);if(o){let i={};return Object.entries(o).forEach(([t,n])=>{i[t]="function"==typeof n?n((0,a.Z)({},e,{theme:r})):n}),h(e,i)}return null}),u&&!m&&i.push(e=>{let r=eU((0,a.Z)({},e,{defaultTheme:n,themeId:t}));return eV(e,eF(u,r),r,u)}),g||i.push(l);let c=i.length-o.length;if(Array.isArray(r)&&c>0){let d=Array(c).fill("");(s=[...r,...d]).raw=[...r.raw,...d]}else"function"==typeof r&&r.__emotion_real!==r&&(s=e=>r((0,a.Z)({},e,{theme:eU((0,a.Z)({},e,{defaultTheme:n,themeId:t}))})));let p=E(s,...i);return e.muiName&&(p.muiName=e.muiName),p};return E.withConfig&&(k.withConfig=E.withConfig),k}}var eG={black:"#000",white:"#fff"},eK={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},eY={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},eq={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},eX={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},eJ={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},eQ={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},e0={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};let e1=["mode","contrastThreshold","tonalOffset"],e2={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:eG.white,default:eG.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},e5={text:{primary:eG.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:eG.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function e4(e,t,n,r){let o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=p(e),t=d(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return h(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=p(e),t=d(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return h(e)}(e.main,i)))}let e3=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],e7={textTransform:"uppercase"},e6='"Roboto", "Helvetica", "Arial", sans-serif';function e8(...e){return`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2),${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14),${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`}let e9=["none",e8(0,2,1,-1,0,1,1,0,0,1,3,0),e8(0,3,1,-2,0,2,2,0,0,1,5,0),e8(0,3,3,-2,0,3,4,0,0,1,8,0),e8(0,2,4,-1,0,4,5,0,0,1,10,0),e8(0,3,5,-1,0,5,8,0,0,1,14,0),e8(0,3,5,-1,0,6,10,0,0,1,18,0),e8(0,4,5,-2,0,7,10,1,0,2,16,1),e8(0,5,5,-3,0,8,10,1,0,3,14,2),e8(0,5,6,-3,0,9,12,1,0,3,16,2),e8(0,6,6,-3,0,10,14,1,0,4,18,3),e8(0,6,7,-4,0,11,15,1,0,4,20,3),e8(0,7,8,-4,0,12,17,2,0,5,22,4),e8(0,7,8,-4,0,13,19,2,0,5,24,4),e8(0,7,9,-4,0,14,21,2,0,5,26,4),e8(0,8,9,-5,0,15,22,2,0,6,28,5),e8(0,8,10,-5,0,16,24,2,0,6,30,5),e8(0,8,11,-5,0,17,26,2,0,6,32,5),e8(0,9,11,-5,0,18,28,2,0,7,34,6),e8(0,9,12,-6,0,19,29,2,0,7,36,6),e8(0,10,13,-6,0,20,31,3,0,8,38,7),e8(0,10,13,-6,0,21,33,3,0,8,40,7),e8(0,10,14,-6,0,22,35,3,0,8,42,7),e8(0,11,14,-7,0,23,36,3,0,9,44,8),e8(0,11,15,-7,0,24,38,3,0,9,46,8)],te=["duration","easing","delay"],tt={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},tn={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function tr(e){return`${Math.round(e)}ms`}function to(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}var ti={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};let ta=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var tl=function(e={},...t){var n,r;let{mixins:o={},palette:l={},transitions:s={},typography:u={}}=e,d=(0,i.Z)(e,ta);if(e.vars)throw Error(c(18));let p=function(e){let{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=(0,i.Z)(e,e1),l=e.primary||function(e="light"){return"dark"===e?{main:eJ[200],light:eJ[50],dark:eJ[400]}:{main:eJ[700],light:eJ[400],dark:eJ[800]}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:eY[200],light:eY[50],dark:eY[400]}:{main:eY[500],light:eY[300],dark:eY[700]}}(t),u=e.error||function(e="light"){return"dark"===e?{main:eq[500],light:eq[300],dark:eq[700]}:{main:eq[700],light:eq[400],dark:eq[800]}}(t),d=e.info||function(e="light"){return"dark"===e?{main:eQ[400],light:eQ[300],dark:eQ[700]}:{main:eQ[700],light:eQ[500],dark:eQ[900]}}(t),p=e.success||function(e="light"){return"dark"===e?{main:e0[400],light:e0[300],dark:e0[700]}:{main:e0[800],light:e0[500],dark:e0[900]}}(t),h=e.warning||function(e="light"){return"dark"===e?{main:eX[400],light:eX[300],dark:eX[700]}:{main:"#ed6c02",light:eX[500],dark:eX[900]}}(t);function m(e){let t=function(e,t){let n=f(e),r=f(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,e5.text.primary)>=n?e5.text.primary:e2.text.primary;return t}let g=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=(0,a.Z)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw Error(c(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw Error(c(12,t?` (${t})`:"",JSON.stringify(e.main)));return e4(e,"light",o,r),e4(e,"dark",i,r),e.contrastText||(e.contrastText=m(e.main)),e},v=x((0,a.Z)({common:(0,a.Z)({},eG),mode:t,primary:g({color:l,name:"primary"}),secondary:g({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:u,name:"error"}),warning:g({color:h,name:"warning"}),info:g({color:d,name:"info"}),success:g({color:p,name:"success"}),grey:eK,contrastThreshold:n,getContrastText:m,augmentColor:g,tonalOffset:r},{dark:e5,light:e2}[t]),o);return v}(l),h=eH(e),m=x(h,{mixins:(n=h.breakpoints,(0,a.Z)({toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}}},o)),palette:p,shadows:e9.slice(),typography:function(e,t){let n="function"==typeof t?t(e):t,{fontFamily:r=e6,fontSize:o=14,fontWeightLight:l=300,fontWeightRegular:s=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:p,pxToRem:h}=n,f=(0,i.Z)(n,e3),m=o/14,g=h||(e=>`${e/d*m}rem`),v=(e,t,n,o,i)=>{var l;return(0,a.Z)({fontFamily:r,fontWeight:e,fontSize:g(t),lineHeight:n},r===e6?{letterSpacing:`${Math.round(1e5*(o/t))/1e5}em`}:{},i,p)},b={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(s,48,1.167,0),h4:v(s,34,1.235,.25),h5:v(s,24,1.334,0),h6:v(u,20,1.6,.15),subtitle1:v(s,16,1.75,.15),subtitle2:v(u,14,1.57,.1),body1:v(s,16,1.5,.15),body2:v(s,14,1.43,.15),button:v(u,14,1.75,.4,e7),caption:v(s,12,1.66,.4),overline:v(s,12,2.66,1,e7),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return x((0,a.Z)({htmlFontSize:d,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:l,fontWeightRegular:s,fontWeightMedium:u,fontWeightBold:c},b),f,{clone:!1})}(p,u),transitions:function(e){let t=(0,a.Z)({},tt,e.easing),n=(0,a.Z)({},tn,e.duration),r=(e=["all"],r={})=>{let{duration:o=n.standard,easing:a=t.easeInOut,delay:l=0}=r;return(0,i.Z)(r,te),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:tr(o)} ${a} ${"string"==typeof l?l:tr(l)}`).join(",")};return(0,a.Z)({getAutoHeightDuration:to,create:r},e,{easing:t,duration:n})}(s),zIndex:(0,a.Z)({},ti)});return m=x(m,d),(m=t.reduce((e,t)=>x(e,t),m)).unstable_sxConfig=(0,a.Z)({},ez,null==d?void 0:d.unstable_sxConfig),m.unstable_sx=function(e){return eL({sx:e,theme:this})},m};let ts=tl();var tu="$$material";let tc=e=>e$(e)&&"classes"!==e,td=eZ({themeId:tu,defaultTheme:ts,rootShouldForwardProp:tc});var tp=n(66330),th=function(e=null){var t;let n=r.useContext(tp.T);return n&&0!==Object.keys(n).length?n:e};let tf=eH();function tm(e=tf){return th(e)}function tg(){let e=tm(ts);return e[tu]||e}function tv({props:e,name:t,defaultTheme:n,themeId:r}){let o=tm(n);r&&(o=o[r]||o);let i=function(e){let{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?function e(t,n){let r=(0,a.Z)({},n);return Object.keys(t).forEach(o=>{if(o.toString().match(/^(components|slots)$/))r[o]=(0,a.Z)({},t[o],r[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){let i=t[o]||{},l=n[o];r[o]={},l&&Object.keys(l)?i&&Object.keys(i)?(r[o]=(0,a.Z)({},l),Object.keys(i).forEach(t=>{r[o][t]=e(i[t],l[t])})):r[o]=l:r[o]=i}else void 0===r[o]&&(r[o]=t[o])}),r}(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function tb({props:e,name:t}){return tv({props:e,name:t,defaultTheme:ts,themeId:tu})}var ty=n(37198);let tx=e=>e.scrollTop;function tw(e,t){var n,r;let{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function tE(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function tk(...e){return r.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{tE(e,t)})},e)}var tC=n(52322);let tS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function tM(e){return`scale(${e}, ${e**2})`}let tO={entering:{opacity:1,transform:tM(1)},entered:{opacity:1,transform:"none"}},tA="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),t_=r.forwardRef(function(e,t){let{addEndListener:n,appear:o=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:f,onExiting:m,style:g,timeout:v="auto",TransitionComponent:b=ty.ZP}=e,y=(0,i.Z)(e,tS),x=r.useRef(),w=r.useRef(),E=tg(),k=r.useRef(null),C=tk(k,l.ref,t),S=e=>t=>{if(e){let n=k.current;void 0===t?e(n):e(n,t)}},M=S(p),O=S((e,t)=>{tx(e);let{duration:n,delay:r,easing:o}=tw({style:g,timeout:v,easing:s},{mode:"enter"}),i;"auto"===v?(i=E.transitions.getAutoHeightDuration(e.clientHeight),w.current=i):i=n,e.style.transition=[E.transitions.create("opacity",{duration:i,delay:r}),E.transitions.create("transform",{duration:tA?i:.666*i,delay:r,easing:o})].join(","),c&&c(e,t)}),A=S(d),_=S(m),T=S(e=>{let{duration:t,delay:n,easing:r}=tw({style:g,timeout:v,easing:s},{mode:"exit"}),o;"auto"===v?(o=E.transitions.getAutoHeightDuration(e.clientHeight),w.current=o):o=t,e.style.transition=[E.transitions.create("opacity",{duration:o,delay:n}),E.transitions.create("transform",{duration:tA?o:.666*o,delay:tA?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=tM(.75),h&&h(e)}),R=S(f),z=e=>{"auto"===v&&(x.current=setTimeout(e,w.current||0)),n&&n(k.current,e)};return r.useEffect(()=>()=>{clearTimeout(x.current)},[]),(0,tC.jsx)(b,(0,a.Z)({appear:o,in:u,nodeRef:k,onEnter:O,onEntered:A,onEntering:M,onExit:T,onExited:R,onExiting:_,addEndListener:z,timeout:"auto"===v?null:v},y,{children:(e,t)=>r.cloneElement(l,(0,a.Z)({style:(0,a.Z)({opacity:0,transform:tM(.75),visibility:"exited"!==e||u?void 0:"hidden"},tO[e],g,l.props.style),ref:C},t))}))});t_.muiSupportAuto=!0;let tT="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function tR(e){return e&&e.ownerDocument||document}var tz=n(66208),tL=n(28316);let tI=r.forwardRef(function(e,t){let{children:n,container:o,disablePortal:i=!1}=e,[a,l]=r.useState(null),s=tk(r.isValidElement(n)?n.ref:null,t);return(tT(()=>{if(!i){var e;l(("function"==typeof o?o():o)||document.body)}},[o,i]),tT(()=>{if(a&&!i)return tE(t,a),()=>{tE(t,null)}},[t,a,i]),i)?r.isValidElement(n)?r.cloneElement(n,{ref:s}):(0,tC.jsx)(r.Fragment,{children:n}):(0,tC.jsx)(r.Fragment,{children:a?tL.createPortal(n,a):a})}),tH=e=>e,tN,tP=(tN=tH,{configure(e){tN=e},generate:e=>tN(e),reset(){tN=tH}}),tD={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function tj(e,t,n="Mui"){let r=tD[t];return r?`${n}-${r}`:`${tP.generate(e)}-${t}`}function tB(e,t,n="Mui"){let r={};return t.forEach(t=>{r[t]=tj(e,t,n)}),r}function tF(e){return tj("MuiPopper",e)}function tV(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}tB("MuiPopper",["root"]);let t$=["elementType","externalSlotProps","ownerState"];function tW(e){var t,n,r;let{elementType:o,externalSlotProps:s,ownerState:c}=e,d=(0,i.Z)(e,t$),p="function"==typeof s?s(c):s,{props:h,internalRef:f}=function(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){let s=(0,l.Z)(null==o?void 0:o.className,null==r?void 0:r.className,i,null==n?void 0:n.className),u=(0,a.Z)({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),c=(0,a.Z)({},n,o,r);return s.length>0&&(c.className=s),Object.keys(u).length>0&&(c.style=u),{props:c,internalRef:void 0}}let d=function(e,t=[]){if(void 0===e)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}((0,a.Z)({},o,r)),p=tV(r),h=tV(o),f=t(d),m=(0,l.Z)(null==f?void 0:f.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),g=(0,a.Z)({},null==f?void 0:f.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),v=(0,a.Z)({},f,n,h,p);return m.length>0&&(v.className=m),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:f.ref}}((0,a.Z)({},d,{externalSlotProps:p})),m=tk(f,null==p?void 0:p.ref,null==(t=e.additionalProps)?void 0:t.ref),g=u(o,(0,a.Z)({},h,{ref:m}),c);return g}let tU=r.createContext({disableDefaultClasses:!1}),tZ=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],tG=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function tK(e){return"function"==typeof e?e():e}let tY=()=>s({root:["root"]},function(e){let{disableDefaultClasses:t}=r.useContext(tU);return n=>t?"":e(n)}(tF)),tq={},tX=r.forwardRef(function(e,t){var n;let{anchorEl:o,children:l,direction:s,disablePortal:u,modifiers:c,open:d,placement:p,popperOptions:h,popperRef:f,slotProps:m={},slots:g={},TransitionProps:v}=e,b=(0,i.Z)(e,tZ),y=r.useRef(null),x=tk(y,t),w=r.useRef(null),E=tk(w,f),k=r.useRef(E);tT(()=>{k.current=E},[E]),r.useImperativeHandle(f,()=>w.current,[]);let C=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,s),[S,M]=r.useState(C),[O,A]=r.useState(tK(o));r.useEffect(()=>{w.current&&w.current.forceUpdate()}),r.useEffect(()=>{o&&A(tK(o))},[o]),tT(()=>{if(!O||!d)return;let e=e=>{M(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn({state:t}){e(t)}}];null!=c&&(t=t.concat(c)),h&&null!=h.modifiers&&(t=t.concat(h.modifiers));let n=(0,tz.fi)(O,y.current,(0,a.Z)({placement:C},h,{modifiers:t}));return k.current(n),()=>{n.destroy(),k.current(null)}},[O,u,c,d,h,C]);let _={placement:S};null!==v&&(_.TransitionProps=v);let T=tY(),R=null!=(n=g.root)?n:"div",z=tW({elementType:R,externalSlotProps:m.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:x},ownerState:e,className:T.root});return(0,tC.jsx)(R,(0,a.Z)({},z,{children:"function"==typeof l?l(_):l}))}),tJ=r.forwardRef(function(e,t){let{anchorEl:n,children:o,container:l,direction:s="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:d,open:p,placement:h="bottom",popperOptions:f=tq,popperRef:m,style:g,transition:v=!1,slotProps:b={},slots:y={}}=e,x=(0,i.Z)(e,tG),[w,E]=r.useState(!0),k=()=>{E(!1)},C=()=>{E(!0)};if(!c&&!p&&(!v||w))return null;let S;if(l)S=l;else if(n){var M;let O=tK(n);S=O&&void 0!==O.nodeType?tR(O).body:tR(null).body}return(0,tC.jsx)(tI,{disablePortal:u,container:S,children:(0,tC.jsx)(tX,(0,a.Z)({anchorEl:n,direction:s,disablePortal:u,modifiers:d,ref:t,open:v?!w:p,placement:h,popperOptions:f,popperRef:m,slotProps:b,slots:y},x,{style:(0,a.Z)({position:"fixed",top:0,left:0,display:!p&&c&&(!v||w)?"none":void 0},g),TransitionProps:v?{in:p,onEnter:k,onExited:C}:void 0,children:o}))})}),tQ=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],t0=td(tJ,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),t1=r.forwardRef(function(e,t){var n;let r=th(),o=tb({props:e,name:"MuiPopper"}),{anchorEl:l,component:s,components:u,componentsProps:c,container:d,disablePortal:p,keepMounted:h,modifiers:f,open:m,placement:g,popperOptions:v,popperRef:b,transition:y,slots:x,slotProps:w}=o,E=(0,i.Z)(o,tQ),k=null!=(n=null==x?void 0:x.root)?n:null==u?void 0:u.Root,C=(0,a.Z)({anchorEl:l,container:d,disablePortal:p,keepMounted:h,modifiers:f,open:m,placement:g,popperOptions:v,popperRef:b,transition:y},E);return(0,tC.jsx)(t0,(0,a.Z)({as:s,direction:null==r?void 0:r.direction,slots:{root:k},slotProps:null!=w?w:c},C,{ref:t}))});var t2=function(e){let t=r.useRef(e);return tT(()=>{t.current=e}),r.useCallback((...e)=>(0,t.current)(...e),[])};let t5=0,t4=o.useId;var t3=function(e){if(void 0!==t4){let t=t4();return null!=e?e:t}return function(e){let[t,n]=r.useState(e);return r.useEffect(()=>{null==t&&n(`mui-${t5+=1}`)},[t]),e||t}(e)};let t7=!0,t6=!1,t8,t9={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function ne(e){!e.metaKey&&!e.altKey&&!e.ctrlKey&&(t7=!0)}function nt(){t7=!1}function nn(){"hidden"===this.visibilityState&&t6&&(t7=!0)}var nr=function(){let e=r.useCallback(e=>{if(null!=e){var t;(t=e.ownerDocument).addEventListener("keydown",ne,!0),t.addEventListener("mousedown",nt,!0),t.addEventListener("pointerdown",nt,!0),t.addEventListener("touchstart",nt,!0),t.addEventListener("visibilitychange",nn,!0)}},[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){let{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return t7||function(e){let{type:t,tagName:n}=e;return"INPUT"===n&&!!t9[t]&&!e.readOnly||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(t6=!0,window.clearTimeout(t8),t8=window.setTimeout(()=>{t6=!1},100),t.current=!1,!0)},ref:e}},no=function({controlled:e,default:t,name:n,state:o="value"}){let{current:i}=r.useRef(void 0!==e),[a,l]=r.useState(t),s=r.useCallback(e=>{i||l(e)},[]);return[i?e:a,s]};function ni(e){return tj("MuiTooltip",e)}let na=tB("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),nl=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],ns=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${T(i.split("-")[0])}`],arrow:["arrow"]};return s(a,ni,t)},nu=td(t1,{name:"MuiTooltip",slot:"Popper",overridesResolver(e,t){let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>(0,a.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${na.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${na.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${na.arrow}`]:(0,a.Z)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${na.arrow}`]:(0,a.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),nc=td("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver(e,t){let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${T(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>{var n;return(0,a.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:m(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Math.round(1e5*(16/14))/1e5}em`,fontWeight:e.typography.fontWeightRegular},{[`.${na.popper}[data-popper-placement*="left"] &`]:(0,a.Z)({transformOrigin:"right center"},t.isRtl?(0,a.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,a.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${na.popper}[data-popper-placement*="right"] &`]:(0,a.Z)({transformOrigin:"left center"},t.isRtl?(0,a.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,a.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${na.popper}[data-popper-placement*="top"] &`]:(0,a.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${na.popper}[data-popper-placement*="bottom"] &`]:(0,a.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})}),nd=td("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:m(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})),np=!1,nh=null,nf={x:0,y:0};function nm(e,t){return n=>{t&&t(n),e(n)}}let ng=r.forwardRef(function(e,t){var n,o,s,c,d,p,h,f,m,g,v,b,y,x,w,E,k,C,S;let M=tb({props:e,name:"MuiTooltip"}),{arrow:O=!1,children:A,components:_={},componentsProps:T={},describeChild:R=!1,disableFocusListener:z=!1,disableHoverListener:L=!1,disableInteractive:I=!1,disableTouchListener:H=!1,enterDelay:N=100,enterNextDelay:P=0,enterTouchDelay:D=700,followCursor:j=!1,id:B,leaveDelay:F=0,leaveTouchDelay:V=1500,onClose:$,onOpen:W,open:U,placement:Z="bottom",PopperComponent:G,PopperProps:K={},slotProps:Y={},slots:q={},title:X,TransitionComponent:J=t_,TransitionProps:Q}=M,ee=(0,i.Z)(M,nl),et=tg(),en="rtl"===et.direction,[er,eo]=r.useState(),[ei,ea]=r.useState(null),el=r.useRef(!1),es=I||j,eu=r.useRef(),ec=r.useRef(),ed=r.useRef(),ep=r.useRef(),[eh,ef]=no({controlled:U,default:!1,name:"Tooltip",state:"open"}),em=eh,eg=t3(B),ev=r.useRef(),eb=r.useCallback(()=>{void 0!==ev.current&&(document.body.style.WebkitUserSelect=ev.current,ev.current=void 0),clearTimeout(ep.current)},[]);r.useEffect(()=>()=>{clearTimeout(eu.current),clearTimeout(ec.current),clearTimeout(ed.current),eb()},[eb]);let ey=e=>{clearTimeout(nh),np=!0,ef(!0),W&&!em&&W(e)},ex=t2(e=>{clearTimeout(nh),nh=setTimeout(()=>{np=!1},800+F),ef(!1),$&&em&&$(e),clearTimeout(eu.current),eu.current=setTimeout(()=>{el.current=!1},et.transitions.duration.shortest)}),ew=e=>{(!el.current||"touchstart"===e.type)&&(er&&er.removeAttribute("title"),clearTimeout(ec.current),clearTimeout(ed.current),N||np&&P?ec.current=setTimeout(()=>{ey(e)},np?P:N):ey(e))},eE=e=>{clearTimeout(ec.current),clearTimeout(ed.current),ed.current=setTimeout(()=>{ex(e)},F)},{isFocusVisibleRef:ek,onBlur:eC,onFocus:eS,ref:eM}=nr(),[,eO]=r.useState(!1),eA=e=>{eC(e),!1===ek.current&&(eO(!1),eE(e))},e_=e=>{er||eo(e.currentTarget),eS(e),!0===ek.current&&(eO(!0),ew(e))},eT=e=>{el.current=!0;let t=A.props;t.onTouchStart&&t.onTouchStart(e)},eR=e=>{eT(e),clearTimeout(ed.current),clearTimeout(eu.current),eb(),ev.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ep.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ev.current,ew(e)},D)},ez=e=>{A.props.onTouchEnd&&A.props.onTouchEnd(e),eb(),clearTimeout(ed.current),ed.current=setTimeout(()=>{ex(e)},V)};r.useEffect(()=>{if(em)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&ex(e)}},[ex,em]);let eL=tk(A.ref,eM,eo,t);X||0===X||(em=!1);let eI=r.useRef(),eH=e=>{let t=A.props;t.onMouseMove&&t.onMouseMove(e),nf={x:e.clientX,y:e.clientY},eI.current&&eI.current.update()},eN={},eP="string"==typeof X;R?(eN.title=em||!eP||L?null:X,eN["aria-describedby"]=em?eg:null):(eN["aria-label"]=eP?X:null,eN["aria-labelledby"]=em&&!eP?eg:null);let eD=(0,a.Z)({},eN,ee,A.props,{className:(0,l.Z)(ee.className,A.props.className),onTouchStart:eT,ref:eL},j?{onMouseMove:eH}:{}),ej={};H||(eD.onTouchStart=eR,eD.onTouchEnd=ez),L||(eD.onMouseOver=nm(ew,eD.onMouseOver),eD.onMouseLeave=nm(eE,eD.onMouseLeave),es||(ej.onMouseOver=ew,ej.onMouseLeave=eE)),z||(eD.onFocus=nm(e_,eD.onFocus),eD.onBlur=nm(eA,eD.onBlur),es||(ej.onFocus=e_,ej.onBlur=eA));let eB=r.useMemo(()=>{var e;let t=[{name:"arrow",enabled:Boolean(ei),options:{element:ei,padding:4}}];return null!=(e=K.popperOptions)&&e.modifiers&&(t=t.concat(K.popperOptions.modifiers)),(0,a.Z)({},K.popperOptions,{modifiers:t})},[ei,K]),eF=(0,a.Z)({},M,{isRtl:en,arrow:O,disableInteractive:es,placement:Z,PopperComponentProp:G,touch:el.current}),eV=ns(eF),e$=null!=(n=null!=(o=q.popper)?o:_.Popper)?n:nu,eW=null!=(s=null!=(c=null!=(d=q.transition)?d:_.Transition)?c:J)?s:t_,eU=null!=(p=null!=(h=q.tooltip)?h:_.Tooltip)?p:nc,eZ=null!=(f=null!=(m=q.arrow)?m:_.Arrow)?f:nd,eG=u(e$,(0,a.Z)({},K,null!=(g=Y.popper)?g:T.popper,{className:(0,l.Z)(eV.popper,null==K?void 0:K.className,null==(v=null!=(b=Y.popper)?b:T.popper)?void 0:v.className)}),eF),eK=u(eW,(0,a.Z)({},Q,null!=(y=Y.transition)?y:T.transition),eF),eY=u(eU,(0,a.Z)({},null!=(x=Y.tooltip)?x:T.tooltip,{className:(0,l.Z)(eV.tooltip,null==(w=null!=(E=Y.tooltip)?E:T.tooltip)?void 0:w.className)}),eF),eq=u(eZ,(0,a.Z)({},null!=(k=Y.arrow)?k:T.arrow,{className:(0,l.Z)(eV.arrow,null==(C=null!=(S=Y.arrow)?S:T.arrow)?void 0:C.className)}),eF);return(0,tC.jsxs)(r.Fragment,{children:[r.cloneElement(A,eD),(0,tC.jsx)(e$,(0,a.Z)({as:null!=G?G:t1,placement:Z,anchorEl:j?{getBoundingClientRect:()=>({top:nf.y,left:nf.x,right:nf.x,bottom:nf.y,width:0,height:0})}:er,popperRef:eI,open:!!er&&em,id:eg,transition:!0},ej,eG,{popperOptions:eB,children:({TransitionProps:e})=>(0,tC.jsx)(eW,(0,a.Z)({timeout:et.transitions.duration.shorter},e,eK,{children:(0,tC.jsxs)(eU,(0,a.Z)({},eY,{children:[X,O?(0,tC.jsx)(eZ,(0,a.Z)({},eq,{ref:ea})):null]}))}))}))]})}),nv=["sx"],nb=e=>{var t,n;let r={systemProps:{},otherProps:{}},o=null!=(t=null==e?void 0:null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:ez;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r};function ny(e){let{sx:t}=e,n=(0,i.Z)(e,nv),{systemProps:r,otherProps:o}=nb(n),l;return l=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{let n=t(...e);return y(n)?(0,a.Z)({},r,n):r}:(0,a.Z)({},r,t),(0,a.Z)({},o,{sx:l})}let nx=["className","component"],nw=tl(),nE=function(e={}){let{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:s}=e,u=v("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(eL),c=r.forwardRef(function(e,r){let c=tm(n),d=ny(e),{className:p,component:h="div"}=d,f=(0,i.Z)(d,nx);return(0,tC.jsx)(u,(0,a.Z)({as:h,ref:r,className:(0,l.Z)(p,s?s(o):o),theme:t&&c[t]||c},f))});return c}({themeId:tu,defaultTheme:nw,defaultClassName:"MuiBox-root",generateClassName:tP.generate});var nk=n(60258);n(2107),n(73463);var nC=n(40653);function nS(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,nC.O)(t)}n(82668);var nM=function(){var e=nS.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},nO=function(e){let{className:t,classes:n,pulsate:o=!1,rippleX:i,rippleY:a,rippleSize:s,in:u,onExited:c,timeout:d}=e,[p,h]=r.useState(!1),f=(0,l.Z)(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m=(0,l.Z)(n.child,p&&n.childLeaving,o&&n.childPulsate);return u||p||h(!0),r.useEffect(()=>{if(!u&&null!=c){let e=setTimeout(c,d);return()=>{clearTimeout(e)}}},[c,u,d]),(0,tC.jsx)("span",{className:f,style:{width:s,height:s,top:-(s/2)+a,left:-(s/2)+i},children:(0,tC.jsx)("span",{className:m})})};let nA=tB("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),n_=["center","classes","className"],nT,nR,nz,nL,nI=nM(nT||(nT=(e=>e)`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`)),nH=nM(nR||(nR=(e=>e)`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`)),nN=nM(nz||(nz=(e=>e)`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`)),nP=td("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),nD=td(nO,{name:"MuiTouchRipple",slot:"Ripple"})(nL||(nL=(e=>e)`
  opacity: 0;
  position: absolute;

  &.${0} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  &.${0} {
    animation-duration: ${0}ms;
  }

  & .${0} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${0} {
    opacity: 0;
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  & .${0} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${0};
    animation-duration: 2500ms;
    animation-timing-function: ${0};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`),nA.rippleVisible,nI,550,({theme:e})=>e.transitions.easing.easeInOut,nA.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,nA.child,nA.childLeaving,nH,550,({theme:e})=>e.transitions.easing.easeInOut,nA.childPulsate,nN,({theme:e})=>e.transitions.easing.easeInOut),nj=r.forwardRef(function(e,t){let n=tb({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:u}=n,c=(0,i.Z)(n,n_),[d,p]=r.useState([]),h=r.useRef(0),f=r.useRef(null);r.useEffect(()=>{f.current&&(f.current(),f.current=null)},[d]);let m=r.useRef(!1),g=r.useRef(null),v=r.useRef(null),b=r.useRef(null);r.useEffect(()=>()=>{clearTimeout(g.current)},[]);let y=r.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:i}=e;p(e=>[...e,(0,tC.jsx)(nD,{classes:{ripple:(0,l.Z)(s.ripple,nA.ripple),rippleVisible:(0,l.Z)(s.rippleVisible,nA.rippleVisible),ripplePulsate:(0,l.Z)(s.ripplePulsate,nA.ripplePulsate),child:(0,l.Z)(s.child,nA.child),childLeaving:(0,l.Z)(s.childLeaving,nA.childLeaving),childPulsate:(0,l.Z)(s.childPulsate,nA.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},h.current)]),h.current+=1,f.current=i},[s]),x=r.useCallback((e={},t={},n=()=>{})=>{let{pulsate:r=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if((null==e?void 0:e.type)==="mousedown"&&m.current){m.current=!1;return}(null==e?void 0:e.type)==="touchstart"&&(m.current=!0);let l=a?null:b.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0},u,c,d;if(!i&&void 0!==e&&(0!==e.clientX||0!==e.clientY)&&(e.clientX||e.touches)){let{clientX:p,clientY:h}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(p-s.left),c=Math.round(h-s.top)}else u=Math.round(s.width/2),c=Math.round(s.height/2);if(i)(d=Math.sqrt((2*s.width**2+s.height**2)/3))%2==0&&(d+=1);else{let f=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,x=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;d=Math.sqrt(f**2+x**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{y({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},g.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},80)):y({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},[o,y]),w=r.useCallback(()=>{x({},{pulsate:!0})},[x]),E=r.useCallback((e,t)=>{if(clearTimeout(g.current),(null==e?void 0:e.type)==="touchend"&&v.current){v.current(),v.current=null,g.current=setTimeout(()=>{E(e,t)});return}v.current=null,p(e=>e.length>0?e.slice(1):e),f.current=t},[]);return r.useImperativeHandle(t,()=>({pulsate:w,start:x,stop:E}),[w,x,E]),(0,tC.jsx)(nP,(0,a.Z)({className:(0,l.Z)(nA.root,s.root,u),ref:b},c,{children:(0,tC.jsx)(nk.Z,{component:null,exit:!0,children:d})}))});function nB(e){return tj("MuiButtonBase",e)}let nF=tB("MuiButtonBase",["root","disabled","focusVisible"]),nV=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],n$=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=s({root:["root",t&&"disabled",n&&"focusVisible"]},nB,o);return n&&r&&(i.root+=` ${r}`),i},nW=td("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${nF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),nU=r.forwardRef(function(e,t){let n=tb({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:u,className:c,component:d="button",disabled:p=!1,disableRipple:h=!1,disableTouchRipple:f=!1,focusRipple:m=!1,LinkComponent:g="a",onBlur:v,onClick:b,onContextMenu:y,onDragLeave:x,onFocus:w,onFocusVisible:E,onKeyDown:k,onKeyUp:C,onMouseDown:S,onMouseLeave:M,onMouseUp:O,onTouchEnd:A,onTouchMove:_,onTouchStart:T,tabIndex:R=0,TouchRippleProps:z,touchRippleRef:L,type:I}=n,H=(0,i.Z)(n,nV),N=r.useRef(null),P=r.useRef(null),D=tk(P,L),{isFocusVisibleRef:j,onFocus:B,onBlur:F,ref:V}=nr(),[$,W]=r.useState(!1);p&&$&&W(!1),r.useImperativeHandle(o,()=>({focusVisible(){W(!0),N.current.focus()}}),[]);let[U,Z]=r.useState(!1);function G(e,t,n=f){return t2(r=>(t&&t(r),!n&&P.current&&P.current[e](r),!0))}r.useEffect(()=>{Z(!0)},[]),r.useEffect(()=>{$&&m&&!h&&U&&P.current.pulsate()},[h,m,$,U]);let K=G("start",S),Y=G("stop",y),q=G("stop",x),X=G("stop",O),J=G("stop",e=>{$&&e.preventDefault(),M&&M(e)}),Q=G("start",T),ee=G("stop",A),et=G("stop",_),en=G("stop",e=>{F(e),!1===j.current&&W(!1),v&&v(e)},!1),er=t2(e=>{N.current||(N.current=e.currentTarget),B(e),!0===j.current&&(W(!0),E&&E(e)),w&&w(e)}),eo=()=>{let e=N.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ei=r.useRef(!1),ea=t2(e=>{m&&!ei.current&&$&&P.current&&" "===e.key&&(ei.current=!0,P.current.stop(e,()=>{P.current.start(e)})),e.target===e.currentTarget&&eo()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&eo()&&"Enter"===e.key&&!p&&(e.preventDefault(),b&&b(e))}),el=t2(e=>{m&&" "===e.key&&P.current&&$&&!e.defaultPrevented&&(ei.current=!1,P.current.stop(e,()=>{P.current.pulsate(e)})),C&&C(e),b&&e.target===e.currentTarget&&eo()&&" "===e.key&&!e.defaultPrevented&&b(e)}),es=d;"button"===es&&(H.href||H.to)&&(es=g);let eu={};"button"===es?(eu.type=void 0===I?"button":I,eu.disabled=p):(H.href||H.to||(eu.role="button"),p&&(eu["aria-disabled"]=p));let ec=tk(t,V,N),ed=(0,a.Z)({},n,{centerRipple:s,component:d,disabled:p,disableRipple:h,disableTouchRipple:f,focusRipple:m,tabIndex:R,focusVisible:$}),ep=n$(ed);return(0,tC.jsxs)(nW,(0,a.Z)({as:es,className:(0,l.Z)(ep.root,c),ownerState:ed,onBlur:en,onClick:b,onContextMenu:Y,onFocus:er,onKeyDown:ea,onKeyUp:el,onMouseDown:K,onMouseLeave:J,onMouseUp:X,onDragLeave:q,onTouchEnd:ee,onTouchMove:et,onTouchStart:Q,ref:ec,tabIndex:p?-1:R,type:I},eu,H,{children:[u,!U||h||p?null:(0,tC.jsx)(nj,(0,a.Z)({ref:D,center:s},z))]}))});function nZ(e){return tj("MuiToggleButton",e)}let nG=tB("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),nK=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],nY=e=>{let{classes:t,fullWidth:n,selected:r,disabled:o,size:i,color:a}=e,l={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${T(i)}`,a]};return s(l,nZ,t)},nq=td(nU,{name:"MuiToggleButton",slot:"Root",overridesResolver(e,t){let{ownerState:n}=e;return[t.root,t[`size${T(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n="standard"===t.color?e.palette.text.primary:e.palette[t.color].main,r;return e.vars&&(n="standard"===t.color?e.vars.palette.text.primary:e.vars.palette[t.color].main,r="standard"===t.color?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),(0,a.Z)({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${nG.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:m(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nG.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:m(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:m(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:m(n,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})}),nX=r.forwardRef(function(e,t){let n=tb({props:e,name:"MuiToggleButton"}),{children:r,className:o,color:s="standard",disabled:u=!1,disableFocusRipple:c=!1,fullWidth:d=!1,onChange:p,onClick:h,selected:f,size:m="medium",value:g}=n,v=(0,i.Z)(n,nK),b=(0,a.Z)({},n,{color:s,disabled:u,disableFocusRipple:c,fullWidth:d,size:m}),y=nY(b),x=e=>{(!h||(h(e,g),!e.defaultPrevented))&&p&&p(e,g)};return(0,tC.jsx)(nq,(0,a.Z)({className:(0,l.Z)(y.root,o),disabled:u,focusRipple:!c,ref:t,onClick:x,onChange:p,value:g,ownerState:b,"aria-pressed":f},v,{children:r}))});var nJ=n(71071),nQ=n(50273),n0=n(71688);let n1=e=>{let t=r.useRef({});return r.useEffect(()=>{t.current=e}),t.current};function n2(e){return tj("MuiBadge",e)}let n5=tB("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),n4=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],n3=e=>{let{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,l={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${T(n.vertical)}${T(n.horizontal)}`,`anchorOrigin${T(n.vertical)}${T(n.horizontal)}${T(o)}`,`overlap${T(o)}`,"default"!==t&&`color${T(t)}`]};return s(l,n2,a)},n7=td("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),n6=td("span",{name:"MuiBadge",slot:"Badge",overridesResolver(e,t){let{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${T(n.anchorOrigin.vertical)}${T(n.anchorOrigin.horizontal)}${T(n.overlap)}`],"default"!==n.color&&t[`color${T(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>(0,a.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${n5.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${n5.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${n5.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${n5.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${n5.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${n5.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${n5.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${n5.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),n8=r.forwardRef(function(e,t){var n,r,o,s,u,c;let d=tb({props:e,name:"MuiBadge"}),{anchorOrigin:p={vertical:"top",horizontal:"right"},className:h,component:f,components:m={},componentsProps:g={},children:v,overlap:b="rectangular",color:y="default",invisible:x=!1,max:w=99,badgeContent:E,slots:k,slotProps:C,showZero:S=!1,variant:M="standard"}=d,O=(0,i.Z)(d,n4),{badgeContent:A,invisible:_,max:T,displayValue:R}=function(e){let{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=n1({badgeContent:t,max:r}),a=n;!1!==n||0!==t||o||(a=!0);let{badgeContent:l,max:s=r}=a?i:e,u=l&&Number(l)>s?`${s}+`:l;return{badgeContent:l,invisible:a,max:s,displayValue:u}}({max:w,invisible:x,badgeContent:E,showZero:S}),z=n1({anchorOrigin:p,color:y,overlap:b,variant:M,badgeContent:E}),L=_||null==A&&"dot"!==M,{color:I=y,overlap:H=b,anchorOrigin:N=p,variant:P=M}=L?z:d,D="dot"!==P?R:void 0,j=(0,a.Z)({},d,{badgeContent:A,invisible:L,max:T,displayValue:D,showZero:S,anchorOrigin:N,color:I,overlap:H,variant:P}),B=n3(j),F=null!=(n=null!=(r=null==k?void 0:k.root)?r:m.Root)?n:n7,V=null!=(o=null!=(s=null==k?void 0:k.badge)?s:m.Badge)?o:n6,$=null!=(u=null==C?void 0:C.root)?u:g.root,W=null!=(c=null==C?void 0:C.badge)?c:g.badge,U=tW({elementType:F,externalSlotProps:$,externalForwardedProps:O,additionalProps:{ref:t,as:f},ownerState:j,className:(0,l.Z)(null==$?void 0:$.className,B.root,h)}),Z=tW({elementType:V,externalSlotProps:W,ownerState:j,className:(0,l.Z)(B.badge,null==W?void 0:W.className)});return(0,tC.jsxs)(F,(0,a.Z)({},U,{children:[v,(0,tC.jsx)(V,(0,a.Z)({},Z,{children:D}))]}))});var n9=n(25535),re=n(10501),rt=n(52727),rn=n(21251),rr=n(42719);let ro=eZ(),ri=["component","direction","spacing","divider","children","className","useFlexGap"],ra=eH(),rl=ro("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function rs(e){return tv({props:e,name:"MuiStack",defaultTheme:ra})}let ru=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],rc=({ownerState:e,theme:t})=>{let n=(0,a.Z)({display:"flex",flexDirection:"column"},M({theme:t},_({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){let r=$(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),i=_({values:e.direction,base:o}),l=_({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach((e,t,n)=>{let r=i[e];if(!r){let o=t>0?i[n[t-1]]:"column";i[e]=o}});let s=(t,n)=>e.useFlexGap?{gap:W(r,t)}:{"& > :not(style) + :not(style)":{margin:0,[`margin${ru(n?i[n]:e.direction)}`]:W(r,t)}};n=x(n,M({theme:t},l,s))}return function(e,...t){let n=O(e),r=[n,...t].reduce((e,t)=>x(e,t),{});return A(Object.keys(n),r)}(t.breakpoints,n)},rd=function(e={}){let{createStyledComponent:t=rl,useThemeProps:n=rs,componentName:o="MuiStack"}=e,u=()=>s({root:["root"]},e=>tj(o,e),{}),c=t(rc),d=r.forwardRef(function(e,t){let o=n(e),s=ny(o),{component:d="div",direction:p="column",spacing:h=0,divider:f,children:m,className:g,useFlexGap:v=!1}=s,b=(0,i.Z)(s,ri),y=u();return(0,tC.jsx)(c,(0,a.Z)({as:d,ownerState:{direction:p,spacing:h,useFlexGap:v},ref:t,className:(0,l.Z)(y.root,g)},b,{children:f?function(e,t){let n=r.Children.toArray(e).filter(Boolean);return n.reduce((e,o,i)=>(e.push(o),i<n.length-1&&e.push(r.cloneElement(t,{key:`separator-${i}`})),e),[])}(m,f):m}))});return d}({createStyledComponent:td("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>tb({props:e,name:"MuiStack"})});function rp(e,t){return(0,nJ.mf)(e)?e(t):e}var rh={title:e=>(0,nJ.kC)(e),upper:e=>e.toLocaleUpperCase(),lower:e=>e.toLocaleLowerCase()},rf=({commandName:e,active:t,enabled:n,attrs:o})=>{let{t:i}=(0,nQ.QT)(),{getCommandOptions:a}=(0,nQ.z8)(),l=a(e),{description:s,label:u,icon:c,shortcut:d}=l||{},p=(0,r.useMemo)(()=>({active:t,attrs:o,enabled:n,t:i}),[t,o,n,i]),h=(0,r.useMemo)(()=>{if(d)return function(e,t){let{casing:n="title",namedAsSymbol:r=!1,modifierAsSymbol:o=!0,separator:i=" ",t:a}=t,l=(0,n0.Jv)(e),s=[],u=rh[n];for(let c of l){if("char"===c.type){s.push(u(c.key));continue}if("named"===c.type){let d=!0===r||(0,nJ.kJ)(r)&&(0,nJ.q9)(r,c.key)?c.symbol??a(c.i18n):a(c.i18n);s.push(u(d));continue}let p=!0===o||(0,nJ.kJ)(o)&&(0,nJ.q9)(o,c.key)?c.symbol:a(c.i18n);s.push(u(p))}return s.join(i)}(function(e,t){var n,r;return(0,nJ.HD)(e)?e:(0,nJ.kJ)(e)?(0,nJ.HD)(e[0])?e[0]??"":(null==(n=e.find(e=>(0,nJ.Xy)(e.attrs,t))??e[0])?void 0:n.shortcut)??"":e.shortcut}(d,o??{}),{t:i,separator:""})},[d,o,i]);return(0,r.useMemo)(()=>({description:rp(s,p),label:rp(u,p),icon:rp(c,p),shortcut:h}),[p,s,u,c,h])},rm=(0,r.createContext)({color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0});rm.Provider;var rg=e=>{let{name:t}=e;return r.createElement(rv,{...e},function e(t){return t.map((t,n)=>(0,r.createElement)(t.tag,{key:n,...t.attr},e(t.child??[])))}(n9[t]))},rv=e=>{let t=t=>{let n=e.size??t.size??"1em",o;t.className&&(o=t.className),e.className&&(o=(o?`${o} `:"")+e.className);let{title:i,...a}=e;return r.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",...t.attr,...a,className:o,style:{color:e.color??t.color,...t.style,...e.style},height:n,width:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},i&&r.createElement("title",null,i),e.children)};return r.createElement(rm.Consumer,null,t)},rb=e=>!!(0,nJ.PO)(e)&&!!e.name,ry=({icon:e})=>(0,nJ.HD)(e)?r.createElement(rg,{name:e,size:"1rem"}):e,rx=({icon:e,children:t})=>{if(!rb(e))return r.createElement(r.Fragment,null,t);let{sub:n,sup:o}=e,i=n??o;return void 0===i?r.createElement(r.Fragment,null,t):r.createElement(n8,{anchorOrigin:{vertical:void 0!==n?"bottom":"top",horizontal:"right"},badgeContent:i,sx:{"& > .MuiBadge-badge":{bgcolor:"background.paper",color:"text.secondary",minWidth:12,height:12,margin:"2px 0",padding:"1px"}}},t)},rw=({commandName:e,active:t=!1,enabled:n,attrs:o,onSelect:i,onChange:a,icon:l,displayShortcut:s=!0,"aria-label":u,label:c,...d})=>{let p=(0,r.useCallback)((e,t)=>{i(),null==a||a(e,t)},[i,a]),h=(0,r.useCallback)(e=>{e.preventDefault()},[]),f=rf({commandName:e,active:t,enabled:n,attrs:o}),m=null;f.icon&&(m=(0,nJ.HD)(f.icon)?f.icon:f.icon.name);let g=u??f.label??"",v=s&&f.shortcut?` (${f.shortcut})`:"";return r.createElement(ng,{title:`${c??g}${v}`},r.createElement(nE,{component:"span",sx:{"&:not(:first-of-type)":{marginLeft:"-1px"}}},r.createElement(nX,{"aria-label":g,selected:t,disabled:!n,onMouseDown:h,color:"primary",size:"small",sx:{padding:"6px 12px","&.Mui-selected":{backgroundColor:"primary.main",color:"primary.contrastText"},"&.Mui-selected:hover":{backgroundColor:"primary.dark",color:"primary.contrastText"},"&:not(:first-of-type)":{borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0}},...d,value:e,onChange:p},r.createElement(rx,{icon:f.icon},r.createElement(ry,{icon:l??m})))))},rE=e=>{let{toggleBold:t}=(0,nQ.xd)(),n=(0,r.useCallback)(()=>{t.enabled()&&t()},[t]),o=(0,nQ.tZ)().bold(),i=t.enabled();return r.createElement(rw,{...e,commandName:"toggleBold",active:o,enabled:i,onSelect:n})},rk=e=>{let{toggleBulletList:t}=(0,nQ.xd)(),n=(0,r.useCallback)(()=>{t.enabled()&&t()},[t]),o=(0,nQ.tZ)().bulletList(),i=t.enabled();return r.createElement(rw,{...e,commandName:"toggleBulletList",active:o,enabled:i,onSelect:n})},rC=e=>{let{toggleCode:t}=(0,nQ.xd)(),n=(0,r.useCallback)(()=>{t.enabled()&&t()},[t]),o=(0,nQ.tZ)().code(),i=t.enabled();return r.createElement(rw,{...e,commandName:"toggleCode",active:o,enabled:i,onSelect:n})},rS=({attrs:e,...t})=>{let{toggleHeading:n}=(0,nQ.xd)(),o=(0,r.useCallback)(()=>{n.enabled(e)&&n(e)},[n,e]),i=(0,nQ.tZ)().heading(e),a=n.enabled(e);return r.createElement(rw,{...t,commandName:"toggleHeading",active:i,enabled:a,attrs:e,onSelect:o})},rM=e=>{let{toggleItalic:t}=(0,nQ.xd)(),n=(0,r.useCallback)(()=>{t.enabled()&&t()},[t]),o=(0,nQ.tZ)().italic(),i=t.enabled();return r.createElement(rw,{...e,commandName:"toggleItalic",active:o,enabled:i,onSelect:n})},rO=e=>{let{toggleOrderedList:t}=(0,nQ.xd)(),n=(0,r.useCallback)(()=>{t.enabled()&&t()},[t]),o=(0,nQ.tZ)().orderedList(),i=t.enabled();return r.createElement(rw,{...e,commandName:"toggleOrderedList",active:o,enabled:i,onSelect:n})},rA=e=>{let{toggleStrike:t}=(0,nQ.xd)(),n=(0,r.useCallback)(()=>{t.enabled()&&t()},[t]),o=(0,nQ.tZ)().strike(),i=t.enabled();return r.createElement(rw,{...e,commandName:"toggleStrike",active:o,enabled:i,onSelect:n})},r_=e=>{let{toggleUnderline:t}=(0,nQ.xd)(),n=(0,r.useCallback)(()=>{t.enabled()&&t()},[t]),o=(0,nQ.tZ)().underline(),i=t.enabled();return r.createElement(rw,{...e,commandName:"toggleUnderline",active:o,enabled:i,onSelect:n})},rT=e=>r.createElement(nE,{sx:{display:"flex",alignItems:"center",width:"fit-content",bgcolor:"background.paper",color:"text.secondary"},...e}),rR=({children:e})=>r.createElement(rT,null,r.createElement(rE,null),r.createElement(rM,null),r.createElement(r_,null),r.createElement(rA,null),r.createElement(rC,null),e),rz="object"==typeof rr&&rr.__esModule&&rr.default?rr.default:rr,rL="undefined"!=typeof document?r.useLayoutEffect:r.useEffect,rI=n0.NZ.isBrowser&&(0,n0.G6)();function rH(e){return t=>e&&!(0,nJ.Xy)(t,e)?e:t}var rN=e=>{let{containerClass:t,placement:n="right-end",positioner:o,children:i,blurOnInactive:a=!1,ignoredElements:l=[],enabled:s=!0,floatingLabel:u,hideWhenInvisible:c=!0,renderOutsideEditor:d=!1}=e,[p]=(0,rt.bg)({blurOnInactive:a,ignoredElements:l}),{ref:h,active:f,height:m,x:g,y:v,width:b,visible:y}=(0,rt.GB)(()=>{let e=(0,re.$7)(o);return e.active(p&&s)},[p,s,d]),x=(!c||y)&&f,w=function(e){let{height:t,left:n,top:o,width:i}=e;return(0,r.useMemo)(()=>({height:t,left:n,top:o,width:i}),[t,n,o,i])}({height:m,left:g,top:v,width:b}),{popperRef:E,referenceRef:k,popoverStyles:C,update:S}=function(e={}){let{gutter:t=12,placement:n="bottom",flip:o=!0,offset:i,preventOverflow:a=!0,fixed:l=!1,visible:s=!1}=e,u=(0,r.useRef)(null),c=(0,r.useRef)(),d=(0,r.useRef)(),p=(0,r.useRef)(),[h,f]=(0,r.useState)(n),[m,g]=(0,r.useState)(n),[v]=(0,r.useState)(i||[0,t]),[b,y]=(0,r.useState)({position:l?"fixed":"absolute",left:"-9999999px",top:"-9999999px"}),[x,w]=(0,r.useState)({}),E=(0,r.useCallback)(()=>!!u.current&&(u.current.forceUpdate(),!0),[]),k=(0,r.useCallback)(e=>{e.placement&&g(e.placement),e.styles&&(y(rH(e.styles.popper)),p.current&&w(rH(e.styles.arrow)))},[]);return rL(()=>(c.current&&d.current&&(u.current=(0,tz.fi)(c.current,d.current,{placement:h,strategy:l?"fixed":"absolute",onFirstUpdate:rI?k:void 0,modifiers:[{name:"eventListeners",enabled:s},{name:"applyStyles",enabled:!1},{name:"flip",enabled:o,options:{padding:8}},{name:"offset",options:{offset:v}},{name:"preventOverflow",enabled:a,options:{tetherOffset(){var e;return(null==(e=p.current)?void 0:e.clientWidth)||0}}},{name:"arrow",enabled:!!p.current,options:{element:p.current}},{name:"updateState",phase:"write",requires:["computeStyles"],enabled:s,fn:({state:e})=>k(e)}]})),()=>{u.current&&(u.current.destroy(),u.current=null)}),[h,l,s,o,v,a,k]),(0,r.useEffect)(()=>{if(!s)return;let e=window.requestAnimationFrame(()=>{var e;null==(e=u.current)||e.forceUpdate()});return()=>{window.cancelAnimationFrame(e)}},[s]),(0,r.useMemo)(()=>({referenceRef:c,popperRef:d,arrowRef:p,popoverStyles:b,arrowStyles:x,update:E,originalPlacement:h,placement:m,place:f}),[x,h,m,b,E])}({placement:n,visible:y}),M=r.createElement("div",{"aria-label":u,ref:E,style:C,className:(0,nJ.cx)(rn.kd.FLOATING_POPOVER,t)},x&&i);return d||(M=r.createElement(rP,null,M)),rL(()=>{S()},[x,S,m,g,v,b]),r.createElement(r.Fragment,null,r.createElement(rP,null,r.createElement("span",{className:rn.bu.POSITIONER,style:{top:w.top,left:w.left,width:w.width,height:w.height},ref:rz(h,k)})),M)},rP=e=>{let t=(0,nQ.z8)().getPositionerWidget();return(0,tL.createPortal)(r.createElement(r.Fragment,null,e.children),t)};(0,r.createContext)({});var rD=e=>r.createElement(rd,{direction:"row",spacing:1,sx:{backgroundColor:"background.paper",overflowX:"auto"},...e}),rj=[{name:"offset",options:{offset:[0,8]}}],rB=({positioner:e="selection",children:t,...n})=>{let{ref:o,x:i,y:a,width:l,height:s,active:u}=(0,rt.GB)(()=>(0,re.$7)(e),[e]),[c,d]=(0,r.useState)(null),p=(0,r.useMemo)(()=>({position:"absolute",pointerEvents:"none",left:i,top:a,width:l,height:s}),[i,a,l,s]),h=(0,r.useCallback)(e=>{d(e),null==o||o(e)},[o]);return r.createElement(r.Fragment,null,r.createElement("div",{ref:h,style:p}),r.createElement(t1,{placement:"top",modifiers:rj,...n,open:u,anchorEl:c},r.createElement(rD,null,t?r.createElement(r.Fragment,null,t):r.createElement(rR,null))))}},50273:function(e,t,n){"use strict";n.d(t,{PG:function(){return oB},iv:function(){return oj},R6:function(){return oD},O1:function(){return oV},tZ:function(){return ov},l1:function(){return ob},wK:function(){return oy},xd:function(){return ox},TH:function(){return ow},Ml:function(){return oE},T6:function(){return oC},zf:function(){return ok},z8:function(){return oM},QT:function(){return oT},iF:function(){return oH},rj:function(){return og},Ar:function(){return oP}});var r,o,i,a,l,s,u,c,d,p,h,f,m,g,v={};n.r(v),n.d(v,{_in:function(){return V},af:function(){return $},ak:function(){return W},am:function(){return U},an:function(){return Z},ar:function(){return G},ars:function(){return K},as:function(){return Y},asa:function(){return q},ast:function(){return X},az:function(){return J},be:function(){return Q},bem:function(){return ee},bez:function(){return et},bg:function(){return en},bho:function(){return er},bm:function(){return eo},bn:function(){return ei},bo:function(){return ea},br:function(){return el},brx:function(){return es},bs:function(){return eu},ca:function(){return ec},ce:function(){return ed},ceb:function(){return ep},cgg:function(){return eh},chr:function(){return ef},ckb:function(){return em},cs:function(){return eg},cy:function(){return ev},da:function(){return eb},de:function(){return ey},dsb:function(){return ex},dv:function(){return ew},dz:function(){return eE},ee:function(){return ek},el:function(){return eC},en:function(){return eS},eo:function(){return eM},es:function(){return eO},et:function(){return eA},eu:function(){return e_},fa:function(){return eT},ff:function(){return eR},fi:function(){return ez},fil:function(){return eL},fo:function(){return eI},fr:function(){return eH},fur:function(){return eN},fy:function(){return eP},ga:function(){return eD},gd:function(){return ej},gl:function(){return eB},gsw:function(){return eF},gu:function(){return eV},guw:function(){return e$},gv:function(){return eW},ha:function(){return eU},haw:function(){return eZ},he:function(){return eG},hi:function(){return eK},hr:function(){return eY},hsb:function(){return eq},hu:function(){return eX},hy:function(){return eJ},ia:function(){return eQ},id:function(){return e0},ig:function(){return e1},ii:function(){return e2},io:function(){return e5},is:function(){return e4},it:function(){return e3},iu:function(){return e7},iw:function(){return e6},ja:function(){return e8},jbo:function(){return e9},jgo:function(){return te},ji:function(){return tt},jmc:function(){return tn},jv:function(){return tr},jw:function(){return to},ka:function(){return ti},kab:function(){return ta},kaj:function(){return tl},kcg:function(){return ts},kde:function(){return tu},kea:function(){return tc},kk:function(){return td},kkj:function(){return tp},kl:function(){return th},km:function(){return tf},kn:function(){return tm},ko:function(){return tg},ks:function(){return tv},ksb:function(){return tb},ksh:function(){return ty},ku:function(){return tx},kw:function(){return tw},ky:function(){return tE},lag:function(){return tk},lb:function(){return tC},lg:function(){return tS},lkt:function(){return tM},ln:function(){return tO},lo:function(){return tA},lt:function(){return t_},lv:function(){return tT},mas:function(){return tR},mg:function(){return tz},mgo:function(){return tL},mk:function(){return tI},ml:function(){return tH},mn:function(){return tN},mo:function(){return tP},mr:function(){return tD},ms:function(){return tj},mt:function(){return tB},my:function(){return tF},nah:function(){return tV},naq:function(){return t$},nb:function(){return tW},nd:function(){return tU},ne:function(){return tZ},nl:function(){return tG},nn:function(){return tK},nnh:function(){return tY},no:function(){return tq},nqo:function(){return tX},nr:function(){return tJ},nso:function(){return tQ},ny:function(){return t0},nyn:function(){return t1},om:function(){return t2},or:function(){return t5},os:function(){return t4},osa:function(){return t3},pa:function(){return t7},pap:function(){return t6},pl:function(){return t8},prg:function(){return t9},ps:function(){return ne},pt:function(){return nt},pt_PT:function(){return nn},rm:function(){return nr},ro:function(){return no},rof:function(){return ni},root:function(){return na},ru:function(){return nl},rwk:function(){return ns},sah:function(){return nu},saq:function(){return nc},sc:function(){return nd},scn:function(){return np},sd:function(){return nh},sdh:function(){return nf},se:function(){return nm},seh:function(){return ng},ses:function(){return nv},sg:function(){return nb},sh:function(){return ny},shi:function(){return nx},si:function(){return nw},sk:function(){return nE},sl:function(){return nk},sma:function(){return nC},smi:function(){return nS},smj:function(){return nM},smn:function(){return nO},sms:function(){return nA},sn:function(){return n_},so:function(){return nT},sq:function(){return nR},sr:function(){return nz},ss:function(){return nL},ssy:function(){return nI},st:function(){return nH},su:function(){return nN},sv:function(){return nP},sw:function(){return nD},syr:function(){return nj},ta:function(){return nB},te:function(){return nF},teo:function(){return nV},th:function(){return n$},ti:function(){return nW},tig:function(){return nU},tk:function(){return nZ},tl:function(){return nG},tn:function(){return nK},to:function(){return nY},tr:function(){return nq},ts:function(){return nX},tzm:function(){return nJ},ug:function(){return nQ},uk:function(){return n0},ur:function(){return n1},uz:function(){return n2},ve:function(){return n5},vi:function(){return n4},vo:function(){return n3},vun:function(){return n7},wa:function(){return n6},wae:function(){return n8},wo:function(){return n9},xh:function(){return re},xog:function(){return rt},yi:function(){return rn},yo:function(){return rr},yue:function(){return ro},zh:function(){return ri},zu:function(){return ra}});var b=n(2784),y=n(71071),x=n(38756),w=n(50697),E="undefined"!=typeof document?b.useLayoutEffect:b.useEffect;function k(e){return t=>{if(!e.current)throw Error("`get` called outside of function scope. `get` can only be called within a function.");if(!t)return e.current;if("function"!=typeof t)throw TypeError("Invalid arguments passed to `useContextHook`. The hook must be called with zero arguments, a getter function or a path string.");return t(e.current)}}function C(e){return t=>{if(!e.current)throw Error("`set` called outside of function scope. `set` can only be called within a function.");e.current(e=>({...e,..."function"==typeof t?t(e):t}))}}n(38604);let S=e=>"string"==typeof e,M=e=>"function"==typeof e,O=new Map,A=new Map;function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return r=>{if(S(r)&&(r=new Date(r)),n){let o=R(e,t),i=A.get(o);if(i)return i.format(r);let a=new Intl.DateTimeFormat(e,t);return A.set(o,a),a.format(r)}let l=new Intl.DateTimeFormat(e,t);return l.format(r)}}function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return r=>{if(n){let o=R(e,t),i=O.get(o);if(i)return i.format(r);let a=new Intl.NumberFormat(e,t);return O.set(o,a),a.format(r)}let l=new Intl.NumberFormat(e,t);return l.format(r)}}function R(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Array.isArray(e)?e.sort().join("-"):e;return`${n}-${JSON.stringify(t)}`}let z=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,L=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{plurals:void 0},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=t||e;let{plurals:o}=n,i=e=>S(e)?r[e]||{style:e}:e,a=(e,n)=>o=>{let a=M(n)?n(o):n,l=Array.isArray(a)?a:[a],s=Object.keys(r).length?i("number"):{},u=T(t,s)(e);return l.map(e=>S(e)?e.replace("#",u):e)};return o||console.error(`Plurals for locale ${e} aren't loaded. Use i18n.loadLocaleData method to load plurals for specific locale. Using other plural rule as a fallback.`),{plural(e,t){let{offset:n=0,...r}=t,i=r[e]||r[null==o?void 0:o(e-n)]||r.other;return a(e-n,i)},selectordinal(e,t){let{offset:n=0,...r}=t,i=r[e]||r[null==o?void 0:o(e-n,!0)]||r.other;return a(e-n,i)},select:(e,t)=>t[e]||t.other,number:(e,n)=>T(t,i(n))(e),date:(e,n)=>_(t,i(n))(e),undefined:e=>e}};class I{_events={};on(e,t){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){if(!this._hasEvent(e))return;let n=this._events[e].indexOf(t);~n&&this._events[e].splice(n,1)}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._hasEvent(e)&&this._events[e].map(e=>e.apply(this,n))}_hasEvent(e){return Array.isArray(this._events[e])}}class H extends I{constructor(e){super(),this._messages={},this._localeData={},null!=e.missing&&(this._missing=e.missing),null!=e.messages&&this.load(e.messages),null!=e.localeData&&this.loadLocaleData(e.localeData),(null!=e.locale||null!=e.locales)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}get localeData(){return this._localeData[this._locale]??{}}_loadLocaleData(e,t){null==this._localeData[e]?this._localeData[e]=t:Object.assign(this._localeData[e],t)}loadLocaleData(e,t){null!=t?this._loadLocaleData(e,t):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,t){null==this._messages[e]?this._messages[e]=t:Object.assign(this._messages[e],t)}load(e,t){null!=t?this._load(e,t):Object.keys(e).forEach(t=>this._load(t,e[t])),this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e){var t,n,r,o;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{message:a,formats:l,context:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};S(e)||(i=e.values||i,a=e.message,s=e.context,e=e.id);let u=!s&&!this.messages[e],c=s&&!this.messages[s][e],d=c||u,p=this._missing;if(p&&d)return M(p)?p(this._locale,e,s):p;d&&this.emit("missing",{id:e,context:s,locale:this._locale});let h;return S(h=s&&!c?this.messages[s][e]||a||e:this.messages[e]||a||e)&&z.test(h)?JSON.parse(`"${h}"`):S(h)?h:(n=this._locale,r=this._locales,o=this.localeData,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=function(e,t,n,r,o){let i=L(e,t,o,r),a=(e,t,r)=>{let o=n[e],l=i[t](o,r),s=M(l)?l(a):l;return Array.isArray(s)?s.join(""):s};return a}(n,r,e,t,o),a=e=>Array.isArray(e)?e.reduce((e,t)=>{if(S(t))return e+t;let[n,r,o]=t,l={};null==o||S(o)?l=o:Object.keys(o).forEach(e=>{l[e]=a(o[e])});let s=i(n,r,l);return null==s?e:e+s},""):e,l=a(h);return S(l)&&z.test(l)?JSON.parse(`"${l.trim()}"`):S(l)?l.trim():l})(i,l)}date(e,t){return _(this._locales||this._locale,t)(e)}number(e,t){return T(this._locales||this._locale,t)(e)}}let N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new H(e)}();function P(e,t){return t?"other":1==e?"one":"other"}function D(e,t){return t?"other":0==e||1==e?"one":"other"}function j(e,t){var n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"}function B(e,t){return"other"}function F(e,t){return t?"other":1==e?"one":2==e?"two":"other"}let V=B,$=P,W=D;function U(e,t){return t?"other":e>=0&&e<=1?"one":"other"}let Z=P;function G(e,t){var n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"}function K(e,t){var n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"}function Y(e,t){return t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"}let q=P,X=j;function J(e,t){var n=String(e).split(".")[0],r=n.slice(-1),o=n.slice(-2),i=n.slice(-3);return t?1==r||2==r||5==r||7==r||8==r||20==o||50==o||70==o||80==o?"one":3==r||4==r||100==i||200==i||300==i||400==i||500==i||600==i||700==i||800==i||900==i?"few":0==n||6==r||40==o||60==o||90==o?"many":"other":1==e?"one":"other"}function Q(e,t){var n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?(2==o||3==o)&&12!=i&&13!=i?"few":"other":1==o&&11!=i?"one":o>=2&&o<=4&&(i<12||i>14)?"few":r&&0==o||o>=5&&o<=9||i>=11&&i<=14?"many":"other"}let ee=P,et=P,en=P,er=D,eo=B;function ei(e,t){return t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"}let ea=B;function el(e,t){var n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),a=r&&n[0].slice(-6);return t?"other":1==o&&11!=i&&71!=i&&91!=i?"one":2==o&&12!=i&&72!=i&&92!=i?"two":(3==o||4==o||9==o)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&r&&0==a?"many":"other"}let es=P;function eu(e,t){var n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=l||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"}function ec(e,t){var n=!String(e).split(".")[1];return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&n?"one":"other"}let ed=P;function ep(e,t){var n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=o.slice(-1);return t?"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=l&&6!=l&&9!=l?"one":"other"}let eh=P,ef=P,em=P;function eg(e,t){var n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==e&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"}function ev(e,t){return t?0==e||7==e||8==e||9==e?"zero":1==e?"one":2==e?"two":3==e||4==e?"few":5==e||6==e?"many":"other":0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other"}function eb(e,t){var n=String(e).split("."),r=n[0],o=Number(n[0])==e;return t?"other":1!=e&&(o||0!=r&&1!=r)?"other":"one"}let ey=j;function ex(e,t){var n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),l=o.slice(-2);return t?"other":i&&1==a||1==l?"one":i&&2==a||2==l?"two":i&&(3==a||4==a)||3==l||4==l?"few":"other"}let ew=P,eE=B,ek=P,eC=P;function eS(e,t){var n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"}let eM=P,eO=P,eA=j,e_=P;function eT(e,t){return t?"other":e>=0&&e<=1?"one":"other"}function eR(e,t){return t?"other":e>=0&&e<2?"one":"other"}let ez=j;function eL(e,t){var n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=l&&6!=l&&9!=l?"one":"other"}let eI=P;function eH(e,t){return t?1==e?"one":"other":e>=0&&e<2?"one":"other"}let eN=P,eP=j;function eD(e,t){var n=Number(String(e).split(".")[0])==e;return t?1==e?"one":"other":1==e?"one":2==e?"two":n&&e>=3&&e<=6?"few":n&&e>=7&&e<=10?"many":"other"}function ej(e,t){var n=Number(String(e).split(".")[0])==e;return t?1==e||11==e?"one":2==e||12==e?"two":3==e||13==e?"few":"other":1==e||11==e?"one":2==e||12==e?"two":n&&e>=3&&e<=10||n&&e>=13&&e<=19?"few":"other"}let eB=j,eF=P;function eV(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"}let e$=D;function eW(e,t){var n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":o&&(0==a||20==a||40==a||60==a||80==a)?"few":o?"other":"many"}let eU=P,eZ=P;function eG(e,t){var n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,a=i&&n[0].slice(-1);return t?"other":1==e&&o?"one":2==r&&o?"two":o&&(e<0||e>10)&&i&&0==a?"many":"other"}function eK(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"}function eY(e,t){var n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=l||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"}function eq(e,t){var n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),l=o.slice(-2);return t?"other":i&&1==a||1==l?"one":i&&2==a||2==l?"two":i&&(3==a||4==a)||3==l||4==l?"few":"other"}function eX(e,t){return t?1==e||5==e?"one":"other":1==e?"one":"other"}function eJ(e,t){return t?1==e?"one":"other":e>=0&&e<2?"one":"other"}let eQ=j,e0=B,e1=B,e2=B,e5=j;function e4(e,t){var n=String(e).split("."),r=n[0],o=Number(n[0])==e,i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i&&11!=a||!o?"one":"other"}function e3(e,t){var n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"}let e7=F;function e6(e,t){var n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,a=i&&n[0].slice(-1);return t?"other":1==e&&o?"one":2==r&&o?"two":o&&(e<0||e>10)&&i&&0==a?"many":"other"}let e8=B,e9=B,te=P,tt=j,tn=P,tr=B,to=B;function ti(e,t){var n=String(e).split(".")[0],r=n.slice(-2);return t?1==n?"one":0==n||r>=2&&r<=20||40==r||60==r||80==r?"many":"other":1==e?"one":"other"}function ta(e,t){return t?"other":e>=0&&e<2?"one":"other"}let tl=P,ts=P,tu=B,tc=B;function td(e,t){var n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1);return t?6==o||9==o||r&&0==o&&0!=e?"many":"other":1==e?"one":"other"}let tp=P,th=P,tf=B;function tm(e,t){return t?"other":e>=0&&e<=1?"one":"other"}let tg=B,tv=P,tb=P;function ty(e,t){return t?"other":0==e?"zero":1==e?"one":"other"}let tx=P;function tw(e,t){var n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-2),i=r&&n[0].slice(-3),a=r&&n[0].slice(-5),l=r&&n[0].slice(-6);return t?r&&e>=1&&e<=4||o>=1&&o<=4||o>=21&&o<=24||o>=41&&o<=44||o>=61&&o<=64||o>=81&&o<=84?"one":5==e||5==o?"many":"other":0==e?"zero":1==e?"one":2==o||22==o||42==o||62==o||82==o||r&&0==i&&(a>=1e3&&a<=2e4||4e4==a||6e4==a||8e4==a)||0!=e&&1e5==l?"two":3==o||23==o||43==o||63==o||83==o?"few":1!=e&&(1==o||21==o||41==o||61==o||81==o)?"many":"other"}let tE=P;function tk(e,t){var n=String(e).split(".")[0];return t?"other":0==e?"zero":(0==n||1==n)&&0!=e?"one":"other"}let tC=P,tS=P,tM=B,tO=D;function tA(e,t){return t&&1==e?"one":"other"}function t_(e,t){var n=String(e).split("."),r=n[1]||"",o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?"other":1==i&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":0!=r?"many":"other"}function tT(e,t){var n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),l=i&&n[0].slice(-2),s=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||l>=11&&l<=19||2==o&&s>=11&&s<=19?"zero":1==a&&11!=l||2==o&&1==u&&11!=s||2!=o&&1==u?"one":"other"}let tR=P,tz=D,tL=P;function tI(e,t){var n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?1==a&&11!=l?"one":2==a&&12!=l?"two":(7==a||8==a)&&17!=l&&18!=l?"many":"other":i&&1==a&&11!=l||1==s&&11!=u?"one":"other"}let tH=P,tN=P;function tP(e,t){var n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||o>=2&&o<=19?"few":"other"}function tD(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other"}function tj(e,t){return t&&1==e?"one":"other"}function tB(e,t){var n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":1==e?"one":0==e||r>=2&&r<=10?"few":r>=11&&r<=19?"many":"other"}let tF=B,tV=P,t$=F,tW=P,tU=P;function tZ(e,t){var n=Number(String(e).split(".")[0])==e;return t?n&&e>=1&&e<=4?"one":"other":1==e?"one":"other"}let tG=j,tK=P,tY=P,tq=P,tX=B,tJ=P,tQ=D,t0=P,t1=P,t2=P;function t5(e,t){var n=Number(String(e).split(".")[0])==e;return t?1==e||5==e||n&&e>=7&&e<=9?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":1==e?"one":"other"}let t4=P,t3=B,t7=D,t6=P;function t8(e,t){var n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&1!=r&&(0==i||1==i)||o&&i>=5&&i<=9||o&&a>=12&&a<=14?"many":"other"}function t9(e,t){var n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),l=i&&n[0].slice(-2),s=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||l>=11&&l<=19||2==o&&s>=11&&s<=19?"zero":1==a&&11!=l||2==o&&1==u&&11!=s||2!=o&&1==u?"one":"other"}let ne=P;function nt(e,t){var n=String(e).split(".")[0];return t?"other":0==n||1==n?"one":"other"}let nn=j,nr=P;function no(e,t){var n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||o>=2&&o<=19?"few":"other"}let ni=P,na=B;function nl(e,t){var n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i&&11!=a?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&a>=11&&a<=14?"many":"other"}let ns=P,nu=B,nc=P;function nd(e,t){var n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"}function np(e,t){var n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"}let nh=P,nf=P,nm=F,ng=P,nv=B,nb=B;function ny(e,t){var n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=l||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"}function nx(e,t){var n=Number(String(e).split(".")[0])==e;return t?"other":e>=0&&e<=1?"one":n&&e>=2&&e<=10?"few":"other"}function nw(e,t){var n=String(e).split("."),r=n[0],o=n[1]||"";return t?"other":0==e||1==e||0==r&&1==o?"one":"other"}function nE(e,t){var n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==e&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"}function nk(e,t){var n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":o&&(3==i||4==i)||!o?"few":"other"}let nC=F,nS=F,nM=F,nO=F,nA=F,n_=P,nT=P;function nR(e,t){var n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?1==e?"one":4==o&&14!=i?"many":"other":1==e?"one":"other"}function nz(e,t){var n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=l||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"}let nL=P,nI=P,nH=P,nN=B;function nP(e,t){var n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?(1==i||2==i)&&11!=a&&12!=a?"one":"other":1==e&&r?"one":"other"}let nD=j,nj=P,nB=P,nF=P,nV=P,n$=B,nW=D,nU=P;function nZ(e,t){var n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-1);return t?6==r||9==r||10==e?"few":"other":1==e?"one":"other"}function nG(e,t){var n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=l&&6!=l&&9!=l?"one":"other"}let nK=P,nY=B,nq=P,nX=P;function nJ(e,t){var n=Number(String(e).split(".")[0])==e;return t?"other":0==e||1==e||n&&e>=11&&e<=99?"one":"other"}let nQ=P;function n0(e,t){var n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,a=i&&n[0].slice(-1),l=i&&n[0].slice(-2),s=r.slice(-1),u=r.slice(-2);return t?3==a&&13!=l?"few":"other":o&&1==s&&11!=u?"one":o&&s>=2&&s<=4&&(u<12||u>14)?"few":o&&0==s||o&&s>=5&&s<=9||o&&u>=11&&u<=14?"many":"other"}let n1=j,n2=P,n5=P;function n4(e,t){return t&&1==e?"one":"other"}let n3=P,n7=P,n6=D,n8=P,n9=B,re=P,rt=P,rn=j,rr=B,ro=B,ri=B;function ra(e,t){return t?"other":e>=0&&e<=1?"one":"other"}var rl,rs,ru,rc=Object.defineProperty,rd=Object.getOwnPropertyDescriptor,rp=Object.getOwnPropertyNames,rh=Object.prototype.hasOwnProperty,rf=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of rp(t))rh.call(e,o)||o===n||rc(e,o,{get:()=>t[o],enumerable:!(r=rd(t,o))||r.enumerable});return e},rm=JSON.parse('{"components.image.dialog.description.label":"Image description","components.image.dialog.description.placeholder":"Add a short description here.","components.image.dialog.label":"Image","components.image.dialog.source.label":"Image source","components.image.menu.icon.label":"Image","components.italic.menu.icon.label":"Italic","components.underline.menu.icon.label":"Underline","extension.command.add-annotation.label":"Add annotation","extension.command.center-align.label":"Center align","extension.command.convert-paragraph.description":"Convert current block into a paragraph block.","extension.command.convert-paragraph.label":"Convert Paragraph","extension.command.copy.description":"Copy the selected text","extension.command.copy.label":"Copy","extension.command.create-table.description":"Create a table with set number of rows and columns.","extension.command.create-table.label":"Create table","extension.command.cut.description":"Cut the selected text","extension.command.cut.label":"Cut","extension.command.decrease-font-size.description":"Decrease the font size.","extension.command.decrease-font-size.label":"Decrease","extension.command.decrease-indent.label":"Decrease indentation","extension.command.increase-font-size.description":"Increase the font size","extension.command.increase-font-size.label":"Increase","extension.command.increase-indent.label":"Increase indentation","extension.command.insert-emoji.label":"Insert Emoji","extension.command.insert-horizontal-rule.description":"Separate content with a diving horizontal line","extension.command.insert-horizontal-rule.label":"Divider","extension.command.insert-paragraph.description":"Insert a new paragraph","extension.command.insert-paragraph.label":"Insert Paragraph","extension.command.justify-align.label":"Justify","extension.command.left-align.label":"Left align","extension.command.paste.description":"Paste content into the editor","extension.command.paste.label":"Paste","extension.command.redo.description":"Redo the most recent action","extension.command.redo.label":"Redo","extension.command.remove-annotation.label":"Remove annotation","extension.command.right-align.label":"Right align","extension.command.select-all.description":"Select all content within the editor","extension.command.select-all.label":"Select all","extension.command.set-casing.label":"Set text case","extension.command.set-font-size.description":"Set the font size for the selected text.","extension.command.set-font-size.label":"Font size","extension.command.set-text-color.description":"Set the text color for the selected text.","extension.command.set-text-color.label":"Text color","extension.command.set-text-direction.description":[["dir","select",{"ltr":"Set the text direction from left to right","rtl":"Set the text direction from right to left","other":"Reset text direction"}]],"extension.command.set-text-direction.label":[["dir","select",{"ltr":"Left-To-Right","rtl":"Right-To-Left","other":"Reset Direction"}]],"extension.command.set-text-highlight.description":"Set the text highlight color for the selected text.","extension.command.set-text-highlight.label":"Text highlight","extension.command.toggle-blockquote.description":"Add blockquote formatting to the selected text","extension.command.toggle-blockquote.label":"Blockquote","extension.command.toggle-bold.description":"Add bold formatting to the selected text","extension.command.toggle-bold.label":"Bold","extension.command.toggle-bullet-list.description":"Bulleted list","extension.command.toggle-callout.description":[["type","select",{"info":"Create an information callout block","warning":"Create a warning callout block","error":"Create an error callout block","success":"Create a success callout block","other":"Create a callout block"}]],"extension.command.toggle-callout.label":[["type","select",{"info":"Information Callout","warning":"Warning Callout","error":"Error Callout","success":"Success Callout","other":"Callout"}]],"extension.command.toggle-code-block.description":"Add a code block","extension.command.toggle-code-block.label":"Codeblock","extension.command.toggle-code.description":"Add inline code formatting to the selected text","extension.command.toggle-code.label":"Code","extension.command.toggle-columns.description":[["count","select",{"2":"Split the block into two columns","3":"Split the current block into three columns","4":"Split the current block into four columns","other":"Split the current block into multiple columns"}]],"extension.command.toggle-columns.label":[["count","select",{"2":"Two Column Block","3":"Three Column Block","4":"Four Column Block","other":"Multi Column Block"}]],"extension.command.toggle-heading.label":[["level","select",{"1":"Heading 1","2":"Heading 2","3":"Heading 3","4":"Heading 4","5":"Heading 5","6":"Heading 6","other":"Heading"}]],"extension.command.toggle-italic.description":"Italicize the selected text","extension.command.toggle-italic.label":"Italic","extension.command.toggle-ordered-list.label":"Ordered list","extension.command.toggle-strike.description":"Strikethrough the selected text","extension.command.toggle-strike.label":"Strikethrough","extension.command.toggle-subscript.label":"Subscript","extension.command.toggle-superscript.label":"Superscript","extension.command.toggle-task-list.description":"Tasked list","extension.command.toggle-underline.description":"Underline the selected text","extension.command.toggle-underline.label":"Underline","extension.command.toggle-upper-case.label":[["case","select",{"upper":"Uppercase","lower":"Lowercase","capitalize":"Sentence case","smallCaps":"Small caps","other":"Text case"}]],"extension.command.toggle-whitespace.description":"Show hidden whitespace characters in your editor.","extension.command.toggle-whitespace.label":"Toggle Whitespace","extension.command.undo.description":"Undo the most recent action","extension.command.undo.label":"Undo","extension.command.update-annotation.label":"Update annotation","extension.table.column_count":[["count","plural",{"one":["#"," column"],"other":["#"," columns"]}]],"extension.table.row_count":[["count","plural",{"one":["#"," row"],"other":["#"," rows"]}]],"keyboard.shortcut.alt":"Alt","keyboard.shortcut.arrowDown":"Arrow Down","keyboard.shortcut.arrowLeft":"Arrow Left","keyboard.shortcut.arrowRight":"Arrow Right","keyboard.shortcut.arrowUp":"Arrow Up","keyboard.shortcut.backspace":"Backspace","keyboard.shortcut.capsLock":"Caps Lock","keyboard.shortcut.command":"Command","keyboard.shortcut.control":"Control","keyboard.shortcut.delete":"Delete","keyboard.shortcut.end":"End","keyboard.shortcut.enter":"Enter","keyboard.shortcut.escape":"Enter","keyboard.shortcut.home":"Home","keyboard.shortcut.pageDown":"Page Down","keyboard.shortcut.pageUp":"Page Up","keyboard.shortcut.shift":"Shift","keyboard.shortcut.space":"Space","keyboard.shortcut.tab":"Tab","react-components.mention-atom-component.zero-items":"No items available","react-components.top-menu.label":"Static Menu","ui.text-color.black":"Black","ui.text-color.blue":"Blue","ui.text-color.blue.hue":["Blue ",["hue"]],"ui.text-color.cyan":"Cyan","ui.text-color.cyan.hue":["Cyan ",["hue"]],"ui.text-color.grape":"Grape","ui.text-color.grape.hue":["Grape ",["hue"]],"ui.text-color.gray":"Gray","ui.text-color.gray.hue":["Gray ",["hue"]],"ui.text-color.green":"Green","ui.text-color.green.hue":["Green ",["hue"]],"ui.text-color.indigo":"Indigo","ui.text-color.indigo.hue":["Indigo ",["hue"]],"ui.text-color.lime":"Lime","ui.text-color.lime.hue":["Lime ",["hue"]],"ui.text-color.orange":"Orange","ui.text-color.orange.hue":["Orange ",["hue"]],"ui.text-color.pink":"Pink","ui.text-color.pink.hue":["Pink ",["hue"]],"ui.text-color.red":"Red","ui.text-color.red.hue":["Red ",["hue"]],"ui.text-color.teal":"Teal","ui.text-color.teal.hue":["Teal ",["hue"]],"ui.text-color.transparent":"Transparent","ui.text-color.violet":"Violet","ui.text-color.violet.hue":["Violet ",["hue"]],"ui.text-color.white":"White","ui.text-color.yellow":"Yellow","ui.text-color.yellow.hue":["Yellow ",["hue"]]}'),rg={};rf(rg,v,"default"),ru&&rf(ru,v,"default"),N.loadLocaleData("en",{plurals:rg.en}),N.load("en",rm),N.activate("en");var rv=n(71688),rb=n(26151),ry=Object.defineProperty,rx=Object.getOwnPropertyDescriptor,rw=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?rx(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&ry(t,n,i),i},rE=class extends w.QR{get name(){return"doc"}createNodeSpec(e,t){let{docAttributes:n,content:r}=this.options,o=(0,y.Ry)();if((0,y.PO)(n))for(let[i,a]of(0,y.qh)(n))o[i]={default:a};else for(let l of n)o[l]={default:null};return{attrs:o,content:r,...t}}setDocAttributes(e){return({tr:t,dispatch:n})=>{if(n){for(let[r,o]of Object.entries(e))t.step(new rS(r,o));n(t)}return!0}}isDefaultDocNode({state:e=this.store.getState(),options:t}={}){return(0,rv.$q)(e.doc,t)}};rw([(0,w.WDe)()],rE.prototype,"setDocAttributes",1),rw([(0,w._y)()],rE.prototype,"isDefaultDocNode",1),rE=rw([(0,w.AOx)({defaultOptions:{content:"block+",docAttributes:[]},defaultPriority:x.xV.Medium,staticKeys:["content","docAttributes"],disableExtraAttributes:!0})],rE);var rk="SetDocAttribute",rC="RevertSetDocAttribute",rS=class extends rb.h8{constructor(e,t,n=rk){super(),this.stepType=n,this.key=e,this.value=t}static fromJSON(e,t){return new rS(t.key,t.value,t.stepType)}apply(e){this.previous=e.attrs[this.key];let t={...e.attrs,[this.key]:this.value};return rb.oo.ok(e.type.create(t,e.content,e.marks))}invert(){return new rS(this.key,this.previous,rC)}map(){return this}toJSON(){return{stepType:this.stepType,key:this.key,value:this.value}}};try{rb.h8.jsonID(rk,rS),rb.h8.jsonID(rC,rS)}catch(rM){if(!rM.message.startsWith("Duplicate use of step JSON ID"))throw rM}var rO=n(19812),rA=n(17890),r_=n(27191),rT=n(30764),rR=n(52780);class rz extends r_.Y1{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return rz.valid(n)?new rz(n):r_.Y1.near(n)}content(){return rT.p2.empty}eq(e){return e instanceof rz&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new rz(e.resolve(t.pos))}getBookmark(){return new rL(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(0==n){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(0==o.childCount&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(0==o.childCount&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,t,n=!1){search:for(;;){if(!n&&rz.valid(e))return e;let r=e.pos,o=null;for(let i=e.depth;;i--){let a=e.node(i);if(t>0?e.indexAfter(i)<a.childCount:e.index(i)>0){o=a.child(t>0?e.indexAfter(i):e.index(i)-1);break}if(0==i)return null;r+=t;let l=e.doc.resolve(r);if(rz.valid(l))return l}for(;;){let s=t>0?o.firstChild:o.lastChild;if(!s){if(o.isAtom&&!o.isText&&!r_.qv.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*t),n=!1;continue search}break}o=s,r+=t;let u=e.doc.resolve(r);if(rz.valid(u))return u}return null}}}rz.prototype.visible=!1,rz.findFrom=rz.findGapCursorFrom,r_.Y1.jsonID("gapcursor",rz);class rL{constructor(e){this.pos=e}map(e){return new rL(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return rz.valid(t)?new rz(t):r_.Y1.near(t)}}let rI=(0,rA.$)({ArrowLeft:rH("horiz",-1),ArrowRight:rH("horiz",1),ArrowUp:rH("vert",-1),ArrowDown:rH("vert",1)});function rH(e,t){let n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,o){let i=e.selection,a=t>0?i.$to:i.$from,l=i.empty;if(i instanceof r_.Bs){if(!o.endOfTextblock(n)||0==a.depth)return!1;l=!1,a=e.doc.resolve(t>0?a.after():a.before())}let s=rz.findGapCursorFrom(a,t,l);return!!s&&(r&&r(e.tr.setSelection(new rz(s))),!0)}}function rN(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!rz.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return!(o&&o.inside>-1&&r_.qv.isSelectable(e.state.doc.nodeAt(o.inside)))&&(e.dispatch(e.state.tr.setSelection(new rz(r))),!0)}function rP(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof rz))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let o=rT.HY.empty;for(let i=r.length-1;i>=0;i--)o=rT.HY.from(r[i].createAndFill(null,o));let a=e.state.tr.replace(n.pos,n.pos,new rT.p2(o,0,0));return a.setSelection(r_.Bs.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function rD(e){if(!(e.selection instanceof rz))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",rR.EH.create(e.doc,[rR.p.widget(e.selection.head,t,{key:"gapcursor"})])}var rj=Object.defineProperty,rB=Object.getOwnPropertyDescriptor,rF=class extends w.nNj{get name(){return"gapCursor"}createExternalPlugins(){return[new r_.Sy({props:{decorations:rD,createSelectionBetween:(e,t,n)=>t.pos==n.pos&&rz.valid(n)?new rz(n):null,handleClick:rN,handleKeyDown:rI,handleDOMEvents:{beforeinput:rP}}})]}};rF=((e,t,n,r)=>{for(var o,i=r>1?void 0:r?rB(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&rj(t,n,i),i})([(0,w.AOx)({})],rF),(0,y.V9)(rz);var rV=n(8064),r$=n(75114),rW=Object.defineProperty,rU=Object.getOwnPropertyDescriptor,rZ=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?rU(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&rW(t,n,i),i},rG=class extends w.QR{get name(){return"paragraph"}createTags(){return[x.eX.LastNodeCompatible,x.eX.TextBlock,x.eX.Block,x.eX.FormattingNode]}createNodeSpec(e,t){return{content:"inline*",draggable:!1,...t,attrs:{...e.defaults()},parseDOM:[{tag:"p",getAttrs:t=>({...e.parse(t)})},...t.parseDOM??[]],toDOM:t=>["p",e.dom(t),0]}}convertParagraph(e={}){let{attrs:t,selection:n,preserveAttrs:r}=e;return this.store.commands.setBlockNodeType.original(this.type,t,n,r)}insertParagraph(e,t={}){let{selection:n,attrs:r}=t;return this.store.commands.insertNode.original(this.type,{content:e,selection:n,attrs:r})}shortcut(e){return this.convertParagraph()(e)}};rZ([(0,w.WDe)({icon:"paragraph",label:({t:e})=>e(r$.iR.CONVERT_LABEL),description:({t:e})=>e(r$.iR.CONVERT_DESCRIPTION)})],rG.prototype,"convertParagraph",1),rZ([(0,w.WDe)({icon:"paragraph",label:({t:e})=>e(r$.iR.INSERT_LABEL),description:({t:e})=>e(r$.iR.INSERT_DESCRIPTION)})],rG.prototype,"insertParagraph",1),rZ([(0,w.IGC)({shortcut:x.vO.Paragraph,command:"convertParagraph"})],rG.prototype,"shortcut",1),rG=rZ([(0,w.AOx)({defaultPriority:x.xV.Medium})],rG);var rK=n(10501),rY=Object.defineProperty,rq=Object.getOwnPropertyDescriptor,rX=class extends w.QR{get name(){return"text"}createTags(){return[x.eX.InlineNode]}createNodeSpec(){return{}}};rX=((e,t,n,r)=>{for(var o,i=r>1?void 0:r?rq(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&rY(t,n,i),i})([(0,w.AOx)({disableExtraAttributes:!0,defaultPriority:x.xV.Medium})],rX);var rJ={...rE.defaultOptions,...rG.defaultOptions,...rV.u.defaultOptions,excludeExtensions:[]},rQ=n(66925),r0=n(20242),r1=n(28316),r2=n(27343),r5=Object.defineProperty,r4=Object.getOwnPropertyDescriptor,r3=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},r7=(e,t,n)=>(r3(e,t,"read from private field"),n?n.call(e):t.get(e)),r6=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},r8=(e,t,n,r)=>(r3(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),r9=class{constructor(){this.portals=new Map,r6(this,r,(0,r0.i)()),this.on=e=>r7(this,r).on("update",e),this.once=e=>{let t=r7(this,r).on("update",n=>{t(),e(n)});return t}}update(){r7(this,r).emit("update",this.portals)}render({Component:e,container:t}){let n=this.portals.get(t);this.portals.set(t,{Component:e,key:(null==n?void 0:n.key)??(0,y.EL)()}),this.update()}forceUpdate(){for(let[e,{Component:t}]of this.portals)this.portals.set(e,{Component:t,key:(0,y.EL)()})}remove(e){this.portals.delete(e),this.update()}};r=new WeakMap;var oe=e=>{let{portals:t}=e;return b.createElement(b.Fragment,null,t.map(([e,{Component:t,key:n}])=>(0,r1.createPortal)(b.createElement(t,null),e,n)))},ot=class{constructor({getPosition:e,node:t,portalContainer:n,view:r,ReactComponent:g,options:v}){r6(this,o,void 0),r6(this,i,[]),r6(this,a,void 0),r6(this,l,void 0),r6(this,s,void 0),r6(this,u,void 0),r6(this,c,void 0),r6(this,d,!1),r6(this,p,void 0),r6(this,h,void 0),r6(this,f,void 0),r6(this,m,e=>{e&&((0,y.kG)(r7(this,h),{code:x.mA.REACT_NODE_VIEW,message:`You have applied a ref to a node view provided for '${r7(this,o).type.name}' which doesn't support content.`}),e.append(r7(this,h)))}),this.Component=()=>{let e=r7(this,s);return(0,y.kG)(e,{code:x.mA.REACT_NODE_VIEW,message:`The custom react node view provided for ${r7(this,o).type.name} doesn't have a valid ReactComponent`}),b.createElement(e,{updateAttributes:this.updateAttributes,selected:this.selected,view:r7(this,a),getPosition:r7(this,u),node:r7(this,o),forwardRef:r7(this,m),decorations:r7(this,i)})},this.updateAttributes=e=>{if(!r7(this,a).editable)return;let t=r7(this,u).call(this);if(null==t)return;let n=r7(this,a).state.tr.setNodeMarkup(t,void 0,{...r7(this,o).attrs,...e});r7(this,a).dispatch(n)},(0,y.kG)((0,y.mf)(e),{message:"You are attempting to use a node view for a mark type. This is not supported yet. Please check your configuration."}),r8(this,o,t),r8(this,a,r),r8(this,l,n),r8(this,s,g),r8(this,u,e),r8(this,c,v),r8(this,f,this.createDom());let{contentDOM:w,wrapper:E}=this.createContentDom()??{};r8(this,p,w??void 0),r8(this,h,E),r7(this,h)&&r7(this,f).append(r7(this,h)),this.setDomAttributes(r7(this,o),r7(this,f)),this.Component.displayName=(0,r2.Ho)(`${r7(this,o).type.name}NodeView`),this.renderComponent()}static create(e){let{portalContainer:t,ReactComponent:n,options:r}=e;return(e,o,i)=>new ot({options:r,node:e,view:o,getPosition:i,portalContainer:t,ReactComponent:n})}get selected(){return r7(this,d)}get contentDOM(){return r7(this,p)}get dom(){return r7(this,f)}renderComponent(){r7(this,l).render({Component:this.Component,container:r7(this,f)})}createDom(){let{defaultBlockNode:e,defaultInlineNode:t}=r7(this,c),n=r7(this,o).isInline?document.createElement(t):document.createElement(e);return n.classList.add(`${(0,r2.GL)(r7(this,o).type.name)}-node-view-wrapper`),n}createContentDom(){var e,t;if(r7(this,o).isLeaf)return;let n=null==(t=(e=r7(this,o).type.spec).toDOM)?void 0:t.call(e,r7(this,o));if(!n)return;let{contentDOM:r,dom:i}=rT.PW.renderSpec(document,n),a;if((0,rv.jd)(i))return a=i,i===r&&((a=document.createElement("span")).classList.add(`${(0,r2.GL)(r7(this,o).type.name)}-node-view-content-wrapper`),a.append(r)),(0,rv.jd)(r),{wrapper:a,contentDOM:r}}update(e,t){return!!(0,rv.$9)({types:r7(this,o).type,node:e})&&(r7(this,o)===e&&r7(this,i)===t||(r7(this,o).sameMarkup(e)||this.setDomAttributes(e,r7(this,f)),r8(this,o,e),r8(this,i,t),this.renderComponent(),!0))}setDomAttributes(e,t){let{toDOM:n}=r7(this,o).type.spec,r=e.attrs;if(n){var i;let a=n(e);if((0,y.HD)(a)||(i=a,(0,rv.mV)(i)||(0,y.PO)(i)&&(0,rv.mV)(i.dom)))return;(0,y.PO)(a[1])&&(r=a[1])}for(let[l,s]of(0,y.qh)(r))t.setAttribute(l,s)}selectNode(){r8(this,d,!0),r7(this,f)&&r7(this,f).classList.add(x.Eg),this.renderComponent()}deselectNode(){r8(this,d,!1),r7(this,f)&&r7(this,f).classList.remove(x.Eg),this.renderComponent()}destroy(){r7(this,l).remove(r7(this,f))}ignoreMutation(e){return"selection"===e.type?!r7(this,o).type.spec.selectable:!r7(this,h)||!r7(this,h).contains(e.target)}stopEvent(e){var t;if(!r7(this,f))return!1;if((0,y.mf)(r7(this,c).stopEvent))return r7(this,c).stopEvent({event:e});let n=e.target,r=r7(this,f).contains(n)&&!(null==(t=this.contentDOM)?void 0:t.contains(n));if(!r)return!1;let i="drop"===e.type,a=["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable;if(a&&!i)return!0;let l=!!r7(this,o).type.spec.draggable,s=r_.qv.isSelectable(r7(this,o)),u="copy"===e.type,d="paste"===e.type,p="cut"===e.type,h="mousedown"===e.type,m=e.type.startsWith("drag");return!l&&s&&m&&e.preventDefault(),!m&&!i&&!u&&!d&&!p&&(!h||!s)}};o=new WeakMap,i=new WeakMap,a=new WeakMap,l=new WeakMap,s=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,m=new WeakMap;var on=class extends w.nNj{constructor(){super(...arguments),this.portalContainer=new r9}get name(){return"reactComponent"}onCreate(){this.store.setStoreKey("portalContainer",this.portalContainer)}createNodeViews(){let e=(0,y.Ry)(),t=this.store.managerSettings.nodeViewComponents??{};for(let n of this.store.extensions)n.ReactComponent&&(0,w.JZE)(n)&&"ssr"!==n.reactComponentEnvironment&&(e[n.name]=ot.create({options:this.options,ReactComponent:n.ReactComponent,portalContainer:this.portalContainer}));let r=(0,y.qh)({...this.options.nodeViewComponents,...t});for(let[o,i]of r)e[o]=ot.create({options:this.options,ReactComponent:i,portalContainer:this.portalContainer});return e}};on=((e,t,n,r)=>{for(var o,i=r>1?void 0:r?r4(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&r5(t,n,i),i})([(0,w.AOx)({defaultOptions:{defaultBlockNode:"div",defaultInlineNode:"span",defaultContentNode:"span",defaultEnvironment:"both",nodeViewComponents:{},stopEvent:null},staticKeys:["defaultBlockNode","defaultInlineNode","defaultContentNode","defaultEnvironment"]})],on);var or=Object.defineProperty,oo=Object.getOwnPropertyDescriptor,oi={...rQ.X.defaultOptions,...on.defaultOptions},oa=[...rQ.X.staticKeys,...on.staticKeys],ol=class extends w.nNj{get name(){return"react"}onSetOptions(e){let{pickChanged:t}=e;this.getExtension(rQ.X).setOptions(t(["placeholder"]))}createExtensions(){let{emptyNodeClass:e,placeholder:t,defaultBlockNode:n,defaultContentNode:r,defaultEnvironment:o,defaultInlineNode:i,nodeViewComponents:a}=this.options;return[new rQ.X({emptyNodeClass:e,placeholder:t,priority:x.xV.Low}),new on({defaultBlockNode:n,defaultContentNode:r,defaultEnvironment:o,defaultInlineNode:i,nodeViewComponents:a})]}};ol=((e,t,n,r)=>{for(var o,i=r>1?void 0:r?oo(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&or(t,n,i),i})([(0,w.AOx)({defaultOptions:oi,staticKeys:oa})],ol);var ou=n(42719),oc=n(21251),od=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},op=(e,t,n)=>(od(e,t,"read from private field"),n?n.call(e):t.get(e)),oh=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},of=(e,t,n,r)=>(od(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),om=(0,b.createContext)(null);function og(e){let t=(0,b.useContext)(om),n=(0,b.useRef)(function(){let[,e]=(0,b.useState)((0,y.Ry)());return(0,b.useCallback)(()=>{e((0,y.Ry)())},[])}());(0,y.kG)(t,{code:x.mA.REACT_PROVIDER_CONTEXT});let{addHandler:r}=t;return(0,b.useEffect)(()=>{let t=e;if(t){if((0,y.PO)(t)){let{autoUpdate:o}=t;t=o?()=>n.current():void 0}if((0,y.mf)(t))return r("updated",t)}},[r,e]),t}function ov(e=!0){return og({autoUpdate:e}).active}function ob(e=!1){return og(e?{autoUpdate:!0}:void 0).attrs}function oy(){return og().chain}function ox(){return og().commands}function ow(){return og({autoUpdate:!0}).getState().selection}function oE(e,t,n){let{getExtension:r}=og(),o=(0,b.useMemo)(()=>r(e),[e,r]),i;if(i=(0,y.mf)(t)?n?[o,...n]:[o,t]:t?[o,...Object.values(t)]:[],(0,b.useEffect)(()=>{!(0,y.mf)(t)&&t&&o.setOptions(t)},i),(0,b.useEffect)(()=>{if((0,y.mf)(t))return t({addHandler:o.addHandler.bind(o),addCustomHandler:o.addCustomHandler.bind(o),extension:o})},i),!t)return o}function ok(e,t,n){let r=(0,b.useCallback)(({addHandler:e})=>e(t,n),[n,t]);return oE(e,r)}function oC(e,t,n){let r=(0,b.useCallback)(({addCustomHandler:e})=>e(t,n),[n,t]);return oE(e,r)}function oS(e){ok(w.wJp,"docChanged",e)}function oM(e=!1){return og(e?{autoUpdate:!0}:void 0).helpers}var oO,oA,[o_,oT]=(oO=({props:e})=>{let t=e.locale??"en",n=e.i18n??N,r=e.supportedLocales??[t],o=(...e)=>n._(...e);return{locale:t,i18n:n,supportedLocales:r,t:o}},function(e){var t;let n=(0,b.createContext)(null),r=(t=n,(e,n)=>{let r=(0,b.useContext)(t),o=function(e){let t=(0,b.useRef)();return E(()=>{t.current=e}),t.current}(r);if(!r)throw Error("`useContextHook` must be placed inside the `Provider` returned by the `createContextState` method");if(!e)return r;if("function"!=typeof e)throw TypeError("invalid arguments passed to `useContextHook`. This hook must be called with zero arguments, a getter function or a path string.");let i=e(r);if(!o||!n)return i;let a=e(o);return n(a,i)?a:i}),o=t=>{let r=e(t);return b.createElement(n.Provider,{value:r},t.children)};return[o,r,n]}(e=>{let t=(0,b.useRef)(null),n=(0,b.useRef)(),r=null==oA?void 0:oA(e),[o,i]=(0,b.useState)(()=>oO({get:k(t),set:C(n),previousContext:void 0,props:e,state:r})),a=[...Object.values(e),r];return(0,b.useEffect)(()=>{0!==a.length&&i(o=>oO({get:k(t),set:C(n),previousContext:o,props:e,state:r}))},a),t.current=o,n.current=i,o}));function oR(e,t={}){let{core:n,react:r,...o}=t;return(0,w.ZQL)(e)?e:w.Ao0.create(()=>[...(0,y.r2)(e),new ol(r),...function(e={}){e={...rJ,...e};let{content:t,depth:n,getDispatch:r,getState:o,newGroupDelay:i,excludeExtensions:a}=e,l={};for(let s of a??[])l[s]=!0;let u=[];if(!l.history){let c=new rV.u({depth:n,getDispatch:r,getState:o,newGroupDelay:i});u.push(c)}return l.doc||u.push(new rE({content:t})),l.text||u.push(new rX),l.paragraph||u.push(new rG),l.positioner||u.push(new rK.xv),l.gapCursor||u.push(new rF),l.events||u.push(new rO.Q),u}(n)],o)}var oz="object"==typeof ou&&ou.__esModule&&ou.default?ou.default:ou,oL=class extends w.gQe{constructor(e){if(super(e),oh(this,g,void 0),this.rootPropsConfig={called:!1,count:0},this.getRootProps=e=>this.internalGetRootProps(e,null),this.internalGetRootProps=(e,t)=>{this.rootPropsConfig.called=!0;let{refKey:n="ref",ref:r,...o}=e??(0,y.Ry)();return{[n]:oz(r,this.onRef),key:this.uid,...o,children:t}},this.onRef=e=>{e&&(this.rootPropsConfig.count+=1,(0,y.kG)(this.rootPropsConfig.count<=1,{code:x.mA.REACT_GET_ROOT_PROPS,message:`Called ${this.rootPropsConfig.count} times`}),of(this,g,e),this.onRefLoad())},this.manager.view){this.manager.view.setProps({state:this.manager.view.state,dispatchTransaction:this.dispatchTransaction,attributes:()=>this.getAttributes(),editable:()=>this.props.editable??!0});return}this.manager.getExtension(rQ.X).setOptions({placeholder:this.props.placeholder??""})}get name(){return"react"}update(e){return super.update(e),this}createView(e){return new rR.tk(null,{state:e,dispatchTransaction:this.dispatchTransaction,attributes:()=>this.getAttributes(),editable:()=>this.props.editable??!0,plugins:[]})}updateState({state:e,...t}){let{triggerChange:n=!0,tr:r,transactions:o}=t;if(this.props.state){let{onChange:i}=this.props;(0,y.kG)(i,{code:x.mA.REACT_CONTROLLED,message:"You are required to provide the `onChange` handler when creating a controlled editor."}),(0,y.kG)(n,{code:x.mA.REACT_CONTROLLED,message:"Controlled editors do not support `clearContent` or `setContent` where `triggerChange` is `true`. Update the `state` prop instead."}),this.previousStateOverride||(this.previousStateOverride=this.getState()),this.onChange({state:e,tr:r,transactions:o});return}r||o||(e=e.apply(e.tr.setMeta(x.zr,{}))),this.view.updateState(e),n&&(null==o?void 0:o.length)!==0&&this.onChange({state:e,tr:r,transactions:o}),this.manager.onStateUpdate({previousState:this.previousState,state:e,tr:r,transactions:o})}updateControlledState(e,t){this.previousStateOverride=t,e=e.apply(e.tr.setMeta(x.zr,{})),this.view.updateState(e),this.manager.onStateUpdate({previousState:this.previousState,state:e}),this.previousStateOverride=void 0}addProsemirrorViewToDom(e,t){"start"===this.props.insertPosition?e.insertBefore(t,e.firstChild):e.append(t)}onRefLoad(){(0,y.kG)(op(this,g),{code:x.mA.REACT_EDITOR_VIEW,message:"Something went wrong when initializing the text editor. Please check your setup."});let{autoFocus:e}=this.props;this.addProsemirrorViewToDom(op(this,g),this.view.dom),e&&this.focus(e),this.onChange(),this.addFocusListeners()}onUpdate(){this.view&&op(this,g)&&this.view.setProps({...this.view.props,editable:()=>this.props.editable??!0})}get frameworkOutput(){return{...this.baseOutput,getRootProps:this.getRootProps,portalContainer:this.manager.store.portalContainer}}resetRender(){this.rootPropsConfig.called=!1,this.rootPropsConfig.count=0}};g=new WeakMap;var oI="undefined"!=typeof document?b.useLayoutEffect:b.useEffect;function oH(e={}){let{content:t,document:n,selection:r,extensions:o,...i}=e,a=function(e,t={}){let n=(0,b.useRef)(e),r=(0,b.useRef)(t),[o,i]=(0,b.useState)(()=>oR(e,t));return n.current=e,r.current=t,(0,b.useEffect)(()=>o.addHandler("destroy",()=>{i(()=>oR(n.current,r.current))}),[o]),o}(o??(()=>[]),i),[l,s]=(0,b.useState)(()=>a.createState({selection:r,content:t??a.createEmptyDoc()})),u=(0,b.useCallback)(({state:e})=>{s(e)},[]),c=(0,b.useCallback)(()=>{let e=a.output;return e},[a]);return(0,b.useMemo)(()=>({state:l,setState:s,manager:a,onChange:u,getContext:c}),[c,a,u,l])}var oN={doc:!1,selection:!1,storedMark:!1};function oP(){let[e,t]=(0,b.useState)(oN);return ok(w.HOd,"applyState",(0,b.useCallback)(({tr:e})=>{let n={...oN};e.docChanged&&(n.doc=!0),e.selectionSet&&(n.selection=!0),e.storedMarksSet&&(n.storedMark=!0),t(n)},[])),e}var oD=({onChange:e})=>{let{getJSON:t}=oM();return oS((0,b.useCallback)(({state:n})=>{let r=t(n);e(r)},[e,t])),null},oj=({onChange:e})=>{let{getHTML:t}=oM();return oS((0,b.useCallback)(({state:n})=>{let r=t(n);e(r)},[e,t])),null},oB=()=>b.createElement("div",{className:oc.kd.EDITOR_WRAPPER,...og().getRootProps()}),oF=e=>(e.hook(),null);function oV(e){let{children:t,autoRender:n,i18n:r,locale:o,supportedLocales:i,hooks:a=[],...l}=e,s=function(e){let{manager:t,state:n}=e,{placeholder:r,editable:o}=e,i=(0,b.useRef)(!0);i.current&&!(0,y.le)(r)&&t.getExtension(ol).setOptions({placeholder:r}),(0,b.useEffect)(()=>{null!=r&&t.getExtension(ol).setOptions({placeholder:r})},[r,t]);let[a]=(0,b.useState)(()=>{if(n)return n;let r=t.createEmptyDoc(),[o,i]=(0,y.kJ)(e.initialContent)?e.initialContent:[e.initialContent??r];return t.createState({content:o,selection:i})}),l=function(e){let t=(0,b.useRef)(e);t.current=e;let n=(0,b.useMemo)(()=>new oL(t.current),[]);return n.update(e),n}({initialEditorState:a,getProps:()=>e});return(0,b.useEffect)(()=>()=>{l.destroy()},[l]),(0,b.useEffect)(()=>{l.onUpdate()},[o,l]),function(e){let{state:t}=e.props,n=(0,b.useRef)(!!t),r=function(e){let t=(0,b.useRef)();return oI(()=>{t.current=e}),t.current}(t);oI(()=>{let o=t?!0===n.current:!1===n.current;(0,y.kG)(o,{code:x.mA.REACT_CONTROLLED,message:n.current?"You have attempted to switch from a controlled to an uncontrolled editor. Once you set up an editor as a controlled editor it must always provide a `state` prop.":"You have provided a `state` prop to an uncontrolled editor. In order to set up your editor as controlled you must provide the `state` prop from the very first render."}),t&&t!==r&&e.updateControlledState(t,r??void 0)},[t,r,e])}(l),l.frameworkOutput}(l),u=function(e){let[t,n]=(0,b.useState)(()=>Array.from(e.portals.entries()));return(0,b.useEffect)(()=>e.on(e=>{n(Array.from(e.entries()))}),[e]),(0,b.useMemo)(()=>t,[t])}(s.portalContainer),c="start"===n||!0===n||!t&&(0,y.le)(n);return b.createElement(o_,{i18n:r,locale:o,supportedLocales:i},b.createElement(om.Provider,{value:s},b.createElement(oe,{portals:u}),a.map((e,t)=>b.createElement(oF,{hook:e,key:t})),c&&b.createElement(oB,null),t,"end"===n&&b.createElement(oB,null)))}},52727:function(e,t,n){"use strict";n.d(t,{bg:function(){return eS},HK:function(){return eT},GB:function(){return ez}});var r,o=n(19812),i=n(50273),a=n(2784),l=n.t(a,2),s=n(71688),u=n(79899),c=n(71071),d=n(42719),p=(e=document)=>(r||((r=e.createElement("div")).setAttribute("id","a11y-status-message"),r.setAttribute("role","status"),r.setAttribute("aria-live","polite"),r.setAttribute("aria-relevant","additions text"),Object.assign(r.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.append(r)),r),h=(0,u.D)(500,()=>{p().textContent=""}),f=(e,t)=>{let n=p(t);e&&(n.textContent=e,h())};function m(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function g(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function v(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n,r,o=getComputedStyle(e,null);return g(o.overflowY,t)||g(o.overflowX,t)||!!(r=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}}(e))&&(r.clientHeight<e.scrollHeight||r.clientWidth<e.scrollWidth)}return!1}function b(e,t,n,r,o,i,a,l){return i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0}var y=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,l=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!m(e))throw TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,p=[],h=e;m(h)&&s(h);){if((h=null==(c=(u=h).parentElement)?u.getRootNode().host||null:c)===d){p.push(h);break}null!=h&&h===document.body&&v(h)&&!v(document.documentElement)||null!=h&&v(h,l)&&p.push(h)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,x=window.scrollY||pageYOffset,w=e.getBoundingClientRect(),E=w.height,k=w.width,C=w.top,S=w.right,M=w.bottom,O=w.left,A="start"===o||"nearest"===o?C:"end"===o?M:C+E/2,_="center"===i?O+k/2:"end"===i?S:O,T=[],R=0;R<p.length;R++){var z=p[R],L=z.getBoundingClientRect(),I=L.height,H=L.width,N=L.top,P=L.right,D=L.bottom,j=L.left;if("if-needed"===r&&C>=0&&O>=0&&M<=g&&S<=f&&C>=N&&M<=D&&O>=j&&S<=P)break;var B=getComputedStyle(z),F=parseInt(B.borderLeftWidth,10),V=parseInt(B.borderTopWidth,10),$=parseInt(B.borderRightWidth,10),W=parseInt(B.borderBottomWidth,10),U=0,Z=0,G="offsetWidth"in z?z.offsetWidth-z.clientWidth-F-$:0,K="offsetHeight"in z?z.offsetHeight-z.clientHeight-V-W:0,Y="offsetWidth"in z?0===z.offsetWidth?0:H/z.offsetWidth:0,q="offsetHeight"in z?0===z.offsetHeight?0:I/z.offsetHeight:0;if(d===z)U="start"===o?A:"end"===o?A-g:"nearest"===o?b(x,x+g,g,V,W,x+A,x+A+E,E):A-g/2,Z="start"===i?_:"center"===i?_-f/2:"end"===i?_-f:b(y,y+f,f,F,$,y+_,y+_+k,k),U=Math.max(0,U+x),Z=Math.max(0,Z+y);else{U="start"===o?A-N-V:"end"===o?A-D+W+K:"nearest"===o?b(N,D,I,V,W+K,A,A+E,E):A-(N+I/2)+K/2,Z="start"===i?_-j-F:"center"===i?_-(j+H/2)+G/2:"end"===i?_-P+$+G:b(j,P,H,F,$+G,_,_+k,k);var X=z.scrollLeft,J=z.scrollTop;A+=J-(U=Math.max(0,Math.min(J+U/q,z.scrollHeight-I/q+K))),_+=X-(Z=Math.max(0,Math.min(X+Z/Y,z.scrollWidth-H/Y+G)))}T.push({el:z,top:U,left:Z})}return T},x=n(55518),w=n(16453),E=n(13e3),k="object"==typeof d&&d.__esModule&&d.default?d.default:d,C=["ArrowDown","ArrowUp","Enter","Escape"],S=["ArrowDown","ArrowUp","Space","Tab","Enter","Escape","Home","End","SelectAll"],M=["ArrowDown","ArrowUp","Space"],O={Select:"select",ComboBox:"combobox",ControlledMenu:"controlled-menu"},A={SelectItems:"$$__SELECT_ITEMS__",SelectItem:"$$__SELECT_ITEM__",RemoveSelectedItems:"$$_REMOVE__SELECTED_ITEMS__",RemoveSelectedItem:"$$__REMOVE_SELECTED_ITEM__",ClearSelection:"$$__CLEAR_SELECTION__",SetHoverItemIndex:"$$__SET_HOVER_ITEM_INDEX__",ToggleMenu:"$$__TOGGLE_MENU__",CloseMenu:"$$__CLOSE_MENU__",OpenMenu:"$$__OPEN_MENU__",SetHighlightedIndexes:"$$__SET_HIGHLIGHTED_INDEXES__",SetHighlightedIndex:"$$__SET_HIGHLIGHTED_INDEX__",ClearHighlighted:"$$__CLEAR_HIGHLIGHTED__",ClearHover:"$$__CLEAR_HOVER__",Reset:"$$__RESET__",SetState:"$$__SET_STATE__",ItemMouseMove:"$$__ITEM_MOUSE_MOVE__",ItemMouseLeave:"$$__ITEM_MOUSE_LEAVE__",ItemClick:"$$__ITEM_CLICK__",ToggleButtonClick:"$$__TOGGLE_BUTTON_CLICK__",ToggleButtonBlur:"$$__TOGGLE_BUTTON_BLUR__",ToggleButtonSpecialKeyDown:"$$__TOGGLE_BUTTON_SPECIAL_KEY_DOWN__",MenuBlur:"$$__MENU_BLUR__",MenuSpecialKeyDown:"$$__MENU_SPECIAL_KEY_DOWN__",MenuCharacterKeyDown:"$$__MENU_CHARACTER_KEY_DOWN__",InputBlur:"$$__INPUT_BLUR__",InputSpecialKeyDown:"$$__INPUT_SPECIAL_KEY_DOWN__",ClearJumpText:"$$__CLEAR_JUMP_TEXT__",InputValueChange:"$$__INPUT_VALUE_CHANGE__",ClearInputValue:"$$__CLEAR_INPUT_VALUE__",OuterMouseUp:"$$__OUTER_MOUSE_UP__",OuterTouchEnd:"$$__OUTER_TOUCH_END__"},_={itemMouseMove:function(e){return{type:A.ItemMouseMove,payload:e}},itemMouseLeave:function(e){return{type:A.ItemMouseLeave,payload:e}},itemClick:function(e){return{type:A.ItemClick,payload:e}},menuBlur:function(){return{type:A.MenuBlur}},toggleButtonBlur:function(){return{type:A.ToggleButtonBlur}},inputBlur:function(){return{type:A.InputBlur}},toggleButtonClick:function(){return{type:A.ToggleButtonClick}},menuSpecialKeyDown:function(e){return{type:A.MenuSpecialKeyDown,payload:e}},toggleButtonSpecialKeyDown:function(e){return{type:A.ToggleButtonSpecialKeyDown,payload:e}},inputSpecialKeyDown:function(e){return{type:A.InputSpecialKeyDown,payload:e}},menuCharacterKeyDown:function(e){return{type:A.MenuCharacterKeyDown,payload:e}},outerTouchEnd:function(){return{type:A.OuterTouchEnd}},outerMouseUp:function(){return{type:A.OuterMouseUp}},selectItems:function(e,t=!1){return{type:A.SelectItems,payload:{items:e,keepHighlights:t}}},selectItem:function(e,t=!1){return{type:A.SelectItem,payload:{items:[e],keepHighlights:t}}},removeSelectedItems:function(e,t=!1){return{type:A.RemoveSelectedItems,payload:{items:e,keepHighlights:t}}},removeSelectedItem:function(e,t=!1){return{type:A.RemoveSelectedItem,payload:{items:[e],keepHighlights:t}}},setState:function(e){return{type:A.SetState,payload:e}},clearSelection:function(){return{type:A.ClearSelection}},setHoverItemIndex:function(e){return{type:A.SetHoverItemIndex,payload:e}},inputValueChange:function(e){return{type:A.InputValueChange,payload:e}},clearInputValue:function(){return{type:A.ClearInputValue}},toggleMenu:function(){return{type:A.ToggleMenu}},closeMenu:function(){return{type:A.CloseMenu}},openMenu:function(){return{type:A.OpenMenu}},setHighlightedIndexes:function(e){return{type:A.SetHighlightedIndexes,payload:e}},setHighlightedIndex:function(e){return{type:A.SetHighlightedIndex,payload:[e]}},clearHighlighted:function(){return{type:A.ClearHighlighted}},reset:function(){return{type:A.Reset}},clearJumpText:function(){return{type:A.ClearJumpText}}},T=(0,c.bH)(y);function R(e){return e}function z(e){return e?String(e):""}function L(e,t=z){return e.map(t).join(", ")}var I={selectedItems:[],jumpText:"",isOpen:!1,inputValue:"",hoveredIndex:-1,highlightedIndexes:[],highlightedGroupStartIndex:-1,highlightedGroupEndIndex:void 0},H=(e,t)=>{for(let n of t)if(!(0,c.o8)(n))return n;return e};function N(e){let{defaultSelectedItems:t,defaultJumpText:n,defaultIsOpen:r,defaultInputValue:o,defaultHoveredIndex:i,defaultHighlightedIndexes:a,defaultHighlightedGroupStartIndex:l,defaultHighlightedGroupEndIndex:s}=e;return{selectedItems:t??I.selectedItems,jumpText:H(I.jumpText,[n]),isOpen:H(I.isOpen,[r]),inputValue:H(I.inputValue,[o]),hoveredIndex:H(I.hoveredIndex,[i]),highlightedIndexes:a??I.highlightedIndexes,highlightedGroupStartIndex:H(I.highlightedGroupStartIndex,[l]),highlightedGroupEndIndex:H(I.highlightedGroupEndIndex,[s])}}function P(e){return{highlightedGroupEndIndex:e.highlightedGroupEndIndex,highlightedGroupStartIndex:e.highlightedGroupStartIndex,highlightedIndexes:e.highlightedIndexes,hoveredIndex:e.hoveredIndex}}var D={selectedItems:({onSelectedItemsChange:e},{state:t})=>null==e?void 0:e(t.selectedItems,t),jumpText:({onJumpTextChange:e},{state:t})=>null==e?void 0:e(t.jumpText,t),isOpen:({onIsOpenChange:e},{state:t})=>null==e?void 0:e(t.isOpen,t),inputValue:({onInputValueChange:e},{state:t})=>null==e?void 0:e(t.inputValue,t),hoveredIndex:({onHoveredIndexChange:e},{state:t})=>null==e?void 0:e(t.hoveredIndex,t),highlightedIndexes:({onHighlightedIndexesChange:e},{state:t})=>null==e?void 0:e(t.highlightedIndexes,t),highlightedGroupStartIndex:({onHighlightedGroupStartIndexChange:e},{state:t})=>null==e?void 0:e(t.highlightedGroupStartIndex,t),highlightedGroupEndIndex:({onHighlightedGroupEndIndexChange:e},{state:t})=>null==e?void 0:e(t.highlightedGroupEndIndex,t)};function j({start:e,steps:t,size:n,circular:r}){if(0===n)return;if(-1===e)return t>0?0:n-1;let o=e+t;return o<0?r?n-1:0:o>=n?r?0:n-1:o}function B(e){return(0,c.hj)(e)&&e>-1}function F(e){let t=j(e);return B(t)?[t]:[]}function V(e,t,n,r){let{items:o,initialHighlightedIndexes:i,defaultHighlightedIndexes:a}=e,{selectedItems:l,highlightedIndexes:s}=t;if(!(0,c.o8)(i)&&!(0,c.yD)(s))return i;if(a)return a;if(!(0,c.yD)(l)){let u=o.map(r),d=l.map(e=>u.indexOf(r(e))).findIndex(B);return B(d)?0===n?[d]:F({steps:n,start:d,size:o.length,circular:!1}):[]}return 0===n?[0]:n<0?[o.length-1]:[0]}function $(e){let{highlightedGroupEndIndex:t,highlightedGroupStartIndex:n,highlightedIndexes:r}=e,o=(0,c.Z$)(r);return B(t)?t:B(n)?n:B(o)?o:-1}var W=()=>/Mac|iPod|iPhone|iPad/.test(navigator.platform);function U(e,t,n,r){return r?(0,c.uw)([...e,...t],n,!0):(0,c.qn)(t,1)}function Z(e,t,n){return e.filter(e=>!t.some(t=>n(t)===n(e)))}function G(e,t,n,r){var o,i,a;return!(0,c.yD)(t)&&t.every(t=>e.some(e=>n(e)===n(t)))?Z(e,t,n):U(e,t,n,r)}function K({start:e,end:t,indexes:n,items:r,hoveredIndex:o}){let i=r.length-1,a=B(e)?(0,c.w6)((0,c.uZ)({min:0,max:i,value:e}),(0,c.uZ)({min:0,max:i,value:B(t)?t:e})):[],l=B(o)?[o]:[];return(0,c.Nb)([...l,...n,...a],!0).filter(e=>0<=e&&e<=i)}function Y(e,t){let{start:n,end:r,indexes:o}=t;return o.includes(e)||(0,c.uh)(e,n,r)}function q(e,{state:t,getItemId:n}){return E(e,(e,r)=>{if((0,c.kJ)(e)){if("selectedItems"===r)return e.length!==t.selectedItems.length||e.some((e,r)=>n(e)!==n((0,c.fp)(t.selectedItems,r)));if("highlightedIndexes"===r)return e.length!==t.highlightedIndexes.length||e.some((e,n)=>e!==t.highlightedIndexes[n])}return e!==t[r]})}function X(e){let t=(0,w.YG)(e.nativeEvent);return" "===t?"Space":("a"===t.toLowerCase()&&W()?e.metaKey:e.ctrlKey)?"SelectAll":t}function J({modifiers:e,defaultState:t,state:n,key:r,items:o,getItemId:i,props:a,disabled:l}){let s=e.includes("shiftKey"),u=e.includes("metaKey"),d={state:n,getItemId:i},p=$(n),h=P(t),f=K({start:n.highlightedGroupStartIndex,end:n.highlightedGroupEndIndex,indexes:n.highlightedIndexes,hoveredIndex:a.includeHoveredIndexInSelection?n.hoveredIndex:void 0,items:o}).filter(e=>!l.includes(e));if("Escape"===r)return q({...P(t),isOpen:!1},d);if("Enter"===r||"Space"===r){let m=f.map(e=>(0,c.fp)(o,e)),g=a.multiple?{}:{...h,highlightedIndexes:[p]},v=G(n.selectedItems,m,i,a.multiple),b={...g,isOpen:!!a.multiple||t.isOpen,jumpText:t.jumpText,selectedItems:v};return q(b,d)}if("SelectAll"===r){let y={highlightedIndexes:(0,c.w6)(0,o.length-1).filter(e=>!l.includes(e)),highlightedGroupStartIndex:p,highlightedGroupEndIndex:t.highlightedGroupEndIndex};return q(y,d)}if(a.multiple&&("ArrowDown"===r||"ArrowUp"===r)&&s){let x="ArrowDown"===r,w=j({start:p,size:o.length,circular:!1,steps:x?1:-1}),E=u?x?o.length-1:0:w,k=B(n.highlightedGroupStartIndex)?{highlightedGroupEndIndex:E}:B(p)?{highlightedGroupStartIndex:p,highlightedGroupEndIndex:E}:{highlightedGroupStartIndex:w,highlightedGroupEndIndex:E};return q(k,d)}if("Home"===r||"ArrowUp"===r&&u||"End"===r||"ArrowDown"===r&&u){let C={highlightedIndexes:"Home"===r||"ArrowUp"===r?[0]:[o.length-1]};return q(C,d)}if("ArrowDown"===r||"ArrowUp"===r){let S=F({start:p,size:o.length,circular:!0,steps:"ArrowDown"===r?1:-1}),M={...P(t),highlightedIndexes:S};return q(M,d)}return"Tab"===r?q({isOpen:!1},d):{}}var Q=e=>J(e),ee=["altKey","shiftKey","metaKey","ctrlKey"];function et(e){return ee.filter(t=>e[t])}function en(...e){return(t,...n)=>{e.some(e=>!!e&&!0===e(t,...n))}}function er(e,t){return(...n)=>t(e(...n))}function eo(e,t,n){return{event:e,key:t,modifiers:et(e),disabled:n}}var ei=e=>{var t;return(0,c.Kn)(e)&&(0,c.hj)(e.nodeType)&&(0,c.HD)(e.nodeName)&&1===e.nodeType};function ea(e,t){return e===t||e.contains(t)}var el=(e,t,n)=>{let r=(0,c.Ry)(),o=N(n),{multiple:i,items:a,getItemId:l=R,autoSelectOnBlur:s=!0,itemToString:u,initialHighlightedIndexes:d}=n,p=P(o);switch(t.type){case A.SelectItems:case A.SelectItem:{let h=t.payload.keepHighlights?{}:p;r={...h,selectedItems:U(e.selectedItems,t.payload.items,l,i)};break}case A.RemoveSelectedItems:case A.RemoveSelectedItem:{let f=t.payload.keepHighlights?{}:p;r={...f,selectedItems:Z(e.selectedItems,t.payload.items,l)};break}case A.ClearSelection:r={...p,selectedItems:[]};break;case A.SetHoverItemIndex:r={...e,hoveredIndex:t.payload};break;case A.ItemMouseMove:r={hoveredIndex:t.payload};break;case A.ItemMouseLeave:r=e.hoveredIndex===t.payload?{hoveredIndex:o.hoveredIndex}:{};break;case A.ItemClick:{let{modifiers:m,index:g}=t.payload;r=function({modifiers:e,items:t,defaultState:n,state:r,index:o,props:i,getItemId:a}){let l=t[o],s=!!i.multiple||n.isOpen,u={state:r,getItemId:a},d={highlightedGroupEndIndex:n.highlightedGroupEndIndex,highlightedGroupStartIndex:i.multiple?o:n.highlightedGroupStartIndex};if(!l)return{...d,isOpen:s};let p=G(r.selectedItems,[l],a,i.multiple),h=e.includes("shiftKey"),f=e.includes(W()?"metaKey":"ctrlKey")&&1===e.length;if(!i.multiple)return{...d,highlightedIndexes:n.highlightedIndexes,selectedItems:p};if(f){let m=K({indexes:r.highlightedIndexes,start:r.highlightedGroupStartIndex,end:r.highlightedGroupEndIndex,hoveredIndex:i.includeHoveredIndexInSelection?r.hoveredIndex:void 0,items:t}),g=Y(o,{indexes:m,start:r.highlightedGroupStartIndex,end:r.highlightedGroupEndIndex}),v=g?{highlightedIndexes:m.filter(e=>e!==o),highlightedGroupEndIndex:void 0,highlightedGroupStartIndex:-1}:{highlightedIndexes:m,highlightedGroupStartIndex:o},b={...d,...v};return q(b,u)}if(h){let y=(0,c.Nb)(r.highlightedIndexes,!0),x=B(r.highlightedGroupStartIndex)?{highlightedIndexes:y,highlightedGroupStartIndex:r.highlightedGroupStartIndex,highlightedGroupEndIndex:o}:{highlightedIndexes:y,highlightedGroupStartIndex:o},w={...d,...x};return q(w,u)}return q({...d,selectedItems:p,isOpen:s,highlightedIndexes:n.highlightedIndexes},u)}({defaultState:o,state:e,index:g,items:a,modifiers:m,props:n,getItemId:l});break}case A.InputBlur:case A.ToggleButtonBlur:case A.MenuBlur:{let{highlightedIndexes:v,selectedItems:b,highlightedGroupStartIndex:y,highlightedGroupEndIndex:w}=e,E=K({start:y,end:w,indexes:v,items:a}),k=!(0,c.yD)(E)&&s?{selectedItems:U(b,E.map(e=>(0,c.fp)(a,e)),l,i)}:{};r=q({isOpen:o.isOpen,highlightedIndexes:o.highlightedIndexes,highlightedGroupEndIndex:o.highlightedGroupEndIndex,highlightedGroupStartIndex:o.highlightedGroupStartIndex,hoveredIndex:o.hoveredIndex,jumpText:o.jumpText,...k},{state:e,getItemId:l});break}case A.MenuSpecialKeyDown:{let{key:C,modifiers:S,disabled:M}=t.payload;r=J({defaultState:o,items:a,key:C,modifiers:S,props:n,state:e,getItemId:l,disabled:M});break}case A.ToggleButtonSpecialKeyDown:{let{key:_,modifiers:T,disabled:L}=t.payload;r=function({key:e,defaultState:t,props:n,getItemId:r,state:o}){let i={state:o,getItemId:r};if("ArrowDown"===e||"ArrowUp"===e||"Enter"===e||"Space"===e){let a=n.type===O.Select?{highlightedIndexes:V(n,o,"ArrowDown"===e?1:"ArrowUp"===e?-1:0,r)}:{},l={isOpen:!0,...a};return q(l,i)}return"Escape"===e?q({...P(t),isOpen:!1},i):{}}({defaultState:o,items:a,key:_,modifiers:T,props:n,state:e,getItemId:l,disabled:L});break}case A.InputSpecialKeyDown:{let{key:I,modifiers:H,disabled:D}=t.payload;r=Q({defaultState:o,items:a,key:I,modifiers:H,props:n,state:e,getItemId:l,disabled:D});break}case A.MenuCharacterKeyDown:{let j=`${e.jumpText}${t.payload}`,F=function({text:e,highlightedIndexes:t,items:n,itemToString:r=z}){let o=-1,i=t=>t.startsWith(e),a=n.map(e=>r(e).toLowerCase()),l=(Math.min(...t)||-1)+1;if((o=a.slice(l).findIndex(i))>-1)return[o+l];let s=a.slice(0,l).findIndex(i);return B(s)?[s]:[]}({text:j,highlightedIndexes:e.highlightedIndexes,itemToString:u,items:a}),$=(0,c.yD)(F)?{}:{highlightedIndexes:F};r=q({jumpText:j,...$},{state:e,getItemId:l});break}case A.ToggleButtonClick:case A.ToggleMenu:{let X=V({defaultHighlightedIndexes:o.highlightedIndexes,initialHighlightedIndexes:d,items:a},e,0,l);r={isOpen:!e.isOpen,highlightedIndexes:e.isOpen?[]:X};break}case A.OpenMenu:{let ee=V({defaultHighlightedIndexes:o.highlightedIndexes,initialHighlightedIndexes:d,items:a},e,0,l);r={isOpen:!0,highlightedIndexes:ee,highlightedGroupEndIndex:void 0,highlightedGroupStartIndex:-1};break}case A.CloseMenu:r={isOpen:!1};break;case A.SetHighlightedIndexes:case A.SetHighlightedIndex:r={highlightedIndexes:t.payload};break;case A.ClearHighlighted:r=P(o);break;case A.ClearJumpText:r={jumpText:""};break;case A.OuterMouseUp:case A.OuterTouchEnd:{let{highlightedIndexes:et,selectedItems:en,highlightedGroupEndIndex:er,highlightedGroupStartIndex:eo}=e,ei=K({start:eo,end:er,indexes:et,items:a}),ea=ei.map(e=>(0,c.fp)(a,e)),el=!(0,c.yD)(ei)&&s?{selectedItems:U(en,ea,l,i)}:{};r={...el,isOpen:!1,...p};break}case A.Reset:r=o;break;case A.InputValueChange:r={...P(o),isOpen:!0,inputValue:t.payload,jumpText:o.jumpText};break;case A.SetState:r={...t.payload};break;default:!function(e,t=""){(0,x.Z)(!e.startsWith("$$"),t)}(t.type,"All internal action types need to be managed")}return[{...e,...r},r]},es="undefined"!=typeof document?a.useLayoutEffect:a.useEffect,eu=0,ec=()=>`multishift-id-${eu++}`,ed=!1,ep=l["useId".toString()]||function(){let[e,t]=a.useState(()=>ed?ec():void 0);return es(()=>{null==e&&t(ec())},[]),a.useEffect(()=>{ed||(ed=!0)},[]),e},eh=({items:e,state:{selectedItems:t,isOpen:n},itemsToString:r=L})=>{if(!(0,c.yD)(t))return`${r(t)} has been selected.`;if((0,c.yD)(e))return"";let o=e.length;return n?0===o?"No results are available":`${o} result${1===o?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:""};function ef(e,t){let n=(0,a.useRef)(!0);(0,a.useEffect)(()=>{if(!n.current)return e();n.current=!1},[...t])}function em(e){(0,a.useEffect)(e,[])}var eg=e=>{var t,n;let{type:r,customA11yStatusMessage:o,getA11yStatusMessage:i,items:l,getItemId:s=R,multiple:d}=e,[p,h]=function(e){let{stateReducer:t,...n}=e,r=function(e){let{initialSelectedItems:t,initialJumpText:n,initialIsOpen:r,initialInputValue:o,initialHoveredIndex:i,initialHighlightedIndexes:a,initialHighlightedGroupStartIndex:l,initialHighlightedGroupEndIndex:s,selectedItems:u,jumpText:c,isOpen:d,inputValue:p,hoveredIndex:h,highlightedIndexes:f,highlightedGroupStartIndex:m,highlightedGroupEndIndex:g,...v}=e,b=N(v);return{selectedItems:H(b.selectedItems,[u,t]),jumpText:H(b.jumpText,[c,n]),isOpen:H(b.isOpen,[d,r]),inputValue:H(b.inputValue,[p,o]),hoveredIndex:H(b.hoveredIndex,[h,i]),highlightedIndexes:H(b.highlightedIndexes,[f,a]),highlightedGroupStartIndex:H(b.highlightedGroupStartIndex,[m,l]),highlightedGroupEndIndex:H(b.highlightedGroupEndIndex,[g,s])}}(n);return(0,a.useReducer)((e,r)=>{let[o,i]=el(e,r,n),a={changes:i,state:o,prevState:e};return(!function(e,t){let{changes:n,state:r,prevState:o}=t,i=(0,c.XP)(n),{onStateChange:a}=e;i.forEach(t=>{D[t](e,{changes:n,state:r,prevState:o})}),!(0,c.yD)(i.length)&&a&&a(n,r)}(n,a),t)?t(a,r,n):o},r)}(e),m=(0,a.useMemo)(()=>(function(e,t){let n=(0,c.Ry)(),r=(0,c.XP)(e);for(let o of r){let i=(0,c.fp)(e,o);n[o]=er(i,t)}return n})(_,h),[h]);!function(e){let{state:t,items:n,itemsToString:r=L,getA11yStatusMessage:o=eh,customA11yStatusMessage:i=""}=e,l=o({state:t,items:n,itemsToString:r});ef(()=>{f(l)},[t.isOpen,t.selectedItems]),(0,a.useEffect)(()=>{i&&f(i)},[i])}({state:p,items:l,customA11yStatusMessage:o,getA11yStatusMessage:i});let g={selectedItems:e.selectedItems??p.selectedItems,jumpText:H(p.jumpText,[e.jumpText]),isOpen:H(p.isOpen,[e.isOpen]),inputValue:H(p.inputValue,[e.inputValue]),hoveredIndex:H(p.hoveredIndex,[e.hoveredIndex]),highlightedIndexes:e.highlightedIndexes??p.highlightedIndexes,highlightedGroupStartIndex:H(p.highlightedGroupStartIndex,[e.highlightedGroupStartIndex]),highlightedGroupEndIndex:H(p.highlightedGroupEndIndex,[e.highlightedGroupEndIndex])},{highlightedIndexes:v,highlightedGroupEndIndex:b,highlightedGroupStartIndex:y,selectedItems:x,hoveredIndex:w,inputValue:E,isOpen:A,jumpText:z}=g,{getItemA11yId:I,labelId:P,menuId:j,toggleButtonId:F,inputId:V}=function(e){let t=ep();return function(e,t=(0,c.Ry)()){let{id:n,labelId:r,menuId:o,getItemA11yId:i,toggleButtonId:a,inputId:l}=t,s=void 0===n?`multishift-${e}`:n;return{labelId:r??`${s}-label`,inputId:l??`${s}-input`,menuId:o??`${s}-menu`,getItemA11yId:i??(e=>`${s}-item-${e??0}`),toggleButtonId:a??`${s}-toggle-button`}}(t??"",e)}(e),W=function(){let e=(0,a.useRef)([]),t=(0,a.useRef)([]),n=(0,a.useRef)(),r=(0,a.useRef)(),o=(0,a.useRef)(),i=(0,a.useRef)();return e.current=[],t.current=[],(0,a.useRef)({toggleButton:n,input:r,menu:o,comboBox:i,items:e,ignored:t}).current}(),G=(0,a.useRef)(!0),K=(0,u.D)(500,m.clearJumpText),q=(0,a.useRef)([]);q.current=[];let J=function(e,t,{outerMouseUp:n,outerTouchEnd:r}){let o=(0,a.useRef)({isMouseDown:!1,isTouchMove:!1,lastBlurred:void 0}),i=(0,a.useRef)(t.isOpen);i.current=t.isOpen;let l=(t,n=!0)=>[e.comboBox.current,e.menu.current,e.toggleButton.current,e.input.current,...e.ignored.current,...e.items.current].some(e=>e&&(ea(e,t)||n&&ea(e,window.document.activeElement)));return em(()=>{let e=()=>{o.current.isMouseDown=!0},t=e=>{o.current.isMouseDown=!1;let t=l(e.target);!t&&i.current&&n()},a=()=>{o.current.isTouchMove=!1},s=()=>{o.current.isTouchMove=!0},u=e=>{let t=l(e.target,!1);o.current.isTouchMove||t||!i.current||r()};return window.addEventListener("mousedown",e),window.addEventListener("mouseup",t),window.addEventListener("touchstart",a),window.addEventListener("touchmove",s),window.addEventListener("touchend",u),()=>{window.removeEventListener("mousedown",e),window.removeEventListener("mouseup",t),window.removeEventListener("touchstart",a),window.removeEventListener("touchmove",s),window.removeEventListener("touchend",u)}}),o}(W,g,{outerMouseUp:m.outerMouseUp,outerTouchEnd:m.outerTouchEnd}),[Q,ee]=function(){let e=(0,a.useRef)([]),t=(t,n=1)=>{let r=setTimeout(()=>{e.current=e.current.filter(e=>e!==r),t()},n);e.current.push(r)},n=()=>{e.current.forEach(e=>{clearTimeout(e)}),e.current=[]};return em(()=>n),[t,n]}(),es=$({highlightedGroupEndIndex:b,highlightedGroupStartIndex:y,highlightedIndexes:v});ev(()=>ee()),ef(()=>{z&&K()},[z]),ev(()=>{A&&(r===O.ComboBox&&W.input.current?W.input.current.focus():W.menu.current&&r!==O.ControlledMenu&&W.menu.current.focus())}),ef(()=>{A?r===O.ComboBox&&W.input.current?W.input.current.focus():W.menu.current&&r!==O.ControlledMenu&&W.menu.current.focus():document.activeElement===W.menu.current&&(r===O.ComboBox&&W.input.current?W.input.current.focus():W.toggleButton.current&&W.toggleButton.current.focus())},[A]),(0,a.useEffect)(()=>{!(!B(es)||!A||(0,c.yD)(W.items.current))&&(!1===G.current?G.current=!0:W.menu.current&&function(e,t){if(!e||!t)return;let n=T(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach(({el:e,top:t,left:n})=>{e.scrollTop=t,e.scrollLeft=n})}(W.items.current[es],W.menu.current))},[A,es,W.items,W.menu]);let eu=(0,a.useCallback)(e=>{let t=e===w;return Y(e,{start:y,end:b,indexes:v})||(d?t:!B(es)&&t)},[b,y,v,w,es,d]),ec=(0,a.useCallback)(e=>e===w,[w]),ed=(0,a.useCallback)(e=>e===l[w],[w,l]),eg=(0,a.useCallback)(e=>Y(e,{start:y,end:b,indexes:v}),[b,y,v]),eb=(0,a.useCallback)(e=>x.map(s).includes(s(e)),[s,x]),ey=(0,a.useCallback)(e=>l.map(s).indexOf(s(e)),[s,l]),ex=(0,a.useCallback)((e={refKey:"ref"})=>{let{refKey:t="ref",ref:n,...o}=e;if(r!==O.ComboBox)throw Error("`getComboBoxProps` is only available for the autocomplete dropdown");let i=(0,c.o8)(o["aria-label"])?{"aria-labelledby":P}:{};return{[t]:k(n,W.comboBox),role:"combobox","aria-expanded":A,"aria-haspopup":"listbox","aria-owns":A?j:null,...i,...o}},[A,P,j,W.comboBox,r]),ew=(0,a.useCallback)((e={refKey:"ref"})=>{let{onKeyDown:t,onBlur:n,onChange:o,onInput:i,refKey:a="ref",ref:l,...s}=e;if(r!==O.ComboBox)throw Error("`getInputProps` is only available for the `autocomplete` dropdown");let u=B(es)?{"aria-activedescendant":I(es)}:{},d={onChange:en(o,i,e=>{m.inputValueChange(e.target.value)}),onKeyDown:en(t,e=>{let t=X(e);(0,c.q9)(C,t)&&(m.inputSpecialKeyDown(eo(e,t,q.current)),e.preventDefault())}),onBlur:en(n,()=>{Q(()=>{let e=ei(document.activeElement)&&W.comboBox.current&&W.comboBox.current.contains(document.activeElement);J.current.isMouseDown||e||m.inputBlur()})})};return s.disabled&&(d=(0,c.Ry)()),{[a]:k(l,W.input),"aria-autocomplete":"list",...u,"aria-controls":A?j:null,"aria-labelledby":P,autoComplete:"off",value:E,id:V,...d,...s}},[m,J,I,V,E,A,P,j,es,W,Q,r]),eE=(0,a.useCallback)((e={refKey:"ref"})=>{let{onKeyDown:t,onBlur:n,refKey:o="ref",ref:i,...a}=e,l=(0,c.yD)(v)?{}:{"aria-activedescendant":I(es)},s={onKeyDown:en(t,e=>{let t=X(e);if((0,c.q9)(S,t))m.menuSpecialKeyDown(eo(e,t,q.current)),"Tab"!==t&&e.preventDefault();else{var n;/^\S$/.test(t)&&m.menuCharacterKeyDown(t)}}),onBlur:en(n,e=>{let t=e.target;Q(()=>{!J.current.isMouseDown&&((0,c.le)(document.activeElement)||![W.comboBox.current,W.input.current,W.toggleButton.current,...W.items.current,...W.ignored.current].some(e=>e&&ea(e,document.activeElement))&&document.activeElement!==t)&&m.menuBlur()})})};return a.disabled&&(s=(0,c.Ry)()),{[o]:k(i,W.menu),id:j,role:r===O.ControlledMenu?"menu":"listbox","aria-labelledby":P,tabIndex:-1,...d?{"aria-multiselectable":d}:{},...l,...s,...a}},[m,J,I,v,P,j,es,d,W,Q,r]),ek=(0,a.useCallback)((e={refKey:"ref"})=>{let{onClick:t,onKeyDown:n,onBlur:o,refKey:i="ref",ref:a,...l}=e;if(r===O.ControlledMenu)throw Error("The toggle button props should not be used for the controlled menu");let s=e=>[W.input.current,W.menu.current,...W.items.current].some(t=>t&&ea(t,e.target)),u={onClick:en(t,()=>m.toggleButtonClick()),onKeyDown:en(n,e=>{let t=X(e);!s(e)&&(0,c.q9)(M,t)&&(m.toggleButtonSpecialKeyDown(eo(e,t,q.current)),e.preventDefault())}),onBlur:en(o,e=>{if(s(e))return;let t=e.target;Q(()=>{!J.current.isMouseDown&&((0,c.le)(document.activeElement)||document.activeElement.id!==j)&&document.activeElement!==t&&m.toggleButtonBlur()})})};l.disabled&&(u=(0,c.Ry)());let d=r===O.Select?{"aria-expanded":A}:{},p=(0,c.o8)(l["aria-label"])?{"aria-labelledby":`${P} ${F}`}:{};return{[i]:k(a,W.toggleButton),type:"button",role:"button",id:F,"aria-haspopup":r===O.ComboBox||"listbox",...p,...d,...u,...l}},[m,J,A,P,j,W,Q,F,r]),eC=(0,a.useCallback)(e=>{var t,n,o;let{item:i,index:a,refKey:s="ref",ref:u,onMouseMove:p,onMouseLeave:h,onClick:f,...g}=e,v=void 0!==a?a:0===l.length?-1:l.indexOf(i);if(!B(v))throw Error("Pass either item or item index in getItemProps!");let b={onMouseMove:en(p,()=>m.itemMouseMove(v)),onMouseLeave:en(h,()=>m.itemMouseLeave(v)),onClick:en(f,e=>{var t,n;e.preventDefault(),m.itemClick({event:e,modifiers:et(e),index:v})})};return g.disabled&&(q.current.push(v),b=(0,c.Ry)()),{[s]:k(u,e=>{e&&W.items.current.push(e)}),role:r===O.ControlledMenu?d?"menuitemcheckbox":"menuitemradio":"option","aria-current":a===w||a===es,"aria-selected":eu(a)&&!g.disabled,id:I(v),...b,...g}},[m,I,w,eu,l,es,d,W.items,r]),eS=(0,a.useCallback)((e={refKey:"ref"})=>{let{refKey:t="ref",ref:n,onMouseMove:r,onFocus:o,...i}=e,a=(0,c.Ry)();return i.disabled&&(a=(0,c.Ry)()),{[t]:k(n,e=>{e&&!i.disabled&&W.ignored.current.push(e)}),...a,...i}},[W.ignored]),eM=(0,a.useCallback)((e={refKey:"ref"})=>{let{refKey:t="ref",ref:n,...o}=e;return{[t]:k(n,e=>{e&&W.ignored.current.push(e)}),id:P,htmlFor:"combobox"===r&&W.input.current?V:j,...o}},[V,P,j,W,r]),eO=(0,a.useCallback)(e=>{let{onClick:t,item:n,...r}=e,o={onClick:en(t,()=>{m.removeSelectedItem(n)})};return r.disabled&&(o=(0,c.Ry)()),{...o,role:"button",...r}},[m]),eA=(0,a.useMemo)(()=>({focusInput(){if(r!==O.ComboBox)throw Error(`The input element cannot be focused for this type of dropdown: ${r}`);W.input.current&&W.input.current.focus()},focusToggleButton(){W.toggleButton.current&&W.toggleButton.current.focus()},focusMenu(){W.menu.current&&W.menu.current.focus()},focusMenuItem(e){var t;W.items.current[e]&&(null==(t=W.items.current[e])||t.focus())}}),[W.input,W.items,W.menu,W.toggleButton,r]),e_=function({getItemId:e=R,multiple:t},n){return{addItems:r=>U(n.selectedItems,r,e,t),addItem:r=>U(n.selectedItems,[r],e,t),removeItems:t=>Z(n.selectedItems,t,e),removeItem:t=>Z(n.selectedItems,[t],e),toggleItems:t=>Z(n.selectedItems,t,e),toggleItem:t=>Z(n.selectedItems,[t],e)}}(e,p);return{highlightedIndexes:v,highlightedGroupEndIndex:b,highlightedGroupStartIndex:y,selectedItems:x,hoveredIndex:w,inputValue:E,isOpen:A,jumpText:z,...e_,mostRecentHighlightedIndex:es,itemHighlightedAtIndex:eu,indexIsHovered:ec,itemIsHovered:ed,indexIsSelected:eg,itemIsSelected:eb,indexOfItem:ey,dispatch:h,clearSelection:m.clearSelection,selectItems:m.selectItems,selectItem:m.selectItem,clearHighlighted:m.clearHighlighted,inputValueChange:m.inputValueChange,removeSelectedItem:m.removeSelectedItem,removeSelectedItems:m.removeSelectedItems,setHoverItemIndex:m.setHoverItemIndex,toggleMenu:m.toggleMenu,closeMenu:m.closeMenu,openMenu:m.openMenu,setHighlightedIndexes:m.setHighlightedIndexes,setHighlightedIndex:m.setHighlightedIndex,reset:m.reset,setState:m.setState,clearInputValue:m.clearInputValue,clearJumpText:m.clearJumpText,getMenuProps:eE,getComboBoxProps:ex,getToggleButtonProps:ek,getItemProps:eC,getInputProps:ew,getRemoveButtonProps:eO,getLabelProps:eM,getIgnoredElementProps:eS,...eA}};function ev(e){(0,a.useEffect)(e,[])}var eb=n(38756),ey=n(50697),ex=n(31055),ew=n(41466),eE=n(10501);function ek({direction:e,matchLength:t,previousIndex:n}){return"next"===e?n+1>t-1?0:n+1:n-1<0?t-1:n-1}function eC(e,t){(0,i.zf)(o.Q,e,t)}function eS(e={}){let{ignoredElements:t=[],blurOnInactive:n=!1}=e,{view:r,commands:o}=(0,i.rj)(),[l,u]=(0,a.useState)(()=>r.hasFocus());return eC("blur",(0,a.useCallback)(e=>{let o=(0,s.jd)(e.target)?e.target:document.activeElement;if(!n&&!o||r.dom.contains(o))return!1;for(let i of t)if(null==i?void 0:i.contains(o))return!1;return u(!1),!1},[n,t,r.dom])),eC("focus",(0,a.useCallback)(e=>!l&&(u(!0),!1),[l])),[l,o.focus]}function eM(e,t,n=eb.xV.Medium){let r=(0,a.useMemo)(()=>[n,{[e]:t}],[n,e,t]);(0,i.T6)(ey.orf,"keymap",r)}function eO(e,t=eb.xV.Medium){let n=(0,a.useMemo)(()=>[t,e],[t,e]);(0,i.T6)(ey.orf,"keymap",n)}var eA=["Escape","Tab","Shift-Tab"],e_=["Enter"];function eT(e){let{ignoreMatchesOnDismiss:t=!0,items:n,direction:r,dismissKeys:o,focusOnClick:l,submitKeys:s}=e,[u,c]=(0,a.useState)(null),d=(0,i.z8)(),p=(0,a.useCallback)(()=>{if(!u)return!1;let{range:e,name:n}=u;return t&&d.getSuggestMethods().addIgnored({from:e.from,name:n,specific:!0}),c(null),!0},[d,t,u]),h=(0,a.useCallback)(e=>!!u&&(u.command(e),!0),[u]),f=function(e){let{items:t,direction:n="vertical",isOpen:r,onDismiss:o,onSubmit:l,focusOnClick:s=!0,dismissKeys:u=eA,submitKeys:c=e_}=e,[d,p]=(0,a.useState)(0),{focus:h}=(0,i.xd)(),f="vertical"===n?"ArrowDown":"ArrowRight",m="vertical"===n?"ArrowUp":"ArrowLeft",{getMenuProps:g,getItemProps:v,hoveredIndex:b,itemIsSelected:y,indexIsSelected:x,indexIsHovered:w,itemIsHovered:E}=eg({items:t,isOpen:r,highlightedIndexes:0<=d&&d<t.length?[d]:[],type:O.ControlledMenu}),k=(0,a.useCallback)(()=>!!r&&(0!==d&&p(0),!0),[d,r]),C=(0,a.useCallback)(()=>!!r&&(d===t.length-1&&p(t.length-1),!0),[t,d,r]),S=(0,a.useCallback)(()=>!!r&&(p(ek({direction:"next",matchLength:t.length,previousIndex:d})),!0),[t,d,r]),M=(0,a.useCallback)(()=>!!r&&(p(ek({direction:"previous",matchLength:t.length,previousIndex:d})),!0),[t,d,r]),A=(0,a.useCallback)(()=>{let e=t[d];return!!r&&!!e&&l(e,"keyPress")},[d,r,t,l]),_=(0,a.useCallback)(()=>!!r&&o(),[r,o]),T=(0,a.useCallback)(e=>({...v({...e,onClick(t){var n;null==(n=e.onClick)||n.call(e,t),l(e.item,"click"),s&&h()}})}),[v,l,h,s]),R=(0,a.useMemo)(()=>{let e={};for(let t of c)e[t]=A;return e},[A,c]),z=(0,a.useMemo)(()=>{let e={};for(let t of u)e[t]=_;return e},[_,u]);return eM(f,S),eM(m,M),eM("Home",k),eM(`Cmd-${f}`,k),eM("End",S),eM(`Cmd-${m}`,C),eO(R),eO(z),(0,a.useMemo)(()=>({getMenuProps:g,getItemProps:T,hoveredIndex:b,indexIsSelected:x,itemIsSelected:y,indexIsHovered:w,itemIsHovered:E,index:d,setIndex:p}),[T,g,b,w,x,E,y,d])}({items:n,isOpen:!!u,onDismiss:p,onSubmit:h,direction:r,dismissKeys:o,focusOnClick:l,submitKeys:s}),{setIndex:m}=f,g=(0,a.useCallback)((e,t)=>{let{query:n,range:r,name:o,exitReason:i,changeReason:a,text:l}=e;if(i){c(null);return}a&&(a!==ew.$Y.Move&&m(0),c({query:n,range:r,name:o,reason:a,text:l,command(e){t(e),c(null)}}))},[m]);return(0,i.zf)(ex.D,"onChange",g),(0,a.useMemo)(()=>({...f,state:u}),[f,u])}var eR="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;function ez(e,t){let n=null==t||(0,c.jn)(t)?[e]:t,r=!(0,c.jn)(t)||t,o=(0,a.useRef)((0,c.EL)()),l=function(e,t){let[n,r]=(0,a.useState)([]),[o,l]=(0,a.useState)(()=>(0,eE.$7)(e)),[s,u]=(0,a.useState)([]),d=(0,a.useRef)(e),p=function(e){let t=(0,a.useRef)();return eR(()=>{t.current=e}),t.current}(o);return d.current=e,(0,i.Ml)(eE.xv,({addCustomHandler:e})=>{let t=(0,eE.$7)(d.current),n=e("positioner",t);return l(t),n},t),(0,a.useLayoutEffect)(()=>{let e=o.addListener("update",e=>{let t=[];for(let{id:n,data:r,setElement:o}of e){let i=e=>{e&&o(e)};t.push({id:n,data:r,ref:i})}u(t)}),t=o.addListener("done",e=>{r(e)});return(null==p?void 0:p.recentUpdate)&&o.onActiveChanged(null==p?void 0:p.recentUpdate),()=>{e(),t()}},[o,p]),(0,a.useMemo)(()=>{let e=[];for(let[t,{ref:r,data:o,id:i}]of s.entries()){let a=n[t],{element:l,position:u={}}=a??{},d={...eE.oI,...(0,c.Yc)(u)};e.push({ref:r,element:l,data:o,key:i,...d})}return e},[s,n])}(e,n),s=l[0];return(0,a.useMemo)(()=>s&&r?{...s,active:!0}:{...eE.oI,ref:void 0,data:{},active:!1,key:o.current},[r,s])}},21251:function(e,t,n){"use strict";function r(e,t,n){return Math.min(Math.max(e,n),t)}n.d(t,{kd:function(){return x},X5:function(){return w},uV:function(){return E},Jl:function(){return k},MQ:function(){return C},T4:function(){return S},_x:function(){return M},bu:function(){return O},UV:function(){return A},y2:function(){return T}});var o=class extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}};function i(e){if("string"!=typeof e)throw new o(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=h.test(e)?function(e){let t=e.toLowerCase().trim(),n=l[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(t)];if(!n)throw new o(e);return`#${n}`}(e):e;let n=u.exec(t);if(n){let i=Array.from(n).slice(1);return[...i.slice(0,3).map(e=>parseInt(s(e,2),16)),parseInt(s(i[3]||"f",2),16)/255]}let a=c.exec(t);if(a){let f=Array.from(a).slice(1);return[...f.slice(0,3).map(e=>parseInt(e,16)),parseInt(f[3]||"ff",16)/255]}let g=d.exec(t);if(g){let v=Array.from(g).slice(1);return[...v.slice(0,3).map(e=>parseInt(e,10)),parseFloat(v[3]||"1")]}let b=p.exec(t);if(b){let[y,x,w,E]=Array.from(b).slice(1).map(parseFloat);if(r(0,100,x)!==x||r(0,100,w)!==w)throw new o(e);return[...m(y,x,w),Number.isNaN(E)?1:E]}throw new o(e)}let a=e=>parseInt(e.replace(/_/g,""),36),l="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{let n=a(t.substring(0,3)),r=a(t.substring(3)).toString(16),o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{}),s=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),u=RegExp(`^#${s("([a-f0-9])",3)}([a-f0-9])?$`,"i"),c=RegExp(`^#${s("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),d=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${s(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),p=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,h=/^[a-z]+$/i,f=e=>Math.round(255*e),m=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(f);let o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),a=i*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(l=a,u=i):o>=5&&o<6&&(l=i,u=a);let c=r-i/2,d=l+c,p=s+c,h=u+c;return[d,p,h].map(f)};function g(e,t){var n,o,a,l;let[s,u,c,d]=function(e){let[t,n,r,o]=i(e).map((e,t)=>3===t?e:e/255),a=Math.max(t,n,r),l=Math.min(t,n,r),s=(a+l)/2;if(a===l)return[0,0,s,o];let u=a-l;return[60*(t===a?(n-r)/u+(n<r?6:0):n===a?(r-t)/u+2:(t-n)/u+4),s>.5?u/(2-a-l):u/(a+l),s,o]}(e);return`hsla(${(s%360).toFixed()}, ${r(0,100,100*u).toFixed()}%, ${r(0,100,100*(c-t)).toFixed()}%, ${parseFloat(r(0,1,d).toFixed(3))})`}function v(e,t){return g(e,-t)}function b(e,t){var n,o,a,l;let[s,u,c,d]=i(e);return`rgba(${r(0,255,s).toFixed()}, ${r(0,255,u).toFixed()}, ${r(0,255,c).toFixed()}, ${parseFloat(r(0,1,d-t).toFixed(3))})`}function y(e){var t;return function(e){if("transparent"===e)return 0;function t(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}let[n,r,o]=i(e);return .2126*t(n)+.7152*t(r)+.0722*t(o)}(e)>.179?"#000":"#fff"}var x=Object.freeze({__proto__:null,EDITOR_WRAPPER:"remirror-editor-wrapper",BUTTON_ACTIVE:"remirror-button-active",BUTTON:"remirror-button",COMPOSITE:"remirror-composite",DIALOG:"remirror-dialog",DIALOG_BACKDROP:"remirror-dialog-backdrop",FORM:"remirror-form",FORM_MESSAGE:"remirror-form-message",FORM_LABEL:"remirror-form-label",FORM_GROUP:"remirror-form-group",GROUP:"remirror-group",INPUT:"remirror-input",MENU:"remirror-menu",MENU_PANE:"remirror-menu-pane",MENU_PANE_ACTIVE:"remirror-menu-pane-active",MENU_DROPDOWN_LABEL:"remirror-menu-dropdown-label",MENU_PANE_ICON:"remirror-menu-pane-icon",MENU_PANE_LABEL:"remirror-menu-pane-label",MENU_PANE_SHORTCUT:"remirror-menu-pane-shortcut",MENU_BUTTON_LEFT:"remirror-menu-button-left",MENU_BUTTON_RIGHT:"remirror-menu-button-right",MENU_BUTTON_NESTED_LEFT:"remirror-menu-button-nested-left",MENU_BUTTON_NESTED_RIGHT:"remirror-menu-button-nested-right",MENU_BUTTON:"remirror-menu-button",MENU_BAR:"remirror-menu-bar",FLEX_COLUMN:"remirror-flex-column",FLEX_ROW:"remirror-flex-row",MENU_ITEM:"remirror-menu-item",MENU_ITEM_ROW:"remirror-menu-item-row",MENU_ITEM_COLUMN:"remirror-menu-item-column",MENU_ITEM_CHECKBOX:"remirror-menu-item-checkbox",MENU_ITEM_RADIO:"remirror-menu-item-radio",MENU_GROUP:"remirror-menu-group",FLOATING_POPOVER:"remirror-floating-popover",POPOVER:"remirror-popover",ANIMATED_POPOVER:"remirror-animated-popover",ROLE:"remirror-role",SEPARATOR:"remirror-separator",TAB:"remirror-tab",TAB_LIST:"remirror-tab-list",TABBABLE:"remirror-tabbable",TOOLBAR:"remirror-toolbar",TOOLTIP:"remirror-tooltip",TABLE_SIZE_EDITOR:"remirror-table-size-editor",TABLE_SIZE_EDITOR_BODY:"remirror-table-size-editor-body",TABLE_SIZE_EDITOR_CELL:"remirror-table-size-editor-cell",TABLE_SIZE_EDITOR_CELL_SELECTED:"remirror-table-size-editor-cell-selected",TABLE_SIZE_EDITOR_FOOTER:"remirror-table-size-editor-footer",COLOR_PICKER:"remirror-color-picker",COLOR_PICKER_CELL:"remirror-color-picker-cell",COLOR_PICKER_CELL_SELECTED:"remirror-color-picker-cell-selected"}),w=Object.freeze({__proto__:null,CALLOUT_EMOJI_WRAPPER:"remirror-callout-emoji-wrapper",EDITOR:"remirror-editor"}),E=Object.freeze({__proto__:null,WRAP:"remirror-wrap",A11Y_DARK:"remirror-a11y-dark",ATOM_DARK:"remirror-atom-dark",BASE16_ATELIERSULPHURPOOL_LIGHT:"remirror-base16-ateliersulphurpool-light",CB:"remirror-cb",DARCULA:"remirror-darcula",DRACULA:"remirror-dracula",DUOTONE_DARK:"remirror-duotone-dark",DUOTONE_EARTH:"remirror-duotone-earth",DUOTONE_FOREST:"remirror-duotone-forest",DUOTONE_LIGHT:"remirror-duotone-light",DUOTONE_SEA:"remirror-duotone-sea",DUOTONE_SPACE:"remirror-duotone-space",GH_COLORS:"remirror-gh-colors",HOPSCOTCH:"remirror-hopscotch",POJOAQUE:"remirror-pojoaque",VS:"remirror-vs",XONOKAI:"remirror-xonokai"}),k=Object.freeze({__proto__:null,IMAGE_LOADER:"remirror-image-loader"}),C=Object.freeze({__proto__:null,LIST_ITEM_WITH_CUSTOM_MARKER:"remirror-list-item-with-custom-mark",UL_LIST_CONTENT:"remirror-ul-list-content",EDITOR:"remirror-editor",LIST_ITEM_MARKER_CONTAINER:"remirror-list-item-marker-container",LIST_ITEM_CHECKBOX:"remirror-list-item-checkbox",COLLAPSIBLE_LIST_ITEM_CLOSED:"remirror-collapsible-list-item-closed",COLLAPSIBLE_LIST_ITEM_BUTTON:"remirror-collapsible-list-item-button",LIST_SPINE:"remirror-list-spine"}),S=Object.freeze({__proto__:null,MENTION_ATOM:"remirror-mention-atom",SUGGEST_ATOM:"remirror-suggest-atom",MENTION_ATOM_POPUP_ITEM:"remirror-mention-atom-popup-item",MENTION_ATOM_POPUP_HOVERED:"remirror-mention-atom-popup-hovered",MENTION_ATOM_POPUP_HIGHLIGHT:"remirror-mention-atom-popup-highlight",MENTION_ATOM_POPUP_WRAPPER:"remirror-mention-atom-popup-wrapper",MENTION_ATOM_POPUP_NAME:"remirror-mention-atom-popup-name",MENTION_ATOM_ZERO_ITEMS:"remirror-mention-atom-zero-items",MENTION_ATOM_POPUP_CHAR:"remirror-mention-atom-popup-char"}),M=Object.freeze({__proto__:null,IS_EMPTY:"remirror-is-empty"}),O=Object.freeze({__proto__:null,EDITOR:"remirror-editor",POSITIONER:"remirror-positioner",POSITIONER_WIDGET:"remirror-positioner-widget"}),A=Object.freeze({__proto__:null,COLUMN_RESIZE_HANDLE:"column-resize-handle",SELECTED_CELL:"selectedCell",EDITOR:"remirror-editor",TABLE:"remirror-table",TABLE_SHOW_CONTROLLERS:"remirror-table-show-controllers",TABLE_CONTROLLER:"remirror-table-controller",TABLE_CONTROLLER_WRAPPER:"remirror-table-controller-wrapper",TABLE_CONTROLLER_TRIGGER_AREA:"remirror-table-controller-trigger-area",TABLE_CONTROLLER_MARK_ROW_CORNER:"remirror-table-controller-mark-row-corner",TABLE_CONTROLLER_MARK_COLUMN_CORNER:"remirror-table-controller-mark-column-corner",TABLE_COLGROUP:"remirror-table-colgroup",CONTROLLERS_TOGGLE:"remirror-controllers-toggle",TABLE_INSERT_BUTTON:"remirror-table-insert-button",TABLE_DELETE_INNER_BUTTON:"remirror-table-delete-inner-button",TABLE_DELETE_TABLE_INNER_BUTTON:"remirror-table-delete-table-inner-button",TABLE_DELETE_ROW_COLUMN_INNER_BUTTON:"remirror-table-delete-row-column-inner-button",TABLE_WITH_CONTROLLERS:"remirror-table-with-controllers",TABLE_WAITTING_CONTROLLERS:"remirror-table-waitting-controllers",TABLE_TBODY_WITH_CONTROLLERS:"remirror-table-tbody-with-controllers",TABLE_PRESELECT_ALL:"remirror-table-preselect-all",TABLE_SHOW_PREDELETE:"remirror-table-show-predelete"});function _(e){return e.replace(/([a-z])([\dA-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function T(...e){var t,n;return`var(--rmr-${(t=e.map(e=>e.toString())).map(_).join("-")})`}let R={gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},z="#000000",L="#ffffff",I=b(z,.75),H="#7963d2",N="#bcd263",P=R.gray[1],D=v(b(z,.1),.13),j={background:L,border:I,foreground:z,muted:P,primary:H,secondary:N,primaryText:"#fff",secondaryText:"#fff",text:"#252103",faded:D};g(L,.15),g(I,.15),g(z,.15),g(P,.15),g(H,.15),g(N,.15),g(L,.075),g(I,.075),g(z,.075),g(P,.075),g(H,.075),g(N,.075),b(z,.1),b(H,.6),v(z,.8),v(z,.4),R.gray[3],R.blue[7],R.blue[1],R.blue[5],R.blue[7],v(z,.4),R.blue[5],R.red[7],R.red[1],R.red[5]},42838:function(e,t,n){"use strict";function r(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}n.d(t,{Z:function(){return r}})},68875:function(e,t,n){"use strict";function r(e){throw e}n.d(t,{Z:function(){return r}})},27343:function(e,t,n){"use strict";n.d(t,{GL:function(){return l},Ho:function(){return a}});let r=/^[a-zà-öø-ÿ]+|[A-ZÀ-ÖØ-ß][a-zà-öø-ÿ]+|[a-zà-öø-ÿ]+|[0-9]+|[A-ZÀ-ÖØ-ß]+(?![a-zà-öø-ÿ])/g,o=/\S+/g;function i(e,t){let{keepSpecialCharacters:n=!1,keep:i,prefix:a=""}=t||{},l=e.trim().normalize("NFC"),s=l.includes(" "),u=function(e,t){let n={parts:[],prefixes:[]},r=e.matchAll(t),o=0;for(let i of r){if("number"!=typeof i.index)continue;let a=i[0];n.parts.push(a);let l=e.slice(o,i.index).trim();n.prefixes.push(l),o=i.index+a.length}let s=e.slice(o).trim();return s&&(n.parts.push(""),n.prefixes.push(s)),n}(l,s?o:r);return u.parts.map((e,t)=>{let r=u.prefixes[t]||"",o=e;return(!1!==n||(i&&(o=o.normalize("NFD").replace(RegExp(`[^a-zA-Z\xd8\xdf\xf80-9${i.join("")}]`,"g"),"")),i||(o=o.normalize("NFD").replace(/[^a-zA-ZØßø0-9]/g,""),r="")),i&&(r=r.replace(RegExp(`[^${i.join("")}]`,"g"),"")),0===t)?r+o:r||o?s&&!r&&a.match(/\s/)?" "+o:(r||a)+o:""}).filter(Boolean)}function a(e,t){return i(e,t).reduce((e,t)=>e+function(e){var t;let n=(null===(t=e.matchAll(r).next().value)||void 0===t?void 0:t.index)||0;return e.slice(0,n+1).toUpperCase()+e.slice(n+1).toLowerCase()}(t),"")}function l(e,t){return i(e,{...t,prefix:"-"}).join("").toLowerCase()}},92141:function(e,t,n){"use strict";n.d(t,{mY:function(){return ty}});var r,o=n(7896),i=n(2784),a=n.t(i,2);function l(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function s(...e){return t=>e.forEach(e=>{var n,r;"function"==typeof(n=e)?n(t):null!=n&&(n.current=t)})}function u(...e){return(0,i.useCallback)(s(...e),e)}let c=Boolean(null==globalThis?void 0:globalThis.document)?i.useLayoutEffect:()=>{},d=a["useId".toString()]||(()=>void 0),p=0;function h(e){let[t,n]=i.useState(d());return c(()=>{e||n(e=>null!=e?e:String(p++))},[e]),e||(t?`radix-${t}`:"")}function f(e){let t=(0,i.useRef)(e);return(0,i.useEffect)(()=>{t.current=e}),(0,i.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}var m=n(28316);let g=(0,i.forwardRef)((e,t)=>{let{children:n,...r}=e,a=i.Children.toArray(n),l=a.find(y);if(l){let s=l.props.children,u=a.map(e=>e!==l?e:i.Children.count(s)>1?i.Children.only(null):(0,i.isValidElement)(s)?s.props.children:null);return(0,i.createElement)(v,(0,o.Z)({},r,{ref:t}),(0,i.isValidElement)(s)?(0,i.cloneElement)(s,void 0,u):null)}return(0,i.createElement)(v,(0,o.Z)({},r,{ref:t}),n)});g.displayName="Slot";let v=(0,i.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r],a=/^on[A-Z]/.test(r);a?n[r]=(...e)=>{null==i||i(...e),null==o||o(...e)}:"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:s(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});v.displayName="SlotClone";let b=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function y(e){return(0,i.isValidElement)(e)&&e.type===b}let x=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,i.forwardRef)((e,n)=>{let{asChild:r,...a}=e,l=r?g:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(l,(0,o.Z)({},a,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),w="dismissableLayer.update",E,k=(0,i.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),C=(0,i.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:c,onDismiss:d,...p}=e,h=(0,i.useContext)(k),[m,g]=(0,i.useState)(null),[,v]=(0,i.useState)({}),b=u(t,e=>g(e)),y=Array.from(h.layers),[C]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),O=y.indexOf(C),A=m?y.indexOf(m):-1,_=h.layersWithOutsidePointerEventsDisabled.size>0,T=A>=O,R=function(e){let t=f(e),n=(0,i.useRef)(!1),r=(0,i.useRef)(()=>{});return(0,i.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let o={originalEvent:e};function i(){M("dismissableLayer.pointerDownOutside",t,o,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",r.current),r.current=i,document.addEventListener("click",r.current,{once:!0})):i()}n.current=!1},o=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),document.removeEventListener("pointerdown",e),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,n=[...h.branches].some(e=>e.contains(t));!T||n||(null==a||a(e),null==c||c(e),e.defaultPrevented||null==d||d())}),z=function(e){let t=f(e),n=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{let e=e=>{e.target&&!n.current&&M("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,n=[...h.branches].some(e=>e.contains(t));n||(null==s||s(e),null==c||c(e),e.defaultPrevented||null==d||d())});return!function(e){let t=f(e);(0,i.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=A===h.layers.size-1;t&&(null==r||r(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))}),(0,i.useEffect)(()=>{if(m)return n&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(E=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),S(),()=>{n&&1===h.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=E)}},[m,n,h]),(0,i.useEffect)(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),S())},[m,h]),(0,i.useEffect)(()=>{let e=()=>v({});return document.addEventListener(w,e),()=>document.removeEventListener(w,e)},[]),(0,i.createElement)(x.div,(0,o.Z)({},p,{ref:b,style:{pointerEvents:_?T?"auto":"none":void 0,...e.style},onFocusCapture:l(e.onFocusCapture,z.onFocusCapture),onBlurCapture:l(e.onBlurCapture,z.onBlurCapture),onPointerDownCapture:l(e.onPointerDownCapture,R.onPointerDownCapture)}))});function S(){let e=new CustomEvent(w);document.dispatchEvent(e)}function M(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&o.addEventListener(e,t,{once:!0}),r){var a,l;o&&(0,m.flushSync)(()=>o.dispatchEvent(i))}else o.dispatchEvent(i)}let O="focusScope.autoFocusOnMount",A="focusScope.autoFocusOnUnmount",_={bubbles:!1,cancelable:!0},T=(0,i.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:l,...s}=e,[c,d]=(0,i.useState)(null),p=f(a),h=f(l),m=(0,i.useRef)(null),g=u(t,e=>d(e)),v=(0,i.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,i.useEffect)(()=>{if(r){function e(e){if(v.paused||!c)return;let t=e.target;c.contains(t)?m.current=t:I(m.current,{select:!0})}function t(e){v.paused||!c||c.contains(e.relatedTarget)||I(m.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,c,v.paused]),(0,i.useEffect)(()=>{if(c){N.add(v);let e=document.activeElement,t=c.contains(e);if(!t){var n;let r=new CustomEvent(O,_);c.addEventListener(O,p),c.dispatchEvent(r),r.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(I(r,{select:t}),document.activeElement!==n)return}((n=R(c),n.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&I(c))}return()=>{c.removeEventListener(O,p),setTimeout(()=>{let t=new CustomEvent(A,_);c.addEventListener(A,h),c.dispatchEvent(t),t.defaultPrevented||I(null!=e?e:document.body,{select:!0}),c.removeEventListener(A,h),N.remove(v)},0)}}},[c,p,h,v]);let b=(0,i.useCallback)(e=>{if(!n&&!r||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let i=e.currentTarget,[a,l]=function(e){let t=R(e),n=z(t,e),r=z(t.reverse(),e);return[n,r]}(i);a&&l?e.shiftKey||o!==l?e.shiftKey&&o===a&&(e.preventDefault(),n&&I(l,{select:!0})):(e.preventDefault(),n&&I(a,{select:!0})):o===i&&e.preventDefault()}},[n,r,v.paused]);return(0,i.createElement)(x.div,(0,o.Z)({tabIndex:-1},s,{ref:g,onKeyDown:b}))});function R(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function z(e,t){for(let n of e)if(!L(n,{upTo:t}))return n}function L(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function I(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&e instanceof HTMLInputElement&&"select"in e&&t&&e.select()}}let H,N=(H=[],{add(e){let t=H[0];e!==t&&(null==t||t.pause()),(H=P(H,e)).unshift(e)},remove(e){var t;null===(t=(H=P(H,e))[0])||void 0===t||t.resume()}});function P(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}let D=(0,i.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...a}=e;return r?m.createPortal((0,i.createElement)(x.div,(0,o.Z)({},a,{ref:t})),r):null}),j=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,o]=(0,i.useState)(),a=(0,i.useRef)({}),l=(0,i.useRef)(e),s=(0,i.useRef)("none"),[u,d]=(n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,i.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},e?"mounted":"unmounted"));return(0,i.useEffect)(()=>{let e=B(a.current);s.current="mounted"===u?e:"none"},[u]),c(()=>{let t=a.current,n=l.current;if(n!==e){let r=s.current,o=B(t);e?d("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&r!==o?d("ANIMATION_OUT"):d("UNMOUNT"),l.current=e}},[e,d]),c(()=>{if(r){let e=e=>{let t=B(a.current),n=t.includes(e.animationName);e.target===r&&n&&(0,m.flushSync)(()=>d("ANIMATION_END"))},t=e=>{e.target===r&&(s.current=B(a.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:(0,i.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),o(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):i.Children.only(n),a=u(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,i.cloneElement)(o,{ref:a}):null};function B(e){return(null==e?void 0:e.animationName)||"none"}j.displayName="Presence";let F=0;function V(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var $=n(5163),W="right-scroll-bar-position",U="width-before-scroll-bar";function Z(e){return e}var G,K,Y,q,X,J=(void 0===G&&(G={}),void 0===K&&(K=Z),Y=[],q=!1,(X={read:function(){if(q)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return Y.length?Y[Y.length-1]:null},useMedium:function(e){var t=K(e,q);return Y.push(t),function(){Y=Y.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(q=!0;Y.length;){var t=Y;Y=[],t.forEach(e)}Y={push:function(t){return e(t)},filter:function(){return Y}}},assignMedium:function(e){q=!0;var t=[];if(Y.length){var n=Y;Y=[],n.forEach(e),t=Y}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),Y={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),Y}}}}).options=(0,$.__assign)({async:!0,ssr:!1},G),X),Q=function(){},ee=i.forwardRef(function(e,t){var n,r,o,a,l=i.useRef(null),s=i.useState({onScrollCapture:Q,onWheelCapture:Q,onTouchMoveCapture:Q}),u=s[0],c=s[1],d=e.forwardProps,p=e.children,h=e.className,f=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,b=e.noIsolation,y=e.inert,x=e.allowPinchZoom,w=e.as,E=(0,$.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),k=(n=[l,t],o=function(e){return n.forEach(function(t){var n,r;return"function"==typeof(n=t)?n(e):n&&(n.current=e),n})},(a=(0,i.useState)(function(){return{value:null,callback:o,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=o,a.facade),C=(0,$.__assign)((0,$.__assign)({},E),u);return i.createElement(i.Fragment,null,m&&i.createElement(v,{sideCar:J,removeScrollBar:f,shards:g,noIsolation:b,inert:y,setCallbacks:c,allowPinchZoom:!!x,lockRef:l}),d?i.cloneElement(i.Children.only(p),(0,$.__assign)((0,$.__assign)({},C),{ref:k})):i.createElement(void 0===w?"div":w,(0,$.__assign)({},C,{className:h,ref:k}),p))});ee.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ee.classNames={fullWidth:U,zeroRight:W};var et=function(e){var t=e.sideCar,n=(0,$.__rest)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return i.createElement(r,(0,$.__assign)({},n))};et.isSideCarExport=!0;var en=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a,l;(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},er=function(){var e=en();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},eo=function(){var e=er();return function(t){var n;return e(t.styles,t.dynamic),null}},ei={left:0,top:0,right:0,gap:0},ea=function(e){return parseInt(e||"",10)||0},el=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ea(n),ea(r),ea(o)]},es=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return ei;var t=el(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},eu=eo(),ec=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(l,"px ").concat(r,";\n  }\n  body {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(l,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";"),].filter(Boolean).join(""),"\n  }\n  \n  .").concat(W," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(U," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(W," .").concat(W," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(U," .").concat(U," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},ed=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,a=i.useMemo(function(){return es(o)},[o]);return i.createElement(eu,{styles:ec(a,!t,o,n?"":"!important")})},ep=!1;if("undefined"!=typeof window)try{var eh=Object.defineProperty({},"passive",{get:function(){return ep=!0,!0}});window.addEventListener("test",eh,eh),window.removeEventListener("test",eh,eh)}catch(ef){ep=!1}var em,eg,ev=!!ep&&{passive:!1},eb=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},ey=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},ex=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),ek(e,n)){var r,o=eC(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ew=function(e){var t,n=e.scrollTop;return[n,e.scrollHeight,e.clientHeight,]},eE=function(e){var t,n=e.scrollLeft;return[n,e.scrollWidth,e.clientWidth,]},ek=function(e,t){return"v"===e?eb(t):ey(t)},eC=function(e,t){return"v"===e?ew(t):eE(t)},eS=function(e,t,n,r,o){var i,a,l=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=l*r,u=n.target,c=t.contains(u),d=!1,p=s>0,h=0,f=0;do{var m,g=eC(e,u),v=g[0],b=g[1]-g[2]-l*v;(v||b)&&ek(e,u)&&(h+=b,f+=v),u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return p&&(o&&0===h||!o&&s>h)?d=!0:!p&&(o&&0===f||!o&&-s>f)&&(d=!0),d},eM=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eO=function(e){return[e.deltaX,e.deltaY]},eA=function(e){return e&&"current"in e?e.current:e},e_=0,eT=[],eR=(eg=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(e_++)[0],a=i.useState(function(){return eo()})[0],l=i.useRef(e);i.useEffect(function(){l.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,$.__spreadArray)([e.lockRef.current],(e.shards||[]).map(eA),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var o,i=eM(e),a=n.current,s="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var p=ex(d,c);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=ex(d,c)),!p)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var h=r.current||o;return eS(h,t,e,"h"===h?s:u,!0)},[]),u=i.useCallback(function(e){if(eT.length&&eT[eT.length-1]===a){var n="deltaY"in e?eO(e):eM(e),r=t.current.filter(function(t){var r,o;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(eA).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!l.current.noIsolation)&&e.preventDefault()}}},[]),c=i.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=i.useCallback(function(e){n.current=eM(e),r.current=void 0},[]),p=i.useCallback(function(t){c(t.type,eO(t),t.target,s(t,e.lockRef.current))},[]),h=i.useCallback(function(t){c(t.type,eM(t),t.target,s(t,e.lockRef.current))},[]);i.useEffect(function(){return eT.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",u,ev),document.addEventListener("touchmove",u,ev),document.addEventListener("touchstart",d,ev),function(){eT=eT.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,ev),document.removeEventListener("touchmove",u,ev),document.removeEventListener("touchstart",d,ev)}},[]);var f,m=e.removeScrollBar,g=e.inert;return i.createElement(i.Fragment,null,g?i.createElement(a,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?i.createElement(ed,{gapMode:"margin"}):null)},J.useMedium(eg),et),ez=i.forwardRef(function(e,t){return i.createElement(ee,(0,$.__assign)({},e,{ref:t,sideCar:eR}))});ez.classNames=ee.classNames;var eL=new WeakMap,eI=new WeakMap,eH={},eN=0,eP=function(e){return e&&(e.host||eP(e.parentNode))},eD=function(e,t,n,r){var o,i,a=(i=Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=eP(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return Boolean(e)});eH[n]||(eH[n]=new WeakMap);var l=eH[n],s=[],u=new Set,c=new Set(a),d=function(e){!(!e||u.has(e))&&(u.add(e),d(e.parentNode))};a.forEach(d);var p=function(e){!(!e||c.has(e))&&Array.prototype.forEach.call(e.children,function(e){if(u.has(e))p(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,i=(eL.get(e)||0)+1,a=(l.get(e)||0)+1;eL.set(e,i),l.set(e,a),s.push(e),1===i&&o&&eI.set(e,!0),1===a&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}})};return p(t),u.clear(),eN++,function(){s.forEach(function(e){var t=eL.get(e)-1,o=l.get(e)-1;eL.set(e,t),l.set(e,o),t||(eI.has(e)||e.removeAttribute(r),eI.delete(e)),o||e.removeAttribute(n)}),--eN||(eL=new WeakMap,eL=new WeakMap,eI=new WeakMap,eH={})}},ej=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r,o=Array.from(Array.isArray(e)?e:[e]),i=t||(r=e,"undefined"==typeof document?null:(0,(Array.isArray(r)?r[0]:r).ownerDocument.body));return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live]"))),eD(o,i,n,"aria-hidden")):function(){return null}};let eB="Dialog",[eF,eV]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,i.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,i.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=(0,i.createContext)(r),a=n.length;function l(t){let{scope:n,children:r,...l}=t,s=(null==n?void 0:n[e][a])||o,u=(0,i.useMemo)(()=>l,Object.values(l));return(0,i.createElement)(s.Provider,{value:u},r)}return n=[...n,r],l.displayName=t+"Provider",[l,function(n,l){let s=(null==l?void 0:l[e][a])||o,u=(0,i.useContext)(s);if(u)return u;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e),i=o[`__scope${r}`];return{...t,...i}},{});return(0,i.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(eB),[e$,eW]=eF(eB),eU=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:l=!0}=e,s=(0,i.useRef)(null),u=(0,i.useRef)(null),[c=!1,d]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=function({defaultProp:e,onChange:t}){let n=(0,i.useState)(e),[r]=n,o=(0,i.useRef)(r),a=f(t);return(0,i.useEffect)(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,l=f(n),s=(0,i.useCallback)(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)},[a,e,o,l]);return[a?e:r,s]}({prop:r,defaultProp:o,onChange:a});return(0,i.createElement)(e$,{scope:t,triggerRef:s,contentRef:u,contentId:h(),titleId:h(),descriptionId:h(),open:c,onOpenChange:d,onOpenToggle:(0,i.useCallback)(()=>d(e=>!e),[d]),modal:l},n)},eZ="DialogPortal",[eG,eK]=eF(eZ,{forceMount:void 0}),eY=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=eW(eZ,t);return(0,i.createElement)(eG,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(j,{present:n||a.open},(0,i.createElement)(D,{asChild:!0,container:o},e))))},eq="DialogOverlay",eX=(0,i.forwardRef)((e,t)=>{let n=eK(eq,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,l=eW(eq,e.__scopeDialog);return l.modal?(0,i.createElement)(j,{present:r||l.open},(0,i.createElement)(eJ,(0,o.Z)({},a,{ref:t}))):null}),eJ=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...r}=e,a=eW(eq,n);return(0,i.createElement)(ez,{as:g,allowPinchZoom:!0,shards:[a.contentRef]},(0,i.createElement)(x.div,(0,o.Z)({"data-state":e3(a.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),eQ="DialogContent",e0=(0,i.forwardRef)((e,t)=>{let n=eK(eQ,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,l=eW(eQ,e.__scopeDialog);return(0,i.createElement)(j,{present:r||l.open},l.modal?(0,i.createElement)(e1,(0,o.Z)({},a,{ref:t})):(0,i.createElement)(e2,(0,o.Z)({},a,{ref:t})))}),e1=(0,i.forwardRef)((e,t)=>{let n=eW(eQ,e.__scopeDialog),r=(0,i.useRef)(null),a=u(t,n.contentRef,r);return(0,i.useEffect)(()=>{let e=r.current;if(e)return ej(e)},[]),(0,i.createElement)(e5,(0,o.Z)({},e,{ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:l(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:l(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:l(e.onFocusOutside,e=>e.preventDefault())}))}),e2=(0,i.forwardRef)((e,t)=>{let n=eW(eQ,e.__scopeDialog),r=(0,i.useRef)(!1);return(0,i.createElement)(e5,(0,o.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus(t){var o,i;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1},onInteractOutside(t){var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);let a=t.target,l=null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a);l&&t.preventDefault()}}))}),e5=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:l,...s}=e,c=eW(eQ,n),d=(0,i.useRef)(null),p=u(t,d);return(0,i.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:V()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:V()),F++,()=>{1===F&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),F--}},[]),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(T,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:l},(0,i.createElement)(C,(0,o.Z)({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":e3(c.open)},s,{ref:p,onDismiss:()=>c.onOpenChange(!1)}))),!1)}),e4="DialogTitle";function e3(e){return e?"open":"closed"}let[e7,e6]=function(e,t){let n=(0,i.createContext)(t);function r(e){let{children:t,...r}=e,o=(0,i.useMemo)(()=>r,Object.values(r));return(0,i.createElement)(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){let o=(0,i.useContext)(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:eQ,titleName:e4,docsSlug:"dialog"});var e8=n(40844),e9='[cmdk-group=""]',te='[cmdk-group-items=""]',tt='[cmdk-item=""]',tn=`${tt}:not([aria-disabled="true"])`,tr="cmdk-item-select",to="data-value",ti=(e,t)=>e8(e,t),ta=i.createContext(void 0),tl=()=>i.useContext(ta),ts=i.createContext(void 0),tu=()=>i.useContext(ts),tc=i.createContext(void 0),td=i.forwardRef((e,t)=>{let n=i.useRef(null),r=tC(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),o=tC(()=>new Set),a=tC(()=>new Map),l=tC(()=>new Map),s=tC(()=>new Set),u=tE(e),{label:c,children:d,value:p,onValueChange:h,filter:f,shouldFilter:m,...g}=e,v=i.useId(),b=i.useId(),y=i.useId(),x=tA();tk(()=>{if(void 0!==p){let e=p.trim().toLowerCase();r.current.value=e,x(6,O),w.emit()}},[p]);let w=i.useMemo(()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>r.current,setState(e,t,n){var o,i,a;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)M(),C(),x(1,S);else if("value"===e){if((null==(o=u.current)?void 0:o.value)!==void 0){null==(a=(i=u.current).onValueChange)||a.call(i,t);return}n||x(5,O)}w.emit()}},emit(){s.current.forEach(e=>e())}}),[]),E=i.useMemo(()=>({value(e,t){t!==l.current.get(e)&&(l.current.set(e,t),r.current.filtered.items.set(e,k(t)),x(2,()=>{C(),w.emit()}))},item:(e,t)=>(o.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),x(3,()=>{M(),C(),r.current.value||S(),w.emit()}),()=>{l.current.delete(e),o.current.delete(e),r.current.filtered.items.delete(e),x(4,()=>{M(),S(),w.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{l.current.delete(e),a.current.delete(e)}),filter:()=>u.current.shouldFilter,label:c||e["aria-label"],listId:v,inputId:y,labelId:b}),[]);function k(e){var t;let n=(null==(t=u.current)?void 0:t.filter)??ti;return e?n(e,r.current.search):0}function C(){if(!n.current||!r.current.search||!1===u.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(n=>{let r=a.current.get(n),o=0;r.forEach(t=>{o=Math.max(e.get(t),o)}),t.push([n,o])});let o=n.current.querySelector('[cmdk-list-sizer=""]');_().sort((t,n)=>{let r=t.getAttribute(to),o=n.getAttribute(to);return(e.get(o)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(te);t?t.appendChild(e.parentElement===t?e:e.closest(`${te} > *`)):o.appendChild(e.parentElement===o?e:e.closest(`${te} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${e9}[${to}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function S(){let e=_().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(to);w.setState("value",t||void 0)}function M(){if(!r.current.search||!1===u.current.shouldFilter){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=l.current.get(t),i=k(n);r.current.filtered.items.set(t,i),i>0&&e++}for(let[s,c]of a.current)for(let d of c)if(r.current.filtered.items.get(d)>0){r.current.filtered.groups.add(s);break}r.current.filtered.count=e}function O(){var e,t,n;let r=A();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(e9))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function A(){return n.current.querySelector(`${tt}[aria-selected="true"]`)}function _(){return Array.from(n.current.querySelectorAll(tn))}function T(e){let t=_()[e];t&&w.setState("value",t.getAttribute(to))}function R(e){var t;let n=A(),r=_(),o=r.findIndex(e=>e===n),i=r[o+e];null!=(t=u.current)&&t.loop&&(i=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),i&&w.setState("value",i.getAttribute(to))}function z(e){let t=A(),n=null==t?void 0:t.closest(e9),r;for(;n&&!r;)r=null==(n=e>0?tx(n,e9):tw(n,e9))?void 0:n.querySelector(tn);r?w.setState("value",r.getAttribute(to)):R(e)}let L=()=>T(_().length-1),I=e=>{e.preventDefault(),e.metaKey?L():e.altKey?z(1):R(1)},H=e=>{e.preventDefault(),e.metaKey?T(0):e.altKey?z(-1):R(-1)};return i.createElement("div",{ref:tS([n,t]),...g,"cmdk-root":"",onKeyDown(e){var t;if(null==(t=g.onKeyDown)||t.call(g,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&I(e);break;case"ArrowDown":I(e);break;case"p":case"k":e.ctrlKey&&H(e);break;case"ArrowUp":H(e);break;case"Home":e.preventDefault(),T(0);break;case"End":e.preventDefault(),L();break;case"Enter":{e.preventDefault();let n=A();if(n){let r=new Event(tr);n.dispatchEvent(r)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:t_},c),i.createElement(ts.Provider,{value:w},i.createElement(ta.Provider,{value:E},d)))}),tp=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),o=i.useContext(tc),a=tl(),l=tE(e);tk(()=>a.item(n,o),[]);let s=tO(n,r,[e.value,e.children,r]),u=tu(),c=tM(e=>e.value&&e.value===s.current),d=tM(e=>!1===a.filter()||!e.search||e.filtered.items.get(n)>0);function p(){var e,t;null==(t=(e=l.current).onSelect)||t.call(e,s.current)}if(i.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(tr,p),()=>t.removeEventListener(tr,p)},[d,e.onSelect,e.disabled]),!d)return null;let{disabled:h,value:f,onSelect:m,...g}=e;return i.createElement("div",{ref:tS([r,t]),...g,"cmdk-item":"",role:"option","aria-disabled":h||void 0,"aria-selected":c||void 0,"data-selected":c||void 0,onPointerMove:h?void 0:function(){u.setState("value",s.current,!0)},onClick:h?void 0:p},e.children)}),th=i.forwardRef((e,t)=>{let{heading:n,children:r,...o}=e,a=i.useId(),l=i.useRef(null),s=i.useRef(null),u=i.useId(),c=tl(),d=tM(e=>!1===c.filter()||!e.search||e.filtered.groups.has(a));tk(()=>c.group(a),[]),tO(a,l,[e.value,e.heading,s]);let p=i.createElement(tc.Provider,{value:a},r);return i.createElement("div",{ref:tS([l,t]),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&i.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},p))}),tf=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),a=tM(e=>!e.search);return n||a?i.createElement("div",{ref:tS([o,t]),...r,"cmdk-separator":"",role:"separator"}):null}),tm=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=tu(),l=tM(e=>e.search),s=tl();return i.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),i.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,id:s.inputId,type:"text",value:o?e.value:l,onChange(e){o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),tg=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.useRef(null),a=i.useRef(null),l=tl();return i.useEffect(()=>{if(a.current&&o.current){let e=a.current,t=o.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.getBoundingClientRect().height;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),i.createElement("div",{ref:tS([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:l.listId,"aria-labelledby":l.inputId},i.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),tv=i.forwardRef((e,t)=>{let{open:n,onOpenChange:r,container:o,...a}=e;return i.createElement(eU,{open:n,onOpenChange:r},i.createElement(eY,{container:o},i.createElement(eX,{"cmdk-overlay":""}),i.createElement(e0,{"aria-label":e.label,"cmdk-dialog":""},i.createElement(td,{ref:t,...a}))))}),tb=i.forwardRef((e,t)=>{let n=i.useRef(!0),r=tM(e=>0===e.filtered.count);return i.useEffect(()=>{n.current=!1},[]),n.current||!r?null:i.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),ty=Object.assign(td,{List:tg,Item:tp,Input:tm,Group:th,Separator:tf,Dialog:tv,Empty:tb,Loading:i.forwardRef((e,t)=>{let{progress:n,children:r,...o}=e;return i.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function tx(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function tw(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function tE(e){let t=i.useRef(e);return tk(()=>{t.current=e}),t}var tk=typeof window>"u"?i.useEffect:i.useLayoutEffect;function tC(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function tS(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function tM(e){let t=tu(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function tO(e,t,n){let r=i.useRef(),o=tl();return tk(()=>{var i;let a=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim().toLowerCase();if("object"==typeof t&&"current"in t&&t.current)return null==(e=t.current.textContent)?void 0:e.trim().toLowerCase()}})();o.value(e,a),null==(i=t.current)||i.setAttribute(to,a),r.current=a}),r}var tA=()=>{let[e,t]=i.useState(),n=tC(()=>new Map);return tk(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}},t_={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},20242:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});let r=()=>({events:{},emit(e,...t){(this.events[e]||[]).forEach(e=>e(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(e=>e!==t)}})},60737:function(e,t,n){"use strict";n.d(t,{N0:function(){return w},QF:function(){return A},YR:function(){return H},al:function(){return s},w9:function(){return O}});var r,o=n(26151),i=n(30764),a=n(27191);let l=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0),s=(e,t,n)=>{let r=function(e,t){let{$cursor:n}=e.selection;return n&&(t?t.endOfTextblock("backward",e):!(n.parentOffset>0))?n:null}(e,n);if(!r)return!1;let l=d(r);if(!l){let s=r.blockRange(),c=s&&(0,o.k9)(s);return null!=c&&(t&&t(e.tr.lift(s,c).scrollIntoView()),!0)}let p=l.nodeBefore;if(!p.type.spec.isolating&&k(e,l,t))return!0;if(0==r.parent.content.size&&(u(p,"end")||a.qv.isSelectable(p))){let h=(0,o.dR)(e.doc,r.before(),r.after(),i.p2.empty);if(h&&h.slice.size<h.to-h.from){if(t){let f=e.tr.step(h);f.setSelection(u(p,"end")?a.Y1.findFrom(f.doc.resolve(f.mapping.map(l.pos,-1)),-1):a.qv.create(f.doc,l.pos-p.nodeSize)),t(f.scrollIntoView())}return!0}}return!!p.isAtom&&l.depth==r.depth-1&&(t&&t(e.tr.delete(l.pos-p.nodeSize,l.pos).scrollIntoView()),!0)};function u(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)break}return!1}let c=(e,t,n)=>{let{$head:r,empty:o}=e.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;i=d(r)}let l=i&&i.nodeBefore;return!!(l&&a.qv.isSelectable(l))&&(t&&t(e.tr.setSelection(a.qv.create(e.doc,i.pos-l.nodeSize)).scrollIntoView()),!0)};function d(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}let p=(e,t,n)=>{let r=function(e,t){let{$cursor:n}=e.selection;return n&&(t?t.endOfTextblock("forward",e):!(n.parentOffset<n.parent.content.size))?n:null}(e,n);if(!r)return!1;let l=f(r);if(!l)return!1;let s=l.nodeAfter;if(k(e,l,t))return!0;if(0==r.parent.content.size&&(u(s,"start")||a.qv.isSelectable(s))){let c=(0,o.dR)(e.doc,r.before(),r.after(),i.p2.empty);if(c&&c.slice.size<c.to-c.from){if(t){let d=e.tr.step(c);d.setSelection(u(s,"start")?a.Y1.findFrom(d.doc.resolve(d.mapping.map(l.pos)),1):a.qv.create(d.doc,d.mapping.map(l.pos))),t(d.scrollIntoView())}return!0}}return!!s.isAtom&&l.depth==r.depth-1&&(t&&t(e.tr.delete(l.pos,l.pos+s.nodeSize).scrollIntoView()),!0)},h=(e,t,n)=>{let{$head:r,empty:o}=e.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;i=f(r)}let l=i&&i.nodeAfter;return!!(l&&a.qv.isSelectable(l))&&(t&&t(e.tr.setSelection(a.qv.create(e.doc,i.pos)).scrollIntoView()),!0)};function f(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}let m=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!!(n.parent.type.spec.code&&n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function g(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}let v=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),i=n.indexAfter(-1),l=g(o.contentMatchAt(i));if(!l||!o.canReplaceWith(i,i,l))return!1;if(t){let s=n.after(),u=e.tr.replaceWith(s,s,l.createAndFill());u.setSelection(a.Y1.near(u.doc.resolve(s),1)),t(u.scrollIntoView())}return!0},b=(e,t)=>{let n=e.selection,{$from:r,$to:o}=n;if(n instanceof a.C1||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=g(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){let l=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,s=e.tr.insert(l,i.createAndFill());s.setSelection(a.Bs.create(s.doc,l+1)),t(s.scrollIntoView())}return!0},y=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if((0,o.Ax)(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let i=n.blockRange(),a=i&&(0,o.k9)(i);return null!=a&&(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},x=(e,t)=>{let{$from:n,$to:i}=e.selection;if(e.selection instanceof a.qv&&e.selection.node.isBlock)return!!(n.parentOffset&&(0,o.Ax)(e.doc,n.pos))&&(t&&t(e.tr.split(n.pos).scrollIntoView()),!0);if(!n.parent.isBlock)return!1;if(t){let l=i.parentOffset==i.parent.content.size,s=e.tr;(e.selection instanceof a.Bs||e.selection instanceof a.C1)&&s.deleteSelection();let u=0==n.depth?null:g(n.node(-1).contentMatchAt(n.indexAfter(-1))),c=r&&r(i.parent,l),d=c?[c]:l&&u?[{type:u}]:void 0,p=(0,o.Ax)(s.doc,s.mapping.map(n.pos),1,d);if(!d&&!p&&(0,o.Ax)(s.doc,s.mapping.map(n.pos),1,u?[{type:u}]:void 0)&&(u&&(d=[{type:u}]),p=!0),p&&(s.split(s.mapping.map(n.pos),1,d),!l&&!n.parentOffset&&n.parent.type!=u)){let h=s.mapping.map(n.before()),f=s.doc.resolve(h);u&&n.node(-1).canReplaceWith(f.index(),f.index()+1,u)&&s.setNodeMarkup(s.mapping.map(n.before()),u)}t(s.scrollIntoView())}return!0},w=(e,t)=>{let{$from:n,to:r}=e.selection,o,i=n.sharedDepth(r);return 0!=i&&(o=n.before(i),t&&t(e.tr.setSelection(a.qv.create(e.doc,o))),!0)},E=(e,t)=>(t&&t(e.tr.setSelection(new a.C1(e.doc))),!0);function k(e,t,n){var r,l,s;let c=t.nodeBefore,d=t.nodeAfter,p,h;if(c.type.spec.isolating||d.type.spec.isolating)return!1;let f,m,g;if(f=t.nodeBefore,m=t.nodeAfter,g=t.index(),f&&m&&f.type.compatibleContent(m.type)&&(!f.content.size&&t.parent.canReplace(g-1,g)?(n&&n(e.tr.delete(t.pos-f.nodeSize,t.pos).scrollIntoView()),!0):!!(t.parent.canReplace(g,g+1)&&(m.isTextblock||(0,o.Mn)(e.doc,t.pos)))&&(n&&n(e.tr.clearIncompatible(t.pos,f.type,f.contentMatchAt(f.childCount)).join(t.pos).scrollIntoView()),!0)))return!0;let v=t.parent.canReplace(t.index(),t.index()+1);if(v&&(p=(h=c.contentMatchAt(c.childCount)).findWrapping(d.type))&&h.matchType(p[0]||d.type).validEnd){if(n){let b=t.pos+d.nodeSize,y=i.HY.empty;for(let x=p.length-1;x>=0;x--)y=i.HY.from(p[x].create(null,y));y=i.HY.from(c.copy(y));let w=e.tr.step(new o.FC(t.pos-1,b,t.pos,b,new i.p2(y,1,0),p.length,!0)),E=b+2*p.length;(0,o.Mn)(w.doc,E)&&w.join(E),n(w.scrollIntoView())}return!0}let k=a.Y1.findFrom(t,1),C=k&&k.$from.blockRange(k.$to),S=C&&(0,o.k9)(C);if(null!=S&&S>=t.depth)return n&&n(e.tr.lift(C,S).scrollIntoView()),!0;if(v&&u(d,"start",!0)&&u(c,"end")){let M=c,O=[];for(;O.push(M),!M.isTextblock;)M=M.lastChild;let A=d,_=1;for(;!A.isTextblock;A=A.firstChild)_++;if(M.canReplace(M.childCount,M.childCount,A.content)){if(n){let T=i.HY.empty;for(let R=O.length-1;R>=0;R--)T=i.HY.from(O[R].copy(T));n(e.tr.step(new o.FC(t.pos-O.length,t.pos+d.nodeSize,t.pos+_,t.pos+d.nodeSize-_,new i.p2(T,O.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function C(e){return function(t,n){let r=t.selection,o=e<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return!!o.node(i).isTextblock&&(n&&n(t.tr.setSelection(a.Bs.create(t.doc,e<0?o.start(i):o.end(i)))),!0)}}let S=C(-1),M=C(1);function O(e,t=null){return function(n,r){let{empty:o,$cursor:i,ranges:a}=n.selection;if(o&&!i||!function(e,t,n){for(let r=0;r<t.length;r++){let{$from:o,$to:i}=t[r],a=0==o.depth&&e.inlineContent&&e.type.allowsMarkType(n);if(e.nodesBetween(o.pos,i.pos,e=>{if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)}),a)return!0}return!1}(n.doc,a,e))return!1;if(r){if(i)r(e.isInSet(n.storedMarks||i.marks())?n.tr.removeStoredMark(e):n.tr.addStoredMark(e.create(t)));else{let l=!1,s=n.tr;for(let u=0;!l&&u<a.length;u++){let{$from:c,$to:d}=a[u];l=n.doc.rangeHasMark(c.pos,d.pos,e)}for(let p=0;p<a.length;p++){let{$from:h,$to:f}=a[p];if(l)s.removeMark(h.pos,f.pos,e);else{let m=h.pos,g=f.pos,v=h.nodeAfter,b=f.nodeBefore,y=v&&v.isText?/^\s*/.exec(v.text)[0].length:0,x=b&&b.isText?/\s*$/.exec(b.text)[0].length:0;m+y<g&&(m+=y,g-=x),s.addMark(m,g,e.create(t))}}r(s.scrollIntoView())}}return!0}}function A(...e){return function(t,n,r){for(let o=0;o<e.length;o++)if(e[o](t,n,r))return!0;return!1}}let _=A(l,s,c),T=A(l,p,h),R={Enter:A(m,b,y,x),"Mod-Enter":v,Backspace:_,"Mod-Backspace":_,"Shift-Backspace":_,Delete:T,"Mod-Delete":T,"Mod-a":E},z={"Ctrl-h":R.Backspace,"Alt-Backspace":R["Mod-Backspace"],"Ctrl-d":R.Delete,"Ctrl-Alt-Backspace":R["Mod-Delete"],"Alt-Delete":R["Mod-Delete"],"Alt-d":R["Mod-Delete"],"Ctrl-a":S,"Ctrl-e":M};for(let L in R)z[L]=R[L];let I="undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&!!os.platform&&"darwin"==os.platform(),H=I?z:R},51801:function(e,t,n){"use strict";n.d(t,{m8:function(){return x},KX:function(){return E},AH:function(){return C},Yw:function(){return w},of:function(){return k}});var r=function(){};r.prototype.append=function(e){return e.length?(e=r.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},r.prototype.prepend=function(e){return e.length?r.from(e).append(this):this},r.prototype.appendInner=function(e){return new i(this,e)},r.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?r.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},r.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},r.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},r.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},r.from=function(e){return e instanceof r?e:e&&e.length?new o(e):r.empty};var o=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var o=t;o<n;o++)if(!1===e(this.values[o],r+o))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var o=t-1;o>=n;o--)if(!1===e(this.values[o],r+o))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(r);r.empty=new o([]);var i=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var o=this.left.length;if(t<o&&!1===this.left.forEachInner(e,t,Math.min(n,o),r)||n>o&&!1===this.right.forEachInner(e,Math.max(t-o,0),Math.min(this.length,n)-o,r+o))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var o=this.left.length;if(t>o&&!1===this.right.forEachInvertedInner(e,t-o,Math.max(n,o)-o,r+o)||n<o&&!1===this.left.forEachInvertedInner(e,Math.min(t,o),n,r))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(r),a=n(26151),l=n(27191);class s{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(0==this.eventCount)return null;let n=this.items.length;for(;;n--)if(this.items.get(n-1).selection){--n;break}let r,o;t&&(o=(r=this.remapping(n,this.items.length)).maps.length);let i=e.tr,a,l,c=[],d=[];return this.items.forEach((e,t)=>{if(!e.step){r||(o=(r=this.remapping(n,t+1)).maps.length),o--,d.push(e);return}if(r){d.push(new u(e.map));let p=e.step.map(r.slice(o)),h;p&&i.maybeStep(p).doc&&(h=i.mapping.maps[i.mapping.maps.length-1],c.push(new u(h,void 0,void 0,c.length+d.length))),o--,h&&r.appendMap(h,o)}else i.maybeStep(e.step);if(e.selection)return a=r?e.selection.map(r.slice(o)):e.selection,l=new s(this.items.slice(0,n).append(d.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:i,selection:a}}addTransform(e,t,n,r){var o,i;let a=[],l=this.eventCount,c=this.items,p=!r&&c.length?c.get(c.length-1):null;for(let h=0;h<e.steps.length;h++){let f=e.steps[h].invert(e.docs[h]),m=new u(e.mapping.maps[h],f,t),g;(g=p&&p.merge(m))&&(m=g,h?a.pop():c=c.slice(0,c.length-1)),a.push(m),t&&(l++,t=void 0),r||(p=m)}let v=l-n.depth,b;return v>d&&(o=c,i=v,c=(o.forEach((e,t)=>{if(e.selection&&0==i--)return b=t,!1}),o.slice(b)),l-=v),new s(c.append(a),l)}remapping(e,t){let n=new a.vs;return this.items.forEach((t,r)=>{let o=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,o)},e,t),n}addMaps(e){return 0==this.eventCount?this:new s(this.items.append(e.map(e=>new u(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),o=e.mapping,i=e.steps.length,a=this.eventCount;this.items.forEach(e=>{e.selection&&a--},r);let l=t;this.items.forEach(t=>{let r=o.getMirror(--l);if(null==r)return;i=Math.min(i,r);let s=o.maps[r];if(t.step){let c=e.steps[r].invert(e.docs[r]),d=t.selection&&t.selection.map(o.slice(l+1,r));d&&a++,n.push(new u(s,c,d))}else n.push(new u(s))},r);let c=[];for(let d=t;d<i;d++)c.push(new u(o.maps[d]));let p=this.items.slice(0,r).append(c).append(n),h=new s(p,a);return h.emptyItemCount()>500&&(h=h.compress(this.items.length-n.length)),h}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,o=[],i=0;return this.items.forEach((r,a)=>{if(a>=e)o.push(r),r.selection&&i++;else if(r.step){let l=r.step.map(t.slice(n)),s=l&&l.getMap();if(n--,s&&t.appendMap(s,n),l){let c=r.selection&&r.selection.map(t.slice(n));c&&i++;let d=new u(s.invert(),l,c),p,h=o.length-1;(p=o.length&&o[h].merge(d))?o[h]=p:o.push(d)}}else r.map&&n--},this.items.length,0),new s(r.from(o.reverse()),i)}}s.empty=new s(r.empty,0);class u{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new u(t.getMap().invert(),t,this.selection)}}}class c{constructor(e,t,n,r,o){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=o}}let d=20;function p(e){let t=[];return e.forEach((e,n,r,o)=>t.push(r,o)),t}function h(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let o=t.map(e[r],1),i=t.map(e[r+1],-1);o<=i&&n.push(o,i)}return n}function f(e,t,n,r){let o=v(t),i=b.get(t).spec.config,a=(r?e.undone:e.done).popEvent(t,o);if(!a)return;let l=a.selection.resolve(a.transform.doc),s=(r?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),i,o),u=new c(r?s:a.remaining,r?a.remaining:s,null,0,-1);n(a.transform.setSelection(l).setMeta(b,{redo:r,historyState:u}).scrollIntoView())}let m=!1,g=null;function v(e){let t=e.plugins;if(g!=t){m=!1,g=t;for(let n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){m=!0;break}}return m}let b=new l.H$("history"),y=new l.H$("closeHistory");function x(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new l.Sy({key:b,state:{init:()=>new c(s.empty,s.empty,null,0,-1),apply:(t,n,r)=>(function(e,t,n,r){let o=n.getMeta(b),i;if(o)return o.historyState;n.getMeta(y)&&(e=new c(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(a&&a.getMeta(b))return a.getMeta(b).redo?new c(e.done.addTransform(n,void 0,r,v(t)),e.undone,p(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new c(e.done,e.undone.addTransform(n,void 0,r,v(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))return(i=n.getMeta("rebased"))?new c(e.done.rebased(n,i),e.undone.rebased(n,i),h(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new c(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),h(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let l=n.getMeta("composition"),u=0==e.prevTime||!a&&e.prevComposition!=l&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let o=0;o<t.length;o+=2)e<=t[o+1]&&r>=t[o]&&(n=!0)}),n}(n,e.prevRanges)),d=a?h(e.prevRanges,n.mapping):p(n.mapping.maps[n.steps.length-1]);return new c(e.done.addTransform(n,u?t.selection.getBookmark():void 0,r,v(t)),s.empty,d,n.time,null==l?e.prevComposition:l)}})(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?w:"historyRedo"==n?E:null;return!!r&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}let w=(e,t)=>{let n=b.getState(e);return!!n&&0!=n.done.eventCount&&(t&&f(n,e,t,!1),!0)},E=(e,t)=>{let n=b.getState(e);return!!n&&0!=n.undone.eventCount&&(t&&f(n,e,t,!0),!0)};function k(e){let t=b.getState(e);return t?t.done.eventCount:0}function C(e){let t=b.getState(e);return t?t.undone.eventCount:0}},88892:function(e,t,n){"use strict";n.d(t,{Hw:function(){return a},S0:function(){return u},VK:function(){return i},dU:function(){return s},zK:function(){return c}});var r=n(27191),o=n(26151);class i{constructor(e,t){var n;this.match=e,this.match=e,this.handler="string"==typeof t?(n=t,function(e,t,r,o){let i=n;if(t[1]){let a=t[0].lastIndexOf(t[1]);i+=t[0].slice(a+t[1].length);let l=(r+=a)-o;l>0&&(i=t[0].slice(a-l,a)+i,r=o)}return e.tr.insertText(i,r,o)}):t}}function a({rules:e}){let t=new r.Sy({state:{init:()=>null,apply(e,t){let n=e.getMeta(this);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:(n,r,o,i)=>l(n,r,o,i,e,t),handleDOMEvents:{compositionend(n){setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&l(n,r.pos,r.pos,"",e,t)})}}},isInputRules:!0});return t}function l(e,t,n,r,o,i){if(e.composing)return!1;let a=e.state,l=a.doc.resolve(t);if(l.parent.type.spec.code)return!1;let s=l.parent.textBetween(Math.max(0,l.parentOffset-500),l.parentOffset,null,"￼")+r;for(let u=0;u<o.length;u++){let c=o[u].match.exec(s),d=c&&o[u].handler(a,c,t-(c[0].length-r.length),n);if(d)return e.dispatch(d.setMeta(i,{transform:d,from:t,to:n,text:r})),!0}return!1}let s=(e,t)=>{let n=e.plugins;for(let r=0;r<n.length;r++){let o=n[r],i;if(o.spec.isInputRules&&(i=o.getState(e))){if(t){let a=e.tr,l=i.transform;for(let s=l.steps.length-1;s>=0;s--)a.step(l.steps[s].invert(l.docs[s]));if(i.text){let u=a.doc.resolve(i.from).marks();a.replaceWith(i.from,i.to,e.schema.text(i.text,u))}else a.delete(i.from,i.to);t(a)}return!0}}return!1};function u(e,t,n=null,r){return new i(e,(e,i,a,l)=>{let s=n instanceof Function?n(i):n,u=e.tr.delete(a,l),c=u.doc.resolve(a).blockRange(),d=c&&(0,o.nd)(c,t,s);if(!d)return null;u.wrap(c,d);let p=u.doc.resolve(a-1).nodeBefore;return p&&p.type==t&&(0,o.Mn)(u.doc,a-1)&&(!r||r(i,p))&&u.join(a-1),u})}function c(e,t,n=null){return new i(e,(e,r,o,i)=>{let a=e.doc.resolve(o),l=n instanceof Function?n(r):n;return a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),t)?e.tr.delete(o,i).setBlockType(o,o,t,l):null})}new i(/--$/,"—"),new i(/\.\.\.$/,"…"),new i(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),new i(/"$/,"”"),new i(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),new i(/'$/,"’")},17890:function(e,t,n){"use strict";n.d(t,{$:function(){return l}});var r=n(16453);let o="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function i(e){let t=e.split(/-(?!$)/),n=t[t.length-1];"Space"==n&&(n=" ");let r,i,a,l;for(let s=0;s<t.length-1;s++){let u=t[s];if(/^(cmd|meta|m)$/i.test(u))l=!0;else if(/^a(lt)?$/i.test(u))r=!0;else if(/^(c|ctrl|control)$/i.test(u))i=!0;else if(/^s(hift)?$/i.test(u))a=!0;else if(/^mod$/i.test(u))o?l=!0:i=!0;else throw Error("Unrecognized modifier name: "+u)}return r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),l&&(n="Meta-"+n),a&&(n="Shift-"+n),n}function a(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function l(e){let t=function(e){let t=Object.create(null);for(let n in e)t[i(n)]=e[n];return t}(e);return function(e,n){let o=(0,r.YG)(n),i,l=t[a(o,n)];if(l&&l(e.state,e.dispatch,e))return!0;if(1==o.length&&" "!=o){if(n.shiftKey){let s=t[a(o,n,!1)];if(s&&s(e.state,e.dispatch,e))return!0}if((n.shiftKey||n.altKey||n.metaKey||o.charCodeAt(0)>127)&&(i=r.ue[n.keyCode])&&i!=o){let u=t[a(i,n)];if(u&&u(e.state,e.dispatch,e))return!0}}return!1}}},30764:function(e,t,n){"use strict";function r(e){this.content=e}n.d(t,{aw:function(){return $},PW:function(){return Q},HY:function(){return o},vc:function(){return s},ZU:function(){return B},NB:function(){return k},Ts:function(){return w},Jq:function(){return D},e4:function(){return u},ZQ:function(){return v},V_:function(){return F},p2:function(){return c}}),r.prototype={constructor:r,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,t,n){var o=n&&n!=e?this.remove(n):this,i=o.find(e),a=o.content.slice();return -1==i?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new r(a)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new r(n)},addToStart:function(e,t){return new r([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new r(n)},addBefore:function(e,t,n){var o=this.remove(t),i=o.content.slice(),a=o.find(e);return i.splice(-1==a?i.length:a,0,t,n),new r(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=r.from(e)).size?new r(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=r.from(e)).size?new r(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=r.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};class o{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,t,n,r=0,o){for(let i=0,a=0;a<t;i++){let l=this.content[i],s=a+l.nodeSize;if(s>e&&!1!==n(l,r+a,o||null,i)&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,t-u),n,r+u)}a=s}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let o="",i=!0;return this.nodesBetween(e,t,(a,l)=>{a.isText?(o+=a.text.slice(Math.max(e,l)-l,t-l),i=!n):a.isLeaf?(r?o+="function"==typeof r?r(a):r:a.type.spec.leafText&&(o+=a.type.spec.leafText(a)),i=!n):!i&&a.isBlock&&(o+=n,i=!0)},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new o(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let i=0,a=0;a<t;i++){let l=this.content[i],s=a+l.nodeSize;s>e&&((a<e||s>t)&&(l=l.isText?l.cut(Math.max(0,e-a),Math.min(l.text.length,t-a)):l.cut(Math.max(0,e-a-1),Math.min(l.content.size,t-a-1))),n.push(l),r+=l.nodeSize),a=s}return new o(n,r)}cutByIndex(e,t){return e==t?o.empty:0==e&&t==this.content.length?this:new o(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),i=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new o(r,i)}addToStart(e){return new o([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new o(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return function e(t,n,r){for(let o=0;;o++){if(o==t.childCount||o==n.childCount)return t.childCount==n.childCount?null:r;let i=t.child(o),a=n.child(o);if(i==a){r+=i.nodeSize;continue}if(!i.sameMarkup(a))return r;if(i.isText&&i.text!=a.text){for(let l=0;i.text[l]==a.text[l];l++)r++;return r}if(i.content.size||a.content.size){let s=e(i.content,a.content,r+1);if(null!=s)return s}r+=i.nodeSize}}(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return function e(t,n,r,o){for(let i=t.childCount,a=n.childCount;;){if(0==i||0==a)return i==a?null:{a:r,b:o};let l=t.child(--i),s=n.child(--a),u=l.nodeSize;if(l==s){r-=u,o-=u;continue}if(!l.sameMarkup(s))return{a:r,b:o};if(l.isText&&l.text!=s.text){let c=0,d=Math.min(l.text.length,s.text.length);for(;c<d&&l.text[l.text.length-c-1]==s.text[s.text.length-c-1];)c++,r--,o--;return{a:r,b:o}}if(l.content.size||s.content.size){let p=e(l.content,s.content,r-1,o-1);if(p)return p}r-=u,o-=u}}(this,e,t,n)}findIndex(e,t=-1){if(0==e)return a(0,e);if(e==this.size)return a(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let o=r+this.child(n).nodeSize;if(o>=e){if(o==e||t>0)return a(n+1,o);return a(n,r)}r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return o.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return new o(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return o.empty;let t,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(t||(t=e.slice(0,r)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new o(t||e,n)}static from(e){if(!e)return o.empty;if(e instanceof o)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new o([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}o.empty=new o([],0);let i={index:0,offset:0};function a(e,t){return i.index=e,i.offset=t,i}function l(e,t){if(e===t)return!0;if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!l(e[r],t[r]))return!1}else{for(let o in e)if(!(o in t)||!l(e[o],t[o]))return!1;for(let i in t)if(!(i in e))return!1}return!0}class s{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&l(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);return n.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return s.none;if(e instanceof s)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}s.none=[];class u extends Error{}class c{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=function e(t,n,r,o){let{index:i,offset:a}=t.findIndex(n),l=t.maybeChild(i);if(a==n||l.isText)return o&&!o.canReplace(i,i,r)?null:t.cut(0,n).append(r).append(t.cut(n));let s=e(l.content,n-a-1,r);return s&&t.replaceChild(i,l.copy(s))}(this.content,e+this.openStart,t);return n&&new c(n,this.openStart,this.openEnd)}removeBetween(e,t){return new c(function e(t,n,r){let{index:o,offset:i}=t.findIndex(n),a=t.maybeChild(o),{index:l,offset:s}=t.findIndex(r);if(i==n||a.isText){if(s!=r&&!t.child(l).isText)throw RangeError("Removing non-flat range");return t.cut(0,n).append(t.cut(r))}if(o!=l)throw RangeError("Removing non-flat range");return t.replaceChild(o,a.copy(e(a.content,n-i-1,r-i-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return c.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw RangeError("Invalid input for Slice.fromJSON");return new c(o.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let o=e.firstChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)r++;return new c(e,n,r)}}function d(e,t){if(!t.type.compatibleContent(e.type))throw new u("Cannot join "+t.type.name+" onto "+e.type.name)}function p(e,t,n){let r=e.node(n);return d(r,t.node(n)),r}function h(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function f(e,t,n,r){let o=(t||e).node(n),i=0,a=t?t.index(n):o.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(h(e.nodeAfter,r),i++));for(let l=i;l<a;l++)h(o.child(l),r);t&&t.depth==n&&t.textOffset&&h(t.nodeBefore,r)}function m(e,t){return e.type.checkContent(t),e.copy(t)}function g(e,t,n){let r=[];return f(null,e,n,r),e.depth>n&&h(m(p(e,t,n+1),g(e,t,n+1)),r),f(t,null,n,r),new o(r)}c.empty=new c(o.empty,0,0);class v{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let o=0;o<e;o++)r+=n.child(o).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return s.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let o=n;n=r,r=o}let i=n.marks;for(var a=0;a<i.length;a++)!1!==i[a].type.spec.inclusive||r&&i[a].isInSet(r.marks)||(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new w(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let n=[],r=0,o=t;for(let i=e;;){let{index:a,offset:l}=i.content.findIndex(o),s=o-l;if(n.push(i,a,r+l),!s||(i=i.child(a)).isText)break;o=s-1,r+=l+1}return new v(t,n,o)}static resolveCached(e,t){for(let n=0;n<b.length;n++){let r=b[n];if(r.pos==t&&r.doc==e)return r}let o=b[y]=v.resolve(e,t);return y=(y+1)%x,o}}let b=[],y=0,x=12;class w{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let E=Object.create(null);class k{constructor(e,t,n,r=s.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||o.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&l(this.attrs,t||e.defaultAttrs||E)&&s.sameSet(this.marks,n||s.none)}copy(e=null){return e==this.content?this:new k(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new k(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return c.empty;let r=this.resolve(e),o=this.resolve(t),i=n?0:r.sharedDepth(t),a=r.start(i),l=r.node(i).content.cut(r.pos-a,o.pos-a);return new c(l,r.depth-i,o.depth-i)}replace(e,t,n){return function(e,t,n){if(n.openStart>e.depth)throw new u("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new u("Inconsistent open depths");return function e(t,n,r,i){let a=t.index(i),l=t.node(i);if(a==n.index(i)&&i<t.depth-r.openStart){let s=e(t,n,r,i+1);return l.copy(l.content.replaceChild(a,s))}if(!r.content.size)return m(l,g(t,n,i));if(r.openStart||r.openEnd||t.depth!=i||n.depth!=i){let{start:u,end:c}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let i=n-1;i>=0;i--)r=t.node(i).copy(o.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(r,t);return m(l,function e(t,n,r,i,a){let l=t.depth>a&&p(t,n,a+1),s=i.depth>a&&p(r,i,a+1),u=[];return f(null,t,a,u),l&&s&&n.index(a)==r.index(a)?(d(l,s),h(m(l,e(t,n,r,i,a+1)),u)):(l&&h(m(l,g(t,n,a+1)),u),f(n,r,a,u),s&&h(m(s,g(r,i,a+1)),u)),f(i,null,a,u),new o(u)}(t,u,c,n,i))}{let v=t.parent,b=v.content;return m(v,b.cut(0,t.parentOffset).append(r.content).append(b.cut(n.parentOffset)))}}(e,t,n,0)}(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(!(t=t.maybeChild(n)))return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return v.resolveCached(this,e)}resolveNoCache(e){return v.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),S(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=o.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),l=a&&a.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let s=r;s<i;s++)if(!this.type.allowsMarks(n.child(s).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let o=this.contentMatchAt(e).matchType(n),i=o&&o.matchFragment(this.content,t);return!!i&&i.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=s.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!s.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Node.fromJSON");let n=null;if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=o.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}}k.prototype.text=void 0;class C extends k{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):S(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new C(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new C(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function S(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class M{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){var n;let r=new O(e,t);if(null==r.next)return M.empty;let o=A(r);r.next&&r.err("Unexpected trailing text");let i,a=(n=function(e){let t=[[]];return o(i(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let o={term:r,to:n};return t[e].push(o),o}function o(e,t){e.forEach(e=>e.to=t)}function i(e,t){if("choice"==e.type)return e.exprs.reduce((e,n)=>e.concat(i(n,t)),[]);if("seq"==e.type)for(let a=0;;a++){let l=i(e.exprs[a],t);if(a==e.exprs.length-1)return l;o(l,t=n())}else if("star"==e.type){let s=n();return r(t,s),o(i(e.expr,s),s),[r(s)]}else if("plus"==e.type){let u=n();return o(i(e.expr,t),u),o(i(e.expr,u),u),[r(u)]}else if("opt"==e.type)return[r(t)].concat(i(e.expr,t));else if("range"==e.type){let c=t;for(let d=0;d<e.min;d++){let p=n();o(i(e.expr,c),p),c=p}if(-1==e.max)o(i(e.expr,c),c);else for(let h=e.min;h<e.max;h++){let f=n();r(c,f),o(i(e.expr,c),f),c=f}return[r(c)]}else if("name"==e.type)return[r(t,void 0,e.value)];else throw Error("Unknown expr type")}}(o),i=Object.create(null),function e(t){let r=[];t.forEach(e=>{n[e].forEach(({term:e,to:t})=>{if(!e)return;let o;for(let i=0;i<r.length;i++)r[i][0]==e&&(o=r[i][1]);I(n,t).forEach(t=>{o||r.push([e,o=[]]),-1==o.indexOf(t)&&o.push(t)})})});let o=i[t.join(",")]=new M(t.indexOf(n.length-1)>-1);for(let a=0;a<r.length;a++){let l=r[a][1].sort(L);o.next.push({type:r[a][0],next:i[l.join(",")]||e(l)})}return o}(I(n,0)));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let o=r[n],i=!o.validEnd,a=[];for(let l=0;l<o.next.length;l++){let{type:s,next:u}=o.next[l];a.push(s.name),i&&!(s.isText||s.hasRequiredAttrs())&&(i=!1),-1==r.indexOf(u)&&r.push(u)}i&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let o=t;r&&o<n;o++)r=r.matchType(e.child(o).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];return function i(a,l){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return o.from(l.map(e=>e.createAndFill()));for(let u=0;u<a.next.length;u++){let{type:c,next:d}=a.next[u];if(!(c.isText||c.hasRequiredAttrs())&&-1==r.indexOf(d)){r.push(d);let p=i(d,l.concat(c));if(p)return p}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),o=r.match;if(o.matchType(e)){let i=[];for(let a=r;a.type;a=a.via)i.push(a.type);return i.reverse()}for(let l=0;l<o.next.length;l++){let{type:s,next:u}=o.next[l];s.isLeaf||s.hasRequiredAttrs()||s.name in t||r.type&&!u.validEnd||(n.push({match:s.contentMatch,type:s,via:r}),t[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return!function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let o=0;o<t.next.length;o++)r+=(o?", ":"")+t.next[o].type.name+"->"+e.indexOf(t.next[o].next);return r}).join("\n")}}M.empty=new M(!0);class O{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}}function A(e){let t=[];do t.push(_(e));while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function _(e){let t=[];do t.push(T(e));while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function T(e){let t=function(e){if(e.eat("(")){let t=A(e);return e.eat(")")||e.err("Missing closing paren"),t}if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let n=(function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let o=[];for(let i in n){let a=n[i];a.groups.indexOf(t)>-1&&o.push(a)}return 0==o.length&&e.err("No node type or group '"+t+"' found"),o})(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}}(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=z(e,t);else break;return t}function R(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function z(e,t){let n=R(e),r=n;return e.eat(",")&&(r="}"!=e.next?R(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function L(e,t){return t-e}function I(e,t){let n=[];return function t(r){let o=e[r];if(1==o.length&&!o[0].term)return t(o[0].to);n.push(r);for(let i=0;i<o.length;i++){let{term:a,to:l}=o[i];a||-1!=n.indexOf(l)||t(l)}}(t),n.sort(L)}function H(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function N(e,t){let n=Object.create(null);for(let r in e){let o=t&&t[r];if(void 0===o){let i=e[r];if(i.hasDefault)o=i.default;else throw RangeError("No value supplied for attribute "+r)}n[r]=o}return n}function P(e){let t=Object.create(null);if(e)for(let n in e)t[n]=new j(e[n]);return t}class D{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=P(n.attrs),this.defaultAttrs=H(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==M.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:N(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new k(this,this.computeAttrs(e),o.from(t),s.setFrom(n))}createChecked(e=null,t,n){return t=o.from(t),this.checkContent(t),new k(this,this.computeAttrs(e),t,s.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=o.from(t)).size){let r=this.contentMatch.fillBefore(t);if(!r)return null;t=r.append(t)}let i=this.contentMatch.matchFragment(t),a=i&&i.fillBefore(o.empty,!0);return a?new k(this,e,t.append(a),s.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:s.none:e}static compile(e,t){let n=Object.create(null);e.forEach((e,r)=>n[e]=new D(e,t,r));let r=t.spec.topNode||"doc";if(!n[r])throw RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw RangeError("Every schema needs a 'text' type");for(let o in n.text.attrs)throw RangeError("The text node type should not have attributes");return n}}class j{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class B{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=P(r.attrs),this.excluded=null;let o=H(this.attrs);this.instance=o?new s(this,o):null}create(e=null){return!e&&this.instance?this.instance:new s(this,N(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,o)=>n[e]=new B(e,r++,t,o)),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}}class F{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=r.from(e.nodes),t.marks=r.from(e.marks||{}),this.nodes=D.compile(this.spec.nodes,this),this.marks=B.compile(this.spec.marks,this);let o=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw RangeError(i+" can not be both a node and a mark");let a=this.nodes[i],l=a.spec.content||"",s=a.spec.marks;a.contentMatch=o[l]||(o[l]=M.parse(l,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.markSet="_"==s?null:s?V(this,s.split(" ")):""!=s&&a.inlineContent?null:[]}for(let u in this.marks){let c=this.marks[u],d=c.spec.excludes;c.excluded=null==d?[c]:""==d?[]:V(this,d.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof D){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new C(n,n.defaultAttrs,e,s.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return k.fromJSON(this,e)}markFromJSON(e){return s.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}function V(e,t){let n=[];for(let r=0;r<t.length;r++){let o=t[r],i=e.marks[o],a=i;if(i)n.push(i);else for(let l in e.marks){let s=e.marks[l];("_"==o||s.spec.group&&s.spec.group.split(" ").indexOf(o)>-1)&&n.push(a=s)}if(!a)throw SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class ${constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(e=>{e.tag?this.tags.push(e):e.style&&this.styles.push(e)}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new Y(this,t,!1);return n.addAll(e,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new Y(this,t,!0);return n.addAll(e,t.from,t.to),c.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let o=this.tags[r];if(q(e,o.tag)&&(void 0===o.namespace||e.namespaceURI==o.namespace)&&(!o.context||t.matchesContext(o.context))){if(o.getAttrs){let i=o.getAttrs(e);if(!1===i)continue;o.attrs=i||void 0}return o}}}matchStyle(e,t,n,r){for(let o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){let i=this.styles[o],a=i.style;if(0==a.indexOf(e)&&(!i.context||n.matchesContext(i.context))&&(!(a.length>e.length)||61==a.charCodeAt(e.length)&&a.slice(e.length+1)==t)){if(i.getAttrs){let l=i.getAttrs(t);if(!1===l)continue;i.attrs=l||void 0}return i}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let o=t[r];if((null==o.priority?50:o.priority)<n)break}t.splice(r,0,e)}for(let r in e.marks){let o=e.marks[r].spec.parseDOM;o&&o.forEach(e=>{n(e=X(e)),e.mark||e.ignore||e.clearMark||(e.mark=r)})}for(let i in e.nodes){let a=e.nodes[i].spec.parseDOM;a&&a.forEach(e=>{n(e=X(e)),e.node||e.ignore||e.mark||(e.node=i)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new $(e,$.schemaRules(e)))}}let W={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},U={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Z={ol:!0,ul:!0};function G(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}class K{constructor(e,t,n,r,o,i,a){this.type=e,this.attrs=t,this.marks=n,this.pendingMarks=r,this.solid=o,this.options=a,this.content=[],this.activeMarks=s.none,this.stashMarks=[],this.match=i||(4&a?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(o.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(e.type))?(this.match=n,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let t=this.content[this.content.length-1],n;t&&t.isText&&(n=/[ \t\r\n\u000c]+$/.exec(t.text))&&(t.text.length==n[0].length?this.content.pop():this.content[this.content.length-1]=t.withText(t.text.slice(0,t.text.length-n[0].length)))}let r=o.from(this.content);return!e&&this.match&&(r=r.append(this.match.fillBefore(o.empty,!0))),this.type?this.type.create(this.attrs,r,this.marks):r}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,n=this.pendingMarks;t<n.length;t++){let r=n[t];(this.type?this.type.allowsMarkType(r.type):J(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!W.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Y{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0;let r=t.topNode,o,i=G(null,t.preserveWhitespace,0)|(n?4:0);o=r?new K(r.type,r.attrs,s.none,s.none,!0,t.topMatch||r.type.contentMatch,i):n?new K(null,null,s.none,s.none,!0,null,i):new K(e.schema.topNodeType,null,s.none,s.none,!0,null,i),this.nodes=[o],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){if(3==e.nodeType)this.addTextNode(e);else if(1==e.nodeType){let t=e.getAttribute("style");if(t){let n=this.readStyles(function(e){let t=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=t.exec(e);)r.push(n[1],n[2].trim());return r}(t));if(!n)return;let[r,o]=n,i=this.top;for(let a=0;a<o.length;a++)this.removePendingMark(o[a],i);for(let l=0;l<r.length;l++)this.addPendingMark(r[l]);this.addElement(e);for(let s=0;s<r.length;s++)this.removePendingMark(r[s],i);for(let u=0;u<o.length;u++)this.addPendingMark(o[u])}else this.addElement(e)}}addTextNode(e){let t=e.nodeValue,n=this.top;if(2&n.options||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(1&n.options)t=2&n.options?t.replace(/\r\n?/g,"\n"):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],o=e.previousSibling;(!r||o&&"BR"==o.nodeName||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let n=e.nodeName.toLowerCase(),r;Z.hasOwnProperty(n)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=1==t.nodeType?t.nodeName.toLowerCase():null;r&&Z.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):"li"==r?n=t:r&&(n=null)}}(e);let o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(r=this.parser.matchTag(e,this,t));if(o?o.ignore:U.hasOwnProperty(n))this.findInside(e),this.ignoreFallback(e);else if(!o||o.skip||o.closeParent){o&&o.closeParent?this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(e=o.skip);let i,a=this.top,l=this.needsBlock;if(W.hasOwnProperty(n))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),i=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}this.addAll(e),i&&this.sync(a),this.needsBlock=l}else this.addElementByRule(e,o,!1===o.consuming?r:void 0)}leafFallback(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))}ignoreFallback(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=s.none,n=s.none;style:for(let r=0;r<e.length;r+=2)for(let o;;){let i=this.parser.matchStyle(e[r],e[r+1],this,o);if(!i)continue style;if(i.ignore)return null;if(i.clearMark?this.top.pendingMarks.forEach(e=>{i.clearMark(e)&&(n=e.addToSet(n))}):t=this.parser.schema.marks[i.mark].create(i.attrs).addToSet(t),!1===i.consuming)o=i;else break}return[t,n]}addElementByRule(e,t,n){let r,o,i;t.node?(o=this.parser.schema.nodes[t.node]).isLeaf?this.insertNode(o.create(t.attrs))||this.leafFallback(e):r=this.enter(o,t.attrs||null,t.preserveWhitespace):(i=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(i));let a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e));else{let l=e;"string"==typeof t.contentElement?l=e.querySelector(t.contentElement):"function"==typeof t.contentElement?l=t.contentElement(e):t.contentElement&&(l=t.contentElement),this.findAround(e,l,!0),this.addAll(l)}r&&this.sync(a)&&this.open--,i&&this.removePendingMark(i,a)}addAll(e,t,n){let r=t||0;for(let o=t?e.childNodes[t]:e.firstChild,i=null==n?null:e.childNodes[n];o!=i;o=o.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(o);this.findAtPoint(e,r)}findPlace(e){let t,n;for(let r=this.open;r>=0;r--){let o=this.nodes[r],i=o.findWrapping(e);if(i&&(!t||t.length>i.length)&&(t=i,n=o,!i.length)||o.solid)break}if(!t)return!1;this.sync(n);for(let a=0;a<t.length;a++)this.enterInner(t[a],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();let n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));let r=n.activeMarks;for(let o=0;o<e.marks.length;o++)(!n.type||n.type.allowsMarkType(e.marks[o].type))&&(r=e.marks[o].addToSet(r));return n.content.push(e.mark(r)),!0}return!1}enter(e,t,n){let r=this.findPlace(e.create(t));return r&&this.enterInner(e,t,!0,n),r}enterInner(e,t=null,n=!1,r){this.closeExtra();let o=this.top;o.applyPending(e),o.match=o.match&&o.match.matchType(e);let i=G(e,r,o.options);4&o.options&&0==o.content.length&&(i|=4),this.nodes.push(new K(e,t,o.activeMarks,o.pendingMarks,n,null,i)),this.open++}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let r=n.length-1;r>=0;r--)e+=n[r].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),o=-(n?n.depth+1:0)+(r?0:1),i=(e,a)=>{for(;e>=0;e--){let l=t[e];if(""==l){if(e==t.length-1||0==e)continue;for(;a>=o;a--)if(i(e-1,a))return!0;return!1}{let s=a>0||0==a&&r?this.nodes[a].type:n&&a>=o?n.node(a-o).type:null;if(!s||s.name!=l&&-1==s.groups.indexOf(l))return!1;a--}}return!0};return i(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let r in this.parser.schema.nodes){let o=this.parser.schema.nodes[r];if(o.isTextblock&&o.defaultAttrs)return o}}addPendingMark(e){let t=function(e,t){for(let n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let n=this.open;n>=0;n--){let r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);let o=r.popFromStashMark(e);o&&r.type&&r.type.allowsMarkType(o.type)&&(r.activeMarks=o.addToSet(r.activeMarks))}if(r==t)break}}}function q(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function X(e){let t={};for(let n in e)t[n]=e[n];return t}function J(e,t){let n=t.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(e))continue;let i=[],a=e=>{i.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:o}=e.edge(n);if(r==t||0>i.indexOf(o)&&a(o))return!0}};if(a(o.contentMatch))return!0}}class Q{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=et(t).createDocumentFragment());let r=n,o=[];return e.forEach(e=>{if(o.length||e.marks.length){let n=0,i=0;for(;n<o.length&&i<e.marks.length;){let a=e.marks[i];if(!this.marks[a.type.name]){i++;continue}if(!a.eq(o[n][0])||!1===a.type.spec.spanning)break;n++,i++}for(;n<o.length;)r=o.pop()[1];for(;i<e.marks.length;){let l=e.marks[i++],s=this.serializeMark(l,e.isInline,t);s&&(o.push([l,r]),r.appendChild(s.dom),r=s.contentDOM||s.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=Q.renderSpec(et(t),this.nodes[e.type.name](e));if(r){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let o=this.serializeMark(e.marks[r],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&Q.renderSpec(et(n),r(e,t))}static renderSpec(e,t,n=null){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let r=t[0],o=r.indexOf(" ");o>0&&(n=r.slice(0,o),r=r.slice(o+1));let i,a=n?e.createElementNS(n,r):e.createElement(r),l=t[1],s=1;if(l&&"object"==typeof l&&null==l.nodeType&&!Array.isArray(l)){for(let u in s=2,l)if(null!=l[u]){let c=u.indexOf(" ");c>0?a.setAttributeNS(u.slice(0,c),u.slice(c+1),l[u]):a.setAttribute(u,l[u])}}for(let d=s;d<t.length;d++){let p=t[d];if(0===p){if(d<t.length-1||d>s)throw RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}{let{dom:h,contentDOM:f}=Q.renderSpec(e,p,n);if(a.appendChild(h),f){if(i)throw RangeError("Multiple content holes");i=f}}}return{dom:a,contentDOM:i}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Q(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=ee(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return ee(e.marks)}}function ee(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function et(e){return e.document||window.document}},11179:function(e,t,n){"use strict";n.d(t,{N:function(){return l}});var r=n(30764),o=n(27191),i=n(38756),a=n(71071);function l(e){let t=(0,a.DY)(e,(e,t)=>(t.priority??i.xV.Low)-(e.priority??i.xV.Low)),n=[],l=[];for(let u of t)m(u)?n.push(u):l.push(u);let c;return new o.Sy({key:s,view:e=>(c=e,{}),props:{transformPasted(e){var t,o,i;let l=c.state.selection.$from,s=l.node().type.name,u=new Set(l.marks().map(e=>e.type.name));for(let d of n){if((null==(t=d.ignoredNodes)?void 0:t.includes(s))||(null==(o=d.ignoredMarks)?void 0:o.some(e=>u.has(e))))continue;let p=(null==(i=e.content.firstChild)?void 0:i.textContent)??"",f=!c.state.selection.empty&&1===e.content.childCount&&p,m=(0,a.JD)(p,d.regexp)[0];if(f&&m&&"mark"===d.type&&d.replaceSelection){let{from:g,to:v}=c.state.selection,b=c.state.doc.slice(g,v),y=b.content.textBetween(0,b.content.size);if("boolean"!=typeof d.replaceSelection?d.replaceSelection(y):d.replaceSelection){let x=[],{getAttributes:w,markType:E}=d,k=(0,a.mf)(w)?w(m,!0):w,C=E.create(k);return b.content.forEach(e=>{if(e.isText){let t=C.addToSet(e.marks);x.push(e.mark(t))}}),r.p2.maxOpen(r.HY.fromArray(x))}}let{nodes:S,transformed:M}=h(e.content,d,c.state.schema);M&&(e="node"===d.type&&d.nodeType.isBlock?new r.p2(r.HY.fromArray(S),0,0):new r.p2(r.HY.fromArray(S),e.openStart,e.openEnd))}return function(e){let t=r.p2.maxOpen(e.content);return t.openStart<e.openStart||t.openEnd<e.openEnd?t:e}(e)},handleDOMEvents:{paste(e,t){var n,r;if(!(null==(r=(n=e.props).editable)?void 0:r.call(n,e.state)))return!1;let{clipboardData:o}=t;if(!o)return!1;let i=[...o.items].map(e=>e.getAsFile()).filter(e=>!!e);if(0===i.length)return!1;let{selection:a}=e.state;for(let{fileHandler:s,regexp:u}of l){let c=u?i.filter(e=>u.test(e.type)):i;if(0!==c.length&&s({event:t,files:c,selection:a,view:e,type:"paste"}))return t.preventDefault(),!0}return!1},drop(e,t){var n,r,o;if(!(null==(r=(n=e.props).editable)?void 0:r.call(n,e.state)))return!1;let{dataTransfer:i,clientX:a,clientY:s}=t;if(!i)return!1;let u=function(e){var t,n;let{dataTransfer:r}=e;return r?(null==(t=r.files)?void 0:t.length)>0?[...r.files]:(null==(n=r.items)?void 0:n.length)?[...r.items].map(e=>e.getAsFile()).filter(e=>!!e):[]:[]}(t);if(0===u.length)return!1;let c=(null==(o=e.posAtCoords({left:a,top:s}))?void 0:o.pos)??e.state.selection.anchor;for(let{fileHandler:d,regexp:p}of l){let h=p?u.filter(e=>p.test(e.type)):u;if(0!==h.length&&d({event:t,files:h,pos:c,view:e,type:"drop"}))return t.preventDefault(),!0}return!1}}}})}var s=new o.H$("pasteRule");function u(e,t){return function n(o){let{fragment:i,rule:l,nodes:s}=o,{regexp:u,ignoreWhitespace:c,ignoredMarks:d,ignoredNodes:p}=l,h=!1;return i.forEach(o=>{var i,f;if((null==p?void 0:p.includes(o.type.name))||(i=o,i.type.spec.code||(null==(f=i.type.spec.group)?void 0:f.split(" ").includes("code")))){s.push(o);return}if(!o.isText){let m=n({fragment:o.content,rule:l,nodes:[]});h||(h=m.transformed);let g=r.HY.fromArray(m.nodes);o.type.validContent(g)?s.push(o.copy(g)):s.push(...m.nodes);return}if(o.marks.some(e=>{var t,n;return t=e,"code"===t.type.name||(null==(n=t.type.spec.group)?void 0:n.split(" ").includes("code"))||(null==d?void 0:d.includes(e.type.name))})){s.push(o);return}let v=o.text??"",b=0;for(let y of(0,a.JD)(v,u)){let x=y[1],w=y[0];if(c&&(null==x?void 0:x.trim())===""||!w)return;let E=y.index,k=E+w.length;E>b&&s.push(o.cut(b,E));let C=o.cut(E,k);if(w&&x){let S=w.search(/\S/),M=E+w.indexOf(x),O=M+x.length;S&&s.push(o.cut(E,E+S)),C=o.cut(M,O)}e({nodes:s,rule:l,textNode:C,match:y,schema:t}),h=!0,b=k}v&&b<v.length&&s.push(o.cut(b))}),{nodes:s,transformed:h}}}function c(e){let{nodes:t,rule:n,textNode:r,match:o,schema:i}=e,{transformMatch:l,getAttributes:s,markType:u}=n,c=(0,a.mf)(s)?s(o,!1):s,d=r.text??"",p=u.create(c),h=null==l?void 0:l(o);if(""===h)return;if(!1===h){t.push(i.text(d,r.marks));return}let f=p.addToSet(r.marks);t.push(i.text(h??d,f))}function d(e){let{nodes:t,rule:n,textNode:r,match:o,schema:i}=e,{transformMatch:a}=n,l=null==a?void 0:a(o);if(""===l||!1===l)return;let s=l??r.text??"";t.push(i.text(s,r.marks))}function p(e){let{nodes:t,rule:n,textNode:r,match:o}=e,{getAttributes:i,nodeType:l,getContent:s}=n,u=(0,a.mf)(i)?i(o,!1):i,c=(s?s(o):r)||void 0;t.push(l.createChecked(u,c))}function h(e,t,n){let r=[];switch(t.type){case"mark":return u(c,n)({fragment:e,nodes:r,rule:t});case"node":return u(p,n)({fragment:e,nodes:r,rule:t});default:return u(d,n)({fragment:e,nodes:r,rule:t})}}var f=["mark","node","text"];function m(e){return(0,a.q9)(f,e.type)}},27191:function(e,t,n){"use strict";n.d(t,{Bs:function(){return c},C1:function(){return f},H$:function(){return O},Sy:function(){return C},Y1:function(){return a},qv:function(){return p},xm:function(){return l},yy:function(){return k}});var r=n(30764),o=n(26151);let i=Object.create(null);class a{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new l(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=r.p2.empty){let n=t.content.lastChild,o=null;for(let i=0;i<t.openEnd;i++)o=n,n=n.lastChild;let a=e.steps.length,l=this.ranges;for(let s=0;s<l.length;s++){let{$from:u,$to:c}=l[s],d=e.mapping.slice(a);e.replaceRange(d.map(u.pos),d.map(c.pos),s?r.p2.empty:t),0==s&&v(e,a,(n?n.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:i,$to:a}=r[o],l=e.mapping.slice(n),s=l.map(i.pos),u=l.map(a.pos);o?e.deleteRange(s,u):(e.replaceRangeWith(s,u,t),v(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new c(e):g(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let o=e.depth-1;o>=0;o--){let i=t<0?g(e.node(0),e.node(o),e.before(o+1),e.index(o),t,n):g(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,t,n);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new f(e.node(0))}static atStart(e){return g(e,e,0,0,1)||new f(e)}static atEnd(e){return g(e,e,e.content.size,e.childCount,-1)||new f(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let n=i[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in i)throw RangeError("Duplicate use of selection JSON ID "+e);return i[e]=t,t.prototype.jsonID=e,t}getBookmark(){return c.between(this.$anchor,this.$head).getBookmark()}}a.prototype.visible=!0;class l{constructor(e,t){this.$from=e,this.$to=t}}let s=!1;function u(e){s||e.parent.inlineContent||(s=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class c extends a{constructor(e,t=e){u(e),u(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return a.near(n);let r=e.resolve(t.map(this.anchor));return new c(r.parent.inlineContent?r:n,n)}replace(e,t=r.p2.empty){if(super.replace(e,t),t==r.p2.empty){let n=this.$from.marksAcross(this.$to);n&&e.ensureMarks(n)}}eq(e){return e instanceof c&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new d(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new c(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if((!n||r)&&(n=r>=0?1:-1),!t.parent.inlineContent){let o=a.findFrom(t,n,!0)||a.findFrom(t,-n,!0);if(!o)return a.near(t,n);t=o.$head}return e.parent.inlineContent||(0==r?e=t:(e=(a.findFrom(e,-n,!0)||a.findFrom(e,n,!0)).$anchor).pos<t.pos==r<0||(e=t)),new c(e,t)}}a.jsonID("text",c);class d{constructor(e,t){this.anchor=e,this.head=t}map(e){return new d(e.map(this.anchor),e.map(this.head))}resolve(e){return c.between(e.resolve(this.anchor),e.resolve(this.head))}}class p extends a{constructor(e){let t=e.nodeAfter;super(e,e.node(0).resolve(e.pos+t.nodeSize)),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),o=e.resolve(r);return n?a.near(o):new p(o)}content(){return new r.p2(r.HY.from(this.node),0,0)}eq(e){return e instanceof p&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new h(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new p(e.resolve(t.anchor))}static create(e,t){return new p(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}p.prototype.visible=!1,a.jsonID("node",p);class h{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new d(n,n):new h(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&p.isSelectable(n)?new p(t):a.near(t)}}class f extends a{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=r.p2.empty){if(t==r.p2.empty){e.delete(0,e.doc.content.size);let n=a.atStart(e.doc);n.eq(e.selection)||e.setSelection(n)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new f(e)}map(e){return new f(e)}eq(e){return e instanceof f}getBookmark(){return m}}a.jsonID("all",f);let m={map(){return this},resolve:e=>new f(e)};function g(e,t,n,r,o,i=!1){if(t.inlineContent)return c.create(e,n);for(let a=r-(o>0?0:1);o>0?a<t.childCount:a>=0;a+=o){let l=t.child(a);if(l.isAtom){if(!i&&p.isSelectable(l))return p.create(e,n-(o<0?l.nodeSize:0))}else{let s=g(e,l,n+o,o<0?l.childCount:0,o,i);if(s)return s}n+=l.nodeSize*o}return null}function v(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof o.Pu||i instanceof o.FC))return;let l;e.mapping.maps[r].forEach((e,t,n,r)=>{null==l&&(l=r)}),e.setSelection(a.near(e.doc.resolve(l),n))}class b extends o.wx{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(1|this.updated)&-3,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return r.vc.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.vc.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);let o=this.storedMarks;if(!o){let i=this.doc.resolve(t);o=n==t?i.marks():i.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,o)),this.selection.empty||this.setSelection(a.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function y(e,t){return t&&e?e.bind(t):e}class x{constructor(e,t,n){this.name=e,this.init=y(t.init,n),this.apply=y(t.apply,n)}}let w=[new x("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new x("selection",{init:(e,t)=>e.selection||a.atStart(t.doc),apply:e=>e.selection}),new x("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new x("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class E{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=w.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new x(e.key,e.spec.state,e))})}}class k{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let r=this.config.plugins[n];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let o=!1;for(let i=0;i<this.config.plugins.length;i++){let a=this.config.plugins[i];if(a.spec.appendTransaction){let l=r?r[i].n:0,s=r?r[i].state:this,u=l<t.length&&a.spec.appendTransaction.call(a,l?t.slice(l):t,s,n);if(u&&n.filterTransaction(u,i)){if(u.setMeta("appendedTransaction",e),!r){r=[];for(let c=0;c<this.config.plugins.length;c++)r.push(c<i?{state:n,n:t.length}:{state:this,n:0})}t.push(u),n=n.applyInner(u),o=!0}r&&(r[i]={state:n,n:t.length})}}if(!o)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let t=new k(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let o=n[r];t[o.name]=o.apply(e,this[o.name],this,t)}return t}get tr(){return new b(this)}static create(e){let t=new E(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new k(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new E(this.schema,e.plugins),n=t.fields,r=new k(t);for(let o=0;o<n.length;o++){let i=n[o].name;r[i]=this.hasOwnProperty(i)?this[i]:n[o].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],o=r.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let o=new E(e.schema,e.plugins),i=new k(o);return o.fields.forEach(o=>{if("doc"==o.name)i.doc=r.NB.fromJSON(e.schema,t.doc);else if("selection"==o.name)i.selection=a.fromJSON(i.doc,t.selection);else if("storedMarks"==o.name)t.storedMarks&&(i.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let l in n){let s=n[l],u=s.spec.state;if(s.key==o.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(t,l)){i[o.name]=u.fromJSON.call(s,e,t[l],i);return}}i[o.name]=o.init(e,i)}}),i}}class C{constructor(e){this.spec=e,this.props={},e.props&&function e(t,n,r){for(let o in t){let i=t[o];i instanceof Function?i=i.bind(n):"handleDOMEvents"==o&&(i=e(i,n,{})),r[o]=i}return r}(e.props,this,this.props),this.key=e.key?e.key.key:M("plugin")}getState(e){return e[this.key]}}let S=Object.create(null);function M(e){return e in S?e+"$"+ ++S[e]:(S[e]=0,e+"$")}class O{constructor(e="key"){this.key=M(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},41466:function(e,t,n){"use strict";n.d(t,{$Y:function(){return C},C$:function(){return G},D7:function(){return K},Ek:function(){return U},ZF:function(){return j},gn:function(){return Z},hu:function(){return W},j4:function(){return I}});var r,o,i,a,l,s,u,c,d,p,h,f=n(27191),m=n(52780),g=n(71071),v=n(48102),b=n(38756),y=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},x=(e,t,n)=>(y(e,t,"read from private field"),n?n.call(e):t.get(e)),w=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},E=(e,t,n,r)=>(y(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),k=((p=k||{}).End="exit-end",p.Removed="delete",p.Split="exit-split",p.InvalidSplit="invalid-exit-split",p.MoveEnd="move-end",p.MoveStart="move-start",p.JumpForward="jump-forward-exit",p.JumpBackward="jump-backward-exit",p.SelectionOutside="selection-outside",p),C=((h=C||{}).Start="start",h.Text="change-character",h.SelectionInside="selection-inside",h.Move="move",h.JumpBackward="jump-backward-change",h.JumpForward="jump-forward-change",h),S=["jump-backward-exit","jump-forward-exit"],M=["jump-backward-change","jump-forward-change"];function O(e){return!!(e&&e.query.full.length>=e.suggester.matchOffset)}function A(e){return(0,g.Kn)(e)&&e instanceof f.Bs}function _(e){let{match:t,changeReason:n,exitReason:r}=e;return{...t,changeReason:n,exitReason:r}}function T(e){let{$pos:t,suggester:n}=e,{char:r,name:o,startOfLine:i,supportedCharacters:a,matchOffset:l,multiline:s,caseInsensitive:u,unicode:c}=n,d=function(e){var t,n,r,o;let{char:i,matchOffset:a,startOfLine:l,supportedCharacters:s,captureChar:u=!0,caseInsensitive:c=!1,multiline:d=!1,unicode:p=!1}=e,h=`g${d?"m":""}${c?"i":""}${p?"u":""}`,f=((0,g.HD)(i)?RegExp(v(i)):i).source;return u&&(f=`(${f})`),RegExp(`${l?"^":""}${f}(?:${D(s)}){${a},}`,h)}({char:r,matchOffset:l,startOfLine:i,supportedCharacters:a,multiline:s,caseInsensitive:u,unicode:c}),p=t.doc.textBetween(t.before(),t.end(),b.Vp,b.Vp);return function(e){let{text:t,regexp:n,$pos:r,suggester:o}=e,i=r.start(),a;return(0,g.JD)(t,n).forEach(e=>{let t=e.input.slice(Math.max(0,e.index-1),e.index);if(function(e,t){let{invalidPrefixCharacters:n,validPrefixCharacters:r}=t;if(n){let o=RegExp(D(n));return!o.test(e)}{let i=RegExp(D(r));return i.test(e)}}(t,o)){let n=e.index+i,l=e[0],s=e[1];if(!(0,g.HD)(l)||!(0,g.HD)(s))return;let u=n+l.length,c=Math.min(u,r.pos),d=c-n;n<r.pos&&u>=r.pos&&(a={range:{from:n,to:u,cursor:c},match:e,query:{partial:l.slice(s.length,d),full:l.slice(s.length)},text:{partial:l.slice(0,d),full:l},textAfter:r.doc.textBetween(u,r.end(),b.Vp,b.Vp),textBefore:r.doc.textBetween(i,n,b.Vp,b.Vp),suggester:o})}}),a}({suggester:n,text:p,regexp:d,$pos:t,char:r,name:o})}function R(e){let{state:t,match:n}=e;try{return T({$pos:t.doc.resolve(n.range.cursor),suggester:n.suggester})}catch{return}}function z(e){let{prev:t,next:n,state:r}=e;return!n&&t.range.from>=r.doc.nodeSize?{exit:_({match:t,exitReason:"delete"})}:n&&t.query.partial?t.range.to===n.range.cursor?{exit:_({match:n,exitReason:"exit-end"})}:t.query.partial?{exit:_({match:n,exitReason:"exit-split"})}:{}:{exit:_({match:t,exitReason:"invalid-exit-split"})}}function L(e,t){for(let n=e.depth;n>0;n--){let r=e.node(n);if(t.includes(r.type.name))return!0}return!1}function I(e,t){let{$from:n,$to:r}=e;return!!H(e,t)||(0,g.w6)(n.pos,r.pos).some(e=>(function(e,t){let n=new Set(e.marks().map(e=>e.type.name));return t.some(e=>n.has(e))})(n.doc.resolve(e),t))}function H(e,t){let{$from:n,$to:r}=e,o=new Set((n.marksAcross(r)??[]).map(e=>e.type.name));return t.some(e=>o.has(e))}function N(e,t){let{$cursor:n}=t,{validMarks:r,validNodes:o,invalidMarks:i,invalidNodes:a}=e;return!!(!r&&!o&&(0,g.yD)(i)&&(0,g.yD)(a))||!(r&&!H(t,r)||o&&!L(n,o)||!r&&I(t,i)||!o&&L(n,a))}function P(e){let{suggesters:t,$pos:n,selectionEmpty:r}=e;for(let o of t)if(!o.emptySelectionsOnly||r)try{let i=T({suggester:o,$pos:n});if(!i)continue;let a={$from:n.doc.resolve(i.range.from),$to:n.doc.resolve(i.range.to),$cursor:n};if(N(o,a)&&o.isValidPosition(a,i))return i}catch{}}function D(e){return(0,g.Kj)(e)?e.source:e}var j={appendTransaction:!1,priority:50,ignoredTag:"span",matchOffset:0,disableDecorations:!1,startOfLine:!1,suggestClassName:"suggest",suggestTag:"span",supportedCharacters:/\w+/,validPrefixCharacters:/^[\s\0]?$/,invalidPrefixCharacters:null,ignoredClassName:null,invalidMarks:[],invalidNodes:[],validMarks:null,validNodes:null,isValidPosition:()=>!0,checkNextValidSelection:null,emptySelectionsOnly:!1,caseInsensitive:!1,multiline:!1,unicode:!1,captureChar:!0},B="__ignore_prosemirror_suggest_update__",F=class{constructor(e){w(this,r,!1),w(this,o,!1),w(this,i,void 0),w(this,a,void 0),w(this,l,void 0),w(this,s,(0,g.Ry)()),w(this,u,m.EH.empty),w(this,c,!1),w(this,d,!1),this.setMarkRemoved=()=>{E(this,c,!0)},this.findNextTextSelection=e=>{let t=e.$from.doc,n=Math.min(t.nodeSize-2,e.to+1),r=t.resolve(n),o=f.Y1.findFrom(r,1,!0);if(A(o))return o},this.ignoreNextExit=()=>{E(this,o,!0)},this.addIgnored=({from:e,name:t,specific:n=!1})=>{let r=x(this,i).find(e=>e.name===t);if(!r)throw Error(`No suggester exists for the name provided: ${t}`);let o=(0,g.HD)(r.char)?r.char.length:1,a=r.ignoredClassName?{class:r.ignoredClassName}:{},l=m.p.inline(e,e+o,{nodeName:r.ignoredTag,...a},{name:t,specific:n,char:r.char});E(this,u,x(this,u).add(this.view.state.doc,[l]))},this.removeIgnored=({from:e,name:t})=>{let n=x(this,i).find(e=>e.name===t);if(!n)throw Error(`No suggester exists for the name provided: ${t}`);let r=(0,g.HD)(n.char)?n.char.length:1,o=x(this,u).find(e,e+r)[0];o&&o.spec.name===t&&E(this,u,x(this,u).remove([o]))},this.clearIgnored=e=>{if(!e){E(this,u,m.EH.empty);return}let t=x(this,u).find(),n=t.filter(({spec:t})=>t.name===e);E(this,u,x(this,u).remove(n))},this.findMatchAtPosition=(e,t)=>{let n=t?x(this,i).filter(e=>e.name===t):x(this,i);return P({suggesters:n,$pos:e,docChanged:!1,selectionEmpty:!0})},this.setLastChangeFromAppend=()=>{E(this,d,!0)};let t=V();E(this,i,e.map(t)),E(this,i,(0,g.DY)(x(this,i),(e,t)=>t.priority-e.priority))}static create(e){return new F(e)}get decorationSet(){return x(this,u)}get removed(){return x(this,c)}get match(){return x(this,a)?x(this,a):x(this,l)&&x(this,s).exit?x(this,l):void 0}init(e){return this.view=e,this}createProps(e){let{name:t,char:n}=e.suggester;return{view:this.view,addIgnored:this.addIgnored,clearIgnored:this.clearIgnored,ignoreNextExit:this.ignoreNextExit,setMarkRemoved:this.setMarkRemoved,name:t,char:n,...e}}shouldRunExit(){return!x(this,o)||(E(this,o,!1),!1)}updateWithNextSelection(e){var t,n,r;let o=this.findNextTextSelection(e.selection);if(o)for(let a of x(this,i)){let l=null==(t=x(this,s).change)?void 0:t.suggester.name,u=null==(n=x(this,s).exit)?void 0:n.suggester.name;null==(r=a.checkNextValidSelection)||r.call(a,o.$from,e,{change:l,exit:u})}}changeHandler(e,t){var n,r,o,i;let{change:a,exit:l}=x(this,s),u=this.match;if(!a&&!l||!O(u))return;let d=t===(null==l?void 0:l.suggester.appendTransaction)&&this.shouldRunExit(),p=t===(null==a?void 0:a.suggester.appendTransaction);if(d||p){if(a&&l&&(n={change:a,exit:l},(0,g.q9)(S,null==(r=n.exit)?void 0:r.exitReason)||(0,g.q9)(M,null==(o=n.change)?void 0:o.changeReason))){let h=this.createProps(l),f=this.createProps(a);l.range.from,a.range.from,d&&l.suggester.onChange(h,e),p&&a.suggester.onChange(f,e),d&&E(this,c,!1);return}a&&p&&a.suggester.onChange(this.createProps(a),e),l&&d&&(l.suggester.onChange(this.createProps(l),e),E(this,c,!1),"invalid-exit-split"===(i=l.exitReason)&&E(this,s,(0,g.Ry)()))}}mapIgnoredDecorations(e){let t=x(this,u).map(e.mapping,e.doc),n=t.find(),r=n.filter(({from:e,to:t,spec:n})=>{let r=(0,g.HD)(n.char)?n.char.length:1;return t-e!==r});E(this,u,t.remove(r))}shouldIgnoreMatch({range:e,suggester:{name:t}}){let n=x(this,u).find(),r=n.some(({spec:n,from:r})=>r===e.from&&(!n.specific||n.name===t));return r}resetState(){E(this,s,(0,g.Ry)()),E(this,a,void 0),E(this,c,!1),E(this,d,!1)}updateReasons(e){let{$pos:t,state:n}=e,o=x(this,r),u=x(this,i),c=n.selection.empty,d=A(n.selection)?P({suggesters:u,$pos:t,docChanged:o,selectionEmpty:c}):void 0;E(this,a,d&&this.shouldIgnoreMatch(d)?void 0:d),E(this,s,function(e){var t,n,r,o,i;let{prev:a,next:l,state:s,$pos:u}=e,c=(0,g.Ry)();if(!a&&!l)return c;let d={prev:a,next:l};return d.prev&&d.next&&d.prev.range.from!==d.next.range.from?function(e){let{prev:t,next:n,state:r}=e,o=(0,g.Ry)(),i=R({state:r,match:t}),{exit:a}=i&&i.query.full!==t.query.full?z({prev:t,next:i,state:r}):o,l=t.range.from<n.range.from;return l?{exit:a??_({match:t,exitReason:"jump-forward-exit"}),change:_({match:n,changeReason:"jump-forward-change"})}:{exit:a??_({match:t,exitReason:"jump-backward-exit"}),change:_({match:n,changeReason:"jump-backward-change"})}}({prev:d.prev,next:d.next,state:s}):!d.prev&&d.next?{change:_({match:d.next,changeReason:"start"})}:d.prev&&!d.next?function(e){let{match:t,state:n,$pos:r}=e,{selection:o}=n,i=R({match:t,state:n});return i&&i.text.full===t.text.full?!o.empty&&(o.from<=t.range.from||o.to>=t.range.to)?{exit:_({match:t,exitReason:"selection-outside"})}:r.pos>t.range.to?{exit:_({match:t,exitReason:"move-end"})}:r.pos<=t.range.from?{exit:_({match:t,exitReason:"move-start"})}:{}:z({prev:t,next:i,state:n})}({$pos:u,match:d.prev,state:s}):d.prev&&d.next&&d.prev.text.full!==d.next.text.full?{change:_({match:d.next,changeReason:"change-character"})}:d.prev&&d.next&&d.prev.range.cursor!==d.next.range.cursor?{change:_({match:d.next,changeReason:s.selection.empty?"move":"selection-inside"})}:c}({next:x(this,a),prev:x(this,l),state:n,$pos:t}))}addSuggester(e){let t=x(this,i).find(t=>t.name===e.name),n=V();if(t)E(this,i,x(this,i).map(r=>r===t?n(e):r));else{let r=[...x(this,i),n(e)];E(this,i,(0,g.DY)(r,(e,t)=>t.priority-e.priority))}return()=>this.removeSuggester(e.name)}removeSuggester(e){let t=(0,g.HD)(e)?e:e.name;E(this,i,x(this,i).filter(e=>e.name!==t)),this.clearIgnored(t)}toJSON(){return this.match}apply(e){let{exit:t,change:n}=x(this,s);if(x(this,d)&&(E(this,d,!1),!(null==t?void 0:t.suggester.appendTransaction)&&!(null==n?void 0:n.suggester.appendTransaction)))return this;let{tr:o,state:i}=e,u=o.docChanged||o.selectionSet,p=o.getMeta(B);return!p&&(u||x(this,c))&&(E(this,r,o.docChanged),this.mapIgnoredDecorations(o),t&&this.resetState(),E(this,l,x(this,a)),this.updateReasons({$pos:o.selection.$from,state:i})),this}createDecorations(e){let t=this.match;if(!O(t))return x(this,u);let{disableDecorations:n}=t.suggester,r=(0,g.mf)(n)?n(e,t):n;if(r)return x(this,u);let{range:o,suggester:i}=t,{name:a,suggestTag:l,suggestClassName:s}=i,{from:c,to:d}=o;return this.shouldIgnoreMatch(t)?x(this,u):x(this,u).add(e.doc,[m.p.inline(c,d,{nodeName:l,class:a?`${s} suggest-${a}`:s},{name:a})])}};function V(){let e=new Set;return t=>{if(e.has(t.name))throw Error(`A suggester already exists with the name '${t.name}'. The name provided must be unique.`);let n={...j,...t};return e.add(t.name),n}}r=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,l=new WeakMap,s=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap;var $=new f.H$("suggest");function W(e){return $.getState(e)}function U(e,t){return W(e).addSuggester(t)}function Z(e){e.setMeta(B,!0)}function G(e,t){return W(e).removeSuggester(t)}function K(...e){let t=F.create(e);return new f.Sy({key:$,view:e=>(t.init(e),{update:e=>t.changeHandler(e.state.tr,!1)}),state:{init:()=>t,apply:(e,n,r,o)=>t.apply({tr:e,state:o})},appendTransaction(e,n,r){let o=r.tr;return(t.updateWithNextSelection(o),t.changeHandler(o,!0),o.docChanged||o.steps.length>0||o.selectionSet||o.storedMarksSet)?(t.setLastChangeFromAppend(),o):null},props:{decorations:e=>t.createDecorations(e)}})}},26151:function(e,t,n){"use strict";n.d(t,{Ax:function(){return C},FC:function(){return b},Mn:function(){return S},Pu:function(){return v},WJ:function(){return h},Yo:function(){return M},dR:function(){return A},h8:function(){return c},k9:function(){return w},nd:function(){return E},nj:function(){return O},oo:function(){return d},vs:function(){return s},wx:function(){return F},xu:function(){return f}});var r=n(30764);function o(e,t){return e+65536*t}function i(e){return 65535&e}class a{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class l{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&l.empty)return l.empty}recover(e){var t;let n=0,r=i(e);if(!this.inverted)for(let o=0;o<r;o++)n+=this.ranges[3*o+2]-this.ranges[3*o+1];return this.ranges[3*r]+n+(e-(65535&e))/65536}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,l=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let u=this.ranges[s]-(this.inverted?r:0);if(u>e)break;let c=this.ranges[s+i],d=this.ranges[s+l],p=u+c;if(e<=p){let h=c?e==u?-1:e==p?1:t:t,f=u+r+(h<0?0:d);if(n)return f;let m=e==(t<0?u:p)?null:o(s/3,e-u),g=e==u?2:e==p?1:4;return(t<0?e!=u:e!=p)&&(g|=8),new a(f,g,m)}r+=d-c}return n?e+r:new a(e+r,0,null)}touches(e,t){let n=0,r=i(t),o=this.inverted?2:1,a=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let s=this.ranges[l]-(this.inverted?n:0);if(s>e)break;let u=this.ranges[l+o];if(e<=s+u&&l==3*r)return!0;n+=this.ranges[l+a]-u}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let i=this.ranges[r],a=i-(this.inverted?o:0),l=i+(this.inverted?0:o),s=this.ranges[r+t],u=this.ranges[r+n];e(a,a+s,l,l+u),o+=u-s}}invert(){return new l(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?l.empty:new l(e<0?[0,-e,0]:[0,0,e])}}l.empty=new l([]);class s{constructor(e=[],t,n=0,r=e.length){this.maps=e,this.mirror=t,this.from=n,this.to=r}slice(e=0,t=this.maps.length){return new s(this.maps,this.mirror,e,t)}copy(){return new s(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,n=this.maps.length;t<e.maps.length;t++){let r=e.getMirror(t);this.appendMap(e.maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new s;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let o=this.from;o<this.to;o++){let i=this.maps[o].mapResult(e,t);if(null!=i.recover){let l=this.getMirror(o);if(null!=l&&l>o&&l<this.to){o=l,e=this.maps[l].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new a(e,r,null)}}let u=Object.create(null);class c{getMap(){return l.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let n=u[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in u)throw RangeError("Duplicate use of step JSON ID "+e);return u[e]=t,t.prototype.jsonID=e,t}}class d{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new d(e,null)}static fail(e){return new d(null,e)}static fromReplace(e,t,n,o){try{return d.ok(e.replace(t,n,o))}catch(i){if(i instanceof r.e4)return d.fail(i.message);throw i}}}function p(e,t,n){let o=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(p(a.content,t,a))),a.isInline&&(a=t(a,n,i)),o.push(a)}return r.HY.fromArray(o)}class h extends c{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),o=n.node(n.sharedDepth(this.to)),i=new r.p2(p(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,o),t.openStart,t.openEnd);return d.fromReplace(e,this.from,this.to,i)}invert(){return new f(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new h(t.pos,n.pos,this.mark)}merge(e){return e instanceof h&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new h(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new h(t.from,t.to,e.markFromJSON(t.mark))}}c.jsonID("addMark",h);class f extends c{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new r.p2(p(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return d.fromReplace(e,this.from,this.to,n)}invert(){return new h(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new f(t.pos,n.pos,this.mark)}merge(e){return e instanceof f&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new f(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new f(t.from,t.to,e.markFromJSON(t.mark))}}c.jsonID("removeMark",f);class m extends c{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return d.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return d.fromReplace(e,this.pos,this.pos+1,new r.p2(r.HY.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let n=this.mark.addToSet(t.marks);if(n.length==t.marks.length){for(let r=0;r<t.marks.length;r++)if(!t.marks[r].isInSet(n))return new m(this.pos,t.marks[r]);return new m(this.pos,this.mark)}}return new g(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new m(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new m(t.pos,e.markFromJSON(t.mark))}}c.jsonID("addNodeMark",m);class g extends c{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return d.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return d.fromReplace(e,this.pos,this.pos+1,new r.p2(r.HY.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new m(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new g(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new g(t.pos,e.markFromJSON(t.mark))}}c.jsonID("removeNodeMark",g);class v extends c{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&y(e,this.from,this.to)?d.fail("Structure replace would overwrite content"):d.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new l([this.from,this.to-this.from,this.slice.size])}invert(e){return new v(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new v(t.pos,Math.max(t.pos,n.pos),this.slice)}merge(e){if(!(e instanceof v)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?r.p2.empty:new r.p2(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new v(e.from,this.to,t,this.structure)}}{let n=this.slice.size+e.slice.size==0?r.p2.empty:new r.p2(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new v(this.from,this.to+(e.to-e.from),n,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new v(t.from,t.to,r.p2.fromJSON(e,t.slice),!!t.structure)}}c.jsonID("replace",v);class b extends c{constructor(e,t,n,r,o,i,a=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=o,this.insert=i,this.structure=a}apply(e){if(this.structure&&(y(e,this.from,this.gapFrom)||y(e,this.gapTo,this.to)))return d.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return d.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?d.fromReplace(e,this.from,this.to,n):d.fail("Content does not fit in gap")}getMap(){return new l([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new b(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||o>n.pos?null:new b(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new b(t.from,t.to,t.gapFrom,t.gapTo,r.p2.fromJSON(e,t.slice),t.insert,!!t.structure)}}function y(e,t,n){let r=e.resolve(t),o=n-t,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let a=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,o--}}return!1}function x(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function w(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let r=e.$from.node(n),o=e.$from.index(n),i=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(o,i,t))return n;if(0==n||r.type.spec.isolating||!x(r,o,i))break}return null}function E(e,t,n=null,r=e){let o=function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.contentMatchAt(r).findWrapping(t);if(!i)return null;let a=i.length?i[0]:t;return n.canReplaceWith(r,o,a)?i:null}(e,t),i=o&&function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.child(r),a=t.contentMatch.findWrapping(i.type);if(!a)return null;let l=(a.length?a[a.length-1]:t).contentMatch;for(let s=r;l&&s<o;s++)l=l.matchType(n.child(s).type);return l&&l.validEnd?a:null}(r,t);return i?o.map(k).concat({type:t,attrs:n}).concat(i.map(k)):null}function k(e){return{type:e,attrs:null}}function C(e,t,n=1,r){let o=e.resolve(t),i=o.depth-n,a=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let l=o.depth-1,s=n-2;l>i;l--,s--){let u=o.node(l),c=o.index(l);if(u.type.spec.isolating)return!1;let d=u.content.cutByIndex(c,u.childCount),p=r&&r[s]||u;if(p!=u&&(d=d.replaceChild(0,p.type.create(p.attrs))),!u.canReplace(c+1,u.childCount)||!p.type.validContent(d))return!1}let h=o.indexAfter(i),f=r&&r[0];return o.node(i).canReplaceWith(h,h,f?f.type:o.node(i+1).type)}function S(e,t){var n,r;let o=e.resolve(t),i=o.index();return n=o.nodeBefore,r=o.nodeAfter,!!(n&&r&&!n.isLeaf&&n.canAppend(r))&&o.parent.canReplace(i,i+1)}function M(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let o=r.depth-1;o>=0;o--){let i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let a=r.depth-1;a>=0;a--){let l=r.indexAfter(a);if(r.node(a).canReplaceWith(l,l,n))return r.after(a+1);if(l<r.node(a).childCount)break}return null}function O(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let o=n.content;for(let i=0;i<n.openStart;i++)o=o.firstChild.content;for(let a=1;a<=(0==n.openStart&&n.size?2:1);a++)for(let l=r.depth;l>=0;l--){let s=l==r.depth?0:r.pos<=(r.start(l+1)+r.end(l+1))/2?-1:1,u=r.index(l)+(s>0?1:0),c=r.node(l),d=!1;if(1==a)d=c.canReplace(u,u,o);else{let p=c.contentMatchAt(u).findWrapping(o.firstChild.type);d=p&&c.canReplaceWith(u,u,p[0])}if(d)return 0==s?r.pos:s<0?r.before(l+1):r.after(l+1)}return null}function A(e,t,n=t,o=r.p2.empty){if(t==n&&!o.size)return null;let i=e.resolve(t),a=e.resolve(n);return _(i,a,o)?new v(t,n,o):new T(i,a,o).fit()}function _(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}c.jsonID("replaceAround",b);class T{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=r.HY.empty;for(let o=0;o<=e.depth;o++){let i=e.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(o))})}for(let a=e.depth;a>0;a--)this.placed=r.HY.from(e.node(a).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,o=this.$from,i=this.close(t<0?this.$to:o.doc.resolve(t));if(!i)return null;let a=this.placed,l=o.depth,s=i.depth;for(;l&&s&&1==a.childCount;)a=a.firstChild.content,l--,s--;let u=new r.p2(a,l,s);return t>-1?new b(o.pos,t,this.$to.pos,this.$to.end(),u,n):u.size||o.pos!=this.$to.pos?new v(o.pos,i.pos,u):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,o=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(o=0),i.type.spec.isolating&&o<=n){e=n;break}t=i.content}for(let a=1;a<=2;a++)for(let l=1==a?e:this.unplaced.openStart;l>=0;l--){let s,u=null,c=(l?(u=L(this.unplaced.content,l-1).firstChild).content:this.unplaced.content).firstChild;for(let d=this.depth;d>=0;d--){let{type:p,match:h}=this.frontier[d],f,m=null;if(1==a&&(c?h.matchType(c.type)||(m=h.fillBefore(r.HY.from(c),!1)):u&&p.compatibleContent(u.type)))return{sliceDepth:l,frontierDepth:d,parent:u,inject:m};if(2==a&&c&&(f=h.findWrapping(c.type)))return{sliceDepth:l,frontierDepth:d,parent:u,wrap:f};if(u&&h.matchType(u.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,o=L(e,t);return!!o.childCount&&!o.firstChild.isLeaf&&(this.unplaced=new r.p2(e,t+1,Math.max(n,o.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,o=L(e,t);if(o.childCount<=1&&t>0){let i=e.size-t<=t+o.size;this.unplaced=new r.p2(R(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new r.p2(R(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:o,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let a=0;a<i.length;a++)this.openFrontierNode(i[a]);let l=this.unplaced,s=n?n.content:l.content,u=l.openStart-e,c=0,d=[],{match:p,type:h}=this.frontier[t];if(o){for(let f=0;f<o.childCount;f++)d.push(o.child(f));p=p.matchFragment(o)}let m=s.size+e-(l.content.size-l.openEnd);for(;c<s.childCount;){let g=s.child(c),v=p.matchType(g.type);if(!v)break;(++c>1||0==u||g.content.size)&&(p=v,d.push(I(g.mark(h.allowedMarks(g.marks)),1==c?u:0,c==s.childCount?m:-1)))}let b=c==s.childCount;b||(m=-1),this.placed=z(this.placed,t,r.HY.from(d)),this.frontier[t].match=p,b&&m<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,x=s;y<m;y++){let w=x.lastChild;this.frontier.push({type:w.type,match:w.contentMatchAt(w.childCount)}),x=w.content}this.unplaced=b?0==e?r.p2.empty:new r.p2(R(l.content,e-1,1),e-1,m<0?l.openEnd:e-1):new r.p2(R(l.content,e,c),l.openStart,l.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!H(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){scan:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),i=H(e,t,r,n,o);if(i){for(let a=t-1;a>=0;a--){let{match:l,type:s}=this.frontier[a],u=H(e,a,s,l,!0);if(!u||u.childCount)continue scan}return{depth:t,fit:i,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=z(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let r=e.node(n),o=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,o)}return e}openFrontierNode(e,t=null,n){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=z(this.placed,this.depth,r.HY.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(r.HY.empty,!0);e.childCount&&(this.placed=z(this.placed,this.frontier.length,e))}}function R(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(R(e.firstChild.content,t-1,n)))}function z(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(z(e.lastChild.content,t-1,n)))}function L(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function I(e,t,n){if(t<=0)return e;let o=e.content;return t>1&&(o=o.replaceChild(0,I(o.firstChild,t-1,1==o.childCount?n-1:0))),t>0&&(o=e.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(e.type.contentMatch.matchFragment(o).fillBefore(r.HY.empty,!0)))),e.copy(o)}function H(e,t,n,r,o){let i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!n.compatibleContent(i.type))return null;let l=r.fillBefore(i.content,!0,a);return l&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,i.content,a)?l:null}function N(e){return e.spec.defining||e.spec.definingForContent}function P(e,t,n,o,i){if(t<n){let a=e.firstChild;e=e.replaceChild(0,a.copy(P(a.content,t+1,n,o,a)))}if(t>o){let l=i.contentMatchAt(0),s=l.fillBefore(e).append(e);e=s.append(l.matchFragment(s).fillBefore(r.HY.empty,!0))}return e}function D(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let o=r;o>=0;o--){let i=e.start(o);if(i<e.pos-(e.depth-o)||t.end(o)>t.pos+(t.depth-o)||e.node(o).type.spec.isolating||t.node(o).type.spec.isolating)break;(i==t.start(o)||o==e.depth&&o==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&o&&t.start(o-1)==i-1)&&n.push(o)}return n}class j extends c{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return d.fail("No node at attribute step's position");let n=Object.create(null);for(let o in t.attrs)n[o]=t.attrs[o];n[this.attr]=this.value;let i=t.type.create(n,null,t.marks);return d.fromReplace(e,this.pos,this.pos+1,new r.p2(r.HY.from(i),0,t.isLeaf?0:1))}getMap(){return l.empty}invert(e){return new j(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new j(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new j(t.pos,t.attr,t.value)}}c.jsonID("attr",j);let B=class extends Error{};(B=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n}).prototype=Object.create(Error.prototype),B.prototype.constructor=B,B.prototype.name="TransformError";class F{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new s}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new B(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=r.p2.empty){let o=A(this.doc,e,t,n);return o&&this.step(o),this}replaceWith(e,t,n){return this.replace(e,t,new r.p2(r.HY.from(n),0,0))}delete(e,t){return this.replace(e,t,r.p2.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return!function(e,t,n,o){if(!o.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(_(i,a,o))return e.step(new v(t,n,o));let l=D(i,e.doc.resolve(n));0==l[l.length-1]&&l.pop();let s=-(i.depth+1);l.unshift(s);for(let u=i.depth,c=i.pos-1;u>0;u--,c--){let d=i.node(u).type.spec;if(d.defining||d.definingAsContext||d.isolating)break;l.indexOf(u)>-1?s=u:i.before(u)==c&&l.splice(1,0,-u)}let p=l.indexOf(s),h=[],f=o.openStart;for(let m=o.content,g=0;;g++){let b=m.firstChild;if(h.push(b),g==o.openStart)break;m=b.content}for(let y=f-1;y>=0;y--){let x=h[y].type,w=N(x);if(w&&i.node(p).type!=x)f=y;else if(w||!x.isTextblock)break}for(let E=o.openStart;E>=0;E--){let k=(E+f+1)%(o.openStart+1),C=h[k];if(C)for(let S=0;S<l.length;S++){let M=l[(S+p)%l.length],O=!0;M<0&&(O=!1,M=-M);let A=i.node(M-1),T=i.index(M-1);if(A.canReplaceWith(T,T,C.type,C.marks))return e.replace(i.before(M),O?a.after(M):n,new r.p2(P(o.content,0,o.openStart,k),k,o.openEnd))}}let R=e.steps.length;for(let z=l.length-1;z>=0&&(e.replace(t,n,o),!(e.steps.length>R));z--){let L=l[z];L<0||(t=i.before(L),n=a.after(L))}}(this,e,t,n),this}replaceRangeWith(e,t,n){return!function(e,t,n,o){if(!o.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=M(e.doc,t,o.type);null!=i&&(t=n=i)}e.replaceRange(t,n,new r.p2(r.HY.from(o),0,0))}(this,e,t,n),this}deleteRange(e,t){return!function(e,t,n){let r=e.doc.resolve(t),o=e.doc.resolve(n),i=D(r,o);for(let a=0;a<i.length;a++){let l=i[a],s=a==i.length-1;if(s&&0==l||r.node(l).type.contentMatch.validEnd)return e.delete(r.start(l),o.end(l));if(l>0&&(s||r.node(l-1).canReplace(r.index(l-1),o.indexAfter(l-1))))return e.delete(r.before(l),o.after(l))}for(let u=1;u<=r.depth&&u<=o.depth;u++)if(t-r.start(u)==r.depth-u&&n>r.end(u)&&o.end(u)-n!=o.depth-u)return e.delete(r.before(u),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return!function(e,t,n){let{$from:o,$to:i,depth:a}=t,l=o.before(a+1),s=i.after(a+1),u=l,c=s,d=r.HY.empty,p=0;for(let h=a,f=!1;h>n;h--)f||o.index(h)>0?(f=!0,d=r.HY.from(o.node(h).copy(d)),p++):u--;let m=r.HY.empty,g=0;for(let v=a,y=!1;v>n;v--)y||i.after(v+1)<i.end(v)?(y=!0,m=r.HY.from(i.node(v).copy(m)),g++):c++;e.step(new b(u,c,l,s,new r.p2(d.append(m),p,g),d.size-p,!0))}(this,e,t),this}join(e,t=1){return!function(e,t,n){let o=new v(t-n,t+n,r.p2.empty,!0);e.step(o)}(this,e,t),this}wrap(e,t){return!function(e,t,n){let o=r.HY.empty;for(let i=n.length-1;i>=0;i--){if(o.size){let a=n[i].type.contentMatch.matchFragment(o);if(!a||!a.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=r.HY.from(n[i].type.create(n[i].attrs,o))}let l=t.start,s=t.end;e.step(new b(l,s,l,s,new r.p2(o,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,o=null){return!function(e,t,n,o,i){if(!o.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{var l,s,u;let c,d;if(t.isTextblock&&!t.hasMarkup(o,i)&&(l=e.doc,s=e.mapping.slice(a).map(n),u=o,c=l.resolve(s),d=c.index(),c.parent.canReplaceWith(d,d+1,u))){e.clearIncompatible(e.mapping.slice(a).map(n,1),o);let p=e.mapping.slice(a),h=p.map(n,1),f=p.map(n+t.nodeSize,1);return e.step(new b(h,f,h+1,f-1,new r.p2(r.HY.from(o.create(i,null,t.marks)),0,0),1,!0)),!1}})}(this,e,t,n,o),this}setNodeMarkup(e,t,n=null,o){return!function(e,t,n,o,i){let a=e.doc.nodeAt(t);if(!a)throw RangeError("No node at given position");n||(n=a.type);let l=n.create(o,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,l);if(!n.validContent(a.content))throw RangeError("Invalid content for node type "+n.name);e.step(new b(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new r.p2(r.HY.from(l),0,0),1,!0))}(this,e,t,n,o),this}setNodeAttribute(e,t,n){return this.step(new j(e,t,n)),this}addNodeMark(e,t){return this.step(new m(e,t)),this}removeNodeMark(e,t){if(!(t instanceof r.vc)){let n=this.doc.nodeAt(e);if(!n)throw RangeError("No node at position "+e);if(!(t=t.isInSet(n.marks)))return this}return this.step(new g(e,t)),this}split(e,t=1,n){return!function(e,t,n=1,o){let i=e.doc.resolve(t),a=r.HY.empty,l=r.HY.empty;for(let s=i.depth,u=i.depth-n,c=n-1;s>u;s--,c--){a=r.HY.from(i.node(s).copy(a));let d=o&&o[c];l=r.HY.from(d?d.type.create(d.attrs,l):i.node(s).copy(l))}e.step(new v(t,t,new r.p2(a.append(l),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){var r,o,i,a;let l,s,u,c;return r=this,l=[],s=[],r.doc.nodesBetween(e,t,(r,o,i)=>{if(!r.isInline)return;let a=r.marks;if(!n.isInSet(a)&&i.type.allowsMarkType(n.type)){let d=Math.max(o,e),p=Math.min(o+r.nodeSize,t),m=n.addToSet(a);for(let g=0;g<a.length;g++)a[g].isInSet(m)||(u&&u.to==d&&u.mark.eq(a[g])?u.to=p:l.push(u=new f(d,p,a[g])));c&&c.to==d?c.to=p:s.push(c=new h(d,p,n))}}),l.forEach(e=>r.step(e)),s.forEach(e=>r.step(e)),this}removeMark(e,t,n){var o,i,a,l;let s,u;return o=this,s=[],u=0,o.doc.nodesBetween(e,t,(o,i)=>{if(!o.isInline)return;u++;let a=null;if(n instanceof r.ZU){let l=o.marks,c;for(;c=n.isInSet(l);)(a||(a=[])).push(c),l=c.removeFromSet(l)}else n?n.isInSet(o.marks)&&(a=[n]):a=o.marks;if(a&&a.length){let d=Math.min(i+o.nodeSize,t);for(let p=0;p<a.length;p++){let h=a[p],f;for(let m=0;m<s.length;m++){let g=s[m];g.step==u-1&&h.eq(s[m].style)&&(f=g)}f?(f.to=d,f.step=u):s.push({style:h,from:Math.max(i,e),to:d,step:u})}}}),s.forEach(e=>o.step(new f(e.from,e.to,e.style))),this}clearIncompatible(e,t,n){return!function(e,t,n,o=n.contentMatch){let i=e.doc.nodeAt(t),a=[],l=t+1;for(let s=0;s<i.childCount;s++){let u=i.child(s),c=l+u.nodeSize,d=o.matchType(u.type);if(d){o=d;for(let p=0;p<u.marks.length;p++)n.allowsMarkType(u.marks[p].type)||e.step(new f(l,c,u.marks[p]))}else a.push(new v(l,c,r.p2.empty));l=c}if(!o.validEnd){let h=o.fillBefore(r.HY.empty,!0);e.replace(l,l,new r.p2(h,0,0))}for(let m=a.length-1;m>=0;m--)e.step(a[m])}(this,e,t,n),this}}},66635:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c}});var r=n(2784),o=n(3255),i=n(44729),a=n(43100);let l=Promise.resolve(),s=e=>(0,i.qC)(e?e(0,null):null)[0],u=e=>(t,n,o)=>{let u=(0,r.useRef)(!1),{cache:c,initialSize:d=1,revalidateAll:p=!1,persistSize:h=!1,revalidateFirstPage:f=!0,revalidateOnMount:m=!1,parallel:g=!1}=o,v;try{(v=s(t))&&(v="$inf$"+v)}catch(b){}let[y,x,w]=(0,i.JN)(c,v),E=(0,r.useCallback)(()=>{let e=(0,i.o8)(y()._l)?d:y()._l;return e},[c,v,d]);(0,a.useSyncExternalStore)((0,r.useCallback)(e=>v?w(v,()=>{e()}):()=>{},[c,v]),E,E);let k=(0,r.useCallback)(()=>{let e=y()._l;return(0,i.o8)(e)?d:e},[v,d]),C=(0,r.useRef)(k());(0,i.LI)(()=>{if(!u.current){u.current=!0;return}v&&x({_l:h?C.current:k()})},[v,c]);let S=m&&!u.current,M=e(v,async e=>{let r=y()._i,a=[],l=k(),[s]=(0,i.JN)(c,e),u=s().data,d=[],h=null;for(let m=0;m<l;++m){let[v,b]=(0,i.qC)(t(m,g?null:h));if(!v)break;let[w,E]=(0,i.JN)(c,v),C=w().data,M=p||r||(0,i.o8)(C)||f&&!m&&!(0,i.o8)(u)||S||u&&!(0,i.o8)(u[m])&&!o.compare(u[m],C);if(n&&M){let O=async()=>{C=await n(b),E({data:C,_k:b}),a[m]=C};g?d.push(O):await O()}else a[m]=C;g||(h=C)}return g&&await Promise.all(d.map(e=>e())),x({_i:i.i_}),a},o),O=(0,r.useCallback)(function(e,t){let n="boolean"==typeof t?{revalidate:t}:t||{},r=!1!==n.revalidate;return v?(r&&((0,i.o8)(e)?x({_i:!0}):x({_i:!1})),arguments.length?M.mutate(e,{...n,revalidate:r}):M.mutate()):l},[v,c]),A=(0,r.useCallback)(e=>{if(!v)return l;let[,n]=(0,i.JN)(c,v),r;if((0,i.mf)(e)?r=e(k()):"number"==typeof e&&(r=e),"number"!=typeof r)return l;n({_l:r}),C.current=r;let o=[],[a]=(0,i.JN)(c,v),s=null;for(let u=0;u<r;++u){let[d]=(0,i.qC)(t(u,s)),[p]=(0,i.JN)(c,d),h=d?p().data:i.i_;if((0,i.o8)(h))return O(a().data);o.push(h),s=h}return O(o)},[v,c,O,k]);return{size:k(),setSize:A,mutate:O,get data(){return M.data},get error(){return M.error},get isValidating(){return M.isValidating},get isLoading(){return M.isLoading}}};var c=(0,i.xD)(o.ZP,u)},79899:function(e,t,n){"use strict";function r(e,t,n,r){var o,i=!1,a=0;function l(){o&&clearTimeout(o)}function s(){for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];var d=this,p=Date.now()-a;function h(){a=Date.now(),n.apply(d,u)}!i&&(r&&!o&&h(),l(),void 0===r&&p>e?h():!0!==t&&(o=setTimeout(r?function(){o=void 0}:h,void 0===r?e-p:e)))}return"boolean"!=typeof t&&(r=n,n=t,t=void 0),s.cancel=function(){l(),i=!0},s}function o(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}n.d(t,{D:function(){return o},P:function(){return r}})},16453:function(e,t,n){"use strict";n.d(t,{YG:function(){return d},ue:function(){return r}});var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},i="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent);"undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent);for(var a="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),s=a||i&&57>+i[1],u=0;u<10;u++)r[48+u]=r[96+u]=String(u);for(var u=1;u<=24;u++)r[u+111]="F"+u;for(var u=65;u<=90;u++)r[u]=String.fromCharCode(u+32),o[u]=String.fromCharCode(u);for(var c in r)o.hasOwnProperty(c)||(o[c]=r[c]);function d(e){var t=!(s&&(e.ctrlKey||e.altKey||e.metaKey)||l&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?o:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}},93562:function(e){"use strict";e.exports=JSON.parse('{"AElig":"\xc6","AMP":"&","Aacute":"\xc1","Acirc":"\xc2","Agrave":"\xc0","Aring":"\xc5","Atilde":"\xc3","Auml":"\xc4","COPY":"\xa9","Ccedil":"\xc7","ETH":"\xd0","Eacute":"\xc9","Ecirc":"\xca","Egrave":"\xc8","Euml":"\xcb","GT":">","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},71216:function(e){"use strict";e.exports=JSON.parse('{"0":"�","128":"€","130":"‚","131":"ƒ","132":"„","133":"…","134":"†","135":"‡","136":"ˆ","137":"‰","138":"Š","139":"‹","140":"Œ","142":"Ž","145":"‘","146":"’","147":"“","148":"”","149":"•","150":"–","151":"—","152":"˜","153":"™","154":"š","155":"›","156":"œ","158":"ž","159":"Ÿ"}')},90784:function(e){"use strict";e.exports=JSON.parse('["aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cbs","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","etisalat","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","guardian","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hoteles","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kinder","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","lancia","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","lipsy","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mutual","mv","mw","mx","my","mz","na","nab","nagoya","name","natura","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","northwesternmutual","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","oldnavy","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","passagens","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocher","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","verm\xf6gensberater","verm\xf6gensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volkswagen","volvo","vote","voting","voto","voyage","vu","vuelos","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","اتصالات","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]')}}]);