drawboard-microservice 1.0.6 → 1.0.8
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/index.css +1 -0
- package/dist/index.js +41234 -0
- package/package.json +14 -4
- package/dist-app/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist-app/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist-app/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist-app/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist-app/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist-app/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist-app/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist-app/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist-app/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist-app/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist-app/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist-app/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist-app/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist-app/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist-app/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist-app/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist-app/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist-app/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist-app/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist-app/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist-app/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist-app/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist-app/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist-app/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist-app/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist-app/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist-app/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist-app/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist-app/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist-app/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist-app/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist-app/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist-app/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist-app/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist-app/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist-app/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist-app/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist-app/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist-app/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist-app/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist-app/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist-app/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist-app/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist-app/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist-app/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist-app/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist-app/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist-app/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist-app/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist-app/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist-app/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist-app/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist-app/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist-app/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist-app/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist-app/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist-app/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist-app/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist-app/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist-app/assets/index-DxkNA4rg.js +0 -307
- package/dist-app/assets/index-DxkNA4rg.js.map +0 -1
- package/dist-app/assets/index-uvzSCXM2.css +0 -1
- package/dist-app/index.html +0 -13
- package/dockerfile +0 -14
- package/eslint.config.js +0 -23
- package/index.html +0 -12
- package/public/icon-align-64-default.png +0 -0
- package/public/icon-align-justify-64-active.png +0 -0
- package/public/icon-align-justify-64-default 1.png +0 -0
- package/public/icon-align-justify-64-default.png +0 -0
- package/public/icon-align-justify-64-hover.png +0 -0
- package/public/icon-align-left-64-active.png +0 -0
- package/public/icon-align-left-64-default 1.png +0 -0
- package/public/icon-align-left-64-default.png +0 -0
- package/public/icon-align-left-64-hover.png +0 -0
- package/public/icon-align-right-64-active.png +0 -0
- package/public/icon-align-right-64-default.png +0 -0
- package/public/icon-align-right-64-hover.png +0 -0
- package/public/icon-bold-64-active.png +0 -0
- package/public/icon-bold-64-default 1.png +0 -0
- package/public/icon-bold-64-default.png +0 -0
- package/public/icon-bold-64-hover.png +0 -0
- package/public/icon-broom-64-active.png +0 -0
- package/public/icon-broom-64-default.png +0 -0
- package/public/icon-broom-64-hover.png +0 -0
- package/public/icon-cancel-64-active.png +0 -0
- package/public/icon-cancel-64-default.png +0 -0
- package/public/icon-cancel-64-hover.png +0 -0
- package/public/icon-change-64-active.png +0 -0
- package/public/icon-change-64-default.png +0 -0
- package/public/icon-change-64-hover.png +0 -0
- package/public/icon-circle-64-active.png +0 -0
- package/public/icon-circle-64-default.png +0 -0
- package/public/icon-circle-64-hover.png +0 -0
- package/public/icon-close-64-active.png +0 -0
- package/public/icon-close-64-default.png +0 -0
- package/public/icon-close-64-hover.png +0 -0
- package/public/icon-cursor-64-active.png +0 -0
- package/public/icon-cursor-64-default.png +0 -0
- package/public/icon-cursor-64-hover.png +0 -0
- package/public/icon-delete-trash-64-active.png +0 -0
- package/public/icon-delete-trash-64-default.png +0 -0
- package/public/icon-delete-trash-64-hover.png +0 -0
- package/public/icon-done-64-active.png +0 -0
- package/public/icon-done-64-default.png +0 -0
- package/public/icon-done-64-hover.png +0 -0
- package/public/icon-edit-text-file-64-active.png +0 -0
- package/public/icon-edit-text-file-64-default 1.png +0 -0
- package/public/icon-edit-text-file-64-default.png +0 -0
- package/public/icon-edit-text-file-64-hover.png +0 -0
- package/public/icon-eraser-64-active.png +0 -0
- package/public/icon-eraser-64-default.png +0 -0
- package/public/icon-eraser-64-hover.png +0 -0
- package/public/icon-font-style-64-active.png +0 -0
- package/public/icon-font-style-64-default.png +0 -0
- package/public/icon-font-style-64-hover.png +0 -0
- package/public/icon-formula-fx-64-active.png +0 -0
- package/public/icon-formula-fx-64-default.png +0 -0
- package/public/icon-formula-fx-64-hover.png +0 -0
- package/public/icon-highlighter-64-active.png +0 -0
- package/public/icon-highlighter-64-default.png +0 -0
- package/public/icon-highlighter-64-hover.png +0 -0
- package/public/icon-installing-64-active.png +0 -0
- package/public/icon-installing-64-default.png +0 -0
- package/public/icon-installing-64-hover.png +0 -0
- package/public/icon-italic-64-active.png +0 -0
- package/public/icon-italic-64-default 1.png +0 -0
- package/public/icon-italic-64-default.png +0 -0
- package/public/icon-italic-64-hover.png +0 -0
- package/public/icon-line-64-active.png +0 -0
- package/public/icon-line-64-default.png +0 -0
- package/public/icon-line-64-hover.png +0 -0
- package/public/icon-pen-64-active.png +0 -0
- package/public/icon-pen-64-default.png +0 -0
- package/public/icon-pen-64-hover.png +0 -0
- package/public/icon-pin-64-active.png +0 -0
- package/public/icon-pin-64-default.png +0 -0
- package/public/icon-pin-64-hover.png +0 -0
- package/public/icon-redo-64-active.png +0 -0
- package/public/icon-redo-64-default.png +0 -0
- package/public/icon-redo-64-hover.png +0 -0
- package/public/icon-return-64-active.png +0 -0
- package/public/icon-return-64-default.png +0 -0
- package/public/icon-return-64-hover.png +0 -0
- package/public/icon-select-active.png +0 -0
- package/public/icon-select-default.png +0 -0
- package/public/icon-select-hover.png +0 -0
- package/public/icon-square-64-active.png +0 -0
- package/public/icon-square-64-default.png +0 -0
- package/public/icon-square-64-hover.png +0 -0
- package/public/icon-strikethrough-64-active.png +0 -0
- package/public/icon-strikethrough-64-default 1.png +0 -0
- package/public/icon-strikethrough-64-default.png +0 -0
- package/public/icon-strikethrough-64-hover.png +0 -0
- package/public/icon-text-64-active.png +0 -0
- package/public/icon-text-64-default.png +0 -0
- package/public/icon-text-64-hover.png +0 -0
- package/public/icon-u-turn-to-right-64-active.png +0 -0
- package/public/icon-u-turn-to-right-64-default.png +0 -0
- package/public/icon-u-turn-to-right-64-hover.png +0 -0
- package/public/icon-under-64-active.png +0 -0
- package/public/icon-under-64-default 1.png +0 -0
- package/public/icon-under-64-default.png +0 -0
- package/public/icon-under-64-hover.png +0 -0
- package/src/App.css +0 -887
- package/src/App.tsx +0 -1468
- package/src/assets/icon-broom-64-active.png +0 -0
- package/src/assets/icon-broom-64-default.png +0 -0
- package/src/assets/icon-broom-64-hover.png +0 -0
- package/src/assets/icon-cancel-64-active.png +0 -0
- package/src/assets/icon-cancel-64-default.png +0 -0
- package/src/assets/icon-cancel-64-hover.png +0 -0
- package/src/assets/icon-change-64-active.png +0 -0
- package/src/assets/icon-change-64-default.png +0 -0
- package/src/assets/icon-change-64-hover.png +0 -0
- package/src/assets/icon-circle-64-active.png +0 -0
- package/src/assets/icon-circle-64-default.png +0 -0
- package/src/assets/icon-circle-64-hover.png +0 -0
- package/src/assets/icon-cursor-64-active.png +0 -0
- package/src/assets/icon-cursor-64-default.png +0 -0
- package/src/assets/icon-cursor-64-hover.png +0 -0
- package/src/assets/icon-delete-trash-64-active.png +0 -0
- package/src/assets/icon-delete-trash-64-default.png +0 -0
- package/src/assets/icon-delete-trash-64-hover.png +0 -0
- package/src/assets/icon-eraser-64-active.png +0 -0
- package/src/assets/icon-eraser-64-default.png +0 -0
- package/src/assets/icon-eraser-64-hover.png +0 -0
- package/src/assets/icon-font-style-64-active.png +0 -0
- package/src/assets/icon-font-style-64-default.png +0 -0
- package/src/assets/icon-font-style-64-hover.png +0 -0
- package/src/assets/icon-formula-fx-64-active.png +0 -0
- package/src/assets/icon-formula-fx-64-default.png +0 -0
- package/src/assets/icon-formula-fx-64-hover.png +0 -0
- package/src/assets/icon-highlighter-64-active.png +0 -0
- package/src/assets/icon-highlighter-64-default.png +0 -0
- package/src/assets/icon-highlighter-64-hover.png +0 -0
- package/src/assets/icon-installing-64-active.png +0 -0
- package/src/assets/icon-installing-64-default.png +0 -0
- package/src/assets/icon-installing-64-hover.png +0 -0
- package/src/assets/icon-line-64-active.png +0 -0
- package/src/assets/icon-line-64-default.png +0 -0
- package/src/assets/icon-line-64-hover.png +0 -0
- package/src/assets/icon-minus-64-active.png +0 -0
- package/src/assets/icon-minus-64-default.png +0 -0
- package/src/assets/icon-minus-64-hover.png +0 -0
- package/src/assets/icon-pen-64-active.png +0 -0
- package/src/assets/icon-pen-64-default.png +0 -0
- package/src/assets/icon-pen-64-hover.png +0 -0
- package/src/assets/icon-pin-64-active.png +0 -0
- package/src/assets/icon-pin-64-default.png +0 -0
- package/src/assets/icon-pin-64-hover.png +0 -0
- package/src/assets/icon-plus-64-active.png +0 -0
- package/src/assets/icon-plus-64-default.png +0 -0
- package/src/assets/icon-plus-64-hover.png +0 -0
- package/src/assets/icon-return-64-active.png +0 -0
- package/src/assets/icon-return-64-default.png +0 -0
- package/src/assets/icon-return-64-hover.png +0 -0
- package/src/assets/icon-select-active.png +0 -0
- package/src/assets/icon-select-default.png +0 -0
- package/src/assets/icon-select-hover.png +0 -0
- package/src/assets/icon-square-64-active.png +0 -0
- package/src/assets/icon-square-64-default.png +0 -0
- package/src/assets/icon-square-64-hover.png +0 -0
- package/src/assets/icon-text-64-active.png +0 -0
- package/src/assets/icon-text-64-default.png +0 -0
- package/src/assets/icon-text-64-hover.png +0 -0
- package/src/assets/icon-u-turn-to-right-64-active.png +0 -0
- package/src/assets/icon-u-turn-to-right-64-default.png +0 -0
- package/src/assets/icon-u-turn-to-right-64-hover.png +0 -0
- package/src/components/BrushToolbar.tsx +0 -72
- package/src/components/LatexEditor.tsx +0 -247
- package/src/components/LatexToolbar.tsx +0 -68
- package/src/components/OCRPreview.tsx +0 -234
- package/src/components/OCRToolbar.tsx +0 -46
- package/src/components/RangeToolbar.tsx +0 -33
- package/src/components/SelDelToolbar.tsx +0 -52
- package/src/components/TextEditor.tsx +0 -38
- package/src/components/TextToolbar.tsx +0 -271
- package/src/components/ToolsToolbar.tsx +0 -114
- package/src/constants/fonts.ts +0 -14
- package/src/constants/latexCategories.ts +0 -11
- package/src/constants/latexSymbols.ts +0 -38
- package/src/hooks/useDrawingHandlers.ts +0 -675
- package/src/hooks/useDrawingState.ts +0 -59
- package/src/hooks/useHistory.ts +0 -52
- package/src/hooks/useKeyboard.ts +0 -96
- package/src/hooks/useLatexSymbols.ts +0 -79
- package/src/hooks/useOutsideClick.ts +0 -25
- package/src/hooks/useTextEditing.ts +0 -131
- package/src/hooks/useTextFormatting.ts +0 -153
- package/src/hooks/useWebSocket.ts +0 -202
- package/src/index.ts +0 -4
- package/src/main.tsx +0 -18
- package/src/services/api.ts +0 -81
- package/src/services/statsService.ts +0 -165
- package/src/services/widgetBridge.ts +0 -73
- package/src/types.ts +0 -80
- package/src/utils/colorUtils.ts +0 -6
- package/src/utils/latexUtils.ts +0 -48
- package/src/utils/shapeUtils.ts +0 -151
- package/tsconfig.app.json +0 -28
- package/tsconfig.json +0 -14
- package/tsconfig.node.json +0 -26
- package/vite.config.ts +0 -84
- /package/{dist-app → dist}/icon-align-64-default.png +0 -0
- /package/{dist-app → dist}/icon-align-justify-64-active.png +0 -0
- /package/{dist-app → dist}/icon-align-justify-64-default 1.png +0 -0
- /package/{dist-app → dist}/icon-align-justify-64-default.png +0 -0
- /package/{dist-app → dist}/icon-align-justify-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-align-left-64-active.png +0 -0
- /package/{dist-app → dist}/icon-align-left-64-default 1.png +0 -0
- /package/{dist-app → dist}/icon-align-left-64-default.png +0 -0
- /package/{dist-app → dist}/icon-align-left-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-align-right-64-active.png +0 -0
- /package/{dist-app → dist}/icon-align-right-64-default.png +0 -0
- /package/{dist-app → dist}/icon-align-right-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-bold-64-active.png +0 -0
- /package/{dist-app → dist}/icon-bold-64-default 1.png +0 -0
- /package/{dist-app → dist}/icon-bold-64-default.png +0 -0
- /package/{dist-app → dist}/icon-bold-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-broom-64-active.png +0 -0
- /package/{dist-app → dist}/icon-broom-64-default.png +0 -0
- /package/{dist-app → dist}/icon-broom-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-cancel-64-active.png +0 -0
- /package/{dist-app → dist}/icon-cancel-64-default.png +0 -0
- /package/{dist-app → dist}/icon-cancel-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-change-64-active.png +0 -0
- /package/{dist-app → dist}/icon-change-64-default.png +0 -0
- /package/{dist-app → dist}/icon-change-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-circle-64-active.png +0 -0
- /package/{dist-app → dist}/icon-circle-64-default.png +0 -0
- /package/{dist-app → dist}/icon-circle-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-close-64-active.png +0 -0
- /package/{dist-app → dist}/icon-close-64-default.png +0 -0
- /package/{dist-app → dist}/icon-close-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-cursor-64-active.png +0 -0
- /package/{dist-app → dist}/icon-cursor-64-default.png +0 -0
- /package/{dist-app → dist}/icon-cursor-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-delete-trash-64-active.png +0 -0
- /package/{dist-app → dist}/icon-delete-trash-64-default.png +0 -0
- /package/{dist-app → dist}/icon-delete-trash-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-done-64-active.png +0 -0
- /package/{dist-app → dist}/icon-done-64-default.png +0 -0
- /package/{dist-app → dist}/icon-done-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-edit-text-file-64-active.png +0 -0
- /package/{dist-app → dist}/icon-edit-text-file-64-default 1.png +0 -0
- /package/{dist-app → dist}/icon-edit-text-file-64-default.png +0 -0
- /package/{dist-app → dist}/icon-edit-text-file-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-eraser-64-active.png +0 -0
- /package/{dist-app → dist}/icon-eraser-64-default.png +0 -0
- /package/{dist-app → dist}/icon-eraser-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-font-style-64-active.png +0 -0
- /package/{dist-app → dist}/icon-font-style-64-default.png +0 -0
- /package/{dist-app → dist}/icon-font-style-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-formula-fx-64-active.png +0 -0
- /package/{dist-app → dist}/icon-formula-fx-64-default.png +0 -0
- /package/{dist-app → dist}/icon-formula-fx-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-highlighter-64-active.png +0 -0
- /package/{dist-app → dist}/icon-highlighter-64-default.png +0 -0
- /package/{dist-app → dist}/icon-highlighter-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-installing-64-active.png +0 -0
- /package/{dist-app → dist}/icon-installing-64-default.png +0 -0
- /package/{dist-app → dist}/icon-installing-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-italic-64-active.png +0 -0
- /package/{dist-app → dist}/icon-italic-64-default 1.png +0 -0
- /package/{dist-app → dist}/icon-italic-64-default.png +0 -0
- /package/{dist-app → dist}/icon-italic-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-line-64-active.png +0 -0
- /package/{dist-app → dist}/icon-line-64-default.png +0 -0
- /package/{dist-app → dist}/icon-line-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-pen-64-active.png +0 -0
- /package/{dist-app → dist}/icon-pen-64-default.png +0 -0
- /package/{dist-app → dist}/icon-pen-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-pin-64-active.png +0 -0
- /package/{dist-app → dist}/icon-pin-64-default.png +0 -0
- /package/{dist-app → dist}/icon-pin-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-redo-64-active.png +0 -0
- /package/{dist-app → dist}/icon-redo-64-default.png +0 -0
- /package/{dist-app → dist}/icon-redo-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-return-64-active.png +0 -0
- /package/{dist-app → dist}/icon-return-64-default.png +0 -0
- /package/{dist-app → dist}/icon-return-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-select-active.png +0 -0
- /package/{dist-app → dist}/icon-select-default.png +0 -0
- /package/{dist-app → dist}/icon-select-hover.png +0 -0
- /package/{dist-app → dist}/icon-square-64-active.png +0 -0
- /package/{dist-app → dist}/icon-square-64-default.png +0 -0
- /package/{dist-app → dist}/icon-square-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-strikethrough-64-active.png +0 -0
- /package/{dist-app → dist}/icon-strikethrough-64-default 1.png +0 -0
- /package/{dist-app → dist}/icon-strikethrough-64-default.png +0 -0
- /package/{dist-app → dist}/icon-strikethrough-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-text-64-active.png +0 -0
- /package/{dist-app → dist}/icon-text-64-default.png +0 -0
- /package/{dist-app → dist}/icon-text-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-u-turn-to-right-64-active.png +0 -0
- /package/{dist-app → dist}/icon-u-turn-to-right-64-default.png +0 -0
- /package/{dist-app → dist}/icon-u-turn-to-right-64-hover.png +0 -0
- /package/{dist-app → dist}/icon-under-64-active.png +0 -0
- /package/{dist-app → dist}/icon-under-64-default 1.png +0 -0
- /package/{dist-app → dist}/icon-under-64-default.png +0 -0
- /package/{dist-app → dist}/icon-under-64-hover.png +0 -0
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const h of o)if(h.type==="childList")for(const d of h.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function a(o){const h={};return o.integrity&&(h.integrity=o.integrity),o.referrerPolicy&&(h.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?h.credentials="include":o.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function i(o){if(o.ep)return;o.ep=!0;const h=a(o);fetch(o.href,h)}})();function Qd(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var X4={exports:{}},lh={};var l3;function X7(){if(l3)return lh;l3=1;var s=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(i,o,h){var d=null;if(h!==void 0&&(d=""+h),o.key!==void 0&&(d=""+o.key),"key"in o){h={};for(var g in o)g!=="key"&&(h[g]=o[g])}else h=o;return o=h.ref,{$$typeof:s,type:i,key:d,ref:o!==void 0?o:null,props:h}}return lh.Fragment=t,lh.jsx=a,lh.jsxs=a,lh}var i3;function j7(){return i3||(i3=1,X4.exports=X7()),X4.exports}var At=j7(),j4={exports:{}},ye={};var r3;function V7(){if(r3)return ye;r3=1;var s=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),z=Symbol.iterator;function D(G){return G===null||typeof G!="object"?null:(G=z&&G[z]||G["@@iterator"],typeof G=="function"?G:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,U={};function B(G,I,gt){this.props=G,this.context=I,this.refs=U,this.updater=gt||C}B.prototype.isReactComponent={},B.prototype.setState=function(G,I){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,I,"setState")},B.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function X(){}X.prototype=B.prototype;function k(G,I,gt){this.props=G,this.context=I,this.refs=U,this.updater=gt||C}var j=k.prototype=new X;j.constructor=k,H(j,B.prototype),j.isPureReactComponent=!0;var nt=Array.isArray;function ut(){}var st={H:null,A:null,T:null,S:null},ot=Object.prototype.hasOwnProperty;function St(G,I,gt){var Bt=gt.ref;return{$$typeof:s,type:G,key:I,ref:Bt!==void 0?Bt:null,props:gt}}function Zt(G,I){return St(G.type,I,G.props)}function qt(G){return typeof G=="object"&&G!==null&&G.$$typeof===s}function Nt(G){var I={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(gt){return I[gt]})}var $t=/\/+/g;function Vt(G,I){return typeof G=="object"&&G!==null&&G.key!=null?Nt(""+G.key):I.toString(36)}function Et(G){switch(G.status){case"fulfilled":return G.value;case"rejected":throw G.reason;default:switch(typeof G.status=="string"?G.then(ut,ut):(G.status="pending",G.then(function(I){G.status==="pending"&&(G.status="fulfilled",G.value=I)},function(I){G.status==="pending"&&(G.status="rejected",G.reason=I)})),G.status){case"fulfilled":return G.value;case"rejected":throw G.reason}}throw G}function K(G,I,gt,Bt,wt){var Mt=typeof G;(Mt==="undefined"||Mt==="boolean")&&(G=null);var Xt=!1;if(G===null)Xt=!0;else switch(Mt){case"bigint":case"string":case"number":Xt=!0;break;case"object":switch(G.$$typeof){case s:case t:Xt=!0;break;case E:return Xt=G._init,K(Xt(G._payload),I,gt,Bt,wt)}}if(Xt)return wt=wt(G),Xt=Bt===""?"."+Vt(G,0):Bt,nt(wt)?(gt="",Xt!=null&&(gt=Xt.replace($t,"$&/")+"/"),K(wt,I,gt,"",function(ze){return ze})):wt!=null&&(qt(wt)&&(wt=Zt(wt,gt+(wt.key==null||G&&G.key===wt.key?"":(""+wt.key).replace($t,"$&/")+"/")+Xt)),I.push(wt)),1;Xt=0;var It=Bt===""?".":Bt+":";if(nt(G))for(var Pt=0;Pt<G.length;Pt++)Bt=G[Pt],Mt=It+Vt(Bt,Pt),Xt+=K(Bt,I,gt,Mt,wt);else if(Pt=D(G),typeof Pt=="function")for(G=Pt.call(G),Pt=0;!(Bt=G.next()).done;)Bt=Bt.value,Mt=It+Vt(Bt,Pt++),Xt+=K(Bt,I,gt,Mt,wt);else if(Mt==="object"){if(typeof G.then=="function")return K(Et(G),I,gt,Bt,wt);throw I=String(G),Error("Objects are not valid as a React child (found: "+(I==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":I)+"). If you meant to render a collection of children, use an array instead.")}return Xt}function vt(G,I,gt){if(G==null)return G;var Bt=[],wt=0;return K(G,Bt,"","",function(Mt){return I.call(gt,Mt,wt++)}),Bt}function mt(G){if(G._status===-1){var I=G._result;I=I(),I.then(function(gt){(G._status===0||G._status===-1)&&(G._status=1,G._result=gt)},function(gt){(G._status===0||G._status===-1)&&(G._status=2,G._result=gt)}),G._status===-1&&(G._status=0,G._result=I)}if(G._status===1)return G._result.default;throw G._result}var Lt=typeof reportError=="function"?reportError:function(G){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var I=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof G=="object"&&G!==null&&typeof G.message=="string"?String(G.message):String(G),error:G});if(!window.dispatchEvent(I))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",G);return}console.error(G)},xt={map:vt,forEach:function(G,I,gt){vt(G,function(){I.apply(this,arguments)},gt)},count:function(G){var I=0;return vt(G,function(){I++}),I},toArray:function(G){return vt(G,function(I){return I})||[]},only:function(G){if(!qt(G))throw Error("React.Children.only expected to receive a single React element child.");return G}};return ye.Activity=_,ye.Children=xt,ye.Component=B,ye.Fragment=a,ye.Profiler=o,ye.PureComponent=k,ye.StrictMode=i,ye.Suspense=p,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=st,ye.__COMPILER_RUNTIME={__proto__:null,c:function(G){return st.H.useMemoCache(G)}},ye.cache=function(G){return function(){return G.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(G,I,gt){if(G==null)throw Error("The argument must be a React element, but you passed "+G+".");var Bt=H({},G.props),wt=G.key;if(I!=null)for(Mt in I.key!==void 0&&(wt=""+I.key),I)!ot.call(I,Mt)||Mt==="key"||Mt==="__self"||Mt==="__source"||Mt==="ref"&&I.ref===void 0||(Bt[Mt]=I[Mt]);var Mt=arguments.length-2;if(Mt===1)Bt.children=gt;else if(1<Mt){for(var Xt=Array(Mt),It=0;It<Mt;It++)Xt[It]=arguments[It+2];Bt.children=Xt}return St(G.type,wt,Bt)},ye.createContext=function(G){return G={$$typeof:d,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null},G.Provider=G,G.Consumer={$$typeof:h,_context:G},G},ye.createElement=function(G,I,gt){var Bt,wt={},Mt=null;if(I!=null)for(Bt in I.key!==void 0&&(Mt=""+I.key),I)ot.call(I,Bt)&&Bt!=="key"&&Bt!=="__self"&&Bt!=="__source"&&(wt[Bt]=I[Bt]);var Xt=arguments.length-2;if(Xt===1)wt.children=gt;else if(1<Xt){for(var It=Array(Xt),Pt=0;Pt<Xt;Pt++)It[Pt]=arguments[Pt+2];wt.children=It}if(G&&G.defaultProps)for(Bt in Xt=G.defaultProps,Xt)wt[Bt]===void 0&&(wt[Bt]=Xt[Bt]);return St(G,Mt,wt)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(G){return{$$typeof:g,render:G}},ye.isValidElement=qt,ye.lazy=function(G){return{$$typeof:E,_payload:{_status:-1,_result:G},_init:mt}},ye.memo=function(G,I){return{$$typeof:b,type:G,compare:I===void 0?null:I}},ye.startTransition=function(G){var I=st.T,gt={};st.T=gt;try{var Bt=G(),wt=st.S;wt!==null&&wt(gt,Bt),typeof Bt=="object"&&Bt!==null&&typeof Bt.then=="function"&&Bt.then(ut,Lt)}catch(Mt){Lt(Mt)}finally{I!==null&>.types!==null&&(I.types=gt.types),st.T=I}},ye.unstable_useCacheRefresh=function(){return st.H.useCacheRefresh()},ye.use=function(G){return st.H.use(G)},ye.useActionState=function(G,I,gt){return st.H.useActionState(G,I,gt)},ye.useCallback=function(G,I){return st.H.useCallback(G,I)},ye.useContext=function(G){return st.H.useContext(G)},ye.useDebugValue=function(){},ye.useDeferredValue=function(G,I){return st.H.useDeferredValue(G,I)},ye.useEffect=function(G,I){return st.H.useEffect(G,I)},ye.useEffectEvent=function(G){return st.H.useEffectEvent(G)},ye.useId=function(){return st.H.useId()},ye.useImperativeHandle=function(G,I,gt){return st.H.useImperativeHandle(G,I,gt)},ye.useInsertionEffect=function(G,I){return st.H.useInsertionEffect(G,I)},ye.useLayoutEffect=function(G,I){return st.H.useLayoutEffect(G,I)},ye.useMemo=function(G,I){return st.H.useMemo(G,I)},ye.useOptimistic=function(G,I){return st.H.useOptimistic(G,I)},ye.useReducer=function(G,I,gt){return st.H.useReducer(G,I,gt)},ye.useRef=function(G){return st.H.useRef(G)},ye.useState=function(G){return st.H.useState(G)},ye.useSyncExternalStore=function(G,I,gt){return st.H.useSyncExternalStore(G,I,gt)},ye.useTransition=function(){return st.H.useTransition()},ye.version="19.2.0",ye}var s3;function F2(){return s3||(s3=1,j4.exports=V7()),j4.exports}var bt=F2();const z0=Qd(bt);var V4={exports:{}},ih={},Q4={exports:{}},K4={};var u3;function Q7(){return u3||(u3=1,(function(s){function t(K,vt){var mt=K.length;K.push(vt);t:for(;0<mt;){var Lt=mt-1>>>1,xt=K[Lt];if(0<o(xt,vt))K[Lt]=vt,K[mt]=xt,mt=Lt;else break t}}function a(K){return K.length===0?null:K[0]}function i(K){if(K.length===0)return null;var vt=K[0],mt=K.pop();if(mt!==vt){K[0]=mt;t:for(var Lt=0,xt=K.length,G=xt>>>1;Lt<G;){var I=2*(Lt+1)-1,gt=K[I],Bt=I+1,wt=K[Bt];if(0>o(gt,mt))Bt<xt&&0>o(wt,gt)?(K[Lt]=wt,K[Bt]=mt,Lt=Bt):(K[Lt]=gt,K[I]=mt,Lt=I);else if(Bt<xt&&0>o(wt,mt))K[Lt]=wt,K[Bt]=mt,Lt=Bt;else break t}}return vt}function o(K,vt){var mt=K.sortIndex-vt.sortIndex;return mt!==0?mt:K.id-vt.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;s.unstable_now=function(){return h.now()}}else{var d=Date,g=d.now();s.unstable_now=function(){return d.now()-g}}var p=[],b=[],E=1,_=null,z=3,D=!1,C=!1,H=!1,U=!1,B=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function j(K){for(var vt=a(b);vt!==null;){if(vt.callback===null)i(b);else if(vt.startTime<=K)i(b),vt.sortIndex=vt.expirationTime,t(p,vt);else break;vt=a(b)}}function nt(K){if(H=!1,j(K),!C)if(a(p)!==null)C=!0,ut||(ut=!0,Nt());else{var vt=a(b);vt!==null&&Et(nt,vt.startTime-K)}}var ut=!1,st=-1,ot=5,St=-1;function Zt(){return U?!0:!(s.unstable_now()-St<ot)}function qt(){if(U=!1,ut){var K=s.unstable_now();St=K;var vt=!0;try{t:{C=!1,H&&(H=!1,X(st),st=-1),D=!0;var mt=z;try{e:{for(j(K),_=a(p);_!==null&&!(_.expirationTime>K&&Zt());){var Lt=_.callback;if(typeof Lt=="function"){_.callback=null,z=_.priorityLevel;var xt=Lt(_.expirationTime<=K);if(K=s.unstable_now(),typeof xt=="function"){_.callback=xt,j(K),vt=!0;break e}_===a(p)&&i(p),j(K)}else i(p);_=a(p)}if(_!==null)vt=!0;else{var G=a(b);G!==null&&Et(nt,G.startTime-K),vt=!1}}break t}finally{_=null,z=mt,D=!1}vt=void 0}}finally{vt?Nt():ut=!1}}}var Nt;if(typeof k=="function")Nt=function(){k(qt)};else if(typeof MessageChannel<"u"){var $t=new MessageChannel,Vt=$t.port2;$t.port1.onmessage=qt,Nt=function(){Vt.postMessage(null)}}else Nt=function(){B(qt,0)};function Et(K,vt){st=B(function(){K(s.unstable_now())},vt)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(K){K.callback=null},s.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ot=0<K?Math.floor(1e3/K):5},s.unstable_getCurrentPriorityLevel=function(){return z},s.unstable_next=function(K){switch(z){case 1:case 2:case 3:var vt=3;break;default:vt=z}var mt=z;z=vt;try{return K()}finally{z=mt}},s.unstable_requestPaint=function(){U=!0},s.unstable_runWithPriority=function(K,vt){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var mt=z;z=K;try{return vt()}finally{z=mt}},s.unstable_scheduleCallback=function(K,vt,mt){var Lt=s.unstable_now();switch(typeof mt=="object"&&mt!==null?(mt=mt.delay,mt=typeof mt=="number"&&0<mt?Lt+mt:Lt):mt=Lt,K){case 1:var xt=-1;break;case 2:xt=250;break;case 5:xt=1073741823;break;case 4:xt=1e4;break;default:xt=5e3}return xt=mt+xt,K={id:E++,callback:vt,priorityLevel:K,startTime:mt,expirationTime:xt,sortIndex:-1},mt>Lt?(K.sortIndex=mt,t(b,K),a(p)===null&&K===a(b)&&(H?(X(st),st=-1):H=!0,Et(nt,mt-Lt))):(K.sortIndex=xt,t(p,K),C||D||(C=!0,ut||(ut=!0,Nt()))),K},s.unstable_shouldYield=Zt,s.unstable_wrapCallback=function(K){var vt=z;return function(){var mt=z;z=vt;try{return K.apply(this,arguments)}finally{z=mt}}}})(K4)),K4}var o3;function Kd(){return o3||(o3=1,Q4.exports=Q7()),Q4.exports}var Z4={exports:{}},mn={};var c3;function K7(){if(c3)return mn;c3=1;var s=F2();function t(p){var b="https://react.dev/errors/"+p;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)b+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+p+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var i={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function h(p,b,E){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:_==null?null:""+_,children:p,containerInfo:b,implementation:E}}var d=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,b){if(p==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}return mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,mn.createPortal=function(p,b){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error(t(299));return h(p,b,null,E)},mn.flushSync=function(p){var b=d.T,E=i.p;try{if(d.T=null,i.p=2,p)return p()}finally{d.T=b,i.p=E,i.d.f()}},mn.preconnect=function(p,b){typeof p=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,i.d.C(p,b))},mn.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},mn.preinit=function(p,b){if(typeof p=="string"&&b&&typeof b.as=="string"){var E=b.as,_=g(E,b.crossOrigin),z=typeof b.integrity=="string"?b.integrity:void 0,D=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;E==="style"?i.d.S(p,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:_,integrity:z,fetchPriority:D}):E==="script"&&i.d.X(p,{crossOrigin:_,integrity:z,fetchPriority:D,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},mn.preinitModule=function(p,b){if(typeof p=="string")if(typeof b=="object"&&b!==null){if(b.as==null||b.as==="script"){var E=g(b.as,b.crossOrigin);i.d.M(p,{crossOrigin:E,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})}}else b==null&&i.d.M(p)},mn.preload=function(p,b){if(typeof p=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){var E=b.as,_=g(E,b.crossOrigin);i.d.L(p,E,{crossOrigin:_,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},mn.preloadModule=function(p,b){if(typeof p=="string")if(b){var E=g(b.as,b.crossOrigin);i.d.m(p,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:E,integrity:typeof b.integrity=="string"?b.integrity:void 0})}else i.d.m(p)},mn.requestFormReset=function(p){i.d.r(p)},mn.unstable_batchedUpdates=function(p,b){return p(b)},mn.useFormState=function(p,b,E){return d.H.useFormState(p,b,E)},mn.useFormStatus=function(){return d.H.useHostTransitionStatus()},mn.version="19.2.0",mn}var h3;function Z7(){if(h3)return Z4.exports;h3=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(t){console.error(t)}}return s(),Z4.exports=K7(),Z4.exports}var f3;function J7(){if(f3)return ih;f3=1;var s=Kd(),t=F2(),a=Z7();function i(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)n+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var n=e,u=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(u=n.return),e=n.return;while(e)}return n.tag===3?u:null}function d(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function p(e){if(h(e)!==e)throw Error(i(188))}function b(e){var n=e.alternate;if(!n){if(n=h(e),n===null)throw Error(i(188));return n!==e?null:e}for(var u=e,c=n;;){var v=u.return;if(v===null)break;var y=v.alternate;if(y===null){if(c=v.return,c!==null){u=c;continue}break}if(v.child===y.child){for(y=v.child;y;){if(y===u)return p(v),e;if(y===c)return p(v),n;y=y.sibling}throw Error(i(188))}if(u.return!==c.return)u=v,c=y;else{for(var A=!1,R=v.child;R;){if(R===u){A=!0,u=v,c=y;break}if(R===c){A=!0,c=v,u=y;break}R=R.sibling}if(!A){for(R=y.child;R;){if(R===u){A=!0,u=y,c=v;break}if(R===c){A=!0,c=y,u=v;break}R=R.sibling}if(!A)throw Error(i(189))}}if(u.alternate!==c)throw Error(i(190))}if(u.tag!==3)throw Error(i(188));return u.stateNode.current===u?e:n}function E(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=E(e),n!==null)return n;e=e.sibling}return null}var _=Object.assign,z=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),k=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),nt=Symbol.for("react.suspense"),ut=Symbol.for("react.suspense_list"),st=Symbol.for("react.memo"),ot=Symbol.for("react.lazy"),St=Symbol.for("react.activity"),Zt=Symbol.for("react.memo_cache_sentinel"),qt=Symbol.iterator;function Nt(e){return e===null||typeof e!="object"?null:(e=qt&&e[qt]||e["@@iterator"],typeof e=="function"?e:null)}var $t=Symbol.for("react.client.reference");function Vt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===$t?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case B:return"Profiler";case U:return"StrictMode";case nt:return"Suspense";case ut:return"SuspenseList";case St:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case k:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case j:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case st:return n=e.displayName||null,n!==null?n:Vt(e.type)||"Memo";case ot:n=e._payload,e=e._init;try{return Vt(e(n))}catch{}}return null}var Et=Array.isArray,K=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,vt=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,mt={pending:!1,data:null,method:null,action:null},Lt=[],xt=-1;function G(e){return{current:e}}function I(e){0>xt||(e.current=Lt[xt],Lt[xt]=null,xt--)}function gt(e,n){xt++,Lt[xt]=e.current,e.current=n}var Bt=G(null),wt=G(null),Mt=G(null),Xt=G(null);function It(e,n){switch(gt(Mt,n),gt(wt,e),gt(Bt,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?z5(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=z5(n),e=C5(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}I(Bt),gt(Bt,e)}function Pt(){I(Bt),I(wt),I(Mt)}function ze(e){e.memoizedState!==null&>(Xt,e);var n=Bt.current,u=C5(n,e.type);n!==u&&(gt(wt,e),gt(Bt,u))}function re(e){wt.current===e&&(I(Bt),I(wt)),Xt.current===e&&(I(Xt),th._currentValue=mt)}var me,Je;function De(e){if(me===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);me=n&&n[1]||"",Je=-1<u.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+me+e+Je}var ra=!1;function sa(e,n){if(!e||ra)return"";ra=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(n){var yt=function(){throw Error()};if(Object.defineProperty(yt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(yt,[])}catch(ft){var rt=ft}Reflect.construct(e,[],yt)}else{try{yt.call()}catch(ft){rt=ft}e.call(yt.prototype)}}else{try{throw Error()}catch(ft){rt=ft}(yt=e())&&typeof yt.catch=="function"&&yt.catch(function(){})}}catch(ft){if(ft&&rt&&typeof ft.stack=="string")return[ft.stack,rt.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=c.DetermineComponentFrameRoot(),A=y[0],R=y[1];if(A&&R){var V=A.split(`
|
|
4
|
-
`),lt=R.split(`
|
|
5
|
-
`);for(v=c=0;c<V.length&&!V[c].includes("DetermineComponentFrameRoot");)c++;for(;v<lt.length&&!lt[v].includes("DetermineComponentFrameRoot");)v++;if(c===V.length||v===lt.length)for(c=V.length-1,v=lt.length-1;1<=c&&0<=v&&V[c]!==lt[v];)v--;for(;1<=c&&0<=v;c--,v--)if(V[c]!==lt[v]){if(c!==1||v!==1)do if(c--,v--,0>v||V[c]!==lt[v]){var dt=`
|
|
6
|
-
`+V[c].replace(" at new "," at ");return e.displayName&&dt.includes("<anonymous>")&&(dt=dt.replace("<anonymous>",e.displayName)),dt}while(1<=c&&0<=v);break}}}finally{ra=!1,Error.prepareStackTrace=u}return(u=e?e.displayName||e.name:"")?De(u):""}function be(e,n){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==n&&n!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return sa(e.type,!1);case 11:return sa(e.type.render,!1);case 1:return sa(e.type,!0);case 31:return De("Activity");default:return""}}function Ie(e){try{var n="",u=null;do n+=be(e,u),u=e,e=e.return;while(e);return n}catch(c){return`
|
|
7
|
-
Error generating stack: `+c.message+`
|
|
8
|
-
`+c.stack}}var u0=Object.prototype.hasOwnProperty,o0=s.unstable_scheduleCallback,w0=s.unstable_cancelCallback,X0=s.unstable_shouldYield,Ue=s.unstable_requestPaint,ea=s.unstable_now,en=s.unstable_getCurrentPriorityLevel,Ua=s.unstable_ImmediatePriority,xa=s.unstable_UserBlockingPriority,p0=s.unstable_NormalPriority,qa=s.unstable_LowPriority,La=s.unstable_IdlePriority,Fl=s.log,es=s.unstable_setDisableYieldValue,fl=null,U0=null;function t0(e){if(typeof Fl=="function"&&es(e),U0&&typeof U0.setStrictMode=="function")try{U0.setStrictMode(fl,e)}catch{}}var j0=Math.clz32?Math.clz32:so,as=Math.log,Nc=Math.LN2;function so(e){return e>>>=0,e===0?32:31-(as(e)/Nc|0)|0}var ns=256,Ei=262144,Wl=4194304;function dl(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Il(e,n,u){var c=e.pendingLanes;if(c===0)return 0;var v=0,y=e.suspendedLanes,A=e.pingedLanes;e=e.warmLanes;var R=c&134217727;return R!==0?(c=R&~y,c!==0?v=dl(c):(A&=R,A!==0?v=dl(A):u||(u=R&~e,u!==0&&(v=dl(u))))):(R=c&~y,R!==0?v=dl(R):A!==0?v=dl(A):u||(u=c&~e,u!==0&&(v=dl(u)))),v===0?0:n!==0&&n!==v&&(n&y)===0&&(y=v&-v,u=n&-n,y>=u||y===32&&(u&4194048)!==0)?n:v}function _i(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Mi(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gn(){var e=Wl;return Wl<<=1,(Wl&62914560)===0&&(Wl=4194304),e}function Ai(e){for(var n=[],u=0;31>u;u++)n.push(e);return n}function Pl(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ls(e,n,u,c,v,y){var A=e.pendingLanes;e.pendingLanes=u,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=u,e.entangledLanes&=u,e.errorRecoveryDisabledLanes&=u,e.shellSuspendCounter=0;var R=e.entanglements,V=e.expirationTimes,lt=e.hiddenUpdates;for(u=A&~u;0<u;){var dt=31-j0(u),yt=1<<dt;R[dt]=0,V[dt]=-1;var rt=lt[dt];if(rt!==null)for(lt[dt]=null,dt=0;dt<rt.length;dt++){var ft=rt[dt];ft!==null&&(ft.lane&=-536870913)}u&=~yt}c!==0&&zi(e,c,0),y!==0&&v===0&&e.tag!==0&&(e.suspendedLanes|=y&~(A&~n))}function zi(e,n,u){e.pendingLanes|=n,e.suspendedLanes&=~n;var c=31-j0(n);e.entangledLanes|=n,e.entanglements[c]=e.entanglements[c]|1073741824|u&261930}function ml(e,n){var u=e.entangledLanes|=n;for(e=e.entanglements;u;){var c=31-j0(u),v=1<<c;v&n|e[c]&n&&(e[c]|=n),u&=~v}}function Ci(e,n){var u=n&-n;return u=(u&42)!==0?1:gl(u),(u&(e.suspendedLanes|n))!==0?0:u}function gl(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function $l(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function is(){var e=vt.p;return e!==0?e:(e=window.event,e===void 0?32:I5(e.type))}function pl(e,n){var u=vt.p;try{return vt.p=e,n()}finally{vt.p=u}}var wn=Math.random().toString(36).slice(2),ka="__reactFiber$"+wn,v0="__reactProps$"+wn,vl="__reactContainer$"+wn,Dn="__reactEvents$"+wn,yl="__reactListeners$"+wn,an="__reactHandles$"+wn,hr="__reactResources$"+wn,Nn="__reactMarker$"+wn;function bl(e){delete e[ka],delete e[v0],delete e[Dn],delete e[yl],delete e[an]}function Sl(e){var n=e[ka];if(n)return n;for(var u=e.parentNode;u;){if(n=u[vl]||u[ka]){if(u=n.alternate,n.child!==null||u!==null&&u.child!==null)for(e=H5(e);e!==null;){if(u=e[ka])return u;e=H5(e)}return n}e=u,u=e.parentNode}return null}function W(e){if(e=e[ka]||e[vl]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Z(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(i(33))}function jt(e){var n=e[hr];return n||(n=e[hr]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Qt(e){e[Nn]=!0}var ae=new Set,Ee={};function Se(e,n){Oe(e,n),Oe(e+"Capture",n)}function Oe(e,n){for(Ee[e]=n,e=0;e<n.length;e++)ae.add(n[e])}var Xe=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ca={},xe={};function ha(e){return u0.call(xe,e)?!0:u0.call(ca,e)?!1:Xe.test(e)?xe[e]=!0:(ca[e]=!0,!1)}function e0(e,n,u){if(ha(n))if(u===null)e.removeAttribute(n);else{switch(typeof u){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var c=n.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+u)}}function nn(e,n,u){if(u===null)e.removeAttribute(n);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+u)}}function Fe(e,n,u,c){if(c===null)e.removeAttribute(u);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(u);return}e.setAttributeNS(n,u,""+c)}}function a0(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $n(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function tl(e,n,u){var c=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var v=c.get,y=c.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return v.call(this)},set:function(A){u=""+A,y.call(this,A)}}),Object.defineProperty(e,n,{enumerable:c.enumerable}),{getValue:function(){return u},setValue:function(A){u=""+A},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ti(e){if(!e._valueTracker){var n=$n(e)?"checked":"value";e._valueTracker=tl(e,n,""+e[n])}}function y0(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var u=n.getValue(),c="";return e&&(c=$n(e)?e.checked?"true":"false":e.value),e=c,e!==u?(n.setValue(e),!0):!1}function fa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var rs=/[\n"\\]/g;function b0(e){return e.replace(rs,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function ss(e,n,u,c,v,y,A,R){e.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.type=A:e.removeAttribute("type"),n!=null?A==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+a0(n)):e.value!==""+a0(n)&&(e.value=""+a0(n)):A!=="submit"&&A!=="reset"||e.removeAttribute("value"),n!=null?el(e,A,a0(n)):u!=null?el(e,A,a0(u)):c!=null&&e.removeAttribute("value"),v==null&&y!=null&&(e.defaultChecked=!!y),v!=null&&(e.checked=v&&typeof v!="function"&&typeof v!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?e.name=""+a0(R):e.removeAttribute("name")}function uo(e,n,u,c,v,y,A,R){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.type=y),n!=null||u!=null){if(!(y!=="submit"&&y!=="reset"||n!=null)){ti(e);return}u=u!=null?""+a0(u):"",n=n!=null?""+a0(n):u,R||n===e.value||(e.value=n),e.defaultValue=n}c=c??v,c=typeof c!="function"&&typeof c!="symbol"&&!!c,e.checked=R?e.checked:!!c,e.defaultChecked=!!c,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(e.name=A),ti(e)}function el(e,n,u){n==="number"&&fa(e.ownerDocument)===e||e.defaultValue===""+u||(e.defaultValue=""+u)}function ei(e,n,u,c){if(e=e.options,n){n={};for(var v=0;v<u.length;v++)n["$"+u[v]]=!0;for(u=0;u<e.length;u++)v=n.hasOwnProperty("$"+e[u].value),e[u].selected!==v&&(e[u].selected=v),v&&c&&(e[u].defaultSelected=!0)}else{for(u=""+a0(u),n=null,v=0;v<e.length;v++){if(e[v].value===u){e[v].selected=!0,c&&(e[v].defaultSelected=!0);return}n!==null||e[v].disabled||(n=e[v])}n!==null&&(n.selected=!0)}}function oo(e,n,u){if(n!=null&&(n=""+a0(n),n!==e.value&&(e.value=n),u==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=u!=null?""+a0(u):""}function co(e,n,u,c){if(n==null){if(c!=null){if(u!=null)throw Error(i(92));if(Et(c)){if(1<c.length)throw Error(i(93));c=c[0]}u=c}u==null&&(u=""),n=u}u=a0(n),e.defaultValue=u,c=e.textContent,c===u&&c!==""&&c!==null&&(e.value=c),ti(e)}function fr(e,n){if(n){var u=e.firstChild;if(u&&u===e.lastChild&&u.nodeType===3){u.nodeValue=n;return}}e.textContent=n}var Dh=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Rc(e,n,u){var c=n.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?c?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":c?e.setProperty(n,u):typeof u!="number"||u===0||Dh.has(n)?n==="float"?e.cssFloat=u:e[n]=(""+u).trim():e[n]=u+"px"}function Oc(e,n,u){if(n!=null&&typeof n!="object")throw Error(i(62));if(e=e.style,u!=null){for(var c in u)!u.hasOwnProperty(c)||n!=null&&n.hasOwnProperty(c)||(c.indexOf("--")===0?e.setProperty(c,""):c==="float"?e.cssFloat="":e[c]="");for(var v in n)c=n[v],n.hasOwnProperty(v)&&u[v]!==c&&Rc(e,v,c)}else for(var y in n)n.hasOwnProperty(y)&&Rc(e,y,n[y])}function ho(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Nh=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Bc=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function fu(e){return Bc.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ai(){}var fo=null;function mo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dr=null,wi=null;function Hc(e){var n=W(e);if(n&&(e=n.stateNode)){var u=e[v0]||null;t:switch(e=n.stateNode,n.type){case"input":if(ss(e,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),n=u.name,u.type==="radio"&&n!=null){for(u=e;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+b0(""+n)+'"][type="radio"]'),n=0;n<u.length;n++){var c=u[n];if(c!==e&&c.form===e.form){var v=c[v0]||null;if(!v)throw Error(i(90));ss(c,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(n=0;n<u.length;n++)c=u[n],c.form===e.form&&y0(c)}break t;case"textarea":oo(e,u.value,u.defaultValue);break t;case"select":n=u.value,n!=null&&ei(e,!!u.multiple,n,!1)}}}var go=!1;function Gc(e,n,u){if(go)return e(n,u);go=!0;try{var c=e(n);return c}finally{if(go=!1,(dr!==null||wi!==null)&&(rl(),dr&&(n=dr,e=wi,wi=dr=null,Hc(n),e)))for(n=0;n<e.length;n++)Hc(e[n])}}function us(e,n){var u=e.stateNode;if(u===null)return null;var c=u[v0]||null;if(c===null)return null;u=c[n];t:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(e=e.type,c=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!c;break t;default:e=!1}if(e)return null;if(u&&typeof u!="function")throw Error(i(231,n,typeof u));return u}var xl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uc=!1;if(xl)try{var os={};Object.defineProperty(os,"passive",{get:function(){Uc=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{Uc=!1}var pn=null,po=null,mr=null;function du(){if(mr)return mr;var e,n=po,u=n.length,c,v="value"in pn?pn.value:pn.textContent,y=v.length;for(e=0;e<u&&n[e]===v[e];e++);var A=u-e;for(c=1;c<=A&&n[u-c]===v[y-c];c++);return mr=v.slice(e,1<c?1-c:void 0)}function mu(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function cs(){return!0}function Rh(){return!1}function V0(e){function n(u,c,v,y,A){this._reactName=u,this._targetInst=v,this.type=c,this.nativeEvent=y,this.target=A,this.currentTarget=null;for(var R in e)e.hasOwnProperty(R)&&(u=e[R],this[R]=u?u(y):y[R]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?cs:Rh,this.isPropagationStopped=Rh,this}return _(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=cs)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=cs)},persist:function(){},isPersistent:cs}),n}var Di={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gu=V0(Di),hs=_({},Di,{view:0,detail:0}),Oh=V0(hs),pu,vo,fs,ds=_({},hs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fs&&(fs&&e.type==="mousemove"?(pu=e.screenX-fs.screenX,vo=e.screenY-fs.screenY):vo=pu=0,fs=e),pu)},movementY:function(e){return"movementY"in e?e.movementY:vo}}),qc=V0(ds),Bh=_({},ds,{dataTransfer:0}),Hh=V0(Bh),Lc=_({},hs,{relatedTarget:0}),yo=V0(Lc),Gh=_({},Di,{animationName:0,elapsedTime:0,pseudoElement:0}),u4=V0(Gh),o4=_({},Di,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uh=V0(o4),vu=_({},Di,{data:0}),bo=V0(vu),So={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Lh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kc(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Lh[e])?!!n[e]:!1}function xo(){return kc}var kh=_({},hs,{key:function(e){if(e.key){var n=So[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=mu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xo,charCode:function(e){return e.type==="keypress"?mu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?mu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gr=V0(kh),To=_({},ds,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yc=V0(To),Xc=_({},hs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xo}),Yh=V0(Xc),Xh=_({},Di,{propertyName:0,elapsedTime:0,pseudoElement:0}),c4=V0(Xh),D0=_({},ds,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jh=V0(D0),Vh=_({},Di,{newState:0,oldState:0}),Qh=V0(Vh),Kh=[9,13,27,32],pr=xl&&"CompositionEvent"in window,ms=null;xl&&"documentMode"in document&&(ms=document.documentMode);var Eo=xl&&"TextEvent"in window&&!ms,jc=xl&&(!pr||ms&&8<ms&&11>=ms),Zh=" ",yu=!1;function _o(e,n){switch(e){case"keyup":return Kh.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vr=!1;function Jh(e,n){switch(e){case"compositionend":return Vc(n);case"keypress":return n.which!==32?null:(yu=!0,Zh);case"textInput":return e=n.data,e===Zh&&yu?null:e;default:return null}}function Qc(e,n){if(vr)return e==="compositionend"||!pr&&_o(e,n)?(e=du(),mr=po=pn=null,vr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return jc&&n.locale!=="ko"?null:n.data;default:return null}}var Kc={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Kc[e.type]:n==="textarea"}function Mo(e,n,u,c){dr?wi?wi.push(c):wi=[c]:dr=c,n=t2(n,"onChange"),0<n.length&&(u=new gu("onChange","change",null,u,c),e.push({event:u,listeners:n}))}var Ni=null,yr=null;function Fh(e){x5(e,0)}function gs(e){var n=Z(e);if(y0(n))return e}function Jc(e,n){if(e==="change")return n}var Tl=!1;if(xl){var bu;if(xl){var Fc="oninput"in document;if(!Fc){var Wc=document.createElement("div");Wc.setAttribute("oninput","return;"),Fc=typeof Wc.oninput=="function"}bu=Fc}else bu=!1;Tl=bu&&(!document.documentMode||9<document.documentMode)}function Rn(){Ni&&(Ni.detachEvent("onpropertychange",Su),yr=Ni=null)}function Su(e){if(e.propertyName==="value"&&gs(yr)){var n=[];Mo(n,yr,e,mo(e)),Gc(Fh,n)}}function Wh(e,n,u){e==="focusin"?(Rn(),Ni=n,yr=u,Ni.attachEvent("onpropertychange",Su)):e==="focusout"&&Rn()}function Ic(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gs(yr)}function Ih(e,n){if(e==="click")return gs(n)}function Ph(e,n){if(e==="input"||e==="change")return gs(n)}function Pc(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Q0=typeof Object.is=="function"?Object.is:Pc;function ps(e,n){if(Q0(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var u=Object.keys(e),c=Object.keys(n);if(u.length!==c.length)return!1;for(c=0;c<u.length;c++){var v=u[c];if(!u0.call(n,v)||!Q0(e[v],n[v]))return!1}return!0}function xu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vs(e,n){var u=xu(e);e=0;for(var c;u;){if(u.nodeType===3){if(c=e+u.textContent.length,e<=n&&c>=n)return{node:u,offset:n-e};e=c}t:{for(;u;){if(u.nextSibling){u=u.nextSibling;break t}u=u.parentNode}u=void 0}u=xu(u)}}function da(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?da(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function $h(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=fa(e.document);n instanceof e.HTMLIFrameElement;){try{var u=typeof n.contentWindow.location.href=="string"}catch{u=!1}if(u)e=n.contentWindow;else break;n=fa(e.document)}return n}function $c(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var tf=xl&&"documentMode"in document&&11>=document.documentMode,El=null,_l=null,ys=null,Ao=!1;function bs(e,n,u){var c=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Ao||El==null||El!==fa(c)||(c=El,"selectionStart"in c&&$c(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),ys&&ps(ys,c)||(ys=c,c=t2(_l,"onSelect"),0<c.length&&(n=new gu("onSelect","select",null,n,u),e.push({event:n,listeners:c}),n.target=El)))}function q0(e,n){var u={};return u[e.toLowerCase()]=n.toLowerCase(),u["Webkit"+e]="webkit"+n,u["Moz"+e]="moz"+n,u}var br={animationend:q0("Animation","AnimationEnd"),animationiteration:q0("Animation","AnimationIteration"),animationstart:q0("Animation","AnimationStart"),transitionrun:q0("Transition","TransitionRun"),transitionstart:q0("Transition","TransitionStart"),transitioncancel:q0("Transition","TransitionCancel"),transitionend:q0("Transition","TransitionEnd")},Tu={},t1={};xl&&(t1=document.createElement("div").style,"AnimationEvent"in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),"TransitionEvent"in window||delete br.transitionend.transition);function ni(e){if(Tu[e])return Tu[e];if(!br[e])return e;var n=br[e],u;for(u in n)if(n.hasOwnProperty(u)&&u in t1)return Tu[e]=n[u];return e}var zo=ni("animationend"),Eu=ni("animationiteration"),e1=ni("animationstart"),ef=ni("transitionrun"),h4=ni("transitionstart"),af=ni("transitioncancel"),a1=ni("transitionend"),On=new Map,_u="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");_u.push("scrollEnd");function Bn(e,n){On.set(e,n),Se(n,[e])}var Mu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Hn=[],li=0,S0=0;function Au(){for(var e=li,n=S0=li=0;n<e;){var u=Hn[n];Hn[n++]=null;var c=Hn[n];Hn[n++]=null;var v=Hn[n];Hn[n++]=null;var y=Hn[n];if(Hn[n++]=null,c!==null&&v!==null){var A=c.pending;A===null?v.next=v:(v.next=A.next,A.next=v),c.pending=v}y!==0&&Ri(u,v,y)}}function x0(e,n,u,c){Hn[li++]=e,Hn[li++]=n,Hn[li++]=u,Hn[li++]=c,S0|=c,e.lanes|=c,e=e.alternate,e!==null&&(e.lanes|=c)}function Co(e,n,u,c){return x0(e,n,u,c),Gn(e)}function K0(e,n){return x0(e,null,null,n),Gn(e)}function Ri(e,n,u){e.lanes|=u;var c=e.alternate;c!==null&&(c.lanes|=u);for(var v=!1,y=e.return;y!==null;)y.childLanes|=u,c=y.alternate,c!==null&&(c.childLanes|=u),y.tag===22&&(e=y.stateNode,e===null||e._visibility&1||(v=!0)),e=y,y=y.return;return e.tag===3?(y=e.stateNode,v&&n!==null&&(v=31-j0(u),e=y.hiddenUpdates,c=e[v],c===null?e[v]=[n]:c.push(n),n.lane=u|536870912),y):null}function Gn(e){if(50<Ii)throw Ii=0,qr=null,Error(i(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Oi={};function n1(e,n,u,c){this.tag=e,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wa(e,n,u,c){return new n1(e,n,u,c)}function wo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ln(e,n){var u=e.alternate;return u===null?(u=wa(e.tag,n,e.key,e.mode),u.elementType=e.elementType,u.type=e.type,u.stateNode=e.stateNode,u.alternate=e,e.alternate=u):(u.pendingProps=n,u.type=e.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=e.flags&65011712,u.childLanes=e.childLanes,u.lanes=e.lanes,u.child=e.child,u.memoizedProps=e.memoizedProps,u.memoizedState=e.memoizedState,u.updateQueue=e.updateQueue,n=e.dependencies,u.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},u.sibling=e.sibling,u.index=e.index,u.ref=e.ref,u.refCleanup=e.refCleanup,u}function Ss(e,n){e.flags&=65011714;var u=e.alternate;return u===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=u.childLanes,e.lanes=u.lanes,e.child=u.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=u.memoizedProps,e.memoizedState=u.memoizedState,e.updateQueue=u.updateQueue,e.type=u.type,n=u.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Ml(e,n,u,c,v,y){var A=0;if(c=e,typeof e=="function")wo(e)&&(A=1);else if(typeof e=="string")A=D7(e,u,Bt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else t:switch(e){case St:return e=wa(31,u,n,v),e.elementType=St,e.lanes=y,e;case H:return Bi(u.children,v,y,n);case U:A=8,v|=24;break;case B:return e=wa(12,u,n,v|2),e.elementType=B,e.lanes=y,e;case nt:return e=wa(13,u,n,v),e.elementType=nt,e.lanes=y,e;case ut:return e=wa(19,u,n,v),e.elementType=ut,e.lanes=y,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case k:A=10;break t;case X:A=9;break t;case j:A=11;break t;case st:A=14;break t;case ot:A=16,c=null;break t}A=29,u=Error(i(130,e===null?"null":typeof e,"")),c=null}return n=wa(A,u,n,v),n.elementType=e,n.type=c,n.lanes=y,n}function Bi(e,n,u,c){return e=wa(7,e,c,n),e.lanes=u,e}function Do(e,n,u){return e=wa(6,e,null,n),e.lanes=u,e}function xs(e){var n=wa(18,null,null,0);return n.stateNode=e,n}function No(e,n,u){return n=wa(4,e.children!==null?e.children:[],e.key,n),n.lanes=u,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var zu=new WeakMap;function vn(e,n){if(typeof e=="object"&&e!==null){var u=zu.get(e);return u!==void 0?u:(n={value:e,source:n,stack:Ie(n)},zu.set(e,n),n)}return{value:e,source:n,stack:Ie(n)}}var Hi=[],Gi=0,Ts=null,Es=0,rn=[],Ta=0,ii=null,Da=1,al="";function Al(e,n){Hi[Gi++]=Es,Hi[Gi++]=Ts,Ts=e,Es=n}function nf(e,n,u){rn[Ta++]=Da,rn[Ta++]=al,rn[Ta++]=ii,ii=e;var c=Da;e=al;var v=32-j0(c)-1;c&=~(1<<v),u+=1;var y=32-j0(n)+v;if(30<y){var A=v-v%5;y=(c&(1<<A)-1).toString(32),c>>=A,v-=A,Da=1<<32-j0(n)+v|u<<v|c,al=y+e}else Da=1<<y|u<<v|c,al=e}function zl(e){e.return!==null&&(Al(e,1),nf(e,1,0))}function Ro(e){for(;e===Ts;)Ts=Hi[--Gi],Hi[Gi]=null,Es=Hi[--Gi],Hi[Gi]=null;for(;e===ii;)ii=rn[--Ta],rn[Ta]=null,al=rn[--Ta],rn[Ta]=null,Da=rn[--Ta],rn[Ta]=null}function Oo(e,n){rn[Ta++]=Da,rn[Ta++]=al,rn[Ta++]=ii,Da=n.id,al=n.overflow,ii=e}var Ya=null,ma=null,qe=!1,ri=null,yn=!1,_s=Error(i(519));function Cl(e){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wl(vn(n,e)),_s}function lf(e){var n=e.stateNode,u=e.type,c=e.memoizedProps;switch(n[ka]=e,n[v0]=c,u){case"dialog":Ye("cancel",n),Ye("close",n);break;case"iframe":case"object":case"embed":Ye("load",n);break;case"video":case"audio":for(u=0;u<Fn.length;u++)Ye(Fn[u],n);break;case"source":Ye("error",n);break;case"img":case"image":case"link":Ye("error",n),Ye("load",n);break;case"details":Ye("toggle",n);break;case"input":Ye("invalid",n),uo(n,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Ye("invalid",n);break;case"textarea":Ye("invalid",n),co(n,c.value,c.defaultValue,c.children)}u=c.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||n.textContent===""+u||c.suppressHydrationWarning===!0||M5(n.textContent,u)?(c.popover!=null&&(Ye("beforetoggle",n),Ye("toggle",n)),c.onScroll!=null&&Ye("scroll",n),c.onScrollEnd!=null&&Ye("scrollend",n),c.onClick!=null&&(n.onclick=ai),n=!0):n=!1,n||Cl(e,!0)}function rf(e){for(Ya=e.return;Ya;)switch(Ya.tag){case 5:case 31:case 13:yn=!1;return;case 27:case 3:yn=!0;return;default:Ya=Ya.return}}function Ms(e){if(e!==Ya)return!1;if(!qe)return rf(e),qe=!0,!1;var n=e.tag,u;if((u=n!==3&&n!==27)&&((u=n===5)&&(u=e.type,u=!(u!=="form"&&u!=="button")||z4(e.type,e.memoizedProps)),u=!u),u&&ma&&Cl(e),rf(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));ma=B5(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));ma=B5(e)}else n===27?(n=ma,Qs(e.type)?(e=R4,R4=null,ma=e):ma=n):ma=Ya?jl(e.stateNode.nextSibling):null;return!0}function Ui(){ma=Ya=null,qe=!1}function Bo(){var e=ri;return e!==null&&(ja===null?ja=e:ja.push.apply(ja,e),ri=null),e}function wl(e){ri===null?ri=[e]:ri.push(e)}var As=G(null),qi=null,Dl=null;function si(e,n,u){gt(As,n._currentValue),n._currentValue=u}function Nl(e){e._currentValue=As.current,I(As)}function Ho(e,n,u){for(;e!==null;){var c=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,c!==null&&(c.childLanes|=n)):c!==null&&(c.childLanes&n)!==n&&(c.childLanes|=n),e===u)break;e=e.return}}function Go(e,n,u,c){var v=e.child;for(v!==null&&(v.return=e);v!==null;){var y=v.dependencies;if(y!==null){var A=v.child;y=y.firstContext;t:for(;y!==null;){var R=y;y=v;for(var V=0;V<n.length;V++)if(R.context===n[V]){y.lanes|=u,R=y.alternate,R!==null&&(R.lanes|=u),Ho(y.return,u,e),c||(A=null);break t}y=R.next}}else if(v.tag===18){if(A=v.return,A===null)throw Error(i(341));A.lanes|=u,y=A.alternate,y!==null&&(y.lanes|=u),Ho(A,u,e),A=null}else A=v.child;if(A!==null)A.return=v;else for(A=v;A!==null;){if(A===e){A=null;break}if(v=A.sibling,v!==null){v.return=A.return,A=v;break}A=A.return}v=A}}function Rl(e,n,u,c){e=null;for(var v=n,y=!1;v!==null;){if(!y){if((v.flags&524288)!==0)y=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var A=v.alternate;if(A===null)throw Error(i(387));if(A=A.memoizedProps,A!==null){var R=v.type;Q0(v.pendingProps.value,A.value)||(e!==null?e.push(R):e=[R])}}else if(v===Xt.current){if(A=v.alternate,A===null)throw Error(i(387));A.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(e!==null?e.push(th):e=[th])}v=v.return}e!==null&&Go(n,e,u,c),n.flags|=262144}function Cu(e){for(e=e.firstContext;e!==null;){if(!Q0(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Li(e){qi=e,Dl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function he(e){return sf(qi,e)}function zs(e,n){return qi===null&&Li(e),sf(e,n)}function sf(e,n){var u=n._currentValue;if(n={context:n,memoizedValue:u,next:null},Dl===null){if(e===null)throw Error(i(308));Dl=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Dl=Dl.next=n;return u}var uf=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(u,c){e.push(c)}};this.abort=function(){n.aborted=!0,e.forEach(function(u){return u()})}},f4=s.unstable_scheduleCallback,d4=s.unstable_NormalPriority,n0={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function l1(){return{controller:new uf,data:new Map,refCount:0}}function Sr(e){e.refCount--,e.refCount===0&&f4(d4,function(){e.controller.abort()})}var bn=null,Uo=0,ui=0,Un=null;function i1(e,n){if(bn===null){var u=bn=[];Uo=0,ui=ct(),Un={status:"pending",value:void 0,then:function(c){u.push(c)}}}return Uo++,n.then(r1,r1),n}function r1(){if(--Uo===0&&bn!==null){Un!==null&&(Un.status="fulfilled");var e=bn;bn=null,ui=0,Un=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function s1(e,n){var u=[],c={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return e.then(function(){c.status="fulfilled",c.value=n;for(var v=0;v<u.length;v++)(0,u[v])(n)},function(v){for(c.status="rejected",c.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),c}var of=K.S;K.S=function(e,n){J1=ea(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&i1(e,n),of!==null&&of(e,n)};var ki=G(null);function qo(){var e=ki.current;return e!==null?e:fe.pooledCache}function wu(e,n){n===null?gt(ki,ki.current):gt(ki,n.pool)}function u1(){var e=qo();return e===null?null:{parent:n0._currentValue,pool:e}}var xr=Error(i(460)),Du=Error(i(474)),_e=Error(i(542)),Lo={then:function(){}};function sn(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ko(e,n,u){switch(u=e[u],u===void 0?e.push(n):u!==n&&(n.then(ai,ai),n=u),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,_r(e),e;default:if(typeof n.status=="string")n.then(ai,ai);else{if(e=fe,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=n,e.status="pending",e.then(function(c){if(n.status==="pending"){var v=n;v.status="fulfilled",v.value=c}},function(c){if(n.status==="pending"){var v=n;v.status="rejected",v.reason=c}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,_r(e),e}throw Ol=n,xr}}function Tr(e){try{var n=e._init;return n(e._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Ol=u,xr):u}}var Ol=null;function Er(){if(Ol===null)throw Error(i(459));var e=Ol;return Ol=null,e}function _r(e){if(e===xr||e===_e)throw Error(i(483))}var Mr=null,Ar=0;function Nu(e){var n=Ar;return Ar+=1,Mr===null&&(Mr=[]),ko(Mr,e,n)}function qn(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Cs(e,n){throw n.$$typeof===z?Error(i(525)):(e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Yo(e){function n(P,J){if(e){var et=P.deletions;et===null?(P.deletions=[J],P.flags|=16):et.push(J)}}function u(P,J){if(!e)return null;for(;J!==null;)n(P,J),J=J.sibling;return null}function c(P){for(var J=new Map;P!==null;)P.key!==null?J.set(P.key,P):J.set(P.index,P),P=P.sibling;return J}function v(P,J){return P=ln(P,J),P.index=0,P.sibling=null,P}function y(P,J,et){return P.index=et,e?(et=P.alternate,et!==null?(et=et.index,et<J?(P.flags|=67108866,J):et):(P.flags|=67108866,J)):(P.flags|=1048576,J)}function A(P){return e&&P.alternate===null&&(P.flags|=67108866),P}function R(P,J,et,pt){return J===null||J.tag!==6?(J=Do(et,P.mode,pt),J.return=P,J):(J=v(J,et),J.return=P,J)}function V(P,J,et,pt){var le=et.type;return le===H?dt(P,J,et.props.children,pt,et.key):J!==null&&(J.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===ot&&Tr(le)===J.type)?(J=v(J,et.props),qn(J,et),J.return=P,J):(J=Ml(et.type,et.key,et.props,null,P.mode,pt),qn(J,et),J.return=P,J)}function lt(P,J,et,pt){return J===null||J.tag!==4||J.stateNode.containerInfo!==et.containerInfo||J.stateNode.implementation!==et.implementation?(J=No(et,P.mode,pt),J.return=P,J):(J=v(J,et.children||[]),J.return=P,J)}function dt(P,J,et,pt,le){return J===null||J.tag!==7?(J=Bi(et,P.mode,pt,le),J.return=P,J):(J=v(J,et),J.return=P,J)}function yt(P,J,et){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return J=Do(""+J,P.mode,et),J.return=P,J;if(typeof J=="object"&&J!==null){switch(J.$$typeof){case D:return et=Ml(J.type,J.key,J.props,null,P.mode,et),qn(et,J),et.return=P,et;case C:return J=No(J,P.mode,et),J.return=P,J;case ot:return J=Tr(J),yt(P,J,et)}if(Et(J)||Nt(J))return J=Bi(J,P.mode,et,null),J.return=P,J;if(typeof J.then=="function")return yt(P,Nu(J),et);if(J.$$typeof===k)return yt(P,zs(P,J),et);Cs(P,J)}return null}function rt(P,J,et,pt){var le=J!==null?J.key:null;if(typeof et=="string"&&et!==""||typeof et=="number"||typeof et=="bigint")return le!==null?null:R(P,J,""+et,pt);if(typeof et=="object"&&et!==null){switch(et.$$typeof){case D:return et.key===le?V(P,J,et,pt):null;case C:return et.key===le?lt(P,J,et,pt):null;case ot:return et=Tr(et),rt(P,J,et,pt)}if(Et(et)||Nt(et))return le!==null?null:dt(P,J,et,pt,null);if(typeof et.then=="function")return rt(P,J,Nu(et),pt);if(et.$$typeof===k)return rt(P,J,zs(P,et),pt);Cs(P,et)}return null}function ft(P,J,et,pt,le){if(typeof pt=="string"&&pt!==""||typeof pt=="number"||typeof pt=="bigint")return P=P.get(et)||null,R(J,P,""+pt,le);if(typeof pt=="object"&&pt!==null){switch(pt.$$typeof){case D:return P=P.get(pt.key===null?et:pt.key)||null,V(J,P,pt,le);case C:return P=P.get(pt.key===null?et:pt.key)||null,lt(J,P,pt,le);case ot:return pt=Tr(pt),ft(P,J,et,pt,le)}if(Et(pt)||Nt(pt))return P=P.get(et)||null,dt(J,P,pt,le,null);if(typeof pt.then=="function")return ft(P,J,et,Nu(pt),le);if(pt.$$typeof===k)return ft(P,J,et,zs(J,pt),le);Cs(J,pt)}return null}function Wt(P,J,et,pt){for(var le=null,Pe=null,te=J,Ce=J=0,Ve=null;te!==null&&Ce<et.length;Ce++){te.index>Ce?(Ve=te,te=null):Ve=te.sibling;var $e=rt(P,te,et[Ce],pt);if($e===null){te===null&&(te=Ve);break}e&&te&&$e.alternate===null&&n(P,te),J=y($e,J,Ce),Pe===null?le=$e:Pe.sibling=$e,Pe=$e,te=Ve}if(Ce===et.length)return u(P,te),qe&&Al(P,Ce),le;if(te===null){for(;Ce<et.length;Ce++)te=yt(P,et[Ce],pt),te!==null&&(J=y(te,J,Ce),Pe===null?le=te:Pe.sibling=te,Pe=te);return qe&&Al(P,Ce),le}for(te=c(te);Ce<et.length;Ce++)Ve=ft(te,P,Ce,et[Ce],pt),Ve!==null&&(e&&Ve.alternate!==null&&te.delete(Ve.key===null?Ce:Ve.key),J=y(Ve,J,Ce),Pe===null?le=Ve:Pe.sibling=Ve,Pe=Ve);return e&&te.forEach(function(Ws){return n(P,Ws)}),qe&&Al(P,Ce),le}function ce(P,J,et,pt){if(et==null)throw Error(i(151));for(var le=null,Pe=null,te=J,Ce=J=0,Ve=null,$e=et.next();te!==null&&!$e.done;Ce++,$e=et.next()){te.index>Ce?(Ve=te,te=null):Ve=te.sibling;var Ws=rt(P,te,$e.value,pt);if(Ws===null){te===null&&(te=Ve);break}e&&te&&Ws.alternate===null&&n(P,te),J=y(Ws,J,Ce),Pe===null?le=Ws:Pe.sibling=Ws,Pe=Ws,te=Ve}if($e.done)return u(P,te),qe&&Al(P,Ce),le;if(te===null){for(;!$e.done;Ce++,$e=et.next())$e=yt(P,$e.value,pt),$e!==null&&(J=y($e,J,Ce),Pe===null?le=$e:Pe.sibling=$e,Pe=$e);return qe&&Al(P,Ce),le}for(te=c(te);!$e.done;Ce++,$e=et.next())$e=ft(te,P,Ce,$e.value,pt),$e!==null&&(e&&$e.alternate!==null&&te.delete($e.key===null?Ce:$e.key),J=y($e,J,Ce),Pe===null?le=$e:Pe.sibling=$e,Pe=$e);return e&&te.forEach(function(Y7){return n(P,Y7)}),qe&&Al(P,Ce),le}function va(P,J,et,pt){if(typeof et=="object"&&et!==null&&et.type===H&&et.key===null&&(et=et.props.children),typeof et=="object"&&et!==null){switch(et.$$typeof){case D:t:{for(var le=et.key;J!==null;){if(J.key===le){if(le=et.type,le===H){if(J.tag===7){u(P,J.sibling),pt=v(J,et.props.children),pt.return=P,P=pt;break t}}else if(J.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===ot&&Tr(le)===J.type){u(P,J.sibling),pt=v(J,et.props),qn(pt,et),pt.return=P,P=pt;break t}u(P,J);break}else n(P,J);J=J.sibling}et.type===H?(pt=Bi(et.props.children,P.mode,pt,et.key),pt.return=P,P=pt):(pt=Ml(et.type,et.key,et.props,null,P.mode,pt),qn(pt,et),pt.return=P,P=pt)}return A(P);case C:t:{for(le=et.key;J!==null;){if(J.key===le)if(J.tag===4&&J.stateNode.containerInfo===et.containerInfo&&J.stateNode.implementation===et.implementation){u(P,J.sibling),pt=v(J,et.children||[]),pt.return=P,P=pt;break t}else{u(P,J);break}else n(P,J);J=J.sibling}pt=No(et,P.mode,pt),pt.return=P,P=pt}return A(P);case ot:return et=Tr(et),va(P,J,et,pt)}if(Et(et))return Wt(P,J,et,pt);if(Nt(et)){if(le=Nt(et),typeof le!="function")throw Error(i(150));return et=le.call(et),ce(P,J,et,pt)}if(typeof et.then=="function")return va(P,J,Nu(et),pt);if(et.$$typeof===k)return va(P,J,zs(P,et),pt);Cs(P,et)}return typeof et=="string"&&et!==""||typeof et=="number"||typeof et=="bigint"?(et=""+et,J!==null&&J.tag===6?(u(P,J.sibling),pt=v(J,et),pt.return=P,P=pt):(u(P,J),pt=Do(et,P.mode,pt),pt.return=P,P=pt),A(P)):u(P,J)}return function(P,J,et,pt){try{Ar=0;var le=va(P,J,et,pt);return Mr=null,le}catch(te){if(te===xr||te===_e)throw te;var Pe=wa(29,te,null,P.mode);return Pe.lanes=pt,Pe.return=P,Pe}finally{}}}var oi=Yo(!0),Xo=Yo(!1),Z0=!1;function Ru(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function o1(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ci(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Yi(e,n,u){var c=e.updateQueue;if(c===null)return null;if(c=c.shared,(ee&2)!==0){var v=c.pending;return v===null?n.next=n:(n.next=v.next,v.next=n),c.pending=n,n=Gn(e),Ri(e,null,u),n}return x0(e,c,n,u),Gn(e)}function Xi(e,n,u){if(n=n.updateQueue,n!==null&&(n=n.shared,(u&4194048)!==0)){var c=n.lanes;c&=e.pendingLanes,u|=c,n.lanes=u,ml(e,u)}}function ne(e,n){var u=e.updateQueue,c=e.alternate;if(c!==null&&(c=c.updateQueue,u===c)){var v=null,y=null;if(u=u.firstBaseUpdate,u!==null){do{var A={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};y===null?v=y=A:y=y.next=A,u=u.next}while(u!==null);y===null?v=y=n:y=y.next=n}else v=y=n;u={baseState:c.baseState,firstBaseUpdate:v,lastBaseUpdate:y,shared:c.shared,callbacks:c.callbacks},e.updateQueue=u;return}e=u.lastBaseUpdate,e===null?u.firstBaseUpdate=n:e.next=n,u.lastBaseUpdate=n}var c1=!1;function Ou(){if(c1){var e=Un;if(e!==null)throw e}}function ws(e,n,u,c){c1=!1;var v=e.updateQueue;Z0=!1;var y=v.firstBaseUpdate,A=v.lastBaseUpdate,R=v.shared.pending;if(R!==null){v.shared.pending=null;var V=R,lt=V.next;V.next=null,A===null?y=lt:A.next=lt,A=V;var dt=e.alternate;dt!==null&&(dt=dt.updateQueue,R=dt.lastBaseUpdate,R!==A&&(R===null?dt.firstBaseUpdate=lt:R.next=lt,dt.lastBaseUpdate=V))}if(y!==null){var yt=v.baseState;A=0,dt=lt=V=null,R=y;do{var rt=R.lane&-536870913,ft=rt!==R.lane;if(ft?(Te&rt)===rt:(c&rt)===rt){rt!==0&&rt===ui&&(c1=!0),dt!==null&&(dt=dt.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});t:{var Wt=e,ce=R;rt=n;var va=u;switch(ce.tag){case 1:if(Wt=ce.payload,typeof Wt=="function"){yt=Wt.call(va,yt,rt);break t}yt=Wt;break t;case 3:Wt.flags=Wt.flags&-65537|128;case 0:if(Wt=ce.payload,rt=typeof Wt=="function"?Wt.call(va,yt,rt):Wt,rt==null)break t;yt=_({},yt,rt);break t;case 2:Z0=!0}}rt=R.callback,rt!==null&&(e.flags|=64,ft&&(e.flags|=8192),ft=v.callbacks,ft===null?v.callbacks=[rt]:ft.push(rt))}else ft={lane:rt,tag:R.tag,payload:R.payload,callback:R.callback,next:null},dt===null?(lt=dt=ft,V=yt):dt=dt.next=ft,A|=rt;if(R=R.next,R===null){if(R=v.shared.pending,R===null)break;ft=R,R=ft.next,ft.next=null,v.lastBaseUpdate=ft,v.shared.pending=null}}while(!0);dt===null&&(V=yt),v.baseState=V,v.firstBaseUpdate=lt,v.lastBaseUpdate=dt,y===null&&(v.shared.lanes=0),kl|=A,e.lanes=A,e.memoizedState=yt}}function Ds(e,n){if(typeof e!="function")throw Error(i(191,e));e.call(n)}function cf(e,n){var u=e.callbacks;if(u!==null)for(e.callbacks=null,e=0;e<u.length;e++)Ds(u[e],n)}var Ns=G(null),jo=G(0);function hf(e,n){e=En,gt(jo,e),gt(Ns,n),En=e|n.baseLanes}function h1(){gt(jo,En),gt(Ns,Ns.current)}function Bu(){En=jo.current,I(Ns),I(jo)}var un=G(null),J0=null;function hi(e){var n=e.alternate;gt(Le,Le.current&1),gt(un,e),J0===null&&(n===null||Ns.current!==null||n.memoizedState!==null)&&(J0=e)}function f1(e){gt(Le,Le.current),gt(un,e),J0===null&&(J0=e)}function ff(e){e.tag===22?(gt(Le,Le.current),gt(un,e),J0===null&&(J0=e)):on()}function on(){gt(Le,Le.current),gt(un,un.current)}function Ka(e){I(un),J0===e&&(J0=null),I(Le)}var Le=G(0);function Sn(e){for(var n=e;n!==null;){if(n.tag===13){var u=n.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||D4(u)||N4(u)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Ea=0,pe=null,ua=null,Be=null,Ln=!1,Rs=!1,zr=!1,Vo=0,Hu=0,Os=null,d1=0;function Na(){throw Error(i(321))}function m1(e,n){if(n===null)return!1;for(var u=0;u<n.length&&u<e.length;u++)if(!Q0(e[u],n[u]))return!1;return!0}function Qo(e,n,u,c,v,y){return Ea=y,pe=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,K.H=e===null||e.memoizedState===null?Vf:B1,zr=!1,y=u(c,v),zr=!1,Rs&&(y=Cr(n,u,c,v)),df(e),y}function df(e){K.H=Bs;var n=ua!==null&&ua.next!==null;if(Ea=0,Be=ua=pe=null,Ln=!1,Hu=0,Os=null,n)throw Error(i(300));e===null||l0||(e=e.dependencies,e!==null&&Cu(e)&&(l0=!0))}function Cr(e,n,u,c){pe=e;var v=0;do{if(Rs&&(Os=null),Hu=0,Rs=!1,25<=v)throw Error(i(301));if(v+=1,Be=ua=null,e.updateQueue!=null){var y=e.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}K.H=kn,y=n(u,c)}while(Rs);return y}function wr(){var e=K.H,n=e.useState()[0];return n=typeof n.then=="function"?Gu(n):n,e=e.useState()[0],(ua!==null?ua.memoizedState:null)!==e&&(pe.flags|=1024),n}function g1(){var e=Vo!==0;return Vo=0,e}function p1(e,n,u){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~u}function v1(e){if(Ln){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Ln=!1}Ea=0,Be=ua=pe=null,Rs=!1,Hu=Vo=0,Os=null}function c0(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?pe.memoizedState=Be=e:Be=Be.next=e,Be}function Za(){if(ua===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=ua.next;var n=Be===null?pe.memoizedState:Be.next;if(n!==null)Be=n,ua=e;else{if(e===null)throw pe.alternate===null?Error(i(467)):Error(i(310));ua=e,e={memoizedState:ua.memoizedState,baseState:ua.baseState,baseQueue:ua.baseQueue,queue:ua.queue,next:null},Be===null?pe.memoizedState=Be=e:Be=Be.next=e}return Be}function Ko(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gu(e){var n=Hu;return Hu+=1,Os===null&&(Os=[]),e=ko(Os,e,n),n=pe,(Be===null?n.memoizedState:Be.next)===null&&(n=n.alternate,K.H=n===null||n.memoizedState===null?Vf:B1),e}function ji(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Gu(e);if(e.$$typeof===k)return he(e)}throw Error(i(438,String(e)))}function y1(e){var n=null,u=pe.updateQueue;if(u!==null&&(n=u.memoCache),n==null){var c=pe.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(n={data:c.data.map(function(v){return v.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),u===null&&(u=Ko(),pe.updateQueue=u),u.memoCache=n,u=n.data[n.index],u===void 0)for(u=n.data[n.index]=Array(e),c=0;c<e;c++)u[c]=Zt;return n.index++,u}function fi(e,n){return typeof n=="function"?n(e):n}function Zo(e){var n=Za();return b1(n,ua,e)}function b1(e,n,u){var c=e.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=u;var v=e.baseQueue,y=c.pending;if(y!==null){if(v!==null){var A=v.next;v.next=y.next,y.next=A}n.baseQueue=v=y,c.pending=null}if(y=e.baseState,v===null)e.memoizedState=y;else{n=v.next;var R=A=null,V=null,lt=n,dt=!1;do{var yt=lt.lane&-536870913;if(yt!==lt.lane?(Te&yt)===yt:(Ea&yt)===yt){var rt=lt.revertLane;if(rt===0)V!==null&&(V=V.next={lane:0,revertLane:0,gesture:null,action:lt.action,hasEagerState:lt.hasEagerState,eagerState:lt.eagerState,next:null}),yt===ui&&(dt=!0);else if((Ea&rt)===rt){lt=lt.next,rt===ui&&(dt=!0);continue}else yt={lane:0,revertLane:lt.revertLane,gesture:null,action:lt.action,hasEagerState:lt.hasEagerState,eagerState:lt.eagerState,next:null},V===null?(R=V=yt,A=y):V=V.next=yt,pe.lanes|=rt,kl|=rt;yt=lt.action,zr&&u(y,yt),y=lt.hasEagerState?lt.eagerState:u(y,yt)}else rt={lane:yt,revertLane:lt.revertLane,gesture:lt.gesture,action:lt.action,hasEagerState:lt.hasEagerState,eagerState:lt.eagerState,next:null},V===null?(R=V=rt,A=y):V=V.next=rt,pe.lanes|=yt,kl|=yt;lt=lt.next}while(lt!==null&<!==n);if(V===null?A=y:V.next=R,!Q0(y,e.memoizedState)&&(l0=!0,dt&&(u=Un,u!==null)))throw u;e.memoizedState=y,e.baseState=A,e.baseQueue=V,c.lastRenderedState=y}return v===null&&(c.lanes=0),[e.memoizedState,c.dispatch]}function S1(e){var n=Za(),u=n.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=e;var c=u.dispatch,v=u.pending,y=n.memoizedState;if(v!==null){u.pending=null;var A=v=v.next;do y=e(y,A.action),A=A.next;while(A!==v);Q0(y,n.memoizedState)||(l0=!0),n.memoizedState=y,n.baseQueue===null&&(n.baseState=y),u.lastRenderedState=y}return[y,c]}function mf(e,n,u){var c=pe,v=Za(),y=qe;if(y){if(u===void 0)throw Error(i(407));u=u()}else u=n();var A=!Q0((ua||v).memoizedState,u);if(A&&(v.memoizedState=u,l0=!0),v=v.queue,C1(vf.bind(null,c,v,e),[e]),v.getSnapshot!==n||A||Be!==null&&Be.memoizedState.tag&1){if(c.flags|=2048,Vi(9,{destroy:void 0},pf.bind(null,c,v,u,n),null),fe===null)throw Error(i(349));y||(Ea&127)!==0||gf(c,n,u)}return u}function gf(e,n,u){e.flags|=16384,e={getSnapshot:n,value:u},n=pe.updateQueue,n===null?(n=Ko(),pe.updateQueue=n,n.stores=[e]):(u=n.stores,u===null?n.stores=[e]:u.push(e))}function pf(e,n,u,c){n.value=u,n.getSnapshot=c,yf(n)&&bf(e)}function vf(e,n,u){return u(function(){yf(n)&&bf(e)})}function yf(e){var n=e.getSnapshot;e=e.value;try{var u=n();return!Q0(e,u)}catch{return!0}}function bf(e){var n=K0(e,2);n!==null&&Ae(n,e,2)}function x1(e){var n=c0();if(typeof e=="function"){var u=e;if(e=u(),zr){t0(!0);try{u()}finally{t0(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:e},n}function T1(e,n,u,c){return e.baseState=u,b1(e,ua,typeof c=="function"?c:fi)}function m4(e,n,u,c,v){if(Io(e))throw Error(i(485));if(e=n.action,e!==null){var y={payload:v,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){y.listeners.push(A)}};K.T!==null?u(!0):y.isTransition=!1,c(y),u=n.pending,u===null?(y.next=n.pending=y,Sf(n,y)):(y.next=u.next,n.pending=u.next=y)}}function Sf(e,n){var u=n.action,c=n.payload,v=e.state;if(n.isTransition){var y=K.T,A={};K.T=A;try{var R=u(v,c),V=K.S;V!==null&&V(A,R),xf(e,n,R)}catch(lt){E1(e,n,lt)}finally{y!==null&&A.types!==null&&(y.types=A.types),K.T=y}}else try{y=u(v,c),xf(e,n,y)}catch(lt){E1(e,n,lt)}}function xf(e,n,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(c){Tf(e,n,c)},function(c){return E1(e,n,c)}):Tf(e,n,u)}function Tf(e,n,u){n.status="fulfilled",n.value=u,Ef(n),e.state=u,n=e.pending,n!==null&&(u=n.next,u===n?e.pending=null:(u=u.next,n.next=u,Sf(e,u)))}function E1(e,n,u){var c=e.pending;if(e.pending=null,c!==null){c=c.next;do n.status="rejected",n.reason=u,Ef(n),n=n.next;while(n!==c)}e.action=null}function Ef(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function _1(e,n){return n}function M1(e,n){if(qe){var u=fe.formState;if(u!==null){t:{var c=pe;if(qe){if(ma){e:{for(var v=ma,y=yn;v.nodeType!==8;){if(!y){v=null;break e}if(v=jl(v.nextSibling),v===null){v=null;break e}}y=v.data,v=y==="F!"||y==="F"?v:null}if(v){ma=jl(v.nextSibling),c=v.data==="F!";break t}}Cl(c)}c=!1}c&&(n=u[0])}}return u=c0(),u.memoizedState=u.baseState=n,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_1,lastRenderedState:n},u.queue=c,u=Yf.bind(null,pe,c),c.dispatch=u,c=x1(!1),y=O1.bind(null,pe,!1,c.queue),c=c0(),v={state:n,dispatch:null,action:e,pending:null},c.queue=v,u=m4.bind(null,pe,v,y,u),v.dispatch=u,c.memoizedState=e,[n,u,!1]}function _f(e){var n=Za();return A1(n,ua,e)}function A1(e,n,u){if(n=b1(e,n,_1)[0],e=Zo(fi)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var c=Gu(n)}catch(A){throw A===xr?_e:A}else c=n;n=Za();var v=n.queue,y=v.dispatch;return u!==n.memoizedState&&(pe.flags|=2048,Vi(9,{destroy:void 0},Mf.bind(null,v,u),null)),[c,y,e]}function Mf(e,n){e.action=n}function z1(e){var n=Za(),u=ua;if(u!==null)return A1(n,u,e);Za(),n=n.memoizedState,u=Za();var c=u.queue.dispatch;return u.memoizedState=e,[n,c,!1]}function Vi(e,n,u,c){return e={tag:e,create:u,deps:c,inst:n,next:null},n=pe.updateQueue,n===null&&(n=Ko(),pe.updateQueue=n),u=n.lastEffect,u===null?n.lastEffect=e.next=e:(c=u.next,u.next=e,e.next=c,n.lastEffect=e),e}function Jo(){return Za().memoizedState}function Fo(e,n,u,c){var v=c0();pe.flags|=e,v.memoizedState=Vi(1|n,{destroy:void 0},u,c===void 0?null:c)}function Wo(e,n,u,c){var v=Za();c=c===void 0?null:c;var y=v.memoizedState.inst;ua!==null&&c!==null&&m1(c,ua.memoizedState.deps)?v.memoizedState=Vi(n,y,u,c):(pe.flags|=e,v.memoizedState=Vi(1|n,y,u,c))}function Af(e,n){Fo(8390656,8,e,n)}function C1(e,n){Wo(2048,8,e,n)}function zf(e){pe.flags|=4;var n=pe.updateQueue;if(n===null)n=Ko(),pe.updateQueue=n,n.events=[e];else{var u=n.events;u===null?n.events=[e]:u.push(e)}}function Cf(e){var n=Za().memoizedState;return zf({ref:n,nextImpl:e}),function(){if((ee&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}function wf(e,n){return Wo(4,2,e,n)}function Df(e,n){return Wo(4,4,e,n)}function Nf(e,n){if(typeof n=="function"){e=e();var u=n(e);return function(){typeof u=="function"?u():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Rf(e,n,u){u=u!=null?u.concat([e]):null,Wo(4,4,Nf.bind(null,n,e),u)}function w1(){}function Of(e,n){var u=Za();n=n===void 0?null:n;var c=u.memoizedState;return n!==null&&m1(n,c[1])?c[0]:(u.memoizedState=[e,n],e)}function Bf(e,n){var u=Za();n=n===void 0?null:n;var c=u.memoizedState;if(n!==null&&m1(n,c[1]))return c[0];if(c=e(),zr){t0(!0);try{e()}finally{t0(!1)}}return u.memoizedState=[c,n],c}function D1(e,n,u){return u===void 0||(Ea&1073741824)!==0&&(Te&261930)===0?e.memoizedState=n:(e.memoizedState=u,e=Ne(),pe.lanes|=e,kl|=e,u)}function Hf(e,n,u,c){return Q0(u,n)?u:Ns.current!==null?(e=D1(e,u,c),Q0(e,n)||(l0=!0),e):(Ea&42)===0||(Ea&1073741824)!==0&&(Te&261930)===0?(l0=!0,e.memoizedState=u):(e=Ne(),pe.lanes|=e,kl|=e,n)}function Gf(e,n,u,c,v){var y=vt.p;vt.p=y!==0&&8>y?y:8;var A=K.T,R={};K.T=R,O1(e,!1,n,u);try{var V=v(),lt=K.S;if(lt!==null&<(R,V),V!==null&&typeof V=="object"&&typeof V.then=="function"){var dt=s1(V,c);Uu(e,n,dt,Mn(e))}else Uu(e,n,c,Mn(e))}catch(yt){Uu(e,n,{then:function(){},status:"rejected",reason:yt},Mn())}finally{vt.p=y,A!==null&&R.types!==null&&(A.types=R.types),K.T=A}}function g4(){}function N1(e,n,u,c){if(e.tag!==5)throw Error(i(476));var v=Uf(e).queue;Gf(e,v,n,mt,u===null?g4:function(){return qf(e),u(c)})}function Uf(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:mt,baseState:mt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:mt},next:null};var u={};return n.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:u},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function qf(e){var n=Uf(e);n.next===null&&(n=e.alternate.memoizedState),Uu(e,n.next.queue,{},Mn())}function R1(){return he(th)}function Lf(){return Za().memoizedState}function kf(){return Za().memoizedState}function p4(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var u=Mn();e=ci(u);var c=Yi(n,e,u);c!==null&&(Ae(c,n,u),Xi(c,n,u)),n={cache:l1()},e.payload=n;return}n=n.return}}function v4(e,n,u){var c=Mn();u={lane:c,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Io(e)?Xf(n,u):(u=Co(e,n,u,c),u!==null&&(Ae(u,e,c),jf(u,n,c)))}function Yf(e,n,u){var c=Mn();Uu(e,n,u,c)}function Uu(e,n,u,c){var v={lane:c,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Io(e))Xf(n,v);else{var y=e.alternate;if(e.lanes===0&&(y===null||y.lanes===0)&&(y=n.lastRenderedReducer,y!==null))try{var A=n.lastRenderedState,R=y(A,u);if(v.hasEagerState=!0,v.eagerState=R,Q0(R,A))return x0(e,n,v,0),fe===null&&Au(),!1}catch{}finally{}if(u=Co(e,n,v,c),u!==null)return Ae(u,e,c),jf(u,n,c),!0}return!1}function O1(e,n,u,c){if(c={lane:2,revertLane:ct(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Io(e)){if(n)throw Error(i(479))}else n=Co(e,u,c,2),n!==null&&Ae(n,e,2)}function Io(e){var n=e.alternate;return e===pe||n!==null&&n===pe}function Xf(e,n){Rs=Ln=!0;var u=e.pending;u===null?n.next=n:(n.next=u.next,u.next=n),e.pending=n}function jf(e,n,u){if((u&4194048)!==0){var c=n.lanes;c&=e.pendingLanes,u|=c,n.lanes=u,ml(e,u)}}var Bs={readContext:he,use:ji,useCallback:Na,useContext:Na,useEffect:Na,useImperativeHandle:Na,useLayoutEffect:Na,useInsertionEffect:Na,useMemo:Na,useReducer:Na,useRef:Na,useState:Na,useDebugValue:Na,useDeferredValue:Na,useTransition:Na,useSyncExternalStore:Na,useId:Na,useHostTransitionStatus:Na,useFormState:Na,useActionState:Na,useOptimistic:Na,useMemoCache:Na,useCacheRefresh:Na};Bs.useEffectEvent=Na;var Vf={readContext:he,use:ji,useCallback:function(e,n){return c0().memoizedState=[e,n===void 0?null:n],e},useContext:he,useEffect:Af,useImperativeHandle:function(e,n,u){u=u!=null?u.concat([e]):null,Fo(4194308,4,Nf.bind(null,n,e),u)},useLayoutEffect:function(e,n){return Fo(4194308,4,e,n)},useInsertionEffect:function(e,n){Fo(4,2,e,n)},useMemo:function(e,n){var u=c0();n=n===void 0?null:n;var c=e();if(zr){t0(!0);try{e()}finally{t0(!1)}}return u.memoizedState=[c,n],c},useReducer:function(e,n,u){var c=c0();if(u!==void 0){var v=u(n);if(zr){t0(!0);try{u(n)}finally{t0(!1)}}}else v=n;return c.memoizedState=c.baseState=v,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:v},c.queue=e,e=e.dispatch=v4.bind(null,pe,e),[c.memoizedState,e]},useRef:function(e){var n=c0();return e={current:e},n.memoizedState=e},useState:function(e){e=x1(e);var n=e.queue,u=Yf.bind(null,pe,n);return n.dispatch=u,[e.memoizedState,u]},useDebugValue:w1,useDeferredValue:function(e,n){var u=c0();return D1(u,e,n)},useTransition:function(){var e=x1(!1);return e=Gf.bind(null,pe,e.queue,!0,!1),c0().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,u){var c=pe,v=c0();if(qe){if(u===void 0)throw Error(i(407));u=u()}else{if(u=n(),fe===null)throw Error(i(349));(Te&127)!==0||gf(c,n,u)}v.memoizedState=u;var y={value:u,getSnapshot:n};return v.queue=y,Af(vf.bind(null,c,y,e),[e]),c.flags|=2048,Vi(9,{destroy:void 0},pf.bind(null,c,y,u,n),null),u},useId:function(){var e=c0(),n=fe.identifierPrefix;if(qe){var u=al,c=Da;u=(c&~(1<<32-j0(c)-1)).toString(32)+u,n="_"+n+"R_"+u,u=Vo++,0<u&&(n+="H"+u.toString(32)),n+="_"}else u=d1++,n="_"+n+"r_"+u.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:R1,useFormState:M1,useActionState:M1,useOptimistic:function(e){var n=c0();n.memoizedState=n.baseState=e;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=u,n=O1.bind(null,pe,!0,u),u.dispatch=n,[e,n]},useMemoCache:y1,useCacheRefresh:function(){return c0().memoizedState=p4.bind(null,pe)},useEffectEvent:function(e){var n=c0(),u={impl:e};return n.memoizedState=u,function(){if((ee&2)!==0)throw Error(i(440));return u.impl.apply(void 0,arguments)}}},B1={readContext:he,use:ji,useCallback:Of,useContext:he,useEffect:C1,useImperativeHandle:Rf,useInsertionEffect:wf,useLayoutEffect:Df,useMemo:Bf,useReducer:Zo,useRef:Jo,useState:function(){return Zo(fi)},useDebugValue:w1,useDeferredValue:function(e,n){var u=Za();return Hf(u,ua.memoizedState,e,n)},useTransition:function(){var e=Zo(fi)[0],n=Za().memoizedState;return[typeof e=="boolean"?e:Gu(e),n]},useSyncExternalStore:mf,useId:Lf,useHostTransitionStatus:R1,useFormState:_f,useActionState:_f,useOptimistic:function(e,n){var u=Za();return T1(u,ua,e,n)},useMemoCache:y1,useCacheRefresh:kf};B1.useEffectEvent=Cf;var kn={readContext:he,use:ji,useCallback:Of,useContext:he,useEffect:C1,useImperativeHandle:Rf,useInsertionEffect:wf,useLayoutEffect:Df,useMemo:Bf,useReducer:S1,useRef:Jo,useState:function(){return S1(fi)},useDebugValue:w1,useDeferredValue:function(e,n){var u=Za();return ua===null?D1(u,e,n):Hf(u,ua.memoizedState,e,n)},useTransition:function(){var e=S1(fi)[0],n=Za().memoizedState;return[typeof e=="boolean"?e:Gu(e),n]},useSyncExternalStore:mf,useId:Lf,useHostTransitionStatus:R1,useFormState:z1,useActionState:z1,useOptimistic:function(e,n){var u=Za();return ua!==null?T1(u,ua,e,n):(u.baseState=e,[e,u.queue.dispatch])},useMemoCache:y1,useCacheRefresh:kf};kn.useEffectEvent=Cf;function Po(e,n,u,c){n=e.memoizedState,u=u(c,n),u=u==null?n:_({},n,u),e.memoizedState=u,e.lanes===0&&(e.updateQueue.baseState=u)}var qu={enqueueSetState:function(e,n,u){e=e._reactInternals;var c=Mn(),v=ci(c);v.payload=n,u!=null&&(v.callback=u),n=Yi(e,v,c),n!==null&&(Ae(n,e,c),Xi(n,e,c))},enqueueReplaceState:function(e,n,u){e=e._reactInternals;var c=Mn(),v=ci(c);v.tag=1,v.payload=n,u!=null&&(v.callback=u),n=Yi(e,v,c),n!==null&&(Ae(n,e,c),Xi(n,e,c))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var u=Mn(),c=ci(u);c.tag=2,n!=null&&(c.callback=n),n=Yi(e,c,u),n!==null&&(Ae(n,e,u),Xi(n,e,u))}};function H1(e,n,u,c,v,y,A){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(c,y,A):n.prototype&&n.prototype.isPureReactComponent?!ps(u,c)||!ps(v,y):!0}function G1(e,n,u,c){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(u,c),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(u,c),n.state!==e&&qu.enqueueReplaceState(n,n.state,null)}function Qi(e,n){var u=n;if("ref"in n){u={};for(var c in n)c!=="ref"&&(u[c]=n[c])}if(e=e.defaultProps){u===n&&(u=_({},u));for(var v in e)u[v]===void 0&&(u[v]=e[v])}return u}function Qf(e){Mu(e)}function U1(e){console.error(e)}function q1(e){Mu(e)}function $o(e,n){try{var u=e.onUncaughtError;u(n.value,{componentStack:n.stack})}catch(c){setTimeout(function(){throw c})}}function Kf(e,n,u){try{var c=e.onCaughtError;c(u.value,{componentStack:u.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function L1(e,n,u){return u=ci(u),u.tag=3,u.payload={element:null},u.callback=function(){$o(e,n)},u}function k1(e){return e=ci(e),e.tag=3,e}function Zf(e,n,u,c){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var y=c.value;e.payload=function(){return v(y)},e.callback=function(){Kf(n,u,c)}}var A=u.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(e.callback=function(){Kf(n,u,c),typeof v!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var R=c.stack;this.componentDidCatch(c.value,{componentStack:R!==null?R:""})})}function h0(e,n,u,c,v){if(u.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(n=u.alternate,n!==null&&Rl(n,u,v,!0),u=un.current,u!==null){switch(u.tag){case 31:case 13:return J0===null?Ys():u.alternate===null&&Ra===0&&(Ra=3),u.flags&=-257,u.flags|=65536,u.lanes=v,c===Lo?u.flags|=16384:(n=u.updateQueue,n===null?u.updateQueue=new Set([c]):n.add(c),Wu(e,c,v)),!1;case 22:return u.flags|=65536,c===Lo?u.flags|=16384:(n=u.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([c])},u.updateQueue=n):(u=n.retryQueue,u===null?n.retryQueue=new Set([c]):u.add(c)),Wu(e,c,v)),!1}throw Error(i(435,u.tag))}return Wu(e,c,v),Ys(),!1}if(qe)return n=un.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=v,c!==_s&&(e=Error(i(422),{cause:c}),wl(vn(e,u)))):(c!==_s&&(n=Error(i(423),{cause:c}),wl(vn(n,u))),e=e.current.alternate,e.flags|=65536,v&=-v,e.lanes|=v,c=vn(c,u),v=L1(e.stateNode,c,v),ne(e,v),Ra!==4&&(Ra=2)),!1;var y=Error(i(520),{cause:c});if(y=vn(y,u),Ur===null?Ur=[y]:Ur.push(y),Ra!==4&&(Ra=2),n===null)return!0;c=vn(c,u),u=n;do{switch(u.tag){case 3:return u.flags|=65536,e=v&-v,u.lanes|=e,e=L1(u.stateNode,c,e),ne(u,e),!1;case 1:if(n=u.type,y=u.stateNode,(u.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Wa===null||!Wa.has(y))))return u.flags|=65536,v&=-v,u.lanes|=v,v=k1(v),Zf(v,e,u,c),ne(u,v),!1}u=u.return}while(u!==null);return!1}var tc=Error(i(461)),l0=!1;function T0(e,n,u,c){n.child=e===null?Xo(n,null,u,c):oi(n,e.child,u,c)}function Y1(e,n,u,c,v){u=u.render;var y=n.ref;if("ref"in c){var A={};for(var R in c)R!=="ref"&&(A[R]=c[R])}else A=c;return Li(n),c=Qo(e,n,u,A,y,v),R=g1(),e!==null&&!l0?(p1(e,n,v),Ja(e,n,v)):(qe&&R&&zl(n),n.flags|=1,T0(e,n,c,v),n.child)}function Dr(e,n,u,c,v){if(e===null){var y=u.type;return typeof y=="function"&&!wo(y)&&y.defaultProps===void 0&&u.compare===null?(n.tag=15,n.type=y,ec(e,n,y,c,v)):(e=Ml(u.type,null,c,n,n.mode,v),e.ref=n.ref,e.return=n,n.child=e)}if(y=e.child,!sc(e,v)){var A=y.memoizedProps;if(u=u.compare,u=u!==null?u:ps,u(A,c)&&e.ref===n.ref)return Ja(e,n,v)}return n.flags|=1,e=ln(y,c),e.ref=n.ref,e.return=n,n.child=e}function ec(e,n,u,c,v){if(e!==null){var y=e.memoizedProps;if(ps(y,c)&&e.ref===n.ref)if(l0=!1,n.pendingProps=c=y,sc(e,v))(e.flags&131072)!==0&&(l0=!0);else return n.lanes=e.lanes,Ja(e,n,v)}return Hs(e,n,u,c,v)}function Nr(e,n,u,c){var v=c.children,y=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((n.flags&128)!==0){if(y=y!==null?y.baseLanes|u:u,e!==null){for(c=n.child=e.child,v=0;c!==null;)v=v|c.lanes|c.childLanes,c=c.sibling;c=v&~y}else c=0,n.child=null;return cn(e,n,y,u,c)}if((u&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&wu(n,y!==null?y.cachePool:null),y!==null?hf(n,y):h1(),ff(n);else return c=n.lanes=536870912,cn(e,n,y!==null?y.baseLanes|u:u,u,c)}else y!==null?(wu(n,y.cachePool),hf(n,y),on(),n.memoizedState=null):(e!==null&&wu(n,null),h1(),on());return T0(e,n,v,u),n.child}function Bl(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function cn(e,n,u,c,v){var y=qo();return y=y===null?null:{parent:n0._currentValue,pool:y},n.memoizedState={baseLanes:u,cachePool:y},e!==null&&wu(n,null),h1(),ff(n),e!==null&&Rl(e,n,c,!0),n.childLanes=v,null}function ac(e,n){return n=rc({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Jf(e,n,u){return oi(n,e.child,null,u),e=ac(n,n.pendingProps),e.flags|=2,Ka(n),n.memoizedState=null,e}function nc(e,n,u){var c=n.pendingProps,v=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(qe){if(c.mode==="hidden")return e=ac(n,c),n.lanes=536870912,Bl(null,e);if(f1(n),(e=ma)?(e=O5(e,yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:ii!==null?{id:Da,overflow:al}:null,retryLane:536870912,hydrationErrors:null},u=xs(e),u.return=n,n.child=u,Ya=n,ma=null)):e=null,e===null)throw Cl(n);return n.lanes=536870912,null}return ac(n,c)}var y=e.memoizedState;if(y!==null){var A=y.dehydrated;if(f1(n),v)if(n.flags&256)n.flags&=-257,n=Jf(e,n,u);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(i(558));else if(l0||Rl(e,n,u,!1),v=(u&e.childLanes)!==0,l0||v){if(c=fe,c!==null&&(A=Ci(c,u),A!==0&&A!==y.retryLane))throw y.retryLane=A,K0(e,A),Ae(c,e,A),tc;Ys(),n=Jf(e,n,u)}else e=y.treeContext,ma=jl(A.nextSibling),Ya=n,qe=!0,ri=null,yn=!1,e!==null&&Oo(n,e),n=ac(n,c),n.flags|=4096;return n}return e=ln(e.child,{mode:c.mode,children:c.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Rr(e,n){var u=n.ref;if(u===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(i(284));(e===null||e.ref!==u)&&(n.flags|=4194816)}}function Hs(e,n,u,c,v){return Li(n),u=Qo(e,n,u,c,void 0,v),c=g1(),e!==null&&!l0?(p1(e,n,v),Ja(e,n,v)):(qe&&c&&zl(n),n.flags|=1,T0(e,n,u,v),n.child)}function Lu(e,n,u,c,v,y){return Li(n),n.updateQueue=null,u=Cr(n,c,u,v),df(e),c=g1(),e!==null&&!l0?(p1(e,n,y),Ja(e,n,y)):(qe&&c&&zl(n),n.flags|=1,T0(e,n,u,y),n.child)}function lc(e,n,u,c,v){if(Li(n),n.stateNode===null){var y=Oi,A=u.contextType;typeof A=="object"&&A!==null&&(y=he(A)),y=new u(c,y),n.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=qu,n.stateNode=y,y._reactInternals=n,y=n.stateNode,y.props=c,y.state=n.memoizedState,y.refs={},Ru(n),A=u.contextType,y.context=typeof A=="object"&&A!==null?he(A):Oi,y.state=n.memoizedState,A=u.getDerivedStateFromProps,typeof A=="function"&&(Po(n,u,A,c),y.state=n.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(A=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),A!==y.state&&qu.enqueueReplaceState(y,y.state,null),ws(n,c,y,v),Ou(),y.state=n.memoizedState),typeof y.componentDidMount=="function"&&(n.flags|=4194308),c=!0}else if(e===null){y=n.stateNode;var R=n.memoizedProps,V=Qi(u,R);y.props=V;var lt=y.context,dt=u.contextType;A=Oi,typeof dt=="object"&&dt!==null&&(A=he(dt));var yt=u.getDerivedStateFromProps;dt=typeof yt=="function"||typeof y.getSnapshotBeforeUpdate=="function",R=n.pendingProps!==R,dt||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(R||lt!==A)&&G1(n,y,c,A),Z0=!1;var rt=n.memoizedState;y.state=rt,ws(n,c,y,v),Ou(),lt=n.memoizedState,R||rt!==lt||Z0?(typeof yt=="function"&&(Po(n,u,yt,c),lt=n.memoizedState),(V=Z0||H1(n,u,V,c,rt,lt,A))?(dt||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(n.flags|=4194308)):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=c,n.memoizedState=lt),y.props=c,y.state=lt,y.context=A,c=V):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),c=!1)}else{y=n.stateNode,o1(e,n),A=n.memoizedProps,dt=Qi(u,A),y.props=dt,yt=n.pendingProps,rt=y.context,lt=u.contextType,V=Oi,typeof lt=="object"&<!==null&&(V=he(lt)),R=u.getDerivedStateFromProps,(lt=typeof R=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(A!==yt||rt!==V)&&G1(n,y,c,V),Z0=!1,rt=n.memoizedState,y.state=rt,ws(n,c,y,v),Ou();var ft=n.memoizedState;A!==yt||rt!==ft||Z0||e!==null&&e.dependencies!==null&&Cu(e.dependencies)?(typeof R=="function"&&(Po(n,u,R,c),ft=n.memoizedState),(dt=Z0||H1(n,u,dt,c,rt,ft,V)||e!==null&&e.dependencies!==null&&Cu(e.dependencies))?(lt||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(c,ft,V),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(c,ft,V)),typeof y.componentDidUpdate=="function"&&(n.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof y.componentDidUpdate!="function"||A===e.memoizedProps&&rt===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||A===e.memoizedProps&&rt===e.memoizedState||(n.flags|=1024),n.memoizedProps=c,n.memoizedState=ft),y.props=c,y.state=ft,y.context=V,c=dt):(typeof y.componentDidUpdate!="function"||A===e.memoizedProps&&rt===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||A===e.memoizedProps&&rt===e.memoizedState||(n.flags|=1024),c=!1)}return y=c,Rr(e,n),c=(n.flags&128)!==0,y||c?(y=n.stateNode,u=c&&typeof u.getDerivedStateFromError!="function"?null:y.render(),n.flags|=1,e!==null&&c?(n.child=oi(n,e.child,null,v),n.child=oi(n,null,u,v)):T0(e,n,u,v),n.memoizedState=y.state,e=n.child):e=Ja(e,n,v),e}function Ff(e,n,u,c){return Ui(),n.flags|=256,T0(e,n,u,c),n.child}var X1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function L0(e){return{baseLanes:e,cachePool:u1()}}function ic(e,n,u){return e=e!==null?e.childLanes&~u:0,n&&(e|=P0),e}function Wf(e,n,u){var c=n.pendingProps,v=!1,y=(n.flags&128)!==0,A;if((A=y)||(A=e!==null&&e.memoizedState===null?!1:(Le.current&2)!==0),A&&(v=!0,n.flags&=-129),A=(n.flags&32)!==0,n.flags&=-33,e===null){if(qe){if(v?hi(n):on(),(e=ma)?(e=O5(e,yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:ii!==null?{id:Da,overflow:al}:null,retryLane:536870912,hydrationErrors:null},u=xs(e),u.return=n,n.child=u,Ya=n,ma=null)):e=null,e===null)throw Cl(n);return N4(e)?n.lanes=32:n.lanes=536870912,null}var R=c.children;return c=c.fallback,v?(on(),v=n.mode,R=rc({mode:"hidden",children:R},v),c=Bi(c,v,u,null),R.return=n,c.return=n,R.sibling=c,n.child=R,c=n.child,c.memoizedState=L0(u),c.childLanes=ic(e,A,u),n.memoizedState=X1,Bl(null,c)):(hi(n),ku(n,R))}var V=e.memoizedState;if(V!==null&&(R=V.dehydrated,R!==null)){if(y)n.flags&256?(hi(n),n.flags&=-257,n=j1(e,n,u)):n.memoizedState!==null?(on(),n.child=e.child,n.flags|=128,n=null):(on(),R=c.fallback,v=n.mode,c=rc({mode:"visible",children:c.children},v),R=Bi(R,v,u,null),R.flags|=2,c.return=n,R.return=n,c.sibling=R,n.child=c,oi(n,e.child,null,u),c=n.child,c.memoizedState=L0(u),c.childLanes=ic(e,A,u),n.memoizedState=X1,n=Bl(null,c));else if(hi(n),N4(R)){if(A=R.nextSibling&&R.nextSibling.dataset,A)var lt=A.dgst;A=lt,c=Error(i(419)),c.stack="",c.digest=A,wl({value:c,source:null,stack:null}),n=j1(e,n,u)}else if(l0||Rl(e,n,u,!1),A=(u&e.childLanes)!==0,l0||A){if(A=fe,A!==null&&(c=Ci(A,u),c!==0&&c!==V.retryLane))throw V.retryLane=c,K0(e,c),Ae(A,e,c),tc;D4(R)||Ys(),n=j1(e,n,u)}else D4(R)?(n.flags|=192,n.child=e.child,n=null):(e=V.treeContext,ma=jl(R.nextSibling),Ya=n,qe=!0,ri=null,yn=!1,e!==null&&Oo(n,e),n=ku(n,c.children),n.flags|=4096);return n}return v?(on(),R=c.fallback,v=n.mode,V=e.child,lt=V.sibling,c=ln(V,{mode:"hidden",children:c.children}),c.subtreeFlags=V.subtreeFlags&65011712,lt!==null?R=ln(lt,R):(R=Bi(R,v,u,null),R.flags|=2),R.return=n,c.return=n,c.sibling=R,n.child=c,Bl(null,c),c=n.child,R=e.child.memoizedState,R===null?R=L0(u):(v=R.cachePool,v!==null?(V=n0._currentValue,v=v.parent!==V?{parent:V,pool:V}:v):v=u1(),R={baseLanes:R.baseLanes|u,cachePool:v}),c.memoizedState=R,c.childLanes=ic(e,A,u),n.memoizedState=X1,Bl(e.child,c)):(hi(n),u=e.child,e=u.sibling,u=ln(u,{mode:"visible",children:c.children}),u.return=n,u.sibling=null,e!==null&&(A=n.deletions,A===null?(n.deletions=[e],n.flags|=16):A.push(e)),n.child=u,n.memoizedState=null,u)}function ku(e,n){return n=rc({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function rc(e,n){return e=wa(22,e,null,n),e.lanes=0,e}function j1(e,n,u){return oi(n,e.child,null,u),e=ku(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function If(e,n,u){e.lanes|=n;var c=e.alternate;c!==null&&(c.lanes|=n),Ho(e.return,n,u)}function Or(e,n,u,c,v,y){var A=e.memoizedState;A===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:c,tail:u,tailMode:v,treeForkCount:y}:(A.isBackwards=n,A.rendering=null,A.renderingStartTime=0,A.last=c,A.tail=u,A.tailMode=v,A.treeForkCount=y)}function hn(e,n,u){var c=n.pendingProps,v=c.revealOrder,y=c.tail;c=c.children;var A=Le.current,R=(A&2)!==0;if(R?(A=A&1|2,n.flags|=128):A&=1,gt(Le,A),T0(e,n,c,u),c=qe?Es:0,!R&&e!==null&&(e.flags&128)!==0)t:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&If(e,u,n);else if(e.tag===19)If(e,u,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break t;for(;e.sibling===null;){if(e.return===null||e.return===n)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(v){case"forwards":for(u=n.child,v=null;u!==null;)e=u.alternate,e!==null&&Sn(e)===null&&(v=u),u=u.sibling;u=v,u===null?(v=n.child,n.child=null):(v=u.sibling,u.sibling=null),Or(n,!1,v,u,y,c);break;case"backwards":case"unstable_legacy-backwards":for(u=null,v=n.child,n.child=null;v!==null;){if(e=v.alternate,e!==null&&Sn(e)===null){n.child=v;break}e=v.sibling,v.sibling=u,u=v,v=e}Or(n,!0,u,null,y,c);break;case"together":Or(n,!1,null,null,void 0,c);break;default:n.memoizedState=null}return n.child}function Ja(e,n,u){if(e!==null&&(n.dependencies=e.dependencies),kl|=n.lanes,(u&n.childLanes)===0)if(e!==null){if(Rl(e,n,u,!1),(u&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,u=ln(e,e.pendingProps),n.child=u,u.return=n;e.sibling!==null;)e=e.sibling,u=u.sibling=ln(e,e.pendingProps),u.return=n;u.sibling=null}return n.child}function sc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Cu(e)))}function y4(e,n,u){switch(n.tag){case 3:It(n,n.stateNode.containerInfo),si(n,n0,e.memoizedState.cache),Ui();break;case 27:case 5:ze(n);break;case 4:It(n,n.stateNode.containerInfo);break;case 10:si(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,f1(n),null;break;case 13:var c=n.memoizedState;if(c!==null)return c.dehydrated!==null?(hi(n),n.flags|=128,null):(u&n.child.childLanes)!==0?Wf(e,n,u):(hi(n),e=Ja(e,n,u),e!==null?e.sibling:null);hi(n);break;case 19:var v=(e.flags&128)!==0;if(c=(u&n.childLanes)!==0,c||(Rl(e,n,u,!1),c=(u&n.childLanes)!==0),v){if(c)return hn(e,n,u);n.flags|=128}if(v=n.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),gt(Le,Le.current),c)break;return null;case 22:return n.lanes=0,Nr(e,n,u,n.pendingProps);case 24:si(n,n0,e.memoizedState.cache)}return Ja(e,n,u)}function uc(e,n,u){if(e!==null)if(e.memoizedProps!==n.pendingProps)l0=!0;else{if(!sc(e,u)&&(n.flags&128)===0)return l0=!1,y4(e,n,u);l0=(e.flags&131072)!==0}else l0=!1,qe&&(n.flags&1048576)!==0&&nf(n,Es,n.index);switch(n.lanes=0,n.tag){case 16:t:{var c=n.pendingProps;if(e=Tr(n.elementType),n.type=e,typeof e=="function")wo(e)?(c=Qi(e,c),n.tag=1,n=lc(null,n,e,c,u)):(n.tag=0,n=Hs(null,n,e,c,u));else{if(e!=null){var v=e.$$typeof;if(v===j){n.tag=11,n=Y1(null,n,e,c,u);break t}else if(v===st){n.tag=14,n=Dr(null,n,e,c,u);break t}}throw n=Vt(e)||e,Error(i(306,n,""))}}return n;case 0:return Hs(e,n,n.type,n.pendingProps,u);case 1:return c=n.type,v=Qi(c,n.pendingProps),lc(e,n,c,v,u);case 3:t:{if(It(n,n.stateNode.containerInfo),e===null)throw Error(i(387));c=n.pendingProps;var y=n.memoizedState;v=y.element,o1(e,n),ws(n,c,null,u);var A=n.memoizedState;if(c=A.cache,si(n,n0,c),c!==y.cache&&Go(n,[n0],u,!0),Ou(),c=A.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:A.cache},n.updateQueue.baseState=y,n.memoizedState=y,n.flags&256){n=Ff(e,n,c,u);break t}else if(c!==v){v=vn(Error(i(424)),n),wl(v),n=Ff(e,n,c,u);break t}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ma=jl(e.firstChild),Ya=n,qe=!0,ri=null,yn=!0,u=Xo(n,null,c,u),n.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Ui(),c===v){n=Ja(e,n,u);break t}T0(e,n,c,u)}n=n.child}return n;case 26:return Rr(e,n),e===null?(u=L5(n.type,null,n.pendingProps,null))?n.memoizedState=u:qe||(u=n.type,e=n.pendingProps,c=e2(Mt.current).createElement(u),c[ka]=n,c[v0]=e,tn(c,u,e),Qt(c),n.stateNode=c):n.memoizedState=L5(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return ze(n),e===null&&qe&&(c=n.stateNode=G5(n.type,n.pendingProps,Mt.current),Ya=n,yn=!0,v=ma,Qs(n.type)?(R4=v,ma=jl(c.firstChild)):ma=v),T0(e,n,n.pendingProps.children,u),Rr(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&qe&&((v=c=ma)&&(c=v7(c,n.type,n.pendingProps,yn),c!==null?(n.stateNode=c,Ya=n,ma=jl(c.firstChild),yn=!1,v=!0):v=!1),v||Cl(n)),ze(n),v=n.type,y=n.pendingProps,A=e!==null?e.memoizedProps:null,c=y.children,z4(v,y)?c=null:A!==null&&z4(v,A)&&(n.flags|=32),n.memoizedState!==null&&(v=Qo(e,n,wr,null,null,u),th._currentValue=v),Rr(e,n),T0(e,n,c,u),n.child;case 6:return e===null&&qe&&((e=u=ma)&&(u=y7(u,n.pendingProps,yn),u!==null?(n.stateNode=u,Ya=n,ma=null,e=!0):e=!1),e||Cl(n)),null;case 13:return Wf(e,n,u);case 4:return It(n,n.stateNode.containerInfo),c=n.pendingProps,e===null?n.child=oi(n,null,c,u):T0(e,n,c,u),n.child;case 11:return Y1(e,n,n.type,n.pendingProps,u);case 7:return T0(e,n,n.pendingProps,u),n.child;case 8:return T0(e,n,n.pendingProps.children,u),n.child;case 12:return T0(e,n,n.pendingProps.children,u),n.child;case 10:return c=n.pendingProps,si(n,n.type,c.value),T0(e,n,c.children,u),n.child;case 9:return v=n.type._context,c=n.pendingProps.children,Li(n),v=he(v),c=c(v),n.flags|=1,T0(e,n,c,u),n.child;case 14:return Dr(e,n,n.type,n.pendingProps,u);case 15:return ec(e,n,n.type,n.pendingProps,u);case 19:return hn(e,n,u);case 31:return nc(e,n,u);case 22:return Nr(e,n,u,n.pendingProps);case 24:return Li(n),c=he(n0),e===null?(v=qo(),v===null&&(v=fe,y=l1(),v.pooledCache=y,y.refCount++,y!==null&&(v.pooledCacheLanes|=u),v=y),n.memoizedState={parent:c,cache:v},Ru(n),si(n,n0,v)):((e.lanes&u)!==0&&(o1(e,n),ws(n,null,null,u),Ou()),v=e.memoizedState,y=n.memoizedState,v.parent!==c?(v={parent:c,cache:c},n.memoizedState=v,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=v),si(n,n0,c)):(c=y.cache,si(n,n0,c),c!==v.cache&&Go(n,[n0],u,!0))),T0(e,n,n.pendingProps.children,u),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function Hl(e){e.flags|=4}function Yu(e,n,u,c,v){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(v&335544128)===v)if(e.stateNode.complete)e.flags|=8192;else if(Ba())e.flags|=8192;else throw Ol=Lo,Du}else e.flags&=-16777217}function V1(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!V5(n))if(Ba())e.flags|=8192;else throw Ol=Lo,Du}function di(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?gn():536870912,e.lanes|=n,ya|=n)}function Gl(e,n){if(!qe)switch(e.tailMode){case"hidden":n=e.tail;for(var u=null;n!==null;)n.alternate!==null&&(u=n),n=n.sibling;u===null?e.tail=null:u.sibling=null;break;case"collapsed":u=e.tail;for(var c=null;u!==null;)u.alternate!==null&&(c=u),u=u.sibling;c===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:c.sibling=null}}function oa(e){var n=e.alternate!==null&&e.alternate.child===e.child,u=0,c=0;if(n)for(var v=e.child;v!==null;)u|=v.lanes|v.childLanes,c|=v.subtreeFlags&65011712,c|=v.flags&65011712,v.return=e,v=v.sibling;else for(v=e.child;v!==null;)u|=v.lanes|v.childLanes,c|=v.subtreeFlags,c|=v.flags,v.return=e,v=v.sibling;return e.subtreeFlags|=c,e.childLanes=u,n}function Xu(e,n,u){var c=n.pendingProps;switch(Ro(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return oa(n),null;case 1:return oa(n),null;case 3:return u=n.stateNode,c=null,e!==null&&(c=e.memoizedState.cache),n.memoizedState.cache!==c&&(n.flags|=2048),Nl(n0),Pt(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(e===null||e.child===null)&&(Ms(n)?Hl(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Bo())),oa(n),null;case 26:var v=n.type,y=n.memoizedState;return e===null?(Hl(n),y!==null?(oa(n),V1(n,y)):(oa(n),Yu(n,v,null,c,u))):y?y!==e.memoizedState?(Hl(n),oa(n),V1(n,y)):(oa(n),n.flags&=-16777217):(e=e.memoizedProps,e!==c&&Hl(n),oa(n),Yu(n,v,e,c,u)),null;case 27:if(re(n),u=Mt.current,v=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==c&&Hl(n);else{if(!c){if(n.stateNode===null)throw Error(i(166));return oa(n),null}e=Bt.current,Ms(n)?lf(n):(e=G5(v,c,u),n.stateNode=e,Hl(n))}return oa(n),null;case 5:if(re(n),v=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==c&&Hl(n);else{if(!c){if(n.stateNode===null)throw Error(i(166));return oa(n),null}if(y=Bt.current,Ms(n))lf(n);else{var A=e2(Mt.current);switch(y){case 1:y=A.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:y=A.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":y=A.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":y=A.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":y=A.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof c.is=="string"?A.createElement("select",{is:c.is}):A.createElement("select"),c.multiple?y.multiple=!0:c.size&&(y.size=c.size);break;default:y=typeof c.is=="string"?A.createElement(v,{is:c.is}):A.createElement(v)}}y[ka]=n,y[v0]=c;t:for(A=n.child;A!==null;){if(A.tag===5||A.tag===6)y.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===n)break t;for(;A.sibling===null;){if(A.return===null||A.return===n)break t;A=A.return}A.sibling.return=A.return,A=A.sibling}n.stateNode=y;t:switch(tn(y,v,c),v){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break t;case"img":c=!0;break t;default:c=!1}c&&Hl(n)}}return oa(n),Yu(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,u),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==c&&Hl(n);else{if(typeof c!="string"&&n.stateNode===null)throw Error(i(166));if(e=Mt.current,Ms(n)){if(e=n.stateNode,u=n.memoizedProps,c=null,v=Ya,v!==null)switch(v.tag){case 27:case 5:c=v.memoizedProps}e[ka]=n,e=!!(e.nodeValue===u||c!==null&&c.suppressHydrationWarning===!0||M5(e.nodeValue,u)),e||Cl(n,!0)}else e=e2(e).createTextNode(c),e[ka]=n,n.stateNode=e}return oa(n),null;case 31:if(u=n.memoizedState,e===null||e.memoizedState!==null){if(c=Ms(n),u!==null){if(e===null){if(!c)throw Error(i(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[ka]=n}else Ui(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;oa(n),e=!1}else u=Bo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),e=!0;if(!e)return n.flags&256?(Ka(n),n):(Ka(n),null);if((n.flags&128)!==0)throw Error(i(558))}return oa(n),null;case 13:if(c=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(v=Ms(n),c!==null&&c.dehydrated!==null){if(e===null){if(!v)throw Error(i(318));if(v=n.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(i(317));v[ka]=n}else Ui(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;oa(n),v=!1}else v=Bo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=v),v=!0;if(!v)return n.flags&256?(Ka(n),n):(Ka(n),null)}return Ka(n),(n.flags&128)!==0?(n.lanes=u,n):(u=c!==null,e=e!==null&&e.memoizedState!==null,u&&(c=n.child,v=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(v=c.alternate.memoizedState.cachePool.pool),y=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(y=c.memoizedState.cachePool.pool),y!==v&&(c.flags|=2048)),u!==e&&u&&(n.child.flags|=8192),di(n,n.updateQueue),oa(n),null);case 4:return Pt(),e===null&&T4(n.stateNode.containerInfo),oa(n),null;case 10:return Nl(n.type),oa(n),null;case 19:if(I(Le),c=n.memoizedState,c===null)return oa(n),null;if(v=(n.flags&128)!==0,y=c.rendering,y===null)if(v)Gl(c,!1);else{if(Ra!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(y=Sn(e),y!==null){for(n.flags|=128,Gl(c,!1),e=y.updateQueue,n.updateQueue=e,di(n,e),n.subtreeFlags=0,e=u,u=n.child;u!==null;)Ss(u,e),u=u.sibling;return gt(Le,Le.current&1|2),qe&&Al(n,c.treeForkCount),n.child}e=e.sibling}c.tail!==null&&ea()>Fa&&(n.flags|=128,v=!0,Gl(c,!1),n.lanes=4194304)}else{if(!v)if(e=Sn(y),e!==null){if(n.flags|=128,v=!0,e=e.updateQueue,n.updateQueue=e,di(n,e),Gl(c,!0),c.tail===null&&c.tailMode==="hidden"&&!y.alternate&&!qe)return oa(n),null}else 2*ea()-c.renderingStartTime>Fa&&u!==536870912&&(n.flags|=128,v=!0,Gl(c,!1),n.lanes=4194304);c.isBackwards?(y.sibling=n.child,n.child=y):(e=c.last,e!==null?e.sibling=y:n.child=y,c.last=y)}return c.tail!==null?(e=c.tail,c.rendering=e,c.tail=e.sibling,c.renderingStartTime=ea(),e.sibling=null,u=Le.current,gt(Le,v?u&1|2:u&1),qe&&Al(n,c.treeForkCount),e):(oa(n),null);case 22:case 23:return Ka(n),Bu(),c=n.memoizedState!==null,e!==null?e.memoizedState!==null!==c&&(n.flags|=8192):c&&(n.flags|=8192),c?(u&536870912)!==0&&(n.flags&128)===0&&(oa(n),n.subtreeFlags&6&&(n.flags|=8192)):oa(n),u=n.updateQueue,u!==null&&di(n,u.retryQueue),u=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(u=e.memoizedState.cachePool.pool),c=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),c!==u&&(n.flags|=2048),e!==null&&I(ki),null;case 24:return u=null,e!==null&&(u=e.memoizedState.cache),n.memoizedState.cache!==u&&(n.flags|=2048),Nl(n0),oa(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function Yn(e,n){switch(Ro(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Nl(n0),Pt(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return re(n),null;case 31:if(n.memoizedState!==null){if(Ka(n),n.alternate===null)throw Error(i(340));Ui()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Ka(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Ui()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return I(Le),null;case 4:return Pt(),null;case 10:return Nl(n.type),null;case 22:case 23:return Ka(n),Bu(),e!==null&&I(ki),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Nl(n0),null;case 25:return null;default:return null}}function xn(e,n){switch(Ro(n),n.tag){case 3:Nl(n0),Pt();break;case 26:case 27:case 5:re(n);break;case 4:Pt();break;case 31:n.memoizedState!==null&&Ka(n);break;case 13:Ka(n);break;case 19:I(Le);break;case 10:Nl(n.type);break;case 22:case 23:Ka(n),Bu(),e!==null&&I(ki);break;case 24:Nl(n0)}}function Xn(e,n){try{var u=n.updateQueue,c=u!==null?u.lastEffect:null;if(c!==null){var v=c.next;u=v;do{if((u.tag&e)===e){c=void 0;var y=u.create,A=u.inst;c=y(),A.destroy=c}u=u.next}while(u!==v)}}catch(R){Qe(n,n.return,R)}}function N0(e,n,u){try{var c=n.updateQueue,v=c!==null?c.lastEffect:null;if(v!==null){var y=v.next;c=y;do{if((c.tag&e)===e){var A=c.inst,R=A.destroy;if(R!==void 0){A.destroy=void 0,v=n;var V=u,lt=R;try{lt()}catch(dt){Qe(v,V,dt)}}}c=c.next}while(c!==y)}}catch(dt){Qe(n,n.return,dt)}}function nl(e){var n=e.updateQueue;if(n!==null){var u=e.stateNode;try{cf(n,u)}catch(c){Qe(e,e.return,c)}}}function E0(e,n,u){u.props=Qi(e.type,e.memoizedProps),u.state=e.memoizedState;try{u.componentWillUnmount()}catch(c){Qe(e,n,c)}}function mi(e,n){try{var u=e.ref;if(u!==null){switch(e.tag){case 26:case 27:case 5:var c=e.stateNode;break;case 30:c=e.stateNode;break;default:c=e.stateNode}typeof u=="function"?e.refCleanup=u(c):u.current=c}}catch(v){Qe(e,n,v)}}function R0(e,n){var u=e.ref,c=e.refCleanup;if(u!==null)if(typeof c=="function")try{c()}catch(v){Qe(e,n,v)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){Qe(e,n,v)}else u.current=null}function ju(e){var n=e.type,u=e.memoizedProps,c=e.stateNode;try{t:switch(n){case"button":case"input":case"select":case"textarea":u.autoFocus&&c.focus();break t;case"img":u.src?c.src=u.src:u.srcSet&&(c.srcset=u.srcSet)}}catch(v){Qe(e,e.return,v)}}function f0(e,n,u){try{var c=e.stateNode;h7(c,e.type,u,n),c[v0]=n}catch(v){Qe(e,e.return,v)}}function _a(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qs(e.type)||e.tag===4}function He(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||_a(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qs(e.type)||e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ul(e,n,u){var c=e.tag;if(c===5||c===6)e=e.stateNode,n?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(e,n):(n=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,n.appendChild(e),u=u._reactRootContainer,u!=null||n.onclick!==null||(n.onclick=ai));else if(c!==4&&(c===27&&Qs(e.type)&&(u=e.stateNode,n=null),e=e.child,e!==null))for(Ul(e,n,u),e=e.sibling;e!==null;)Ul(e,n,u),e=e.sibling}function F0(e,n,u){var c=e.tag;if(c===5||c===6)e=e.stateNode,n?u.insertBefore(e,n):u.appendChild(e);else if(c!==4&&(c===27&&Qs(e.type)&&(u=e.stateNode),e=e.child,e!==null))for(F0(e,n,u),e=e.sibling;e!==null;)F0(e,n,u),e=e.sibling}function oc(e){var n=e.stateNode,u=e.memoizedProps;try{for(var c=e.type,v=n.attributes;v.length;)n.removeAttributeNode(v[0]);tn(n,c,u),n[ka]=e,n[v0]=u}catch(y){Qe(e,e.return,y)}}var jn=!1,ga=!1,ll=!1,Pf=typeof WeakSet=="function"?WeakSet:Set,_0=null;function b4(e,n){if(e=e.containerInfo,M4=u2,e=$h(e),$c(e)){if("selectionStart"in e)var u={start:e.selectionStart,end:e.selectionEnd};else t:{u=(u=e.ownerDocument)&&u.defaultView||window;var c=u.getSelection&&u.getSelection();if(c&&c.rangeCount!==0){u=c.anchorNode;var v=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{u.nodeType,y.nodeType}catch{u=null;break t}var A=0,R=-1,V=-1,lt=0,dt=0,yt=e,rt=null;e:for(;;){for(var ft;yt!==u||v!==0&&yt.nodeType!==3||(R=A+v),yt!==y||c!==0&&yt.nodeType!==3||(V=A+c),yt.nodeType===3&&(A+=yt.nodeValue.length),(ft=yt.firstChild)!==null;)rt=yt,yt=ft;for(;;){if(yt===e)break e;if(rt===u&&++lt===v&&(R=A),rt===y&&++dt===c&&(V=A),(ft=yt.nextSibling)!==null)break;yt=rt,rt=yt.parentNode}yt=ft}u=R===-1||V===-1?null:{start:R,end:V}}else u=null}u=u||{start:0,end:0}}else u=null;for(A4={focusedElem:e,selectionRange:u},u2=!1,_0=n;_0!==null;)if(n=_0,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,_0=e;else for(;_0!==null;){switch(n=_0,y=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(u=0;u<e.length;u++)v=e[u],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&y!==null){e=void 0,u=n,v=y.memoizedProps,y=y.memoizedState,c=u.stateNode;try{var Wt=Qi(u.type,v);e=c.getSnapshotBeforeUpdate(Wt,y),c.__reactInternalSnapshotBeforeUpdate=e}catch(ce){Qe(u,u.return,ce)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,u=e.nodeType,u===9)w4(e);else if(u===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":w4(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=n.sibling,e!==null){e.return=n.return,_0=e;break}_0=n.return}}function Ma(e,n,u){var c=u.flags;switch(u.tag){case 0:case 11:case 15:Kn(e,u),c&4&&Xn(5,u);break;case 1:if(Kn(e,u),c&4)if(e=u.stateNode,n===null)try{e.componentDidMount()}catch(A){Qe(u,u.return,A)}else{var v=Qi(u.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(v,n,e.__reactInternalSnapshotBeforeUpdate)}catch(A){Qe(u,u.return,A)}}c&64&&nl(u),c&512&&mi(u,u.return);break;case 3:if(Kn(e,u),c&64&&(e=u.updateQueue,e!==null)){if(n=null,u.child!==null)switch(u.child.tag){case 27:case 5:n=u.child.stateNode;break;case 1:n=u.child.stateNode}try{cf(e,n)}catch(A){Qe(u,u.return,A)}}break;case 27:n===null&&c&4&&oc(u);case 26:case 5:Kn(e,u),n===null&&c&4&&ju(u),c&512&&mi(u,u.return);break;case 12:Kn(e,u);break;case 31:Kn(e,u),c&4&&Ki(e,u);break;case 13:Kn(e,u),c&4&&Gs(e,u),c&64&&(e=u.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(u=f.bind(null,u),b7(e,u))));break;case 22:if(c=u.memoizedState!==null||jn,!c){n=n!==null&&n.memoizedState!==null||ga,v=jn;var y=ga;jn=c,(ga=n)&&!y?W0(e,u,(u.subtreeFlags&8772)!==0):Kn(e,u),jn=v,ga=y}break;case 30:break;default:Kn(e,u)}}function Vu(e){var n=e.alternate;n!==null&&(e.alternate=null,Vu(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&bl(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var aa=null,k0=!1;function Vn(e,n,u){for(u=u.child;u!==null;)cc(e,n,u),u=u.sibling}function cc(e,n,u){if(U0&&typeof U0.onCommitFiberUnmount=="function")try{U0.onCommitFiberUnmount(fl,u)}catch{}switch(u.tag){case 26:ga||R0(u,n),Vn(e,n,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:ga||R0(u,n);var c=aa,v=k0;Qs(u.type)&&(aa=u.stateNode,k0=!1),Vn(e,n,u),I1(u.stateNode),aa=c,k0=v;break;case 5:ga||R0(u,n);case 6:if(c=aa,v=k0,aa=null,Vn(e,n,u),aa=c,k0=v,aa!==null)if(k0)try{(aa.nodeType===9?aa.body:aa.nodeName==="HTML"?aa.ownerDocument.body:aa).removeChild(u.stateNode)}catch(y){Qe(u,n,y)}else try{aa.removeChild(u.stateNode)}catch(y){Qe(u,n,y)}break;case 18:aa!==null&&(k0?(e=aa,N5(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,u.stateNode),yc(e)):N5(aa,u.stateNode));break;case 4:c=aa,v=k0,aa=u.stateNode.containerInfo,k0=!0,Vn(e,n,u),aa=c,k0=v;break;case 0:case 11:case 14:case 15:N0(2,u,n),ga||N0(4,u,n),Vn(e,n,u);break;case 1:ga||(R0(u,n),c=u.stateNode,typeof c.componentWillUnmount=="function"&&E0(u,n,c)),Vn(e,n,u);break;case 21:Vn(e,n,u);break;case 22:ga=(c=ga)||u.memoizedState!==null,Vn(e,n,u),ga=c;break;default:Vn(e,n,u)}}function Ki(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{yc(e)}catch(u){Qe(n,n.return,u)}}}function Gs(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{yc(e)}catch(u){Qe(n,n.return,u)}}function Q1(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Pf),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Pf),n;default:throw Error(i(435,e.tag))}}function gi(e,n){var u=Q1(e);n.forEach(function(c){if(!u.has(c)){u.add(c);var v=m.bind(null,e,c);c.then(v,v)}})}function d0(e,n){var u=n.deletions;if(u!==null)for(var c=0;c<u.length;c++){var v=u[c],y=e,A=n,R=A;t:for(;R!==null;){switch(R.tag){case 27:if(Qs(R.type)){aa=R.stateNode,k0=!1;break t}break;case 5:aa=R.stateNode,k0=!1;break t;case 3:case 4:aa=R.stateNode.containerInfo,k0=!0;break t}R=R.return}if(aa===null)throw Error(i(160));cc(y,A,v),aa=null,k0=!1,y=v.alternate,y!==null&&(y.return=null),v.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Zi(n,e),n=n.sibling}var Qn=null;function Zi(e,n){var u=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:d0(n,e),m0(e),c&4&&(N0(3,e,e.return),Xn(3,e),N0(5,e,e.return));break;case 1:d0(n,e),m0(e),c&512&&(ga||u===null||R0(u,u.return)),c&64&&jn&&(e=e.updateQueue,e!==null&&(c=e.callbacks,c!==null&&(u=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=u===null?c:u.concat(c))));break;case 26:var v=Qn;if(d0(n,e),m0(e),c&512&&(ga||u===null||R0(u,u.return)),c&4){var y=u!==null?u.memoizedState:null;if(c=e.memoizedState,u===null)if(c===null)if(e.stateNode===null){t:{c=e.type,u=e.memoizedProps,v=v.ownerDocument||v;e:switch(c){case"title":y=v.getElementsByTagName("title")[0],(!y||y[Nn]||y[ka]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=v.createElement(c),v.head.insertBefore(y,v.querySelector("head > title"))),tn(y,c,u),y[ka]=e,Qt(y),c=y;break t;case"link":var A=X5("link","href",v).get(c+(u.href||""));if(A){for(var R=0;R<A.length;R++)if(y=A[R],y.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&y.getAttribute("rel")===(u.rel==null?null:u.rel)&&y.getAttribute("title")===(u.title==null?null:u.title)&&y.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){A.splice(R,1);break e}}y=v.createElement(c),tn(y,c,u),v.head.appendChild(y);break;case"meta":if(A=X5("meta","content",v).get(c+(u.content||""))){for(R=0;R<A.length;R++)if(y=A[R],y.getAttribute("content")===(u.content==null?null:""+u.content)&&y.getAttribute("name")===(u.name==null?null:u.name)&&y.getAttribute("property")===(u.property==null?null:u.property)&&y.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&y.getAttribute("charset")===(u.charSet==null?null:u.charSet)){A.splice(R,1);break e}}y=v.createElement(c),tn(y,c,u),v.head.appendChild(y);break;default:throw Error(i(468,c))}y[ka]=e,Qt(y),c=y}e.stateNode=c}else j5(v,e.type,e.stateNode);else e.stateNode=Y5(v,c,e.memoizedProps);else y!==c?(y===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):y.count--,c===null?j5(v,e.type,e.stateNode):Y5(v,c,e.memoizedProps)):c===null&&e.stateNode!==null&&f0(e,e.memoizedProps,u.memoizedProps)}break;case 27:d0(n,e),m0(e),c&512&&(ga||u===null||R0(u,u.return)),u!==null&&c&4&&f0(e,e.memoizedProps,u.memoizedProps);break;case 5:if(d0(n,e),m0(e),c&512&&(ga||u===null||R0(u,u.return)),e.flags&32){v=e.stateNode;try{fr(v,"")}catch(Wt){Qe(e,e.return,Wt)}}c&4&&e.stateNode!=null&&(v=e.memoizedProps,f0(e,v,u!==null?u.memoizedProps:v)),c&1024&&(ll=!0);break;case 6:if(d0(n,e),m0(e),c&4){if(e.stateNode===null)throw Error(i(162));c=e.memoizedProps,u=e.stateNode;try{u.nodeValue=c}catch(Wt){Qe(e,e.return,Wt)}}break;case 3:if(l2=null,v=Qn,Qn=a2(n.containerInfo),d0(n,e),Qn=v,m0(e),c&4&&u!==null&&u.memoizedState.isDehydrated)try{yc(n.containerInfo)}catch(Wt){Qe(e,e.return,Wt)}ll&&(ll=!1,hc(e));break;case 4:c=Qn,Qn=a2(e.stateNode.containerInfo),d0(n,e),m0(e),Qn=c;break;case 12:d0(n,e),m0(e);break;case 31:d0(n,e),m0(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,gi(e,c)));break;case 13:d0(n,e),m0(e),e.child.flags&8192&&e.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Us=ea()),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,gi(e,c)));break;case 22:v=e.memoizedState!==null;var V=u!==null&&u.memoizedState!==null,lt=jn,dt=ga;if(jn=lt||v,ga=dt||V,d0(n,e),ga=dt,jn=lt,m0(e),c&8192)t:for(n=e.stateNode,n._visibility=v?n._visibility&-2:n._visibility|1,v&&(u===null||V||jn||ga||ql(e)),u=null,n=e;;){if(n.tag===5||n.tag===26){if(u===null){V=u=n;try{if(y=V.stateNode,v)A=y.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{R=V.stateNode;var yt=V.memoizedProps.style,rt=yt!=null&&yt.hasOwnProperty("display")?yt.display:null;R.style.display=rt==null||typeof rt=="boolean"?"":(""+rt).trim()}}catch(Wt){Qe(V,V.return,Wt)}}}else if(n.tag===6){if(u===null){V=n;try{V.stateNode.nodeValue=v?"":V.memoizedProps}catch(Wt){Qe(V,V.return,Wt)}}}else if(n.tag===18){if(u===null){V=n;try{var ft=V.stateNode;v?R5(ft,!0):R5(V.stateNode,!1)}catch(Wt){Qe(V,V.return,Wt)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break t;for(;n.sibling===null;){if(n.return===null||n.return===e)break t;u===n&&(u=null),n=n.return}u===n&&(u=null),n.sibling.return=n.return,n=n.sibling}c&4&&(c=e.updateQueue,c!==null&&(u=c.retryQueue,u!==null&&(c.retryQueue=null,gi(e,u))));break;case 19:d0(n,e),m0(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,gi(e,c)));break;case 30:break;case 21:break;default:d0(n,e),m0(e)}}function m0(e){var n=e.flags;if(n&2){try{for(var u,c=e.return;c!==null;){if(_a(c)){u=c;break}c=c.return}if(u==null)throw Error(i(160));switch(u.tag){case 27:var v=u.stateNode,y=He(e);F0(e,y,v);break;case 5:var A=u.stateNode;u.flags&32&&(fr(A,""),u.flags&=-33);var R=He(e);F0(e,R,A);break;case 3:case 4:var V=u.stateNode.containerInfo,lt=He(e);Ul(e,lt,V);break;default:throw Error(i(161))}}catch(dt){Qe(e,e.return,dt)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function hc(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;hc(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Kn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Ma(e,n.alternate,n),n=n.sibling}function ql(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:N0(4,n,n.return),ql(n);break;case 1:R0(n,n.return);var u=n.stateNode;typeof u.componentWillUnmount=="function"&&E0(n,n.return,u),ql(n);break;case 27:I1(n.stateNode);case 26:case 5:R0(n,n.return),ql(n);break;case 22:n.memoizedState===null&&ql(n);break;case 30:ql(n);break;default:ql(n)}e=e.sibling}}function W0(e,n,u){for(u=u&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var c=n.alternate,v=e,y=n,A=y.flags;switch(y.tag){case 0:case 11:case 15:W0(v,y,u),Xn(4,y);break;case 1:if(W0(v,y,u),c=y,v=c.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(lt){Qe(c,c.return,lt)}if(c=y,v=c.updateQueue,v!==null){var R=c.stateNode;try{var V=v.shared.hiddenCallbacks;if(V!==null)for(v.shared.hiddenCallbacks=null,v=0;v<V.length;v++)Ds(V[v],R)}catch(lt){Qe(c,c.return,lt)}}u&&A&64&&nl(y),mi(y,y.return);break;case 27:oc(y);case 26:case 5:W0(v,y,u),u&&c===null&&A&4&&ju(y),mi(y,y.return);break;case 12:W0(v,y,u);break;case 31:W0(v,y,u),u&&A&4&&Ki(v,y);break;case 13:W0(v,y,u),u&&A&4&&Gs(v,y);break;case 22:y.memoizedState===null&&W0(v,y,u),mi(y,y.return);break;case 30:break;default:W0(v,y,u)}n=n.sibling}}function Ji(e,n){var u=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(u=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==u&&(e!=null&&e.refCount++,u!=null&&Sr(u))}function Br(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Sr(e))}function O0(e,n,u,c){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)K1(e,n,u,c),n=n.sibling}function K1(e,n,u,c){var v=n.flags;switch(n.tag){case 0:case 11:case 15:O0(e,n,u,c),v&2048&&Xn(9,n);break;case 1:O0(e,n,u,c);break;case 3:O0(e,n,u,c),v&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Sr(e)));break;case 12:if(v&2048){O0(e,n,u,c),e=n.stateNode;try{var y=n.memoizedProps,A=y.id,R=y.onPostCommit;typeof R=="function"&&R(A,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(V){Qe(n,n.return,V)}}else O0(e,n,u,c);break;case 31:O0(e,n,u,c);break;case 13:O0(e,n,u,c);break;case 23:break;case 22:y=n.stateNode,A=n.alternate,n.memoizedState!==null?y._visibility&2?O0(e,n,u,c):Ll(e,n):y._visibility&2?O0(e,n,u,c):(y._visibility|=2,B0(e,n,u,c,(n.subtreeFlags&10256)!==0||!1)),v&2048&&Ji(A,n);break;case 24:O0(e,n,u,c),v&2048&&Br(n.alternate,n);break;default:O0(e,n,u,c)}}function B0(e,n,u,c,v){for(v=v&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var y=e,A=n,R=u,V=c,lt=A.flags;switch(A.tag){case 0:case 11:case 15:B0(y,A,R,V,v),Xn(8,A);break;case 23:break;case 22:var dt=A.stateNode;A.memoizedState!==null?dt._visibility&2?B0(y,A,R,V,v):Ll(y,A):(dt._visibility|=2,B0(y,A,R,V,v)),v&<&2048&&Ji(A.alternate,A);break;case 24:B0(y,A,R,V,v),v&<&2048&&Br(A.alternate,A);break;default:B0(y,A,R,V,v)}n=n.sibling}}function Ll(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var u=e,c=n,v=c.flags;switch(c.tag){case 22:Ll(u,c),v&2048&&Ji(c.alternate,c);break;case 24:Ll(u,c),v&2048&&Br(c.alternate,c);break;default:Ll(u,c)}n=n.sibling}}var Hr=8192;function Tn(e,n,u){if(e.subtreeFlags&Hr)for(e=e.child;e!==null;)fc(e,n,u),e=e.sibling}function fc(e,n,u){switch(e.tag){case 26:Tn(e,n,u),e.flags&Hr&&e.memoizedState!==null&&N7(u,Qn,e.memoizedState,e.memoizedProps);break;case 5:Tn(e,n,u);break;case 3:case 4:var c=Qn;Qn=a2(e.stateNode.containerInfo),Tn(e,n,u),Qn=c;break;case 22:e.memoizedState===null&&(c=e.alternate,c!==null&&c.memoizedState!==null?(c=Hr,Hr=16777216,Tn(e,n,u),Hr=c):Tn(e,n,u));break;default:Tn(e,n,u)}}function Gr(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Fi(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var u=0;u<n.length;u++){var c=n[u];_0=c,Xa(c,e)}Gr(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fn(e),e=e.sibling}function fn(e){switch(e.tag){case 0:case 11:case 15:Fi(e),e.flags&2048&&N0(9,e,e.return);break;case 3:Fi(e);break;case 12:Fi(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,I0(e)):Fi(e);break;default:Fi(e)}}function I0(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var u=0;u<n.length;u++){var c=n[u];_0=c,Xa(c,e)}Gr(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:N0(8,n,n.return),I0(n);break;case 22:u=n.stateNode,u._visibility&2&&(u._visibility&=-3,I0(n));break;default:I0(n)}e=e.sibling}}function Xa(e,n){for(;_0!==null;){var u=_0;switch(u.tag){case 0:case 11:case 15:N0(8,u,n);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var c=u.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Sr(u.memoizedState.cache)}if(c=u.child,c!==null)c.return=u,_0=c;else t:for(u=e;_0!==null;){c=_0;var v=c.sibling,y=c.return;if(Vu(c),c===u){_0=null;break t}if(v!==null){v.return=y,_0=v;break t}_0=y}}}var pi={getCacheForType:function(e){var n=he(n0),u=n.data.get(e);return u===void 0&&(u=e(),n.data.set(e,u)),u},cacheSignal:function(){return he(n0).controller.signal}},ve=typeof WeakMap=="function"?WeakMap:Map,ee=0,fe=null,Me=null,Te=0,ke=0,Y0=null,Zn=!1,il=!1,Z1=!1,En=0,Ra=0,kl=0,Wi=0,Qu=0,P0=0,ya=0,Ur=null,ja=null,Va=!1,Us=0,J1=0,Fa=1/0,Oa=null,Wa=null,na=0,_n=null,qs=null,Jn=0,Ls=0,ks=null,Ku=null,Ii=0,qr=null;function Mn(){return(ee&2)!==0&&Te!==0?Te&-Te:K.T!==null?ct():is()}function Ne(){if(P0===0)if((Te&536870912)===0||qe){var e=Ei;Ei<<=1,(Ei&3932160)===0&&(Ei=262144),P0=e}else P0=536870912;return e=un.current,e!==null&&(e.flags|=32),P0}function Ae(e,n,u){(e===fe&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&($i(e,0),i0(e,Te,P0,!1)),Pl(e,u),((ee&2)===0||e!==fe)&&(e===fe&&((ee&2)===0&&(Wi|=u),Ra===4&&i0(e,Te,P0,!1)),zt(e))}function Re(e,n,u){if((ee&6)!==0)throw Error(i(327));var c=!u&&(n&127)===0&&(n&e.expiredLanes)===0||_i(e,n),v=c?Zu(e,n):$0(e,n,!0),y=c;do{if(v===0){il&&!c&&i0(e,n,0,!1);break}else{if(u=e.current.alternate,y&&!la(u)){v=$0(e,n,!1),y=!1;continue}if(v===2){if(y=n,e.errorRecoveryDisabledLanes&y)var A=0;else A=e.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){n=A;t:{var R=e;v=Ur;var V=R.current.memoizedState.isDehydrated;if(V&&($i(R,A).flags|=256),A=$0(R,A,!1),A!==2){if(Z1&&!V){R.errorRecoveryDisabledLanes|=y,Wi|=y,v=4;break t}y=ja,ja=v,y!==null&&(ja===null?ja=y:ja.push.apply(ja,y))}v=A}if(y=!1,v!==2)continue}}if(v===1){$i(e,0),i0(e,n,0,!0);break}t:{switch(c=e,y=v,y){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:i0(c,n,P0,!Zn);break t;case 2:ja=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(v=Us+300-ea(),10<v)){if(i0(c,n,P0,!Zn),Il(c,0,!0)!==0)break t;Jn=n,c.timeoutHandle=w5(Ge.bind(null,c,u,ja,Oa,Va,n,P0,Wi,ya,Zn,y,"Throttled",-0,0),v);break t}Ge(c,u,ja,Oa,Va,n,P0,Wi,ya,Zn,y,null,-0,0)}}break}while(!0);zt(e)}function Ge(e,n,u,c,v,y,A,R,V,lt,dt,yt,rt,ft){if(e.timeoutHandle=-1,yt=n.subtreeFlags,yt&8192||(yt&16785408)===16785408){yt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ai},fc(n,y,yt);var Wt=(y&62914560)===y?Us-ea():(y&4194048)===y?J1-ea():0;if(Wt=R7(yt,Wt),Wt!==null){Jn=y,e.cancelPendingCommit=Wt(yi.bind(null,e,n,y,u,c,v,A,R,V,dt,yt,null,rt,ft)),i0(e,y,A,!lt);return}}yi(e,n,y,u,c,v,A,R,V)}function la(e){for(var n=e;;){var u=n.tag;if((u===0||u===11||u===15)&&n.flags&16384&&(u=n.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var c=0;c<u.length;c++){var v=u[c],y=v.getSnapshot;v=v.value;try{if(!Q0(y(),v))return!1}catch{return!1}}if(u=n.child,n.subtreeFlags&16384&&u!==null)u.return=n,n=u;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function i0(e,n,u,c){n&=~Qu,n&=~Wi,e.suspendedLanes|=n,e.pingedLanes&=~n,c&&(e.warmLanes|=n),c=e.expirationTimes;for(var v=n;0<v;){var y=31-j0(v),A=1<<y;c[y]=-1,v&=~A}u!==0&&zi(e,u,n)}function rl(){return(ee&6)===0?(Kt(0),!1):!0}function Pi(){if(Me!==null){if(ke===0)var e=Me.return;else e=Me,Dl=qi=null,v1(e),Mr=null,Ar=0,e=Me;for(;e!==null;)xn(e.alternate,e),e=e.return;Me=null}}function $i(e,n){var u=e.timeoutHandle;u!==-1&&(e.timeoutHandle=-1,m7(u)),u=e.cancelPendingCommit,u!==null&&(e.cancelPendingCommit=null,u()),Jn=0,Pi(),fe=e,Me=u=ln(e.current,null),Te=n,ke=0,Y0=null,Zn=!1,il=_i(e,n),Z1=!1,ya=P0=Qu=Wi=kl=Ra=0,ja=Ur=null,Va=!1,(n&8)!==0&&(n|=n&32);var c=e.entangledLanes;if(c!==0)for(e=e.entanglements,c&=n;0<c;){var v=31-j0(c),y=1<<v;n|=e[v],c&=~y}return En=n,Au(),u}function Yl(e,n){pe=null,K.H=Bs,n===xr||n===_e?(n=Er(),ke=3):n===Du?(n=Er(),ke=4):ke=n===tc?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Y0=n,Me===null&&(Ra=1,$o(e,vn(n,e.current)))}function Ba(){var e=un.current;return e===null?!0:(Te&4194048)===Te?J0===null:(Te&62914560)===Te||(Te&536870912)!==0?e===J0:!1}function vi(){var e=K.H;return K.H=Bs,e===null?Bs:e}function tr(){var e=K.A;return K.A=pi,e}function Ys(){Ra=4,Zn||(Te&4194048)!==Te&&un.current!==null||(il=!0),(kl&134217727)===0&&(Wi&134217727)===0||fe===null||i0(fe,Te,P0,!1)}function $0(e,n,u){var c=ee;ee|=2;var v=vi(),y=tr();(fe!==e||Te!==n)&&(Oa=null,$i(e,n)),n=!1;var A=Ra;t:do try{if(ke!==0&&Me!==null){var R=Me,V=Y0;switch(ke){case 8:Pi(),A=6;break t;case 3:case 2:case 9:case 6:un.current===null&&(n=!0);var lt=ke;if(ke=0,Y0=null,Lr(e,R,V,lt),u&&il){A=0;break t}break;default:lt=ke,ke=0,Y0=null,Lr(e,R,V,lt)}}Xs(),A=Ra;break}catch(dt){Yl(e,dt)}while(!0);return n&&e.shellSuspendCounter++,Dl=qi=null,ee=c,K.H=v,K.A=y,Me===null&&(fe=null,Te=0,Au()),A}function Xs(){for(;Me!==null;)dc(Me)}function Zu(e,n){var u=ee;ee|=2;var c=vi(),v=tr();fe!==e||Te!==n?(Oa=null,Fa=ea()+500,$i(e,n)):il=_i(e,n);t:do try{if(ke!==0&&Me!==null){n=Me;var y=Y0;e:switch(ke){case 1:ke=0,Y0=null,Lr(e,n,y,1);break;case 2:case 9:if(sn(y)){ke=0,Y0=null,Ju(n);break}n=function(){ke!==2&&ke!==9||fe!==e||(ke=7),zt(e)},y.then(n,n);break t;case 3:ke=7;break t;case 4:ke=5;break t;case 7:sn(y)?(ke=0,Y0=null,Ju(n)):(ke=0,Y0=null,Lr(e,n,y,7));break;case 5:var A=null;switch(Me.tag){case 26:A=Me.memoizedState;case 5:case 27:var R=Me;if(A?V5(A):R.stateNode.complete){ke=0,Y0=null;var V=R.sibling;if(V!==null)Me=V;else{var lt=R.return;lt!==null?(Me=lt,er(lt)):Me=null}break e}}ke=0,Y0=null,Lr(e,n,y,5);break;case 6:ke=0,Y0=null,Lr(e,n,y,6);break;case 8:Pi(),Ra=6;break t;default:throw Error(i(462))}}dn();break}catch(dt){Yl(e,dt)}while(!0);return Dl=qi=null,K.H=c,K.A=v,ee=u,Me!==null?0:(fe=null,Te=0,Au(),Ra)}function dn(){for(;Me!==null&&!X0();)dc(Me)}function dc(e){var n=uc(e.alternate,e,En);e.memoizedProps=e.pendingProps,n===null?er(e):Me=n}function Ju(e){var n=e,u=n.alternate;switch(n.tag){case 15:case 0:n=Lu(u,n,n.pendingProps,n.type,void 0,Te);break;case 11:n=Lu(u,n,n.pendingProps,n.type.render,n.ref,Te);break;case 5:v1(n);default:xn(u,n),n=Me=Ss(n,En),n=uc(u,n,En)}e.memoizedProps=e.pendingProps,n===null?er(e):Me=n}function Lr(e,n,u,c){Dl=qi=null,v1(n),Mr=null,Ar=0;var v=n.return;try{if(h0(e,v,n,u,Te)){Ra=1,$o(e,vn(u,e.current)),Me=null;return}}catch(y){if(v!==null)throw Me=v,y;Ra=1,$o(e,vn(u,e.current)),Me=null;return}n.flags&32768?(qe||c===1?e=!0:il||(Te&536870912)!==0?e=!1:(Zn=e=!0,(c===2||c===9||c===3||c===6)&&(c=un.current,c!==null&&c.tag===13&&(c.flags|=16384))),Fu(n,e)):er(n)}function er(e){var n=e;do{if((n.flags&32768)!==0){Fu(n,Zn);return}e=n.return;var u=Xu(n.alternate,n,En);if(u!==null){Me=u;return}if(n=n.sibling,n!==null){Me=n;return}Me=n=e}while(n!==null);Ra===0&&(Ra=5)}function Fu(e,n){do{var u=Yn(e.alternate,e);if(u!==null){u.flags&=32767,Me=u;return}if(u=e.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!n&&(e=e.sibling,e!==null)){Me=e;return}Me=e=u}while(e!==null);Ra=6,Me=null}function yi(e,n,u,c,v,y,A,R,V){e.cancelPendingCommit=null;do js();while(na!==0);if((ee&6)!==0)throw Error(i(327));if(n!==null){if(n===e.current)throw Error(i(177));if(y=n.lanes|n.childLanes,y|=S0,ls(e,u,y,A,R,V),e===fe&&(Me=fe=null,Te=0),qs=n,_n=e,Jn=u,Ls=y,ks=v,Ku=c,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,S(p0,function(){return mc(),null})):(e.callbackNode=null,e.callbackPriority=0),c=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||c){c=K.T,K.T=null,v=vt.p,vt.p=2,A=ee,ee|=4;try{b4(e,n,u)}finally{ee=A,vt.p=v,K.T=c}}na=1,r0(),bi(),kr()}}function r0(){if(na===1){na=0;var e=_n,n=qs,u=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||u){u=K.T,K.T=null;var c=vt.p;vt.p=2;var v=ee;ee|=4;try{Zi(n,e);var y=A4,A=$h(e.containerInfo),R=y.focusedElem,V=y.selectionRange;if(A!==R&&R&&R.ownerDocument&&da(R.ownerDocument.documentElement,R)){if(V!==null&&$c(R)){var lt=V.start,dt=V.end;if(dt===void 0&&(dt=lt),"selectionStart"in R)R.selectionStart=lt,R.selectionEnd=Math.min(dt,R.value.length);else{var yt=R.ownerDocument||document,rt=yt&&yt.defaultView||window;if(rt.getSelection){var ft=rt.getSelection(),Wt=R.textContent.length,ce=Math.min(V.start,Wt),va=V.end===void 0?ce:Math.min(V.end,Wt);!ft.extend&&ce>va&&(A=va,va=ce,ce=A);var P=vs(R,ce),J=vs(R,va);if(P&&J&&(ft.rangeCount!==1||ft.anchorNode!==P.node||ft.anchorOffset!==P.offset||ft.focusNode!==J.node||ft.focusOffset!==J.offset)){var et=yt.createRange();et.setStart(P.node,P.offset),ft.removeAllRanges(),ce>va?(ft.addRange(et),ft.extend(J.node,J.offset)):(et.setEnd(J.node,J.offset),ft.addRange(et))}}}}for(yt=[],ft=R;ft=ft.parentNode;)ft.nodeType===1&&yt.push({element:ft,left:ft.scrollLeft,top:ft.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<yt.length;R++){var pt=yt[R];pt.element.scrollLeft=pt.left,pt.element.scrollTop=pt.top}}u2=!!M4,A4=M4=null}finally{ee=v,vt.p=c,K.T=u}}e.current=n,na=2}}function bi(){if(na===2){na=0;var e=_n,n=qs,u=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||u){u=K.T,K.T=null;var c=vt.p;vt.p=2;var v=ee;ee|=4;try{Ma(e,n.alternate,n)}finally{ee=v,vt.p=c,K.T=u}}na=3}}function kr(){if(na===4||na===3){na=0,Ue();var e=_n,n=qs,u=Jn,c=Ku;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?na=5:(na=0,qs=_n=null,Xl(e,e.pendingLanes));var v=e.pendingLanes;if(v===0&&(Wa=null),$l(u),n=n.stateNode,U0&&typeof U0.onCommitFiberRoot=="function")try{U0.onCommitFiberRoot(fl,n,void 0,(n.current.flags&128)===128)}catch{}if(c!==null){n=K.T,v=vt.p,vt.p=2,K.T=null;try{for(var y=e.onRecoverableError,A=0;A<c.length;A++){var R=c[A];y(R.value,{componentStack:R.stack})}}finally{K.T=n,vt.p=v}}(Jn&3)!==0&&js(),zt(e),v=e.pendingLanes,(u&261930)!==0&&(v&42)!==0?e===qr?Ii++:(Ii=0,qr=e):Ii=0,Kt(0)}}function Xl(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Sr(n)))}function js(){return r0(),bi(),kr(),mc()}function mc(){if(na!==5)return!1;var e=_n,n=Ls;Ls=0;var u=$l(Jn),c=K.T,v=vt.p;try{vt.p=32>u?32:u,K.T=null,u=ks,ks=null;var y=_n,A=Jn;if(na=0,qs=_n=null,Jn=0,(ee&6)!==0)throw Error(i(331));var R=ee;if(ee|=4,fn(y.current),K1(y,y.current,A,u),ee=R,Kt(0,!1),U0&&typeof U0.onPostCommitFiberRoot=="function")try{U0.onPostCommitFiberRoot(fl,y)}catch{}return!0}finally{vt.p=v,K.T=c,Xl(e,n)}}function F1(e,n,u){n=vn(u,n),n=L1(e.stateNode,n,2),e=Yi(e,n,2),e!==null&&(Pl(e,2),zt(e))}function Qe(e,n,u){if(e.tag===3)F1(e,e,u);else for(;n!==null;){if(n.tag===3){F1(n,e,u);break}else if(n.tag===1){var c=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Wa===null||!Wa.has(c))){e=vn(u,e),u=k1(2),c=Yi(n,u,2),c!==null&&(Zf(u,c,n,e),Pl(c,2),zt(c));break}}n=n.return}}function Wu(e,n,u){var c=e.pingCache;if(c===null){c=e.pingCache=new ve;var v=new Set;c.set(n,v)}else v=c.get(n),v===void 0&&(v=new Set,c.set(n,v));v.has(u)||(Z1=!0,v.add(u),e=l.bind(null,e,n,u),n.then(e,e))}function l(e,n,u){var c=e.pingCache;c!==null&&c.delete(n),e.pingedLanes|=e.suspendedLanes&u,e.warmLanes&=~u,fe===e&&(Te&u)===u&&(Ra===4||Ra===3&&(Te&62914560)===Te&&300>ea()-Us?(ee&2)===0&&$i(e,0):Qu|=u,ya===Te&&(ya=0)),zt(e)}function r(e,n){n===0&&(n=gn()),e=K0(e,n),e!==null&&(Pl(e,n),zt(e))}function f(e){var n=e.memoizedState,u=0;n!==null&&(u=n.retryLane),r(e,u)}function m(e,n){var u=0;switch(e.tag){case 31:case 13:var c=e.stateNode,v=e.memoizedState;v!==null&&(u=v.retryLane);break;case 19:c=e.stateNode;break;case 22:c=e.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(n),r(e,u)}function S(e,n){return o0(e,n)}var T=null,N=null,Q=!1,ht=!1,Tt=!1,Ht=0;function zt(e){e!==N&&e.next===null&&(N===null?T=N=e:N=N.next=e),ht=!0,Q||(Q=!0,$())}function Kt(e,n){if(!Tt&&ht){Tt=!0;do for(var u=!1,c=T;c!==null;){if(e!==0){var v=c.pendingLanes;if(v===0)var y=0;else{var A=c.suspendedLanes,R=c.pingedLanes;y=(1<<31-j0(42|e)+1)-1,y&=v&~(A&~R),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(u=!0,it(c,y))}else y=Te,y=Il(c,c===fe?y:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(y&3)===0||_i(c,y)||(u=!0,it(c,y));c=c.next}while(u);Tt=!1}}function ge(){M0()}function M0(){ht=Q=!1;var e=0;Ht!==0&&d7()&&(e=Ht);for(var n=ea(),u=null,c=T;c!==null;){var v=c.next,y=Vs(c,n);y===0?(c.next=null,u===null?T=v:u.next=v,v===null&&(N=u)):(u=c,(e!==0||(y&3)!==0)&&(ht=!0)),c=v}na!==0&&na!==5||Kt(e),Ht!==0&&(Ht=0)}function Vs(e,n){for(var u=e.suspendedLanes,c=e.pingedLanes,v=e.expirationTimes,y=e.pendingLanes&-62914561;0<y;){var A=31-j0(y),R=1<<A,V=v[A];V===-1?((R&u)===0||(R&c)!==0)&&(v[A]=Mi(R,n)):V<=n&&(e.expiredLanes|=R),y&=~R}if(n=fe,u=Te,u=Il(e,e===n?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c=e.callbackNode,u===0||e===n&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return c!==null&&c!==null&&w0(c),e.callbackNode=null,e.callbackPriority=0;if((u&3)===0||_i(e,u)){if(n=u&-u,n===e.callbackPriority)return n;switch(c!==null&&w0(c),$l(u)){case 2:case 8:u=xa;break;case 32:u=p0;break;case 268435456:u=La;break;default:u=p0}return c=ar.bind(null,e),u=o0(u,c),e.callbackPriority=n,e.callbackNode=u,n}return c!==null&&c!==null&&w0(c),e.callbackPriority=2,e.callbackNode=null,2}function ar(e,n){if(na!==0&&na!==5)return e.callbackNode=null,e.callbackPriority=0,null;var u=e.callbackNode;if(js()&&e.callbackNode!==u)return null;var c=Te;return c=Il(e,e===fe?c:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c===0?null:(Re(e,c,n),Vs(e,ea()),e.callbackNode!=null&&e.callbackNode===u?ar.bind(null,e):null)}function it(e,n){if(js())return null;Re(e,n,!0)}function $(){g7(function(){(ee&6)!==0?o0(Ua,ge):M0()})}function ct(){if(Ht===0){var e=ui;e===0&&(e=ns,ns<<=1,(ns&261888)===0&&(ns=256)),Ht=e}return Ht}function Ot(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fu(""+e)}function ie(e,n){var u=n.ownerDocument.createElement("input");return u.name=n.name,u.value=n.value,e.id&&u.setAttribute("form",e.id),n.parentNode.insertBefore(u,n),e=new FormData(e),u.parentNode.removeChild(u),e}function Ha(e,n,u,c,v){if(n==="submit"&&u&&u.stateNode===v){var y=Ot((v[v0]||null).action),A=c.submitter;A&&(n=(n=A[v0]||null)?Ot(n.formAction):A.getAttribute("formAction"),n!==null&&(y=n,A=null));var R=new gu("action","action",null,c,v);e.push({event:R,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Ht!==0){var V=A?ie(v,A):new FormData(v);N1(u,{pending:!0,data:V,method:v.method,action:y},null,V)}}else typeof y=="function"&&(R.preventDefault(),V=A?ie(v,A):new FormData(v),N1(u,{pending:!0,data:V,method:v.method,action:y},y,V))},currentTarget:v}]})}}for(var se=0;se<_u.length;se++){var je=_u[se],A0=je.toLowerCase(),Ze=je[0].toUpperCase()+je.slice(1);Bn(A0,"on"+Ze)}Bn(zo,"onAnimationEnd"),Bn(Eu,"onAnimationIteration"),Bn(e1,"onAnimationStart"),Bn("dblclick","onDoubleClick"),Bn("focusin","onFocus"),Bn("focusout","onBlur"),Bn(ef,"onTransitionRun"),Bn(h4,"onTransitionStart"),Bn(af,"onTransitionCancel"),Bn(a1,"onTransitionEnd"),Oe("onMouseEnter",["mouseout","mouseover"]),Oe("onMouseLeave",["mouseout","mouseover"]),Oe("onPointerEnter",["pointerout","pointerover"]),Oe("onPointerLeave",["pointerout","pointerover"]),Se("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Se("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Se("onBeforeInput",["compositionend","keypress","textInput","paste"]),Se("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Se("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Se("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),S4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fn));function x5(e,n){n=(n&4)!==0;for(var u=0;u<e.length;u++){var c=e[u],v=c.event;c=c.listeners;t:{var y=void 0;if(n)for(var A=c.length-1;0<=A;A--){var R=c[A],V=R.instance,lt=R.currentTarget;if(R=R.listener,V!==y&&v.isPropagationStopped())break t;y=R,v.currentTarget=lt;try{y(v)}catch(dt){Mu(dt)}v.currentTarget=null,y=V}else for(A=0;A<c.length;A++){if(R=c[A],V=R.instance,lt=R.currentTarget,R=R.listener,V!==y&&v.isPropagationStopped())break t;y=R,v.currentTarget=lt;try{y(v)}catch(dt){Mu(dt)}v.currentTarget=null,y=V}}}}function Ye(e,n){var u=n[Dn];u===void 0&&(u=n[Dn]=new Set);var c=e+"__bubble";u.has(c)||(T5(n,e,2,!1),u.add(c))}function x4(e,n,u){var c=0;n&&(c|=4),T5(u,e,c,n)}var $f="_reactListening"+Math.random().toString(36).slice(2);function T4(e){if(!e[$f]){e[$f]=!0,ae.forEach(function(u){u!=="selectionchange"&&(S4.has(u)||x4(u,!1,e),x4(u,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[$f]||(n[$f]=!0,x4("selectionchange",!1,n))}}function T5(e,n,u,c){switch(I5(n)){case 2:var v=H7;break;case 8:v=G7;break;default:v=U4}u=v.bind(null,n,u,e),v=void 0,!Uc||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(v=!0),c?v!==void 0?e.addEventListener(n,u,{capture:!0,passive:v}):e.addEventListener(n,u,!0):v!==void 0?e.addEventListener(n,u,{passive:v}):e.addEventListener(n,u,!1)}function E4(e,n,u,c,v){var y=c;if((n&1)===0&&(n&2)===0&&c!==null)t:for(;;){if(c===null)return;var A=c.tag;if(A===3||A===4){var R=c.stateNode.containerInfo;if(R===v)break;if(A===4)for(A=c.return;A!==null;){var V=A.tag;if((V===3||V===4)&&A.stateNode.containerInfo===v)return;A=A.return}for(;R!==null;){if(A=Sl(R),A===null)return;if(V=A.tag,V===5||V===6||V===26||V===27){c=y=A;continue t}R=R.parentNode}}c=c.return}Gc(function(){var lt=y,dt=mo(u),yt=[];t:{var rt=On.get(e);if(rt!==void 0){var ft=gu,Wt=e;switch(e){case"keypress":if(mu(u)===0)break t;case"keydown":case"keyup":ft=gr;break;case"focusin":Wt="focus",ft=yo;break;case"focusout":Wt="blur",ft=yo;break;case"beforeblur":case"afterblur":ft=yo;break;case"click":if(u.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ft=qc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ft=Hh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ft=Yh;break;case zo:case Eu:case e1:ft=u4;break;case a1:ft=c4;break;case"scroll":case"scrollend":ft=Oh;break;case"wheel":ft=jh;break;case"copy":case"cut":case"paste":ft=Uh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ft=Yc;break;case"toggle":case"beforetoggle":ft=Qh}var ce=(n&4)!==0,va=!ce&&(e==="scroll"||e==="scrollend"),P=ce?rt!==null?rt+"Capture":null:rt;ce=[];for(var J=lt,et;J!==null;){var pt=J;if(et=pt.stateNode,pt=pt.tag,pt!==5&&pt!==26&&pt!==27||et===null||P===null||(pt=us(J,P),pt!=null&&ce.push(W1(J,pt,et))),va)break;J=J.return}0<ce.length&&(rt=new ft(rt,Wt,null,u,dt),yt.push({event:rt,listeners:ce}))}}if((n&7)===0){t:{if(rt=e==="mouseover"||e==="pointerover",ft=e==="mouseout"||e==="pointerout",rt&&u!==fo&&(Wt=u.relatedTarget||u.fromElement)&&(Sl(Wt)||Wt[vl]))break t;if((ft||rt)&&(rt=dt.window===dt?dt:(rt=dt.ownerDocument)?rt.defaultView||rt.parentWindow:window,ft?(Wt=u.relatedTarget||u.toElement,ft=lt,Wt=Wt?Sl(Wt):null,Wt!==null&&(va=h(Wt),ce=Wt.tag,Wt!==va||ce!==5&&ce!==27&&ce!==6)&&(Wt=null)):(ft=null,Wt=lt),ft!==Wt)){if(ce=qc,pt="onMouseLeave",P="onMouseEnter",J="mouse",(e==="pointerout"||e==="pointerover")&&(ce=Yc,pt="onPointerLeave",P="onPointerEnter",J="pointer"),va=ft==null?rt:Z(ft),et=Wt==null?rt:Z(Wt),rt=new ce(pt,J+"leave",ft,u,dt),rt.target=va,rt.relatedTarget=et,pt=null,Sl(dt)===lt&&(ce=new ce(P,J+"enter",Wt,u,dt),ce.target=et,ce.relatedTarget=va,pt=ce),va=pt,ft&&Wt)e:{for(ce=u7,P=ft,J=Wt,et=0,pt=P;pt;pt=ce(pt))et++;pt=0;for(var le=J;le;le=ce(le))pt++;for(;0<et-pt;)P=ce(P),et--;for(;0<pt-et;)J=ce(J),pt--;for(;et--;){if(P===J||J!==null&&P===J.alternate){ce=P;break e}P=ce(P),J=ce(J)}ce=null}else ce=null;ft!==null&&E5(yt,rt,ft,ce,!1),Wt!==null&&va!==null&&E5(yt,va,Wt,ce,!0)}}t:{if(rt=lt?Z(lt):window,ft=rt.nodeName&&rt.nodeName.toLowerCase(),ft==="select"||ft==="input"&&rt.type==="file")var Pe=Jc;else if(Zc(rt))if(Tl)Pe=Ph;else{Pe=Ic;var te=Wh}else ft=rt.nodeName,!ft||ft.toLowerCase()!=="input"||rt.type!=="checkbox"&&rt.type!=="radio"?lt&&ho(lt.elementType)&&(Pe=Jc):Pe=Ih;if(Pe&&(Pe=Pe(e,lt))){Mo(yt,Pe,u,dt);break t}te&&te(e,rt,lt),e==="focusout"&<&&rt.type==="number"&<.memoizedProps.value!=null&&el(rt,"number",rt.value)}switch(te=lt?Z(lt):window,e){case"focusin":(Zc(te)||te.contentEditable==="true")&&(El=te,_l=lt,ys=null);break;case"focusout":ys=_l=El=null;break;case"mousedown":Ao=!0;break;case"contextmenu":case"mouseup":case"dragend":Ao=!1,bs(yt,u,dt);break;case"selectionchange":if(tf)break;case"keydown":case"keyup":bs(yt,u,dt)}var Ce;if(pr)t:{switch(e){case"compositionstart":var Ve="onCompositionStart";break t;case"compositionend":Ve="onCompositionEnd";break t;case"compositionupdate":Ve="onCompositionUpdate";break t}Ve=void 0}else vr?_o(e,u)&&(Ve="onCompositionEnd"):e==="keydown"&&u.keyCode===229&&(Ve="onCompositionStart");Ve&&(jc&&u.locale!=="ko"&&(vr||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&vr&&(Ce=du()):(pn=dt,po="value"in pn?pn.value:pn.textContent,vr=!0)),te=t2(lt,Ve),0<te.length&&(Ve=new bo(Ve,e,null,u,dt),yt.push({event:Ve,listeners:te}),Ce?Ve.data=Ce:(Ce=Vc(u),Ce!==null&&(Ve.data=Ce)))),(Ce=Eo?Jh(e,u):Qc(e,u))&&(Ve=t2(lt,"onBeforeInput"),0<Ve.length&&(te=new bo("onBeforeInput","beforeinput",null,u,dt),yt.push({event:te,listeners:Ve}),te.data=Ce)),Ha(yt,e,lt,u,dt)}x5(yt,n)})}function W1(e,n,u){return{instance:e,listener:n,currentTarget:u}}function t2(e,n){for(var u=n+"Capture",c=[];e!==null;){var v=e,y=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||y===null||(v=us(e,u),v!=null&&c.unshift(W1(e,v,y)),v=us(e,n),v!=null&&c.push(W1(e,v,y))),e.tag===3)return c;e=e.return}return[]}function u7(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function E5(e,n,u,c,v){for(var y=n._reactName,A=[];u!==null&&u!==c;){var R=u,V=R.alternate,lt=R.stateNode;if(R=R.tag,V!==null&&V===c)break;R!==5&&R!==26&&R!==27||lt===null||(V=lt,v?(lt=us(u,y),lt!=null&&A.unshift(W1(u,lt,V))):v||(lt=us(u,y),lt!=null&&A.push(W1(u,lt,V)))),u=u.return}A.length!==0&&e.push({event:n,listeners:A})}var o7=/\r\n?/g,c7=/\u0000|\uFFFD/g;function _5(e){return(typeof e=="string"?e:""+e).replace(o7,`
|
|
9
|
-
`).replace(c7,"")}function M5(e,n){return n=_5(n),_5(e)===n}function pa(e,n,u,c,v,y){switch(u){case"children":typeof c=="string"?n==="body"||n==="textarea"&&c===""||fr(e,c):(typeof c=="number"||typeof c=="bigint")&&n!=="body"&&fr(e,""+c);break;case"className":nn(e,"class",c);break;case"tabIndex":nn(e,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":nn(e,u,c);break;case"style":Oc(e,c,y);break;case"data":if(n!=="object"){nn(e,"data",c);break}case"src":case"href":if(c===""&&(n!=="a"||u!=="href")){e.removeAttribute(u);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(u);break}c=fu(""+c),e.setAttribute(u,c);break;case"action":case"formAction":if(typeof c=="function"){e.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(u==="formAction"?(n!=="input"&&pa(e,n,"name",v.name,v,null),pa(e,n,"formEncType",v.formEncType,v,null),pa(e,n,"formMethod",v.formMethod,v,null),pa(e,n,"formTarget",v.formTarget,v,null)):(pa(e,n,"encType",v.encType,v,null),pa(e,n,"method",v.method,v,null),pa(e,n,"target",v.target,v,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(u);break}c=fu(""+c),e.setAttribute(u,c);break;case"onClick":c!=null&&(e.onclick=ai);break;case"onScroll":c!=null&&Ye("scroll",e);break;case"onScrollEnd":c!=null&&Ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(u=c.__html,u!=null){if(v.children!=null)throw Error(i(60));e.innerHTML=u}}break;case"multiple":e.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":e.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){e.removeAttribute("xlink:href");break}u=fu(""+c),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(u,""+c):e.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(u,""):e.removeAttribute(u);break;case"capture":case"download":c===!0?e.setAttribute(u,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(u,c):e.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?e.setAttribute(u,c):e.removeAttribute(u);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?e.removeAttribute(u):e.setAttribute(u,c);break;case"popover":Ye("beforetoggle",e),Ye("toggle",e),e0(e,"popover",c);break;case"xlinkActuate":Fe(e,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Fe(e,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Fe(e,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Fe(e,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Fe(e,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Fe(e,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Fe(e,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Fe(e,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Fe(e,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":e0(e,"is",c);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=Nh.get(u)||u,e0(e,u,c))}}function _4(e,n,u,c,v,y){switch(u){case"style":Oc(e,c,y);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(u=c.__html,u!=null){if(v.children!=null)throw Error(i(60));e.innerHTML=u}}break;case"children":typeof c=="string"?fr(e,c):(typeof c=="number"||typeof c=="bigint")&&fr(e,""+c);break;case"onScroll":c!=null&&Ye("scroll",e);break;case"onScrollEnd":c!=null&&Ye("scrollend",e);break;case"onClick":c!=null&&(e.onclick=ai);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ee.hasOwnProperty(u))t:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),n=u.slice(2,v?u.length-7:void 0),y=e[v0]||null,y=y!=null?y[u]:null,typeof y=="function"&&e.removeEventListener(n,y,v),typeof c=="function")){typeof y!="function"&&y!==null&&(u in e?e[u]=null:e.hasAttribute(u)&&e.removeAttribute(u)),e.addEventListener(n,c,v);break t}u in e?e[u]=c:c===!0?e.setAttribute(u,""):e0(e,u,c)}}}function tn(e,n,u){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ye("error",e),Ye("load",e);var c=!1,v=!1,y;for(y in u)if(u.hasOwnProperty(y)){var A=u[y];if(A!=null)switch(y){case"src":c=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:pa(e,n,y,A,u,null)}}v&&pa(e,n,"srcSet",u.srcSet,u,null),c&&pa(e,n,"src",u.src,u,null);return;case"input":Ye("invalid",e);var R=y=A=v=null,V=null,lt=null;for(c in u)if(u.hasOwnProperty(c)){var dt=u[c];if(dt!=null)switch(c){case"name":v=dt;break;case"type":A=dt;break;case"checked":V=dt;break;case"defaultChecked":lt=dt;break;case"value":y=dt;break;case"defaultValue":R=dt;break;case"children":case"dangerouslySetInnerHTML":if(dt!=null)throw Error(i(137,n));break;default:pa(e,n,c,dt,u,null)}}uo(e,y,R,V,lt,A,v,!1);return;case"select":Ye("invalid",e),c=A=y=null;for(v in u)if(u.hasOwnProperty(v)&&(R=u[v],R!=null))switch(v){case"value":y=R;break;case"defaultValue":A=R;break;case"multiple":c=R;default:pa(e,n,v,R,u,null)}n=y,u=A,e.multiple=!!c,n!=null?ei(e,!!c,n,!1):u!=null&&ei(e,!!c,u,!0);return;case"textarea":Ye("invalid",e),y=v=c=null;for(A in u)if(u.hasOwnProperty(A)&&(R=u[A],R!=null))switch(A){case"value":c=R;break;case"defaultValue":v=R;break;case"children":y=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:pa(e,n,A,R,u,null)}co(e,c,v,y);return;case"option":for(V in u)if(u.hasOwnProperty(V)&&(c=u[V],c!=null))switch(V){case"selected":e.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:pa(e,n,V,c,u,null)}return;case"dialog":Ye("beforetoggle",e),Ye("toggle",e),Ye("cancel",e),Ye("close",e);break;case"iframe":case"object":Ye("load",e);break;case"video":case"audio":for(c=0;c<Fn.length;c++)Ye(Fn[c],e);break;case"image":Ye("error",e),Ye("load",e);break;case"details":Ye("toggle",e);break;case"embed":case"source":case"link":Ye("error",e),Ye("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(lt in u)if(u.hasOwnProperty(lt)&&(c=u[lt],c!=null))switch(lt){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:pa(e,n,lt,c,u,null)}return;default:if(ho(n)){for(dt in u)u.hasOwnProperty(dt)&&(c=u[dt],c!==void 0&&_4(e,n,dt,c,u,void 0));return}}for(R in u)u.hasOwnProperty(R)&&(c=u[R],c!=null&&pa(e,n,R,c,u,null))}function h7(e,n,u,c){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,y=null,A=null,R=null,V=null,lt=null,dt=null;for(ft in u){var yt=u[ft];if(u.hasOwnProperty(ft)&&yt!=null)switch(ft){case"checked":break;case"value":break;case"defaultValue":V=yt;default:c.hasOwnProperty(ft)||pa(e,n,ft,null,c,yt)}}for(var rt in c){var ft=c[rt];if(yt=u[rt],c.hasOwnProperty(rt)&&(ft!=null||yt!=null))switch(rt){case"type":y=ft;break;case"name":v=ft;break;case"checked":lt=ft;break;case"defaultChecked":dt=ft;break;case"value":A=ft;break;case"defaultValue":R=ft;break;case"children":case"dangerouslySetInnerHTML":if(ft!=null)throw Error(i(137,n));break;default:ft!==yt&&pa(e,n,rt,ft,c,yt)}}ss(e,A,R,V,lt,dt,y,v);return;case"select":ft=A=R=rt=null;for(y in u)if(V=u[y],u.hasOwnProperty(y)&&V!=null)switch(y){case"value":break;case"multiple":ft=V;default:c.hasOwnProperty(y)||pa(e,n,y,null,c,V)}for(v in c)if(y=c[v],V=u[v],c.hasOwnProperty(v)&&(y!=null||V!=null))switch(v){case"value":rt=y;break;case"defaultValue":R=y;break;case"multiple":A=y;default:y!==V&&pa(e,n,v,y,c,V)}n=R,u=A,c=ft,rt!=null?ei(e,!!u,rt,!1):!!c!=!!u&&(n!=null?ei(e,!!u,n,!0):ei(e,!!u,u?[]:"",!1));return;case"textarea":ft=rt=null;for(R in u)if(v=u[R],u.hasOwnProperty(R)&&v!=null&&!c.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:pa(e,n,R,null,c,v)}for(A in c)if(v=c[A],y=u[A],c.hasOwnProperty(A)&&(v!=null||y!=null))switch(A){case"value":rt=v;break;case"defaultValue":ft=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(i(91));break;default:v!==y&&pa(e,n,A,v,c,y)}oo(e,rt,ft);return;case"option":for(var Wt in u)if(rt=u[Wt],u.hasOwnProperty(Wt)&&rt!=null&&!c.hasOwnProperty(Wt))switch(Wt){case"selected":e.selected=!1;break;default:pa(e,n,Wt,null,c,rt)}for(V in c)if(rt=c[V],ft=u[V],c.hasOwnProperty(V)&&rt!==ft&&(rt!=null||ft!=null))switch(V){case"selected":e.selected=rt&&typeof rt!="function"&&typeof rt!="symbol";break;default:pa(e,n,V,rt,c,ft)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ce in u)rt=u[ce],u.hasOwnProperty(ce)&&rt!=null&&!c.hasOwnProperty(ce)&&pa(e,n,ce,null,c,rt);for(lt in c)if(rt=c[lt],ft=u[lt],c.hasOwnProperty(lt)&&rt!==ft&&(rt!=null||ft!=null))switch(lt){case"children":case"dangerouslySetInnerHTML":if(rt!=null)throw Error(i(137,n));break;default:pa(e,n,lt,rt,c,ft)}return;default:if(ho(n)){for(var va in u)rt=u[va],u.hasOwnProperty(va)&&rt!==void 0&&!c.hasOwnProperty(va)&&_4(e,n,va,void 0,c,rt);for(dt in c)rt=c[dt],ft=u[dt],!c.hasOwnProperty(dt)||rt===ft||rt===void 0&&ft===void 0||_4(e,n,dt,rt,c,ft);return}}for(var P in u)rt=u[P],u.hasOwnProperty(P)&&rt!=null&&!c.hasOwnProperty(P)&&pa(e,n,P,null,c,rt);for(yt in c)rt=c[yt],ft=u[yt],!c.hasOwnProperty(yt)||rt===ft||rt==null&&ft==null||pa(e,n,yt,rt,c,ft)}function A5(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function f7(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,u=performance.getEntriesByType("resource"),c=0;c<u.length;c++){var v=u[c],y=v.transferSize,A=v.initiatorType,R=v.duration;if(y&&R&&A5(A)){for(A=0,R=v.responseEnd,c+=1;c<u.length;c++){var V=u[c],lt=V.startTime;if(lt>R)break;var dt=V.transferSize,yt=V.initiatorType;dt&&A5(yt)&&(V=V.responseEnd,A+=dt*(V<R?1:(R-lt)/(V-lt)))}if(--c,n+=8*(y+A)/(v.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var M4=null,A4=null;function e2(e){return e.nodeType===9?e:e.ownerDocument}function z5(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function C5(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function z4(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var C4=null;function d7(){var e=window.event;return e&&e.type==="popstate"?e===C4?!1:(C4=e,!0):(C4=null,!1)}var w5=typeof setTimeout=="function"?setTimeout:void 0,m7=typeof clearTimeout=="function"?clearTimeout:void 0,D5=typeof Promise=="function"?Promise:void 0,g7=typeof queueMicrotask=="function"?queueMicrotask:typeof D5<"u"?function(e){return D5.resolve(null).then(e).catch(p7)}:w5;function p7(e){setTimeout(function(){throw e})}function Qs(e){return e==="head"}function N5(e,n){var u=n,c=0;do{var v=u.nextSibling;if(e.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"||u==="/&"){if(c===0){e.removeChild(v),yc(n);return}c--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")c++;else if(u==="html")I1(e.ownerDocument.documentElement);else if(u==="head"){u=e.ownerDocument.head,I1(u);for(var y=u.firstChild;y;){var A=y.nextSibling,R=y.nodeName;y[Nn]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&y.rel.toLowerCase()==="stylesheet"||u.removeChild(y),y=A}}else u==="body"&&I1(e.ownerDocument.body);u=v}while(u);yc(n)}function R5(e,n){var u=e;e=0;do{var c=u.nextSibling;if(u.nodeType===1?n?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(n?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),c&&c.nodeType===8)if(u=c.data,u==="/$"){if(e===0)break;e--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||e++;u=c}while(u)}function w4(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var u=n;switch(n=n.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":w4(u),bl(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}e.removeChild(u)}}function v7(e,n,u,c){for(;e.nodeType===1;){var v=u;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!c&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(c){if(!e[Nn])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(y=e.getAttribute("rel"),y==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(y!==v.rel||e.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||e.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||e.getAttribute("title")!==(v.title==null?null:v.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(y=e.getAttribute("src"),(y!==(v.src==null?null:v.src)||e.getAttribute("type")!==(v.type==null?null:v.type)||e.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&y&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var y=v.name==null?null:""+v.name;if(v.type==="hidden"&&e.getAttribute("name")===y)return e}else return e;if(e=jl(e.nextSibling),e===null)break}return null}function y7(e,n,u){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!u||(e=jl(e.nextSibling),e===null))return null;return e}function O5(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=jl(e.nextSibling),e===null))return null;return e}function D4(e){return e.data==="$?"||e.data==="$~"}function N4(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function b7(e,n){var u=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||u.readyState!=="loading")n();else{var c=function(){n(),u.removeEventListener("DOMContentLoaded",c)};u.addEventListener("DOMContentLoaded",c),e._reactRetry=c}}function jl(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var R4=null;function B5(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var u=e.data;if(u==="/$"||u==="/&"){if(n===0)return jl(e.nextSibling);n--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||n++}e=e.nextSibling}return null}function H5(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var u=e.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(n===0)return e;n--}else u!=="/$"&&u!=="/&"||n++}e=e.previousSibling}return null}function G5(e,n,u){switch(n=e2(u),e){case"html":if(e=n.documentElement,!e)throw Error(i(452));return e;case"head":if(e=n.head,!e)throw Error(i(453));return e;case"body":if(e=n.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function I1(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);bl(e)}var Vl=new Map,U5=new Set;function a2(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Yr=vt.d;vt.d={f:S7,r:x7,D:T7,C:E7,L:_7,m:M7,X:z7,S:A7,M:C7};function S7(){var e=Yr.f(),n=rl();return e||n}function x7(e){var n=W(e);n!==null&&n.tag===5&&n.type==="form"?qf(n):Yr.r(e)}var gc=typeof document>"u"?null:document;function q5(e,n,u){var c=gc;if(c&&typeof n=="string"&&n){var v=b0(n);v='link[rel="'+e+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),U5.has(v)||(U5.add(v),e={rel:e,crossOrigin:u,href:n},c.querySelector(v)===null&&(n=c.createElement("link"),tn(n,"link",e),Qt(n),c.head.appendChild(n)))}}function T7(e){Yr.D(e),q5("dns-prefetch",e,null)}function E7(e,n){Yr.C(e,n),q5("preconnect",e,n)}function _7(e,n,u){Yr.L(e,n,u);var c=gc;if(c&&e&&n){var v='link[rel="preload"][as="'+b0(n)+'"]';n==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+b0(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+b0(u.imageSizes)+'"]')):v+='[href="'+b0(e)+'"]';var y=v;switch(n){case"style":y=pc(e);break;case"script":y=vc(e)}Vl.has(y)||(e=_({rel:"preload",href:n==="image"&&u&&u.imageSrcSet?void 0:e,as:n},u),Vl.set(y,e),c.querySelector(v)!==null||n==="style"&&c.querySelector(P1(y))||n==="script"&&c.querySelector($1(y))||(n=c.createElement("link"),tn(n,"link",e),Qt(n),c.head.appendChild(n)))}}function M7(e,n){Yr.m(e,n);var u=gc;if(u&&e){var c=n&&typeof n.as=="string"?n.as:"script",v='link[rel="modulepreload"][as="'+b0(c)+'"][href="'+b0(e)+'"]',y=v;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=vc(e)}if(!Vl.has(y)&&(e=_({rel:"modulepreload",href:e},n),Vl.set(y,e),u.querySelector(v)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector($1(y)))return}c=u.createElement("link"),tn(c,"link",e),Qt(c),u.head.appendChild(c)}}}function A7(e,n,u){Yr.S(e,n,u);var c=gc;if(c&&e){var v=jt(c).hoistableStyles,y=pc(e);n=n||"default";var A=v.get(y);if(!A){var R={loading:0,preload:null};if(A=c.querySelector(P1(y)))R.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":n},u),(u=Vl.get(y))&&O4(e,u);var V=A=c.createElement("link");Qt(V),tn(V,"link",e),V._p=new Promise(function(lt,dt){V.onload=lt,V.onerror=dt}),V.addEventListener("load",function(){R.loading|=1}),V.addEventListener("error",function(){R.loading|=2}),R.loading|=4,n2(A,n,c)}A={type:"stylesheet",instance:A,count:1,state:R},v.set(y,A)}}}function z7(e,n){Yr.X(e,n);var u=gc;if(u&&e){var c=jt(u).hoistableScripts,v=vc(e),y=c.get(v);y||(y=u.querySelector($1(v)),y||(e=_({src:e,async:!0},n),(n=Vl.get(v))&&B4(e,n),y=u.createElement("script"),Qt(y),tn(y,"link",e),u.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(v,y))}}function C7(e,n){Yr.M(e,n);var u=gc;if(u&&e){var c=jt(u).hoistableScripts,v=vc(e),y=c.get(v);y||(y=u.querySelector($1(v)),y||(e=_({src:e,async:!0,type:"module"},n),(n=Vl.get(v))&&B4(e,n),y=u.createElement("script"),Qt(y),tn(y,"link",e),u.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(v,y))}}function L5(e,n,u,c){var v=(v=Mt.current)?a2(v):null;if(!v)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(n=pc(u.href),u=jt(v).hoistableStyles,c=u.get(n),c||(c={type:"style",instance:null,count:0,state:null},u.set(n,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){e=pc(u.href);var y=jt(v).hoistableStyles,A=y.get(e);if(A||(v=v.ownerDocument||v,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(e,A),(y=v.querySelector(P1(e)))&&!y._p&&(A.instance=y,A.state.loading=5),Vl.has(e)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Vl.set(e,u),y||w7(v,e,u,A.state))),n&&c===null)throw Error(i(528,""));return A}if(n&&c!==null)throw Error(i(529,""));return null;case"script":return n=u.async,u=u.src,typeof u=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=vc(u),u=jt(v).hoistableScripts,c=u.get(n),c||(c={type:"script",instance:null,count:0,state:null},u.set(n,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function pc(e){return'href="'+b0(e)+'"'}function P1(e){return'link[rel="stylesheet"]['+e+"]"}function k5(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function w7(e,n,u,c){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?c.loading=1:(n=e.createElement("link"),c.preload=n,n.addEventListener("load",function(){return c.loading|=1}),n.addEventListener("error",function(){return c.loading|=2}),tn(n,"link",u),Qt(n),e.head.appendChild(n))}function vc(e){return'[src="'+b0(e)+'"]'}function $1(e){return"script[async]"+e}function Y5(e,n,u){if(n.count++,n.instance===null)switch(n.type){case"style":var c=e.querySelector('style[data-href~="'+b0(u.href)+'"]');if(c)return n.instance=c,Qt(c),c;var v=_({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return c=(e.ownerDocument||e).createElement("style"),Qt(c),tn(c,"style",v),n2(c,u.precedence,e),n.instance=c;case"stylesheet":v=pc(u.href);var y=e.querySelector(P1(v));if(y)return n.state.loading|=4,n.instance=y,Qt(y),y;c=k5(u),(v=Vl.get(v))&&O4(c,v),y=(e.ownerDocument||e).createElement("link"),Qt(y);var A=y;return A._p=new Promise(function(R,V){A.onload=R,A.onerror=V}),tn(y,"link",c),n.state.loading|=4,n2(y,u.precedence,e),n.instance=y;case"script":return y=vc(u.src),(v=e.querySelector($1(y)))?(n.instance=v,Qt(v),v):(c=u,(v=Vl.get(y))&&(c=_({},u),B4(c,v)),e=e.ownerDocument||e,v=e.createElement("script"),Qt(v),tn(v,"link",c),e.head.appendChild(v),n.instance=v);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(c=n.instance,n.state.loading|=4,n2(c,u.precedence,e));return n.instance}function n2(e,n,u){for(var c=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=c.length?c[c.length-1]:null,y=v,A=0;A<c.length;A++){var R=c[A];if(R.dataset.precedence===n)y=R;else if(y!==v)break}y?y.parentNode.insertBefore(e,y.nextSibling):(n=u.nodeType===9?u.head:u,n.insertBefore(e,n.firstChild))}function O4(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function B4(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var l2=null;function X5(e,n,u){if(l2===null){var c=new Map,v=l2=new Map;v.set(u,c)}else v=l2,c=v.get(u),c||(c=new Map,v.set(u,c));if(c.has(e))return c;for(c.set(e,null),u=u.getElementsByTagName(e),v=0;v<u.length;v++){var y=u[v];if(!(y[Nn]||y[ka]||e==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var A=y.getAttribute(n)||"";A=e+A;var R=c.get(A);R?R.push(y):c.set(A,[y])}}return c}function j5(e,n,u){e=e.ownerDocument||e,e.head.insertBefore(u,n==="title"?e.querySelector("head > title"):null)}function D7(e,n,u){if(u===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function V5(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function N7(e,n,u,c){if(u.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var v=pc(c.href),y=n.querySelector(P1(v));if(y){n=y._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=i2.bind(e),n.then(e,e)),u.state.loading|=4,u.instance=y,Qt(y);return}y=n.ownerDocument||n,c=k5(c),(v=Vl.get(v))&&O4(c,v),y=y.createElement("link"),Qt(y);var A=y;A._p=new Promise(function(R,V){A.onload=R,A.onerror=V}),tn(y,"link",c),u.instance=y}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(u,n),(n=u.state.preload)&&(u.state.loading&3)===0&&(e.count++,u=i2.bind(e),n.addEventListener("load",u),n.addEventListener("error",u))}}var H4=0;function R7(e,n){return e.stylesheets&&e.count===0&&s2(e,e.stylesheets),0<e.count||0<e.imgCount?function(u){var c=setTimeout(function(){if(e.stylesheets&&s2(e,e.stylesheets),e.unsuspend){var y=e.unsuspend;e.unsuspend=null,y()}},6e4+n);0<e.imgBytes&&H4===0&&(H4=62500*f7());var v=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&s2(e,e.stylesheets),e.unsuspend)){var y=e.unsuspend;e.unsuspend=null,y()}},(e.imgBytes>H4?50:800)+n);return e.unsuspend=u,function(){e.unsuspend=null,clearTimeout(c),clearTimeout(v)}}:null}function i2(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)s2(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var r2=null;function s2(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,r2=new Map,n.forEach(O7,e),r2=null,i2.call(e))}function O7(e,n){if(!(n.state.loading&4)){var u=r2.get(e);if(u)var c=u.get(null);else{u=new Map,r2.set(e,u);for(var v=e.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<v.length;y++){var A=v[y];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(u.set(A.dataset.precedence,A),c=A)}c&&u.set(null,c)}v=n.instance,A=v.getAttribute("data-precedence"),y=u.get(A)||c,y===c&&u.set(null,v),u.set(A,v),this.count++,c=i2.bind(this),v.addEventListener("load",c),v.addEventListener("error",c),y?y.parentNode.insertBefore(v,y.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(v,e.firstChild)),n.state.loading|=4}}var th={$$typeof:k,Provider:null,Consumer:null,_currentValue:mt,_currentValue2:mt,_threadCount:0};function B7(e,n,u,c,v,y,A,R,V){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ai(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ai(0),this.hiddenUpdates=Ai(null),this.identifierPrefix=c,this.onUncaughtError=v,this.onCaughtError=y,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=V,this.incompleteTransitions=new Map}function Q5(e,n,u,c,v,y,A,R,V,lt,dt,yt){return e=new B7(e,n,u,A,V,lt,dt,yt,R),n=1,y===!0&&(n|=24),y=wa(3,null,null,n),e.current=y,y.stateNode=e,n=l1(),n.refCount++,e.pooledCache=n,n.refCount++,y.memoizedState={element:c,isDehydrated:u,cache:n},Ru(y),e}function K5(e){return e?(e=Oi,e):Oi}function Z5(e,n,u,c,v,y){v=K5(v),c.context===null?c.context=v:c.pendingContext=v,c=ci(n),c.payload={element:u},y=y===void 0?null:y,y!==null&&(c.callback=y),u=Yi(e,c,n),u!==null&&(Ae(u,e,n),Xi(u,e,n))}function J5(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var u=e.retryLane;e.retryLane=u!==0&&u<n?u:n}}function G4(e,n){J5(e,n),(e=e.alternate)&&J5(e,n)}function F5(e){if(e.tag===13||e.tag===31){var n=K0(e,67108864);n!==null&&Ae(n,e,67108864),G4(e,67108864)}}function W5(e){if(e.tag===13||e.tag===31){var n=Mn();n=gl(n);var u=K0(e,n);u!==null&&Ae(u,e,n),G4(e,n)}}var u2=!0;function H7(e,n,u,c){var v=K.T;K.T=null;var y=vt.p;try{vt.p=2,U4(e,n,u,c)}finally{vt.p=y,K.T=v}}function G7(e,n,u,c){var v=K.T;K.T=null;var y=vt.p;try{vt.p=8,U4(e,n,u,c)}finally{vt.p=y,K.T=v}}function U4(e,n,u,c){if(u2){var v=q4(c);if(v===null)E4(e,n,c,o2,u),P5(e,c);else if(q7(v,e,n,u,c))c.stopPropagation();else if(P5(e,c),n&4&&-1<U7.indexOf(e)){for(;v!==null;){var y=W(v);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var A=dl(y.pendingLanes);if(A!==0){var R=y;for(R.pendingLanes|=2,R.entangledLanes|=2;A;){var V=1<<31-j0(A);R.entanglements[1]|=V,A&=~V}zt(y),(ee&6)===0&&(Fa=ea()+500,Kt(0))}}break;case 31:case 13:R=K0(y,2),R!==null&&Ae(R,y,2),rl(),G4(y,2)}if(y=q4(c),y===null&&E4(e,n,c,o2,u),y===v)break;v=y}v!==null&&c.stopPropagation()}else E4(e,n,c,null,u)}}function q4(e){return e=mo(e),L4(e)}var o2=null;function L4(e){if(o2=null,e=Sl(e),e!==null){var n=h(e);if(n===null)e=null;else{var u=n.tag;if(u===13){if(e=d(n),e!==null)return e;e=null}else if(u===31){if(e=g(n),e!==null)return e;e=null}else if(u===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return o2=e,null}function I5(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(en()){case Ua:return 2;case xa:return 8;case p0:case qa:return 32;case La:return 268435456;default:return 32}default:return 32}}var k4=!1,Ks=null,Zs=null,Js=null,eh=new Map,ah=new Map,Fs=[],U7="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function P5(e,n){switch(e){case"focusin":case"focusout":Ks=null;break;case"dragenter":case"dragleave":Zs=null;break;case"mouseover":case"mouseout":Js=null;break;case"pointerover":case"pointerout":eh.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ah.delete(n.pointerId)}}function nh(e,n,u,c,v,y){return e===null||e.nativeEvent!==y?(e={blockedOn:n,domEventName:u,eventSystemFlags:c,nativeEvent:y,targetContainers:[v]},n!==null&&(n=W(n),n!==null&&F5(n)),e):(e.eventSystemFlags|=c,n=e.targetContainers,v!==null&&n.indexOf(v)===-1&&n.push(v),e)}function q7(e,n,u,c,v){switch(n){case"focusin":return Ks=nh(Ks,e,n,u,c,v),!0;case"dragenter":return Zs=nh(Zs,e,n,u,c,v),!0;case"mouseover":return Js=nh(Js,e,n,u,c,v),!0;case"pointerover":var y=v.pointerId;return eh.set(y,nh(eh.get(y)||null,e,n,u,c,v)),!0;case"gotpointercapture":return y=v.pointerId,ah.set(y,nh(ah.get(y)||null,e,n,u,c,v)),!0}return!1}function $5(e){var n=Sl(e.target);if(n!==null){var u=h(n);if(u!==null){if(n=u.tag,n===13){if(n=d(u),n!==null){e.blockedOn=n,pl(e.priority,function(){W5(u)});return}}else if(n===31){if(n=g(u),n!==null){e.blockedOn=n,pl(e.priority,function(){W5(u)});return}}else if(n===3&&u.stateNode.current.memoizedState.isDehydrated){e.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}e.blockedOn=null}function c2(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var u=q4(e.nativeEvent);if(u===null){u=e.nativeEvent;var c=new u.constructor(u.type,u);fo=c,u.target.dispatchEvent(c),fo=null}else return n=W(u),n!==null&&F5(n),e.blockedOn=u,!1;n.shift()}return!0}function t3(e,n,u){c2(e)&&u.delete(n)}function L7(){k4=!1,Ks!==null&&c2(Ks)&&(Ks=null),Zs!==null&&c2(Zs)&&(Zs=null),Js!==null&&c2(Js)&&(Js=null),eh.forEach(t3),ah.forEach(t3)}function h2(e,n){e.blockedOn===n&&(e.blockedOn=null,k4||(k4=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,L7)))}var f2=null;function e3(e){f2!==e&&(f2=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){f2===e&&(f2=null);for(var n=0;n<e.length;n+=3){var u=e[n],c=e[n+1],v=e[n+2];if(typeof c!="function"){if(L4(c||u)===null)continue;break}var y=W(u);y!==null&&(e.splice(n,3),n-=3,N1(y,{pending:!0,data:v,method:u.method,action:c},c,v))}}))}function yc(e){function n(V){return h2(V,e)}Ks!==null&&h2(Ks,e),Zs!==null&&h2(Zs,e),Js!==null&&h2(Js,e),eh.forEach(n),ah.forEach(n);for(var u=0;u<Fs.length;u++){var c=Fs[u];c.blockedOn===e&&(c.blockedOn=null)}for(;0<Fs.length&&(u=Fs[0],u.blockedOn===null);)$5(u),u.blockedOn===null&&Fs.shift();if(u=(e.ownerDocument||e).$$reactFormReplay,u!=null)for(c=0;c<u.length;c+=3){var v=u[c],y=u[c+1],A=v[v0]||null;if(typeof y=="function")A||e3(u);else if(A){var R=null;if(y&&y.hasAttribute("formAction")){if(v=y,A=y[v0]||null)R=A.formAction;else if(L4(v)!==null)continue}else R=A.action;typeof R=="function"?u[c+1]=R:(u.splice(c,3),c-=3),e3(u)}}}function a3(){function e(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(A){return v=A})},focusReset:"manual",scroll:"manual"})}function n(){v!==null&&(v(),v=null),c||setTimeout(u,20)}function u(){if(!c&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,v=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(u,100),function(){c=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),v!==null&&(v(),v=null)}}}function Y4(e){this._internalRoot=e}d2.prototype.render=Y4.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));var u=n.current,c=Mn();Z5(u,c,e,n,null,null)},d2.prototype.unmount=Y4.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Z5(e.current,2,null,e,null,null),rl(),n[vl]=null}};function d2(e){this._internalRoot=e}d2.prototype.unstable_scheduleHydration=function(e){if(e){var n=is();e={blockedOn:null,target:e,priority:n};for(var u=0;u<Fs.length&&n!==0&&n<Fs[u].priority;u++);Fs.splice(u,0,e),u===0&&$5(e)}};var n3=t.version;if(n3!=="19.2.0")throw Error(i(527,n3,"19.2.0"));vt.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=b(n),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var k7={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:K,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var m2=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!m2.isDisabled&&m2.supportsFiber)try{fl=m2.inject(k7),U0=m2}catch{}}return ih.createRoot=function(e,n){if(!o(e))throw Error(i(299));var u=!1,c="",v=Qf,y=U1,A=q1;return n!=null&&(n.unstable_strictMode===!0&&(u=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(v=n.onUncaughtError),n.onCaughtError!==void 0&&(y=n.onCaughtError),n.onRecoverableError!==void 0&&(A=n.onRecoverableError)),n=Q5(e,1,!1,null,null,u,c,null,v,y,A,a3),e[vl]=n.current,T4(e),new Y4(n)},ih.hydrateRoot=function(e,n,u){if(!o(e))throw Error(i(299));var c=!1,v="",y=Qf,A=U1,R=q1,V=null;return u!=null&&(u.unstable_strictMode===!0&&(c=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(y=u.onUncaughtError),u.onCaughtError!==void 0&&(A=u.onCaughtError),u.onRecoverableError!==void 0&&(R=u.onRecoverableError),u.formState!==void 0&&(V=u.formState)),n=Q5(e,1,!0,n,u??null,c,v,V,y,A,R,a3),n.context=K5(null),u=n.current,c=Mn(),c=gl(c),v=ci(c),v.callback=null,Yi(u,v,c),u=c,n.current.lanes=u,Pl(n,u),zt(n),e[vl]=n.current,T4(e),new d2(n)},ih.version="19.2.0",ih}var d3;function F7(){if(d3)return V4.exports;d3=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(t){console.error(t)}}return s(),V4.exports=J7(),V4.exports}var W7=F7();const I7=Qd(W7);let Ed=null,U2=[];const P7=s=>{if(!s?.board?.id||typeof s.board.id!="number")throw new Error("Invalid board.id");if(typeof s.widgetId!="number")throw new Error("Invalid widgetId");return Ed=s,console.log("[Widget] Initialized with:",s),U2.forEach(t=>t(s)),{widgetId:s.widgetId,boardId:String(s.board.id),userId:s.userId,role:s.role,config:s.config}},$7=s=>(U2.push(s),Ed&&s(Ed),()=>{const t=U2.indexOf(s);t>-1&&U2.splice(t,1)}),t8=Math.PI/180;function e8(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}const to=typeof global<"u"?global:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},kt={_global:to,version:"10.0.12",isBrowser:e8(),isUnminified:/param/.test((function(s){}).toString()),dblClickWindow:400,getAngle(s){return kt.angleDeg?s*t8:s},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_renderBackend:"web",legacyTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return kt.DD.isDragging},isTransforming(){var s,t;return(t=(s=kt.Transformer)===null||s===void 0?void 0:s.isTransforming())!==null&&t!==void 0?t:!1},isDragReady(){return!!kt.DD.node},releaseCanvasOnDestroy:!0,document:to.document,_injectGlobal(s){typeof to.Konva<"u"&&console.error("Several Konva instances detected. It is not recommended to use multiple Konva instances in the same environment."),to.Konva=s}},$a=s=>{kt[s.prototype.getClassName()]=s};kt._injectGlobal(kt);const a8=`Konva.js unsupported environment.
|
|
10
|
-
|
|
11
|
-
Looks like you are trying to use Konva.js in Node.js environment. because "document" object is undefined.
|
|
12
|
-
|
|
13
|
-
To use Konva.js in Node.js environment, you need to use the "canvas-backend" or "skia-backend" module.
|
|
14
|
-
|
|
15
|
-
bash: npm install canvas
|
|
16
|
-
js: import "konva/canvas-backend";
|
|
17
|
-
|
|
18
|
-
or
|
|
19
|
-
|
|
20
|
-
bash: npm install skia-canvas
|
|
21
|
-
js: import "konva/skia-backend";
|
|
22
|
-
`,m3=()=>{if(typeof document>"u")throw new Error(a8)};class sl{constructor(t=[1,0,0,1,0,0]){this.dirty=!1,this.m=t&&t.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new sl(this.m)}copyInto(t){t.m[0]=this.m[0],t.m[1]=this.m[1],t.m[2]=this.m[2],t.m[3]=this.m[3],t.m[4]=this.m[4],t.m[5]=this.m[5]}point(t){const a=this.m;return{x:a[0]*t.x+a[2]*t.y+a[4],y:a[1]*t.x+a[3]*t.y+a[5]}}translate(t,a){return this.m[4]+=this.m[0]*t+this.m[2]*a,this.m[5]+=this.m[1]*t+this.m[3]*a,this}scale(t,a){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=a,this.m[3]*=a,this}rotate(t){const a=Math.cos(t),i=Math.sin(t),o=this.m[0]*a+this.m[2]*i,h=this.m[1]*a+this.m[3]*i,d=this.m[0]*-i+this.m[2]*a,g=this.m[1]*-i+this.m[3]*a;return this.m[0]=o,this.m[1]=h,this.m[2]=d,this.m[3]=g,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(t,a){const i=this.m[0]+this.m[2]*a,o=this.m[1]+this.m[3]*a,h=this.m[2]+this.m[0]*t,d=this.m[3]+this.m[1]*t;return this.m[0]=i,this.m[1]=o,this.m[2]=h,this.m[3]=d,this}multiply(t){const a=this.m[0]*t.m[0]+this.m[2]*t.m[1],i=this.m[1]*t.m[0]+this.m[3]*t.m[1],o=this.m[0]*t.m[2]+this.m[2]*t.m[3],h=this.m[1]*t.m[2]+this.m[3]*t.m[3],d=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],g=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];return this.m[0]=a,this.m[1]=i,this.m[2]=o,this.m[3]=h,this.m[4]=d,this.m[5]=g,this}invert(){const t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),a=this.m[3]*t,i=-this.m[1]*t,o=-this.m[2]*t,h=this.m[0]*t,d=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),g=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=a,this.m[1]=i,this.m[2]=o,this.m[3]=h,this.m[4]=d,this.m[5]=g,this}getMatrix(){return this.m}decompose(){const t=this.m[0],a=this.m[1],i=this.m[2],o=this.m[3],h=this.m[4],d=this.m[5],g=t*o-a*i,p={x:h,y:d,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(t!=0||a!=0){const b=Math.sqrt(t*t+a*a);p.rotation=a>0?Math.acos(t/b):-Math.acos(t/b),p.scaleX=b,p.scaleY=g/b,p.skewX=(t*i+a*o)/g,p.skewY=0}else if(i!=0||o!=0){const b=Math.sqrt(i*i+o*o);p.rotation=Math.PI/2-(o>0?Math.acos(-i/b):-Math.acos(i/b)),p.scaleX=g/b,p.scaleY=b,p.skewX=0,p.skewY=(t*i+a*o)/g}return p.rotation=tt._getRotation(p.rotation),p}}const n8="[object Array]",l8="[object Number]",i8="[object String]",r8="[object Boolean]",s8=Math.PI/180,u8=180/Math.PI,rh="#",o8="",c8="0",h8="Konva warning: ",g3="Konva error: ",f8="rgb(",J4={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},d8=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let g2=[],sh=null;const m8=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(s){setTimeout(s,60)},tt={_isElement(s){return!!(s&&s.nodeType==1)},_isFunction(s){return!!(s&&s.constructor&&s.call&&s.apply)},_isPlainObject(s){return!!s&&s.constructor===Object},_isArray(s){return Object.prototype.toString.call(s)===n8},_isNumber(s){return Object.prototype.toString.call(s)===l8&&!isNaN(s)&&isFinite(s)},_isString(s){return Object.prototype.toString.call(s)===i8},_isBoolean(s){return Object.prototype.toString.call(s)===r8},isObject(s){return s instanceof Object},isValidSelector(s){if(typeof s!="string")return!1;const t=s[0];return t==="#"||t==="."||t===t.toUpperCase()},_sign(s){return s===0||s>0?1:-1},requestAnimFrame(s){g2.push(s),g2.length===1&&m8(function(){const t=g2;g2=[],t.forEach(function(a){a()})})},createCanvasElement(){m3();const s=document.createElement("canvas");try{s.style=s.style||{}}catch{}return s},createImageElement(){return m3(),document.createElement("img")},_isInDocument(s){for(;s=s.parentNode;)if(s==document)return!0;return!1},_urlToImage(s,t){const a=tt.createImageElement();a.onload=function(){t(a)},a.src=s},_rgbToHex(s,t,a){return((1<<24)+(s<<16)+(t<<8)+a).toString(16).slice(1)},_hexToRgb(s){s=s.replace(rh,o8);const t=parseInt(s,16);return{r:t>>16&255,g:t>>8&255,b:t&255}},getRandomColor(){let s=(Math.random()*16777215<<0).toString(16);for(;s.length<6;)s=c8+s;return rh+s},isCanvasFarblingActive(){if(sh!==null)return sh;if(typeof document>"u")return sh=!1,!1;const s=this.createCanvasElement();s.width=10,s.height=10;const t=s.getContext("2d",{willReadFrequently:!0});t.clearRect(0,0,10,10),t.fillStyle="#282828",t.fillRect(0,0,10,10);const a=t.getImageData(0,0,10,10).data;let i=!1;for(let o=0;o<100;o++)if(a[o*4]!==40||a[o*4+1]!==40||a[o*4+2]!==40||a[o*4+3]!==255){i=!0;break}return sh=i,this.releaseCanvas(s),sh},getHitColor(){const s=this.getRandomColor();return this.isCanvasFarblingActive()?this.getSnappedHexColor(s):s},getHitColorKey(s,t,a){return this.isCanvasFarblingActive()&&(s=Math.round(s/5)*5,t=Math.round(t/5)*5,a=Math.round(a/5)*5),rh+this._rgbToHex(s,t,a)},getSnappedHexColor(s){const t=this._hexToRgb(s);return rh+this._rgbToHex(Math.round(t.r/5)*5,Math.round(t.g/5)*5,Math.round(t.b/5)*5)},getRGB(s){let t;return s in J4?(t=J4[s],{r:t[0],g:t[1],b:t[2]}):s[0]===rh?this._hexToRgb(s.substring(1)):s.substr(0,4)===f8?(t=d8.exec(s.replace(/ /g,"")),{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}):{r:0,g:0,b:0}},colorToRGBA(s){return s=s||"black",tt._namedColorToRBA(s)||tt._hex3ColorToRGBA(s)||tt._hex4ColorToRGBA(s)||tt._hex6ColorToRGBA(s)||tt._hex8ColorToRGBA(s)||tt._rgbColorToRGBA(s)||tt._rgbaColorToRGBA(s)||tt._hslColorToRGBA(s)},_namedColorToRBA(s){const t=J4[s.toLowerCase()];return t?{r:t[0],g:t[1],b:t[2],a:1}:null},_rgbColorToRGBA(s){if(s.indexOf("rgb(")===0){s=s.match(/rgb\(([^)]+)\)/)[1];const t=s.split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:1}}},_rgbaColorToRGBA(s){if(s.indexOf("rgba(")===0){s=s.match(/rgba\(([^)]+)\)/)[1];const t=s.split(/ *, */).map((a,i)=>a.slice(-1)==="%"?i===3?parseInt(a)/100:parseInt(a)/100*255:Number(a));return{r:t[0],g:t[1],b:t[2],a:t[3]}}},_hex8ColorToRGBA(s){if(s[0]==="#"&&s.length===9)return{r:parseInt(s.slice(1,3),16),g:parseInt(s.slice(3,5),16),b:parseInt(s.slice(5,7),16),a:parseInt(s.slice(7,9),16)/255}},_hex6ColorToRGBA(s){if(s[0]==="#"&&s.length===7)return{r:parseInt(s.slice(1,3),16),g:parseInt(s.slice(3,5),16),b:parseInt(s.slice(5,7),16),a:1}},_hex4ColorToRGBA(s){if(s[0]==="#"&&s.length===5)return{r:parseInt(s[1]+s[1],16),g:parseInt(s[2]+s[2],16),b:parseInt(s[3]+s[3],16),a:parseInt(s[4]+s[4],16)/255}},_hex3ColorToRGBA(s){if(s[0]==="#"&&s.length===4)return{r:parseInt(s[1]+s[1],16),g:parseInt(s[2]+s[2],16),b:parseInt(s[3]+s[3],16),a:1}},_hslColorToRGBA(s){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(s)){const[t,...a]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(s),i=Number(a[0])/360,o=Number(a[1])/100,h=Number(a[2])/100;let d,g,p;if(o===0)return p=h*255,{r:Math.round(p),g:Math.round(p),b:Math.round(p),a:1};h<.5?d=h*(1+o):d=h+o-h*o;const b=2*h-d,E=[0,0,0];for(let _=0;_<3;_++)g=i+1/3*-(_-1),g<0&&g++,g>1&&g--,6*g<1?p=b+(d-b)*6*g:2*g<1?p=d:3*g<2?p=b+(d-b)*(2/3-g)*6:p=b,E[_]=p*255;return{r:Math.round(E[0]),g:Math.round(E[1]),b:Math.round(E[2]),a:1}}},haveIntersection(s,t){return!(t.x>s.x+s.width||t.x+t.width<s.x||t.y>s.y+s.height||t.y+t.height<s.y)},cloneObject(s){const t={};for(const a in s)this._isPlainObject(s[a])?t[a]=this.cloneObject(s[a]):this._isArray(s[a])?t[a]=this.cloneArray(s[a]):t[a]=s[a];return t},cloneArray(s){return s.slice(0)},degToRad(s){return s*s8},radToDeg(s){return s*u8},_degToRad(s){return tt.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),tt.degToRad(s)},_radToDeg(s){return tt.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),tt.radToDeg(s)},_getRotation(s){return kt.angleDeg?tt.radToDeg(s):s},_capitalize(s){return s.charAt(0).toUpperCase()+s.slice(1)},throw(s){throw new Error(g3+s)},error(s){console.error(g3+s)},warn(s){kt.showWarnings&&console.warn(h8+s)},each(s,t){for(const a in s)t(a,s[a])},_inRange(s,t,a){return t<=s&&s<a},_getProjectionToSegment(s,t,a,i,o,h){let d,g,p;const b=(s-a)*(s-a)+(t-i)*(t-i);if(b==0)d=s,g=t,p=(o-a)*(o-a)+(h-i)*(h-i);else{const E=((o-s)*(a-s)+(h-t)*(i-t))/b;E<0?(d=s,g=t,p=(s-o)*(s-o)+(t-h)*(t-h)):E>1?(d=a,g=i,p=(a-o)*(a-o)+(i-h)*(i-h)):(d=s+E*(a-s),g=t+E*(i-t),p=(d-o)*(d-o)+(g-h)*(g-h))}return[d,g,p]},_getProjectionToLine(s,t,a){const i=tt.cloneObject(s);let o=Number.MAX_VALUE;return t.forEach(function(h,d){if(!a&&d===t.length-1)return;const g=t[(d+1)%t.length],p=tt._getProjectionToSegment(h.x,h.y,g.x,g.y,s.x,s.y),b=p[0],E=p[1],_=p[2];_<o&&(i.x=b,i.y=E,o=_)}),i},_prepareArrayForTween(s,t,a){const i=[],o=[];if(s.length>t.length){const d=t;t=s,s=d}for(let d=0;d<s.length;d+=2)i.push({x:s[d],y:s[d+1]});for(let d=0;d<t.length;d+=2)o.push({x:t[d],y:t[d+1]});const h=[];return o.forEach(function(d){const g=tt._getProjectionToLine(d,i,a);h.push(g.x),h.push(g.y)}),h},_prepareToStringify(s){let t;s.visitedByCircularReferenceRemoval=!0;for(const a in s)if(s.hasOwnProperty(a)&&s[a]&&typeof s[a]=="object"){if(t=Object.getOwnPropertyDescriptor(s,a),s[a].visitedByCircularReferenceRemoval||tt._isElement(s[a]))if(t.configurable)delete s[a];else return null;else if(tt._prepareToStringify(s[a])===null)if(t.configurable)delete s[a];else return null}return delete s.visitedByCircularReferenceRemoval,s},_assign(s,t){for(const a in t)s[a]=t[a];return s},_getFirstPointerId(s){return s.touches?s.changedTouches[0].identifier:s.pointerId||999},releaseCanvas(...s){kt.releaseCanvasOnDestroy&&s.forEach(t=>{t.width=0,t.height=0})},drawRoundedRectPath(s,t,a,i){let o=t<0?t:0,h=a<0?a:0;t=Math.abs(t),a=Math.abs(a);let d=0,g=0,p=0,b=0;typeof i=="number"?d=g=p=b=Math.min(i,t/2,a/2):(d=Math.min(i[0]||0,t/2,a/2),g=Math.min(i[1]||0,t/2,a/2),b=Math.min(i[2]||0,t/2,a/2),p=Math.min(i[3]||0,t/2,a/2)),s.moveTo(o+d,h),s.lineTo(o+t-g,h),s.arc(o+t-g,h+g,g,Math.PI*3/2,0,!1),s.lineTo(o+t,h+a-b),s.arc(o+t-b,h+a-b,b,0,Math.PI/2,!1),s.lineTo(o+p,h+a),s.arc(o+p,h+a-p,p,Math.PI/2,Math.PI,!1),s.lineTo(o,h+d),s.arc(o+d,h+d,d,Math.PI,Math.PI*3/2,!1)},drawRoundedPolygonPath(s,t,a,i,o){i=Math.abs(i);for(let h=0;h<a;h++){const d=t[(h-1+a)%a],g=t[h],p=t[(h+1)%a],b={x:g.x-d.x,y:g.y-d.y},E={x:p.x-g.x,y:p.y-g.y},_=Math.hypot(b.x,b.y),z=Math.hypot(E.x,E.y);let D;typeof o=="number"?D=o:D=h<o.length?o[h]:0,D=i*Math.cos(Math.PI/a)*Math.min(1,D/i*2);const H={x:b.x/_,y:b.y/_},U={x:E.x/z,y:E.y/z},B={x:g.x-H.x*D,y:g.y-H.y*D},X={x:g.x+U.x*D,y:g.y+U.y*D};h===0?s.moveTo(B.x,B.y):s.lineTo(B.x,B.y),s.arcTo(g.x,g.y,X.x,X.y,D)}}};function g8(s){const t=[],a=s.length,i=tt;for(let o=0;o<a;o++){let h=s[o];i._isNumber(h)?h=Math.round(h*1e3)/1e3:i._isString(h)||(h=h+""),t.push(h)}return t}const p3=",",p8="(",v8=")",y8="([",b8="])",S8=";",x8="()",T8="=",v3=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],E8=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled","filter"],_8=100;let p2=null;function y3(){if(p2!==null)return p2;try{const t=tt.createCanvasElement().getContext("2d");return t?!!t&&"filter"in t:(p2=!1,!1)}catch{return p2=!1,!1}}class W2{constructor(t){this.canvas=t,kt.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(t){t.fillEnabled()&&this._fill(t)}_fill(t){}strokeShape(t){t.hasStroke()&&this._stroke(t)}_stroke(t){}fillStrokeShape(t){t.attrs.fillAfterStrokeEnabled?(this.strokeShape(t),this.fillShape(t)):(this.fillShape(t),this.strokeShape(t))}getTrace(t,a){let i=this.traceArr,o=i.length,h="",d,g,p,b;for(d=0;d<o;d++)g=i[d],p=g.method,p?(b=g.args,h+=p,t?h+=x8:tt._isArray(b[0])?h+=y8+b.join(p3)+b8:(a&&(b=b.map(E=>typeof E=="number"?Math.floor(E):E)),h+=p8+b.join(p3)+v8)):(h+=g.property,t||(h+=T8+g.val)),h+=S8;return h}clearTrace(){this.traceArr=[]}_trace(t){let a=this.traceArr,i;a.push(t),i=a.length,i>=_8&&a.shift()}reset(){const t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){const a=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,a.getWidth()/a.pixelRatio,a.getHeight()/a.pixelRatio)}_applyLineCap(t){const a=t.attrs.lineCap;a&&this.setAttr("lineCap",a)}_applyOpacity(t){const a=t.getAbsoluteOpacity();a!==1&&this.setAttr("globalAlpha",a)}_applyLineJoin(t){const a=t.attrs.lineJoin;a&&this.setAttr("lineJoin",a)}_applyMiterLimit(t){const a=t.attrs.miterLimit;a!=null&&this.setAttr("miterLimit",a)}setAttr(t,a){this._context[t]=a}arc(t,a,i,o,h,d){this._context.arc(t,a,i,o,h,d)}arcTo(t,a,i,o,h){this._context.arcTo(t,a,i,o,h)}beginPath(){this._context.beginPath()}bezierCurveTo(t,a,i,o,h,d){this._context.bezierCurveTo(t,a,i,o,h,d)}clearRect(t,a,i,o){this._context.clearRect(t,a,i,o)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,a){const i=arguments;if(i.length===2)return this._context.createImageData(t,a);if(i.length===1)return this._context.createImageData(t)}createLinearGradient(t,a,i,o){return this._context.createLinearGradient(t,a,i,o)}createPattern(t,a){return this._context.createPattern(t,a)}createRadialGradient(t,a,i,o,h,d){return this._context.createRadialGradient(t,a,i,o,h,d)}drawImage(t,a,i,o,h,d,g,p,b){const E=arguments,_=this._context;E.length===3?_.drawImage(t,a,i):E.length===5?_.drawImage(t,a,i,o,h):E.length===9&&_.drawImage(t,a,i,o,h,d,g,p,b)}ellipse(t,a,i,o,h,d,g,p){this._context.ellipse(t,a,i,o,h,d,g,p)}isPointInPath(t,a,i,o){return i?this._context.isPointInPath(i,t,a,o):this._context.isPointInPath(t,a,o)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,a,i,o){this._context.fillRect(t,a,i,o)}strokeRect(t,a,i,o){this._context.strokeRect(t,a,i,o)}fillText(t,a,i,o){o?this._context.fillText(t,a,i,o):this._context.fillText(t,a,i)}measureText(t){return this._context.measureText(t)}getImageData(t,a,i,o){return this._context.getImageData(t,a,i,o)}lineTo(t,a){this._context.lineTo(t,a)}moveTo(t,a){this._context.moveTo(t,a)}rect(t,a,i,o){this._context.rect(t,a,i,o)}roundRect(t,a,i,o,h){this._context.roundRect(t,a,i,o,h)}putImageData(t,a,i){this._context.putImageData(t,a,i)}quadraticCurveTo(t,a,i,o){this._context.quadraticCurveTo(t,a,i,o)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,a){this._context.scale(t,a)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,a,i,o,h,d){this._context.setTransform(t,a,i,o,h,d)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,a,i,o){this._context.strokeText(t,a,i,o)}transform(t,a,i,o,h,d){this._context.transform(t,a,i,o,h,d)}translate(t,a){this._context.translate(t,a)}_enableTrace(){let t=this,a=v3.length,i=this.setAttr,o,h;const d=function(g){let p=t[g],b;t[g]=function(){return h=g8(Array.prototype.slice.call(arguments,0)),b=p.apply(t,arguments),t._trace({method:g,args:h}),b}};for(o=0;o<a;o++)d(v3[o]);t.setAttr=function(){i.apply(t,arguments);const g=arguments[0];let p=arguments[1];(g==="shadowOffsetX"||g==="shadowOffsetY"||g==="shadowBlur")&&(p=p/this.canvas.getPixelRatio()),t._trace({property:g,val:p})}}_applyGlobalCompositeOperation(t){const a=t.attrs.globalCompositeOperation;!a||a==="source-over"||this.setAttr("globalCompositeOperation",a)}}E8.forEach(function(s){Object.defineProperty(W2.prototype,s,{get(){return this._context[s]},set(t){this._context[s]=t}})});class M8 extends W2{constructor(t,{willReadFrequently:a=!1}={}){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:a})}_fillColor(t){const a=t.fill();this.setAttr("fillStyle",a),t._fillFunc(this)}_fillPattern(t){this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)}_fillLinearGradient(t){const a=t._getLinearGradient();a&&(this.setAttr("fillStyle",a),t._fillFunc(this))}_fillRadialGradient(t){const a=t._getRadialGradient();a&&(this.setAttr("fillStyle",a),t._fillFunc(this))}_fill(t){const a=t.fill(),i=t.getFillPriority();if(a&&i==="color"){this._fillColor(t);return}const o=t.getFillPatternImage();if(o&&i==="pattern"){this._fillPattern(t);return}const h=t.getFillLinearGradientColorStops();if(h&&i==="linear-gradient"){this._fillLinearGradient(t);return}const d=t.getFillRadialGradientColorStops();if(d&&i==="radial-gradient"){this._fillRadialGradient(t);return}a?this._fillColor(t):o?this._fillPattern(t):h?this._fillLinearGradient(t):d&&this._fillRadialGradient(t)}_strokeLinearGradient(t){const a=t.getStrokeLinearGradientStartPoint(),i=t.getStrokeLinearGradientEndPoint(),o=t.getStrokeLinearGradientColorStops(),h=this.createLinearGradient(a.x,a.y,i.x,i.y);if(o){for(let d=0;d<o.length;d+=2)h.addColorStop(o[d],o[d+1]);this.setAttr("strokeStyle",h)}}_stroke(t){const a=t.dash(),i=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!i){this.save();const h=this.getCanvas().getPixelRatio();this.setTransform(h,0,0,h,0,0)}this._applyLineCap(t),a&&t.dashEnabled()&&(this.setLineDash(a),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),t.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),i||this.restore()}}_applyShadow(t){var a,i,o;const h=(a=t.getShadowRGBA())!==null&&a!==void 0?a:"black",d=(i=t.getShadowBlur())!==null&&i!==void 0?i:5,g=(o=t.getShadowOffset())!==null&&o!==void 0?o:{x:0,y:0},p=t.getAbsoluteScale(),b=this.canvas.getPixelRatio(),E=p.x*b,_=p.y*b;this.setAttr("shadowColor",h),this.setAttr("shadowBlur",d*Math.min(Math.abs(E),Math.abs(_))),this.setAttr("shadowOffsetX",g.x*E),this.setAttr("shadowOffsetY",g.y*_)}}class A8 extends W2{constructor(t){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:!0})}_fill(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()}strokeShape(t){t.hasHitStroke()&&this._stroke(t)}_stroke(t){if(t.hasHitStroke()){const a=t.getStrokeScaleEnabled();if(!a){this.save();const h=this.getCanvas().getPixelRatio();this.setTransform(h,0,0,h,0,0)}this._applyLineCap(t);const i=t.hitStrokeWidth(),o=i==="auto"?t.strokeWidth():i;this.setAttr("lineWidth",o),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),a||this.restore()}}}let v2;function z8(){if(v2)return v2;const s=tt.createCanvasElement(),t=s.getContext("2d");return v2=(function(){const a=kt._global.devicePixelRatio||1,i=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return a/i})(),tt.releaseCanvas(s),v2}class Zd{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;const i=(t||{}).pixelRatio||kt.pixelRatio||z8();this.pixelRatio=i,this._canvas=tt.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(t){const a=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/a,this.getHeight()/a)}setWidth(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";const a=this.pixelRatio;this.getContext()._context.scale(a,a)}setHeight(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";const a=this.pixelRatio;this.getContext()._context.scale(a,a)}getWidth(){return this.width}getHeight(){return this.height}setSize(t,a){this.setWidth(t||0),this.setHeight(a||0)}toDataURL(t,a){try{return this._canvas.toDataURL(t,a)}catch{try{return this._canvas.toDataURL()}catch(o){return tt.error("Unable to get data URL. "+o.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}class eu extends Zd{constructor(t={width:0,height:0,willReadFrequently:!1}){super(t),this.context=new M8(this,{willReadFrequently:t.willReadFrequently}),this.setSize(t.width,t.height)}}class Jd extends Zd{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new A8(this),this.setSize(t.width,t.height)}}const ia={get isDragging(){let s=!1;return ia._dragElements.forEach(t=>{t.dragStatus==="dragging"&&(s=!0)}),s},justDragged:!1,get node(){let s;return ia._dragElements.forEach(t=>{s=t.node}),s},_dragElements:new Map,_drag(s){const t=[];ia._dragElements.forEach((a,i)=>{const{node:o}=a,h=o.getStage();h.setPointersPositions(s),a.pointerId===void 0&&(a.pointerId=tt._getFirstPointerId(s));const d=h._changedPointerPositions.find(g=>g.id===a.pointerId);if(d){if(a.dragStatus!=="dragging"){const g=o.dragDistance();if(Math.max(Math.abs(d.x-a.startPointerPos.x),Math.abs(d.y-a.startPointerPos.y))<g||(o.startDrag({evt:s}),!o.isDragging()))return}o._setDragPosition(s,a),t.push(o)}}),t.forEach(a=>{a.fire("dragmove",{type:"dragmove",target:a,evt:s},!0)})},_endDragBefore(s){const t=[];ia._dragElements.forEach(a=>{const{node:i}=a,o=i.getStage();if(s&&o.setPointersPositions(s),!o._changedPointerPositions.find(g=>g.id===a.pointerId))return;(a.dragStatus==="dragging"||a.dragStatus==="stopped")&&(ia.justDragged=!0,kt._mouseListenClick=!1,kt._touchListenClick=!1,kt._pointerListenClick=!1,a.dragStatus="stopped");const d=a.node.getLayer()||a.node instanceof kt.Stage&&a.node;d&&t.indexOf(d)===-1&&t.push(d)}),t.forEach(a=>{a.draw()})},_endDragAfter(s){ia._dragElements.forEach((t,a)=>{t.dragStatus==="stopped"&&t.node.fire("dragend",{type:"dragend",target:t.node,evt:s},!0),t.dragStatus!=="dragging"&&ia._dragElements.delete(a)})}};kt.isBrowser&&(window.addEventListener("mouseup",ia._endDragBefore,!0),window.addEventListener("touchend",ia._endDragBefore,!0),window.addEventListener("touchcancel",ia._endDragBefore,!0),window.addEventListener("mousemove",ia._drag),window.addEventListener("touchmove",ia._drag),window.addEventListener("mouseup",ia._endDragAfter,!1),window.addEventListener("touchend",ia._endDragAfter,!1),window.addEventListener("touchcancel",ia._endDragAfter,!1));function ru(s){return tt._isString(s)?'"'+s+'"':Object.prototype.toString.call(s)==="[object Number]"||tt._isBoolean(s)?s:Object.prototype.toString.call(s)}function C6(s){return s>255?255:s<0?0:Math.round(s)}function Ut(){if(kt.isUnminified)return function(s,t){return tt._isNumber(s)||tt.warn(ru(s)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),s}}function I2(s){if(kt.isUnminified)return function(t,a){let i=tt._isNumber(t),o=tt._isArray(t)&&t.length==s;return!i&&!o&&tt.warn(ru(t)+' is a not valid value for "'+a+'" attribute. The value should be a number or Array<number>('+s+")"),t}}function Fd(){if(kt.isUnminified)return function(s,t){return tt._isNumber(s)||s==="auto"||tt.warn(ru(s)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),s}}function eo(){if(kt.isUnminified)return function(s,t){return tt._isString(s)||tt.warn(ru(s)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),s}}function w6(){if(kt.isUnminified)return function(s,t){const a=tt._isString(s),i=Object.prototype.toString.call(s)==="[object CanvasGradient]"||s&&s.addColorStop;return a||i||tt.warn(ru(s)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),s}}function C8(){if(kt.isUnminified)return function(s,t){const a=Int8Array?Object.getPrototypeOf(Int8Array):null;return a&&s instanceof a||(tt._isArray(s)?s.forEach(function(i){tt._isNumber(i)||tt.warn('"'+t+'" attribute has non numeric element '+i+". Make sure that all elements are numbers.")}):tt.warn(ru(s)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),s}}function xi(){if(kt.isUnminified)return function(s,t){return s===!0||s===!1||tt.warn(ru(s)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),s}}function w8(s){if(kt.isUnminified)return function(t,a){return t==null||tt.isObject(t)||tt.warn(ru(t)+' is a not valid value for "'+a+'" attribute. The value should be an object with properties '+s),t}}const uh="get",oh="set",L={addGetterSetter(s,t,a,i,o){L.addGetter(s,t,a),L.addSetter(s,t,i,o),L.addOverloadedGetterSetter(s,t)},addGetter(s,t,a){const i=uh+tt._capitalize(t);s.prototype[i]=s.prototype[i]||function(){const o=this.attrs[t];return o===void 0?a:o}},addSetter(s,t,a,i){const o=oh+tt._capitalize(t);s.prototype[o]||L.overWriteSetter(s,t,a,i)},overWriteSetter(s,t,a,i){const o=oh+tt._capitalize(t);s.prototype[o]=function(h){return a&&h!==void 0&&h!==null&&(h=a.call(this,h,t)),this._setAttr(t,h),i&&i.call(this),this}},addComponentsGetterSetter(s,t,a,i,o){const h=a.length,d=tt._capitalize,g=uh+d(t),p=oh+d(t);s.prototype[g]=function(){const E={};for(let _=0;_<h;_++){const z=a[_];E[z]=this.getAttr(t+d(z))}return E};const b=w8(a);s.prototype[p]=function(E){const _=this.attrs[t];i&&(E=i.call(this,E,t)),b&&b.call(this,E,t);for(const z in E)E.hasOwnProperty(z)&&this._setAttr(t+d(z),E[z]);return E||a.forEach(z=>{this._setAttr(t+d(z),void 0)}),this._fireChangeEvent(t,_,E),o&&o.call(this),this},L.addOverloadedGetterSetter(s,t)},addOverloadedGetterSetter(s,t){const a=tt._capitalize(t),i=oh+a,o=uh+a;s.prototype[t]=function(){return arguments.length?(this[i](arguments[0]),this):this[o]()}},addDeprecatedGetterSetter(s,t,a,i){tt.error("Adding deprecated "+t);const o=uh+tt._capitalize(t),h=t+" property is deprecated and will be removed soon. Look at Konva change log for more information.";s.prototype[o]=function(){tt.error(h);const d=this.attrs[t];return d===void 0?a:d},L.addSetter(s,t,i,function(){tt.error(h)}),L.addOverloadedGetterSetter(s,t)},backCompat(s,t){tt.each(t,function(a,i){const o=s.prototype[i],h=uh+tt._capitalize(a),d=oh+tt._capitalize(a);function g(){o.apply(this,arguments),tt.error('"'+a+'" method is deprecated and will be removed soon. Use ""'+i+'" instead.')}s.prototype[a]=g,s.prototype[h]=g,s.prototype[d]=g})},afterSetFilter(){this._filterUpToDate=!1}};function D8(s){const t=/(\w+)\(([^)]+)\)/g;let a;for(;(a=t.exec(s))!==null;){const[,i,o]=a;switch(i){case"blur":{const h=parseFloat(o.replace("px",""));return function(d){this.blurRadius(h*.5);const g=kt.Filters;g&&g.Blur&&g.Blur.call(this,d)}}case"brightness":{const h=o.includes("%")?parseFloat(o)/100:parseFloat(o);return function(d){this.brightness(h);const g=kt.Filters;g&&g.Brightness&&g.Brightness.call(this,d)}}case"contrast":{const h=parseFloat(o);return function(d){const g=100*(Math.sqrt(h)-1);this.contrast(g);const p=kt.Filters;p&&p.Contrast&&p.Contrast.call(this,d)}}case"grayscale":return function(h){const d=kt.Filters;d&&d.Grayscale&&d.Grayscale.call(this,h)};case"sepia":return function(h){const d=kt.Filters;d&&d.Sepia&&d.Sepia.call(this,h)};case"invert":return function(h){const d=kt.Filters;d&&d.Invert&&d.Invert.call(this,h)};default:tt.warn(`CSS filter "${i}" is not supported in fallback mode. Consider using function filters for better compatibility.`);break}}return()=>{}}const q2="absoluteOpacity",y2="allEventListeners",Vr="absoluteTransform",b3="absoluteScale",Iu="canvas",N8="Change",R8="children",O8="konva",_d="listening",B8="mouseenter",H8="mouseleave",G8="pointerenter",U8="pointerleave",q8="touchenter",L8="touchleave",S3="set",x3="Shape",L2=" ",T3="stage",$s="transform",k8="Stage",Md="visible",Y8=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(L2);let X8=1;class Gt{constructor(t){this._id=X8++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===$s||t===Vr)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,a){let i=this._cache.get(t);return(i===void 0||(t===$s||t===Vr)&&i.dirty===!0)&&(i=a.call(this),this._cache.set(t,i)),i}_calculate(t,a,i){if(!this._attachedDepsListeners.get(t)){const o=a.map(h=>h+"Change.konva").join(L2);this.on(o,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,i)}_getCanvasCache(){return this._cache.get(Iu)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===Vr&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Iu)){const{scene:t,filter:a,hit:i,buffer:o}=this._cache.get(Iu);tt.releaseCanvas(t,a,i,o),this._cache.delete(Iu)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){const a=t||{};let i={};(a.x===void 0||a.y===void 0||a.width===void 0||a.height===void 0)&&(i=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let o=Math.ceil(a.width||i.width),h=Math.ceil(a.height||i.height),d=a.pixelRatio,g=a.x===void 0?Math.floor(i.x):a.x,p=a.y===void 0?Math.floor(i.y):a.y,b=a.offset||0,E=a.drawBorder||!1,_=a.hitCanvasPixelRatio||1;if(!o||!h){tt.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const z=Math.abs(Math.round(i.x)-g)>.5?1:0,D=Math.abs(Math.round(i.y)-p)>.5?1:0;o+=b*2+z,h+=b*2+D,g-=b,p-=b;const C=new eu({pixelRatio:d,width:o,height:h}),H=new eu({pixelRatio:d,width:0,height:0,willReadFrequently:!0}),U=new Jd({pixelRatio:_,width:o,height:h}),B=C.getContext(),X=U.getContext(),k=new eu({width:C.width/C.pixelRatio+Math.abs(g),height:C.height/C.pixelRatio+Math.abs(p),pixelRatio:C.pixelRatio}),j=k.getContext();return U.isCache=!0,C.isCache=!0,this._cache.delete(Iu),this._filterUpToDate=!1,a.imageSmoothingEnabled===!1&&(C.getContext()._context.imageSmoothingEnabled=!1,H.getContext()._context.imageSmoothingEnabled=!1),B.save(),X.save(),j.save(),B.translate(-g,-p),X.translate(-g,-p),j.translate(-g,-p),k.x=g,k.y=p,this._isUnderCache=!0,this._clearSelfAndDescendantCache(q2),this._clearSelfAndDescendantCache(b3),this.drawScene(C,this,k),this.drawHit(U,this),this._isUnderCache=!1,B.restore(),X.restore(),E&&(B.save(),B.beginPath(),B.rect(0,0,o,h),B.closePath(),B.setAttr("strokeStyle","red"),B.setAttr("lineWidth",5),B.stroke(),B.restore()),this._cache.set(Iu,{scene:C,filter:H,hit:U,buffer:k,x:g,y:p}),this._requestDraw(),this}isCached(){return this._cache.has(Iu)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,a){const i=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}];let o=1/0,h=1/0,d=-1/0,g=-1/0;const p=this.getAbsoluteTransform(a);return i.forEach(function(b){const E=p.point(b);o===void 0&&(o=d=E.x,h=g=E.y),o=Math.min(o,E.x),h=Math.min(h,E.y),d=Math.max(d,E.x),g=Math.max(g,E.y)}),{x:o,y:h,width:d-o,height:g-h}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const a=this._getCanvasCache();t.translate(a.x,a.y);const i=this._getCachedSceneCanvas(),o=i.pixelRatio;t.drawImage(i._canvas,0,0,i.width/o,i.height/o),t.restore()}_drawCachedHitCanvas(t){const a=this._getCanvasCache(),i=a.hit;t.save(),t.translate(a.x,a.y),t.drawImage(i._canvas,0,0,i.width/i.pixelRatio,i.height/i.pixelRatio),t.restore()}_getCachedSceneCanvas(){let t=this.filters(),a=this._getCanvasCache(),i=a.scene,o=a.filter,h=o.getContext(),d,g,p,b;if(!t||t.length===0)return i;if(this._filterUpToDate)return o;let E=!0;for(let z=0;z<t.length;z++)if(typeof t[z]=="string"&&y3(),typeof t[z]!="string"||!y3()){E=!1;break}const _=i.pixelRatio;if(o.setSize(i.width/i.pixelRatio,i.height/i.pixelRatio),E){const z=t.join(" ");return h.save(),h.setAttr("filter",z),h.drawImage(i._canvas,0,0,i.getWidth()/_,i.getHeight()/_),h.restore(),this._filterUpToDate=!0,o}try{for(d=t.length,h.clear(),h.drawImage(i._canvas,0,0,i.getWidth()/_,i.getHeight()/_),g=h.getImageData(0,0,o.getWidth(),o.getHeight()),p=0;p<d;p++)b=t[p],typeof b=="string"&&(b=D8(b)),b.call(this,g),h.putImageData(g,0,0)}catch(z){tt.error("Unable to apply filter. "+z.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}return this._filterUpToDate=!0,o}on(t,a){if(this._cache&&this._cache.delete(y2),arguments.length===3)return this._delegate.apply(this,arguments);const i=t.split(L2);for(let o=0;o<i.length;o++){const d=i[o].split("."),g=d[0],p=d[1]||"";this.eventListeners[g]||(this.eventListeners[g]=[]),this.eventListeners[g].push({name:p,handler:a})}return this}off(t,a){let i=(t||"").split(L2),o=i.length,h,d,g,p,b,E;if(this._cache&&this._cache.delete(y2),!t)for(d in this.eventListeners)this._off(d);for(h=0;h<o;h++)if(g=i[h],p=g.split("."),b=p[0],E=p[1],b)this.eventListeners[b]&&this._off(b,E,a);else for(d in this.eventListeners)this._off(d,E,a);return this}dispatchEvent(t){const a={target:this,type:t.type,evt:t};return this.fire(t.type,a),this}addEventListener(t,a){return this.on(t,function(i){a.call(this,i.evt)}),this}removeEventListener(t){return this.off(t),this}_delegate(t,a,i){const o=this;this.on(t,function(h){const d=h.target.findAncestors(a,!0,o);for(let g=0;g<d.length;g++)h=tt.cloneObject(h),h.currentTarget=d[g],i.call(d[g],h)})}remove(){return this.isDragging()&&this.stopDrag(),ia._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(Vr),this._clearSelfAndDescendantCache(q2),this._clearSelfAndDescendantCache(b3),this._clearSelfAndDescendantCache(T3),this._clearSelfAndDescendantCache(Md),this._clearSelfAndDescendantCache(_d)}_remove(){this._clearCaches();const t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(t){const a="get"+tt._capitalize(t);return tt._isFunction(this[a])?this[a]():this.attrs[t]}getAncestors(){let t=this.getParent(),a=[];for(;t;)a.push(t),t=t.getParent();return a}getAttrs(){return this.attrs||{}}setAttrs(t){return this._batchTransformChanges(()=>{let a,i;if(!t)return this;for(a in t)a!==R8&&(i=S3+tt._capitalize(a),tt._isFunction(this[i])?this[i](t[a]):this._setAttr(a,t[a]))}),this}isListening(){return this._getCache(_d,this._isListening)}_isListening(t){if(!this.listening())return!1;const i=this.getParent();return i&&i!==t&&this!==t?i._isListening(t):!0}isVisible(){return this._getCache(Md,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const i=this.getParent();return i&&i!==t&&this!==t?i._isVisible(t):!0}shouldDrawHit(t,a=!1){if(t)return this._isVisible(t)&&this._isListening(t);const i=this.getLayer();let o=!1;ia._dragElements.forEach(d=>{d.dragStatus==="dragging"&&(d.node.nodeType==="Stage"||d.node.getLayer()===i)&&(o=!0)});const h=!a&&!kt.hitOnDragEnabled&&(o||kt.isTransforming());return this.isListening()&&this.isVisible()&&!h}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let t=this.getDepth(),a=this,i=0,o,h,d,g;function p(E){for(o=[],h=E.length,d=0;d<h;d++)g=E[d],i++,g.nodeType!==x3&&(o=o.concat(g.getChildren().slice())),g._id===a._id&&(d=h);o.length>0&&o[0].getDepth()<=t&&p(o)}const b=this.getStage();return a.nodeType!==k8&&b&&p(b.getChildren()),i}getDepth(){let t=0,a=this.parent;for(;a;)t++,a=a.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache($s),this._clearSelfAndDescendantCache(Vr)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;const a=t.getPointerPosition();if(!a)return null;const i=this.getAbsoluteTransform().copy();return i.invert(),i.point(a)}getAbsolutePosition(t){let a=!1,i=this.parent;for(;i;){if(i.isCached()){a=!0;break}i=i.parent}a&&!t&&(t=!0);const o=this.getAbsoluteTransform(t).getMatrix(),h=new sl,d=this.offset();return h.m=o.slice(),h.translate(d.x,d.y),h.getTranslation()}setAbsolutePosition(t){const{x:a,y:i,...o}=this._clearTransform();this.attrs.x=a,this.attrs.y=i,this._clearCache($s);const h=this._getAbsoluteTransform().copy();return h.invert(),h.translate(t.x,t.y),t={x:this.attrs.x+h.getTranslation().x,y:this.attrs.y+h.getTranslation().y},this._setTransform(o),this.setPosition({x:t.x,y:t.y}),this._clearCache($s),this._clearSelfAndDescendantCache(Vr),this}_setTransform(t){let a;for(a in t)this.attrs[a]=t[a]}_clearTransform(){const t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){let a=t.x,i=t.y,o=this.x(),h=this.y();return a!==void 0&&(o+=a),i!==void 0&&(h+=i),this.setPosition({x:o,y:h}),this}_eachAncestorReverse(t,a){let i=[],o=this.getParent(),h,d;if(!(a&&a._id===this._id)){for(i.unshift(this);o&&(!a||o._id!==a._id);)i.unshift(o),o=o.parent;for(h=i.length,d=0;d<h;d++)t(i[d])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return tt.warn("Node has no parent. moveToTop function is ignored."),!1;const t=this.index,a=this.parent.getChildren().length;return t<a-1?(this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return tt.warn("Node has no parent. moveUp function is ignored."),!1;const t=this.index,a=this.parent.getChildren().length;return t<a-1?(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return tt.warn("Node has no parent. moveDown function is ignored."),!1;const t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return tt.warn("Node has no parent. moveToBottom function is ignored."),!1;const t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return tt.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&tt.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const a=this.index;return this.parent.children.splice(a,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(q2,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let t=this.opacity();const a=this.getParent();return a&&!a._isUnderCache&&(t*=a.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){let t=this.getAttrs(),a,i,o,h,d;const g={attrs:{},className:this.getClassName()};for(a in t)i=t[a],d=tt.isObject(i)&&!tt._isPlainObject(i)&&!tt._isArray(i),!d&&(o=typeof this[a]=="function"&&this[a],delete t[a],h=o?o.call(this):null,t[a]=i,h!==i&&(g.attrs[a]=i));return tt._prepareToStringify(g)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,a,i){const o=[];a&&this._isMatch(t)&&o.push(this);let h=this.parent;for(;h;){if(h===i)return o;h._isMatch(t)&&o.push(h),h=h.parent}return o}isAncestorOf(t){return!1}findAncestor(t,a,i){return this.findAncestors(t,a,i)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);let a=t.replace(/ /g,"").split(","),i=a.length,o,h;for(o=0;o<i;o++)if(h=a[o],tt.isValidSelector(h)||(tt.warn('Selector "'+h+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),tt.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),tt.warn("Konva is awesome, right?")),h.charAt(0)==="#"){if(this.id()===h.slice(1))return!0}else if(h.charAt(0)==="."){if(this.hasName(h.slice(1)))return!0}else if(this.className===h||this.nodeType===h)return!0;return!1}getLayer(){const t=this.getParent();return t?t.getLayer():null}getStage(){return this._getCache(T3,this._getStage)}_getStage(){const t=this.getParent();return t?t.getStage():null}fire(t,a={},i){return a.target=a.target||this,i?this._fireAndBubble(t,a):this._fire(t,a),this}getAbsoluteTransform(t){return t?this._getAbsoluteTransform(t):this._getCache(Vr,this._getAbsoluteTransform)}_getAbsoluteTransform(t){let a;if(t)return a=new sl,this._eachAncestorReverse(function(i){const o=i.transformsEnabled();o==="all"?a.multiply(i.getTransform()):o==="position"&&a.translate(i.x()-i.offsetX(),i.y()-i.offsetY())},t),a;{a=this._cache.get(Vr)||new sl,this.parent?this.parent.getAbsoluteTransform().copyInto(a):a.reset();const i=this.transformsEnabled();if(i==="all")a.multiply(this.getTransform());else if(i==="position"){const o=this.attrs.x||0,h=this.attrs.y||0,d=this.attrs.offsetX||0,g=this.attrs.offsetY||0;a.translate(o-d,h-g)}return a.dirty=!1,a}}getAbsoluteScale(t){let a=this;for(;a;)a._isUnderCache&&(t=a),a=a.getParent();const o=this.getAbsoluteTransform(t).decompose();return{x:o.scaleX,y:o.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache($s,this._getTransform)}_getTransform(){var t,a;const i=this._cache.get($s)||new sl;i.reset();const o=this.x(),h=this.y(),d=kt.getAngle(this.rotation()),g=(t=this.attrs.scaleX)!==null&&t!==void 0?t:1,p=(a=this.attrs.scaleY)!==null&&a!==void 0?a:1,b=this.attrs.skewX||0,E=this.attrs.skewY||0,_=this.attrs.offsetX||0,z=this.attrs.offsetY||0;return(o!==0||h!==0)&&i.translate(o,h),d!==0&&i.rotate(d),(b!==0||E!==0)&&i.skew(b,E),(g!==1||p!==1)&&i.scale(g,p),(_!==0||z!==0)&&i.translate(-1*_,-1*z),i.dirty=!1,i}clone(t){let a=tt.cloneObject(this.attrs),i,o,h,d,g;for(i in t)a[i]=t[i];const p=new this.constructor(a);for(i in this.eventListeners)for(o=this.eventListeners[i],h=o.length,d=0;d<h;d++)g=o[d],g.name.indexOf(O8)<0&&(p.eventListeners[i]||(p.eventListeners[i]=[]),p.eventListeners[i].push(g));return p}_toKonvaCanvas(t){t=t||{};const a=this.getClientRect(),i=this.getStage(),o=t.x!==void 0?t.x:Math.floor(a.x),h=t.y!==void 0?t.y:Math.floor(a.y),d=t.pixelRatio||1,g=new eu({width:t.width||Math.ceil(a.width)||(i?i.width():0),height:t.height||Math.ceil(a.height)||(i?i.height():0),pixelRatio:d}),p=g.getContext(),b=new eu({width:g.width/g.pixelRatio+Math.abs(o),height:g.height/g.pixelRatio+Math.abs(h),pixelRatio:g.pixelRatio});return t.imageSmoothingEnabled===!1&&(p._context.imageSmoothingEnabled=!1),p.save(),(o||h)&&p.translate(-1*o,-1*h),this.drawScene(g,void 0,b),p.restore(),g}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){t=t||{};const a=t.mimeType||null,i=t.quality||null,o=this._toKonvaCanvas(t).toDataURL(a,i);return t.callback&&t.callback(o),o}toImage(t){return new Promise((a,i)=>{try{const o=t?.callback;o&&delete t.callback,tt._urlToImage(this.toDataURL(t),function(h){a(h),o?.(h)})}catch(o){i(o)}})}toBlob(t){return new Promise((a,i)=>{try{const o=t?.callback;o&&delete t.callback,this.toCanvas(t).toBlob(h=>{a(h),o?.(h)},t?.mimeType,t?.quality)}catch(o){i(o)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():kt.dragDistance}_off(t,a,i){let o=this.eventListeners[t],h,d,g;for(h=0;h<o.length;h++)if(d=o[h].name,g=o[h].handler,(d!=="konva"||a==="konva")&&(!a||d===a)&&(!i||i===g)){if(o.splice(h,1),o.length===0){delete this.eventListeners[t];break}h--}}_fireChangeEvent(t,a,i){this._fire(t+N8,{oldVal:a,newVal:i})}addName(t){if(!this.hasName(t)){const a=this.name(),i=a?a+" "+t:t;this.name(i)}return this}hasName(t){if(!t)return!1;const a=this.name();return a?(a||"").split(/\s/g).indexOf(t)!==-1:!1}removeName(t){const a=(this.name()||"").split(/\s/g),i=a.indexOf(t);return i!==-1&&(a.splice(i,1),this.name(a.join(" "))),this}setAttr(t,a){const i=this[S3+tt._capitalize(t)];return tt._isFunction(i)?i.call(this,a):this._setAttr(t,a),this}_requestDraw(){if(kt.autoDrawEnabled){const t=this.getLayer()||this.getStage();t?.batchDraw()}}_setAttr(t,a){const i=this.attrs[t];i===a&&!tt.isObject(a)||(a==null?delete this.attrs[t]:this.attrs[t]=a,this._shouldFireChangeEvents&&this._fireChangeEvent(t,i,a),this._requestDraw())}_setComponentAttr(t,a,i){let o;i!==void 0&&(o=this.attrs[t],o||(this.attrs[t]=this.getAttr(t)),this.attrs[t][a]=i,this._fireChangeEvent(t,o,i))}_fireAndBubble(t,a,i){a&&this.nodeType===x3&&(a.target=this);const o=[B8,H8,G8,U8,q8,L8];if(!(o.indexOf(t)!==-1&&(i&&(this===i||this.isAncestorOf&&this.isAncestorOf(i))||this.nodeType==="Stage"&&!i))){this._fire(t,a);const d=o.indexOf(t)!==-1&&i&&i.isAncestorOf&&i.isAncestorOf(this)&&!i.isAncestorOf(this.parent);(a&&!a.cancelBubble||!a)&&this.parent&&this.parent.isListening()&&!d&&(i&&i.parent?this._fireAndBubble.call(this.parent,t,a,i):this._fireAndBubble.call(this.parent,t,a))}}_getProtoListeners(t){var a,i,o;const h=(a=this._cache.get(y2))!==null&&a!==void 0?a:{};let d=h?.[t];if(d===void 0){d=[];let g=Object.getPrototypeOf(this);for(;g;){const p=(o=(i=g.eventListeners)===null||i===void 0?void 0:i[t])!==null&&o!==void 0?o:[];d.push(...p),g=Object.getPrototypeOf(g)}h[t]=d,this._cache.set(y2,h)}return d}_fire(t,a){a=a||{},a.currentTarget=this,a.type=t;const i=this._getProtoListeners(t);if(i)for(let h=0;h<i.length;h++)i[h].handler.call(this,a);const o=this.eventListeners[t];if(o)for(let h=0;h<o.length;h++)o[h].handler.call(this,a)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(t){const a=t?t.pointerId:void 0,i=this.getStage(),o=this.getAbsolutePosition();if(!i)return;const h=i._getPointerById(a)||i._changedPointerPositions[0]||o;ia._dragElements.set(this._id,{node:this,startPointerPos:h,offset:{x:h.x-o.x,y:h.y-o.y},dragStatus:"ready",pointerId:a})}startDrag(t,a=!0){ia._dragElements.has(this._id)||this._createDragElement(t);const i=ia._dragElements.get(this._id);i.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},a)}_setDragPosition(t,a){const i=this.getStage()._getPointerById(a.pointerId);if(!i)return;let o={x:i.x-a.offset.x,y:i.y-a.offset.y};const h=this.dragBoundFunc();if(h!==void 0){const d=h.call(this,o,t);d?o=d:tt.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==o.x||this._lastPos.y!==o.y)&&(this.setAbsolutePosition(o),this._requestDraw()),this._lastPos=o}stopDrag(t){const a=ia._dragElements.get(this._id);a&&(a.dragStatus="stopped"),ia._endDragBefore(t),ia._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=ia._dragElements.get(this._id);return t?t.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(t){if(!(!(t.evt.button!==void 0)||kt.dragButtons.indexOf(t.evt.button)>=0)||this.isDragging())return;let o=!1;ia._dragElements.forEach(h=>{this.isAncestorOf(h.node)&&(o=!0)}),o||this._createDragElement(t)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const a=ia._dragElements.get(this._id),i=a&&a.dragStatus==="dragging",o=a&&a.dragStatus==="ready";i?this.stopDrag():o&&ia._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const a=this.getStage();if(!a)return!1;const i={x:-t.x,y:-t.y,width:a.width()+2*t.x,height:a.height()+2*t.y};return tt.haveIntersection(i,this.getClientRect())}static create(t,a){return tt._isString(t)&&(t=JSON.parse(t)),this._createNode(t,a)}static _createNode(t,a){let i=Gt.prototype.getClassName.call(t),o=t.children,h,d,g;a&&(t.attrs.container=a),kt[i]||(tt.warn('Can not find a node with class name "'+i+'". Fallback to "Shape".'),i="Shape");const p=kt[i];if(h=new p(t.attrs),o)for(d=o.length,g=0;g<d;g++)h.add(Gt._createNode(o[g]));return h}}Gt.prototype.nodeType="Node";Gt.prototype._attrsAffectingSize=[];Gt.prototype.eventListeners={};Gt.prototype.on.call(Gt.prototype,Y8,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache($s),this._clearSelfAndDescendantCache(Vr)});Gt.prototype.on.call(Gt.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(Md)});Gt.prototype.on.call(Gt.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(_d)});Gt.prototype.on.call(Gt.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(q2)});const Sa=L.addGetterSetter;Sa(Gt,"zIndex");Sa(Gt,"absolutePosition");Sa(Gt,"position");Sa(Gt,"x",0,Ut());Sa(Gt,"y",0,Ut());Sa(Gt,"globalCompositeOperation","source-over",eo());Sa(Gt,"opacity",1,Ut());Sa(Gt,"name","",eo());Sa(Gt,"id","",eo());Sa(Gt,"rotation",0,Ut());L.addComponentsGetterSetter(Gt,"scale",["x","y"]);Sa(Gt,"scaleX",1,Ut());Sa(Gt,"scaleY",1,Ut());L.addComponentsGetterSetter(Gt,"skew",["x","y"]);Sa(Gt,"skewX",0,Ut());Sa(Gt,"skewY",0,Ut());L.addComponentsGetterSetter(Gt,"offset",["x","y"]);Sa(Gt,"offsetX",0,Ut());Sa(Gt,"offsetY",0,Ut());Sa(Gt,"dragDistance",void 0,Ut());Sa(Gt,"width",0,Ut());Sa(Gt,"height",0,Ut());Sa(Gt,"listening",!0,xi());Sa(Gt,"preventDefault",!0,xi());Sa(Gt,"filters",void 0,function(s){return this._filterUpToDate=!1,s});Sa(Gt,"visible",!0,xi());Sa(Gt,"transformsEnabled","all",eo());Sa(Gt,"size");Sa(Gt,"dragBoundFunc");Sa(Gt,"draggable",!1,xi());L.backCompat(Gt,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});class ol extends Gt{constructor(){super(...arguments),this.children=[]}getChildren(t){const a=this.children||[];return t?a.filter(t):a}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(let i=0;i<t.length;i++)this.add(t[i]);return this}const a=t[0];return a.getParent()?(a.moveTo(this),this):(this._validateAdd(a),a.index=this.getChildren().length,a.parent=this,a._clearCaches(),this.getChildren().push(a),this._fire("add",{child:a}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(t){return this._generalFind(t,!1)}findOne(t){const a=this._generalFind(t,!0);return a.length>0?a[0]:void 0}_generalFind(t,a){const i=[];return this._descendants(o=>{const h=o._isMatch(t);return h&&i.push(o),!!(h&&a)}),i}_descendants(t){let a=!1;const i=this.getChildren();for(const o of i){if(a=t(o),a)return!0;if(o.hasChildren()&&(a=o._descendants(t),a))return!0}return!1}toObject(){const t=Gt.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(a=>{t.children.push(a.toObject())}),t}isAncestorOf(t){let a=t.getParent();for(;a;){if(a._id===this._id)return!0;a=a.getParent()}return!1}clone(t){const a=Gt.prototype.clone.call(this,t);return this.getChildren().forEach(function(i){a.add(i.clone())}),a}getAllIntersections(t){const a=[];return this.find("Shape").forEach(i=>{i.isVisible()&&i.intersects(t)&&a.push(i)}),a}_clearSelfAndDescendantCache(t){var a;super._clearSelfAndDescendantCache(t),!this.isCached()&&((a=this.children)===null||a===void 0||a.forEach(function(i){i._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(a,i){a.index=i}),this._requestDraw()}drawScene(t,a,i){const o=this.getLayer(),h=t||o&&o.getCanvas(),d=h&&h.getContext(),g=this._getCanvasCache(),p=g&&g.scene,b=h&&h.isCache;if(!this.isVisible()&&!b)return this;if(p){d.save();const E=this.getAbsoluteTransform(a).getMatrix();d.transform(E[0],E[1],E[2],E[3],E[4],E[5]),this._drawCachedSceneCanvas(d),d.restore()}else this._drawChildren("drawScene",h,a,i);return this}drawHit(t,a){if(!this.shouldDrawHit(a))return this;const i=this.getLayer(),o=t||i&&i.hitCanvas,h=o&&o.getContext(),d=this._getCanvasCache();if(d&&d.hit){h.save();const p=this.getAbsoluteTransform(a).getMatrix();h.transform(p[0],p[1],p[2],p[3],p[4],p[5]),this._drawCachedHitCanvas(h),h.restore()}else this._drawChildren("drawHit",o,a);return this}_drawChildren(t,a,i,o){var h;const d=a&&a.getContext(),g=this.clipWidth(),p=this.clipHeight(),b=this.clipFunc(),E=typeof g=="number"&&typeof p=="number"||b,_=i===this;if(E){d.save();const D=this.getAbsoluteTransform(i);let C=D.getMatrix();d.transform(C[0],C[1],C[2],C[3],C[4],C[5]),d.beginPath();let H;if(b)H=b.call(this,d,this);else{const U=this.clipX(),B=this.clipY();d.rect(U||0,B||0,g,p)}d.clip.apply(d,H),C=D.copy().invert().getMatrix(),d.transform(C[0],C[1],C[2],C[3],C[4],C[5])}const z=!_&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";z&&(d.save(),d._applyGlobalCompositeOperation(this)),(h=this.children)===null||h===void 0||h.forEach(function(D){D[t](a,i,o)}),z&&d.restore(),E&&d.restore()}getClientRect(t={}){var a;const i=t.skipTransform,o=t.relativeTo;let h,d,g,p,b={x:1/0,y:1/0,width:0,height:0};const E=this;(a=this.children)===null||a===void 0||a.forEach(function(D){if(!D.visible())return;const C=D.getClientRect({relativeTo:E,skipShadow:t.skipShadow,skipStroke:t.skipStroke});C.width===0&&C.height===0||(h===void 0?(h=C.x,d=C.y,g=C.x+C.width,p=C.y+C.height):(h=Math.min(h,C.x),d=Math.min(d,C.y),g=Math.max(g,C.x+C.width),p=Math.max(p,C.y+C.height)))});const _=this.find("Shape");let z=!1;for(let D=0;D<_.length;D++)if(_[D]._isVisible(this)){z=!0;break}return z&&h!==void 0?b={x:h,y:d,width:g-h,height:p-d}:b={x:0,y:0,width:0,height:0},i?b:this._transformedRect(b,o)}}L.addComponentsGetterSetter(ol,"clip",["x","y","width","height"]);L.addGetterSetter(ol,"clipX",void 0,Ut());L.addGetterSetter(ol,"clipY",void 0,Ut());L.addGetterSetter(ol,"clipWidth",void 0,Ut());L.addGetterSetter(ol,"clipHeight",void 0,Ut());L.addGetterSetter(ol,"clipFunc");const Eh=new Map,D6=kt._global.PointerEvent!==void 0;function F4(s){return Eh.get(s)}function Wd(s){return{evt:s,pointerId:s.pointerId}}function N6(s,t){return Eh.get(s)===t}function R6(s,t){yh(s),t.getStage()&&(Eh.set(s,t),D6&&t._fire("gotpointercapture",Wd(new PointerEvent("gotpointercapture"))))}function yh(s,t){const a=Eh.get(s);if(!a)return;const i=a.getStage();i&&i.content,Eh.delete(s),D6&&a._fire("lostpointercapture",Wd(new PointerEvent("lostpointercapture")))}const j8="Stage",V8="string",E3="px",Q8="mouseout",O6="mouseleave",B6="mouseover",H6="mouseenter",G6="mousemove",U6="mousedown",q6="mouseup",fh="pointermove",dh="pointerdown",Tc="pointerup",mh="pointercancel",K8="lostpointercapture",b2="pointerout",gh="pointerleave",S2="pointerover",x2="pointerenter",Ad="contextmenu",L6="touchstart",k6="touchend",Y6="touchmove",X6="touchcancel",zd="wheel",Z8=5,J8=[[H6,"_pointerenter"],[U6,"_pointerdown"],[G6,"_pointermove"],[q6,"_pointerup"],[O6,"_pointerleave"],[L6,"_pointerdown"],[Y6,"_pointermove"],[k6,"_pointerup"],[X6,"_pointercancel"],[B6,"_pointerover"],[zd,"_wheel"],[Ad,"_contextmenu"],[dh,"_pointerdown"],[fh,"_pointermove"],[Tc,"_pointerup"],[mh,"_pointercancel"],[gh,"_pointerleave"],[K8,"_lostpointercapture"]],W4={mouse:{[b2]:Q8,[gh]:O6,[S2]:B6,[x2]:H6,[fh]:G6,[dh]:U6,[Tc]:q6,[mh]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[b2]:"touchout",[gh]:"touchleave",[S2]:"touchover",[x2]:"touchenter",[fh]:Y6,[dh]:L6,[Tc]:k6,[mh]:X6,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[b2]:b2,[gh]:gh,[S2]:S2,[x2]:x2,[fh]:fh,[dh]:dh,[Tc]:Tc,[mh]:mh,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},ph=s=>s.indexOf("pointer")>=0?"pointer":s.indexOf("touch")>=0?"touch":"mouse",bc=s=>{const t=ph(s);if(t==="pointer")return kt.pointerEventsEnabled&&W4.pointer;if(t==="touch")return W4.touch;if(t==="mouse")return W4.mouse};function _3(s={}){return(s.clipFunc||s.clipWidth||s.clipHeight)&&tt.warn("Stage does not support clipping. Please use clip for Layers or Groups."),s}const F8="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);",bh=[];let P2=class extends ol{constructor(t){super(_3(t)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),bh.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{_3(this.attrs)}),this._checkVisibility()}_validateAdd(t){const a=t.getType()==="Layer",i=t.getType()==="FastLayer";a||i||tt.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const t=this.visible()?"":"none";this.content.style.display=t}setContainer(t){if(typeof t===V8){let a;if(t.charAt(0)==="."){const i=t.slice(1);t=document.getElementsByClassName(i)[0]}else t.charAt(0)!=="#"?a=t:a=t.slice(1),t=document.getElementById(a);if(!t)throw"Can not find container in document with id "+a}return this._setAttr("container",t),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),t.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const t=this.children,a=t.length;for(let i=0;i<a;i++)t[i].clear();return this}clone(t){return t||(t={}),t.container=typeof document<"u"&&document.createElement("div"),ol.prototype.clone.call(this,t)}destroy(){super.destroy();const t=this.content;t&&tt._isInDocument(t)&&this.container().removeChild(t);const a=bh.indexOf(this);return a>-1&&bh.splice(a,1),tt.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const t=this._pointerPositions[0]||this._changedPointerPositions[0];return t?{x:t.x,y:t.y}:(tt.warn(F8),null)}_getPointerById(t){return this._pointerPositions.find(a=>a.id===t)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(t){t={...t},t.x=t.x||0,t.y=t.y||0,t.width=t.width||this.width(),t.height=t.height||this.height();const a=new eu({width:t.width,height:t.height,pixelRatio:t.pixelRatio||1}),i=a.getContext()._context,o=this.children;return(t.x||t.y)&&i.translate(-1*t.x,-1*t.y),o.forEach(function(h){if(!h.isVisible())return;const d=h._toKonvaCanvas(t);i.drawImage(d._canvas,t.x,t.y,d.getWidth()/d.getPixelRatio(),d.getHeight()/d.getPixelRatio())}),a}getIntersection(t){if(!t)return null;const a=this.children,i=a.length,o=i-1;for(let h=o;h>=0;h--){const d=a[h].getIntersection(t);if(d)return d}return null}_resizeDOM(){const t=this.width(),a=this.height();this.content&&(this.content.style.width=t+E3,this.content.style.height=a+E3),this.bufferCanvas.setSize(t,a),this.bufferHitCanvas.setSize(t,a),this.children.forEach(i=>{i.setSize({width:t,height:a}),i.draw()})}add(t,...a){if(arguments.length>1){for(let o=0;o<arguments.length;o++)this.add(arguments[o]);return this}super.add(t);const i=this.children.length;return i>Z8&&tt.warn("The stage has "+i+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),t.setSize({width:this.width(),height:this.height()}),t.draw(),kt.isBrowser&&this.content.appendChild(t.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(t){return N6(t,this)}setPointerCapture(t){R6(t,this)}releaseCapture(t){yh(t)}getLayers(){return this.children}_bindContentEvents(){kt.isBrowser&&J8.forEach(([t,a])=>{this.content.addEventListener(t,i=>{this[a](i)},{passive:!1})})}_pointerenter(t){this.setPointersPositions(t);const a=bc(t.type);a&&this._fire(a.pointerenter,{evt:t,target:this,currentTarget:this})}_pointerover(t){this.setPointersPositions(t);const a=bc(t.type);a&&this._fire(a.pointerover,{evt:t,target:this,currentTarget:this})}_getTargetShape(t){let a=this[t+"targetShape"];return a&&!a.getStage()&&(a=null),a}_pointerleave(t){const a=bc(t.type),i=ph(t.type);if(!a)return;this.setPointersPositions(t);const o=this._getTargetShape(i),h=!(kt.isDragging()||kt.isTransforming())||kt.hitOnDragEnabled;o&&h?(o._fireAndBubble(a.pointerout,{evt:t}),o._fireAndBubble(a.pointerleave,{evt:t}),this._fire(a.pointerleave,{evt:t,target:this,currentTarget:this}),this[i+"targetShape"]=null):h&&(this._fire(a.pointerleave,{evt:t,target:this,currentTarget:this}),this._fire(a.pointerout,{evt:t,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(t){const a=bc(t.type),i=ph(t.type);if(!a)return;this.setPointersPositions(t);let o=!1;this._changedPointerPositions.forEach(h=>{const d=this.getIntersection(h);if(ia.justDragged=!1,kt["_"+i+"ListenClick"]=!0,!d||!d.isListening()){this[i+"ClickStartShape"]=void 0;return}kt.capturePointerEventsEnabled&&d.setPointerCapture(h.id),this[i+"ClickStartShape"]=d,d._fireAndBubble(a.pointerdown,{evt:t,pointerId:h.id}),o=!0;const g=t.type.indexOf("touch")>=0;d.preventDefault()&&t.cancelable&&g&&t.preventDefault()}),o||this._fire(a.pointerdown,{evt:t,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(t){const a=bc(t.type),i=ph(t.type);if(!a)return;const o=t.type.indexOf("touch")>=0||t.pointerType==="touch";if(kt.isDragging()&&ia.node.preventDefault()&&t.cancelable&&o&&t.preventDefault(),this.setPointersPositions(t),!(!(kt.isDragging()||kt.isTransforming())||kt.hitOnDragEnabled))return;const d={};let g=!1;const p=this._getTargetShape(i);this._changedPointerPositions.forEach(b=>{const E=F4(b.id)||this.getIntersection(b),_=b.id,z={evt:t,pointerId:_},D=p!==E;if(D&&p&&(p._fireAndBubble(a.pointerout,{...z},E),p._fireAndBubble(a.pointerleave,{...z},E)),E){if(d[E._id])return;d[E._id]=!0}E&&E.isListening()?(g=!0,D&&(E._fireAndBubble(a.pointerover,{...z},p),E._fireAndBubble(a.pointerenter,{...z},p),this[i+"targetShape"]=E),E._fireAndBubble(a.pointermove,{...z})):p&&(this._fire(a.pointerover,{evt:t,target:this,currentTarget:this,pointerId:_}),this[i+"targetShape"]=null)}),g||this._fire(a.pointermove,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(t){const a=bc(t.type),i=ph(t.type);if(!a)return;this.setPointersPositions(t);const o=this[i+"ClickStartShape"],h=this[i+"ClickEndShape"],d={};let g=!1;this._changedPointerPositions.forEach(p=>{const b=F4(p.id)||this.getIntersection(p);if(b){if(b.releaseCapture(p.id),d[b._id])return;d[b._id]=!0}const E=p.id,_={evt:t,pointerId:E};let z=!1;kt["_"+i+"InDblClickWindow"]?(z=!0,clearTimeout(this[i+"DblTimeout"])):ia.justDragged||(kt["_"+i+"InDblClickWindow"]=!0,clearTimeout(this[i+"DblTimeout"])),this[i+"DblTimeout"]=setTimeout(function(){kt["_"+i+"InDblClickWindow"]=!1},kt.dblClickWindow),b&&b.isListening()?(g=!0,this[i+"ClickEndShape"]=b,b._fireAndBubble(a.pointerup,{..._}),kt["_"+i+"ListenClick"]&&o&&o===b&&(b._fireAndBubble(a.pointerclick,{..._}),z&&h&&h===b&&b._fireAndBubble(a.pointerdblclick,{..._}))):(this[i+"ClickEndShape"]=null,g||(this._fire(a.pointerup,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),g=!0),kt["_"+i+"ListenClick"]&&this._fire(a.pointerclick,{evt:t,target:this,currentTarget:this,pointerId:E}),z&&this._fire(a.pointerdblclick,{evt:t,target:this,currentTarget:this,pointerId:E}))}),g||this._fire(a.pointerup,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),kt["_"+i+"ListenClick"]=!1,t.cancelable&&i!=="touch"&&i!=="pointer"&&t.preventDefault()}_contextmenu(t){this.setPointersPositions(t);const a=this.getIntersection(this.getPointerPosition());a&&a.isListening()?a._fireAndBubble(Ad,{evt:t}):this._fire(Ad,{evt:t,target:this,currentTarget:this})}_wheel(t){this.setPointersPositions(t);const a=this.getIntersection(this.getPointerPosition());a&&a.isListening()?a._fireAndBubble(zd,{evt:t}):this._fire(zd,{evt:t,target:this,currentTarget:this})}_pointercancel(t){this.setPointersPositions(t);const a=F4(t.pointerId)||this.getIntersection(this.getPointerPosition());a&&a._fireAndBubble(Tc,Wd(t)),yh(t.pointerId)}_lostpointercapture(t){yh(t.pointerId)}setPointersPositions(t){const a=this._getContentPosition();let i=null,o=null;t=t||window.event,t.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(t.touches,h=>{this._pointerPositions.push({id:h.identifier,x:(h.clientX-a.left)/a.scaleX,y:(h.clientY-a.top)/a.scaleY})}),Array.prototype.forEach.call(t.changedTouches||t.touches,h=>{this._changedPointerPositions.push({id:h.identifier,x:(h.clientX-a.left)/a.scaleX,y:(h.clientY-a.top)/a.scaleY})})):(i=(t.clientX-a.left)/a.scaleX,o=(t.clientY-a.top)/a.scaleY,this.pointerPos={x:i,y:o},this._pointerPositions=[{x:i,y:o,id:tt._getFirstPointerId(t)}],this._changedPointerPositions=[{x:i,y:o,id:tt._getFirstPointerId(t)}])}_setPointerPosition(t){tt.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(t)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const t=this.content.getBoundingClientRect();return{top:t.top,left:t.left,scaleX:t.width/this.content.clientWidth||1,scaleY:t.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new eu({width:this.width(),height:this.height()}),this.bufferHitCanvas=new Jd({pixelRatio:1,width:this.width(),height:this.height()}),!kt.isBrowser)return;const t=this.container();if(!t)throw"Stage has no container. A container is required.";t.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}cache(){return tt.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(t){t.batchDraw()}),this}};P2.prototype.nodeType=j8;$a(P2);L.addGetterSetter(P2,"container");kt.isBrowser&&document.addEventListener("visibilitychange",()=>{bh.forEach(s=>{s.batchDraw()})});const j6="hasShadow",V6="shadowRGBA",Q6="patternImage",K6="linearGradient",Z6="radialGradient";let T2;function I4(){return T2||(T2=tt.createCanvasElement().getContext("2d"),T2)}const Sh={};function W8(s){const t=this.attrs.fillRule;t?s.fill(t):s.fill()}function I8(s){s.stroke()}function P8(s){const t=this.attrs.fillRule;t?s.fill(t):s.fill()}function $8(s){s.stroke()}function t9(){this._clearCache(j6)}function e9(){this._clearCache(V6)}function a9(){this._clearCache(Q6)}function n9(){this._clearCache(K6)}function l9(){this._clearCache(Z6)}class Ct extends Gt{constructor(t){super(t);let a,i=0;for(;a=tt.getHitColor(),!(a&&!(a in Sh));)if(i++,i>=1e4){tt.warn("Failed to find a unique color key for a shape. Konva may work incorrectly. Most likely your browser is using canvas farbling. Consider disabling it."),a=tt.getRandomColor();break}this.colorKey=a,Sh[a]=this}getContext(){return tt.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return tt.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(j6,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(Q6,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const a=I4().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(a&&a.setTransform){const i=new sl;i.translate(this.fillPatternX(),this.fillPatternY()),i.rotate(kt.getAngle(this.fillPatternRotation())),i.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),i.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const o=i.getMatrix(),h=typeof DOMMatrix>"u"?{a:o[0],b:o[1],c:o[2],d:o[3],e:o[4],f:o[5]}:new DOMMatrix(o);a.setTransform(h)}return a}}_getLinearGradient(){return this._getCache(K6,this.__getLinearGradient)}__getLinearGradient(){const t=this.fillLinearGradientColorStops();if(t){const a=I4(),i=this.fillLinearGradientStartPoint(),o=this.fillLinearGradientEndPoint(),h=a.createLinearGradient(i.x,i.y,o.x,o.y);for(let d=0;d<t.length;d+=2)h.addColorStop(t[d],t[d+1]);return h}}_getRadialGradient(){return this._getCache(Z6,this.__getRadialGradient)}__getRadialGradient(){const t=this.fillRadialGradientColorStops();if(t){const a=I4(),i=this.fillRadialGradientStartPoint(),o=this.fillRadialGradientEndPoint(),h=a.createRadialGradient(i.x,i.y,this.fillRadialGradientStartRadius(),o.x,o.y,this.fillRadialGradientEndRadius());for(let d=0;d<t.length;d+=2)h.addColorStop(t[d],t[d+1]);return h}}getShadowRGBA(){return this._getCache(V6,this._getShadowRGBA)}_getShadowRGBA(){if(!this.hasShadow())return;const t=tt.colorToRGBA(this.shadowColor());if(t)return"rgba("+t.r+","+t.g+","+t.b+","+t.a*(this.shadowOpacity()||1)+")"}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const t=this.hitStrokeWidth();return t==="auto"?this.hasStroke():this.strokeEnabled()&&!!t}intersects(t){const a=this.getStage();if(!a)return!1;const i=a.bufferHitCanvas;return i.getContext().clear(),this.drawHit(i,void 0,!0),i.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data[3]>0}destroy(){return Gt.prototype.destroy.call(this),delete Sh[this.colorKey],delete this.colorKey,this}_useBufferCanvas(t){var a;if(!((a=this.attrs.perfectDrawEnabled)!==null&&a!==void 0?a:!0))return!1;const o=t||this.hasFill(),h=this.hasStroke(),d=this.getAbsoluteOpacity()!==1;if(o&&h&&d)return!0;const g=this.hasShadow(),p=this.shadowForStrokeEnabled();return!!(o&&h&&g&&p)}setStrokeHitEnabled(t){tt.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),t?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const t=this.size();return{x:this._centroid?-t.width/2:0,y:this._centroid?-t.height/2:0,width:t.width,height:t.height}}getClientRect(t={}){let a=!1,i=this.getParent();for(;i;){if(i.isCached()){a=!0;break}i=i.getParent()}const o=t.skipTransform,h=t.relativeTo||a&&this.getStage()||void 0,d=this.getSelfRect(),p=!t.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,b=d.width+p,E=d.height+p,_=!t.skipShadow&&this.hasShadow(),z=_?this.shadowOffsetX():0,D=_?this.shadowOffsetY():0,C=b+Math.abs(z),H=E+Math.abs(D),U=_&&this.shadowBlur()||0,B=C+U*2,X=H+U*2,k={width:B,height:X,x:-(p/2+U)+Math.min(z,0)+d.x,y:-(p/2+U)+Math.min(D,0)+d.y};return o?k:this._transformedRect(k,h)}drawScene(t,a,i){const o=this.getLayer(),h=t||o.getCanvas(),d=h.getContext(),g=this._getCanvasCache(),p=this.getSceneFunc(),b=this.hasShadow();let E;const _=a===this;if(!this.isVisible()&&!_)return this;if(g){d.save();const z=this.getAbsoluteTransform(a).getMatrix();return d.transform(z[0],z[1],z[2],z[3],z[4],z[5]),this._drawCachedSceneCanvas(d),d.restore(),this}if(!p)return this;if(d.save(),this._useBufferCanvas()){E=this.getStage();const z=i||E.bufferCanvas,D=z.getContext();D.clear(),D.save(),D._applyLineJoin(this),D._applyMiterLimit(this);const C=this.getAbsoluteTransform(a).getMatrix();D.transform(C[0],C[1],C[2],C[3],C[4],C[5]),p.call(this,D,this),D.restore();const H=z.pixelRatio;b&&d._applyShadow(this),_||(d._applyOpacity(this),d._applyGlobalCompositeOperation(this)),d.drawImage(z._canvas,z.x||0,z.y||0,z.width/H,z.height/H)}else{if(d._applyLineJoin(this),d._applyMiterLimit(this),!_){const z=this.getAbsoluteTransform(a).getMatrix();d.transform(z[0],z[1],z[2],z[3],z[4],z[5]),d._applyOpacity(this),d._applyGlobalCompositeOperation(this)}b&&d._applyShadow(this),p.call(this,d,this)}return d.restore(),this}drawHit(t,a,i=!1){if(!this.shouldDrawHit(a,i))return this;const o=this.getLayer(),h=t||o.hitCanvas,d=h&&h.getContext(),g=this.hitFunc()||this.sceneFunc(),p=this._getCanvasCache(),b=p&&p.hit;if(this.colorKey||tt.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),b){d.save();const _=this.getAbsoluteTransform(a).getMatrix();return d.transform(_[0],_[1],_[2],_[3],_[4],_[5]),this._drawCachedHitCanvas(d),d.restore(),this}if(!g)return this;if(d.save(),d._applyLineJoin(this),d._applyMiterLimit(this),!(this===a)){const _=this.getAbsoluteTransform(a).getMatrix();d.transform(_[0],_[1],_[2],_[3],_[4],_[5])}return g.call(this,d,this),d.restore(),this}drawHitFromCache(t=0){const a=this._getCanvasCache(),i=this._getCachedSceneCanvas(),o=a.hit,h=o.getContext(),d=o.getWidth(),g=o.getHeight();h.clear(),h.drawImage(i._canvas,0,0,d,g);try{const p=h.getImageData(0,0,d,g),b=p.data,E=b.length,_=tt._hexToRgb(this.colorKey);for(let z=0;z<E;z+=4)b[z+3]>t?(b[z]=_.r,b[z+1]=_.g,b[z+2]=_.b,b[z+3]=255):b[z+3]=0;h.putImageData(p,0,0)}catch(p){tt.error("Unable to draw hit graph from cached scene canvas. "+p.message)}return this}hasPointerCapture(t){return N6(t,this)}setPointerCapture(t){R6(t,this)}releaseCapture(t){yh(t)}}Ct.prototype._fillFunc=W8;Ct.prototype._strokeFunc=I8;Ct.prototype._fillFuncHit=P8;Ct.prototype._strokeFuncHit=$8;Ct.prototype._centroid=!1;Ct.prototype.nodeType="Shape";$a(Ct);Ct.prototype.eventListeners={};Ct.prototype.on.call(Ct.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",t9);Ct.prototype.on.call(Ct.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",e9);Ct.prototype.on.call(Ct.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",a9);Ct.prototype.on.call(Ct.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",n9);Ct.prototype.on.call(Ct.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",l9);L.addGetterSetter(Ct,"stroke",void 0,w6());L.addGetterSetter(Ct,"strokeWidth",2,Ut());L.addGetterSetter(Ct,"fillAfterStrokeEnabled",!1);L.addGetterSetter(Ct,"hitStrokeWidth","auto",Fd());L.addGetterSetter(Ct,"strokeHitEnabled",!0,xi());L.addGetterSetter(Ct,"perfectDrawEnabled",!0,xi());L.addGetterSetter(Ct,"shadowForStrokeEnabled",!0,xi());L.addGetterSetter(Ct,"lineJoin");L.addGetterSetter(Ct,"lineCap");L.addGetterSetter(Ct,"miterLimit");L.addGetterSetter(Ct,"sceneFunc");L.addGetterSetter(Ct,"hitFunc");L.addGetterSetter(Ct,"dash");L.addGetterSetter(Ct,"dashOffset",0,Ut());L.addGetterSetter(Ct,"shadowColor",void 0,eo());L.addGetterSetter(Ct,"shadowBlur",0,Ut());L.addGetterSetter(Ct,"shadowOpacity",1,Ut());L.addComponentsGetterSetter(Ct,"shadowOffset",["x","y"]);L.addGetterSetter(Ct,"shadowOffsetX",0,Ut());L.addGetterSetter(Ct,"shadowOffsetY",0,Ut());L.addGetterSetter(Ct,"fillPatternImage");L.addGetterSetter(Ct,"fill",void 0,w6());L.addGetterSetter(Ct,"fillPatternX",0,Ut());L.addGetterSetter(Ct,"fillPatternY",0,Ut());L.addGetterSetter(Ct,"fillLinearGradientColorStops");L.addGetterSetter(Ct,"strokeLinearGradientColorStops");L.addGetterSetter(Ct,"fillRadialGradientStartRadius",0);L.addGetterSetter(Ct,"fillRadialGradientEndRadius",0);L.addGetterSetter(Ct,"fillRadialGradientColorStops");L.addGetterSetter(Ct,"fillPatternRepeat","repeat");L.addGetterSetter(Ct,"fillEnabled",!0);L.addGetterSetter(Ct,"strokeEnabled",!0);L.addGetterSetter(Ct,"shadowEnabled",!0);L.addGetterSetter(Ct,"dashEnabled",!0);L.addGetterSetter(Ct,"strokeScaleEnabled",!0);L.addGetterSetter(Ct,"fillPriority","color");L.addComponentsGetterSetter(Ct,"fillPatternOffset",["x","y"]);L.addGetterSetter(Ct,"fillPatternOffsetX",0,Ut());L.addGetterSetter(Ct,"fillPatternOffsetY",0,Ut());L.addComponentsGetterSetter(Ct,"fillPatternScale",["x","y"]);L.addGetterSetter(Ct,"fillPatternScaleX",1,Ut());L.addGetterSetter(Ct,"fillPatternScaleY",1,Ut());L.addComponentsGetterSetter(Ct,"fillLinearGradientStartPoint",["x","y"]);L.addComponentsGetterSetter(Ct,"strokeLinearGradientStartPoint",["x","y"]);L.addGetterSetter(Ct,"fillLinearGradientStartPointX",0);L.addGetterSetter(Ct,"strokeLinearGradientStartPointX",0);L.addGetterSetter(Ct,"fillLinearGradientStartPointY",0);L.addGetterSetter(Ct,"strokeLinearGradientStartPointY",0);L.addComponentsGetterSetter(Ct,"fillLinearGradientEndPoint",["x","y"]);L.addComponentsGetterSetter(Ct,"strokeLinearGradientEndPoint",["x","y"]);L.addGetterSetter(Ct,"fillLinearGradientEndPointX",0);L.addGetterSetter(Ct,"strokeLinearGradientEndPointX",0);L.addGetterSetter(Ct,"fillLinearGradientEndPointY",0);L.addGetterSetter(Ct,"strokeLinearGradientEndPointY",0);L.addComponentsGetterSetter(Ct,"fillRadialGradientStartPoint",["x","y"]);L.addGetterSetter(Ct,"fillRadialGradientStartPointX",0);L.addGetterSetter(Ct,"fillRadialGradientStartPointY",0);L.addComponentsGetterSetter(Ct,"fillRadialGradientEndPoint",["x","y"]);L.addGetterSetter(Ct,"fillRadialGradientEndPointX",0);L.addGetterSetter(Ct,"fillRadialGradientEndPointY",0);L.addGetterSetter(Ct,"fillPatternRotation",0);L.addGetterSetter(Ct,"fillRule",void 0,eo());L.backCompat(Ct,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"});const i9="beforeDraw",r9="draw",J6=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],s9=J6.length;let ao=class extends ol{constructor(t){super(t),this.canvas=new eu,this.hitCanvas=new Jd({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);const a=this.getStage();return a&&a.content&&(a.content.removeChild(this.getNativeCanvasElement()),t<a.children.length-1?a.content.insertBefore(this.getNativeCanvasElement(),a.children[t+1].getCanvas()._canvas):a.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){Gt.prototype.moveToTop.call(this);const t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!Gt.prototype.moveUp.call(this))return!1;const a=this.getStage();return!a||!a.content?!1:(a.content.removeChild(this.getNativeCanvasElement()),this.index<a.children.length-1?a.content.insertBefore(this.getNativeCanvasElement(),a.children[this.index+1].getCanvas()._canvas):a.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(Gt.prototype.moveDown.call(this)){const t=this.getStage();if(t){const a=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),a[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(Gt.prototype.moveToBottom.call(this)){const t=this.getStage();if(t){const a=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),a[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){const t=this.getNativeCanvasElement();return Gt.prototype.remove.call(this),t&&t.parentNode&&tt._isInDocument(t)&&t.parentNode.removeChild(t),this}getStage(){return this.parent}setSize({width:t,height:a}){return this.canvas.setSize(t,a),this.hitCanvas.setSize(t,a),this._setSmoothEnabled(),this}_validateAdd(t){const a=t.getType();a!=="Group"&&a!=="Shape"&&tt.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(t){return t={...t},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=t.x!==void 0?t.x:this.x(),t.y=t.y!==void 0?t.y:this.y(),Gt.prototype._toKonvaCanvas.call(this,t)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){tt.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){tt.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,tt.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;let a=1,i=!1;for(;;){for(let o=0;o<s9;o++){const h=J6[o],d=this._getIntersection({x:t.x+h.x*a,y:t.y+h.y*a}),g=d.shape;if(g)return g;if(i=!!d.antialiased,!d.antialiased)break}if(i)a+=1;else return null}}_getIntersection(t){const a=this.hitCanvas.pixelRatio,i=this.hitCanvas.context.getImageData(Math.round(t.x*a),Math.round(t.y*a),1,1).data,o=i[3];if(o===255){const h=tt.getHitColorKey(i[0],i[1],i[2]),d=Sh[h];return d?{shape:d}:{antialiased:!0}}else if(o>0)return{antialiased:!0};return{}}drawScene(t,a,i){const o=this.getLayer(),h=t||o&&o.getCanvas();return this._fire(i9,{node:this}),this.clearBeforeDraw()&&h.getContext().clear(),ol.prototype.drawScene.call(this,h,a,i),this._fire(r9,{node:this}),this}drawHit(t,a){const i=this.getLayer(),o=t||i&&i.hitCanvas;return i&&i.clearBeforeDraw()&&i.getHitCanvas().getContext().clear(),ol.prototype.drawHit.call(this,o,a),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){tt.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return tt.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const t=this.parent;!!this.hitCanvas._canvas.parentNode?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}destroy(){return tt.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};ao.prototype.nodeType="Layer";$a(ao);L.addGetterSetter(ao,"imageSmoothingEnabled",!0);L.addGetterSetter(ao,"clearBeforeDraw",!0);L.addGetterSetter(ao,"hitGraphEnabled",!0,xi());class Id extends ao{constructor(t){super(t),this.listening(!1),tt.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}Id.prototype.nodeType="FastLayer";$a(Id);class _c extends ol{_validateAdd(t){const a=t.getType();a!=="Group"&&a!=="Shape"&&tt.throw("You may only add groups and shapes to groups.")}}_c.prototype.nodeType="Group";$a(_c);const P4=(function(){return to.performance&&to.performance.now?function(){return to.performance.now()}:function(){return new Date().getTime()}})();class Ql{constructor(t,a){this.id=Ql.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:P4(),frameRate:0},this.func=t,this.setLayers(a)}setLayers(t){let a=[];return t&&(a=Array.isArray(t)?t:[t]),this.layers=a,this}getLayers(){return this.layers}addLayer(t){const a=this.layers,i=a.length;for(let o=0;o<i;o++)if(a[o]._id===t._id)return!1;return this.layers.push(t),!0}isRunning(){const a=Ql.animations,i=a.length;for(let o=0;o<i;o++)if(a[o].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=P4(),Ql._addAnimation(this),this}stop(){return Ql._removeAnimation(this),this}_updateFrameObject(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(t){this.animations.push(t),this._handleAnimation()}static _removeAnimation(t){const a=t.id,i=this.animations,o=i.length;for(let h=0;h<o;h++)if(i[h].id===a){this.animations.splice(h,1);break}}static _runFrames(){const t={},a=this.animations;for(let i=0;i<a.length;i++){const o=a[i],h=o.layers,d=o.func;o._updateFrameObject(P4());const g=h.length;let p;if(d?p=d.call(o,o.frame)!==!1:p=!0,!!p)for(let b=0;b<g;b++){const E=h[b];E._id!==void 0&&(t[E._id]=E)}}for(const i in t)t.hasOwnProperty(i)&&t[i].batchDraw()}static _animationLoop(){const t=Ql;t.animations.length?(t._runFrames(),tt.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,tt.requestAnimFrame(this._animationLoop))}}Ql.animations=[];Ql.animIdCounter=0;Ql.animRunning=!1;const u9={node:1,duration:1,easing:1,onFinish:1,yoyo:1},o9=1,M3=2,A3=3,z3=["fill","stroke","shadowColor"];let c9=0;class h9{constructor(t,a,i,o,h,d,g){this.prop=t,this.propFunc=a,this.begin=o,this._pos=o,this.duration=d,this._change=0,this.prevPos=0,this.yoyo=g,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=i,this._change=h-this.begin,this.pause()}fire(t){const a=this[t];a&&a()}setTime(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())}getTime(){return this._time}setPosition(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t}getPosition(t){return t===void 0&&(t=this._time),this.func(t,this.begin,this._change,this.duration)}play(){this.state=M3,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=A3,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const t=this.getTimer()-this._startTime;this.state===M3?this.setTime(t):this.state===A3&&this.setTime(this.duration-t)}pause(){this.state=o9,this.fire("onPause")}getTimer(){return new Date().getTime()}}class Aa{constructor(t){const a=this,i=t.node,o=i._id,h=t.easing||xh.Linear,d=!!t.yoyo;let g,p;typeof t.duration>"u"?g=.3:t.duration===0?g=.001:g=t.duration,this.node=i,this._id=c9++;const b=i.getLayer()||(i instanceof kt.Stage?i.getLayers():null);b||tt.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new Ql(function(){a.tween.onEnterFrame()},b),this.tween=new h9(p,function(E){a._tweenFunc(E)},h,0,1,g*1e3,d),this._addListeners(),Aa.attrs[o]||(Aa.attrs[o]={}),Aa.attrs[o][this._id]||(Aa.attrs[o][this._id]={}),Aa.tweens[o]||(Aa.tweens[o]={});for(p in t)u9[p]===void 0&&this._addAttr(p,t[p]);this.reset(),this.onFinish=t.onFinish,this.onReset=t.onReset,this.onUpdate=t.onUpdate}_addAttr(t,a){const i=this.node,o=i._id;let h,d,g,p,b;const E=Aa.tweens[o][t];E&&delete Aa.attrs[o][E][t];let _=i.getAttr(t);if(tt._isArray(a))if(h=[],d=Math.max(a.length,_.length),t==="points"&&a.length!==_.length&&(a.length>_.length?(p=_,_=tt._prepareArrayForTween(_,a,i.closed())):(g=a,a=tt._prepareArrayForTween(a,_,i.closed()))),t.indexOf("fill")===0)for(let z=0;z<d;z++)if(z%2===0)h.push(a[z]-_[z]);else{const D=tt.colorToRGBA(_[z]);b=tt.colorToRGBA(a[z]),_[z]=D,h.push({r:b.r-D.r,g:b.g-D.g,b:b.b-D.b,a:b.a-D.a})}else for(let z=0;z<d;z++)h.push(a[z]-_[z]);else z3.indexOf(t)!==-1?(_=tt.colorToRGBA(_),b=tt.colorToRGBA(a),h={r:b.r-_.r,g:b.g-_.g,b:b.b-_.b,a:b.a-_.a}):h=a-_;Aa.attrs[o][this._id][t]={start:_,diff:h,end:a,trueEnd:g,trueStart:p},Aa.tweens[o][t]=this._id}_tweenFunc(t){const a=this.node,i=Aa.attrs[a._id][this._id];let o,h,d,g,p,b,E,_;for(o in i){if(h=i[o],d=h.start,g=h.diff,_=h.end,tt._isArray(d))if(p=[],E=Math.max(d.length,_.length),o.indexOf("fill")===0)for(b=0;b<E;b++)b%2===0?p.push((d[b]||0)+g[b]*t):p.push("rgba("+Math.round(d[b].r+g[b].r*t)+","+Math.round(d[b].g+g[b].g*t)+","+Math.round(d[b].b+g[b].b*t)+","+(d[b].a+g[b].a*t)+")");else for(b=0;b<E;b++)p.push((d[b]||0)+g[b]*t);else z3.indexOf(o)!==-1?p="rgba("+Math.round(d.r+g.r*t)+","+Math.round(d.g+g.g*t)+","+Math.round(d.b+g.b*t)+","+(d.a+g.a*t)+")":p=d+g*t;a.setAttr(o,p)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const t=this.node,a=Aa.attrs[t._id][this._id];a.points&&a.points.trueEnd&&t.setAttr("points",a.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const t=this.node,a=Aa.attrs[t._id][this._id];a.points&&a.points.trueStart&&t.points(a.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(t){return this.tween.seek(t*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const t=this.node._id,a=this._id,i=Aa.tweens[t];this.pause(),this.anim&&this.anim.stop();for(const o in i)delete Aa.tweens[t][o];delete Aa.attrs[t][a],Aa.tweens[t]&&(Object.keys(Aa.tweens[t]).length===0&&delete Aa.tweens[t],Object.keys(Aa.attrs[t]).length===0&&delete Aa.attrs[t])}}Aa.attrs={};Aa.tweens={};Gt.prototype.to=function(s){const t=s.onFinish;s.node=this,s.onFinish=function(){this.destroy(),t&&t()},new Aa(s).play()};const xh={BackEaseIn(s,t,a,i){return a*(s/=i)*s*((1.70158+1)*s-1.70158)+t},BackEaseOut(s,t,a,i){return a*((s=s/i-1)*s*((1.70158+1)*s+1.70158)+1)+t},BackEaseInOut(s,t,a,i){let o=1.70158;return(s/=i/2)<1?a/2*(s*s*(((o*=1.525)+1)*s-o))+t:a/2*((s-=2)*s*(((o*=1.525)+1)*s+o)+2)+t},ElasticEaseIn(s,t,a,i,o,h){let d=0;return s===0?t:(s/=i)===1?t+a:(h||(h=i*.3),!o||o<Math.abs(a)?(o=a,d=h/4):d=h/(2*Math.PI)*Math.asin(a/o),-(o*Math.pow(2,10*(s-=1))*Math.sin((s*i-d)*(2*Math.PI)/h))+t)},ElasticEaseOut(s,t,a,i,o,h){let d=0;return s===0?t:(s/=i)===1?t+a:(h||(h=i*.3),!o||o<Math.abs(a)?(o=a,d=h/4):d=h/(2*Math.PI)*Math.asin(a/o),o*Math.pow(2,-10*s)*Math.sin((s*i-d)*(2*Math.PI)/h)+a+t)},ElasticEaseInOut(s,t,a,i,o,h){let d=0;return s===0?t:(s/=i/2)===2?t+a:(h||(h=i*(.3*1.5)),!o||o<Math.abs(a)?(o=a,d=h/4):d=h/(2*Math.PI)*Math.asin(a/o),s<1?-.5*(o*Math.pow(2,10*(s-=1))*Math.sin((s*i-d)*(2*Math.PI)/h))+t:o*Math.pow(2,-10*(s-=1))*Math.sin((s*i-d)*(2*Math.PI)/h)*.5+a+t)},BounceEaseOut(s,t,a,i){return(s/=i)<1/2.75?a*(7.5625*s*s)+t:s<2/2.75?a*(7.5625*(s-=1.5/2.75)*s+.75)+t:s<2.5/2.75?a*(7.5625*(s-=2.25/2.75)*s+.9375)+t:a*(7.5625*(s-=2.625/2.75)*s+.984375)+t},BounceEaseIn(s,t,a,i){return a-xh.BounceEaseOut(i-s,0,a,i)+t},BounceEaseInOut(s,t,a,i){return s<i/2?xh.BounceEaseIn(s*2,0,a,i)*.5+t:xh.BounceEaseOut(s*2-i,0,a,i)*.5+a*.5+t},EaseIn(s,t,a,i){return a*(s/=i)*s+t},EaseOut(s,t,a,i){return-a*(s/=i)*(s-2)+t},EaseInOut(s,t,a,i){return(s/=i/2)<1?a/2*s*s+t:-a/2*(--s*(s-2)-1)+t},StrongEaseIn(s,t,a,i){return a*(s/=i)*s*s*s*s+t},StrongEaseOut(s,t,a,i){return a*((s=s/i-1)*s*s*s*s+1)+t},StrongEaseInOut(s,t,a,i){return(s/=i/2)<1?a/2*s*s*s*s*s+t:a/2*((s-=2)*s*s*s*s+2)+t},Linear(s,t,a,i){return a*s/i+t}},Mc=tt._assign(kt,{Util:tt,Transform:sl,Node:Gt,Container:ol,Stage:P2,stages:bh,Layer:ao,FastLayer:Id,Group:_c,DD:ia,Shape:Ct,shapes:Sh,Animation:Ql,Tween:Aa,Easings:xh,Context:W2,Canvas:Zd});class Ir extends Ct{_sceneFunc(t){const a=kt.getAngle(this.angle()),i=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,a,i),t.arc(0,0,this.innerRadius(),a,0,!i),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}getSelfRect(){const t=this.innerRadius(),a=this.outerRadius(),i=this.clockwise(),o=kt.getAngle(i?360-this.angle():this.angle()),h=Math.cos(Math.min(o,Math.PI)),d=1,g=Math.sin(Math.min(Math.max(Math.PI,o),3*Math.PI/2)),p=Math.sin(Math.min(o,Math.PI/2)),b=h*(h>0?t:a),E=d*a,_=g*(g>0?t:a),z=p*(p>0?a:t);return{x:b,y:i?-1*z:_,width:E-b,height:z-_}}}Ir.prototype._centroid=!0;Ir.prototype.className="Arc";Ir.prototype._attrsAffectingSize=["innerRadius","outerRadius","angle","clockwise"];$a(Ir);L.addGetterSetter(Ir,"innerRadius",0,Ut());L.addGetterSetter(Ir,"outerRadius",0,Ut());L.addGetterSetter(Ir,"angle",0,Ut());L.addGetterSetter(Ir,"clockwise",!1,xi());function Cd(s,t,a,i,o,h,d){const g=Math.sqrt(Math.pow(a-s,2)+Math.pow(i-t,2)),p=Math.sqrt(Math.pow(o-a,2)+Math.pow(h-i,2)),b=d*g/(g+p),E=d*p/(g+p),_=a-b*(o-s),z=i-b*(h-t),D=a+E*(o-s),C=i+E*(h-t);return[_,z,D,C]}function C3(s,t){const a=s.length,i=[];for(let o=2;o<a-2;o+=2){const h=Cd(s[o-2],s[o-1],s[o],s[o+1],s[o+2],s[o+3],t);isNaN(h[0])||(i.push(h[0]),i.push(h[1]),i.push(s[o]),i.push(s[o+1]),i.push(h[2]),i.push(h[3]))}return i}let Pr=class extends Ct{constructor(t){super(t),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(t){const a=this.points(),i=a.length,o=this.tension(),h=this.closed(),d=this.bezier();if(!i)return;let g=0;if(t.beginPath(),t.moveTo(a[0],a[1]),o!==0&&i>4){const p=this.getTensionPoints(),b=p.length;for(g=h?0:4,h||t.quadraticCurveTo(p[0],p[1],p[2],p[3]);g<b-2;)t.bezierCurveTo(p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]);h||t.quadraticCurveTo(p[b-2],p[b-1],a[i-2],a[i-1])}else if(d)for(g=2;g<i;)t.bezierCurveTo(a[g++],a[g++],a[g++],a[g++],a[g++],a[g++]);else for(g=2;g<i;g+=2)t.lineTo(a[g],a[g+1]);h?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():C3(this.points(),this.tension())}_getTensionPointsClosed(){const t=this.points(),a=t.length,i=this.tension(),o=Cd(t[a-2],t[a-1],t[0],t[1],t[2],t[3],i),h=Cd(t[a-4],t[a-3],t[a-2],t[a-1],t[0],t[1],i),d=C3(t,i);return[o[2],o[3]].concat(d).concat([h[0],h[1],t[a-2],t[a-1],h[2],h[3],o[0],o[1],t[0],t[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){let t=this.points();if(t.length<4)return{x:t[0]||0,y:t[1]||0,width:0,height:0};this.tension()!==0?t=[t[0],t[1],...this._getTensionPoints(),t[t.length-2],t[t.length-1]]:t=this.points();let a=t[0],i=t[0],o=t[1],h=t[1],d,g;for(let p=0;p<t.length/2;p++)d=t[p*2],g=t[p*2+1],a=Math.min(a,d),i=Math.max(i,d),o=Math.min(o,g),h=Math.max(h,g);return{x:a,y:o,width:i-a,height:h-o}}};Pr.prototype.className="Line";Pr.prototype._attrsAffectingSize=["points","bezier","tension"];$a(Pr);L.addGetterSetter(Pr,"closed",!1);L.addGetterSetter(Pr,"bezier",!1);L.addGetterSetter(Pr,"tension",0,Ut());L.addGetterSetter(Pr,"points",[],C8());const f9=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],d9=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],m9=[[1],[1,1],[1,2,1],[1,3,3,1]],w3=(s,t,a)=>{let i,o;const d=a/2;i=0;for(let g=0;g<20;g++)o=d*f9[20][g]+d,i+=d9[20][g]*g9(s,t,o);return d*i},D3=(s,t,a)=>{a===void 0&&(a=1);const i=s[0]-2*s[1]+s[2],o=t[0]-2*t[1]+t[2],h=2*s[1]-2*s[0],d=2*t[1]-2*t[0],g=4*(i*i+o*o),p=4*(i*h+o*d),b=h*h+d*d;if(g===0)return a*Math.sqrt(Math.pow(s[2]-s[0],2)+Math.pow(t[2]-t[0],2));const E=p/(2*g),_=b/g,z=a+E,D=_-E*E,C=z*z+D>0?Math.sqrt(z*z+D):0,H=E*E+D>0?Math.sqrt(E*E+D):0,U=E+Math.sqrt(E*E+D)!==0?D*Math.log(Math.abs((z+C)/(E+H))):0;return Math.sqrt(g)/2*(z*C-E*H+U)};function g9(s,t,a){const i=wd(1,a,s),o=wd(1,a,t),h=i*i+o*o;return Math.sqrt(h)}const wd=(s,t,a)=>{const i=a.length-1;let o,h;if(i===0)return 0;if(s===0){h=0;for(let d=0;d<=i;d++)h+=m9[i][d]*Math.pow(1-t,i-d)*Math.pow(t,d)*a[d];return h}else{o=new Array(i);for(let d=0;d<i;d++)o[d]=i*(a[d+1]-a[d]);return wd(s-1,t,o)}},N3=(s,t,a)=>{let i=1,o=s/t,h=(s-a(o))/t,d=0;for(;i>.001;){const g=a(o+h),p=Math.abs(s-g)/t;if(p<i)i=p,o+=h;else{const b=a(o-h),E=Math.abs(s-b)/t;E<i?(i=E,o-=h):h/=2}if(d++,d>500)break}return o};class za extends Ct{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=za.parsePathData(this.data()),this.pathLength=za.getPathLength(this.dataArray)}_sceneFunc(t){const a=this.dataArray;t.beginPath();let i=!1;for(let o=0;o<a.length;o++){const h=a[o].command,d=a[o].points;switch(h){case"L":t.lineTo(d[0],d[1]);break;case"M":t.moveTo(d[0],d[1]);break;case"C":t.bezierCurveTo(d[0],d[1],d[2],d[3],d[4],d[5]);break;case"Q":t.quadraticCurveTo(d[0],d[1],d[2],d[3]);break;case"A":const g=d[0],p=d[1],b=d[2],E=d[3],_=d[4],z=d[5],D=d[6],C=d[7],H=b>E?b:E,U=b>E?1:b/E,B=b>E?E/b:1;t.translate(g,p),t.rotate(D),t.scale(U,B),t.arc(0,0,H,_,_+z,1-C),t.scale(1/U,1/B),t.rotate(-D),t.translate(-g,-p);break;case"z":i=!0,t.closePath();break}}!i&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){let t=[];this.dataArray.forEach(function(p){if(p.command==="A"){const b=p.points[4],E=p.points[5],_=p.points[4]+E;let z=Math.PI/180;if(Math.abs(b-_)<z&&(z=Math.abs(b-_)),E<0)for(let D=b-z;D>_;D-=z){const C=za.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],D,0);t.push(C.x,C.y)}else for(let D=b+z;D<_;D+=z){const C=za.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],D,0);t.push(C.x,C.y)}}else if(p.command==="C")for(let b=0;b<=1;b+=.01){const E=za.getPointOnCubicBezier(b,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3],p.points[4],p.points[5]);t.push(E.x,E.y)}else t=t.concat(p.points)});let a=t[0],i=t[0],o=t[1],h=t[1],d,g;for(let p=0;p<t.length/2;p++)d=t[p*2],g=t[p*2+1],isNaN(d)||(a=Math.min(a,d),i=Math.max(i,d)),isNaN(g)||(o=Math.min(o,g),h=Math.max(h,g));return{x:a,y:o,width:i-a,height:h-o}}getLength(){return this.pathLength}getPointAtLength(t){return za.getPointAtLengthOfDataArray(t,this.dataArray)}static getLineLength(t,a,i,o){return Math.sqrt((i-t)*(i-t)+(o-a)*(o-a))}static getPathLength(t){let a=0;for(let i=0;i<t.length;++i)a+=t[i].pathLength;return a}static getPointAtLengthOfDataArray(t,a){let i,o=0,h=a.length;if(!h)return null;for(;o<h&&t>a[o].pathLength;)t-=a[o].pathLength,++o;if(o===h)return i=a[o-1].points.slice(-2),{x:i[0],y:i[1]};if(t<.01)return a[o].command==="M"?(i=a[o].points.slice(0,2),{x:i[0],y:i[1]}):{x:a[o].start.x,y:a[o].start.y};const d=a[o],g=d.points;switch(d.command){case"L":return za.getPointOnLine(t,d.start.x,d.start.y,g[0],g[1]);case"C":return za.getPointOnCubicBezier(N3(t,za.getPathLength(a),H=>w3([d.start.x,g[0],g[2],g[4]],[d.start.y,g[1],g[3],g[5]],H)),d.start.x,d.start.y,g[0],g[1],g[2],g[3],g[4],g[5]);case"Q":return za.getPointOnQuadraticBezier(N3(t,za.getPathLength(a),H=>D3([d.start.x,g[0],g[2]],[d.start.y,g[1],g[3]],H)),d.start.x,d.start.y,g[0],g[1],g[2],g[3]);case"A":const p=g[0],b=g[1],E=g[2],_=g[3],z=g[5],D=g[6];let C=g[4];return C+=z*t/d.pathLength,za.getPointOnEllipticalArc(p,b,E,_,C,D)}return null}static getPointOnLine(t,a,i,o,h,d,g){d=d??a,g=g??i;const p=this.getLineLength(a,i,o,h);if(p<1e-10)return{x:a,y:i};if(o===a)return{x:d,y:g+(h>i?t:-t)};const b=(h-i)/(o-a),E=Math.sqrt(t*t/(1+b*b))*(o<a?-1:1),_=b*E;if(Math.abs(g-i-b*(d-a))<1e-10)return{x:d+E,y:g+_};const z=((d-a)*(o-a)+(g-i)*(h-i))/(p*p),D=a+z*(o-a),C=i+z*(h-i),H=this.getLineLength(d,g,D,C),U=Math.sqrt(t*t-H*H),B=Math.sqrt(U*U/(1+b*b))*(o<a?-1:1),X=b*B;return{x:D+B,y:C+X}}static getPointOnCubicBezier(t,a,i,o,h,d,g,p,b){function E(U){return U*U*U}function _(U){return 3*U*U*(1-U)}function z(U){return 3*U*(1-U)*(1-U)}function D(U){return(1-U)*(1-U)*(1-U)}const C=p*E(t)+d*_(t)+o*z(t)+a*D(t),H=b*E(t)+g*_(t)+h*z(t)+i*D(t);return{x:C,y:H}}static getPointOnQuadraticBezier(t,a,i,o,h,d,g){function p(D){return D*D}function b(D){return 2*D*(1-D)}function E(D){return(1-D)*(1-D)}const _=d*p(t)+o*b(t)+a*E(t),z=g*p(t)+h*b(t)+i*E(t);return{x:_,y:z}}static getPointOnEllipticalArc(t,a,i,o,h,d){const g=Math.cos(d),p=Math.sin(d),b={x:i*Math.cos(h),y:o*Math.sin(h)};return{x:t+(b.x*g-b.y*p),y:a+(b.x*p+b.y*g)}}static parsePathData(t){if(!t)return[];let a=t;const i=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];a=a.replace(new RegExp(" ","g"),",");for(let _=0;_<i.length;_++)a=a.replace(new RegExp(i[_],"g"),"|"+i[_]);const o=a.split("|"),h=[],d=[];let g=0,p=0;const b=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let E;for(let _=1;_<o.length;_++){let z=o[_],D=z.charAt(0);for(z=z.slice(1),d.length=0;E=b.exec(z);)d.push(E[0]);let C=[],H=D==="A"||D==="a"?0:-1;for(let U=0,B=d.length;U<B;U++){const X=d[U];if(X==="00"){C.push(0,0),H>=0&&(H+=2,H>=7&&(H-=7));continue}if(H>=0){if(H===3){if(/^[01]{2}\d+(?:\.\d+)?$/.test(X)){C.push(parseInt(X[0],10)),C.push(parseInt(X[1],10)),C.push(parseFloat(X.slice(2))),H+=3,H>=7&&(H-=7);continue}if(X==="11"||X==="10"||X==="01"){C.push(parseInt(X[0],10)),C.push(parseInt(X[1],10)),H+=2,H>=7&&(H-=7);continue}if(X==="0"||X==="1"){C.push(parseInt(X,10)),H+=1,H>=7&&(H-=7);continue}}else if(H===4){if(/^[01]\d+(?:\.\d+)?$/.test(X)){C.push(parseInt(X[0],10)),C.push(parseFloat(X.slice(1))),H+=2,H>=7&&(H-=7);continue}if(X==="0"||X==="1"){C.push(parseInt(X,10)),H+=1,H>=7&&(H-=7);continue}}const k=parseFloat(X);isNaN(k)?C.push(0):C.push(k),H+=1,H>=7&&(H-=7)}else{const k=parseFloat(X);isNaN(k)?C.push(0):C.push(k)}}for(;C.length>0&&!isNaN(C[0]);){let U="",B=[];const X=g,k=p;let j,nt,ut,st,ot,St,Zt,qt,Nt,$t;switch(D){case"l":g+=C.shift(),p+=C.shift(),U="L",B.push(g,p);break;case"L":g=C.shift(),p=C.shift(),B.push(g,p);break;case"m":const Vt=C.shift(),Et=C.shift();if(g+=Vt,p+=Et,U="M",h.length>2&&h[h.length-1].command==="z"){for(let K=h.length-2;K>=0;K--)if(h[K].command==="M"){g=h[K].points[0]+Vt,p=h[K].points[1]+Et;break}}B.push(g,p),D="l";break;case"M":g=C.shift(),p=C.shift(),U="M",B.push(g,p),D="L";break;case"h":g+=C.shift(),U="L",B.push(g,p);break;case"H":g=C.shift(),U="L",B.push(g,p);break;case"v":p+=C.shift(),U="L",B.push(g,p);break;case"V":p=C.shift(),U="L",B.push(g,p);break;case"C":B.push(C.shift(),C.shift(),C.shift(),C.shift()),g=C.shift(),p=C.shift(),B.push(g,p);break;case"c":B.push(g+C.shift(),p+C.shift(),g+C.shift(),p+C.shift()),g+=C.shift(),p+=C.shift(),U="C",B.push(g,p);break;case"S":nt=g,ut=p,j=h[h.length-1],j.command==="C"&&(nt=g+(g-j.points[2]),ut=p+(p-j.points[3])),B.push(nt,ut,C.shift(),C.shift()),g=C.shift(),p=C.shift(),U="C",B.push(g,p);break;case"s":nt=g,ut=p,j=h[h.length-1],j.command==="C"&&(nt=g+(g-j.points[2]),ut=p+(p-j.points[3])),B.push(nt,ut,g+C.shift(),p+C.shift()),g+=C.shift(),p+=C.shift(),U="C",B.push(g,p);break;case"Q":B.push(C.shift(),C.shift()),g=C.shift(),p=C.shift(),B.push(g,p);break;case"q":B.push(g+C.shift(),p+C.shift()),g+=C.shift(),p+=C.shift(),U="Q",B.push(g,p);break;case"T":nt=g,ut=p,j=h[h.length-1],j.command==="Q"&&(nt=g+(g-j.points[0]),ut=p+(p-j.points[1])),g=C.shift(),p=C.shift(),U="Q",B.push(nt,ut,g,p);break;case"t":nt=g,ut=p,j=h[h.length-1],j.command==="Q"&&(nt=g+(g-j.points[0]),ut=p+(p-j.points[1])),g+=C.shift(),p+=C.shift(),U="Q",B.push(nt,ut,g,p);break;case"A":st=C.shift(),ot=C.shift(),St=C.shift(),Zt=C.shift(),qt=C.shift(),Nt=g,$t=p,g=C.shift(),p=C.shift(),U="A",B=this.convertEndpointToCenterParameterization(Nt,$t,g,p,Zt,qt,st,ot,St);break;case"a":st=C.shift(),ot=C.shift(),St=C.shift(),Zt=C.shift(),qt=C.shift(),Nt=g,$t=p,g+=C.shift(),p+=C.shift(),U="A",B=this.convertEndpointToCenterParameterization(Nt,$t,g,p,Zt,qt,st,ot,St);break}h.push({command:U||D,points:B,start:{x:X,y:k},pathLength:this.calcLength(X,k,U||D,B)})}(D==="z"||D==="Z")&&h.push({command:"z",points:[],start:void 0,pathLength:0})}return h}static calcLength(t,a,i,o){let h,d,g,p;const b=za;switch(i){case"L":return b.getLineLength(t,a,o[0],o[1]);case"C":return w3([t,o[0],o[2],o[4]],[a,o[1],o[3],o[5]],1);case"Q":return D3([t,o[0],o[2]],[a,o[1],o[3]],1);case"A":h=0;const E=o[4],_=o[5],z=o[4]+_;let D=Math.PI/180;if(Math.abs(E-z)<D&&(D=Math.abs(E-z)),d=b.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],E,0),_<0)for(p=E-D;p>z;p-=D)g=b.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],p,0),h+=b.getLineLength(d.x,d.y,g.x,g.y),d=g;else for(p=E+D;p<z;p+=D)g=b.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],p,0),h+=b.getLineLength(d.x,d.y,g.x,g.y),d=g;return g=b.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],z,0),h+=b.getLineLength(d.x,d.y,g.x,g.y),h}return 0}static convertEndpointToCenterParameterization(t,a,i,o,h,d,g,p,b){const E=b*(Math.PI/180),_=Math.cos(E)*(t-i)/2+Math.sin(E)*(a-o)/2,z=-1*Math.sin(E)*(t-i)/2+Math.cos(E)*(a-o)/2,D=_*_/(g*g)+z*z/(p*p);D>1&&(g*=Math.sqrt(D),p*=Math.sqrt(D));let C=Math.sqrt((g*g*(p*p)-g*g*(z*z)-p*p*(_*_))/(g*g*(z*z)+p*p*(_*_)));h===d&&(C*=-1),isNaN(C)&&(C=0);const H=C*g*z/p,U=C*-p*_/g,B=(t+i)/2+Math.cos(E)*H-Math.sin(E)*U,X=(a+o)/2+Math.sin(E)*H+Math.cos(E)*U,k=function(Zt){return Math.sqrt(Zt[0]*Zt[0]+Zt[1]*Zt[1])},j=function(Zt,qt){return(Zt[0]*qt[0]+Zt[1]*qt[1])/(k(Zt)*k(qt))},nt=function(Zt,qt){return(Zt[0]*qt[1]<Zt[1]*qt[0]?-1:1)*Math.acos(j(Zt,qt))},ut=nt([1,0],[(_-H)/g,(z-U)/p]),st=[(_-H)/g,(z-U)/p],ot=[(-1*_-H)/g,(-1*z-U)/p];let St=nt(st,ot);return j(st,ot)<=-1&&(St=Math.PI),j(st,ot)>=1&&(St=0),d===0&&St>0&&(St=St-2*Math.PI),d===1&&St<0&&(St=St+2*Math.PI),[B,X,g,p,ut,St,E,d]}}za.prototype.className="Path";za.prototype._attrsAffectingSize=["data"];$a(za);L.addGetterSetter(za,"data");class no extends Pr{_sceneFunc(t){super._sceneFunc(t);const a=Math.PI*2,i=this.points();let o=i;const h=this.tension()!==0&&i.length>4;h&&(o=this.getTensionPoints());const d=this.pointerLength(),g=i.length;let p,b;if(h){const z=[o[o.length-4],o[o.length-3],o[o.length-2],o[o.length-1],i[g-2],i[g-1]],D=za.calcLength(o[o.length-4],o[o.length-3],"C",z),C=za.getPointOnQuadraticBezier(Math.min(1,1-d/D),z[0],z[1],z[2],z[3],z[4],z[5]);p=i[g-2]-C.x,b=i[g-1]-C.y}else p=i[g-2]-i[g-4],b=i[g-1]-i[g-3];const E=(Math.atan2(b,p)+a)%a,_=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(i[g-2],i[g-1]),t.rotate(E),t.moveTo(0,0),t.lineTo(-d,_/2),t.lineTo(-d,-_/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(i[0],i[1]),h?(p=(o[0]+o[2])/2-i[0],b=(o[1]+o[3])/2-i[1]):(p=i[2]-i[0],b=i[3]-i[1]),t.rotate((Math.atan2(-b,-p)+a)%a),t.moveTo(0,0),t.lineTo(-d,_/2),t.lineTo(-d,-_/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){const a=this.dashEnabled();a&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),a&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),a=this.pointerWidth()/2;return{x:t.x,y:t.y-a,width:t.width,height:t.height+a*2}}}no.prototype.className="Arrow";$a(no);L.addGetterSetter(no,"pointerLength",10,Ut());L.addGetterSetter(no,"pointerWidth",10,Ut());L.addGetterSetter(no,"pointerAtBeginning",!1);L.addGetterSetter(no,"pointerAtEnding",!0);class Cc extends Ct{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}}Cc.prototype._centroid=!0;Cc.prototype.className="Circle";Cc.prototype._attrsAffectingSize=["radius"];$a(Cc);L.addGetterSetter(Cc,"radius",0,Ut());let su=class extends Ct{_sceneFunc(t){const a=this.radiusX(),i=this.radiusY();t.beginPath(),t.save(),a!==i&&t.scale(1,i/a),t.arc(0,0,a,0,Math.PI*2,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}};su.prototype.className="Ellipse";su.prototype._centroid=!0;su.prototype._attrsAffectingSize=["radiusX","radiusY"];$a(su);L.addComponentsGetterSetter(su,"radius",["x","y"]);L.addGetterSetter(su,"radiusX",0,Ut());L.addGetterSetter(su,"radiusY",0,Ut());let Ti=class F6 extends Ct{constructor(t){super(t),this._loadListener=()=>{this._requestDraw()},this.on("imageChange.konva",a=>{this._removeImageLoad(a.oldVal),this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",this._loadListener)}_removeImageLoad(t){t&&t.removeEventListener&&t.removeEventListener("load",this._loadListener)}destroy(){return this._removeImageLoad(this.image()),super.destroy(),this}_useBufferCanvas(){const t=!!this.cornerRadius(),a=this.hasShadow();return t&&a?!0:super._useBufferCanvas(!0)}_sceneFunc(t){const a=this.getWidth(),i=this.getHeight(),o=this.cornerRadius(),h=this.attrs.image;let d;if(h){const g=this.attrs.cropWidth,p=this.attrs.cropHeight;g&&p?d=[h,this.cropX(),this.cropY(),g,p,0,0,a,i]:d=[h,0,0,a,i]}(this.hasFill()||this.hasStroke()||o)&&(t.beginPath(),o?tt.drawRoundedRectPath(t,a,i,o):t.rect(0,0,a,i),t.closePath(),t.fillStrokeShape(this)),h&&(o&&t.clip(),t.drawImage.apply(t,d))}_hitFunc(t){const a=this.width(),i=this.height(),o=this.cornerRadius();t.beginPath(),o?tt.drawRoundedRectPath(t,a,i,o):t.rect(0,0,a,i),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,a,i;return(i=(t=this.attrs.width)!==null&&t!==void 0?t:(a=this.image())===null||a===void 0?void 0:a.width)!==null&&i!==void 0?i:0}getHeight(){var t,a,i;return(i=(t=this.attrs.height)!==null&&t!==void 0?t:(a=this.image())===null||a===void 0?void 0:a.height)!==null&&i!==void 0?i:0}static fromURL(t,a,i=null){const o=tt.createImageElement();o.onload=function(){const h=new F6({image:o});a(h)},o.onerror=i,o.crossOrigin="Anonymous",o.src=t}};Ti.prototype.className="Image";Ti.prototype._attrsAffectingSize=["image"];$a(Ti);L.addGetterSetter(Ti,"cornerRadius",0,I2(4));L.addGetterSetter(Ti,"image");L.addComponentsGetterSetter(Ti,"crop",["x","y","width","height"]);L.addGetterSetter(Ti,"cropX",0,Ut());L.addGetterSetter(Ti,"cropY",0,Ut());L.addGetterSetter(Ti,"cropWidth",0,Ut());L.addGetterSetter(Ti,"cropHeight",0,Ut());const W6=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],p9="Change.konva",v9="none",Dd="up",Nd="right",Rd="down",Od="left",y9=W6.length;class Pd extends _c{constructor(t){super(t),this.on("add.konva",function(a){this._addListeners(a.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){let a=this,i;const o=function(){a._sync()};for(i=0;i<y9;i++)t.on(W6[i]+p9,o)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){let t=this.getText(),a=this.getTag(),i,o,h,d,g,p,b;if(t&&a){switch(i=t.width(),o=t.height(),h=a.pointerDirection(),d=a.pointerWidth(),b=a.pointerHeight(),g=0,p=0,h){case Dd:g=i/2,p=-1*b;break;case Nd:g=i+d,p=o/2;break;case Rd:g=i/2,p=o+b;break;case Od:g=-1*d,p=o/2;break}a.setAttrs({x:-1*g,y:-1*p,width:i,height:o}),t.setAttrs({x:-1*g,y:-1*p})}}}Pd.prototype.className="Label";$a(Pd);class lo extends Ct{_sceneFunc(t){const a=this.width(),i=this.height(),o=this.pointerDirection(),h=this.pointerWidth(),d=this.pointerHeight(),g=this.cornerRadius();let p=0,b=0,E=0,_=0;typeof g=="number"?p=b=E=_=Math.min(g,a/2,i/2):(p=Math.min(g[0]||0,a/2,i/2),b=Math.min(g[1]||0,a/2,i/2),_=Math.min(g[2]||0,a/2,i/2),E=Math.min(g[3]||0,a/2,i/2)),t.beginPath(),t.moveTo(p,0),o===Dd&&(t.lineTo((a-h)/2,0),t.lineTo(a/2,-1*d),t.lineTo((a+h)/2,0)),t.lineTo(a-b,0),t.arc(a-b,b,b,Math.PI*3/2,0,!1),o===Nd&&(t.lineTo(a,(i-d)/2),t.lineTo(a+h,i/2),t.lineTo(a,(i+d)/2)),t.lineTo(a,i-_),t.arc(a-_,i-_,_,0,Math.PI/2,!1),o===Rd&&(t.lineTo((a+h)/2,i),t.lineTo(a/2,i+d),t.lineTo((a-h)/2,i)),t.lineTo(E,i),t.arc(E,i-E,E,Math.PI/2,Math.PI,!1),o===Od&&(t.lineTo(0,(i+d)/2),t.lineTo(-1*h,i/2),t.lineTo(0,(i-d)/2)),t.lineTo(0,p),t.arc(p,p,p,Math.PI,Math.PI*3/2,!1),t.closePath(),t.fillStrokeShape(this)}getSelfRect(){let t=0,a=0,i=this.pointerWidth(),o=this.pointerHeight(),h=this.pointerDirection(),d=this.width(),g=this.height();return h===Dd?(a-=o,g+=o):h===Rd?g+=o:h===Od?(t-=i*1.5,d+=i):h===Nd&&(d+=i*1.5),{x:t,y:a,width:d,height:g}}}lo.prototype.className="Tag";$a(lo);L.addGetterSetter(lo,"pointerDirection",v9);L.addGetterSetter(lo,"pointerWidth",0,Ut());L.addGetterSetter(lo,"pointerHeight",0,Ut());L.addGetterSetter(lo,"cornerRadius",0,I2(4));let Ah=class extends Ct{_sceneFunc(t){const a=this.cornerRadius(),i=this.width(),o=this.height();t.beginPath(),a?tt.drawRoundedRectPath(t,i,o,a):t.rect(0,0,i,o),t.closePath(),t.fillStrokeShape(this)}};Ah.prototype.className="Rect";$a(Ah);L.addGetterSetter(Ah,"cornerRadius",0,I2(4));class uu extends Ct{_sceneFunc(t){const a=this._getPoints(),i=this.radius(),o=this.sides(),h=this.cornerRadius();if(t.beginPath(),h)tt.drawRoundedPolygonPath(t,a,o,i,h);else{t.moveTo(a[0].x,a[0].y);for(let d=1;d<a.length;d++)t.lineTo(a[d].x,a[d].y)}t.closePath(),t.fillStrokeShape(this)}_getPoints(){const t=this.attrs.sides,a=this.attrs.radius||0,i=[];for(let o=0;o<t;o++)i.push({x:a*Math.sin(o*2*Math.PI/t),y:-1*a*Math.cos(o*2*Math.PI/t)});return i}getSelfRect(){const t=this._getPoints();let a=t[0].x,i=t[0].x,o=t[0].y,h=t[0].y;return t.forEach(d=>{a=Math.min(a,d.x),i=Math.max(i,d.x),o=Math.min(o,d.y),h=Math.max(h,d.y)}),{x:a,y:o,width:i-a,height:h-o}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}uu.prototype.className="RegularPolygon";uu.prototype._centroid=!0;uu.prototype._attrsAffectingSize=["radius"];$a(uu);L.addGetterSetter(uu,"radius",0,Ut());L.addGetterSetter(uu,"sides",0,Ut());L.addGetterSetter(uu,"cornerRadius",0,I2(4));const R3=Math.PI*2;class io extends Ct{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,R3,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),R3,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}io.prototype.className="Ring";io.prototype._centroid=!0;io.prototype._attrsAffectingSize=["innerRadius","outerRadius"];$a(io);L.addGetterSetter(io,"innerRadius",0,Ut());L.addGetterSetter(io,"outerRadius",0,Ut());class sr extends Ct{constructor(t){super(t),this._updated=!0,this.anim=new Ql(()=>{const a=this._updated;return this._updated=!1,a}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){const a=this.animation(),i=this.frameIndex(),o=i*4,h=this.animations()[a],d=this.frameOffsets(),g=h[o+0],p=h[o+1],b=h[o+2],E=h[o+3],_=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,b,E),t.closePath(),t.fillStrokeShape(this)),_)if(d){const z=d[a],D=i*2;t.drawImage(_,g,p,b,E,z[D+0],z[D+1],b,E)}else t.drawImage(_,g,p,b,E,0,0,b,E)}_hitFunc(t){const a=this.animation(),i=this.frameIndex(),o=i*4,h=this.animations()[a],d=this.frameOffsets(),g=h[o+2],p=h[o+3];if(t.beginPath(),d){const b=d[a],E=i*2;t.rect(b[E+0],b[E+1],g,p)}else t.rect(0,0,g,p);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const t=this.frameIndex(),a=this.animation(),i=this.animations(),o=i[a],h=o.length/4;t<h-1?this.frameIndex(t+1):this.frameIndex(0)}}sr.prototype.className="Sprite";$a(sr);L.addGetterSetter(sr,"animation");L.addGetterSetter(sr,"animations");L.addGetterSetter(sr,"frameOffsets");L.addGetterSetter(sr,"image");L.addGetterSetter(sr,"frameIndex",0,Ut());L.addGetterSetter(sr,"frameRate",17,Ut());L.backCompat(sr,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});class ou extends Ct{_sceneFunc(t){const a=this.innerRadius(),i=this.outerRadius(),o=this.numPoints();t.beginPath(),t.moveTo(0,0-i);for(let h=1;h<o*2;h++){const d=h%2===0?i:a,g=d*Math.sin(h*Math.PI/o),p=-1*d*Math.cos(h*Math.PI/o);t.lineTo(g,p)}t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}ou.prototype.className="Star";ou.prototype._centroid=!0;ou.prototype._attrsAffectingSize=["innerRadius","outerRadius"];$a(ou);L.addGetterSetter(ou,"numPoints",5,Ut());L.addGetterSetter(ou,"innerRadius",0,Ut());L.addGetterSetter(ou,"outerRadius",0,Ut());function tu(s){return[...s].reduce((t,a,i,o)=>{if(new RegExp("\\p{Emoji}","u").test(a)){const h=o[i+1];h&&new RegExp("\\p{Emoji_Modifier}|\\u200D","u").test(h)?(t.push(a+h),o[i+1]=""):t.push(a)}else new RegExp("\\p{Regional_Indicator}{2}","u").test(a+(o[i+1]||""))?t.push(a+o[i+1]):i>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(a)?t[t.length-1]+=a:a&&t.push(a);return t},[])}const Sc="auto",b9="center",I6="inherit",ch="justify",S9="Change.konva",x9="2d",O3="-",P6="left",T9="text",E9="Text",_9="top",M9="bottom",B3="middle",$6="normal",A9="px ",E2=" ",z9="right",H3="rtl",C9="word",w9="char",G3="none",$4="…",tm=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],D9=tm.length;function N9(s){return s.split(",").map(t=>{t=t.trim();const a=t.indexOf(" ")>=0,i=t.indexOf('"')>=0||t.indexOf("'")>=0;return a&&!i&&(t=`"${t}"`),t}).join(", ")}let _2;function td(){return _2||(_2=tt.createCanvasElement().getContext(x9),_2)}function R9(s){s.fillText(this._partialText,this._partialTextX,this._partialTextY)}function O9(s){s.setAttr("miterLimit",2),s.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function B9(s){return s=s||{},!s.fillLinearGradientColorStops&&!s.fillRadialGradientColorStops&&!s.fillPatternImage&&(s.fill=s.fill||"black"),s}let Ga=class extends Ct{constructor(t){super(B9(t)),this._partialTextX=0,this._partialTextY=0;for(let a=0;a<D9;a++)this.on(tm[a]+S9,this._setTextData);this._setTextData()}_sceneFunc(t){var a,i;const o=this.textArr,h=o.length;if(!this.text())return;let d=this.padding(),g=this.fontSize(),p=this.lineHeight()*g,b=this.verticalAlign(),E=this.direction(),_=0,z=this.align(),D=this.getWidth(),C=this.letterSpacing(),H=this.charRenderFunc(),U=this.fill(),B=this.textDecoration(),X=B.indexOf("underline")!==-1,k=B.indexOf("line-through")!==-1,j;E=E===I6?t.direction:E;let nt=p/2,ut=B3;if(!kt.legacyTextRendering){const st=this.measureSize("M");ut="alphabetic";const ot=(a=st.fontBoundingBoxAscent)!==null&&a!==void 0?a:st.actualBoundingBoxAscent,St=(i=st.fontBoundingBoxDescent)!==null&&i!==void 0?i:st.actualBoundingBoxDescent;nt=(ot-St)/2+p/2}for(E===H3&&t.setAttr("direction",E),t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",ut),t.setAttr("textAlign",P6),b===B3?_=(this.getHeight()-h*p-d*2)/2:b===M9&&(_=this.getHeight()-h*p-d*2),t.translate(d,_+d),j=0;j<h;j++){let st=0,ot=0;const St=o[j],Zt=St.text,qt=St.width,Nt=St.lastInParagraph;if(t.save(),z===z9?st+=D-qt-d*2:z===b9&&(st+=(D-qt-d*2)/2),X){t.save(),t.beginPath();const Vt=kt.legacyTextRendering?Math.round(g/2):Math.round(g/4),Et=st,K=nt+ot+Vt;t.moveTo(Et,K);const vt=z===ch&&!Nt?D-d*2:qt;t.lineTo(Et+Math.round(vt),K),t.lineWidth=g/15;const mt=this._getLinearGradient();t.strokeStyle=mt||U,t.stroke(),t.restore()}const $t=st;if(E!==H3&&(C!==0||z===ch||H)){const Vt=Zt.split(" ").length-1,Et=tu(Zt);for(let K=0;K<Et.length;K++){const vt=Et[K];if(vt===" "&&!Nt&&z===ch&&(st+=(D-d*2-qt)/Vt),this._partialTextX=st,this._partialTextY=nt+ot,this._partialText=vt,H){t.save();const Lt=o.slice(0,j).reduce((G,I)=>G+tu(I.text).length,0),xt=K+Lt;H({char:vt,index:xt,x:st,y:nt+ot,lineIndex:j,column:K,isLastInLine:Nt,width:this.measureSize(vt).width,context:t})}t.fillStrokeShape(this),H&&t.restore(),st+=this.measureSize(vt).width+C}}else C!==0&&t.setAttr("letterSpacing",`${C}px`),this._partialTextX=st,this._partialTextY=nt+ot,this._partialText=Zt,t.fillStrokeShape(this);if(k){t.save(),t.beginPath();const Vt=kt.legacyTextRendering?0:-Math.round(g/4),Et=$t;t.moveTo(Et,nt+ot+Vt);const K=z===ch&&!Nt?D-d*2:qt;t.lineTo(Et+Math.round(K),nt+ot+Vt),t.lineWidth=g/15;const vt=this._getLinearGradient();t.strokeStyle=vt||U,t.stroke(),t.restore()}t.restore(),h>1&&(nt+=p)}}_hitFunc(t){const a=this.getWidth(),i=this.getHeight();t.beginPath(),t.rect(0,0,a,i),t.closePath(),t.fillStrokeShape(this)}setText(t){const a=tt._isString(t)?t:t==null?"":t+"";return this._setAttr(T9,a),this}getWidth(){return this.attrs.width===Sc||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Sc||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return tt.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var a,i,o,h,d,g,p,b,E,_,z;let D=td(),C=this.fontSize(),H;D.save(),D.font=this._getContextFont(),H=D.measureText(t),D.restore();const U=C/100;return{actualBoundingBoxAscent:(a=H.actualBoundingBoxAscent)!==null&&a!==void 0?a:71.58203125*U,actualBoundingBoxDescent:(i=H.actualBoundingBoxDescent)!==null&&i!==void 0?i:0,actualBoundingBoxLeft:(o=H.actualBoundingBoxLeft)!==null&&o!==void 0?o:-7.421875*U,actualBoundingBoxRight:(h=H.actualBoundingBoxRight)!==null&&h!==void 0?h:75.732421875*U,alphabeticBaseline:(d=H.alphabeticBaseline)!==null&&d!==void 0?d:0,emHeightAscent:(g=H.emHeightAscent)!==null&&g!==void 0?g:100*U,emHeightDescent:(p=H.emHeightDescent)!==null&&p!==void 0?p:-20*U,fontBoundingBoxAscent:(b=H.fontBoundingBoxAscent)!==null&&b!==void 0?b:91*U,fontBoundingBoxDescent:(E=H.fontBoundingBoxDescent)!==null&&E!==void 0?E:21*U,hangingBaseline:(_=H.hangingBaseline)!==null&&_!==void 0?_:72.80000305175781*U,ideographicBaseline:(z=H.ideographicBaseline)!==null&&z!==void 0?z:-21*U,width:H.width,height:C}}_getContextFont(){return this.fontStyle()+E2+this.fontVariant()+E2+(this.fontSize()+A9)+N9(this.fontFamily())}_addTextLine(t){this.align()===ch&&(t=t.trim());const i=this._getTextWidth(t);return this.textArr.push({text:t,width:i,lastInParagraph:!1})}_getTextWidth(t){const a=this.letterSpacing(),i=t.length;return td().measureText(t).width+a*i}_setTextData(){let t=this.text().split(`
|
|
23
|
-
`),a=+this.fontSize(),i=0,o=this.lineHeight()*a,h=this.attrs.width,d=this.attrs.height,g=h!==Sc&&h!==void 0,p=d!==Sc&&d!==void 0,b=this.padding(),E=h-b*2,_=d-b*2,z=0,D=this.wrap(),C=D!==G3,H=D!==w9&&C,U=this.ellipsis();this.textArr=[],td().font=this._getContextFont();const B=U?this._getTextWidth($4):0;for(let X=0,k=t.length;X<k;++X){let j=t[X],nt=this._getTextWidth(j);if(g&&nt>E)for(;j.length>0;){let ut=0,st=tu(j).length,ot="",St=0;for(;ut<st;){const Zt=ut+st>>>1,qt=tu(j),Nt=qt.slice(0,Zt+1).join(""),$t=this._getTextWidth(Nt);(U&&p&&z+o>_?$t+B:$t)<=E?(ut=Zt+1,ot=Nt,St=$t):st=Zt}if(ot){if(H){const Nt=tu(j),$t=tu(ot),Vt=Nt[$t.length],Et=Vt===E2||Vt===O3;let K;if(Et&&St<=E)K=$t.length;else{const vt=$t.lastIndexOf(E2),mt=$t.lastIndexOf(O3);K=Math.max(vt,mt)+1}K>0&&(ut=K,ot=Nt.slice(0,ut).join(""),St=this._getTextWidth(ot))}if(ot=ot.trimRight(),this._addTextLine(ot),i=Math.max(i,St),z+=o,this._shouldHandleEllipsis(z)){this._tryToAddEllipsisToLastLine();break}if(j=tu(j).slice(ut).join("").trimLeft(),j.length>0&&(nt=this._getTextWidth(j),nt<=E)){this._addTextLine(j),z+=o,i=Math.max(i,nt);break}}else break}else this._addTextLine(j),z+=o,i=Math.max(i,nt),this._shouldHandleEllipsis(z)&&X<k-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),p&&z+o>_)break}this.textHeight=a,this.textWidth=i}_shouldHandleEllipsis(t){const a=+this.fontSize(),i=this.lineHeight()*a,o=this.attrs.height,h=o!==Sc&&o!==void 0,d=this.padding(),g=o-d*2;return!(this.wrap()!==G3)||h&&t+i>g}_tryToAddEllipsisToLastLine(){const t=this.attrs.width,a=t!==Sc&&t!==void 0,i=this.padding(),o=t-i*2,h=this.ellipsis(),d=this.textArr[this.textArr.length-1];!d||!h||(a&&(this._getTextWidth(d.text+$4)<o||(d.text=d.text.slice(0,d.text.length-3))),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(d.text+$4))}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const t=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,a=this.hasShadow();return t&&a?!0:super._useBufferCanvas()}};Ga.prototype._fillFunc=R9;Ga.prototype._strokeFunc=O9;Ga.prototype.className=E9;Ga.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];$a(Ga);L.overWriteSetter(Ga,"width",Fd());L.overWriteSetter(Ga,"height",Fd());L.addGetterSetter(Ga,"direction",I6);L.addGetterSetter(Ga,"fontFamily","Arial");L.addGetterSetter(Ga,"fontSize",12,Ut());L.addGetterSetter(Ga,"fontStyle",$6);L.addGetterSetter(Ga,"fontVariant",$6);L.addGetterSetter(Ga,"padding",0,Ut());L.addGetterSetter(Ga,"align",P6);L.addGetterSetter(Ga,"verticalAlign",_9);L.addGetterSetter(Ga,"lineHeight",1,Ut());L.addGetterSetter(Ga,"wrap",C9);L.addGetterSetter(Ga,"ellipsis",!1,xi());L.addGetterSetter(Ga,"letterSpacing",0,Ut());L.addGetterSetter(Ga,"text","",eo());L.addGetterSetter(Ga,"textDecoration","");L.addGetterSetter(Ga,"charRenderFunc",void 0);const H9="",em="normal";function am(s){s.fillText(this.partialText,0,0)}function nm(s){s.strokeText(this.partialText,0,0)}class G0 extends Ct{constructor(t){super(t),this.dummyCanvas=tt.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return za.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const a=this.pathLength;return t>a?null:za.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=za.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();const a=this.textDecoration(),i=this.fill(),o=this.fontSize(),h=this.glyphInfo,d=a.indexOf("underline")!==-1,g=a.indexOf("line-through")!==-1;d&&t.beginPath();for(let p=0;p<h.length;p++){t.save();const b=h[p].p0;t.translate(b.x,b.y),t.rotate(h[p].rotation),this.partialText=h[p].text,t.fillStrokeShape(this),d&&(p===0&&t.moveTo(0,o/2+1),t.lineTo(h[p].width,o/2+1)),t.restore()}if(d&&(t.strokeStyle=i,t.lineWidth=o/20,t.stroke()),g){t.beginPath();for(let p=0;p<h.length;p++){t.save();const b=h[p].p0;t.translate(b.x,b.y),t.rotate(h[p].rotation),p===0&&t.moveTo(0,0),t.lineTo(h[p].width,0),t.restore()}t.strokeStyle=i,t.lineWidth=o/20,t.stroke()}t.restore()}_hitFunc(t){t.beginPath();const a=this.glyphInfo;if(a.length>=1){const i=a[0].p0;t.moveTo(i.x,i.y)}for(let i=0;i<a.length;i++){const o=a[i].p1;t.lineTo(o.x,o.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return tt.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(t){return Ga.prototype.setText.call(this,t)}_getContextFont(){return Ga.prototype._getContextFont.call(this)}_getTextSize(t){const i=this.dummyCanvas.getContext("2d");i.save(),i.font=this._getContextFont();const o=i.measureText(t);return i.restore(),{width:o.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){const t=tu(this.text()),a=[];let i=0;for(let _=0;_<t.length;_++)a.push({char:t[_],width:this._getTextSize(t[_]).width}),i+=a[_].width;const{height:o}=this._getTextSize(this.attrs.text);if(this.textWidth=i,this.textHeight=o,this.glyphInfo=[],!this.attrs.data)return null;const h=this.letterSpacing(),d=this.align(),g=this.kerningFunc(),p=Math.max(this.textWidth+((this.attrs.text||"").length-1)*h,0);let b=0;d==="center"&&(b=Math.max(0,this.pathLength/2-p/2)),d==="right"&&(b=Math.max(0,this.pathLength-p));let E=b;for(let _=0;_<a.length;_++){const z=this._getPointAtLength(E);if(!z)return;const D=a[_].char;let C=a[_].width+h;if(D===" "&&d==="justify"){const j=this.text().split(" ").length-1;C+=(this.pathLength-p)/j}const H=this._getPointAtLength(E+C);if(!H)return;const U=za.getLineLength(z.x,z.y,H.x,H.y);let B=0;if(g)try{B=g(a[_-1].char,D)*this.fontSize()}catch{B=0}z.x+=B,H.x+=B,this.textWidth+=B;const X=za.getPointOnLine(B+U/2,z.x,z.y,H.x,H.y),k=Math.atan2(H.y-z.y,H.x-z.x);this.glyphInfo.push({transposeX:X.x,transposeY:X.y,text:t[_],rotation:k,p0:z,p1:H,width:U}),E+=C}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};const t=[];this.glyphInfo.forEach(function(b){t.push(b.p0.x),t.push(b.p0.y),t.push(b.p1.x),t.push(b.p1.y)});let a=t[0]||0,i=t[0]||0,o=t[1]||0,h=t[1]||0,d,g;for(let b=0;b<t.length/2;b++)d=t[b*2],g=t[b*2+1],a=Math.min(a,d),i=Math.max(i,d),o=Math.min(o,g),h=Math.max(h,g);const p=this.fontSize();return{x:a-p/2,y:o-p/2,width:i-a+p,height:h-o+p}}destroy(){return tt.releaseCanvas(this.dummyCanvas),super.destroy()}}G0.prototype._fillFunc=am;G0.prototype._strokeFunc=nm;G0.prototype._fillFuncHit=am;G0.prototype._strokeFuncHit=nm;G0.prototype.className="TextPath";G0.prototype._attrsAffectingSize=["text","fontSize","data"];$a(G0);L.addGetterSetter(G0,"data");L.addGetterSetter(G0,"fontFamily","Arial");L.addGetterSetter(G0,"fontSize",12,Ut());L.addGetterSetter(G0,"fontStyle",em);L.addGetterSetter(G0,"align","left");L.addGetterSetter(G0,"letterSpacing",0,Ut());L.addGetterSetter(G0,"textBaseline","middle");L.addGetterSetter(G0,"fontVariant",em);L.addGetterSetter(G0,"text",H9);L.addGetterSetter(G0,"textDecoration","");L.addGetterSetter(G0,"kerningFunc",void 0);const lm="tr-konva",G9=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(s=>s+`.${lm}`).join(" "),U3="nodesRect",U9=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange","draggableChange"],q9={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},L9="ontouchstart"in kt._global;function k9(s,t,a){if(s==="rotater")return a;t+=tt.degToRad(q9[s]||0);const i=(tt.radToDeg(t)%360+360)%360;return tt._inRange(i,315+22.5,360)||tt._inRange(i,0,22.5)?"ns-resize":tt._inRange(i,45-22.5,45+22.5)?"nesw-resize":tt._inRange(i,90-22.5,90+22.5)?"ew-resize":tt._inRange(i,135-22.5,135+22.5)?"nwse-resize":tt._inRange(i,180-22.5,180+22.5)?"ns-resize":tt._inRange(i,225-22.5,225+22.5)?"nesw-resize":tt._inRange(i,270-22.5,270+22.5)?"ew-resize":tt._inRange(i,315-22.5,315+22.5)?"nwse-resize":(tt.error("Transformer has unknown angle for cursor detection: "+i),"pointer")}const X2=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function Y9(s){return{x:s.x+s.width/2*Math.cos(s.rotation)+s.height/2*Math.sin(-s.rotation),y:s.y+s.height/2*Math.cos(s.rotation)+s.width/2*Math.sin(s.rotation)}}function im(s,t,a){const i=a.x+(s.x-a.x)*Math.cos(t)-(s.y-a.y)*Math.sin(t),o=a.y+(s.x-a.x)*Math.sin(t)+(s.y-a.y)*Math.cos(t);return{...s,rotation:s.rotation+t,x:i,y:o}}function X9(s,t){const a=Y9(s);return im(s,t,a)}function j9(s,t,a){let i=t;for(let o=0;o<s.length;o++){const h=kt.getAngle(s[o]),d=Math.abs(h-t)%(Math.PI*2);Math.min(d,Math.PI*2-d)<a&&(i=h)}return i}let Bd=0;class Ke extends _c{constructor(t){super(t),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(G9,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return tt.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([t])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return lm+this._id}setNodes(t=[]){this._nodes&&this._nodes.length&&this.detach();const a=t.filter(o=>o.isAncestorOf(this)?(tt.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=t=a,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(o=>{const h=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()};if(o._attrsAffectingSize.length){const d=o._attrsAffectingSize.map(g=>g+"Change."+this._getEventNamespace()).join(" ");o.on(d,h)}o.on(U9.map(d=>d+`.${this._getEventNamespace()}`).join(" "),h),o.on(`absoluteTransformChange.${this._getEventNamespace()}`,h),this._proxyDrag(o)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(t){let a;t.on(`dragstart.${this._getEventNamespace()}`,i=>{a=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(i,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,i=>{if(!a)return;const o=t.getAbsolutePosition(),h=o.x-a.x,d=o.y-a.y;this.nodes().forEach(g=>{if(g===t||g.isDragging())return;const p=g.getAbsolutePosition();g.setAbsolutePosition({x:p.x+h,y:p.y+d}),g.startDrag(i)}),a=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(U3),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(U3,this.__getNodeRect)}__getNodeShape(t,a=this.rotation(),i){const o=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),h=t.getAbsoluteScale(i),d=t.getAbsolutePosition(i),g=o.x*h.x-t.offsetX()*h.x,p=o.y*h.y-t.offsetY()*h.y,b=(kt.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),E={x:d.x+g*Math.cos(b)+p*Math.sin(-b),y:d.y+p*Math.cos(b)+g*Math.sin(b),width:o.width*h.x,height:o.height*h.y,rotation:b};return im(E,-kt.getAngle(a),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const a=[];this.nodes().map(b=>{const E=b.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),_=[{x:E.x,y:E.y},{x:E.x+E.width,y:E.y},{x:E.x+E.width,y:E.y+E.height},{x:E.x,y:E.y+E.height}],z=b.getAbsoluteTransform();_.forEach(function(D){const C=z.point(D);a.push(C)})});const i=new sl;i.rotate(-kt.getAngle(this.rotation()));let o=1/0,h=1/0,d=-1/0,g=-1/0;a.forEach(function(b){const E=i.point(b);o===void 0&&(o=d=E.x,h=g=E.y),o=Math.min(o,E.x),h=Math.min(h,E.y),d=Math.max(d,E.x),g=Math.max(g,E.y)}),i.invert();const p=i.point({x:o,y:h});return{x:p.x,y:p.y,width:d-o,height:g-h,rotation:kt.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),X2.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){const a=new Ah({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:L9?10:"auto"}),i=this;a.on("mousedown touchstart",function(o){i._handleMouseDown(o)}),a.on("dragstart",o=>{a.stopDrag(),o.cancelBubble=!0}),a.on("dragend",o=>{o.cancelBubble=!0}),a.on("mouseenter",()=>{const o=kt.getAngle(this.rotation()),h=this.rotateAnchorCursor(),d=k9(t,o,h);a.getStage().content&&(a.getStage().content.style.cursor=d),this._cursorChange=!0}),a.on("mouseout",()=>{a.getStage().content&&(a.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(a)}_createBack(){const t=new Ct({name:"back",width:0,height:0,sceneFunc(a,i){const o=i.getParent(),h=o.padding();a.beginPath(),a.rect(-h,-h,i.width()+h*2,i.height()+h*2),a.moveTo(i.width()/2,-h),o.rotateEnabled()&&o.rotateLineVisible()&&a.lineTo(i.width()/2,-o.rotateAnchorOffset()*tt._sign(i.height())-h),a.fillStrokeShape(i)},hitFunc:(a,i)=>{if(!this.shouldOverdrawWholeArea())return;const o=this.padding();a.beginPath(),a.rect(-o,-o,i.width()+o*2,i.height()+o*2),a.fillStrokeShape(i)}});this.add(t),this._proxyDrag(t),t.on("dragstart",a=>{a.cancelBubble=!0}),t.on("dragmove",a=>{a.cancelBubble=!0}),t.on("dragend",a=>{a.cancelBubble=!0}),this.on("dragmove",a=>{this.update()})}_handleMouseDown(t){if(this._transforming)return;this._movingAnchorName=t.target.name().split(" ")[0];const a=this._getNodeRect(),i=a.width,o=a.height,h=Math.sqrt(Math.pow(i,2)+Math.pow(o,2));this.sin=Math.abs(o/h),this.cos=Math.abs(i/h),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const d=t.target.getAbsolutePosition(),g=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:g.x-d.x,y:g.y-d.y},Bd++,this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(p=>{p._fire("transformstart",{evt:t.evt,target:p})})}_handleMouseMove(t){let a,i,o;const h=this.findOne("."+this._movingAnchorName),d=h.getStage();d.setPointersPositions(t);const g=d.getPointerPosition();let p={x:g.x-this._anchorDragOffset.x,y:g.y-this._anchorDragOffset.y};const b=h.getAbsolutePosition();this.anchorDragBoundFunc()&&(p=this.anchorDragBoundFunc()(b,p,t)),h.setAbsolutePosition(p);const E=h.getAbsolutePosition();if(b.x===E.x&&b.y===E.y)return;if(this._movingAnchorName==="rotater"){const X=this._getNodeRect();a=h.x()-X.width/2,i=-h.y()+X.height/2;let k=Math.atan2(-i,a)+Math.PI/2;X.height<0&&(k-=Math.PI);const nt=kt.getAngle(this.rotation())+k,ut=kt.getAngle(this.rotationSnapTolerance()),ot=j9(this.rotationSnaps(),nt,ut)-X.rotation,St=X9(X,ot);this._fitNodesInto(St,t);return}const _=this.shiftBehavior();let z;_==="inverted"?z=this.keepRatio()&&!t.shiftKey:_==="none"?z=this.keepRatio():z=this.keepRatio()||t.shiftKey;let D=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(z){const X=D?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};o=Math.sqrt(Math.pow(X.x-h.x(),2)+Math.pow(X.y-h.y(),2));const k=this.findOne(".top-left").x()>X.x?-1:1,j=this.findOne(".top-left").y()>X.y?-1:1;a=o*this.cos*k,i=o*this.sin*j,this.findOne(".top-left").x(X.x-a),this.findOne(".top-left").y(X.y-i)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(h.y());else if(this._movingAnchorName==="top-right"){if(z){const X=D?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};o=Math.sqrt(Math.pow(h.x()-X.x,2)+Math.pow(X.y-h.y(),2));const k=this.findOne(".top-right").x()<X.x?-1:1,j=this.findOne(".top-right").y()>X.y?-1:1;a=o*this.cos*k,i=o*this.sin*j,this.findOne(".top-right").x(X.x+a),this.findOne(".top-right").y(X.y-i)}var C=h.position();this.findOne(".top-left").y(C.y),this.findOne(".bottom-right").x(C.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(h.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(h.x());else if(this._movingAnchorName==="bottom-left"){if(z){const X=D?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};o=Math.sqrt(Math.pow(X.x-h.x(),2)+Math.pow(h.y()-X.y,2));const k=X.x<h.x()?-1:1,j=h.y()<X.y?-1:1;a=o*this.cos*k,i=o*this.sin*j,h.x(X.x-a),h.y(X.y+i)}C=h.position(),this.findOne(".top-left").x(C.x),this.findOne(".bottom-right").y(C.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(h.y());else if(this._movingAnchorName==="bottom-right"){if(z){const X=D?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};o=Math.sqrt(Math.pow(h.x()-X.x,2)+Math.pow(h.y()-X.y,2));const k=this.findOne(".bottom-right").x()<X.x?-1:1,j=this.findOne(".bottom-right").y()<X.y?-1:1;a=o*this.cos*k,i=o*this.sin*j,this.findOne(".bottom-right").x(X.x+a),this.findOne(".bottom-right").y(X.y+i)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));if(D=this.centeredScaling()||t.altKey,D){const X=this.findOne(".top-left"),k=this.findOne(".bottom-right"),j=X.x(),nt=X.y(),ut=this.getWidth()-k.x(),st=this.getHeight()-k.y();k.move({x:-j,y:-nt}),X.move({x:ut,y:st})}const H=this.findOne(".top-left").getAbsolutePosition();a=H.x,i=H.y;const U=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),B=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:a,y:i,width:U,height:B,rotation:kt.getAngle(this.rotation())},t)}_handleMouseUp(t){this._removeEvents(t)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(t){var a;if(this._transforming){this._transforming=!1,typeof window<"u"&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));const i=this.getNode();Bd--,this._fire("transformend",{evt:t,target:i}),(a=this.getLayer())===null||a===void 0||a.batchDraw(),i&&this._nodes.forEach(o=>{var h;o._fire("transformend",{evt:t,target:o}),(h=o.getLayer())===null||h===void 0||h.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(t,a){const i=this._getNodeRect(),o=1;if(tt._inRange(t.width,-this.padding()*2-o,o)){this.update();return}if(tt._inRange(t.height,-this.padding()*2-o,o)){this.update();return}const h=new sl;if(h.rotate(kt.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const z=h.point({x:-this.padding()*2,y:0});t.x+=z.x,t.y+=z.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=z.x,this._anchorDragOffset.y-=z.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const z=h.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=z.x,this._anchorDragOffset.y-=z.y,t.width+=this.padding()*2}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const z=h.point({x:0,y:-this.padding()*2});t.x+=z.x,t.y+=z.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=z.x,this._anchorDragOffset.y-=z.y,t.height+=this.padding()*2}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const z=h.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=z.x,this._anchorDragOffset.y-=z.y,t.height+=this.padding()*2}if(this.boundBoxFunc()){const z=this.boundBoxFunc()(i,t);z?t=z:tt.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const d=1e7,g=new sl;g.translate(i.x,i.y),g.rotate(i.rotation),g.scale(i.width/d,i.height/d);const p=new sl,b=t.width/d,E=t.height/d;this.flipEnabled()===!1?(p.translate(t.x,t.y),p.rotate(t.rotation),p.translate(t.width<0?t.width:0,t.height<0?t.height:0),p.scale(Math.abs(b),Math.abs(E))):(p.translate(t.x,t.y),p.rotate(t.rotation),p.scale(b,E));const _=p.multiply(g.invert());this._nodes.forEach(z=>{var D;if(!z.getStage())return;const C=z.getParent().getAbsoluteTransform(),H=z.getTransform().copy();H.translate(z.offsetX(),z.offsetY());const U=new sl;U.multiply(C.copy().invert()).multiply(_).multiply(C).multiply(H);const B=U.decompose();z.setAttrs(B),(D=z.getLayer())===null||D===void 0||D.batchDraw()}),this.rotation(tt._getRotation(t.rotation)),this._nodes.forEach(z=>{this._fire("transform",{evt:a,target:z}),z._fire("transform",{evt:a,target:z})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,a){this.findOne(t).setAttrs(a)}update(){var t;const a=this._getNodeRect();this.rotation(tt._getRotation(a.rotation));const i=a.width,o=a.height,h=this.enabledAnchors(),d=this.resizeEnabled(),g=this.padding(),p=this.anchorSize(),b=this.find("._anchor");b.forEach(_=>{_.setAttrs({width:p,height:p,offsetX:p/2,offsetY:p/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:p/2+g,offsetY:p/2+g,visible:d&&h.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:i/2,y:0,offsetY:p/2+g,visible:d&&h.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:i,y:0,offsetX:p/2-g,offsetY:p/2+g,visible:d&&h.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:o/2,offsetX:p/2+g,visible:d&&h.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:i,y:o/2,offsetX:p/2-g,visible:d&&h.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:o,offsetX:p/2+g,offsetY:p/2-g,visible:d&&h.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:i/2,y:o,offsetY:p/2-g,visible:d&&h.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:i,y:o,offsetX:p/2-g,offsetY:p/2-g,visible:d&&h.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:i/2,y:-this.rotateAnchorOffset()*tt._sign(o)-g,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:i,height:o,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),draggable:this.nodes().some(_=>_.draggable()),x:0,y:0});const E=this.anchorStyleFunc();E&&b.forEach(_=>{E(_)}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),_c.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Gt.prototype.toObject.call(this)}clone(t){return Gt.prototype.clone.call(this,t)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}Ke.isTransforming=()=>Bd>0;function V9(s){return s instanceof Array||tt.warn("enabledAnchors value should be an array"),s instanceof Array&&s.forEach(function(t){X2.indexOf(t)===-1&&tt.warn("Unknown anchor name: "+t+". Available names are: "+X2.join(", "))}),s||[]}Ke.prototype.className="Transformer";$a(Ke);L.addGetterSetter(Ke,"enabledAnchors",X2,V9);L.addGetterSetter(Ke,"flipEnabled",!0,xi());L.addGetterSetter(Ke,"resizeEnabled",!0);L.addGetterSetter(Ke,"anchorSize",10,Ut());L.addGetterSetter(Ke,"rotateEnabled",!0);L.addGetterSetter(Ke,"rotateLineVisible",!0);L.addGetterSetter(Ke,"rotationSnaps",[]);L.addGetterSetter(Ke,"rotateAnchorOffset",50,Ut());L.addGetterSetter(Ke,"rotateAnchorCursor","crosshair");L.addGetterSetter(Ke,"rotationSnapTolerance",5,Ut());L.addGetterSetter(Ke,"borderEnabled",!0);L.addGetterSetter(Ke,"anchorStroke","rgb(0, 161, 255)");L.addGetterSetter(Ke,"anchorStrokeWidth",1,Ut());L.addGetterSetter(Ke,"anchorFill","white");L.addGetterSetter(Ke,"anchorCornerRadius",0,Ut());L.addGetterSetter(Ke,"borderStroke","rgb(0, 161, 255)");L.addGetterSetter(Ke,"borderStrokeWidth",1,Ut());L.addGetterSetter(Ke,"borderDash");L.addGetterSetter(Ke,"keepRatio",!0);L.addGetterSetter(Ke,"shiftBehavior","default");L.addGetterSetter(Ke,"centeredScaling",!1);L.addGetterSetter(Ke,"ignoreStroke",!1);L.addGetterSetter(Ke,"padding",0,Ut());L.addGetterSetter(Ke,"nodes");L.addGetterSetter(Ke,"node");L.addGetterSetter(Ke,"boundBoxFunc");L.addGetterSetter(Ke,"anchorDragBoundFunc");L.addGetterSetter(Ke,"anchorStyleFunc");L.addGetterSetter(Ke,"shouldOverdrawWholeArea",!1);L.addGetterSetter(Ke,"useSingleNodeRotation",!0);L.backCompat(Ke,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});class $r extends Ct{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,kt.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}$r.prototype.className="Wedge";$r.prototype._centroid=!0;$r.prototype._attrsAffectingSize=["radius"];$a($r);L.addGetterSetter($r,"radius",0,Ut());L.addGetterSetter($r,"angle",0,Ut());L.addGetterSetter($r,"clockwise",!1);L.backCompat($r,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});function q3(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const Q9=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],K9=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function Z9(s,t){const a=s.data,i=s.width,o=s.height;let h,d,g,p,b,E,_,z,D,C,H,U,B,X,k,j,nt,ut,st,ot;const St=t+t+1,Zt=i-1,qt=o-1,Nt=t+1,$t=Nt*(Nt+1)/2,Vt=new q3,Et=Q9[t],K=K9[t];let vt=null,mt=Vt,Lt=null,xt=null;for(let G=1;G<St;G++)mt=mt.next=new q3,G===Nt&&(vt=mt);mt.next=Vt,g=d=0;for(let G=0;G<o;G++){U=B=X=k=p=b=E=_=0,z=Nt*(j=a[d]),D=Nt*(nt=a[d+1]),C=Nt*(ut=a[d+2]),H=Nt*(st=a[d+3]),p+=$t*j,b+=$t*nt,E+=$t*ut,_+=$t*st,mt=Vt;for(let I=0;I<Nt;I++)mt.r=j,mt.g=nt,mt.b=ut,mt.a=st,mt=mt.next;for(let I=1;I<Nt;I++)h=d+((Zt<I?Zt:I)<<2),p+=(mt.r=j=a[h])*(ot=Nt-I),b+=(mt.g=nt=a[h+1])*ot,E+=(mt.b=ut=a[h+2])*ot,_+=(mt.a=st=a[h+3])*ot,U+=j,B+=nt,X+=ut,k+=st,mt=mt.next;Lt=Vt,xt=vt;for(let I=0;I<i;I++)a[d+3]=st=_*Et>>K,st!==0?(st=255/st,a[d]=(p*Et>>K)*st,a[d+1]=(b*Et>>K)*st,a[d+2]=(E*Et>>K)*st):a[d]=a[d+1]=a[d+2]=0,p-=z,b-=D,E-=C,_-=H,z-=Lt.r,D-=Lt.g,C-=Lt.b,H-=Lt.a,h=g+((h=I+t+1)<Zt?h:Zt)<<2,U+=Lt.r=a[h],B+=Lt.g=a[h+1],X+=Lt.b=a[h+2],k+=Lt.a=a[h+3],p+=U,b+=B,E+=X,_+=k,Lt=Lt.next,z+=j=xt.r,D+=nt=xt.g,C+=ut=xt.b,H+=st=xt.a,U-=j,B-=nt,X-=ut,k-=st,xt=xt.next,d+=4;g+=i}for(let G=0;G<i;G++){B=X=k=U=b=E=_=p=0,d=G<<2,z=Nt*(j=a[d]),D=Nt*(nt=a[d+1]),C=Nt*(ut=a[d+2]),H=Nt*(st=a[d+3]),p+=$t*j,b+=$t*nt,E+=$t*ut,_+=$t*st,mt=Vt;for(let gt=0;gt<Nt;gt++)mt.r=j,mt.g=nt,mt.b=ut,mt.a=st,mt=mt.next;let I=i;for(let gt=1;gt<=t;gt++)d=I+G<<2,p+=(mt.r=j=a[d])*(ot=Nt-gt),b+=(mt.g=nt=a[d+1])*ot,E+=(mt.b=ut=a[d+2])*ot,_+=(mt.a=st=a[d+3])*ot,U+=j,B+=nt,X+=ut,k+=st,mt=mt.next,gt<qt&&(I+=i);d=G,Lt=Vt,xt=vt;for(let gt=0;gt<o;gt++)h=d<<2,a[h+3]=st=_*Et>>K,st>0?(st=255/st,a[h]=(p*Et>>K)*st,a[h+1]=(b*Et>>K)*st,a[h+2]=(E*Et>>K)*st):a[h]=a[h+1]=a[h+2]=0,p-=z,b-=D,E-=C,_-=H,z-=Lt.r,D-=Lt.g,C-=Lt.b,H-=Lt.a,h=G+((h=gt+Nt)<qt?h:qt)*i<<2,p+=U+=Lt.r=a[h],b+=B+=Lt.g=a[h+1],E+=X+=Lt.b=a[h+2],_+=k+=Lt.a=a[h+3],Lt=Lt.next,z+=j=xt.r,D+=nt=xt.g,C+=ut=xt.b,H+=st=xt.a,U-=j,B-=nt,X-=ut,k-=st,xt=xt.next,d+=i}}const J9=function(t){const a=Math.round(this.blurRadius());a>0&&Z9(t,a)};L.addGetterSetter(Gt,"blurRadius",0,Ut(),L.afterSetFilter);const F9=function(s){const t=this.brightness()*255,a=s.data,i=a.length;for(let o=0;o<i;o+=4)a[o]+=t,a[o+1]+=t,a[o+2]+=t};L.addGetterSetter(Gt,"brightness",0,Ut(),L.afterSetFilter);const W9=function(s){const t=this.brightness(),a=s.data,i=a.length;for(let o=0;o<i;o+=4)a[o]=Math.min(255,a[o]*t),a[o+1]=Math.min(255,a[o+1]*t),a[o+2]=Math.min(255,a[o+2]*t)},I9=function(s){const t=Math.pow((this.contrast()+100)/100,2),a=s.data,i=a.length;let o=150,h=150,d=150;for(let g=0;g<i;g+=4)o=a[g],h=a[g+1],d=a[g+2],o/=255,o-=.5,o*=t,o+=.5,o*=255,h/=255,h-=.5,h*=t,h+=.5,h*=255,d/=255,d-=.5,d*=t,d+=.5,d*=255,o=o<0?0:o>255?255:o,h=h<0?0:h>255?255:h,d=d<0?0:d>255?255:d,a[g]=o,a[g+1]=h,a[g+2]=d};L.addGetterSetter(Gt,"contrast",0,Ut(),L.afterSetFilter);const P9=function(s){var t,a,i,o,h,d,g,p,b;const E=s.data,_=s.width,z=s.height,D=Math.min(1,Math.max(0,(a=(t=this.embossStrength)===null||t===void 0?void 0:t.call(this))!==null&&a!==void 0?a:.5)),C=Math.min(1,Math.max(0,(o=(i=this.embossWhiteLevel)===null||i===void 0?void 0:i.call(this))!==null&&o!==void 0?o:.5)),U=(g={"top-left":315,top:270,"top-right":225,right:180,"bottom-right":135,bottom:90,"bottom-left":45,left:0}[(d=(h=this.embossDirection)===null||h===void 0?void 0:h.call(this))!==null&&d!==void 0?d:"top-left"])!==null&&g!==void 0?g:315,B=!!((b=(p=this.embossBlend)===null||p===void 0?void 0:p.call(this))!==null&&b!==void 0&&b),X=D*10,k=C*255,j=U*Math.PI/180,nt=Math.cos(j),ut=Math.sin(j),st=128/1020*X,ot=new Uint8ClampedArray(E),St=new Float32Array(_*z);for(let Vt=0,Et=0;Et<E.length;Et+=4,Vt++)St[Vt]=.2126*ot[Et]+.7152*ot[Et+1]+.0722*ot[Et+2];const Zt=[-1,0,1,-2,0,2,-1,0,1],qt=[-1,-2,-1,0,0,0,1,2,1],Nt=[-_-1,-_,-_+1,-1,0,1,_-1,_,_+1],$t=Vt=>Vt<0?0:Vt>255?255:Vt;for(let Vt=1;Vt<z-1;Vt++)for(let Et=1;Et<_-1;Et++){const K=Vt*_+Et;let vt=0,mt=0;vt+=St[K+Nt[0]]*Zt[0],mt+=St[K+Nt[0]]*qt[0],vt+=St[K+Nt[1]]*Zt[1],mt+=St[K+Nt[1]]*qt[1],vt+=St[K+Nt[2]]*Zt[2],mt+=St[K+Nt[2]]*qt[2],vt+=St[K+Nt[3]]*Zt[3],mt+=St[K+Nt[3]]*qt[3],vt+=St[K+Nt[5]]*Zt[5],mt+=St[K+Nt[5]]*qt[5],vt+=St[K+Nt[6]]*Zt[6],mt+=St[K+Nt[6]]*qt[6],vt+=St[K+Nt[7]]*Zt[7],mt+=St[K+Nt[7]]*qt[7],vt+=St[K+Nt[8]]*Zt[8],mt+=St[K+Nt[8]]*qt[8];const Lt=nt*vt+ut*mt,xt=$t(k+Lt*st),G=K*4;if(B){const I=xt-k;E[G]=$t(ot[G]+I),E[G+1]=$t(ot[G+1]+I),E[G+2]=$t(ot[G+2]+I),E[G+3]=ot[G+3]}else E[G]=E[G+1]=E[G+2]=xt,E[G+3]=ot[G+3]}for(let Vt=0;Vt<_;Vt++){let Et=Vt*4,K=((z-1)*_+Vt)*4;E[Et]=ot[Et],E[Et+1]=ot[Et+1],E[Et+2]=ot[Et+2],E[Et+3]=ot[Et+3],E[K]=ot[K],E[K+1]=ot[K+1],E[K+2]=ot[K+2],E[K+3]=ot[K+3]}for(let Vt=1;Vt<z-1;Vt++){let Et=Vt*_*4,K=(Vt*_+(_-1))*4;E[Et]=ot[Et],E[Et+1]=ot[Et+1],E[Et+2]=ot[Et+2],E[Et+3]=ot[Et+3],E[K]=ot[K],E[K+1]=ot[K+1],E[K+2]=ot[K+2],E[K+3]=ot[K+3]}return s};L.addGetterSetter(Gt,"embossStrength",.5,Ut(),L.afterSetFilter);L.addGetterSetter(Gt,"embossWhiteLevel",.5,Ut(),L.afterSetFilter);L.addGetterSetter(Gt,"embossDirection","top-left",void 0,L.afterSetFilter);L.addGetterSetter(Gt,"embossBlend",!1,void 0,L.afterSetFilter);function ed(s,t,a,i,o){const h=a-t,d=o-i;if(h===0)return i+d/2;if(d===0)return i;let g=(s-t)/h;return g=d*g+i,g}const $9=function(s){const t=s.data,a=t.length;let i=t[0],o=i,h,d=t[1],g=d,p,b=t[2],E=b,_;const z=this.enhance();if(z===0)return;for(let k=0;k<a;k+=4)h=t[k+0],h<i?i=h:h>o&&(o=h),p=t[k+1],p<d?d=p:p>g&&(g=p),_=t[k+2],_<b?b=_:_>E&&(E=_);o===i&&(o=255,i=0),g===d&&(g=255,d=0),E===b&&(E=255,b=0);let D,C,H,U,B,X;if(z>0)D=o+z*(255-o),C=i-z*(i-0),H=g+z*(255-g),U=d-z*(d-0),B=E+z*(255-E),X=b-z*(b-0);else{const k=(o+i)*.5;D=o+z*(o-k),C=i+z*(i-k);const j=(g+d)*.5;H=g+z*(g-j),U=d+z*(d-j);const nt=(E+b)*.5;B=E+z*(E-nt),X=b+z*(b-nt)}for(let k=0;k<a;k+=4)t[k+0]=ed(t[k+0],i,o,C,D),t[k+1]=ed(t[k+1],d,g,U,H),t[k+2]=ed(t[k+2],b,E,X,B)};L.addGetterSetter(Gt,"enhance",0,Ut(),L.afterSetFilter);const tg=function(s){const t=s.data,a=t.length;for(let i=0;i<a;i+=4){const o=.34*t[i]+.5*t[i+1]+.16*t[i+2];t[i]=o,t[i+1]=o,t[i+2]=o}};L.addGetterSetter(Gt,"hue",0,Ut(),L.afterSetFilter);L.addGetterSetter(Gt,"saturation",0,Ut(),L.afterSetFilter);L.addGetterSetter(Gt,"luminance",0,Ut(),L.afterSetFilter);const eg=function(s){const t=s.data,a=t.length,i=1,o=Math.pow(2,this.saturation()),h=Math.abs(this.hue()+360)%360,d=this.luminance()*127,g=i*o*Math.cos(h*Math.PI/180),p=i*o*Math.sin(h*Math.PI/180),b=.299*i+.701*g+.167*p,E=.587*i-.587*g+.33*p,_=.114*i-.114*g-.497*p,z=.299*i-.299*g-.328*p,D=.587*i+.413*g+.035*p,C=.114*i-.114*g+.293*p,H=.299*i-.3*g+1.25*p,U=.587*i-.586*g-1.05*p,B=.114*i+.886*g-.2*p;let X,k,j,nt;for(let ut=0;ut<a;ut+=4)X=t[ut+0],k=t[ut+1],j=t[ut+2],nt=t[ut+3],t[ut+0]=b*X+E*k+_*j+d,t[ut+1]=z*X+D*k+C*j+d,t[ut+2]=H*X+U*k+B*j+d,t[ut+3]=nt},ag=function(s){const t=s.data,a=t.length,i=Math.pow(2,this.value()),o=Math.pow(2,this.saturation()),h=Math.abs(this.hue()+360)%360,d=i*o*Math.cos(h*Math.PI/180),g=i*o*Math.sin(h*Math.PI/180),p=.299*i+.701*d+.167*g,b=.587*i-.587*d+.33*g,E=.114*i-.114*d-.497*g,_=.299*i-.299*d-.328*g,z=.587*i+.413*d+.035*g,D=.114*i-.114*d+.293*g,C=.299*i-.3*d+1.25*g,H=.587*i-.586*d-1.05*g,U=.114*i+.886*d-.2*g;for(let B=0;B<a;B+=4){const X=t[B+0],k=t[B+1],j=t[B+2],nt=t[B+3];t[B+0]=p*X+b*k+E*j,t[B+1]=_*X+z*k+D*j,t[B+2]=C*X+H*k+U*j,t[B+3]=nt}};L.addGetterSetter(Gt,"hue",0,Ut(),L.afterSetFilter);L.addGetterSetter(Gt,"saturation",0,Ut(),L.afterSetFilter);L.addGetterSetter(Gt,"value",0,Ut(),L.afterSetFilter);const ng=function(s){const t=s.data,a=t.length;for(let i=0;i<a;i+=4)t[i]=255-t[i],t[i+1]=255-t[i+1],t[i+2]=255-t[i+2]},lg=function(s,t,a){const i=s.data,o=t.data,h=s.width,d=s.height,g=a.polarCenterX||h/2,p=a.polarCenterY||d/2;let b=Math.sqrt(g*g+p*p),E=h-g,_=d-p;const z=Math.sqrt(E*E+_*_);b=z>b?z:b;const D=d,C=h,H=360/C*Math.PI/180;for(let U=0;U<C;U+=1){const B=Math.sin(U*H),X=Math.cos(U*H);for(let k=0;k<D;k+=1){E=Math.floor(g+b*k/D*X),_=Math.floor(p+b*k/D*B);let j=(_*h+E)*4;const nt=i[j+0],ut=i[j+1],st=i[j+2],ot=i[j+3];j=(U+k*h)*4,o[j+0]=nt,o[j+1]=ut,o[j+2]=st,o[j+3]=ot}}},ig=function(s,t,a){const i=s.data,o=t.data,h=s.width,d=s.height,g=a.polarCenterX||h/2,p=a.polarCenterY||d/2;let b=Math.sqrt(g*g+p*p),E=h-g,_=d-p;const z=Math.sqrt(E*E+_*_);b=z>b?z:b;const D=d,C=h,H=0;let U,B;for(E=0;E<h;E+=1)for(_=0;_<d;_+=1){const X=E-g,k=_-p,j=Math.sqrt(X*X+k*k)*D/b;let nt=(Math.atan2(k,X)*180/Math.PI+360+H)%360;nt=nt*C/360,U=Math.floor(nt),B=Math.floor(j);let ut=(B*h+U)*4;const st=i[ut+0],ot=i[ut+1],St=i[ut+2],Zt=i[ut+3];ut=(_*h+E)*4,o[ut+0]=st,o[ut+1]=ot,o[ut+2]=St,o[ut+3]=Zt}},rg=function(s){const t=s.width,a=s.height;let i,o,h,d,g,p,b,E,_,z,D=Math.round(this.kaleidoscopePower());const C=Math.round(this.kaleidoscopeAngle()),H=Math.floor(t*(C%360)/360);if(D<1)return;const U=tt.createCanvasElement();U.width=t,U.height=a;const B=U.getContext("2d").getImageData(0,0,t,a);tt.releaseCanvas(U),lg(s,B,{polarCenterX:t/2,polarCenterY:a/2});let X=t/Math.pow(2,D);for(;X<=8;)X=X*2,D-=1;X=Math.ceil(X);let k=X,j=0,nt=k,ut=1;for(H+X>t&&(j=k,nt=0,ut=-1),o=0;o<a;o+=1)for(i=j;i!==nt;i+=ut)h=Math.round(i+H)%t,_=(t*o+h)*4,g=B.data[_+0],p=B.data[_+1],b=B.data[_+2],E=B.data[_+3],z=(t*o+i)*4,B.data[z+0]=g,B.data[z+1]=p,B.data[z+2]=b,B.data[z+3]=E;for(o=0;o<a;o+=1)for(k=Math.floor(X),d=0;d<D;d+=1){for(i=0;i<k+1;i+=1)_=(t*o+i)*4,g=B.data[_+0],p=B.data[_+1],b=B.data[_+2],E=B.data[_+3],z=(t*o+k*2-i-1)*4,B.data[z+0]=g,B.data[z+1]=p,B.data[z+2]=b,B.data[z+3]=E;k*=2}ig(B,s,{})};L.addGetterSetter(Gt,"kaleidoscopePower",2,Ut(),L.afterSetFilter);L.addGetterSetter(Gt,"kaleidoscopeAngle",0,Ut(),L.afterSetFilter);function M2(s,t,a){let i=(a*s.width+t)*4;const o=[];return o.push(s.data[i++],s.data[i++],s.data[i++],s.data[i++]),o}function hh(s,t){return Math.sqrt(Math.pow(s[0]-t[0],2)+Math.pow(s[1]-t[1],2)+Math.pow(s[2]-t[2],2))}function sg(s){const t=[0,0,0];for(let a=0;a<s.length;a++)t[0]+=s[a][0],t[1]+=s[a][1],t[2]+=s[a][2];return t[0]/=s.length,t[1]/=s.length,t[2]/=s.length,t}function ug(s,t){const a=M2(s,0,0),i=M2(s,s.width-1,0),o=M2(s,0,s.height-1),h=M2(s,s.width-1,s.height-1),d=t||10;if(hh(a,i)<d&&hh(i,h)<d&&hh(h,o)<d&&hh(o,a)<d){const g=sg([i,a,h,o]),p=[];for(let b=0;b<s.width*s.height;b++){const E=hh(g,[s.data[b*4],s.data[b*4+1],s.data[b*4+2]]);p[b]=E<d?0:255}return p}}function og(s,t){for(let a=0;a<s.width*s.height;a++)s.data[4*a+3]=t[a]}function cg(s,t,a){const i=[1,1,1,1,0,1,1,1,1],o=Math.round(Math.sqrt(i.length)),h=Math.floor(o/2),d=[];for(let g=0;g<a;g++)for(let p=0;p<t;p++){const b=g*t+p;let E=0;for(let _=0;_<o;_++)for(let z=0;z<o;z++){const D=g+_-h,C=p+z-h;if(D>=0&&D<a&&C>=0&&C<t){const H=D*t+C,U=i[_*o+z];E+=s[H]*U}}d[b]=E===2040?255:0}return d}function hg(s,t,a){const i=[1,1,1,1,1,1,1,1,1],o=Math.round(Math.sqrt(i.length)),h=Math.floor(o/2),d=[];for(let g=0;g<a;g++)for(let p=0;p<t;p++){const b=g*t+p;let E=0;for(let _=0;_<o;_++)for(let z=0;z<o;z++){const D=g+_-h,C=p+z-h;if(D>=0&&D<a&&C>=0&&C<t){const H=D*t+C,U=i[_*o+z];E+=s[H]*U}}d[b]=E>=1020?255:0}return d}function fg(s,t,a){const i=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],o=Math.round(Math.sqrt(i.length)),h=Math.floor(o/2),d=[];for(let g=0;g<a;g++)for(let p=0;p<t;p++){const b=g*t+p;let E=0;for(let _=0;_<o;_++)for(let z=0;z<o;z++){const D=g+_-h,C=p+z-h;if(D>=0&&D<a&&C>=0&&C<t){const H=D*t+C,U=i[_*o+z];E+=s[H]*U}}d[b]=E}return d}const dg=function(s){const t=this.threshold();let a=ug(s,t);return a&&(a=cg(a,s.width,s.height),a=hg(a,s.width,s.height),a=fg(a,s.width,s.height),og(s,a)),s};L.addGetterSetter(Gt,"threshold",0,Ut(),L.afterSetFilter);const mg=function(s){const t=this.noise()*255,a=s.data,i=a.length,o=t/2;for(let h=0;h<i;h+=4)a[h+0]+=o-2*o*Math.random(),a[h+1]+=o-2*o*Math.random(),a[h+2]+=o-2*o*Math.random()};L.addGetterSetter(Gt,"noise",.2,Ut(),L.afterSetFilter);const gg=function(s){let t=Math.ceil(this.pixelSize()),a=s.width,i=s.height,o=Math.ceil(a/t),h=Math.ceil(i/t),d=s.data;if(t<=0){tt.error("pixelSize value can not be <= 0");return}for(let g=0;g<o;g+=1)for(let p=0;p<h;p+=1){let b=0,E=0,_=0,z=0;const D=g*t,C=D+t,H=p*t,U=H+t;let B=0;for(let X=D;X<C;X+=1)if(!(X>=a))for(let k=H;k<U;k+=1){if(k>=i)continue;const j=(a*k+X)*4;b+=d[j+0],E+=d[j+1],_+=d[j+2],z+=d[j+3],B+=1}b=b/B,E=E/B,_=_/B,z=z/B;for(let X=D;X<C;X+=1)if(!(X>=a))for(let k=H;k<U;k+=1){if(k>=i)continue;const j=(a*k+X)*4;d[j+0]=b,d[j+1]=E,d[j+2]=_,d[j+3]=z}}};L.addGetterSetter(Gt,"pixelSize",8,Ut(),L.afterSetFilter);const pg=function(s){const t=Math.round(this.levels()*254)+1,a=s.data,i=a.length,o=255/t;for(let h=0;h<i;h+=1)a[h]=Math.floor(a[h]/o)*o};L.addGetterSetter(Gt,"levels",.5,Ut(),L.afterSetFilter);const vg=function(s){const t=s.data,a=t.length,i=this.red(),o=this.green(),h=this.blue();for(let d=0;d<a;d+=4){const g=(.34*t[d]+.5*t[d+1]+.16*t[d+2])/255;t[d]=g*i,t[d+1]=g*o,t[d+2]=g*h,t[d+3]=t[d+3]}};L.addGetterSetter(Gt,"red",0,function(s){return this._filterUpToDate=!1,s>255?255:s<0?0:Math.round(s)});L.addGetterSetter(Gt,"green",0,function(s){return this._filterUpToDate=!1,s>255?255:s<0?0:Math.round(s)});L.addGetterSetter(Gt,"blue",0,C6,L.afterSetFilter);const yg=function(s){const t=s.data,a=t.length,i=this.red(),o=this.green(),h=this.blue(),d=this.alpha();for(let g=0;g<a;g+=4){const p=1-d;t[g]=i*d+t[g]*p,t[g+1]=o*d+t[g+1]*p,t[g+2]=h*d+t[g+2]*p}};L.addGetterSetter(Gt,"red",0,function(s){return this._filterUpToDate=!1,s>255?255:s<0?0:Math.round(s)});L.addGetterSetter(Gt,"green",0,function(s){return this._filterUpToDate=!1,s>255?255:s<0?0:Math.round(s)});L.addGetterSetter(Gt,"blue",0,C6,L.afterSetFilter);L.addGetterSetter(Gt,"alpha",1,function(s){return this._filterUpToDate=!1,s>1?1:s<0?0:s});const bg=function(s){const t=s.data,a=t.length;for(let i=0;i<a;i+=4){const o=t[i+0],h=t[i+1],d=t[i+2];t[i+0]=Math.min(255,o*.393+h*.769+d*.189),t[i+1]=Math.min(255,o*.349+h*.686+d*.168),t[i+2]=Math.min(255,o*.272+h*.534+d*.131)}},Sg=function(s){const a=s.data;for(let i=0;i<a.length;i+=4){const o=a[i],h=a[i+1],d=a[i+2];.2126*o+.7152*h+.0722*d>=128&&(a[i]=255-o,a[i+1]=255-h,a[i+2]=255-d)}return s},xg=function(s){const t=this.threshold()*255,a=s.data,i=a.length;for(let o=0;o<i;o+=1)a[o]=a[o]<t?0:255};L.addGetterSetter(Gt,"threshold",.5,Ut(),L.afterSetFilter);Mc.Util._assign(Mc,{Arc:Ir,Arrow:no,Circle:Cc,Ellipse:su,Image:Ti,Label:Pd,Tag:lo,Line:Pr,Path:za,Rect:Ah,RegularPolygon:uu,Ring:io,Sprite:sr,Star:ou,Text:Ga,TextPath:G0,Transformer:Ke,Wedge:$r,Filters:{Blur:J9,Brightness:W9,Brighten:F9,Contrast:I9,Emboss:P9,Enhance:$9,Grayscale:tg,HSL:eg,HSV:ag,Invert:ng,Kaleidoscope:rg,Mask:dg,Noise:mg,Pixelate:gg,Posterize:pg,RGB:vg,RGBA:yg,Sepia:bg,Solarize:Sg,Threshold:xg}});var ad={exports:{}},nd={exports:{}};var L3;function Tg(){return L3||(L3=1,(function(s){s.exports=function(t){function a(l,r,f,m){return new l1(l,r,f,m)}function i(){}function o(l){var r="https://react.dev/errors/"+l;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)r+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+l+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(l){var r=l,f=l;if(l.alternate)for(;r.return;)r=r.return;else{l=r;do r=l,(r.flags&4098)!==0&&(f=r.return),l=r.return;while(l)}return r.tag===3?f:null}function d(l){if(h(l)!==l)throw Error(o(188))}function g(l){var r=l.alternate;if(!r){if(r=h(l),r===null)throw Error(o(188));return r!==l?null:l}for(var f=l,m=r;;){var S=f.return;if(S===null)break;var T=S.alternate;if(T===null){if(m=S.return,m!==null){f=m;continue}break}if(S.child===T.child){for(T=S.child;T;){if(T===f)return d(S),l;if(T===m)return d(S),r;T=T.sibling}throw Error(o(188))}if(f.return!==m.return)f=S,m=T;else{for(var N=!1,Q=S.child;Q;){if(Q===f){N=!0,f=S,m=T;break}if(Q===m){N=!0,m=S,f=T;break}Q=Q.sibling}if(!N){for(Q=T.child;Q;){if(Q===f){N=!0,f=T,m=S;break}if(Q===m){N=!0,m=T,f=S;break}Q=Q.sibling}if(!N)throw Error(o(189))}}if(f.alternate!==m)throw Error(o(190))}if(f.tag!==3)throw Error(o(188));return f.stateNode.current===f?l:r}function p(l){var r=l.tag;if(r===5||r===26||r===27||r===6)return l;for(l=l.child;l!==null;){if(r=p(l),r!==null)return r;l=l.sibling}return null}function b(l){var r=l.tag;if(r===5||r===26||r===27||r===6)return l;for(l=l.child;l!==null;){if(l.tag!==4&&(r=b(l),r!==null))return r;l=l.sibling}return null}function E(l){return l===null||typeof l!="object"?null:(l=ci&&l[ci]||l["@@iterator"],typeof l=="function"?l:null)}function _(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===Yi?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case _r:return"Fragment";case Ar:return"Profiler";case Mr:return"StrictMode";case Yo:return"Suspense";case oi:return"SuspenseList";case Ru:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case Er:return"Portal";case qn:return l.displayName||"Context";case Nu:return(l._context.displayName||"Context")+".Consumer";case Cs:var r=l.render;return l=l.displayName,l||(l=r.displayName||r.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case Xo:return r=l.displayName||null,r!==null?r:_(l.type)||"Memo";case Z0:r=l._payload,l=l._init;try{return _(l(r))}catch{}}return null}function z(l){return{current:l}}function D(l){0>Nr||(l.current=ec[Nr],ec[Nr]=null,Nr--)}function C(l,r){Nr++,ec[Nr]=l.current,l.current=r}function H(l){return l>>>=0,l===0?32:31-(ac(l)/Jf|0)|0}function U(l){var r=l&42;if(r!==0)return r;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function B(l,r,f){var m=l.pendingLanes;if(m===0)return 0;var S=0,T=l.suspendedLanes,N=l.pingedLanes;l=l.warmLanes;var Q=m&134217727;return Q!==0?(m=Q&~T,m!==0?S=U(m):(N&=Q,N!==0?S=U(N):f||(f=Q&~l,f!==0&&(S=U(f))))):(Q=m&~T,Q!==0?S=U(Q):N!==0?S=U(N):f||(f=m&~l,f!==0&&(S=U(f)))),S===0?0:r!==0&&r!==S&&(r&T)===0&&(T=S&-S,f=r&-r,T>=f||T===32&&(f&4194048)!==0)?r:S}function X(l,r){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&r)===0}function k(l,r){switch(l){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function j(){var l=Hs;return Hs<<=1,(Hs&62914560)===0&&(Hs=4194304),l}function nt(l){for(var r=[],f=0;31>f;f++)r.push(l);return r}function ut(l,r){l.pendingLanes|=r,r!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function st(l,r,f,m,S,T){var N=l.pendingLanes;l.pendingLanes=f,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=f,l.entangledLanes&=f,l.errorRecoveryDisabledLanes&=f,l.shellSuspendCounter=0;var Q=l.entanglements,ht=l.expirationTimes,Tt=l.hiddenUpdates;for(f=N&~f;0<f;){var Ht=31-cn(f),zt=1<<Ht;Q[Ht]=0,ht[Ht]=-1;var Kt=Tt[Ht];if(Kt!==null)for(Tt[Ht]=null,Ht=0;Ht<Kt.length;Ht++){var ge=Kt[Ht];ge!==null&&(ge.lane&=-536870913)}f&=~zt}m!==0&&ot(l,m,0),T!==0&&S===0&&l.tag!==0&&(l.suspendedLanes|=T&~(N&~r))}function ot(l,r,f){l.pendingLanes|=r,l.suspendedLanes&=~r;var m=31-cn(r);l.entangledLanes|=r,l.entanglements[m]=l.entanglements[m]|1073741824|f&261930}function St(l,r){var f=l.entangledLanes|=r;for(l=l.entanglements;f;){var m=31-cn(f),S=1<<m;S&r|l[m]&r&&(l[m]|=r),f&=~S}}function Zt(l,r){var f=r&-r;return f=(f&42)!==0?1:qt(f),(f&(l.suspendedLanes|r))!==0?0:f}function qt(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function Nt(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function $t(l){if(typeof j1=="function"&&If(l),hn&&typeof hn.setStrictMode=="function")try{hn.setStrictMode(Or,l)}catch{}}function Vt(l,r){return l===r&&(l!==0||1/l===1/r)||l!==l&&r!==r}function Et(l){if(uc===void 0)try{throw Error()}catch(f){var r=f.stack.trim().match(/\n( *(at )?)/);uc=r&&r[1]||"",Hl=-1<f.stack.indexOf(`
|
|
24
|
-
at`)?" (<anonymous>)":-1<f.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
25
|
-
`+uc+l+Hl}function K(l,r){if(!l||Yu)return"";Yu=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(r){var zt=function(){throw Error()};if(Object.defineProperty(zt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(zt,[])}catch(ge){var Kt=ge}Reflect.construct(l,[],zt)}else{try{zt.call()}catch(ge){Kt=ge}l.call(zt.prototype)}}else{try{throw Error()}catch(ge){Kt=ge}(zt=l())&&typeof zt.catch=="function"&&zt.catch(function(){})}}catch(ge){if(ge&&Kt&&typeof ge.stack=="string")return[ge.stack,Kt.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var S=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");S&&S.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var T=m.DetermineComponentFrameRoot(),N=T[0],Q=T[1];if(N&&Q){var ht=N.split(`
|
|
26
|
-
`),Tt=Q.split(`
|
|
27
|
-
`);for(S=m=0;m<ht.length&&!ht[m].includes("DetermineComponentFrameRoot");)m++;for(;S<Tt.length&&!Tt[S].includes("DetermineComponentFrameRoot");)S++;if(m===ht.length||S===Tt.length)for(m=ht.length-1,S=Tt.length-1;1<=m&&0<=S&&ht[m]!==Tt[S];)S--;for(;1<=m&&0<=S;m--,S--)if(ht[m]!==Tt[S]){if(m!==1||S!==1)do if(m--,S--,0>S||ht[m]!==Tt[S]){var Ht=`
|
|
28
|
-
`+ht[m].replace(" at new "," at ");return l.displayName&&Ht.includes("<anonymous>")&&(Ht=Ht.replace("<anonymous>",l.displayName)),Ht}while(1<=m&&0<=S);break}}}finally{Yu=!1,Error.prepareStackTrace=f}return(f=l?l.displayName||l.name:"")?Et(f):""}function vt(l,r){switch(l.tag){case 26:case 27:case 5:return Et(l.type);case 16:return Et("Lazy");case 13:return l.child!==r&&r!==null?Et("Suspense Fallback"):Et("Suspense");case 19:return Et("SuspenseList");case 0:case 15:return K(l.type,!1);case 11:return K(l.type.render,!1);case 1:return K(l.type,!0);case 31:return Et("Activity");default:return""}}function mt(l){try{var r="",f=null;do r+=vt(l,f),f=l,l=l.return;while(l);return r}catch(m){return`
|
|
29
|
-
Error generating stack: `+m.message+`
|
|
30
|
-
`+m.stack}}function Lt(l,r){if(typeof l=="object"&&l!==null){var f=V1.get(l);return f!==void 0?f:(r={value:l,source:r,stack:mt(r)},V1.set(l,r),r)}return{value:l,source:r,stack:mt(r)}}function xt(l,r){di[Gl++]=Xu,di[Gl++]=oa,oa=l,Xu=r}function G(l,r,f){Yn[xn++]=N0,Yn[xn++]=nl,Yn[xn++]=Xn,Xn=l;var m=N0;l=nl;var S=32-cn(m)-1;m&=~(1<<S),f+=1;var T=32-cn(r)+S;if(30<T){var N=S-S%5;T=(m&(1<<N)-1).toString(32),m>>=N,S-=N,N0=1<<32-cn(r)+S|f<<S|m,nl=T+l}else N0=1<<T|f<<S|m,nl=l}function I(l){l.return!==null&&(xt(l,1),G(l,1,0))}function gt(l){for(;l===oa;)oa=di[--Gl],di[Gl]=null,Xu=di[--Gl],di[Gl]=null;for(;l===Xn;)Xn=Yn[--xn],Yn[xn]=null,nl=Yn[--xn],Yn[xn]=null,N0=Yn[--xn],Yn[xn]=null}function Bt(l,r){Yn[xn++]=N0,Yn[xn++]=nl,Yn[xn++]=Xn,N0=r.id,nl=r.overflow,Xn=l}function wt(l,r){C(R0,r),C(mi,l),C(E0,null),l=cf(r),D(E0),C(E0,l)}function Mt(){D(E0),D(mi),D(R0)}function Xt(l){l.memoizedState!==null&&C(ju,l);var r=E0.current,f=Ns(r,l.type);r!==f&&(C(mi,l),C(E0,f))}function It(l){mi.current===l&&(D(E0),D(mi)),ju.current===l&&(D(ju),Ka?wr._currentValue=Cr:wr._currentValue2=Cr)}function Pt(l){var r=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ra(Lt(r,l)),oc}function ze(l,r){if(!Ea)throw Error(o(175));Gf(l.stateNode,l.type,l.memoizedProps,r,l)||Pt(l,!0)}function re(l){for(f0=l.return;f0;)switch(f0.tag){case 5:case 31:case 13:F0=!1;return;case 27:case 3:F0=!0;return;default:f0=f0.return}}function me(l){if(!Ea||l!==f0)return!1;if(!He)return re(l),He=!0,!1;var r=l.tag;if(h0?r!==3&&r!==27&&(r!==5||Bs(l.type)&&!J0(l.type,l.memoizedProps))&&_a&&Pt(l):r!==3&&(r!==5||Bs(l.type)&&!J0(l.type,l.memoizedProps))&&_a&&Pt(l),re(l),r===13){if(!Ea)throw Error(o(316));if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(317));_a=R1(l)}else if(r===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(317));_a=qf(l)}else _a=h0&&r===27?Cf(l.type,_a):f0?zf(l.stateNode):null;return!0}function Je(){Ea&&(_a=f0=null,He=!1)}function De(){var l=Ul;return l!==null&&(dn===null?dn=l:dn.push.apply(dn,l),Ul=null),l}function ra(l){Ul===null?Ul=[l]:Ul.push(l)}function sa(l,r,f){Ka?(C(jn,r._currentValue),r._currentValue=f):(C(jn,r._currentValue2),r._currentValue2=f)}function be(l){var r=jn.current;Ka?l._currentValue=r:l._currentValue2=r,D(jn)}function Ie(l,r,f){for(;l!==null;){var m=l.alternate;if((l.childLanes&r)!==r?(l.childLanes|=r,m!==null&&(m.childLanes|=r)):m!==null&&(m.childLanes&r)!==r&&(m.childLanes|=r),l===f)break;l=l.return}}function u0(l,r,f,m){var S=l.child;for(S!==null&&(S.return=l);S!==null;){var T=S.dependencies;if(T!==null){var N=S.child;T=T.firstContext;t:for(;T!==null;){var Q=T;T=S;for(var ht=0;ht<r.length;ht++)if(Q.context===r[ht]){T.lanes|=f,Q=T.alternate,Q!==null&&(Q.lanes|=f),Ie(T.return,f,l),m||(N=null);break t}T=Q.next}}else if(S.tag===18){if(N=S.return,N===null)throw Error(o(341));N.lanes|=f,T=N.alternate,T!==null&&(T.lanes|=f),Ie(N,f,l),N=null}else N=S.child;if(N!==null)N.return=S;else for(N=S;N!==null;){if(N===l){N=null;break}if(S=N.sibling,S!==null){S.return=N.return,N=S;break}N=N.return}S=N}}function o0(l,r,f,m){l=null;for(var S=r,T=!1;S!==null;){if(!T){if((S.flags&524288)!==0)T=!0;else if((S.flags&262144)!==0)break}if(S.tag===10){var N=S.alternate;if(N===null)throw Error(o(387));if(N=N.memoizedProps,N!==null){var Q=S.type;Ja(S.pendingProps.value,N.value)||(l!==null?l.push(Q):l=[Q])}}else if(S===ju.current){if(N=S.alternate,N===null)throw Error(o(387));N.memoizedState.memoizedState!==S.memoizedState.memoizedState&&(l!==null?l.push(wr):l=[wr])}S=S.return}l!==null&&u0(r,l,f,m),r.flags|=262144}function w0(l){for(l=l.firstContext;l!==null;){var r=l.context;if(!Ja(Ka?r._currentValue:r._currentValue2,l.memoizedValue))return!0;l=l.next}return!1}function X0(l){ga=l,ll=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function Ue(l){return en(ga,l)}function ea(l,r){return ga===null&&X0(l),en(l,r)}function en(l,r){var f=Ka?r._currentValue:r._currentValue2;if(r={context:r,memoizedValue:f,next:null},ll===null){if(l===null)throw Error(o(308));ll=r,l.dependencies={lanes:0,firstContext:r},l.flags|=524288}else ll=ll.next=r;return f}function Ua(){return{controller:new Pf,data:new Map,refCount:0}}function xa(l){l.refCount--,l.refCount===0&&_0(b4,function(){l.controller.abort()})}function p0(){}function qa(l){l!==aa&&l.next===null&&(aa===null?Vu=aa=l:aa=aa.next=l),Vn=!0,k0||(k0=!0,j0())}function La(l,r){if(!cc&&Vn){cc=!0;do for(var f=!1,m=Vu;m!==null;){if(l!==0){var S=m.pendingLanes;if(S===0)var T=0;else{var N=m.suspendedLanes,Q=m.pingedLanes;T=(1<<31-cn(42|l)+1)-1,T&=S&~(N&~Q),T=T&201326741?T&201326741|1:T?T|2:0}T!==0&&(f=!0,t0(m,T))}else T=Ge,T=B(m,m===Ae?T:0,m.cancelPendingCommit!==null||m.timeoutHandle!==on),(T&3)===0||X(m,T)||(f=!0,t0(m,T));m=m.next}while(f);cc=!1}}function Fl(){es()}function es(){Vn=k0=!1;var l=0;Ki!==0&&zr()&&(l=Ki);for(var r=L0(),f=null,m=Vu;m!==null;){var S=m.next,T=fl(m,r);T===0?(m.next=null,f===null?Vu=S:f.next=S,S===null&&(aa=f)):(f=m,(l!==0||(T&3)!==0)&&(Vn=!0)),m=S}r0!==0&&r0!==5||La(l),Ki!==0&&(Ki=0)}function fl(l,r){for(var f=l.suspendedLanes,m=l.pingedLanes,S=l.expirationTimes,T=l.pendingLanes&-62914561;0<T;){var N=31-cn(T),Q=1<<N,ht=S[N];ht===-1?((Q&f)===0||(Q&m)!==0)&&(S[N]=k(Q,r)):ht<=r&&(l.expiredLanes|=Q),T&=~Q}if(r=Ae,f=Ge,f=B(l,l===r?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==on),m=l.callbackNode,f===0||l===r&&(la===2||la===9)||l.cancelPendingCommit!==null)return m!==null&&m!==null&&lc(m),l.callbackNode=null,l.callbackPriority=0;if((f&3)===0||X(l,f)){if(r=f&-f,r===l.callbackPriority)return r;switch(m!==null&&lc(m),Nt(f)){case 2:case 8:f=Wf;break;case 32:f=ku;break;case 268435456:f=rc;break;default:f=ku}return m=U0.bind(null,l),f=Lu(f,m),l.callbackPriority=r,l.callbackNode=f,r}return m!==null&&m!==null&&lc(m),l.callbackPriority=2,l.callbackNode=null,2}function U0(l,r){if(r0!==0&&r0!==5)return l.callbackNode=null,l.callbackPriority=0,null;var f=l.callbackNode;if(Rl()&&l.callbackNode!==f)return null;var m=Ge;return m=B(l,l===Ae?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==on),m===0?null:(al(l,m,r),fl(l,L0()),l.callbackNode!=null&&l.callbackNode===f?U0.bind(null,l):null)}function t0(l,r){if(Rl())return null;al(l,r,!0)}function j0(){p1?v1(function(){(Ne&6)!==0?Lu(ic,Fl):es()}):Lu(ic,Fl)}function as(){if(Ki===0){var l=gi;l===0&&(l=nc,nc<<=1,(nc&261888)===0&&(nc=256)),Ki=l}return Ki}function Nc(l,r){if(Gs===null){var f=Gs=[];Q1=0,gi=as(),d0={status:"pending",value:void 0,then:function(m){f.push(m)}}}return Q1++,r.then(so,so),r}function so(){if(--Q1===0&&Gs!==null){d0!==null&&(d0.status="fulfilled");var l=Gs;Gs=null,gi=0,d0=null;for(var r=0;r<l.length;r++)(0,l[r])()}}function ns(l,r){var f=[],m={status:"pending",value:null,reason:null,then:function(S){f.push(S)}};return l.then(function(){m.status="fulfilled",m.value=r;for(var S=0;S<f.length;S++)(0,f[S])(r)},function(S){for(m.status="rejected",m.reason=S,S=0;S<f.length;S++)(0,f[S])(void 0)}),m}function Ei(){var l=Zi.current;return l!==null?l:Ae.pooledCache}function Wl(l,r){r===null?C(Zi,Zi.current):C(Zi,r.pool)}function dl(){var l=Ei();return l===null?null:{parent:Ka?Ma._currentValue:Ma._currentValue2,pool:l}}function Il(l,r){if(Ja(l,r))return!0;if(typeof l!="object"||l===null||typeof r!="object"||r===null)return!1;var f=Object.keys(l),m=Object.keys(r);if(f.length!==m.length)return!1;for(m=0;m<f.length;m++){var S=f[m];if(!y4.call(r,S)||!Ja(l[S],r[S]))return!1}return!0}function _i(l){return l=l.status,l==="fulfilled"||l==="rejected"}function Mi(l,r,f){switch(f=l[f],f===void 0?l.push(r):f!==r&&(r.then(p0,p0),r=f),r.status){case"fulfilled":return r.value;case"rejected":throw l=r.reason,Pl(l),l;default:if(typeof r.status=="string")r.then(p0,p0);else{if(l=Ae,l!==null&&100<l.shellSuspendCounter)throw Error(o(482));l=r,l.status="pending",l.then(function(m){if(r.status==="pending"){var S=r;S.status="fulfilled",S.value=m}},function(m){if(r.status==="pending"){var S=r;S.status="rejected",S.reason=m}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw l=r.reason,Pl(l),l}throw W0=r,m0}}function gn(l){try{var r=l._init;return r(l._payload)}catch(f){throw f!==null&&typeof f=="object"&&typeof f.then=="function"?(W0=f,m0):f}}function Ai(){if(W0===null)throw Error(o(459));var l=W0;return W0=null,l}function Pl(l){if(l===m0||l===Kn)throw Error(o(483))}function ls(l){var r=Br;return Br+=1,Ji===null&&(Ji=[]),Mi(Ji,l,r)}function zi(l,r){r=r.props.ref,l.ref=r!==void 0?r:null}function ml(l,r){throw r.$$typeof===Tr?Error(o(525)):(l=Object.prototype.toString.call(r),Error(o(31,l==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":l)))}function Ci(l){function r(it,$){if(l){var ct=it.deletions;ct===null?(it.deletions=[$],it.flags|=16):ct.push($)}}function f(it,$){if(!l)return null;for(;$!==null;)r(it,$),$=$.sibling;return null}function m(it){for(var $=new Map;it!==null;)it.key!==null?$.set(it.key,it):$.set(it.index,it),it=it.sibling;return $}function S(it,$){return it=bn(it,$),it.index=0,it.sibling=null,it}function T(it,$,ct){return it.index=ct,l?(ct=it.alternate,ct!==null?(ct=ct.index,ct<$?(it.flags|=67108866,$):ct):(it.flags|=67108866,$)):(it.flags|=1048576,$)}function N(it){return l&&it.alternate===null&&(it.flags|=67108866),it}function Q(it,$,ct,Ot){return $===null||$.tag!==6?($=i1(ct,it.mode,Ot),$.return=it,$):($=S($,ct),$.return=it,$)}function ht(it,$,ct,Ot){var ie=ct.type;return ie===_r?Ht(it,$,ct.props.children,Ot,ct.key):$!==null&&($.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Z0&&gn(ie)===$.type)?($=S($,ct.props),zi($,ct),$.return=it,$):($=ui(ct.type,ct.key,ct.props,null,it.mode,Ot),zi($,ct),$.return=it,$)}function Tt(it,$,ct,Ot){return $===null||$.tag!==4||$.stateNode.containerInfo!==ct.containerInfo||$.stateNode.implementation!==ct.implementation?($=s1(ct,it.mode,Ot),$.return=it,$):($=S($,ct.children||[]),$.return=it,$)}function Ht(it,$,ct,Ot,ie){return $===null||$.tag!==7?($=Un(ct,it.mode,Ot,ie),$.return=it,$):($=S($,ct),$.return=it,$)}function zt(it,$,ct){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=i1(""+$,it.mode,ct),$.return=it,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case Ol:return ct=ui($.type,$.key,$.props,null,it.mode,ct),zi(ct,$),ct.return=it,ct;case Er:return $=s1($,it.mode,ct),$.return=it,$;case Z0:return $=gn($),zt(it,$,ct)}if(Xi($)||E($))return $=Un($,it.mode,ct,null),$.return=it,$;if(typeof $.then=="function")return zt(it,ls($),ct);if($.$$typeof===qn)return zt(it,ea(it,$),ct);ml(it,$)}return null}function Kt(it,$,ct,Ot){var ie=$!==null?$.key:null;if(typeof ct=="string"&&ct!==""||typeof ct=="number"||typeof ct=="bigint")return ie!==null?null:Q(it,$,""+ct,Ot);if(typeof ct=="object"&&ct!==null){switch(ct.$$typeof){case Ol:return ct.key===ie?ht(it,$,ct,Ot):null;case Er:return ct.key===ie?Tt(it,$,ct,Ot):null;case Z0:return ct=gn(ct),Kt(it,$,ct,Ot)}if(Xi(ct)||E(ct))return ie!==null?null:Ht(it,$,ct,Ot,null);if(typeof ct.then=="function")return Kt(it,$,ls(ct),Ot);if(ct.$$typeof===qn)return Kt(it,$,ea(it,ct),Ot);ml(it,ct)}return null}function ge(it,$,ct,Ot,ie){if(typeof Ot=="string"&&Ot!==""||typeof Ot=="number"||typeof Ot=="bigint")return it=it.get(ct)||null,Q($,it,""+Ot,ie);if(typeof Ot=="object"&&Ot!==null){switch(Ot.$$typeof){case Ol:return it=it.get(Ot.key===null?ct:Ot.key)||null,ht($,it,Ot,ie);case Er:return it=it.get(Ot.key===null?ct:Ot.key)||null,Tt($,it,Ot,ie);case Z0:return Ot=gn(Ot),ge(it,$,ct,Ot,ie)}if(Xi(Ot)||E(Ot))return it=it.get(ct)||null,Ht($,it,Ot,ie,null);if(typeof Ot.then=="function")return ge(it,$,ct,ls(Ot),ie);if(Ot.$$typeof===qn)return ge(it,$,ct,ea($,Ot),ie);ml($,Ot)}return null}function M0(it,$,ct,Ot){for(var ie=null,Ha=null,se=$,je=$=0,A0=null;se!==null&&je<ct.length;je++){se.index>je?(A0=se,se=null):A0=se.sibling;var Ze=Kt(it,se,ct[je],Ot);if(Ze===null){se===null&&(se=A0);break}l&&se&&Ze.alternate===null&&r(it,se),$=T(Ze,$,je),Ha===null?ie=Ze:Ha.sibling=Ze,Ha=Ze,se=A0}if(je===ct.length)return f(it,se),He&&xt(it,je),ie;if(se===null){for(;je<ct.length;je++)se=zt(it,ct[je],Ot),se!==null&&($=T(se,$,je),Ha===null?ie=se:Ha.sibling=se,Ha=se);return He&&xt(it,je),ie}for(se=m(se);je<ct.length;je++)A0=ge(se,it,je,ct[je],Ot),A0!==null&&(l&&A0.alternate!==null&&se.delete(A0.key===null?je:A0.key),$=T(A0,$,je),Ha===null?ie=A0:Ha.sibling=A0,Ha=A0);return l&&se.forEach(function(Fn){return r(it,Fn)}),He&&xt(it,je),ie}function Vs(it,$,ct,Ot){if(ct==null)throw Error(o(151));for(var ie=null,Ha=null,se=$,je=$=0,A0=null,Ze=ct.next();se!==null&&!Ze.done;je++,Ze=ct.next()){se.index>je?(A0=se,se=null):A0=se.sibling;var Fn=Kt(it,se,Ze.value,Ot);if(Fn===null){se===null&&(se=A0);break}l&&se&&Fn.alternate===null&&r(it,se),$=T(Fn,$,je),Ha===null?ie=Fn:Ha.sibling=Fn,Ha=Fn,se=A0}if(Ze.done)return f(it,se),He&&xt(it,je),ie;if(se===null){for(;!Ze.done;je++,Ze=ct.next())Ze=zt(it,Ze.value,Ot),Ze!==null&&($=T(Ze,$,je),Ha===null?ie=Ze:Ha.sibling=Ze,Ha=Ze);return He&&xt(it,je),ie}for(se=m(se);!Ze.done;je++,Ze=ct.next())Ze=ge(se,it,je,Ze.value,Ot),Ze!==null&&(l&&Ze.alternate!==null&&se.delete(Ze.key===null?je:Ze.key),$=T(Ze,$,je),Ha===null?ie=Ze:Ha.sibling=Ze,Ha=Ze);return l&&se.forEach(function(S4){return r(it,S4)}),He&&xt(it,je),ie}function ar(it,$,ct,Ot){if(typeof ct=="object"&&ct!==null&&ct.type===_r&&ct.key===null&&(ct=ct.props.children),typeof ct=="object"&&ct!==null){switch(ct.$$typeof){case Ol:t:{for(var ie=ct.key;$!==null;){if($.key===ie){if(ie=ct.type,ie===_r){if($.tag===7){f(it,$.sibling),Ot=S($,ct.props.children),Ot.return=it,it=Ot;break t}}else if($.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Z0&&gn(ie)===$.type){f(it,$.sibling),Ot=S($,ct.props),zi(Ot,ct),Ot.return=it,it=Ot;break t}f(it,$);break}else r(it,$);$=$.sibling}ct.type===_r?(Ot=Un(ct.props.children,it.mode,Ot,ct.key),Ot.return=it,it=Ot):(Ot=ui(ct.type,ct.key,ct.props,null,it.mode,Ot),zi(Ot,ct),Ot.return=it,it=Ot)}return N(it);case Er:t:{for(ie=ct.key;$!==null;){if($.key===ie)if($.tag===4&&$.stateNode.containerInfo===ct.containerInfo&&$.stateNode.implementation===ct.implementation){f(it,$.sibling),Ot=S($,ct.children||[]),Ot.return=it,it=Ot;break t}else{f(it,$);break}else r(it,$);$=$.sibling}Ot=s1(ct,it.mode,Ot),Ot.return=it,it=Ot}return N(it);case Z0:return ct=gn(ct),ar(it,$,ct,Ot)}if(Xi(ct))return M0(it,$,ct,Ot);if(E(ct)){if(ie=E(ct),typeof ie!="function")throw Error(o(150));return ct=ie.call(ct),Vs(it,$,ct,Ot)}if(typeof ct.then=="function")return ar(it,$,ls(ct),Ot);if(ct.$$typeof===qn)return ar(it,$,ea(it,ct),Ot);ml(it,ct)}return typeof ct=="string"&&ct!==""||typeof ct=="number"||typeof ct=="bigint"?(ct=""+ct,$!==null&&$.tag===6?(f(it,$.sibling),Ot=S($,ct),Ot.return=it,it=Ot):(f(it,$),Ot=i1(ct,it.mode,Ot),Ot.return=it,it=Ot),N(it)):f(it,$)}return function(it,$,ct,Ot){try{Br=0;var ie=ar(it,$,ct,Ot);return Ji=null,ie}catch(se){if(se===m0||se===Kn)throw se;var Ha=a(29,se,null,it.mode);return Ha.lanes=Ot,Ha.return=it,Ha}finally{}}}function gl(){for(var l=Ll,r=Hr=Ll=0;r<l;){var f=B0[r];B0[r++]=null;var m=B0[r];B0[r++]=null;var S=B0[r];B0[r++]=null;var T=B0[r];if(B0[r++]=null,m!==null&&S!==null){var N=m.pending;N===null?S.next=S:(S.next=N.next,N.next=S),m.pending=S}T!==0&&wn(f,S,T)}}function $l(l,r,f,m){B0[Ll++]=l,B0[Ll++]=r,B0[Ll++]=f,B0[Ll++]=m,Hr|=m,l.lanes|=m,l=l.alternate,l!==null&&(l.lanes|=m)}function is(l,r,f,m){return $l(l,r,f,m),ka(l)}function pl(l,r){return $l(l,null,null,r),ka(l)}function wn(l,r,f){l.lanes|=f;var m=l.alternate;m!==null&&(m.lanes|=f);for(var S=!1,T=l.return;T!==null;)T.childLanes|=f,m=T.alternate,m!==null&&(m.childLanes|=f),T.tag===22&&(l=T.stateNode,l===null||l._visibility&1||(S=!0)),l=T,T=T.return;return l.tag===3?(T=l.stateNode,S&&r!==null&&(S=31-cn(f),l=T.hiddenUpdates,m=l[S],m===null?l[S]=[r]:m.push(r),r.lane=f|536870912),T):null}function ka(l){if(50<Qe)throw Qe=0,Wu=null,Error(o(185));for(var r=l.return;r!==null;)l=r,r=l.return;return l.tag===3?l.stateNode:null}function v0(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vl(l,r){l=l.updateQueue,r.updateQueue===l&&(r.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function Dn(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function yl(l,r,f){var m=l.updateQueue;if(m===null)return null;if(m=m.shared,(Ne&2)!==0){var S=m.pending;return S===null?r.next=r:(r.next=S.next,S.next=r),m.pending=r,r=ka(l),wn(l,null,f),r}return $l(l,m,r,f),ka(l)}function an(l,r,f){if(r=r.updateQueue,r!==null&&(r=r.shared,(f&4194048)!==0)){var m=r.lanes;m&=l.pendingLanes,f|=m,r.lanes=f,St(l,f)}}function hr(l,r){var f=l.updateQueue,m=l.alternate;if(m!==null&&(m=m.updateQueue,f===m)){var S=null,T=null;if(f=f.firstBaseUpdate,f!==null){do{var N={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};T===null?S=T=N:T=T.next=N,f=f.next}while(f!==null);T===null?S=T=r:T=T.next=r}else S=T=r;f={baseState:m.baseState,firstBaseUpdate:S,lastBaseUpdate:T,shared:m.shared,callbacks:m.callbacks},l.updateQueue=f;return}l=f.lastBaseUpdate,l===null?f.firstBaseUpdate=r:l.next=r,f.lastBaseUpdate=r}function Nn(){if(fc){var l=d0;if(l!==null)throw l}}function bl(l,r,f,m){fc=!1;var S=l.updateQueue;Tn=!1;var T=S.firstBaseUpdate,N=S.lastBaseUpdate,Q=S.shared.pending;if(Q!==null){S.shared.pending=null;var ht=Q,Tt=ht.next;ht.next=null,N===null?T=Tt:N.next=Tt,N=ht;var Ht=l.alternate;Ht!==null&&(Ht=Ht.updateQueue,Q=Ht.lastBaseUpdate,Q!==N&&(Q===null?Ht.firstBaseUpdate=Tt:Q.next=Tt,Ht.lastBaseUpdate=ht))}if(T!==null){var zt=S.baseState;N=0,Ht=Tt=ht=null,Q=T;do{var Kt=Q.lane&-536870913,ge=Kt!==Q.lane;if(ge?(Ge&Kt)===Kt:(m&Kt)===Kt){Kt!==0&&Kt===gi&&(fc=!0),Ht!==null&&(Ht=Ht.next={lane:0,tag:Q.tag,payload:Q.payload,callback:null,next:null});t:{var M0=l,Vs=Q;Kt=r;var ar=f;switch(Vs.tag){case 1:if(M0=Vs.payload,typeof M0=="function"){zt=M0.call(ar,zt,Kt);break t}zt=M0;break t;case 3:M0.flags=M0.flags&-65537|128;case 0:if(M0=Vs.payload,Kt=typeof M0=="function"?M0.call(ar,zt,Kt):M0,Kt==null)break t;zt=ko({},zt,Kt);break t;case 2:Tn=!0}}Kt=Q.callback,Kt!==null&&(l.flags|=64,ge&&(l.flags|=8192),ge=S.callbacks,ge===null?S.callbacks=[Kt]:ge.push(Kt))}else ge={lane:Kt,tag:Q.tag,payload:Q.payload,callback:Q.callback,next:null},Ht===null?(Tt=Ht=ge,ht=zt):Ht=Ht.next=ge,N|=Kt;if(Q=Q.next,Q===null){if(Q=S.shared.pending,Q===null)break;ge=Q,Q=ge.next,ge.next=null,S.lastBaseUpdate=ge,S.shared.pending=null}}while(!0);Ht===null&&(ht=zt),S.baseState=ht,S.firstBaseUpdate=Tt,S.lastBaseUpdate=Ht,T===null&&(S.shared.lanes=0),vi|=N,l.lanes=N,l.memoizedState=zt}}function Sl(l,r){if(typeof l!="function")throw Error(o(191,l));l.call(r)}function W(l,r){var f=l.callbacks;if(f!==null)for(l.callbacks=null,l=0;l<f.length;l++)Sl(f[l],r)}function Z(l,r){l=Yl,C(Fi,l),C(Gr,r),Yl=l|r.baseLanes}function jt(){C(Fi,Yl),C(Gr,Gr.current)}function Qt(){Yl=Fi.current,D(Gr),D(Fi)}function ae(l){var r=l.alternate;C(Xa,Xa.current&1),C(fn,l),I0===null&&(r===null||Gr.current!==null||r.memoizedState!==null)&&(I0=l)}function Ee(l){C(Xa,Xa.current),C(fn,l),I0===null&&(I0=l)}function Se(l){l.tag===22?(C(Xa,Xa.current),C(fn,l),I0===null&&(I0=l)):Oe()}function Oe(){C(Xa,Xa.current),C(fn,fn.current)}function Xe(l){D(fn),I0===l&&(I0=null),D(Xa)}function ca(l){for(var r=l;r!==null;){if(r.tag===13){var f=r.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||Vi(f)||Jo(f)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===l)break;for(;r.sibling===null;){if(r.return===null||r.return===l)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function xe(){throw Error(o(321))}function ha(l,r){if(r===null)return!1;for(var f=0;f<r.length&&f<l.length;f++)if(!Ja(l[f],r[f]))return!1;return!0}function e0(l,r,f,m,S,T){return pi=T,ve=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,ne.H=l===null||l.memoizedState===null?Ra:kl,ke=!1,T=f(m,S),ke=!1,Te&&(T=Fe(r,f,m,S)),nn(l),T}function nn(l){ne.H=En;var r=ee!==null&&ee.next!==null;if(pi=0,fe=ee=ve=null,Me=!1,Zn=0,il=null,r)throw Error(o(300));l===null||ya||(l=l.dependencies,l!==null&&w0(l)&&(ya=!0))}function Fe(l,r,f,m){ve=l;var S=0;do{if(Te&&(il=null),Zn=0,Te=!1,25<=S)throw Error(o(301));if(S+=1,fe=ee=null,l.updateQueue!=null){var T=l.updateQueue;T.lastEffect=null,T.events=null,T.stores=null,T.memoCache!=null&&(T.memoCache.index=0)}ne.H=Wi,T=r(f,m)}while(Te);return T}function a0(){var l=ne.H,r=l.useState()[0];return r=typeof r.then=="function"?b0(r):r,l=l.useState()[0],(ee!==null?ee.memoizedState:null)!==l&&(ve.flags|=1024),r}function $n(){var l=Y0!==0;return Y0=0,l}function tl(l,r,f){r.updateQueue=l.updateQueue,r.flags&=-2053,l.lanes&=~f}function ti(l){if(Me){for(l=l.memoizedState;l!==null;){var r=l.queue;r!==null&&(r.pending=null),l=l.next}Me=!1}pi=0,fe=ee=ve=null,Te=!1,Zn=Y0=0,il=null}function y0(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fe===null?ve.memoizedState=fe=l:fe=fe.next=l,fe}function fa(){if(ee===null){var l=ve.alternate;l=l!==null?l.memoizedState:null}else l=ee.next;var r=fe===null?ve.memoizedState:fe.next;if(r!==null)fe=r,ee=l;else{if(l===null)throw ve.alternate===null?Error(o(467)):Error(o(310));ee=l,l={memoizedState:ee.memoizedState,baseState:ee.baseState,baseQueue:ee.baseQueue,queue:ee.queue,next:null},fe===null?ve.memoizedState=fe=l:fe=fe.next=l}return fe}function rs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function b0(l){var r=Zn;return Zn+=1,il===null&&(il=[]),l=Mi(il,l,r),r=ve,(fe===null?r.memoizedState:fe.next)===null&&(r=r.alternate,ne.H=r===null||r.memoizedState===null?Ra:kl),l}function ss(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return b0(l);if(l.$$typeof===qn)return Ue(l)}throw Error(o(438,String(l)))}function uo(l){var r=null,f=ve.updateQueue;if(f!==null&&(r=f.memoCache),r==null){var m=ve.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(r={data:m.data.map(function(S){return S.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),f===null&&(f=rs(),ve.updateQueue=f),f.memoCache=r,f=r.data[r.index],f===void 0)for(f=r.data[r.index]=Array(l),m=0;m<l;m++)f[m]=o1;return r.index++,f}function el(l,r){return typeof r=="function"?r(l):r}function ei(l){var r=fa();return oo(r,ee,l)}function oo(l,r,f){var m=l.queue;if(m===null)throw Error(o(311));m.lastRenderedReducer=f;var S=l.baseQueue,T=m.pending;if(T!==null){if(S!==null){var N=S.next;S.next=T.next,T.next=N}r.baseQueue=S=T,m.pending=null}if(T=l.baseState,S===null)l.memoizedState=T;else{r=S.next;var Q=N=null,ht=null,Tt=r,Ht=!1;do{var zt=Tt.lane&-536870913;if(zt!==Tt.lane?(Ge&zt)===zt:(pi&zt)===zt){var Kt=Tt.revertLane;if(Kt===0)ht!==null&&(ht=ht.next={lane:0,revertLane:0,gesture:null,action:Tt.action,hasEagerState:Tt.hasEagerState,eagerState:Tt.eagerState,next:null}),zt===gi&&(Ht=!0);else if((pi&Kt)===Kt){Tt=Tt.next,Kt===gi&&(Ht=!0);continue}else zt={lane:0,revertLane:Tt.revertLane,gesture:null,action:Tt.action,hasEagerState:Tt.hasEagerState,eagerState:Tt.eagerState,next:null},ht===null?(Q=ht=zt,N=T):ht=ht.next=zt,ve.lanes|=Kt,vi|=Kt;zt=Tt.action,ke&&f(T,zt),T=Tt.hasEagerState?Tt.eagerState:f(T,zt)}else Kt={lane:zt,revertLane:Tt.revertLane,gesture:Tt.gesture,action:Tt.action,hasEagerState:Tt.hasEagerState,eagerState:Tt.eagerState,next:null},ht===null?(Q=ht=Kt,N=T):ht=ht.next=Kt,ve.lanes|=zt,vi|=zt;Tt=Tt.next}while(Tt!==null&&Tt!==r);if(ht===null?N=T:ht.next=Q,!Ja(T,l.memoizedState)&&(ya=!0,Ht&&(f=d0,f!==null)))throw f;l.memoizedState=T,l.baseState=N,l.baseQueue=ht,m.lastRenderedState=T}return S===null&&(m.lanes=0),[l.memoizedState,m.dispatch]}function co(l){var r=fa(),f=r.queue;if(f===null)throw Error(o(311));f.lastRenderedReducer=l;var m=f.dispatch,S=f.pending,T=r.memoizedState;if(S!==null){f.pending=null;var N=S=S.next;do T=l(T,N.action),N=N.next;while(N!==S);Ja(T,r.memoizedState)||(ya=!0),r.memoizedState=T,r.baseQueue===null&&(r.baseState=T),f.lastRenderedState=T}return[T,m]}function fr(l,r,f){var m=ve,S=fa(),T=He;if(T){if(f===void 0)throw Error(o(407));f=f()}else f=r();var N=!Ja((ee||S).memoizedState,f);if(N&&(S.memoizedState=f,ya=!0),S=S.queue,cs(Oc.bind(null,m,S,l),[l]),S.getSnapshot!==r||N||fe!==null&&fe.memoizedState.tag&1){if(m.flags|=2048,pn(9,{destroy:void 0},Rc.bind(null,m,S,f,r),null),Ae===null)throw Error(o(349));T||(pi&127)!==0||Dh(m,r,f)}return f}function Dh(l,r,f){l.flags|=16384,l={getSnapshot:r,value:f},r=ve.updateQueue,r===null?(r=rs(),ve.updateQueue=r,r.stores=[l]):(f=r.stores,f===null?r.stores=[l]:f.push(l))}function Rc(l,r,f,m){r.value=f,r.getSnapshot=m,ho(r)&&Nh(l)}function Oc(l,r,f){return f(function(){ho(r)&&Nh(l)})}function ho(l){var r=l.getSnapshot;l=l.value;try{var f=r();return!Ja(l,f)}catch{return!0}}function Nh(l){var r=pl(l,2);r!==null&&Da(r,l,2)}function Bc(l){var r=y0();if(typeof l=="function"){var f=l;if(l=f(),ke){$t(!0);try{f()}finally{$t(!1)}}}return r.memoizedState=r.baseState=l,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:l},r}function fu(l,r,f,m){return l.baseState=f,oo(l,ee,typeof m=="function"?m:el)}function ai(l,r,f,m,S){if(So(l))throw Error(o(485));if(l=r.action,l!==null){var T={payload:S,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(N){T.listeners.push(N)}};ne.T!==null?f(!0):T.isTransition=!1,m(T),f=r.pending,f===null?(T.next=r.pending=T,fo(r,T)):(T.next=f.next,r.pending=f.next=T)}}function fo(l,r){var f=r.action,m=r.payload,S=l.state;if(r.isTransition){var T=ne.T,N={};ne.T=N;try{var Q=f(S,m),ht=ne.S;ht!==null&&ht(N,Q),mo(l,r,Q)}catch(Tt){wi(l,r,Tt)}finally{T!==null&&N.types!==null&&(T.types=N.types),ne.T=T}}else try{T=f(S,m),mo(l,r,T)}catch(Tt){wi(l,r,Tt)}}function mo(l,r,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(m){dr(l,r,m)},function(m){return wi(l,r,m)}):dr(l,r,f)}function dr(l,r,f){r.status="fulfilled",r.value=f,Hc(r),l.state=f,r=l.pending,r!==null&&(f=r.next,f===r?l.pending=null:(f=f.next,r.next=f,fo(l,f)))}function wi(l,r,f){var m=l.pending;if(l.pending=null,m!==null){m=m.next;do r.status="rejected",r.reason=f,Hc(r),r=r.next;while(r!==m)}l.action=null}function Hc(l){l=l.listeners;for(var r=0;r<l.length;r++)(0,l[r])()}function go(l,r){return r}function Gc(l,r){if(He){var f=Ae.formState;if(f!==null){t:{var m=ve;if(He){if(_a){var S=Af(_a,F0);if(S){_a=zf(S),m=C1(S);break t}}Pt(m)}m=!1}m&&(r=f[0])}}f=y0(),f.memoizedState=f.baseState=r,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:go,lastRenderedState:r},f.queue=m,f=Uh.bind(null,ve,m),m.dispatch=f,m=Bc(!1);var T=bo.bind(null,ve,!1,m.queue);return m=y0(),S={state:r,dispatch:null,action:l,pending:null},m.queue=S,f=ai.bind(null,ve,S,T,f),S.dispatch=f,m.memoizedState=l,[r,f,!1]}function us(l){var r=fa();return xl(r,ee,l)}function xl(l,r,f){if(r=oo(l,r,go)[0],l=ei(el)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var m=b0(r)}catch(N){throw N===m0?Kn:N}else m=r;r=fa();var S=r.queue,T=S.dispatch;return f!==r.memoizedState&&(ve.flags|=2048,pn(9,{destroy:void 0},Uc.bind(null,S,f),null)),[m,T,l]}function Uc(l,r){l.action=r}function os(l){var r=fa(),f=ee;if(f!==null)return xl(r,f,l);fa(),r=r.memoizedState,f=fa();var m=f.queue.dispatch;return f.memoizedState=l,[r,m,!1]}function pn(l,r,f,m){return l={tag:l,create:f,deps:m,inst:r,next:null},r=ve.updateQueue,r===null&&(r=rs(),ve.updateQueue=r),f=r.lastEffect,f===null?r.lastEffect=l.next=l:(m=f.next,f.next=l,l.next=m,r.lastEffect=l),l}function po(){return fa().memoizedState}function mr(l,r,f,m){var S=y0();ve.flags|=l,S.memoizedState=pn(1|r,{destroy:void 0},f,m===void 0?null:m)}function du(l,r,f,m){var S=fa();m=m===void 0?null:m;var T=S.memoizedState.inst;ee!==null&&m!==null&&ha(m,ee.memoizedState.deps)?S.memoizedState=pn(r,T,f,m):(ve.flags|=l,S.memoizedState=pn(1|r,T,f,m))}function mu(l,r){mr(8390656,8,l,r)}function cs(l,r){du(2048,8,l,r)}function Rh(l){ve.flags|=4;var r=ve.updateQueue;if(r===null)r=rs(),ve.updateQueue=r,r.events=[l];else{var f=r.events;f===null?r.events=[l]:f.push(l)}}function V0(l){var r=fa().memoizedState;return Rh({ref:r,nextImpl:l}),function(){if((Ne&2)!==0)throw Error(o(440));return r.impl.apply(void 0,arguments)}}function Di(l,r){return du(4,2,l,r)}function gu(l,r){return du(4,4,l,r)}function hs(l,r){if(typeof r=="function"){l=l();var f=r(l);return function(){typeof f=="function"?f():r(null)}}if(r!=null)return l=l(),r.current=l,function(){r.current=null}}function Oh(l,r,f){f=f!=null?f.concat([l]):null,du(4,4,hs.bind(null,r,l),f)}function pu(){}function vo(l,r){var f=fa();r=r===void 0?null:r;var m=f.memoizedState;return r!==null&&ha(r,m[1])?m[0]:(f.memoizedState=[l,r],l)}function fs(l,r){var f=fa();r=r===void 0?null:r;var m=f.memoizedState;if(r!==null&&ha(r,m[1]))return m[0];if(m=l(),ke){$t(!0);try{l()}finally{$t(!1)}}return f.memoizedState=[m,r],m}function ds(l,r,f){return f===void 0||(pi&1073741824)!==0&&(Ge&261930)===0?l.memoizedState=r:(l.memoizedState=f,l=ii(),ve.lanes|=l,vi|=l,f)}function qc(l,r,f,m){return Ja(f,r)?f:Gr.current!==null?(l=ds(l,f,m),Ja(l,r)||(ya=!0),l):(pi&42)===0||(pi&1073741824)!==0&&(Ge&261930)===0?(ya=!0,l.memoizedState=f):(l=ii(),ve.lanes|=l,vi|=l,r)}function Bh(l,r,f,m,S){var T=Ln();Be(T!==0&&8>T?T:8);var N=ne.T,Q={};ne.T=Q,bo(l,!1,r,f);try{var ht=S(),Tt=ne.S;if(Tt!==null&&Tt(Q,ht),ht!==null&&typeof ht=="object"&&typeof ht.then=="function"){var Ht=ns(ht,m);vu(l,r,Ht,Ta(l))}else vu(l,r,m,Ta(l))}catch(zt){vu(l,r,{then:function(){},status:"rejected",reason:zt},Ta())}finally{Be(T),N!==null&&Q.types!==null&&(N.types=Q.types),ne.T=N}}function Hh(l){var r=l.memoizedState;if(r!==null)return r;r={memoizedState:Cr,baseState:Cr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:Cr},next:null};var f={};return r.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:f},next:null},l.memoizedState=r,l=l.alternate,l!==null&&(l.memoizedState=r),r}function Lc(){return Ue(wr)}function yo(){return fa().memoizedState}function Gh(){return fa().memoizedState}function u4(l){for(var r=l.return;r!==null;){switch(r.tag){case 24:case 3:var f=Ta();l=Dn(f);var m=yl(r,l,f);m!==null&&(Da(m,r,f),an(m,r,f)),r={cache:Ua()},l.payload=r;return}r=r.return}}function o4(l,r,f){var m=Ta();f={lane:m,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},So(l)?qh(r,f):(f=is(l,r,f,m),f!==null&&(Da(f,l,m),Lh(f,r,m)))}function Uh(l,r,f){var m=Ta();vu(l,r,f,m)}function vu(l,r,f,m){var S={lane:m,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null};if(So(l))qh(r,S);else{var T=l.alternate;if(l.lanes===0&&(T===null||T.lanes===0)&&(T=r.lastRenderedReducer,T!==null))try{var N=r.lastRenderedState,Q=T(N,f);if(S.hasEagerState=!0,S.eagerState=Q,Ja(Q,N))return $l(l,r,S,0),Ae===null&&gl(),!1}catch{}finally{}if(f=is(l,r,S,m),f!==null)return Da(f,l,m),Lh(f,r,m),!0}return!1}function bo(l,r,f,m){if(m={lane:2,revertLane:as(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},So(l)){if(r)throw Error(o(479))}else r=is(l,f,m,2),r!==null&&Da(r,l,2)}function So(l){var r=l.alternate;return l===ve||r!==null&&r===ve}function qh(l,r){Te=Me=!0;var f=l.pending;f===null?r.next=r:(r.next=f.next,f.next=r),l.pending=r}function Lh(l,r,f){if((f&4194048)!==0){var m=r.lanes;m&=l.pendingLanes,f|=m,r.lanes=f,St(l,f)}}function kc(l,r,f,m){r=l.memoizedState,f=f(m,r),f=f==null?r:ko({},r,f),l.memoizedState=f,l.lanes===0&&(l.updateQueue.baseState=f)}function xo(l,r,f,m,S,T,N){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(m,T,N):r.prototype&&r.prototype.isPureReactComponent?!Il(f,m)||!Il(S,T):!0}function kh(l,r,f,m){l=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(f,m),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(f,m),r.state!==l&&Qu.enqueueReplaceState(r,r.state,null)}function gr(l,r){var f=r;if("ref"in r){f={};for(var m in r)m!=="ref"&&(f[m]=r[m])}if(l=l.defaultProps){f===r&&(f=ko({},f));for(var S in l)f[S]===void 0&&(f[S]=l[S])}return f}function To(l,r){try{var f=l.onUncaughtError;f(r.value,{componentStack:r.stack})}catch(m){setTimeout(function(){throw m})}}function Yc(l,r,f){try{var m=l.onCaughtError;m(f.value,{componentStack:f.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(S){setTimeout(function(){throw S})}}function Xc(l,r,f){return f=Dn(f),f.tag=3,f.payload={element:null},f.callback=function(){To(l,r)},f}function Yh(l){return l=Dn(l),l.tag=3,l}function Xh(l,r,f,m){var S=f.type.getDerivedStateFromError;if(typeof S=="function"){var T=m.value;l.payload=function(){return S(T)},l.callback=function(){Yc(r,f,m)}}var N=f.stateNode;N!==null&&typeof N.componentDidCatch=="function"&&(l.callback=function(){Yc(r,f,m),typeof S!="function"&&(yi===null?yi=new Set([this]):yi.add(this));var Q=m.stack;this.componentDidCatch(m.value,{componentStack:Q!==null?Q:""})})}function c4(l,r,f,m,S){if(f.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(r=f.alternate,r!==null&&o0(r,f,S,!0),f=fn.current,f!==null){switch(f.tag){case 31:case 13:return I0===null?_s():f.alternate===null&&Ba===0&&(Ba=3),f.flags&=-257,f.flags|=65536,f.lanes=S,m===ql?f.flags|=16384:(r=f.updateQueue,r===null?f.updateQueue=new Set([m]):r.add(m),zs(l,m,S)),!1;case 22:return f.flags|=65536,m===ql?f.flags|=16384:(r=f.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([m])},f.updateQueue=r):(f=r.retryQueue,f===null?r.retryQueue=new Set([m]):f.add(m)),zs(l,m,S)),!1}throw Error(o(435,f.tag))}return zs(l,m,S),_s(),!1}if(He)return r=fn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=S,m!==oc&&(l=Error(o(422),{cause:m}),ra(Lt(l,f)))):(m!==oc&&(r=Error(o(423),{cause:m}),ra(Lt(r,f))),l=l.current.alternate,l.flags|=65536,S&=-S,l.lanes|=S,m=Lt(m,f),S=Xc(l.stateNode,m,S),hr(l,S),Ba!==4&&(Ba=2)),!1;var T=Error(o(520),{cause:m});if(T=Lt(T,f),Zu===null?Zu=[T]:Zu.push(T),Ba!==4&&(Ba=2),r===null)return!0;m=Lt(m,f),f=r;do{switch(f.tag){case 3:return f.flags|=65536,l=S&-S,f.lanes|=l,l=Xc(f.stateNode,m,l),hr(f,l),!1;case 1:if(r=f.type,T=f.stateNode,(f.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(yi===null||!yi.has(T))))return f.flags|=65536,S&=-S,f.lanes|=S,S=Yh(S),Xh(S,l,f,m),hr(f,S),!1}f=f.return}while(f!==null);return!1}function D0(l,r,f,m){r.child=l===null?K1(r,null,f,m):O0(r,l.child,f,m)}function jh(l,r,f,m,S){f=f.render;var T=r.ref;if("ref"in m){var N={};for(var Q in m)Q!=="ref"&&(N[Q]=m[Q])}else N=m;return X0(r),m=e0(l,r,f,N,T,S),Q=$n(),l!==null&&!ya?(tl(l,r,S),Tl(l,r,S)):(He&&Q&&I(r),r.flags|=1,D0(l,r,m,S),r.child)}function Vh(l,r,f,m,S){if(l===null){var T=f.type;return typeof T=="function"&&!Sr(T)&&T.defaultProps===void 0&&f.compare===null?(r.tag=15,r.type=T,Qh(l,r,T,m,S)):(l=ui(f.type,null,m,r,r.mode,S),l.ref=r.ref,l.return=r,r.child=l)}if(T=l.child,!bu(l,S)){var N=T.memoizedProps;if(f=f.compare,f=f!==null?f:Il,f(N,m)&&l.ref===r.ref)return Tl(l,r,S)}return r.flags|=1,l=bn(T,m),l.ref=r.ref,l.return=r,r.child=l}function Qh(l,r,f,m,S){if(l!==null){var T=l.memoizedProps;if(Il(T,m)&&l.ref===r.ref)if(ya=!1,r.pendingProps=m=T,bu(l,S))(l.flags&131072)!==0&&(ya=!0);else return r.lanes=l.lanes,Tl(l,r,S)}return _o(l,r,f,m,S)}function Kh(l,r,f,m){var S=m.children,T=l!==null?l.memoizedState:null;if(l===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((r.flags&128)!==0){if(T=T!==null?T.baseLanes|f:f,l!==null){for(m=r.child=l.child,S=0;m!==null;)S=S|m.lanes|m.childLanes,m=m.sibling;m=S&~T}else m=0,r.child=null;return ms(l,r,T,f,m)}if((f&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},l!==null&&Wl(r,T!==null?T.cachePool:null),T!==null?Z(r,T):jt(),Se(r);else return m=r.lanes=536870912,ms(l,r,T!==null?T.baseLanes|f:f,f,m)}else T!==null?(Wl(r,T.cachePool),Z(r,T),Oe(),r.memoizedState=null):(l!==null&&Wl(r,null),jt(),Oe());return D0(l,r,S,f),r.child}function pr(l,r){return l!==null&&l.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function ms(l,r,f,m,S){var T=Ei();return T=T===null?null:{parent:Ka?Ma._currentValue:Ma._currentValue2,pool:T},r.memoizedState={baseLanes:f,cachePool:T},l!==null&&Wl(r,null),jt(),Se(r),l!==null&&o0(l,r,m,!0),r.childLanes=S,null}function Eo(l,r){return r=Ni({mode:r.mode,children:r.children},l.mode),r.ref=l.ref,l.child=r,r.return=l,r}function jc(l,r,f){return O0(r,l.child,null,f),l=Eo(r,r.pendingProps),l.flags|=2,Xe(r),r.memoizedState=null,l}function Zh(l,r,f){var m=r.pendingProps,S=(r.flags&128)!==0;if(r.flags&=-129,l===null){if(He){if(m.mode==="hidden")return l=Eo(r,m),r.lanes=536870912,pr(null,l);if(Ee(r),(l=_a)?(l=D1(l,F0),l!==null&&(r.memoizedState={dehydrated:l,treeContext:Xn!==null?{id:N0,overflow:nl}:null,retryLane:536870912,hydrationErrors:null},f=r1(l),f.return=r,r.child=f,f0=r,_a=null)):l=null,l===null)throw Pt(r);return r.lanes=536870912,null}return Eo(r,m)}var T=l.memoizedState;if(T!==null){var N=T.dehydrated;if(Ee(r),S)if(r.flags&256)r.flags&=-257,r=jc(l,r,f);else if(r.memoizedState!==null)r.child=l.child,r.flags|=128,r=null;else throw Error(o(558));else if(ya||o0(l,r,f,!1),S=(f&l.childLanes)!==0,ya||S){if(m=Ae,m!==null&&(N=Zt(m,f),N!==0&&N!==T.retryLane))throw T.retryLane=N,pl(l,N),Da(m,l,N),P0;_s(),r=jc(l,r,f)}else l=T.treeContext,Ea&&(_a=Nf(N),f0=r,He=!0,Ul=null,F0=!1,l!==null&&Bt(r,l)),r=Eo(r,m),r.flags|=4096;return r}return l=bn(l.child,{mode:m.mode,children:m.children}),l.ref=r.ref,r.child=l,l.return=r,l}function yu(l,r){var f=r.ref;if(f===null)l!==null&&l.ref!==null&&(r.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(o(284));(l===null||l.ref!==f)&&(r.flags|=4194816)}}function _o(l,r,f,m,S){return X0(r),f=e0(l,r,f,m,void 0,S),m=$n(),l!==null&&!ya?(tl(l,r,S),Tl(l,r,S)):(He&&m&&I(r),r.flags|=1,D0(l,r,f,S),r.child)}function Vc(l,r,f,m,S,T){return X0(r),r.updateQueue=null,f=Fe(r,m,f,S),nn(l),m=$n(),l!==null&&!ya?(tl(l,r,T),Tl(l,r,T)):(He&&m&&I(r),r.flags|=1,D0(l,r,f,T),r.child)}function vr(l,r,f,m,S){if(X0(r),r.stateNode===null){var T=Bl,N=f.contextType;typeof N=="object"&&N!==null&&(T=Ue(N)),T=new f(m,T),r.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,T.updater=Qu,r.stateNode=T,T._reactInternals=r,T=r.stateNode,T.props=m,T.state=r.memoizedState,T.refs={},v0(r),N=f.contextType,T.context=typeof N=="object"&&N!==null?Ue(N):Bl,T.state=r.memoizedState,N=f.getDerivedStateFromProps,typeof N=="function"&&(kc(r,f,N,m),T.state=r.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(N=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),N!==T.state&&Qu.enqueueReplaceState(T,T.state,null),bl(r,m,T,S),Nn(),T.state=r.memoizedState),typeof T.componentDidMount=="function"&&(r.flags|=4194308),m=!0}else if(l===null){T=r.stateNode;var Q=r.memoizedProps,ht=gr(f,Q);T.props=ht;var Tt=T.context,Ht=f.contextType;N=Bl,typeof Ht=="object"&&Ht!==null&&(N=Ue(Ht));var zt=f.getDerivedStateFromProps;Ht=typeof zt=="function"||typeof T.getSnapshotBeforeUpdate=="function",Q=r.pendingProps!==Q,Ht||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(Q||Tt!==N)&&kh(r,T,m,N),Tn=!1;var Kt=r.memoizedState;T.state=Kt,bl(r,m,T,S),Nn(),Tt=r.memoizedState,Q||Kt!==Tt||Tn?(typeof zt=="function"&&(kc(r,f,zt,m),Tt=r.memoizedState),(ht=Tn||xo(r,f,ht,m,Kt,Tt,N))?(Ht||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount=="function"&&(r.flags|=4194308)):(typeof T.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=m,r.memoizedState=Tt),T.props=m,T.state=Tt,T.context=N,m=ht):(typeof T.componentDidMount=="function"&&(r.flags|=4194308),m=!1)}else{T=r.stateNode,vl(l,r),N=r.memoizedProps,Ht=gr(f,N),T.props=Ht,zt=r.pendingProps,Kt=T.context,Tt=f.contextType,ht=Bl,typeof Tt=="object"&&Tt!==null&&(ht=Ue(Tt)),Q=f.getDerivedStateFromProps,(Tt=typeof Q=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(N!==zt||Kt!==ht)&&kh(r,T,m,ht),Tn=!1,Kt=r.memoizedState,T.state=Kt,bl(r,m,T,S),Nn();var ge=r.memoizedState;N!==zt||Kt!==ge||Tn||l!==null&&l.dependencies!==null&&w0(l.dependencies)?(typeof Q=="function"&&(kc(r,f,Q,m),ge=r.memoizedState),(Ht=Tn||xo(r,f,Ht,m,Kt,ge,ht)||l!==null&&l.dependencies!==null&&w0(l.dependencies))?(Tt||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(m,ge,ht),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(m,ge,ht)),typeof T.componentDidUpdate=="function"&&(r.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof T.componentDidUpdate!="function"||N===l.memoizedProps&&Kt===l.memoizedState||(r.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||N===l.memoizedProps&&Kt===l.memoizedState||(r.flags|=1024),r.memoizedProps=m,r.memoizedState=ge),T.props=m,T.state=ge,T.context=ht,m=Ht):(typeof T.componentDidUpdate!="function"||N===l.memoizedProps&&Kt===l.memoizedState||(r.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||N===l.memoizedProps&&Kt===l.memoizedState||(r.flags|=1024),m=!1)}return T=m,yu(l,r),m=(r.flags&128)!==0,T||m?(T=r.stateNode,f=m&&typeof f.getDerivedStateFromError!="function"?null:T.render(),r.flags|=1,l!==null&&m?(r.child=O0(r,l.child,null,S),r.child=O0(r,null,f,S)):D0(l,r,f,S),r.memoizedState=T.state,l=r.child):l=Tl(l,r,S),l}function Jh(l,r,f,m){return Je(),r.flags|=256,D0(l,r,f,m),r.child}function Qc(l){return{baseLanes:l,cachePool:dl()}}function Kc(l,r,f){return l=l!==null?l.childLanes&~f:0,r&&(l|=$0),l}function Zc(l,r,f){var m=r.pendingProps,S=!1,T=(r.flags&128)!==0,N;if((N=T)||(N=l!==null&&l.memoizedState===null?!1:(Xa.current&2)!==0),N&&(S=!0,r.flags&=-129),N=(r.flags&32)!==0,r.flags&=-33,l===null){if(He){if(S?ae(r):Oe(),(l=_a)?(l=Hf(l,F0),l!==null&&(r.memoizedState={dehydrated:l,treeContext:Xn!==null?{id:N0,overflow:nl}:null,retryLane:536870912,hydrationErrors:null},f=r1(l),f.return=r,r.child=f,f0=r,_a=null)):l=null,l===null)throw Pt(r);return Jo(l)?r.lanes=32:r.lanes=536870912,null}var Q=m.children;return m=m.fallback,S?(Oe(),S=r.mode,Q=Ni({mode:"hidden",children:Q},S),m=Un(m,S,f,null),Q.return=r,m.return=r,Q.sibling=m,r.child=Q,m=r.child,m.memoizedState=Qc(f),m.childLanes=Kc(l,N,f),r.memoizedState=Ur,pr(null,m)):(ae(r),Mo(r,Q))}var ht=l.memoizedState;if(ht!==null&&(Q=ht.dehydrated,Q!==null)){if(T)r.flags&256?(ae(r),r.flags&=-257,r=yr(l,r,f)):r.memoizedState!==null?(Oe(),r.child=l.child,r.flags|=128,r=null):(Oe(),Q=m.fallback,S=r.mode,m=Ni({mode:"visible",children:m.children},S),Q=Un(Q,S,f,null),Q.flags|=2,m.return=r,Q.return=r,m.sibling=Q,r.child=m,O0(r,l.child,null,f),m=r.child,m.memoizedState=Qc(f),m.childLanes=Kc(l,N,f),r.memoizedState=Ur,r=pr(null,m));else if(ae(r),Jo(Q))N=Fo(Q).digest,m=Error(o(419)),m.stack="",m.digest=N,ra({value:m,source:null,stack:null}),r=yr(l,r,f);else if(ya||o0(l,r,f,!1),N=(f&l.childLanes)!==0,ya||N){if(N=Ae,N!==null&&(m=Zt(N,f),m!==0&&m!==ht.retryLane))throw ht.retryLane=m,pl(l,m),Da(N,l,m),P0;Vi(Q)||_s(),r=yr(l,r,f)}else Vi(Q)?(r.flags|=192,r.child=l.child,r=null):(l=ht.treeContext,Ea&&(_a=Rf(Q),f0=r,He=!0,Ul=null,F0=!1,l!==null&&Bt(r,l)),r=Mo(r,m.children),r.flags|=4096);return r}return S?(Oe(),Q=m.fallback,S=r.mode,ht=l.child,T=ht.sibling,m=bn(ht,{mode:"hidden",children:m.children}),m.subtreeFlags=ht.subtreeFlags&65011712,T!==null?Q=bn(T,Q):(Q=Un(Q,S,f,null),Q.flags|=2),Q.return=r,m.return=r,m.sibling=Q,r.child=m,pr(null,m),m=r.child,Q=l.child.memoizedState,Q===null?Q=Qc(f):(S=Q.cachePool,S!==null?(ht=Ka?Ma._currentValue:Ma._currentValue2,S=S.parent!==ht?{parent:ht,pool:ht}:S):S=dl(),Q={baseLanes:Q.baseLanes|f,cachePool:S}),m.memoizedState=Q,m.childLanes=Kc(l,N,f),r.memoizedState=Ur,pr(l.child,m)):(ae(r),f=l.child,l=f.sibling,f=bn(f,{mode:"visible",children:m.children}),f.return=r,f.sibling=null,l!==null&&(N=r.deletions,N===null?(r.deletions=[l],r.flags|=16):N.push(l)),r.child=f,r.memoizedState=null,f)}function Mo(l,r){return r=Ni({mode:"visible",children:r},l.mode),r.return=l,l.child=r}function Ni(l,r){return l=a(22,l,null,r),l.lanes=0,l}function yr(l,r,f){return O0(r,l.child,null,f),l=Mo(r,r.pendingProps.children),l.flags|=2,r.memoizedState=null,l}function Fh(l,r,f){l.lanes|=r;var m=l.alternate;m!==null&&(m.lanes|=r),Ie(l.return,r,f)}function gs(l,r,f,m,S,T){var N=l.memoizedState;N===null?l.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:S,treeForkCount:T}:(N.isBackwards=r,N.rendering=null,N.renderingStartTime=0,N.last=m,N.tail=f,N.tailMode=S,N.treeForkCount=T)}function Jc(l,r,f){var m=r.pendingProps,S=m.revealOrder,T=m.tail;m=m.children;var N=Xa.current,Q=(N&2)!==0;if(Q?(N=N&1|2,r.flags|=128):N&=1,C(Xa,N),D0(l,r,m,f),m=He?Xu:0,!Q&&l!==null&&(l.flags&128)!==0)t:for(l=r.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Fh(l,f,r);else if(l.tag===19)Fh(l,f,r);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)break t;for(;l.sibling===null;){if(l.return===null||l.return===r)break t;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(S){case"forwards":for(f=r.child,S=null;f!==null;)l=f.alternate,l!==null&&ca(l)===null&&(S=f),f=f.sibling;f=S,f===null?(S=r.child,r.child=null):(S=f.sibling,f.sibling=null),gs(r,!1,S,f,T,m);break;case"backwards":case"unstable_legacy-backwards":for(f=null,S=r.child,r.child=null;S!==null;){if(l=S.alternate,l!==null&&ca(l)===null){r.child=S;break}l=S.sibling,S.sibling=f,f=S,S=l}gs(r,!0,f,null,T,m);break;case"together":gs(r,!1,null,null,void 0,m);break;default:r.memoizedState=null}return r.child}function Tl(l,r,f){if(l!==null&&(r.dependencies=l.dependencies),vi|=r.lanes,(f&r.childLanes)===0)if(l!==null){if(o0(l,r,f,!1),(f&r.childLanes)===0)return null}else return null;if(l!==null&&r.child!==l.child)throw Error(o(153));if(r.child!==null){for(l=r.child,f=bn(l,l.pendingProps),r.child=f,f.return=r;l.sibling!==null;)l=l.sibling,f=f.sibling=bn(l,l.pendingProps),f.return=r;f.sibling=null}return r.child}function bu(l,r){return(l.lanes&r)!==0?!0:(l=l.dependencies,!!(l!==null&&w0(l)))}function Fc(l,r,f){switch(r.tag){case 3:wt(r,r.stateNode.containerInfo),sa(r,Ma,l.memoizedState.cache),Je();break;case 27:case 5:Xt(r);break;case 4:wt(r,r.stateNode.containerInfo);break;case 10:sa(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,Ee(r),null;break;case 13:var m=r.memoizedState;if(m!==null)return m.dehydrated!==null?(ae(r),r.flags|=128,null):(f&r.child.childLanes)!==0?Zc(l,r,f):(ae(r),l=Tl(l,r,f),l!==null?l.sibling:null);ae(r);break;case 19:var S=(l.flags&128)!==0;if(m=(f&r.childLanes)!==0,m||(o0(l,r,f,!1),m=(f&r.childLanes)!==0),S){if(m)return Jc(l,r,f);r.flags|=128}if(S=r.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),C(Xa,Xa.current),m)break;return null;case 22:return r.lanes=0,Kh(l,r,f,r.pendingProps);case 24:sa(r,Ma,l.memoizedState.cache)}return Tl(l,r,f)}function Wc(l,r,f){if(l!==null)if(l.memoizedProps!==r.pendingProps)ya=!0;else{if(!bu(l,f)&&(r.flags&128)===0)return ya=!1,Fc(l,r,f);ya=(l.flags&131072)!==0}else ya=!1,He&&(r.flags&1048576)!==0&&G(r,Xu,r.index);switch(r.lanes=0,r.tag){case 16:t:{var m=r.pendingProps;if(l=gn(r.elementType),r.type=l,typeof l=="function")Sr(l)?(m=gr(l,m),r.tag=1,r=vr(null,r,l,m,f)):(r.tag=0,r=_o(null,r,l,m,f));else{if(l!=null){var S=l.$$typeof;if(S===Cs){r.tag=11,r=jh(null,r,l,m,f);break t}else if(S===Xo){r.tag=14,r=Vh(null,r,l,m,f);break t}}throw r=_(l)||l,Error(o(306,r,""))}}return r;case 0:return _o(l,r,r.type,r.pendingProps,f);case 1:return m=r.type,S=gr(m,r.pendingProps),vr(l,r,m,S,f);case 3:t:{if(wt(r,r.stateNode.containerInfo),l===null)throw Error(o(387));var T=r.pendingProps;S=r.memoizedState,m=S.element,vl(l,r),bl(r,T,null,f);var N=r.memoizedState;if(T=N.cache,sa(r,Ma,T),T!==S.cache&&u0(r,[Ma],f,!0),Nn(),T=N.element,Ea&&S.isDehydrated)if(S={element:T,isDehydrated:!1,cache:N.cache},r.updateQueue.baseState=S,r.memoizedState=S,r.flags&256){r=Jh(l,r,T,f);break t}else if(T!==m){m=Lt(Error(o(424)),r),ra(m),r=Jh(l,r,T,f);break t}else for(Ea&&(_a=Df(r.stateNode.containerInfo),f0=r,He=!0,Ul=null,F0=!0),f=K1(r,null,T,f),r.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(Je(),T===m){r=Tl(l,r,f);break t}D0(l,r,T,f)}r=r.child}return r;case 26:if(kn)return yu(l,r),l===null?(f=H1(r.type,null,r.pendingProps,null))?r.memoizedState=f:He||(r.stateNode=$o(r.type,r.pendingProps,R0.current,r)):r.memoizedState=H1(r.type,l.memoizedProps,r.pendingProps,l.memoizedState),null;case 27:if(h0)return Xt(r),l===null&&h0&&He&&(m=r.stateNode=tc(r.type,r.pendingProps,R0.current,E0.current,!1),f0=r,F0=!0,_a=w1(r.type,m,_a)),D0(l,r,r.pendingProps.children,f),yu(l,r),l===null&&(r.flags|=4194304),r.child;case 5:return l===null&&He&&(Vf(r.type,r.pendingProps,E0.current),(S=m=_a)&&(m=Of(m,r.type,r.pendingProps,F0),m!==null?(r.stateNode=m,f0=r,_a=wf(m),F0=!1,S=!0):S=!1),S||Pt(r)),Xt(r),S=r.type,T=r.pendingProps,N=l!==null?l.memoizedProps:null,m=T.children,J0(S,T)?m=null:N!==null&&J0(S,N)&&(r.flags|=32),r.memoizedState!==null&&(S=e0(l,r,a0,null,null,f),Ka?wr._currentValue=S:wr._currentValue2=S),yu(l,r),D0(l,r,m,f),r.child;case 6:return l===null&&He&&(B1(r.pendingProps,E0.current),(l=f=_a)&&(f=Bf(f,r.pendingProps,F0),f!==null?(r.stateNode=f,f0=r,_a=null,l=!0):l=!1),l||Pt(r)),null;case 13:return Zc(l,r,f);case 4:return wt(r,r.stateNode.containerInfo),m=r.pendingProps,l===null?r.child=O0(r,null,m,f):D0(l,r,m,f),r.child;case 11:return jh(l,r,r.type,r.pendingProps,f);case 7:return D0(l,r,r.pendingProps,f),r.child;case 8:return D0(l,r,r.pendingProps.children,f),r.child;case 12:return D0(l,r,r.pendingProps.children,f),r.child;case 10:return m=r.pendingProps,sa(r,r.type,m.value),D0(l,r,m.children,f),r.child;case 9:return S=r.type._context,m=r.pendingProps.children,X0(r),S=Ue(S),m=m(S),r.flags|=1,D0(l,r,m,f),r.child;case 14:return Vh(l,r,r.type,r.pendingProps,f);case 15:return Qh(l,r,r.type,r.pendingProps,f);case 19:return Jc(l,r,f);case 31:return Zh(l,r,f);case 22:return Kh(l,r,f,r.pendingProps);case 24:return X0(r),m=Ue(Ma),l===null?(S=Ei(),S===null&&(S=Ae,T=Ua(),S.pooledCache=T,T.refCount++,T!==null&&(S.pooledCacheLanes|=f),S=T),r.memoizedState={parent:m,cache:S},v0(r),sa(r,Ma,S)):((l.lanes&f)!==0&&(vl(l,r),bl(r,null,null,f),Nn()),S=l.memoizedState,T=r.memoizedState,S.parent!==m?(S={parent:m,cache:m},r.memoizedState=S,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=S),sa(r,Ma,m)):(m=T.cache,sa(r,Ma,m),m!==S.cache&&u0(r,[Ma],f,!0))),D0(l,r,r.pendingProps.children,f),r.child;case 29:throw r.pendingProps}throw Error(o(156,r.tag))}function Rn(l){l.flags|=4}function Su(l){Sn&&(l.flags|=8)}function Wh(l,r){if(l!==null&&l.child===r.child)return!1;if((r.flags&16)!==0)return!0;for(l=r.child;l!==null;){if((l.flags&8218)!==0||(l.subtreeFlags&8218)!==0)return!0;l=l.sibling}return!1}function Ic(l,r,f,m){if(Le)for(f=r.child;f!==null;){if(f.tag===5||f.tag===6)Bu(l,f.stateNode);else if(!(f.tag===4||h0&&f.tag===27)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===r)break;for(;f.sibling===null;){if(f.return===null||f.return===r)return;f=f.return}f.sibling.return=f.return,f=f.sibling}else if(Sn)for(var S=r.child;S!==null;){if(S.tag===5){var T=S.stateNode;f&&m&&(T=Mf(T,S.type,S.memoizedProps)),Bu(l,T)}else if(S.tag===6)T=S.stateNode,f&&m&&(T=z1(T,S.memoizedProps)),Bu(l,T);else if(S.tag!==4){if(S.tag===22&&S.memoizedState!==null)T=S.child,T!==null&&(T.return=S),Ic(l,S,!0,!0);else if(S.child!==null){S.child.return=S,S=S.child;continue}}if(S===r)break;for(;S.sibling===null;){if(S.return===null||S.return===r)return;S=S.return}S.sibling.return=S.return,S=S.sibling}}function Ih(l,r,f,m){var S=!1;if(Sn)for(var T=r.child;T!==null;){if(T.tag===5){var N=T.stateNode;f&&m&&(N=Mf(N,T.type,T.memoizedProps)),M1(l,N)}else if(T.tag===6)N=T.stateNode,f&&m&&(N=z1(N,T.memoizedProps)),M1(l,N);else if(T.tag!==4){if(T.tag===22&&T.memoizedState!==null)S=T.child,S!==null&&(S.return=T),Ih(l,T,!0,!0),S=!0;else if(T.child!==null){T.child.return=T,T=T.child;continue}}if(T===r)break;for(;T.sibling===null;){if(T.return===null||T.return===r)return S;T=T.return}T.sibling.return=T.return,T=T.sibling}return S}function Ph(l,r){if(Sn&&Wh(l,r)){l=r.stateNode;var f=l.containerInfo,m=_1();Ih(m,r,!1,!1),l.pendingChildren=m,Rn(r),_f(f,m)}}function Pc(l,r,f,m){if(Le)l.memoizedProps!==m&&Rn(r);else if(Sn){var S=l.stateNode,T=l.memoizedProps;if((l=Wh(l,r))||T!==m){var N=E0.current;T=Ef(S,f,T,m,!l,null),T===S?r.stateNode=S:(Su(r),un(T,f,m,N)&&Rn(r),r.stateNode=T,l&&Ic(T,r,!1,!1))}else r.stateNode=S}}function Q0(l,r,f,m,S){if((l.mode&32)!==0&&(f===null?Hu(r,m):Os(r,f,m))){if(l.flags|=16777216,(S&335544128)===S||d1(r,m))if(Na(l.stateNode,r,m))l.flags|=8192;else if(qe())l.flags|=8192;else throw W0=ql,hc}else l.flags&=-16777217}function ps(l,r){if(L1(r)){if(l.flags|=16777216,!k1(r))if(qe())l.flags|=8192;else throw W0=ql,hc}else l.flags&=-16777217}function xu(l,r){r!==null&&(l.flags|=4),l.flags&16384&&(r=l.tag!==22?j():536870912,l.lanes|=r,Xs|=r)}function vs(l,r){if(!He)switch(l.tailMode){case"hidden":r=l.tail;for(var f=null;r!==null;)r.alternate!==null&&(f=r),r=r.sibling;f===null?l.tail=null:f.sibling=null;break;case"collapsed":f=l.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?r||l.tail===null?l.tail=null:l.tail.sibling=null:m.sibling=null}}function da(l){var r=l.alternate!==null&&l.alternate.child===l.child,f=0,m=0;if(r)for(var S=l.child;S!==null;)f|=S.lanes|S.childLanes,m|=S.subtreeFlags&65011712,m|=S.flags&65011712,S.return=l,S=S.sibling;else for(S=l.child;S!==null;)f|=S.lanes|S.childLanes,m|=S.subtreeFlags,m|=S.flags,S.return=l,S=S.sibling;return l.subtreeFlags|=m,l.childLanes=f,r}function $h(l,r,f){var m=r.pendingProps;switch(gt(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return da(r),null;case 1:return da(r),null;case 3:return f=r.stateNode,m=null,l!==null&&(m=l.memoizedState.cache),r.memoizedState.cache!==m&&(r.flags|=2048),be(Ma),Mt(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(l===null||l.child===null)&&(me(r)?Rn(r):l===null||l.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,De())),Ph(l,r),da(r),null;case 26:if(kn){var S=r.type,T=r.memoizedState;return l===null?(Rn(r),T!==null?(da(r),ps(r,T)):(da(r),Q0(r,S,null,m,f))):T?T!==l.memoizedState?(Rn(r),da(r),ps(r,T)):(da(r),r.flags&=-16777217):(T=l.memoizedProps,Le?T!==m&&Rn(r):Pc(l,r,S,m),da(r),Q0(r,S,T,m,f)),null}case 27:if(h0){if(It(r),f=R0.current,S=r.type,l!==null&&r.stateNode!=null)Le?l.memoizedProps!==m&&Rn(r):Pc(l,r,S,m);else{if(!m){if(r.stateNode===null)throw Error(o(166));return da(r),null}l=E0.current,me(r)?ze(r,l):(l=tc(S,m,f,l,!0),r.stateNode=l,Rn(r))}return da(r),null}case 5:if(It(r),S=r.type,l!==null&&r.stateNode!=null)Pc(l,r,S,m);else{if(!m){if(r.stateNode===null)throw Error(o(166));return da(r),null}if(T=E0.current,me(r))ze(r,T),Yf(r.stateNode,S,m,T)&&(r.flags|=64);else{var N=h1(S,m,R0.current,T,r);Su(r),Ic(N,r,!1,!1),r.stateNode=N,un(N,S,m,T)&&Rn(r)}}return da(r),Q0(r,r.type,l===null?null:l.memoizedProps,r.pendingProps,f),null;case 6:if(l&&r.stateNode!=null)f=l.memoizedProps,Le?f!==m&&Rn(r):Sn&&(f!==m?(l=R0.current,f=E0.current,Su(r),r.stateNode=hi(m,l,f,r)):r.stateNode=l.stateNode);else{if(typeof m!="string"&&r.stateNode===null)throw Error(o(166));if(l=R0.current,f=E0.current,me(r)){if(!Ea)throw Error(o(176));if(l=r.stateNode,f=r.memoizedProps,m=null,S=f0,S!==null)switch(S.tag){case 27:case 5:m=S.memoizedProps}g4(l,f,r,m)||Pt(r,!0)}else Su(r),r.stateNode=hi(m,l,f,r)}return da(r),null;case 31:if(f=r.memoizedState,l===null||l.memoizedState!==null){if(m=me(r),f!==null){if(l===null){if(!m)throw Error(o(318));if(!Ea)throw Error(o(556));if(l=r.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(557));N1(l,r)}else Je(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;da(r),l=!1}else f=De(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=f),l=!0;if(!l)return r.flags&256?(Xe(r),r):(Xe(r),null);if((r.flags&128)!==0)throw Error(o(558))}return da(r),null;case 13:if(m=r.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(S=me(r),m!==null&&m.dehydrated!==null){if(l===null){if(!S)throw Error(o(318));if(!Ea)throw Error(o(344));if(S=r.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(o(317));Uf(S,r)}else Je(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;da(r),S=!1}else S=De(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=S),S=!0;if(!S)return r.flags&256?(Xe(r),r):(Xe(r),null)}return Xe(r),(r.flags&128)!==0?(r.lanes=f,r):(f=m!==null,l=l!==null&&l.memoizedState!==null,f&&(m=r.child,S=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(S=m.alternate.memoizedState.cachePool.pool),T=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(T=m.memoizedState.cachePool.pool),T!==S&&(m.flags|=2048)),f!==l&&f&&(r.child.flags|=8192),xu(r,r.updateQueue),da(r),null);case 4:return Mt(),Ph(l,r),l===null&&ua(r.stateNode.containerInfo),da(r),null;case 10:return be(r.type),da(r),null;case 19:if(D(Xa),m=r.memoizedState,m===null)return da(r),null;if(S=(r.flags&128)!==0,T=m.rendering,T===null)if(S)vs(m,!1);else{if(Ba!==0||l!==null&&(l.flags&128)!==0)for(l=r.child;l!==null;){if(T=ca(l),T!==null){for(r.flags|=128,vs(m,!1),l=T.updateQueue,r.updateQueue=l,xu(r,l),r.subtreeFlags=0,l=f,f=r.child;f!==null;)Uo(f,l),f=f.sibling;return C(Xa,Xa.current&1|2),He&&xt(r,m.treeForkCount),r.child}l=l.sibling}m.tail!==null&&L0()>er&&(r.flags|=128,S=!0,vs(m,!1),r.lanes=4194304)}else{if(!S)if(l=ca(T),l!==null){if(r.flags|=128,S=!0,l=l.updateQueue,r.updateQueue=l,xu(r,l),vs(m,!0),m.tail===null&&m.tailMode==="hidden"&&!T.alternate&&!He)return da(r),null}else 2*L0()-m.renderingStartTime>er&&f!==536870912&&(r.flags|=128,S=!0,vs(m,!1),r.lanes=4194304);m.isBackwards?(T.sibling=r.child,r.child=T):(l=m.last,l!==null?l.sibling=T:r.child=T,m.last=T)}return m.tail!==null?(l=m.tail,m.rendering=l,m.tail=l.sibling,m.renderingStartTime=L0(),l.sibling=null,f=Xa.current,C(Xa,S?f&1|2:f&1),He&&xt(r,m.treeForkCount),l):(da(r),null);case 22:case 23:return Xe(r),Qt(),m=r.memoizedState!==null,l!==null?l.memoizedState!==null!==m&&(r.flags|=8192):m&&(r.flags|=8192),m?(f&536870912)!==0&&(r.flags&128)===0&&(da(r),r.subtreeFlags&6&&(r.flags|=8192)):da(r),f=r.updateQueue,f!==null&&xu(r,f.retryQueue),f=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),m=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(m=r.memoizedState.cachePool.pool),m!==f&&(r.flags|=2048),l!==null&&D(Zi),null;case 24:return f=null,l!==null&&(f=l.memoizedState.cache),r.memoizedState.cache!==f&&(r.flags|=2048),be(Ma),da(r),null;case 25:return null;case 30:return null}throw Error(o(156,r.tag))}function $c(l,r){switch(gt(r),r.tag){case 1:return l=r.flags,l&65536?(r.flags=l&-65537|128,r):null;case 3:return be(Ma),Mt(),l=r.flags,(l&65536)!==0&&(l&128)===0?(r.flags=l&-65537|128,r):null;case 26:case 27:case 5:return It(r),null;case 31:if(r.memoizedState!==null){if(Xe(r),r.alternate===null)throw Error(o(340));Je()}return l=r.flags,l&65536?(r.flags=l&-65537|128,r):null;case 13:if(Xe(r),l=r.memoizedState,l!==null&&l.dehydrated!==null){if(r.alternate===null)throw Error(o(340));Je()}return l=r.flags,l&65536?(r.flags=l&-65537|128,r):null;case 19:return D(Xa),null;case 4:return Mt(),null;case 10:return be(r.type),null;case 22:case 23:return Xe(r),Qt(),l!==null&&D(Zi),l=r.flags,l&65536?(r.flags=l&-65537|128,r):null;case 24:return be(Ma),null;case 25:return null;default:return null}}function tf(l,r){switch(gt(r),r.tag){case 3:be(Ma),Mt();break;case 26:case 27:case 5:It(r);break;case 4:Mt();break;case 31:r.memoizedState!==null&&Xe(r);break;case 13:Xe(r);break;case 19:D(Xa);break;case 10:be(r.type);break;case 22:case 23:Xe(r),Qt(),l!==null&&D(Zi);break;case 24:be(Ma)}}function El(l,r){try{var f=r.updateQueue,m=f!==null?f.lastEffect:null;if(m!==null){var S=m.next;f=S;do{if((f.tag&l)===l){m=void 0;var T=f.create,N=f.inst;m=T(),N.destroy=m}f=f.next}while(f!==S)}}catch(Q){he(r,r.return,Q)}}function _l(l,r,f){try{var m=r.updateQueue,S=m!==null?m.lastEffect:null;if(S!==null){var T=S.next;m=T;do{if((m.tag&l)===l){var N=m.inst,Q=N.destroy;if(Q!==void 0){N.destroy=void 0,S=r;var ht=f,Tt=Q;try{Tt()}catch(Ht){he(S,ht,Ht)}}}m=m.next}while(m!==T)}}catch(Ht){he(r,r.return,Ht)}}function ys(l){var r=l.updateQueue;if(r!==null){var f=l.stateNode;try{W(r,f)}catch(m){he(l,l.return,m)}}}function Ao(l,r,f){f.props=gr(l.type,l.memoizedProps),f.state=l.memoizedState;try{f.componentWillUnmount()}catch(m){he(l,r,m)}}function bs(l,r){try{var f=l.ref;if(f!==null){switch(l.tag){case 26:case 27:case 5:var m=Ds(l.stateNode);break;case 30:m=l.stateNode;break;default:m=l.stateNode}typeof f=="function"?l.refCleanup=f(m):f.current=m}}catch(S){he(l,r,S)}}function q0(l,r){var f=l.ref,m=l.refCleanup;if(f!==null)if(typeof m=="function")try{m()}catch(S){he(l,r,S)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(S){he(l,r,S)}else f.current=null}function br(l){var r=l.type,f=l.memoizedProps,m=l.stateNode;try{gf(m,r,f,l)}catch(S){he(l,l.return,S)}}function Tu(l,r,f){try{pf(l.stateNode,l.type,f,r,l)}catch(m){he(l,l.return,m)}}function t1(l){return l.tag===5||l.tag===3||(kn?l.tag===26:!1)||(h0?l.tag===27&&Dr(l.type):!1)||l.tag===4}function ni(l){t:for(;;){for(;l.sibling===null;){if(l.return===null||t1(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(h0&&l.tag===27&&Dr(l.type)||l.flags&2||l.child===null||l.tag===4)continue t;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function zo(l,r,f){var m=l.tag;if(m===5||m===6)l=l.stateNode,r?yf(f,l,r):S1(f,l);else if(m!==4&&(h0&&m===27&&Dr(l.type)&&(f=l.stateNode,r=null),l=l.child,l!==null))for(zo(l,r,f),l=l.sibling;l!==null;)zo(l,r,f),l=l.sibling}function Eu(l,r,f){var m=l.tag;if(m===5||m===6)l=l.stateNode,r?vf(f,l,r):b1(f,l);else if(m!==4&&(h0&&m===27&&Dr(l.type)&&(f=l.stateNode),l=l.child,l!==null))for(Eu(l,r,f),l=l.sibling;l!==null;)Eu(l,r,f),l=l.sibling}function e1(l,r,f){l=l.containerInfo;try{A1(l,f)}catch(m){he(r,r.return,m)}}function ef(l){var r=l.stateNode,f=l.memoizedProps;try{l0(l.type,f,r,l)}catch(m){he(l,l.return,m)}}function h4(l,r){for(jo(l.containerInfo),Fa=r;Fa!==null;)if(l=Fa,r=l.child,(l.subtreeFlags&1028)!==0&&r!==null)r.return=l,Fa=r;else for(;Fa!==null;){l=Fa;var f=l.alternate;switch(r=l.flags,l.tag){case 0:if((r&4)!==0&&(r=l.updateQueue,r=r!==null?r.events:null,r!==null))for(var m=0;m<r.length;m++){var S=r[m];S.ref.impl=S.nextImpl}break;case 11:case 15:break;case 1:if((r&1024)!==0&&f!==null){r=void 0,m=l,S=f.memoizedProps,f=f.memoizedState;var T=m.stateNode;try{var N=gr(m.type,S);r=T.getSnapshotBeforeUpdate(N,f),T.__reactInternalSnapshotBeforeUpdate=r}catch(Q){he(m,m.return,Q)}}break;case 3:(r&1024)!==0&&Le&&E1(l.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(o(163))}if(r=l.sibling,r!==null){r.return=l.return,Fa=r;break}Fa=l.return}}function af(l,r,f){var m=f.flags;switch(f.tag){case 0:case 11:case 15:K0(l,f),m&4&&El(5,f);break;case 1:if(K0(l,f),m&4)if(l=f.stateNode,r===null)try{l.componentDidMount()}catch(N){he(f,f.return,N)}else{var S=gr(f.type,r.memoizedProps);r=r.memoizedState;try{l.componentDidUpdate(S,r,l.__reactInternalSnapshotBeforeUpdate)}catch(N){he(f,f.return,N)}}m&64&&ys(f),m&512&&bs(f,f.return);break;case 3:if(K0(l,f),m&64&&(m=f.updateQueue,m!==null)){if(l=null,f.child!==null)switch(f.child.tag){case 27:case 5:l=Ds(f.child.stateNode);break;case 1:l=f.child.stateNode}try{W(m,l)}catch(N){he(f,f.return,N)}}break;case 27:h0&&r===null&&m&4&&ef(f);case 26:case 5:if(K0(l,f),r===null){if(m&4)br(f);else if(m&64){l=f.type,r=f.memoizedProps,S=f.stateNode;try{Lf(S,l,r,f)}catch(N){he(f,f.return,N)}}}m&512&&bs(f,f.return);break;case 12:K0(l,f);break;case 31:K0(l,f),m&4&&Bn(l,f);break;case 13:K0(l,f),m&4&&Mu(l,f),m&64&&(m=f.memoizedState,m!==null&&(m=m.dehydrated,m!==null&&(f=f4.bind(null,f),Wo(m,f))));break;case 22:if(m=f.memoizedState!==null||ja,!m){r=r!==null&&r.memoizedState!==null||Va,S=ja;var T=Va;ja=m,(Va=r)&&!T?Gn(l,f,(f.subtreeFlags&8772)!==0):K0(l,f),ja=S,Va=T}break;case 30:break;default:K0(l,f)}}function a1(l){var r=l.alternate;r!==null&&(l.alternate=null,a1(r)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(r=l.stateNode,r!==null&&Vo(r)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function On(l,r,f){for(f=f.child;f!==null;)_u(l,r,f),f=f.sibling}function _u(l,r,f){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Or,f)}catch{}switch(f.tag){case 26:if(kn){Va||q0(f,r),On(l,r,f),f.memoizedState?Qi(f.memoizedState):f.stateNode&&q1(f.stateNode);break}case 27:if(h0){Va||q0(f,r);var m=Oa,S=Wa;Dr(f.type)&&(Oa=f.stateNode,Wa=!1),On(l,r,f),T0(f.stateNode),Oa=m,Wa=S;break}case 5:Va||q0(f,r);case 6:if(Le){if(m=Oa,S=Wa,Oa=null,On(l,r,f),Oa=m,Wa=S,Oa!==null)if(Wa)try{x1(Oa,f.stateNode)}catch(T){he(f,r,T)}else try{bf(Oa,f.stateNode)}catch(T){he(f,r,T)}}else On(l,r,f);break;case 18:Le&&Oa!==null&&(Wa?Io(Oa,f.stateNode):O1(Oa,f.stateNode));break;case 4:Le?(m=Oa,S=Wa,Oa=f.stateNode.containerInfo,Wa=!0,On(l,r,f),Oa=m,Wa=S):(Sn&&e1(f.stateNode,f,_1()),On(l,r,f));break;case 0:case 11:case 14:case 15:_l(2,f,r),Va||_l(4,f,r),On(l,r,f);break;case 1:Va||(q0(f,r),m=f.stateNode,typeof m.componentWillUnmount=="function"&&Ao(f,r,m)),On(l,r,f);break;case 21:On(l,r,f);break;case 22:Va=(m=Va)||f.memoizedState!==null,On(l,r,f),Va=m;break;default:On(l,r,f)}}function Bn(l,r){if(Ea&&r.memoizedState===null&&(l=r.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{p4(l)}catch(f){he(r,r.return,f)}}}function Mu(l,r){if(Ea&&r.memoizedState===null&&(l=r.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{v4(l)}catch(f){he(r,r.return,f)}}function Hn(l){switch(l.tag){case 31:case 13:case 19:var r=l.stateNode;return r===null&&(r=l.stateNode=new J1),r;case 22:return l=l.stateNode,r=l._retryCache,r===null&&(r=l._retryCache=new J1),r;default:throw Error(o(435,l.tag))}}function li(l,r){var f=Hn(l);r.forEach(function(m){if(!f.has(m)){f.add(m);var S=d4.bind(null,l,m);m.then(S,S)}})}function S0(l,r){var f=r.deletions;if(f!==null)for(var m=0;m<f.length;m++){var S=f[m],T=l,N=r;if(Le){var Q=N;t:for(;Q!==null;){switch(Q.tag){case 27:if(h0){if(Dr(Q.type)){Oa=Q.stateNode,Wa=!1;break t}break}case 5:Oa=Q.stateNode,Wa=!1;break t;case 3:case 4:Oa=Q.stateNode.containerInfo,Wa=!0;break t}Q=Q.return}if(Oa===null)throw Error(o(160));_u(T,N,S),Oa=null,Wa=!1}else _u(T,N,S);T=S.alternate,T!==null&&(T.return=null),S.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)Au(r,l),r=r.sibling}function Au(l,r){var f=l.alternate,m=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:S0(r,l),x0(l),m&4&&(_l(3,l,l.return),El(3,l),_l(5,l,l.return));break;case 1:S0(r,l),x0(l),m&512&&(Va||f===null||q0(f,f.return)),m&64&&ja&&(l=l.updateQueue,l!==null&&(m=l.callbacks,m!==null&&(f=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=f===null?m:f.concat(m))));break;case 26:if(kn){var S=na;if(S0(r,l),x0(l),m&512&&(Va||f===null||q0(f,f.return)),m&4){m=f!==null?f.memoizedState:null;var T=l.memoizedState;f===null?T===null?l.stateNode===null?l.stateNode=Qf(S,l.type,l.memoizedProps,l):U1(S,l.type,l.stateNode):l.stateNode=G1(S,T,l.memoizedProps):m!==T?(m===null?f.stateNode!==null&&q1(f.stateNode):Qi(m),T===null?U1(S,l.type,l.stateNode):G1(S,T,l.memoizedProps)):T===null&&l.stateNode!==null&&Tu(l,l.memoizedProps,f.memoizedProps)}break}case 27:if(h0){S0(r,l),x0(l),m&512&&(Va||f===null||q0(f,f.return)),f!==null&&m&4&&Tu(l,l.memoizedProps,f.memoizedProps);break}case 5:if(S0(r,l),x0(l),m&512&&(Va||f===null||q0(f,f.return)),Le){if(l.flags&32){S=l.stateNode;try{T1(S)}catch(zt){he(l,l.return,zt)}}m&4&&l.stateNode!=null&&(S=l.memoizedProps,Tu(l,S,f!==null?f.memoizedProps:S)),m&1024&&(Us=!0)}else Sn&&l.alternate!==null&&(l.alternate.stateNode=l.stateNode);break;case 6:if(S0(r,l),x0(l),m&4&&Le){if(l.stateNode===null)throw Error(o(162));m=l.memoizedProps,f=f!==null?f.memoizedProps:m,S=l.stateNode;try{mf(S,f,m)}catch(zt){he(l,l.return,zt)}}break;case 3:if(kn?(Kf(),S=na,na=qu(r.containerInfo),S0(r,l),na=S):S0(r,l),x0(l),m&4){if(Le&&Ea&&f!==null&&f.memoizedState.isDehydrated)try{kf(r.containerInfo)}catch(zt){he(l,l.return,zt)}if(Sn){m=r.containerInfo,f=r.pendingChildren;try{A1(m,f)}catch(zt){he(l,l.return,zt)}}}Us&&(Us=!1,Co(l));break;case 4:kn?(f=na,na=qu(l.stateNode.containerInfo),S0(r,l),x0(l),na=f):(S0(r,l),x0(l)),m&4&&Sn&&e1(l.stateNode,l,l.stateNode.pendingChildren);break;case 12:S0(r,l),x0(l);break;case 31:S0(r,l),x0(l),m&4&&(m=l.updateQueue,m!==null&&(l.updateQueue=null,li(l,m)));break;case 13:S0(r,l),x0(l),l.child.flags&8192&&l.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(Ju=L0()),m&4&&(m=l.updateQueue,m!==null&&(l.updateQueue=null,li(l,m)));break;case 22:S=l.memoizedState!==null;var N=f!==null&&f.memoizedState!==null,Q=ja,ht=Va;if(ja=Q||S,Va=ht||N,S0(r,l),Va=ht,ja=Q,x0(l),m&8192&&(r=l.stateNode,r._visibility=S?r._visibility&-2:r._visibility|1,S&&(f===null||N||ja||Va||Ri(l)),Le)){t:if(f=null,Le)for(r=l;;){if(r.tag===5||kn&&r.tag===26){if(f===null){N=f=r;try{T=N.stateNode,S?m4(T):xf(N.stateNode,N.memoizedProps)}catch(zt){he(N,N.return,zt)}}}else if(r.tag===6){if(f===null){N=r;try{var Tt=N.stateNode;S?Sf(Tt):Tf(Tt,N.memoizedProps)}catch(zt){he(N,N.return,zt)}}}else if(r.tag===18){if(f===null){N=r;try{var Ht=N.stateNode;S?Xf(Ht):jf(N.stateNode)}catch(zt){he(N,N.return,zt)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===l)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===l)break t;for(;r.sibling===null;){if(r.return===null||r.return===l)break t;f===r&&(f=null),r=r.return}f===r&&(f=null),r.sibling.return=r.return,r=r.sibling}}m&4&&(m=l.updateQueue,m!==null&&(f=m.retryQueue,f!==null&&(m.retryQueue=null,li(l,f))));break;case 19:S0(r,l),x0(l),m&4&&(m=l.updateQueue,m!==null&&(l.updateQueue=null,li(l,m)));break;case 30:break;case 21:break;default:S0(r,l),x0(l)}}function x0(l){var r=l.flags;if(r&2){try{for(var f,m=l.return;m!==null;){if(t1(m)){f=m;break}m=m.return}if(Le){if(f==null)throw Error(o(160));switch(f.tag){case 27:if(h0){var S=f.stateNode,T=ni(l);Eu(l,T,S);break}case 5:var N=f.stateNode;f.flags&32&&(T1(N),f.flags&=-33);var Q=ni(l);Eu(l,Q,N);break;case 3:case 4:var ht=f.stateNode.containerInfo,Tt=ni(l);zo(l,Tt,ht);break;default:throw Error(o(161))}}}catch(Ht){he(l,l.return,Ht)}l.flags&=-3}r&4096&&(l.flags&=-4097)}function Co(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var r=l;Co(r),r.tag===5&&r.flags&1024&&g1(r.stateNode),l=l.sibling}}function K0(l,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)af(l,r.alternate,r),r=r.sibling}function Ri(l){for(l=l.child;l!==null;){var r=l;switch(r.tag){case 0:case 11:case 14:case 15:_l(4,r,r.return),Ri(r);break;case 1:q0(r,r.return);var f=r.stateNode;typeof f.componentWillUnmount=="function"&&Ao(r,r.return,f),Ri(r);break;case 27:h0&&T0(r.stateNode);case 26:case 5:q0(r,r.return),Ri(r);break;case 22:r.memoizedState===null&&Ri(r);break;case 30:Ri(r);break;default:Ri(r)}l=l.sibling}}function Gn(l,r,f){for(f=f&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var m=r.alternate,S=l,T=r,N=T.flags;switch(T.tag){case 0:case 11:case 15:Gn(S,T,f),El(4,T);break;case 1:if(Gn(S,T,f),m=T,S=m.stateNode,typeof S.componentDidMount=="function")try{S.componentDidMount()}catch(Tt){he(m,m.return,Tt)}if(m=T,S=m.updateQueue,S!==null){var Q=m.stateNode;try{var ht=S.shared.hiddenCallbacks;if(ht!==null)for(S.shared.hiddenCallbacks=null,S=0;S<ht.length;S++)Sl(ht[S],Q)}catch(Tt){he(m,m.return,Tt)}}f&&N&64&&ys(T),bs(T,T.return);break;case 27:h0&&ef(T);case 26:case 5:Gn(S,T,f),f&&m===null&&N&4&&br(T),bs(T,T.return);break;case 12:Gn(S,T,f);break;case 31:Gn(S,T,f),f&&N&4&&Bn(S,T);break;case 13:Gn(S,T,f),f&&N&4&&Mu(S,T);break;case 22:T.memoizedState===null&&Gn(S,T,f),bs(T,T.return);break;case 30:break;default:Gn(S,T,f)}r=r.sibling}}function Oi(l,r){var f=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==f&&(l!=null&&l.refCount++,f!=null&&xa(f))}function n1(l,r){l=null,r.alternate!==null&&(l=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==l&&(r.refCount++,l!=null&&xa(l))}function wa(l,r,f,m){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)wo(l,r,f,m),r=r.sibling}function wo(l,r,f,m){var S=r.flags;switch(r.tag){case 0:case 11:case 15:wa(l,r,f,m),S&2048&&El(9,r);break;case 1:wa(l,r,f,m);break;case 3:wa(l,r,f,m),S&2048&&(l=null,r.alternate!==null&&(l=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==l&&(r.refCount++,l!=null&&xa(l)));break;case 12:if(S&2048){wa(l,r,f,m),l=r.stateNode;try{var T=r.memoizedProps,N=T.id,Q=T.onPostCommit;typeof Q=="function"&&Q(N,r.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(ht){he(r,r.return,ht)}}else wa(l,r,f,m);break;case 31:wa(l,r,f,m);break;case 13:wa(l,r,f,m);break;case 23:break;case 22:T=r.stateNode,N=r.alternate,r.memoizedState!==null?T._visibility&2?wa(l,r,f,m):Ss(l,r):T._visibility&2?wa(l,r,f,m):(T._visibility|=2,ln(l,r,f,m,(r.subtreeFlags&10256)!==0||!1)),S&2048&&Oi(N,r);break;case 24:wa(l,r,f,m),S&2048&&n1(r.alternate,r);break;default:wa(l,r,f,m)}}function ln(l,r,f,m,S){for(S=S&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var T=l,N=r,Q=f,ht=m,Tt=N.flags;switch(N.tag){case 0:case 11:case 15:ln(T,N,Q,ht,S),El(8,N);break;case 23:break;case 22:var Ht=N.stateNode;N.memoizedState!==null?Ht._visibility&2?ln(T,N,Q,ht,S):Ss(T,N):(Ht._visibility|=2,ln(T,N,Q,ht,S)),S&&Tt&2048&&Oi(N.alternate,N);break;case 24:ln(T,N,Q,ht,S),S&&Tt&2048&&n1(N.alternate,N);break;default:ln(T,N,Q,ht,S)}r=r.sibling}}function Ss(l,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var f=l,m=r,S=m.flags;switch(m.tag){case 22:Ss(f,m),S&2048&&Oi(m.alternate,m);break;case 24:Ss(f,m),S&2048&&n1(m.alternate,m);break;default:Ss(f,m)}r=r.sibling}}function Ml(l,r,f){if(l.subtreeFlags&_n)for(l=l.child;l!==null;)Bi(l,r,f),l=l.sibling}function Bi(l,r,f){switch(l.tag){case 26:if(Ml(l,r,f),l.flags&_n)if(l.memoizedState!==null)Zf(f,na,l.memoizedState,l.memoizedProps);else{var m=l.stateNode,S=l.type;l=l.memoizedProps,((r&335544128)===r||d1(S,l))&&Qo(f,m,S,l)}break;case 5:Ml(l,r,f),l.flags&_n&&(m=l.stateNode,S=l.type,l=l.memoizedProps,((r&335544128)===r||d1(S,l))&&Qo(f,m,S,l));break;case 3:case 4:kn?(m=na,na=qu(l.stateNode.containerInfo),Ml(l,r,f),na=m):Ml(l,r,f);break;case 22:l.memoizedState===null&&(m=l.alternate,m!==null&&m.memoizedState!==null?(m=_n,_n=16777216,Ml(l,r,f),_n=m):Ml(l,r,f));break;default:Ml(l,r,f)}}function Do(l){var r=l.alternate;if(r!==null&&(l=r.child,l!==null)){r.child=null;do r=l.sibling,l.sibling=null,l=r;while(l!==null)}}function xs(l){var r=l.deletions;if((l.flags&16)!==0){if(r!==null)for(var f=0;f<r.length;f++){var m=r[f];Fa=m,vn(m,l)}Do(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)No(l),l=l.sibling}function No(l){switch(l.tag){case 0:case 11:case 15:xs(l),l.flags&2048&&_l(9,l,l.return);break;case 3:xs(l);break;case 12:xs(l);break;case 22:var r=l.stateNode;l.memoizedState!==null&&r._visibility&2&&(l.return===null||l.return.tag!==13)?(r._visibility&=-3,zu(l)):xs(l);break;default:xs(l)}}function zu(l){var r=l.deletions;if((l.flags&16)!==0){if(r!==null)for(var f=0;f<r.length;f++){var m=r[f];Fa=m,vn(m,l)}Do(l)}for(l=l.child;l!==null;){switch(r=l,r.tag){case 0:case 11:case 15:_l(8,r,r.return),zu(r);break;case 22:f=r.stateNode,f._visibility&2&&(f._visibility&=-3,zu(r));break;default:zu(r)}l=l.sibling}}function vn(l,r){for(;Fa!==null;){var f=Fa;switch(f.tag){case 0:case 11:case 15:_l(8,f,r);break;case 23:case 22:if(f.memoizedState!==null&&f.memoizedState.cachePool!==null){var m=f.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:xa(f.memoizedState.cache)}if(m=f.child,m!==null)m.return=f,Fa=m;else t:for(f=l;Fa!==null;){m=Fa;var S=m.sibling,T=m.return;if(a1(m),m===f){Fa=null;break t}if(S!==null){S.return=T,Fa=S;break t}Fa=T}}}function Hi(l){var r=pe(l);if(r!=null){if(typeof r.memoizedProps["data-testname"]!="string")throw Error(o(364));return r}if(l=Za(l),l===null)throw Error(o(362));return l.stateNode.current}function Gi(l,r){var f=l.tag;switch(r.$$typeof){case Jn:if(l.type===r.value)return!0;break;case Ls:t:{for(r=r.value,l=[l,0],f=0;f<l.length;){var m=l[f++],S=m.tag,T=l[f++],N=r[T];if(S!==5&&S!==26&&S!==27||!ji(m)){for(;N!=null&&Gi(m,N);)T++,N=r[T];if(T===r.length){r=!0;break t}else for(m=m.child;m!==null;)l.push(m,T),m=m.sibling}}r=!1}return r;case ks:if((f===5||f===26||f===27)&&y1(l.stateNode,r.value))return!0;break;case Ii:if((f===5||f===6||f===26||f===27)&&(l=Gu(l),l!==null&&0<=l.indexOf(r.value)))return!0;break;case Ku:if((f===5||f===26||f===27)&&(l=l.memoizedProps["data-testname"],typeof l=="string"&&l.toLowerCase()===r.value.toLowerCase()))return!0;break;default:throw Error(o(365))}return!1}function Ts(l){switch(l.$$typeof){case Jn:return"<"+(_(l.value)||"Unknown")+">";case Ls:return":has("+(Ts(l)||"")+")";case ks:return'[role="'+l.value+'"]';case Ii:return'"'+l.value+'"';case Ku:return'[data-testname="'+l.value+'"]';default:throw Error(o(365))}}function Es(l,r){var f=[];l=[l,0];for(var m=0;m<l.length;){var S=l[m++],T=S.tag,N=l[m++],Q=r[N];if(T!==5&&T!==26&&T!==27||!ji(S)){for(;Q!=null&&Gi(S,Q);)N++,Q=r[N];if(N===r.length)f.push(S);else for(S=S.child;S!==null;)l.push(S,N),S=S.sibling}}return f}function rn(l,r){if(!c0)throw Error(o(363));l=Hi(l),l=Es(l,r),r=[],l=Array.from(l);for(var f=0;f<l.length;){var m=l[f++],S=m.tag;if(S===5||S===26||S===27)ji(m)||r.push(m.stateNode);else for(m=m.child;m!==null;)l.push(m),m=m.sibling}return r}function Ta(){return(Ne&2)!==0&&Ge!==0?Ge&-Ge:ne.T!==null?as():Rs()}function ii(){if($0===0)if((Ge&536870912)===0||He){var l=Rr;Rr<<=1,(Rr&3932160)===0&&(Rr=262144),$0=l}else $0=536870912;return l=fn.current,l!==null&&(l.flags|=32),$0}function Da(l,r,f){(l===Ae&&(la===2||la===9)||l.cancelPendingCommit!==null)&&(Ya(l,0),zl(l,Ge,$0,!1)),ut(l,f),((Ne&2)===0||l!==Ae)&&(l===Ae&&((Ne&2)===0&&(tr|=f),Ba===4&&zl(l,Ge,$0,!1)),qa(l))}function al(l,r,f){if((Ne&6)!==0)throw Error(o(327));var m=!f&&(r&127)===0&&(r&l.expiredLanes)===0||X(l,r),S=m?rf(l,r):Cl(l,r,!0),T=m;do{if(S===0){Pi&&!m&&zl(l,r,0,!1);break}else{if(f=l.current.alternate,T&&!nf(f)){S=Cl(l,r,!1),T=!1;continue}if(S===2){if(T=r,l.errorRecoveryDisabledLanes&T)var N=0;else N=l.pendingLanes&-536870913,N=N!==0?N:N&536870912?536870912:0;if(N!==0){r=N;t:{var Q=l;S=Zu;var ht=Ea&&Q.current.memoizedState.isDehydrated;if(ht&&(Ya(Q,N).flags|=256),N=Cl(Q,N,!1),N!==2){if($i&&!ht){Q.errorRecoveryDisabledLanes|=T,tr|=T,S=4;break t}T=dn,dn=S,T!==null&&(dn===null?dn=T:dn.push.apply(dn,T))}S=N}if(T=!1,S!==2)continue}}if(S===1){Ya(l,0),zl(l,r,0,!0);break}t:{switch(m=l,T=S,T){case 0:case 1:throw Error(o(345));case 4:if((r&4194048)!==r)break;case 6:zl(m,r,$0,!rl);break t;case 2:dn=null;break;case 3:case 5:break;default:throw Error(o(329))}if((r&62914560)===r&&(S=Ju+300-L0(),10<S)){if(zl(m,r,$0,!rl),B(m,0,!0)!==0)break t;Xl=r,m.timeoutHandle=f1(Al.bind(null,m,f,dn,Fu,dc,r,$0,tr,Xs,rl,T,"Throttled",-0,0),S);break t}Al(m,f,dn,Fu,dc,r,$0,tr,Xs,rl,T,null,-0,0)}}break}while(!0);qa(l)}function Al(l,r,f,m,S,T,N,Q,ht,Tt,Ht,zt,Kt,ge){if(l.timeoutHandle=on,zt=r.subtreeFlags,zt&8192||(zt&16785408)===16785408){zt=m1(),Bi(r,T,zt);var M0=(T&62914560)===T?Ju-L0():(T&4194048)===T?Lr-L0():0;if(M0=df(zt,M0),M0!==null){Xl=T,l.cancelPendingCommit=M0(Dl.bind(null,l,r,T,f,m,S,N,Q,ht,Ht,zt,null,Kt,ge)),zl(l,T,N,!Tt);return}}Dl(l,r,T,f,m,S,N,Q,ht)}function nf(l){for(var r=l;;){var f=r.tag;if((f===0||f===11||f===15)&&r.flags&16384&&(f=r.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var m=0;m<f.length;m++){var S=f[m],T=S.getSnapshot;S=S.value;try{if(!Ja(T(),S))return!1}catch{return!1}}if(f=r.child,r.subtreeFlags&16384&&f!==null)f.return=r,r=f;else{if(r===l)break;for(;r.sibling===null;){if(r.return===null||r.return===l)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function zl(l,r,f,m){r&=~Ys,r&=~tr,l.suspendedLanes|=r,l.pingedLanes&=~r,m&&(l.warmLanes|=r),m=l.expirationTimes;for(var S=r;0<S;){var T=31-cn(S),N=1<<T;m[T]=-1,S&=~N}f!==0&&ot(l,f,r)}function Ro(){return(Ne&6)===0?(La(0),!1):!0}function Oo(){if(Re!==null){if(la===0)var l=Re.return;else l=Re,ll=ga=null,ti(l),Ji=null,Br=0,l=Re;for(;l!==null;)tf(l.alternate,l),l=l.return;Re=null}}function Ya(l,r){var f=l.timeoutHandle;f!==on&&(l.timeoutHandle=on,ff(f)),f=l.cancelPendingCommit,f!==null&&(l.cancelPendingCommit=null,f()),Xl=0,Oo(),Ae=l,Re=f=bn(l.current,null),Ge=r,la=0,i0=null,rl=!1,Pi=X(l,r),$i=!1,Xs=$0=Ys=tr=vi=Ba=0,dn=Zu=null,dc=!1,(r&8)!==0&&(r|=r&32);var m=l.entangledLanes;if(m!==0)for(l=l.entanglements,m&=r;0<m;){var S=31-cn(m),T=1<<S;r|=l[S],m&=~T}return Yl=r,gl(),f}function ma(l,r){ve=null,ne.H=En,r===m0||r===Kn?(r=Ai(),la=3):r===hc?(r=Ai(),la=4):la=r===P0?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,i0=r,Re===null&&(Ba=1,To(l,Lt(r,l.current)))}function qe(){var l=fn.current;return l===null?!0:(Ge&4194048)===Ge?I0===null:(Ge&62914560)===Ge||(Ge&536870912)!==0?l===I0:!1}function ri(){var l=ne.H;return ne.H=En,l===null?En:l}function yn(){var l=ne.A;return ne.A=qs,l}function _s(){Ba=4,rl||(Ge&4194048)!==Ge&&fn.current!==null||(Pi=!0),(vi&134217727)===0&&(tr&134217727)===0||Ae===null||zl(Ae,Ge,$0,!1)}function Cl(l,r,f){var m=Ne;Ne|=2;var S=ri(),T=yn();(Ae!==l||Ge!==r)&&(Fu=null,Ya(l,r)),r=!1;var N=Ba;t:do try{if(la!==0&&Re!==null){var Q=Re,ht=i0;switch(la){case 8:Oo(),N=6;break t;case 3:case 2:case 9:case 6:fn.current===null&&(r=!0);var Tt=la;if(la=0,i0=null,wl(l,Q,ht,Tt),f&&Pi){N=0;break t}break;default:Tt=la,la=0,i0=null,wl(l,Q,ht,Tt)}}lf(),N=Ba;break}catch(Ht){ma(l,Ht)}while(!0);return r&&l.shellSuspendCounter++,ll=ga=null,Ne=m,ne.H=S,ne.A=T,Re===null&&(Ae=null,Ge=0,gl()),N}function lf(){for(;Re!==null;)Ui(Re)}function rf(l,r){var f=Ne;Ne|=2;var m=ri(),S=yn();Ae!==l||Ge!==r?(Fu=null,er=L0()+500,Ya(l,r)):Pi=X(l,r);t:do try{if(la!==0&&Re!==null){r=Re;var T=i0;e:switch(la){case 1:la=0,i0=null,wl(l,r,T,1);break;case 2:case 9:if(_i(T)){la=0,i0=null,Bo(r);break}r=function(){la!==2&&la!==9||Ae!==l||(la=7),qa(l)},T.then(r,r);break t;case 3:la=7;break t;case 4:la=5;break t;case 7:_i(T)?(la=0,i0=null,Bo(r)):(la=0,i0=null,wl(l,r,T,7));break;case 5:var N=null;switch(Re.tag){case 26:N=Re.memoizedState;case 5:case 27:var Q=Re,ht=Q.type,Tt=Q.pendingProps;if(N?k1(N):Na(Q.stateNode,ht,Tt)){la=0,i0=null;var Ht=Q.sibling;if(Ht!==null)Re=Ht;else{var zt=Q.return;zt!==null?(Re=zt,As(zt)):Re=null}break e}}la=0,i0=null,wl(l,r,T,5);break;case 6:la=0,i0=null,wl(l,r,T,6);break;case 8:Oo(),Ba=6;break t;default:throw Error(o(462))}}Ms();break}catch(Kt){ma(l,Kt)}while(!0);return ll=ga=null,ne.H=m,ne.A=S,Ne=f,Re!==null?0:(Ae=null,Ge=0,gl(),Ba)}function Ms(){for(;Re!==null&&!Ff();)Ui(Re)}function Ui(l){var r=Wc(l.alternate,l,Yl);l.memoizedProps=l.pendingProps,r===null?As(l):Re=r}function Bo(l){var r=l,f=r.alternate;switch(r.tag){case 15:case 0:r=Vc(f,r,r.pendingProps,r.type,void 0,Ge);break;case 11:r=Vc(f,r,r.pendingProps,r.type.render,r.ref,Ge);break;case 5:ti(r);default:tf(f,r),r=Re=Uo(r,Yl),r=Wc(f,r,Yl)}l.memoizedProps=l.pendingProps,r===null?As(l):Re=r}function wl(l,r,f,m){ll=ga=null,ti(r),Ji=null,Br=0;var S=r.return;try{if(c4(l,S,r,f,Ge)){Ba=1,To(l,Lt(f,l.current)),Re=null;return}}catch(T){if(S!==null)throw Re=S,T;Ba=1,To(l,Lt(f,l.current)),Re=null;return}r.flags&32768?(He||m===1?l=!0:Pi||(Ge&536870912)!==0?l=!1:(rl=l=!0,(m===2||m===9||m===3||m===6)&&(m=fn.current,m!==null&&m.tag===13&&(m.flags|=16384))),qi(r,l)):As(r)}function As(l){var r=l;do{if((r.flags&32768)!==0){qi(r,rl);return}l=r.return;var f=$h(r.alternate,r,Yl);if(f!==null){Re=f;return}if(r=r.sibling,r!==null){Re=r;return}Re=r=l}while(r!==null);Ba===0&&(Ba=5)}function qi(l,r){do{var f=$c(l.alternate,l);if(f!==null){f.flags&=32767,Re=f;return}if(f=l.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!r&&(l=l.sibling,l!==null)){Re=l;return}Re=l=f}while(l!==null);Ba=6,Re=null}function Dl(l,r,f,m,S,T,N,Q,ht){l.cancelPendingCommit=null;do Rl();while(r0!==0);if((Ne&6)!==0)throw Error(o(327));if(r!==null){if(r===l.current)throw Error(o(177));if(T=r.lanes|r.childLanes,T|=Hr,st(l,f,T,N,Q,ht),l===Ae&&(Re=Ae=null,Ge=0),kr=r,bi=l,Xl=f,js=T,mc=S,F1=m,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,n0(ku,function(){return Cu(),null})):(l.callbackNode=null,l.callbackPriority=0),m=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||m){m=ne.T,ne.T=null,S=Ln(),Be(2),N=Ne,Ne|=4;try{h4(l,r,f)}finally{Ne=N,Be(S),ne.T=m}}r0=1,si(),Nl(),Ho()}}function si(){if(r0===1){r0=0;var l=bi,r=kr,f=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||f){f=ne.T,ne.T=null;var m=Ln();Be(2);var S=Ne;Ne|=4;try{Au(r,l),hf(l.containerInfo)}finally{Ne=S,Be(m),ne.T=f}}l.current=r,r0=2}}function Nl(){if(r0===2){r0=0;var l=bi,r=kr,f=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||f){f=ne.T,ne.T=null;var m=Ln();Be(2);var S=Ne;Ne|=4;try{af(l,r.alternate,r)}finally{Ne=S,Be(m),ne.T=f}}r0=3}}function Ho(){if(r0===4||r0===3){r0=0,X1();var l=bi,r=kr,f=Xl,m=F1;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?r0=5:(r0=0,kr=bi=null,Go(l,l.pendingLanes));var S=l.pendingLanes;if(S===0&&(yi=null),Nt(f),r=r.stateNode,hn&&typeof hn.onCommitFiberRoot=="function")try{hn.onCommitFiberRoot(Or,r,void 0,(r.current.flags&128)===128)}catch{}if(m!==null){r=ne.T,S=Ln(),Be(2),ne.T=null;try{for(var T=l.onRecoverableError,N=0;N<m.length;N++){var Q=m[N];T(Q.value,{componentStack:Q.stack})}}finally{ne.T=r,Be(S)}}(Xl&3)!==0&&Rl(),qa(l),S=l.pendingLanes,(f&261930)!==0&&(S&42)!==0?l===Wu?Qe++:(Qe=0,Wu=l):Qe=0,Ea&&Uu(),La(0)}}function Go(l,r){(l.pooledCacheLanes&=r)===0&&(r=l.pooledCache,r!=null&&(l.pooledCache=null,xa(r)))}function Rl(){return si(),Nl(),Ho(),Cu()}function Cu(){if(r0!==5)return!1;var l=bi,r=js;js=0;var f=Nt(Xl),m=32>f?32:f;f=ne.T;var S=Ln();try{Be(m),ne.T=null,m=mc,mc=null;var T=bi,N=Xl;if(r0=0,kr=bi=null,Xl=0,(Ne&6)!==0)throw Error(o(331));var Q=Ne;if(Ne|=4,No(T.current),wo(T,T.current,N,m),Ne=Q,La(0,!1),hn&&typeof hn.onPostCommitFiberRoot=="function")try{hn.onPostCommitFiberRoot(Or,T)}catch{}return!0}finally{Be(S),ne.T=f,Go(l,r)}}function Li(l,r,f){r=Lt(f,r),r=Xc(l.stateNode,r,2),l=yl(l,r,2),l!==null&&(ut(l,2),qa(l))}function he(l,r,f){if(l.tag===3)Li(l,l,f);else for(;r!==null;){if(r.tag===3){Li(r,l,f);break}else if(r.tag===1){var m=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(yi===null||!yi.has(m))){l=Lt(f,l),f=Yh(2),m=yl(r,f,2),m!==null&&(Xh(f,m,r,l),ut(m,2),qa(m));break}}r=r.return}}function zs(l,r,f){var m=l.pingCache;if(m===null){m=l.pingCache=new Mn;var S=new Set;m.set(r,S)}else S=m.get(r),S===void 0&&(S=new Set,m.set(r,S));S.has(f)||($i=!0,S.add(f),l=sf.bind(null,l,r,f),r.then(l,l))}function sf(l,r,f){var m=l.pingCache;m!==null&&m.delete(r),l.pingedLanes|=l.suspendedLanes&f,l.warmLanes&=~f,Ae===l&&(Ge&f)===f&&(Ba===4||Ba===3&&(Ge&62914560)===Ge&&300>L0()-Ju?(Ne&2)===0&&Ya(l,0):Ys|=f,Xs===Ge&&(Xs=0)),qa(l)}function uf(l,r){r===0&&(r=j()),l=pl(l,r),l!==null&&(ut(l,r),qa(l))}function f4(l){var r=l.memoizedState,f=0;r!==null&&(f=r.retryLane),uf(l,f)}function d4(l,r){var f=0;switch(l.tag){case 31:case 13:var m=l.stateNode,S=l.memoizedState;S!==null&&(f=S.retryLane);break;case 19:m=l.stateNode;break;case 22:m=l.stateNode._retryCache;break;default:throw Error(o(314))}m!==null&&m.delete(r),uf(l,f)}function n0(l,r){return Lu(l,r)}function l1(l,r,f,m){this.tag=l,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sr(l){return l=l.prototype,!(!l||!l.isReactComponent)}function bn(l,r){var f=l.alternate;return f===null?(f=a(l.tag,r,l.key,l.mode),f.elementType=l.elementType,f.type=l.type,f.stateNode=l.stateNode,f.alternate=l,l.alternate=f):(f.pendingProps=r,f.type=l.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=l.flags&65011712,f.childLanes=l.childLanes,f.lanes=l.lanes,f.child=l.child,f.memoizedProps=l.memoizedProps,f.memoizedState=l.memoizedState,f.updateQueue=l.updateQueue,r=l.dependencies,f.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},f.sibling=l.sibling,f.index=l.index,f.ref=l.ref,f.refCleanup=l.refCleanup,f}function Uo(l,r){l.flags&=65011714;var f=l.alternate;return f===null?(l.childLanes=0,l.lanes=r,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=f.childLanes,l.lanes=f.lanes,l.child=f.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=f.memoizedProps,l.memoizedState=f.memoizedState,l.updateQueue=f.updateQueue,l.type=f.type,r=f.dependencies,l.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l}function ui(l,r,f,m,S,T){var N=0;if(m=l,typeof l=="function")Sr(l)&&(N=1);else if(typeof l=="string")N=kn&&h0?Po(l,f,E0.current)?26:Y1(l)?27:5:kn?Po(l,f,E0.current)?26:5:h0&&Y1(l)?27:5;else t:switch(l){case Ru:return l=a(31,f,r,S),l.elementType=Ru,l.lanes=T,l;case _r:return Un(f.children,S,T,r);case Mr:N=8,S|=24;break;case Ar:return l=a(12,f,r,S|2),l.elementType=Ar,l.lanes=T,l;case Yo:return l=a(13,f,r,S),l.elementType=Yo,l.lanes=T,l;case oi:return l=a(19,f,r,S),l.elementType=oi,l.lanes=T,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case qn:N=10;break t;case Nu:N=9;break t;case Cs:N=11;break t;case Xo:N=14;break t;case Z0:N=16,m=null;break t}N=29,f=Error(o(130,l===null?"null":typeof l,"")),m=null}return r=a(N,f,r,S),r.elementType=l,r.type=m,r.lanes=T,r}function Un(l,r,f,m){return l=a(7,l,m,r),l.lanes=f,l}function i1(l,r,f){return l=a(6,l,null,r),l.lanes=f,l}function r1(l){var r=a(18,null,null,0);return r.stateNode=l,r}function s1(l,r,f){return r=a(4,l.children!==null?l.children:[],l.key,r),r.lanes=f,r.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},r}function of(l,r,f,m,S,T,N,Q,ht){this.tag=1,this.containerInfo=l,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=on,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=nt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nt(0),this.hiddenUpdates=nt(null),this.identifierPrefix=m,this.onUncaughtError=S,this.onCaughtError=T,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ht,this.incompleteTransitions=new Map}function ki(l,r,f,m,S,T,N,Q,ht,Tt,Ht,zt){return l=new of(l,r,f,N,ht,Tt,Ht,zt,Q),r=1,T===!0&&(r|=24),T=a(3,null,null,r),l.current=T,T.stateNode=l,r=Ua(),r.refCount++,l.pooledCache=r,r.refCount++,T.memoizedState={element:m,isDehydrated:f,cache:r},v0(T),l}function qo(l){return l?(l=Bl,l):Bl}function wu(l){var r=l._reactInternals;if(r===void 0)throw typeof l.render=="function"?Error(o(188)):(l=Object.keys(l).join(","),Error(o(268,l)));return l=g(r),l=l!==null?p(l):null,l===null?null:Ds(l.stateNode)}function u1(l,r,f,m,S,T){S=qo(S),m.context===null?m.context=S:m.pendingContext=S,m=Dn(r),m.payload={element:f},T=T===void 0?null:T,T!==null&&(m.callback=T),f=yl(l,m,r),f!==null&&(Da(f,l,r),an(f,l,r))}function xr(l,r){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var f=l.retryLane;l.retryLane=f!==0&&f<r?f:r}}function Du(l,r){xr(l,r),(l=l.alternate)&&xr(l,r)}var _e={},Lo=F2(),sn=Kd(),ko=Object.assign,Tr=Symbol.for("react.element"),Ol=Symbol.for("react.transitional.element"),Er=Symbol.for("react.portal"),_r=Symbol.for("react.fragment"),Mr=Symbol.for("react.strict_mode"),Ar=Symbol.for("react.profiler"),Nu=Symbol.for("react.consumer"),qn=Symbol.for("react.context"),Cs=Symbol.for("react.forward_ref"),Yo=Symbol.for("react.suspense"),oi=Symbol.for("react.suspense_list"),Xo=Symbol.for("react.memo"),Z0=Symbol.for("react.lazy"),Ru=Symbol.for("react.activity"),o1=Symbol.for("react.memo_cache_sentinel"),ci=Symbol.iterator,Yi=Symbol.for("react.client.reference"),Xi=Array.isArray,ne=Lo.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,c1=t.rendererVersion,Ou=t.rendererPackageName,ws=t.extraDevToolsConfig,Ds=t.getPublicInstance,cf=t.getRootHostContext,Ns=t.getChildHostContext,jo=t.prepareForCommit,hf=t.resetAfterCommit,h1=t.createInstance;t.cloneMutableInstance;var Bu=t.appendInitialChild,un=t.finalizeInitialChildren,J0=t.shouldSetTextContent,hi=t.createTextInstance;t.cloneMutableTextInstance;var f1=t.scheduleTimeout,ff=t.cancelTimeout,on=t.noTimeout,Ka=t.isPrimaryRenderer;t.warnsIfNotActing;var Le=t.supportsMutation,Sn=t.supportsPersistence,Ea=t.supportsHydration,pe=t.getInstanceFromNode;t.beforeActiveInstanceBlur;var ua=t.preparePortalMount;t.prepareScopeUpdate,t.getInstanceFromScope;var Be=t.setCurrentUpdatePriority,Ln=t.getCurrentUpdatePriority,Rs=t.resolveUpdatePriority;t.trackSchedulerEvent,t.resolveEventType,t.resolveEventTimeStamp;var zr=t.shouldAttemptEagerTransition,Vo=t.detachDeletedInstance;t.requestPostPaintCallback;var Hu=t.maySuspendCommit,Os=t.maySuspendCommitOnUpdate,d1=t.maySuspendCommitInSyncRender,Na=t.preloadInstance,m1=t.startSuspendingCommit,Qo=t.suspendInstance;t.suspendOnActiveViewTransition;var df=t.waitForCommitToBeReady;t.getSuspendedCommitReason;var Cr=t.NotPendingTransition,wr=t.HostTransitionContext,g1=t.resetFormInstance;t.bindToConsole;var p1=t.supportsMicrotasks,v1=t.scheduleMicrotask,c0=t.supportsTestSelectors,Za=t.findFiberRoot,Ko=t.getBoundingRect,Gu=t.getTextContent,ji=t.isHiddenSubtree,y1=t.matchAccessibilityRole,fi=t.setFocusIfFocusable,Zo=t.setupIntersectionObserver,b1=t.appendChild,S1=t.appendChildToContainer,mf=t.commitTextUpdate,gf=t.commitMount,pf=t.commitUpdate,vf=t.insertBefore,yf=t.insertInContainerBefore,bf=t.removeChild,x1=t.removeChildFromContainer,T1=t.resetTextContent,m4=t.hideInstance,Sf=t.hideTextInstance,xf=t.unhideInstance,Tf=t.unhideTextInstance;t.cancelViewTransitionName,t.cancelRootViewTransitionName,t.restoreRootViewTransitionName,t.cloneRootViewTransitionContainer,t.removeRootViewTransitionClone,t.measureClonedInstance,t.hasInstanceChanged,t.hasInstanceAffectedParent,t.startViewTransition,t.startGestureTransition,t.stopViewTransition,t.getCurrentGestureOffset,t.createViewTransitionInstance;var E1=t.clearContainer;t.createFragmentInstance,t.updateFragmentInstanceFiber,t.commitNewChildToFragmentInstance,t.deleteChildFromFragmentInstance;var Ef=t.cloneInstance,_1=t.createContainerChildSet,M1=t.appendChildToContainerChildSet,_f=t.finalizeContainerChildren,A1=t.replaceContainerChildren,Mf=t.cloneHiddenInstance,z1=t.cloneHiddenTextInstance,Vi=t.isSuspenseInstancePending,Jo=t.isSuspenseInstanceFallback,Fo=t.getSuspenseInstanceFallbackErrorDetails,Wo=t.registerSuspenseInstanceRetry,Af=t.canHydrateFormStateMarker,C1=t.isFormStateMarkerMatching,zf=t.getNextHydratableSibling,Cf=t.getNextHydratableSiblingAfterSingleton,wf=t.getFirstHydratableChild,Df=t.getFirstHydratableChildWithinContainer,Nf=t.getFirstHydratableChildWithinActivityInstance,Rf=t.getFirstHydratableChildWithinSuspenseInstance,w1=t.getFirstHydratableChildWithinSingleton,Of=t.canHydrateInstance,Bf=t.canHydrateTextInstance,D1=t.canHydrateActivityInstance,Hf=t.canHydrateSuspenseInstance,Gf=t.hydrateInstance,g4=t.hydrateTextInstance,N1=t.hydrateActivityInstance,Uf=t.hydrateSuspenseInstance,qf=t.getNextHydratableInstanceAfterActivityInstance,R1=t.getNextHydratableInstanceAfterSuspenseInstance,Lf=t.commitHydratedInstance,kf=t.commitHydratedContainer,p4=t.commitHydratedActivityInstance,v4=t.commitHydratedSuspenseInstance,Yf=t.finalizeHydratedChildren,Uu=t.flushHydrationEvents;t.clearActivityBoundary;var O1=t.clearSuspenseBoundary;t.clearActivityBoundaryFromContainer;var Io=t.clearSuspenseBoundaryFromContainer,Xf=t.hideDehydratedBoundary,jf=t.unhideDehydratedBoundary,Bs=t.shouldDeleteUnhydratedTailInstances;t.diffHydratedPropsForDevWarnings,t.diffHydratedTextForDevWarnings,t.describeHydratableInstanceForDevWarnings;var Vf=t.validateHydratableInstance,B1=t.validateHydratableTextInstance,kn=t.supportsResources,Po=t.isHostHoistableType,qu=t.getHoistableRoot,H1=t.getResource,G1=t.acquireResource,Qi=t.releaseResource,Qf=t.hydrateHoistable,U1=t.mountHoistable,q1=t.unmountHoistable,$o=t.createHoistableInstance,Kf=t.prepareToCommitHoistables,L1=t.mayResourceSuspendCommit,k1=t.preloadResource,Zf=t.suspendResource,h0=t.supportsSingletons,tc=t.resolveSingletonInstance,l0=t.acquireSingletonInstance,T0=t.releaseSingletonInstance,Y1=t.isHostSingletonType,Dr=t.isSingletonScope,ec=[],Nr=-1,Bl={},cn=Math.clz32?Math.clz32:H,ac=Math.log,Jf=Math.LN2,nc=256,Rr=262144,Hs=4194304,Lu=sn.unstable_scheduleCallback,lc=sn.unstable_cancelCallback,Ff=sn.unstable_shouldYield,X1=sn.unstable_requestPaint,L0=sn.unstable_now,ic=sn.unstable_ImmediatePriority,Wf=sn.unstable_UserBlockingPriority,ku=sn.unstable_NormalPriority,rc=sn.unstable_IdlePriority,j1=sn.log,If=sn.unstable_setDisableYieldValue,Or=null,hn=null,Ja=typeof Object.is=="function"?Object.is:Vt,sc=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},y4=Object.prototype.hasOwnProperty,uc,Hl,Yu=!1,V1=new WeakMap,di=[],Gl=0,oa=null,Xu=0,Yn=[],xn=0,Xn=null,N0=1,nl="",E0=z(null),mi=z(null),R0=z(null),ju=z(null),f0=null,_a=null,He=!1,Ul=null,F0=!1,oc=Error(o(519)),jn=z(null),ga=null,ll=null,Pf=typeof AbortController<"u"?AbortController:function(){var l=[],r=this.signal={aborted:!1,addEventListener:function(f,m){l.push(m)}};this.abort=function(){r.aborted=!0,l.forEach(function(f){return f()})}},_0=sn.unstable_scheduleCallback,b4=sn.unstable_NormalPriority,Ma={$$typeof:qn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},Vu=null,aa=null,k0=!1,Vn=!1,cc=!1,Ki=0,Gs=null,Q1=0,gi=0,d0=null,Qn=ne.S;ne.S=function(l,r){Lr=L0(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&Nc(l,r),Qn!==null&&Qn(l,r)};var Zi=z(null),m0=Error(o(460)),hc=Error(o(474)),Kn=Error(o(542)),ql={then:function(){}},W0=null,Ji=null,Br=0,O0=Ci(!0),K1=Ci(!1),B0=[],Ll=0,Hr=0,Tn=!1,fc=!1,Gr=z(null),Fi=z(0),fn=z(null),I0=null,Xa=z(0),pi=0,ve=null,ee=null,fe=null,Me=!1,Te=!1,ke=!1,Y0=0,Zn=0,il=null,Z1=0,En={readContext:Ue,use:ss,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useLayoutEffect:xe,useInsertionEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useSyncExternalStore:xe,useId:xe,useHostTransitionStatus:xe,useFormState:xe,useActionState:xe,useOptimistic:xe,useMemoCache:xe,useCacheRefresh:xe};En.useEffectEvent=xe;var Ra={readContext:Ue,use:ss,useCallback:function(l,r){return y0().memoizedState=[l,r===void 0?null:r],l},useContext:Ue,useEffect:mu,useImperativeHandle:function(l,r,f){f=f!=null?f.concat([l]):null,mr(4194308,4,hs.bind(null,r,l),f)},useLayoutEffect:function(l,r){return mr(4194308,4,l,r)},useInsertionEffect:function(l,r){mr(4,2,l,r)},useMemo:function(l,r){var f=y0();r=r===void 0?null:r;var m=l();if(ke){$t(!0);try{l()}finally{$t(!1)}}return f.memoizedState=[m,r],m},useReducer:function(l,r,f){var m=y0();if(f!==void 0){var S=f(r);if(ke){$t(!0);try{f(r)}finally{$t(!1)}}}else S=r;return m.memoizedState=m.baseState=S,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:S},m.queue=l,l=l.dispatch=o4.bind(null,ve,l),[m.memoizedState,l]},useRef:function(l){var r=y0();return l={current:l},r.memoizedState=l},useState:function(l){l=Bc(l);var r=l.queue,f=Uh.bind(null,ve,r);return r.dispatch=f,[l.memoizedState,f]},useDebugValue:pu,useDeferredValue:function(l,r){var f=y0();return ds(f,l,r)},useTransition:function(){var l=Bc(!1);return l=Bh.bind(null,ve,l.queue,!0,!1),y0().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,r,f){var m=ve,S=y0();if(He){if(f===void 0)throw Error(o(407));f=f()}else{if(f=r(),Ae===null)throw Error(o(349));(Ge&127)!==0||Dh(m,r,f)}S.memoizedState=f;var T={value:f,getSnapshot:r};return S.queue=T,mu(Oc.bind(null,m,T,l),[l]),m.flags|=2048,pn(9,{destroy:void 0},Rc.bind(null,m,T,f,r),null),f},useId:function(){var l=y0(),r=Ae.identifierPrefix;if(He){var f=nl,m=N0;f=(m&~(1<<32-cn(m)-1)).toString(32)+f,r="_"+r+"R_"+f,f=Y0++,0<f&&(r+="H"+f.toString(32)),r+="_"}else f=Z1++,r="_"+r+"r_"+f.toString(32)+"_";return l.memoizedState=r},useHostTransitionStatus:Lc,useFormState:Gc,useActionState:Gc,useOptimistic:function(l){var r=y0();r.memoizedState=r.baseState=l;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=f,r=bo.bind(null,ve,!0,f),f.dispatch=r,[l,r]},useMemoCache:uo,useCacheRefresh:function(){return y0().memoizedState=u4.bind(null,ve)},useEffectEvent:function(l){var r=y0(),f={impl:l};return r.memoizedState=f,function(){if((Ne&2)!==0)throw Error(o(440));return f.impl.apply(void 0,arguments)}}},kl={readContext:Ue,use:ss,useCallback:vo,useContext:Ue,useEffect:cs,useImperativeHandle:Oh,useInsertionEffect:Di,useLayoutEffect:gu,useMemo:fs,useReducer:ei,useRef:po,useState:function(){return ei(el)},useDebugValue:pu,useDeferredValue:function(l,r){var f=fa();return qc(f,ee.memoizedState,l,r)},useTransition:function(){var l=ei(el)[0],r=fa().memoizedState;return[typeof l=="boolean"?l:b0(l),r]},useSyncExternalStore:fr,useId:yo,useHostTransitionStatus:Lc,useFormState:us,useActionState:us,useOptimistic:function(l,r){var f=fa();return fu(f,ee,l,r)},useMemoCache:uo,useCacheRefresh:Gh};kl.useEffectEvent=V0;var Wi={readContext:Ue,use:ss,useCallback:vo,useContext:Ue,useEffect:cs,useImperativeHandle:Oh,useInsertionEffect:Di,useLayoutEffect:gu,useMemo:fs,useReducer:co,useRef:po,useState:function(){return co(el)},useDebugValue:pu,useDeferredValue:function(l,r){var f=fa();return ee===null?ds(f,l,r):qc(f,ee.memoizedState,l,r)},useTransition:function(){var l=co(el)[0],r=fa().memoizedState;return[typeof l=="boolean"?l:b0(l),r]},useSyncExternalStore:fr,useId:yo,useHostTransitionStatus:Lc,useFormState:os,useActionState:os,useOptimistic:function(l,r){var f=fa();return ee!==null?fu(f,ee,l,r):(f.baseState=l,[l,f.queue.dispatch])},useMemoCache:uo,useCacheRefresh:Gh};Wi.useEffectEvent=V0;var Qu={enqueueSetState:function(l,r,f){l=l._reactInternals;var m=Ta(),S=Dn(m);S.payload=r,f!=null&&(S.callback=f),r=yl(l,S,m),r!==null&&(Da(r,l,m),an(r,l,m))},enqueueReplaceState:function(l,r,f){l=l._reactInternals;var m=Ta(),S=Dn(m);S.tag=1,S.payload=r,f!=null&&(S.callback=f),r=yl(l,S,m),r!==null&&(Da(r,l,m),an(r,l,m))},enqueueForceUpdate:function(l,r){l=l._reactInternals;var f=Ta(),m=Dn(f);m.tag=2,r!=null&&(m.callback=r),r=yl(l,m,f),r!==null&&(Da(r,l,f),an(r,l,f))}},P0=Error(o(461)),ya=!1,Ur={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},ja=!1,Va=!1,Us=!1,J1=typeof WeakSet=="function"?WeakSet:Set,Fa=null,Oa=null,Wa=!1,na=null,_n=8192,qs={getCacheForType:function(l){var r=Ue(Ma),f=r.data.get(l);return f===void 0&&(f=l(),r.data.set(l,f)),f},cacheSignal:function(){return Ue(Ma).controller.signal}},Jn=0,Ls=1,ks=2,Ku=3,Ii=4;if(typeof Symbol=="function"&&Symbol.for){var qr=Symbol.for;Jn=qr("selector.component"),Ls=qr("selector.has_pseudo_class"),ks=qr("selector.role"),Ku=qr("selector.test_id"),Ii=qr("selector.text")}var Mn=typeof WeakMap=="function"?WeakMap:Map,Ne=0,Ae=null,Re=null,Ge=0,la=0,i0=null,rl=!1,Pi=!1,$i=!1,Yl=0,Ba=0,vi=0,tr=0,Ys=0,$0=0,Xs=0,Zu=null,dn=null,dc=!1,Ju=0,Lr=0,er=1/0,Fu=null,yi=null,r0=0,bi=null,kr=null,Xl=0,js=0,mc=null,F1=null,Qe=0,Wu=null;return _e.attemptContinuousHydration=function(l){if(l.tag===13||l.tag===31){var r=pl(l,67108864);r!==null&&Da(r,l,67108864),Du(l,67108864)}},_e.attemptHydrationAtCurrentPriority=function(l){if(l.tag===13||l.tag===31){var r=Ta();r=qt(r);var f=pl(l,r);f!==null&&Da(f,l,r),Du(l,r)}},_e.attemptSynchronousHydration=function(l){switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var r=U(l.pendingLanes);if(r!==0){for(l.pendingLanes|=2,l.entangledLanes|=2;r;){var f=1<<31-cn(r);l.entanglements[1]|=f,r&=~f}qa(l),(Ne&6)===0&&(er=L0()+500,La(0))}}break;case 31:case 13:r=pl(l,2),r!==null&&Da(r,l,2),Ro(),Du(l,2)}},_e.batchedUpdates=function(l,r){return l(r)},_e.createComponentSelector=function(l){return{$$typeof:Jn,value:l}},_e.createContainer=function(l,r,f,m,S,T,N,Q,ht,Tt){return ki(l,r,!1,null,f,m,T,null,N,Q,ht,Tt)},_e.createHasPseudoClassSelector=function(l){return{$$typeof:Ls,value:l}},_e.createHydrationContainer=function(l,r,f,m,S,T,N,Q,ht,Tt,Ht,zt,Kt,ge){return l=ki(f,m,!0,l,S,T,Q,ge,ht,Tt,Ht,zt),l.context=qo(null),f=l.current,m=Ta(),m=qt(m),S=Dn(m),S.callback=r??null,yl(f,S,m),r=m,l.current.lanes=r,ut(l,r),qa(l),l},_e.createPortal=function(l,r,f){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Er,key:m==null?null:""+m,children:l,containerInfo:r,implementation:f}},_e.createRoleSelector=function(l){return{$$typeof:ks,value:l}},_e.createTestNameSelector=function(l){return{$$typeof:Ku,value:l}},_e.createTextSelector=function(l){return{$$typeof:Ii,value:l}},_e.defaultOnCaughtError=function(l){console.error(l)},_e.defaultOnRecoverableError=function(l){sc(l)},_e.defaultOnUncaughtError=function(l){sc(l)},_e.deferredUpdates=function(l){var r=ne.T,f=Ln();try{return Be(32),ne.T=null,l()}finally{Be(f),ne.T=r}},_e.discreteUpdates=function(l,r,f,m,S){var T=ne.T,N=Ln();try{return Be(2),ne.T=null,l(r,f,m,S)}finally{Be(N),ne.T=T,Ne===0&&(er=L0()+500)}},_e.findAllNodes=rn,_e.findBoundingRects=function(l,r){if(!c0)throw Error(o(363));r=rn(l,r),l=[];for(var f=0;f<r.length;f++)l.push(Ko(r[f]));for(r=l.length-1;0<r;r--){f=l[r];for(var m=f.x,S=m+f.width,T=f.y,N=T+f.height,Q=r-1;0<=Q;Q--)if(r!==Q){var ht=l[Q],Tt=ht.x,Ht=Tt+ht.width,zt=ht.y,Kt=zt+ht.height;if(m>=Tt&&T>=zt&&S<=Ht&&N<=Kt){l.splice(r,1);break}else if(m!==Tt||f.width!==ht.width||Kt<T||zt>N){if(!(T!==zt||f.height!==ht.height||Ht<m||Tt>S)){Tt>m&&(ht.width+=Tt-m,ht.x=m),Ht<S&&(ht.width=S-Tt),l.splice(r,1);break}}else{zt>T&&(ht.height+=zt-T,ht.y=T),Kt<N&&(ht.height=N-zt),l.splice(r,1);break}}}return l},_e.findHostInstance=wu,_e.findHostInstanceWithNoPortals=function(l){return l=g(l),l=l!==null?b(l):null,l===null?null:Ds(l.stateNode)},_e.findHostInstanceWithWarning=function(l){return wu(l)},_e.flushPassiveEffects=Rl,_e.flushSyncFromReconciler=function(l){var r=Ne;Ne|=1;var f=ne.T,m=Ln();try{if(Be(2),ne.T=null,l)return l()}finally{Be(m),ne.T=f,Ne=r,(Ne&6)===0&&La(0)}},_e.flushSyncWork=Ro,_e.focusWithin=function(l,r){if(!c0)throw Error(o(363));for(l=Hi(l),r=Es(l,r),r=Array.from(r),l=0;l<r.length;){var f=r[l++],m=f.tag;if(!ji(f)){if((m===5||m===26||m===27)&&fi(f.stateNode))return!0;for(f=f.child;f!==null;)r.push(f),f=f.sibling}}return!1},_e.getFindAllNodesFailureDescription=function(l,r){if(!c0)throw Error(o(363));var f=0,m=[];l=[Hi(l),0];for(var S=0;S<l.length;){var T=l[S++],N=T.tag,Q=l[S++],ht=r[Q];if((N!==5&&N!==26&&N!==27||!ji(T))&&(Gi(T,ht)&&(m.push(Ts(ht)),Q++,Q>f&&(f=Q)),Q<r.length))for(T=T.child;T!==null;)l.push(T,Q),T=T.sibling}if(f<r.length){for(l=[];f<r.length;f++)l.push(Ts(r[f]));return`findAllNodes was able to match part of the selector:
|
|
31
|
-
`+(m.join(" > ")+`
|
|
32
|
-
|
|
33
|
-
No matching component was found for:
|
|
34
|
-
`)+l.join(" > ")}return null},_e.getPublicRootInstance=function(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 27:case 5:return Ds(l.child.stateNode);default:return l.child.stateNode}},_e.injectIntoDevTools=function(){var l={bundleType:0,version:c1,rendererPackageName:Ou,currentDispatcherRef:ne,reconcilerVersion:"19.2.0"};if(ws!==null&&(l.rendererConfig=ws),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")l=!1;else{var r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(r.isDisabled||!r.supportsFiber)l=!0;else{try{Or=r.inject(l),hn=r}catch{}l=!!r.checkDCE}}return l},_e.isAlreadyRendering=function(){return(Ne&6)!==0},_e.observeVisibleRects=function(l,r,f,m){if(!c0)throw Error(o(363));l=rn(l,r);var S=Zo(l,f,m).disconnect;return{disconnect:function(){S()}}},_e.shouldError=function(){return null},_e.shouldSuspend=function(){return!1},_e.startHostTransition=function(l,r,f,m){if(l.tag!==5)throw Error(o(476));var S=Hh(l).queue;Bh(l,S,r,Cr,f===null?i:function(){var T=Hh(l);return T.next===null&&(T=l.alternate.memoizedState),vu(l,T.next.queue,{},Ta()),f(m)})},_e.updateContainer=function(l,r,f,m){var S=r.current,T=Ta();return u1(S,T,l,r,f,m),T},_e.updateContainerSync=function(l,r,f,m){return u1(r.current,2,l,r,f,m),2},_e},s.exports.default=s.exports,Object.defineProperty(s.exports,"__esModule",{value:!0})})(nd)),nd.exports}var k3;function Eg(){return k3||(k3=1,ad.exports=Tg()),ad.exports}var _g=Eg();const Mg=Qd(_g);var ld={exports:{}},Xr={};var Y3;function Ag(){return Y3||(Y3=1,Xr.ConcurrentRoot=1,Xr.ContinuousEventPriority=8,Xr.DefaultEventPriority=32,Xr.DiscreteEventPriority=2,Xr.IdleEventPriority=268435456,Xr.LegacyRoot=0,Xr.NoEventPriority=0),Xr}var X3;function zg(){return X3||(X3=1,ld.exports=Ag()),ld.exports}var $2=zg();const j3={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let V3=!1,Q3=!1;const j2=".react-konva-event",Cg=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
|
|
35
|
-
Position of a node will be changed during drag&drop, so you should update state of the react app as well.
|
|
36
|
-
Consider to add onDragMove or onDragEnd events.
|
|
37
|
-
For more info see: https://github.com/konvajs/react-konva/issues/256
|
|
38
|
-
`,wg=`ReactKonva: You are using "zIndex" attribute for a Konva node.
|
|
39
|
-
react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
|
|
40
|
-
For more info see: https://github.com/konvajs/react-konva/issues/194
|
|
41
|
-
`,Dg={};function t4(s,t,a=Dg){if(!V3&&"zIndex"in t&&(console.warn(wg),V3=!0),!Q3&&t.draggable){var i=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;i&&!o&&(console.warn(Cg),Q3=!0)}for(var h in a)if(!j3[h]){var d=h.slice(0,2)==="on",g=a[h]!==t[h];if(d&&g){var p=h.substr(2).toLowerCase();p.substr(0,7)==="content"&&(p="content"+p.substr(7,1).toUpperCase()+p.substr(8)),s.off(p,a[h])}var b=!t.hasOwnProperty(h);b&&s.setAttr(h,void 0)}var E=t._useStrictMode,_={},z=!1;const D={};for(var h in t)if(!j3[h]){var d=h.slice(0,2)==="on",C=a[h]!==t[h];if(d&&C){var p=h.substr(2).toLowerCase();p.substr(0,7)==="content"&&(p="content"+p.substr(7,1).toUpperCase()+p.substr(8)),t[h]&&(D[p]=t[h])}!d&&(t[h]!==a[h]||E&&t[h]!==s.getAttr(h))&&(z=!0,_[h]=t[h])}z&&(s.setAttrs(_),cu(s));for(var p in D)s.off(p+j2),s.on(p+j2,D[p])}function cu(s){if(!kt.autoDrawEnabled){var t=s.getLayer()||s.getStage();t&&t.batchDraw()}}var id=Kd();const rm={},Ng={};Mc.Node.prototype._applyProps=t4;let sm=$2.DefaultEventPriority;function Rg(s,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}s.add(t),cu(s)}function Og(s,t,a){let i=Mc[s];i||(console.error(`Konva has no node with the type ${s}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${s}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),i=Mc.Group);const o={},h={};for(var d in t)if(d!=="ref"){var g=d.slice(0,2)==="on";g?h[d]=t[d]:o[d]=t[d]}const p=new i(o);return t4(p,h),p}function Bg(s,t,a){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${s}"`)}function Hg(s,t,a){return!1}function Gg(s){return s}function Ug(){return null}function qg(){return null}function Lg(s,t,a,i){return Ng}function kg(){}function Yg(s){}function Xg(s,t){return!1}function jg(){return rm}function Vg(){return rm}const Qg=setTimeout,Kg=clearTimeout,Zg=!0,Jg=s=>{s()},Fg=-1;function Wg(s,t){return!1}const Ig=!1,Pg=!1,$g=!0,tp=!1,ep=!1;function ap(s,t){t.parent===s?t.moveToTop():s.add(t),cu(s)}function np(s,t){t.parent===s?t.moveToTop():s.add(t),cu(s)}function um(s,t,a){t._remove(),s.add(t),t.setZIndex(a.getZIndex()),cu(s)}function lp(s,t,a){um(s,t,a)}function ip(s,t){t.destroy(),t.off(j2),cu(s)}function rp(s,t){t.destroy(),t.off(j2),cu(s)}function sp(s,t,a){console.error(`Text components are not yet supported in ReactKonva. You text is: "${a}"`)}function up(s,t,a){}function op(s,t,a,i){t4(s,i,a)}function cp(s){s.hide(),cu(s)}function hp(s){}function fp(s,t){(t.visible==null||t.visible)&&s.show()}function dp(s,t){}function mp(s){}function gp(){}function pp(){return null}function vp(){}function yp(){}function bp(){return $2.DefaultEventPriority}function Sp(){}function xp(){return null}function Tp(s){sm=s}function Ep(){return sm}function _p(){return $2.DiscreteEventPriority}function Mp(){return!1}function Ap(){}function zp(){return null}function Cp(){return-1.1}function wp(){}function Dp(){return!1}function Np(){return!0}function Rp(){}function Op(){}function Bp(){return null}const Hp=null,Gp=z0.createContext(null);function Up(){}const qp=Object.freeze(Object.defineProperty({__proto__:null,HostTransitionContext:Gp,NotPendingTransition:Hp,afterActiveInstanceBlur:yp,appendChild:ap,appendChildToContainer:np,appendInitialChild:Rg,beforeActiveInstanceBlur:vp,cancelTimeout:Kg,clearContainer:mp,commitMount:up,commitTextUpdate:sp,commitUpdate:op,createInstance:Og,createTextInstance:Bg,detachDeletedInstance:gp,finalizeInitialChildren:Hg,getChildHostContext:Vg,getCurrentEventPriority:bp,getCurrentUpdatePriority:Ep,getInstanceFromNode:pp,getInstanceFromScope:xp,getPublicInstance:Gg,getRootHostContext:jg,hideInstance:cp,hideTextInstance:hp,idlePriority:id.unstable_IdlePriority,insertBefore:um,insertInContainerBefore:lp,isPrimaryRenderer:Ig,maySuspendCommit:Dp,noTimeout:Fg,now:id.unstable_now,preloadInstance:Np,prepareForCommit:Ug,preparePortalMount:qg,prepareScopeUpdate:Sp,prepareUpdate:Lg,removeChild:ip,removeChildFromContainer:rp,requestPostPaintCallback:wp,resetAfterCommit:kg,resetFormInstance:Up,resetTextContent:Yg,resolveEventTimeStamp:Cp,resolveEventType:zp,resolveUpdatePriority:_p,run:id.unstable_runWithPriority,scheduleMicrotask:Jg,scheduleTimeout:Qg,setCurrentUpdatePriority:Tp,shouldAttemptEagerTransition:Mp,shouldDeprioritizeSubtree:Xg,shouldSetTextContent:Wg,startSuspendingCommit:Rp,supportsHydration:ep,supportsMicrotasks:Zg,supportsMutation:$g,supportsPersistence:tp,suspendInstance:Op,trackSchedulerEvent:Ap,unhideInstance:fp,unhideTextInstance:dp,waitForCommitToBeReady:Bp,warnsIfNotActing:Pg},Symbol.toStringTag,{value:"Module"}));function om(s,t,a){if(!s)return;if(a(s)===!0)return s;let i=s.child;for(;i;){const o=om(i,t,a);if(o)return o;i=i.sibling}}function cm(s){try{return Object.defineProperties(s,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return s}}const $d=cm(bt.createContext(null));class hm extends bt.Component{render(){return bt.createElement($d.Provider,{value:this._reactInternals},this.props.children)}}function Lp(){const s=bt.useContext($d);if(s===null)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");const t=bt.useId();return bt.useMemo(()=>{for(const a of[s,s?.alternate]){if(!a)continue;const i=om(a,!1,o=>{let h=o.memoizedState;for(;h;){if(h.memoizedState===t)return!0;h=h.next}});if(i)return i}},[s,t])}const kp=Symbol.for("react.context"),Yp=s=>s!==null&&typeof s=="object"&&"$$typeof"in s&&s.$$typeof===kp;function Xp(){const s=Lp(),[t]=bt.useState(()=>new Map);t.clear();let a=s;for(;a;){const i=a.type;Yp(i)&&i!==$d&&!t.has(i)&&t.set(i,bt.use(cm(i))),a=a.return}return t}function jp(){const s=Xp();return bt.useMemo(()=>Array.from(s.keys()).reduce((t,a)=>i=>bt.createElement(t,null,bt.createElement(a.Provider,{...i,value:s.get(a)})),t=>bt.createElement(hm,{...t})),[s])}if(z0.version.indexOf("19")===-1)throw new Error("react-konva version 19 is only compatible with React 19. Make sure to have the last version of react-konva and react or downgrade react-konva to version 18.");function Vp(s){const t=z0.useRef({});return z0.useLayoutEffect(()=>{t.current=s}),z0.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}const Qp=()=>{const s=z0.useRef(0);return z0.useMemo(()=>{s.current++},[]),s.current>1},Kp=s=>{const t=z0.useRef(null),a=z0.useRef(null),i=z0.useRef(null),o=Vp(s),h=jp(),d=z0.useRef(null),g=E=>{const{forwardedRef:_}=s;_&&(typeof _=="function"?_(E):_.current=E)},p=Qp(),b=()=>{g(null),z2.updateContainer(null,i.current,null),a.current?.destroy(),a.current=null};return z0.useLayoutEffect(()=>(d.current&&(clearTimeout(d.current),d.current=null),a.current?g(a.current):(a.current=new Mc.Stage({width:s.width,height:s.height,container:t.current}),g(a.current),i.current=z2.createContainer(a.current,$2.ConcurrentRoot,null,!1,null,"",console.error,console.error,console.error,null),z2.updateContainer(z0.createElement(h,{},s.children),i.current,null,()=>{})),()=>{p?d.current=setTimeout(b,0):b()}),[]),z0.useLayoutEffect(()=>{g(a.current),t4(a.current,s,o),z2.updateContainer(z0.createElement(h,{},s.children),i.current,null)}),z0.createElement("div",{ref:t,id:s.id,accessKey:s.accessKey,className:s.className,role:s.role,style:s.style,tabIndex:s.tabIndex,title:s.title})},Zp="Layer",A2="Rect",Jp="Ellipse",rd="Line",Fp="Text",z2=Mg(qp),Wp=z0.forwardRef((s,t)=>z0.createElement(hm,{},z0.createElement(Kp,{...s,forwardedRef:t}))),Ip=({finishTextEditing:s,tool:t,setTool:a,strokeColor:i,setStrokeColor:o,editingTextId:h})=>At.jsxs("div",{className:"tools-container",children:[At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-pencil ${t==="pencil"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"}`,onClick:()=>{h&&s(),a("pencil")},title:"Карандаш"}),At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-highlighter ${t==="highlighter"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"}`,onClick:()=>{h&&s(),a("highlighter")},title:"Маркер"}),At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-eraser ${t==="eraser"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"}`,onClick:()=>{h&&s(),a("eraser")},title:"Ластик"}),At.jsx("input",{type:"color",id:"color",value:i,onChange:d=>o(d.target.value),disabled:t==="eraser",className:"drawing-tool-btn color-picker"})]}),Pp=({strokeWidth:s,setStrokeWidth:t,tool:a})=>At.jsx("div",{className:"toolbar-range-container",children:At.jsx("input",{type:"range",className:"drawing-tool-range",min:"1",max:"20",step:"1",id:"width",value:s,onChange:i=>t(+i.target.value),disabled:a==="text"||a==="latex"})}),$p=({handleUndo:s,handleRedo:t,handleClearCanvas:a,finishTextEditing:i,setTool:o,editingTextId:h,tool:d})=>At.jsxs("div",{className:"tools-container",children:[At.jsx("button",{type:"button",className:"drawing-tool-btn tool-icon tool-undo drawing-tool-btn-outline-primary drawing-tool-btn-small",onClick:s,title:"Отменить"}),At.jsx("button",{type:"button",className:"drawing-tool-btn tool-icon tool-redo drawing-tool-btn-outline-primary drawing-tool-btn-small",onClick:t,title:"Повторить"}),At.jsx("button",{type:"button",className:"drawing-tool-btn tool-icon tool-clear drawing-tool-btn-outline-primary drawing-tool-btn-small",onClick:a,title:"Очистить холст"}),At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-rectangle drawing-tool-btn-small ${d==="rectangle"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"}`,onClick:()=>{h&&i(),o("rectangle")},title:"Прямоугольник"}),At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-ellipse drawing-tool-btn-small ${d==="ellipse"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"}`,onClick:()=>{h&&i(),o("ellipse")},title:"Эллипс"}),At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-line drawing-tool-btn-small ${d==="line"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"}`,onClick:()=>{h&&i(),o("line")},title:"Линия"}),At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-text drawing-tool-btn-small ${d==="text"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"}`,onClick:()=>{h&&i(),o("text")},title:"Текст"}),At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-latex drawing-tool-btn-small ${d==="latex"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-success"}`,onClick:()=>{h&&i(),o("latex")},title:"Формула"})]}),tv=({finishTextEditing:s,editingTextId:t,setTool:a,selectedId:i,tool:o,handleDeleteShape:h})=>At.jsxs("div",{className:"tools-container",children:[At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-select drawing-tool-btn-small ${o==="select"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"}`,onClick:()=>{t&&s(),a("select")},title:"Выделение"}),At.jsx("button",{type:"button",className:"drawing-tool-btn tool-icon tool-delete drawing-tool-btn-danger drawing-tool-btn-small",onClick:()=>{i&&h(i)},disabled:!i||o!=="select",title:"Удалить выделенную фигуру"})]}),ev=({onOcrSelect:s,onOcrRecognize:t,tool:a,ocrSelection:i,editingTextId:o,finishTextEditing:h})=>At.jsxs("div",{className:"tools-container",children:[At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-ocr ${a==="ocr-selection"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"} drawing-tool-btn-small`,onClick:()=>{o&&h(),s()},title:"OCR-выделение"}),At.jsx("button",{type:"button",className:"drawing-tool-btn tool-icon tool-change drawing-tool-btn-danger drawing-tool-btn-small",onClick:t,disabled:!i||a!=="ocr-selection",title:"Распознать выделенную область"})]}),av=({selectedShape:s,selectedId:t,isBold:a,isItalic:i,isUnderline:o,isStrikethrough:h,currentAlign:d,showTextFormatDropdown:g,showTextAlignDropdown:p,setShowTextFormatDropdown:b,setShowTextAlignDropdown:E,updateSelectedTextProperty:_,startTextEditing:z,toggleBold:D,toggleItalic:C,toggleUnderline:H,toggleStrikethrough:U,fontFamily:B,fontSize:X,strokeColor:k,availableFonts:j,left:nt,top:ut,panelWidth:st})=>At.jsx("div",{className:"text-toolbar",style:{left:`${nt}px`,top:`${ut}px`,width:`${st}px`},children:At.jsxs("div",{className:"text-toolbar-content",children:[s.type==="text"&&At.jsx(At.Fragment,{children:At.jsx("select",{className:"drawing-tool-select drawing-tool-select-small",value:s.fontFamily||B,onChange:ot=>{_("fontFamily",ot.target.value),b(!1),E(!1)},style:{width:"160px"},children:j.map(ot=>At.jsx("option",{value:ot,children:ot},ot))})}),At.jsx("input",{type:"number",className:"drawing-tool-input drawing-tool-input-small",value:s.fontSize||X,onChange:ot=>{_("fontSize",parseInt(ot.target.value)||1),b(!1),E(!1)},min:"1",max:"200",step:"1",style:{width:"40px"}}),s.type==="text"&&At.jsxs("div",{className:"text-format-dropdown",children:[At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-text-format drawing-tool-btn-small ${g?"drawing-tool-btn-primary":"drawing-tool-btn-outline-secondary"} ${g?"active":""}`,onClick:ot=>{ot.stopPropagation(),E(!1),b(!g)},title:"Формат текста"}),g&&At.jsxs("div",{className:"text-format-dropdown-menu",style:{display:"flex",flexDirection:"row",gap:"5px"},children:[At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-bold drawing-tool-btn-small ${a?"active":""}`,onClick:ot=>{ot.stopPropagation(),D()},title:"Жирный"}),At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-italic drawing-tool-btn-small ${i?"active":""}`,onClick:ot=>{ot.stopPropagation(),C()},title:"Курсив"}),At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-underline drawing-tool-btn-small ${o?"active":""}`,onClick:ot=>{ot.stopPropagation(),H()},title:"Подчеркнутый"}),At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-strikethrough drawing-tool-btn-small ${h?"active":""}`,onClick:ot=>{ot.stopPropagation(),U()},title:"Зачеркнутый"})]})]}),s.type==="text"&&At.jsxs("div",{className:"text-align-dropdown",children:[At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-text-align drawing-tool-btn-small ${p?"drawing-tool-btn-primary":"drawing-tool-btn-outline-secondary"} ${p?"active":""}`,onClick:ot=>{ot.stopPropagation(),b(!1),E(!p)},title:"Выравнивание текста"}),p&&At.jsxs("div",{className:"text-align-dropdown-menu",style:{display:"flex",flexDirection:"row",gap:"5px"},children:[At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-align-left drawing-tool-btn-small ${d==="left"?"active":""}`,onClick:ot=>{ot.stopPropagation(),_("textAlign","left"),E(!1)},title:"По левому краю"}),At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-align-center drawing-tool-btn-small ${d==="center"?"active":""}`,onClick:ot=>{ot.stopPropagation(),_("textAlign","center"),E(!1)},title:"По центру"}),At.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-align-right drawing-tool-btn-small ${d==="right"?"active":""}`,onClick:ot=>{ot.stopPropagation(),_("textAlign","right"),E(!1)},title:"По правому краю"})]})]}),At.jsx("input",{type:"color",value:s.stroke||k,onChange:ot=>{_("stroke",ot.target.value),b(!1),E(!1)},className:"text-color-picker"}),At.jsx("button",{type:"button",className:"drawing-tool-btn tool-icon tool-edit-text drawing-tool-btn-outline-secondary drawing-tool-btn-small",onClick:()=>{z(t),b(!1),E(!1)},title:s.type==="latex"?"Edit Formula":"Edit Text"})]})}),nv=({selectedShape:s,selectedId:t,left:a,top:i,panelWidth:o,startTextEditing:h,updateSelectedTextProperty:d,fontSize:g,strokeColor:p})=>At.jsx("div",{className:"text-toolbar",style:{left:`${a}px`,top:`${i}px`,width:`${o}px`},children:At.jsxs("div",{className:"text-toolbar-content",children:[At.jsx("input",{type:"number",className:"drawing-tool-input drawing-tool-input-small",value:s.fontSize||g,onChange:b=>d("fontSize",parseInt(b.target.value)||1),min:"1",max:"200",step:"1",style:{width:"40px"}}),At.jsx("input",{type:"color",value:s.stroke||p,onChange:b=>d("stroke",b.target.value),className:"text-color-picker"}),At.jsx("button",{type:"button",className:"drawing-tool-btn tool-icon tool-edit-text drawing-tool-btn-outline-secondary drawing-tool-btn-small",onClick:()=>h(t),title:"Edit Formula"})]})}),lv=({shape:s,tempText:t,textAreaRef:a,updateTextInRealTime:i,finishTextEditing:o,x:h,y:d,width:g,textareaStyle:p,latexSymbols:b,latexCategories:E,handleLatexSymbolClick:_,renderLatexToHtml:z,showLatexPreview:D=!0,showLatexMenu:C=!1,selectedLatexCategory:H="fraction",latexPreview:U="E = mc^2",setShowLatexMenu:B,setSelectedLatexCategory:X})=>{const k=H==="all"?b:b.filter(j=>j.category===H);return At.jsxs("div",{className:"latex-editor-container",style:{position:"fixed",left:`${h}px`,top:`${d-120}px`,width:`${g+200}px`,zIndex:1001},children:[At.jsxs("div",{className:"latex-editor-toolbar",children:[D&&At.jsx("div",{className:"latex-preview",dangerouslySetInnerHTML:{__html:z(U||t||"E = mc^2",20)},style:{fontSize:"20px",color:s.stroke}}),At.jsxs("div",{className:"latex-symbols-dropdown",style:{display:"flex",justifyContent:"center"},children:[At.jsx("button",{type:"button",className:`drawing-tool-btn drawing-tool-btn-outline-success drawing-tool-btn-small latex-symbols-btn ${C?"active":""}`,onClick:j=>{j.stopPropagation(),B(!C)},children:At.jsx("span",{className:"latex-symbols-button",children:"Символы"})}),C&&At.jsxs("div",{className:"latex-symbols-menu",children:[At.jsx("div",{className:"latex-categories-container",children:E.map(j=>At.jsx("button",{type:"button",className:`drawing-tool-btn drawing-tool-btn-small ${H===j.id?"drawing-tool-btn-primary":"drawing-tool-btn-outline-secondary"}`,onClick:nt=>{nt.stopPropagation(),X(j.id)},children:At.jsx("span",{children:j.icon})},j.id))}),At.jsx("div",{className:"latex-symbols-grid",children:k.map(j=>At.jsxs("button",{type:"button",className:"drawing-tool-btn drawing-tool-btn-outline-info drawing-tool-btn-small latex-symbol-button",onClick:nt=>{nt.stopPropagation(),_(j)},title:j.description,children:[At.jsx("div",{className:"latex-symbol-name",children:At.jsx("span",{dangerouslySetInnerHTML:{__html:z(j.latex,24)}})}),At.jsx("div",{className:"latex-symbol-code",children:j.placeholder||j.latex})]},j.name))})]})]})]}),At.jsx("textarea",{ref:a,value:t,onChange:j=>i(j.target.value),onBlur:()=>{setTimeout(()=>{const j=document.activeElement;(!j||!j.closest(".latex-editor-container")&&!j.closest(".latex-symbols-menu"))&&o()},100)},style:p,onKeyDown:j=>{if(j.key==="Escape"&&o(),j.key==="Enter"&&j.ctrlKey&&o(),j.key==="Tab"){j.preventDefault();const nt=j.target,ut=nt.selectionStart,st=nt.selectionEnd,ot=nt.value,St={"(":")","[":"]","{":"}","|":"|","\\":"\\"},Zt=ot.substring(ut-1,ut);if(St[Zt]){const qt=ot.substring(0,ut)+St[Zt]+ot.substring(st);i(qt),setTimeout(()=>{nt.setSelectionRange(ut,ut)},0)}}},autoFocus:!0,placeholder:"Введите LaTeX формулу"})]})},iv=({textAreaRef:s,tempText:t,updateTextInRealTime:a,finishTextEditing:i,textareaStyle:o})=>At.jsx("textarea",{ref:s,value:t,onChange:h=>a(h.target.value),onBlur:()=>i(),style:o,onKeyDown:h=>{h.key==="Escape"&&i(),h.key==="Enter"&&h.ctrlKey&&i()},autoFocus:!0}),rv=[{name:"fraction",latex:"\\frac{a}{b}",description:"Дробь с числителем и знаменателем",category:"fraction",placeholder:"\\frac{a}{b}"},{name:"sqrt",latex:"\\sqrt{x}",description:"Квадратный корень",category:"root",placeholder:"\\sqrt{x}"},{name:"nthroot",latex:"\\sqrt[n]{x}",description:"Корень с показателем степени",category:"root",placeholder:"\\sqrt[n]{x}"},{name:"superscript",latex:"x^{2}",description:"Надстрочный индекс",category:"superscript",placeholder:"x^{2}"},{name:"subscript",latex:"x_{i}",description:"Подстрочный индекс",category:"subscript",placeholder:"x_{i}"},{name:"sum",latex:"\\sum_{i=1}^{n}",description:"Сумма",category:"operators",placeholder:"\\sum_{i=1}^{n}"},{name:"integral",latex:"\\int_{a}^{b}",description:"Интеграл",category:"operators",placeholder:"\\int_{a}^{b}"},{name:"limit",latex:"\\lim_{x \\to 0}",description:"Предел",category:"operators",placeholder:"\\lim_{x \\to 0}"},{name:"derivative",latex:"\\frac{dy}{dx}",description:"Производная",category:"operators",placeholder:"\\frac{dy}{dx}"},{name:"infinity",latex:"\\infty",description:"Символ бесконечности",category:"symbols"},{name:"approx",latex:"\\approx",description:"Приблизительное равенство",category:"symbols"},{name:"neq",latex:"\\neq",description:"Не равно",category:"symbols"},{name:"leq",latex:"\\leq",description:"Меньше или равно",category:"symbols"},{name:"geq",latex:"\\geq",description:"Больше или равно",category:"symbols"},{name:"in",latex:"\\in",description:"Принадлежность множеству",category:"symbols"},{name:"forall",latex:"\\forall",description:"Для всех",category:"symbols"},{name:"exists",latex:"\\exists",description:"Существует",category:"symbols"},{name:"therefore",latex:"\\therefore",description:"Следовательно",category:"symbols"},{name:"plus",latex:"+",description:"Плюс",category:"symbols"},{name:"minus",latex:"-",description:"Минус",category:"symbols"},{name:"times",latex:"\\times",description:"Умножение",category:"symbols"},{name:"div",latex:"\\div",description:"Деление",category:"symbols"},{name:"equals",latex:"=",description:"Равно",category:"symbols"},{name:"parentheses",latex:"\\left( x \\right)",description:"Круглые скобки",category:"brackets",placeholder:"\\left( x + y \\right)"},{name:"brackets",latex:"\\left[ a \\right]",description:"Квадратные скобки",category:"brackets",placeholder:"\\left[ a, b \\right]"},{name:"braces",latex:"\\left\\{ x \\right\\}",description:"Фигурные скобки",category:"brackets",placeholder:"\\left\\{ x, y \\right\\}"},{name:"abs",latex:"\\left| x \\right|",description:"Модуль",category:"brackets",placeholder:"\\left| x \\right|"},{name:"alpha",latex:"\\alpha",description:"Греческая буква альфа",category:"symbols"},{name:"beta",latex:"\\beta",description:"Греческая буква бета",category:"symbols"},{name:"gamma",latex:"\\gamma",description:"Греческая буква гамма",category:"symbols"},{name:"delta",latex:"\\delta",description:"Греческая буква дельта",category:"symbols"},{name:"pi",latex:"\\pi",description:"Число Пи",category:"symbols"},{name:"sigma",latex:"\\sigma",description:"Греческая буква сигма",category:"symbols"},{name:"theta",latex:"\\theta",description:"Греческая буква тета",category:"symbols"}],sv=[{id:"fraction",name:"½",icon:"½"},{id:"root",name:"√",icon:"√"},{id:"superscript",name:"x²",icon:"x²"},{id:"subscript",name:"x₁",icon:"x₁"},{id:"brackets",name:"[]",icon:"[]"},{id:"operators",name:"∑",icon:"∑"},{id:"symbols",name:"α",icon:"α"}],uv=["Arial","Verdana","Helvetica","Tahoma","Trebuchet MS","Times New Roman","Georgia","Garamond","Courier New","Brush Script MT","Comic Sans MS","Impact"],ov=(s,t)=>{const[a,i]=bt.useState([s]),[o,h]=bt.useState(0),d=bt.useCallback(E=>{const _=a.slice(0,o+1);_.push([...E]),i(_),h(_.length-1),t&&t(E)},[a,o,t]),g=bt.useCallback(()=>{if(o>0){const E=o-1;return h(E),[...a[E]]}return null},[a,o]),p=bt.useCallback(()=>{if(o<a.length-1){const E=o+1;return h(E),[...a[E]]}return null},[a,o]),b=bt.useCallback(E=>{i([E]),h(0)},[]);return{history:a,historyIndex:o,saveToHistory:d,handleUndo:g,handleRedo:p,resetHistory:b}};class In{constructor(t,a,i){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=a,this.end=i}static range(t,a){return a?!t||!t.loc||!a.loc||t.loc.lexer!==a.loc.lexer?null:new In(t.loc.lexer,t.loc.start,a.loc.end):t&&t.loc}}class cl{constructor(t,a){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=a}range(t,a){return new cl(a,In.range(this,t))}}class Rt{constructor(t,a){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var i="KaTeX parse error: "+t,o,h,d=a&&a.loc;if(d&&d.start<=d.end){var g=d.lexer.input;o=d.start,h=d.end,o===g.length?i+=" at end of input: ":i+=" at position "+(o+1)+": ";var p=g.slice(o,h).replace(/[^]/g,"$&̲"),b;o>15?b="…"+g.slice(o-15,o):b=g.slice(0,o);var E;h+15<g.length?E=g.slice(h,h+15)+"…":E=g.slice(h),i+=b+p+E}var _=new Error(i);return _.name="ParseError",_.__proto__=Rt.prototype,_.position=o,o!=null&&h!=null&&(_.length=h-o),_.rawMessage=t,_}}Rt.prototype.__proto__=Error.prototype;var cv=function(t,a){return t===void 0?a:t},hv=/([A-Z])/g,fv=function(t){return t.replace(hv,"-$1").toLowerCase()},dv={"&":"&",">":">","<":"<",'"':""","'":"'"},mv=/[&><"']/g;function gv(s){return String(s).replace(mv,t=>dv[t])}var fm=function s(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?s(t.body[0]):t:t.type==="font"?s(t.body):t},pv=function(t){var a=fm(t);return a.type==="mathord"||a.type==="textord"||a.type==="atom"},vv=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},yv=function(t){var a=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return a?a[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(a[1])?null:a[1].toLowerCase():"_relative"},ta={deflt:cv,escape:gv,hyphenate:fv,getBaseElem:fm,isCharacterBox:pv,protocolFromUrl:yv},k2={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:s=>"#"+s},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(s,t)=>(t.push(s),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:s=>Math.max(0,s),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:s=>Math.max(0,s),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:s=>Math.max(0,s),cli:"-e, --max-expand <n>",cliProcessor:s=>s==="Infinity"?1/0:parseInt(s)},globalGroup:{type:"boolean",cli:!1}};function bv(s){if(s.default)return s.default;var t=s.type,a=Array.isArray(t)?t[0]:t;if(typeof a!="string")return a.enum[0];switch(a){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class t5{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var a in k2)if(k2.hasOwnProperty(a)){var i=k2[a];this[a]=t[a]!==void 0?i.processor?i.processor(t[a]):t[a]:bv(i)}}reportNonstrict(t,a,i){var o=this.strict;if(typeof o=="function"&&(o=o(t,a,i)),!(!o||o==="ignore")){if(o===!0||o==="error")throw new Rt("LaTeX-incompatible input and strict mode is set to 'error': "+(a+" ["+t+"]"),i);o==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+a+" ["+t+"]"))}}useStrictBehavior(t,a,i){var o=this.strict;if(typeof o=="function")try{o=o(t,a,i)}catch{o="error"}return!o||o==="ignore"?!1:o===!0||o==="error"?!0:o==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+a+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var a=ta.protocolFromUrl(t.url);if(a==null)return!1;t.protocol=a}var i=typeof this.trust=="function"?this.trust(t):this.trust;return!!i}}class Is{constructor(t,a,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=a,this.cramped=i}sup(){return nr[Sv[this.id]]}sub(){return nr[xv[this.id]]}fracNum(){return nr[Tv[this.id]]}fracDen(){return nr[Ev[this.id]]}cramp(){return nr[_v[this.id]]}text(){return nr[Mv[this.id]]}isTight(){return this.size>=2}}var e5=0,V2=1,Ec=2,Kr=3,_h=4,Kl=5,Ac=6,zn=7,nr=[new Is(e5,0,!1),new Is(V2,0,!0),new Is(Ec,1,!1),new Is(Kr,1,!0),new Is(_h,2,!1),new Is(Kl,2,!0),new Is(Ac,3,!1),new Is(zn,3,!0)],Sv=[_h,Kl,_h,Kl,Ac,zn,Ac,zn],xv=[Kl,Kl,Kl,Kl,zn,zn,zn,zn],Tv=[Ec,Kr,_h,Kl,Ac,zn,Ac,zn],Ev=[Kr,Kr,Kl,Kl,zn,zn,zn,zn],_v=[V2,V2,Kr,Kr,Kl,Kl,zn,zn],Mv=[e5,V2,Ec,Kr,Ec,Kr,Ec,Kr],oe={DISPLAY:nr[e5],TEXT:nr[Ec],SCRIPT:nr[_h],SCRIPTSCRIPT:nr[Ac]},Hd=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Av(s){for(var t=0;t<Hd.length;t++)for(var a=Hd[t],i=0;i<a.blocks.length;i++){var o=a.blocks[i];if(s>=o[0]&&s<=o[1])return a.name}return null}var Y2=[];Hd.forEach(s=>s.blocks.forEach(t=>Y2.push(...t)));function dm(s){for(var t=0;t<Y2.length;t+=2)if(s>=Y2[t]&&s<=Y2[t+1])return!0;return!1}var xc=80,zv=function(t,a){return"M95,"+(622+t+a)+`
|
|
42
|
-
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
43
|
-
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
44
|
-
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
45
|
-
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
46
|
-
c69,-144,104.5,-217.7,106.5,-221
|
|
47
|
-
l`+t/2.075+" -"+t+`
|
|
48
|
-
c5.3,-9.3,12,-14,20,-14
|
|
49
|
-
H400000v`+(40+t)+`H845.2724
|
|
50
|
-
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
51
|
-
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
52
|
-
M`+(834+t)+" "+a+"h400000v"+(40+t)+"h-400000z"},Cv=function(t,a){return"M263,"+(601+t+a)+`c0.7,0,18,39.7,52,119
|
|
53
|
-
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
54
|
-
c340,-704.7,510.7,-1060.3,512,-1067
|
|
55
|
-
l`+t/2.084+" -"+t+`
|
|
56
|
-
c4.7,-7.3,11,-11,19,-11
|
|
57
|
-
H40000v`+(40+t)+`H1012.3
|
|
58
|
-
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
59
|
-
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
60
|
-
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
61
|
-
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
62
|
-
M`+(1001+t)+" "+a+"h400000v"+(40+t)+"h-400000z"},wv=function(t,a){return"M983 "+(10+t+a)+`
|
|
63
|
-
l`+t/3.13+" -"+t+`
|
|
64
|
-
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
65
|
-
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
66
|
-
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
67
|
-
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
68
|
-
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
69
|
-
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
70
|
-
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
71
|
-
M`+(1001+t)+" "+a+"h400000v"+(40+t)+"h-400000z"},Dv=function(t,a){return"M424,"+(2398+t+a)+`
|
|
72
|
-
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
73
|
-
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
74
|
-
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
75
|
-
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
76
|
-
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
77
|
-
v`+(40+t)+`H1014.6
|
|
78
|
-
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
79
|
-
c-2,6,-10,9,-24,9
|
|
80
|
-
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+a+`
|
|
81
|
-
h400000v`+(40+t)+"h-400000z"},Nv=function(t,a){return"M473,"+(2713+t+a)+`
|
|
82
|
-
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
83
|
-
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
84
|
-
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
85
|
-
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
86
|
-
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
87
|
-
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
88
|
-
606zM`+(1001+t)+" "+a+"h400000v"+(40+t)+"H1017.7z"},Rv=function(t){var a=t/2;return"M400000 "+t+" H0 L"+a+" 0 l65 45 L145 "+(t-80)+" H400000z"},Ov=function(t,a,i){var o=i-54-a-t;return"M702 "+(t+a)+"H400000"+(40+t)+`
|
|
89
|
-
H742v`+o+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
90
|
-
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
91
|
-
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
92
|
-
219 661 l218 661zM702 `+a+"H400000v"+(40+t)+"H742z"},Bv=function(t,a,i){a=1e3*a;var o="";switch(t){case"sqrtMain":o=zv(a,xc);break;case"sqrtSize1":o=Cv(a,xc);break;case"sqrtSize2":o=wv(a,xc);break;case"sqrtSize3":o=Dv(a,xc);break;case"sqrtSize4":o=Nv(a,xc);break;case"sqrtTall":o=Ov(a,xc,i)}return o},Hv=function(t,a){switch(t){case"⎜":return"M291 0 H417 V"+a+" H291z M291 0 H417 V"+a+" H291z";case"∣":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z";case"∥":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z"+("M367 0 H410 V"+a+" H367z M367 0 H410 V"+a+" H367z");case"⎟":return"M457 0 H583 V"+a+" H457z M457 0 H583 V"+a+" H457z";case"⎢":return"M319 0 H403 V"+a+" H319z M319 0 H403 V"+a+" H319z";case"⎥":return"M263 0 H347 V"+a+" H263z M263 0 H347 V"+a+" H263z";case"⎪":return"M384 0 H504 V"+a+" H384z M384 0 H504 V"+a+" H384z";case"⏐":return"M312 0 H355 V"+a+" H312z M312 0 H355 V"+a+" H312z";case"‖":return"M257 0 H300 V"+a+" H257z M257 0 H300 V"+a+" H257z"+("M478 0 H521 V"+a+" H478z M478 0 H521 V"+a+" H478z");default:return""}},K3={doubleleftarrow:`M262 157
|
|
93
|
-
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
94
|
-
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
95
|
-
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
96
|
-
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
97
|
-
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
98
|
-
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
99
|
-
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
100
|
-
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
101
|
-
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
102
|
-
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
103
|
-
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
104
|
-
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
105
|
-
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
106
|
-
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
107
|
-
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
108
|
-
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
109
|
-
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
110
|
-
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
111
|
-
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
112
|
-
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
113
|
-
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
114
|
-
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
115
|
-
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
116
|
-
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
117
|
-
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
118
|
-
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
119
|
-
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
120
|
-
435 0h399565z`,leftgroupunder:`M400000 262
|
|
121
|
-
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
122
|
-
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
123
|
-
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
124
|
-
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
125
|
-
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
126
|
-
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
127
|
-
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
128
|
-
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
129
|
-
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
130
|
-
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
131
|
-
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
132
|
-
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
133
|
-
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
134
|
-
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
135
|
-
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
136
|
-
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
137
|
-
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
138
|
-
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
139
|
-
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
140
|
-
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
141
|
-
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
142
|
-
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
143
|
-
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
144
|
-
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
145
|
-
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
146
|
-
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
147
|
-
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
148
|
-
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
149
|
-
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
150
|
-
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
151
|
-
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
152
|
-
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
153
|
-
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
154
|
-
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
155
|
-
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
156
|
-
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
157
|
-
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
158
|
-
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
159
|
-
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
160
|
-
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
161
|
-
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
162
|
-
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
163
|
-
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
164
|
-
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
165
|
-
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
166
|
-
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
167
|
-
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
168
|
-
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
169
|
-
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
170
|
-
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
171
|
-
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
172
|
-
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
173
|
-
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
174
|
-
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
175
|
-
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
176
|
-
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
177
|
-
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
178
|
-
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
179
|
-
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
180
|
-
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
181
|
-
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
182
|
-
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
183
|
-
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
184
|
-
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
185
|
-
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
186
|
-
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
187
|
-
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
188
|
-
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
189
|
-
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
190
|
-
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
191
|
-
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
192
|
-
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
193
|
-
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
194
|
-
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
195
|
-
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
196
|
-
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
197
|
-
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
198
|
-
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
199
|
-
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
200
|
-
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
201
|
-
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
202
|
-
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
203
|
-
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
204
|
-
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
205
|
-
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
206
|
-
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
207
|
-
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
208
|
-
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
209
|
-
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
210
|
-
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
211
|
-
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
212
|
-
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
213
|
-
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
214
|
-
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
215
|
-
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
216
|
-
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
217
|
-
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
218
|
-
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
219
|
-
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
220
|
-
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
221
|
-
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
222
|
-
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
223
|
-
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
224
|
-
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
225
|
-
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
226
|
-
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
227
|
-
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
228
|
-
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
229
|
-
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
230
|
-
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
231
|
-
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
232
|
-
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
233
|
-
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
234
|
-
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
235
|
-
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
236
|
-
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
237
|
-
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
238
|
-
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
239
|
-
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
240
|
-
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
241
|
-
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
242
|
-
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
243
|
-
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
244
|
-
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
245
|
-
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
246
|
-
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
247
|
-
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
248
|
-
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
249
|
-
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
250
|
-
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
251
|
-
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
252
|
-
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
253
|
-
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
254
|
-
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
255
|
-
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
256
|
-
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
257
|
-
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
258
|
-
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
259
|
-
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
260
|
-
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
261
|
-
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
262
|
-
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
263
|
-
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
264
|
-
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
265
|
-
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
266
|
-
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
267
|
-
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Gv=function(t,a){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v1759 h347 v-84
|
|
268
|
-
H403z M403 1759 V0 H319 V1759 v`+a+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v1759 H0 v84 H347z
|
|
269
|
-
M347 1759 V0 H263 V1759 v`+a+" v1759 h84z";case"vert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15
|
|
270
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
271
|
-
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+a+" v585 h43z";case"doublevert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15
|
|
272
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
273
|
-
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+a+` v585 h43z
|
|
274
|
-
M367 15 v585 v`+a+` v585 c2.667,10,9.667,15,21,15
|
|
275
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
276
|
-
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+a+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+a+` v1715 h263 v84 H319z
|
|
277
|
-
MM319 602 V0 H403 V602 v`+a+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+a+` v1799 H0 v-84 H319z
|
|
278
|
-
MM319 602 V0 H403 V602 v`+a+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v602 h84z
|
|
279
|
-
M403 1759 V0 H319 V1759 v`+a+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v602 h84z
|
|
280
|
-
M347 1759 V0 h-84 V1759 v`+a+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
281
|
-
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
282
|
-
-36,557 l0,`+(a+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
283
|
-
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
284
|
-
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
285
|
-
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
286
|
-
l0,-`+(a+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
287
|
-
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
288
|
-
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
289
|
-
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(a+9)+`
|
|
290
|
-
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
291
|
-
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
292
|
-
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
293
|
-
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
294
|
-
l0,-`+(a+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
295
|
-
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class zh{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),a=0;a<this.children.length;a++)t.appendChild(this.children[a].toNode());return t}toMarkup(){for(var t="",a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t}toText(){var t=a=>a.toText();return this.children.map(t).join("")}}var ir={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},C2={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Z3={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Uv(s,t){ir[s]=t}function a5(s,t,a){if(!ir[t])throw new Error("Font metrics not found for font: "+t+".");var i=s.charCodeAt(0),o=ir[t][i];if(!o&&s[0]in Z3&&(i=Z3[s[0]].charCodeAt(0),o=ir[t][i]),!o&&a==="text"&&dm(i)&&(o=ir[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var sd={};function qv(s){var t;if(s>=5?t=0:s>=3?t=1:t=2,!sd[t]){var a=sd[t]={cssEmPerMu:C2.quad[t]/18};for(var i in C2)C2.hasOwnProperty(i)&&(a[i]=C2[i][t])}return sd[t]}var Lv=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],J3=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],F3=function(t,a){return a.size<2?t:Lv[t-1][a.size-1]};class Qr{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Qr.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=J3[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var a={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var i in t)t.hasOwnProperty(i)&&(a[i]=t[i]);return new Qr(a)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:F3(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:J3[t-1]})}havingBaseStyle(t){t=t||this.style.text();var a=F3(Qr.BASESIZE,t);return this.size===a&&this.textSize===Qr.BASESIZE&&this.style===t?this:this.extend({style:t,size:a})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Qr.BASESIZE?["sizing","reset-size"+this.size,"size"+Qr.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=qv(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Qr.BASESIZE=6;var Gd={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},kv={ex:!0,em:!0,mu:!0},mm=function(t){return typeof t!="string"&&(t=t.unit),t in Gd||t in kv||t==="ex"},Pa=function(t,a){var i;if(t.unit in Gd)i=Gd[t.unit]/a.fontMetrics().ptPerEm/a.sizeMultiplier;else if(t.unit==="mu")i=a.fontMetrics().cssEmPerMu;else{var o;if(a.style.isTight()?o=a.havingStyle(a.style.text()):o=a,t.unit==="ex")i=o.fontMetrics().xHeight;else if(t.unit==="em")i=o.fontMetrics().quad;else throw new Rt("Invalid unit: '"+t.unit+"'");o!==a&&(i*=o.sizeMultiplier/a.sizeMultiplier)}return Math.min(t.number*i,a.maxSize)},Yt=function(t){return+t.toFixed(4)+"em"},nu=function(t){return t.filter(a=>a).join(" ")},gm=function(t,a,i){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},a){a.style.isTight()&&this.classes.push("mtight");var o=a.getColor();o&&(this.style.color=o)}},pm=function(t){var a=document.createElement(t);a.className=nu(this.classes);for(var i in this.style)this.style.hasOwnProperty(i)&&(a.style[i]=this.style[i]);for(var o in this.attributes)this.attributes.hasOwnProperty(o)&&a.setAttribute(o,this.attributes[o]);for(var h=0;h<this.children.length;h++)a.appendChild(this.children[h].toNode());return a},Yv=/[\s"'>/=\x00-\x1f]/,vm=function(t){var a="<"+t;this.classes.length&&(a+=' class="'+ta.escape(nu(this.classes))+'"');var i="";for(var o in this.style)this.style.hasOwnProperty(o)&&(i+=ta.hyphenate(o)+":"+this.style[o]+";");i&&(a+=' style="'+ta.escape(i)+'"');for(var h in this.attributes)if(this.attributes.hasOwnProperty(h)){if(Yv.test(h))throw new Rt("Invalid attribute name '"+h+"'");a+=" "+h+'="'+ta.escape(this.attributes[h])+'"'}a+=">";for(var d=0;d<this.children.length;d++)a+=this.children[d].toMarkup();return a+="</"+t+">",a};class Ch{constructor(t,a,i,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,gm.call(this,t,i,o),this.children=a||[]}setAttribute(t,a){this.attributes[t]=a}hasClass(t){return this.classes.includes(t)}toNode(){return pm.call(this,"span")}toMarkup(){return vm.call(this,"span")}}class n5{constructor(t,a,i,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,gm.call(this,a,o),this.children=i||[],this.setAttribute("href",t)}setAttribute(t,a){this.attributes[t]=a}hasClass(t){return this.classes.includes(t)}toNode(){return pm.call(this,"a")}toMarkup(){return vm.call(this,"a")}}class Xv{constructor(t,a,i){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=a,this.src=t,this.classes=["mord"],this.style=i}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var a in this.style)this.style.hasOwnProperty(a)&&(t.style[a]=this.style[a]);return t}toMarkup(){var t='<img src="'+ta.escape(this.src)+'"'+(' alt="'+ta.escape(this.alt)+'"'),a="";for(var i in this.style)this.style.hasOwnProperty(i)&&(a+=ta.hyphenate(i)+":"+this.style[i]+";");return a&&(t+=' style="'+ta.escape(a)+'"'),t+="'/>",t}}var jv={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Zl{constructor(t,a,i,o,h,d,g,p){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=a||0,this.depth=i||0,this.italic=o||0,this.skew=h||0,this.width=d||0,this.classes=g||[],this.style=p||{},this.maxFontSize=0;var b=Av(this.text.charCodeAt(0));b&&this.classes.push(b+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=jv[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),a=null;this.italic>0&&(a=document.createElement("span"),a.style.marginRight=Yt(this.italic)),this.classes.length>0&&(a=a||document.createElement("span"),a.className=nu(this.classes));for(var i in this.style)this.style.hasOwnProperty(i)&&(a=a||document.createElement("span"),a.style[i]=this.style[i]);return a?(a.appendChild(t),a):t}toMarkup(){var t=!1,a="<span";this.classes.length&&(t=!0,a+=' class="',a+=ta.escape(nu(this.classes)),a+='"');var i="";this.italic>0&&(i+="margin-right:"+this.italic+"em;");for(var o in this.style)this.style.hasOwnProperty(o)&&(i+=ta.hyphenate(o)+":"+this.style[o]+";");i&&(t=!0,a+=' style="'+ta.escape(i)+'"');var h=ta.escape(this.text);return t?(a+=">",a+=h,a+="</span>",a):h}}class Jr{constructor(t,a){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=a||{}}toNode(){var t="http://www.w3.org/2000/svg",a=document.createElementNS(t,"svg");for(var i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&a.setAttribute(i,this.attributes[i]);for(var o=0;o<this.children.length;o++)a.appendChild(this.children[o].toNode());return a}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&(t+=" "+a+'="'+ta.escape(this.attributes[a])+'"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</svg>",t}}class lu{constructor(t,a){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=a}toNode(){var t="http://www.w3.org/2000/svg",a=document.createElementNS(t,"path");return this.alternate?a.setAttribute("d",this.alternate):a.setAttribute("d",K3[this.pathName]),a}toMarkup(){return this.alternate?'<path d="'+ta.escape(this.alternate)+'"/>':'<path d="'+ta.escape(K3[this.pathName])+'"/>'}}class Ud{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",a=document.createElementNS(t,"line");for(var i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&a.setAttribute(i,this.attributes[i]);return a}toMarkup(){var t="<line";for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&(t+=" "+a+'="'+ta.escape(this.attributes[a])+'"');return t+="/>",t}}function W3(s){if(s instanceof Zl)return s;throw new Error("Expected symbolNode but got "+String(s)+".")}function Vv(s){if(s instanceof Ch)return s;throw new Error("Expected span<HtmlDomNode> but got "+String(s)+".")}var Qv={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Kv={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ca={math:{},text:{}};function x(s,t,a,i,o,h){Ca[s][o]={font:t,group:a,replace:i},h&&i&&(Ca[s][i]=Ca[s][o])}var M="math",_t="text",w="main",q="ams",Qa="accent-token",Ft="bin",Cn="close",wc="inner",ue="mathord",C0="op-token",hl="open",e4="punct",Y="rel",ts="spacing",F="textord";x(M,w,Y,"≡","\\equiv",!0);x(M,w,Y,"≺","\\prec",!0);x(M,w,Y,"≻","\\succ",!0);x(M,w,Y,"∼","\\sim",!0);x(M,w,Y,"⊥","\\perp");x(M,w,Y,"⪯","\\preceq",!0);x(M,w,Y,"⪰","\\succeq",!0);x(M,w,Y,"≃","\\simeq",!0);x(M,w,Y,"∣","\\mid",!0);x(M,w,Y,"≪","\\ll",!0);x(M,w,Y,"≫","\\gg",!0);x(M,w,Y,"≍","\\asymp",!0);x(M,w,Y,"∥","\\parallel");x(M,w,Y,"⋈","\\bowtie",!0);x(M,w,Y,"⌣","\\smile",!0);x(M,w,Y,"⊑","\\sqsubseteq",!0);x(M,w,Y,"⊒","\\sqsupseteq",!0);x(M,w,Y,"≐","\\doteq",!0);x(M,w,Y,"⌢","\\frown",!0);x(M,w,Y,"∋","\\ni",!0);x(M,w,Y,"∝","\\propto",!0);x(M,w,Y,"⊢","\\vdash",!0);x(M,w,Y,"⊣","\\dashv",!0);x(M,w,Y,"∋","\\owns");x(M,w,e4,".","\\ldotp");x(M,w,e4,"⋅","\\cdotp");x(M,w,F,"#","\\#");x(_t,w,F,"#","\\#");x(M,w,F,"&","\\&");x(_t,w,F,"&","\\&");x(M,w,F,"ℵ","\\aleph",!0);x(M,w,F,"∀","\\forall",!0);x(M,w,F,"ℏ","\\hbar",!0);x(M,w,F,"∃","\\exists",!0);x(M,w,F,"∇","\\nabla",!0);x(M,w,F,"♭","\\flat",!0);x(M,w,F,"ℓ","\\ell",!0);x(M,w,F,"♮","\\natural",!0);x(M,w,F,"♣","\\clubsuit",!0);x(M,w,F,"℘","\\wp",!0);x(M,w,F,"♯","\\sharp",!0);x(M,w,F,"♢","\\diamondsuit",!0);x(M,w,F,"ℜ","\\Re",!0);x(M,w,F,"♡","\\heartsuit",!0);x(M,w,F,"ℑ","\\Im",!0);x(M,w,F,"♠","\\spadesuit",!0);x(M,w,F,"§","\\S",!0);x(_t,w,F,"§","\\S");x(M,w,F,"¶","\\P",!0);x(_t,w,F,"¶","\\P");x(M,w,F,"†","\\dag");x(_t,w,F,"†","\\dag");x(_t,w,F,"†","\\textdagger");x(M,w,F,"‡","\\ddag");x(_t,w,F,"‡","\\ddag");x(_t,w,F,"‡","\\textdaggerdbl");x(M,w,Cn,"⎱","\\rmoustache",!0);x(M,w,hl,"⎰","\\lmoustache",!0);x(M,w,Cn,"⟯","\\rgroup",!0);x(M,w,hl,"⟮","\\lgroup",!0);x(M,w,Ft,"∓","\\mp",!0);x(M,w,Ft,"⊖","\\ominus",!0);x(M,w,Ft,"⊎","\\uplus",!0);x(M,w,Ft,"⊓","\\sqcap",!0);x(M,w,Ft,"∗","\\ast");x(M,w,Ft,"⊔","\\sqcup",!0);x(M,w,Ft,"◯","\\bigcirc",!0);x(M,w,Ft,"∙","\\bullet",!0);x(M,w,Ft,"‡","\\ddagger");x(M,w,Ft,"≀","\\wr",!0);x(M,w,Ft,"⨿","\\amalg");x(M,w,Ft,"&","\\And");x(M,w,Y,"⟵","\\longleftarrow",!0);x(M,w,Y,"⇐","\\Leftarrow",!0);x(M,w,Y,"⟸","\\Longleftarrow",!0);x(M,w,Y,"⟶","\\longrightarrow",!0);x(M,w,Y,"⇒","\\Rightarrow",!0);x(M,w,Y,"⟹","\\Longrightarrow",!0);x(M,w,Y,"↔","\\leftrightarrow",!0);x(M,w,Y,"⟷","\\longleftrightarrow",!0);x(M,w,Y,"⇔","\\Leftrightarrow",!0);x(M,w,Y,"⟺","\\Longleftrightarrow",!0);x(M,w,Y,"↦","\\mapsto",!0);x(M,w,Y,"⟼","\\longmapsto",!0);x(M,w,Y,"↗","\\nearrow",!0);x(M,w,Y,"↩","\\hookleftarrow",!0);x(M,w,Y,"↪","\\hookrightarrow",!0);x(M,w,Y,"↘","\\searrow",!0);x(M,w,Y,"↼","\\leftharpoonup",!0);x(M,w,Y,"⇀","\\rightharpoonup",!0);x(M,w,Y,"↙","\\swarrow",!0);x(M,w,Y,"↽","\\leftharpoondown",!0);x(M,w,Y,"⇁","\\rightharpoondown",!0);x(M,w,Y,"↖","\\nwarrow",!0);x(M,w,Y,"⇌","\\rightleftharpoons",!0);x(M,q,Y,"≮","\\nless",!0);x(M,q,Y,"","\\@nleqslant");x(M,q,Y,"","\\@nleqq");x(M,q,Y,"⪇","\\lneq",!0);x(M,q,Y,"≨","\\lneqq",!0);x(M,q,Y,"","\\@lvertneqq");x(M,q,Y,"⋦","\\lnsim",!0);x(M,q,Y,"⪉","\\lnapprox",!0);x(M,q,Y,"⊀","\\nprec",!0);x(M,q,Y,"⋠","\\npreceq",!0);x(M,q,Y,"⋨","\\precnsim",!0);x(M,q,Y,"⪹","\\precnapprox",!0);x(M,q,Y,"≁","\\nsim",!0);x(M,q,Y,"","\\@nshortmid");x(M,q,Y,"∤","\\nmid",!0);x(M,q,Y,"⊬","\\nvdash",!0);x(M,q,Y,"⊭","\\nvDash",!0);x(M,q,Y,"⋪","\\ntriangleleft");x(M,q,Y,"⋬","\\ntrianglelefteq",!0);x(M,q,Y,"⊊","\\subsetneq",!0);x(M,q,Y,"","\\@varsubsetneq");x(M,q,Y,"⫋","\\subsetneqq",!0);x(M,q,Y,"","\\@varsubsetneqq");x(M,q,Y,"≯","\\ngtr",!0);x(M,q,Y,"","\\@ngeqslant");x(M,q,Y,"","\\@ngeqq");x(M,q,Y,"⪈","\\gneq",!0);x(M,q,Y,"≩","\\gneqq",!0);x(M,q,Y,"","\\@gvertneqq");x(M,q,Y,"⋧","\\gnsim",!0);x(M,q,Y,"⪊","\\gnapprox",!0);x(M,q,Y,"⊁","\\nsucc",!0);x(M,q,Y,"⋡","\\nsucceq",!0);x(M,q,Y,"⋩","\\succnsim",!0);x(M,q,Y,"⪺","\\succnapprox",!0);x(M,q,Y,"≆","\\ncong",!0);x(M,q,Y,"","\\@nshortparallel");x(M,q,Y,"∦","\\nparallel",!0);x(M,q,Y,"⊯","\\nVDash",!0);x(M,q,Y,"⋫","\\ntriangleright");x(M,q,Y,"⋭","\\ntrianglerighteq",!0);x(M,q,Y,"","\\@nsupseteqq");x(M,q,Y,"⊋","\\supsetneq",!0);x(M,q,Y,"","\\@varsupsetneq");x(M,q,Y,"⫌","\\supsetneqq",!0);x(M,q,Y,"","\\@varsupsetneqq");x(M,q,Y,"⊮","\\nVdash",!0);x(M,q,Y,"⪵","\\precneqq",!0);x(M,q,Y,"⪶","\\succneqq",!0);x(M,q,Y,"","\\@nsubseteqq");x(M,q,Ft,"⊴","\\unlhd");x(M,q,Ft,"⊵","\\unrhd");x(M,q,Y,"↚","\\nleftarrow",!0);x(M,q,Y,"↛","\\nrightarrow",!0);x(M,q,Y,"⇍","\\nLeftarrow",!0);x(M,q,Y,"⇏","\\nRightarrow",!0);x(M,q,Y,"↮","\\nleftrightarrow",!0);x(M,q,Y,"⇎","\\nLeftrightarrow",!0);x(M,q,Y,"△","\\vartriangle");x(M,q,F,"ℏ","\\hslash");x(M,q,F,"▽","\\triangledown");x(M,q,F,"◊","\\lozenge");x(M,q,F,"Ⓢ","\\circledS");x(M,q,F,"®","\\circledR");x(_t,q,F,"®","\\circledR");x(M,q,F,"∡","\\measuredangle",!0);x(M,q,F,"∄","\\nexists");x(M,q,F,"℧","\\mho");x(M,q,F,"Ⅎ","\\Finv",!0);x(M,q,F,"⅁","\\Game",!0);x(M,q,F,"‵","\\backprime");x(M,q,F,"▲","\\blacktriangle");x(M,q,F,"▼","\\blacktriangledown");x(M,q,F,"■","\\blacksquare");x(M,q,F,"⧫","\\blacklozenge");x(M,q,F,"★","\\bigstar");x(M,q,F,"∢","\\sphericalangle",!0);x(M,q,F,"∁","\\complement",!0);x(M,q,F,"ð","\\eth",!0);x(_t,w,F,"ð","ð");x(M,q,F,"╱","\\diagup");x(M,q,F,"╲","\\diagdown");x(M,q,F,"□","\\square");x(M,q,F,"□","\\Box");x(M,q,F,"◊","\\Diamond");x(M,q,F,"¥","\\yen",!0);x(_t,q,F,"¥","\\yen",!0);x(M,q,F,"✓","\\checkmark",!0);x(_t,q,F,"✓","\\checkmark");x(M,q,F,"ℶ","\\beth",!0);x(M,q,F,"ℸ","\\daleth",!0);x(M,q,F,"ℷ","\\gimel",!0);x(M,q,F,"ϝ","\\digamma",!0);x(M,q,F,"ϰ","\\varkappa");x(M,q,hl,"┌","\\@ulcorner",!0);x(M,q,Cn,"┐","\\@urcorner",!0);x(M,q,hl,"└","\\@llcorner",!0);x(M,q,Cn,"┘","\\@lrcorner",!0);x(M,q,Y,"≦","\\leqq",!0);x(M,q,Y,"⩽","\\leqslant",!0);x(M,q,Y,"⪕","\\eqslantless",!0);x(M,q,Y,"≲","\\lesssim",!0);x(M,q,Y,"⪅","\\lessapprox",!0);x(M,q,Y,"≊","\\approxeq",!0);x(M,q,Ft,"⋖","\\lessdot");x(M,q,Y,"⋘","\\lll",!0);x(M,q,Y,"≶","\\lessgtr",!0);x(M,q,Y,"⋚","\\lesseqgtr",!0);x(M,q,Y,"⪋","\\lesseqqgtr",!0);x(M,q,Y,"≑","\\doteqdot");x(M,q,Y,"≓","\\risingdotseq",!0);x(M,q,Y,"≒","\\fallingdotseq",!0);x(M,q,Y,"∽","\\backsim",!0);x(M,q,Y,"⋍","\\backsimeq",!0);x(M,q,Y,"⫅","\\subseteqq",!0);x(M,q,Y,"⋐","\\Subset",!0);x(M,q,Y,"⊏","\\sqsubset",!0);x(M,q,Y,"≼","\\preccurlyeq",!0);x(M,q,Y,"⋞","\\curlyeqprec",!0);x(M,q,Y,"≾","\\precsim",!0);x(M,q,Y,"⪷","\\precapprox",!0);x(M,q,Y,"⊲","\\vartriangleleft");x(M,q,Y,"⊴","\\trianglelefteq");x(M,q,Y,"⊨","\\vDash",!0);x(M,q,Y,"⊪","\\Vvdash",!0);x(M,q,Y,"⌣","\\smallsmile");x(M,q,Y,"⌢","\\smallfrown");x(M,q,Y,"≏","\\bumpeq",!0);x(M,q,Y,"≎","\\Bumpeq",!0);x(M,q,Y,"≧","\\geqq",!0);x(M,q,Y,"⩾","\\geqslant",!0);x(M,q,Y,"⪖","\\eqslantgtr",!0);x(M,q,Y,"≳","\\gtrsim",!0);x(M,q,Y,"⪆","\\gtrapprox",!0);x(M,q,Ft,"⋗","\\gtrdot");x(M,q,Y,"⋙","\\ggg",!0);x(M,q,Y,"≷","\\gtrless",!0);x(M,q,Y,"⋛","\\gtreqless",!0);x(M,q,Y,"⪌","\\gtreqqless",!0);x(M,q,Y,"≖","\\eqcirc",!0);x(M,q,Y,"≗","\\circeq",!0);x(M,q,Y,"≜","\\triangleq",!0);x(M,q,Y,"∼","\\thicksim");x(M,q,Y,"≈","\\thickapprox");x(M,q,Y,"⫆","\\supseteqq",!0);x(M,q,Y,"⋑","\\Supset",!0);x(M,q,Y,"⊐","\\sqsupset",!0);x(M,q,Y,"≽","\\succcurlyeq",!0);x(M,q,Y,"⋟","\\curlyeqsucc",!0);x(M,q,Y,"≿","\\succsim",!0);x(M,q,Y,"⪸","\\succapprox",!0);x(M,q,Y,"⊳","\\vartriangleright");x(M,q,Y,"⊵","\\trianglerighteq");x(M,q,Y,"⊩","\\Vdash",!0);x(M,q,Y,"∣","\\shortmid");x(M,q,Y,"∥","\\shortparallel");x(M,q,Y,"≬","\\between",!0);x(M,q,Y,"⋔","\\pitchfork",!0);x(M,q,Y,"∝","\\varpropto");x(M,q,Y,"◀","\\blacktriangleleft");x(M,q,Y,"∴","\\therefore",!0);x(M,q,Y,"∍","\\backepsilon");x(M,q,Y,"▶","\\blacktriangleright");x(M,q,Y,"∵","\\because",!0);x(M,q,Y,"⋘","\\llless");x(M,q,Y,"⋙","\\gggtr");x(M,q,Ft,"⊲","\\lhd");x(M,q,Ft,"⊳","\\rhd");x(M,q,Y,"≂","\\eqsim",!0);x(M,w,Y,"⋈","\\Join");x(M,q,Y,"≑","\\Doteq",!0);x(M,q,Ft,"∔","\\dotplus",!0);x(M,q,Ft,"∖","\\smallsetminus");x(M,q,Ft,"⋒","\\Cap",!0);x(M,q,Ft,"⋓","\\Cup",!0);x(M,q,Ft,"⩞","\\doublebarwedge",!0);x(M,q,Ft,"⊟","\\boxminus",!0);x(M,q,Ft,"⊞","\\boxplus",!0);x(M,q,Ft,"⋇","\\divideontimes",!0);x(M,q,Ft,"⋉","\\ltimes",!0);x(M,q,Ft,"⋊","\\rtimes",!0);x(M,q,Ft,"⋋","\\leftthreetimes",!0);x(M,q,Ft,"⋌","\\rightthreetimes",!0);x(M,q,Ft,"⋏","\\curlywedge",!0);x(M,q,Ft,"⋎","\\curlyvee",!0);x(M,q,Ft,"⊝","\\circleddash",!0);x(M,q,Ft,"⊛","\\circledast",!0);x(M,q,Ft,"⋅","\\centerdot");x(M,q,Ft,"⊺","\\intercal",!0);x(M,q,Ft,"⋒","\\doublecap");x(M,q,Ft,"⋓","\\doublecup");x(M,q,Ft,"⊠","\\boxtimes",!0);x(M,q,Y,"⇢","\\dashrightarrow",!0);x(M,q,Y,"⇠","\\dashleftarrow",!0);x(M,q,Y,"⇇","\\leftleftarrows",!0);x(M,q,Y,"⇆","\\leftrightarrows",!0);x(M,q,Y,"⇚","\\Lleftarrow",!0);x(M,q,Y,"↞","\\twoheadleftarrow",!0);x(M,q,Y,"↢","\\leftarrowtail",!0);x(M,q,Y,"↫","\\looparrowleft",!0);x(M,q,Y,"⇋","\\leftrightharpoons",!0);x(M,q,Y,"↶","\\curvearrowleft",!0);x(M,q,Y,"↺","\\circlearrowleft",!0);x(M,q,Y,"↰","\\Lsh",!0);x(M,q,Y,"⇈","\\upuparrows",!0);x(M,q,Y,"↿","\\upharpoonleft",!0);x(M,q,Y,"⇃","\\downharpoonleft",!0);x(M,w,Y,"⊶","\\origof",!0);x(M,w,Y,"⊷","\\imageof",!0);x(M,q,Y,"⊸","\\multimap",!0);x(M,q,Y,"↭","\\leftrightsquigarrow",!0);x(M,q,Y,"⇉","\\rightrightarrows",!0);x(M,q,Y,"⇄","\\rightleftarrows",!0);x(M,q,Y,"↠","\\twoheadrightarrow",!0);x(M,q,Y,"↣","\\rightarrowtail",!0);x(M,q,Y,"↬","\\looparrowright",!0);x(M,q,Y,"↷","\\curvearrowright",!0);x(M,q,Y,"↻","\\circlearrowright",!0);x(M,q,Y,"↱","\\Rsh",!0);x(M,q,Y,"⇊","\\downdownarrows",!0);x(M,q,Y,"↾","\\upharpoonright",!0);x(M,q,Y,"⇂","\\downharpoonright",!0);x(M,q,Y,"⇝","\\rightsquigarrow",!0);x(M,q,Y,"⇝","\\leadsto");x(M,q,Y,"⇛","\\Rrightarrow",!0);x(M,q,Y,"↾","\\restriction");x(M,w,F,"‘","`");x(M,w,F,"$","\\$");x(_t,w,F,"$","\\$");x(_t,w,F,"$","\\textdollar");x(M,w,F,"%","\\%");x(_t,w,F,"%","\\%");x(M,w,F,"_","\\_");x(_t,w,F,"_","\\_");x(_t,w,F,"_","\\textunderscore");x(M,w,F,"∠","\\angle",!0);x(M,w,F,"∞","\\infty",!0);x(M,w,F,"′","\\prime");x(M,w,F,"△","\\triangle");x(M,w,F,"Γ","\\Gamma",!0);x(M,w,F,"Δ","\\Delta",!0);x(M,w,F,"Θ","\\Theta",!0);x(M,w,F,"Λ","\\Lambda",!0);x(M,w,F,"Ξ","\\Xi",!0);x(M,w,F,"Π","\\Pi",!0);x(M,w,F,"Σ","\\Sigma",!0);x(M,w,F,"Υ","\\Upsilon",!0);x(M,w,F,"Φ","\\Phi",!0);x(M,w,F,"Ψ","\\Psi",!0);x(M,w,F,"Ω","\\Omega",!0);x(M,w,F,"A","Α");x(M,w,F,"B","Β");x(M,w,F,"E","Ε");x(M,w,F,"Z","Ζ");x(M,w,F,"H","Η");x(M,w,F,"I","Ι");x(M,w,F,"K","Κ");x(M,w,F,"M","Μ");x(M,w,F,"N","Ν");x(M,w,F,"O","Ο");x(M,w,F,"P","Ρ");x(M,w,F,"T","Τ");x(M,w,F,"X","Χ");x(M,w,F,"¬","\\neg",!0);x(M,w,F,"¬","\\lnot");x(M,w,F,"⊤","\\top");x(M,w,F,"⊥","\\bot");x(M,w,F,"∅","\\emptyset");x(M,q,F,"∅","\\varnothing");x(M,w,ue,"α","\\alpha",!0);x(M,w,ue,"β","\\beta",!0);x(M,w,ue,"γ","\\gamma",!0);x(M,w,ue,"δ","\\delta",!0);x(M,w,ue,"ϵ","\\epsilon",!0);x(M,w,ue,"ζ","\\zeta",!0);x(M,w,ue,"η","\\eta",!0);x(M,w,ue,"θ","\\theta",!0);x(M,w,ue,"ι","\\iota",!0);x(M,w,ue,"κ","\\kappa",!0);x(M,w,ue,"λ","\\lambda",!0);x(M,w,ue,"μ","\\mu",!0);x(M,w,ue,"ν","\\nu",!0);x(M,w,ue,"ξ","\\xi",!0);x(M,w,ue,"ο","\\omicron",!0);x(M,w,ue,"π","\\pi",!0);x(M,w,ue,"ρ","\\rho",!0);x(M,w,ue,"σ","\\sigma",!0);x(M,w,ue,"τ","\\tau",!0);x(M,w,ue,"υ","\\upsilon",!0);x(M,w,ue,"ϕ","\\phi",!0);x(M,w,ue,"χ","\\chi",!0);x(M,w,ue,"ψ","\\psi",!0);x(M,w,ue,"ω","\\omega",!0);x(M,w,ue,"ε","\\varepsilon",!0);x(M,w,ue,"ϑ","\\vartheta",!0);x(M,w,ue,"ϖ","\\varpi",!0);x(M,w,ue,"ϱ","\\varrho",!0);x(M,w,ue,"ς","\\varsigma",!0);x(M,w,ue,"φ","\\varphi",!0);x(M,w,Ft,"∗","*",!0);x(M,w,Ft,"+","+");x(M,w,Ft,"−","-",!0);x(M,w,Ft,"⋅","\\cdot",!0);x(M,w,Ft,"∘","\\circ",!0);x(M,w,Ft,"÷","\\div",!0);x(M,w,Ft,"±","\\pm",!0);x(M,w,Ft,"×","\\times",!0);x(M,w,Ft,"∩","\\cap",!0);x(M,w,Ft,"∪","\\cup",!0);x(M,w,Ft,"∖","\\setminus",!0);x(M,w,Ft,"∧","\\land");x(M,w,Ft,"∨","\\lor");x(M,w,Ft,"∧","\\wedge",!0);x(M,w,Ft,"∨","\\vee",!0);x(M,w,F,"√","\\surd");x(M,w,hl,"⟨","\\langle",!0);x(M,w,hl,"∣","\\lvert");x(M,w,hl,"∥","\\lVert");x(M,w,Cn,"?","?");x(M,w,Cn,"!","!");x(M,w,Cn,"⟩","\\rangle",!0);x(M,w,Cn,"∣","\\rvert");x(M,w,Cn,"∥","\\rVert");x(M,w,Y,"=","=");x(M,w,Y,":",":");x(M,w,Y,"≈","\\approx",!0);x(M,w,Y,"≅","\\cong",!0);x(M,w,Y,"≥","\\ge");x(M,w,Y,"≥","\\geq",!0);x(M,w,Y,"←","\\gets");x(M,w,Y,">","\\gt",!0);x(M,w,Y,"∈","\\in",!0);x(M,w,Y,"","\\@not");x(M,w,Y,"⊂","\\subset",!0);x(M,w,Y,"⊃","\\supset",!0);x(M,w,Y,"⊆","\\subseteq",!0);x(M,w,Y,"⊇","\\supseteq",!0);x(M,q,Y,"⊈","\\nsubseteq",!0);x(M,q,Y,"⊉","\\nsupseteq",!0);x(M,w,Y,"⊨","\\models");x(M,w,Y,"←","\\leftarrow",!0);x(M,w,Y,"≤","\\le");x(M,w,Y,"≤","\\leq",!0);x(M,w,Y,"<","\\lt",!0);x(M,w,Y,"→","\\rightarrow",!0);x(M,w,Y,"→","\\to");x(M,q,Y,"≱","\\ngeq",!0);x(M,q,Y,"≰","\\nleq",!0);x(M,w,ts," ","\\ ");x(M,w,ts," ","\\space");x(M,w,ts," ","\\nobreakspace");x(_t,w,ts," ","\\ ");x(_t,w,ts," "," ");x(_t,w,ts," ","\\space");x(_t,w,ts," ","\\nobreakspace");x(M,w,ts,null,"\\nobreak");x(M,w,ts,null,"\\allowbreak");x(M,w,e4,",",",");x(M,w,e4,";",";");x(M,q,Ft,"⊼","\\barwedge",!0);x(M,q,Ft,"⊻","\\veebar",!0);x(M,w,Ft,"⊙","\\odot",!0);x(M,w,Ft,"⊕","\\oplus",!0);x(M,w,Ft,"⊗","\\otimes",!0);x(M,w,F,"∂","\\partial",!0);x(M,w,Ft,"⊘","\\oslash",!0);x(M,q,Ft,"⊚","\\circledcirc",!0);x(M,q,Ft,"⊡","\\boxdot",!0);x(M,w,Ft,"△","\\bigtriangleup");x(M,w,Ft,"▽","\\bigtriangledown");x(M,w,Ft,"†","\\dagger");x(M,w,Ft,"⋄","\\diamond");x(M,w,Ft,"⋆","\\star");x(M,w,Ft,"◃","\\triangleleft");x(M,w,Ft,"▹","\\triangleright");x(M,w,hl,"{","\\{");x(_t,w,F,"{","\\{");x(_t,w,F,"{","\\textbraceleft");x(M,w,Cn,"}","\\}");x(_t,w,F,"}","\\}");x(_t,w,F,"}","\\textbraceright");x(M,w,hl,"{","\\lbrace");x(M,w,Cn,"}","\\rbrace");x(M,w,hl,"[","\\lbrack",!0);x(_t,w,F,"[","\\lbrack",!0);x(M,w,Cn,"]","\\rbrack",!0);x(_t,w,F,"]","\\rbrack",!0);x(M,w,hl,"(","\\lparen",!0);x(M,w,Cn,")","\\rparen",!0);x(_t,w,F,"<","\\textless",!0);x(_t,w,F,">","\\textgreater",!0);x(M,w,hl,"⌊","\\lfloor",!0);x(M,w,Cn,"⌋","\\rfloor",!0);x(M,w,hl,"⌈","\\lceil",!0);x(M,w,Cn,"⌉","\\rceil",!0);x(M,w,F,"\\","\\backslash");x(M,w,F,"∣","|");x(M,w,F,"∣","\\vert");x(_t,w,F,"|","\\textbar",!0);x(M,w,F,"∥","\\|");x(M,w,F,"∥","\\Vert");x(_t,w,F,"∥","\\textbardbl");x(_t,w,F,"~","\\textasciitilde");x(_t,w,F,"\\","\\textbackslash");x(_t,w,F,"^","\\textasciicircum");x(M,w,Y,"↑","\\uparrow",!0);x(M,w,Y,"⇑","\\Uparrow",!0);x(M,w,Y,"↓","\\downarrow",!0);x(M,w,Y,"⇓","\\Downarrow",!0);x(M,w,Y,"↕","\\updownarrow",!0);x(M,w,Y,"⇕","\\Updownarrow",!0);x(M,w,C0,"∐","\\coprod");x(M,w,C0,"⋁","\\bigvee");x(M,w,C0,"⋀","\\bigwedge");x(M,w,C0,"⨄","\\biguplus");x(M,w,C0,"⋂","\\bigcap");x(M,w,C0,"⋃","\\bigcup");x(M,w,C0,"∫","\\int");x(M,w,C0,"∫","\\intop");x(M,w,C0,"∬","\\iint");x(M,w,C0,"∭","\\iiint");x(M,w,C0,"∏","\\prod");x(M,w,C0,"∑","\\sum");x(M,w,C0,"⨂","\\bigotimes");x(M,w,C0,"⨁","\\bigoplus");x(M,w,C0,"⨀","\\bigodot");x(M,w,C0,"∮","\\oint");x(M,w,C0,"∯","\\oiint");x(M,w,C0,"∰","\\oiiint");x(M,w,C0,"⨆","\\bigsqcup");x(M,w,C0,"∫","\\smallint");x(_t,w,wc,"…","\\textellipsis");x(M,w,wc,"…","\\mathellipsis");x(_t,w,wc,"…","\\ldots",!0);x(M,w,wc,"…","\\ldots",!0);x(M,w,wc,"⋯","\\@cdots",!0);x(M,w,wc,"⋱","\\ddots",!0);x(M,w,F,"⋮","\\varvdots");x(_t,w,F,"⋮","\\varvdots");x(M,w,Qa,"ˊ","\\acute");x(M,w,Qa,"ˋ","\\grave");x(M,w,Qa,"¨","\\ddot");x(M,w,Qa,"~","\\tilde");x(M,w,Qa,"ˉ","\\bar");x(M,w,Qa,"˘","\\breve");x(M,w,Qa,"ˇ","\\check");x(M,w,Qa,"^","\\hat");x(M,w,Qa,"⃗","\\vec");x(M,w,Qa,"˙","\\dot");x(M,w,Qa,"˚","\\mathring");x(M,w,ue,"","\\@imath");x(M,w,ue,"","\\@jmath");x(M,w,F,"ı","ı");x(M,w,F,"ȷ","ȷ");x(_t,w,F,"ı","\\i",!0);x(_t,w,F,"ȷ","\\j",!0);x(_t,w,F,"ß","\\ss",!0);x(_t,w,F,"æ","\\ae",!0);x(_t,w,F,"œ","\\oe",!0);x(_t,w,F,"ø","\\o",!0);x(_t,w,F,"Æ","\\AE",!0);x(_t,w,F,"Œ","\\OE",!0);x(_t,w,F,"Ø","\\O",!0);x(_t,w,Qa,"ˊ","\\'");x(_t,w,Qa,"ˋ","\\`");x(_t,w,Qa,"ˆ","\\^");x(_t,w,Qa,"˜","\\~");x(_t,w,Qa,"ˉ","\\=");x(_t,w,Qa,"˘","\\u");x(_t,w,Qa,"˙","\\.");x(_t,w,Qa,"¸","\\c");x(_t,w,Qa,"˚","\\r");x(_t,w,Qa,"ˇ","\\v");x(_t,w,Qa,"¨",'\\"');x(_t,w,Qa,"˝","\\H");x(_t,w,Qa,"◯","\\textcircled");var ym={"--":!0,"---":!0,"``":!0,"''":!0};x(_t,w,F,"–","--",!0);x(_t,w,F,"–","\\textendash");x(_t,w,F,"—","---",!0);x(_t,w,F,"—","\\textemdash");x(_t,w,F,"‘","`",!0);x(_t,w,F,"‘","\\textquoteleft");x(_t,w,F,"’","'",!0);x(_t,w,F,"’","\\textquoteright");x(_t,w,F,"“","``",!0);x(_t,w,F,"“","\\textquotedblleft");x(_t,w,F,"”","''",!0);x(_t,w,F,"”","\\textquotedblright");x(M,w,F,"°","\\degree",!0);x(_t,w,F,"°","\\degree");x(_t,w,F,"°","\\textdegree",!0);x(M,w,F,"£","\\pounds");x(M,w,F,"£","\\mathsterling",!0);x(_t,w,F,"£","\\pounds");x(_t,w,F,"£","\\textsterling",!0);x(M,q,F,"✠","\\maltese");x(_t,q,F,"✠","\\maltese");var I3='0123456789/@."';for(var ud=0;ud<I3.length;ud++){var P3=I3.charAt(ud);x(M,w,F,P3,P3)}var $3='0123456789!@*()-=+";:?/.,';for(var od=0;od<$3.length;od++){var t6=$3.charAt(od);x(_t,w,F,t6,t6)}var Q2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var cd=0;cd<Q2.length;cd++){var w2=Q2.charAt(cd);x(M,w,ue,w2,w2),x(_t,w,F,w2,w2)}x(M,q,F,"C","ℂ");x(_t,q,F,"C","ℂ");x(M,q,F,"H","ℍ");x(_t,q,F,"H","ℍ");x(M,q,F,"N","ℕ");x(_t,q,F,"N","ℕ");x(M,q,F,"P","ℙ");x(_t,q,F,"P","ℙ");x(M,q,F,"Q","ℚ");x(_t,q,F,"Q","ℚ");x(M,q,F,"R","ℝ");x(_t,q,F,"R","ℝ");x(M,q,F,"Z","ℤ");x(_t,q,F,"Z","ℤ");x(M,w,ue,"h","ℎ");x(_t,w,ue,"h","ℎ");var de="";for(var An=0;An<Q2.length;An++){var s0=Q2.charAt(An);de=String.fromCharCode(55349,56320+An),x(M,w,ue,s0,de),x(_t,w,F,s0,de),de=String.fromCharCode(55349,56372+An),x(M,w,ue,s0,de),x(_t,w,F,s0,de),de=String.fromCharCode(55349,56424+An),x(M,w,ue,s0,de),x(_t,w,F,s0,de),de=String.fromCharCode(55349,56580+An),x(M,w,ue,s0,de),x(_t,w,F,s0,de),de=String.fromCharCode(55349,56684+An),x(M,w,ue,s0,de),x(_t,w,F,s0,de),de=String.fromCharCode(55349,56736+An),x(M,w,ue,s0,de),x(_t,w,F,s0,de),de=String.fromCharCode(55349,56788+An),x(M,w,ue,s0,de),x(_t,w,F,s0,de),de=String.fromCharCode(55349,56840+An),x(M,w,ue,s0,de),x(_t,w,F,s0,de),de=String.fromCharCode(55349,56944+An),x(M,w,ue,s0,de),x(_t,w,F,s0,de),An<26&&(de=String.fromCharCode(55349,56632+An),x(M,w,ue,s0,de),x(_t,w,F,s0,de),de=String.fromCharCode(55349,56476+An),x(M,w,ue,s0,de),x(_t,w,F,s0,de))}de="𝕜";x(M,w,ue,"k",de);x(_t,w,F,"k",de);for(var Pu=0;Pu<10;Pu++){var Ps=Pu.toString();de=String.fromCharCode(55349,57294+Pu),x(M,w,ue,Ps,de),x(_t,w,F,Ps,de),de=String.fromCharCode(55349,57314+Pu),x(M,w,ue,Ps,de),x(_t,w,F,Ps,de),de=String.fromCharCode(55349,57324+Pu),x(M,w,ue,Ps,de),x(_t,w,F,Ps,de),de=String.fromCharCode(55349,57334+Pu),x(M,w,ue,Ps,de),x(_t,w,F,Ps,de)}var qd="ÐÞþ";for(var hd=0;hd<qd.length;hd++){var D2=qd.charAt(hd);x(M,w,ue,D2,D2),x(_t,w,F,D2,D2)}var N2=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],e6=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Zv=function(t,a){var i=t.charCodeAt(0),o=t.charCodeAt(1),h=(i-55296)*1024+(o-56320)+65536,d=a==="math"?0:1;if(119808<=h&&h<120484){var g=Math.floor((h-119808)/26);return[N2[g][2],N2[g][d]]}else if(120782<=h&&h<=120831){var p=Math.floor((h-120782)/10);return[e6[p][2],e6[p][d]]}else{if(h===120485||h===120486)return[N2[0][2],N2[0][d]];if(120486<h&&h<120782)return["",""];throw new Rt("Unsupported character: "+t)}},a4=function(t,a,i){return Ca[i][t]&&Ca[i][t].replace&&(t=Ca[i][t].replace),{value:t,metrics:a5(t,a,i)}},Si=function(t,a,i,o,h){var d=a4(t,a,i),g=d.metrics;t=d.value;var p;if(g){var b=g.italic;(i==="text"||o&&o.font==="mathit")&&(b=0),p=new Zl(t,g.height,g.depth,b,g.skew,g.width,h)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+a+"' and mode '"+i+"'")),p=new Zl(t,0,0,0,0,0,h);if(o){p.maxFontSize=o.sizeMultiplier,o.style.isTight()&&p.classes.push("mtight");var E=o.getColor();E&&(p.style.color=E)}return p},Jv=function(t,a,i,o){return o===void 0&&(o=[]),i.font==="boldsymbol"&&a4(t,"Main-Bold",a).metrics?Si(t,"Main-Bold",a,i,o.concat(["mathbf"])):t==="\\"||Ca[a][t].font==="main"?Si(t,"Main-Regular",a,i,o):Si(t,"AMS-Regular",a,i,o.concat(["amsrm"]))},Fv=function(t,a,i,o,h){return h!=="textord"&&a4(t,"Math-BoldItalic",a).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Wv=function(t,a,i){var o=t.mode,h=t.text,d=["mord"],g=o==="math"||o==="text"&&a.font,p=g?a.font:a.fontFamily,b="",E="";if(h.charCodeAt(0)===55349&&([b,E]=Zv(h,o)),b.length>0)return Si(h,b,o,a,d.concat(E));if(p){var _,z;if(p==="boldsymbol"){var D=Fv(h,o,a,d,i);_=D.fontName,z=[D.fontClass]}else g?(_=xm[p].fontName,z=[p]):(_=R2(p,a.fontWeight,a.fontShape),z=[p,a.fontWeight,a.fontShape]);if(a4(h,_,o).metrics)return Si(h,_,o,a,d.concat(z));if(ym.hasOwnProperty(h)&&_.slice(0,10)==="Typewriter"){for(var C=[],H=0;H<h.length;H++)C.push(Si(h[H],_,o,a,d.concat(z)));return Sm(C)}}if(i==="mathord")return Si(h,"Math-Italic",o,a,d.concat(["mathnormal"]));if(i==="textord"){var U=Ca[o][h]&&Ca[o][h].font;if(U==="ams"){var B=R2("amsrm",a.fontWeight,a.fontShape);return Si(h,B,o,a,d.concat("amsrm",a.fontWeight,a.fontShape))}else if(U==="main"||!U){var X=R2("textrm",a.fontWeight,a.fontShape);return Si(h,X,o,a,d.concat(a.fontWeight,a.fontShape))}else{var k=R2(U,a.fontWeight,a.fontShape);return Si(h,k,o,a,d.concat(k,a.fontWeight,a.fontShape))}}else throw new Error("unexpected type: "+i+" in makeOrd")},Iv=(s,t)=>{if(nu(s.classes)!==nu(t.classes)||s.skew!==t.skew||s.maxFontSize!==t.maxFontSize)return!1;if(s.classes.length===1){var a=s.classes[0];if(a==="mbin"||a==="mord")return!1}for(var i in s.style)if(s.style.hasOwnProperty(i)&&s.style[i]!==t.style[i])return!1;for(var o in t.style)if(t.style.hasOwnProperty(o)&&s.style[o]!==t.style[o])return!1;return!0},Pv=s=>{for(var t=0;t<s.length-1;t++){var a=s[t],i=s[t+1];a instanceof Zl&&i instanceof Zl&&Iv(a,i)&&(a.text+=i.text,a.height=Math.max(a.height,i.height),a.depth=Math.max(a.depth,i.depth),a.italic=i.italic,s.splice(t+1,1),t--)}return s},l5=function(t){for(var a=0,i=0,o=0,h=0;h<t.children.length;h++){var d=t.children[h];d.height>a&&(a=d.height),d.depth>i&&(i=d.depth),d.maxFontSize>o&&(o=d.maxFontSize)}t.height=a,t.depth=i,t.maxFontSize=o},Wn=function(t,a,i,o){var h=new Ch(t,a,i,o);return l5(h),h},bm=(s,t,a,i)=>new Ch(s,t,a,i),$v=function(t,a,i){var o=Wn([t],[],a);return o.height=Math.max(i||a.fontMetrics().defaultRuleThickness,a.minRuleThickness),o.style.borderBottomWidth=Yt(o.height),o.maxFontSize=1,o},ty=function(t,a,i,o){var h=new n5(t,a,i,o);return l5(h),h},Sm=function(t){var a=new zh(t);return l5(a),a},ey=function(t,a){return t instanceof zh?Wn([],[t],a):t},ay=function(t){if(t.positionType==="individualShift"){for(var a=t.children,i=[a[0]],o=-a[0].shift-a[0].elem.depth,h=o,d=1;d<a.length;d++){var g=-a[d].shift-h-a[d].elem.depth,p=g-(a[d-1].elem.height+a[d-1].elem.depth);h=h+g,i.push({type:"kern",size:p}),i.push(a[d])}return{children:i,depth:o}}var b;if(t.positionType==="top"){for(var E=t.positionData,_=0;_<t.children.length;_++){var z=t.children[_];E-=z.type==="kern"?z.size:z.elem.height+z.elem.depth}b=E}else if(t.positionType==="bottom")b=-t.positionData;else{var D=t.children[0];if(D.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")b=-D.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")b=-D.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:b}},ny=function(t,a){for(var{children:i,depth:o}=ay(t),h=0,d=0;d<i.length;d++){var g=i[d];if(g.type==="elem"){var p=g.elem;h=Math.max(h,p.maxFontSize,p.height)}}h+=2;var b=Wn(["pstrut"],[]);b.style.height=Yt(h);for(var E=[],_=o,z=o,D=o,C=0;C<i.length;C++){var H=i[C];if(H.type==="kern")D+=H.size;else{var U=H.elem,B=H.wrapperClasses||[],X=H.wrapperStyle||{},k=Wn(B,[b,U],void 0,X);k.style.top=Yt(-h-D-U.depth),H.marginLeft&&(k.style.marginLeft=H.marginLeft),H.marginRight&&(k.style.marginRight=H.marginRight),E.push(k),D+=U.height+U.depth}_=Math.min(_,D),z=Math.max(z,D)}var j=Wn(["vlist"],E);j.style.height=Yt(z);var nt;if(_<0){var ut=Wn([],[]),st=Wn(["vlist"],[ut]);st.style.height=Yt(-_);var ot=Wn(["vlist-s"],[new Zl("")]);nt=[Wn(["vlist-r"],[j,ot]),Wn(["vlist-r"],[st])]}else nt=[Wn(["vlist-r"],[j])];var St=Wn(["vlist-t"],nt);return nt.length===2&&St.classes.push("vlist-t2"),St.height=z,St.depth=-_,St},ly=(s,t)=>{var a=Wn(["mspace"],[],t),i=Pa(s,t);return a.style.marginRight=Yt(i),a},R2=function(t,a,i){var o="";switch(t){case"amsrm":o="AMS";break;case"textrm":o="Main";break;case"textsf":o="SansSerif";break;case"texttt":o="Typewriter";break;default:o=t}var h;return a==="textbf"&&i==="textit"?h="BoldItalic":a==="textbf"?h="Bold":a==="textit"?h="Italic":h="Regular",o+"-"+h},xm={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Tm={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},iy=function(t,a){var[i,o,h]=Tm[t],d=new lu(i),g=new Jr([d],{width:Yt(o),height:Yt(h),style:"width:"+Yt(o),viewBox:"0 0 "+1e3*o+" "+1e3*h,preserveAspectRatio:"xMinYMin"}),p=bm(["overlay"],[g],a);return p.height=h,p.style.height=Yt(h),p.style.width=Yt(o),p},at={fontMap:xm,makeSymbol:Si,mathsym:Jv,makeSpan:Wn,makeSvgSpan:bm,makeLineSpan:$v,makeAnchor:ty,makeFragment:Sm,wrapFragment:ey,makeVList:ny,makeOrd:Wv,makeGlue:ly,staticSvg:iy,svgData:Tm,tryCombineChars:Pv},Ia={number:3,unit:"mu"},$u={number:4,unit:"mu"},jr={number:5,unit:"mu"},ry={mord:{mop:Ia,mbin:$u,mrel:jr,minner:Ia},mop:{mord:Ia,mop:Ia,mrel:jr,minner:Ia},mbin:{mord:$u,mop:$u,mopen:$u,minner:$u},mrel:{mord:jr,mop:jr,mopen:jr,minner:jr},mopen:{},mclose:{mop:Ia,mbin:$u,mrel:jr,minner:Ia},mpunct:{mord:Ia,mop:Ia,mrel:jr,mopen:Ia,mclose:Ia,mpunct:Ia,minner:Ia},minner:{mord:Ia,mop:Ia,mbin:$u,mrel:jr,mopen:Ia,mpunct:Ia,minner:Ia}},sy={mord:{mop:Ia},mop:{mord:Ia,mop:Ia},mbin:{},mrel:{},mopen:{},mclose:{mop:Ia},mpunct:{},minner:{mop:Ia}},Em={},K2={},Z2={};function Jt(s){for(var{type:t,names:a,props:i,handler:o,htmlBuilder:h,mathmlBuilder:d}=s,g={type:t,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:i.allowedInMath===void 0?!0:i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:o},p=0;p<a.length;++p)Em[a[p]]=g;t&&(h&&(K2[t]=h),d&&(Z2[t]=d))}function ro(s){var{type:t,htmlBuilder:a,mathmlBuilder:i}=s;Jt({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:a,mathmlBuilder:i})}var J2=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},g0=function(t){return t.type==="ordgroup"?t.body:[t]},Fr=at.makeSpan,uy=["leftmost","mbin","mopen","mrel","mop","mpunct"],oy=["rightmost","mrel","mclose","mpunct"],cy={display:oe.DISPLAY,text:oe.TEXT,script:oe.SCRIPT,scriptscript:oe.SCRIPTSCRIPT},hy={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},H0=function(t,a,i,o){o===void 0&&(o=[null,null]);for(var h=[],d=0;d<t.length;d++){var g=We(t[d],a);if(g instanceof zh){var p=g.children;h.push(...p)}else h.push(g)}if(at.tryCombineChars(h),!i)return h;var b=a;if(t.length===1){var E=t[0];E.type==="sizing"?b=a.havingSize(E.size):E.type==="styling"&&(b=a.havingStyle(cy[E.style]))}var _=Fr([o[0]||"leftmost"],[],a),z=Fr([o[1]||"rightmost"],[],a),D=i==="root";return a6(h,(C,H)=>{var U=H.classes[0],B=C.classes[0];U==="mbin"&&oy.includes(B)?H.classes[0]="mord":B==="mbin"&&uy.includes(U)&&(C.classes[0]="mord")},{node:_},z,D),a6(h,(C,H)=>{var U=Ld(H),B=Ld(C),X=U&&B?C.hasClass("mtight")?sy[U][B]:ry[U][B]:null;if(X)return at.makeGlue(X,b)},{node:_},z,D),h},a6=function s(t,a,i,o,h){o&&t.push(o);for(var d=0;d<t.length;d++){var g=t[d],p=_m(g);if(p){s(p.children,a,i,null,h);continue}var b=!g.hasClass("mspace");if(b){var E=a(g,i.node);E&&(i.insertAfter?i.insertAfter(E):(t.unshift(E),d++))}b?i.node=g:h&&g.hasClass("newline")&&(i.node=Fr(["leftmost"])),i.insertAfter=(_=>z=>{t.splice(_+1,0,z),d++})(d)}o&&t.pop()},_m=function(t){return t instanceof zh||t instanceof n5||t instanceof Ch&&t.hasClass("enclosing")?t:null},fy=function s(t,a){var i=_m(t);if(i){var o=i.children;if(o.length){if(a==="right")return s(o[o.length-1],"right");if(a==="left")return s(o[0],"left")}}return t},Ld=function(t,a){return t?(a&&(t=fy(t,a)),hy[t.classes[0]]||null):null},Mh=function(t,a){var i=["nulldelimiter"].concat(t.baseSizingClasses());return Fr(a.concat(i))},We=function(t,a,i){if(!t)return Fr();if(K2[t.type]){var o=K2[t.type](t,a);if(i&&a.size!==i.size){o=Fr(a.sizingClasses(i),[o],a);var h=a.sizeMultiplier/i.sizeMultiplier;o.height*=h,o.depth*=h}return o}else throw new Rt("Got group of unknown type: '"+t.type+"'")};function O2(s,t){var a=Fr(["base"],s,t),i=Fr(["strut"]);return i.style.height=Yt(a.height+a.depth),a.depth&&(i.style.verticalAlign=Yt(-a.depth)),a.children.unshift(i),a}function kd(s,t){var a=null;s.length===1&&s[0].type==="tag"&&(a=s[0].tag,s=s[0].body);var i=H0(s,t,"root"),o;i.length===2&&i[1].hasClass("tag")&&(o=i.pop());for(var h=[],d=[],g=0;g<i.length;g++)if(d.push(i[g]),i[g].hasClass("mbin")||i[g].hasClass("mrel")||i[g].hasClass("allowbreak")){for(var p=!1;g<i.length-1&&i[g+1].hasClass("mspace")&&!i[g+1].hasClass("newline");)g++,d.push(i[g]),i[g].hasClass("nobreak")&&(p=!0);p||(h.push(O2(d,t)),d=[])}else i[g].hasClass("newline")&&(d.pop(),d.length>0&&(h.push(O2(d,t)),d=[]),h.push(i[g]));d.length>0&&h.push(O2(d,t));var b;a?(b=O2(H0(a,t,!0)),b.classes=["tag"],h.push(b)):o&&h.push(o);var E=Fr(["katex-html"],h);if(E.setAttribute("aria-hidden","true"),b){var _=b.children[0];_.style.height=Yt(E.height+E.depth),E.depth&&(_.style.verticalAlign=Yt(-E.depth))}return E}function Mm(s){return new zh(s)}class ul{constructor(t,a,i){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=a||[],this.classes=i||[]}setAttribute(t,a){this.attributes[t]=a}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);this.classes.length>0&&(t.className=nu(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof rr&&this.children[i+1]instanceof rr){for(var o=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof rr;)o+=this.children[++i].toText();t.appendChild(new rr(o).toNode())}else t.appendChild(this.children[i].toNode());return t}toMarkup(){var t="<"+this.type;for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&(t+=" "+a+'="',t+=ta.escape(this.attributes[a]),t+='"');this.classes.length>0&&(t+=' class ="'+ta.escape(nu(this.classes))+'"'),t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class rr{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return ta.escape(this.toText())}toText(){return this.text}}class dy{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Yt(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Yt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Dt={MathNode:ul,TextNode:rr,SpaceNode:dy,newDocumentFragment:Mm},Jl=function(t,a,i){return Ca[a][t]&&Ca[a][t].replace&&t.charCodeAt(0)!==55349&&!(ym.hasOwnProperty(t)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(t=Ca[a][t].replace),new Dt.TextNode(t)},i5=function(t){return t.length===1?t[0]:new Dt.MathNode("mrow",t)},r5=function(t,a){if(a.fontFamily==="texttt")return"monospace";if(a.fontFamily==="textsf")return a.fontShape==="textit"&&a.fontWeight==="textbf"?"sans-serif-bold-italic":a.fontShape==="textit"?"sans-serif-italic":a.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(a.fontShape==="textit"&&a.fontWeight==="textbf")return"bold-italic";if(a.fontShape==="textit")return"italic";if(a.fontWeight==="textbf")return"bold";var i=a.font;if(!i||i==="mathnormal")return null;var o=t.mode;if(i==="mathit")return"italic";if(i==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(i==="mathbf")return"bold";if(i==="mathbb")return"double-struck";if(i==="mathsfit")return"sans-serif-italic";if(i==="mathfrak")return"fraktur";if(i==="mathscr"||i==="mathcal")return"script";if(i==="mathsf")return"sans-serif";if(i==="mathtt")return"monospace";var h=t.text;if(["\\imath","\\jmath"].includes(h))return null;Ca[o][h]&&Ca[o][h].replace&&(h=Ca[o][h].replace);var d=at.fontMap[i].fontName;return a5(h,d,o)?at.fontMap[i].variant:null};function fd(s){if(!s)return!1;if(s.type==="mi"&&s.children.length===1){var t=s.children[0];return t instanceof rr&&t.text==="."}else if(s.type==="mo"&&s.children.length===1&&s.getAttribute("separator")==="true"&&s.getAttribute("lspace")==="0em"&&s.getAttribute("rspace")==="0em"){var a=s.children[0];return a instanceof rr&&a.text===","}else return!1}var Pn=function(t,a,i){if(t.length===1){var o=ba(t[0],a);return i&&o instanceof ul&&o.type==="mo"&&(o.setAttribute("lspace","0em"),o.setAttribute("rspace","0em")),[o]}for(var h=[],d,g=0;g<t.length;g++){var p=ba(t[g],a);if(p instanceof ul&&d instanceof ul){if(p.type==="mtext"&&d.type==="mtext"&&p.getAttribute("mathvariant")===d.getAttribute("mathvariant")){d.children.push(...p.children);continue}else if(p.type==="mn"&&d.type==="mn"){d.children.push(...p.children);continue}else if(fd(p)&&d.type==="mn"){d.children.push(...p.children);continue}else if(p.type==="mn"&&fd(d))p.children=[...d.children,...p.children],h.pop();else if((p.type==="msup"||p.type==="msub")&&p.children.length>=1&&(d.type==="mn"||fd(d))){var b=p.children[0];b instanceof ul&&b.type==="mn"&&(b.children=[...d.children,...b.children],h.pop())}else if(d.type==="mi"&&d.children.length===1){var E=d.children[0];if(E instanceof rr&&E.text==="̸"&&(p.type==="mo"||p.type==="mi"||p.type==="mn")){var _=p.children[0];_ instanceof rr&&_.text.length>0&&(_.text=_.text.slice(0,1)+"̸"+_.text.slice(1),h.pop())}}}h.push(p),d=p}return h},iu=function(t,a,i){return i5(Pn(t,a,i))},ba=function(t,a){if(!t)return new Dt.MathNode("mrow");if(Z2[t.type]){var i=Z2[t.type](t,a);return i}else throw new Rt("Got group of unknown type: '"+t.type+"'")};function n6(s,t,a,i,o){var h=Pn(s,a),d;h.length===1&&h[0]instanceof ul&&["mrow","mtable"].includes(h[0].type)?d=h[0]:d=new Dt.MathNode("mrow",h);var g=new Dt.MathNode("annotation",[new Dt.TextNode(t)]);g.setAttribute("encoding","application/x-tex");var p=new Dt.MathNode("semantics",[d,g]),b=new Dt.MathNode("math",[p]);b.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&b.setAttribute("display","block");var E=o?"katex":"katex-mathml";return at.makeSpan([E],[b])}var Am=function(t){return new Qr({style:t.displayMode?oe.DISPLAY:oe.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},zm=function(t,a){if(a.displayMode){var i=["katex-display"];a.leqno&&i.push("leqno"),a.fleqn&&i.push("fleqn"),t=at.makeSpan(i,[t])}return t},my=function(t,a,i){var o=Am(i),h;if(i.output==="mathml")return n6(t,a,o,i.displayMode,!0);if(i.output==="html"){var d=kd(t,o);h=at.makeSpan(["katex"],[d])}else{var g=n6(t,a,o,i.displayMode,!1),p=kd(t,o);h=at.makeSpan(["katex"],[g,p])}return zm(h,i)},gy=function(t,a,i){var o=Am(i),h=kd(t,o),d=at.makeSpan(["katex"],[h]);return zm(d,i)},py={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},vy=function(t){var a=new Dt.MathNode("mo",[new Dt.TextNode(py[t.replace(/^\\/,"")])]);return a.setAttribute("stretchy","true"),a},yy={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},by=function(t){return t.type==="ordgroup"?t.body.length:1},Sy=function(t,a){function i(){var g=4e5,p=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(p)){var b=t,E=by(b.base),_,z,D;if(E>5)p==="widehat"||p==="widecheck"?(_=420,g=2364,D=.42,z=p+"4"):(_=312,g=2340,D=.34,z="tilde4");else{var C=[1,1,2,2,3,3][E];p==="widehat"||p==="widecheck"?(g=[0,1062,2364,2364,2364][C],_=[0,239,300,360,420][C],D=[0,.24,.3,.3,.36,.42][C],z=p+C):(g=[0,600,1033,2339,2340][C],_=[0,260,286,306,312][C],D=[0,.26,.286,.3,.306,.34][C],z="tilde"+C)}var H=new lu(z),U=new Jr([H],{width:"100%",height:Yt(D),viewBox:"0 0 "+g+" "+_,preserveAspectRatio:"none"});return{span:at.makeSvgSpan([],[U],a),minWidth:0,height:D}}else{var B=[],X=yy[p],[k,j,nt]=X,ut=nt/1e3,st=k.length,ot,St;if(st===1){var Zt=X[3];ot=["hide-tail"],St=[Zt]}else if(st===2)ot=["halfarrow-left","halfarrow-right"],St=["xMinYMin","xMaxYMin"];else if(st===3)ot=["brace-left","brace-center","brace-right"],St=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
296
|
-
`+st+" children.");for(var qt=0;qt<st;qt++){var Nt=new lu(k[qt]),$t=new Jr([Nt],{width:"400em",height:Yt(ut),viewBox:"0 0 "+g+" "+nt,preserveAspectRatio:St[qt]+" slice"}),Vt=at.makeSvgSpan([ot[qt]],[$t],a);if(st===1)return{span:Vt,minWidth:j,height:ut};Vt.style.height=Yt(ut),B.push(Vt)}return{span:at.makeSpan(["stretchy"],B,a),minWidth:j,height:ut}}}var{span:o,minWidth:h,height:d}=i();return o.height=d,o.style.height=Yt(d),h>0&&(o.style.minWidth=Yt(h)),o},xy=function(t,a,i,o,h){var d,g=t.height+t.depth+i+o;if(/fbox|color|angl/.test(a)){if(d=at.makeSpan(["stretchy",a],[],h),a==="fbox"){var p=h.color&&h.getColor();p&&(d.style.borderColor=p)}}else{var b=[];/^[bx]cancel$/.test(a)&&b.push(new Ud({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(a)&&b.push(new Ud({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var E=new Jr(b,{width:"100%",height:Yt(g)});d=at.makeSvgSpan([],[E],h)}return d.height=g,d.style.height=Yt(g),d},Wr={encloseSpan:xy,mathMLnode:vy,svgSpan:Sy};function we(s,t){if(!s||s.type!==t)throw new Error("Expected node of type "+t+", but got "+(s?"node of type "+s.type:String(s)));return s}function s5(s){var t=n4(s);if(!t)throw new Error("Expected node of symbol group type, but got "+(s?"node of type "+s.type:String(s)));return t}function n4(s){return s&&(s.type==="atom"||Kv.hasOwnProperty(s.type))?s:null}var u5=(s,t)=>{var a,i,o;s&&s.type==="supsub"?(i=we(s.base,"accent"),a=i.base,s.base=a,o=Vv(We(s,t)),s.base=i):(i=we(s,"accent"),a=i.base);var h=We(a,t.havingCrampedStyle()),d=i.isShifty&&ta.isCharacterBox(a),g=0;if(d){var p=ta.getBaseElem(a),b=We(p,t.havingCrampedStyle());g=W3(b).skew}var E=i.label==="\\c",_=E?h.height+h.depth:Math.min(h.height,t.fontMetrics().xHeight),z;if(i.isStretchy)z=Wr.svgSpan(i,t),z=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"elem",elem:z,wrapperClasses:["svg-align"],wrapperStyle:g>0?{width:"calc(100% - "+Yt(2*g)+")",marginLeft:Yt(2*g)}:void 0}]},t);else{var D,C;i.label==="\\vec"?(D=at.staticSvg("vec",t),C=at.svgData.vec[1]):(D=at.makeOrd({mode:i.mode,text:i.label},t,"textord"),D=W3(D),D.italic=0,C=D.width,E&&(_+=D.depth)),z=at.makeSpan(["accent-body"],[D]);var H=i.label==="\\textcircled";H&&(z.classes.push("accent-full"),_=h.height);var U=g;H||(U-=C/2),z.style.left=Yt(U),i.label==="\\textcircled"&&(z.style.top=".2em"),z=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:-_},{type:"elem",elem:z}]},t)}var B=at.makeSpan(["mord","accent"],[z],t);return o?(o.children[0]=B,o.height=Math.max(B.height,o.height),o.classes[0]="mord",o):B},Cm=(s,t)=>{var a=s.isStretchy?Wr.mathMLnode(s.label):new Dt.MathNode("mo",[Jl(s.label,s.mode)]),i=new Dt.MathNode("mover",[ba(s.base,t),a]);return i.setAttribute("accent","true"),i},Ty=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(s=>"\\"+s).join("|"));Jt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(s,t)=>{var a=J2(t[0]),i=!Ty.test(s.funcName),o=!i||s.funcName==="\\widehat"||s.funcName==="\\widetilde"||s.funcName==="\\widecheck";return{type:"accent",mode:s.parser.mode,label:s.funcName,isStretchy:i,isShifty:o,base:a}},htmlBuilder:u5,mathmlBuilder:Cm});Jt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(s,t)=>{var a=t[0],i=s.parser.mode;return i==="math"&&(s.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+s.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:s.funcName,isStretchy:!1,isShifty:!0,base:a}},htmlBuilder:u5,mathmlBuilder:Cm});Jt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(s,t)=>{var{parser:a,funcName:i}=s,o=t[0];return{type:"accentUnder",mode:a.mode,label:i,base:o}},htmlBuilder:(s,t)=>{var a=We(s.base,t),i=Wr.svgSpan(s,t),o=s.label==="\\utilde"?.12:0,h=at.makeVList({positionType:"top",positionData:a.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:a}]},t);return at.makeSpan(["mord","accentunder"],[h],t)},mathmlBuilder:(s,t)=>{var a=Wr.mathMLnode(s.label),i=new Dt.MathNode("munder",[ba(s.base,t),a]);return i.setAttribute("accentunder","true"),i}});var B2=s=>{var t=new Dt.MathNode("mpadded",s?[s]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Jt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(s,t,a){var{parser:i,funcName:o}=s;return{type:"xArrow",mode:i.mode,label:o,body:t[0],below:a[0]}},htmlBuilder(s,t){var a=t.style,i=t.havingStyle(a.sup()),o=at.wrapFragment(We(s.body,i,t),t),h=s.label.slice(0,2)==="\\x"?"x":"cd";o.classes.push(h+"-arrow-pad");var d;s.below&&(i=t.havingStyle(a.sub()),d=at.wrapFragment(We(s.below,i,t),t),d.classes.push(h+"-arrow-pad"));var g=Wr.svgSpan(s,t),p=-t.fontMetrics().axisHeight+.5*g.height,b=-t.fontMetrics().axisHeight-.5*g.height-.111;(o.depth>.25||s.label==="\\xleftequilibrium")&&(b-=o.depth);var E;if(d){var _=-t.fontMetrics().axisHeight+d.height+.5*g.height+.111;E=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:b},{type:"elem",elem:g,shift:p},{type:"elem",elem:d,shift:_}]},t)}else E=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:b},{type:"elem",elem:g,shift:p}]},t);return E.children[0].children[0].children[1].classes.push("svg-align"),at.makeSpan(["mrel","x-arrow"],[E],t)},mathmlBuilder(s,t){var a=Wr.mathMLnode(s.label);a.setAttribute("minsize",s.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(s.body){var o=B2(ba(s.body,t));if(s.below){var h=B2(ba(s.below,t));i=new Dt.MathNode("munderover",[a,h,o])}else i=new Dt.MathNode("mover",[a,o])}else if(s.below){var d=B2(ba(s.below,t));i=new Dt.MathNode("munder",[a,d])}else i=B2(),i=new Dt.MathNode("mover",[a,i]);return i}});var Ey=at.makeSpan;function wm(s,t){var a=H0(s.body,t,!0);return Ey([s.mclass],a,t)}function Dm(s,t){var a,i=Pn(s.body,t);return s.mclass==="minner"?a=new Dt.MathNode("mpadded",i):s.mclass==="mord"?s.isCharacterBox?(a=i[0],a.type="mi"):a=new Dt.MathNode("mi",i):(s.isCharacterBox?(a=i[0],a.type="mo"):a=new Dt.MathNode("mo",i),s.mclass==="mbin"?(a.attributes.lspace="0.22em",a.attributes.rspace="0.22em"):s.mclass==="mpunct"?(a.attributes.lspace="0em",a.attributes.rspace="0.17em"):s.mclass==="mopen"||s.mclass==="mclose"?(a.attributes.lspace="0em",a.attributes.rspace="0em"):s.mclass==="minner"&&(a.attributes.lspace="0.0556em",a.attributes.width="+0.1111em")),a}Jt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(s,t){var{parser:a,funcName:i}=s,o=t[0];return{type:"mclass",mode:a.mode,mclass:"m"+i.slice(5),body:g0(o),isCharacterBox:ta.isCharacterBox(o)}},htmlBuilder:wm,mathmlBuilder:Dm});var l4=s=>{var t=s.type==="ordgroup"&&s.body.length?s.body[0]:s;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Jt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(s,t){var{parser:a}=s;return{type:"mclass",mode:a.mode,mclass:l4(t[0]),body:g0(t[1]),isCharacterBox:ta.isCharacterBox(t[1])}}});Jt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(s,t){var{parser:a,funcName:i}=s,o=t[1],h=t[0],d;i!=="\\stackrel"?d=l4(o):d="mrel";var g={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:g0(o)},p={type:"supsub",mode:h.mode,base:g,sup:i==="\\underset"?null:h,sub:i==="\\underset"?h:null};return{type:"mclass",mode:a.mode,mclass:d,body:[p],isCharacterBox:ta.isCharacterBox(p)}},htmlBuilder:wm,mathmlBuilder:Dm});Jt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(s,t){var{parser:a}=s;return{type:"pmb",mode:a.mode,mclass:l4(t[0]),body:g0(t[0])}},htmlBuilder(s,t){var a=H0(s.body,t,!0),i=at.makeSpan([s.mclass],a,t);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(s,t){var a=Pn(s.body,t),i=new Dt.MathNode("mstyle",a);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var _y={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},l6=()=>({type:"styling",body:[],mode:"math",style:"display"}),i6=s=>s.type==="textord"&&s.text==="@",My=(s,t)=>(s.type==="mathord"||s.type==="atom")&&s.text===t;function Ay(s,t,a){var i=_y[s];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return a.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var o=a.callFunction("\\\\cdleft",[t[0]],[]),h={type:"atom",text:i,mode:"math",family:"rel"},d=a.callFunction("\\Big",[h],[]),g=a.callFunction("\\\\cdright",[t[1]],[]),p={type:"ordgroup",mode:"math",body:[o,d,g]};return a.callFunction("\\\\cdparent",[p],[])}case"\\\\cdlongequal":return a.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var b={type:"textord",text:"\\Vert",mode:"math"};return a.callFunction("\\Big",[b],[])}default:return{type:"textord",text:" ",mode:"math"}}}function zy(s){var t=[];for(s.gullet.beginGroup(),s.gullet.macros.set("\\cr","\\\\\\relax"),s.gullet.beginGroup();;){t.push(s.parseExpression(!1,"\\\\")),s.gullet.endGroup(),s.gullet.beginGroup();var a=s.fetch().text;if(a==="&"||a==="\\\\")s.consume();else if(a==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Rt("Expected \\\\ or \\cr or \\end",s.nextToken)}for(var i=[],o=[i],h=0;h<t.length;h++){for(var d=t[h],g=l6(),p=0;p<d.length;p++)if(!i6(d[p]))g.body.push(d[p]);else{i.push(g),p+=1;var b=s5(d[p]).text,E=new Array(2);if(E[0]={type:"ordgroup",mode:"math",body:[]},E[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(b)>-1))if("<>AV".indexOf(b)>-1)for(var _=0;_<2;_++){for(var z=!0,D=p+1;D<d.length;D++){if(My(d[D],b)){z=!1,p=D;break}if(i6(d[D]))throw new Rt("Missing a "+b+" character to complete a CD arrow.",d[D]);E[_].body.push(d[D])}if(z)throw new Rt("Missing a "+b+" character to complete a CD arrow.",d[p])}else throw new Rt('Expected one of "<>AV=|." after @',d[p]);var C=Ay(b,E,s),H={type:"styling",body:[C],mode:"math",style:"display"};i.push(H),g=l6()}h%2===0?i.push(g):i.shift(),i=[],o.push(i)}s.gullet.endGroup(),s.gullet.endGroup();var U=new Array(o[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:U,colSeparationType:"CD",hLinesBeforeRow:new Array(o.length+1).fill([])}}Jt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(s,t){var{parser:a,funcName:i}=s;return{type:"cdlabel",mode:a.mode,side:i.slice(4),label:t[0]}},htmlBuilder(s,t){var a=t.havingStyle(t.style.sup()),i=at.wrapFragment(We(s.label,a,t),t);return i.classes.push("cd-label-"+s.side),i.style.bottom=Yt(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(s,t){var a=new Dt.MathNode("mrow",[ba(s.label,t)]);return a=new Dt.MathNode("mpadded",[a]),a.setAttribute("width","0"),s.side==="left"&&a.setAttribute("lspace","-1width"),a.setAttribute("voffset","0.7em"),a=new Dt.MathNode("mstyle",[a]),a.setAttribute("displaystyle","false"),a.setAttribute("scriptlevel","1"),a}});Jt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(s,t){var{parser:a}=s;return{type:"cdlabelparent",mode:a.mode,fragment:t[0]}},htmlBuilder(s,t){var a=at.wrapFragment(We(s.fragment,t),t);return a.classes.push("cd-vert-arrow"),a},mathmlBuilder(s,t){return new Dt.MathNode("mrow",[ba(s.fragment,t)])}});Jt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(s,t){for(var{parser:a}=s,i=we(t[0],"ordgroup"),o=i.body,h="",d=0;d<o.length;d++){var g=we(o[d],"textord");h+=g.text}var p=parseInt(h),b;if(isNaN(p))throw new Rt("\\@char has non-numeric argument "+h);if(p<0||p>=1114111)throw new Rt("\\@char with invalid code point "+h);return p<=65535?b=String.fromCharCode(p):(p-=65536,b=String.fromCharCode((p>>10)+55296,(p&1023)+56320)),{type:"textord",mode:a.mode,text:b}}});var Nm=(s,t)=>{var a=H0(s.body,t.withColor(s.color),!1);return at.makeFragment(a)},Rm=(s,t)=>{var a=Pn(s.body,t.withColor(s.color)),i=new Dt.MathNode("mstyle",a);return i.setAttribute("mathcolor",s.color),i};Jt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(s,t){var{parser:a}=s,i=we(t[0],"color-token").color,o=t[1];return{type:"color",mode:a.mode,color:i,body:g0(o)}},htmlBuilder:Nm,mathmlBuilder:Rm});Jt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(s,t){var{parser:a,breakOnTokenText:i}=s,o=we(t[0],"color-token").color;a.gullet.macros.set("\\current@color",o);var h=a.parseExpression(!0,i);return{type:"color",mode:a.mode,color:o,body:h}},htmlBuilder:Nm,mathmlBuilder:Rm});Jt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(s,t,a){var{parser:i}=s,o=i.gullet.future().text==="["?i.parseSizeGroup(!0):null,h=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:h,size:o&&we(o,"size").value}},htmlBuilder(s,t){var a=at.makeSpan(["mspace"],[],t);return s.newLine&&(a.classes.push("newline"),s.size&&(a.style.marginTop=Yt(Pa(s.size,t)))),a},mathmlBuilder(s,t){var a=new Dt.MathNode("mspace");return s.newLine&&(a.setAttribute("linebreak","newline"),s.size&&a.setAttribute("height",Yt(Pa(s.size,t)))),a}});var Yd={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Om=s=>{var t=s.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Rt("Expected a control sequence",s);return t},Cy=s=>{var t=s.gullet.popToken();return t.text==="="&&(t=s.gullet.popToken(),t.text===" "&&(t=s.gullet.popToken())),t},Bm=(s,t,a,i)=>{var o=s.gullet.macros.get(a.text);o==null&&(a.noexpand=!0,o={tokens:[a],numArgs:0,unexpandable:!s.gullet.isExpandable(a.text)}),s.gullet.macros.set(t,o,i)};Jt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(s){var{parser:t,funcName:a}=s;t.consumeSpaces();var i=t.fetch();if(Yd[i.text])return(a==="\\global"||a==="\\\\globallong")&&(i.text=Yd[i.text]),we(t.parseFunction(),"internal");throw new Rt("Invalid token after macro prefix",i)}});Jt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(s){var{parser:t,funcName:a}=s,i=t.gullet.popToken(),o=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new Rt("Expected a control sequence",i);for(var h=0,d,g=[[]];t.gullet.future().text!=="{";)if(i=t.gullet.popToken(),i.text==="#"){if(t.gullet.future().text==="{"){d=t.gullet.future(),g[h].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new Rt('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==h+1)throw new Rt('Argument number "'+i.text+'" out of order');h++,g.push([])}else{if(i.text==="EOF")throw new Rt("Expected a macro definition");g[h].push(i.text)}var{tokens:p}=t.gullet.consumeArg();return d&&p.unshift(d),(a==="\\edef"||a==="\\xdef")&&(p=t.gullet.expandTokens(p),p.reverse()),t.gullet.macros.set(o,{tokens:p,numArgs:h,delimiters:g},a===Yd[a]),{type:"internal",mode:t.mode}}});Jt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(s){var{parser:t,funcName:a}=s,i=Om(t.gullet.popToken());t.gullet.consumeSpaces();var o=Cy(t);return Bm(t,i,o,a==="\\\\globallet"),{type:"internal",mode:t.mode}}});Jt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(s){var{parser:t,funcName:a}=s,i=Om(t.gullet.popToken()),o=t.gullet.popToken(),h=t.gullet.popToken();return Bm(t,i,h,a==="\\\\globalfuture"),t.gullet.pushToken(h),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var vh=function(t,a,i){var o=Ca.math[t]&&Ca.math[t].replace,h=a5(o||t,a,i);if(!h)throw new Error("Unsupported symbol "+t+" and font size "+a+".");return h},o5=function(t,a,i,o){var h=i.havingBaseStyle(a),d=at.makeSpan(o.concat(h.sizingClasses(i)),[t],i),g=h.sizeMultiplier/i.sizeMultiplier;return d.height*=g,d.depth*=g,d.maxFontSize=h.sizeMultiplier,d},Hm=function(t,a,i){var o=a.havingBaseStyle(i),h=(1-a.sizeMultiplier/o.sizeMultiplier)*a.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Yt(h),t.height-=h,t.depth+=h},wy=function(t,a,i,o,h,d){var g=at.makeSymbol(t,"Main-Regular",h,o),p=o5(g,a,o,d);return i&&Hm(p,o,a),p},Dy=function(t,a,i,o){return at.makeSymbol(t,"Size"+a+"-Regular",i,o)},Gm=function(t,a,i,o,h,d){var g=Dy(t,a,h,o),p=o5(at.makeSpan(["delimsizing","size"+a],[g],o),oe.TEXT,o,d);return i&&Hm(p,o,oe.TEXT),p},dd=function(t,a,i){var o;a==="Size1-Regular"?o="delim-size1":o="delim-size4";var h=at.makeSpan(["delimsizinginner",o],[at.makeSpan([],[at.makeSymbol(t,a,i)])]);return{type:"elem",elem:h}},md=function(t,a,i){var o=ir["Size4-Regular"][t.charCodeAt(0)]?ir["Size4-Regular"][t.charCodeAt(0)][4]:ir["Size1-Regular"][t.charCodeAt(0)][4],h=new lu("inner",Hv(t,Math.round(1e3*a))),d=new Jr([h],{width:Yt(o),height:Yt(a),style:"width:"+Yt(o),viewBox:"0 0 "+1e3*o+" "+Math.round(1e3*a),preserveAspectRatio:"xMinYMin"}),g=at.makeSvgSpan([],[d],i);return g.height=a,g.style.height=Yt(a),g.style.width=Yt(o),{type:"elem",elem:g}},Xd=.008,H2={type:"kern",size:-1*Xd},Ny=["|","\\lvert","\\rvert","\\vert"],Ry=["\\|","\\lVert","\\rVert","\\Vert"],Um=function(t,a,i,o,h,d){var g,p,b,E,_="",z=0;g=b=E=t,p=null;var D="Size1-Regular";t==="\\uparrow"?b=E="⏐":t==="\\Uparrow"?b=E="‖":t==="\\downarrow"?g=b="⏐":t==="\\Downarrow"?g=b="‖":t==="\\updownarrow"?(g="\\uparrow",b="⏐",E="\\downarrow"):t==="\\Updownarrow"?(g="\\Uparrow",b="‖",E="\\Downarrow"):Ny.includes(t)?(b="∣",_="vert",z=333):Ry.includes(t)?(b="∥",_="doublevert",z=556):t==="["||t==="\\lbrack"?(g="⎡",b="⎢",E="⎣",D="Size4-Regular",_="lbrack",z=667):t==="]"||t==="\\rbrack"?(g="⎤",b="⎥",E="⎦",D="Size4-Regular",_="rbrack",z=667):t==="\\lfloor"||t==="⌊"?(b=g="⎢",E="⎣",D="Size4-Regular",_="lfloor",z=667):t==="\\lceil"||t==="⌈"?(g="⎡",b=E="⎢",D="Size4-Regular",_="lceil",z=667):t==="\\rfloor"||t==="⌋"?(b=g="⎥",E="⎦",D="Size4-Regular",_="rfloor",z=667):t==="\\rceil"||t==="⌉"?(g="⎤",b=E="⎥",D="Size4-Regular",_="rceil",z=667):t==="("||t==="\\lparen"?(g="⎛",b="⎜",E="⎝",D="Size4-Regular",_="lparen",z=875):t===")"||t==="\\rparen"?(g="⎞",b="⎟",E="⎠",D="Size4-Regular",_="rparen",z=875):t==="\\{"||t==="\\lbrace"?(g="⎧",p="⎨",E="⎩",b="⎪",D="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(g="⎫",p="⎬",E="⎭",b="⎪",D="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(g="⎧",E="⎩",b="⎪",D="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(g="⎫",E="⎭",b="⎪",D="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(g="⎧",E="⎭",b="⎪",D="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(g="⎫",E="⎩",b="⎪",D="Size4-Regular");var C=vh(g,D,h),H=C.height+C.depth,U=vh(b,D,h),B=U.height+U.depth,X=vh(E,D,h),k=X.height+X.depth,j=0,nt=1;if(p!==null){var ut=vh(p,D,h);j=ut.height+ut.depth,nt=2}var st=H+k+j,ot=Math.max(0,Math.ceil((a-st)/(nt*B))),St=st+ot*nt*B,Zt=o.fontMetrics().axisHeight;i&&(Zt*=o.sizeMultiplier);var qt=St/2-Zt,Nt=[];if(_.length>0){var $t=St-H-k,Vt=Math.round(St*1e3),Et=Gv(_,Math.round($t*1e3)),K=new lu(_,Et),vt=(z/1e3).toFixed(3)+"em",mt=(Vt/1e3).toFixed(3)+"em",Lt=new Jr([K],{width:vt,height:mt,viewBox:"0 0 "+z+" "+Vt}),xt=at.makeSvgSpan([],[Lt],o);xt.height=Vt/1e3,xt.style.width=vt,xt.style.height=mt,Nt.push({type:"elem",elem:xt})}else{if(Nt.push(dd(E,D,h)),Nt.push(H2),p===null){var G=St-H-k+2*Xd;Nt.push(md(b,G,o))}else{var I=(St-H-k-j)/2+2*Xd;Nt.push(md(b,I,o)),Nt.push(H2),Nt.push(dd(p,D,h)),Nt.push(H2),Nt.push(md(b,I,o))}Nt.push(H2),Nt.push(dd(g,D,h))}var gt=o.havingBaseStyle(oe.TEXT),Bt=at.makeVList({positionType:"bottom",positionData:qt,children:Nt},gt);return o5(at.makeSpan(["delimsizing","mult"],[Bt],gt),oe.TEXT,o,d)},gd=80,pd=.08,vd=function(t,a,i,o,h){var d=Bv(t,o,i),g=new lu(t,d),p=new Jr([g],{width:"400em",height:Yt(a),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return at.makeSvgSpan(["hide-tail"],[p],h)},Oy=function(t,a){var i=a.havingBaseSizing(),o=Ym("\\surd",t*i.sizeMultiplier,km,i),h=i.sizeMultiplier,d=Math.max(0,a.minRuleThickness-a.fontMetrics().sqrtRuleThickness),g,p=0,b=0,E=0,_;return o.type==="small"?(E=1e3+1e3*d+gd,t<1?h=1:t<1.4&&(h=.7),p=(1+d+pd)/h,b=(1+d)/h,g=vd("sqrtMain",p,E,d,a),g.style.minWidth="0.853em",_=.833/h):o.type==="large"?(E=(1e3+gd)*Th[o.size],b=(Th[o.size]+d)/h,p=(Th[o.size]+d+pd)/h,g=vd("sqrtSize"+o.size,p,E,d,a),g.style.minWidth="1.02em",_=1/h):(p=t+d+pd,b=t+d,E=Math.floor(1e3*t+d)+gd,g=vd("sqrtTall",p,E,d,a),g.style.minWidth="0.742em",_=1.056),g.height=b,g.style.height=Yt(p),{span:g,advanceWidth:_,ruleWidth:(a.fontMetrics().sqrtRuleThickness+d)*h}},qm=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],By=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Lm=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Th=[0,1.2,1.8,2.4,3],Hy=function(t,a,i,o,h){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),qm.includes(t)||Lm.includes(t))return Gm(t,a,!1,i,o,h);if(By.includes(t))return Um(t,Th[a],!1,i,o,h);throw new Rt("Illegal delimiter: '"+t+"'")},Gy=[{type:"small",style:oe.SCRIPTSCRIPT},{type:"small",style:oe.SCRIPT},{type:"small",style:oe.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Uy=[{type:"small",style:oe.SCRIPTSCRIPT},{type:"small",style:oe.SCRIPT},{type:"small",style:oe.TEXT},{type:"stack"}],km=[{type:"small",style:oe.SCRIPTSCRIPT},{type:"small",style:oe.SCRIPT},{type:"small",style:oe.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],qy=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},Ym=function(t,a,i,o){for(var h=Math.min(2,3-o.style.size),d=h;d<i.length&&i[d].type!=="stack";d++){var g=vh(t,qy(i[d]),"math"),p=g.height+g.depth;if(i[d].type==="small"){var b=o.havingBaseStyle(i[d].style);p*=b.sizeMultiplier}if(p>a)return i[d]}return i[i.length-1]},Xm=function(t,a,i,o,h,d){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var g;Lm.includes(t)?g=Gy:qm.includes(t)?g=km:g=Uy;var p=Ym(t,a,g,o);return p.type==="small"?wy(t,p.style,i,o,h,d):p.type==="large"?Gm(t,p.size,i,o,h,d):Um(t,a,i,o,h,d)},Ly=function(t,a,i,o,h,d){var g=o.fontMetrics().axisHeight*o.sizeMultiplier,p=901,b=5/o.fontMetrics().ptPerEm,E=Math.max(a-g,i+g),_=Math.max(E/500*p,2*E-b);return Xm(t,_,!0,o,h,d)},Zr={sqrtImage:Oy,sizedDelim:Hy,sizeToMaxHeight:Th,customSizedDelim:Xm,leftRightDelim:Ly},r6={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},ky=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function i4(s,t){var a=n4(s);if(a&&ky.includes(a.text))return a;throw a?new Rt("Invalid delimiter '"+a.text+"' after '"+t.funcName+"'",s):new Rt("Invalid delimiter type '"+s.type+"'",s)}Jt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(s,t)=>{var a=i4(t[0],s);return{type:"delimsizing",mode:s.parser.mode,size:r6[s.funcName].size,mclass:r6[s.funcName].mclass,delim:a.text}},htmlBuilder:(s,t)=>s.delim==="."?at.makeSpan([s.mclass]):Zr.sizedDelim(s.delim,s.size,t,s.mode,[s.mclass]),mathmlBuilder:s=>{var t=[];s.delim!=="."&&t.push(Jl(s.delim,s.mode));var a=new Dt.MathNode("mo",t);s.mclass==="mopen"||s.mclass==="mclose"?a.setAttribute("fence","true"):a.setAttribute("fence","false"),a.setAttribute("stretchy","true");var i=Yt(Zr.sizeToMaxHeight[s.size]);return a.setAttribute("minsize",i),a.setAttribute("maxsize",i),a}});function s6(s){if(!s.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Jt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(s,t)=>{var a=s.parser.gullet.macros.get("\\current@color");if(a&&typeof a!="string")throw new Rt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:s.parser.mode,delim:i4(t[0],s).text,color:a}}});Jt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(s,t)=>{var a=i4(t[0],s),i=s.parser;++i.leftrightDepth;var o=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var h=we(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:o,left:a.text,right:h.delim,rightColor:h.color}},htmlBuilder:(s,t)=>{s6(s);for(var a=H0(s.body,t,!0,["mopen","mclose"]),i=0,o=0,h=!1,d=0;d<a.length;d++)a[d].isMiddle?h=!0:(i=Math.max(a[d].height,i),o=Math.max(a[d].depth,o));i*=t.sizeMultiplier,o*=t.sizeMultiplier;var g;if(s.left==="."?g=Mh(t,["mopen"]):g=Zr.leftRightDelim(s.left,i,o,t,s.mode,["mopen"]),a.unshift(g),h)for(var p=1;p<a.length;p++){var b=a[p],E=b.isMiddle;E&&(a[p]=Zr.leftRightDelim(E.delim,i,o,E.options,s.mode,[]))}var _;if(s.right===".")_=Mh(t,["mclose"]);else{var z=s.rightColor?t.withColor(s.rightColor):t;_=Zr.leftRightDelim(s.right,i,o,z,s.mode,["mclose"])}return a.push(_),at.makeSpan(["minner"],a,t)},mathmlBuilder:(s,t)=>{s6(s);var a=Pn(s.body,t);if(s.left!=="."){var i=new Dt.MathNode("mo",[Jl(s.left,s.mode)]);i.setAttribute("fence","true"),a.unshift(i)}if(s.right!=="."){var o=new Dt.MathNode("mo",[Jl(s.right,s.mode)]);o.setAttribute("fence","true"),s.rightColor&&o.setAttribute("mathcolor",s.rightColor),a.push(o)}return i5(a)}});Jt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(s,t)=>{var a=i4(t[0],s);if(!s.parser.leftrightDepth)throw new Rt("\\middle without preceding \\left",a);return{type:"middle",mode:s.parser.mode,delim:a.text}},htmlBuilder:(s,t)=>{var a;if(s.delim===".")a=Mh(t,[]);else{a=Zr.sizedDelim(s.delim,1,t,s.mode,[]);var i={delim:s.delim,options:t};a.isMiddle=i}return a},mathmlBuilder:(s,t)=>{var a=s.delim==="\\vert"||s.delim==="|"?Jl("|","text"):Jl(s.delim,s.mode),i=new Dt.MathNode("mo",[a]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var c5=(s,t)=>{var a=at.wrapFragment(We(s.body,t),t),i=s.label.slice(1),o=t.sizeMultiplier,h,d=0,g=ta.isCharacterBox(s.body);if(i==="sout")h=at.makeSpan(["stretchy","sout"]),h.height=t.fontMetrics().defaultRuleThickness/o,d=-.5*t.fontMetrics().xHeight;else if(i==="phase"){var p=Pa({number:.6,unit:"pt"},t),b=Pa({number:.35,unit:"ex"},t),E=t.havingBaseSizing();o=o/E.sizeMultiplier;var _=a.height+a.depth+p+b;a.style.paddingLeft=Yt(_/2+p);var z=Math.floor(1e3*_*o),D=Rv(z),C=new Jr([new lu("phase",D)],{width:"400em",height:Yt(z/1e3),viewBox:"0 0 400000 "+z,preserveAspectRatio:"xMinYMin slice"});h=at.makeSvgSpan(["hide-tail"],[C],t),h.style.height=Yt(_),d=a.depth+p+b}else{/cancel/.test(i)?g||a.classes.push("cancel-pad"):i==="angl"?a.classes.push("anglpad"):a.classes.push("boxpad");var H=0,U=0,B=0;/box/.test(i)?(B=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),H=t.fontMetrics().fboxsep+(i==="colorbox"?0:B),U=H):i==="angl"?(B=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),H=4*B,U=Math.max(0,.25-a.depth)):(H=g?.2:0,U=H),h=Wr.encloseSpan(a,i,H,U,t),/fbox|boxed|fcolorbox/.test(i)?(h.style.borderStyle="solid",h.style.borderWidth=Yt(B)):i==="angl"&&B!==.049&&(h.style.borderTopWidth=Yt(B),h.style.borderRightWidth=Yt(B)),d=a.depth+U,s.backgroundColor&&(h.style.backgroundColor=s.backgroundColor,s.borderColor&&(h.style.borderColor=s.borderColor))}var X;if(s.backgroundColor)X=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:d},{type:"elem",elem:a,shift:0}]},t);else{var k=/cancel|phase/.test(i)?["svg-align"]:[];X=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:h,shift:d,wrapperClasses:k}]},t)}return/cancel/.test(i)&&(X.height=a.height,X.depth=a.depth),/cancel/.test(i)&&!g?at.makeSpan(["mord","cancel-lap"],[X],t):at.makeSpan(["mord"],[X],t)},h5=(s,t)=>{var a=0,i=new Dt.MathNode(s.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ba(s.body,t)]);switch(s.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(a=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*a+"pt"),i.setAttribute("height","+"+2*a+"pt"),i.setAttribute("lspace",a+"pt"),i.setAttribute("voffset",a+"pt"),s.label==="\\fcolorbox"){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+o+"em solid "+String(s.borderColor))}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return s.backgroundColor&&i.setAttribute("mathbackground",s.backgroundColor),i};Jt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(s,t,a){var{parser:i,funcName:o}=s,h=we(t[0],"color-token").color,d=t[1];return{type:"enclose",mode:i.mode,label:o,backgroundColor:h,body:d}},htmlBuilder:c5,mathmlBuilder:h5});Jt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(s,t,a){var{parser:i,funcName:o}=s,h=we(t[0],"color-token").color,d=we(t[1],"color-token").color,g=t[2];return{type:"enclose",mode:i.mode,label:o,backgroundColor:d,borderColor:h,body:g}},htmlBuilder:c5,mathmlBuilder:h5});Jt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(s,t){var{parser:a}=s;return{type:"enclose",mode:a.mode,label:"\\fbox",body:t[0]}}});Jt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(s,t){var{parser:a,funcName:i}=s,o=t[0];return{type:"enclose",mode:a.mode,label:i,body:o}},htmlBuilder:c5,mathmlBuilder:h5});Jt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(s,t){var{parser:a}=s;return{type:"enclose",mode:a.mode,label:"\\angl",body:t[0]}}});var jm={};function ur(s){for(var{type:t,names:a,props:i,handler:o,htmlBuilder:h,mathmlBuilder:d}=s,g={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},p=0;p<a.length;++p)jm[a[p]]=g;h&&(K2[t]=h),d&&(Z2[t]=d)}var Vm={};function O(s,t){Vm[s]=t}function u6(s){var t=[];s.consumeSpaces();var a=s.fetch().text;for(a==="\\relax"&&(s.consume(),s.consumeSpaces(),a=s.fetch().text);a==="\\hline"||a==="\\hdashline";)s.consume(),t.push(a==="\\hdashline"),s.consumeSpaces(),a=s.fetch().text;return t}var r4=s=>{var t=s.parser.settings;if(!t.displayMode)throw new Rt("{"+s.envName+"} can be used only in display mode.")};function f5(s){if(s.indexOf("ed")===-1)return s.indexOf("*")===-1}function hu(s,t,a){var{hskipBeforeAndAfter:i,addJot:o,cols:h,arraystretch:d,colSeparationType:g,autoTag:p,singleRow:b,emptySingleRow:E,maxNumCols:_,leqno:z}=t;if(s.gullet.beginGroup(),b||s.gullet.macros.set("\\cr","\\\\\\relax"),!d){var D=s.gullet.expandMacroAsText("\\arraystretch");if(D==null)d=1;else if(d=parseFloat(D),!d||d<0)throw new Rt("Invalid \\arraystretch: "+D)}s.gullet.beginGroup();var C=[],H=[C],U=[],B=[],X=p!=null?[]:void 0;function k(){p&&s.gullet.macros.set("\\@eqnsw","1",!0)}function j(){X&&(s.gullet.macros.get("\\df@tag")?(X.push(s.subparse([new cl("\\df@tag")])),s.gullet.macros.set("\\df@tag",void 0,!0)):X.push(!!p&&s.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),B.push(u6(s));;){var nt=s.parseExpression(!1,b?"\\end":"\\\\");s.gullet.endGroup(),s.gullet.beginGroup(),nt={type:"ordgroup",mode:s.mode,body:nt},a&&(nt={type:"styling",mode:s.mode,style:a,body:[nt]}),C.push(nt);var ut=s.fetch().text;if(ut==="&"){if(_&&C.length===_){if(b||g)throw new Rt("Too many tab characters: &",s.nextToken);s.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}s.consume()}else if(ut==="\\end"){j(),C.length===1&&nt.type==="styling"&&nt.body[0].body.length===0&&(H.length>1||!E)&&H.pop(),B.length<H.length+1&&B.push([]);break}else if(ut==="\\\\"){s.consume();var st=void 0;s.gullet.future().text!==" "&&(st=s.parseSizeGroup(!0)),U.push(st?st.value:null),j(),B.push(u6(s)),C=[],H.push(C),k()}else throw new Rt("Expected & or \\\\ or \\cr or \\end",s.nextToken)}return s.gullet.endGroup(),s.gullet.endGroup(),{type:"array",mode:s.mode,addJot:o,arraystretch:d,body:H,cols:h,rowGaps:U,hskipBeforeAndAfter:i,hLinesBeforeRow:B,colSeparationType:g,tags:X,leqno:z}}function d5(s){return s.slice(0,1)==="d"?"display":"text"}var or=function(t,a){var i,o,h=t.body.length,d=t.hLinesBeforeRow,g=0,p=new Array(h),b=[],E=Math.max(a.fontMetrics().arrayRuleWidth,a.minRuleThickness),_=1/a.fontMetrics().ptPerEm,z=5*_;if(t.colSeparationType&&t.colSeparationType==="small"){var D=a.havingStyle(oe.SCRIPT).sizeMultiplier;z=.2778*(D/a.sizeMultiplier)}var C=t.colSeparationType==="CD"?Pa({number:3,unit:"ex"},a):12*_,H=3*_,U=t.arraystretch*C,B=.7*U,X=.3*U,k=0;function j(Ie){for(var u0=0;u0<Ie.length;++u0)u0>0&&(k+=.25),b.push({pos:k,isDashed:Ie[u0]})}for(j(d[0]),i=0;i<t.body.length;++i){var nt=t.body[i],ut=B,st=X;g<nt.length&&(g=nt.length);var ot=new Array(nt.length);for(o=0;o<nt.length;++o){var St=We(nt[o],a);st<St.depth&&(st=St.depth),ut<St.height&&(ut=St.height),ot[o]=St}var Zt=t.rowGaps[i],qt=0;Zt&&(qt=Pa(Zt,a),qt>0&&(qt+=X,st<qt&&(st=qt),qt=0)),t.addJot&&(st+=H),ot.height=ut,ot.depth=st,k+=ut,ot.pos=k,k+=st+qt,p[i]=ot,j(d[i+1])}var Nt=k/2+a.fontMetrics().axisHeight,$t=t.cols||[],Vt=[],Et,K,vt=[];if(t.tags&&t.tags.some(Ie=>Ie))for(i=0;i<h;++i){var mt=p[i],Lt=mt.pos-Nt,xt=t.tags[i],G=void 0;xt===!0?G=at.makeSpan(["eqn-num"],[],a):xt===!1?G=at.makeSpan([],[],a):G=at.makeSpan([],H0(xt,a,!0),a),G.depth=mt.depth,G.height=mt.height,vt.push({type:"elem",elem:G,shift:Lt})}for(o=0,K=0;o<g||K<$t.length;++o,++K){for(var I=$t[K]||{},gt=!0;I.type==="separator";){if(gt||(Et=at.makeSpan(["arraycolsep"],[]),Et.style.width=Yt(a.fontMetrics().doubleRuleSep),Vt.push(Et)),I.separator==="|"||I.separator===":"){var Bt=I.separator==="|"?"solid":"dashed",wt=at.makeSpan(["vertical-separator"],[],a);wt.style.height=Yt(k),wt.style.borderRightWidth=Yt(E),wt.style.borderRightStyle=Bt,wt.style.margin="0 "+Yt(-E/2);var Mt=k-Nt;Mt&&(wt.style.verticalAlign=Yt(-Mt)),Vt.push(wt)}else throw new Rt("Invalid separator type: "+I.separator);K++,I=$t[K]||{},gt=!1}if(!(o>=g)){var Xt=void 0;(o>0||t.hskipBeforeAndAfter)&&(Xt=ta.deflt(I.pregap,z),Xt!==0&&(Et=at.makeSpan(["arraycolsep"],[]),Et.style.width=Yt(Xt),Vt.push(Et)));var It=[];for(i=0;i<h;++i){var Pt=p[i],ze=Pt[o];if(ze){var re=Pt.pos-Nt;ze.depth=Pt.depth,ze.height=Pt.height,It.push({type:"elem",elem:ze,shift:re})}}It=at.makeVList({positionType:"individualShift",children:It},a),It=at.makeSpan(["col-align-"+(I.align||"c")],[It]),Vt.push(It),(o<g-1||t.hskipBeforeAndAfter)&&(Xt=ta.deflt(I.postgap,z),Xt!==0&&(Et=at.makeSpan(["arraycolsep"],[]),Et.style.width=Yt(Xt),Vt.push(Et)))}}if(p=at.makeSpan(["mtable"],Vt),b.length>0){for(var me=at.makeLineSpan("hline",a,E),Je=at.makeLineSpan("hdashline",a,E),De=[{type:"elem",elem:p,shift:0}];b.length>0;){var ra=b.pop(),sa=ra.pos-Nt;ra.isDashed?De.push({type:"elem",elem:Je,shift:sa}):De.push({type:"elem",elem:me,shift:sa})}p=at.makeVList({positionType:"individualShift",children:De},a)}if(vt.length===0)return at.makeSpan(["mord"],[p],a);var be=at.makeVList({positionType:"individualShift",children:vt},a);return be=at.makeSpan(["tag"],[be],a),at.makeFragment([p,be])},Yy={c:"center ",l:"left ",r:"right "},cr=function(t,a){for(var i=[],o=new Dt.MathNode("mtd",[],["mtr-glue"]),h=new Dt.MathNode("mtd",[],["mml-eqn-num"]),d=0;d<t.body.length;d++){for(var g=t.body[d],p=[],b=0;b<g.length;b++)p.push(new Dt.MathNode("mtd",[ba(g[b],a)]));t.tags&&t.tags[d]&&(p.unshift(o),p.push(o),t.leqno?p.unshift(h):p.push(h)),i.push(new Dt.MathNode("mtr",p))}var E=new Dt.MathNode("mtable",i),_=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);E.setAttribute("rowspacing",Yt(_));var z="",D="";if(t.cols&&t.cols.length>0){var C=t.cols,H="",U=!1,B=0,X=C.length;C[0].type==="separator"&&(z+="top ",B=1),C[C.length-1].type==="separator"&&(z+="bottom ",X-=1);for(var k=B;k<X;k++)C[k].type==="align"?(D+=Yy[C[k].align],U&&(H+="none "),U=!0):C[k].type==="separator"&&U&&(H+=C[k].separator==="|"?"solid ":"dashed ",U=!1);E.setAttribute("columnalign",D.trim()),/[sd]/.test(H)&&E.setAttribute("columnlines",H.trim())}if(t.colSeparationType==="align"){for(var j=t.cols||[],nt="",ut=1;ut<j.length;ut++)nt+=ut%2?"0em ":"1em ";E.setAttribute("columnspacing",nt.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?E.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?E.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?E.setAttribute("columnspacing","0.5em"):E.setAttribute("columnspacing","1em");var st="",ot=t.hLinesBeforeRow;z+=ot[0].length>0?"left ":"",z+=ot[ot.length-1].length>0?"right ":"";for(var St=1;St<ot.length-1;St++)st+=ot[St].length===0?"none ":ot[St][0]?"dashed ":"solid ";return/[sd]/.test(st)&&E.setAttribute("rowlines",st.trim()),z!==""&&(E=new Dt.MathNode("menclose",[E]),E.setAttribute("notation",z.trim())),t.arraystretch&&t.arraystretch<1&&(E=new Dt.MathNode("mstyle",[E]),E.setAttribute("scriptlevel","1")),E},Qm=function(t,a){t.envName.indexOf("ed")===-1&&r4(t);var i=[],o=t.envName.indexOf("at")>-1?"alignat":"align",h=t.envName==="split",d=hu(t.parser,{cols:i,addJot:!0,autoTag:h?void 0:f5(t.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:h?2:void 0,leqno:t.parser.settings.leqno},"display"),g,p=0,b={type:"ordgroup",mode:t.mode,body:[]};if(a[0]&&a[0].type==="ordgroup"){for(var E="",_=0;_<a[0].body.length;_++){var z=we(a[0].body[_],"textord");E+=z.text}g=Number(E),p=g*2}var D=!p;d.body.forEach(function(B){for(var X=1;X<B.length;X+=2){var k=we(B[X],"styling"),j=we(k.body[0],"ordgroup");j.body.unshift(b)}if(D)p<B.length&&(p=B.length);else{var nt=B.length/2;if(g<nt)throw new Rt("Too many math in a row: "+("expected "+g+", but got "+nt),B[0])}});for(var C=0;C<p;++C){var H="r",U=0;C%2===1?H="l":C>0&&D&&(U=1),i[C]={type:"align",align:H,pregap:U,postgap:0}}return d.colSeparationType=D?"align":"alignat",d};ur({type:"array",names:["array","darray"],props:{numArgs:1},handler(s,t){var a=n4(t[0]),i=a?[t[0]]:we(t[0],"ordgroup").body,o=i.map(function(d){var g=s5(d),p=g.text;if("lcr".indexOf(p)!==-1)return{type:"align",align:p};if(p==="|")return{type:"separator",separator:"|"};if(p===":")return{type:"separator",separator:":"};throw new Rt("Unknown column alignment: "+p,d)}),h={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return hu(s.parser,h,d5(s.envName))},htmlBuilder:or,mathmlBuilder:cr});ur({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(s){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[s.envName.replace("*","")],a="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:a}]};if(s.envName.charAt(s.envName.length-1)==="*"){var o=s.parser;if(o.consumeSpaces(),o.fetch().text==="["){if(o.consume(),o.consumeSpaces(),a=o.fetch().text,"lcr".indexOf(a)===-1)throw new Rt("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),i.cols=[{type:"align",align:a}]}}var h=hu(s.parser,i,d5(s.envName)),d=Math.max(0,...h.body.map(g=>g.length));return h.cols=new Array(d).fill({type:"align",align:a}),t?{type:"leftright",mode:s.mode,body:[h],left:t[0],right:t[1],rightColor:void 0}:h},htmlBuilder:or,mathmlBuilder:cr});ur({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(s){var t={arraystretch:.5},a=hu(s.parser,t,"script");return a.colSeparationType="small",a},htmlBuilder:or,mathmlBuilder:cr});ur({type:"array",names:["subarray"],props:{numArgs:1},handler(s,t){var a=n4(t[0]),i=a?[t[0]]:we(t[0],"ordgroup").body,o=i.map(function(d){var g=s5(d),p=g.text;if("lc".indexOf(p)!==-1)return{type:"align",align:p};throw new Rt("Unknown column alignment: "+p,d)});if(o.length>1)throw new Rt("{subarray} can contain only one column");var h={cols:o,hskipBeforeAndAfter:!1,arraystretch:.5};if(h=hu(s.parser,h,"script"),h.body.length>0&&h.body[0].length>1)throw new Rt("{subarray} can contain only one column");return h},htmlBuilder:or,mathmlBuilder:cr});ur({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(s){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},a=hu(s.parser,t,d5(s.envName));return{type:"leftright",mode:s.mode,body:[a],left:s.envName.indexOf("r")>-1?".":"\\{",right:s.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:or,mathmlBuilder:cr});ur({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Qm,htmlBuilder:or,mathmlBuilder:cr});ur({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(s){["gather","gather*"].includes(s.envName)&&r4(s);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:f5(s.envName),emptySingleRow:!0,leqno:s.parser.settings.leqno};return hu(s.parser,t,"display")},htmlBuilder:or,mathmlBuilder:cr});ur({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Qm,htmlBuilder:or,mathmlBuilder:cr});ur({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(s){r4(s);var t={autoTag:f5(s.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:s.parser.settings.leqno};return hu(s.parser,t,"display")},htmlBuilder:or,mathmlBuilder:cr});ur({type:"array",names:["CD"],props:{numArgs:0},handler(s){return r4(s),zy(s.parser)},htmlBuilder:or,mathmlBuilder:cr});O("\\nonumber","\\gdef\\@eqnsw{0}");O("\\notag","\\nonumber");Jt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(s,t){throw new Rt(s.funcName+" valid only within array environment")}});var o6=jm;Jt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(s,t){var{parser:a,funcName:i}=s,o=t[0];if(o.type!=="ordgroup")throw new Rt("Invalid environment name",o);for(var h="",d=0;d<o.body.length;++d)h+=we(o.body[d],"textord").text;if(i==="\\begin"){if(!o6.hasOwnProperty(h))throw new Rt("No such environment: "+h,o);var g=o6[h],{args:p,optArgs:b}=a.parseArguments("\\begin{"+h+"}",g),E={mode:a.mode,envName:h,parser:a},_=g.handler(E,p,b);a.expect("\\end",!1);var z=a.nextToken,D=we(a.parseFunction(),"environment");if(D.name!==h)throw new Rt("Mismatch: \\begin{"+h+"} matched by \\end{"+D.name+"}",z);return _}return{type:"environment",mode:a.mode,name:h,nameGroup:o}}});var Km=(s,t)=>{var a=s.font,i=t.withFont(a);return We(s.body,i)},Zm=(s,t)=>{var a=s.font,i=t.withFont(a);return ba(s.body,i)},c6={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Jt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(s,t)=>{var{parser:a,funcName:i}=s,o=J2(t[0]),h=i;return h in c6&&(h=c6[h]),{type:"font",mode:a.mode,font:h.slice(1),body:o}},htmlBuilder:Km,mathmlBuilder:Zm});Jt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(s,t)=>{var{parser:a}=s,i=t[0],o=ta.isCharacterBox(i);return{type:"mclass",mode:a.mode,mclass:l4(i),body:[{type:"font",mode:a.mode,font:"boldsymbol",body:i}],isCharacterBox:o}}});Jt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(s,t)=>{var{parser:a,funcName:i,breakOnTokenText:o}=s,{mode:h}=a,d=a.parseExpression(!0,o),g="math"+i.slice(1);return{type:"font",mode:h,font:g,body:{type:"ordgroup",mode:a.mode,body:d}}},htmlBuilder:Km,mathmlBuilder:Zm});var Jm=(s,t)=>{var a=t;return s==="display"?a=a.id>=oe.SCRIPT.id?a.text():oe.DISPLAY:s==="text"&&a.size===oe.DISPLAY.size?a=oe.TEXT:s==="script"?a=oe.SCRIPT:s==="scriptscript"&&(a=oe.SCRIPTSCRIPT),a},m5=(s,t)=>{var a=Jm(s.size,t.style),i=a.fracNum(),o=a.fracDen(),h;h=t.havingStyle(i);var d=We(s.numer,h,t);if(s.continued){var g=8.5/t.fontMetrics().ptPerEm,p=3.5/t.fontMetrics().ptPerEm;d.height=d.height<g?g:d.height,d.depth=d.depth<p?p:d.depth}h=t.havingStyle(o);var b=We(s.denom,h,t),E,_,z;s.hasBarLine?(s.barSize?(_=Pa(s.barSize,t),E=at.makeLineSpan("frac-line",t,_)):E=at.makeLineSpan("frac-line",t),_=E.height,z=E.height):(E=null,_=0,z=t.fontMetrics().defaultRuleThickness);var D,C,H;a.size===oe.DISPLAY.size||s.size==="display"?(D=t.fontMetrics().num1,_>0?C=3*z:C=7*z,H=t.fontMetrics().denom1):(_>0?(D=t.fontMetrics().num2,C=z):(D=t.fontMetrics().num3,C=3*z),H=t.fontMetrics().denom2);var U;if(E){var X=t.fontMetrics().axisHeight;D-d.depth-(X+.5*_)<C&&(D+=C-(D-d.depth-(X+.5*_))),X-.5*_-(b.height-H)<C&&(H+=C-(X-.5*_-(b.height-H)));var k=-(X-.5*_);U=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:H},{type:"elem",elem:E,shift:k},{type:"elem",elem:d,shift:-D}]},t)}else{var B=D-d.depth-(b.height-H);B<C&&(D+=.5*(C-B),H+=.5*(C-B)),U=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:H},{type:"elem",elem:d,shift:-D}]},t)}h=t.havingStyle(a),U.height*=h.sizeMultiplier/t.sizeMultiplier,U.depth*=h.sizeMultiplier/t.sizeMultiplier;var j;a.size===oe.DISPLAY.size?j=t.fontMetrics().delim1:a.size===oe.SCRIPTSCRIPT.size?j=t.havingStyle(oe.SCRIPT).fontMetrics().delim2:j=t.fontMetrics().delim2;var nt,ut;return s.leftDelim==null?nt=Mh(t,["mopen"]):nt=Zr.customSizedDelim(s.leftDelim,j,!0,t.havingStyle(a),s.mode,["mopen"]),s.continued?ut=at.makeSpan([]):s.rightDelim==null?ut=Mh(t,["mclose"]):ut=Zr.customSizedDelim(s.rightDelim,j,!0,t.havingStyle(a),s.mode,["mclose"]),at.makeSpan(["mord"].concat(h.sizingClasses(t)),[nt,at.makeSpan(["mfrac"],[U]),ut],t)},g5=(s,t)=>{var a=new Dt.MathNode("mfrac",[ba(s.numer,t),ba(s.denom,t)]);if(!s.hasBarLine)a.setAttribute("linethickness","0px");else if(s.barSize){var i=Pa(s.barSize,t);a.setAttribute("linethickness",Yt(i))}var o=Jm(s.size,t.style);if(o.size!==t.style.size){a=new Dt.MathNode("mstyle",[a]);var h=o.size===oe.DISPLAY.size?"true":"false";a.setAttribute("displaystyle",h),a.setAttribute("scriptlevel","0")}if(s.leftDelim!=null||s.rightDelim!=null){var d=[];if(s.leftDelim!=null){var g=new Dt.MathNode("mo",[new Dt.TextNode(s.leftDelim.replace("\\",""))]);g.setAttribute("fence","true"),d.push(g)}if(d.push(a),s.rightDelim!=null){var p=new Dt.MathNode("mo",[new Dt.TextNode(s.rightDelim.replace("\\",""))]);p.setAttribute("fence","true"),d.push(p)}return i5(d)}return a};Jt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(s,t)=>{var{parser:a,funcName:i}=s,o=t[0],h=t[1],d,g=null,p=null,b="auto";switch(i){case"\\dfrac":case"\\frac":case"\\tfrac":d=!0;break;case"\\\\atopfrac":d=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":d=!1,g="(",p=")";break;case"\\\\bracefrac":d=!1,g="\\{",p="\\}";break;case"\\\\brackfrac":d=!1,g="[",p="]";break;default:throw new Error("Unrecognized genfrac command")}switch(i){case"\\dfrac":case"\\dbinom":b="display";break;case"\\tfrac":case"\\tbinom":b="text";break}return{type:"genfrac",mode:a.mode,continued:!1,numer:o,denom:h,hasBarLine:d,leftDelim:g,rightDelim:p,size:b,barSize:null}},htmlBuilder:m5,mathmlBuilder:g5});Jt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(s,t)=>{var{parser:a,funcName:i}=s,o=t[0],h=t[1];return{type:"genfrac",mode:a.mode,continued:!0,numer:o,denom:h,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});Jt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(s){var{parser:t,funcName:a,token:i}=s,o;switch(a){case"\\over":o="\\frac";break;case"\\choose":o="\\binom";break;case"\\atop":o="\\\\atopfrac";break;case"\\brace":o="\\\\bracefrac";break;case"\\brack":o="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:o,token:i}}});var h6=["display","text","script","scriptscript"],f6=function(t){var a=null;return t.length>0&&(a=t,a=a==="."?null:a),a};Jt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(s,t){var{parser:a}=s,i=t[4],o=t[5],h=J2(t[0]),d=h.type==="atom"&&h.family==="open"?f6(h.text):null,g=J2(t[1]),p=g.type==="atom"&&g.family==="close"?f6(g.text):null,b=we(t[2],"size"),E,_=null;b.isBlank?E=!0:(_=b.value,E=_.number>0);var z="auto",D=t[3];if(D.type==="ordgroup"){if(D.body.length>0){var C=we(D.body[0],"textord");z=h6[Number(C.text)]}}else D=we(D,"textord"),z=h6[Number(D.text)];return{type:"genfrac",mode:a.mode,numer:i,denom:o,continued:!1,hasBarLine:E,barSize:_,leftDelim:d,rightDelim:p,size:z}},htmlBuilder:m5,mathmlBuilder:g5});Jt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(s,t){var{parser:a,funcName:i,token:o}=s;return{type:"infix",mode:a.mode,replaceWith:"\\\\abovefrac",size:we(t[0],"size").value,token:o}}});Jt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(s,t)=>{var{parser:a,funcName:i}=s,o=t[0],h=vv(we(t[1],"infix").size),d=t[2],g=h.number>0;return{type:"genfrac",mode:a.mode,numer:o,denom:d,continued:!1,hasBarLine:g,barSize:h,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:m5,mathmlBuilder:g5});var Fm=(s,t)=>{var a=t.style,i,o;s.type==="supsub"?(i=s.sup?We(s.sup,t.havingStyle(a.sup()),t):We(s.sub,t.havingStyle(a.sub()),t),o=we(s.base,"horizBrace")):o=we(s,"horizBrace");var h=We(o.base,t.havingBaseStyle(oe.DISPLAY)),d=Wr.svgSpan(o,t),g;if(o.isOver?(g=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.1},{type:"elem",elem:d}]},t),g.children[0].children[0].children[1].classes.push("svg-align")):(g=at.makeVList({positionType:"bottom",positionData:h.depth+.1+d.height,children:[{type:"elem",elem:d},{type:"kern",size:.1},{type:"elem",elem:h}]},t),g.children[0].children[0].children[0].classes.push("svg-align")),i){var p=at.makeSpan(["mord",o.isOver?"mover":"munder"],[g],t);o.isOver?g=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:p},{type:"kern",size:.2},{type:"elem",elem:i}]},t):g=at.makeVList({positionType:"bottom",positionData:p.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:p}]},t)}return at.makeSpan(["mord",o.isOver?"mover":"munder"],[g],t)},Xy=(s,t)=>{var a=Wr.mathMLnode(s.label);return new Dt.MathNode(s.isOver?"mover":"munder",[ba(s.base,t),a])};Jt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(s,t){var{parser:a,funcName:i}=s;return{type:"horizBrace",mode:a.mode,label:i,isOver:/^\\over/.test(i),base:t[0]}},htmlBuilder:Fm,mathmlBuilder:Xy});Jt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(s,t)=>{var{parser:a}=s,i=t[1],o=we(t[0],"url").url;return a.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:a.mode,href:o,body:g0(i)}:a.formatUnsupportedCmd("\\href")},htmlBuilder:(s,t)=>{var a=H0(s.body,t,!1);return at.makeAnchor(s.href,[],a,t)},mathmlBuilder:(s,t)=>{var a=iu(s.body,t);return a instanceof ul||(a=new ul("mrow",[a])),a.setAttribute("href",s.href),a}});Jt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(s,t)=>{var{parser:a}=s,i=we(t[0],"url").url;if(!a.settings.isTrusted({command:"\\url",url:i}))return a.formatUnsupportedCmd("\\url");for(var o=[],h=0;h<i.length;h++){var d=i[h];d==="~"&&(d="\\textasciitilde"),o.push({type:"textord",mode:"text",text:d})}var g={type:"text",mode:a.mode,font:"\\texttt",body:o};return{type:"href",mode:a.mode,href:i,body:g0(g)}}});Jt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(s,t){var{parser:a}=s;return{type:"hbox",mode:a.mode,body:g0(t[0])}},htmlBuilder(s,t){var a=H0(s.body,t,!1);return at.makeFragment(a)},mathmlBuilder(s,t){return new Dt.MathNode("mrow",Pn(s.body,t))}});Jt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(s,t)=>{var{parser:a,funcName:i,token:o}=s,h=we(t[0],"raw").string,d=t[1];a.settings.strict&&a.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var g,p={};switch(i){case"\\htmlClass":p.class=h,g={command:"\\htmlClass",class:h};break;case"\\htmlId":p.id=h,g={command:"\\htmlId",id:h};break;case"\\htmlStyle":p.style=h,g={command:"\\htmlStyle",style:h};break;case"\\htmlData":{for(var b=h.split(","),E=0;E<b.length;E++){var _=b[E].split("=");if(_.length!==2)throw new Rt("Error parsing key-value for \\htmlData");p["data-"+_[0].trim()]=_[1].trim()}g={command:"\\htmlData",attributes:p};break}default:throw new Error("Unrecognized html command")}return a.settings.isTrusted(g)?{type:"html",mode:a.mode,attributes:p,body:g0(d)}:a.formatUnsupportedCmd(i)},htmlBuilder:(s,t)=>{var a=H0(s.body,t,!1),i=["enclosing"];s.attributes.class&&i.push(...s.attributes.class.trim().split(/\s+/));var o=at.makeSpan(i,a,t);for(var h in s.attributes)h!=="class"&&s.attributes.hasOwnProperty(h)&&o.setAttribute(h,s.attributes[h]);return o},mathmlBuilder:(s,t)=>iu(s.body,t)});Jt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(s,t)=>{var{parser:a}=s;return{type:"htmlmathml",mode:a.mode,html:g0(t[0]),mathml:g0(t[1])}},htmlBuilder:(s,t)=>{var a=H0(s.html,t,!1);return at.makeFragment(a)},mathmlBuilder:(s,t)=>iu(s.mathml,t)});var yd=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!a)throw new Rt("Invalid size: '"+t+"' in \\includegraphics");var i={number:+(a[1]+a[2]),unit:a[3]};if(!mm(i))throw new Rt("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i};Jt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(s,t,a)=>{var{parser:i}=s,o={number:0,unit:"em"},h={number:.9,unit:"em"},d={number:0,unit:"em"},g="";if(a[0])for(var p=we(a[0],"raw").string,b=p.split(","),E=0;E<b.length;E++){var _=b[E].split("=");if(_.length===2){var z=_[1].trim();switch(_[0].trim()){case"alt":g=z;break;case"width":o=yd(z);break;case"height":h=yd(z);break;case"totalheight":d=yd(z);break;default:throw new Rt("Invalid key: '"+_[0]+"' in \\includegraphics.")}}}var D=we(t[0],"url").url;return g===""&&(g=D,g=g.replace(/^.*[\\/]/,""),g=g.substring(0,g.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:D})?{type:"includegraphics",mode:i.mode,alt:g,width:o,height:h,totalheight:d,src:D}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(s,t)=>{var a=Pa(s.height,t),i=0;s.totalheight.number>0&&(i=Pa(s.totalheight,t)-a);var o=0;s.width.number>0&&(o=Pa(s.width,t));var h={height:Yt(a+i)};o>0&&(h.width=Yt(o)),i>0&&(h.verticalAlign=Yt(-i));var d=new Xv(s.src,s.alt,h);return d.height=a,d.depth=i,d},mathmlBuilder:(s,t)=>{var a=new Dt.MathNode("mglyph",[]);a.setAttribute("alt",s.alt);var i=Pa(s.height,t),o=0;if(s.totalheight.number>0&&(o=Pa(s.totalheight,t)-i,a.setAttribute("valign",Yt(-o))),a.setAttribute("height",Yt(i+o)),s.width.number>0){var h=Pa(s.width,t);a.setAttribute("width",Yt(h))}return a.setAttribute("src",s.src),a}});Jt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(s,t){var{parser:a,funcName:i}=s,o=we(t[0],"size");if(a.settings.strict){var h=i[1]==="m",d=o.value.unit==="mu";h?(d||a.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, "+("not "+o.value.unit+" units")),a.mode!=="math"&&a.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):d&&a.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:a.mode,dimension:o.value}},htmlBuilder(s,t){return at.makeGlue(s.dimension,t)},mathmlBuilder(s,t){var a=Pa(s.dimension,t);return new Dt.SpaceNode(a)}});Jt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(s,t)=>{var{parser:a,funcName:i}=s,o=t[0];return{type:"lap",mode:a.mode,alignment:i.slice(5),body:o}},htmlBuilder:(s,t)=>{var a;s.alignment==="clap"?(a=at.makeSpan([],[We(s.body,t)]),a=at.makeSpan(["inner"],[a],t)):a=at.makeSpan(["inner"],[We(s.body,t)]);var i=at.makeSpan(["fix"],[]),o=at.makeSpan([s.alignment],[a,i],t),h=at.makeSpan(["strut"]);return h.style.height=Yt(o.height+o.depth),o.depth&&(h.style.verticalAlign=Yt(-o.depth)),o.children.unshift(h),o=at.makeSpan(["thinbox"],[o],t),at.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:(s,t)=>{var a=new Dt.MathNode("mpadded",[ba(s.body,t)]);if(s.alignment!=="rlap"){var i=s.alignment==="llap"?"-1":"-0.5";a.setAttribute("lspace",i+"width")}return a.setAttribute("width","0px"),a}});Jt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(s,t){var{funcName:a,parser:i}=s,o=i.mode;i.switchMode("math");var h=a==="\\("?"\\)":"$",d=i.parseExpression(!1,h);return i.expect(h),i.switchMode(o),{type:"styling",mode:i.mode,style:"text",body:d}}});Jt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(s,t){throw new Rt("Mismatched "+s.funcName)}});var d6=(s,t)=>{switch(t.style.size){case oe.DISPLAY.size:return s.display;case oe.TEXT.size:return s.text;case oe.SCRIPT.size:return s.script;case oe.SCRIPTSCRIPT.size:return s.scriptscript;default:return s.text}};Jt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(s,t)=>{var{parser:a}=s;return{type:"mathchoice",mode:a.mode,display:g0(t[0]),text:g0(t[1]),script:g0(t[2]),scriptscript:g0(t[3])}},htmlBuilder:(s,t)=>{var a=d6(s,t),i=H0(a,t,!1);return at.makeFragment(i)},mathmlBuilder:(s,t)=>{var a=d6(s,t);return iu(a,t)}});var Wm=(s,t,a,i,o,h,d)=>{s=at.makeSpan([],[s]);var g=a&&ta.isCharacterBox(a),p,b;if(t){var E=We(t,i.havingStyle(o.sup()),i);b={elem:E,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-E.depth)}}if(a){var _=We(a,i.havingStyle(o.sub()),i);p={elem:_,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-_.height)}}var z;if(b&&p){var D=i.fontMetrics().bigOpSpacing5+p.elem.height+p.elem.depth+p.kern+s.depth+d;z=at.makeVList({positionType:"bottom",positionData:D,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:Yt(-h)},{type:"kern",size:p.kern},{type:"elem",elem:s},{type:"kern",size:b.kern},{type:"elem",elem:b.elem,marginLeft:Yt(h)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else if(p){var C=s.height-d;z=at.makeVList({positionType:"top",positionData:C,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:Yt(-h)},{type:"kern",size:p.kern},{type:"elem",elem:s}]},i)}else if(b){var H=s.depth+d;z=at.makeVList({positionType:"bottom",positionData:H,children:[{type:"elem",elem:s},{type:"kern",size:b.kern},{type:"elem",elem:b.elem,marginLeft:Yt(h)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else return s;var U=[z];if(p&&h!==0&&!g){var B=at.makeSpan(["mspace"],[],i);B.style.marginRight=Yt(h),U.unshift(B)}return at.makeSpan(["mop","op-limits"],U,i)},Im=["\\smallint"],Dc=(s,t)=>{var a,i,o=!1,h;s.type==="supsub"?(a=s.sup,i=s.sub,h=we(s.base,"op"),o=!0):h=we(s,"op");var d=t.style,g=!1;d.size===oe.DISPLAY.size&&h.symbol&&!Im.includes(h.name)&&(g=!0);var p;if(h.symbol){var b=g?"Size2-Regular":"Size1-Regular",E="";if((h.name==="\\oiint"||h.name==="\\oiiint")&&(E=h.name.slice(1),h.name=E==="oiint"?"\\iint":"\\iiint"),p=at.makeSymbol(h.name,b,"math",t,["mop","op-symbol",g?"large-op":"small-op"]),E.length>0){var _=p.italic,z=at.staticSvg(E+"Size"+(g?"2":"1"),t);p=at.makeVList({positionType:"individualShift",children:[{type:"elem",elem:p,shift:0},{type:"elem",elem:z,shift:g?.08:0}]},t),h.name="\\"+E,p.classes.unshift("mop"),p.italic=_}}else if(h.body){var D=H0(h.body,t,!0);D.length===1&&D[0]instanceof Zl?(p=D[0],p.classes[0]="mop"):p=at.makeSpan(["mop"],D,t)}else{for(var C=[],H=1;H<h.name.length;H++)C.push(at.mathsym(h.name[H],h.mode,t));p=at.makeSpan(["mop"],C,t)}var U=0,B=0;return(p instanceof Zl||h.name==="\\oiint"||h.name==="\\oiiint")&&!h.suppressBaseShift&&(U=(p.height-p.depth)/2-t.fontMetrics().axisHeight,B=p.italic),o?Wm(p,a,i,t,d,B,U):(U&&(p.style.position="relative",p.style.top=Yt(U)),p)},wh=(s,t)=>{var a;if(s.symbol)a=new ul("mo",[Jl(s.name,s.mode)]),Im.includes(s.name)&&a.setAttribute("largeop","false");else if(s.body)a=new ul("mo",Pn(s.body,t));else{a=new ul("mi",[new rr(s.name.slice(1))]);var i=new ul("mo",[Jl("","text")]);s.parentIsSupSub?a=new ul("mrow",[a,i]):a=Mm([a,i])}return a},jy={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Jt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(s,t)=>{var{parser:a,funcName:i}=s,o=i;return o.length===1&&(o=jy[o]),{type:"op",mode:a.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:Dc,mathmlBuilder:wh});Jt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(s,t)=>{var{parser:a}=s,i=t[0];return{type:"op",mode:a.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:g0(i)}},htmlBuilder:Dc,mathmlBuilder:wh});var Vy={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Jt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(s){var{parser:t,funcName:a}=s;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:a}},htmlBuilder:Dc,mathmlBuilder:wh});Jt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(s){var{parser:t,funcName:a}=s;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:a}},htmlBuilder:Dc,mathmlBuilder:wh});Jt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(s){var{parser:t,funcName:a}=s,i=a;return i.length===1&&(i=Vy[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Dc,mathmlBuilder:wh});var Pm=(s,t)=>{var a,i,o=!1,h;s.type==="supsub"?(a=s.sup,i=s.sub,h=we(s.base,"operatorname"),o=!0):h=we(s,"operatorname");var d;if(h.body.length>0){for(var g=h.body.map(_=>{var z=_.text;return typeof z=="string"?{type:"textord",mode:_.mode,text:z}:_}),p=H0(g,t.withFont("mathrm"),!0),b=0;b<p.length;b++){var E=p[b];E instanceof Zl&&(E.text=E.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}d=at.makeSpan(["mop"],p,t)}else d=at.makeSpan(["mop"],[],t);return o?Wm(d,a,i,t,t.style,0,0):d},Qy=(s,t)=>{for(var a=Pn(s.body,t.withFont("mathrm")),i=!0,o=0;o<a.length;o++){var h=a[o];if(!(h instanceof Dt.SpaceNode))if(h instanceof Dt.MathNode)switch(h.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var d=h.children[0];h.children.length===1&&d instanceof Dt.TextNode?d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break}default:i=!1}else i=!1}if(i){var g=a.map(E=>E.toText()).join("");a=[new Dt.TextNode(g)]}var p=new Dt.MathNode("mi",a);p.setAttribute("mathvariant","normal");var b=new Dt.MathNode("mo",[Jl("","text")]);return s.parentIsSupSub?new Dt.MathNode("mrow",[p,b]):Dt.newDocumentFragment([p,b])};Jt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(s,t)=>{var{parser:a,funcName:i}=s,o=t[0];return{type:"operatorname",mode:a.mode,body:g0(o),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Pm,mathmlBuilder:Qy});O("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ro({type:"ordgroup",htmlBuilder(s,t){return s.semisimple?at.makeFragment(H0(s.body,t,!1)):at.makeSpan(["mord"],H0(s.body,t,!0),t)},mathmlBuilder(s,t){return iu(s.body,t,!0)}});Jt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(s,t){var{parser:a}=s,i=t[0];return{type:"overline",mode:a.mode,body:i}},htmlBuilder(s,t){var a=We(s.body,t.havingCrampedStyle()),i=at.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,h=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:3*o},{type:"elem",elem:i},{type:"kern",size:o}]},t);return at.makeSpan(["mord","overline"],[h],t)},mathmlBuilder(s,t){var a=new Dt.MathNode("mo",[new Dt.TextNode("‾")]);a.setAttribute("stretchy","true");var i=new Dt.MathNode("mover",[ba(s.body,t),a]);return i.setAttribute("accent","true"),i}});Jt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(s,t)=>{var{parser:a}=s,i=t[0];return{type:"phantom",mode:a.mode,body:g0(i)}},htmlBuilder:(s,t)=>{var a=H0(s.body,t.withPhantom(),!1);return at.makeFragment(a)},mathmlBuilder:(s,t)=>{var a=Pn(s.body,t);return new Dt.MathNode("mphantom",a)}});Jt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(s,t)=>{var{parser:a}=s,i=t[0];return{type:"hphantom",mode:a.mode,body:i}},htmlBuilder:(s,t)=>{var a=at.makeSpan([],[We(s.body,t.withPhantom())]);if(a.height=0,a.depth=0,a.children)for(var i=0;i<a.children.length;i++)a.children[i].height=0,a.children[i].depth=0;return a=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a}]},t),at.makeSpan(["mord"],[a],t)},mathmlBuilder:(s,t)=>{var a=Pn(g0(s.body),t),i=new Dt.MathNode("mphantom",a),o=new Dt.MathNode("mpadded",[i]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}});Jt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(s,t)=>{var{parser:a}=s,i=t[0];return{type:"vphantom",mode:a.mode,body:i}},htmlBuilder:(s,t)=>{var a=at.makeSpan(["inner"],[We(s.body,t.withPhantom())]),i=at.makeSpan(["fix"],[]);return at.makeSpan(["mord","rlap"],[a,i],t)},mathmlBuilder:(s,t)=>{var a=Pn(g0(s.body),t),i=new Dt.MathNode("mphantom",a),o=new Dt.MathNode("mpadded",[i]);return o.setAttribute("width","0px"),o}});Jt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(s,t){var{parser:a}=s,i=we(t[0],"size").value,o=t[1];return{type:"raisebox",mode:a.mode,dy:i,body:o}},htmlBuilder(s,t){var a=We(s.body,t),i=Pa(s.dy,t);return at.makeVList({positionType:"shift",positionData:-i,children:[{type:"elem",elem:a}]},t)},mathmlBuilder(s,t){var a=new Dt.MathNode("mpadded",[ba(s.body,t)]),i=s.dy.number+s.dy.unit;return a.setAttribute("voffset",i),a}});Jt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(s){var{parser:t}=s;return{type:"internal",mode:t.mode}}});Jt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(s,t,a){var{parser:i}=s,o=a[0],h=we(t[0],"size"),d=we(t[1],"size");return{type:"rule",mode:i.mode,shift:o&&we(o,"size").value,width:h.value,height:d.value}},htmlBuilder(s,t){var a=at.makeSpan(["mord","rule"],[],t),i=Pa(s.width,t),o=Pa(s.height,t),h=s.shift?Pa(s.shift,t):0;return a.style.borderRightWidth=Yt(i),a.style.borderTopWidth=Yt(o),a.style.bottom=Yt(h),a.width=i,a.height=o+h,a.depth=-h,a.maxFontSize=o*1.125*t.sizeMultiplier,a},mathmlBuilder(s,t){var a=Pa(s.width,t),i=Pa(s.height,t),o=s.shift?Pa(s.shift,t):0,h=t.color&&t.getColor()||"black",d=new Dt.MathNode("mspace");d.setAttribute("mathbackground",h),d.setAttribute("width",Yt(a)),d.setAttribute("height",Yt(i));var g=new Dt.MathNode("mpadded",[d]);return o>=0?g.setAttribute("height",Yt(o)):(g.setAttribute("height",Yt(o)),g.setAttribute("depth",Yt(-o))),g.setAttribute("voffset",Yt(o)),g}});function $m(s,t,a){for(var i=H0(s,t,!1),o=t.sizeMultiplier/a.sizeMultiplier,h=0;h<i.length;h++){var d=i[h].classes.indexOf("sizing");d<0?Array.prototype.push.apply(i[h].classes,t.sizingClasses(a)):i[h].classes[d+1]==="reset-size"+t.size&&(i[h].classes[d+1]="reset-size"+a.size),i[h].height*=o,i[h].depth*=o}return at.makeFragment(i)}var m6=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ky=(s,t)=>{var a=t.havingSize(s.size);return $m(s.body,a,t)};Jt({type:"sizing",names:m6,props:{numArgs:0,allowedInText:!0},handler:(s,t)=>{var{breakOnTokenText:a,funcName:i,parser:o}=s,h=o.parseExpression(!1,a);return{type:"sizing",mode:o.mode,size:m6.indexOf(i)+1,body:h}},htmlBuilder:Ky,mathmlBuilder:(s,t)=>{var a=t.havingSize(s.size),i=Pn(s.body,a),o=new Dt.MathNode("mstyle",i);return o.setAttribute("mathsize",Yt(a.sizeMultiplier)),o}});Jt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(s,t,a)=>{var{parser:i}=s,o=!1,h=!1,d=a[0]&&we(a[0],"ordgroup");if(d)for(var g="",p=0;p<d.body.length;++p){var b=d.body[p];if(g=b.text,g==="t")o=!0;else if(g==="b")h=!0;else{o=!1,h=!1;break}}else o=!0,h=!0;var E=t[0];return{type:"smash",mode:i.mode,body:E,smashHeight:o,smashDepth:h}},htmlBuilder:(s,t)=>{var a=at.makeSpan([],[We(s.body,t)]);if(!s.smashHeight&&!s.smashDepth)return a;if(s.smashHeight&&(a.height=0,a.children))for(var i=0;i<a.children.length;i++)a.children[i].height=0;if(s.smashDepth&&(a.depth=0,a.children))for(var o=0;o<a.children.length;o++)a.children[o].depth=0;var h=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a}]},t);return at.makeSpan(["mord"],[h],t)},mathmlBuilder:(s,t)=>{var a=new Dt.MathNode("mpadded",[ba(s.body,t)]);return s.smashHeight&&a.setAttribute("height","0px"),s.smashDepth&&a.setAttribute("depth","0px"),a}});Jt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(s,t,a){var{parser:i}=s,o=a[0],h=t[0];return{type:"sqrt",mode:i.mode,body:h,index:o}},htmlBuilder(s,t){var a=We(s.body,t.havingCrampedStyle());a.height===0&&(a.height=t.fontMetrics().xHeight),a=at.wrapFragment(a,t);var i=t.fontMetrics(),o=i.defaultRuleThickness,h=o;t.style.id<oe.TEXT.id&&(h=t.fontMetrics().xHeight);var d=o+h/4,g=a.height+a.depth+d+o,{span:p,ruleWidth:b,advanceWidth:E}=Zr.sqrtImage(g,t),_=p.height-b;_>a.height+a.depth+d&&(d=(d+_-a.height-a.depth)/2);var z=p.height-a.height-d-b;a.style.paddingLeft=Yt(E);var D=at.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:-(a.height+z)},{type:"elem",elem:p},{type:"kern",size:b}]},t);if(s.index){var C=t.havingStyle(oe.SCRIPTSCRIPT),H=We(s.index,C,t),U=.6*(D.height-D.depth),B=at.makeVList({positionType:"shift",positionData:-U,children:[{type:"elem",elem:H}]},t),X=at.makeSpan(["root"],[B]);return at.makeSpan(["mord","sqrt"],[X,D],t)}else return at.makeSpan(["mord","sqrt"],[D],t)},mathmlBuilder(s,t){var{body:a,index:i}=s;return i?new Dt.MathNode("mroot",[ba(a,t),ba(i,t)]):new Dt.MathNode("msqrt",[ba(a,t)])}});var g6={display:oe.DISPLAY,text:oe.TEXT,script:oe.SCRIPT,scriptscript:oe.SCRIPTSCRIPT};Jt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(s,t){var{breakOnTokenText:a,funcName:i,parser:o}=s,h=o.parseExpression(!0,a),d=i.slice(1,i.length-5);return{type:"styling",mode:o.mode,style:d,body:h}},htmlBuilder(s,t){var a=g6[s.style],i=t.havingStyle(a).withFont("");return $m(s.body,i,t)},mathmlBuilder(s,t){var a=g6[s.style],i=t.havingStyle(a),o=Pn(s.body,i),h=new Dt.MathNode("mstyle",o),d={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},g=d[s.style];return h.setAttribute("scriptlevel",g[0]),h.setAttribute("displaystyle",g[1]),h}});var Zy=function(t,a){var i=t.base;if(i)if(i.type==="op"){var o=i.limits&&(a.style.size===oe.DISPLAY.size||i.alwaysHandleSupSub);return o?Dc:null}else if(i.type==="operatorname"){var h=i.alwaysHandleSupSub&&(a.style.size===oe.DISPLAY.size||i.limits);return h?Pm:null}else{if(i.type==="accent")return ta.isCharacterBox(i.base)?u5:null;if(i.type==="horizBrace"){var d=!t.sub;return d===i.isOver?Fm:null}else return null}else return null};ro({type:"supsub",htmlBuilder(s,t){var a=Zy(s,t);if(a)return a(s,t);var{base:i,sup:o,sub:h}=s,d=We(i,t),g,p,b=t.fontMetrics(),E=0,_=0,z=i&&ta.isCharacterBox(i);if(o){var D=t.havingStyle(t.style.sup());g=We(o,D,t),z||(E=d.height-D.fontMetrics().supDrop*D.sizeMultiplier/t.sizeMultiplier)}if(h){var C=t.havingStyle(t.style.sub());p=We(h,C,t),z||(_=d.depth+C.fontMetrics().subDrop*C.sizeMultiplier/t.sizeMultiplier)}var H;t.style===oe.DISPLAY?H=b.sup1:t.style.cramped?H=b.sup3:H=b.sup2;var U=t.sizeMultiplier,B=Yt(.5/b.ptPerEm/U),X=null;if(p){var k=s.base&&s.base.type==="op"&&s.base.name&&(s.base.name==="\\oiint"||s.base.name==="\\oiiint");(d instanceof Zl||k)&&(X=Yt(-d.italic))}var j;if(g&&p){E=Math.max(E,H,g.depth+.25*b.xHeight),_=Math.max(_,b.sub2);var nt=b.defaultRuleThickness,ut=4*nt;if(E-g.depth-(p.height-_)<ut){_=ut-(E-g.depth)+p.height;var st=.8*b.xHeight-(E-g.depth);st>0&&(E+=st,_-=st)}var ot=[{type:"elem",elem:p,shift:_,marginRight:B,marginLeft:X},{type:"elem",elem:g,shift:-E,marginRight:B}];j=at.makeVList({positionType:"individualShift",children:ot},t)}else if(p){_=Math.max(_,b.sub1,p.height-.8*b.xHeight);var St=[{type:"elem",elem:p,marginLeft:X,marginRight:B}];j=at.makeVList({positionType:"shift",positionData:_,children:St},t)}else if(g)E=Math.max(E,H,g.depth+.25*b.xHeight),j=at.makeVList({positionType:"shift",positionData:-E,children:[{type:"elem",elem:g,marginRight:B}]},t);else throw new Error("supsub must have either sup or sub.");var Zt=Ld(d,"right")||"mord";return at.makeSpan([Zt],[d,at.makeSpan(["msupsub"],[j])],t)},mathmlBuilder(s,t){var a=!1,i,o;s.base&&s.base.type==="horizBrace"&&(o=!!s.sup,o===s.base.isOver&&(a=!0,i=s.base.isOver)),s.base&&(s.base.type==="op"||s.base.type==="operatorname")&&(s.base.parentIsSupSub=!0);var h=[ba(s.base,t)];s.sub&&h.push(ba(s.sub,t)),s.sup&&h.push(ba(s.sup,t));var d;if(a)d=i?"mover":"munder";else if(s.sub)if(s.sup){var b=s.base;b&&b.type==="op"&&b.limits&&t.style===oe.DISPLAY||b&&b.type==="operatorname"&&b.alwaysHandleSupSub&&(t.style===oe.DISPLAY||b.limits)?d="munderover":d="msubsup"}else{var p=s.base;p&&p.type==="op"&&p.limits&&(t.style===oe.DISPLAY||p.alwaysHandleSupSub)||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(p.limits||t.style===oe.DISPLAY)?d="munder":d="msub"}else{var g=s.base;g&&g.type==="op"&&g.limits&&(t.style===oe.DISPLAY||g.alwaysHandleSupSub)||g&&g.type==="operatorname"&&g.alwaysHandleSupSub&&(g.limits||t.style===oe.DISPLAY)?d="mover":d="msup"}return new Dt.MathNode(d,h)}});ro({type:"atom",htmlBuilder(s,t){return at.mathsym(s.text,s.mode,t,["m"+s.family])},mathmlBuilder(s,t){var a=new Dt.MathNode("mo",[Jl(s.text,s.mode)]);if(s.family==="bin"){var i=r5(s,t);i==="bold-italic"&&a.setAttribute("mathvariant",i)}else s.family==="punct"?a.setAttribute("separator","true"):(s.family==="open"||s.family==="close")&&a.setAttribute("stretchy","false");return a}});var t7={mi:"italic",mn:"normal",mtext:"normal"};ro({type:"mathord",htmlBuilder(s,t){return at.makeOrd(s,t,"mathord")},mathmlBuilder(s,t){var a=new Dt.MathNode("mi",[Jl(s.text,s.mode,t)]),i=r5(s,t)||"italic";return i!==t7[a.type]&&a.setAttribute("mathvariant",i),a}});ro({type:"textord",htmlBuilder(s,t){return at.makeOrd(s,t,"textord")},mathmlBuilder(s,t){var a=Jl(s.text,s.mode,t),i=r5(s,t)||"normal",o;return s.mode==="text"?o=new Dt.MathNode("mtext",[a]):/[0-9]/.test(s.text)?o=new Dt.MathNode("mn",[a]):s.text==="\\prime"?o=new Dt.MathNode("mo",[a]):o=new Dt.MathNode("mi",[a]),i!==t7[o.type]&&o.setAttribute("mathvariant",i),o}});var bd={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Sd={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ro({type:"spacing",htmlBuilder(s,t){if(Sd.hasOwnProperty(s.text)){var a=Sd[s.text].className||"";if(s.mode==="text"){var i=at.makeOrd(s,t,"textord");return i.classes.push(a),i}else return at.makeSpan(["mspace",a],[at.mathsym(s.text,s.mode,t)],t)}else{if(bd.hasOwnProperty(s.text))return at.makeSpan(["mspace",bd[s.text]],[],t);throw new Rt('Unknown type of space "'+s.text+'"')}},mathmlBuilder(s,t){var a;if(Sd.hasOwnProperty(s.text))a=new Dt.MathNode("mtext",[new Dt.TextNode(" ")]);else{if(bd.hasOwnProperty(s.text))return new Dt.MathNode("mspace");throw new Rt('Unknown type of space "'+s.text+'"')}return a}});var p6=()=>{var s=new Dt.MathNode("mtd",[]);return s.setAttribute("width","50%"),s};ro({type:"tag",mathmlBuilder(s,t){var a=new Dt.MathNode("mtable",[new Dt.MathNode("mtr",[p6(),new Dt.MathNode("mtd",[iu(s.body,t)]),p6(),new Dt.MathNode("mtd",[iu(s.tag,t)])])]);return a.setAttribute("width","100%"),a}});var v6={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},y6={"\\textbf":"textbf","\\textmd":"textmd"},Jy={"\\textit":"textit","\\textup":"textup"},b6=(s,t)=>{var a=s.font;if(a){if(v6[a])return t.withTextFontFamily(v6[a]);if(y6[a])return t.withTextFontWeight(y6[a]);if(a==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Jy[a])};Jt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(s,t){var{parser:a,funcName:i}=s,o=t[0];return{type:"text",mode:a.mode,body:g0(o),font:i}},htmlBuilder(s,t){var a=b6(s,t),i=H0(s.body,a,!0);return at.makeSpan(["mord","text"],i,a)},mathmlBuilder(s,t){var a=b6(s,t);return iu(s.body,a)}});Jt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(s,t){var{parser:a}=s;return{type:"underline",mode:a.mode,body:t[0]}},htmlBuilder(s,t){var a=We(s.body,t),i=at.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,h=at.makeVList({positionType:"top",positionData:a.height,children:[{type:"kern",size:o},{type:"elem",elem:i},{type:"kern",size:3*o},{type:"elem",elem:a}]},t);return at.makeSpan(["mord","underline"],[h],t)},mathmlBuilder(s,t){var a=new Dt.MathNode("mo",[new Dt.TextNode("‾")]);a.setAttribute("stretchy","true");var i=new Dt.MathNode("munder",[ba(s.body,t),a]);return i.setAttribute("accentunder","true"),i}});Jt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(s,t){var{parser:a}=s;return{type:"vcenter",mode:a.mode,body:t[0]}},htmlBuilder(s,t){var a=We(s.body,t),i=t.fontMetrics().axisHeight,o=.5*(a.height-i-(a.depth+i));return at.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:a}]},t)},mathmlBuilder(s,t){return new Dt.MathNode("mpadded",[ba(s.body,t)],["vcenter"])}});Jt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(s,t,a){throw new Rt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(s,t){for(var a=S6(s),i=[],o=t.havingStyle(t.style.text()),h=0;h<a.length;h++){var d=a[h];d==="~"&&(d="\\textasciitilde"),i.push(at.makeSymbol(d,"Typewriter-Regular",s.mode,o,["mord","texttt"]))}return at.makeSpan(["mord","text"].concat(o.sizingClasses(t)),at.tryCombineChars(i),o)},mathmlBuilder(s,t){var a=new Dt.TextNode(S6(s)),i=new Dt.MathNode("mtext",[a]);return i.setAttribute("mathvariant","monospace"),i}});var S6=s=>s.body.replace(/ /g,s.star?"␣":" "),au=Em,e7=`[ \r
|
|
297
|
-
]`,Fy="\\\\[a-zA-Z@]+",Wy="\\\\[^\uD800-\uDFFF]",Iy="("+Fy+")"+e7+"*",Py=`\\\\(
|
|
298
|
-
|[ \r ]+
|
|
299
|
-
?)[ \r ]*`,jd="[̀-ͯ]",$y=new RegExp(jd+"+$"),tb="("+e7+"+)|"+(Py+"|")+"([!-\\[\\]-‧-豈-]"+(jd+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(jd+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Iy)+("|"+Wy+")");class x6{constructor(t,a){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=a,this.tokenRegex=new RegExp(tb,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,a){this.catcodes[t]=a}lex(){var t=this.input,a=this.tokenRegex.lastIndex;if(a===t.length)return new cl("EOF",new In(this,a,a));var i=this.tokenRegex.exec(t);if(i===null||i.index!==a)throw new Rt("Unexpected character: '"+t[a]+"'",new cl(t[a],new In(this,a,a+1)));var o=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[o]===14){var h=t.indexOf(`
|
|
300
|
-
`,this.tokenRegex.lastIndex);return h===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=h+1,this.lex()}return new cl(o,new In(this,a,this.tokenRegex.lastIndex))}}class eb{constructor(t,a){t===void 0&&(t={}),a===void 0&&(a={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=a,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Rt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var a in t)t.hasOwnProperty(a)&&(t[a]==null?delete this.current[a]:this.current[a]=t[a])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,a,i){if(i===void 0&&(i=!1),i){for(var o=0;o<this.undefStack.length;o++)delete this.undefStack[o][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=a)}else{var h=this.undefStack[this.undefStack.length-1];h&&!h.hasOwnProperty(t)&&(h[t]=this.current[t])}a==null?delete this.current[t]:this.current[t]=a}}var ab=Vm;O("\\noexpand",function(s){var t=s.popToken();return s.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});O("\\expandafter",function(s){var t=s.popToken();return s.expandOnce(!0),{tokens:[t],numArgs:0}});O("\\@firstoftwo",function(s){var t=s.consumeArgs(2);return{tokens:t[0],numArgs:0}});O("\\@secondoftwo",function(s){var t=s.consumeArgs(2);return{tokens:t[1],numArgs:0}});O("\\@ifnextchar",function(s){var t=s.consumeArgs(3);s.consumeSpaces();var a=s.future();return t[0].length===1&&t[0][0].text===a.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});O("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");O("\\TextOrMath",function(s){var t=s.consumeArgs(2);return s.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var T6={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};O("\\char",function(s){var t=s.popToken(),a,i="";if(t.text==="'")a=8,t=s.popToken();else if(t.text==='"')a=16,t=s.popToken();else if(t.text==="`")if(t=s.popToken(),t.text[0]==="\\")i=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Rt("\\char` missing argument");i=t.text.charCodeAt(0)}else a=10;if(a){if(i=T6[t.text],i==null||i>=a)throw new Rt("Invalid base-"+a+" digit "+t.text);for(var o;(o=T6[s.future().text])!=null&&o<a;)i*=a,i+=o,s.popToken()}return"\\@char{"+i+"}"});var p5=(s,t,a,i)=>{var o=s.consumeArg().tokens;if(o.length!==1)throw new Rt("\\newcommand's first argument must be a macro name");var h=o[0].text,d=s.isDefined(h);if(d&&!t)throw new Rt("\\newcommand{"+h+"} attempting to redefine "+(h+"; use \\renewcommand"));if(!d&&!a)throw new Rt("\\renewcommand{"+h+"} when command "+h+" does not yet exist; use \\newcommand");var g=0;if(o=s.consumeArg().tokens,o.length===1&&o[0].text==="["){for(var p="",b=s.expandNextToken();b.text!=="]"&&b.text!=="EOF";)p+=b.text,b=s.expandNextToken();if(!p.match(/^\s*[0-9]+\s*$/))throw new Rt("Invalid number of arguments: "+p);g=parseInt(p),o=s.consumeArg().tokens}return d&&i||s.macros.set(h,{tokens:o,numArgs:g}),""};O("\\newcommand",s=>p5(s,!1,!0,!1));O("\\renewcommand",s=>p5(s,!0,!1,!1));O("\\providecommand",s=>p5(s,!0,!0,!0));O("\\message",s=>{var t=s.consumeArgs(1)[0];return console.log(t.reverse().map(a=>a.text).join("")),""});O("\\errmessage",s=>{var t=s.consumeArgs(1)[0];return console.error(t.reverse().map(a=>a.text).join("")),""});O("\\show",s=>{var t=s.popToken(),a=t.text;return console.log(t,s.macros.get(a),au[a],Ca.math[a],Ca.text[a]),""});O("\\bgroup","{");O("\\egroup","}");O("~","\\nobreakspace");O("\\lq","`");O("\\rq","'");O("\\aa","\\r a");O("\\AA","\\r A");O("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");O("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");O("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");O("ℬ","\\mathscr{B}");O("ℰ","\\mathscr{E}");O("ℱ","\\mathscr{F}");O("ℋ","\\mathscr{H}");O("ℐ","\\mathscr{I}");O("ℒ","\\mathscr{L}");O("ℳ","\\mathscr{M}");O("ℛ","\\mathscr{R}");O("ℭ","\\mathfrak{C}");O("ℌ","\\mathfrak{H}");O("ℨ","\\mathfrak{Z}");O("\\Bbbk","\\Bbb{k}");O("·","\\cdotp");O("\\llap","\\mathllap{\\textrm{#1}}");O("\\rlap","\\mathrlap{\\textrm{#1}}");O("\\clap","\\mathclap{\\textrm{#1}}");O("\\mathstrut","\\vphantom{(}");O("\\underbar","\\underline{\\text{#1}}");O("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');O("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");O("\\ne","\\neq");O("≠","\\neq");O("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");O("∉","\\notin");O("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");O("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");O("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");O("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");O("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");O("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");O("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");O("⟂","\\perp");O("‼","\\mathclose{!\\mkern-0.8mu!}");O("∌","\\notni");O("⌜","\\ulcorner");O("⌝","\\urcorner");O("⌞","\\llcorner");O("⌟","\\lrcorner");O("©","\\copyright");O("®","\\textregistered");O("️","\\textregistered");O("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');O("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');O("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');O("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');O("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");O("⋮","\\vdots");O("\\varGamma","\\mathit{\\Gamma}");O("\\varDelta","\\mathit{\\Delta}");O("\\varTheta","\\mathit{\\Theta}");O("\\varLambda","\\mathit{\\Lambda}");O("\\varXi","\\mathit{\\Xi}");O("\\varPi","\\mathit{\\Pi}");O("\\varSigma","\\mathit{\\Sigma}");O("\\varUpsilon","\\mathit{\\Upsilon}");O("\\varPhi","\\mathit{\\Phi}");O("\\varPsi","\\mathit{\\Psi}");O("\\varOmega","\\mathit{\\Omega}");O("\\substack","\\begin{subarray}{c}#1\\end{subarray}");O("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");O("\\boxed","\\fbox{$\\displaystyle{#1}$}");O("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");O("\\implies","\\DOTSB\\;\\Longrightarrow\\;");O("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");O("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");O("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var E6={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};O("\\dots",function(s){var t="\\dotso",a=s.expandAfterFuture().text;return a in E6?t=E6[a]:(a.slice(0,4)==="\\not"||a in Ca.math&&["bin","rel"].includes(Ca.math[a].group))&&(t="\\dotsb"),t});var v5={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};O("\\dotso",function(s){var t=s.future().text;return t in v5?"\\ldots\\,":"\\ldots"});O("\\dotsc",function(s){var t=s.future().text;return t in v5&&t!==","?"\\ldots\\,":"\\ldots"});O("\\cdots",function(s){var t=s.future().text;return t in v5?"\\@cdots\\,":"\\@cdots"});O("\\dotsb","\\cdots");O("\\dotsm","\\cdots");O("\\dotsi","\\!\\cdots");O("\\dotsx","\\ldots\\,");O("\\DOTSI","\\relax");O("\\DOTSB","\\relax");O("\\DOTSX","\\relax");O("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");O("\\,","\\tmspace+{3mu}{.1667em}");O("\\thinspace","\\,");O("\\>","\\mskip{4mu}");O("\\:","\\tmspace+{4mu}{.2222em}");O("\\medspace","\\:");O("\\;","\\tmspace+{5mu}{.2777em}");O("\\thickspace","\\;");O("\\!","\\tmspace-{3mu}{.1667em}");O("\\negthinspace","\\!");O("\\negmedspace","\\tmspace-{4mu}{.2222em}");O("\\negthickspace","\\tmspace-{5mu}{.277em}");O("\\enspace","\\kern.5em ");O("\\enskip","\\hskip.5em\\relax");O("\\quad","\\hskip1em\\relax");O("\\qquad","\\hskip2em\\relax");O("\\tag","\\@ifstar\\tag@literal\\tag@paren");O("\\tag@paren","\\tag@literal{({#1})}");O("\\tag@literal",s=>{if(s.macros.get("\\df@tag"))throw new Rt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});O("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");O("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");O("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");O("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");O("\\newline","\\\\\\relax");O("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var a7=Yt(ir["Main-Regular"][84][1]-.7*ir["Main-Regular"][65][1]);O("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+a7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");O("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+a7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");O("\\hspace","\\@ifstar\\@hspacer\\@hspace");O("\\@hspace","\\hskip #1\\relax");O("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");O("\\ordinarycolon",":");O("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");O("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');O("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');O("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');O("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');O("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');O("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');O("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');O("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');O("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');O("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');O("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');O("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');O("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');O("∷","\\dblcolon");O("∹","\\eqcolon");O("≔","\\coloneqq");O("≕","\\eqqcolon");O("⩴","\\Coloneqq");O("\\ratio","\\vcentcolon");O("\\coloncolon","\\dblcolon");O("\\colonequals","\\coloneqq");O("\\coloncolonequals","\\Coloneqq");O("\\equalscolon","\\eqqcolon");O("\\equalscoloncolon","\\Eqqcolon");O("\\colonminus","\\coloneq");O("\\coloncolonminus","\\Coloneq");O("\\minuscolon","\\eqcolon");O("\\minuscoloncolon","\\Eqcolon");O("\\coloncolonapprox","\\Colonapprox");O("\\coloncolonsim","\\Colonsim");O("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");O("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");O("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");O("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");O("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");O("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");O("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");O("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");O("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");O("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");O("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");O("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");O("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");O("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");O("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");O("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");O("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");O("\\nleqq","\\html@mathml{\\@nleqq}{≰}");O("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");O("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");O("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");O("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");O("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");O("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");O("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");O("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");O("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");O("\\imath","\\html@mathml{\\@imath}{ı}");O("\\jmath","\\html@mathml{\\@jmath}{ȷ}");O("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");O("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");O("⟦","\\llbracket");O("⟧","\\rrbracket");O("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");O("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");O("⦃","\\lBrace");O("⦄","\\rBrace");O("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");O("⦵","\\minuso");O("\\darr","\\downarrow");O("\\dArr","\\Downarrow");O("\\Darr","\\Downarrow");O("\\lang","\\langle");O("\\rang","\\rangle");O("\\uarr","\\uparrow");O("\\uArr","\\Uparrow");O("\\Uarr","\\Uparrow");O("\\N","\\mathbb{N}");O("\\R","\\mathbb{R}");O("\\Z","\\mathbb{Z}");O("\\alef","\\aleph");O("\\alefsym","\\aleph");O("\\Alpha","\\mathrm{A}");O("\\Beta","\\mathrm{B}");O("\\bull","\\bullet");O("\\Chi","\\mathrm{X}");O("\\clubs","\\clubsuit");O("\\cnums","\\mathbb{C}");O("\\Complex","\\mathbb{C}");O("\\Dagger","\\ddagger");O("\\diamonds","\\diamondsuit");O("\\empty","\\emptyset");O("\\Epsilon","\\mathrm{E}");O("\\Eta","\\mathrm{H}");O("\\exist","\\exists");O("\\harr","\\leftrightarrow");O("\\hArr","\\Leftrightarrow");O("\\Harr","\\Leftrightarrow");O("\\hearts","\\heartsuit");O("\\image","\\Im");O("\\infin","\\infty");O("\\Iota","\\mathrm{I}");O("\\isin","\\in");O("\\Kappa","\\mathrm{K}");O("\\larr","\\leftarrow");O("\\lArr","\\Leftarrow");O("\\Larr","\\Leftarrow");O("\\lrarr","\\leftrightarrow");O("\\lrArr","\\Leftrightarrow");O("\\Lrarr","\\Leftrightarrow");O("\\Mu","\\mathrm{M}");O("\\natnums","\\mathbb{N}");O("\\Nu","\\mathrm{N}");O("\\Omicron","\\mathrm{O}");O("\\plusmn","\\pm");O("\\rarr","\\rightarrow");O("\\rArr","\\Rightarrow");O("\\Rarr","\\Rightarrow");O("\\real","\\Re");O("\\reals","\\mathbb{R}");O("\\Reals","\\mathbb{R}");O("\\Rho","\\mathrm{P}");O("\\sdot","\\cdot");O("\\sect","\\S");O("\\spades","\\spadesuit");O("\\sub","\\subset");O("\\sube","\\subseteq");O("\\supe","\\supseteq");O("\\Tau","\\mathrm{T}");O("\\thetasym","\\vartheta");O("\\weierp","\\wp");O("\\Zeta","\\mathrm{Z}");O("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");O("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");O("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");O("\\bra","\\mathinner{\\langle{#1}|}");O("\\ket","\\mathinner{|{#1}\\rangle}");O("\\braket","\\mathinner{\\langle{#1}\\rangle}");O("\\Bra","\\left\\langle#1\\right|");O("\\Ket","\\left|#1\\right\\rangle");var n7=s=>t=>{var a=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.consumeArg().tokens,h=t.consumeArg().tokens,d=t.macros.get("|"),g=t.macros.get("\\|");t.macros.beginGroup();var p=_=>z=>{s&&(z.macros.set("|",d),o.length&&z.macros.set("\\|",g));var D=_;if(!_&&o.length){var C=z.future();C.text==="|"&&(z.popToken(),D=!0)}return{tokens:D?o:i,numArgs:0}};t.macros.set("|",p(!1)),o.length&&t.macros.set("\\|",p(!0));var b=t.consumeArg().tokens,E=t.expandTokens([...h,...b,...a]);return t.macros.endGroup(),{tokens:E.reverse(),numArgs:0}};O("\\bra@ket",n7(!1));O("\\bra@set",n7(!0));O("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");O("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");O("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");O("\\angln","{\\angl n}");O("\\blue","\\textcolor{##6495ed}{#1}");O("\\orange","\\textcolor{##ffa500}{#1}");O("\\pink","\\textcolor{##ff00af}{#1}");O("\\red","\\textcolor{##df0030}{#1}");O("\\green","\\textcolor{##28ae7b}{#1}");O("\\gray","\\textcolor{gray}{#1}");O("\\purple","\\textcolor{##9d38bd}{#1}");O("\\blueA","\\textcolor{##ccfaff}{#1}");O("\\blueB","\\textcolor{##80f6ff}{#1}");O("\\blueC","\\textcolor{##63d9ea}{#1}");O("\\blueD","\\textcolor{##11accd}{#1}");O("\\blueE","\\textcolor{##0c7f99}{#1}");O("\\tealA","\\textcolor{##94fff5}{#1}");O("\\tealB","\\textcolor{##26edd5}{#1}");O("\\tealC","\\textcolor{##01d1c1}{#1}");O("\\tealD","\\textcolor{##01a995}{#1}");O("\\tealE","\\textcolor{##208170}{#1}");O("\\greenA","\\textcolor{##b6ffb0}{#1}");O("\\greenB","\\textcolor{##8af281}{#1}");O("\\greenC","\\textcolor{##74cf70}{#1}");O("\\greenD","\\textcolor{##1fab54}{#1}");O("\\greenE","\\textcolor{##0d923f}{#1}");O("\\goldA","\\textcolor{##ffd0a9}{#1}");O("\\goldB","\\textcolor{##ffbb71}{#1}");O("\\goldC","\\textcolor{##ff9c39}{#1}");O("\\goldD","\\textcolor{##e07d10}{#1}");O("\\goldE","\\textcolor{##a75a05}{#1}");O("\\redA","\\textcolor{##fca9a9}{#1}");O("\\redB","\\textcolor{##ff8482}{#1}");O("\\redC","\\textcolor{##f9685d}{#1}");O("\\redD","\\textcolor{##e84d39}{#1}");O("\\redE","\\textcolor{##bc2612}{#1}");O("\\maroonA","\\textcolor{##ffbde0}{#1}");O("\\maroonB","\\textcolor{##ff92c6}{#1}");O("\\maroonC","\\textcolor{##ed5fa6}{#1}");O("\\maroonD","\\textcolor{##ca337c}{#1}");O("\\maroonE","\\textcolor{##9e034e}{#1}");O("\\purpleA","\\textcolor{##ddd7ff}{#1}");O("\\purpleB","\\textcolor{##c6b9fc}{#1}");O("\\purpleC","\\textcolor{##aa87ff}{#1}");O("\\purpleD","\\textcolor{##7854ab}{#1}");O("\\purpleE","\\textcolor{##543b78}{#1}");O("\\mintA","\\textcolor{##f5f9e8}{#1}");O("\\mintB","\\textcolor{##edf2df}{#1}");O("\\mintC","\\textcolor{##e0e5cc}{#1}");O("\\grayA","\\textcolor{##f6f7f7}{#1}");O("\\grayB","\\textcolor{##f0f1f2}{#1}");O("\\grayC","\\textcolor{##e3e5e6}{#1}");O("\\grayD","\\textcolor{##d6d8da}{#1}");O("\\grayE","\\textcolor{##babec2}{#1}");O("\\grayF","\\textcolor{##888d93}{#1}");O("\\grayG","\\textcolor{##626569}{#1}");O("\\grayH","\\textcolor{##3b3e40}{#1}");O("\\grayI","\\textcolor{##21242c}{#1}");O("\\kaBlue","\\textcolor{##314453}{#1}");O("\\kaGreen","\\textcolor{##71B307}{#1}");var l7={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class nb{constructor(t,a,i){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=a,this.expansionCount=0,this.feed(t),this.macros=new eb(ab,a.macros),this.mode=i,this.stack=[]}feed(t){this.lexer=new x6(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var a,i,o;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;a=this.popToken(),{tokens:o,end:i}=this.consumeArg(["]"])}else({tokens:o,start:a,end:i}=this.consumeArg());return this.pushToken(new cl("EOF",i.loc)),this.pushTokens(o),new cl("",In.range(a,i))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var a=[],i=t&&t.length>0;i||this.consumeSpaces();var o=this.future(),h,d=0,g=0;do{if(h=this.popToken(),a.push(h),h.text==="{")++d;else if(h.text==="}"){if(--d,d===-1)throw new Rt("Extra }",h)}else if(h.text==="EOF")throw new Rt("Unexpected end of input in a macro argument, expected '"+(t&&i?t[g]:"}")+"'",h);if(t&&i)if((d===0||d===1&&t[g]==="{")&&h.text===t[g]){if(++g,g===t.length){a.splice(-g,g);break}}else g=0}while(d!==0||i);return o.text==="{"&&a[a.length-1].text==="}"&&(a.pop(),a.shift()),a.reverse(),{tokens:a,start:o,end:h}}consumeArgs(t,a){if(a){if(a.length!==t+1)throw new Rt("The length of delimiters doesn't match the number of args!");for(var i=a[0],o=0;o<i.length;o++){var h=this.popToken();if(i[o]!==h.text)throw new Rt("Use of the macro doesn't match its definition",h)}}for(var d=[],g=0;g<t;g++)d.push(this.consumeArg(a&&a[g+1]).tokens);return d}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Rt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var a=this.popToken(),i=a.text,o=a.noexpand?null:this._getExpansion(i);if(o==null||t&&o.unexpandable){if(t&&o==null&&i[0]==="\\"&&!this.isDefined(i))throw new Rt("Undefined control sequence: "+i);return this.pushToken(a),!1}this.countExpansion(1);var h=o.tokens,d=this.consumeArgs(o.numArgs,o.delimiters);if(o.numArgs){h=h.slice();for(var g=h.length-1;g>=0;--g){var p=h[g];if(p.text==="#"){if(g===0)throw new Rt("Incomplete placeholder at end of macro body",p);if(p=h[--g],p.text==="#")h.splice(g+1,1);else if(/^[1-9]$/.test(p.text))h.splice(g,2,...d[+p.text-1]);else throw new Rt("Not a valid argument number",p)}}}return this.pushTokens(h),h.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new cl(t)]):void 0}expandTokens(t){var a=[],i=this.stack.length;for(this.pushTokens(t);this.stack.length>i;)if(this.expandOnce(!0)===!1){var o=this.stack.pop();o.treatAsRelax&&(o.noexpand=!1,o.treatAsRelax=!1),a.push(o)}return this.countExpansion(a.length),a}expandMacroAsText(t){var a=this.expandMacro(t);return a&&a.map(i=>i.text).join("")}_getExpansion(t){var a=this.macros.get(t);if(a==null)return a;if(t.length===1){var i=this.lexer.catcodes[t];if(i!=null&&i!==13)return}var o=typeof a=="function"?a(this):a;if(typeof o=="string"){var h=0;if(o.indexOf("#")!==-1)for(var d=o.replace(/##/g,"");d.indexOf("#"+(h+1))!==-1;)++h;for(var g=new x6(o,this.settings),p=[],b=g.lex();b.text!=="EOF";)p.push(b),b=g.lex();p.reverse();var E={tokens:p,numArgs:h};return E}return o}isDefined(t){return this.macros.has(t)||au.hasOwnProperty(t)||Ca.math.hasOwnProperty(t)||Ca.text.hasOwnProperty(t)||l7.hasOwnProperty(t)}isExpandable(t){var a=this.macros.get(t);return a!=null?typeof a=="string"||typeof a=="function"||!a.unexpandable:au.hasOwnProperty(t)&&!au[t].primitive}}var _6=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,G2=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),xd={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},M6={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class s4{constructor(t,a){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new nb(t,a,this.mode),this.settings=a,this.leftrightDepth=0}expect(t,a){if(a===void 0&&(a=!0),this.fetch().text!==t)throw new Rt("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());a&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var a=this.nextToken;this.consume(),this.gullet.pushToken(new cl("}")),this.gullet.pushTokens(t);var i=this.parseExpression(!1);return this.expect("}"),this.nextToken=a,i}parseExpression(t,a){for(var i=[];;){this.mode==="math"&&this.consumeSpaces();var o=this.fetch();if(s4.endOfExpression.indexOf(o.text)!==-1||a&&o.text===a||t&&au[o.text]&&au[o.text].infix)break;var h=this.parseAtom(a);if(h){if(h.type==="internal")continue}else break;i.push(h)}return this.mode==="text"&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(t){for(var a=-1,i,o=0;o<t.length;o++)if(t[o].type==="infix"){if(a!==-1)throw new Rt("only one infix operator per group",t[o].token);a=o,i=t[o].replaceWith}if(a!==-1&&i){var h,d,g=t.slice(0,a),p=t.slice(a+1);g.length===1&&g[0].type==="ordgroup"?h=g[0]:h={type:"ordgroup",mode:this.mode,body:g},p.length===1&&p[0].type==="ordgroup"?d=p[0]:d={type:"ordgroup",mode:this.mode,body:p};var b;return i==="\\\\abovefrac"?b=this.callFunction(i,[h,t[a],d],[]):b=this.callFunction(i,[h,d],[]),[b]}else return t}handleSupSubscript(t){var a=this.fetch(),i=a.text;this.consume(),this.consumeSpaces();var o;do{var h;o=this.parseGroup(t)}while(((h=o)==null?void 0:h.type)==="internal");if(!o)throw new Rt("Expected group after '"+i+"'",a);return o}formatUnsupportedCmd(t){for(var a=[],i=0;i<t.length;i++)a.push({type:"textord",mode:"text",text:t[i]});var o={type:"text",mode:this.mode,body:a},h={type:"color",mode:this.mode,color:this.settings.errorColor,body:[o]};return h}parseAtom(t){var a=this.parseGroup("atom",t);if(a?.type==="internal"||this.mode==="text")return a;for(var i,o;;){this.consumeSpaces();var h=this.fetch();if(h.text==="\\limits"||h.text==="\\nolimits"){if(a&&a.type==="op"){var d=h.text==="\\limits";a.limits=d,a.alwaysHandleSupSub=!0}else if(a&&a.type==="operatorname")a.alwaysHandleSupSub&&(a.limits=h.text==="\\limits");else throw new Rt("Limit controls must follow a math operator",h);this.consume()}else if(h.text==="^"){if(i)throw new Rt("Double superscript",h);i=this.handleSupSubscript("superscript")}else if(h.text==="_"){if(o)throw new Rt("Double subscript",h);o=this.handleSupSubscript("subscript")}else if(h.text==="'"){if(i)throw new Rt("Double superscript",h);var g={type:"textord",mode:this.mode,text:"\\prime"},p=[g];for(this.consume();this.fetch().text==="'";)p.push(g),this.consume();this.fetch().text==="^"&&p.push(this.handleSupSubscript("superscript")),i={type:"ordgroup",mode:this.mode,body:p}}else if(G2[h.text]){var b=_6.test(h.text),E=[];for(E.push(new cl(G2[h.text])),this.consume();;){var _=this.fetch().text;if(!G2[_]||_6.test(_)!==b)break;E.unshift(new cl(G2[_])),this.consume()}var z=this.subparse(E);b?o={type:"ordgroup",mode:"math",body:z}:i={type:"ordgroup",mode:"math",body:z}}else break}return i||o?{type:"supsub",mode:this.mode,base:a,sup:i,sub:o}:a}parseFunction(t,a){var i=this.fetch(),o=i.text,h=au[o];if(!h)return null;if(this.consume(),a&&a!=="atom"&&!h.allowedInArgument)throw new Rt("Got function '"+o+"' with no arguments"+(a?" as "+a:""),i);if(this.mode==="text"&&!h.allowedInText)throw new Rt("Can't use function '"+o+"' in text mode",i);if(this.mode==="math"&&h.allowedInMath===!1)throw new Rt("Can't use function '"+o+"' in math mode",i);var{args:d,optArgs:g}=this.parseArguments(o,h);return this.callFunction(o,d,g,i,t)}callFunction(t,a,i,o,h){var d={funcName:t,parser:this,token:o,breakOnTokenText:h},g=au[t];if(g&&g.handler)return g.handler(d,a,i);throw new Rt("No function handler for "+t)}parseArguments(t,a){var i=a.numArgs+a.numOptionalArgs;if(i===0)return{args:[],optArgs:[]};for(var o=[],h=[],d=0;d<i;d++){var g=a.argTypes&&a.argTypes[d],p=d<a.numOptionalArgs;(a.primitive&&g==null||a.type==="sqrt"&&d===1&&h[0]==null)&&(g="primitive");var b=this.parseGroupOfType("argument to '"+t+"'",g,p);if(p)h.push(b);else if(b!=null)o.push(b);else throw new Rt("Null argument, please report this as a bug")}return{args:o,optArgs:h}}parseGroupOfType(t,a,i){switch(a){case"color":return this.parseColorGroup(i);case"size":return this.parseSizeGroup(i);case"url":return this.parseUrlGroup(i);case"math":case"text":return this.parseArgumentGroup(i,a);case"hbox":{var o=this.parseArgumentGroup(i,"text");return o!=null?{type:"styling",mode:o.mode,body:[o],style:"text"}:null}case"raw":{var h=this.parseStringGroup("raw",i);return h!=null?{type:"raw",mode:"text",string:h.text}:null}case"primitive":{if(i)throw new Rt("A primitive argument cannot be optional");var d=this.parseGroup(t);if(d==null)throw new Rt("Expected group as "+t,this.fetch());return d}case"original":case null:case void 0:return this.parseArgumentGroup(i);default:throw new Rt("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,a){var i=this.gullet.scanArgument(a);if(i==null)return null;for(var o="",h;(h=this.fetch()).text!=="EOF";)o+=h.text,this.consume();return this.consume(),i.text=o,i}parseRegexGroup(t,a){for(var i=this.fetch(),o=i,h="",d;(d=this.fetch()).text!=="EOF"&&t.test(h+d.text);)o=d,h+=o.text,this.consume();if(h==="")throw new Rt("Invalid "+a+": '"+i.text+"'",i);return i.range(o,h)}parseColorGroup(t){var a=this.parseStringGroup("color",t);if(a==null)return null;var i=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(a.text);if(!i)throw new Rt("Invalid color: '"+a.text+"'",a);var o=i[0];return/^[0-9a-f]{6}$/i.test(o)&&(o="#"+o),{type:"color-token",mode:this.mode,color:o}}parseSizeGroup(t){var a,i=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?a=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):a=this.parseStringGroup("size",t),!a)return null;!t&&a.text.length===0&&(a.text="0pt",i=!0);var o=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(a.text);if(!o)throw new Rt("Invalid size: '"+a.text+"'",a);var h={number:+(o[1]+o[2]),unit:o[3]};if(!mm(h))throw new Rt("Invalid unit: '"+h.unit+"'",a);return{type:"size",mode:this.mode,value:h,isBlank:i}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var a=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),a==null)return null;var i=a.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}}parseArgumentGroup(t,a){var i=this.gullet.scanArgument(t);if(i==null)return null;var o=this.mode;a&&this.switchMode(a),this.gullet.beginGroup();var h=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var d={type:"ordgroup",mode:this.mode,loc:i.loc,body:h};return a&&this.switchMode(o),d}parseGroup(t,a){var i=this.fetch(),o=i.text,h;if(o==="{"||o==="\\begingroup"){this.consume();var d=o==="{"?"}":"\\endgroup";this.gullet.beginGroup();var g=this.parseExpression(!1,d),p=this.fetch();this.expect(d),this.gullet.endGroup(),h={type:"ordgroup",mode:this.mode,loc:In.range(i,p),body:g,semisimple:o==="\\begingroup"||void 0}}else if(h=this.parseFunction(a,t)||this.parseSymbol(),h==null&&o[0]==="\\"&&!l7.hasOwnProperty(o)){if(this.settings.throwOnError)throw new Rt("Undefined control sequence: "+o,i);h=this.formatUnsupportedCmd(o),this.consume()}return h}formLigatures(t){for(var a=t.length-1,i=0;i<a;++i){var o=t[i],h=o.text;h==="-"&&t[i+1].text==="-"&&(i+1<a&&t[i+2].text==="-"?(t.splice(i,3,{type:"textord",mode:"text",loc:In.range(o,t[i+2]),text:"---"}),a-=2):(t.splice(i,2,{type:"textord",mode:"text",loc:In.range(o,t[i+1]),text:"--"}),a-=1)),(h==="'"||h==="`")&&t[i+1].text===h&&(t.splice(i,2,{type:"textord",mode:"text",loc:In.range(o,t[i+1]),text:h+h}),a-=1)}}parseSymbol(){var t=this.fetch(),a=t.text;if(/^\\verb[^a-zA-Z]/.test(a)){this.consume();var i=a.slice(5),o=i.charAt(0)==="*";if(o&&(i=i.slice(1)),i.length<2||i.charAt(0)!==i.slice(-1))throw new Rt(`\\verb assertion failed --
|
|
301
|
-
please report what input caused this bug`);return i=i.slice(1,-1),{type:"verb",mode:"text",body:i,star:o}}M6.hasOwnProperty(a[0])&&!Ca[this.mode][a[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+a[0]+'" used in math mode',t),a=M6[a[0]]+a.slice(1));var h=$y.exec(a);h&&(a=a.substring(0,h.index),a==="i"?a="ı":a==="j"&&(a="ȷ"));var d;if(Ca[this.mode][a]){this.settings.strict&&this.mode==="math"&&qd.indexOf(a)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+a[0]+'" used in math mode',t);var g=Ca[this.mode][a].group,p=In.range(t),b;if(Qv.hasOwnProperty(g)){var E=g;b={type:"atom",mode:this.mode,family:E,loc:p,text:a}}else b={type:g,mode:this.mode,loc:p,text:a};d=b}else if(a.charCodeAt(0)>=128)this.settings.strict&&(dm(a.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+a[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+a[0]+'"'+(" ("+a.charCodeAt(0)+")"),t)),d={type:"textord",mode:"text",loc:In.range(t),text:a};else return null;if(this.consume(),h)for(var _=0;_<h[0].length;_++){var z=h[0][_];if(!xd[z])throw new Rt("Unknown accent ' "+z+"'",t);var D=xd[z][this.mode]||xd[z].text;if(!D)throw new Rt("Accent "+z+" unsupported in "+this.mode+" mode",t);d={type:"accent",mode:this.mode,loc:In.range(t),label:D,isStretchy:!1,isShifty:!0,base:d}}return d}}s4.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var y5=function(t,a){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new s4(t,a);delete i.gullet.macros.current["\\df@tag"];var o=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!a.displayMode)throw new Rt("\\tag works only in display equations");o=[{type:"tag",mode:"text",body:o,tag:i.subparse([new cl("\\df@tag")])}]}return o},i7=function(t,a,i){a.textContent="";var o=b5(t,i).toNode();a.appendChild(o)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),i7=function(){throw new Rt("KaTeX doesn't work in quirks mode.")});var lb=function(t,a){var i=b5(t,a).toMarkup();return i},ib=function(t,a){var i=new t5(a);return y5(t,i)},r7=function(t,a,i){if(i.throwOnError||!(t instanceof Rt))throw t;var o=at.makeSpan(["katex-error"],[new Zl(a)]);return o.setAttribute("title",t.toString()),o.setAttribute("style","color:"+i.errorColor),o},b5=function(t,a){var i=new t5(a);try{var o=y5(t,i);return my(o,t,i)}catch(h){return r7(h,t,i)}},rb=function(t,a){var i=new t5(a);try{var o=y5(t,i);return gy(o,t,i)}catch(h){return r7(h,t,i)}},sb="0.16.25",ub={Span:Ch,Anchor:n5,SymbolNode:Zl,SvgNode:Jr,PathNode:lu,LineNode:Ud},s7={version:sb,render:i7,renderToString:lb,ParseError:Rt,SETTINGS_SCHEMA:k2,__parse:ib,__renderToDomTree:b5,__renderToHTMLTree:rb,__setFontMetrics:Uv,__defineSymbol:x,__defineFunction:Jt,__defineMacro:O,__domTree:ub};const lr=(s,t=20)=>{try{return s7.renderToString(s,{throwOnError:!1,displayMode:!1,output:"html",strict:!1,fontSize:`${t}px`})}catch(a){return console.error("LaTeX rendering error:",a),`<span style="color: red;">LaTeX error: ${s}</span>`}},zc=(s,t)=>{const a=document.createElement("div");a.style.position="absolute",a.style.visibility="hidden",a.style.display="inline-block",a.style.fontSize=`${t}px`,a.style.padding="0",a.style.margin="0",a.style.lineHeight="1",document.body.appendChild(a);try{s7.render(s,a,{throwOnError:!1,displayMode:!1,output:"html",strict:!1});const i=a.offsetWidth+20,o=a.offsetHeight+10;return{width:i,height:o}}catch(i){return console.error("LaTeX measurement error:",i),{width:200,height:50}}finally{document.body.removeChild(a)}},ob=(s,t,a,i,o)=>{const[h,d]=bt.useState(null),[g,p]=bt.useState(""),[b,E]=bt.useState(!1),[_,z]=bt.useState("E = mc^2"),D=bt.useCallback(U=>{const B=s.find(X=>X.id===U);B&&(B.type==="text"||B.type==="latex")&&(t(s.map(X=>({...X,isEditing:X.id===U,isSelected:X.id===U}))),d(U),p(B.text||B.latex||""),E(!1),z(B.latex||"E = mc^2"))},[s,t]),C=bt.useCallback((U=!0)=>{if(h){const B=s.map(X=>{if(X.id===h){const k=g||"E = mc^2";if(X.type==="latex"){const j=X.fontSize||i,nt=lr(k,j);return zc(k,j),{...X,latex:k,latexRendered:nt,isEditing:!1,text:""}}else{const nt=X.fontSize||i,ut=k.split(`
|
|
302
|
-
`).length||1,st=Math.max(ut*nt*1.2,50);return{...X,text:k,isEditing:!1,height:st}}}return{...X,isEditing:!1,isSelected:!1}});return t(B),b&&U&&a(B),d(null),p(""),E(!1),!0}return!1},[h,s,g,b,i,t,a]),H=bt.useCallback(U=>{if(h){p(U),E(!0),z(U);const B=s.map(X=>{if(X.id===h){const k={...X,text:U};if(X.type==="latex"){k.latex=U;const j=X.fontSize||i,nt=lr(U,j);k.latexRendered=nt;const ut=zc(U,j);k.width=ut.width,k.height=ut.height}else{const nt=X.fontSize||i,ut=U.split(`
|
|
303
|
-
`).length||1,st=Math.max(ut*nt*1.2,50);return{...k,height:st}}}return X});t(B)}},[h,s,i,t]);return{editingTextId:h,tempText:g,latexPreview:_,setTempText:p,setEditingTextId:d,setLatexPreview:z,startTextEditing:D,finishTextEditing:C,updateTextInRealTime:H,setIsTextChanged:E}},cb=(s,t,a,i)=>{const o=bt.useCallback((g,p,b)=>{if(g){const E=s.map(_=>{if(_.id===g&&(_.type==="text"||_.type==="latex")){const z={..._,[p]:b};if(p==="fontWeight"||p==="fontStyle"){const D=p==="fontWeight"?b:_.fontWeight||"normal",C=p==="fontStyle"?b:_.fontStyle||"normal";z.fontWeight=D,z.fontStyle=C}if(p==="fontSize"){const D=parseInt(b)||20;if(_.type==="text"){const C=D,H=(_.text||"").split(`
|
|
304
|
-
`).length||1,U=Math.max(H*C*1.2,50);z.height=U}else if(_.type==="latex"){const C=zc(_.latex||"",D);z.width=C.width,z.height=C.height;const H=lr(_.latex||"",D);z.latexRendered=H}}if(_.type==="latex"&&p==="stroke"){const D=lr(_.latex||"",_.fontSize||i);z.latexRendered=D}return z}return _});t(E),a(E)}},[s,t,a,i]),h=bt.useCallback((g,p)=>{if(!g)return;const b=s.find(z=>z.id===g);if(!b||b.type!=="text")return;let E;const _=b.textDecoration||"none";switch(p){case"bold":const z=b.fontWeight==="bold"?"normal":"bold";o(g,"fontWeight",z);break;case"italic":const D=b.fontStyle==="italic"?"normal":"italic";o(g,"fontStyle",D);break;case"underline":_.includes("underline")?_==="underline"?E="none":_==="underline line-through"?E="line-through":(E=_.replace("underline","").trim(),E===""&&(E="none")):_==="none"?E="underline":_==="line-through"?E="underline line-through":E=(_+" underline").trim(),o(g,"textDecoration",E);break;case"strikethrough":_.includes("line-through")?_==="line-through"?E="none":_==="underline line-through"?E="underline":(E=_.replace("line-through","").trim(),E===""&&(E="none")):_==="none"?E="line-through":_==="underline"?E="underline line-through":E=(_+" line-through").trim(),o(g,"textDecoration",E);break}},[s,o]),d=bt.useCallback((g,p,b)=>{if(!g)return;const E=s.find(_=>_.id===g);if(E&&(E.type==="text"||E.type==="latex")){const _=E.fontSize||i,z=b?2:1,D=p==="up"?_+z:Math.max(1,_-z);o(g,"fontSize",D)}},[s,i,o]);return{updateSelectedTextProperty:o,toggleTextStyle:h,changeFontSizeWithStep:d}},hb=(s,t,a)=>({insertLatexSymbol:bt.useCallback(o=>{if(s.current&&t){const h=s.current,d=h.selectionStart,g=h.selectionEnd;let p=d,b=o;if(o.includes("\\frac{}{}")){const C=o.indexOf("{")+1;p=d+C}else if(o.includes("\\sqrt[]{}")){const C=o.indexOf("{",o.indexOf("[]")+2)+1;p=d+C}else if(o.includes("\\sqrt{}")){const C=o.indexOf("{")+1;p=d+C}else if(o.includes("^{}")){const C=o.indexOf("^{}")+2;p=d+C}else if(o.includes("_{}")){const C=o.indexOf("_{}")+2;p=d+C}else if(o.includes("\\sum_{}^{}")){const C=o.indexOf("_{}")+2;p=d+C}else if(o.includes("\\int_{}^{}")){const C=o.indexOf("_{}")+2;p=d+C}else if(o.includes("\\lim_{}")){const C=o.indexOf("{")+1;p=d+C}else if(o.includes("\\left( \\right)")){const C=o.indexOf("\\left(")+6;p=d+C,b="\\left( \\right)"}else if(o.includes("\\left[ \\right]")){const C=o.indexOf("\\left[")+6;p=d+C,b="\\left[ \\right]"}else if(o.includes("\\left\\{ \\right\\}")){const C=o.indexOf("\\left\\{")+7;p=d+C,b="\\left\\{ \\right\\}"}else if(o.includes("\\left| \\right|")){const C=o.indexOf("\\left|")+6;p=d+C,b="\\left| \\right|"}const E=h.value,_=E.substring(0,d),z=E.substring(g),D=_+b+z;a(D),setTimeout(()=>{if(s.current){const C=d+p;s.current.focus(),s.current.setSelectionRange(C,C)}},0)}},[s,t,a])}),Vd=s=>{if(s.length===0)return{x:0,y:0,width:0,height:0};let t=s[0],a=s[0],i=s[1],o=s[1];for(let h=0;h<s.length;h+=2){const d=s[h],g=s[h+1];d<t&&(t=d),d>a&&(a=d),g<i&&(i=g),g>o&&(o=g)}return{x:t,y:i,width:a-t,height:o-i}},fb=(s,t,a)=>{const i=[];for(let o=0;o<s.length;o+=2){const h=s[o],d=s[o+1],g=t.width!==0?(h-t.x)/t.width:0,p=t.height!==0?(d-t.y)/t.height:0;i.push(a.x+g*a.width),i.push(a.y+p*a.height)}return i},A6=(s,t,a)=>{const i=s.x-t.x,o=s.y-t.y,h=a.x-t.x,d=a.y-t.y,g=i*h+o*d,p=h*h+d*d;let b=-1;p!==0&&(b=g/p);let E,_;b<0?(E=t.x,_=t.y):b>1?(E=a.x,_=a.y):(E=t.x+b*h,_=t.y+b*d);const z=s.x-E,D=s.y-_;return Math.sqrt(z*z+D*D)},Td=(s,t)=>{if(s.type==="path"||s.type==="highlighter"){if(!s.points||s.points.length<4)return!1;for(let a=0;a<s.points.length-2;a+=2){const i=s.points[a],o=s.points[a+1],h=s.points[a+2],d=s.points[a+3];if(A6(t,{x:i,y:o},{x:h,y:d})<10)return!0}return!1}if(s.type==="rectangle"||s.type==="text"||s.type==="latex"){const a=Math.min(s.x,s.x+s.width),i=Math.min(s.y,s.y+s.height),o=Math.abs(s.width),h=Math.abs(s.height);return t.x>=a&&t.x<=a+o&&t.y>=i&&t.y<=i+h}if(s.type==="ellipse"){const a=s.x+s.width/2,i=s.y+s.height/2,o=Math.abs(s.width)/2,h=Math.abs(s.height)/2,d=t.x-a,g=t.y-i;return d*d/(o*o)+g*g/(h*h)<=1}if(s.type==="line"&&s.points){const[a,i,o,h]=s.points;return A6(t,{x:a,y:i},{x:o,y:h})<10}return!1},db=(s,t)=>{const a=s.width>=0?s.x:s.x+s.width,i=s.height>=0?s.y:s.y+s.height,o=Math.abs(s.width),h=Math.abs(s.height),d=t.width>=0?t.x:t.x+t.width,g=t.height>=0?t.y:t.y+t.height,p=Math.abs(t.width),b=Math.abs(t.height);return d>=a&&g>=i&&d+p<=a+o&&g+b<=i+h},mb=(s,t,a,i,o,h,d,g,p,b,E,_,z,D,C,H,U,B)=>{const[X,k]=bt.useState(!1),[j,nt]=bt.useState({x:0,y:0}),[ut,st]=bt.useState({x:0,y:0}),[ot,St]=bt.useState([]),[Zt,qt]=bt.useState(new Set),[Nt,$t]=bt.useState(null),Vt=bt.useCallback((mt,Lt,xt,G)=>{const Bt=xt>=0?mt:mt+xt,wt=G>=0?Lt:Lt+G,Mt=Math.abs(xt),Xt=Math.abs(G),It=Math.max(0,Math.min(Bt,6e3-Mt)),Pt=Math.max(0,Math.min(wt,2500-Xt));let ze=It,re=Pt,me=xt,Je=G;return xt<0&&(ze=It-Mt),G<0&&(re=Pt-Xt),{x:ze,y:re,width:me,height:Je}},[]),Et=bt.useCallback(mt=>{const Lt=mt.target.getStage(),xt=Lt.getPointerPosition(),G=Lt.container(),I=xt.x/C+G.scrollLeft/C,gt=xt.y/C+G.scrollTop/C,Bt={x:I,y:gt};if(!(Bt.x<0||Bt.x>6e3||Bt.y<0||Bt.y>2500)){if(mt.target.attrs.name&&mt.target.attrs.name.startsWith("anchor-")){const wt=mt.target.attrs.shapeId,Mt=s.find(Xt=>Xt.id===wt);if(Mt&&i==="select"){const Xt=mt.target.attrs.name.replace("anchor-","");let It=Mt.points,Pt={x:Mt.x,y:Mt.y,width:Mt.width,height:Mt.height};(Mt.type==="path"||Mt.type==="line"||Mt.type==="highlighter")&&Mt.points&&(It=[...Mt.points],Pt=Vd(Mt.points)),z({isTransforming:!0,shapeId:wt,startWidth:Mt.width,startHeight:Mt.height,startX:Mt.x,startY:Mt.y,startMouseX:Bt.x,startMouseY:Bt.y,anchor:Xt,originalPoints:It,originalBbox:Pt,startFontSize:Mt.fontSize||d})}return}if(mt.target===Lt){if(i==="select"&&(E(null),t(s.map(wt=>({...wt,isSelected:!1,isEditing:!1})))),i==="ocr-selection"){B(),U(null),_({isDrawing:!0,startX:I,startY:gt,currentShape:{id:`ocr_${Date.now()}`,type:"rectangle",x:I,y:gt,width:0,height:0,stroke:"#007bff",strokeWidth:2,dash:[5,5],opacity:1}});return}if(i==="text"||i==="latex"){const wt=i==="latex";let Mt=wt?"E = mc^2":"Text";const Xt=d;let It;if(wt){const ze=zc(Mt,Xt);It={id:`${wt?"latex":"text"}_${Date.now()}`,type:wt?"latex":"text",x:I,y:gt,width:ze.width,height:ze.height,stroke:o,strokeWidth:1,text:wt?"":"Text",latex:wt?Mt:void 0,latexRendered:wt?lr(Mt,Xt):void 0,fontSize:Xt,fontFamily:g,textAlign:p,fontWeight:"normal",fontStyle:"normal",textDecoration:"none",isSelected:!0,isEditing:!1,isLatex:wt,scaleX:1,scaleY:1,rotation:0}}else{const ze=Xt,re=Mt.split(`
|
|
305
|
-
`).length||1,me=Math.max(re*ze*1.2,50);It={id:`${wt?"latex":"text"}_${Date.now()}`,type:wt?"latex":"text",x:I,y:gt,width:200,height:me,stroke:o,strokeWidth:1,text:Mt,latex:void 0,latexRendered:void 0,fontSize:Xt,fontFamily:g,textAlign:p,fontWeight:"normal",fontStyle:"normal",textDecoration:"none",isSelected:!0,isEditing:!1,isLatex:wt,scaleX:1,scaleY:1,rotation:0}}if(wt){const ze=Vt(It.x,It.y,It.width,It.height);It.x=ze.x,It.y=ze.y,It.width=ze.width,It.height=ze.height}const Pt=[...s,It];t(Pt),a(Pt),setTimeout(()=>{D(It.id)},10)}else if(i==="eraser"){$t([...s]);const wt=new Set;if(s.forEach(Mt=>{Td(Mt,Bt)&&wt.add(Mt.id)}),wt.size>0){const Mt=s.filter(Xt=>!wt.has(Xt.id));t(Mt)}qt(wt),_({isDrawing:!0,startX:I,startY:gt,currentShape:{id:`eraser_${Date.now()}`,type:"path",x:I,y:gt,width:0,height:0,stroke:"#000000",strokeWidth:h,opacity:1,points:[I,gt]}})}else if(!["select","text","latex"].includes(i)){const wt=i==="pencil"?"path":i==="highlighter"?"highlighter":i;_({isDrawing:!0,startX:I,startY:gt,currentShape:{id:`${i}_${Date.now()}`,type:wt,x:I,y:gt,width:0,height:0,stroke:o,strokeWidth:h,opacity:i==="highlighter"?.5:1,points:i==="pencil"||i==="highlighter"?[I,gt]:void 0}})}return}if(i==="select"&&mt.target.attrs.id){const wt=mt.target.attrs.id,Mt=s.find(Xt=>Xt.id===wt);if(Mt){if(E(wt),(Mt.type==="text"||Mt.type==="latex")&&mt.evt.detail===2){D(wt);return}k(!0),nt({x:Bt.x,y:Bt.y}),st({x:Mt.x,y:Mt.y}),(Mt.type==="path"||Mt.type==="line"||Mt.type==="highlighter")&&Mt.points&&St([...Mt.points]),t(s.map(Xt=>({...Xt,isSelected:Xt.id===wt,isEditing:!1})))}return}if(!["select","text","latex"].includes(i))if(i==="eraser"){$t([...s]);const wt=new Set;if(s.forEach(Mt=>{Td(Mt,Bt)&&wt.add(Mt.id)}),wt.size>0){const Mt=s.filter(Xt=>!wt.has(Xt.id));t(Mt)}qt(wt),_({isDrawing:!0,startX:I,startY:gt,currentShape:{id:`eraser_${Date.now()}`,type:"path",x:I,y:gt,width:0,height:0,stroke:"#000000",strokeWidth:h,opacity:1,points:[I,gt]}})}else{const wt=i==="pencil"?"path":i==="highlighter"?"highlighter":i;_({isDrawing:!0,startX:I,startY:gt,currentShape:{id:`${i}_${Date.now()}`,type:wt,x:I,y:gt,width:0,height:0,stroke:o,strokeWidth:h,opacity:i==="highlighter"?.5:1,points:i==="pencil"||i==="highlighter"?[I,gt]:void 0}})}}},[s,t,i,o,h,d,g,p,b,E,_,z,D,C,H,U,Vt,B]),K=bt.useCallback((mt,Lt,xt,G)=>{const I=mt.target.getStage(),gt=I.getPointerPosition(),Bt=I.container(),wt=gt.x/C+Bt.scrollLeft/C,Mt=gt.y/C+Bt.scrollTop/C,Xt={x:wt,y:Mt};if(Lt.isDrawing&&Lt.currentShape){const{startX:It,startY:Pt,currentShape:ze}=Lt;if(i==="ocr-selection"){let re=Xt.x-It,me=Xt.y-Pt;if(G){const Ie=Math.max(Math.abs(re),Math.abs(me));re=Math.sign(re)*Ie,me=Math.sign(me)*Ie}let Je=It,De=Pt,ra=re,sa=me;re<0&&(Je=It+re,ra=Math.abs(re)),me<0&&(De=Pt+me,sa=Math.abs(me));let be={...ze,x:Je,y:De,width:ra,height:sa};_(Ie=>({...Ie,currentShape:be}))}else if(i==="pencil"||i==="eraser"||i==="highlighter"){const re={...ze,points:[...ze.points||[],Xt.x,Xt.y]};if(_(me=>({...me,currentShape:re})),i==="eraser"){const me=s.filter(Je=>Td(Je,Xt));if(me.length>0){const Je=new Set(Zt);me.forEach(ra=>{Je.add(ra.id)});const De=s.filter(ra=>!Je.has(ra.id));t(De),qt(Je)}}}else if(i==="line"){const re={...ze,points:[It,Pt,Xt.x,Xt.y]};_(me=>({...me,currentShape:re}))}else if(i==="rectangle"||i==="ellipse"){let re=Xt.x-It,me=Xt.y-Pt;if(G){const Ie=Math.max(Math.abs(re),Math.abs(me));re=Math.sign(re)*Ie,me=Math.sign(me)*Ie}let Je=It,De=Pt,ra=re,sa=me;re<0&&(Je=It+re,ra=Math.abs(re)),me<0&&(De=Pt+me,sa=Math.abs(me));let be={...ze,x:Je,y:De,width:ra,height:sa};_(Ie=>({...Ie,currentShape:be}))}}else if(xt.isTransforming&&xt.shapeId){const{startWidth:It,startHeight:Pt,startX:ze,startY:re,startMouseX:me,startMouseY:Je,anchor:De,originalPoints:ra,originalBbox:sa,startFontSize:be}=xt;if(!De)return;const Ie=Xt.x-me,u0=Xt.y-Je;let o0=It,w0=Pt,X0=ze,Ue=re;switch(De){case"top-left":o0=It-Ie,w0=Pt-u0,X0=ze+Ie,Ue=re+u0;break;case"top-right":o0=It+Ie,w0=Pt-u0,Ue=re+u0;break;case"bottom-left":o0=It-Ie,w0=Pt+u0,X0=ze+Ie;break;case"bottom-right":o0=It+Ie,w0=Pt+u0;break}let ea=X0,en=Ue,Ua=o0,xa=w0;if(Ua<0&&(ea=ea+Ua,Ua=Math.abs(Ua)),xa<0&&(en=en+xa,xa=Math.abs(xa)),G){const La=Math.max(Math.abs(Ua),Math.abs(xa));switch(Ua=Math.sign(Ua)*La,xa=Math.sign(xa)*La,De){case"top-left":ea=X0+(o0-Ua),en=Ue+(w0-xa);break;case"top-right":en=Ue+(w0-xa);break;case"bottom-left":ea=X0+(o0-Ua);break}}const p0=Vt(ea,en,Ua,xa);ea=p0.x,en=p0.y,Ua=p0.width,xa=p0.height;const qa=s.map(La=>{if(La.id===xt.shapeId)if((La.type==="path"||La.type==="line"||La.type==="highlighter")&&ra&&sa){const es=fb(ra,sa,{x:ea,y:en,width:Ua,height:xa});return{...La,width:Ua,height:xa,x:ea,y:en,points:es}}else return{...La,width:Ua,height:xa,x:ea,y:en};return La});t(qa)}else if(X&&b){s.find(re=>re.id===b);const It=Xt.x-j.x,Pt=Xt.y-j.y,ze=s.map(re=>{if(re.id===b){const me=ut.x+It,Je=ut.y+Pt,De=Vt(me,Je,re.width,re.height);if((re.type==="path"||re.type==="line"||re.type==="highlighter")&&re.points&&ot.length>0){const ra={x:De.x-ut.x,y:De.y-ut.y},sa=ot.map((be,Ie)=>Ie%2===0?be+ra.x:be+ra.y);return{...re,x:De.x,y:De.y,points:sa}}else return{...re,x:De.x,y:De.y}}return re});t(ze)}},[s,t,i,X,b,j,ut,ot,Zt,qt,_,C,Vt]),vt=bt.useCallback(()=>{X&&(k(!1),St([]),a(s))},[X,s,a]);return{isDragging:X,setIsDragging:k,dragStart:j,setDragStart:nt,selectedShapeStart:ut,setSelectedShapeStart:st,originalPointsOnDragStart:ot,setOriginalPointsOnDragStart:St,erasedShapes:Zt,setErasedShapes:qt,eraserHistoryStart:Nt,setEraserHistoryStart:$t,constrainToCanvas:Vt,handleMouseDown:Et,handleMouseMove:K,handleMouseUp:vt}},gb=()=>{const[s,t]=bt.useState({isDrawing:!1,startX:0,startY:0,currentShape:null}),[a,i]=bt.useState({isTransforming:!1,shapeId:null,startWidth:0,startHeight:0,startX:0,startY:0,startMouseX:0,startMouseY:0,anchor:null,originalPoints:[],originalBbox:{x:0,y:0,width:0,height:0}});return{drawingState:s,setDrawingState:t,transformState:a,setTransformState:i,resetDrawingState:()=>{t({isDrawing:!1,startX:0,startY:0,currentShape:null})},resetTransformState:()=>{i({isTransforming:!1,shapeId:null,startWidth:0,startHeight:0,startX:0,startY:0,startMouseX:0,startMouseY:0,anchor:null,originalPoints:[],originalBbox:{x:0,y:0,width:0,height:0}})}}},pb=(s,t,a,i,o,h,d,g,p,b,E,_)=>{const z=bt.useCallback(C=>{if(C.key==="Shift"&&t(!0),C.key==="Delete"&&a&&o(a),(C.ctrlKey||C.metaKey)&&C.key==="z"&&(C.preventDefault(),h()),C.key==="Escape"&&i&&d(),C.key==="Enter"&&i&&C.ctrlKey&&d(),!i&&(C.key==="ArrowUp"||C.key==="ArrowDown")&&a){C.preventDefault();const H=C.key==="ArrowUp"?"up":"down";g(a,H,C.shiftKey)}if(C.ctrlKey||C.metaKey){switch(C.key){case"=":case"+":C.preventDefault(),E&&E();break;case"-":C.preventDefault(),_&&_();break}if(a){const H=b.find(U=>U.id===a);if(H&&H.type==="text")switch(C.key){case"b":C.preventDefault(),p(a,"bold");break;case"i":C.preventDefault(),p(a,"italic");break;case"u":C.preventDefault(),p(a,"underline");break}}}},[s,a,i,b,t,o,h,d,g,p,E,_]),D=bt.useCallback(C=>{C.key==="Shift"&&t(!1)},[t]);bt.useEffect(()=>(window.addEventListener("keydown",z),window.addEventListener("keyup",D),()=>{window.removeEventListener("keydown",z),window.removeEventListener("keyup",D)}),[z,D])},vb="ws://localhost:8000",yb=(s,t,a=crypto.randomUUID())=>{const i=bt.useRef(null),o=bt.useRef(t),h=bt.useRef(null),d=bt.useRef(0),g=bt.useRef(s),p=bt.useRef(a),b=5,E=1500,[_,z]=bt.useState(!1);bt.useEffect(()=>{g.current=s},[s]),bt.useEffect(()=>{p.current=a},[a]),bt.useEffect(()=>{o.current=t},[t]);const D=bt.useCallback(()=>{if(i.current?.readyState===WebSocket.OPEN){console.log("[WS] Already connected, skipping");return}i.current&&(i.current.close(),i.current=null);const k=new WebSocket(`${vb}/ws/canvas/${g.current}/`);i.current=k,k.onopen=()=>{console.log("[WS] Connected to board:",g.current),z(!0),d.current=0,k.send(JSON.stringify({type:"init",userId:p.current}))},k.onmessage=j=>{try{const nt=JSON.parse(j.data);if(nt.userId===p.current)return;switch(nt.type){case"init":nt.data&&o.current(nt.data);break;case"update":case"shapes":case"undo":nt.data&&o.current(nt.data);break;case"clear":o.current({shapes:[],config:{},history:[]});break;default:console.warn("[WS] Unknown message type:",nt.type)}}catch(nt){console.error("[WS] Message parse error:",nt)}},k.onerror=j=>{console.error("[WS] Connection error:",j)},k.onclose=j=>{console.log("[WS] Disconnected, code:",j.code,"reason:",j.reason),z(!1),i.current=null,j.code!==1e3&&(d.current<b?(d.current+=1,console.log(`[WS] Reconnecting in ${E*d.current}ms (attempt ${d.current})`),h.current=window.setTimeout(()=>{D()},E*d.current)):console.error("[WS] Max reconnection attempts reached"))}},[]),C=bt.useCallback(()=>{h.current&&(clearTimeout(h.current),h.current=null),i.current&&(i.current.close(1e3,"Client disconnect"),i.current=null,z(!1))},[]),H=bt.useCallback(k=>{i.current?.readyState===WebSocket.OPEN?i.current.send(JSON.stringify({...k,userId:p.current})):console.warn("[WS] Cannot send message - connection not open")},[]),U=bt.useCallback(k=>{H({type:"update",data:{shapes:k}})},[H]),B=bt.useCallback(()=>{H({type:"clear"})},[H]),X=bt.useCallback(()=>{H({type:"undo"})},[H]);return bt.useEffect(()=>(console.log("[WS] Setting up connection for board:",s),D(),()=>{console.log("[WS] Cleaning up connection for board:",s),C()}),[s]),bt.useMemo(()=>({sendShapesUpdate:U,sendClear:B,sendUndo:X,isConnected:_}),[U,B,X,_])},bb="http://localhost:8000",S5=async(s,t,a)=>{try{const i=`${bb}/api/canvas/${s}/${t}/`,o=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a||{})});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);return await o.json()}catch(i){return console.error("API Error:",i),{success:!1,message:i instanceof Error?i.message:"Unknown error"}}},Sb=async s=>S5(s,"clear"),xb=async s=>S5(s,"undo"),Tb=async(s,t)=>S5(s,"update",t),Eb=(s,t)=>{const a=parseInt(s.slice(1,3),16),i=parseInt(s.slice(3,5),16),o=parseInt(s.slice(5,7),16);return`rgba(${a}, ${i}, ${o}, ${t})`};class _b{baseURL="https://statservice.example.com";moduleToken=null;rateLimitCache=new Map;RATE_LIMIT_WINDOW=3600*1e3;MAX_REQUESTS=12;constructor(){this.loadToken()}loadToken(){const t=localStorage.getItem("moduleToken");t&&(this.moduleToken=t)}saveToken(t){this.moduleToken=t,localStorage.setItem("moduleToken",t)}async createModule(t){try{const a=await fetch(`${this.baseURL}/api/stats/module/create`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({moduleName:t})});if(!a.ok)throw new Error(`Failed to create module: ${a.statusText}`);const i=await a.json();return this.saveToken(i.token),i}catch(a){throw console.error("Error creating module:",a),a}}checkRateLimit(){const t=Date.now(),a=this.moduleToken||"anonymous",i=this.rateLimitCache.get(a);return i?t>i.resetTime?(this.rateLimitCache.set(a,{count:1,resetTime:t+this.RATE_LIMIT_WINDOW}),!0):i.count>=this.MAX_REQUESTS?!1:(i.count++,!0):(this.rateLimitCache.set(a,{count:1,resetTime:t+this.RATE_LIMIT_WINDOW}),!0)}async sendMetrics(t){if(!this.moduleToken)throw new Error("Module token not set. Please create module first.");if(!this.checkRateLimit())throw new Error("Rate limit exceeded. Please try again later.");try{const a=await fetch(`${this.baseURL}/api/stats/module/metrics`,{method:"PUT",headers:{"X-Module-Token":this.moduleToken,"Content-Type":"application/json"},body:JSON.stringify(t)});if(a.status===429){const i=a.headers.get("Retry-After");throw new Error(`Rate limit exceeded. Retry after ${i} seconds`)}if(!a.ok)throw new Error(`Failed to send metrics: ${a.statusText}`);return await a.json()}catch(a){throw console.error("Error sending metrics:",a),a}}async getMetrics(){if(!this.moduleToken)throw new Error("Module token not set");try{const t=await fetch(`${this.baseURL}/api/stats/module/metrics`,{method:"GET",headers:{"X-Module-Token":this.moduleToken}});if(t.status===404)return null;if(!t.ok)throw new Error(`Failed to get metrics: ${t.statusText}`);return await t.json()}catch(t){throw console.error("Error getting metrics:",t),t}}}const z6=new _b,Mb=()=>{const[s,t]=bt.useState(null),[a,i]=bt.useState(""),[o,h]=bt.useState(null),[d,g]=bt.useState(!1),[p,b]=bt.useState(null),[E,_]=bt.useState(!1),[z,D]=bt.useState({}),[C]=bt.useState(Date.now()),[H]=bt.useState(!1);bt.useEffect(()=>{const W=$7(Z=>{console.log("Widget initialized via getInfo:",Z),t(Z),i(String(Z.board.id)),h(Z.widgetId),Z.config&&ut(Z.config),g(!0),Z.widgetId>0&&U(Z)});return()=>{W()}},[]);const U=bt.useCallback(async W=>{try{const Z=`DrawingWidget-${W.widgetId}-${W.board.id}`,jt=await z6.createModule(Z);console.log("Stats module created:",jt),_(!0)}catch(Z){console.error("Failed to create stats module:",Z)}},[]);bt.useEffect(()=>{const W=()=>{const Oe=window.innerWidth-30-30,Xe=window.innerHeight-0-30,ca=Math.min(Oe/1920,Xe/1080)*.95*2;document.documentElement.style.setProperty("--scale",ca.toString())};return W(),window.addEventListener("resize",W),()=>window.removeEventListener("resize",W)},[]);const[B,X]=bt.useState("select"),[k,j]=bt.useState([]),[nt,ut]=bt.useState({}),[st,ot]=bt.useState([]),[St,Zt]=bt.useState(null),[qt,Nt]=bt.useState("#000000"),[$t,Vt]=bt.useState(5),[Et]=bt.useState(20),[K]=bt.useState("Arial"),[vt]=bt.useState("left"),[mt,Lt]=bt.useState(!1),[xt,G]=bt.useState(1),{drawingState:I,setDrawingState:gt,transformState:Bt,setTransformState:wt,resetDrawingState:Mt,resetTransformState:Xt}=gb(),It=bt.useCallback(W=>{j(W.shapes),ut(W.config||{}),ot(W.history||[])},[]),{sendShapesUpdate:Pt,sendClear:ze,sendUndo:re}=yb(a,It,crypto.randomUUID()),me=bt.useCallback(()=>{const W=Date.now(),Z=Math.floor((W-C)/1e3);return{shapesCount:k.length,toolsUsage:{...z},lastUpdated:new Date().toISOString(),sessionDuration:Z,boardId:a,widgetId:o}},[k.length,z,C,a,o]),Je=bt.useCallback(()=>({shapes:k.map(W=>({id:W.id,type:W.type,x:W.x,y:W.y,width:W.width,height:W.height,stroke:W.stroke,strokeWidth:W.strokeWidth,...W.type==="text"&&{text:W.text},...W.type==="latex"&&{latex:W.latex}})),config:{...nt,strokeColor:qt,strokeWidth:$t,fontSize:Et,fontFamily:K,textAlign:vt,scale:xt,lastModifiedBy:"drawing-app"},lastModified:new Date().toISOString(),version:"1.0.0"}),[k,nt,qt,$t,Et,K,vt,xt]),De=bt.useCallback(async()=>{if(!s||!s.widgetId||s.widgetId<=0){console.log("Standalone mode, skipping widget config update");return}try{const W=Je(),Z=await fetch(`http://85.234.22.160:1111/api/widget/${s.widgetId}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${ra()}`},body:JSON.stringify(W)});Z.ok||console.warn("Failed to update widget config:",Z.statusText)}catch(W){console.error("Error updating widget config:",W)}},[s,Je]),ra=()=>localStorage.getItem("authToken")||"";bt.useEffect(()=>{if(!E||!s||s.widgetId<=0)return;const W=setInterval(async()=>{try{const Z=me();await z6.sendMetrics(Z)}catch(Z){console.error("Failed to send metrics:",Z)}},3e4);return()=>clearInterval(W)},[E,s,me]);const sa=bt.useCallback(async W=>{if(s&&s.widgetId>0)try{await Tb(a,{shapes:W,config:nt,history:st}),Pt(W),De()}catch(Z){console.error("Failed to send canvas data to backend:",Z)}},[a,nt,st,Pt,s,De]),{saveToHistory:be,handleUndo:Ie,handleRedo:u0}=ov(k,sa),o0=bt.useCallback(W=>{D(Z=>({...Z,[W]:(Z[W]||0)+1}))},[]);bt.useEffect(()=>{B&&B!=="select"&&o0(B)},[B,o0]),bt.useEffect(()=>{if(B!=="ocr-selection"){b(null);const W=k.filter(Z=>!Z.id.startsWith("ocr_border_"));W.length!==k.length&&(j(W),be(W))}},[B,k,be]);const w0=async()=>{const W=Ie();W&&(j(W),s&&s.widgetId>0&&(await xb(a),re(),De()))},X0=()=>{const W=u0();W&&j(W)},{editingTextId:Ue,tempText:ea,latexPreview:en,setTempText:Ua,setEditingTextId:xa,startTextEditing:p0,finishTextEditing:qa,updateTextInRealTime:La}=ob(k,j,be,Et),{toggleTextStyle:Fl,changeFontSizeWithStep:es}=cb(k,j,be,Et),fl=bt.useRef(null),{insertLatexSymbol:U0}=hb(fl,Ue,La);bt.useCallback(()=>{const W=k.filter(Z=>!Z.id.startsWith("ocr_border_"));W.length!==k.length&&(j(W),be(W))},[k,j,be]);const t0=mb(I,k,j,be,B,qt,$t,Et,K,vt,St,Zt,gt,wt,p0,xt,p,b),[j0,as]=bt.useState(!1),[Nc,so]=bt.useState("fraction"),[ns,Ei]=bt.useState(!1),[Wl,dl]=bt.useState(!1),[Il,_i]=bt.useState(!0),[Mi,gn]=bt.useState(!1),[Ai,Pl]=bt.useState({x:0,y:0}),ls=bt.useCallback(async()=>{if(!p||!an.current){console.error("No OCR selection or stage reference");return}try{const W=an.current,Z=k.filter(xe=>!xe.id.startsWith("ocr_border_")),jt=Z.length!==k.length;jt&&(j(Z),await new Promise(xe=>setTimeout(xe,50)));const Qt=document.createElement("canvas"),ae=Qt.getContext("2d");if(!ae){console.error("Failed to get canvas context"),jt&&j(k);return}Qt.width=p.width*xt,Qt.height=p.height*xt,ae.fillStyle="white",ae.fillRect(0,0,Qt.width,Qt.height);const Ee=W.toDataURL({x:p.x*xt,y:p.y*xt,width:p.width*xt,height:p.height*xt}),Se=new Image;Se.src=Ee,await new Promise((xe,ha)=>{Se.onload=xe,Se.onerror=ha}),ae.drawImage(Se,0,0);const Oe=Qt.toDataURL("image/png",1),ca=await(await fetch("http://localhost:8000/api/ocr/latex/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({image_data:Oe})})).json();if(ca.success&&ca.latex){const xe=Z.filter(a0=>{const $n={x:a0.x,y:a0.y,width:a0.width,height:a0.height};return!db(p,$n)});let ha=ca.latex.trim();ha.startsWith("$")&&ha.endsWith("$")&&(ha=ha.slice(1,-1)),ha.startsWith("$$")&&ha.endsWith("$$")&&(ha=ha.slice(2,-2)),ha=ha.trim();const e0=zc(ha,Et),nn={id:`latex_${Date.now()}`,type:"latex",x:p.x,y:p.y,width:e0.width,height:e0.height,stroke:qt,strokeWidth:1,latex:ha,latexRendered:lr(ha,Et),fontSize:Et,fontFamily:"KaTeX_Main",textAlign:"left",fontWeight:"normal",fontStyle:"normal",textDecoration:"none",isSelected:!1,isEditing:!1,isLatex:!0,scaleX:1,scaleY:1,rotation:0},Fe=[...xe,nn];j(Fe),be(Fe),b(null),X("select"),sa(Fe),console.log("OCR успешно распознано:",ca)}else jt&&j(k),console.error("OCR распознавание не удалось:",ca.error),alert("Не удалось распознать формулу. Попробуйте снова.")}catch(W){k.filter(jt=>jt.id.startsWith("ocr_border_")).length>0&&j(k),console.error("Ошибка при OCR распознавании:",W),alert("Ошибка при отправке изображения на сервер.")}},[p,k,Et,qt,xt,be,sa]),zi=bt.useCallback(()=>{Ue&&qa(),b(null),X("ocr-selection")},[Ue,qa]);bt.useEffect(()=>{if(!Mi)return;const W=jt=>{jt.preventDefault();const Qt=jt.clientX-Ai.x,ae=jt.clientY-Ai.y,Ee=hr.current;Ee&&(Ee.scrollLeft-=Qt,Ee.scrollTop-=ae,Pl({x:jt.clientX,y:jt.clientY}))},Z=()=>{gn(!1)};return document.addEventListener("mousemove",W),document.addEventListener("mouseup",Z),()=>{document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",Z)}},[Mi,Ai]);const ml=bt.useCallback(()=>{G(Z=>Math.min(Z*1.2,1.2))},[]),Ci=bt.useCallback(()=>{const W=Math.pow(1.2,-10);G(Z=>Math.max(Z/1.2,W))},[]),gl=bt.useCallback(W=>{(W.ctrlKey||W.metaKey)&&(W.preventDefault(),W.deltaY<0?ml():Ci())},[ml,Ci]);bt.useEffect(()=>{const W=an.current;W&&(W.scale({x:xt,y:xt}),W.batchDraw())},[xt]),bt.useEffect(()=>{const W=an.current?.container();if(W)return W.addEventListener("wheel",gl,{passive:!1}),()=>{W.removeEventListener("wheel",gl)}},[gl]);const $l=W=>{const Z=k.filter(jt=>jt.id!==W);j(Z),be(Z),St===W&&Zt(null),Ue===W&&(xa(null),Ua(""))};pb(mt,Lt,St,Ue,$l,w0,qa,es,Fl,k,ml,Ci);const is=async()=>{j([]),Zt(null),xa(null),Ua(""),b(null),be([]),s&&s.widgetId>0&&(await Sb(a),ze(),De())},pl=W=>{U0(W.latex),as(!1)},wn=(W,Z)=>{if(!St)return;const jt=k.map(Qt=>{if(Qt.id===St&&(Qt.type==="text"||Qt.type==="latex")){const ae={...Qt,[W]:Z};if(W==="stroke"&&(ae.stroke=Z,Qt.type==="latex"&&Qt.latex)){const Ee=Qt.fontSize||Et;ae.latexRendered=lr(Qt.latex,Ee)}if(W==="fontFamily"&&Qt.type==="text"&&(ae.fontFamily=Z),W==="textAlign"&&(ae.textAlign=Z),W==="fontSize"){const Ee=parseInt(Z)||20;if(ae.fontSize=Ee,Qt.type==="text"){const Se=Ee,Oe=(Qt.text||"").split(`
|
|
306
|
-
`).length||1,Xe=Math.max(Oe*Se*1.2,50);ae.height=Xe}else if(Qt.type==="latex"&&Qt.latex){const Se=zc(Qt.latex,Ee);ae.width=Se.width,ae.height=Se.height,ae.latexRendered=lr(Qt.latex,Ee)}}return ae}return Qt});j(jt),be(jt)},ka=()=>{const W=[...k];if(I.currentShape&&B!=="eraser"){const Z=I.currentShape;if(Z.type==="rectangle"||Z.type==="ellipse"){const jt=Z.x||0,Qt=Z.y||0,ae=Z.width||0,Ee=Z.height||0,Se={...Z,x:Math.min(jt,jt+ae),y:Math.min(Qt,Qt+Ee),width:Math.abs(ae),height:Math.abs(Ee)};W.push(Se)}else((Z.type==="path"||Z.type==="highlighter")&&Z.points&&Z.points.length>0||Z.type==="line"&&Z.points)&&W.push(Z)}return p&&W.push({id:"ocr-selection",type:"rectangle",x:p.x,y:p.y,width:p.width,height:p.height,stroke:"#007bff",strokeWidth:2,dash:[5,5],fill:"transparent",opacity:1}),W.map(Z=>{const jt=Z.opacity!==void 0?Z.opacity:1,Qt=Eb(Z.stroke,jt),ae={key:Z.id,id:Z.id,stroke:Z.type==="text"||Z.type==="latex"?void 0:Qt,strokeWidth:Z.type==="text"||Z.type==="latex"?void 0:Z.strokeWidth,fill:Z.type==="text"||Z.type==="latex"?Z.stroke:Z.fill};switch(Z.type){case"rectangle":const Ee=Z.width>=0?Z.x:Z.x+Z.width,Se=Z.height>=0?Z.y:Z.y+Z.height;return At.jsx(A2,{...ae,x:Ee,y:Se,width:Math.abs(Z.width),height:Math.abs(Z.height),dash:Z.dash});case"ellipse":const Oe=Z.x+Z.width/2,Xe=Z.y+Z.height/2,ca=Math.abs(Z.width)/2,xe=Math.abs(Z.height)/2;return At.jsx(Jp,{...ae,x:Oe,y:Xe,radiusX:ca,radiusY:xe});case"line":return At.jsx(rd,{...ae,points:Z.points||[]});case"path":return At.jsx(rd,{...ae,points:Z.points||[],tension:0,lineCap:"round",lineJoin:"round"});case"highlighter":return At.jsx(rd,{...ae,points:Z.points||[],tension:0,lineCap:"round",lineJoin:"round",opacity:.5});case"text":if(Z.isEditing)return null;const ha=Z.width>=0?Z.x:Z.x+Z.width,e0=Z.height>=0?Z.y:Z.y+Z.height,nn=Math.abs(Z.width),Fe=Math.abs(Z.height),a0=Z.fontWeight||"normal",$n=Z.fontStyle||"normal",tl=Z.textDecoration||"none",ti=`${a0==="bold"?"bold":""} ${$n==="italic"?"italic":""}`.trim();return At.jsx(Fp,{...ae,x:ha,y:e0,width:nn,height:Fe,text:Z.text||"",fontSize:Z.fontSize||Et,fontFamily:Z.fontFamily||K,align:Z.textAlign||vt,verticalAlign:"top",wrap:"word",fontStyle:ti,textDecoration:tl,onDblClick:()=>p0(Z.id)});case"latex":if(Z.isEditing)return null;const y0=Z.width>=0?Z.x:Z.x+Z.width,fa=Z.height>=0?Z.y:Z.y+Z.height,rs=Math.abs(Z.width),b0=Math.abs(Z.height);return At.jsx(A2,{id:Z.id,x:y0,y:fa,width:rs,height:b0,fill:"transparent",stroke:"transparent",strokeWidth:0,onDblClick:()=>p0(Z.id)},Z.id);default:return null}})},v0=()=>{const W=an.current;if(!W)return null;const Z=W.container();return k.filter(jt=>jt.type==="latex"&&!jt.isEditing).map(jt=>{const Qt=jt.width>=0?jt.x:jt.x+jt.width,ae=jt.height>=0?jt.y:jt.y+jt.height,Ee=Math.abs(jt.width),Se=Math.abs(jt.height),Oe=Math.max(Ee*xt,50),Xe=Math.max(Se*xt,50);return At.jsx("div",{className:"latex-shape-overlay",style:{position:"absolute",left:`${Qt*xt-Z.scrollLeft}px`,top:`${ae*xt-Z.scrollTop}px`,width:`${Oe}px`,height:`${Xe}px`,pointerEvents:"none",zIndex:10},children:At.jsx("div",{dangerouslySetInnerHTML:{__html:jt.latexRendered||lr(jt.latex||"",(jt.fontSize||Et)*xt)},className:"latex-rendered-content",style:{fontSize:`${(jt.fontSize||Et)*xt}px`,color:jt.stroke||qt}})},jt.id)})},vl=()=>{if(!St||B!=="select"||I.isDrawing)return null;const W=k.find(Fe=>Fe.id===St);if(!W||(W.type==="path"||W.type==="highlighter")&&(!W.points||W.points.length===0))return null;let Z={...W};if((W.type==="path"||W.type==="line"||W.type==="highlighter")&&W.points&&W.points.length>0){const Fe=Vd(W.points);Z={...W,x:Fe.x,y:Fe.y,width:Fe.width,height:Fe.height}}const jt=Math.min(Z.x,Z.x+Z.width),Qt=Math.min(Z.y,Z.y+Z.height),ae=Math.abs(Z.width),Ee=Math.abs(Z.height),Se=5,Oe=10,Xe=Oe/2,ca=jt-Se,xe=Qt-Se,ha=ae+Se*2,e0=Ee+Se*2,nn=[{name:"anchor-top-left",x:jt,y:Qt},{name:"anchor-top-right",x:jt+ae,y:Qt},{name:"anchor-bottom-left",x:jt,y:Qt+Ee},{name:"anchor-bottom-right",x:jt+ae,y:Qt+Ee}];return At.jsxs(At.Fragment,{children:[At.jsx(A2,{name:"selection-rect",x:ca,y:xe,width:ha,height:e0,stroke:"#007bff",strokeWidth:1,dash:[5,5],listening:!1}),nn.map(Fe=>At.jsx(A2,{name:Fe.name,shapeId:Z.id,x:Fe.x-Xe,y:Fe.y-Xe,width:Oe,height:Oe,fill:"#ffffff",stroke:"#007bff",strokeWidth:2},Fe.name))]})},Dn=()=>{if(!Ue)return null;const W=k.find(nn=>nn.id===Ue);if(!W||W.type!=="text"&&W.type!=="latex")return null;const Z=an.current;if(!Z)return null;const jt=Z.container().getBoundingClientRect(),Qt=W.width>=0?W.x:W.x+W.width,ae=W.height>=0?W.y:W.y+W.height,Ee=Qt*xt+jt.left,Se=ae*xt+jt.top,Oe=Math.max(Math.abs(W.width)*xt,100),Xe=Math.max(Math.abs(W.height)*xt,40),ca=W.fontWeight||"normal",xe=W.fontStyle||"normal",ha=W.textDecoration||"none",e0={position:"fixed",left:`${Ee}px`,top:`${Se}px`,width:`${Oe}px`,height:`${Xe}px`,fontSize:`${W.fontSize||Et}px`,fontFamily:W.type==="latex"?"KaTeX_Main, Times New Roman, serif":W.fontFamily||K,textAlign:W.textAlign||vt,color:W.stroke||qt,backgroundColor:"rgba(255, 255, 255, 0.9)",border:W.type==="latex"?"2px solid #4CAF50":"1px dashed #007bff",outline:"none",resize:"both",overflow:"auto",padding:"4px",zIndex:1e3,lineHeight:"1.2",whiteSpace:"pre-wrap",wordWrap:"break-word",fontWeight:ca==="bold"?"bold":"normal",fontStyle:xe==="italic"?"italic":"normal",textDecoration:ha,backdropFilter:"blur(2px)"};return W.type==="latex"?At.jsx(lv,{shape:W,tempText:ea,textAreaRef:fl,updateTextInRealTime:La,finishTextEditing:qa,x:Ee,y:Se,width:Oe,textareaStyle:e0,latexSymbols:rv,latexCategories:sv,handleLatexSymbolClick:pl,renderLatexToHtml:lr,showLatexPreview:Il,showLatexMenu:j0,selectedLatexCategory:Nc,latexPreview:en,fontSize:Et,strokeColor:qt,setShowLatexMenu:as,setShowLatexPreview:_i,setSelectedLatexCategory:so}):At.jsx(iv,{textAreaRef:fl,tempText:ea,updateTextInRealTime:La,finishTextEditing:qa,textareaStyle:e0})},yl=()=>{if(B!=="select"||!St||Ue)return null;const W=St,Z=k.find(ti=>ti.id===W);if(!Z||Z.type!=="text"&&Z.type!=="latex")return null;const jt=an.current;if(!jt)return null;const Qt=jt.container(),ae=Z.width>=0?Z.x:Z.x+Z.width,Ee=Z.height>=0?Z.y:Z.y+Z.height,Se=Math.abs(Z.height),Oe=Math.abs(Z.width),Xe=ae*xt-Qt.scrollLeft,ca=Ee*xt-Qt.scrollTop,e0=Z.type==="latex"?152:416,Fe=ca+Se*xt+20;let $n=Xe+Oe*xt/2-e0/2;if(Z.type==="latex")return At.jsx(nv,{selectedShape:Z,selectedId:W,startTextEditing:p0,updateSelectedTextProperty:wn,fontSize:Z.fontSize||Et,strokeColor:Z.stroke||qt,left:$n,top:Fe,panelWidth:e0});const tl=W;return At.jsx(av,{selectedShape:Z,selectedId:tl,isBold:Z.fontWeight==="bold",isItalic:Z.fontStyle==="italic",isUnderline:Z.textDecoration?.includes("underline")||!1,isStrikethrough:Z.textDecoration?.includes("line-through")||!1,currentAlign:Z.textAlign||vt,showTextFormatDropdown:ns,showTextAlignDropdown:Wl,setShowTextFormatDropdown:Ei,setShowTextAlignDropdown:dl,updateSelectedTextProperty:wn,startTextEditing:p0,toggleBold:()=>Fl(tl,"bold"),toggleItalic:()=>Fl(tl,"italic"),toggleUnderline:()=>Fl(tl,"underline"),toggleStrikethrough:()=>Fl(tl,"strikethrough"),fontFamily:Z.fontFamily||K,fontSize:Z.fontSize||Et,strokeColor:Z.stroke||qt,availableFonts:uv,left:$n,top:Fe,panelWidth:e0})},an=bt.useRef(null),hr=bt.useRef(null),Nn=W=>{if(W.evt.button===1){W.evt.preventDefault(),gn(!0),Pl({x:W.evt.clientX,y:W.evt.clientY});return}B!=="select"&&H(!0),t0.handleMouseDown(W)},bl=W=>{Mi||t0.handleMouseMove(W,I,Bt,mt)},Sl=()=>{if(Mi&&gn(!1),I.isDrawing&&I.currentShape){const W={...I.currentShape};if(B==="eraser"){t0.erasedShapes.size>0&&t0.eraserHistoryStart&&be(k),t0.setErasedShapes(new Set),t0.setEraserHistoryStart(null),Mt();return}if(B==="ocr-selection"){const{x:Z=0,y:jt=0,width:Qt=0,height:ae=0}=I.currentShape,Ee=Qt>=0?Z:Z+Qt,Se=ae>=0?jt:jt+ae,Oe=Math.abs(Qt),Xe=Math.abs(ae);b({x:Ee,y:Se,width:Oe,height:Xe});const ca={id:`ocr_border_${Date.now()}`,type:"rectangle",x:Ee,y:Se,width:Oe,height:Xe,stroke:"#007bff",strokeWidth:2,dash:[5,5],fill:"transparent",opacity:1},xe=[...k,ca];j(xe),be(xe),Mt();return}if((B==="pencil"||B==="highlighter")&&W.points&&W.points.length>=4){const Z=Vd(W.points);W.x=Z.x,W.y=Z.y,W.width=Z.width,W.height=Z.height;const jt=[...k,W];j(jt),be(jt)}else if(B==="line"&&W.points&&W.points.length===4){const Z=W.points[0],jt=W.points[1],Qt=W.points[2],ae=W.points[3],Ee=Math.min(Z,Qt),Se=Math.min(jt,ae),Oe=Math.max(Z,Qt),Xe=Math.max(jt,ae);W.x=Ee,W.y=Se,W.width=Oe-Ee,W.height=Xe-Se;const ca=[...k,W];j(ca),be(ca)}else if((B==="rectangle"||B==="ellipse")&&I.currentShape.width!==0&&I.currentShape.height!==0){const Z=t0.constrainToCanvas(W.x,W.y,W.width,W.height);W.x=Z.x,W.y=Z.y,W.width=Z.width,W.height=Z.height;const jt=[...k,W];j(jt),be(jt)}Mt(),s&&s.widgetId>0&&De()}Bt.isTransforming&&(be(k),Xt()),t0.isDragging&&(t0.setIsDragging(!1),t0.setOriginalPointsOnDragStart([]),be(k)),H(!1)};return d?At.jsxs("div",{className:"drawing-app-container",children:[At.jsx("h1",{className:"top-header",children:"Paint"}),At.jsx("div",{className:"drawing-toolbar-container",children:At.jsxs("div",{className:"drawing-toolbar",children:[At.jsx(Ip,{finishTextEditing:()=>qa(!0),tool:B,setTool:X,strokeColor:qt,setStrokeColor:Nt,editingTextId:Ue}),At.jsx(Pp,{tool:B,strokeWidth:$t,setStrokeWidth:Vt}),At.jsx($p,{handleUndo:w0,handleRedo:X0,handleClearCanvas:is,finishTextEditing:qa,setTool:X,editingTextId:Ue||"",tool:B}),At.jsx(tv,{finishTextEditing:qa,setTool:X,tool:B,editingTextId:Ue||"",handleDeleteShape:$l,selectedId:St||""}),At.jsx(ev,{onOcrSelect:zi,onOcrRecognize:ls,tool:B,ocrSelection:p,editingTextId:Ue,finishTextEditing:qa})]})}),At.jsxs("div",{className:"canvas-container",ref:hr,style:{cursor:Mi?"grabbing":"default"},children:[At.jsx(Wp,{ref:an,width:6e3*xt,height:2500*xt,onMouseDown:Nn,onMouseMove:bl,onMouseUp:Sl,onMouseLeave:()=>gn(!1),onTouchStart:Nn,onTouchMove:bl,onTouchEnd:Sl,children:At.jsxs(Zp,{children:[ka(),vl()]})}),Dn(),v0(),yl()]}),At.jsxs("div",{className:"zoom-buttons",children:[At.jsx("button",{className:"zoom-button zoom-plus",onClick:ml}),At.jsx("button",{className:"zoom-button zoom-minus",onClick:Ci})]})]}):At.jsx("div",{className:"drawing-app-container",children:"Loading..."})};window.getInfo=P7;const Ab=I7.createRoot(document.getElementById("root"));Ab.render(At.jsx(z0.StrictMode,{children:At.jsx(Mb,{})}));
|
|
307
|
-
//# sourceMappingURL=index-DxkNA4rg.js.map
|