promptfoo 0.85.2 → 0.86.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/drizzle/0005_silky_millenium_guard.sql +2 -0
- package/dist/drizzle/meta/0005_snapshot.json +427 -0
- package/dist/drizzle/meta/_journal.json +7 -0
- package/dist/package.json +8 -2
- package/dist/src/commands/view.d.ts.map +1 -1
- package/dist/src/commands/view.js +2 -3
- package/dist/src/commands/view.js.map +1 -1
- package/dist/src/constants.d.ts +2 -2
- package/dist/src/constants.d.ts.map +1 -1
- package/dist/src/constants.js +5 -5
- package/dist/src/constants.js.map +1 -1
- package/dist/src/database/tables.d.ts.map +1 -1
- package/dist/src/database/tables.js +2 -1
- package/dist/src/database/tables.js.map +1 -1
- package/dist/src/feedback.d.ts.map +1 -1
- package/dist/src/feedback.js +1 -2
- package/dist/src/feedback.js.map +1 -1
- package/dist/src/fetch.d.ts.map +1 -1
- package/dist/src/fetch.js +14 -12
- package/dist/src/fetch.js.map +1 -1
- package/dist/src/redteam/constants.d.ts +5 -1
- package/dist/src/redteam/constants.d.ts.map +1 -1
- package/dist/src/redteam/constants.js +45 -1
- package/dist/src/redteam/constants.js.map +1 -1
- package/dist/src/server/index.d.ts +2 -0
- package/dist/src/server/index.d.ts.map +1 -0
- package/dist/src/server/index.js +6 -0
- package/dist/src/server/index.js.map +1 -0
- package/dist/src/server/server.d.ts +7 -0
- package/dist/src/server/server.d.ts.map +1 -0
- package/dist/src/{web → server}/server.js +15 -7
- package/dist/src/server/server.js.map +1 -0
- package/dist/src/share.js +2 -2
- package/dist/src/share.js.map +1 -1
- package/dist/src/web/nextui/404/index.html +1 -1
- package/dist/src/web/nextui/404.html +1 -1
- package/dist/src/web/nextui/_next/static/chunks/113-c691bf7d3a37d865.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/189-f9d565af9a2b91cb.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/{602-9e22d91b4f891a16.js → 285-1e2a6158b5f0e918.js} +4 -4
- package/dist/src/web/nextui/_next/static/chunks/417-cbf95fe2bc362650.js +2 -0
- package/dist/src/web/nextui/_next/static/chunks/461-77257ab6b1bb209d.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/646-62a1d1d5b397d18f.js +28 -0
- package/dist/src/web/nextui/_next/static/chunks/782-910eb0e09b818816.js +35 -0
- package/dist/src/web/nextui/_next/static/chunks/86-77b7a9056116d4d0.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/88-f3a7a858d5f4e9a0.js +17 -0
- package/dist/src/web/nextui/_next/static/chunks/906-70c43cd62b2efac1.js +97 -0
- package/dist/src/web/nextui/_next/static/chunks/{972-cbb6d905c3a19e41.js → 972-15d1ab608a24eebf.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/app/auth/login/page-c1dbf0abc580796f.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/auth/signup/page-93b80ab19bdaf2cc.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/datasets/page-17e6d3f57945f88a.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/{page-ee23f6036e60e610.js → page-1e54704d75f36e25.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/app/eval/page-5295461188ef9b43.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/layout-2020c5f7a3d5d614.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/progress/page-ac2f99c11e76f5a5.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/prompts/page-296c32f480e84a57.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/report/page-734a2a4a67b756c4.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/setup/page-35c95dd67114a045.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/main-6b1ff2291a752212.js +1 -0
- package/dist/src/web/nextui/auth/login/index.html +1 -1
- package/dist/src/web/nextui/auth/login/index.txt +3 -3
- package/dist/src/web/nextui/auth/signup/index.html +1 -1
- package/dist/src/web/nextui/auth/signup/index.txt +3 -3
- package/dist/src/web/nextui/datasets/index.html +1 -1
- package/dist/src/web/nextui/datasets/index.txt +3 -3
- package/dist/src/web/nextui/eval/index.html +1 -1
- package/dist/src/web/nextui/eval/index.txt +3 -3
- package/dist/src/web/nextui/index.html +1 -1
- package/dist/src/web/nextui/index.txt +2 -2
- package/dist/src/web/nextui/progress/index.html +1 -1
- package/dist/src/web/nextui/progress/index.txt +3 -3
- package/dist/src/web/nextui/prompts/index.html +1 -1
- package/dist/src/web/nextui/prompts/index.txt +3 -3
- package/dist/src/web/nextui/report/index.html +1 -1
- package/dist/src/web/nextui/report/index.txt +3 -3
- package/dist/src/web/nextui/setup/index.html +1 -1
- package/dist/src/web/nextui/setup/index.txt +3 -3
- package/dist/test/cache.test.js +1 -0
- package/dist/test/cache.test.js.map +1 -1
- package/dist/test/providers.test.js +28 -0
- package/dist/test/providers.test.js.map +1 -1
- package/dist/test/rateLimit.test.d.ts +2 -0
- package/dist/test/rateLimit.test.d.ts.map +1 -0
- package/dist/test/rateLimit.test.js +104 -0
- package/dist/test/rateLimit.test.js.map +1 -0
- package/package.json +8 -2
- package/dist/src/web/nextui/_next/static/chunks/148-1c1aa4563e769657.js +0 -97
- package/dist/src/web/nextui/_next/static/chunks/193-fbb29b23a7b3df82.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/258-eb5cfd6f30e0cdfd.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/264-f97b27096cb02f29.js +0 -17
- package/dist/src/web/nextui/_next/static/chunks/276-b1a73ab92831c2f8.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/325-07eac9e397582e87.js +0 -8
- package/dist/src/web/nextui/_next/static/chunks/346-e25f78ee9c57aa1a.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/391-9f6f260597339469.js +0 -2
- package/dist/src/web/nextui/_next/static/chunks/415-f4cc6df99e1d251e.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/65-d3958feb29430005.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/654-7ef84f69b226e6ab.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/734-d2ca9e7d051c494c.js +0 -28
- package/dist/src/web/nextui/_next/static/chunks/app/auth/login/page-252a14bf379f74d0.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/auth/signup/page-f98e3b4d3b58f5f5.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/datasets/page-1fa704bf80a58a79.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/eval/page-f99f4281a6926ff5.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/layout-b197b953eafa4e71.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/progress/page-7d99e97219b86a6b.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/prompts/page-70ba6f08425e6551.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/report/page-6d40d3051d4e4fe0.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/setup/page-1966e3fc2c36f287.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/main-853e5508e37bbe4c.js +0 -1
- package/dist/src/web/nextui/api/config +0 -1
- package/dist/src/web/nextui/api/datasets +0 -1
- package/dist/src/web/nextui/api/progress +0 -1
- package/dist/src/web/nextui/api/prompts +0 -1
- package/dist/src/web/nextui/api/results +0 -1
- package/dist/src/web/server.d.ts +0 -7
- package/dist/src/web/server.d.ts.map +0 -1
- package/dist/src/web/server.js.map +0 -1
- /package/dist/src/web/nextui/_next/static/{eyHt8CZIUtts2XNkpk_r0 → esmgjQylizTs69qxSTyX7}/_buildManifest.js +0 -0
- /package/dist/src/web/nextui/_next/static/{eyHt8CZIUtts2XNkpk_r0 → esmgjQylizTs69qxSTyX7}/_ssgManifest.js +0 -0
package/dist/src/web/nextui/_next/static/chunks/{602-9e22d91b4f891a16.js → 285-1e2a6158b5f0e918.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[602],{66389:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,f=arguments[0],d=1,h=arguments.length,p=!1;for("boolean"==typeof f&&(p=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<h;++d)if(t=arguments[d],null!=t)for(n in t)r=s(f,n),f!==(i=s(t,n))&&(p&&i&&(l(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&l(r)?r:{},a(f,{name:n,newValue:e(p,c,i)})):void 0!==i&&a(f,{name:n,newValue:i}));return f}},32162:function(e){"use strict";e.exports=function(e,t){var n=t.length,r=e.length;if(r>n)return!1;if(r===n)return e===t;e:for(var i=0,o=0;i<r;i++){for(var l=e.charCodeAt(i);o<n;)if(t.charCodeAt(o++)===l)continue e;return!1}return!0}},64743:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g;function u(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var c=1,f=1;function d(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:c,column:f};return function(t){return t.position=new p(e),y(r),t}}function p(e){this.start=e,this.end={line:c,column:f},this.source=s.source}p.prototype.content=e;var g=[];function m(t){var n=Error(s.source+":"+c+":"+f+": "+t);if(n.reason=t,n.filename=s.source,n.line=c,n.column=f,n.source=e,s.silent)g.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return f+=2,d(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}return y(r),function(){var e,n=[];for(v(n);e=function(){var e=h(),n=y(i);if(n){if(b(),!y(o))return m("property missing ':'");var r=y(l),s=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return y(a),s}}();)!1!==e&&(n.push(e),v(n));return n}()}},39263: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});var i=r(n(64743));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),o="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}}),n}},89396:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},15014:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos")},11116:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown")},65101:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos")},54719:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check")},33533:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},94106:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v2h2V1h-2zm0 15H5l5-6zm9-15h-5v2h5v13l-5-6v9h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"Compare")},7175:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2zm-1 7h5.5L14 6.5z"}),"FileCopy")},45391:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((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-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew")},98507:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow")},72467:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share")},95198:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 10H6v-2h8zm4-4H6v-2h12z"}),"Source")},49605:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},67070:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(95600),s=n(24871),u=n(35843),c=n(19996),f=n(66046),d=n(28702),h=n(29872),p=n(26520),g=n(25702);function m(e){return(0,g.ZP)("MuiAlert",e)}let y=(0,p.Z)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var v=n(52653),b=n(59782),x=n(24004),k=(0,b.Z)((0,x.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),w=(0,b.Z)((0,x.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),C=(0,b.Z)((0,x.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),S=(0,b.Z)((0,x.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),R=n(83691);let E=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],M=e=>{let{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`color${(0,d.Z)(n||r)}`,`${t}${(0,d.Z)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,a.Z)(o,m,i)},P=(0,u.ZP)(h.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,d.Z)(n.color||n.severity)}`]]}})(({theme:e})=>{let t="light"===e.palette.mode?s._j:s.$n,n="light"===e.palette.mode?s.$n:s._j;return(0,i.Z)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${y.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${y.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(([,e])=>e.main&&e.dark).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:(0,i.Z)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)})}))]})}),_=(0,u.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),O=(0,u.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),I=(0,u.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),A={success:(0,x.jsx)(k,{fontSize:"inherit"}),warning:(0,x.jsx)(w,{fontSize:"inherit"}),error:(0,x.jsx)(C,{fontSize:"inherit"}),info:(0,x.jsx)(S,{fontSize:"inherit"})},F=o.forwardRef(function(e,t){let n=(0,c.i)({props:e,name:"MuiAlert"}),{action:o,children:a,className:s,closeText:u="Close",color:d,components:h={},componentsProps:p={},icon:g,iconMapping:m=A,onClose:y,role:b="alert",severity:k="success",slotProps:w={},slots:C={},variant:S="standard"}=n,F=(0,r.Z)(n,E),T=(0,i.Z)({},n,{color:d,severity:k,variant:S,colorSeverity:d||k}),L=M(T),z={slots:(0,i.Z)({closeButton:h.CloseButton,closeIcon:h.CloseIcon},C),slotProps:(0,i.Z)({},p,w)},[D,j]=(0,f.Z)("closeButton",{elementType:v.Z,externalForwardedProps:z,ownerState:T}),[N,V]=(0,f.Z)("closeIcon",{elementType:R.Z,externalForwardedProps:z,ownerState:T});return(0,x.jsxs)(P,(0,i.Z)({role:b,elevation:0,ownerState:T,className:(0,l.Z)(L.root,s),ref:t},F,{children:[!1!==g?(0,x.jsx)(_,{ownerState:T,className:L.icon,children:g||m[k]||A[k]}):null,(0,x.jsx)(O,{ownerState:T,className:L.message,children:a}),null!=o?(0,x.jsx)(I,{ownerState:T,className:L.action,children:o}):null,null==o&&y?(0,x.jsx)(I,{ownerState:T,className:L.action,children:(0,x.jsx)(D,(0,i.Z)({size:"small","aria-label":u,title:u,color:"inherit",onClick:y},j,{children:(0,x.jsx)(N,(0,i.Z)({fontSize:"small"},V))}))}):null]}))});var T=F},27760:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(95600),s=n(24871),u=n(28702),c=n(35843),f=n(22630),d=n(73292),h=n(59592),p=n(84008),g=n(26520),m=n(25702);function y(e){return(0,m.ZP)("PrivateSwitchBase",e)}(0,g.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var v=n(24004);let b=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],x=e=>{let{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${(0,u.Z)(i)}`],input:["input"]};return(0,a.Z)(o,y,t)},k=(0,c.ZP)(p.Z)(({ownerState:e})=>(0,i.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),w=(0,c.ZP)("input",{shouldForwardProp:f.Z})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),C=o.forwardRef(function(e,t){let{autoFocus:n,checked:o,checkedIcon:a,className:s,defaultChecked:u,disabled:c,disableFocusRipple:f=!1,edge:p=!1,icon:g,id:m,inputProps:y,inputRef:C,name:S,onBlur:R,onChange:E,onFocus:M,readOnly:P,required:_=!1,tabIndex:O,type:I,value:A}=e,F=(0,r.Z)(e,b),[T,L]=(0,d.Z)({controlled:o,default:!!u,name:"SwitchBase",state:"checked"}),z=(0,h.Z)(),D=c;z&&void 0===D&&(D=z.disabled);let j="checkbox"===I||"radio"===I,N=(0,i.Z)({},e,{checked:T,disabled:D,disableFocusRipple:f,edge:p}),V=x(N);return(0,v.jsxs)(k,(0,i.Z)({component:"span",className:(0,l.Z)(V.root,s),centerRipple:!0,focusRipple:!f,disabled:D,tabIndex:null,role:void 0,onFocus:e=>{M&&M(e),z&&z.onFocus&&z.onFocus(e)},onBlur:e=>{R&&R(e),z&&z.onBlur&&z.onBlur(e)},ownerState:N,ref:t},F,{children:[(0,v.jsx)(w,(0,i.Z)({autoFocus:n,checked:o,defaultChecked:u,className:V.input,disabled:D,id:j?m:void 0,name:S,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;L(t),E&&E(e,t)},readOnly:P,ref:C,required:_,ownerState:N,tabIndex:O,type:I},"checkbox"===I&&void 0===A?{}:{value:A},y)),T?a:g]}))});var S=n(59782),R=(0,S.Z)((0,v.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"}),"CheckBoxOutlineBlank"),E=(0,S.Z)((0,v.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),M=(0,S.Z)((0,v.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-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),P=n(19996);function _(e){return(0,m.ZP)("MuiCheckbox",e)}let O=(0,g.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),I=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],A=e=>{let{classes:t,indeterminate:n,color:r,size:o}=e,l={root:["root",n&&"indeterminate",`color${(0,u.Z)(r)}`,`size${(0,u.Z)(o)}`]},s=(0,a.Z)(l,_,t);return(0,i.Z)({},t,s)},F=(0,c.ZP)(C,{shouldForwardProp:e=>(0,f.Z)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,u.Z)(n.size)}`],"default"!==n.color&&t[`color${(0,u.Z)(n.color)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${O.checked}, &.${O.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${O.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),T=(0,v.jsx)(E,{}),L=(0,v.jsx)(R,{}),z=(0,v.jsx)(M,{}),D=o.forwardRef(function(e,t){var n,a;let s=(0,P.i)({props:e,name:"MuiCheckbox"}),{checkedIcon:u=T,color:c="primary",icon:f=L,indeterminate:d=!1,indeterminateIcon:h=z,inputProps:p,size:g="medium",className:m}=s,y=(0,r.Z)(s,I),b=d?h:f,x=d?h:u,k=(0,i.Z)({},s,{color:c,indeterminate:d,size:g}),w=A(k);return(0,v.jsx)(F,(0,i.Z)({type:"checkbox",inputProps:(0,i.Z)({"data-indeterminate":d},p),icon:o.cloneElement(b,{fontSize:null!=(n=b.props.fontSize)?n:g}),checkedIcon:o.cloneElement(x,{fontSize:null!=(a=x.props.fontSize)?a:g}),ownerState:k,ref:t,className:(0,l.Z)(w.root,m)},y,{classes:w}))});var j=D},54986:function(e,t,n){"use strict";var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(95600),s=n(24871),u=n(35843),c=n(19996),f=n(55563),d=n(24004);let h=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],p=e=>{let{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:l,textAlign:s,variant:u}=e;return(0,a.Z)({root:["root",t&&"absolute",u,o&&"light","vertical"===l&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===l&&"withChildrenVertical","right"===s&&"vertical"!==l&&"textAlignRight","left"===s&&"vertical"!==l&&"textAlignLeft"],wrapper:["wrapper","vertical"===l&&"wrapperVertical"]},f.V,r)},g=(0,u.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>(0,i.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,s.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>(0,i.Z)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>(0,i.Z)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>(0,i.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>(0,i.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),m=(0,u.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>(0,i.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),y=o.forwardRef(function(e,t){let n=(0,c.i)({props:e,name:"MuiDivider"}),{absolute:o=!1,children:a,className:s,component:u=a?"div":"hr",flexItem:f=!1,light:y=!1,orientation:v="horizontal",role:b="hr"!==u?"separator":void 0,textAlign:x="center",variant:k="fullWidth"}=n,w=(0,r.Z)(n,h),C=(0,i.Z)({},n,{absolute:o,component:u,flexItem:f,light:y,orientation:v,role:b,textAlign:x,variant:k}),S=p(C);return(0,d.jsx)(g,(0,i.Z)({as:u,className:(0,l.Z)(S.root,s),role:b,ref:t,ownerState:C},w,{children:a?(0,d.jsx)(m,{className:S.wrapper,ownerState:C,children:a}):null}))});y.muiSkipListHighlight=!0,t.Z=y},40182:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(95600),s=n(59592),u=n(13457),c=n(43226),f=n(28702),d=n(35843),h=n(19996),p=n(26520),g=n(25702);function m(e){return(0,g.ZP)("MuiFormControlLabel",e)}let y=(0,p.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var v=n(54379),b=n(24004);let x=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],k=e=>{let{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,l={root:["root",n&&"disabled",`labelPlacement${(0,f.Z)(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,a.Z)(l,m,t)},w=(0,d.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${y.label}`]:t.label},t.root,t[`labelPlacement${(0,f.Z)(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${y.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${y.label}`]:{[`&.${y.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),C=(0,d.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${y.error}`]:{color:(e.vars||e).palette.error.main}})),S=o.forwardRef(function(e,t){var n,a;let f=(0,h.i)({props:e,name:"MuiFormControlLabel"}),{className:d,componentsProps:p={},control:g,disabled:m,disableTypography:y,label:S,labelPlacement:R="end",required:E,slotProps:M={}}=f,P=(0,r.Z)(f,x),_=(0,s.Z)(),O=null!=(n=null!=m?m:g.props.disabled)?n:null==_?void 0:_.disabled,I=null!=E?E:g.props.required,A={disabled:O,required:I};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===g.props[e]&&void 0!==f[e]&&(A[e]=f[e])});let F=(0,v.Z)({props:f,muiFormControl:_,states:["error"]}),T=(0,i.Z)({},f,{disabled:O,labelPlacement:R,required:I,error:F.error}),L=k(T),z=null!=(a=M.typography)?a:p.typography,D=S;return null==D||D.type===c.Z||y||(D=(0,b.jsx)(c.Z,(0,i.Z)({component:"span"},z,{className:(0,l.Z)(L.label,null==z?void 0:z.className),children:D}))),(0,b.jsxs)(w,(0,i.Z)({className:(0,l.Z)(L.root,d),ownerState:T,ref:t},P,{children:[o.cloneElement(g,A),I?(0,b.jsxs)(u.Z,{display:"block",children:[D,(0,b.jsxs)(C,{ownerState:T,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):D]}))});var R=S},81679:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r,i=n(94312),o=n(79042),l=n(14978),a=n(53468),s=n(95600),u=n(28702),c=n(43226),f=n(2592),d=n(59592),h=n(35843),p=n(26520),g=n(25702);function m(e){return(0,g.ZP)("MuiInputAdornment",e)}let y=(0,p.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var v=n(19996),b=n(24004);let x=["children","className","component","disablePointerEvents","disableTypography","position","variant"],k=e=>{let{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:l}=e,a={root:["root",n&&"disablePointerEvents",i&&`position${(0,u.Z)(i)}`,l,r&&"hiddenLabel",o&&`size${(0,u.Z)(o)}`]};return(0,s.Z)(a,m,t)},w=(0,h.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${(0,u.Z)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>(0,o.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${y.positionStart}&:not(.${y.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),C=l.forwardRef(function(e,t){let n=(0,v.i)({props:e,name:"MuiInputAdornment"}),{children:s,className:u,component:h="div",disablePointerEvents:p=!1,disableTypography:g=!1,position:m,variant:y}=n,C=(0,i.Z)(n,x),S=(0,d.Z)()||{},R=y;y&&S.variant,S&&!R&&(R=S.variant);let E=(0,o.Z)({},n,{hiddenLabel:S.hiddenLabel,size:S.size,disablePointerEvents:p,position:m,variant:R}),M=k(E);return(0,b.jsx)(f.Z.Provider,{value:null,children:(0,b.jsx)(w,(0,o.Z)({as:h,ownerState:E,className:(0,a.Z)(M.root,u),ref:t},C,{children:"string"!=typeof s||g?(0,b.jsxs)(l.Fragment,{children:["start"===m?r||(r=(0,b.jsx)("span",{className:"notranslate",children:""})):null,s]}):(0,b.jsx)(c.Z,{color:"text.secondary",children:s})}))})});var S=C},18960:function(e,t,n){"use strict";n.d(t,{Z:function(){return V}});var r=n(94312),i=n(79042),o=n(14978),l=n(95600),a=n(73208),s=n(73536),u=n(78136),c=n(1535),f=function(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:l,resumeHideDuration:a}=e,f=(0,s.Z)();o.useEffect(()=>{if(l)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==r||r(e,"escapeKeyDown")}},[l,r]);let d=(0,u.Z)((e,t)=>{null==r||r(e,t)}),h=(0,u.Z)(e=>{r&&null!=e&&f.start(e,()=>{d(null,"timeout")})});o.useEffect(()=>(l&&h(t),f.clear),[l,t,h,f]);let p=f.clear,g=o.useCallback(()=>{null!=t&&h(null!=a?a:.5*t)},[t,a,h]),m=e=>t=>{let n=e.onBlur;null==n||n(t),g()},y=e=>t=>{let n=e.onFocus;null==n||n(t),p()},v=e=>t=>{let n=e.onMouseEnter;null==n||n(t),p()},b=e=>t=>{let n=e.onMouseLeave;null==n||n(t),g()};return o.useEffect(()=>{if(!n&&l)return window.addEventListener("focus",g),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",p)}},[n,l,g,p]),{getRootProps:(t={})=>{let n=(0,i.Z)({},(0,c.Z)(e),(0,c.Z)(t));return(0,i.Z)({role:"presentation"},t,n,{onBlur:m(n),onFocus:y(n),onMouseEnter:v(n),onMouseLeave:b(n)})},onClickAway:e=>{null==r||r(e,"clickaway")}}},d=n(95137),h=n(96278),p=n(24004);function g(e){return e.substring(2).toLowerCase()}function m(e){let{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:l="onTouchEnd"}=e,a=o.useRef(!1),s=o.useRef(null),c=o.useRef(!1),f=o.useRef(!1);o.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);let m=(0,d.Z)(t.ref,s),y=(0,u.Z)(e=>{let t=f.current;f.current=!1;let r=(0,h.Z)(s.current);if(c.current&&s.current&&(!("clientX"in e)||!(r.documentElement.clientWidth<e.clientX)&&!(r.documentElement.clientHeight<e.clientY))){if(a.current){a.current=!1;return}(e.composedPath?e.composedPath().indexOf(s.current)>-1:!r.documentElement.contains(e.target)||s.current.contains(e.target))||!n&&t||i(e)}}),v=e=>n=>{f.current=!0;let r=t.props[e];r&&r(n)},b={ref:m};return!1!==l&&(b[l]=v(l)),o.useEffect(()=>{if(!1!==l){let e=g(l),t=(0,h.Z)(s.current),n=()=>{a.current=!0};return t.addEventListener(e,y),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,y),t.removeEventListener("touchmove",n)}}},[y,l]),!1!==r&&(b[r]=v(r)),o.useEffect(()=>{if(!1!==r){let e=g(r),t=(0,h.Z)(s.current);return t.addEventListener(e,y),()=>{t.removeEventListener(e,y)}}},[y,r]),(0,p.jsx)(o.Fragment,{children:o.cloneElement(t,b)})}var y=n(35843),v=n(41101),b=n(19996),x=n(28702),k=n(56176),w=n(53468),C=n(24871),S=n(29872),R=n(26520),E=n(25702);function M(e){return(0,E.ZP)("MuiSnackbarContent",e)}(0,R.Z)("MuiSnackbarContent",["root","message","action"]);let P=["action","className","message","role"],_=e=>{let{classes:t}=e;return(0,l.Z)({root:["root"],action:["action"],message:["message"]},M,t)},O=(0,y.ZP)(S.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let t="light"===e.palette.mode?.8:.98,n=(0,C._4)(e.palette.background.default,t);return(0,i.Z)({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),I=(0,y.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),A=(0,y.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),F=o.forwardRef(function(e,t){let n=(0,b.i)({props:e,name:"MuiSnackbarContent"}),{action:o,className:l,message:a,role:s="alert"}=n,u=(0,r.Z)(n,P),c=_(n);return(0,p.jsxs)(O,(0,i.Z)({role:s,square:!0,elevation:6,className:(0,w.Z)(c.root,l),ownerState:n,ref:t},u,{children:[(0,p.jsx)(I,{className:c.message,ownerState:n,children:a}),o?(0,p.jsx)(A,{className:c.action,ownerState:n,children:o}):null]}))});function T(e){return(0,E.ZP)("MuiSnackbar",e)}(0,R.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);let L=["onEnter","onExited"],z=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],D=e=>{let{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${(0,x.Z)(n.vertical)}${(0,x.Z)(n.horizontal)}`]};return(0,l.Z)(r,T,t)},j=(0,y.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`anchorOrigin${(0,x.Z)(n.anchorOrigin.vertical)}${(0,x.Z)(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:(0,i.Z)({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===t.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===t.anchorOrigin.horizontal&&{right:24,left:"auto"})})),N=o.forwardRef(function(e,t){let n=(0,b.i)({props:e,name:"MuiSnackbar"}),l=(0,v.Z)(),s={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{action:u,anchorOrigin:{vertical:c,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:h=null,children:g,className:y,ClickAwayListenerProps:x,ContentProps:w,disableWindowBlurListener:C=!1,message:S,open:R,TransitionComponent:E=k.Z,transitionDuration:M=s,TransitionProps:{onEnter:P,onExited:_}={}}=n,O=(0,r.Z)(n.TransitionProps,L),I=(0,r.Z)(n,z),A=(0,i.Z)({},n,{anchorOrigin:{vertical:c,horizontal:d},autoHideDuration:h,disableWindowBlurListener:C,TransitionComponent:E,transitionDuration:M}),T=D(A),{getRootProps:N,onClickAway:V}=f((0,i.Z)({},A)),[B,H]=o.useState(!0),q=(0,a.Z)({elementType:j,getSlotProps:N,externalForwardedProps:I,ownerState:A,additionalProps:{ref:t},className:[T.root,y]});return!R&&B?null:(0,p.jsx)(m,(0,i.Z)({onClickAway:V},x,{children:(0,p.jsx)(j,(0,i.Z)({},q,{children:(0,p.jsx)(E,(0,i.Z)({appear:!0,in:R,timeout:M,direction:"top"===c?"down":"up",onEnter:(e,t)=>{H(!1),P&&P(e,t)},onExited:e=>{H(!0),_&&_(e)}},O,{children:g||(0,p.jsx)(F,(0,i.Z)({message:S,action:u},w))}))}))}))});var V=N},72053:function(e,t,n){"use strict";n.d(t,{Nr:function(){return l}});var r=n(14978);function i(e,t){return e===t}function o(e,t){return t}function l(e,t,n){var l=n&&n.equalityFn||i,a=(0,r.useReducer)(o,e),s=a[0],u=a[1],c=function(e,t,n){var i=this,o=(0,r.useRef)(null),l=(0,r.useRef)(0),a=(0,r.useRef)(null),s=(0,r.useRef)([]),u=(0,r.useRef)(),c=(0,r.useRef)(),f=(0,r.useRef)(e),d=(0,r.useRef)(!0);f.current=e;var h="undefined"!=typeof window,p=!t&&0!==t&&h;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,y="maxWait"in n,v="debounceOnServer"in n&&!!n.debounceOnServer,b=y?Math.max(+n.maxWait||0,t):null;return(0,r.useEffect)(function(){return d.current=!0,function(){d.current=!1}},[]),(0,r.useMemo)(function(){var e=function(e){var t=s.current,n=u.current;return s.current=u.current=null,l.current=e,c.current=f.current.apply(n,t)},n=function(e,t){p&&cancelAnimationFrame(a.current),a.current=p?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!d.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||y&&e-l.current>=b},x=function(t){return a.current=null,m&&s.current?e(t):(s.current=u.current=null,c.current)},k=function e(){var i=Date.now();if(r(i))return x(i);if(d.current){var a=t-(i-o.current);n(e,y?Math.min(a,b-(i-l.current)):a)}},w=function(){if(h||v){var f=Date.now(),p=r(f);if(s.current=[].slice.call(arguments),u.current=i,o.current=f,p){if(!a.current&&d.current)return l.current=o.current,n(k,t),g?e(o.current):c.current;if(y)return n(k,t),e(o.current)}return a.current||n(k,t),c.current}};return w.cancel=function(){a.current&&(p?cancelAnimationFrame(a.current):clearTimeout(a.current)),l.current=0,s.current=o.current=u.current=a.current=null},w.isPending=function(){return!!a.current},w.flush=function(){return a.current?x(Date.now()):c.current},w},[g,y,t,b,m,p,h,v])}((0,r.useCallback)(function(e){return u(e)},[u]),t,n),f=(0,r.useRef)(e);return l(f.current,e)||(c(e),f.current=e),l(s,e)&&c.cancel(),[s,c]}},27271:function(e,t,n){"use strict";let r,i;/*!
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[285],{66389:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,f=arguments[0],d=1,h=arguments.length,p=!1;for("boolean"==typeof f&&(p=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<h;++d)if(t=arguments[d],null!=t)for(n in t)r=s(f,n),f!==(i=s(t,n))&&(p&&i&&(l(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&l(r)?r:{},a(f,{name:n,newValue:e(p,c,i)})):void 0!==i&&a(f,{name:n,newValue:i}));return f}},32162:function(e){"use strict";e.exports=function(e,t){var n=t.length,r=e.length;if(r>n)return!1;if(r===n)return e===t;e:for(var i=0,o=0;i<r;i++){for(var l=e.charCodeAt(i);o<n;)if(t.charCodeAt(o++)===l)continue e;return!1}return!0}},64743:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g;function u(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var c=1,f=1;function d(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:c,column:f};return function(t){return t.position=new p(e),v(r),t}}function p(e){this.start=e,this.end={line:c,column:f},this.source=s.source}p.prototype.content=e;var g=[];function m(t){var n=Error(s.source+":"+c+":"+f+": "+t);if(n.reason=t,n.filename=s.source,n.line=c,n.column=f,n.source=e,s.silent)g.push(n);else throw n}function v(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return f+=2,d(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}return v(r),function(){var e,n=[];for(y(n);e=function(){var e=h(),n=v(i);if(n){if(b(),!v(o))return m("property missing ':'");var r=v(l),s=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return v(a),s}}();)!1!==e&&(n.push(e),y(n));return n}()}},77580:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function l(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:l}catch(e){n=l}}();var s=[],u=!1,c=-1;function f(){u&&r&&(u=!1,r.length?s=r.concat(s):c=-1,s.length&&d())}function d(){if(!u){var e=a(f);u=!0;for(var t=s.length;t;){for(r=s,s=[];++c<t;)r&&r[c].run();c=-1,t=s.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===l||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||u||a(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},69179:function(e,t,n){"use strict";n.d(t,{SV:function(){return l}});var r=n(14978);let i=(0,r.createContext)(null),o={didCatch:!1,error:null};class l extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=o}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,i=Array(r),l=0;l<r;l++)i[l]=arguments[l];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:i,reason:"imperative-api"}),this.setState(o)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){let{didCatch:n}=this.state,{resetKeys:r}=this.props;if(n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)){var i,l;null===(i=(l=this.props).onReset)||void 0===i||i.call(l,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(o)}}render(){let{children:e,fallbackRender:t,FallbackComponent:n,fallback:o}=this.props,{didCatch:l,error:a}=this.state,s=e;if(l){let e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)s=t(e);else if(n)s=(0,r.createElement)(n,e);else if(null===o||(0,r.isValidElement)(o))s=o;else throw a}return(0,r.createElement)(i.Provider,{value:{didCatch:l,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}},39263: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});var i=r(n(64743));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),o="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}}),n}},89396:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},15014:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos")},11116:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown")},65101:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos")},54719:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check")},33533:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},94106:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v2h2V1h-2zm0 15H5l5-6zm9-15h-5v2h5v13l-5-6v9h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"Compare")},39329:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},46446:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},13391:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit")},7175:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2zm-1 7h5.5L14 6.5z"}),"FileCopy")},45391:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((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-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew")},98507:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow")},72467:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share")},95198:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 10H6v-2h8zm4-4H6v-2h12z"}),"Source")},49605:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(80984)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},67070:function(e,t,n){"use strict";n.d(t,{Z:function(){return F}});var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(95600),s=n(24871),u=n(35843),c=n(19996),f=n(66046),d=n(28702),h=n(29872),p=n(26520),g=n(25702);function m(e){return(0,g.ZP)("MuiAlert",e)}let v=(0,p.Z)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var y=n(52653),b=n(59782),x=n(24004),k=(0,b.Z)((0,x.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),w=(0,b.Z)((0,x.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),C=(0,b.Z)((0,x.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),S=(0,b.Z)((0,x.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),R=n(83691);let E=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],M=e=>{let{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`color${(0,d.Z)(n||r)}`,`${t}${(0,d.Z)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,a.Z)(o,m,i)},P=(0,u.ZP)(h.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,d.Z)(n.color||n.severity)}`]]}})(({theme:e})=>{let t="light"===e.palette.mode?s._j:s.$n,n="light"===e.palette.mode?s.$n:s._j;return(0,i.Z)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${v.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${v.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(([,e])=>e.main&&e.dark).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:(0,i.Z)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)})}))]})}),_=(0,u.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),O=(0,u.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),A=(0,u.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),I={success:(0,x.jsx)(k,{fontSize:"inherit"}),warning:(0,x.jsx)(w,{fontSize:"inherit"}),error:(0,x.jsx)(C,{fontSize:"inherit"}),info:(0,x.jsx)(S,{fontSize:"inherit"})},T=o.forwardRef(function(e,t){let n=(0,c.i)({props:e,name:"MuiAlert"}),{action:o,children:a,className:s,closeText:u="Close",color:d,components:h={},componentsProps:p={},icon:g,iconMapping:m=I,onClose:v,role:b="alert",severity:k="success",slotProps:w={},slots:C={},variant:S="standard"}=n,T=(0,r.Z)(n,E),F=(0,i.Z)({},n,{color:d,severity:k,variant:S,colorSeverity:d||k}),L=M(F),z={slots:(0,i.Z)({closeButton:h.CloseButton,closeIcon:h.CloseIcon},C),slotProps:(0,i.Z)({},p,w)},[D,j]=(0,f.Z)("closeButton",{elementType:y.Z,externalForwardedProps:z,ownerState:F}),[N,V]=(0,f.Z)("closeIcon",{elementType:R.Z,externalForwardedProps:z,ownerState:F});return(0,x.jsxs)(P,(0,i.Z)({role:b,elevation:0,ownerState:F,className:(0,l.Z)(L.root,s),ref:t},T,{children:[!1!==g?(0,x.jsx)(_,{ownerState:F,className:L.icon,children:g||m[k]||I[k]}):null,(0,x.jsx)(O,{ownerState:F,className:L.message,children:a}),null!=o?(0,x.jsx)(A,{ownerState:F,className:L.action,children:o}):null,null==o&&v?(0,x.jsx)(A,{ownerState:F,className:L.action,children:(0,x.jsx)(D,(0,i.Z)({size:"small","aria-label":u,title:u,color:"inherit",onClick:v},j,{children:(0,x.jsx)(N,(0,i.Z)({fontSize:"small"},V))}))}):null]}))});var F=T},27760:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(95600),s=n(24871),u=n(28702),c=n(35843),f=n(22630),d=n(73292),h=n(59592),p=n(84008),g=n(26520),m=n(25702);function v(e){return(0,m.ZP)("PrivateSwitchBase",e)}(0,g.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var y=n(24004);let b=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],x=e=>{let{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${(0,u.Z)(i)}`],input:["input"]};return(0,a.Z)(o,v,t)},k=(0,c.ZP)(p.Z)(({ownerState:e})=>(0,i.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),w=(0,c.ZP)("input",{shouldForwardProp:f.Z})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),C=o.forwardRef(function(e,t){let{autoFocus:n,checked:o,checkedIcon:a,className:s,defaultChecked:u,disabled:c,disableFocusRipple:f=!1,edge:p=!1,icon:g,id:m,inputProps:v,inputRef:C,name:S,onBlur:R,onChange:E,onFocus:M,readOnly:P,required:_=!1,tabIndex:O,type:A,value:I}=e,T=(0,r.Z)(e,b),[F,L]=(0,d.Z)({controlled:o,default:!!u,name:"SwitchBase",state:"checked"}),z=(0,h.Z)(),D=c;z&&void 0===D&&(D=z.disabled);let j="checkbox"===A||"radio"===A,N=(0,i.Z)({},e,{checked:F,disabled:D,disableFocusRipple:f,edge:p}),V=x(N);return(0,y.jsxs)(k,(0,i.Z)({component:"span",className:(0,l.Z)(V.root,s),centerRipple:!0,focusRipple:!f,disabled:D,tabIndex:null,role:void 0,onFocus:e=>{M&&M(e),z&&z.onFocus&&z.onFocus(e)},onBlur:e=>{R&&R(e),z&&z.onBlur&&z.onBlur(e)},ownerState:N,ref:t},T,{children:[(0,y.jsx)(w,(0,i.Z)({autoFocus:n,checked:o,defaultChecked:u,className:V.input,disabled:D,id:j?m:void 0,name:S,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;L(t),E&&E(e,t)},readOnly:P,ref:C,required:_,ownerState:N,tabIndex:O,type:A},"checkbox"===A&&void 0===I?{}:{value:I},v)),F?a:g]}))});var S=n(59782),R=(0,S.Z)((0,y.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"}),"CheckBoxOutlineBlank"),E=(0,S.Z)((0,y.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),M=(0,S.Z)((0,y.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-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),P=n(19996);function _(e){return(0,m.ZP)("MuiCheckbox",e)}let O=(0,g.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),A=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],I=e=>{let{classes:t,indeterminate:n,color:r,size:o}=e,l={root:["root",n&&"indeterminate",`color${(0,u.Z)(r)}`,`size${(0,u.Z)(o)}`]},s=(0,a.Z)(l,_,t);return(0,i.Z)({},t,s)},T=(0,c.ZP)(C,{shouldForwardProp:e=>(0,f.Z)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,u.Z)(n.size)}`],"default"!==n.color&&t[`color${(0,u.Z)(n.color)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${O.checked}, &.${O.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${O.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),F=(0,y.jsx)(E,{}),L=(0,y.jsx)(R,{}),z=(0,y.jsx)(M,{}),D=o.forwardRef(function(e,t){var n,a;let s=(0,P.i)({props:e,name:"MuiCheckbox"}),{checkedIcon:u=F,color:c="primary",icon:f=L,indeterminate:d=!1,indeterminateIcon:h=z,inputProps:p,size:g="medium",className:m}=s,v=(0,r.Z)(s,A),b=d?h:f,x=d?h:u,k=(0,i.Z)({},s,{color:c,indeterminate:d,size:g}),w=I(k);return(0,y.jsx)(T,(0,i.Z)({type:"checkbox",inputProps:(0,i.Z)({"data-indeterminate":d},p),icon:o.cloneElement(b,{fontSize:null!=(n=b.props.fontSize)?n:g}),checkedIcon:o.cloneElement(x,{fontSize:null!=(a=x.props.fontSize)?a:g}),ownerState:k,ref:t,className:(0,l.Z)(w.root,m)},v,{classes:w}))});var j=D},64173:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(95600),s=n(35843),u=n(22630),c=n(19996),f=n(43226),d=n(26520),h=n(25702);function p(e){return(0,h.ZP)("MuiDialogContentText",e)}(0,d.Z)("MuiDialogContentText",["root"]);var g=n(24004);let m=["children","className"],v=e=>{let{classes:t}=e,n=(0,a.Z)({root:["root"]},p,t);return(0,i.Z)({},t,n)},y=(0,s.ZP)(f.Z,{shouldForwardProp:e=>(0,u.Z)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),b=o.forwardRef(function(e,t){let n=(0,c.i)({props:e,name:"MuiDialogContentText"}),{className:o}=n,a=(0,r.Z)(n,m),s=v(a);return(0,g.jsx)(y,(0,i.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:a,className:(0,l.Z)(s.root,o)},n,{classes:s}))});var x=b},54986:function(e,t,n){"use strict";var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(95600),s=n(24871),u=n(35843),c=n(19996),f=n(55563),d=n(24004);let h=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],p=e=>{let{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:l,textAlign:s,variant:u}=e;return(0,a.Z)({root:["root",t&&"absolute",u,o&&"light","vertical"===l&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===l&&"withChildrenVertical","right"===s&&"vertical"!==l&&"textAlignRight","left"===s&&"vertical"!==l&&"textAlignLeft"],wrapper:["wrapper","vertical"===l&&"wrapperVertical"]},f.V,r)},g=(0,u.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>(0,i.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,s.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>(0,i.Z)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>(0,i.Z)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>(0,i.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>(0,i.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),m=(0,u.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>(0,i.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),v=o.forwardRef(function(e,t){let n=(0,c.i)({props:e,name:"MuiDivider"}),{absolute:o=!1,children:a,className:s,component:u=a?"div":"hr",flexItem:f=!1,light:v=!1,orientation:y="horizontal",role:b="hr"!==u?"separator":void 0,textAlign:x="center",variant:k="fullWidth"}=n,w=(0,r.Z)(n,h),C=(0,i.Z)({},n,{absolute:o,component:u,flexItem:f,light:v,orientation:y,role:b,textAlign:x,variant:k}),S=p(C);return(0,d.jsx)(g,(0,i.Z)({as:u,className:(0,l.Z)(S.root,s),role:b,ref:t,ownerState:C},w,{children:a?(0,d.jsx)(m,{className:S.wrapper,ownerState:C,children:a}):null}))});v.muiSkipListHighlight=!0,t.Z=v},40182:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(95600),s=n(59592),u=n(13457),c=n(43226),f=n(28702),d=n(35843),h=n(19996),p=n(26520),g=n(25702);function m(e){return(0,g.ZP)("MuiFormControlLabel",e)}let v=(0,p.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var y=n(54379),b=n(24004);let x=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],k=e=>{let{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,l={root:["root",n&&"disabled",`labelPlacement${(0,f.Z)(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,a.Z)(l,m,t)},w=(0,d.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${v.label}`]:t.label},t.root,t[`labelPlacement${(0,f.Z)(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${v.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${v.label}`]:{[`&.${v.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),C=(0,d.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${v.error}`]:{color:(e.vars||e).palette.error.main}})),S=o.forwardRef(function(e,t){var n,a;let f=(0,h.i)({props:e,name:"MuiFormControlLabel"}),{className:d,componentsProps:p={},control:g,disabled:m,disableTypography:v,label:S,labelPlacement:R="end",required:E,slotProps:M={}}=f,P=(0,r.Z)(f,x),_=(0,s.Z)(),O=null!=(n=null!=m?m:g.props.disabled)?n:null==_?void 0:_.disabled,A=null!=E?E:g.props.required,I={disabled:O,required:A};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===g.props[e]&&void 0!==f[e]&&(I[e]=f[e])});let T=(0,y.Z)({props:f,muiFormControl:_,states:["error"]}),F=(0,i.Z)({},f,{disabled:O,labelPlacement:R,required:A,error:T.error}),L=k(F),z=null!=(a=M.typography)?a:p.typography,D=S;return null==D||D.type===c.Z||v||(D=(0,b.jsx)(c.Z,(0,i.Z)({component:"span"},z,{className:(0,l.Z)(L.label,null==z?void 0:z.className),children:D}))),(0,b.jsxs)(w,(0,i.Z)({className:(0,l.Z)(L.root,d),ownerState:F,ref:t},P,{children:[o.cloneElement(g,I),A?(0,b.jsxs)(u.Z,{display:"block",children:[D,(0,b.jsxs)(C,{ownerState:F,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):D]}))});var R=S},81679:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r,i=n(94312),o=n(79042),l=n(14978),a=n(53468),s=n(95600),u=n(28702),c=n(43226),f=n(2592),d=n(59592),h=n(35843),p=n(26520),g=n(25702);function m(e){return(0,g.ZP)("MuiInputAdornment",e)}let v=(0,p.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var y=n(19996),b=n(24004);let x=["children","className","component","disablePointerEvents","disableTypography","position","variant"],k=e=>{let{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:l}=e,a={root:["root",n&&"disablePointerEvents",i&&`position${(0,u.Z)(i)}`,l,r&&"hiddenLabel",o&&`size${(0,u.Z)(o)}`]};return(0,s.Z)(a,m,t)},w=(0,h.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${(0,u.Z)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>(0,o.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${v.positionStart}&:not(.${v.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),C=l.forwardRef(function(e,t){let n=(0,y.i)({props:e,name:"MuiInputAdornment"}),{children:s,className:u,component:h="div",disablePointerEvents:p=!1,disableTypography:g=!1,position:m,variant:v}=n,C=(0,i.Z)(n,x),S=(0,d.Z)()||{},R=v;v&&S.variant,S&&!R&&(R=S.variant);let E=(0,o.Z)({},n,{hiddenLabel:S.hiddenLabel,size:S.size,disablePointerEvents:p,position:m,variant:R}),M=k(E);return(0,b.jsx)(f.Z.Provider,{value:null,children:(0,b.jsx)(w,(0,o.Z)({as:h,ownerState:E,className:(0,a.Z)(M.root,u),ref:t},C,{children:"string"!=typeof s||g?(0,b.jsxs)(l.Fragment,{children:["start"===m?r||(r=(0,b.jsx)("span",{className:"notranslate",children:""})):null,s]}):(0,b.jsx)(c.Z,{color:"text.secondary",children:s})}))})});var S=C},18960:function(e,t,n){"use strict";n.d(t,{Z:function(){return V}});var r=n(94312),i=n(79042),o=n(14978),l=n(95600),a=n(73208),s=n(73536),u=n(78136),c=n(1535),f=function(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:l,resumeHideDuration:a}=e,f=(0,s.Z)();o.useEffect(()=>{if(l)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==r||r(e,"escapeKeyDown")}},[l,r]);let d=(0,u.Z)((e,t)=>{null==r||r(e,t)}),h=(0,u.Z)(e=>{r&&null!=e&&f.start(e,()=>{d(null,"timeout")})});o.useEffect(()=>(l&&h(t),f.clear),[l,t,h,f]);let p=f.clear,g=o.useCallback(()=>{null!=t&&h(null!=a?a:.5*t)},[t,a,h]),m=e=>t=>{let n=e.onBlur;null==n||n(t),g()},v=e=>t=>{let n=e.onFocus;null==n||n(t),p()},y=e=>t=>{let n=e.onMouseEnter;null==n||n(t),p()},b=e=>t=>{let n=e.onMouseLeave;null==n||n(t),g()};return o.useEffect(()=>{if(!n&&l)return window.addEventListener("focus",g),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",p)}},[n,l,g,p]),{getRootProps:(t={})=>{let n=(0,i.Z)({},(0,c.Z)(e),(0,c.Z)(t));return(0,i.Z)({role:"presentation"},t,n,{onBlur:m(n),onFocus:v(n),onMouseEnter:y(n),onMouseLeave:b(n)})},onClickAway:e=>{null==r||r(e,"clickaway")}}},d=n(95137),h=n(96278),p=n(24004);function g(e){return e.substring(2).toLowerCase()}function m(e){let{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:l="onTouchEnd"}=e,a=o.useRef(!1),s=o.useRef(null),c=o.useRef(!1),f=o.useRef(!1);o.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);let m=(0,d.Z)(t.ref,s),v=(0,u.Z)(e=>{let t=f.current;f.current=!1;let r=(0,h.Z)(s.current);if(c.current&&s.current&&(!("clientX"in e)||!(r.documentElement.clientWidth<e.clientX)&&!(r.documentElement.clientHeight<e.clientY))){if(a.current){a.current=!1;return}(e.composedPath?e.composedPath().indexOf(s.current)>-1:!r.documentElement.contains(e.target)||s.current.contains(e.target))||!n&&t||i(e)}}),y=e=>n=>{f.current=!0;let r=t.props[e];r&&r(n)},b={ref:m};return!1!==l&&(b[l]=y(l)),o.useEffect(()=>{if(!1!==l){let e=g(l),t=(0,h.Z)(s.current),n=()=>{a.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,v),t.removeEventListener("touchmove",n)}}},[v,l]),!1!==r&&(b[r]=y(r)),o.useEffect(()=>{if(!1!==r){let e=g(r),t=(0,h.Z)(s.current);return t.addEventListener(e,v),()=>{t.removeEventListener(e,v)}}},[v,r]),(0,p.jsx)(o.Fragment,{children:o.cloneElement(t,b)})}var v=n(35843),y=n(41101),b=n(19996),x=n(28702),k=n(56176),w=n(53468),C=n(24871),S=n(29872),R=n(26520),E=n(25702);function M(e){return(0,E.ZP)("MuiSnackbarContent",e)}(0,R.Z)("MuiSnackbarContent",["root","message","action"]);let P=["action","className","message","role"],_=e=>{let{classes:t}=e;return(0,l.Z)({root:["root"],action:["action"],message:["message"]},M,t)},O=(0,v.ZP)(S.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let t="light"===e.palette.mode?.8:.98,n=(0,C._4)(e.palette.background.default,t);return(0,i.Z)({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),A=(0,v.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),I=(0,v.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),T=o.forwardRef(function(e,t){let n=(0,b.i)({props:e,name:"MuiSnackbarContent"}),{action:o,className:l,message:a,role:s="alert"}=n,u=(0,r.Z)(n,P),c=_(n);return(0,p.jsxs)(O,(0,i.Z)({role:s,square:!0,elevation:6,className:(0,w.Z)(c.root,l),ownerState:n,ref:t},u,{children:[(0,p.jsx)(A,{className:c.message,ownerState:n,children:a}),o?(0,p.jsx)(I,{className:c.action,ownerState:n,children:o}):null]}))});function F(e){return(0,E.ZP)("MuiSnackbar",e)}(0,R.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);let L=["onEnter","onExited"],z=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],D=e=>{let{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${(0,x.Z)(n.vertical)}${(0,x.Z)(n.horizontal)}`]};return(0,l.Z)(r,F,t)},j=(0,v.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`anchorOrigin${(0,x.Z)(n.anchorOrigin.vertical)}${(0,x.Z)(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:(0,i.Z)({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===t.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===t.anchorOrigin.horizontal&&{right:24,left:"auto"})})),N=o.forwardRef(function(e,t){let n=(0,b.i)({props:e,name:"MuiSnackbar"}),l=(0,y.Z)(),s={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{action:u,anchorOrigin:{vertical:c,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:h=null,children:g,className:v,ClickAwayListenerProps:x,ContentProps:w,disableWindowBlurListener:C=!1,message:S,open:R,TransitionComponent:E=k.Z,transitionDuration:M=s,TransitionProps:{onEnter:P,onExited:_}={}}=n,O=(0,r.Z)(n.TransitionProps,L),A=(0,r.Z)(n,z),I=(0,i.Z)({},n,{anchorOrigin:{vertical:c,horizontal:d},autoHideDuration:h,disableWindowBlurListener:C,TransitionComponent:E,transitionDuration:M}),F=D(I),{getRootProps:N,onClickAway:V}=f((0,i.Z)({},I)),[B,H]=o.useState(!0),Z=(0,a.Z)({elementType:j,getSlotProps:N,externalForwardedProps:A,ownerState:I,additionalProps:{ref:t},className:[F.root,v]});return!R&&B?null:(0,p.jsx)(m,(0,i.Z)({onClickAway:V},x,{children:(0,p.jsx)(j,(0,i.Z)({},Z,{children:(0,p.jsx)(E,(0,i.Z)({appear:!0,in:R,timeout:M,direction:"top"===c?"down":"up",onEnter:(e,t)=>{H(!1),P&&P(e,t)},onExited:e=>{H(!0),_&&_(e)}},O,{children:g||(0,p.jsx)(T,(0,i.Z)({message:S,action:u},w))}))}))}))});var V=N},83691:function(e,t,n){"use strict";n(14978);var r=n(59782),i=n(24004);t.Z=(0,r.Z)((0,i.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},66046:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(79042),i=n(94312),o=n(95137),l=n(92965),a=n(55959),s=n(24446);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],c=["component","slots","slotProps"],f=["component"];function d(e,t){let{className:n,elementType:d,ownerState:h,externalForwardedProps:p,getSlotOwnerState:g,internalForwardedProps:m}=t,v=(0,i.Z)(t,u),{component:y,slots:b={[e]:void 0},slotProps:x={[e]:void 0}}=p,k=(0,i.Z)(p,c),w=b[e]||d,C=(0,a.Z)(x[e],h),S=(0,s.Z)((0,r.Z)({className:n},v,{externalForwardedProps:"root"===e?k:void 0,externalSlotProps:C})),{props:{component:R},internalRef:E}=S,M=(0,i.Z)(S.props,f),P=(0,o.Z)(E,null==C?void 0:C.ref,t.ref),_=g?g(M):{},O=(0,r.Z)({},h,_),A="root"===e?R||y:R,I=(0,l.Z)(w,(0,r.Z)({},"root"===e&&!y&&!b[e]&&m,"root"!==e&&!b[e]&&m,M,A&&{as:A},{ref:P}),O);return Object.keys(_).forEach(e=>{delete I[e]}),[w,I]}},72053:function(e,t,n){"use strict";n.d(t,{Nr:function(){return l}});var r=n(14978);function i(e,t){return e===t}function o(e,t){return t}function l(e,t,n){var l=n&&n.equalityFn||i,a=(0,r.useReducer)(o,e),s=a[0],u=a[1],c=function(e,t,n){var i=this,o=(0,r.useRef)(null),l=(0,r.useRef)(0),a=(0,r.useRef)(null),s=(0,r.useRef)([]),u=(0,r.useRef)(),c=(0,r.useRef)(),f=(0,r.useRef)(e),d=(0,r.useRef)(!0);f.current=e;var h="undefined"!=typeof window,p=!t&&0!==t&&h;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,v="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,b=v?Math.max(+n.maxWait||0,t):null;return(0,r.useEffect)(function(){return d.current=!0,function(){d.current=!1}},[]),(0,r.useMemo)(function(){var e=function(e){var t=s.current,n=u.current;return s.current=u.current=null,l.current=e,c.current=f.current.apply(n,t)},n=function(e,t){p&&cancelAnimationFrame(a.current),a.current=p?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!d.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||v&&e-l.current>=b},x=function(t){return a.current=null,m&&s.current?e(t):(s.current=u.current=null,c.current)},k=function e(){var i=Date.now();if(r(i))return x(i);if(d.current){var a=t-(i-o.current);n(e,v?Math.min(a,b-(i-l.current)):a)}},w=function(){if(h||y){var f=Date.now(),p=r(f);if(s.current=[].slice.call(arguments),u.current=i,o.current=f,p){if(!a.current&&d.current)return l.current=o.current,n(k,t),g?e(o.current):c.current;if(v)return n(k,t),e(o.current)}return a.current||n(k,t),c.current}};return w.cancel=function(){a.current&&(p?cancelAnimationFrame(a.current):clearTimeout(a.current)),l.current=0,s.current=o.current=u.current=a.current=null},w.isPending=function(){return!!a.current},w.flush=function(){return a.current?x(Date.now()):c.current},w},[g,v,t,b,m,p,h,y])}((0,r.useCallback)(function(e){return u(e)},[u]),t,n),f=(0,r.useRef)(e);return l(f.current,e)||(c(e),f.current=e),l(s,e)&&c.cancel(),[s,c]}},27271:function(e,t,n){"use strict";let r,i;/*!
|
|
2
2
|
* @kurkle/color v0.3.2
|
|
3
3
|
* https://github.com/kurkle/color#readme
|
|
4
4
|
* (c) 2023 Jukka Kurkela
|
|
5
5
|
* Released under the MIT License
|
|
6
|
-
*/function o(e){return e+.5|0}n.d(t,{$:function(){return tf},A:function(){return eL},B:function(){return eT},C:function(){return tu},D:function(){return eR},E:function(){return tw},F:function(){return $},G:function(){return tJ},H:function(){return ef},I:function(){return tZ},J:function(){return t1},K:function(){return t0},L:function(){return eH},M:function(){return tq},N:function(){return ev},O:function(){return V},P:function(){return el},Q:function(){return Z},R:function(){return tR},S:function(){return eO},T:function(){return ea},U:function(){return eC},V:function(){return tr},W:function(){return eI},X:function(){return to},Y:function(){return tc},Z:function(){return tp},_:function(){return eV},a:function(){return tS},a0:function(){return tC},a1:function(){return eZ},a2:function(){return e$},a3:function(){return e8},a4:function(){return X},a5:function(){return et},a6:function(){return e7},a7:function(){return er},a8:function(){return function e(t,n,r,i){let o={_cacheable:!1,_proxy:t,_context:n,_subProxy:r,_stack:new Set,_descriptors:tP(t,i),setContext:n=>e(t,n,r,i),override:o=>e(t.override(o),n,r,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,n,r)=>tI(t,n,()=>(function(t,n,r){let{_proxy:i,_context:o,_subProxy:l,_descriptors:a}=t,s=i[n];return er(s)&&a.isScriptable(n)&&(s=function(e,t,n,r){let{_proxy:i,_context:o,_subProxy:l,_stack:a}=n;if(a.has(e))throw Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let s=t(o,l||r);return a.delete(e),tO(e,s)&&(s=tF(i._scopes,i,e,s)),s}(n,s,t,r)),D(s)&&s.length&&(s=function(t,n,r,i){let{_proxy:o,_context:l,_subProxy:a,_descriptors:s}=r;if(void 0!==l.index&&i(t))return n[l.index%n.length];if(j(n[0])){let r=n,i=o._scopes.filter(e=>e!==r);for(let u of(n=[],r)){let r=tF(i,o,t,u);n.push(e(r,l,a&&a[t],s))}}return n}(n,s,t,a.isIndexable)),tO(n,s)&&(s=e(s,o,l&&l[n],a)),s})(t,n,r)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}},a9:function(){return tM},aA:function(){return t9},aB:function(){return eU},aC:function(){return t6},aD:function(){return ts},aE:function(){return eE},aF:function(){return T},aG:function(){return ek},aH:function(){return ey},aI:function(){return ex},aJ:function(){return em},aK:function(){return eS},aL:function(){return e6},aM:function(){return ep},aN:function(){return ti},aO:function(){return ez},aP:function(){return eF},aa:function(){return tP},ab:function(){return K},ac:function(){return L},ad:function(){return eq},ae:function(){return tQ},af:function(){return tl},ag:function(){return ei},ah:function(){return U},ai:function(){return eo},aj:function(){return eA},ak:function(){return tb},al:function(){return tH},am:function(){return nn},an:function(){return nt},ao:function(){return t4},ap:function(){return t5},aq:function(){return t2},ar:function(){return td},as:function(){return th},at:function(){return ta},au:function(){return tg},av:function(){return tx},aw:function(){return tk},ax:function(){return ne},ay:function(){return eP},az:function(){return t3},b:function(){return D},c:function(){return e0},d:function(){return tn},e:function(){return eJ},f:function(){return ee},g:function(){return N},h:function(){return en},i:function(){return j},j:function(){return tE},k:function(){return z},l:function(){return ej},m:function(){return H},n:function(){return q},o:function(){return e3},p:function(){return e_},q:function(){return eG},r:function(){return eB},s:function(){return eg},t:function(){return ew},u:function(){return eN},v:function(){return B},w:function(){return eW},x:function(){return eb},y:function(){return tD},z:function(){return tX}});let l=(e,t,n)=>Math.max(Math.min(e,n),t);function a(e){return l(o(2.55*e),0,255)}function s(e){return l(o(255*e),0,255)}function u(e){return l(o(e/2.55)/100,0,1)}function c(e){return l(o(100*e),0,100)}let f={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},d=[..."0123456789ABCDEF"],h=e=>d[15&e],p=e=>d[(240&e)>>4]+d[15&e],g=e=>(240&e)>>4==(15&e),m=e=>g(e.r)&&g(e.g)&&g(e.b)&&g(e.a),y=(e,t)=>e<255?t(e):"",v=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function b(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function x(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function k(e,t,n){let r;let i=b(e,1,.5);for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function w(e){let t,n,r;let i=e.r/255,o=e.g/255,l=e.b/255,a=Math.max(i,o,l),s=Math.min(i,o,l),u=(a+s)/2;return a!==s&&(r=a-s,n=u>.5?r/(2-a-s):r/(a+s),t=60*(t=i===a?(o-l)/r+(o<l?6:0):o===a?(l-i)/r+2:(i-o)/r+4)+.5),[0|t,n||0,u]}function C(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(s)}function S(e){return(e%360+360)%360}let R={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},E={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"},M=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,P=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,_=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function O(e,t,n){if(e){let r=w(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=C(b,r,void 0,void 0),e.r=r[0],e.g=r[1],e.b=r[2]}}function I(e,t){return e?Object.assign(t||{},e):e}function A(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=s(e[3]))):(t=I(e,{r:0,g:0,b:0,a:1})).a=s(t.a),t}class F{constructor(e){let t;if(e instanceof F)return e;let n=typeof e;if("object"===n)t=A(e);else if("string"===n){var i,o;o=e.length,"#"===e[0]&&(4===o||5===o?i={r:255&17*f[e[1]],g:255&17*f[e[2]],b:255&17*f[e[3]],a:5===o?17*f[e[4]]:255}:(7===o||9===o)&&(i={r:f[e[1]]<<4|f[e[2]],g:f[e[3]]<<4|f[e[4]],b:f[e[5]]<<4|f[e[6]],a:9===o?f[e[7]]<<4|f[e[8]]:255})),t=i||function(e){r||((r=function(){let e,t,n,r,i;let o={},l=Object.keys(E),a=Object.keys(R);for(e=0;e<l.length;e++){for(t=0,r=i=l[e];t<a.length;t++)n=a[t],i=i.replace(n,R[n]);n=parseInt(E[r],16),o[i]=[n>>16&255,n>>8&255,255&n]}return o}()).transparent=[0,0,0,0]);let t=r[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||("r"===e.charAt(0)?function(e){let t,n,r;let i=M.exec(e),o=255;if(i){if(i[7]!==t){let e=+i[7];o=i[8]?a(e):l(255*e,0,255)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?a(t):l(t,0,255)),g:n=255&(i[4]?a(n):l(n,0,255)),b:r=255&(i[6]?a(r):l(r,0,255)),a:o}}}(e):function(e){let t;let n=v.exec(e),r=255;if(!n)return;n[5]!==t&&(r=n[6]?a(+n[5]):s(+n[5]));let i=S(+n[2]),o=+n[3]/100,l=+n[4]/100;return{r:(t="hwb"===n[1]?C(k,i,o,l):"hsv"===n[1]?C(x,i,o,l):C(b,i,o,l))[0],g:t[1],b:t[2],a:r}}(e))}this._rgb=t,this._valid=!!t}get valid(){return this._valid}get rgb(){var e=I(this._rgb);return e&&(e.a=u(e.a)),e}set rgb(e){this._rgb=A(e)}rgbString(){var e;return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${u(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0}hexString(){var e,t;return this._valid?(t=m(e=this._rgb)?h:p,e?"#"+t(e.r)+t(e.g)+t(e.b)+y(e.a,t):void 0):void 0}hslString(){return this._valid?function(e){if(!e)return;let t=w(e),n=t[0],r=c(t[1]),i=c(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${u(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){let n;let r=this.rgb,i=e.rgb,o=t===n?.5:t,l=2*o-1,a=r.a-i.a,s=((l*a==-1?l:(l+a)/(1+l*a))+1)/2;n=1-s,r.r=255&s*r.r+n*i.r+.5,r.g=255&s*r.g+n*i.g+.5,r.b=255&s*r.b+n*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){let r=_(u(e.r)),i=_(u(e.g)),o=_(u(e.b));return{r:s(P(r+n*(_(u(t.r))-r))),g:s(P(i+n*(_(u(t.g))-i))),b:s(P(o+n*(_(u(t.b))-o))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new F(this.rgb)}alpha(e){return this._rgb.a=s(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb,t=o(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return O(this._rgb,2,e),this}darken(e){return O(this._rgb,2,-e),this}saturate(e){return O(this._rgb,1,e),this}desaturate(e){return O(this._rgb,1,-e),this}rotate(e){var t,n;return(n=w(t=this._rgb))[0]=S(n[0]+e),n=C(b,n,void 0,void 0),t.r=n[0],t.g=n[1],t.b=n[2],this}}/*!
|
|
6
|
+
*/function o(e){return e+.5|0}n.d(t,{$:function(){return tf},A:function(){return eL},B:function(){return eF},C:function(){return tu},D:function(){return eR},E:function(){return tw},F:function(){return $},G:function(){return tJ},H:function(){return ef},I:function(){return tq},J:function(){return t1},K:function(){return t0},L:function(){return eH},M:function(){return tZ},N:function(){return ey},O:function(){return V},P:function(){return el},Q:function(){return q},R:function(){return tR},S:function(){return eO},T:function(){return ea},U:function(){return eC},V:function(){return tr},W:function(){return eA},X:function(){return to},Y:function(){return tc},Z:function(){return tp},_:function(){return eV},a:function(){return tS},a0:function(){return tC},a1:function(){return eq},a2:function(){return e$},a3:function(){return e8},a4:function(){return X},a5:function(){return et},a6:function(){return e7},a7:function(){return er},a8:function(){return function e(t,n,r,i){let o={_cacheable:!1,_proxy:t,_context:n,_subProxy:r,_stack:new Set,_descriptors:tP(t,i),setContext:n=>e(t,n,r,i),override:o=>e(t.override(o),n,r,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,n,r)=>tA(t,n,()=>(function(t,n,r){let{_proxy:i,_context:o,_subProxy:l,_descriptors:a}=t,s=i[n];return er(s)&&a.isScriptable(n)&&(s=function(e,t,n,r){let{_proxy:i,_context:o,_subProxy:l,_stack:a}=n;if(a.has(e))throw Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let s=t(o,l||r);return a.delete(e),tO(e,s)&&(s=tT(i._scopes,i,e,s)),s}(n,s,t,r)),D(s)&&s.length&&(s=function(t,n,r,i){let{_proxy:o,_context:l,_subProxy:a,_descriptors:s}=r;if(void 0!==l.index&&i(t))return n[l.index%n.length];if(j(n[0])){let r=n,i=o._scopes.filter(e=>e!==r);for(let u of(n=[],r)){let r=tT(i,o,t,u);n.push(e(r,l,a&&a[t],s))}}return n}(n,s,t,a.isIndexable)),tO(n,s)&&(s=e(s,o,l&&l[n],a)),s})(t,n,r)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}},a9:function(){return tM},aA:function(){return t3},aB:function(){return eU},aC:function(){return t6},aD:function(){return ts},aE:function(){return eE},aF:function(){return F},aG:function(){return ek},aH:function(){return ev},aI:function(){return ex},aJ:function(){return em},aK:function(){return eS},aL:function(){return e6},aM:function(){return ep},aN:function(){return ti},aO:function(){return ez},aP:function(){return eT},aa:function(){return tP},ab:function(){return K},ac:function(){return L},ad:function(){return eZ},ae:function(){return tQ},af:function(){return tl},ag:function(){return ei},ah:function(){return U},ai:function(){return eo},aj:function(){return eI},ak:function(){return tb},al:function(){return tH},am:function(){return nn},an:function(){return nt},ao:function(){return t4},ap:function(){return t5},aq:function(){return t2},ar:function(){return td},as:function(){return th},at:function(){return ta},au:function(){return tg},av:function(){return tx},aw:function(){return tk},ax:function(){return ne},ay:function(){return eP},az:function(){return t9},b:function(){return D},c:function(){return e0},d:function(){return tn},e:function(){return eJ},f:function(){return ee},g:function(){return N},h:function(){return en},i:function(){return j},j:function(){return tE},k:function(){return z},l:function(){return ej},m:function(){return H},n:function(){return Z},o:function(){return e9},p:function(){return e_},q:function(){return eG},r:function(){return eB},s:function(){return eg},t:function(){return ew},u:function(){return eN},v:function(){return B},w:function(){return eW},x:function(){return eb},y:function(){return tD},z:function(){return tX}});let l=(e,t,n)=>Math.max(Math.min(e,n),t);function a(e){return l(o(2.55*e),0,255)}function s(e){return l(o(255*e),0,255)}function u(e){return l(o(e/2.55)/100,0,1)}function c(e){return l(o(100*e),0,100)}let f={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},d=[..."0123456789ABCDEF"],h=e=>d[15&e],p=e=>d[(240&e)>>4]+d[15&e],g=e=>(240&e)>>4==(15&e),m=e=>g(e.r)&&g(e.g)&&g(e.b)&&g(e.a),v=(e,t)=>e<255?t(e):"",y=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function b(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function x(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function k(e,t,n){let r;let i=b(e,1,.5);for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function w(e){let t,n,r;let i=e.r/255,o=e.g/255,l=e.b/255,a=Math.max(i,o,l),s=Math.min(i,o,l),u=(a+s)/2;return a!==s&&(r=a-s,n=u>.5?r/(2-a-s):r/(a+s),t=60*(t=i===a?(o-l)/r+(o<l?6:0):o===a?(l-i)/r+2:(i-o)/r+4)+.5),[0|t,n||0,u]}function C(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(s)}function S(e){return(e%360+360)%360}let R={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},E={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"},M=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,P=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,_=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function O(e,t,n){if(e){let r=w(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=C(b,r,void 0,void 0),e.r=r[0],e.g=r[1],e.b=r[2]}}function A(e,t){return e?Object.assign(t||{},e):e}function I(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=s(e[3]))):(t=A(e,{r:0,g:0,b:0,a:1})).a=s(t.a),t}class T{constructor(e){let t;if(e instanceof T)return e;let n=typeof e;if("object"===n)t=I(e);else if("string"===n){var i,o;o=e.length,"#"===e[0]&&(4===o||5===o?i={r:255&17*f[e[1]],g:255&17*f[e[2]],b:255&17*f[e[3]],a:5===o?17*f[e[4]]:255}:(7===o||9===o)&&(i={r:f[e[1]]<<4|f[e[2]],g:f[e[3]]<<4|f[e[4]],b:f[e[5]]<<4|f[e[6]],a:9===o?f[e[7]]<<4|f[e[8]]:255})),t=i||function(e){r||((r=function(){let e,t,n,r,i;let o={},l=Object.keys(E),a=Object.keys(R);for(e=0;e<l.length;e++){for(t=0,r=i=l[e];t<a.length;t++)n=a[t],i=i.replace(n,R[n]);n=parseInt(E[r],16),o[i]=[n>>16&255,n>>8&255,255&n]}return o}()).transparent=[0,0,0,0]);let t=r[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||("r"===e.charAt(0)?function(e){let t,n,r;let i=M.exec(e),o=255;if(i){if(i[7]!==t){let e=+i[7];o=i[8]?a(e):l(255*e,0,255)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?a(t):l(t,0,255)),g:n=255&(i[4]?a(n):l(n,0,255)),b:r=255&(i[6]?a(r):l(r,0,255)),a:o}}}(e):function(e){let t;let n=y.exec(e),r=255;if(!n)return;n[5]!==t&&(r=n[6]?a(+n[5]):s(+n[5]));let i=S(+n[2]),o=+n[3]/100,l=+n[4]/100;return{r:(t="hwb"===n[1]?C(k,i,o,l):"hsv"===n[1]?C(x,i,o,l):C(b,i,o,l))[0],g:t[1],b:t[2],a:r}}(e))}this._rgb=t,this._valid=!!t}get valid(){return this._valid}get rgb(){var e=A(this._rgb);return e&&(e.a=u(e.a)),e}set rgb(e){this._rgb=I(e)}rgbString(){var e;return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${u(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0}hexString(){var e,t;return this._valid?(t=m(e=this._rgb)?h:p,e?"#"+t(e.r)+t(e.g)+t(e.b)+v(e.a,t):void 0):void 0}hslString(){return this._valid?function(e){if(!e)return;let t=w(e),n=t[0],r=c(t[1]),i=c(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${u(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){let n;let r=this.rgb,i=e.rgb,o=t===n?.5:t,l=2*o-1,a=r.a-i.a,s=((l*a==-1?l:(l+a)/(1+l*a))+1)/2;n=1-s,r.r=255&s*r.r+n*i.r+.5,r.g=255&s*r.g+n*i.g+.5,r.b=255&s*r.b+n*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){let r=_(u(e.r)),i=_(u(e.g)),o=_(u(e.b));return{r:s(P(r+n*(_(u(t.r))-r))),g:s(P(i+n*(_(u(t.g))-i))),b:s(P(o+n*(_(u(t.b))-o))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new T(this.rgb)}alpha(e){return this._rgb.a=s(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb,t=o(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return O(this._rgb,2,e),this}darken(e){return O(this._rgb,2,-e),this}saturate(e){return O(this._rgb,1,e),this}desaturate(e){return O(this._rgb,1,-e),this}rotate(e){var t,n;return(n=w(t=this._rgb))[0]=S(n[0]+e),n=C(b,n,void 0,void 0),t.r=n[0],t.g=n[1],t.b=n[2],this}}/*!
|
|
7
7
|
* Chart.js v4.4.3
|
|
8
8
|
* https://www.chartjs.org
|
|
9
9
|
* (c) 2024 Chart.js Contributors
|
|
10
10
|
* Released under the MIT License
|
|
11
|
-
*/function T(){}let L=(i=0,()=>i++);function z(e){return null==e}function D(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function j(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function N(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function V(e,t){return N(e)?e:t}function B(e,t){return void 0===e?t:e}let H=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t,q=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Z(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function $(e,t,n,r){let i,o,l;if(D(e)){if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i)}else if(j(e))for(i=0,o=(l=Object.keys(e)).length;i<o;i++)t.call(n,e[l[i]],l[i])}function U(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function G(e){if(D(e))return e.map(G);if(j(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,i=0;for(;i<r;++i)t[n[i]]=G(e[n[i]]);return t}return e}function W(e){return -1===["__proto__","prototype","constructor"].indexOf(e)}function Y(e,t,n,r){if(!W(e))return;let i=t[e],o=n[e];j(i)&&j(o)?X(i,o,r):t[e]=G(o)}function X(e,t,n){let r;let i=D(t)?t:[t],o=i.length;if(!j(e))return e;n=n||{};let l=n.merger||Y;for(let t=0;t<o;++t){if(!j(r=i[t]))continue;let o=Object.keys(r);for(let t=0,i=o.length;t<i;++t)l(o[t],e,r,n)}return e}function K(e,t){return X(e,t,{merger:J})}function J(e,t,n){if(!W(e))return;let r=t[e],i=n[e];j(r)&&j(i)?K(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=G(i))}let Q={"":e=>e,x:e=>e.x,y:e=>e.y};function ee(e,t){let n=Q[t]||(Q[t]=function(e){let t=function(e){let t=e.split("."),n=[],r="";for(let e of t)(r+=e).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(let n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function et(e){return e.charAt(0).toUpperCase()+e.slice(1)}let en=e=>void 0!==e,er=e=>"function"==typeof e,ei=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function eo(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}let el=Math.PI,ea=2*el,es=ea+el,eu=Number.POSITIVE_INFINITY,ec=el/180,ef=el/2,ed=el/4,eh=2*el/3,ep=Math.log10,eg=Math.sign;function em(e,t,n){return Math.abs(e-t)<n}function ey(e){let t=Math.round(e);e=em(e,t,e/1e3)?t:e;let n=Math.pow(10,Math.floor(ep(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function ev(e){let t;let n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t==0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((e,t)=>e-t).pop(),n}function eb(e){return!isNaN(parseFloat(e))&&isFinite(e)}function ex(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function ek(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)isNaN(o=e[r][n])||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function ew(e){return e*(el/180)}function eC(e){return e*(180/el)}function eS(e){if(!N(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function eR(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.atan2(r,n);return i<-.5*el&&(i+=ea),{angle:i,distance:Math.sqrt(n*n+r*r)}}function eE(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function eM(e,t){return(e-t+es)%ea-el}function eP(e){return(e%ea+ea)%ea}function e_(e,t,n,r){let i=eP(e),o=eP(t),l=eP(n),a=eP(o-i),s=eP(l-i),u=eP(i-o),c=eP(i-l);return i===o||i===l||r&&o===l||a>s&&u<c}function eO(e,t,n){return Math.max(t,Math.min(n,e))}function eI(e){return eO(e,-32768,32767)}function eA(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function eF(e,t,n){let r;n=n||(n=>e[n]<t);let i=e.length-1,o=0;for(;i-o>1;)n(r=o+i>>1)?o=r:i=r;return{lo:o,hi:i}}let eT=(e,t,n,r)=>eF(e,n,r?r=>{let i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),eL=(e,t,n)=>eF(e,n,r=>e[r][t]>=n);function ez(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}let eD=["push","pop","shift","splice","unshift"];function ej(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),eD.forEach(t=>{let n="_onData"+et(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[n]&&e[n](...t)}),i}})})}function eN(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(eD.forEach(t=>{delete e[t]}),delete e._chartjs)}function eV(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}let eB="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function eH(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,eB.call(window,()=>{r=!1,e.apply(t,n)}))}}function eq(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}let eZ=e=>"start"===e?"left":"end"===e?"right":"center",e$=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,eU=(e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t;function eG(e,t,n){let r=t.length,i=0,o=r;if(e._sorted){let{iScale:l,_parsed:a}=e,s=l.axis,{min:u,max:c,minDefined:f,maxDefined:d}=l.getUserBounds();f&&(i=eO(Math.min(eT(a,s,u).lo,n?r:eT(t,s,l.getPixelForValue(u)).lo),0,r-1)),o=d?eO(Math.max(eT(a,l.axis,c,!0).hi+1,n?0:eT(t,s,l.getPixelForValue(c),!0).hi+1),i,r)-i:r-i}return{start:i,count:o}}function eW(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}let eY=e=>0===e||1===e,eX=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ea/n)),eK=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ea/n)+1,eJ={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*ef)+1,easeOutSine:e=>Math.sin(e*ef),easeInOutSine:e=>-.5*(Math.cos(el*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>eY(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(-Math.pow(2,-10*(2*e-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>eY(e)?e:eX(e,.075,.3),easeOutElastic:e=>eY(e)?e:eK(e,.075,.3),easeInOutElastic:e=>eY(e)?e:e<.5?.5*eX(2*e,.1125,.45):.5+.5*eK(2*e-1,.1125,.45),easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-eJ.easeOutBounce(1-e),easeOutBounce:e=>e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375,easeInOutBounce:e=>e<.5?.5*eJ.easeInBounce(2*e):.5*eJ.easeOutBounce(2*e-1)+.5};function eQ(e){if(e&&"object"==typeof e){let t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function e0(e){return eQ(e)?e:new F(e)}function e1(e){return eQ(e)?e:new F(e).saturate(.5).darken(.1).hexString()}let e2=["x","y","borderWidth","radius","tension"],e4=["color","borderColor","backgroundColor"],e5=new Map;function e3(e,t,n){return(function(e,t){t=t||{};let n=e+JSON.stringify(t),r=e5.get(n);return r||(r=new Intl.NumberFormat(e,t),e5.set(n,r)),r})(t,n).format(e)}let e9={values:e=>D(e)?e:""+e,numeric(e,t,n){let r;if(0===e)return"0";let i=this.chart.options.locale,o=e;if(n.length>1){let t;let i=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(i<1e-4||i>1e15)&&(r="scientific"),Math.abs(t=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),o=t}let l=ep(Math.abs(o)),a=isNaN(l)?1:Math.max(Math.min(-1*Math.floor(l),20),0),s={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(s,this.options.ticks.format),e3(e,i,s)},logarithmic(e,t,n){if(0===e)return"0";let r=n[t].significand||e/Math.pow(10,Math.floor(ep(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?e9.numeric.call(this,e,t,n):""}};var e6={formatters:e9};let e8=Object.create(null),e7=Object.create(null);function te(e,t){if(!t)return e;let n=t.split(".");for(let t=0,r=n.length;t<r;++t){let r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function tt(e,t,n){return"string"==typeof t?X(te(e,t),n):X(te(e,""),t)}var tn=new class{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>e1(t.backgroundColor),this.hoverBorderColor=(e,t)=>e1(t.borderColor),this.hoverColor=(e,t)=>e1(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return tt(this,e,t)}get(e){return te(this,e)}describe(e,t){return tt(e7,e,t)}override(e,t){return tt(e8,e,t)}route(e,t,n,r){let i=te(this,e),o=te(this,n),l="_"+t;Object.defineProperties(i,{[l]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[l],t=o[r];return j(e)?Object.assign({},t,e):B(e,t)},set(e){this[l]=e}}})}apply(e){e.forEach(e=>e(this))}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:e4},numbers:{type:"number",properties:e2}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:e6.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function tr(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function ti(e,t,n,r){let i,o,l,a,s;let u=(r=r||{}).data=r.data||{},c=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(u=r.data={},c=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let f=0,d=n.length;for(i=0;i<d;i++)if(null==(a=n[i])||D(a)){if(D(a))for(o=0,l=a.length;o<l;o++)null==(s=a[o])||D(s)||(f=tr(e,u,c,f,s))}else f=tr(e,u,c,f,a);e.restore();let h=c.length/2;if(h>n.length){for(i=0;i<h;i++)delete u[c[i]];c.splice(0,h)}return f}function to(e,t,n){let r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function tl(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function ta(e,t,n,r){ts(e,t,n,r,null)}function ts(e,t,n,r,i){let o,l,a,s,u,c,f,d;let h=t.pointStyle,p=t.rotation,g=t.radius,m=(p||0)*ec;if(h&&"object"==typeof h&&("[object HTMLImageElement]"===(o=h.toString())||"[object HTMLCanvasElement]"===o)){e.save(),e.translate(n,r),e.rotate(m),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!isNaN(g)&&!(g<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,g,0,0,ea):e.arc(n,r,g,0,ea),e.closePath();break;case"triangle":c=i?i/2:g,e.moveTo(n+Math.sin(m)*c,r-Math.cos(m)*g),m+=eh,e.lineTo(n+Math.sin(m)*c,r-Math.cos(m)*g),m+=eh,e.lineTo(n+Math.sin(m)*c,r-Math.cos(m)*g),e.closePath();break;case"rectRounded":u=.516*g,l=Math.cos(m+ed)*(s=g-u),f=Math.cos(m+ed)*(i?i/2-u:s),a=Math.sin(m+ed)*s,d=Math.sin(m+ed)*(i?i/2-u:s),e.arc(n-f,r-a,u,m-el,m-ef),e.arc(n+d,r-l,u,m-ef,m),e.arc(n+f,r+a,u,m,m+ef),e.arc(n-d,r+l,u,m+ef,m+el),e.closePath();break;case"rect":if(!p){s=Math.SQRT1_2*g,c=i?i/2:s,e.rect(n-c,r-s,2*c,2*s);break}m+=ed;case"rectRot":f=Math.cos(m)*(i?i/2:g),l=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),e.moveTo(n-f,r-a),e.lineTo(n+d,r-l),e.lineTo(n+f,r+a),e.lineTo(n-d,r+l),e.closePath();break;case"crossRot":m+=ed;case"cross":f=Math.cos(m)*(i?i/2:g),l=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+d,r-l),e.lineTo(n-d,r+l);break;case"star":f=Math.cos(m)*(i?i/2:g),l=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+d,r-l),e.lineTo(n-d,r+l),m+=ed,f=Math.cos(m)*(i?i/2:g),l=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+d,r-l),e.lineTo(n-d,r+l);break;case"line":l=i?i/2:Math.cos(m)*g,a=Math.sin(m)*g,e.moveTo(n-l,r-a),e.lineTo(n+l,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(m)*(i?i/2:g),r+Math.sin(m)*g);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function tu(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function tc(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function tf(e){e.restore()}function td(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){let r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===i!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function th(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function tp(e,t,n,r,i,o={}){let l,a;let s=D(t)?t:[t],u=o.strokeWidth>0&&""!==o.strokeColor;for(e.save(),e.font=i.string,o.translation&&e.translate(o.translation[0],o.translation[1]),z(o.rotation)||e.rotate(o.rotation),o.color&&(e.fillStyle=o.color),o.textAlign&&(e.textAlign=o.textAlign),o.textBaseline&&(e.textBaseline=o.textBaseline),l=0;l<s.length;++l)a=s[l],o.backdrop&&function(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}(e,o.backdrop),u&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),z(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(a,n,r,o.maxWidth)),e.fillText(a,n,r,o.maxWidth),function(e,t,n,r,i){if(i.strikethrough||i.underline){let o=e.measureText(r),l=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,s=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,c=i.strikethrough?(s+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(l,c),e.lineTo(a,c),e.stroke()}}(e,n,r,a,o),r+=Number(i.lineHeight);e.restore()}function tg(e,t){let{x:n,y:r,w:i,h:o,radius:l}=t;e.arc(n+l.topLeft,r+l.topLeft,l.topLeft,1.5*el,el,!0),e.lineTo(n,r+o-l.bottomLeft),e.arc(n+l.bottomLeft,r+o-l.bottomLeft,l.bottomLeft,el,ef,!0),e.lineTo(n+i-l.bottomRight,r+o),e.arc(n+i-l.bottomRight,r+o-l.bottomRight,l.bottomRight,ef,0,!0),e.lineTo(n+i,r+l.topRight),e.arc(n+i-l.topRight,r+l.topRight,l.topRight,0,-ef,!0),e.lineTo(n+l.topLeft,r)}let tm=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ty=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/,tv=e=>+e||0;function tb(e,t){let n={},r=j(t),i=r?Object.keys(t):t,o=j(e)?r?n=>B(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=tv(o(e));return n}function tx(e){return tb(e,{top:"y",right:"x",bottom:"y",left:"x"})}function tk(e){return tb(e,["topLeft","topRight","bottomLeft","bottomRight"])}function tw(e){let t=tx(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function tC(e,t){e=e||{},t=t||tn.font;let n=B(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=B(e.style,t.style);r&&!(""+r).match(ty)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);let i={family:B(e.family,t.family),lineHeight:function(e,t){let n=(""+e).match(tm);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}(B(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:B(e.weight,t.weight),string:""};return i.string=!i||z(i.size)||z(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family,i}function tS(e,t,n,r){let i,o,l,a=!0;for(i=0,o=e.length;i<o;++i)if(void 0!==(l=e[i])&&(void 0!==t&&"function"==typeof l&&(l=l(t),a=!1),void 0!==n&&D(l)&&(l=l[n%l.length],a=!1),void 0!==l))return r&&!a&&(r.cacheable=!1),l}function tR(e,t,n){let{min:r,max:i}=e,o=q(t,(i-r)/2),l=(e,t)=>n&&0===e?0:e+t;return{min:l(r,-Math.abs(o)),max:l(i,o)}}function tE(e,t){return Object.assign(Object.create(e),t)}function tM(e,t=[""],n,r,i=()=>e[0]){let o=n||e;void 0===r&&(r=tL("_fallback",e));let l={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:n=>tM([n,...e],t,o,r)};return new Proxy(l,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>tI(n,r,()=>(function(e,t,n,r){let i;for(let o of t)if(void 0!==(i=tL(t_(o,e),n)))return tO(e,i)?tF(n,r,e,i):i})(r,t,e,n)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>tz(e).includes(t),ownKeys:e=>tz(e),set(e,t,n){let r=e._storage||(e._storage=i());return e[t]=r[t]=n,delete e._keys,!0}})}function tP(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:er(n)?n:()=>n,isIndexable:er(r)?r:()=>r}}let t_=(e,t)=>e?e+et(t):t,tO=(e,t)=>j(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function tI(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];let r=n();return e[t]=r,r}let tA=(e,t)=>!0===e?t:"string"==typeof e?ee(t,e):void 0;function tF(e,t,n,r){var i;let o=t._rootScopes,l=er(i=t._fallback)?i(n,r):i,a=[...e,...o],s=new Set;s.add(r);let u=tT(s,a,n,l||n,r);return null!==u&&(void 0===l||l===n||null!==(u=tT(s,a,l,u,r)))&&tM(Array.from(s),[""],o,l,()=>(function(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return D(i)&&j(n)?n:i||{}})(t,n,r))}function tT(e,t,n,r,i){for(;n;)n=function(e,t,n,r,i){for(let l of t){let t=tA(n,l);if(t){var o;e.add(t);let l=er(o=t._fallback)?o(n,i):o;if(void 0!==l&&l!==n&&l!==r)return l}else if(!1===t&&void 0!==r&&n!==r)return null}return!1}(e,t,n,r,i);return n}function tL(e,t){for(let n of t){if(!n)continue;let t=n[e];if(void 0!==t)return t}}function tz(e){let t=e._keys;return t||(t=e._keys=function(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function tD(e,t,n,r){let i,o,l;let{iScale:a}=e,{key:s="r"}=this._parsing,u=Array(r);for(i=0;i<r;++i)l=t[o=i+n],u[i]={r:a.parse(ee(l,s),o)};return u}let tj=Number.EPSILON||1e-14,tN=(e,t)=>t<e.length&&!e[t].skip&&e[t],tV=e=>"x"===e?"y":"x";function tB(e,t,n){return Math.max(Math.min(e,n),t)}function tH(e,t,n,r,i){let o,l,a,s;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){let n,r,i;let o=tV(t),l=e.length,a=Array(l).fill(0),s=Array(l),u=tN(e,0);for(n=0;n<l;++n)if(r=i,i=u,u=tN(e,n+1),i){if(u){let e=u[t]-i[t];a[n]=0!==e?(u[o]-i[o])/e:0}s[n]=r?u?eg(a[n-1])!==eg(a[n])?0:(a[n-1]+a[n])/2:a[n-1]:a[n]}!function(e,t,n){let r,i,o,l,a;let s=e.length,u=tN(e,0);for(let c=0;c<s-1;++c)if(a=u,u=tN(e,c+1),a&&u){if(em(t[c],0,tj)){n[c]=n[c+1]=0;continue}(l=Math.pow(r=n[c]/t[c],2)+Math.pow(i=n[c+1]/t[c],2))<=9||(o=3/Math.sqrt(l),n[c]=r*o*t[c],n[c+1]=i*o*t[c])}}(e,a,s),function(e,t,n="x"){let r,i,o;let l=tV(n),a=e.length,s=tN(e,0);for(let u=0;u<a;++u){if(i=o,o=s,s=tN(e,u+1),!o)continue;let a=o[n],c=o[l];i&&(r=(a-i[n])/3,o[`cp1${n}`]=a-r,o[`cp1${l}`]=c-r*t[u]),s&&(r=(s[n]-a)/3,o[`cp2${n}`]=a+r,o[`cp2${l}`]=c+r*t[u])}}(e,s,t)}(e,i);else{let n=r?e[e.length-1]:e[0];for(o=0,l=e.length;o<l;++o)s=function(e,t,n,r){let i=e.skip?t:e,o=n.skip?t:n,l=eE(t,i),a=eE(o,t),s=l/(l+a),u=a/(l+a);s=isNaN(s)?0:s,u=isNaN(u)?0:u;let c=r*s,f=r*u;return{previous:{x:t.x-c*(o.x-i.x),y:t.y-c*(o.y-i.y)},next:{x:t.x+f*(o.x-i.x),y:t.y+f*(o.y-i.y)}}}(n,a=e[o],e[Math.min(o+1,l-(r?0:1))%l],t.tension),a.cp1x=s.previous.x,a.cp1y=s.previous.y,a.cp2x=s.next.x,a.cp2y=s.next.y,n=a}t.capBezierPoints&&function(e,t){let n,r,i,o,l;let a=tu(e[0],t);for(n=0,r=e.length;n<r;++n)l=o,o=a,a=n<r-1&&tu(e[n+1],t),o&&(i=e[n],l&&(i.cp1x=tB(i.cp1x,t.left,t.right),i.cp1y=tB(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=tB(i.cp2x,t.left,t.right),i.cp2y=tB(i.cp2y,t.top,t.bottom)))}(e,n)}function tq(){return"undefined"!=typeof window&&"undefined"!=typeof document}function tZ(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function t$(e,t,n){let r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}let tU=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),tG=["top","right","bottom","left"];function tW(e,t,n){let r={};n=n?"-"+n:"";for(let i=0;i<4;i++){let o=tG[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}let tY=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function tX(e,t){if("native"in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=tU(n),o="border-box"===i.boxSizing,l=tW(i,"padding"),a=tW(i,"border","width"),{x:s,y:u,box:c}=function(e,t){let n,r;let i=e.touches,o=i&&i.length?i[0]:e,{offsetX:l,offsetY:a}=o,s=!1;if(tY(l,a,e.target))n=l,r=a;else{let e=t.getBoundingClientRect();n=o.clientX-e.left,r=o.clientY-e.top,s=!0}return{x:n,y:r,box:s}}(e,n),f=l.left+(c&&a.left),d=l.top+(c&&a.top),{width:h,height:p}=t;return o&&(h-=l.width+a.width,p-=l.height+a.height),{x:Math.round((s-f)/h*n.width/r),y:Math.round((u-d)/p*n.height/r)}}let tK=e=>Math.round(10*e)/10;function tJ(e,t,n,r){let i=tU(e),o=tW(i,"margin"),l=t$(i.maxWidth,e,"clientWidth")||eu,a=t$(i.maxHeight,e,"clientHeight")||eu,s=function(e,t,n){let r,i;if(void 0===t||void 0===n){let o=e&&tZ(e);if(o){let e=o.getBoundingClientRect(),l=tU(o),a=tW(l,"border","width"),s=tW(l,"padding");t=e.width-s.width-a.width,n=e.height-s.height-a.height,r=t$(l.maxWidth,o,"clientWidth"),i=t$(l.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||eu,maxHeight:i||eu}}(e,t,n),{width:u,height:c}=s;if("content-box"===i.boxSizing){let e=tW(i,"border","width"),t=tW(i,"padding");u-=t.width+e.width,c-=t.height+e.height}u=Math.max(0,u-o.width),c=Math.max(0,r?u/r:c-o.height),u=tK(Math.min(u,l,s.maxWidth)),c=tK(Math.min(c,a,s.maxHeight)),u&&!c&&(c=tK(u/2));let f=void 0!==t||void 0!==n;return f&&r&&s.height&&c>s.height&&(u=tK(Math.floor((c=s.height)*r))),{width:u,height:c}}function tQ(e,t,n){let r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let l=e.canvas;return l.style&&(n||!l.style.height&&!l.style.width)&&(l.style.height=`${e.height}px`,l.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||l.height!==i||l.width!==o)&&(e.currentDevicePixelRatio=r,l.height=i,l.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}let t0=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};tq()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function t1(e,t){let n=tU(e).getPropertyValue(t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function t2(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function t4(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function t5(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},l=t2(e,i,n),a=t2(i,o,n),s=t2(o,t,n),u=t2(l,a,n),c=t2(a,s,n);return t2(u,c,n)}function t3(e,t,n){var r;return e?(r=n,{x:e=>t+t+r-e,setWidth(e){r=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function t9(e,t){let n,r;("ltr"===t||"rtl"===t)&&(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function t6(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function t8(e){return"angle"===e?{between:e_,compare:eM,normalize:eP}:{between:eA,compare:(e,t)=>e-t,normalize:e=>e}}function t7({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n==0,style:i}}function ne(e,t,n){let r,i,o;if(!n)return[e];let{property:l,start:a,end:s}=n,u=t.length,{compare:c,between:f,normalize:d}=t8(l),{start:h,end:p,loop:g,style:m}=function(e,t,n){let r;let{property:i,start:o,end:l}=n,{between:a,normalize:s}=t8(i),u=t.length,{start:c,end:f,loop:d}=e;if(d){for(c+=u,f+=u,r=0;r<u&&a(s(t[c%u][i]),o,l);++r)c--,f--;c%=u,f%=u}return f<c&&(f+=u),{start:c,end:f,loop:d,style:e.style}}(e,t,n),y=[],v=!1,b=null,x=()=>f(a,o,r)&&0!==c(a,o),k=()=>0===c(s,r)||f(s,o,r),w=()=>v||x(),C=()=>!v||k();for(let e=h,n=h;e<=p;++e)(i=t[e%u]).skip||(r=d(i[l]))===o||(v=f(r,a,s),null===b&&w()&&(b=0===c(r,a)?e:n),null!==b&&C()&&(y.push(t7({start:b,end:e,loop:g,count:u,style:m})),b=null),n=e,o=r);return null!==b&&y.push(t7({start:b,end:p,loop:g,count:u,style:m})),y}function nt(e,t){let n=[],r=e.segments;for(let i=0;i<r.length;i++){let o=ne(r[i],e.points,t);o.length&&n.push(...o)}return n}function nn(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let o=!!e._loop,{start:l,end:a}=function(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return{start:i,end:o%=t}}(n,i,o,r);if(!0===r)return nr(e,[{start:l,end:a,loop:o}],n,t);let s=a<l?a+i:a,u=!!e._fullLoop&&0===l&&a===i-1;return nr(e,function(e,t,n,r){let i;let o=e.length,l=[],a=t,s=e[t];for(i=t+1;i<=n;++i){let n=e[i%o];n.skip||n.stop?s.skip||(r=!1,l.push({start:t%o,end:(i-1)%o,loop:r}),t=a=n.stop?i:null):(a=i,s.skip&&(t=i)),s=n}return null!==a&&l.push({start:t%o,end:a%o,loop:r}),l}(n,l,s,u),n,t)}function nr(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){let i=e._chart.getContext(),o=ni(e.options),{_datasetIndex:l,options:{spanGaps:a}}=e,s=n.length,u=[],c=o,f=t[0].start,d=f;function h(e,t,r,i){let o=a?-1:1;if(e!==t){for(e+=s;n[e%s].skip;)e-=o;for(;n[t%s].skip;)t+=o;e%s!=t%s&&(u.push({start:e%s,end:t%s,loop:r,style:i}),c=i,f=t%s)}}for(let e of t){let t;let o=n[(f=a?f:e.start)%s];for(d=f+1;d<=e.end;d++){let a=n[d%s];(function(e,t){if(!t)return!1;let n=[],r=function(e,t){return eQ(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.stringify(t,r)})(t=ni(r.setContext(tE(i,{type:"segment",p0:o,p1:a,p0DataIndex:(d-1)%s,p1DataIndex:d%s,datasetIndex:l}))),c)&&h(f,d-1,e.loop,c),o=a,c=t}f<d-1&&h(f,d-1,e.loop,c)}return u}(e,t,n,r):t}function ni(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}},79715:function(e,t,n){"use strict";n.d(t,{P:function(){return b}});let r=/\\(\\)?/g,i=RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,a=function(e){let t=typeof e;return"symbol"===t||"object"===t&&e&&"[object Symbol]"===Object.prototype.toString.call(e)},s=function(e,t){if(Array.isArray(e))return!1;let n=typeof e;return!!("number"===n||"symbol"===n||"boolean"===n||!e||a(e))||l.test(e)||!o.test(e)||null!=t&&e in Object(t)},u=function(e){let t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,i,o){let l=e;i?l=o.replace(r,"$1"):n&&(l=n.trim()),t.push(l)}),t},c=function(e){if("string"==typeof e||a(e))return e;let t=`${e}`;return"0"==t&&1/e==-INFINITY?"-0":t},f=function(e,t){var n,r;n=t,r=e,t=Array.isArray(n)?n:s(n,r)?[n]:u(n);let i=0,o=t.length;for(;null!=e&&i<o;)e=e[c(t[i++])];return i&&i===o?e:void 0},d=function(e){if(null==e)return[void 0,void 0];if("object"!=typeof e)return[Error('Invalid option "columns": expect an array or an object')];if(Array.isArray(e)){let t=[];for(let n of e)if("string"==typeof n)t.push({key:n,header:n});else{if("object"!=typeof n||null===n||Array.isArray(n))return[Error("Invalid column definition: expect a string or an object")];if(!n.key)return[Error('Invalid column definition: property "key" is required')];void 0===n.header&&(n.header=n.key),t.push(n)}e=t}else{let t=[];for(let n in e)t.push({key:n,header:e[n]});e=t}return[void 0,e]};var h=n(20631).lW;class p extends Error{constructor(e,t,...n){for(let r of(Array.isArray(t)&&(t=t.join(" ")),super(t),void 0!==Error.captureStackTrace&&Error.captureStackTrace(this,p),this.code=e,n))for(let e in r){let t=r[e];this[e]=h.isBuffer(t)?t.toString():null==t?t:JSON.parse(JSON.stringify(t))}}}var g=n(20631).lW;let m=function(e){let t={};for(let n in e)t[n.replace(/([A-Z])/g,function(e,t){return"_"+t.toLowerCase()})]=e[n];if(void 0===t.bom||null===t.bom||!1===t.bom)t.bom=!1;else if(!0!==t.bom)return[new p("CSV_OPTION_BOOLEAN_INVALID_TYPE",["option `bom` is optional and must be a boolean value,",`got ${JSON.stringify(t.bom)}`])];if(void 0===t.delimiter||null===t.delimiter)t.delimiter=",";else if(g.isBuffer(t.delimiter))t.delimiter=t.delimiter.toString();else if("string"!=typeof t.delimiter)return[new p("CSV_OPTION_DELIMITER_INVALID_TYPE",["option `delimiter` must be a buffer or a string,",`got ${JSON.stringify(t.delimiter)}`])];if(void 0===t.quote||null===t.quote)t.quote='"';else if(!0===t.quote)t.quote='"';else if(!1===t.quote)t.quote="";else if(g.isBuffer(t.quote))t.quote=t.quote.toString();else if("string"!=typeof t.quote)return[new p("CSV_OPTION_QUOTE_INVALID_TYPE",["option `quote` must be a boolean, a buffer or a string,",`got ${JSON.stringify(t.quote)}`])];if((void 0===t.quoted||null===t.quoted)&&(t.quoted=!1),void 0===t.escape_formulas||null===t.escape_formulas)t.escape_formulas=!1;else if("boolean"!=typeof t.escape_formulas)return[new p("CSV_OPTION_ESCAPE_FORMULAS_INVALID_TYPE",["option `escape_formulas` must be a boolean,",`got ${JSON.stringify(t.escape_formulas)}`])];if((void 0===t.quoted_empty||null===t.quoted_empty)&&(t.quoted_empty=void 0),void 0===t.quoted_match||null===t.quoted_match||!1===t.quoted_match?t.quoted_match=null:Array.isArray(t.quoted_match)||(t.quoted_match=[t.quoted_match]),t.quoted_match)for(let e of t.quoted_match){let t="string"==typeof e,n=e instanceof RegExp;if(!t&&!n)return[Error(`Invalid Option: quoted_match must be a string or a regex, got ${JSON.stringify(e)}`)]}if((void 0===t.quoted_string||null===t.quoted_string)&&(t.quoted_string=!1),(void 0===t.eof||null===t.eof)&&(t.eof=!0),void 0===t.escape||null===t.escape)t.escape='"';else if(g.isBuffer(t.escape))t.escape=t.escape.toString();else if("string"!=typeof t.escape)return[Error(`Invalid Option: escape must be a buffer or a string, got ${JSON.stringify(t.escape)}`)];if(t.escape.length>1)return[Error(`Invalid Option: escape must be one character, got ${t.escape.length} characters`)];(void 0===t.header||null===t.header)&&(t.header=!1);let[n,r]=d(t.columns);if(void 0!==n)return[n];if(t.columns=r,(void 0===t.quoted||null===t.quoted)&&(t.quoted=!1),(void 0===t.cast||null===t.cast)&&(t.cast={}),(void 0===t.cast.bigint||null===t.cast.bigint)&&(t.cast.bigint=e=>""+e),(void 0===t.cast.boolean||null===t.cast.boolean)&&(t.cast.boolean=e=>e?"1":""),(void 0===t.cast.date||null===t.cast.date)&&(t.cast.date=e=>""+e.getTime()),(void 0===t.cast.number||null===t.cast.number)&&(t.cast.number=e=>""+e),(void 0===t.cast.object||null===t.cast.object)&&(t.cast.object=e=>JSON.stringify(e)),(void 0===t.cast.string||null===t.cast.string)&&(t.cast.string=function(e){return e}),void 0!==t.on_record&&"function"!=typeof t.on_record)return[Error('Invalid Option: "on_record" must be a function.')];if(void 0===t.record_delimiter||null===t.record_delimiter)t.record_delimiter="\n";else if(g.isBuffer(t.record_delimiter))t.record_delimiter=t.record_delimiter.toString();else if("string"!=typeof t.record_delimiter)return[Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(t.record_delimiter)}`)];switch(t.record_delimiter){case"unix":t.record_delimiter="\n";break;case"mac":t.record_delimiter="\r";break;case"windows":t.record_delimiter="\r\n";break;case"ascii":t.record_delimiter="\x1e";break;case"unicode":t.record_delimiter="\u2028"}return[void 0,t]};var y=n(20631).lW;let v=y.from([239,187,191]),b=function(e,t={}){let n=[],[r,i]=m(t);if(void 0!==r)throw r;let o={options:i,state:{stop:!1},info:{records:0},__transform:function(e,t){let n,r;if(!Array.isArray(e)&&"object"!=typeof e)return Error(`Invalid Record: expect an array or an object, got ${JSON.stringify(e)}`);if(0===this.info.records){if(Array.isArray(e)){if(!0===this.options.header&&void 0===this.options.columns)return Error("Undiscoverable Columns: header option requires column option or object records")}else if(void 0===this.options.columns){let[t,n]=d(Object.keys(e));if(t)return;this.options.columns=n}}if(0===this.info.records){this.bom(t);let e=this.headers(t);if(e)return e}try{this.options.on_record&&this.options.on_record(e,this.info.records)}catch(e){return e}if(this.options.eof){if([n,r]=this.stringify(e),n)return n;if(void 0===r)return;r+=this.options.record_delimiter}else{if([n,r]=this.stringify(e),n)return n;if(void 0===r)return;(this.options.header||this.info.records)&&(r=this.options.record_delimiter+r)}this.info.records++,t(r)},stringify:function(e,t=!1){if("object"!=typeof e)return[void 0,e];let{columns:n}=this.options,r=[];if(Array.isArray(e)){n&&e.splice(n.length);for(let n=0;n<e.length;n++){let i=e[n],[o,l]=this.__cast(i,{index:n,column:n,records:this.info.records,header:t});if(o)return[o];r[n]=[l,i]}}else for(let i=0;i<n.length;i++){let o=f(e,n[i].key),[l,a]=this.__cast(o,{index:i,column:n[i].key,records:this.info.records,header:t});if(l)return[l];r[i]=[a,o]}let i="";for(let e=0;e<r.length;e++){let t,n;let[l,a]=r[e];if("string"==typeof l)t=this.options;else{var o;if("object"!=typeof(o=l)||null===o||Array.isArray(o)){if(null!=l)return[Error(`Invalid Casting Value: returned value must return a string, an object, null or undefined, got ${JSON.stringify(l)}`)];t=this.options}else{if(l=(t=l).value,delete t.value,"string"!=typeof l&&null!=l&&n)return[Error(`Invalid Casting Value: returned value must return a string, null or undefined, got ${JSON.stringify(l)}`)];if(t={...this.options,...t},[n,t]=m(t),void 0!==n)return[n]}}let{delimiter:s,escape:u,quote:c,quoted:f,quoted_empty:d,quoted_string:h,quoted_match:p,record_delimiter:g,escape_formulas:y}=t;if(""===l&&""===a){let e=p&&p.filter(e=>"string"==typeof e?-1!==l.indexOf(e):e.test(l));e=e&&e.length>0;let t=e||!0===d||!0===h&&!1!==d;!0===t&&(l=c+l+c),i+=l}else if(l){if("string"!=typeof l)return[Error(`Formatter must return a string, null or undefined, got ${JSON.stringify(l)}`)];let e=s.length&&l.indexOf(s)>=0,t=""!==c&&l.indexOf(c)>=0,n=l.indexOf(u)>=0&&u!==c,r=l.indexOf(g)>=0,o=h&&"string"==typeof a,d=p&&p.filter(e=>"string"==typeof e?-1!==l.indexOf(e):e.test(l));if(d=d&&d.length>0,y)switch(l[0]){case"=":case"+":case"-":case"@":case" ":case"\r":case"=":case"+":case"-":case"@":l=`'${l}`}let m=!0===t||e||r||f||o||d;if(!0===m&&!0===n){let e="\\"===u?RegExp(u+u,"g"):RegExp(u,"g");l=l.replace(e,u+u)}if(!0===t){let e=RegExp(c,"g");l=l.replace(e,u+c)}!0===m&&(l=c+l+c),i+=l}else(!0===d||""===a&&!0===h&&!1!==d)&&(i+=c+c);e!==r.length-1&&(i+=s)}return[void 0,i]},bom:function(e){!0===this.options.bom&&e(v)},headers:function(e){let t;if(!1===this.options.header||void 0===this.options.columns)return;let n=this.options.columns.map(e=>e.header);if(this.options.eof?([t,n]=this.stringify(n,!0),n+=this.options.record_delimiter):[t,n]=this.stringify(n),t)return t;e(n)},__cast:function(e,t){let n=typeof e;try{if("string"===n)return[void 0,this.options.cast.string(e,t)];if("bigint"===n)return[void 0,this.options.cast.bigint(e,t)];if("number"===n)return[void 0,this.options.cast.number(e,t)];if("boolean"===n)return[void 0,this.options.cast.boolean(e,t)];else if(e instanceof Date)return[void 0,this.options.cast.date(e,t)];else if("object"===n&&null!==e)return[void 0,this.options.cast.object(e,t)];else return[void 0,e,e]}catch(e){return[e]}}};for(let t of e){let e=o.__transform(t,function(e){n.push(e)});if(void 0!==e)throw e}if(0===n.length){o.bom(e=>{n.push(e)});let e=o.headers(e=>{n.push(e)});if(void 0!==e)throw e}return n.join("")}},88144:function(e,t,n){"use strict";function r(){}function i(){}n.d(t,{ok:function(){return r},t1:function(){return i}})},68192:function(e,t,n){"use strict";function r(){}n.d(t,{CT:function(){return p},NV:function(){return a},SY:function(){return c}}),r.prototype={diff:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.callback;"function"==typeof r&&(i=r,r={}),this.options=r;var o=this;function l(e){return i?(setTimeout(function(){i(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,c=a+s;r.maxEditLength&&(c=Math.min(c,r.maxEditLength));var f=null!==(n=r.timeout)&&void 0!==n?n:1/0,d=Date.now()+f,h=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(h[0],t,e,0);if(h[0].oldPos+1>=s&&p+1>=a)return l([{value:this.join(t),count:t.length}]);var g=-1/0,m=1/0;function y(){for(var n=Math.max(g,-u);n<=Math.min(m,u);n+=2){var r=void 0,i=h[n-1],c=h[n+1];i&&(h[n-1]=void 0);var f=!1;if(c){var d=c.oldPos-n;f=c&&0<=d&&d<a}var y=i&&i.oldPos+1<s;if(!f&&!y){h[n]=void 0;continue}if(r=!y||f&&i.oldPos+1<c.oldPos?o.addToPath(c,!0,void 0,0):o.addToPath(i,void 0,!0,1),p=o.extractCommon(r,t,e,n),r.oldPos+1>=s&&p+1>=a)return l(function(e,t,n,r,i){for(var o,l=[];t;)l.push(t),o=t.previousComponent,delete t.previousComponent,t=o;l.reverse();for(var a=0,s=l.length,u=0,c=0;a<s;a++){var f=l[a];if(f.removed){if(f.value=e.join(r.slice(c,c+f.count)),c+=f.count,a&&l[a-1].added){var d=l[a-1];l[a-1]=l[a],l[a]=d}}else{if(!f.added&&i){var h=n.slice(u,u+f.count);h=h.map(function(e,t){var n=r[c+t];return n.length>e.length?n:e}),f.value=e.join(h)}else f.value=e.join(n.slice(u,u+f.count));u+=f.count,f.added||(c+=f.count)}}var p=l[s-1];return s>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(l[s-2].value+=p.value,l.pop()),l}(o,r.lastComponent,t,e,o.useLongestToken));h[n]=r,r.oldPos+1>=s&&(m=Math.min(m,n-1)),p+1>=a&&(g=Math.max(g,n+1))}u++}if(i)!function e(){setTimeout(function(){if(u>c||Date.now()>d)return i();y()||e()},0)}();else for(;u<=c&&Date.now()<=d;){var v=y();if(v)return v}},addToPath:function(e,t,n,r){var i=e.lastComponent;return i&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,l=e.oldPos,a=l-r,s=0;a+1<i&&l+1<o&&this.equals(t[a+1],n[l+1]);)a++,l++,s++;return s&&(e.lastComponent={count:s,previousComponent:e.lastComponent}),e.oldPos=l,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}},new r;var i=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,o=/\S/,l=new r;function a(e,t,n){return n=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(n,{ignoreWhitespace:!0}),l.diff(e,t,n)}l.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!o.test(e)&&!o.test(t)},l.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&i.test(t[n])&&i.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var s=new r;s.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var u=new r;function c(e,t,n){return u.diff(e,t,n)}function f(e){return(f="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)}u.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},new r().tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var d=Object.prototype.toString,h=new r;function p(e,t,n){return h.diff(e,t,n)}h.useLongestToken=!0,h.tokenize=s.tokenize,h.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(function e(t,n,r,i,o){for(n=n||[],r=r||[],i&&(t=i(o,t)),l=0;l<n.length;l+=1)if(n[l]===t)return r[l];if("[object Array]"===d.call(t)){for(n.push(t),a=Array(t.length),r.push(a),l=0;l<t.length;l+=1)a[l]=e(t[l],n,r,i,o);return n.pop(),r.pop(),a}if(t&&t.toJSON&&(t=t.toJSON()),"object"===f(t)&&null!==t){n.push(t),a={},r.push(a);var l,a,s,u=[];for(s in t)t.hasOwnProperty(s)&&u.push(s);for(u.sort(),l=0;l<u.length;l+=1)a[s=u[l]]=e(t[s],n,r,i,s);n.pop(),r.pop()}else a=t;return a}(e,null,null,i),i," ")},h.equals=function(e,t){return r.prototype.equals.call(h,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var g=new r;g.tokenize=function(e){return e.slice()},g.join=g.removeEmpty=function(e){return e}},58345:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});let r={};function i(e,t){let n=t||r,i="boolean"!=typeof n.includeImageAlt||n.includeImageAlt,l="boolean"!=typeof n.includeHtml||n.includeHtml;return o(e,i,l)}function o(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return l(e.children,t,n)}return Array.isArray(e)?l(e,t,n):""}function l(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=o(e[i],t,n);return r.join("")}},6333:function(e,t,n){"use strict";n.d(t,{w:function(){return o}});var r=n(88785),i=n(80435);let o={tokenize:function(e,t,n){return function(t){return(0,i.xz)(t)?(0,r.f)(e,o,"linePrefix")(t):o(t)};function o(e){return null===e||(0,i.Ch)(e)?t(e):n(e)}},partial:!0}},88785:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(80435);function i(e,t,n,i){let o=i?i-1:Number.POSITIVE_INFINITY,l=0;return function(i){return(0,r.xz)(i)?(e.enter(n),function i(a){return(0,r.xz)(a)&&l++<o?(e.consume(a),i):(e.exit(n),t(a))}(i)):t(i)}}},80435:function(e,t,n){"use strict";n.d(t,{AF:function(){return s},Av:function(){return l},B8:function(){return p},Ch:function(){return c},H$:function(){return i},Xh:function(){return h},jv:function(){return r},n9:function(){return o},pY:function(){return a},sR:function(){return u},xz:function(){return d},z3:function(){return f}});let r=g(/[A-Za-z]/),i=g(/[\dA-Za-z]/),o=g(/[#-'*+\--9=?A-Z^-~]/);function l(e){return null!==e&&(e<32||127===e)}let a=g(/\d/),s=g(/[\dA-Fa-f]/),u=g(/[!-/:-@[-`{-~]/);function c(e){return null!==e&&e<-2}function f(e){return null!==e&&(e<0||32===e)}function d(e){return -2===e||-1===e||32===e}let h=g(/\p{P}|\p{S}/u),p=g(/\s/);function g(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},40147:function(e,t,n){"use strict";function r(e,t,n,r){let i;let o=e.length,l=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l<r.length;)(i=r.slice(l,l+1e4)).unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:function(){return i},d:function(){return r}})},27584:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(80435);function i(e){return null===e||(0,r.z3)(e)||(0,r.B8)(e)?1:(0,r.Xh)(e)?2:void 0}},14850:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(40147);let i={}.hasOwnProperty;function o(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let o;let l=i.call(e,n)?e[n]:void 0,a=l||(e[n]={}),s=t[n];if(s)for(o in s){i.call(a,o)||(a[o]=[]);let e=s[o];!function(e,t){let n=-1,i=[];for(;++n<t.length;)("after"===t[n].add?e:i).push(t[n]);(0,r.d)(e,0,0,i)}(a[o],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}},37681:function(e,t,n){"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{d:function(){return r}})},60441:function(e,t,n){"use strict";function r(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}n.d(t,{C:function(){return r}})},5971:function(e,t,n){"use strict";n.d(t,{U:function(){return ny}});var r={};n.r(r),n.d(r,{boolean:function(){return y},booleanish:function(){return v},commaOrSpaceSeparated:function(){return C},commaSeparated:function(){return w},number:function(){return x},overloadedBoolean:function(){return b},spaceSeparated:function(){return k}});var i={};n.r(i),n.d(i,{attentionMarkers:function(){return ty},contentInitial:function(){return tf},disable:function(){return tv},document:function(){return tc},flow:function(){return th},flowInitial:function(){return td},insideSpan:function(){return tm},string:function(){return tp},text:function(){return tg}});var o=n(88144);let l=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s={};function u(e,t){let n=(t||s).jsx?a:l;return n.test(e)}let c=/[ \t\n\f\r]/g;function f(e){return""===e.replace(c,"")}class d{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function h(e,t){let n={},r={},i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new d(n,r,t)}function p(e){return e.toLowerCase()}d.prototype.property={},d.prototype.normal={},d.prototype.space=null;class g{constructor(e,t){this.property=e,this.attribute=t}}g.prototype.space=null,g.prototype.boolean=!1,g.prototype.booleanish=!1,g.prototype.overloadedBoolean=!1,g.prototype.number=!1,g.prototype.commaSeparated=!1,g.prototype.spaceSeparated=!1,g.prototype.commaOrSpaceSeparated=!1,g.prototype.mustUseProperty=!1,g.prototype.defined=!1;let m=0,y=S(),v=S(),b=S(),x=S(),k=S(),w=S(),C=S();function S(){return 2**++m}let R=Object.keys(r);class E extends g{constructor(e,t,n,i){var o,l;let a=-1;if(super(e,t),i&&(this.space=i),"number"==typeof n)for(;++a<R.length;){let e=R[a];o=R[a],(l=(n&r[e])===r[e])&&(this[o]=l)}}}E.prototype.defined=!0;let M={}.hasOwnProperty;function P(e){let t;let n={},r={};for(t in e.properties)if(M.call(e.properties,t)){let i=e.properties[t],o=new E(t,e.transform(e.attributes||{},t),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(o.mustUseProperty=!0),n[t]=o,r[p(t)]=t,r[p(o.attribute)]=t}return new d(n,r,e.space)}let _=P({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),O=P({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function I(e,t){return t in e?e[t]:t}function A(e,t){return I(e,t.toLowerCase())}let F=P({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:A,properties:{xmlns:null,xmlnsXLink:null}}),T=P({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:v,ariaAutoComplete:null,ariaBusy:v,ariaChecked:v,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:k,ariaCurrent:null,ariaDescribedBy:k,ariaDetails:null,ariaDisabled:v,ariaDropEffect:k,ariaErrorMessage:null,ariaExpanded:v,ariaFlowTo:k,ariaGrabbed:v,ariaHasPopup:null,ariaHidden:v,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:k,ariaLevel:x,ariaLive:null,ariaModal:v,ariaMultiLine:v,ariaMultiSelectable:v,ariaOrientation:null,ariaOwns:k,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:v,ariaReadOnly:v,ariaRelevant:null,ariaRequired:v,ariaRoleDescription:k,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:v,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null}}),L=P({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:A,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:w,acceptCharset:k,accessKey:k,action:null,allow:null,allowFullScreen:y,allowPaymentRequest:y,allowUserMedia:y,alt:null,as:null,async:y,autoCapitalize:null,autoComplete:k,autoFocus:y,autoPlay:y,blocking:k,capture:null,charSet:null,checked:y,cite:null,className:k,cols:x,colSpan:null,content:null,contentEditable:v,controls:y,controlsList:k,coords:x|w,crossOrigin:null,data:null,dateTime:null,decoding:null,default:y,defer:y,dir:null,dirName:null,disabled:y,download:b,draggable:v,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:y,formTarget:null,headers:k,height:x,hidden:y,high:x,href:null,hrefLang:null,htmlFor:k,httpEquiv:k,id:null,imageSizes:null,imageSrcSet:null,inert:y,inputMode:null,integrity:null,is:null,isMap:y,itemId:null,itemProp:k,itemRef:k,itemScope:y,itemType:k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:y,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:y,muted:y,name:null,nonce:null,noModule:y,noValidate:y,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored: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,onScrollEnd: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:y,optimum:x,pattern:null,ping:k,placeholder:null,playsInline:y,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:y,referrerPolicy:null,rel:k,required:y,reversed:y,rows:x,rowSpan:x,sandbox:k,scope:null,scoped:y,seamless:y,selected:y,shadowRootClonable:y,shadowRootDelegatesFocus:y,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:v,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:y,useMap:null,value:v,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:k,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:y,declare:y,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:y,noHref:y,noShade:y,noWrap:y,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:v,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:y,disableRemotePlayback:y,prefix:null,property:null,results:x,security:null,unselectable:null}}),z=P({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:I,properties:{about:C,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:k,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:y,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:w,g2:w,glyphName:w,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:C,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose: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,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:C,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:C,rev:C,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:C,requiredFeatures:C,requiredFonts:C,requiredFormats:C,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:C,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:C,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:C,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),D=h([O,_,F,T,L],"html"),j=h([O,_,F,T,z],"svg"),N=/^data[-\w.:]+$/i,V=/-[a-z]/g,B=/[A-Z]/g;function H(e){return"-"+e.toLowerCase()}function q(e){return e.charAt(1).toUpperCase()}let Z={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var $=n(39263),U=$.default||$;let G=Y("end"),W=Y("start");function Y(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function X(e){return e&&"object"==typeof e?"position"in e||"type"in e?J(e.position):"start"in e||"end"in e?J(e):"line"in e||"column"in e?K(e):"":""}function K(e){return Q(e&&e.line)+":"+Q(e&&e.column)}function J(e){return K(e&&e.start)+"-"+K(e&&e.end)}function Q(e){return e&&"number"==typeof e?e:1}class ee extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=l?l.line:void 0,this.name=X(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}ee.prototype.file="",ee.prototype.name="",ee.prototype.reason="",ee.prototype.message="",ee.prototype.stack="",ee.prototype.column=void 0,ee.prototype.line=void 0,ee.prototype.ancestors=void 0,ee.prototype.cause=void 0,ee.prototype.fatal=void 0,ee.prototype.place=void 0,ee.prototype.ruleId=void 0,ee.prototype.source=void 0;let et={}.hasOwnProperty,en=new Map,er=/[A-Z]/g,ei=/-([a-z])/g,eo=new Set(["table","tbody","thead","tfoot","tr"]),el=new Set(["td","th"]),ea="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function es(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=j,e.schema=i),e.ancestors.push(t);let o=ed(e,t.tagName,!1),l=function(e,t){let n,r;let i={};for(r in t.properties)if("children"!==r&&et.call(t.properties,r)){let o=function(e,t,n){let r=function(e,t){let n=p(t),r=t,i=g;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&N.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(V,q);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!V.test(e)){let n=e.replace(B,H);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=E}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={},r=""===e[e.length-1]?[...e,""]:e;return r.join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){let n={};try{U(t,function(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(ei,ep)),n[r]=t})}catch(t){if(!e.ignoreInvalidStyle){let n=new ee("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ea+"#cannot-parse-style-attribute",n}}return n}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t;let n={};for(t in e)et.call(e,t)&&(n[function(e){let t=e.replace(er,eg);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Z[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(o){let[r,l]=o;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof l&&el.has(t.tagName)?n=l:i[r]=l}}if(n){let t=i.style||(i.style={});t["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n}return i}(e,t),a=ef(e,t);return eo.has(t.tagName)&&(a=a.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&f(e.value):f(e))})),eu(e,l,o,t),ec(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree,r=n.body[0];return(0,o.ok)("ExpressionStatement"===r.type),e.evaluater.evaluateExpression(r.expression)}eh(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.name&&"html"===r.space&&(i=j,e.schema=i),e.ancestors.push(t);let l=null===t.name?e.Fragment:ed(e,t.name,!0),a=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree,i=t.body[0];(0,o.ok)("ExpressionStatement"===i.type);let l=i.expression;(0,o.ok)("ObjectExpression"===l.type);let a=l.properties[0];(0,o.ok)("SpreadElement"===a.type),Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else eh(e,t.position)}else{let i;let l=r.name;if(r.value&&"object"==typeof r.value){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree,n=t.body[0];(0,o.ok)("ExpressionStatement"===n.type),i=e.evaluater.evaluateExpression(n.expression)}else eh(e,t.position)}else i=null===r.value||r.value;n[l]=i}return n}(e,t),s=ef(e,t);return eu(e,a,l,t),ec(a,s),e.ancestors.pop(),e.schema=r,e.create(t,l,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eh(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return ec(r,ef(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function eu(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ec(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ef(e,t){let n=[],r=-1,i=e.passKeys?new Map:en;for(;++r<t.children.length;){let o;let l=t.children[r];if(e.passKeys){let e="element"===l.type?l.tagName:"mdxJsxFlowElement"===l.type||"mdxJsxTextElement"===l.type?l.name:void 0;if(e){let t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}let a=es(e,l,o);void 0!==a&&n.push(a)}return n}function ed(e,t,n){let r;if(n){if(t.includes(".")){let e;let n=t.split("."),i=-1;for(;++i<n.length;){let t=u(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}(0,o.ok)(e,"always a result"),r=e}else r=u(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t}}else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return et.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);eh(e)}function eh(e,t){let n=new ee("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ea+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ep(e,t){return t.toUpperCase()}function eg(e){return"-"+e.toLowerCase()}let em={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var ey=n(24004),ev=n(58345),eb=n(40147);class ex{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&ek(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ek(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ek(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(e<this.left.length){let t=this.left.splice(e,Number.POSITIVE_INFINITY);ek(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);ek(this.left,t.reverse())}}}}function ek(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ew(e){let t,n,r,i,o,l,a;let s={},u=-1,c=new ex(e);for(;++u<c.length;){for(;(u in s);)u=s[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&(l=t[1]._tokenizer.events,(r=0)<l.length&&"lineEndingBlank"===l[r][1].type&&(r+=2),r<l.length&&"content"===l[r][1].type))for(;++r<l.length&&"content"!==l[r][1].type;)"chunkText"===l[r][1].type&&(l[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r;let i=e.get(t)[1],o=e.get(t)[2],l=t-1,a=[],s=i._tokenizer||o.parser[i.contentType](i.start),u=s.events,c=[],f={},d=-1,h=i,p=0,g=0,m=[g];for(;h;){for(;e.get(++l)[1]!==h;);a.push(l),!h._tokenizer&&(n=o.sliceStream(h),h.next||n.push(null),r&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=h,h=h.next}for(h=i;++d<u.length;)"exit"===u[d][0]&&"enter"===u[d-1][0]&&u[d][1].type===u[d-1][1].type&&u[d][1].start.line!==u[d][1].end.line&&(g=d+1,m.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):m.pop(),d=m.length;d--;){let t=u.slice(m[d],m[d+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),d=-1;++d<c.length;)f[p+c[d][0]]=p+c[d][1],p+=c[d][1]-c[d][0]-1;return f}(c,u)),u=s[u],a=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else break;n&&(t[1].end=Object.assign({},c.get(n)[1].start),(o=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,o))}}return(0,eb.d)(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!a}var eC=n(14850),eS=n(88785),eR=n(80435);let eE={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,eS.f)(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return(0,eR.Ch)(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},eM={tokenize:function(e){let t,n,r;let i=this,o=[],l=0;return a;function a(t){if(l<o.length){let n=o[l];return i.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(l++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,o=r;for(;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}m(l);let a=r;for(;a<i.events.length;)i.events[a][1].end=Object.assign({},n),a++;return(0,eb.d)(i.events,o+1,0,i.events.slice(r)),i.events.length=a,u(e)}return a(e)}function u(n){if(l===o.length){if(!t)return d(n);if(t.currentConstruct&&t.currentConstruct.concrete)return p(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(eP,c,f)(n)}function c(e){return t&&y(),m(l),d(e)}function f(e){return i.parser.lazy[i.now().line]=l!==o.length,r=i.now().offset,p(e)}function d(t){return i.containerState={},e.attempt(eP,h,p)(t)}function h(e){return l++,o.push([i.currentConstruct,i.containerState]),d(e)}function p(r){if(null===r){t&&y(),m(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{contentType:"flow",previous:n,_tokenizer:t}),function t(n){if(null===n){g(e.exit("chunkFlow"),!0),m(0),e.consume(n);return}return(0,eR.Ch)(n)?(e.consume(n),g(e.exit("chunkFlow")),l=0,i.interrupt=void 0,a):(e.consume(n),t)}(r)}function g(e,o){let a=i.sliceStream(e);if(o&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),i.parser.lazy[e.start.line]){let e,n,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][1].end.offset>r))return;let a=i.events.length,s=a;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){if(e){n=i.events[s][1].end;break}e=!0}for(m(l),o=a;o<i.events.length;)i.events[o][1].end=Object.assign({},n),o++;(0,eb.d)(i.events,s+1,0,i.events.slice(a)),i.events.length=o}}function m(t){let n=o.length;for(;n-- >t;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eP={tokenize:function(e,t,n){return(0,eS.f)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var e_=n(6333);let eO={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):(0,eR.Ch)(t)?e.check(eI,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return ew(e),e}},eI={tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,eS.f)(e,i,"linePrefix")};function i(i){if(null===i||(0,eR.Ch)(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0},eA={tokenize:function(e){let t=this,n=e.attempt(e_.w,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,(0,eS.f)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eO,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},eF={resolveAll:eD()},eT=ez("string"),eL=ez("text");function ez(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,l);return o;function o(e){return s(e)?i(e):l(e)}function l(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),a}function a(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:eD("text"===e?ej:void 0)}}function eD(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function ej(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r;let i=e[n-1][1],o=t.sliceStream(i),l=o.length,a=-1,s=0;for(;l--;){let e=o[l];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{l++;break}}if(s){let o={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-s,offset:i.end.offset-s,_index:i.start._index+l,_bufferIndex:l?a:i.start._bufferIndex+a},end:Object.assign({},i.end)};i.end=Object.assign({},o.start),i.start.offset===i.end.offset?Object.assign(i,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}var eN=n(60441);let eV={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(o){return e.enter("thematicBreak"),r=o,function o(l){return l===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),(0,eR.xz)(n)?(0,eS.f)(e,o,"whitespace")(n):o(n))}(l)):i>=3&&(null===l||(0,eR.Ch)(l))?(e.exit("thematicBreak"),t(l)):n(l)}(o)}}},eB={name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,l=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,eR.pY)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(eV,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,eR.pY)(i)&&++l<10?(e.consume(i),t):(!r.interrupt||l<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(e_.w,r.interrupt?n:s,e.attempt(eH,c,u))}function s(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function u(t){return(0,eR.xz)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(e_.w,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,eS.f)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,eR.xz)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eq,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,eS.f)(e,e.attempt(eB,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},eH={tokenize:function(e,t,n){let r=this;return(0,eS.f)(e,function(e){let i=r.events[r.events.length-1];return!(0,eR.xz)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},eq={tokenize:function(e,t,n){let r=this;return(0,eS.f)(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},eZ={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,eR.xz)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,eR.xz)(t)?(0,eS.f)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(eZ,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function e$(e,t,n,r,i,o,l,a,s){let u=s||Number.POSITIVE_INFINITY,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f):null===t||32===t||41===t||(0,eR.Av)(t)?n(t):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),p(t))};function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||(0,eR.Ch)(t)?n(t):(e.consume(t),92===t?h:d)}function h(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function p(i){return!c&&(null===i||41===i||(0,eR.z3)(i))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,p):41===i?(e.consume(i),c--,p):null===i||32===i||40===i||(0,eR.Av)(i)?n(i):(e.consume(i),92===i?g:p)}function g(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function eU(e,t,n,r,i,o){let l;let a=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(f){return s>999||null===f||91===f||93===f&&!l||94===f&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(0,eR.Ch)(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||(0,eR.Ch)(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),l||(l=!(0,eR.xz)(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function eG(e,t,n,r,i,o){let l;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),l=40===t?41:t,a):n(t)};function a(n){return n===l?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),s(n))}function s(t){return t===l?(e.exit(o),a(l)):null===t?n(t):(0,eR.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,eS.f)(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===l||null===t||(0,eR.Ch)(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===l||92===t?(e.consume(t),u):u(t)}}function eW(e,t){let n;return function r(i){return(0,eR.Ch)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,eR.xz)(i)?(0,eS.f)(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var eY=n(37681);let eX={tokenize:function(e,t,n){return function(t){return(0,eR.z3)(t)?eW(e,r)(t):n(t)};function r(t){return eG(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,eR.xz)(t)?(0,eS.f)(e,o,"whitespace")(t):o(t)}function o(e){return null===e||(0,eR.Ch)(e)?t(e):n(e)}},partial:!0},eK={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,eS.f)(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):(0,eR.Ch)(n)?e.attempt(eJ,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,eR.Ch)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},eJ={tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,eR.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,eS.f)(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):(0,eR.Ch)(e)?i(e):n(e)}},partial:!0},eQ={name:"setextUnderline",tokenize:function(e,t,n){let r;let i=this;return function(t){let l,a=i.events.length;for(;a--;)if("lineEnding"!==i.events[a][1].type&&"linePrefix"!==i.events[a][1].type&&"content"!==i.events[a][1].type){l="paragraph"===i.events[a][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||l)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,eR.xz)(n)?(0,eS.f)(e,o,"lineSuffix")(n):o(n))}(t)):n(t)};function o(r){return null===r||(0,eR.Ch)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let l={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",l,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=l,e.push(["exit",l,t]),e}},e0=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],e1=["pre","script","style","textarea"],e2={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(e_.w,t,n)}},partial:!0},e4={tokenize:function(e,t,n){let r=this;return function(t){return(0,eR.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},e5={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},e3={name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,o={tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};function l(t){return e.enter("codeFencedFence"),(0,eR.xz)(t)?(0,eS.f)(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=a?(e.exit("codeFencedFenceSequence"),(0,eR.xz)(i)?(0,eS.f)(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||(0,eR.Ch)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},l=0,a=0;return function(t){return function(t){let o=i.events[i.events.length-1];return l=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),(0,eR.xz)(i)?(0,eS.f)(e,s,"whitespace")(i):s(i))}(t)}(t)};function s(o){return null===o||(0,eR.Ch)(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(e5,c,p)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,eR.Ch)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):(0,eR.xz)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,eS.f)(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function u(t){return null===t||(0,eR.Ch)(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,eR.Ch)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(o,p,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d}function d(t){return l>0&&(0,eR.xz)(t)?(0,eS.f)(e,h,"linePrefix",l+1)(t):h(t)}function h(t){return null===t||(0,eR.Ch)(t)?e.check(e5,c,p)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,eR.Ch)(n)?(e.exit("codeFlowValue"),h(n)):(e.consume(n),t)}(t))}function p(n){return e.exit("codeFenced"),t(n)}},concrete:!0},e9=document.createElement("i");function e6(e){let t="&"+e+";";e9.innerHTML=t;let n=e9.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let e8={name:"characterReference",tokenize:function(e,t,n){let r,i;let o=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,i=eR.H$,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=eR.AF,u):(e.enter("characterReferenceValue"),r=7,i=eR.pY,u(t))}function u(a){if(59===a&&l){let r=e.exit("characterReferenceValue");return i!==eR.H$||e6(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&l++<r?(e.consume(a),u):n(a)}}},e7={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return(0,eR.sR)(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},te={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,eS.f)(e,t,"linePrefix")}}},tt={name:"labelEnd",tokenize:function(e,t,n){let r,i;let o=this,l=o.events.length;for(;l--;)if(("labelImage"===o.events[l][1].type||"labelLink"===o.events[l][1].type)&&!o.events[l][1]._balanced){r=o.events[l][1];break}return function(t){return r?r._inactive?c(t):(i=o.parser.defined.includes((0,eY.d)(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(tn,u,i?u:c)(t):91===t?e.attempt(tr,u,i?s:c)(t):i?u(t):c(t)}function s(t){return e.attempt(ti,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,o,l=e.length,a=0;for(;l--;)if(n=e[l][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[l][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[l][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=l,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=l);let s={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},c={type:"labelText",start:Object.assign({},e[r+a+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",s,t],["enter",u,t]],o=(0,eb.V)(o,e.slice(r+1,r+a+3)),o=(0,eb.V)(o,[["enter",c,t]]),o=(0,eb.V)(o,(0,eN.C)(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=(0,eb.V)(o,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),o=(0,eb.V)(o,e.slice(i+1)),o=(0,eb.V)(o,[["exit",s,t]]),(0,eb.d)(e,r,e.length,o),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){let n=e[t][1];("labelImage"===n.type||"labelLink"===n.type||"labelEnd"===n.type)&&(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},tn={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return(0,eR.z3)(t)?eW(e,i)(t):i(t)}function i(t){return 41===t?u(t):e$(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return(0,eR.z3)(t)?eW(e,a)(t):u(t)}function l(e){return n(e)}function a(t){return 34===t||39===t||40===t?eG(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return(0,eR.z3)(t)?eW(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},tr={tokenize:function(e,t,n){let r=this;return function(t){return eU.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes((0,eY.d)(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},ti={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},to={name:"labelStartImage",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:tt.resolveAll};var tl=n(27584);let ta={name:"attention",tokenize:function(e,t){let n;let r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=(0,tl.r)(i);return function(l){return n=l,e.enter("attentionSequence"),function l(a){if(a===n)return e.consume(a),l;let s=e.exit("attentionSequence"),u=(0,tl.r)(a),c=!u||2===u&&o||r.includes(a),f=!o||2===o&&u||r.includes(i);return s._open=!!(42===n?c:c&&(o||!f)),s._close=!!(42===n?f:f&&(u||!c)),t(a)}(l)}},resolveAll:function(e,t){let n,r,i,o,l,a,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let f=Object.assign({},e[n][1].end),d=Object.assign({},e[c][1].start);ts(f,-a),ts(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},l={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:d},i={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:a>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},l.end)},e[n][1].end=Object.assign({},o.start),e[c][1].start=Object.assign({},l.end),s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=(0,eb.V)(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=(0,eb.V)(s,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),s=(0,eb.V)(s,(0,eN.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=(0,eb.V)(s,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=(0,eb.V)(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,(0,eb.d)(e,n-1,c-n+3,s),c=n+s.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e}};function ts(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let tu={name:"labelStartLink",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:tt.resolveAll},tc={42:eB,43:eB,45:eB,48:eB,49:eB,50:eB,51:eB,52:eB,53:eB,54:eB,55:eB,56:eB,57:eB,62:eZ},tf={91:{name:"definition",tokenize:function(e,t,n){let r;let i=this;return function(t){return e.enter("definition"),eU.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function o(t){return(r=(0,eY.d)(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l):n(t)}function l(t){return(0,eR.z3)(t)?eW(e,a)(t):a(t)}function a(t){return e$(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(eX,u,u)(t)}function u(t){return(0,eR.xz)(t)?(0,eS.f)(e,c,"whitespace")(t):c(t)}function c(o){return null===o||(0,eR.Ch)(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},td={[-2]:eK,[-1]:eK,32:eK},th={35:{name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||(0,eR.z3)(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||(0,eR.Ch)(r)?(e.exit("atxHeading"),t(r)):(0,eR.xz)(r)?(0,eS.f)(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||(0,eR.z3)(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(i)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},(0,eb.d)(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},42:eV,45:[eQ,eV],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,i,o,l,a;let s=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u};function u(l){return 33===l?(e.consume(l),c):47===l?(e.consume(l),i=!0,h):63===l?(e.consume(l),r=3,s.interrupt?t:A):(0,eR.jv)(l)?(e.consume(l),o=String.fromCharCode(l),p):n(l)}function c(i){return 45===i?(e.consume(i),r=2,f):91===i?(e.consume(i),r=5,l=0,d):(0,eR.jv)(i)?(e.consume(i),r=4,s.interrupt?t:A):n(i)}function f(r){return 45===r?(e.consume(r),s.interrupt?t:A):n(r)}function d(r){let i="CDATA[";return r===i.charCodeAt(l++)?(e.consume(r),l===i.length)?s.interrupt?t:S:d:n(r)}function h(t){return(0,eR.jv)(t)?(e.consume(t),o=String.fromCharCode(t),p):n(t)}function p(l){if(null===l||47===l||62===l||(0,eR.z3)(l)){let a=47===l,u=o.toLowerCase();return!a&&!i&&e1.includes(u)?(r=1,s.interrupt?t(l):S(l)):e0.includes(o.toLowerCase())?(r=6,a)?(e.consume(l),g):s.interrupt?t(l):S(l):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(l):i?function t(n){return(0,eR.xz)(n)?(e.consume(n),t):w(n)}(l):m(l))}return 45===l||(0,eR.H$)(l)?(e.consume(l),o+=String.fromCharCode(l),p):n(l)}function g(r){return 62===r?(e.consume(r),s.interrupt?t:S):n(r)}function m(t){return 47===t?(e.consume(t),w):58===t||95===t||(0,eR.jv)(t)?(e.consume(t),y):(0,eR.xz)(t)?(e.consume(t),m):w(t)}function y(t){return 45===t||46===t||58===t||95===t||(0,eR.H$)(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),b):(0,eR.xz)(t)?(e.consume(t),v):m(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,x):(0,eR.xz)(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,eR.z3)(n)?v(n):(e.consume(n),t)}(t)}function x(t){return t===a?(e.consume(t),a=null,k):null===t||(0,eR.Ch)(t)?n(t):(e.consume(t),x)}function k(e){return 47===e||62===e||(0,eR.xz)(e)?m(e):n(e)}function w(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||(0,eR.Ch)(t)?S(t):(0,eR.xz)(t)?(e.consume(t),C):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),P):60===t&&1===r?(e.consume(t),_):62===t&&4===r?(e.consume(t),F):63===t&&3===r?(e.consume(t),A):93===t&&5===r?(e.consume(t),I):(0,eR.Ch)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(e2,T,R)(t)):null===t||(0,eR.Ch)(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),S)}function R(t){return e.check(e4,E,T)(t)}function E(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return null===t||(0,eR.Ch)(t)?R(t):(e.enter("htmlFlowData"),S(t))}function P(t){return 45===t?(e.consume(t),A):S(t)}function _(t){return 47===t?(e.consume(t),o="",O):S(t)}function O(t){if(62===t){let n=o.toLowerCase();return e1.includes(n)?(e.consume(t),F):S(t)}return(0,eR.jv)(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),O):S(t)}function I(t){return 93===t?(e.consume(t),A):S(t)}function A(t){return 62===t?(e.consume(t),F):45===t&&2===r?(e.consume(t),A):S(t)}function F(t){return null===t||(0,eR.Ch)(t)?(e.exit("htmlFlowData"),T(t)):(e.consume(t),F)}function T(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},61:eQ,95:eV,96:e3,126:e3},tp={38:e8,92:e7},tg={[-5]:te,[-4]:te,[-3]:te,33:to,38:e8,42:ta,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,eR.jv)(t)?(e.consume(t),o):64===t?n(t):a(t)}function o(t){return 43===t||45===t||46===t||(0,eR.H$)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,l):(43===n||45===n||46===n||(0,eR.H$)(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,eR.Av)(r)?n(r):(e.consume(r),l)}function a(t){return 64===t?(e.consume(t),s):(0,eR.n9)(t)?(e.consume(t),a):n(t)}function s(i){return(0,eR.H$)(i)?function i(o){return 46===o?(e.consume(o),r=0,s):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||(0,eR.H$)(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o;let l=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),x):63===t?(e.consume(t),v):(0,eR.jv)(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,h):(0,eR.jv)(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),d):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),f):(0,eR.Ch)(t)?(o=c,O(t)):(e.consume(t),c)}function f(t){return 45===t?(e.consume(t),d):c(t)}function d(e){return 62===e?_(e):45===e?f(e):c(e)}function h(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?p:h):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),g):(0,eR.Ch)(t)?(o=p,O(t)):(e.consume(t),p)}function g(t){return 93===t?(e.consume(t),m):p(t)}function m(t){return 62===t?_(t):93===t?(e.consume(t),m):p(t)}function y(t){return null===t||62===t?_(t):(0,eR.Ch)(t)?(o=y,O(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):(0,eR.Ch)(t)?(o=v,O(t)):(e.consume(t),v)}function b(e){return 62===e?_(e):v(e)}function x(t){return(0,eR.jv)(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||(0,eR.H$)(t)?(e.consume(t),k):function t(n){return(0,eR.Ch)(n)?(o=t,O(n)):(0,eR.xz)(n)?(e.consume(n),t):_(n)}(t)}function w(t){return 45===t||(0,eR.H$)(t)?(e.consume(t),w):47===t||62===t||(0,eR.z3)(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),_):58===t||95===t||(0,eR.jv)(t)?(e.consume(t),S):(0,eR.Ch)(t)?(o=C,O(t)):(0,eR.xz)(t)?(e.consume(t),C):_(t)}function S(t){return 45===t||46===t||58===t||95===t||(0,eR.H$)(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),R):(0,eR.Ch)(n)?(o=t,O(n)):(0,eR.xz)(n)?(e.consume(n),t):C(n)}(t)}function R(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,E):(0,eR.Ch)(t)?(o=R,O(t)):(0,eR.xz)(t)?(e.consume(t),R):(e.consume(t),M)}function E(t){return t===r?(e.consume(t),r=void 0,P):null===t?n(t):(0,eR.Ch)(t)?(o=E,O(t)):(e.consume(t),E)}function M(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,eR.z3)(t)?C(t):(e.consume(t),M)}function P(e){return 47===e||62===e||(0,eR.z3)(e)?C(e):n(e)}function _(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return(0,eR.xz)(t)?(0,eS.f)(e,A,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):A(t)}function A(t){return e.enter("htmlTextData"),o(t)}}}],91:tu,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,eR.Ch)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},e7],93:tt,95:ta,96:{name:"codeText",tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),l(n))}(t)};function l(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),l):96===s?(i=e.enter("codeTextSequence"),r=0,function n(l){return 96===l?(e.consume(l),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(l)):(i.type="codeTextData",a(l))}(s)):(0,eR.Ch)(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||(0,eR.Ch)(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),a)}},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}},tm={null:[ta,eF]},ty={null:[42,95]},tv={null:[]},tb=/[\0\t\n\r]/g;function tx(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tw(e,t,n){if(t)return t;let r=n.charCodeAt(0);if(35===r){let e=n.charCodeAt(1),t=120===e||88===e;return tx(n.slice(t?2:1),t?16:10)}return e6(n)||e}let tC={}.hasOwnProperty;function tS(e){return{line:e.line,column:e.column,offset:e.offset}}function tR(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+X({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+X({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+X({start:t.start,end:t.end})+") is still open")}function tE(e){let t=this;t.parser=function(n){var r,o;let l,a,s,u;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(o=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(p),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(h),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(h,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(g),hardBreakTrailing:r(g),htmlFlow:r(m,i),htmlFlowData:u,htmlText:r(m,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(p),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:l(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:l(),autolinkEmail:function(e){c.call(this,e);let t=this.stack[this.stack.length-1];t.url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)},blockQuote:l(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:d,characterReferenceMarkerNumeric:d,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;if(r)t=tx(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0;else{let e=e6(n);t=e}let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){let t=this.stack.pop();t.position.end=tS(e.end)},codeFenced:l(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e},codeFencedFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e},codeFlowValue:c,codeIndented:l(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:l(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),codeTextData:c,data:c,definition:l(),definitionDestinationString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,eY.d)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e},emphasis:l(),hardBreakEscape:l(f),hardBreakTrailing:l(f),htmlFlow:l(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),htmlFlowData:c,htmlText:l(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),htmlTextData:c,image:l(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tk,tw),n.identifier=(0,eY.d)(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=tS(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:l(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,eY.d)(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e},resourceTitleString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e},resource:function(){this.data.inReference=void 0},setextHeading:l(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){let t=this.stack[this.stack.length-1];t.depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:l(),thematicBreak:l()}};(function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tC.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}})(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},l={stack:[r],tokenStack:[],config:t,enter:o,exit:a,buffer:i,resume:s,data:n},u=[],c=-1;for(;++c<e.length;)if("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type){if("enter"===e[c][0])u.push(c);else{let t=u.pop();c=function(e,t,n){let r,i,o,l,a=t-1,s=-1,u=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,l=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||l||s||o||(o=a),l=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:l=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let l=a;for(i=void 0;l--;){let t=e[l];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=l}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,o=void 0,l=!0}}}return e[t][1]._spread=u,n}(e,t,c)}}for(c=-1;++c<e.length;){let n=t[e[c][0]];tC.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},l),e[c][1])}if(l.tokenStack.length>0){let e=l.tokenStack[l.tokenStack.length-1],t=e[1]||tR;t.call(l,void 0,e[0])}for(r.position={start:tS(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tS(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){let r=this.stack[this.stack.length-1],i=r.children;i.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:tS(t.start),end:void 0}}function l(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r){if(r[0].type!==e.type){if(t)t.call(this,e,r[0]);else{let t=r[1]||tR;t.call(this,e,r[0])}}}else throw Error("Cannot close `"+e.type+"` ("+X({start:e.start,end:e.end})+"): it’s not open");n.position.end=tS(e.end)}function s(){return(0,ev.B)(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1],n=t.children,r=n[n.length-1];r&&"text"===r.type||((r={type:"text",value:""}).position={start:tS(e.start),end:void 0},n.push(r)),this.stack.push(r)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tS(e.end)}function f(){this.data.atHardBreak=!0}function d(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function p(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function m(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(o)(function(e){for(;!ew(e););return e}((function(e){let t=(0,eC.W)([i,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:t,content:r(eE),document:r(eM),flow:r(eA),string:r(eT),text:r(eL)};return n;function r(e){return function(t){return function(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},o=[],l=[],a=[],s={consume:function(e){(0,eR.Ch)(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,m()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=d(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=d(),u.events.push(["exit",t,u]),t},attempt:p(function(e,t){g(e,t.from)}),check:p(h),interrupt:p(h,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:f,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let o;let l=e[r];if("string"==typeof l)o=l;else switch(l){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":" ";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(l)}n=-2===l,i.push(o)}return i.join("")}(f(e),t)},now:d,defineSkip:function(e){i[e.line]=e.column,m()},write:function(e){return(l=(0,eb.V)(l,e),function(){let e;for(;r._index<l.length;){var t;let n=l[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;)c=c(n.charCodeAt(r._bufferIndex));else c=c(n)}}(),null!==l[l.length-1])?[]:(g(t,0),u.events=(0,eN.C)(o,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function f(e){return function(e,t){let n;let r=t.start._index,i=t.start._bufferIndex,o=t.end._index,l=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,l)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}l>0&&n.push(e[o].slice(0,l))}return n}(l,e)}function d(){let{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function h(e,t){t.restore()}function p(e,t){return function(n,i,o){let l,c,f,h;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null,i=[...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]];return p(i)(e)};function p(e){return(l=e,c=0,0===e.length)?o:g(e[c])}function g(e){return function(n){return(h=function(){let e=d(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(a);return{restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,a=o,m()},from:i}}(),f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,y,v)(n)}}function y(t){return e(f,h),i}function v(e){return(h.restore(),++c<l.length)?g(l[c]):o}}}function g(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&(0,eb.d)(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function m(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(n,e,t)}}})(o).document().write((a=1,s="",u=!0,function(e,t,n){let r,i,o,c,f;let d=[];for(e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),o=0,s="",u&&(65279===e.charCodeAt(0)&&o++,u=void 0);o<e.length;){if(tb.lastIndex=o,c=(r=tb.exec(e))&&void 0!==r.index?r.index:e.length,f=e.charCodeAt(c),!r){s=e.slice(o);break}if(10===f&&o===c&&l)d.push(-3),l=void 0;else switch(l&&(d.push(-5),l=void 0),o<c&&(d.push(e.slice(o,c)),a+=c-o),f){case 0:d.push(65533),a++;break;case 9:for(i=4*Math.ceil(a/4),d.push(-2);a++<i;)d.push(-1);break;case 10:d.push(-4),a=1;break;default:l=!0,a=1}o=c+1}return n&&(l&&d.push(-5),s&&d.push(s),d.push(null)),d})(n,r,!0))))}}let tM="object"==typeof self?self:globalThis,tP=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[o,l]=t[i];switch(o){case 0:case -1:return n(l,i);case 1:{let e=n([],i);for(let t of l)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of l)e[r(t)]=r(n);return e}case 3:return n(new Date(l),i);case 4:{let{source:e,flags:t}=l;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of l)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of l)e.add(r(t));return e}case 7:{let{name:e,message:t}=l;return n(new tM[e](t),i)}case 8:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i)}return n(new tM[o](l),i)};return r},t_=e=>tP(new Map,e)(0),{toString:tO}={},{keys:tI}=Object,tA=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tO.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tF=([e,t])=>0===e&&("function"===t||"symbol"===t),tT=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[l,a]=tA(r);switch(l){case 0:{let t=r;switch(a){case"bigint":l=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+a);t=null;break;case"undefined":return i([-1],r)}return i([l,t],r)}case 1:{if(a)return i([a,[...r]],r);let e=[],t=i([l,e],r);for(let t of r)e.push(o(t));return t}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());let n=[],s=i([l,n],r);for(let t of tI(r))(e||!tF(tA(r[t])))&&n.push([o(t),o(r[t])]);return s}case 3:return i([l,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([l,{source:e,flags:t}],r)}case 5:{let t=[],n=i([l,t],r);for(let[n,i]of r)(e||!(tF(tA(n))||tF(tA(i))))&&t.push([o(n),o(i)]);return n}case 6:{let t=[],n=i([l,t],r);for(let n of r)(e||!tF(tA(n)))&&t.push(o(n));return n}}let{message:s}=r;return i([l,{name:a,message:s}],r)};return o},tL=(e,{json:t,lossy:n}={})=>{let r=[];return tT(!(t||n),!!t,new Map,r)(e),r};var tz="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?t_(tL(e,t)):structuredClone(e):(e,t)=>t_(tL(e,t));function tD(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),l="";if(37===o&&(0,eR.H$)(e.charCodeAt(n+1))&&(0,eR.H$)(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(l=String.fromCharCode(o,t),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tj(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tN(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var tV=n(56361);function tB(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let l=i[i.length-1];return l&&"text"===l.type?l.value+=r:i.push({type:"text",value:r}),i}function tH(e){let t=e.spread;return null==t?e.children.length>1:t}function tq(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let tZ={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=tD(i.toLowerCase()),l=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=l+1,a+=1,e.footnoteCounts.set(i,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tB(e,t);let i={src:tD(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:tD(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tB(e,t);let i={href:tD(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:tD(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=tH(n[r])}return t}(n):tH(t),o={},l=[];if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&l.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?l.push(e):l.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&l.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=W(t.children[1]),l=G(t.children[t.children.length-1]);o&&l&&(r.position={start:o,end:l}),i.push(r)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=r?r.indexOf(t):1,o=0===i?"th":"td",l=n&&"table"===n.type?n.align:void 0,a=l?l.length:t.children.length,s=-1,u=[];for(;++s<a;){let n=t.children[s],r={},i=l?l[s]:void 0;i&&(r.align=i);let a={type:"element",tagName:o,properties:r,children:[]};n&&(a.children=e.all(n),e.patch(n,a),a=e.applyData(n,a)),u.push(a)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];for(;r;)o.push(tq(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(tq(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:t$,yaml:t$,definition:t$,footnoteDefinition:t$};function t$(){}let tU={}.hasOwnProperty,tG={};function tW(e,t){e.position&&(t.position=function(e){let t=W(e),n=G(e);if(t&&n)return{start:t,end:n}}(e))}function tY(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;if("string"==typeof t){if("element"===n.type)n.tagName=t;else{let e="children"in n?n.children:[n];n={type:"element",tagName:t,properties:{},children:e}}}"element"===n.type&&i&&Object.assign(n.properties,tz(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function tX(e,t){let n=t.data||{},r="value"in t&&!(tU.call(n,"hProperties")||tU.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function tK(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function tJ(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function tQ(e,t){let n=function(e,t){let n=t||tG,r=new Map,i=new Map,o=new Map,l={...tZ,...n.handlers},a={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=tJ(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=tJ(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:tY,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:function(e,t){let n=e.type,r=a.handlers[n];if(tU.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tz(n);return r.children=a.all(e),r}return tz(e)}let i=a.options.unknownHandler||tX;return i(a,e,t)},options:n,patch:tW,wrap:tK};return(0,tV.Vn)(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tj,r=e.options.footnoteBackLabel||tN,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],s=-1;for(;++s<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[s]);if(!i)continue;let o=e.all(i),l=String(i.identifier).toUpperCase(),u=tD(l.toLowerCase()),c=0,f=[],d=e.footnoteCounts.get(l);for(;void 0!==d&&++c<=d;){f.length>0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){let e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...f)}else o.push(...f);let p={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(i,p),a.push(p)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...tz(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&((0,o.ok)("children"in l),l.children.push({type:"text",value:"\n"},i)),l}function t0(e,t){return e&&"run"in e?async function(n,r){let i=tQ(n,{file:r,...t});await e.run(i,r)}:function(n,r){return tQ(n,{file:r,...t||e})}}function t1(e){if(e)throw e}var t2=n(66389);function t4(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let t5={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');t3(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let l=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else l<0&&(n=!0,l=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=l));return r===i?i=l:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(t3(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;t3(e);let n=e.length,r=-1,i=0,o=-1,l=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?o<0?o=n:1!==l&&(l=1):o>-1&&(l=-1)}return o<0||r<0||0===l||1===l&&o===r-1&&o===i+1?"":e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)t3(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){t3(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",o=0,l=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(l===s-1||1===a);else if(l!==s-1&&2===a){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),l=s,a=0;continue}}else if(i.length>0){i="",o=0,l=s,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(l+1,s):i=e.slice(l+1,s),o=s-l-1;l=s,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function t3(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let t9={cwd:function(){return"/"}};function t6(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let t8=["history","path","basename","stem","extname","dirname"];class t7{constructor(e){let t,n;t=e?t6(e)?{path:e}:"string"==typeof e||e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e?{value:e}:e:{},this.cwd="cwd"in t?"":t9.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<t8.length;){let e=t8[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)t8.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?t5.basename(this.path):void 0}set basename(e){nt(e,"basename"),ne(e,"basename"),this.path=t5.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?t5.dirname(this.path):void 0}set dirname(e){nn(this.basename,"dirname"),this.path=t5.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?t5.extname(this.path):void 0}set extname(e){if(ne(e,"extname"),nn(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=t5.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){t6(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!t6(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),nt(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?t5.basename(this.path,this.extname):void 0}set stem(e){nt(e,"stem"),ne(e,"stem"),this.path=t5.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new ee(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;let t=new TextDecoder(e||void 0);return t.decode(this.value)}}function ne(e,t){if(e&&e.includes(t5.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+t5.sep+"`")}function nt(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nn(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nr=function(e){let t=this.constructor,n=t.prototype,r=n[e],i=function(){return r.apply(i,arguments)};return Object.setPrototypeOf(i,n),i},ni={}.hasOwnProperty;class no extends nr{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);(function i(o,...l){let a=e[++n],s=-1;if(o){r(o);return}for(;++s<t.length;)(null===l[s]||void 0===l[s])&&(l[s]=t[s]);t=l,a?(function(e,t){let n;return function(...t){let o;let l=e.length>t.length;l&&t.push(r);try{o=e.apply(this,t)}catch(e){if(l&&n)throw e;return r(e)}l||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...l):r(null,...l)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new no,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(t2(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(nu("data",this.frozen),this.namespace[e]=t,this):ni.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nu("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let t=nd(e),n=this.parser||this.Parser;return na("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),na("process",this.parser||this.Parser),ns("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let l=nd(e),a=n.parse(l);function s(e,n){e||!n?i(e):r?r(n):((0,o.ok)(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(a,l,function(e,t,r){if(e||!t||!r)return s(e);let i=n.stringify(t,r);"string"==typeof i||i&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=i:r.result=i,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),na("processSync",this.parser||this.Parser),ns("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,t1(e),t=r}),nf("processSync","process",n),(0,o.ok)(t,"we either bailed on an error or have a tree"),t}run(e,t,n){nc(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,l){(0,o.ok)("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let a=nd(t);r.run(e,a,function(t,r,a){let s=r||e;t?l(t):i?i(s):((0,o.ok)(n,"`done` is defined if `resolve` is not"),n(void 0,s,a))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){t1(e),n=t,r=!0}),nf("runSync","run",r),(0,o.ok)(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=nd(t),r=this.compiler||this.Compiler;return ns("stringify",r),nc(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nu("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=t2(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){let n=e[t];!function(e){if("function"==typeof e)l(e,[]);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;l(t,n)}else i(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function l(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t,l=n[i][1];t4(l)&&t4(r)&&(r=t2(!0,l,r)),n[i]=[e,r,...o]}}}}let nl=new no().freeze();function na(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function ns(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nu(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nc(e){if(!t4(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nf(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nd(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new t7(e)}let nh=[],np={allowDangerousHtml:!0},ng=/^(https?|ircs?|mailto|xmpp)$/i,nm=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ny(e){let t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,l=e.components,a=e.disallowedElements,s=e.rehypePlugins||nh,u=e.remarkPlugins||nh,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...np}:np,f=e.skipHtml,d=e.unwrapDisallowed,h=e.urlTransform||nv,p=nl().use(tE).use(u).use(t0,c).use(s),g=new t7;for(let n of("string"==typeof r?g.value=r:(0,o.t1)("Unexpected value `"+r+"` for `children` prop, expected `string`"),t&&a&&(0,o.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),nm))Object.hasOwn(e,n.from)&&(0,o.t1)("Unexpected `"+n.from+"` prop, "+(n.to?"use `"+n.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+n.id+"> for more info)");let m=p.parse(g),y=p.runSync(m,g);return i&&(y={type:"element",tagName:"div",properties:{className:i},children:"root"===y.type?y.children:[y]}),(0,tV.Vn)(y,function(e,r,i){if("raw"===e.type&&i&&"number"==typeof r)return f?i.children.splice(r,1):i.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in em)if(Object.hasOwn(em,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=em[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=h(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&n&&"number"==typeof r&&(o=!n(e,r,i)),o&&i&&"number"==typeof r)return d&&e.children?i.children.splice(r,1,...e.children):i.children.splice(r,1),r}}),function(e,t){var n,r,i;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let l=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=t.jsxDEV,o=function(e,t,r,i){let o=Array.isArray(r.children),a=W(e);return n(t,r,i,o,{columnNumber:a?a.column-1:void 0,fileName:l,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,i=t.jsxs,o=function(e,t,n,o){let l=Array.isArray(n.children),a=l?i:r;return o?a(t,n,o):a(t,n)}}let a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?j:D,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=es(a,e,void 0);return s&&"string"!=typeof s?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}(y,{Fragment:ey.Fragment,components:l,ignoreInvalidStyle:!0,jsx:ey.jsx,jsxs:ey.jsxs,passKeys:!0,passNode:!0})}function nv(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||ng.test(e.slice(0,t))?e:""}},33352:function(e,t,n){"use strict";function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}n.d(t,{Z:function(){return eK}});var i=n(88144),o=n(80435),l=n(14452),a=n(25997);let s="phrasing",u=["autolink","link","image","label"];function c(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function f(e){this.config.enter.autolinkProtocol.call(this,e)}function d(e){this.config.exit.autolinkProtocol.call(this,e)}function h(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];(0,i.ok)("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function p(e){this.config.exit.autolinkEmail.call(this,e)}function g(e){this.exit(e)}function m(e){!function(e,t,n){let r=(0,a.O)((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),o=-1;for(;++o<i.length;)(0,l.S4)(e,"text",s);function s(e,t){let n,l=-1;for(;++l<t.length;){let e=t[l],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[o][0],l=i[o][1],a=0,s=n.children,u=s.indexOf(e),c=!1,f=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},o=l(...d,i);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(a!==n&&f.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(o)?f.push(...o):o&&f.push(o),a=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(a<e.value.length&&f.push({type:"text",value:e.value.slice(a)}),n.children.splice(u,1,...f)):f=[e],u+f.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,y],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,v]],{ignore:["link","linkReference"]})}function y(e,t,n,i,o){let l="";if(!b(o)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let a=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")"),o=r(e,"("),l=r(e,")");for(;-1!==i&&o>l;)e+=n.slice(0,i+1),i=(n=n.slice(i+1)).indexOf(")"),l++;return[e,n]}(n+i);if(!a[0])return!1;let s={type:"link",title:null,url:l+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function v(e,t,n,r){return!(!b(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function b(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,o.B8)(n)||(0,o.Xh)(n))&&(!t||47!==n)}var x=n(37681);function k(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function w(){this.buffer()}function C(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteDefinition"===n.type),n.label=t,n.identifier=(0,x.d)(this.sliceSerialize(e)).toLowerCase()}function S(e){this.exit(e)}function R(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function E(){this.buffer()}function M(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteReference"===n.type),n.label=t,n.identifier=(0,x.d)(this.sliceSerialize(e)).toLowerCase()}function P(e){this.exit(e)}function _(e,t,n,r){let i=n.createTracker(r),o=i.move("[^"),l=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),a(),l(),o+=i.move("]")}function O(e,t,n,r){let i=n.createTracker(r),o=i.move("[^"),l=n.enter("footnoteDefinition"),a=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),a(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),I)),l(),o}function I(e,t,n){return 0===t?e:(n?"":" ")+e}_.peek=function(){return"["};let A=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function F(e){this.enter({type:"delete",children:[]},e)}function T(e){this.exit(e)}function L(e,t,n,r){let i=n.createTracker(r),o=n.enter("strikethrough"),l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"})+i.move("~~"),o(),l}function z(e){return e.length}function D(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function j(e,t,n){return">"+(n?"":" ")+e}function N(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function V(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){var o,l;if("\n"===n.unsafe[i].character&&N(o=n.stack,(l=n.unsafe[i]).inConstruct,!0)&&!N(o,l.notInConstruct,!1))return/[ \t]/.test(r.before)?"":" "}return"\\\n"}function B(e,t,n){return(n?"":" ")+e}function H(e){let t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function q(e,t,n,r){let i=function(e){let t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),l=n.createTracker(r),a=l.move(i);return a+=l.move(n.containerPhrasing(e,{before:a,after:i,...l.current()}))+l.move(i),o(),a}L.peek=function(){return"~"},q.peek=function(e,t,n){return n.options.emphasis||"*"};var Z=n(56361),$=n(58345);function U(e){return e.value||""}function G(e,t,n,r){let i=H(n),o='"'===i?"Quote":"Apostrophe",l=n.enter("image"),a=n.enter("label"),s=n.createTracker(r),u=s.move("![");return u+=s.move(n.safe(e.alt,{before:u,after:"]",...s.current()}))+s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()}))+s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()}))+s.move(i),a()),u+=s.move(")"),l(),u}function W(e,t,n,r){let i=e.referenceType,o=n.enter("imageReference"),l=n.enter("label"),a=n.createTracker(r),s=a.move("!["),u=n.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),l();let c=n.stack;n.stack=[],l=n.enter("reference");let f=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return l(),n.stack=c,o(),"full"!==i&&u&&u===f?"shortcut"===i?s=s.slice(0,-1):s+=a.move("]"):s+=a.move(f+"]"),s}function Y(e,t,n){let r=e.value||"",i="`",o=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){let e;let t=n.unsafe[o],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}function X(e,t){let n=(0,$.B)(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function K(e,t,n,r){let i,o;let l=H(n),a='"'===l?"Quote":"Apostrophe",s=n.createTracker(r);if(X(e,n)){let t=n.stack;n.stack=[],i=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()}))+s.move(">"),i(),n.stack=t,r}i=n.enter("link"),o=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()}))+s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()}))+s.move(">")):(o=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=s.move(" "+l),u+=s.move(n.safe(e.title,{before:u,after:l,...s.current()}))+s.move(l),o()),u+=s.move(")"),i(),u}function J(e,t,n,r){let i=e.referenceType,o=n.enter("linkReference"),l=n.enter("label"),a=n.createTracker(r),s=a.move("["),u=n.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),l();let c=n.stack;n.stack=[],l=n.enter("reference");let f=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return l(),n.stack=c,o(),"full"!==i&&u&&u===f?"shortcut"===i?s=s.slice(0,-1):s+=a.move("]"):s+=a.move(f+"]"),s}function Q(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ee(e){let t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}U.peek=function(){return"<"},G.peek=function(){return"!"},W.peek=function(){return"!"},Y.peek=function(){return"`"},K.peek=function(e,t,n){return X(e,n)?"<":"["},J.peek=function(){return"["};let et=(0,a.O)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function en(e,t,n,r){let i=function(e){let t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),l=n.createTracker(r),a=l.move(i+i);return a+=l.move(n.containerPhrasing(e,{before:a,after:i,...l.current()}))+l.move(i+i),o(),a}en.peek=function(e,t,n){return n.options.strong||"*"};let er={blockquote:function(e,t,n,r){let i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);let l=n.indentLines(n.containerFlow(e,o.current()),j);return i(),l},break:V,code:function(e,t,n,r){let i=function(e){let t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",l="`"===i?"GraveAccent":"Tilde";if(!1===n.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value)){let e=n.enter("codeIndented"),t=n.indentLines(o,B);return e(),t}let a=n.createTracker(r),s=i.repeat(Math.max(function(e,t){let n=String(e),r=n.indexOf(t),i=r,o=0,l=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}(o,i)+1,3)),u=n.enter("codeFenced"),c=a.move(s);if(e.lang){let t=n.enter(`codeFencedLang${l}`);c+=a.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${l}`);c+=a.move(" "),c+=a.move(n.safe(e.meta,{before:c,after:"\n",encode:["`"],...a.current()})),t()}return c+=a.move("\n"),o&&(c+=a.move(o+"\n")),c+=a.move(s),u(),c},definition:function(e,t,n,r){let i=H(n),o='"'===i?"Quote":"Apostrophe",l=n.enter("definition"),a=n.enter("label"),s=n.createTracker(r),u=s.move("[");return u+=s.move(n.safe(n.associationId(e),{before:u,after:"]",...s.current()}))+s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()}))+s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...s.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()}))+s.move(i),a()),l(),u},emphasis:q,hardBreak:V,heading:function(e,t,n,r){let i;let o=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(i=!1,(0,Z.Vn)(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return i=!0,l.BK}),(!e.depth||e.depth<3)&&(0,$.B)(e)&&(n.options.setext||i)){let t=n.enter("headingSetext"),r=n.enter("phrasing"),i=n.containerPhrasing(e,{...a.current(),before:"\n",after:"\n"});return r(),t(),i+"\n"+(1===o?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}let s="#".repeat(o),u=n.enter("headingAtx"),c=n.enter("phrasing");a.move(s+" ");let f=n.containerPhrasing(e,{before:"# ",after:"\n",...a.current()});return/^[\t ]/.test(f)&&(f="&#x"+f.charCodeAt(0).toString(16).toUpperCase()+";"+f.slice(1)),f=f?s+" "+f:s,n.options.closeAtx&&(f+=" "+s),c(),u(),f},html:U,image:G,imageReference:W,inlineCode:Y,link:K,linkReference:J,list:function(e,t,n,r){let i=n.enter("list"),o=n.bulletCurrent,l=e.ordered?function(e){let t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Q(n),a=e.ordered?"."===l?")":".":function(e){let t=Q(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n),s=!!t&&!!n.bulletLastUsed&&l===n.bulletLastUsed;if(!e.ordered){let t=e.children?e.children[0]:void 0;if("*"!==l&&"-"!==l||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(s=!0),ee(n)===l&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){s=!0;break}}}}s&&(l=a),n.bulletCurrent=l;let u=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),u},listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),o=n.bulletCurrent||Q(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let l=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(l=4*Math.ceil(l/4));let a=n.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);let s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){return t?(n?"":" ".repeat(l))+e:(n?o:o+" ".repeat(l-o.length))+e});return s(),u},paragraph:function(e,t,n,r){let i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l},root:function(e,t,n,r){let i=e.children.some(function(e){return et(e)}),o=i?n.containerPhrasing:n.containerFlow;return o.call(n,e,r)},strong:en,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){let r=(ee(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function ei(e){let t=e._align;(0,i.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function eo(e){this.exit(e),this.data.inTable=void 0}function el(e){this.enter({type:"tableRow",children:[]},e)}function ea(e){this.exit(e)}function es(e){this.enter({type:"tableCell",children:[]},e)}function eu(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ec));let n=this.stack[this.stack.length-1];(0,i.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function ec(e,t){return"|"===t?t:e}function ef(e){let t=this.stack[this.stack.length-2];(0,i.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function ed(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];(0,i.ok)("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r;let i=t.children,o=-1;for(;++o<i.length;){let e=i[o];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function eh(e,t,n,r){let i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,l="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(l);let s=er.listItem(e,t,n,{...r,...a.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+l})),s}var ep=n(14850);let eg={tokenize:function(e,t,n){let r=0;return function t(o){return(87===o||119===o)&&r<3?(r++,e.consume(o),t):46===o&&3===r?(e.consume(o),i):n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},em={tokenize:function(e,t,n){let r,i,l;return a;function a(t){return 46===t||95===t?e.check(ev,u,s)(t):null===t||(0,o.z3)(t)||(0,o.B8)(t)||45!==t&&(0,o.Xh)(t)?u(t):(l=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function u(e){return i||r||!l?n(e):t(e)}},partial:!0},ey={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r<n?l(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(ev,t,l)(a):null===a||(0,o.z3)(a)||(0,o.B8)(a)?t(a):(e.consume(a),i)}function l(t){return 41===t&&r++,e.consume(t),i}},partial:!0},ev={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),l):93===a?(e.consume(a),i):60===a||null===a||(0,o.z3)(a)||(0,o.B8)(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||(0,o.z3)(e)||(0,o.B8)(e)?t(e):r(e)}function l(t){return(0,o.jv)(t)?function t(i){return 59===i?(e.consume(i),r):(0,o.jv)(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},eb={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return(0,o.H$)(e)?n(e):t(e)}},partial:!0},ex={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!eR.call(r,r.previous)||e_(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(eg,e.attempt(em,e.attempt(ey,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:eR},ek={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",l=!1;return function(t){return(72===t||104===t)&&eE.call(r,r.previous)&&!e_(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a):n(t)};function a(t){if((0,o.jv)(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),l)?u:(l=!0,s):n(t)}function u(t){return null===t||(0,o.Av)(t)||(0,o.z3)(t)||(0,o.B8)(t)||(0,o.Xh)(t)?n(t):e.attempt(em,e.attempt(ey,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:eE},ew={name:"emailAutolink",tokenize:function(e,t,n){let r,i;let l=this;return function(t){return!eP(t)||!eM.call(l,l.previous)||e_(l.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return eP(r)?(e.consume(r),t):64===r?(e.consume(r),a):n(r)}(t))};function a(t){return 46===t?e.check(eb,u,s)(t):45===t||95===t||(0,o.H$)(t)?(i=!0,e.consume(t),a):u(t)}function s(t){return e.consume(t),r=!0,a}function u(a){return i&&r&&(0,o.jv)(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:eM},eC={},eS=48;for(;eS<123;)eC[eS]=ew,58==++eS?eS=65:91===eS&&(eS=97);function eR(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||(0,o.z3)(e)}function eE(e){return!(0,o.jv)(e)}function eM(e){return!(47===e||eP(e))}function eP(e){return 43===e||45===e||46===e||95===e||(0,o.H$)(e)}function e_(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}eC[43]=ew,eC[45]=ew,eC[46]=ew,eC[95]=ew,eC[72]=[ew,ek],eC[104]=[ew,ek],eC[87]=[ew,ex],eC[119]=[ew,ex];var eO=n(6333),eI=n(88785);let eA={tokenize:function(e,t,n){let r=this;return(0,eI.f)(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function eF(e,t,n){let r;let i=this,o=i.events.length,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;o--;){let e=i.events[o][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!r||!r._balanced)return n(o);let a=(0,x.d)(i.sliceSerialize({start:r.end,end:i.now()}));return 94===a.codePointAt(0)&&l.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function eT(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function eL(e,t,n){let r;let i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(s){if(a>999||93===s&&!r||null===s||91===s||(0,o.z3)(s))return n(s);if(93===s){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return l.includes((0,x.d)(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return(0,o.z3)(s)||(r=!0),a++,e.consume(s),92===s?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}}function ez(e,t,n){let r,i;let l=this,a=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||(0,o.z3)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,x.d)(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return(0,o.z3)(t)||(i=!0),s++,e.consume(t),92===t?f:c}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(r)||a.push(r),(0,eI.f)(e,h,"gfmFootnoteDefinitionWhitespace")):n(t)}function h(e){return t(e)}}function eD(e,t,n){return e.check(eO.w,t,e.attempt(eA,t,n))}function ej(e){e.exit("gfmFootnoteDefinition")}var eN=n(40147),eV=n(27584),eB=n(60441);class eH{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function eq(e,t,n){let r;let i=this,l=0,a=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,o="tableHead"===r||"tableRow"===r?b:s;return o===b&&i.parser.lazy[i.now().line]?n(e):o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,a+=1),u(t)}function u(t){return null===t?n(t):(0,o.Ch)(t)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):(0,o.xz)(t)?(0,eI.f)(e,u,"whitespace")(t):(a+=1,r&&(r=!1,l+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,u):(e.enter("data"),c(t))}function c(t){return null===t||124===t||(0,o.z3)(t)?(e.exit("data"),u(t)):(e.consume(t),92===t?f:c)}function f(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,o.xz)(t))?(0,eI.f)(e,h,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t)}function h(t){return 45===t||58===t?g(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return(0,o.xz)(t)?(0,eI.f)(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||(0,o.Ch)(t)?v(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(n))}(t)):n(t)}function y(t){return(0,o.xz)(t)?(0,eI.f)(e,v,"whitespace")(t):v(t)}function v(i){return 124===i?h(i):null===i||(0,o.Ch)(i)?r&&l===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i):n(i)}function b(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||(0,o.Ch)(n)?(e.exit("tableRow"),t(n)):(0,o.xz)(n)?(0,eI.f)(e,x,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||(0,o.z3)(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?w:k)}function w(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function eZ(e,t){let n,r,i,o=-1,l=!0,a=0,s=[0,0,0,0],u=[0,0,0,0],c=!1,f=0,d=new eH;for(;++o<e.length;){let h=e[o],p=h[1];"enter"===h[0]?"tableHead"===p.type?(c=!1,0!==f&&(eU(d,t,f,n,r),r=void 0,f=0),n={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},d.add(o,0,[["enter",n,t]])):"tableRow"===p.type||"tableDelimiterRow"===p.type?(l=!0,i=void 0,s=[0,0,0,0],u=[0,o+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},d.add(o,0,[["enter",r,t]])),a="tableDelimiterRow"===p.type?2:r?3:1):a&&("data"===p.type||"tableDelimiterMarker"===p.type||"tableDelimiterFiller"===p.type)?(l=!1,0===u[2]&&(0!==s[1]&&(u[0]=u[1],i=e$(d,t,s,a,void 0,i),s=[0,0,0,0]),u[2]=o)):"tableCellDivider"===p.type&&(l?l=!1:(0!==s[1]&&(u[0]=u[1],i=e$(d,t,s,a,void 0,i)),u=[(s=u)[1],o,0,0])):"tableHead"===p.type?(c=!0,f=o):"tableRow"===p.type||"tableDelimiterRow"===p.type?(f=o,0!==s[1]?(u[0]=u[1],i=e$(d,t,s,a,o,i)):0!==u[1]&&(i=e$(d,t,u,a,o,i)),a=0):a&&("data"===p.type||"tableDelimiterMarker"===p.type||"tableDelimiterFiller"===p.type)&&(u[3]=o)}for(0!==f&&eU(d,t,f,n,r),d.consume(t.events),o=-1;++o<t.events.length;){let e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,o))}return e}function e$(e,t,n,r,i,o){0!==n[0]&&(o.end=Object.assign({},eG(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));let l=eG(t.events,n[1]);if(o={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){let i=eG(t.events,n[2]),o=eG(t.events,n[3]),l={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",l,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",l,t]])}return void 0!==i&&(o.end=Object.assign({},eG(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function eU(e,t,n,r,i){let o=[],l=eG(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function eG(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let eW={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return(0,o.z3)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return(0,o.Ch)(r)?t(r):(0,o.xz)(r)?e.check({tokenize:eY},t,n)(r):n(r)}}};function eY(e,t,n){return(0,eI.f)(e,function(e){return null===e?n(e):t(e)},"whitespace")}let eX={};function eK(e){let t=e||eX,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push((0,ep.W)([{text:eC},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ez,continuation:{tokenize:eD},exit:ej}},text:{91:{name:"gfmFootnoteCall",tokenize:eL},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:eF,resolveTo:eT}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,o=this.events,l=0;return function(a){return 126===i&&"characterEscape"!==o[o.length-1][1].type?r(a):(e.enter("strikethroughSequenceTemporary"),function o(a){let s=(0,eV.r)(i);if(126===a)return l>1?r(a):(e.consume(a),l++,o);if(l<2&&!t)return r(a);let u=e.exit("strikethroughSequenceTemporary"),c=(0,eV.r)(a);return u._open=!c||2===c&&!!s,u._close=!s||2===s&&!!c,n(a)}(a))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},l=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],a=t.parser.constructs.insideSpan.null;a&&(0,eN.d)(l,l.length,0,(0,eB.C)(a,e.slice(r+1,n),t)),(0,eN.d)(l,l.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,eN.d)(e,r-1,n-r+3,l),n=r+l.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(t),{flow:{null:{name:"table",tokenize:eq,resolveAll:eZ}}},{text:{91:eW}}])),i.push([{transforms:[m],enter:{literalAutolink:c,literalAutolinkEmail:f,literalAutolinkHttp:f,literalAutolinkWww:f},exit:{literalAutolink:g,literalAutolinkEmail:p,literalAutolinkHttp:d,literalAutolinkWww:h}},{enter:{gfmFootnoteDefinition:k,gfmFootnoteDefinitionLabelString:w,gfmFootnoteCall:R,gfmFootnoteCallString:E},exit:{gfmFootnoteDefinition:S,gfmFootnoteDefinitionLabelString:C,gfmFootnoteCall:P,gfmFootnoteCallString:M}},{canContainEols:["delete"],enter:{strikethrough:F},exit:{strikethrough:T}},{enter:{table:ei,tableData:es,tableHeader:es,tableRow:el},exit:{codeText:eu,table:eo,tableData:ea,tableHeader:ea,tableRow:ea}},{exit:{taskListCheckValueChecked:ef,taskListCheckValueUnchecked:ef,paragraph:ed}}]),o.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:s,notInConstruct:u},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:s,notInConstruct:u},{character:":",before:"[ps]",after:"\\/",inConstruct:s,notInConstruct:u}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:O,footnoteReference:_}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:A}],handlers:{delete:L}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=er.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return a(function(e,t,n){let r=e.children,i=-1,o=[],l=t.enter("table");for(;++i<r.length;)o[i]=s(r[i],t,n);return l(),o}(e,n,r),e.align)},tableCell:l,tableRow:function(e,t,n,r){let i=s(e,n,r),o=a([i]);return o.slice(0,o.indexOf("\n"))}}};function l(e,t,n,r){let i=n.enter("tableCell"),l=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:o,after:o});return l(),i(),a}function a(e,t){return function(e,t={}){let n=(t.align||[]).concat(),r=t.stringLength||z,i=[],o=[],l=[],a=[],s=0,u=-1;for(;++u<e.length;){let n=[],i=[],f=-1;for(e[u].length>s&&(s=e[u].length);++f<e[u].length;){var c;let o=null==(c=e[u][f])?"":String(c);if(!1!==t.alignDelimiters){let e=r(o);i[f]=e,(void 0===a[f]||e>a[f])&&(a[f]=e)}n.push(o)}o[u]=n,l[u]=i}let f=-1;if("object"==typeof n&&"length"in n)for(;++f<s;)i[f]=D(n[f]);else{let e=D(n);for(;++f<s;)i[f]=e}f=-1;let d=[],h=[];for(;++f<s;){let e=i[f],n="",r="";99===e?(n=":",r=":"):108===e?n=":":114===e&&(r=":");let o=!1===t.alignDelimiters?1:Math.max(1,a[f]-n.length-r.length),l=n+"-".repeat(o)+r;!1!==t.alignDelimiters&&((o=n.length+o+r.length)>a[f]&&(a[f]=o),h[f]=o),d[f]=l}o.splice(1,0,d),l.splice(1,0,h),u=-1;let p=[];for(;++u<o.length;){let e=o[u],n=l[u];f=-1;let r=[];for(;++f<s;){let o=e[f]||"",l="",u="";if(!1!==t.alignDelimiters){let e=a[f]-(n[f]||0),t=i[f];114===t?l=" ".repeat(e):99===t?e%2?(l=" ".repeat(e/2+.5),u=" ".repeat(e/2-.5)):u=l=" ".repeat(e/2):u=" ".repeat(e)}!1===t.delimiterStart||f||r.push("|"),!1!==t.padding&&!(!1===t.alignDelimiters&&""===o)&&(!1!==t.delimiterStart||f)&&r.push(" "),!1!==t.alignDelimiters&&r.push(l),r.push(o),!1!==t.alignDelimiters&&r.push(u),!1!==t.padding&&r.push(" "),(!1!==t.delimiterEnd||f!==s-1)&&r.push("|")}p.push(!1===t.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return p.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function s(e,t,n){let r=e.children,i=-1,o=[],a=t.enter("tableRow");for(;++i<r.length;)o[i]=l(r[i],e,t,n);return a(),o}}(t),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:eh}}]})}},10804:function(e,t,n){"use strict";let r,i;n.d(t,{io:function(){return ew}});var o,l,a={};n.r(a),n.d(a,{Decoder:function(){return ep},Encoder:function(){return ed},PacketType:function(){return l},protocol:function(){return ef}});let s=Object.create(null);s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";let u=Object.create(null);Object.keys(s).forEach(e=>{u[s[e]]=e});let c={type:"error",data:"parser error"},f="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),d="function"==typeof ArrayBuffer,h=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,p=({type:e,data:t},n,r)=>f&&t instanceof Blob?n?r(t):g(t,r):d&&(t instanceof ArrayBuffer||h(t))?n?r(t):g(new Blob([t]),r):r(s[e]+(t||"")),g=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function m(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<y.length;e++)v[y.charCodeAt(e)]=e;let b=e=>{let t=.75*e.length,n=e.length,r,i=0,o,l,a,s;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r<n;r+=4)o=v[e.charCodeAt(r)],l=v[e.charCodeAt(r+1)],a=v[e.charCodeAt(r+2)],s=v[e.charCodeAt(r+3)],c[i++]=o<<2|l>>4,c[i++]=(15&l)<<4|a>>2,c[i++]=(3&a)<<6|63&s;return u},x="function"==typeof ArrayBuffer,k=(e,t)=>{if("string"!=typeof e)return{type:"message",data:C(e,t)};let n=e.charAt(0);if("b"===n)return{type:"message",data:w(e.substring(1),t)};let r=u[n];return r?e.length>1?{type:u[n],data:e.substring(1)}:{type:u[n]}:c},w=(e,t)=>{if(!x)return{base64:!0,data:e};{let n=b(e);return C(n,t)}},C=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,S=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,o)=>{p(e,!1,e=>{r[o]=e,++i===n&&t(r.join("\x1e"))})})},R=(e,t)=>{let n=e.split("\x1e"),r=[];for(let e=0;e<n.length;e++){let i=k(n[e],t);if(r.push(i),"error"===i.type)break}return r};function E(e){return e.reduce((e,t)=>e+t.length,0)}function M(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function P(e){if(e)return function(e){for(var t in P.prototype)e[t]=P.prototype[t];return e}(e)}P.prototype.on=P.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},P.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},P.prototype.off=P.prototype.removeListener=P.prototype.removeAllListeners=P.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},P.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},P.prototype.emitReserved=P.prototype.emit,P.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},P.prototype.hasListeners=function(e){return!!this.listeners(e).length};let _="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function O(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}let I=_.setTimeout,A=_.clearTimeout;function F(e,t){t.useNativeTimers?(e.setTimeoutFn=I.bind(_),e.clearTimeoutFn=A.bind(_)):(e.setTimeoutFn=_.setTimeout.bind(_),e.clearTimeoutFn=_.clearTimeout.bind(_))}class T extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class L extends P{constructor(e){super(),this.writable=!1,F(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new T(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=k(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}let z="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),D={},j=0,N=0,V;function B(e){let t="";do t=z[e%64]+t,e=Math.floor(e/64);while(e>0);return t}function H(){let e=B(+new Date);return e!==V?(j=0,V=e):e+"."+B(j++)}for(;N<64;N++)D[z[N]]=N;let q=!1;try{q="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let Z=q;function $(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||Z))return new XMLHttpRequest}catch(e){}if(!t)try{return new _[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}function U(){}let G=function(){let e=new $({xdomain:!1});return null!=e.responseType}();class W extends P{constructor(e,t){super(),F(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;let t=O(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;let n=this.xhr=new $(t);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders)for(let e in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this.opts.extraHeaders[e])}catch(e){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof n.status?n.status:0)},0))},n.send(this.data)}catch(e){this.setTimeoutFn(()=>{this.onError(e)},0);return}"undefined"!=typeof document&&(this.index=W.requestsCount++,W.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=U,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete W.requests[this.index],this.xhr=null}}onLoad(){let e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(W.requestsCount=0,W.requests={},"undefined"!=typeof document){if("function"==typeof attachEvent)attachEvent("onunload",Y);else if("function"==typeof addEventListener){let e="onpagehide"in _?"pagehide":"unload";addEventListener(e,Y,!1)}}function Y(){for(let e in W.requests)W.requests.hasOwnProperty(e)&&W.requests[e].abort()}let X=(()=>{let e="function"==typeof Promise&&"function"==typeof Promise.resolve;return e?e=>Promise.resolve().then(e):(e,t)=>t(e,0)})(),K=_.WebSocket||_.MozWebSocket;n(20631).lW;let J="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),Q={websocket:class extends L{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;let e=this.uri(),t=this.opts.protocols,n=J?{}:O(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=J?new K(e,t,n):t?new K(e,t):new K(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;p(n,this.supportsBinary,e=>{try{this.ws.send(e)}catch(e){}r&&X(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=H()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!K}},webtransport:class extends L{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{let t=function(e,t){i||(i=new TextDecoder);let n=[],r=0,o=-1,l=!1;return new TransformStream({transform(a,s){for(n.push(a);;){if(0===r){if(1>E(n))break;let e=M(n,1);l=(128&e[0])==128,r=(o=127&e[0])<126?3:126===o?1:2}else if(1===r){if(2>E(n))break;let e=M(n,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(8>E(n))break;let e=M(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>2097151){s.enqueue(c);break}o=4294967296*i+t.getUint32(4),r=3}else{if(E(n)<o)break;let e=M(n,o);s.enqueue(k(l?e:i.decode(e),t)),r=0}if(0===o||o>e){s.enqueue(c);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),o=new TransformStream({transform(e,t){var n;n=n=>{let r;let i=n.length;if(i<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,i);else if(i<65536){r=new Uint8Array(3);let e=new DataView(r.buffer);e.setUint8(0,126),e.setUint16(1,i)}else{r=new Uint8Array(9);let e=new DataView(r.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!=typeof e.data&&(r[0]|=128),t.enqueue(r),t.enqueue(n)},f&&e.data instanceof Blob?e.data.arrayBuffer().then(m).then(n):d&&(e.data instanceof ArrayBuffer||h(e.data))?n(m(e.data)):p(e,!1,e=>{r||(r=new TextEncoder),n(r.encode(e))})}});o.readable.pipeTo(e.writable),this.writer=o.writable.getWriter();let l=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),l())}).catch(e=>{})};l();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this.writer.write(a).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this.writer.write(n).then(()=>{r&&X(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends L{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){let t="https:"===location.protocol,n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}let t=e&&e.forceBase64;this.supportsBinary=G&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){R(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,S(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=H()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new W(this.uri(),e)}doWrite(e,t){let n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}},ee=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,et=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function en(e){if(e.length>2e3)throw"URI too long";let t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=ee.exec(e||""),o={},l=14;for(;l--;)o[et[l]]=i[l]||"";return -1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){let n=t.replace(/\/{2,9}/g,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}(0,o.path),o.queryKey=function(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}(0,o.query),o}class er extends P{constructor(e,t={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=en(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=en(t.host).host),F(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new Q[e](n)}open(){let e;if(this.opts.rememberUpgrade&&er.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else if(0===this.transports.length){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch(e){this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(e){let t=this.createTransport(e),n=!1;er.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!n){if("pong"===e.type&&"probe"===e.data)this.upgrading=!0,this.emitReserved("upgrading",t),t&&(er.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{n||"closed"===this.readyState||(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}));else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}}))};function i(){n||(n=!0,u(),t.close(),t=null)}let o=e=>{let n=Error("probe error: "+e);n.transport=t.name,i(),this.emitReserved("upgradeError",n)};function l(){o("transport closed")}function a(){o("socket closed")}function s(e){t&&e.name!==t.name&&i()}let u=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",l),this.off("close",a),this.off("upgrading",s)};t.once("open",r),t.once("error",o),t.once("close",l),this.once("close",a),this.once("upgrading",s),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onOpen(){if(this.readyState="open",er.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0,t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":let t=Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){let e=this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1;if(!e)return this.writeBuffer;let t=1;for(let e=0;e<this.writeBuffer.length;e++){let n=this.writeBuffer[e].data;if(n&&(t+="string"==typeof n?function(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)(t=e.charCodeAt(r))<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(n):Math.ceil(1.33*(n.byteLength||n.size))),e>0&&t>this.maxPayload)return this.writeBuffer.slice(0,e);t+=2}return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){let e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}onError(e){er.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){let t=[],n=0,r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}er.protocol=4,er.protocol;let ei="function"==typeof ArrayBuffer,eo=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,el=Object.prototype.toString,ea="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===el.call(Blob),es="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===el.call(File);function eu(e){return ei&&(e instanceof ArrayBuffer||eo(e))||ea&&e instanceof Blob||es&&e instanceof File}let ec=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ef=5;(o=l||(l={}))[o.CONNECT=0]="CONNECT",o[o.DISCONNECT=1]="DISCONNECT",o[o.EVENT=2]="EVENT",o[o.ACK=3]="ACK",o[o.CONNECT_ERROR=4]="CONNECT_ERROR",o[o.BINARY_EVENT=5]="BINARY_EVENT",o[o.BINARY_ACK=6]="BINARY_ACK";class ed{constructor(e){this.replacer=e}encode(e){return(e.type===l.EVENT||e.type===l.ACK)&&function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(e(t[n]))return!0;return!1}if(eu(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1==arguments.length)return e(t.toJSON(),!0);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return!0;return!1}(e)?this.encodeAsBinary({type:e.type===l.EVENT?l.BINARY_EVENT:l.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===l.BINARY_EVENT||e.type===l.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=function(e){let t=[],n=e.data;return e.data=function e(t,n){if(!t)return t;if(eu(t)){let e={_placeholder:!0,num:n.length};return n.push(t),e}if(Array.isArray(t)){let r=Array(t.length);for(let i=0;i<t.length;i++)r[i]=e(t[i],n);return r}if("object"==typeof t&&!(t instanceof Date)){let r={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e(t[i],n));return r}return t}(n,t),e.attachments=t.length,{packet:e,buffers:t}}(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function eh(e){return"[object Object]"===Object.prototype.toString.call(e)}class ep extends P{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);let n=t.type===l.BINARY_EVENT;n||t.type===l.BINARY_ACK?(t.type=n?l.EVENT:l.ACK,this.reconstructor=new eg(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(eu(e)||e.base64){if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet")}else throw Error("Unknown type: "+e)}decodeString(e){let t=0,n={type:Number(e.charAt(0))};if(void 0===l[n.type])throw Error("unknown packet type "+n.type);if(n.type===l.BINARY_EVENT||n.type===l.BINARY_ACK){let r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(r,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");n.attachments=Number(i)}if("/"===e.charAt(t+1)){let r=t+1;for(;++t;){let n=e.charAt(t);if(","===n||t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";let r=e.charAt(t+1);if(""!==r&&Number(r)==r){let r=t+1;for(;++t;){let n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){let r=this.tryParse(e.substr(t));if(ep.isPayloadValid(n.type,r))n.data=r;else throw Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case l.CONNECT:return eh(t);case l.DISCONNECT:return void 0===t;case l.CONNECT_ERROR:return"string"==typeof t||eh(t);case l.EVENT:case l.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===ec.indexOf(t[0]));case l.ACK:case l.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class eg{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t,n;let e=(t=this.reconPack,n=this.buffers,t.data=function e(t,n){if(!t)return t;if(t&&!0===t._placeholder){let e="number"==typeof t.num&&t.num>=0&&t.num<n.length;if(e)return n[t.num];throw Error("illegal attachments")}if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=e(t[r],n);else if("object"==typeof t)for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=e(t[r],n));return t}(t.data,n),delete t.attachments,t);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function em(e,t,n){return e.on(t,n),function(){e.off(t,n)}}let ey=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ev extends P{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[em(e,"open",this.onopen.bind(this)),em(e,"packet",this.onpacket.bind(this)),em(e,"error",this.onerror.bind(this)),em(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(ey.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:l.EVENT,data:t};if(n.options={},n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable,i=this.flags.volatile&&(!r||!this.connected);return i||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var n;let r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},r),o=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((n,r)=>{let i=(e,t)=>e?r(e):n(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>{if(n!==this._queue[0])return;let i=null!==e;return i?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()}),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:l.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{let t=this.sendBuffer.some(t=>String(t.id)===e);if(!t){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){let t=e.nsp===this.nsp;if(t)switch(e.type){case l.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case l.EVENT:case l.BINARY_EVENT:this.onevent(e);break;case l.ACK:case l.BINARY_ACK:this.onack(e);break;case l.DISCONNECT:this.ondisconnect();break;case l.CONNECT_ERROR:this.destroy();let n=Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:l.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:l.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n]){t.splice(n,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n]){t.splice(n,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let n of t)n.apply(this,e.data)}}}function eb(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}eb.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-n:e+n}return 0|Math.min(e,this.max)},eb.prototype.reset=function(){this.attempts=0},eb.prototype.setMin=function(e){this.ms=e},eb.prototype.setMax=function(e){this.max=e},eb.prototype.setJitter=function(e){this.jitter=e};class ex extends P{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,F(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new eb({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;let r=t.parser||a;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new er(this.uri,this.opts);let t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let r=em(t,"open",function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=em(t,"error",i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(em(e,"ping",this.onping.bind(this)),em(e,"data",this.ondata.bind(this)),em(e,"error",this.onerror.bind(this)),em(e,"close",this.onclose.bind(this)),em(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){X(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new ev(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let e of t){let t=this.nsps[e];if(t.active)return}this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{!e.skipReconnect&&(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let ek={};function ew(e,t){let n;"object"==typeof e&&(t=e,e=void 0),t=t||{};let r=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=en(e)),!r.port&&(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let i=-1!==r.host.indexOf(":"),o=i?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}(e,t.path||"/socket.io"),i=r.source,o=r.id,l=r.path,a=ek[o]&&l in ek[o].nsps,s=t.forceNew||t["force new connection"]||!1===t.multiplex||a;return s?n=new ex(i,t):(ek[o]||(ek[o]=new ex(i,t)),n=ek[o]),r.query&&!t.query&&(t.query=r.queryKey),n.socket(r.path,t)}Object.assign(ew,{Manager:ex,Socket:ev,io:ew,connect:ew})},93179:function(e,t,n){"use strict";function r(e,t){if(!e)throw Error("Invariant failed")}n.d(t,{Z:function(){return r}})},25997:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});let r=function(e){if(null==e)return o;if("function"==typeof e)return i(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):i(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("string"==typeof e)return i(function(t){return t&&t.type===e});throw Error("Expected function, string, or object as test")};function i(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function o(){return!0}},14452:function(e,t,n){"use strict";n.d(t,{BK:function(){return o},S4:function(){return l}});var r=n(25997);let i=[],o=!1;function l(e,t,n,l){let a;"function"==typeof t&&"function"!=typeof n?(l=n,n=t):a=t;let s=(0,r.O)(a),u=l?-1:1;(function e(r,a,c){let f=r&&"object"==typeof r?r:{};if("string"==typeof f.type){let e="string"==typeof f.tagName?f.tagName:"string"==typeof f.name?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return d;function d(){var f;let d,h,p,g=i;if((!t||s(r,a,c[c.length-1]||void 0))&&(g=Array.isArray(f=n(r,c))?f:"number"==typeof f?[!0,f]:null==f?i:[f])[0]===o)return g;if("children"in r&&r.children&&r.children&&"skip"!==g[0])for(h=(l?r.children.length:-1)+u,p=c.concat(r);h>-1&&h<r.children.length;){let t=r.children[h];if((d=e(t,h,p)())[0]===o)return d;h="number"==typeof d[1]?d[1]:h+u}return g}})(e,void 0,[])()}},56361:function(e,t,n){"use strict";n.d(t,{Vn:function(){return i}});var r=n(14452);function i(e,t,n,i){let o,l,a;"function"==typeof t&&"function"!=typeof n?(l=void 0,a=t,o=n):(l=t,a=n,o=i),(0,r.S4)(e,l,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},o)}},3216:function(e,t,n){"use strict";n.d(t,{b7:function(){return l},ie:function(){return o}});var r=n(14978),i=n(7660);/**
|
|
11
|
+
*/function F(){}let L=(i=0,()=>i++);function z(e){return null==e}function D(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function j(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function N(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function V(e,t){return N(e)?e:t}function B(e,t){return void 0===e?t:e}let H=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t,Z=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function q(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function $(e,t,n,r){let i,o,l;if(D(e)){if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i)}else if(j(e))for(i=0,o=(l=Object.keys(e)).length;i<o;i++)t.call(n,e[l[i]],l[i])}function U(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function G(e){if(D(e))return e.map(G);if(j(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,i=0;for(;i<r;++i)t[n[i]]=G(e[n[i]]);return t}return e}function W(e){return -1===["__proto__","prototype","constructor"].indexOf(e)}function Y(e,t,n,r){if(!W(e))return;let i=t[e],o=n[e];j(i)&&j(o)?X(i,o,r):t[e]=G(o)}function X(e,t,n){let r;let i=D(t)?t:[t],o=i.length;if(!j(e))return e;n=n||{};let l=n.merger||Y;for(let t=0;t<o;++t){if(!j(r=i[t]))continue;let o=Object.keys(r);for(let t=0,i=o.length;t<i;++t)l(o[t],e,r,n)}return e}function K(e,t){return X(e,t,{merger:J})}function J(e,t,n){if(!W(e))return;let r=t[e],i=n[e];j(r)&&j(i)?K(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=G(i))}let Q={"":e=>e,x:e=>e.x,y:e=>e.y};function ee(e,t){let n=Q[t]||(Q[t]=function(e){let t=function(e){let t=e.split("."),n=[],r="";for(let e of t)(r+=e).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(let n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function et(e){return e.charAt(0).toUpperCase()+e.slice(1)}let en=e=>void 0!==e,er=e=>"function"==typeof e,ei=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function eo(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}let el=Math.PI,ea=2*el,es=ea+el,eu=Number.POSITIVE_INFINITY,ec=el/180,ef=el/2,ed=el/4,eh=2*el/3,ep=Math.log10,eg=Math.sign;function em(e,t,n){return Math.abs(e-t)<n}function ev(e){let t=Math.round(e);e=em(e,t,e/1e3)?t:e;let n=Math.pow(10,Math.floor(ep(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function ey(e){let t;let n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t==0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((e,t)=>e-t).pop(),n}function eb(e){return!isNaN(parseFloat(e))&&isFinite(e)}function ex(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function ek(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)isNaN(o=e[r][n])||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function ew(e){return e*(el/180)}function eC(e){return e*(180/el)}function eS(e){if(!N(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function eR(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.atan2(r,n);return i<-.5*el&&(i+=ea),{angle:i,distance:Math.sqrt(n*n+r*r)}}function eE(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function eM(e,t){return(e-t+es)%ea-el}function eP(e){return(e%ea+ea)%ea}function e_(e,t,n,r){let i=eP(e),o=eP(t),l=eP(n),a=eP(o-i),s=eP(l-i),u=eP(i-o),c=eP(i-l);return i===o||i===l||r&&o===l||a>s&&u<c}function eO(e,t,n){return Math.max(t,Math.min(n,e))}function eA(e){return eO(e,-32768,32767)}function eI(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function eT(e,t,n){let r;n=n||(n=>e[n]<t);let i=e.length-1,o=0;for(;i-o>1;)n(r=o+i>>1)?o=r:i=r;return{lo:o,hi:i}}let eF=(e,t,n,r)=>eT(e,n,r?r=>{let i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),eL=(e,t,n)=>eT(e,n,r=>e[r][t]>=n);function ez(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}let eD=["push","pop","shift","splice","unshift"];function ej(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),eD.forEach(t=>{let n="_onData"+et(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[n]&&e[n](...t)}),i}})})}function eN(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(eD.forEach(t=>{delete e[t]}),delete e._chartjs)}function eV(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}let eB="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function eH(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,eB.call(window,()=>{r=!1,e.apply(t,n)}))}}function eZ(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}let eq=e=>"start"===e?"left":"end"===e?"right":"center",e$=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,eU=(e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t;function eG(e,t,n){let r=t.length,i=0,o=r;if(e._sorted){let{iScale:l,_parsed:a}=e,s=l.axis,{min:u,max:c,minDefined:f,maxDefined:d}=l.getUserBounds();f&&(i=eO(Math.min(eF(a,s,u).lo,n?r:eF(t,s,l.getPixelForValue(u)).lo),0,r-1)),o=d?eO(Math.max(eF(a,l.axis,c,!0).hi+1,n?0:eF(t,s,l.getPixelForValue(c),!0).hi+1),i,r)-i:r-i}return{start:i,count:o}}function eW(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}let eY=e=>0===e||1===e,eX=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ea/n)),eK=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ea/n)+1,eJ={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*ef)+1,easeOutSine:e=>Math.sin(e*ef),easeInOutSine:e=>-.5*(Math.cos(el*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>eY(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(-Math.pow(2,-10*(2*e-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>eY(e)?e:eX(e,.075,.3),easeOutElastic:e=>eY(e)?e:eK(e,.075,.3),easeInOutElastic:e=>eY(e)?e:e<.5?.5*eX(2*e,.1125,.45):.5+.5*eK(2*e-1,.1125,.45),easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-eJ.easeOutBounce(1-e),easeOutBounce:e=>e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375,easeInOutBounce:e=>e<.5?.5*eJ.easeInBounce(2*e):.5*eJ.easeOutBounce(2*e-1)+.5};function eQ(e){if(e&&"object"==typeof e){let t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function e0(e){return eQ(e)?e:new T(e)}function e1(e){return eQ(e)?e:new T(e).saturate(.5).darken(.1).hexString()}let e2=["x","y","borderWidth","radius","tension"],e4=["color","borderColor","backgroundColor"],e5=new Map;function e9(e,t,n){return(function(e,t){t=t||{};let n=e+JSON.stringify(t),r=e5.get(n);return r||(r=new Intl.NumberFormat(e,t),e5.set(n,r)),r})(t,n).format(e)}let e3={values:e=>D(e)?e:""+e,numeric(e,t,n){let r;if(0===e)return"0";let i=this.chart.options.locale,o=e;if(n.length>1){let t;let i=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(i<1e-4||i>1e15)&&(r="scientific"),Math.abs(t=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),o=t}let l=ep(Math.abs(o)),a=isNaN(l)?1:Math.max(Math.min(-1*Math.floor(l),20),0),s={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(s,this.options.ticks.format),e9(e,i,s)},logarithmic(e,t,n){if(0===e)return"0";let r=n[t].significand||e/Math.pow(10,Math.floor(ep(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?e3.numeric.call(this,e,t,n):""}};var e6={formatters:e3};let e8=Object.create(null),e7=Object.create(null);function te(e,t){if(!t)return e;let n=t.split(".");for(let t=0,r=n.length;t<r;++t){let r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function tt(e,t,n){return"string"==typeof t?X(te(e,t),n):X(te(e,""),t)}var tn=new class{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>e1(t.backgroundColor),this.hoverBorderColor=(e,t)=>e1(t.borderColor),this.hoverColor=(e,t)=>e1(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return tt(this,e,t)}get(e){return te(this,e)}describe(e,t){return tt(e7,e,t)}override(e,t){return tt(e8,e,t)}route(e,t,n,r){let i=te(this,e),o=te(this,n),l="_"+t;Object.defineProperties(i,{[l]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[l],t=o[r];return j(e)?Object.assign({},t,e):B(e,t)},set(e){this[l]=e}}})}apply(e){e.forEach(e=>e(this))}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:e4},numbers:{type:"number",properties:e2}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:e6.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function tr(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function ti(e,t,n,r){let i,o,l,a,s;let u=(r=r||{}).data=r.data||{},c=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(u=r.data={},c=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let f=0,d=n.length;for(i=0;i<d;i++)if(null==(a=n[i])||D(a)){if(D(a))for(o=0,l=a.length;o<l;o++)null==(s=a[o])||D(s)||(f=tr(e,u,c,f,s))}else f=tr(e,u,c,f,a);e.restore();let h=c.length/2;if(h>n.length){for(i=0;i<h;i++)delete u[c[i]];c.splice(0,h)}return f}function to(e,t,n){let r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function tl(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function ta(e,t,n,r){ts(e,t,n,r,null)}function ts(e,t,n,r,i){let o,l,a,s,u,c,f,d;let h=t.pointStyle,p=t.rotation,g=t.radius,m=(p||0)*ec;if(h&&"object"==typeof h&&("[object HTMLImageElement]"===(o=h.toString())||"[object HTMLCanvasElement]"===o)){e.save(),e.translate(n,r),e.rotate(m),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!isNaN(g)&&!(g<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,g,0,0,ea):e.arc(n,r,g,0,ea),e.closePath();break;case"triangle":c=i?i/2:g,e.moveTo(n+Math.sin(m)*c,r-Math.cos(m)*g),m+=eh,e.lineTo(n+Math.sin(m)*c,r-Math.cos(m)*g),m+=eh,e.lineTo(n+Math.sin(m)*c,r-Math.cos(m)*g),e.closePath();break;case"rectRounded":u=.516*g,l=Math.cos(m+ed)*(s=g-u),f=Math.cos(m+ed)*(i?i/2-u:s),a=Math.sin(m+ed)*s,d=Math.sin(m+ed)*(i?i/2-u:s),e.arc(n-f,r-a,u,m-el,m-ef),e.arc(n+d,r-l,u,m-ef,m),e.arc(n+f,r+a,u,m,m+ef),e.arc(n-d,r+l,u,m+ef,m+el),e.closePath();break;case"rect":if(!p){s=Math.SQRT1_2*g,c=i?i/2:s,e.rect(n-c,r-s,2*c,2*s);break}m+=ed;case"rectRot":f=Math.cos(m)*(i?i/2:g),l=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),e.moveTo(n-f,r-a),e.lineTo(n+d,r-l),e.lineTo(n+f,r+a),e.lineTo(n-d,r+l),e.closePath();break;case"crossRot":m+=ed;case"cross":f=Math.cos(m)*(i?i/2:g),l=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+d,r-l),e.lineTo(n-d,r+l);break;case"star":f=Math.cos(m)*(i?i/2:g),l=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+d,r-l),e.lineTo(n-d,r+l),m+=ed,f=Math.cos(m)*(i?i/2:g),l=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(i?i/2:g),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+d,r-l),e.lineTo(n-d,r+l);break;case"line":l=i?i/2:Math.cos(m)*g,a=Math.sin(m)*g,e.moveTo(n-l,r-a),e.lineTo(n+l,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(m)*(i?i/2:g),r+Math.sin(m)*g);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function tu(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function tc(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function tf(e){e.restore()}function td(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){let r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===i!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function th(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function tp(e,t,n,r,i,o={}){let l,a;let s=D(t)?t:[t],u=o.strokeWidth>0&&""!==o.strokeColor;for(e.save(),e.font=i.string,o.translation&&e.translate(o.translation[0],o.translation[1]),z(o.rotation)||e.rotate(o.rotation),o.color&&(e.fillStyle=o.color),o.textAlign&&(e.textAlign=o.textAlign),o.textBaseline&&(e.textBaseline=o.textBaseline),l=0;l<s.length;++l)a=s[l],o.backdrop&&function(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}(e,o.backdrop),u&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),z(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(a,n,r,o.maxWidth)),e.fillText(a,n,r,o.maxWidth),function(e,t,n,r,i){if(i.strikethrough||i.underline){let o=e.measureText(r),l=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,s=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,c=i.strikethrough?(s+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(l,c),e.lineTo(a,c),e.stroke()}}(e,n,r,a,o),r+=Number(i.lineHeight);e.restore()}function tg(e,t){let{x:n,y:r,w:i,h:o,radius:l}=t;e.arc(n+l.topLeft,r+l.topLeft,l.topLeft,1.5*el,el,!0),e.lineTo(n,r+o-l.bottomLeft),e.arc(n+l.bottomLeft,r+o-l.bottomLeft,l.bottomLeft,el,ef,!0),e.lineTo(n+i-l.bottomRight,r+o),e.arc(n+i-l.bottomRight,r+o-l.bottomRight,l.bottomRight,ef,0,!0),e.lineTo(n+i,r+l.topRight),e.arc(n+i-l.topRight,r+l.topRight,l.topRight,0,-ef,!0),e.lineTo(n+l.topLeft,r)}let tm=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,tv=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/,ty=e=>+e||0;function tb(e,t){let n={},r=j(t),i=r?Object.keys(t):t,o=j(e)?r?n=>B(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=ty(o(e));return n}function tx(e){return tb(e,{top:"y",right:"x",bottom:"y",left:"x"})}function tk(e){return tb(e,["topLeft","topRight","bottomLeft","bottomRight"])}function tw(e){let t=tx(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function tC(e,t){e=e||{},t=t||tn.font;let n=B(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=B(e.style,t.style);r&&!(""+r).match(tv)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);let i={family:B(e.family,t.family),lineHeight:function(e,t){let n=(""+e).match(tm);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}(B(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:B(e.weight,t.weight),string:""};return i.string=!i||z(i.size)||z(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family,i}function tS(e,t,n,r){let i,o,l,a=!0;for(i=0,o=e.length;i<o;++i)if(void 0!==(l=e[i])&&(void 0!==t&&"function"==typeof l&&(l=l(t),a=!1),void 0!==n&&D(l)&&(l=l[n%l.length],a=!1),void 0!==l))return r&&!a&&(r.cacheable=!1),l}function tR(e,t,n){let{min:r,max:i}=e,o=Z(t,(i-r)/2),l=(e,t)=>n&&0===e?0:e+t;return{min:l(r,-Math.abs(o)),max:l(i,o)}}function tE(e,t){return Object.assign(Object.create(e),t)}function tM(e,t=[""],n,r,i=()=>e[0]){let o=n||e;void 0===r&&(r=tL("_fallback",e));let l={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:n=>tM([n,...e],t,o,r)};return new Proxy(l,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>tA(n,r,()=>(function(e,t,n,r){let i;for(let o of t)if(void 0!==(i=tL(t_(o,e),n)))return tO(e,i)?tT(n,r,e,i):i})(r,t,e,n)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>tz(e).includes(t),ownKeys:e=>tz(e),set(e,t,n){let r=e._storage||(e._storage=i());return e[t]=r[t]=n,delete e._keys,!0}})}function tP(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:er(n)?n:()=>n,isIndexable:er(r)?r:()=>r}}let t_=(e,t)=>e?e+et(t):t,tO=(e,t)=>j(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function tA(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];let r=n();return e[t]=r,r}let tI=(e,t)=>!0===e?t:"string"==typeof e?ee(t,e):void 0;function tT(e,t,n,r){var i;let o=t._rootScopes,l=er(i=t._fallback)?i(n,r):i,a=[...e,...o],s=new Set;s.add(r);let u=tF(s,a,n,l||n,r);return null!==u&&(void 0===l||l===n||null!==(u=tF(s,a,l,u,r)))&&tM(Array.from(s),[""],o,l,()=>(function(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return D(i)&&j(n)?n:i||{}})(t,n,r))}function tF(e,t,n,r,i){for(;n;)n=function(e,t,n,r,i){for(let l of t){let t=tI(n,l);if(t){var o;e.add(t);let l=er(o=t._fallback)?o(n,i):o;if(void 0!==l&&l!==n&&l!==r)return l}else if(!1===t&&void 0!==r&&n!==r)return null}return!1}(e,t,n,r,i);return n}function tL(e,t){for(let n of t){if(!n)continue;let t=n[e];if(void 0!==t)return t}}function tz(e){let t=e._keys;return t||(t=e._keys=function(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function tD(e,t,n,r){let i,o,l;let{iScale:a}=e,{key:s="r"}=this._parsing,u=Array(r);for(i=0;i<r;++i)l=t[o=i+n],u[i]={r:a.parse(ee(l,s),o)};return u}let tj=Number.EPSILON||1e-14,tN=(e,t)=>t<e.length&&!e[t].skip&&e[t],tV=e=>"x"===e?"y":"x";function tB(e,t,n){return Math.max(Math.min(e,n),t)}function tH(e,t,n,r,i){let o,l,a,s;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){let n,r,i;let o=tV(t),l=e.length,a=Array(l).fill(0),s=Array(l),u=tN(e,0);for(n=0;n<l;++n)if(r=i,i=u,u=tN(e,n+1),i){if(u){let e=u[t]-i[t];a[n]=0!==e?(u[o]-i[o])/e:0}s[n]=r?u?eg(a[n-1])!==eg(a[n])?0:(a[n-1]+a[n])/2:a[n-1]:a[n]}!function(e,t,n){let r,i,o,l,a;let s=e.length,u=tN(e,0);for(let c=0;c<s-1;++c)if(a=u,u=tN(e,c+1),a&&u){if(em(t[c],0,tj)){n[c]=n[c+1]=0;continue}(l=Math.pow(r=n[c]/t[c],2)+Math.pow(i=n[c+1]/t[c],2))<=9||(o=3/Math.sqrt(l),n[c]=r*o*t[c],n[c+1]=i*o*t[c])}}(e,a,s),function(e,t,n="x"){let r,i,o;let l=tV(n),a=e.length,s=tN(e,0);for(let u=0;u<a;++u){if(i=o,o=s,s=tN(e,u+1),!o)continue;let a=o[n],c=o[l];i&&(r=(a-i[n])/3,o[`cp1${n}`]=a-r,o[`cp1${l}`]=c-r*t[u]),s&&(r=(s[n]-a)/3,o[`cp2${n}`]=a+r,o[`cp2${l}`]=c+r*t[u])}}(e,s,t)}(e,i);else{let n=r?e[e.length-1]:e[0];for(o=0,l=e.length;o<l;++o)s=function(e,t,n,r){let i=e.skip?t:e,o=n.skip?t:n,l=eE(t,i),a=eE(o,t),s=l/(l+a),u=a/(l+a);s=isNaN(s)?0:s,u=isNaN(u)?0:u;let c=r*s,f=r*u;return{previous:{x:t.x-c*(o.x-i.x),y:t.y-c*(o.y-i.y)},next:{x:t.x+f*(o.x-i.x),y:t.y+f*(o.y-i.y)}}}(n,a=e[o],e[Math.min(o+1,l-(r?0:1))%l],t.tension),a.cp1x=s.previous.x,a.cp1y=s.previous.y,a.cp2x=s.next.x,a.cp2y=s.next.y,n=a}t.capBezierPoints&&function(e,t){let n,r,i,o,l;let a=tu(e[0],t);for(n=0,r=e.length;n<r;++n)l=o,o=a,a=n<r-1&&tu(e[n+1],t),o&&(i=e[n],l&&(i.cp1x=tB(i.cp1x,t.left,t.right),i.cp1y=tB(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=tB(i.cp2x,t.left,t.right),i.cp2y=tB(i.cp2y,t.top,t.bottom)))}(e,n)}function tZ(){return"undefined"!=typeof window&&"undefined"!=typeof document}function tq(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function t$(e,t,n){let r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}let tU=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),tG=["top","right","bottom","left"];function tW(e,t,n){let r={};n=n?"-"+n:"";for(let i=0;i<4;i++){let o=tG[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}let tY=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function tX(e,t){if("native"in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=tU(n),o="border-box"===i.boxSizing,l=tW(i,"padding"),a=tW(i,"border","width"),{x:s,y:u,box:c}=function(e,t){let n,r;let i=e.touches,o=i&&i.length?i[0]:e,{offsetX:l,offsetY:a}=o,s=!1;if(tY(l,a,e.target))n=l,r=a;else{let e=t.getBoundingClientRect();n=o.clientX-e.left,r=o.clientY-e.top,s=!0}return{x:n,y:r,box:s}}(e,n),f=l.left+(c&&a.left),d=l.top+(c&&a.top),{width:h,height:p}=t;return o&&(h-=l.width+a.width,p-=l.height+a.height),{x:Math.round((s-f)/h*n.width/r),y:Math.round((u-d)/p*n.height/r)}}let tK=e=>Math.round(10*e)/10;function tJ(e,t,n,r){let i=tU(e),o=tW(i,"margin"),l=t$(i.maxWidth,e,"clientWidth")||eu,a=t$(i.maxHeight,e,"clientHeight")||eu,s=function(e,t,n){let r,i;if(void 0===t||void 0===n){let o=e&&tq(e);if(o){let e=o.getBoundingClientRect(),l=tU(o),a=tW(l,"border","width"),s=tW(l,"padding");t=e.width-s.width-a.width,n=e.height-s.height-a.height,r=t$(l.maxWidth,o,"clientWidth"),i=t$(l.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||eu,maxHeight:i||eu}}(e,t,n),{width:u,height:c}=s;if("content-box"===i.boxSizing){let e=tW(i,"border","width"),t=tW(i,"padding");u-=t.width+e.width,c-=t.height+e.height}u=Math.max(0,u-o.width),c=Math.max(0,r?u/r:c-o.height),u=tK(Math.min(u,l,s.maxWidth)),c=tK(Math.min(c,a,s.maxHeight)),u&&!c&&(c=tK(u/2));let f=void 0!==t||void 0!==n;return f&&r&&s.height&&c>s.height&&(u=tK(Math.floor((c=s.height)*r))),{width:u,height:c}}function tQ(e,t,n){let r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let l=e.canvas;return l.style&&(n||!l.style.height&&!l.style.width)&&(l.style.height=`${e.height}px`,l.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||l.height!==i||l.width!==o)&&(e.currentDevicePixelRatio=r,l.height=i,l.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}let t0=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};tZ()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function t1(e,t){let n=tU(e).getPropertyValue(t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function t2(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function t4(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function t5(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},l=t2(e,i,n),a=t2(i,o,n),s=t2(o,t,n),u=t2(l,a,n),c=t2(a,s,n);return t2(u,c,n)}function t9(e,t,n){var r;return e?(r=n,{x:e=>t+t+r-e,setWidth(e){r=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function t3(e,t){let n,r;("ltr"===t||"rtl"===t)&&(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function t6(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function t8(e){return"angle"===e?{between:e_,compare:eM,normalize:eP}:{between:eI,compare:(e,t)=>e-t,normalize:e=>e}}function t7({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n==0,style:i}}function ne(e,t,n){let r,i,o;if(!n)return[e];let{property:l,start:a,end:s}=n,u=t.length,{compare:c,between:f,normalize:d}=t8(l),{start:h,end:p,loop:g,style:m}=function(e,t,n){let r;let{property:i,start:o,end:l}=n,{between:a,normalize:s}=t8(i),u=t.length,{start:c,end:f,loop:d}=e;if(d){for(c+=u,f+=u,r=0;r<u&&a(s(t[c%u][i]),o,l);++r)c--,f--;c%=u,f%=u}return f<c&&(f+=u),{start:c,end:f,loop:d,style:e.style}}(e,t,n),v=[],y=!1,b=null,x=()=>f(a,o,r)&&0!==c(a,o),k=()=>0===c(s,r)||f(s,o,r),w=()=>y||x(),C=()=>!y||k();for(let e=h,n=h;e<=p;++e)(i=t[e%u]).skip||(r=d(i[l]))===o||(y=f(r,a,s),null===b&&w()&&(b=0===c(r,a)?e:n),null!==b&&C()&&(v.push(t7({start:b,end:e,loop:g,count:u,style:m})),b=null),n=e,o=r);return null!==b&&v.push(t7({start:b,end:p,loop:g,count:u,style:m})),v}function nt(e,t){let n=[],r=e.segments;for(let i=0;i<r.length;i++){let o=ne(r[i],e.points,t);o.length&&n.push(...o)}return n}function nn(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let o=!!e._loop,{start:l,end:a}=function(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return{start:i,end:o%=t}}(n,i,o,r);if(!0===r)return nr(e,[{start:l,end:a,loop:o}],n,t);let s=a<l?a+i:a,u=!!e._fullLoop&&0===l&&a===i-1;return nr(e,function(e,t,n,r){let i;let o=e.length,l=[],a=t,s=e[t];for(i=t+1;i<=n;++i){let n=e[i%o];n.skip||n.stop?s.skip||(r=!1,l.push({start:t%o,end:(i-1)%o,loop:r}),t=a=n.stop?i:null):(a=i,s.skip&&(t=i)),s=n}return null!==a&&l.push({start:t%o,end:a%o,loop:r}),l}(n,l,s,u),n,t)}function nr(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){let i=e._chart.getContext(),o=ni(e.options),{_datasetIndex:l,options:{spanGaps:a}}=e,s=n.length,u=[],c=o,f=t[0].start,d=f;function h(e,t,r,i){let o=a?-1:1;if(e!==t){for(e+=s;n[e%s].skip;)e-=o;for(;n[t%s].skip;)t+=o;e%s!=t%s&&(u.push({start:e%s,end:t%s,loop:r,style:i}),c=i,f=t%s)}}for(let e of t){let t;let o=n[(f=a?f:e.start)%s];for(d=f+1;d<=e.end;d++){let a=n[d%s];(function(e,t){if(!t)return!1;let n=[],r=function(e,t){return eQ(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.stringify(t,r)})(t=ni(r.setContext(tE(i,{type:"segment",p0:o,p1:a,p0DataIndex:(d-1)%s,p1DataIndex:d%s,datasetIndex:l}))),c)&&h(f,d-1,e.loop,c),o=a,c=t}f<d-1&&h(f,d-1,e.loop,c)}return u}(e,t,n,r):t}function ni(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}},79715:function(e,t,n){"use strict";n.d(t,{P:function(){return b}});let r=/\\(\\)?/g,i=RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,a=function(e){let t=typeof e;return"symbol"===t||"object"===t&&e&&"[object Symbol]"===Object.prototype.toString.call(e)},s=function(e,t){if(Array.isArray(e))return!1;let n=typeof e;return!!("number"===n||"symbol"===n||"boolean"===n||!e||a(e))||l.test(e)||!o.test(e)||null!=t&&e in Object(t)},u=function(e){let t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,i,o){let l=e;i?l=o.replace(r,"$1"):n&&(l=n.trim()),t.push(l)}),t},c=function(e){if("string"==typeof e||a(e))return e;let t=`${e}`;return"0"==t&&1/e==-INFINITY?"-0":t},f=function(e,t){var n,r;n=t,r=e,t=Array.isArray(n)?n:s(n,r)?[n]:u(n);let i=0,o=t.length;for(;null!=e&&i<o;)e=e[c(t[i++])];return i&&i===o?e:void 0},d=function(e){if(null==e)return[void 0,void 0];if("object"!=typeof e)return[Error('Invalid option "columns": expect an array or an object')];if(Array.isArray(e)){let t=[];for(let n of e)if("string"==typeof n)t.push({key:n,header:n});else{if("object"!=typeof n||null===n||Array.isArray(n))return[Error("Invalid column definition: expect a string or an object")];if(!n.key)return[Error('Invalid column definition: property "key" is required')];void 0===n.header&&(n.header=n.key),t.push(n)}e=t}else{let t=[];for(let n in e)t.push({key:n,header:e[n]});e=t}return[void 0,e]};var h=n(20631).lW;class p extends Error{constructor(e,t,...n){for(let r of(Array.isArray(t)&&(t=t.join(" ")),super(t),void 0!==Error.captureStackTrace&&Error.captureStackTrace(this,p),this.code=e,n))for(let e in r){let t=r[e];this[e]=h.isBuffer(t)?t.toString():null==t?t:JSON.parse(JSON.stringify(t))}}}var g=n(20631).lW;let m=function(e){let t={};for(let n in e)t[n.replace(/([A-Z])/g,function(e,t){return"_"+t.toLowerCase()})]=e[n];if(void 0===t.bom||null===t.bom||!1===t.bom)t.bom=!1;else if(!0!==t.bom)return[new p("CSV_OPTION_BOOLEAN_INVALID_TYPE",["option `bom` is optional and must be a boolean value,",`got ${JSON.stringify(t.bom)}`])];if(void 0===t.delimiter||null===t.delimiter)t.delimiter=",";else if(g.isBuffer(t.delimiter))t.delimiter=t.delimiter.toString();else if("string"!=typeof t.delimiter)return[new p("CSV_OPTION_DELIMITER_INVALID_TYPE",["option `delimiter` must be a buffer or a string,",`got ${JSON.stringify(t.delimiter)}`])];if(void 0===t.quote||null===t.quote)t.quote='"';else if(!0===t.quote)t.quote='"';else if(!1===t.quote)t.quote="";else if(g.isBuffer(t.quote))t.quote=t.quote.toString();else if("string"!=typeof t.quote)return[new p("CSV_OPTION_QUOTE_INVALID_TYPE",["option `quote` must be a boolean, a buffer or a string,",`got ${JSON.stringify(t.quote)}`])];if((void 0===t.quoted||null===t.quoted)&&(t.quoted=!1),void 0===t.escape_formulas||null===t.escape_formulas)t.escape_formulas=!1;else if("boolean"!=typeof t.escape_formulas)return[new p("CSV_OPTION_ESCAPE_FORMULAS_INVALID_TYPE",["option `escape_formulas` must be a boolean,",`got ${JSON.stringify(t.escape_formulas)}`])];if((void 0===t.quoted_empty||null===t.quoted_empty)&&(t.quoted_empty=void 0),void 0===t.quoted_match||null===t.quoted_match||!1===t.quoted_match?t.quoted_match=null:Array.isArray(t.quoted_match)||(t.quoted_match=[t.quoted_match]),t.quoted_match)for(let e of t.quoted_match){let t="string"==typeof e,n=e instanceof RegExp;if(!t&&!n)return[Error(`Invalid Option: quoted_match must be a string or a regex, got ${JSON.stringify(e)}`)]}if((void 0===t.quoted_string||null===t.quoted_string)&&(t.quoted_string=!1),(void 0===t.eof||null===t.eof)&&(t.eof=!0),void 0===t.escape||null===t.escape)t.escape='"';else if(g.isBuffer(t.escape))t.escape=t.escape.toString();else if("string"!=typeof t.escape)return[Error(`Invalid Option: escape must be a buffer or a string, got ${JSON.stringify(t.escape)}`)];if(t.escape.length>1)return[Error(`Invalid Option: escape must be one character, got ${t.escape.length} characters`)];(void 0===t.header||null===t.header)&&(t.header=!1);let[n,r]=d(t.columns);if(void 0!==n)return[n];if(t.columns=r,(void 0===t.quoted||null===t.quoted)&&(t.quoted=!1),(void 0===t.cast||null===t.cast)&&(t.cast={}),(void 0===t.cast.bigint||null===t.cast.bigint)&&(t.cast.bigint=e=>""+e),(void 0===t.cast.boolean||null===t.cast.boolean)&&(t.cast.boolean=e=>e?"1":""),(void 0===t.cast.date||null===t.cast.date)&&(t.cast.date=e=>""+e.getTime()),(void 0===t.cast.number||null===t.cast.number)&&(t.cast.number=e=>""+e),(void 0===t.cast.object||null===t.cast.object)&&(t.cast.object=e=>JSON.stringify(e)),(void 0===t.cast.string||null===t.cast.string)&&(t.cast.string=function(e){return e}),void 0!==t.on_record&&"function"!=typeof t.on_record)return[Error('Invalid Option: "on_record" must be a function.')];if(void 0===t.record_delimiter||null===t.record_delimiter)t.record_delimiter="\n";else if(g.isBuffer(t.record_delimiter))t.record_delimiter=t.record_delimiter.toString();else if("string"!=typeof t.record_delimiter)return[Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(t.record_delimiter)}`)];switch(t.record_delimiter){case"unix":t.record_delimiter="\n";break;case"mac":t.record_delimiter="\r";break;case"windows":t.record_delimiter="\r\n";break;case"ascii":t.record_delimiter="\x1e";break;case"unicode":t.record_delimiter="\u2028"}return[void 0,t]};var v=n(20631).lW;let y=v.from([239,187,191]),b=function(e,t={}){let n=[],[r,i]=m(t);if(void 0!==r)throw r;let o={options:i,state:{stop:!1},info:{records:0},__transform:function(e,t){let n,r;if(!Array.isArray(e)&&"object"!=typeof e)return Error(`Invalid Record: expect an array or an object, got ${JSON.stringify(e)}`);if(0===this.info.records){if(Array.isArray(e)){if(!0===this.options.header&&void 0===this.options.columns)return Error("Undiscoverable Columns: header option requires column option or object records")}else if(void 0===this.options.columns){let[t,n]=d(Object.keys(e));if(t)return;this.options.columns=n}}if(0===this.info.records){this.bom(t);let e=this.headers(t);if(e)return e}try{this.options.on_record&&this.options.on_record(e,this.info.records)}catch(e){return e}if(this.options.eof){if([n,r]=this.stringify(e),n)return n;if(void 0===r)return;r+=this.options.record_delimiter}else{if([n,r]=this.stringify(e),n)return n;if(void 0===r)return;(this.options.header||this.info.records)&&(r=this.options.record_delimiter+r)}this.info.records++,t(r)},stringify:function(e,t=!1){if("object"!=typeof e)return[void 0,e];let{columns:n}=this.options,r=[];if(Array.isArray(e)){n&&e.splice(n.length);for(let n=0;n<e.length;n++){let i=e[n],[o,l]=this.__cast(i,{index:n,column:n,records:this.info.records,header:t});if(o)return[o];r[n]=[l,i]}}else for(let i=0;i<n.length;i++){let o=f(e,n[i].key),[l,a]=this.__cast(o,{index:i,column:n[i].key,records:this.info.records,header:t});if(l)return[l];r[i]=[a,o]}let i="";for(let e=0;e<r.length;e++){let t,n;let[l,a]=r[e];if("string"==typeof l)t=this.options;else{var o;if("object"!=typeof(o=l)||null===o||Array.isArray(o)){if(null!=l)return[Error(`Invalid Casting Value: returned value must return a string, an object, null or undefined, got ${JSON.stringify(l)}`)];t=this.options}else{if(l=(t=l).value,delete t.value,"string"!=typeof l&&null!=l&&n)return[Error(`Invalid Casting Value: returned value must return a string, null or undefined, got ${JSON.stringify(l)}`)];if(t={...this.options,...t},[n,t]=m(t),void 0!==n)return[n]}}let{delimiter:s,escape:u,quote:c,quoted:f,quoted_empty:d,quoted_string:h,quoted_match:p,record_delimiter:g,escape_formulas:v}=t;if(""===l&&""===a){let e=p&&p.filter(e=>"string"==typeof e?-1!==l.indexOf(e):e.test(l));e=e&&e.length>0;let t=e||!0===d||!0===h&&!1!==d;!0===t&&(l=c+l+c),i+=l}else if(l){if("string"!=typeof l)return[Error(`Formatter must return a string, null or undefined, got ${JSON.stringify(l)}`)];let e=s.length&&l.indexOf(s)>=0,t=""!==c&&l.indexOf(c)>=0,n=l.indexOf(u)>=0&&u!==c,r=l.indexOf(g)>=0,o=h&&"string"==typeof a,d=p&&p.filter(e=>"string"==typeof e?-1!==l.indexOf(e):e.test(l));if(d=d&&d.length>0,v)switch(l[0]){case"=":case"+":case"-":case"@":case" ":case"\r":case"=":case"+":case"-":case"@":l=`'${l}`}let m=!0===t||e||r||f||o||d;if(!0===m&&!0===n){let e="\\"===u?RegExp(u+u,"g"):RegExp(u,"g");l=l.replace(e,u+u)}if(!0===t){let e=RegExp(c,"g");l=l.replace(e,u+c)}!0===m&&(l=c+l+c),i+=l}else(!0===d||""===a&&!0===h&&!1!==d)&&(i+=c+c);e!==r.length-1&&(i+=s)}return[void 0,i]},bom:function(e){!0===this.options.bom&&e(y)},headers:function(e){let t;if(!1===this.options.header||void 0===this.options.columns)return;let n=this.options.columns.map(e=>e.header);if(this.options.eof?([t,n]=this.stringify(n,!0),n+=this.options.record_delimiter):[t,n]=this.stringify(n),t)return t;e(n)},__cast:function(e,t){let n=typeof e;try{if("string"===n)return[void 0,this.options.cast.string(e,t)];if("bigint"===n)return[void 0,this.options.cast.bigint(e,t)];if("number"===n)return[void 0,this.options.cast.number(e,t)];if("boolean"===n)return[void 0,this.options.cast.boolean(e,t)];else if(e instanceof Date)return[void 0,this.options.cast.date(e,t)];else if("object"===n&&null!==e)return[void 0,this.options.cast.object(e,t)];else return[void 0,e,e]}catch(e){return[e]}}};for(let t of e){let e=o.__transform(t,function(e){n.push(e)});if(void 0!==e)throw e}if(0===n.length){o.bom(e=>{n.push(e)});let e=o.headers(e=>{n.push(e)});if(void 0!==e)throw e}return n.join("")}},88144:function(e,t,n){"use strict";function r(){}function i(){}n.d(t,{ok:function(){return r},t1:function(){return i}})},68192:function(e,t,n){"use strict";function r(){}n.d(t,{CT:function(){return p},NV:function(){return a},SY:function(){return c}}),r.prototype={diff:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.callback;"function"==typeof r&&(i=r,r={}),this.options=r;var o=this;function l(e){return i?(setTimeout(function(){i(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,c=a+s;r.maxEditLength&&(c=Math.min(c,r.maxEditLength));var f=null!==(n=r.timeout)&&void 0!==n?n:1/0,d=Date.now()+f,h=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(h[0],t,e,0);if(h[0].oldPos+1>=s&&p+1>=a)return l([{value:this.join(t),count:t.length}]);var g=-1/0,m=1/0;function v(){for(var n=Math.max(g,-u);n<=Math.min(m,u);n+=2){var r=void 0,i=h[n-1],c=h[n+1];i&&(h[n-1]=void 0);var f=!1;if(c){var d=c.oldPos-n;f=c&&0<=d&&d<a}var v=i&&i.oldPos+1<s;if(!f&&!v){h[n]=void 0;continue}if(r=!v||f&&i.oldPos+1<c.oldPos?o.addToPath(c,!0,void 0,0):o.addToPath(i,void 0,!0,1),p=o.extractCommon(r,t,e,n),r.oldPos+1>=s&&p+1>=a)return l(function(e,t,n,r,i){for(var o,l=[];t;)l.push(t),o=t.previousComponent,delete t.previousComponent,t=o;l.reverse();for(var a=0,s=l.length,u=0,c=0;a<s;a++){var f=l[a];if(f.removed){if(f.value=e.join(r.slice(c,c+f.count)),c+=f.count,a&&l[a-1].added){var d=l[a-1];l[a-1]=l[a],l[a]=d}}else{if(!f.added&&i){var h=n.slice(u,u+f.count);h=h.map(function(e,t){var n=r[c+t];return n.length>e.length?n:e}),f.value=e.join(h)}else f.value=e.join(n.slice(u,u+f.count));u+=f.count,f.added||(c+=f.count)}}var p=l[s-1];return s>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(l[s-2].value+=p.value,l.pop()),l}(o,r.lastComponent,t,e,o.useLongestToken));h[n]=r,r.oldPos+1>=s&&(m=Math.min(m,n-1)),p+1>=a&&(g=Math.max(g,n+1))}u++}if(i)!function e(){setTimeout(function(){if(u>c||Date.now()>d)return i();v()||e()},0)}();else for(;u<=c&&Date.now()<=d;){var y=v();if(y)return y}},addToPath:function(e,t,n,r){var i=e.lastComponent;return i&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,l=e.oldPos,a=l-r,s=0;a+1<i&&l+1<o&&this.equals(t[a+1],n[l+1]);)a++,l++,s++;return s&&(e.lastComponent={count:s,previousComponent:e.lastComponent}),e.oldPos=l,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}},new r;var i=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,o=/\S/,l=new r;function a(e,t,n){return n=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(n,{ignoreWhitespace:!0}),l.diff(e,t,n)}l.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!o.test(e)&&!o.test(t)},l.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&i.test(t[n])&&i.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var s=new r;s.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var u=new r;function c(e,t,n){return u.diff(e,t,n)}function f(e){return(f="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)}u.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},new r().tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var d=Object.prototype.toString,h=new r;function p(e,t,n){return h.diff(e,t,n)}h.useLongestToken=!0,h.tokenize=s.tokenize,h.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(function e(t,n,r,i,o){for(n=n||[],r=r||[],i&&(t=i(o,t)),l=0;l<n.length;l+=1)if(n[l]===t)return r[l];if("[object Array]"===d.call(t)){for(n.push(t),a=Array(t.length),r.push(a),l=0;l<t.length;l+=1)a[l]=e(t[l],n,r,i,o);return n.pop(),r.pop(),a}if(t&&t.toJSON&&(t=t.toJSON()),"object"===f(t)&&null!==t){n.push(t),a={},r.push(a);var l,a,s,u=[];for(s in t)t.hasOwnProperty(s)&&u.push(s);for(u.sort(),l=0;l<u.length;l+=1)a[s=u[l]]=e(t[s],n,r,i,s);n.pop(),r.pop()}else a=t;return a}(e,null,null,i),i," ")},h.equals=function(e,t){return r.prototype.equals.call(h,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var g=new r;g.tokenize=function(e){return e.slice()},g.join=g.removeEmpty=function(e){return e}},58345:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});let r={};function i(e,t){let n=t||r,i="boolean"!=typeof n.includeImageAlt||n.includeImageAlt,l="boolean"!=typeof n.includeHtml||n.includeHtml;return o(e,i,l)}function o(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return l(e.children,t,n)}return Array.isArray(e)?l(e,t,n):""}function l(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=o(e[i],t,n);return r.join("")}},6333:function(e,t,n){"use strict";n.d(t,{w:function(){return o}});var r=n(88785),i=n(80435);let o={tokenize:function(e,t,n){return function(t){return(0,i.xz)(t)?(0,r.f)(e,o,"linePrefix")(t):o(t)};function o(e){return null===e||(0,i.Ch)(e)?t(e):n(e)}},partial:!0}},88785:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(80435);function i(e,t,n,i){let o=i?i-1:Number.POSITIVE_INFINITY,l=0;return function(i){return(0,r.xz)(i)?(e.enter(n),function i(a){return(0,r.xz)(a)&&l++<o?(e.consume(a),i):(e.exit(n),t(a))}(i)):t(i)}}},80435:function(e,t,n){"use strict";n.d(t,{AF:function(){return s},Av:function(){return l},B8:function(){return p},Ch:function(){return c},H$:function(){return i},Xh:function(){return h},jv:function(){return r},n9:function(){return o},pY:function(){return a},sR:function(){return u},xz:function(){return d},z3:function(){return f}});let r=g(/[A-Za-z]/),i=g(/[\dA-Za-z]/),o=g(/[#-'*+\--9=?A-Z^-~]/);function l(e){return null!==e&&(e<32||127===e)}let a=g(/\d/),s=g(/[\dA-Fa-f]/),u=g(/[!-/:-@[-`{-~]/);function c(e){return null!==e&&e<-2}function f(e){return null!==e&&(e<0||32===e)}function d(e){return -2===e||-1===e||32===e}let h=g(/\p{P}|\p{S}/u),p=g(/\s/);function g(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},40147:function(e,t,n){"use strict";function r(e,t,n,r){let i;let o=e.length,l=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l<r.length;)(i=r.slice(l,l+1e4)).unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:function(){return i},d:function(){return r}})},27584:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(80435);function i(e){return null===e||(0,r.z3)(e)||(0,r.B8)(e)?1:(0,r.Xh)(e)?2:void 0}},14850:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(40147);let i={}.hasOwnProperty;function o(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let o;let l=i.call(e,n)?e[n]:void 0,a=l||(e[n]={}),s=t[n];if(s)for(o in s){i.call(a,o)||(a[o]=[]);let e=s[o];!function(e,t){let n=-1,i=[];for(;++n<t.length;)("after"===t[n].add?e:i).push(t[n]);(0,r.d)(e,0,0,i)}(a[o],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}},37681:function(e,t,n){"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{d:function(){return r}})},60441:function(e,t,n){"use strict";function r(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}n.d(t,{C:function(){return r}})},5971:function(e,t,n){"use strict";n.d(t,{U:function(){return nv}});var r={};n.r(r),n.d(r,{boolean:function(){return v},booleanish:function(){return y},commaOrSpaceSeparated:function(){return C},commaSeparated:function(){return w},number:function(){return x},overloadedBoolean:function(){return b},spaceSeparated:function(){return k}});var i={};n.r(i),n.d(i,{attentionMarkers:function(){return tv},contentInitial:function(){return tf},disable:function(){return ty},document:function(){return tc},flow:function(){return th},flowInitial:function(){return td},insideSpan:function(){return tm},string:function(){return tp},text:function(){return tg}});var o=n(88144);let l=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s={};function u(e,t){let n=(t||s).jsx?a:l;return n.test(e)}let c=/[ \t\n\f\r]/g;function f(e){return""===e.replace(c,"")}class d{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function h(e,t){let n={},r={},i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new d(n,r,t)}function p(e){return e.toLowerCase()}d.prototype.property={},d.prototype.normal={},d.prototype.space=null;class g{constructor(e,t){this.property=e,this.attribute=t}}g.prototype.space=null,g.prototype.boolean=!1,g.prototype.booleanish=!1,g.prototype.overloadedBoolean=!1,g.prototype.number=!1,g.prototype.commaSeparated=!1,g.prototype.spaceSeparated=!1,g.prototype.commaOrSpaceSeparated=!1,g.prototype.mustUseProperty=!1,g.prototype.defined=!1;let m=0,v=S(),y=S(),b=S(),x=S(),k=S(),w=S(),C=S();function S(){return 2**++m}let R=Object.keys(r);class E extends g{constructor(e,t,n,i){var o,l;let a=-1;if(super(e,t),i&&(this.space=i),"number"==typeof n)for(;++a<R.length;){let e=R[a];o=R[a],(l=(n&r[e])===r[e])&&(this[o]=l)}}}E.prototype.defined=!0;let M={}.hasOwnProperty;function P(e){let t;let n={},r={};for(t in e.properties)if(M.call(e.properties,t)){let i=e.properties[t],o=new E(t,e.transform(e.attributes||{},t),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(o.mustUseProperty=!0),n[t]=o,r[p(t)]=t,r[p(o.attribute)]=t}return new d(n,r,e.space)}let _=P({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),O=P({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function A(e,t){return t in e?e[t]:t}function I(e,t){return A(e,t.toLowerCase())}let T=P({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:I,properties:{xmlns:null,xmlnsXLink:null}}),F=P({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:y,ariaAutoComplete:null,ariaBusy:y,ariaChecked:y,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:k,ariaCurrent:null,ariaDescribedBy:k,ariaDetails:null,ariaDisabled:y,ariaDropEffect:k,ariaErrorMessage:null,ariaExpanded:y,ariaFlowTo:k,ariaGrabbed:y,ariaHasPopup:null,ariaHidden:y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:k,ariaLevel:x,ariaLive:null,ariaModal:y,ariaMultiLine:y,ariaMultiSelectable:y,ariaOrientation:null,ariaOwns:k,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:y,ariaReadOnly:y,ariaRelevant:null,ariaRequired:y,ariaRoleDescription:k,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:y,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null}}),L=P({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:I,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:w,acceptCharset:k,accessKey:k,action:null,allow:null,allowFullScreen:v,allowPaymentRequest:v,allowUserMedia:v,alt:null,as:null,async:v,autoCapitalize:null,autoComplete:k,autoFocus:v,autoPlay:v,blocking:k,capture:null,charSet:null,checked:v,cite:null,className:k,cols:x,colSpan:null,content:null,contentEditable:y,controls:v,controlsList:k,coords:x|w,crossOrigin:null,data:null,dateTime:null,decoding:null,default:v,defer:v,dir:null,dirName:null,disabled:v,download:b,draggable:y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:v,formTarget:null,headers:k,height:x,hidden:v,high:x,href:null,hrefLang:null,htmlFor:k,httpEquiv:k,id:null,imageSizes:null,imageSrcSet:null,inert:v,inputMode:null,integrity:null,is:null,isMap:v,itemId:null,itemProp:k,itemRef:k,itemScope:v,itemType:k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:v,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:v,muted:v,name:null,nonce:null,noModule:v,noValidate:v,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored: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,onScrollEnd: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:v,optimum:x,pattern:null,ping:k,placeholder:null,playsInline:v,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:v,referrerPolicy:null,rel:k,required:v,reversed:v,rows:x,rowSpan:x,sandbox:k,scope:null,scoped:v,seamless:v,selected:v,shadowRootClonable:v,shadowRootDelegatesFocus:v,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:v,useMap:null,value:y,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:k,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:v,declare:v,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:v,noHref:v,noShade:v,noWrap:v,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:y,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:v,disableRemotePlayback:v,prefix:null,property:null,results:x,security:null,unselectable:null}}),z=P({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:A,properties:{about:C,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:k,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:v,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:w,g2:w,glyphName:w,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:C,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose: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,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:C,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:C,rev:C,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:C,requiredFeatures:C,requiredFonts:C,requiredFormats:C,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:C,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:C,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:C,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),D=h([O,_,T,F,L],"html"),j=h([O,_,T,F,z],"svg"),N=/^data[-\w.:]+$/i,V=/-[a-z]/g,B=/[A-Z]/g;function H(e){return"-"+e.toLowerCase()}function Z(e){return e.charAt(1).toUpperCase()}let q={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var $=n(39263),U=$.default||$;let G=Y("end"),W=Y("start");function Y(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function X(e){return e&&"object"==typeof e?"position"in e||"type"in e?J(e.position):"start"in e||"end"in e?J(e):"line"in e||"column"in e?K(e):"":""}function K(e){return Q(e&&e.line)+":"+Q(e&&e.column)}function J(e){return K(e&&e.start)+"-"+K(e&&e.end)}function Q(e){return e&&"number"==typeof e?e:1}class ee extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=l?l.line:void 0,this.name=X(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}ee.prototype.file="",ee.prototype.name="",ee.prototype.reason="",ee.prototype.message="",ee.prototype.stack="",ee.prototype.column=void 0,ee.prototype.line=void 0,ee.prototype.ancestors=void 0,ee.prototype.cause=void 0,ee.prototype.fatal=void 0,ee.prototype.place=void 0,ee.prototype.ruleId=void 0,ee.prototype.source=void 0;let et={}.hasOwnProperty,en=new Map,er=/[A-Z]/g,ei=/-([a-z])/g,eo=new Set(["table","tbody","thead","tfoot","tr"]),el=new Set(["td","th"]),ea="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function es(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=j,e.schema=i),e.ancestors.push(t);let o=ed(e,t.tagName,!1),l=function(e,t){let n,r;let i={};for(r in t.properties)if("children"!==r&&et.call(t.properties,r)){let o=function(e,t,n){let r=function(e,t){let n=p(t),r=t,i=g;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&N.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(V,Z);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!V.test(e)){let n=e.replace(B,H);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=E}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={},r=""===e[e.length-1]?[...e,""]:e;return r.join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){let n={};try{U(t,function(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(ei,ep)),n[r]=t})}catch(t){if(!e.ignoreInvalidStyle){let n=new ee("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ea+"#cannot-parse-style-attribute",n}}return n}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t;let n={};for(t in e)et.call(e,t)&&(n[function(e){let t=e.replace(er,eg);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?q[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(o){let[r,l]=o;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof l&&el.has(t.tagName)?n=l:i[r]=l}}if(n){let t=i.style||(i.style={});t["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n}return i}(e,t),a=ef(e,t);return eo.has(t.tagName)&&(a=a.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&f(e.value):f(e))})),eu(e,l,o,t),ec(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree,r=n.body[0];return(0,o.ok)("ExpressionStatement"===r.type),e.evaluater.evaluateExpression(r.expression)}eh(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.name&&"html"===r.space&&(i=j,e.schema=i),e.ancestors.push(t);let l=null===t.name?e.Fragment:ed(e,t.name,!0),a=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree,i=t.body[0];(0,o.ok)("ExpressionStatement"===i.type);let l=i.expression;(0,o.ok)("ObjectExpression"===l.type);let a=l.properties[0];(0,o.ok)("SpreadElement"===a.type),Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else eh(e,t.position)}else{let i;let l=r.name;if(r.value&&"object"==typeof r.value){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree,n=t.body[0];(0,o.ok)("ExpressionStatement"===n.type),i=e.evaluater.evaluateExpression(n.expression)}else eh(e,t.position)}else i=null===r.value||r.value;n[l]=i}return n}(e,t),s=ef(e,t);return eu(e,a,l,t),ec(a,s),e.ancestors.pop(),e.schema=r,e.create(t,l,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eh(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return ec(r,ef(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function eu(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ec(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ef(e,t){let n=[],r=-1,i=e.passKeys?new Map:en;for(;++r<t.children.length;){let o;let l=t.children[r];if(e.passKeys){let e="element"===l.type?l.tagName:"mdxJsxFlowElement"===l.type||"mdxJsxTextElement"===l.type?l.name:void 0;if(e){let t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}let a=es(e,l,o);void 0!==a&&n.push(a)}return n}function ed(e,t,n){let r;if(n){if(t.includes(".")){let e;let n=t.split("."),i=-1;for(;++i<n.length;){let t=u(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}(0,o.ok)(e,"always a result"),r=e}else r=u(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t}}else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return et.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);eh(e)}function eh(e,t){let n=new ee("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ea+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ep(e,t){return t.toUpperCase()}function eg(e){return"-"+e.toLowerCase()}let em={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var ev=n(24004),ey=n(58345),eb=n(40147);class ex{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&ek(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ek(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ek(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(e<this.left.length){let t=this.left.splice(e,Number.POSITIVE_INFINITY);ek(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);ek(this.left,t.reverse())}}}}function ek(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ew(e){let t,n,r,i,o,l,a;let s={},u=-1,c=new ex(e);for(;++u<c.length;){for(;(u in s);)u=s[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&(l=t[1]._tokenizer.events,(r=0)<l.length&&"lineEndingBlank"===l[r][1].type&&(r+=2),r<l.length&&"content"===l[r][1].type))for(;++r<l.length&&"content"!==l[r][1].type;)"chunkText"===l[r][1].type&&(l[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r;let i=e.get(t)[1],o=e.get(t)[2],l=t-1,a=[],s=i._tokenizer||o.parser[i.contentType](i.start),u=s.events,c=[],f={},d=-1,h=i,p=0,g=0,m=[g];for(;h;){for(;e.get(++l)[1]!==h;);a.push(l),!h._tokenizer&&(n=o.sliceStream(h),h.next||n.push(null),r&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=h,h=h.next}for(h=i;++d<u.length;)"exit"===u[d][0]&&"enter"===u[d-1][0]&&u[d][1].type===u[d-1][1].type&&u[d][1].start.line!==u[d][1].end.line&&(g=d+1,m.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):m.pop(),d=m.length;d--;){let t=u.slice(m[d],m[d+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),d=-1;++d<c.length;)f[p+c[d][0]]=p+c[d][1],p+=c[d][1]-c[d][0]-1;return f}(c,u)),u=s[u],a=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else break;n&&(t[1].end=Object.assign({},c.get(n)[1].start),(o=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,o))}}return(0,eb.d)(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!a}var eC=n(14850),eS=n(88785),eR=n(80435);let eE={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,eS.f)(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return(0,eR.Ch)(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},eM={tokenize:function(e){let t,n,r;let i=this,o=[],l=0;return a;function a(t){if(l<o.length){let n=o[l];return i.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(l++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&v();let r=i.events.length,o=r;for(;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}m(l);let a=r;for(;a<i.events.length;)i.events[a][1].end=Object.assign({},n),a++;return(0,eb.d)(i.events,o+1,0,i.events.slice(r)),i.events.length=a,u(e)}return a(e)}function u(n){if(l===o.length){if(!t)return d(n);if(t.currentConstruct&&t.currentConstruct.concrete)return p(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(eP,c,f)(n)}function c(e){return t&&v(),m(l),d(e)}function f(e){return i.parser.lazy[i.now().line]=l!==o.length,r=i.now().offset,p(e)}function d(t){return i.containerState={},e.attempt(eP,h,p)(t)}function h(e){return l++,o.push([i.currentConstruct,i.containerState]),d(e)}function p(r){if(null===r){t&&v(),m(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{contentType:"flow",previous:n,_tokenizer:t}),function t(n){if(null===n){g(e.exit("chunkFlow"),!0),m(0),e.consume(n);return}return(0,eR.Ch)(n)?(e.consume(n),g(e.exit("chunkFlow")),l=0,i.interrupt=void 0,a):(e.consume(n),t)}(r)}function g(e,o){let a=i.sliceStream(e);if(o&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),i.parser.lazy[e.start.line]){let e,n,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][1].end.offset>r))return;let a=i.events.length,s=a;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){if(e){n=i.events[s][1].end;break}e=!0}for(m(l),o=a;o<i.events.length;)i.events[o][1].end=Object.assign({},n),o++;(0,eb.d)(i.events,s+1,0,i.events.slice(a)),i.events.length=o}}function m(t){let n=o.length;for(;n-- >t;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function v(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eP={tokenize:function(e,t,n){return(0,eS.f)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var e_=n(6333);let eO={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):(0,eR.Ch)(t)?e.check(eA,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return ew(e),e}},eA={tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,eS.f)(e,i,"linePrefix")};function i(i){if(null===i||(0,eR.Ch)(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0},eI={tokenize:function(e){let t=this,n=e.attempt(e_.w,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,(0,eS.f)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eO,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},eT={resolveAll:eD()},eF=ez("string"),eL=ez("text");function ez(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,l);return o;function o(e){return s(e)?i(e):l(e)}function l(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),a}function a(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:eD("text"===e?ej:void 0)}}function eD(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function ej(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r;let i=e[n-1][1],o=t.sliceStream(i),l=o.length,a=-1,s=0;for(;l--;){let e=o[l];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{l++;break}}if(s){let o={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-s,offset:i.end.offset-s,_index:i.start._index+l,_bufferIndex:l?a:i.start._bufferIndex+a},end:Object.assign({},i.end)};i.end=Object.assign({},o.start),i.start.offset===i.end.offset?Object.assign(i,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}var eN=n(60441);let eV={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(o){return e.enter("thematicBreak"),r=o,function o(l){return l===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),(0,eR.xz)(n)?(0,eS.f)(e,o,"whitespace")(n):o(n))}(l)):i>=3&&(null===l||(0,eR.Ch)(l))?(e.exit("thematicBreak"),t(l)):n(l)}(o)}}},eB={name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,l=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,eR.pY)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(eV,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,eR.pY)(i)&&++l<10?(e.consume(i),t):(!r.interrupt||l<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(e_.w,r.interrupt?n:s,e.attempt(eH,c,u))}function s(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function u(t){return(0,eR.xz)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(e_.w,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,eS.f)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,eR.xz)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eZ,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,eS.f)(e,e.attempt(eB,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},eH={tokenize:function(e,t,n){let r=this;return(0,eS.f)(e,function(e){let i=r.events[r.events.length-1];return!(0,eR.xz)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},eZ={tokenize:function(e,t,n){let r=this;return(0,eS.f)(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},eq={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,eR.xz)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,eR.xz)(t)?(0,eS.f)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(eq,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function e$(e,t,n,r,i,o,l,a,s){let u=s||Number.POSITIVE_INFINITY,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f):null===t||32===t||41===t||(0,eR.Av)(t)?n(t):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),p(t))};function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||(0,eR.Ch)(t)?n(t):(e.consume(t),92===t?h:d)}function h(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function p(i){return!c&&(null===i||41===i||(0,eR.z3)(i))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,p):41===i?(e.consume(i),c--,p):null===i||32===i||40===i||(0,eR.Av)(i)?n(i):(e.consume(i),92===i?g:p)}function g(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function eU(e,t,n,r,i,o){let l;let a=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(f){return s>999||null===f||91===f||93===f&&!l||94===f&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(0,eR.Ch)(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||(0,eR.Ch)(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),l||(l=!(0,eR.xz)(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function eG(e,t,n,r,i,o){let l;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),l=40===t?41:t,a):n(t)};function a(n){return n===l?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),s(n))}function s(t){return t===l?(e.exit(o),a(l)):null===t?n(t):(0,eR.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,eS.f)(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===l||null===t||(0,eR.Ch)(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===l||92===t?(e.consume(t),u):u(t)}}function eW(e,t){let n;return function r(i){return(0,eR.Ch)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,eR.xz)(i)?(0,eS.f)(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var eY=n(37681);let eX={tokenize:function(e,t,n){return function(t){return(0,eR.z3)(t)?eW(e,r)(t):n(t)};function r(t){return eG(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,eR.xz)(t)?(0,eS.f)(e,o,"whitespace")(t):o(t)}function o(e){return null===e||(0,eR.Ch)(e)?t(e):n(e)}},partial:!0},eK={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,eS.f)(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):(0,eR.Ch)(n)?e.attempt(eJ,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,eR.Ch)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},eJ={tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,eR.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,eS.f)(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):(0,eR.Ch)(e)?i(e):n(e)}},partial:!0},eQ={name:"setextUnderline",tokenize:function(e,t,n){let r;let i=this;return function(t){let l,a=i.events.length;for(;a--;)if("lineEnding"!==i.events[a][1].type&&"linePrefix"!==i.events[a][1].type&&"content"!==i.events[a][1].type){l="paragraph"===i.events[a][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||l)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,eR.xz)(n)?(0,eS.f)(e,o,"lineSuffix")(n):o(n))}(t)):n(t)};function o(r){return null===r||(0,eR.Ch)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let l={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",l,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=l,e.push(["exit",l,t]),e}},e0=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],e1=["pre","script","style","textarea"],e2={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(e_.w,t,n)}},partial:!0},e4={tokenize:function(e,t,n){let r=this;return function(t){return(0,eR.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},e5={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},e9={name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,o={tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};function l(t){return e.enter("codeFencedFence"),(0,eR.xz)(t)?(0,eS.f)(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=a?(e.exit("codeFencedFenceSequence"),(0,eR.xz)(i)?(0,eS.f)(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||(0,eR.Ch)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},l=0,a=0;return function(t){return function(t){let o=i.events[i.events.length-1];return l=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),(0,eR.xz)(i)?(0,eS.f)(e,s,"whitespace")(i):s(i))}(t)}(t)};function s(o){return null===o||(0,eR.Ch)(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(e5,c,p)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,eR.Ch)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):(0,eR.xz)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,eS.f)(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function u(t){return null===t||(0,eR.Ch)(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,eR.Ch)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(o,p,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d}function d(t){return l>0&&(0,eR.xz)(t)?(0,eS.f)(e,h,"linePrefix",l+1)(t):h(t)}function h(t){return null===t||(0,eR.Ch)(t)?e.check(e5,c,p)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,eR.Ch)(n)?(e.exit("codeFlowValue"),h(n)):(e.consume(n),t)}(t))}function p(n){return e.exit("codeFenced"),t(n)}},concrete:!0},e3=document.createElement("i");function e6(e){let t="&"+e+";";e3.innerHTML=t;let n=e3.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let e8={name:"characterReference",tokenize:function(e,t,n){let r,i;let o=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,i=eR.H$,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=eR.AF,u):(e.enter("characterReferenceValue"),r=7,i=eR.pY,u(t))}function u(a){if(59===a&&l){let r=e.exit("characterReferenceValue");return i!==eR.H$||e6(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&l++<r?(e.consume(a),u):n(a)}}},e7={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return(0,eR.sR)(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},te={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,eS.f)(e,t,"linePrefix")}}},tt={name:"labelEnd",tokenize:function(e,t,n){let r,i;let o=this,l=o.events.length;for(;l--;)if(("labelImage"===o.events[l][1].type||"labelLink"===o.events[l][1].type)&&!o.events[l][1]._balanced){r=o.events[l][1];break}return function(t){return r?r._inactive?c(t):(i=o.parser.defined.includes((0,eY.d)(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(tn,u,i?u:c)(t):91===t?e.attempt(tr,u,i?s:c)(t):i?u(t):c(t)}function s(t){return e.attempt(ti,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,o,l=e.length,a=0;for(;l--;)if(n=e[l][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[l][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[l][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=l,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=l);let s={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},c={type:"labelText",start:Object.assign({},e[r+a+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",s,t],["enter",u,t]],o=(0,eb.V)(o,e.slice(r+1,r+a+3)),o=(0,eb.V)(o,[["enter",c,t]]),o=(0,eb.V)(o,(0,eN.C)(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=(0,eb.V)(o,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),o=(0,eb.V)(o,e.slice(i+1)),o=(0,eb.V)(o,[["exit",s,t]]),(0,eb.d)(e,r,e.length,o),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){let n=e[t][1];("labelImage"===n.type||"labelLink"===n.type||"labelEnd"===n.type)&&(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},tn={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return(0,eR.z3)(t)?eW(e,i)(t):i(t)}function i(t){return 41===t?u(t):e$(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return(0,eR.z3)(t)?eW(e,a)(t):u(t)}function l(e){return n(e)}function a(t){return 34===t||39===t||40===t?eG(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return(0,eR.z3)(t)?eW(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},tr={tokenize:function(e,t,n){let r=this;return function(t){return eU.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes((0,eY.d)(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},ti={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},to={name:"labelStartImage",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:tt.resolveAll};var tl=n(27584);let ta={name:"attention",tokenize:function(e,t){let n;let r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=(0,tl.r)(i);return function(l){return n=l,e.enter("attentionSequence"),function l(a){if(a===n)return e.consume(a),l;let s=e.exit("attentionSequence"),u=(0,tl.r)(a),c=!u||2===u&&o||r.includes(a),f=!o||2===o&&u||r.includes(i);return s._open=!!(42===n?c:c&&(o||!f)),s._close=!!(42===n?f:f&&(u||!c)),t(a)}(l)}},resolveAll:function(e,t){let n,r,i,o,l,a,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let f=Object.assign({},e[n][1].end),d=Object.assign({},e[c][1].start);ts(f,-a),ts(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},l={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:d},i={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:a>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},l.end)},e[n][1].end=Object.assign({},o.start),e[c][1].start=Object.assign({},l.end),s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=(0,eb.V)(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=(0,eb.V)(s,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),s=(0,eb.V)(s,(0,eN.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=(0,eb.V)(s,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=(0,eb.V)(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,(0,eb.d)(e,n-1,c-n+3,s),c=n+s.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e}};function ts(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let tu={name:"labelStartLink",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:tt.resolveAll},tc={42:eB,43:eB,45:eB,48:eB,49:eB,50:eB,51:eB,52:eB,53:eB,54:eB,55:eB,56:eB,57:eB,62:eq},tf={91:{name:"definition",tokenize:function(e,t,n){let r;let i=this;return function(t){return e.enter("definition"),eU.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function o(t){return(r=(0,eY.d)(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l):n(t)}function l(t){return(0,eR.z3)(t)?eW(e,a)(t):a(t)}function a(t){return e$(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(eX,u,u)(t)}function u(t){return(0,eR.xz)(t)?(0,eS.f)(e,c,"whitespace")(t):c(t)}function c(o){return null===o||(0,eR.Ch)(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},td={[-2]:eK,[-1]:eK,32:eK},th={35:{name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||(0,eR.z3)(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||(0,eR.Ch)(r)?(e.exit("atxHeading"),t(r)):(0,eR.xz)(r)?(0,eS.f)(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||(0,eR.z3)(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(i)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},(0,eb.d)(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},42:eV,45:[eQ,eV],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,i,o,l,a;let s=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u};function u(l){return 33===l?(e.consume(l),c):47===l?(e.consume(l),i=!0,h):63===l?(e.consume(l),r=3,s.interrupt?t:I):(0,eR.jv)(l)?(e.consume(l),o=String.fromCharCode(l),p):n(l)}function c(i){return 45===i?(e.consume(i),r=2,f):91===i?(e.consume(i),r=5,l=0,d):(0,eR.jv)(i)?(e.consume(i),r=4,s.interrupt?t:I):n(i)}function f(r){return 45===r?(e.consume(r),s.interrupt?t:I):n(r)}function d(r){let i="CDATA[";return r===i.charCodeAt(l++)?(e.consume(r),l===i.length)?s.interrupt?t:S:d:n(r)}function h(t){return(0,eR.jv)(t)?(e.consume(t),o=String.fromCharCode(t),p):n(t)}function p(l){if(null===l||47===l||62===l||(0,eR.z3)(l)){let a=47===l,u=o.toLowerCase();return!a&&!i&&e1.includes(u)?(r=1,s.interrupt?t(l):S(l)):e0.includes(o.toLowerCase())?(r=6,a)?(e.consume(l),g):s.interrupt?t(l):S(l):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(l):i?function t(n){return(0,eR.xz)(n)?(e.consume(n),t):w(n)}(l):m(l))}return 45===l||(0,eR.H$)(l)?(e.consume(l),o+=String.fromCharCode(l),p):n(l)}function g(r){return 62===r?(e.consume(r),s.interrupt?t:S):n(r)}function m(t){return 47===t?(e.consume(t),w):58===t||95===t||(0,eR.jv)(t)?(e.consume(t),v):(0,eR.xz)(t)?(e.consume(t),m):w(t)}function v(t){return 45===t||46===t||58===t||95===t||(0,eR.H$)(t)?(e.consume(t),v):y(t)}function y(t){return 61===t?(e.consume(t),b):(0,eR.xz)(t)?(e.consume(t),y):m(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,x):(0,eR.xz)(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,eR.z3)(n)?y(n):(e.consume(n),t)}(t)}function x(t){return t===a?(e.consume(t),a=null,k):null===t||(0,eR.Ch)(t)?n(t):(e.consume(t),x)}function k(e){return 47===e||62===e||(0,eR.xz)(e)?m(e):n(e)}function w(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||(0,eR.Ch)(t)?S(t):(0,eR.xz)(t)?(e.consume(t),C):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),P):60===t&&1===r?(e.consume(t),_):62===t&&4===r?(e.consume(t),T):63===t&&3===r?(e.consume(t),I):93===t&&5===r?(e.consume(t),A):(0,eR.Ch)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(e2,F,R)(t)):null===t||(0,eR.Ch)(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),S)}function R(t){return e.check(e4,E,F)(t)}function E(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return null===t||(0,eR.Ch)(t)?R(t):(e.enter("htmlFlowData"),S(t))}function P(t){return 45===t?(e.consume(t),I):S(t)}function _(t){return 47===t?(e.consume(t),o="",O):S(t)}function O(t){if(62===t){let n=o.toLowerCase();return e1.includes(n)?(e.consume(t),T):S(t)}return(0,eR.jv)(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),O):S(t)}function A(t){return 93===t?(e.consume(t),I):S(t)}function I(t){return 62===t?(e.consume(t),T):45===t&&2===r?(e.consume(t),I):S(t)}function T(t){return null===t||(0,eR.Ch)(t)?(e.exit("htmlFlowData"),F(t)):(e.consume(t),T)}function F(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},61:eQ,95:eV,96:e9,126:e9},tp={38:e8,92:e7},tg={[-5]:te,[-4]:te,[-3]:te,33:to,38:e8,42:ta,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,eR.jv)(t)?(e.consume(t),o):64===t?n(t):a(t)}function o(t){return 43===t||45===t||46===t||(0,eR.H$)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,l):(43===n||45===n||46===n||(0,eR.H$)(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,eR.Av)(r)?n(r):(e.consume(r),l)}function a(t){return 64===t?(e.consume(t),s):(0,eR.n9)(t)?(e.consume(t),a):n(t)}function s(i){return(0,eR.H$)(i)?function i(o){return 46===o?(e.consume(o),r=0,s):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||(0,eR.H$)(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o;let l=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),x):63===t?(e.consume(t),y):(0,eR.jv)(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,h):(0,eR.jv)(t)?(e.consume(t),v):n(t)}function u(t){return 45===t?(e.consume(t),d):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),f):(0,eR.Ch)(t)?(o=c,O(t)):(e.consume(t),c)}function f(t){return 45===t?(e.consume(t),d):c(t)}function d(e){return 62===e?_(e):45===e?f(e):c(e)}function h(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?p:h):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),g):(0,eR.Ch)(t)?(o=p,O(t)):(e.consume(t),p)}function g(t){return 93===t?(e.consume(t),m):p(t)}function m(t){return 62===t?_(t):93===t?(e.consume(t),m):p(t)}function v(t){return null===t||62===t?_(t):(0,eR.Ch)(t)?(o=v,O(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):(0,eR.Ch)(t)?(o=y,O(t)):(e.consume(t),y)}function b(e){return 62===e?_(e):y(e)}function x(t){return(0,eR.jv)(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||(0,eR.H$)(t)?(e.consume(t),k):function t(n){return(0,eR.Ch)(n)?(o=t,O(n)):(0,eR.xz)(n)?(e.consume(n),t):_(n)}(t)}function w(t){return 45===t||(0,eR.H$)(t)?(e.consume(t),w):47===t||62===t||(0,eR.z3)(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),_):58===t||95===t||(0,eR.jv)(t)?(e.consume(t),S):(0,eR.Ch)(t)?(o=C,O(t)):(0,eR.xz)(t)?(e.consume(t),C):_(t)}function S(t){return 45===t||46===t||58===t||95===t||(0,eR.H$)(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),R):(0,eR.Ch)(n)?(o=t,O(n)):(0,eR.xz)(n)?(e.consume(n),t):C(n)}(t)}function R(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,E):(0,eR.Ch)(t)?(o=R,O(t)):(0,eR.xz)(t)?(e.consume(t),R):(e.consume(t),M)}function E(t){return t===r?(e.consume(t),r=void 0,P):null===t?n(t):(0,eR.Ch)(t)?(o=E,O(t)):(e.consume(t),E)}function M(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,eR.z3)(t)?C(t):(e.consume(t),M)}function P(e){return 47===e||62===e||(0,eR.z3)(e)?C(e):n(e)}function _(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return(0,eR.xz)(t)?(0,eS.f)(e,I,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):I(t)}function I(t){return e.enter("htmlTextData"),o(t)}}}],91:tu,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,eR.Ch)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},e7],93:tt,95:ta,96:{name:"codeText",tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),l(n))}(t)};function l(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),l):96===s?(i=e.enter("codeTextSequence"),r=0,function n(l){return 96===l?(e.consume(l),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(l)):(i.type="codeTextData",a(l))}(s)):(0,eR.Ch)(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||(0,eR.Ch)(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),a)}},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}},tm={null:[ta,eT]},tv={null:[42,95]},ty={null:[]},tb=/[\0\t\n\r]/g;function tx(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tw(e,t,n){if(t)return t;let r=n.charCodeAt(0);if(35===r){let e=n.charCodeAt(1),t=120===e||88===e;return tx(n.slice(t?2:1),t?16:10)}return e6(n)||e}let tC={}.hasOwnProperty;function tS(e){return{line:e.line,column:e.column,offset:e.offset}}function tR(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+X({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+X({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+X({start:t.start,end:t.end})+") is still open")}function tE(e){let t=this;t.parser=function(n){var r,o;let l,a,s,u;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(o=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(v),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(p),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(h),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(h,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(g),hardBreakTrailing:r(g),htmlFlow:r(m,i),htmlFlowData:u,htmlText:r(m,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(v),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(p),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:l(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:l(),autolinkEmail:function(e){c.call(this,e);let t=this.stack[this.stack.length-1];t.url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)},blockQuote:l(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:d,characterReferenceMarkerNumeric:d,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;if(r)t=tx(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0;else{let e=e6(n);t=e}let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){let t=this.stack.pop();t.position.end=tS(e.end)},codeFenced:l(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e},codeFencedFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e},codeFlowValue:c,codeIndented:l(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:l(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),codeTextData:c,data:c,definition:l(),definitionDestinationString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,eY.d)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e},emphasis:l(),hardBreakEscape:l(f),hardBreakTrailing:l(f),htmlFlow:l(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),htmlFlowData:c,htmlText:l(function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}),htmlTextData:c,image:l(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tk,tw),n.identifier=(0,eY.d)(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=tS(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:l(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,eY.d)(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e},resourceTitleString:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e},resource:function(){this.data.inReference=void 0},setextHeading:l(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){let t=this.stack[this.stack.length-1];t.depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:l(),thematicBreak:l()}};(function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tC.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}})(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},l={stack:[r],tokenStack:[],config:t,enter:o,exit:a,buffer:i,resume:s,data:n},u=[],c=-1;for(;++c<e.length;)if("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type){if("enter"===e[c][0])u.push(c);else{let t=u.pop();c=function(e,t,n){let r,i,o,l,a=t-1,s=-1,u=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,l=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||l||s||o||(o=a),l=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:l=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let l=a;for(i=void 0;l--;){let t=e[l];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=l}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,o=void 0,l=!0}}}return e[t][1]._spread=u,n}(e,t,c)}}for(c=-1;++c<e.length;){let n=t[e[c][0]];tC.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},l),e[c][1])}if(l.tokenStack.length>0){let e=l.tokenStack[l.tokenStack.length-1],t=e[1]||tR;t.call(l,void 0,e[0])}for(r.position={start:tS(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tS(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){let r=this.stack[this.stack.length-1],i=r.children;i.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:tS(t.start),end:void 0}}function l(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r){if(r[0].type!==e.type){if(t)t.call(this,e,r[0]);else{let t=r[1]||tR;t.call(this,e,r[0])}}}else throw Error("Cannot close `"+e.type+"` ("+X({start:e.start,end:e.end})+"): it’s not open");n.position.end=tS(e.end)}function s(){return(0,ey.B)(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1],n=t.children,r=n[n.length-1];r&&"text"===r.type||((r={type:"text",value:""}).position={start:tS(e.start),end:void 0},n.push(r)),this.stack.push(r)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tS(e.end)}function f(){this.data.atHardBreak=!0}function d(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function p(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function m(){return{type:"html",value:""}}function v(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(o)(function(e){for(;!ew(e););return e}((function(e){let t=(0,eC.W)([i,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:t,content:r(eE),document:r(eM),flow:r(eI),string:r(eF),text:r(eL)};return n;function r(e){return function(t){return function(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},o=[],l=[],a=[],s={consume:function(e){(0,eR.Ch)(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,m()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=d(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=d(),u.events.push(["exit",t,u]),t},attempt:p(function(e,t){g(e,t.from)}),check:p(h),interrupt:p(h,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:f,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let o;let l=e[r];if("string"==typeof l)o=l;else switch(l){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":" ";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(l)}n=-2===l,i.push(o)}return i.join("")}(f(e),t)},now:d,defineSkip:function(e){i[e.line]=e.column,m()},write:function(e){return(l=(0,eb.V)(l,e),function(){let e;for(;r._index<l.length;){var t;let n=l[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;)c=c(n.charCodeAt(r._bufferIndex));else c=c(n)}}(),null!==l[l.length-1])?[]:(g(t,0),u.events=(0,eN.C)(o,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function f(e){return function(e,t){let n;let r=t.start._index,i=t.start._bufferIndex,o=t.end._index,l=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,l)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}l>0&&n.push(e[o].slice(0,l))}return n}(l,e)}function d(){let{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function h(e,t){t.restore()}function p(e,t){return function(n,i,o){let l,c,f,h;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null,i=[...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]];return p(i)(e)};function p(e){return(l=e,c=0,0===e.length)?o:g(e[c])}function g(e){return function(n){return(h=function(){let e=d(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(a);return{restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,a=o,m()},from:i}}(),f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?y(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,v,y)(n)}}function v(t){return e(f,h),i}function y(e){return(h.restore(),++c<l.length)?g(l[c]):o}}}function g(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&(0,eb.d)(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function m(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(n,e,t)}}})(o).document().write((a=1,s="",u=!0,function(e,t,n){let r,i,o,c,f;let d=[];for(e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),o=0,s="",u&&(65279===e.charCodeAt(0)&&o++,u=void 0);o<e.length;){if(tb.lastIndex=o,c=(r=tb.exec(e))&&void 0!==r.index?r.index:e.length,f=e.charCodeAt(c),!r){s=e.slice(o);break}if(10===f&&o===c&&l)d.push(-3),l=void 0;else switch(l&&(d.push(-5),l=void 0),o<c&&(d.push(e.slice(o,c)),a+=c-o),f){case 0:d.push(65533),a++;break;case 9:for(i=4*Math.ceil(a/4),d.push(-2);a++<i;)d.push(-1);break;case 10:d.push(-4),a=1;break;default:l=!0,a=1}o=c+1}return n&&(l&&d.push(-5),s&&d.push(s),d.push(null)),d})(n,r,!0))))}}let tM="object"==typeof self?self:globalThis,tP=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[o,l]=t[i];switch(o){case 0:case -1:return n(l,i);case 1:{let e=n([],i);for(let t of l)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of l)e[r(t)]=r(n);return e}case 3:return n(new Date(l),i);case 4:{let{source:e,flags:t}=l;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of l)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of l)e.add(r(t));return e}case 7:{let{name:e,message:t}=l;return n(new tM[e](t),i)}case 8:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i)}return n(new tM[o](l),i)};return r},t_=e=>tP(new Map,e)(0),{toString:tO}={},{keys:tA}=Object,tI=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tO.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tT=([e,t])=>0===e&&("function"===t||"symbol"===t),tF=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[l,a]=tI(r);switch(l){case 0:{let t=r;switch(a){case"bigint":l=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+a);t=null;break;case"undefined":return i([-1],r)}return i([l,t],r)}case 1:{if(a)return i([a,[...r]],r);let e=[],t=i([l,e],r);for(let t of r)e.push(o(t));return t}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());let n=[],s=i([l,n],r);for(let t of tA(r))(e||!tT(tI(r[t])))&&n.push([o(t),o(r[t])]);return s}case 3:return i([l,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([l,{source:e,flags:t}],r)}case 5:{let t=[],n=i([l,t],r);for(let[n,i]of r)(e||!(tT(tI(n))||tT(tI(i))))&&t.push([o(n),o(i)]);return n}case 6:{let t=[],n=i([l,t],r);for(let n of r)(e||!tT(tI(n)))&&t.push(o(n));return n}}let{message:s}=r;return i([l,{name:a,message:s}],r)};return o},tL=(e,{json:t,lossy:n}={})=>{let r=[];return tF(!(t||n),!!t,new Map,r)(e),r};var tz="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?t_(tL(e,t)):structuredClone(e):(e,t)=>t_(tL(e,t));function tD(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),l="";if(37===o&&(0,eR.H$)(e.charCodeAt(n+1))&&(0,eR.H$)(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(l=String.fromCharCode(o,t),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tj(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tN(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var tV=n(56361);function tB(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let l=i[i.length-1];return l&&"text"===l.type?l.value+=r:i.push({type:"text",value:r}),i}function tH(e){let t=e.spread;return null==t?e.children.length>1:t}function tZ(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let tq={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=tD(i.toLowerCase()),l=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=l+1,a+=1,e.footnoteCounts.set(i,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tB(e,t);let i={src:tD(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:tD(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tB(e,t);let i={href:tD(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:tD(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=tH(n[r])}return t}(n):tH(t),o={},l=[];if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&l.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?l.push(e):l.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&l.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=W(t.children[1]),l=G(t.children[t.children.length-1]);o&&l&&(r.position={start:o,end:l}),i.push(r)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=r?r.indexOf(t):1,o=0===i?"th":"td",l=n&&"table"===n.type?n.align:void 0,a=l?l.length:t.children.length,s=-1,u=[];for(;++s<a;){let n=t.children[s],r={},i=l?l[s]:void 0;i&&(r.align=i);let a={type:"element",tagName:o,properties:r,children:[]};n&&(a.children=e.all(n),e.patch(n,a),a=e.applyData(n,a)),u.push(a)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];for(;r;)o.push(tZ(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(tZ(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:t$,yaml:t$,definition:t$,footnoteDefinition:t$};function t$(){}let tU={}.hasOwnProperty,tG={};function tW(e,t){e.position&&(t.position=function(e){let t=W(e),n=G(e);if(t&&n)return{start:t,end:n}}(e))}function tY(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;if("string"==typeof t){if("element"===n.type)n.tagName=t;else{let e="children"in n?n.children:[n];n={type:"element",tagName:t,properties:{},children:e}}}"element"===n.type&&i&&Object.assign(n.properties,tz(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function tX(e,t){let n=t.data||{},r="value"in t&&!(tU.call(n,"hProperties")||tU.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function tK(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function tJ(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function tQ(e,t){let n=function(e,t){let n=t||tG,r=new Map,i=new Map,o=new Map,l={...tq,...n.handlers},a={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=tJ(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=tJ(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:tY,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:function(e,t){let n=e.type,r=a.handlers[n];if(tU.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tz(n);return r.children=a.all(e),r}return tz(e)}let i=a.options.unknownHandler||tX;return i(a,e,t)},options:n,patch:tW,wrap:tK};return(0,tV.Vn)(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tj,r=e.options.footnoteBackLabel||tN,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],s=-1;for(;++s<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[s]);if(!i)continue;let o=e.all(i),l=String(i.identifier).toUpperCase(),u=tD(l.toLowerCase()),c=0,f=[],d=e.footnoteCounts.get(l);for(;void 0!==d&&++c<=d;){f.length>0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){let e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...f)}else o.push(...f);let p={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(i,p),a.push(p)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...tz(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&((0,o.ok)("children"in l),l.children.push({type:"text",value:"\n"},i)),l}function t0(e,t){return e&&"run"in e?async function(n,r){let i=tQ(n,{file:r,...t});await e.run(i,r)}:function(n,r){return tQ(n,{file:r,...t||e})}}function t1(e){if(e)throw e}var t2=n(66389);function t4(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let t5={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');t9(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let l=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else l<0&&(n=!0,l=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=l));return r===i?i=l:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(t9(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;t9(e);let n=e.length,r=-1,i=0,o=-1,l=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?o<0?o=n:1!==l&&(l=1):o>-1&&(l=-1)}return o<0||r<0||0===l||1===l&&o===r-1&&o===i+1?"":e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)t9(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){t9(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",o=0,l=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(l===s-1||1===a);else if(l!==s-1&&2===a){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),l=s,a=0;continue}}else if(i.length>0){i="",o=0,l=s,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(l+1,s):i=e.slice(l+1,s),o=s-l-1;l=s,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function t9(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let t3={cwd:function(){return"/"}};function t6(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let t8=["history","path","basename","stem","extname","dirname"];class t7{constructor(e){let t,n;t=e?t6(e)?{path:e}:"string"==typeof e||e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e?{value:e}:e:{},this.cwd="cwd"in t?"":t3.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<t8.length;){let e=t8[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)t8.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?t5.basename(this.path):void 0}set basename(e){nt(e,"basename"),ne(e,"basename"),this.path=t5.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?t5.dirname(this.path):void 0}set dirname(e){nn(this.basename,"dirname"),this.path=t5.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?t5.extname(this.path):void 0}set extname(e){if(ne(e,"extname"),nn(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=t5.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){t6(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!t6(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),nt(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?t5.basename(this.path,this.extname):void 0}set stem(e){nt(e,"stem"),ne(e,"stem"),this.path=t5.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new ee(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;let t=new TextDecoder(e||void 0);return t.decode(this.value)}}function ne(e,t){if(e&&e.includes(t5.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+t5.sep+"`")}function nt(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nn(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nr=function(e){let t=this.constructor,n=t.prototype,r=n[e],i=function(){return r.apply(i,arguments)};return Object.setPrototypeOf(i,n),i},ni={}.hasOwnProperty;class no extends nr{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);(function i(o,...l){let a=e[++n],s=-1;if(o){r(o);return}for(;++s<t.length;)(null===l[s]||void 0===l[s])&&(l[s]=t[s]);t=l,a?(function(e,t){let n;return function(...t){let o;let l=e.length>t.length;l&&t.push(r);try{o=e.apply(this,t)}catch(e){if(l&&n)throw e;return r(e)}l||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...l):r(null,...l)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new no,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(t2(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(nu("data",this.frozen),this.namespace[e]=t,this):ni.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nu("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let t=nd(e),n=this.parser||this.Parser;return na("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),na("process",this.parser||this.Parser),ns("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let l=nd(e),a=n.parse(l);function s(e,n){e||!n?i(e):r?r(n):((0,o.ok)(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(a,l,function(e,t,r){if(e||!t||!r)return s(e);let i=n.stringify(t,r);"string"==typeof i||i&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=i:r.result=i,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),na("processSync",this.parser||this.Parser),ns("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,t1(e),t=r}),nf("processSync","process",n),(0,o.ok)(t,"we either bailed on an error or have a tree"),t}run(e,t,n){nc(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,l){(0,o.ok)("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let a=nd(t);r.run(e,a,function(t,r,a){let s=r||e;t?l(t):i?i(s):((0,o.ok)(n,"`done` is defined if `resolve` is not"),n(void 0,s,a))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){t1(e),n=t,r=!0}),nf("runSync","run",r),(0,o.ok)(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=nd(t),r=this.compiler||this.Compiler;return ns("stringify",r),nc(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nu("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=t2(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){let n=e[t];!function(e){if("function"==typeof e)l(e,[]);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;l(t,n)}else i(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function l(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t,l=n[i][1];t4(l)&&t4(r)&&(r=t2(!0,l,r)),n[i]=[e,r,...o]}}}}let nl=new no().freeze();function na(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function ns(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nu(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nc(e){if(!t4(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nf(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nd(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new t7(e)}let nh=[],np={allowDangerousHtml:!0},ng=/^(https?|ircs?|mailto|xmpp)$/i,nm=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nv(e){let t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,l=e.components,a=e.disallowedElements,s=e.rehypePlugins||nh,u=e.remarkPlugins||nh,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...np}:np,f=e.skipHtml,d=e.unwrapDisallowed,h=e.urlTransform||ny,p=nl().use(tE).use(u).use(t0,c).use(s),g=new t7;for(let n of("string"==typeof r?g.value=r:(0,o.t1)("Unexpected value `"+r+"` for `children` prop, expected `string`"),t&&a&&(0,o.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),nm))Object.hasOwn(e,n.from)&&(0,o.t1)("Unexpected `"+n.from+"` prop, "+(n.to?"use `"+n.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+n.id+"> for more info)");let m=p.parse(g),v=p.runSync(m,g);return i&&(v={type:"element",tagName:"div",properties:{className:i},children:"root"===v.type?v.children:[v]}),(0,tV.Vn)(v,function(e,r,i){if("raw"===e.type&&i&&"number"==typeof r)return f?i.children.splice(r,1):i.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in em)if(Object.hasOwn(em,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=em[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=h(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&n&&"number"==typeof r&&(o=!n(e,r,i)),o&&i&&"number"==typeof r)return d&&e.children?i.children.splice(r,1,...e.children):i.children.splice(r,1),r}}),function(e,t){var n,r,i;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let l=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=t.jsxDEV,o=function(e,t,r,i){let o=Array.isArray(r.children),a=W(e);return n(t,r,i,o,{columnNumber:a?a.column-1:void 0,fileName:l,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,i=t.jsxs,o=function(e,t,n,o){let l=Array.isArray(n.children),a=l?i:r;return o?a(t,n,o):a(t,n)}}let a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?j:D,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=es(a,e,void 0);return s&&"string"!=typeof s?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}(v,{Fragment:ev.Fragment,components:l,ignoreInvalidStyle:!0,jsx:ev.jsx,jsxs:ev.jsxs,passKeys:!0,passNode:!0})}function ny(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||ng.test(e.slice(0,t))?e:""}},33352:function(e,t,n){"use strict";function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}n.d(t,{Z:function(){return eK}});var i=n(88144),o=n(80435),l=n(14452),a=n(25997);let s="phrasing",u=["autolink","link","image","label"];function c(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function f(e){this.config.enter.autolinkProtocol.call(this,e)}function d(e){this.config.exit.autolinkProtocol.call(this,e)}function h(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];(0,i.ok)("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function p(e){this.config.exit.autolinkEmail.call(this,e)}function g(e){this.exit(e)}function m(e){!function(e,t,n){let r=(0,a.O)((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),o=-1;for(;++o<i.length;)(0,l.S4)(e,"text",s);function s(e,t){let n,l=-1;for(;++l<t.length;){let e=t[l],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[o][0],l=i[o][1],a=0,s=n.children,u=s.indexOf(e),c=!1,f=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},o=l(...d,i);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(a!==n&&f.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(o)?f.push(...o):o&&f.push(o),a=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(a<e.value.length&&f.push({type:"text",value:e.value.slice(a)}),n.children.splice(u,1,...f)):f=[e],u+f.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,v],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,y]],{ignore:["link","linkReference"]})}function v(e,t,n,i,o){let l="";if(!b(o)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let a=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")"),o=r(e,"("),l=r(e,")");for(;-1!==i&&o>l;)e+=n.slice(0,i+1),i=(n=n.slice(i+1)).indexOf(")"),l++;return[e,n]}(n+i);if(!a[0])return!1;let s={type:"link",title:null,url:l+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function y(e,t,n,r){return!(!b(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function b(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,o.B8)(n)||(0,o.Xh)(n))&&(!t||47!==n)}var x=n(37681);function k(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function w(){this.buffer()}function C(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteDefinition"===n.type),n.label=t,n.identifier=(0,x.d)(this.sliceSerialize(e)).toLowerCase()}function S(e){this.exit(e)}function R(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function E(){this.buffer()}function M(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteReference"===n.type),n.label=t,n.identifier=(0,x.d)(this.sliceSerialize(e)).toLowerCase()}function P(e){this.exit(e)}function _(e,t,n,r){let i=n.createTracker(r),o=i.move("[^"),l=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),a(),l(),o+=i.move("]")}function O(e,t,n,r){let i=n.createTracker(r),o=i.move("[^"),l=n.enter("footnoteDefinition"),a=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),a(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),A)),l(),o}function A(e,t,n){return 0===t?e:(n?"":" ")+e}_.peek=function(){return"["};let I=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function T(e){this.enter({type:"delete",children:[]},e)}function F(e){this.exit(e)}function L(e,t,n,r){let i=n.createTracker(r),o=n.enter("strikethrough"),l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"})+i.move("~~"),o(),l}function z(e){return e.length}function D(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function j(e,t,n){return">"+(n?"":" ")+e}function N(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function V(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){var o,l;if("\n"===n.unsafe[i].character&&N(o=n.stack,(l=n.unsafe[i]).inConstruct,!0)&&!N(o,l.notInConstruct,!1))return/[ \t]/.test(r.before)?"":" "}return"\\\n"}function B(e,t,n){return(n?"":" ")+e}function H(e){let t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Z(e,t,n,r){let i=function(e){let t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),l=n.createTracker(r),a=l.move(i);return a+=l.move(n.containerPhrasing(e,{before:a,after:i,...l.current()}))+l.move(i),o(),a}L.peek=function(){return"~"},Z.peek=function(e,t,n){return n.options.emphasis||"*"};var q=n(56361),$=n(58345);function U(e){return e.value||""}function G(e,t,n,r){let i=H(n),o='"'===i?"Quote":"Apostrophe",l=n.enter("image"),a=n.enter("label"),s=n.createTracker(r),u=s.move("![");return u+=s.move(n.safe(e.alt,{before:u,after:"]",...s.current()}))+s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()}))+s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()}))+s.move(i),a()),u+=s.move(")"),l(),u}function W(e,t,n,r){let i=e.referenceType,o=n.enter("imageReference"),l=n.enter("label"),a=n.createTracker(r),s=a.move("!["),u=n.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),l();let c=n.stack;n.stack=[],l=n.enter("reference");let f=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return l(),n.stack=c,o(),"full"!==i&&u&&u===f?"shortcut"===i?s=s.slice(0,-1):s+=a.move("]"):s+=a.move(f+"]"),s}function Y(e,t,n){let r=e.value||"",i="`",o=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){let e;let t=n.unsafe[o],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}function X(e,t){let n=(0,$.B)(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function K(e,t,n,r){let i,o;let l=H(n),a='"'===l?"Quote":"Apostrophe",s=n.createTracker(r);if(X(e,n)){let t=n.stack;n.stack=[],i=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()}))+s.move(">"),i(),n.stack=t,r}i=n.enter("link"),o=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()}))+s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()}))+s.move(">")):(o=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=s.move(" "+l),u+=s.move(n.safe(e.title,{before:u,after:l,...s.current()}))+s.move(l),o()),u+=s.move(")"),i(),u}function J(e,t,n,r){let i=e.referenceType,o=n.enter("linkReference"),l=n.enter("label"),a=n.createTracker(r),s=a.move("["),u=n.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),l();let c=n.stack;n.stack=[],l=n.enter("reference");let f=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return l(),n.stack=c,o(),"full"!==i&&u&&u===f?"shortcut"===i?s=s.slice(0,-1):s+=a.move("]"):s+=a.move(f+"]"),s}function Q(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ee(e){let t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}U.peek=function(){return"<"},G.peek=function(){return"!"},W.peek=function(){return"!"},Y.peek=function(){return"`"},K.peek=function(e,t,n){return X(e,n)?"<":"["},J.peek=function(){return"["};let et=(0,a.O)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function en(e,t,n,r){let i=function(e){let t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),l=n.createTracker(r),a=l.move(i+i);return a+=l.move(n.containerPhrasing(e,{before:a,after:i,...l.current()}))+l.move(i+i),o(),a}en.peek=function(e,t,n){return n.options.strong||"*"};let er={blockquote:function(e,t,n,r){let i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);let l=n.indentLines(n.containerFlow(e,o.current()),j);return i(),l},break:V,code:function(e,t,n,r){let i=function(e){let t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",l="`"===i?"GraveAccent":"Tilde";if(!1===n.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value)){let e=n.enter("codeIndented"),t=n.indentLines(o,B);return e(),t}let a=n.createTracker(r),s=i.repeat(Math.max(function(e,t){let n=String(e),r=n.indexOf(t),i=r,o=0,l=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}(o,i)+1,3)),u=n.enter("codeFenced"),c=a.move(s);if(e.lang){let t=n.enter(`codeFencedLang${l}`);c+=a.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${l}`);c+=a.move(" "),c+=a.move(n.safe(e.meta,{before:c,after:"\n",encode:["`"],...a.current()})),t()}return c+=a.move("\n"),o&&(c+=a.move(o+"\n")),c+=a.move(s),u(),c},definition:function(e,t,n,r){let i=H(n),o='"'===i?"Quote":"Apostrophe",l=n.enter("definition"),a=n.enter("label"),s=n.createTracker(r),u=s.move("[");return u+=s.move(n.safe(n.associationId(e),{before:u,after:"]",...s.current()}))+s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()}))+s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...s.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()}))+s.move(i),a()),l(),u},emphasis:Z,hardBreak:V,heading:function(e,t,n,r){let i;let o=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(i=!1,(0,q.Vn)(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return i=!0,l.BK}),(!e.depth||e.depth<3)&&(0,$.B)(e)&&(n.options.setext||i)){let t=n.enter("headingSetext"),r=n.enter("phrasing"),i=n.containerPhrasing(e,{...a.current(),before:"\n",after:"\n"});return r(),t(),i+"\n"+(1===o?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}let s="#".repeat(o),u=n.enter("headingAtx"),c=n.enter("phrasing");a.move(s+" ");let f=n.containerPhrasing(e,{before:"# ",after:"\n",...a.current()});return/^[\t ]/.test(f)&&(f="&#x"+f.charCodeAt(0).toString(16).toUpperCase()+";"+f.slice(1)),f=f?s+" "+f:s,n.options.closeAtx&&(f+=" "+s),c(),u(),f},html:U,image:G,imageReference:W,inlineCode:Y,link:K,linkReference:J,list:function(e,t,n,r){let i=n.enter("list"),o=n.bulletCurrent,l=e.ordered?function(e){let t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Q(n),a=e.ordered?"."===l?")":".":function(e){let t=Q(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n),s=!!t&&!!n.bulletLastUsed&&l===n.bulletLastUsed;if(!e.ordered){let t=e.children?e.children[0]:void 0;if("*"!==l&&"-"!==l||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(s=!0),ee(n)===l&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){s=!0;break}}}}s&&(l=a),n.bulletCurrent=l;let u=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),u},listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),o=n.bulletCurrent||Q(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let l=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(l=4*Math.ceil(l/4));let a=n.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);let s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){return t?(n?"":" ".repeat(l))+e:(n?o:o+" ".repeat(l-o.length))+e});return s(),u},paragraph:function(e,t,n,r){let i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l},root:function(e,t,n,r){let i=e.children.some(function(e){return et(e)}),o=i?n.containerPhrasing:n.containerFlow;return o.call(n,e,r)},strong:en,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){let r=(ee(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function ei(e){let t=e._align;(0,i.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function eo(e){this.exit(e),this.data.inTable=void 0}function el(e){this.enter({type:"tableRow",children:[]},e)}function ea(e){this.exit(e)}function es(e){this.enter({type:"tableCell",children:[]},e)}function eu(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ec));let n=this.stack[this.stack.length-1];(0,i.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function ec(e,t){return"|"===t?t:e}function ef(e){let t=this.stack[this.stack.length-2];(0,i.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function ed(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];(0,i.ok)("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r;let i=t.children,o=-1;for(;++o<i.length;){let e=i[o];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function eh(e,t,n,r){let i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,l="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(l);let s=er.listItem(e,t,n,{...r,...a.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+l})),s}var ep=n(14850);let eg={tokenize:function(e,t,n){let r=0;return function t(o){return(87===o||119===o)&&r<3?(r++,e.consume(o),t):46===o&&3===r?(e.consume(o),i):n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},em={tokenize:function(e,t,n){let r,i,l;return a;function a(t){return 46===t||95===t?e.check(ey,u,s)(t):null===t||(0,o.z3)(t)||(0,o.B8)(t)||45!==t&&(0,o.Xh)(t)?u(t):(l=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function u(e){return i||r||!l?n(e):t(e)}},partial:!0},ev={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r<n?l(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(ey,t,l)(a):null===a||(0,o.z3)(a)||(0,o.B8)(a)?t(a):(e.consume(a),i)}function l(t){return 41===t&&r++,e.consume(t),i}},partial:!0},ey={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),l):93===a?(e.consume(a),i):60===a||null===a||(0,o.z3)(a)||(0,o.B8)(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||(0,o.z3)(e)||(0,o.B8)(e)?t(e):r(e)}function l(t){return(0,o.jv)(t)?function t(i){return 59===i?(e.consume(i),r):(0,o.jv)(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},eb={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return(0,o.H$)(e)?n(e):t(e)}},partial:!0},ex={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!eR.call(r,r.previous)||e_(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(eg,e.attempt(em,e.attempt(ev,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:eR},ek={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",l=!1;return function(t){return(72===t||104===t)&&eE.call(r,r.previous)&&!e_(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a):n(t)};function a(t){if((0,o.jv)(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),l)?u:(l=!0,s):n(t)}function u(t){return null===t||(0,o.Av)(t)||(0,o.z3)(t)||(0,o.B8)(t)||(0,o.Xh)(t)?n(t):e.attempt(em,e.attempt(ev,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:eE},ew={name:"emailAutolink",tokenize:function(e,t,n){let r,i;let l=this;return function(t){return!eP(t)||!eM.call(l,l.previous)||e_(l.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return eP(r)?(e.consume(r),t):64===r?(e.consume(r),a):n(r)}(t))};function a(t){return 46===t?e.check(eb,u,s)(t):45===t||95===t||(0,o.H$)(t)?(i=!0,e.consume(t),a):u(t)}function s(t){return e.consume(t),r=!0,a}function u(a){return i&&r&&(0,o.jv)(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:eM},eC={},eS=48;for(;eS<123;)eC[eS]=ew,58==++eS?eS=65:91===eS&&(eS=97);function eR(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||(0,o.z3)(e)}function eE(e){return!(0,o.jv)(e)}function eM(e){return!(47===e||eP(e))}function eP(e){return 43===e||45===e||46===e||95===e||(0,o.H$)(e)}function e_(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}eC[43]=ew,eC[45]=ew,eC[46]=ew,eC[95]=ew,eC[72]=[ew,ek],eC[104]=[ew,ek],eC[87]=[ew,ex],eC[119]=[ew,ex];var eO=n(6333),eA=n(88785);let eI={tokenize:function(e,t,n){let r=this;return(0,eA.f)(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function eT(e,t,n){let r;let i=this,o=i.events.length,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;o--;){let e=i.events[o][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!r||!r._balanced)return n(o);let a=(0,x.d)(i.sliceSerialize({start:r.end,end:i.now()}));return 94===a.codePointAt(0)&&l.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function eF(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function eL(e,t,n){let r;let i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(s){if(a>999||93===s&&!r||null===s||91===s||(0,o.z3)(s))return n(s);if(93===s){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return l.includes((0,x.d)(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return(0,o.z3)(s)||(r=!0),a++,e.consume(s),92===s?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}}function ez(e,t,n){let r,i;let l=this,a=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||(0,o.z3)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,x.d)(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return(0,o.z3)(t)||(i=!0),s++,e.consume(t),92===t?f:c}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(r)||a.push(r),(0,eA.f)(e,h,"gfmFootnoteDefinitionWhitespace")):n(t)}function h(e){return t(e)}}function eD(e,t,n){return e.check(eO.w,t,e.attempt(eI,t,n))}function ej(e){e.exit("gfmFootnoteDefinition")}var eN=n(40147),eV=n(27584),eB=n(60441);class eH{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function eZ(e,t,n){let r;let i=this,l=0,a=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,o="tableHead"===r||"tableRow"===r?b:s;return o===b&&i.parser.lazy[i.now().line]?n(e):o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,a+=1),u(t)}function u(t){return null===t?n(t):(0,o.Ch)(t)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):(0,o.xz)(t)?(0,eA.f)(e,u,"whitespace")(t):(a+=1,r&&(r=!1,l+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,u):(e.enter("data"),c(t))}function c(t){return null===t||124===t||(0,o.z3)(t)?(e.exit("data"),u(t)):(e.consume(t),92===t?f:c)}function f(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,o.xz)(t))?(0,eA.f)(e,h,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t)}function h(t){return 45===t||58===t?g(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return(0,o.xz)(t)?(0,eA.f)(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||(0,o.Ch)(t)?y(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(n))}(t)):n(t)}function v(t){return(0,o.xz)(t)?(0,eA.f)(e,y,"whitespace")(t):y(t)}function y(i){return 124===i?h(i):null===i||(0,o.Ch)(i)?r&&l===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i):n(i)}function b(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||(0,o.Ch)(n)?(e.exit("tableRow"),t(n)):(0,o.xz)(n)?(0,eA.f)(e,x,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||(0,o.z3)(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?w:k)}function w(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function eq(e,t){let n,r,i,o=-1,l=!0,a=0,s=[0,0,0,0],u=[0,0,0,0],c=!1,f=0,d=new eH;for(;++o<e.length;){let h=e[o],p=h[1];"enter"===h[0]?"tableHead"===p.type?(c=!1,0!==f&&(eU(d,t,f,n,r),r=void 0,f=0),n={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},d.add(o,0,[["enter",n,t]])):"tableRow"===p.type||"tableDelimiterRow"===p.type?(l=!0,i=void 0,s=[0,0,0,0],u=[0,o+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},d.add(o,0,[["enter",r,t]])),a="tableDelimiterRow"===p.type?2:r?3:1):a&&("data"===p.type||"tableDelimiterMarker"===p.type||"tableDelimiterFiller"===p.type)?(l=!1,0===u[2]&&(0!==s[1]&&(u[0]=u[1],i=e$(d,t,s,a,void 0,i),s=[0,0,0,0]),u[2]=o)):"tableCellDivider"===p.type&&(l?l=!1:(0!==s[1]&&(u[0]=u[1],i=e$(d,t,s,a,void 0,i)),u=[(s=u)[1],o,0,0])):"tableHead"===p.type?(c=!0,f=o):"tableRow"===p.type||"tableDelimiterRow"===p.type?(f=o,0!==s[1]?(u[0]=u[1],i=e$(d,t,s,a,o,i)):0!==u[1]&&(i=e$(d,t,u,a,o,i)),a=0):a&&("data"===p.type||"tableDelimiterMarker"===p.type||"tableDelimiterFiller"===p.type)&&(u[3]=o)}for(0!==f&&eU(d,t,f,n,r),d.consume(t.events),o=-1;++o<t.events.length;){let e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,o))}return e}function e$(e,t,n,r,i,o){0!==n[0]&&(o.end=Object.assign({},eG(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));let l=eG(t.events,n[1]);if(o={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){let i=eG(t.events,n[2]),o=eG(t.events,n[3]),l={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",l,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",l,t]])}return void 0!==i&&(o.end=Object.assign({},eG(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function eU(e,t,n,r,i){let o=[],l=eG(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function eG(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let eW={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return(0,o.z3)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return(0,o.Ch)(r)?t(r):(0,o.xz)(r)?e.check({tokenize:eY},t,n)(r):n(r)}}};function eY(e,t,n){return(0,eA.f)(e,function(e){return null===e?n(e):t(e)},"whitespace")}let eX={};function eK(e){let t=e||eX,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push((0,ep.W)([{text:eC},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ez,continuation:{tokenize:eD},exit:ej}},text:{91:{name:"gfmFootnoteCall",tokenize:eL},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:eT,resolveTo:eF}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,o=this.events,l=0;return function(a){return 126===i&&"characterEscape"!==o[o.length-1][1].type?r(a):(e.enter("strikethroughSequenceTemporary"),function o(a){let s=(0,eV.r)(i);if(126===a)return l>1?r(a):(e.consume(a),l++,o);if(l<2&&!t)return r(a);let u=e.exit("strikethroughSequenceTemporary"),c=(0,eV.r)(a);return u._open=!c||2===c&&!!s,u._close=!s||2===s&&!!c,n(a)}(a))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},l=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],a=t.parser.constructs.insideSpan.null;a&&(0,eN.d)(l,l.length,0,(0,eB.C)(a,e.slice(r+1,n),t)),(0,eN.d)(l,l.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,eN.d)(e,r-1,n-r+3,l),n=r+l.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(t),{flow:{null:{name:"table",tokenize:eZ,resolveAll:eq}}},{text:{91:eW}}])),i.push([{transforms:[m],enter:{literalAutolink:c,literalAutolinkEmail:f,literalAutolinkHttp:f,literalAutolinkWww:f},exit:{literalAutolink:g,literalAutolinkEmail:p,literalAutolinkHttp:d,literalAutolinkWww:h}},{enter:{gfmFootnoteDefinition:k,gfmFootnoteDefinitionLabelString:w,gfmFootnoteCall:R,gfmFootnoteCallString:E},exit:{gfmFootnoteDefinition:S,gfmFootnoteDefinitionLabelString:C,gfmFootnoteCall:P,gfmFootnoteCallString:M}},{canContainEols:["delete"],enter:{strikethrough:T},exit:{strikethrough:F}},{enter:{table:ei,tableData:es,tableHeader:es,tableRow:el},exit:{codeText:eu,table:eo,tableData:ea,tableHeader:ea,tableRow:ea}},{exit:{taskListCheckValueChecked:ef,taskListCheckValueUnchecked:ef,paragraph:ed}}]),o.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:s,notInConstruct:u},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:s,notInConstruct:u},{character:":",before:"[ps]",after:"\\/",inConstruct:s,notInConstruct:u}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:O,footnoteReference:_}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:I}],handlers:{delete:L}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=er.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return a(function(e,t,n){let r=e.children,i=-1,o=[],l=t.enter("table");for(;++i<r.length;)o[i]=s(r[i],t,n);return l(),o}(e,n,r),e.align)},tableCell:l,tableRow:function(e,t,n,r){let i=s(e,n,r),o=a([i]);return o.slice(0,o.indexOf("\n"))}}};function l(e,t,n,r){let i=n.enter("tableCell"),l=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:o,after:o});return l(),i(),a}function a(e,t){return function(e,t={}){let n=(t.align||[]).concat(),r=t.stringLength||z,i=[],o=[],l=[],a=[],s=0,u=-1;for(;++u<e.length;){let n=[],i=[],f=-1;for(e[u].length>s&&(s=e[u].length);++f<e[u].length;){var c;let o=null==(c=e[u][f])?"":String(c);if(!1!==t.alignDelimiters){let e=r(o);i[f]=e,(void 0===a[f]||e>a[f])&&(a[f]=e)}n.push(o)}o[u]=n,l[u]=i}let f=-1;if("object"==typeof n&&"length"in n)for(;++f<s;)i[f]=D(n[f]);else{let e=D(n);for(;++f<s;)i[f]=e}f=-1;let d=[],h=[];for(;++f<s;){let e=i[f],n="",r="";99===e?(n=":",r=":"):108===e?n=":":114===e&&(r=":");let o=!1===t.alignDelimiters?1:Math.max(1,a[f]-n.length-r.length),l=n+"-".repeat(o)+r;!1!==t.alignDelimiters&&((o=n.length+o+r.length)>a[f]&&(a[f]=o),h[f]=o),d[f]=l}o.splice(1,0,d),l.splice(1,0,h),u=-1;let p=[];for(;++u<o.length;){let e=o[u],n=l[u];f=-1;let r=[];for(;++f<s;){let o=e[f]||"",l="",u="";if(!1!==t.alignDelimiters){let e=a[f]-(n[f]||0),t=i[f];114===t?l=" ".repeat(e):99===t?e%2?(l=" ".repeat(e/2+.5),u=" ".repeat(e/2-.5)):u=l=" ".repeat(e/2):u=" ".repeat(e)}!1===t.delimiterStart||f||r.push("|"),!1!==t.padding&&!(!1===t.alignDelimiters&&""===o)&&(!1!==t.delimiterStart||f)&&r.push(" "),!1!==t.alignDelimiters&&r.push(l),r.push(o),!1!==t.alignDelimiters&&r.push(u),!1!==t.padding&&r.push(" "),(!1!==t.delimiterEnd||f!==s-1)&&r.push("|")}p.push(!1===t.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return p.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function s(e,t,n){let r=e.children,i=-1,o=[],a=t.enter("tableRow");for(;++i<r.length;)o[i]=l(r[i],e,t,n);return a(),o}}(t),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:eh}}]})}},10804:function(e,t,n){"use strict";let r,i;n.d(t,{io:function(){return ew}});var o,l,a={};n.r(a),n.d(a,{Decoder:function(){return ep},Encoder:function(){return ed},PacketType:function(){return l},protocol:function(){return ef}});let s=Object.create(null);s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";let u=Object.create(null);Object.keys(s).forEach(e=>{u[s[e]]=e});let c={type:"error",data:"parser error"},f="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),d="function"==typeof ArrayBuffer,h=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,p=({type:e,data:t},n,r)=>f&&t instanceof Blob?n?r(t):g(t,r):d&&(t instanceof ArrayBuffer||h(t))?n?r(t):g(new Blob([t]),r):r(s[e]+(t||"")),g=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function m(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<v.length;e++)y[v.charCodeAt(e)]=e;let b=e=>{let t=.75*e.length,n=e.length,r,i=0,o,l,a,s;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r<n;r+=4)o=y[e.charCodeAt(r)],l=y[e.charCodeAt(r+1)],a=y[e.charCodeAt(r+2)],s=y[e.charCodeAt(r+3)],c[i++]=o<<2|l>>4,c[i++]=(15&l)<<4|a>>2,c[i++]=(3&a)<<6|63&s;return u},x="function"==typeof ArrayBuffer,k=(e,t)=>{if("string"!=typeof e)return{type:"message",data:C(e,t)};let n=e.charAt(0);if("b"===n)return{type:"message",data:w(e.substring(1),t)};let r=u[n];return r?e.length>1?{type:u[n],data:e.substring(1)}:{type:u[n]}:c},w=(e,t)=>{if(!x)return{base64:!0,data:e};{let n=b(e);return C(n,t)}},C=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,S=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,o)=>{p(e,!1,e=>{r[o]=e,++i===n&&t(r.join("\x1e"))})})},R=(e,t)=>{let n=e.split("\x1e"),r=[];for(let e=0;e<n.length;e++){let i=k(n[e],t);if(r.push(i),"error"===i.type)break}return r};function E(e){return e.reduce((e,t)=>e+t.length,0)}function M(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function P(e){if(e)return function(e){for(var t in P.prototype)e[t]=P.prototype[t];return e}(e)}P.prototype.on=P.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},P.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},P.prototype.off=P.prototype.removeListener=P.prototype.removeAllListeners=P.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},P.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},P.prototype.emitReserved=P.prototype.emit,P.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},P.prototype.hasListeners=function(e){return!!this.listeners(e).length};let _="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function O(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}let A=_.setTimeout,I=_.clearTimeout;function T(e,t){t.useNativeTimers?(e.setTimeoutFn=A.bind(_),e.clearTimeoutFn=I.bind(_)):(e.setTimeoutFn=_.setTimeout.bind(_),e.clearTimeoutFn=_.clearTimeout.bind(_))}class F extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class L extends P{constructor(e){super(),this.writable=!1,T(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new F(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=k(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}let z="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),D={},j=0,N=0,V;function B(e){let t="";do t=z[e%64]+t,e=Math.floor(e/64);while(e>0);return t}function H(){let e=B(+new Date);return e!==V?(j=0,V=e):e+"."+B(j++)}for(;N<64;N++)D[z[N]]=N;let Z=!1;try{Z="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let q=Z;function $(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||q))return new XMLHttpRequest}catch(e){}if(!t)try{return new _[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}function U(){}let G=function(){let e=new $({xdomain:!1});return null!=e.responseType}();class W extends P{constructor(e,t){super(),T(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;let t=O(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;let n=this.xhr=new $(t);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders)for(let e in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this.opts.extraHeaders[e])}catch(e){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof n.status?n.status:0)},0))},n.send(this.data)}catch(e){this.setTimeoutFn(()=>{this.onError(e)},0);return}"undefined"!=typeof document&&(this.index=W.requestsCount++,W.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=U,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete W.requests[this.index],this.xhr=null}}onLoad(){let e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(W.requestsCount=0,W.requests={},"undefined"!=typeof document){if("function"==typeof attachEvent)attachEvent("onunload",Y);else if("function"==typeof addEventListener){let e="onpagehide"in _?"pagehide":"unload";addEventListener(e,Y,!1)}}function Y(){for(let e in W.requests)W.requests.hasOwnProperty(e)&&W.requests[e].abort()}let X=(()=>{let e="function"==typeof Promise&&"function"==typeof Promise.resolve;return e?e=>Promise.resolve().then(e):(e,t)=>t(e,0)})(),K=_.WebSocket||_.MozWebSocket;n(20631).lW;let J="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),Q={websocket:class extends L{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;let e=this.uri(),t=this.opts.protocols,n=J?{}:O(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=J?new K(e,t,n):t?new K(e,t):new K(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;p(n,this.supportsBinary,e=>{try{this.ws.send(e)}catch(e){}r&&X(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=H()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!K}},webtransport:class extends L{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{let t=function(e,t){i||(i=new TextDecoder);let n=[],r=0,o=-1,l=!1;return new TransformStream({transform(a,s){for(n.push(a);;){if(0===r){if(1>E(n))break;let e=M(n,1);l=(128&e[0])==128,r=(o=127&e[0])<126?3:126===o?1:2}else if(1===r){if(2>E(n))break;let e=M(n,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(8>E(n))break;let e=M(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>2097151){s.enqueue(c);break}o=4294967296*i+t.getUint32(4),r=3}else{if(E(n)<o)break;let e=M(n,o);s.enqueue(k(l?e:i.decode(e),t)),r=0}if(0===o||o>e){s.enqueue(c);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),o=new TransformStream({transform(e,t){var n;n=n=>{let r;let i=n.length;if(i<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,i);else if(i<65536){r=new Uint8Array(3);let e=new DataView(r.buffer);e.setUint8(0,126),e.setUint16(1,i)}else{r=new Uint8Array(9);let e=new DataView(r.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!=typeof e.data&&(r[0]|=128),t.enqueue(r),t.enqueue(n)},f&&e.data instanceof Blob?e.data.arrayBuffer().then(m).then(n):d&&(e.data instanceof ArrayBuffer||h(e.data))?n(m(e.data)):p(e,!1,e=>{r||(r=new TextEncoder),n(r.encode(e))})}});o.readable.pipeTo(e.writable),this.writer=o.writable.getWriter();let l=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),l())}).catch(e=>{})};l();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this.writer.write(a).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this.writer.write(n).then(()=>{r&&X(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends L{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){let t="https:"===location.protocol,n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}let t=e&&e.forceBase64;this.supportsBinary=G&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){R(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,S(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=H()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new W(this.uri(),e)}doWrite(e,t){let n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}},ee=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,et=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function en(e){if(e.length>2e3)throw"URI too long";let t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=ee.exec(e||""),o={},l=14;for(;l--;)o[et[l]]=i[l]||"";return -1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){let n=t.replace(/\/{2,9}/g,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}(0,o.path),o.queryKey=function(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}(0,o.query),o}class er extends P{constructor(e,t={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=en(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=en(t.host).host),T(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new Q[e](n)}open(){let e;if(this.opts.rememberUpgrade&&er.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else if(0===this.transports.length){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch(e){this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(e){let t=this.createTransport(e),n=!1;er.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!n){if("pong"===e.type&&"probe"===e.data)this.upgrading=!0,this.emitReserved("upgrading",t),t&&(er.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{n||"closed"===this.readyState||(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}));else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}}))};function i(){n||(n=!0,u(),t.close(),t=null)}let o=e=>{let n=Error("probe error: "+e);n.transport=t.name,i(),this.emitReserved("upgradeError",n)};function l(){o("transport closed")}function a(){o("socket closed")}function s(e){t&&e.name!==t.name&&i()}let u=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",l),this.off("close",a),this.off("upgrading",s)};t.once("open",r),t.once("error",o),t.once("close",l),this.once("close",a),this.once("upgrading",s),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onOpen(){if(this.readyState="open",er.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0,t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":let t=Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){let e=this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1;if(!e)return this.writeBuffer;let t=1;for(let e=0;e<this.writeBuffer.length;e++){let n=this.writeBuffer[e].data;if(n&&(t+="string"==typeof n?function(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)(t=e.charCodeAt(r))<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(n):Math.ceil(1.33*(n.byteLength||n.size))),e>0&&t>this.maxPayload)return this.writeBuffer.slice(0,e);t+=2}return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){let e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}onError(e){er.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){let t=[],n=0,r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}er.protocol=4,er.protocol;let ei="function"==typeof ArrayBuffer,eo=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,el=Object.prototype.toString,ea="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===el.call(Blob),es="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===el.call(File);function eu(e){return ei&&(e instanceof ArrayBuffer||eo(e))||ea&&e instanceof Blob||es&&e instanceof File}let ec=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ef=5;(o=l||(l={}))[o.CONNECT=0]="CONNECT",o[o.DISCONNECT=1]="DISCONNECT",o[o.EVENT=2]="EVENT",o[o.ACK=3]="ACK",o[o.CONNECT_ERROR=4]="CONNECT_ERROR",o[o.BINARY_EVENT=5]="BINARY_EVENT",o[o.BINARY_ACK=6]="BINARY_ACK";class ed{constructor(e){this.replacer=e}encode(e){return(e.type===l.EVENT||e.type===l.ACK)&&function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(e(t[n]))return!0;return!1}if(eu(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1==arguments.length)return e(t.toJSON(),!0);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return!0;return!1}(e)?this.encodeAsBinary({type:e.type===l.EVENT?l.BINARY_EVENT:l.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===l.BINARY_EVENT||e.type===l.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=function(e){let t=[],n=e.data;return e.data=function e(t,n){if(!t)return t;if(eu(t)){let e={_placeholder:!0,num:n.length};return n.push(t),e}if(Array.isArray(t)){let r=Array(t.length);for(let i=0;i<t.length;i++)r[i]=e(t[i],n);return r}if("object"==typeof t&&!(t instanceof Date)){let r={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e(t[i],n));return r}return t}(n,t),e.attachments=t.length,{packet:e,buffers:t}}(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function eh(e){return"[object Object]"===Object.prototype.toString.call(e)}class ep extends P{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);let n=t.type===l.BINARY_EVENT;n||t.type===l.BINARY_ACK?(t.type=n?l.EVENT:l.ACK,this.reconstructor=new eg(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(eu(e)||e.base64){if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet")}else throw Error("Unknown type: "+e)}decodeString(e){let t=0,n={type:Number(e.charAt(0))};if(void 0===l[n.type])throw Error("unknown packet type "+n.type);if(n.type===l.BINARY_EVENT||n.type===l.BINARY_ACK){let r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(r,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");n.attachments=Number(i)}if("/"===e.charAt(t+1)){let r=t+1;for(;++t;){let n=e.charAt(t);if(","===n||t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";let r=e.charAt(t+1);if(""!==r&&Number(r)==r){let r=t+1;for(;++t;){let n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){let r=this.tryParse(e.substr(t));if(ep.isPayloadValid(n.type,r))n.data=r;else throw Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case l.CONNECT:return eh(t);case l.DISCONNECT:return void 0===t;case l.CONNECT_ERROR:return"string"==typeof t||eh(t);case l.EVENT:case l.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===ec.indexOf(t[0]));case l.ACK:case l.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class eg{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t,n;let e=(t=this.reconPack,n=this.buffers,t.data=function e(t,n){if(!t)return t;if(t&&!0===t._placeholder){let e="number"==typeof t.num&&t.num>=0&&t.num<n.length;if(e)return n[t.num];throw Error("illegal attachments")}if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=e(t[r],n);else if("object"==typeof t)for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=e(t[r],n));return t}(t.data,n),delete t.attachments,t);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function em(e,t,n){return e.on(t,n),function(){e.off(t,n)}}let ev=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ey extends P{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[em(e,"open",this.onopen.bind(this)),em(e,"packet",this.onpacket.bind(this)),em(e,"error",this.onerror.bind(this)),em(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(ev.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:l.EVENT,data:t};if(n.options={},n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable,i=this.flags.volatile&&(!r||!this.connected);return i||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var n;let r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},r),o=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((n,r)=>{let i=(e,t)=>e?r(e):n(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>{if(n!==this._queue[0])return;let i=null!==e;return i?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()}),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:l.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{let t=this.sendBuffer.some(t=>String(t.id)===e);if(!t){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){let t=e.nsp===this.nsp;if(t)switch(e.type){case l.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case l.EVENT:case l.BINARY_EVENT:this.onevent(e);break;case l.ACK:case l.BINARY_ACK:this.onack(e);break;case l.DISCONNECT:this.ondisconnect();break;case l.CONNECT_ERROR:this.destroy();let n=Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:l.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:l.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n]){t.splice(n,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n]){t.splice(n,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let n of t)n.apply(this,e.data)}}}function eb(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}eb.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-n:e+n}return 0|Math.min(e,this.max)},eb.prototype.reset=function(){this.attempts=0},eb.prototype.setMin=function(e){this.ms=e},eb.prototype.setMax=function(e){this.max=e},eb.prototype.setJitter=function(e){this.jitter=e};class ex extends P{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,T(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new eb({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;let r=t.parser||a;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new er(this.uri,this.opts);let t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let r=em(t,"open",function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=em(t,"error",i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(em(e,"ping",this.onping.bind(this)),em(e,"data",this.ondata.bind(this)),em(e,"error",this.onerror.bind(this)),em(e,"close",this.onclose.bind(this)),em(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){X(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new ey(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let e of t){let t=this.nsps[e];if(t.active)return}this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{!e.skipReconnect&&(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let ek={};function ew(e,t){let n;"object"==typeof e&&(t=e,e=void 0),t=t||{};let r=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=en(e)),!r.port&&(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let i=-1!==r.host.indexOf(":"),o=i?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}(e,t.path||"/socket.io"),i=r.source,o=r.id,l=r.path,a=ek[o]&&l in ek[o].nsps,s=t.forceNew||t["force new connection"]||!1===t.multiplex||a;return s?n=new ex(i,t):(ek[o]||(ek[o]=new ex(i,t)),n=ek[o]),r.query&&!t.query&&(t.query=r.queryKey),n.socket(r.path,t)}Object.assign(ew,{Manager:ex,Socket:ey,io:ew,connect:ew})},93179:function(e,t,n){"use strict";function r(e,t){if(!e)throw Error("Invariant failed")}n.d(t,{Z:function(){return r}})},25997:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});let r=function(e){if(null==e)return o;if("function"==typeof e)return i(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):i(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("string"==typeof e)return i(function(t){return t&&t.type===e});throw Error("Expected function, string, or object as test")};function i(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function o(){return!0}},14452:function(e,t,n){"use strict";n.d(t,{BK:function(){return o},S4:function(){return l}});var r=n(25997);let i=[],o=!1;function l(e,t,n,l){let a;"function"==typeof t&&"function"!=typeof n?(l=n,n=t):a=t;let s=(0,r.O)(a),u=l?-1:1;(function e(r,a,c){let f=r&&"object"==typeof r?r:{};if("string"==typeof f.type){let e="string"==typeof f.tagName?f.tagName:"string"==typeof f.name?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return d;function d(){var f;let d,h,p,g=i;if((!t||s(r,a,c[c.length-1]||void 0))&&(g=Array.isArray(f=n(r,c))?f:"number"==typeof f?[!0,f]:null==f?i:[f])[0]===o)return g;if("children"in r&&r.children&&r.children&&"skip"!==g[0])for(h=(l?r.children.length:-1)+u,p=c.concat(r);h>-1&&h<r.children.length;){let t=r.children[h];if((d=e(t,h,p)())[0]===o)return d;h="number"==typeof d[1]?d[1]:h+u}return g}})(e,void 0,[])()}},56361:function(e,t,n){"use strict";n.d(t,{Vn:function(){return i}});var r=n(14452);function i(e,t,n,i){let o,l,a;"function"==typeof t&&"function"!=typeof n?(l=void 0,a=t,o=n):(l=t,a=n,o=i),(0,r.S4)(e,l,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},o)}},3216:function(e,t,n){"use strict";n.d(t,{b7:function(){return l},ie:function(){return o}});var r=n(14978),i=n(7660);/**
|
|
12
12
|
* react-table
|
|
13
13
|
*
|
|
14
14
|
* Copyright (c) TanStack
|
|
@@ -29,4 +29,4 @@
|
|
|
29
29
|
*/function r(){return{accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function i(e,t){return"function"==typeof e?e(t):e}function o(e,t){return n=>{t.setState(t=>({...t,[e]:i(n,t[e])}))}}function l(e){return e instanceof Function}function a(e,t,n){let r,i=[];return o=>{let l,a;n.key&&n.debug&&(l=Date.now());let s=e(o),u=s.length!==i.length||s.some((e,t)=>i[t]!==e);if(!u)return r;if(i=s,n.key&&n.debug&&(a=Date.now()),r=t(...s),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){let e=Math.round((Date.now()-l)*100)/100,t=Math.round((Date.now()-a)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
|
|
30
30
|
font-size: .6rem;
|
|
31
31
|
font-weight: bold;
|
|
32
|
-
color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function s(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}n.d(t,{Cl:function(){return r},G_:function(){return U},W_:function(){return Z},sC:function(){return $}});let u="debugHeaders";function c(e,t,n){var r;let i=null!=(r=n.id)?r:t.id,o={id:i,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}function f(e,t,n,r){var i,o;let l=0,a=function(e,t){void 0===t&&(t=1),l=Math.max(l,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)},0)};a(e);let s=[],u=(e,t)=>{let i={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},o=[];e.forEach(e=>{let l;let a=[...o].reverse()[0],s=e.column.depth===i.depth,u=!1;if(s&&e.column.parent?l=e.column.parent:(l=e.column,u=!0),a&&(null==a?void 0:a.column)===l)a.subHeaders.push(e);else{let i=c(n,l,{id:[r,t,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:u,placeholderId:u?`${o.filter(e=>e.column===l).length}`:void 0,depth:t,index:o.length});i.subHeaders.push(e),o.push(i)}i.headers.push(e),e.headerGroup=i}),s.push(i),t>0&&u(o,t-1)},f=t.map((e,t)=>c(n,e,{depth:l,index:t}));u(f,l-1),s.reverse();let d=e=>{let t=e.filter(e=>e.column.getIsVisible());return t.map(e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:i}=e;t+=n,r.push(i)})):t=1;let i=Math.min(...r);return n+=i,e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}})};return d(null!=(i=null==(o=s[0])?void 0:o.headers)?i:[]),s}let d=(e,t,n,r,i,o,l)=>{let u={id:t,index:r,original:n,depth:i,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(u._valuesCache.hasOwnProperty(t))return u._valuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return u._valuesCache[t]=n.accessorFn(u.original,r),u._valuesCache[t]},getUniqueValues:t=>{if(u._uniqueValuesCache.hasOwnProperty(t))return u._uniqueValuesCache[t];let n=e.getColumn(t);return null!=n&&n.accessorFn?(n.columnDef.getUniqueValues?u._uniqueValuesCache[t]=n.columnDef.getUniqueValues(u.original,r):u._uniqueValuesCache[t]=[u.getValue(t)],u._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=u.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=o?o:[],getLeafRows:()=>(function(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);null!=i&&i.length&&r(i)})};return r(e),n})(u.subRows,e=>e.subRows),getParentRow:()=>u.parentId?e.getRow(u.parentId,!0):void 0,getParentRows:()=>{let e=[],t=u;for(;;){let n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:a(()=>[e.getAllLeafColumns()],t=>t.map(t=>(function(e,t,n,r){let i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=i.getValue())?t:e.options.renderFallbackValue},getContext:a(()=>[e,n,t,i],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),s(e.options,"debugCells","cell.getContext"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(i,n,t,e)},{}),i})(e,u,t,t.id)),s(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:a(()=>[u.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),s(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){let n=e._features[t];null==n||null==n.createRow||n.createRow(u,e)}return u},h=(e,t,n)=>{var r;let i=n.toLowerCase();return!!(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(i))};h.autoRemove=e=>C(e);let p=(e,t,n)=>{var r;return!!(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};p.autoRemove=e=>C(e);let g=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};g.autoRemove=e=>C(e);let m=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};m.autoRemove=e=>C(e)||!(null!=e&&e.length);let y=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});y.autoRemove=e=>C(e)||!(null!=e&&e.length);let v=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});v.autoRemove=e=>C(e)||!(null!=e&&e.length);let b=(e,t,n)=>e.getValue(t)===n;b.autoRemove=e=>C(e);let x=(e,t,n)=>e.getValue(t)==n;x.autoRemove=e=>C(e);let k=(e,t,n)=>{let[r,i]=n,o=e.getValue(t);return o>=r&&o<=i};k.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,i="number"!=typeof n?parseFloat(n):n,o=null===t||Number.isNaN(r)?-1/0:r,l=null===n||Number.isNaN(i)?1/0:i;if(o>l){let e=o;o=l,l=e}return[o,l]},k.autoRemove=e=>C(e)||C(e[0])&&C(e[1]);let w={includesString:h,includesStringSensitive:p,equalsString:g,arrIncludes:m,arrIncludesAll:y,arrIncludesSome:v,equals:b,weakEquals:x,inNumberRange:k};function C(e){return null==e||""===e}function S(e,t,n){return!!e&&!!e.autoRemove&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}let R={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,i;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=i=n):(r>n&&(r=n),i<n&&(i=n)))}),[r,i]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let i=t.getValue(e);null!=i&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=t.map(t=>t.getValue(e));if(!(Array.isArray(n)&&n.every(e=>"number"==typeof e)))return;if(1===n.length)return n[0];let r=Math.floor(n.length/2),i=n.sort((e,t)=>e-t);return n.length%2!=0?i[r]:(i[r-1]+i[r])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},E=()=>({left:[],right:[]}),M={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},P=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),_=null;function O(e){return"touchstart"===e.type}function I(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}let A=()=>({pageIndex:0,pageSize:10}),F=()=>({top:[],bottom:[]}),T=(e,t,n,r,i)=>{var o;let l=i.getRow(t,!0);n?(l.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),l.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(o=l.subRows)&&o.length&&l.getCanSelectSubRows()&&l.subRows.forEach(t=>T(e,t.id,n,r,i))};function L(e,t){let n=e.getState().rowSelection,r=[],i={},o=function(e,t){return e.map(e=>{var t;let l=z(e,n);if(l&&(r.push(e),i[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:o(e.subRows)}),l)return e}).filter(Boolean)};return{rows:o(t.rows),flatRows:r,rowsById:i}}function z(e,t){var n;return null!=(n=t[e.id])&&n}function D(e,t,n){var r;if(!(null!=(r=e.subRows)&&r.length))return!1;let i=!0,o=!1;return e.subRows.forEach(e=>{if((!o||i)&&(e.getCanSelect()&&(z(e,t)?o=!0:i=!1),e.subRows&&e.subRows.length)){let n=D(e,t);"all"===n?o=!0:("some"===n&&(o=!0),i=!1)}}),i?"all":!!o&&"some"}let j=/([0-9]+)/gm;function N(e,t){return e===t?0:e>t?1:-1}function V(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function B(e,t){let n=e.split(j).filter(Boolean),r=t.split(j).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),i=parseInt(e,10),o=parseInt(t,10),l=[i,o].sort();if(isNaN(l[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(l[1]))return isNaN(i)?-1:1;if(i>o)return 1;if(o>i)return -1}return n.length-r.length}let H={alphanumeric:(e,t,n)=>B(V(e.getValue(n)).toLowerCase(),V(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>B(V(e.getValue(n)),V(t.getValue(n))),text:(e,t,n)=>N(V(e.getValue(n)).toLowerCase(),V(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>N(V(e.getValue(n)),V(t.getValue(n))),datetime:(e,t,n)=>{let r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},basic:(e,t,n)=>N(e.getValue(n),t.getValue(n))},q=[{createTable:e=>{e.getHeaderGroups=a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var o,l;let a=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],s=null!=(l=null==i?void 0:i.map(e=>n.find(t=>t.id===e)).filter(Boolean))?l:[],u=n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=i&&i.includes(e.id))),c=f(t,[...a,...u,...s],e);return c},s(e.options,u,"getHeaderGroups")),e.getCenterHeaderGroups=a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>f(t,n=n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=i&&i.includes(e.id))),e,"center"),s(e.options,u,"getCenterHeaderGroups")),e.getLeftHeaderGroups=a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;let o=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[];return f(t,o,e,"left")},s(e.options,u,"getLeftHeaderGroups")),e.getRightHeaderGroups=a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;let o=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[];return f(t,o,e,"right")},s(e.options,u,"getRightHeaderGroups")),e.getFooterGroups=a(()=>[e.getHeaderGroups()],e=>[...e].reverse(),s(e.options,u,"getFooterGroups")),e.getLeftFooterGroups=a(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),s(e.options,u,"getLeftFooterGroups")),e.getCenterFooterGroups=a(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),s(e.options,u,"getCenterFooterGroups")),e.getRightFooterGroups=a(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),s(e.options,u,"getRightFooterGroups")),e.getFlatHeaders=a(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),s(e.options,u,"getFlatHeaders")),e.getLeftFlatHeaders=a(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),s(e.options,u,"getLeftFlatHeaders")),e.getCenterFlatHeaders=a(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),s(e.options,u,"getCenterFlatHeaders")),e.getRightFlatHeaders=a(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),s(e.options,u,"getRightFlatHeaders")),e.getCenterLeafHeaders=a(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),s(e.options,u,"getCenterLeafHeaders")),e.getLeftLeafHeaders=a(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),s(e.options,u,"getLeftLeafHeaders")),e.getRightLeafHeaders=a(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),s(e.options,u,"getRightLeafHeaders")),e.getLeafHeaders=a(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,i,o,l,a,s;return[...null!=(r=null==(i=e[0])?void 0:i.headers)?r:[],...null!=(o=null==(l=t[0])?void 0:l.headers)?o:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},s(e.options,u,"getLeafHeaders"))}},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;let i=e.columns;return null==(n=i.length?i.some(e=>e.getIsVisible()):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=a(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),s(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=a(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],s(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(t,n)=>a(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),s(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=a(e=>[I(t,e)],t=>t.findIndex(t=>t.id===e.id),s(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;let i=I(t,n);return(null==(r=i[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;let i=I(t,n);return(null==(r=i[i.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=a(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let i=[];if(null!=e&&e.length){let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&i.push(n.splice(r,1)[0])}i=[...i,...n]}else i=r;return function(e,t,n){if(!(null!=t&&t.length)||!n)return e;let r=e.filter(e=>!t.includes(e.id));if("remove"===n)return r;let i=t.map(t=>e.find(e=>e.id===t)).filter(Boolean);return[...i,...r]}(i,t,n)},s(e.options,"debugTable","_getOrderColumnsFn"))}},{getInitialState:e=>({columnPinning:E(),...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,i,o,l,a,s;return"right"===n?{left:(null!=(o=null==e?void 0:e.left)?o:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(i=null==e?void 0:e.right)?i:[]).filter(e=>!(null!=r&&r.includes(e)))}})},e.getCanPin=()=>{let n=e.getLeafColumns();return n.some(e=>{var n,r,i;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(i=t.options.enableColumnPinning)?i:t.options.enablePinning)||r)})},e.getIsPinned=()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:i}=t.getState().columnPinning,o=n.some(e=>null==r?void 0:r.includes(e)),l=n.some(e=>null==i?void 0:i.includes(e));return o?"left":!!l&&"right"},e.getPinnedIndex=()=>{var n,r;let i=e.getIsPinned();return i?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[i])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},s(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>{let n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"}));return n},s(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>{let n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"}));return n},s(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?E():null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:E())},e.getIsSomeColumnsPinned=t=>{var n,r,i;let o=e.getState().columnPinning;return t?!!(null==(n=o[t])?void 0:n.length):!!((null==(r=o.left)?void 0:r.length)||(null==(i=o.right)?void 0:i.length))},e.getLeftLeafColumns=a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),s(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),s(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},s(e.options,"debugColumns","getCenterLeafColumns"))}},{createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?w.includesString:"number"==typeof r?w.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?w.equals:Array.isArray(r)?w.arrIncludes:w.weakEquals},e.getFilterFn=()=>{var n,r;return l(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:w[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(i=t.options.enableFilters)||i)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{var r,o;let l=e.getFilterFn(),a=null==t?void 0:t.find(t=>t.id===e.id),s=i(n,a?a.value:void 0);if(S(l,s,e))return null!=(r=null==t?void 0:t.filter(t=>t.id!==e.id))?r:[];let u={id:e.id,value:s};return a?null!=(o=null==t?void 0:t.map(t=>t.id===e.id?u:t))?o:[]:null!=t&&t.length?[...t,u]:[u]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var r;return null==(r=i(t,e))?void 0:r.filter(e=>{let t=n.find(t=>t.id===e.id);if(t){let n=t.getFilterFn();if(S(n,e.value,t))return!1}return!0})})},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel()}},{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:o("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;let r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,o;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(i=t.options.enableFilters)||i)&&(null==(o=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||o)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>w.includesString,e.getGlobalFilterFn=()=>{var t,n;let{globalFilterFn:r}=e.options;return l(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:w[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let t of n){let n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return H.datetime;if("string"==typeof n&&(r=!0,n.split(j).length>1))return H.alphanumeric}return r?H.text:H.basic},e.getAutoSortDir=()=>{let n=t.getFilteredRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw Error();return l(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:H[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{let i=e.getNextSortingOrder(),o=null!=n;t.setSorting(l=>{let a;let s=null==l?void 0:l.find(t=>t.id===e.id),u=null==l?void 0:l.findIndex(t=>t.id===e.id),c=[],f=o?n:"desc"===i;if("toggle"!=(a=null!=l&&l.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=l&&l.length&&u!==l.length-1?"replace":s?"toggle":"replace")||o||i||(a="remove"),"add"===a){var d;(c=[...l,{id:e.id,desc:f}]).splice(0,c.length-(null!=(d=t.options.maxMultiSortColCount)?d:Number.MAX_SAFE_INTEGER))}else c="toggle"===a?l.map(t=>t.id===e.id?{...t,desc:f}:t):"remove"===a?l.filter(t=>t.id!==e.id):[{id:e.id,desc:f}];return c})},e.getFirstSortDir=()=>{var n,r;let i=null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir();return i?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;let o=e.getFirstSortDir(),l=e.getIsSorted();return l?(l===o||null!=(r=t.options.enableSortingRemoval)&&!r||!!n&&null!=(i=t.options.enableMultiRemove)&&!i)&&("desc"===l?"asc":"desc"):o},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;let r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?R.sum:"[object Date]"===Object.prototype.toString.call(r)?R.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw Error();return l(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:R[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=n.subRows)&&t.length)}}},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if(null!=(r=null!=(i=e.options.autoResetAll)?i:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0,n=!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded);return n.forEach(e=>{let n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var i;let o=!0===r||!!(null!=r&&r[e.id]),l={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{l[e]=!0}):l=r,n=null!=(i=n)?i:!o,!o&&n)return{...l,[e.id]:!0};if(o&&!n){let{[e.id]:t,...n}=l;return n}return r})},e.getIsExpanded=()=>{var n;let r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,i;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!!(null!=(i=e.subRows)&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)n=(r=t.getRow(r.parentId,!0)).getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{...A(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if(null!=(r=null!=(i=e.options.autoResetAll)?i:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>i(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?A():null!=(n=e.initialState.pagination)?n:A())},e.setPageIndex=t=>{e.setPagination(n=>{let r=i(t,n.pageIndex),o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{let n=Math.max(1,i(t,e.pageSize)),r=e.pageSize*e.pageIndex;return{...e,pageIndex:Math.floor(r/n),pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var r;let o=i(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=a(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},s(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return -1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:F(),...e}),getDefaultOptions:e=>({onRowPinningChange:o("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{let o=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],l=i?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],a=new Set([...l,e.id,...o]);t.setRowPinning(e=>{var t,r,i,o,l,s;return"bottom"===n?{top:(null!=(i=null==e?void 0:e.top)?i:[]).filter(e=>!(null!=a&&a.has(e))),bottom:[...(null!=(o=null==e?void 0:e.bottom)?o:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)]}:"top"===n?{top:[...(null!=(l=null==e?void 0:e.top)?l:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter(e=>!(null!=a&&a.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=a&&a.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=a&&a.has(e)))}})},e.getCanPin=()=>{var n;let{enableRowPinning:r,enablePinning:i}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:i)||n},e.getIsPinned=()=>{let n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,o=n.some(e=>null==r?void 0:r.includes(e)),l=n.some(e=>null==i?void 0:i.includes(e));return o?"top":!!l&&"bottom"},e.getPinnedIndex=()=>{var n,r;let i=e.getIsPinned();if(!i)return -1;let o=null==(n="top"===i?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(r=null==o?void 0:o.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?F():null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:F())},e.getIsSomeRowsPinned=t=>{var n,r,i;let o=e.getState().rowPinning;return t?!!(null==(n=o[t])?void 0:n.length):!!((null==(r=o.top)?void 0:r.length)||(null==(i=o.bottom)?void 0:i.length))},e._getPinnedRows=(t,n,r)=>{var i;let o=null==(i=e.options.keepPinnedRows)||i?(null!=n?n:[]).map(t=>{let n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>t.id===e));return o.filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=a(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),s(e.options,"debugRows","getTopRows")),e.getBottomRows=a(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),s(e.options,"debugRows","getBottomRows")),e.getCenterRows=a(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{let r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!r.has(e.id))},s(e.options,"debugRows","getCenterRows"))}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):i.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let r=void 0!==t?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(t=>{T(i,t.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=a(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}},s(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=a(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}},s(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=a(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}},s(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;let n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{let i=e.getIsSelected();t.setRowSelection(o=>{var l;if(n=void 0!==n?n:!i,e.getCanSelect()&&i===n)return o;let a={...o};return T(a,e.id,n,null==(l=null==r?void 0:r.selectChildren)||l,t),a})},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return z(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return"some"===D(e,n)},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return"all"===D(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},{getDefaultColumnDef:()=>M,getInitialState:e=>({columnSizing:{},columnSizingInfo:P(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;let o=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:M.minSize,null!=(r=null!=o?o:e.columnDef.size)?r:M.size),null!=(i=e.columnDef.maxSize)?i:M.maxSize)},e.getStart=a(e=>[e,I(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),s(t.options,"debugColumns","getStart")),e.getAfter=a(e=>[e,I(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),s(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,n=e=>{if(e.subHeaders.length)e.subHeaders.forEach(n);else{var r;t+=null!=(r=e.column.getSize())?r:0}};return n(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{let r=t.getColumn(e.column.id),i=null==r?void 0:r.getCanResize();return o=>{if(!r||!i||(null==o.persist||o.persist(),O(o)&&o.touches&&o.touches.length>1))return;let l=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],s=O(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var r,i;let o="rtl"===t.options.columnResizeDirection?-1:1,l=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*o,a=Math.max(l/(null!=(i=null==e?void 0:e.startSize)?i:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*a,0))/100}),{...e,deltaOffset:l,deltaPercentage:a}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...u})))},f=e=>c("move",e),d=e=>{c("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=n||"undefined"!=typeof document?document:null,p={moveHandler:e=>f(e.clientX),upHandler:e=>{null==h||h.removeEventListener("mousemove",p.moveHandler),null==h||h.removeEventListener("mouseup",p.upHandler),d(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(e.touches[0].clientX),!1),upHandler:e=>{var t;null==h||h.removeEventListener("touchmove",g.moveHandler),null==h||h.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof _)return _;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return _=e}()&&{passive:!1};O(o)?(null==h||h.addEventListener("touchmove",g.moveHandler,m),null==h||h.addEventListener("touchend",g.upHandler,m)):(null==h||h.addEventListener("mousemove",p.moveHandler,m),null==h||h.addEventListener("mouseup",p.upHandler,m)),t.setColumnSizingInfo(e=>({...e,startOffset:s,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?P():null!=(n=e.initialState.columnSizingInfo)?n:P())},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}}];function Z(e){var t,n;let r=[...q,...null!=(t=e._features)?t:[]],o={_features:r},l=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{}),u=e=>o.options.mergeOptions?o.options.mergeOptions(l,e):{...l,...e},c={...null!=(n=e.initialState)?n:{}};o._features.forEach(e=>{var t;c=null!=(t=null==e.getInitialState?void 0:e.getInitialState(c))?t:c});let f=[],d=!1,h={_features:r,options:{...l,...e},initialState:c,_queue:e=>{f.push(e),d||(d=!0,Promise.resolve().then(()=>{for(;f.length;)f.shift()();d=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{let t=i(e,o.options);o.options=u(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&!(n=o.getCoreRowModel().rowsById[e]))throw Error();return n},_getDefaultColumnDef:a(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},s(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:a(()=>[o._getColumnDefs()],e=>{let t=function(e,n,r){return void 0===r&&(r=0),e.map(e=>{let i=function(e,t,n,r){var i,o;let l;let u=e._getDefaultColumnDef(),c={...u,...t},f=c.accessorKey,d=null!=(i=null!=(o=c.id)?o:f?"function"==typeof String.prototype.replaceAll?f.replaceAll(".","_"):f.replace(/\./g,"_"):void 0)?i:"string"==typeof c.header?c.header:void 0;if(c.accessorFn?l=c.accessorFn:f&&(l=f.includes(".")?e=>{let t=e;for(let e of f.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[c.accessorKey]),!d)throw Error();let h={id:`${String(d)}`,accessorFn:l,parent:r,depth:n,columnDef:c,columns:[],getFlatColumns:a(()=>[!0],()=>{var e;return[h,...null==(e=h.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},s(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:a(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=h.columns)&&t.length?e(h.columns.flatMap(e=>e.getLeafColumns())):[h]},s(e.options,"debugColumns","column.getLeafColumns"))};for(let t of e._features)null==t.createColumn||t.createColumn(h,e);return h}(o,e,r,n);return i.columns=e.columns?t(e.columns,i,r+1):[],i})};return t(e)},s(e,"debugColumns","getAllColumns")),getAllFlatColumns:a(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),s(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:a(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),s(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:a(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),s(e,"debugColumns","getAllLeafColumns")),getColumn:e=>{let t=o._getAllFlatColumnsById()[e];return t}};Object.assign(o,h);for(let e=0;e<o._features.length;e++){let t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}function $(){return e=>a(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,i,o){void 0===i&&(i=0);let l=[];for(let s=0;s<t.length;s++){let u=d(e,e._getRowId(t[s],s,o),t[s],s,i,void 0,null==o?void 0:o.id);if(n.flatRows.push(u),n.rowsById[u.id]=u,l.push(u),e.options.getSubRows){var a;u.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=r(u.originalSubRows,i+1,u))}}return l};return n.rows=r(t),n},s(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function U(e){return e=>a(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,n)=>{let r;if(!n.rows.length)return n;let{pageSize:i,pageIndex:o}=t,{rows:l,flatRows:a,rowsById:s}=n,u=i*o,c=u+i;l=l.slice(u,c),(r=e.options.paginateExpandedRows?{rows:l,flatRows:a,rowsById:s}:function(e){let t=[],n=e=>{var r;t.push(e),null!=(r=e.subRows)&&r.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}({rows:l,flatRows:a,rowsById:s})).flatRows=[];let f=e=>{r.flatRows.push(e),e.subRows.length&&e.subRows.forEach(f)};return r.rows.forEach(f),r},s(e.options,"debugTable","getPaginationRowModel"))}}}]);
|
|
32
|
+
color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function s(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}n.d(t,{Cl:function(){return r},G_:function(){return U},W_:function(){return q},sC:function(){return $}});let u="debugHeaders";function c(e,t,n){var r;let i=null!=(r=n.id)?r:t.id,o={id:i,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}function f(e,t,n,r){var i,o;let l=0,a=function(e,t){void 0===t&&(t=1),l=Math.max(l,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)},0)};a(e);let s=[],u=(e,t)=>{let i={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},o=[];e.forEach(e=>{let l;let a=[...o].reverse()[0],s=e.column.depth===i.depth,u=!1;if(s&&e.column.parent?l=e.column.parent:(l=e.column,u=!0),a&&(null==a?void 0:a.column)===l)a.subHeaders.push(e);else{let i=c(n,l,{id:[r,t,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:u,placeholderId:u?`${o.filter(e=>e.column===l).length}`:void 0,depth:t,index:o.length});i.subHeaders.push(e),o.push(i)}i.headers.push(e),e.headerGroup=i}),s.push(i),t>0&&u(o,t-1)},f=t.map((e,t)=>c(n,e,{depth:l,index:t}));u(f,l-1),s.reverse();let d=e=>{let t=e.filter(e=>e.column.getIsVisible());return t.map(e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:i}=e;t+=n,r.push(i)})):t=1;let i=Math.min(...r);return n+=i,e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}})};return d(null!=(i=null==(o=s[0])?void 0:o.headers)?i:[]),s}let d=(e,t,n,r,i,o,l)=>{let u={id:t,index:r,original:n,depth:i,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(u._valuesCache.hasOwnProperty(t))return u._valuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return u._valuesCache[t]=n.accessorFn(u.original,r),u._valuesCache[t]},getUniqueValues:t=>{if(u._uniqueValuesCache.hasOwnProperty(t))return u._uniqueValuesCache[t];let n=e.getColumn(t);return null!=n&&n.accessorFn?(n.columnDef.getUniqueValues?u._uniqueValuesCache[t]=n.columnDef.getUniqueValues(u.original,r):u._uniqueValuesCache[t]=[u.getValue(t)],u._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=u.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=o?o:[],getLeafRows:()=>(function(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);null!=i&&i.length&&r(i)})};return r(e),n})(u.subRows,e=>e.subRows),getParentRow:()=>u.parentId?e.getRow(u.parentId,!0):void 0,getParentRows:()=>{let e=[],t=u;for(;;){let n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:a(()=>[e.getAllLeafColumns()],t=>t.map(t=>(function(e,t,n,r){let i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=i.getValue())?t:e.options.renderFallbackValue},getContext:a(()=>[e,n,t,i],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),s(e.options,"debugCells","cell.getContext"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(i,n,t,e)},{}),i})(e,u,t,t.id)),s(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:a(()=>[u.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),s(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){let n=e._features[t];null==n||null==n.createRow||n.createRow(u,e)}return u},h=(e,t,n)=>{var r;let i=n.toLowerCase();return!!(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(i))};h.autoRemove=e=>C(e);let p=(e,t,n)=>{var r;return!!(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};p.autoRemove=e=>C(e);let g=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};g.autoRemove=e=>C(e);let m=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};m.autoRemove=e=>C(e)||!(null!=e&&e.length);let v=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});v.autoRemove=e=>C(e)||!(null!=e&&e.length);let y=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});y.autoRemove=e=>C(e)||!(null!=e&&e.length);let b=(e,t,n)=>e.getValue(t)===n;b.autoRemove=e=>C(e);let x=(e,t,n)=>e.getValue(t)==n;x.autoRemove=e=>C(e);let k=(e,t,n)=>{let[r,i]=n,o=e.getValue(t);return o>=r&&o<=i};k.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,i="number"!=typeof n?parseFloat(n):n,o=null===t||Number.isNaN(r)?-1/0:r,l=null===n||Number.isNaN(i)?1/0:i;if(o>l){let e=o;o=l,l=e}return[o,l]},k.autoRemove=e=>C(e)||C(e[0])&&C(e[1]);let w={includesString:h,includesStringSensitive:p,equalsString:g,arrIncludes:m,arrIncludesAll:v,arrIncludesSome:y,equals:b,weakEquals:x,inNumberRange:k};function C(e){return null==e||""===e}function S(e,t,n){return!!e&&!!e.autoRemove&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}let R={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,i;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=i=n):(r>n&&(r=n),i<n&&(i=n)))}),[r,i]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let i=t.getValue(e);null!=i&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=t.map(t=>t.getValue(e));if(!(Array.isArray(n)&&n.every(e=>"number"==typeof e)))return;if(1===n.length)return n[0];let r=Math.floor(n.length/2),i=n.sort((e,t)=>e-t);return n.length%2!=0?i[r]:(i[r-1]+i[r])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},E=()=>({left:[],right:[]}),M={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},P=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),_=null;function O(e){return"touchstart"===e.type}function A(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}let I=()=>({pageIndex:0,pageSize:10}),T=()=>({top:[],bottom:[]}),F=(e,t,n,r,i)=>{var o;let l=i.getRow(t,!0);n?(l.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),l.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(o=l.subRows)&&o.length&&l.getCanSelectSubRows()&&l.subRows.forEach(t=>F(e,t.id,n,r,i))};function L(e,t){let n=e.getState().rowSelection,r=[],i={},o=function(e,t){return e.map(e=>{var t;let l=z(e,n);if(l&&(r.push(e),i[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:o(e.subRows)}),l)return e}).filter(Boolean)};return{rows:o(t.rows),flatRows:r,rowsById:i}}function z(e,t){var n;return null!=(n=t[e.id])&&n}function D(e,t,n){var r;if(!(null!=(r=e.subRows)&&r.length))return!1;let i=!0,o=!1;return e.subRows.forEach(e=>{if((!o||i)&&(e.getCanSelect()&&(z(e,t)?o=!0:i=!1),e.subRows&&e.subRows.length)){let n=D(e,t);"all"===n?o=!0:("some"===n&&(o=!0),i=!1)}}),i?"all":!!o&&"some"}let j=/([0-9]+)/gm;function N(e,t){return e===t?0:e>t?1:-1}function V(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function B(e,t){let n=e.split(j).filter(Boolean),r=t.split(j).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),i=parseInt(e,10),o=parseInt(t,10),l=[i,o].sort();if(isNaN(l[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(l[1]))return isNaN(i)?-1:1;if(i>o)return 1;if(o>i)return -1}return n.length-r.length}let H={alphanumeric:(e,t,n)=>B(V(e.getValue(n)).toLowerCase(),V(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>B(V(e.getValue(n)),V(t.getValue(n))),text:(e,t,n)=>N(V(e.getValue(n)).toLowerCase(),V(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>N(V(e.getValue(n)),V(t.getValue(n))),datetime:(e,t,n)=>{let r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},basic:(e,t,n)=>N(e.getValue(n),t.getValue(n))},Z=[{createTable:e=>{e.getHeaderGroups=a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var o,l;let a=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],s=null!=(l=null==i?void 0:i.map(e=>n.find(t=>t.id===e)).filter(Boolean))?l:[],u=n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=i&&i.includes(e.id))),c=f(t,[...a,...u,...s],e);return c},s(e.options,u,"getHeaderGroups")),e.getCenterHeaderGroups=a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>f(t,n=n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=i&&i.includes(e.id))),e,"center"),s(e.options,u,"getCenterHeaderGroups")),e.getLeftHeaderGroups=a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;let o=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[];return f(t,o,e,"left")},s(e.options,u,"getLeftHeaderGroups")),e.getRightHeaderGroups=a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;let o=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[];return f(t,o,e,"right")},s(e.options,u,"getRightHeaderGroups")),e.getFooterGroups=a(()=>[e.getHeaderGroups()],e=>[...e].reverse(),s(e.options,u,"getFooterGroups")),e.getLeftFooterGroups=a(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),s(e.options,u,"getLeftFooterGroups")),e.getCenterFooterGroups=a(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),s(e.options,u,"getCenterFooterGroups")),e.getRightFooterGroups=a(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),s(e.options,u,"getRightFooterGroups")),e.getFlatHeaders=a(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),s(e.options,u,"getFlatHeaders")),e.getLeftFlatHeaders=a(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),s(e.options,u,"getLeftFlatHeaders")),e.getCenterFlatHeaders=a(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),s(e.options,u,"getCenterFlatHeaders")),e.getRightFlatHeaders=a(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),s(e.options,u,"getRightFlatHeaders")),e.getCenterLeafHeaders=a(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),s(e.options,u,"getCenterLeafHeaders")),e.getLeftLeafHeaders=a(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),s(e.options,u,"getLeftLeafHeaders")),e.getRightLeafHeaders=a(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),s(e.options,u,"getRightLeafHeaders")),e.getLeafHeaders=a(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,i,o,l,a,s;return[...null!=(r=null==(i=e[0])?void 0:i.headers)?r:[],...null!=(o=null==(l=t[0])?void 0:l.headers)?o:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},s(e.options,u,"getLeafHeaders"))}},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;let i=e.columns;return null==(n=i.length?i.some(e=>e.getIsVisible()):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=a(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),s(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=a(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],s(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(t,n)=>a(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),s(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=a(e=>[A(t,e)],t=>t.findIndex(t=>t.id===e.id),s(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;let i=A(t,n);return(null==(r=i[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;let i=A(t,n);return(null==(r=i[i.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=a(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let i=[];if(null!=e&&e.length){let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&i.push(n.splice(r,1)[0])}i=[...i,...n]}else i=r;return function(e,t,n){if(!(null!=t&&t.length)||!n)return e;let r=e.filter(e=>!t.includes(e.id));if("remove"===n)return r;let i=t.map(t=>e.find(e=>e.id===t)).filter(Boolean);return[...i,...r]}(i,t,n)},s(e.options,"debugTable","_getOrderColumnsFn"))}},{getInitialState:e=>({columnPinning:E(),...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,i,o,l,a,s;return"right"===n?{left:(null!=(o=null==e?void 0:e.left)?o:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(i=null==e?void 0:e.right)?i:[]).filter(e=>!(null!=r&&r.includes(e)))}})},e.getCanPin=()=>{let n=e.getLeafColumns();return n.some(e=>{var n,r,i;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(i=t.options.enableColumnPinning)?i:t.options.enablePinning)||r)})},e.getIsPinned=()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:i}=t.getState().columnPinning,o=n.some(e=>null==r?void 0:r.includes(e)),l=n.some(e=>null==i?void 0:i.includes(e));return o?"left":!!l&&"right"},e.getPinnedIndex=()=>{var n,r;let i=e.getIsPinned();return i?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[i])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},s(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>{let n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"}));return n},s(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>{let n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"}));return n},s(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?E():null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:E())},e.getIsSomeColumnsPinned=t=>{var n,r,i;let o=e.getState().columnPinning;return t?!!(null==(n=o[t])?void 0:n.length):!!((null==(r=o.left)?void 0:r.length)||(null==(i=o.right)?void 0:i.length))},e.getLeftLeafColumns=a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),s(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),s(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},s(e.options,"debugColumns","getCenterLeafColumns"))}},{createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?w.includesString:"number"==typeof r?w.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?w.equals:Array.isArray(r)?w.arrIncludes:w.weakEquals},e.getFilterFn=()=>{var n,r;return l(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:w[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(i=t.options.enableFilters)||i)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{var r,o;let l=e.getFilterFn(),a=null==t?void 0:t.find(t=>t.id===e.id),s=i(n,a?a.value:void 0);if(S(l,s,e))return null!=(r=null==t?void 0:t.filter(t=>t.id!==e.id))?r:[];let u={id:e.id,value:s};return a?null!=(o=null==t?void 0:t.map(t=>t.id===e.id?u:t))?o:[]:null!=t&&t.length?[...t,u]:[u]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var r;return null==(r=i(t,e))?void 0:r.filter(e=>{let t=n.find(t=>t.id===e.id);if(t){let n=t.getFilterFn();if(S(n,e.value,t))return!1}return!0})})},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel()}},{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:o("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;let r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,o;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(i=t.options.enableFilters)||i)&&(null==(o=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||o)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>w.includesString,e.getGlobalFilterFn=()=>{var t,n;let{globalFilterFn:r}=e.options;return l(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:w[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let t of n){let n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return H.datetime;if("string"==typeof n&&(r=!0,n.split(j).length>1))return H.alphanumeric}return r?H.text:H.basic},e.getAutoSortDir=()=>{let n=t.getFilteredRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw Error();return l(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:H[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{let i=e.getNextSortingOrder(),o=null!=n;t.setSorting(l=>{let a;let s=null==l?void 0:l.find(t=>t.id===e.id),u=null==l?void 0:l.findIndex(t=>t.id===e.id),c=[],f=o?n:"desc"===i;if("toggle"!=(a=null!=l&&l.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=l&&l.length&&u!==l.length-1?"replace":s?"toggle":"replace")||o||i||(a="remove"),"add"===a){var d;(c=[...l,{id:e.id,desc:f}]).splice(0,c.length-(null!=(d=t.options.maxMultiSortColCount)?d:Number.MAX_SAFE_INTEGER))}else c="toggle"===a?l.map(t=>t.id===e.id?{...t,desc:f}:t):"remove"===a?l.filter(t=>t.id!==e.id):[{id:e.id,desc:f}];return c})},e.getFirstSortDir=()=>{var n,r;let i=null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir();return i?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;let o=e.getFirstSortDir(),l=e.getIsSorted();return l?(l===o||null!=(r=t.options.enableSortingRemoval)&&!r||!!n&&null!=(i=t.options.enableMultiRemove)&&!i)&&("desc"===l?"asc":"desc"):o},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;let r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?R.sum:"[object Date]"===Object.prototype.toString.call(r)?R.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw Error();return l(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:R[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=n.subRows)&&t.length)}}},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if(null!=(r=null!=(i=e.options.autoResetAll)?i:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0,n=!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded);return n.forEach(e=>{let n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var i;let o=!0===r||!!(null!=r&&r[e.id]),l={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{l[e]=!0}):l=r,n=null!=(i=n)?i:!o,!o&&n)return{...l,[e.id]:!0};if(o&&!n){let{[e.id]:t,...n}=l;return n}return r})},e.getIsExpanded=()=>{var n;let r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,i;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!!(null!=(i=e.subRows)&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)n=(r=t.getRow(r.parentId,!0)).getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{...I(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if(null!=(r=null!=(i=e.options.autoResetAll)?i:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>i(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?I():null!=(n=e.initialState.pagination)?n:I())},e.setPageIndex=t=>{e.setPagination(n=>{let r=i(t,n.pageIndex),o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{let n=Math.max(1,i(t,e.pageSize)),r=e.pageSize*e.pageIndex;return{...e,pageIndex:Math.floor(r/n),pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var r;let o=i(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=a(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},s(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return -1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:T(),...e}),getDefaultOptions:e=>({onRowPinningChange:o("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{let o=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],l=i?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],a=new Set([...l,e.id,...o]);t.setRowPinning(e=>{var t,r,i,o,l,s;return"bottom"===n?{top:(null!=(i=null==e?void 0:e.top)?i:[]).filter(e=>!(null!=a&&a.has(e))),bottom:[...(null!=(o=null==e?void 0:e.bottom)?o:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)]}:"top"===n?{top:[...(null!=(l=null==e?void 0:e.top)?l:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter(e=>!(null!=a&&a.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=a&&a.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=a&&a.has(e)))}})},e.getCanPin=()=>{var n;let{enableRowPinning:r,enablePinning:i}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:i)||n},e.getIsPinned=()=>{let n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,o=n.some(e=>null==r?void 0:r.includes(e)),l=n.some(e=>null==i?void 0:i.includes(e));return o?"top":!!l&&"bottom"},e.getPinnedIndex=()=>{var n,r;let i=e.getIsPinned();if(!i)return -1;let o=null==(n="top"===i?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(r=null==o?void 0:o.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?T():null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:T())},e.getIsSomeRowsPinned=t=>{var n,r,i;let o=e.getState().rowPinning;return t?!!(null==(n=o[t])?void 0:n.length):!!((null==(r=o.top)?void 0:r.length)||(null==(i=o.bottom)?void 0:i.length))},e._getPinnedRows=(t,n,r)=>{var i;let o=null==(i=e.options.keepPinnedRows)||i?(null!=n?n:[]).map(t=>{let n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>t.id===e));return o.filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=a(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),s(e.options,"debugRows","getTopRows")),e.getBottomRows=a(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),s(e.options,"debugRows","getBottomRows")),e.getCenterRows=a(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{let r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!r.has(e.id))},s(e.options,"debugRows","getCenterRows"))}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):i.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let r=void 0!==t?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(t=>{F(i,t.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=a(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}},s(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=a(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}},s(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=a(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}},s(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;let n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{let i=e.getIsSelected();t.setRowSelection(o=>{var l;if(n=void 0!==n?n:!i,e.getCanSelect()&&i===n)return o;let a={...o};return F(a,e.id,n,null==(l=null==r?void 0:r.selectChildren)||l,t),a})},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return z(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return"some"===D(e,n)},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return"all"===D(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},{getDefaultColumnDef:()=>M,getInitialState:e=>({columnSizing:{},columnSizingInfo:P(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;let o=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:M.minSize,null!=(r=null!=o?o:e.columnDef.size)?r:M.size),null!=(i=e.columnDef.maxSize)?i:M.maxSize)},e.getStart=a(e=>[e,A(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),s(t.options,"debugColumns","getStart")),e.getAfter=a(e=>[e,A(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),s(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,n=e=>{if(e.subHeaders.length)e.subHeaders.forEach(n);else{var r;t+=null!=(r=e.column.getSize())?r:0}};return n(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{let r=t.getColumn(e.column.id),i=null==r?void 0:r.getCanResize();return o=>{if(!r||!i||(null==o.persist||o.persist(),O(o)&&o.touches&&o.touches.length>1))return;let l=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],s=O(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var r,i;let o="rtl"===t.options.columnResizeDirection?-1:1,l=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*o,a=Math.max(l/(null!=(i=null==e?void 0:e.startSize)?i:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*a,0))/100}),{...e,deltaOffset:l,deltaPercentage:a}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...u})))},f=e=>c("move",e),d=e=>{c("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=n||"undefined"!=typeof document?document:null,p={moveHandler:e=>f(e.clientX),upHandler:e=>{null==h||h.removeEventListener("mousemove",p.moveHandler),null==h||h.removeEventListener("mouseup",p.upHandler),d(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(e.touches[0].clientX),!1),upHandler:e=>{var t;null==h||h.removeEventListener("touchmove",g.moveHandler),null==h||h.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof _)return _;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return _=e}()&&{passive:!1};O(o)?(null==h||h.addEventListener("touchmove",g.moveHandler,m),null==h||h.addEventListener("touchend",g.upHandler,m)):(null==h||h.addEventListener("mousemove",p.moveHandler,m),null==h||h.addEventListener("mouseup",p.upHandler,m)),t.setColumnSizingInfo(e=>({...e,startOffset:s,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?P():null!=(n=e.initialState.columnSizingInfo)?n:P())},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}}];function q(e){var t,n;let r=[...Z,...null!=(t=e._features)?t:[]],o={_features:r},l=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{}),u=e=>o.options.mergeOptions?o.options.mergeOptions(l,e):{...l,...e},c={...null!=(n=e.initialState)?n:{}};o._features.forEach(e=>{var t;c=null!=(t=null==e.getInitialState?void 0:e.getInitialState(c))?t:c});let f=[],d=!1,h={_features:r,options:{...l,...e},initialState:c,_queue:e=>{f.push(e),d||(d=!0,Promise.resolve().then(()=>{for(;f.length;)f.shift()();d=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{let t=i(e,o.options);o.options=u(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&!(n=o.getCoreRowModel().rowsById[e]))throw Error();return n},_getDefaultColumnDef:a(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},s(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:a(()=>[o._getColumnDefs()],e=>{let t=function(e,n,r){return void 0===r&&(r=0),e.map(e=>{let i=function(e,t,n,r){var i,o;let l;let u=e._getDefaultColumnDef(),c={...u,...t},f=c.accessorKey,d=null!=(i=null!=(o=c.id)?o:f?"function"==typeof String.prototype.replaceAll?f.replaceAll(".","_"):f.replace(/\./g,"_"):void 0)?i:"string"==typeof c.header?c.header:void 0;if(c.accessorFn?l=c.accessorFn:f&&(l=f.includes(".")?e=>{let t=e;for(let e of f.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[c.accessorKey]),!d)throw Error();let h={id:`${String(d)}`,accessorFn:l,parent:r,depth:n,columnDef:c,columns:[],getFlatColumns:a(()=>[!0],()=>{var e;return[h,...null==(e=h.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},s(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:a(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=h.columns)&&t.length?e(h.columns.flatMap(e=>e.getLeafColumns())):[h]},s(e.options,"debugColumns","column.getLeafColumns"))};for(let t of e._features)null==t.createColumn||t.createColumn(h,e);return h}(o,e,r,n);return i.columns=e.columns?t(e.columns,i,r+1):[],i})};return t(e)},s(e,"debugColumns","getAllColumns")),getAllFlatColumns:a(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),s(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:a(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),s(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:a(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),s(e,"debugColumns","getAllLeafColumns")),getColumn:e=>{let t=o._getAllFlatColumnsById()[e];return t}};Object.assign(o,h);for(let e=0;e<o._features.length;e++){let t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}function $(){return e=>a(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,i,o){void 0===i&&(i=0);let l=[];for(let s=0;s<t.length;s++){let u=d(e,e._getRowId(t[s],s,o),t[s],s,i,void 0,null==o?void 0:o.id);if(n.flatRows.push(u),n.rowsById[u.id]=u,l.push(u),e.options.getSubRows){var a;u.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=r(u.originalSubRows,i+1,u))}}return l};return n.rows=r(t),n},s(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function U(e){return e=>a(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,n)=>{let r;if(!n.rows.length)return n;let{pageSize:i,pageIndex:o}=t,{rows:l,flatRows:a,rowsById:s}=n,u=i*o,c=u+i;l=l.slice(u,c),(r=e.options.paginateExpandedRows?{rows:l,flatRows:a,rowsById:s}:function(e){let t=[],n=e=>{var r;t.push(e),null!=(r=e.subRows)&&r.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}({rows:l,flatRows:a,rowsById:s})).flatRows=[];let f=e=>{r.flatRows.push(e),e.subRows.length&&e.subRows.forEach(f)};return r.rows.forEach(f),r},s(e.options,"debugTable","getPaginationRowModel"))}}}]);
|