db-studio 1.2.9 → 1.2.10
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/core-dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/core-dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/core-dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/core-dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/core-dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/core-dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/core-dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/core-dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/core-dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/core-dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/core-dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/core-dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/core-dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/core-dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/core-dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/core-dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/core-dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/core-dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/core-dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/core-dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/core-dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/core-dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/core-dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/core-dist/assets/_baseUniq-CAv_sUq0.js +1 -0
- package/dist/core-dist/assets/_pathlessLayout-CZkGDKr3.js +385 -0
- package/dist/core-dist/assets/_queryId-BlJwBNE7.js +1 -0
- package/dist/core-dist/assets/_table-Bg3Jhj3R.js +1 -0
- package/dist/core-dist/assets/abap-BdImnpbu.js +1 -0
- package/dist/core-dist/assets/abap-DLDM7-KI.js +1 -0
- package/dist/core-dist/assets/actionscript-3-CfeIJUat.js +1 -0
- package/dist/core-dist/assets/ada-bCR0ucgS.js +1 -0
- package/dist/core-dist/assets/andromeeda-C-Jbm3Hp.js +1 -0
- package/dist/core-dist/assets/angular-html-CU67Zn6k.js +1 -0
- package/dist/core-dist/assets/angular-ts-BwZT4LLn.js +1 -0
- package/dist/core-dist/assets/apache-Pmp26Uib.js +1 -0
- package/dist/core-dist/assets/apex-D8_7TLub.js +1 -0
- package/dist/core-dist/assets/apex-DNDY2TF8.js +1 -0
- package/dist/core-dist/assets/apl-dKokRX4l.js +1 -0
- package/dist/core-dist/assets/applescript-Co6uUVPk.js +1 -0
- package/dist/core-dist/assets/ara-BRHolxvo.js +1 -0
- package/dist/core-dist/assets/arc-BJuKLB46.js +1 -0
- package/dist/core-dist/assets/architecture-U656AL7Q-CG9_JmIP.js +1 -0
- package/dist/core-dist/assets/architectureDiagram-VXUJARFQ-BlKpMHgP.js +36 -0
- package/dist/core-dist/assets/asciidoc-Dv7Oe6Be.js +1 -0
- package/dist/core-dist/assets/asm-D_Q5rh1f.js +1 -0
- package/dist/core-dist/assets/astro-CbQHKStN.js +1 -0
- package/dist/core-dist/assets/aurora-x-D-2ljcwZ.js +1 -0
- package/dist/core-dist/assets/awk-DMzUqQB5.js +1 -0
- package/dist/core-dist/assets/ayu-dark-CmMr59Fi.js +1 -0
- package/dist/core-dist/assets/azcli-Y6nb8tq_.js +1 -0
- package/dist/core-dist/assets/ballerina-BFfxhgS-.js +1 -0
- package/dist/core-dist/assets/bat-BkioyH1T.js +1 -0
- package/dist/core-dist/assets/bat-BwHxbl9M.js +1 -0
- package/dist/core-dist/assets/beancount-k_qm7-4y.js +1 -0
- package/dist/core-dist/assets/berry-uYugtg8r.js +1 -0
- package/dist/core-dist/assets/bibtex-CHM0blh-.js +1 -0
- package/dist/core-dist/assets/bicep-Bmn6On1c.js +1 -0
- package/dist/core-dist/assets/bicep-CFznDFnq.js +2 -0
- package/dist/core-dist/assets/blade-D4QpJJKB.js +1 -0
- package/dist/core-dist/assets/blockDiagram-VD42YOAC-BzzsEP95.js +122 -0
- package/dist/core-dist/assets/bsl-BO_Y6i37.js +1 -0
- package/dist/core-dist/assets/c-BIGW1oBm.js +1 -0
- package/dist/core-dist/assets/c3-VCDPK7BO.js +1 -0
- package/dist/core-dist/assets/c4Diagram-YG6GDRKO-BnbEJDnT.js +10 -0
- package/dist/core-dist/assets/cadence-Bv_4Rxtq.js +1 -0
- package/dist/core-dist/assets/cairo-KRGpt6FW.js +1 -0
- package/dist/core-dist/assets/cameligo-Bf6VGUru.js +1 -0
- package/dist/core-dist/assets/catppuccin-frappe-DFWUc33u.js +1 -0
- package/dist/core-dist/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
- package/dist/core-dist/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
- package/dist/core-dist/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
- package/dist/core-dist/assets/channel-CymmV4CK.js +1 -0
- package/dist/core-dist/assets/chunk-4BX2VUAB-BBlBt29z.js +1 -0
- package/dist/core-dist/assets/chunk-55IACEB6-DNkirFYu.js +1 -0
- package/dist/core-dist/assets/chunk-B4BG7PRW-DplPr675.js +165 -0
- package/dist/core-dist/assets/chunk-DI55MBZ5-CuowJrst.js +220 -0
- package/dist/core-dist/assets/chunk-FMBD7UC4-CDLqhL7O.js +15 -0
- package/dist/core-dist/assets/chunk-QN33PNHL-T2K3kI4j.js +1 -0
- package/dist/core-dist/assets/chunk-QZHKN3VN-Cn74Pd79.js +1 -0
- package/dist/core-dist/assets/chunk-TZMSLE5B-jRgtCDM3.js +1 -0
- package/dist/core-dist/assets/clarity-D53aC0YG.js +1 -0
- package/dist/core-dist/assets/classDiagram-2ON5EDUG-DsppMAOR.js +1 -0
- package/dist/core-dist/assets/classDiagram-v2-WZHVMYZB-DsppMAOR.js +1 -0
- package/dist/core-dist/assets/clojure-Dnu-v4kV.js +1 -0
- package/dist/core-dist/assets/clojure-P80f7IUj.js +1 -0
- package/dist/core-dist/assets/clone-tRzPOHdE.js +1 -0
- package/dist/core-dist/assets/cmake-D1j8_8rp.js +1 -0
- package/dist/core-dist/assets/cobol-nwyudZeR.js +1 -0
- package/dist/core-dist/assets/code-block-IT6T5CEO-CY4ZkvyN.js +154 -0
- package/dist/core-dist/assets/codeowners-Bp6g37R7.js +1 -0
- package/dist/core-dist/assets/codeql-DsOJ9woJ.js +1 -0
- package/dist/core-dist/assets/codicon-ngg6Pgfi.ttf +0 -0
- package/dist/core-dist/assets/coffee-Bd8akH9Z.js +1 -0
- package/dist/core-dist/assets/coffee-Ch7k5sss.js +1 -0
- package/dist/core-dist/assets/common-lisp-Cg-RD9OK.js +1 -0
- package/dist/core-dist/assets/coq-DkFqJrB1.js +1 -0
- package/dist/core-dist/assets/cose-bilkent-S5V4N54A-Dj3H49oa.js +1 -0
- package/dist/core-dist/assets/cpp-BbWJElDN.js +1 -0
- package/dist/core-dist/assets/cpp-CofmeUqb.js +1 -0
- package/dist/core-dist/assets/crystal-tKQVLTB8.js +1 -0
- package/dist/core-dist/assets/csharp-Co3qMtFm.js +1 -0
- package/dist/core-dist/assets/csharp-K5feNrxe.js +1 -0
- package/dist/core-dist/assets/csp-D-4FJmMZ.js +1 -0
- package/dist/core-dist/assets/css-DPfMkruS.js +1 -0
- package/dist/core-dist/assets/css-DdJfP1eB.js +3 -0
- package/dist/core-dist/assets/css.worker-DBVD8oXr.js +93 -0
- package/dist/core-dist/assets/cssMode-CF1T5vEU.js +1 -0
- package/dist/core-dist/assets/csv-fuZLfV_i.js +1 -0
- package/dist/core-dist/assets/cue-D82EKSYY.js +1 -0
- package/dist/core-dist/assets/cypher-COkxafJQ.js +1 -0
- package/dist/core-dist/assets/cypher-cTPe9QuQ.js +1 -0
- package/dist/core-dist/assets/cytoscape.esm-5J0xJHOV.js +321 -0
- package/dist/core-dist/assets/d-85-TOEBH.js +1 -0
- package/dist/core-dist/assets/dagre-6UL2VRFP-Cly5tuXN.js +4 -0
- package/dist/core-dist/assets/dark-plus-C3mMm8J8.js +1 -0
- package/dist/core-dist/assets/dart-BOtBlQCF.js +1 -0
- package/dist/core-dist/assets/dart-CF10PKvl.js +1 -0
- package/dist/core-dist/assets/dax-CEL-wOlO.js +1 -0
- package/dist/core-dist/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/dist/core-dist/assets/desktop-BmXAJ9_W.js +1 -0
- package/dist/core-dist/assets/diagram-PSM6KHXK-DL2Q8K3B.js +24 -0
- package/dist/core-dist/assets/diagram-QEK2KX5R-DizZ-655.js +43 -0
- package/dist/core-dist/assets/diagram-S2PKOQOG-BzPXNCcq.js +24 -0
- package/dist/core-dist/assets/diff-D97Zzqfu.js +1 -0
- package/dist/core-dist/assets/docker-BcOcwvcX.js +1 -0
- package/dist/core-dist/assets/dockerfile-BG73LgW2.js +1 -0
- package/dist/core-dist/assets/dotenv-Da5cRb03.js +1 -0
- package/dist/core-dist/assets/dracula-BzJJZx-M.js +1 -0
- package/dist/core-dist/assets/dracula-soft-BXkSAIEj.js +1 -0
- package/dist/core-dist/assets/dream-maker-BtqSS_iP.js +1 -0
- package/dist/core-dist/assets/ecl-BEgZUVRK.js +1 -0
- package/dist/core-dist/assets/edge-BkV0erSs.js +1 -0
- package/dist/core-dist/assets/elixir-BkW5O-1t.js +1 -0
- package/dist/core-dist/assets/elixir-CDX3lj18.js +1 -0
- package/dist/core-dist/assets/elm-DbKCFpqz.js +1 -0
- package/dist/core-dist/assets/emacs-lisp-C9XAeP06.js +1 -0
- package/dist/core-dist/assets/erDiagram-Q2GNP2WA-BofISlfK.js +60 -0
- package/dist/core-dist/assets/erb-BOJIQeun.js +1 -0
- package/dist/core-dist/assets/erlang-DsQrWhSR.js +1 -0
- package/dist/core-dist/assets/everforest-dark-BgDCqdQA.js +1 -0
- package/dist/core-dist/assets/everforest-light-C8M2exoo.js +1 -0
- package/dist/core-dist/assets/fennel-BYunw83y.js +1 -0
- package/dist/core-dist/assets/fish-BvzEVeQv.js +1 -0
- package/dist/core-dist/assets/flow9-BeJ5waoc.js +1 -0
- package/dist/core-dist/assets/flowDiagram-NV44I4VS-CraoKtH-.js +162 -0
- package/dist/core-dist/assets/fluent-C4IJs8-o.js +1 -0
- package/dist/core-dist/assets/format-cell-value-BZxeFaA8.js +7 -0
- package/dist/core-dist/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
- package/dist/core-dist/assets/fortran-free-form-BxgE0vQu.js +1 -0
- package/dist/core-dist/assets/freemarker2-BIvjYnfp.js +3 -0
- package/dist/core-dist/assets/fsharp-CXgrBDvD.js +1 -0
- package/dist/core-dist/assets/fsharp-PahG7c26.js +1 -0
- package/dist/core-dist/assets/ganttDiagram-JELNMOA3-BRvyb8VW.js +267 -0
- package/dist/core-dist/assets/gdresource-B7Tvp0Sc.js +1 -0
- package/dist/core-dist/assets/gdscript-DTMYz4Jt.js +1 -0
- package/dist/core-dist/assets/gdshader-DkwncUOv.js +1 -0
- package/dist/core-dist/assets/genie-D0YGMca9.js +1 -0
- package/dist/core-dist/assets/gherkin-DyxjwDmM.js +1 -0
- package/dist/core-dist/assets/git-commit-F4YmCXRG.js +1 -0
- package/dist/core-dist/assets/git-rebase-r7XF79zn.js +1 -0
- package/dist/core-dist/assets/gitGraph-F6HP7TQM-XNCl7HYP.js +1 -0
- package/dist/core-dist/assets/gitGraphDiagram-NY62KEGX-DKWRoQuV.js +65 -0
- package/dist/core-dist/assets/github-dark-DHJKELXO.js +1 -0
- package/dist/core-dist/assets/github-dark-default-Cuk6v7N8.js +1 -0
- package/dist/core-dist/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- package/dist/core-dist/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- package/dist/core-dist/assets/github-light-DAi9KRSo.js +1 -0
- package/dist/core-dist/assets/github-light-default-D7oLnXFd.js +1 -0
- package/dist/core-dist/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- package/dist/core-dist/assets/gleam-BspZqrRM.js +1 -0
- package/dist/core-dist/assets/glimmer-js-Rg0-pVw9.js +1 -0
- package/dist/core-dist/assets/glimmer-ts-U6CK756n.js +1 -0
- package/dist/core-dist/assets/glsl-DplSGwfg.js +1 -0
- package/dist/core-dist/assets/gn-n2N0HUVH.js +1 -0
- package/dist/core-dist/assets/gnuplot-DdkO51Og.js +1 -0
- package/dist/core-dist/assets/go-Dn2_MT6a.js +1 -0
- package/dist/core-dist/assets/go-acbASCJo.js +1 -0
- package/dist/core-dist/assets/graph-CiH4Elhg.js +1 -0
- package/dist/core-dist/assets/graphql-BxJiqAUM.js +1 -0
- package/dist/core-dist/assets/graphql-ChdNCCLP.js +1 -0
- package/dist/core-dist/assets/groovy-gcz8RCvz.js +1 -0
- package/dist/core-dist/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
- package/dist/core-dist/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
- package/dist/core-dist/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
- package/dist/core-dist/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
- package/dist/core-dist/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
- package/dist/core-dist/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
- package/dist/core-dist/assets/hack-CaT9iCJl.js +1 -0
- package/dist/core-dist/assets/haml-B8DHNrY2.js +1 -0
- package/dist/core-dist/assets/handlebars-BL8al0AC.js +1 -0
- package/dist/core-dist/assets/handlebars-CK7lLchY.js +1 -0
- package/dist/core-dist/assets/haskell-Df6bDoY_.js +1 -0
- package/dist/core-dist/assets/haxe-CzTSHFRz.js +1 -0
- package/dist/core-dist/assets/hcl-BWvSN4gD.js +1 -0
- package/dist/core-dist/assets/hcl-DtV1sZF8.js +1 -0
- package/dist/core-dist/assets/hjson-D5-asLiD.js +1 -0
- package/dist/core-dist/assets/hlsl-D3lLCCz7.js +1 -0
- package/dist/core-dist/assets/houston-DnULxvSX.js +1 -0
- package/dist/core-dist/assets/html-D4oGQ6da.js +1 -0
- package/dist/core-dist/assets/html-GMplVEZG.js +1 -0
- package/dist/core-dist/assets/html-derivative-BFtXZ54Q.js +1 -0
- package/dist/core-dist/assets/html.worker-CwpTb9lJ.js +470 -0
- package/dist/core-dist/assets/htmlMode-UdBCLKNC.js +1 -0
- package/dist/core-dist/assets/http-jrhK8wxY.js +1 -0
- package/dist/core-dist/assets/hurl-irOxFIW8.js +1 -0
- package/dist/core-dist/assets/hxml-Bvhsp5Yf.js +1 -0
- package/dist/core-dist/assets/hy-DFXneXwc.js +1 -0
- package/dist/core-dist/assets/imba-DGztddWO.js +1 -0
- package/dist/core-dist/assets/index-BGJonb8r.js +1 -0
- package/dist/core-dist/assets/index-BTbtGsf1.js +1 -0
- package/dist/core-dist/assets/index-C1hGVAGZ.css +1 -0
- package/dist/core-dist/assets/index-DT0YxcHG.js +1 -0
- package/dist/core-dist/assets/index-D_Jinmad.js +93 -0
- package/dist/core-dist/assets/index-VbLkqC9g.js +1 -0
- package/dist/core-dist/assets/indexes-DUg8pguA.js +1 -0
- package/dist/core-dist/assets/info-NVLQJR56-C0BKzANU.js +1 -0
- package/dist/core-dist/assets/infoDiagram-WHAUD3N6-CJI0qAk5.js +2 -0
- package/dist/core-dist/assets/ini-BEwlwnbL.js +1 -0
- package/dist/core-dist/assets/ini-Kd9XrMLS.js +1 -0
- package/dist/core-dist/assets/init-Gi6I4Gst.js +1 -0
- package/dist/core-dist/assets/java-CXBNlu9o.js +1 -0
- package/dist/core-dist/assets/java-CylS5w8V.js +1 -0
- package/dist/core-dist/assets/javascript-DVJFYsQU.js +1 -0
- package/dist/core-dist/assets/javascript-wDzz0qaB.js +1 -0
- package/dist/core-dist/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/core-dist/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/core-dist/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/core-dist/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/core-dist/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/core-dist/assets/jinja-4LBKfQ-Z.js +1 -0
- package/dist/core-dist/assets/jison-wvAkD_A8.js +1 -0
- package/dist/core-dist/assets/journeyDiagram-XKPGCS4Q-CbUo2D0u.js +139 -0
- package/dist/core-dist/assets/json-Cp-IABpG.js +1 -0
- package/dist/core-dist/assets/json.worker-BoL8UZqY.js +58 -0
- package/dist/core-dist/assets/json5-C9tS-k6U.js +1 -0
- package/dist/core-dist/assets/jsonMode-BxHkXShz.js +7 -0
- package/dist/core-dist/assets/jsonc-Des-eS-w.js +1 -0
- package/dist/core-dist/assets/jsonl-DcaNXYhu.js +1 -0
- package/dist/core-dist/assets/jsonnet-DFQXde-d.js +1 -0
- package/dist/core-dist/assets/jssm-C2t-YnRu.js +1 -0
- package/dist/core-dist/assets/jsx-g9-lgVsj.js +1 -0
- package/dist/core-dist/assets/julia-CxzCAyBv.js +1 -0
- package/dist/core-dist/assets/julia-cl7-CwDS.js +1 -0
- package/dist/core-dist/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
- package/dist/core-dist/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
- package/dist/core-dist/assets/kanagawa-wave-DWedfzmr.js +1 -0
- package/dist/core-dist/assets/kanban-definition-3W4ZIXB7-BI8V_-kx.js +89 -0
- package/dist/core-dist/assets/katex-DvXFAOB1.css +1 -0
- package/dist/core-dist/assets/kdl-DV7GczEv.js +1 -0
- package/dist/core-dist/assets/kotlin-BdnUsdx6.js +1 -0
- package/dist/core-dist/assets/kotlin-s7OhZKlX.js +1 -0
- package/dist/core-dist/assets/kusto-DZf3V79B.js +1 -0
- package/dist/core-dist/assets/laserwave-DUszq2jm.js +1 -0
- package/dist/core-dist/assets/latex-B4uzh10-.js +1 -0
- package/dist/core-dist/assets/layout-BwolAo18.js +1 -0
- package/dist/core-dist/assets/lean-BZvkOJ9d.js +1 -0
- package/dist/core-dist/assets/less-9HpZscsL.js +2 -0
- package/dist/core-dist/assets/less-B1dDrJ26.js +1 -0
- package/dist/core-dist/assets/lexon-OrD6JF1K.js +1 -0
- package/dist/core-dist/assets/light-plus-B7mTdjB0.js +1 -0
- package/dist/core-dist/assets/linear-DmRzTBeT.js +1 -0
- package/dist/core-dist/assets/liquid-C5m2c79-.js +1 -0
- package/dist/core-dist/assets/liquid-DYVedYrR.js +1 -0
- package/dist/core-dist/assets/llvm-BtvRca6l.js +1 -0
- package/dist/core-dist/assets/log-2UxHyX5q.js +1 -0
- package/dist/core-dist/assets/logo-BtOb2qkB.js +1 -0
- package/dist/core-dist/assets/logs-DvzMaNSj.js +1 -0
- package/dist/core-dist/assets/lspLanguageFeatures-Bi1yNEJU.js +4 -0
- package/dist/core-dist/assets/lua-BbnMAYS6.js +1 -0
- package/dist/core-dist/assets/lua-Cyyb5UIc.js +1 -0
- package/dist/core-dist/assets/luau-C-HG3fhB.js +1 -0
- package/dist/core-dist/assets/m3-B8OfTtLu.js +1 -0
- package/dist/core-dist/assets/make-CHLpvVh8.js +1 -0
- package/dist/core-dist/assets/markdown-BFxVWTOG.js +1 -0
- package/dist/core-dist/assets/markdown-Cvjx9yec.js +1 -0
- package/dist/core-dist/assets/marko-DZsq8hO1.js +1 -0
- package/dist/core-dist/assets/material-theme-D5KoaKCx.js +1 -0
- package/dist/core-dist/assets/material-theme-darker-BfHTSMKl.js +1 -0
- package/dist/core-dist/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- package/dist/core-dist/assets/material-theme-ocean-CyktbL80.js +1 -0
- package/dist/core-dist/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- package/dist/core-dist/assets/matlab-D7o27uSR.js +1 -0
- package/dist/core-dist/assets/mdc-DUICxH0z.js +1 -0
- package/dist/core-dist/assets/mdx-Cmh6b_Ma.js +1 -0
- package/dist/core-dist/assets/mdx-DIQtb_gN.js +1 -0
- package/dist/core-dist/assets/mermaid-VLURNSYL-BwQZ3L24.js +1 -0
- package/dist/core-dist/assets/mermaid-mWjccvbQ.js +1 -0
- package/dist/core-dist/assets/mermaid-parser.core-GpQo11SQ.js +129 -0
- package/dist/core-dist/assets/mermaid.core-BmMdWyIh.js +191 -0
- package/dist/core-dist/assets/min-CBpbEBoX.js +1 -0
- package/dist/core-dist/assets/min-dark-CafNBF8u.js +1 -0
- package/dist/core-dist/assets/min-light-CTRr51gU.js +1 -0
- package/dist/core-dist/assets/mindmap-definition-VGOIOE7T-B5j249CZ.js +68 -0
- package/dist/core-dist/assets/mips-CiqrrVzr.js +1 -0
- package/dist/core-dist/assets/mipsasm-CKIfxQSi.js +1 -0
- package/dist/core-dist/assets/mojo-B93PlW-d.js +1 -0
- package/dist/core-dist/assets/monokai-D4h5O-jR.js +1 -0
- package/dist/core-dist/assets/moonbit-Ba13S78F.js +1 -0
- package/dist/core-dist/assets/move-Bu9oaDYs.js +1 -0
- package/dist/core-dist/assets/msdax-DmeGPVcC.js +1 -0
- package/dist/core-dist/assets/mysql-C_tMU-Nz.js +1 -0
- package/dist/core-dist/assets/narrat-DRg8JJMk.js +1 -0
- package/dist/core-dist/assets/nextflow-BrzmwbiE.js +1 -0
- package/dist/core-dist/assets/nginx-DknmC5AR.js +1 -0
- package/dist/core-dist/assets/night-owl-C39BiMTA.js +1 -0
- package/dist/core-dist/assets/nim-CVrawwO9.js +1 -0
- package/dist/core-dist/assets/nix-CwoSXNpI.js +1 -0
- package/dist/core-dist/assets/nord-Ddv68eIx.js +1 -0
- package/dist/core-dist/assets/nushell-C-sUppwS.js +1 -0
- package/dist/core-dist/assets/objective-c-BDtDVThU.js +1 -0
- package/dist/core-dist/assets/objective-c-DXmwc3jG.js +1 -0
- package/dist/core-dist/assets/objective-cpp-CLxacb5B.js +1 -0
- package/dist/core-dist/assets/ocaml-C0hk2d4L.js +1 -0
- package/dist/core-dist/assets/one-dark-pro-DVMEJ2y_.js +1 -0
- package/dist/core-dist/assets/one-light-PoHY5YXO.js +1 -0
- package/dist/core-dist/assets/openscad-C4EeE6gA.js +1 -0
- package/dist/core-dist/assets/ordinal-BENe2yWM.js +1 -0
- package/dist/core-dist/assets/packet-BFZMPI3H-B3dLa20l.js +1 -0
- package/dist/core-dist/assets/pascal-D93ZcfNL.js +1 -0
- package/dist/core-dist/assets/pascal-vHIfCaH5.js +1 -0
- package/dist/core-dist/assets/pascaligo-DtZ0uQbO.js +1 -0
- package/dist/core-dist/assets/perl-C0TMdlhV.js +1 -0
- package/dist/core-dist/assets/perl-Ub6l9XKa.js +1 -0
- package/dist/core-dist/assets/pgsql-BlNEE0v7.js +1 -0
- package/dist/core-dist/assets/php-BBUBE1dy.js +1 -0
- package/dist/core-dist/assets/php-CDn_0X-4.js +1 -0
- package/dist/core-dist/assets/pie-7BOR55EZ-SduROXgQ.js +1 -0
- package/dist/core-dist/assets/pieDiagram-ADFJNKIX-DWDcg6KO.js +30 -0
- package/dist/core-dist/assets/pkl-u5AG7uiY.js +1 -0
- package/dist/core-dist/assets/pla-DSh2-awV.js +1 -0
- package/dist/core-dist/assets/plastic-3e1v2bzS.js +1 -0
- package/dist/core-dist/assets/plsql-ChMvpjG-.js +1 -0
- package/dist/core-dist/assets/po-BTJTHyun.js +1 -0
- package/dist/core-dist/assets/poimandres-CS3Unz2-.js +1 -0
- package/dist/core-dist/assets/polar-C0HS_06l.js +1 -0
- package/dist/core-dist/assets/postcss-CXtECtnM.js +1 -0
- package/dist/core-dist/assets/postiats-CocnycG-.js +1 -0
- package/dist/core-dist/assets/powerquery-CEu0bR-o.js +1 -0
- package/dist/core-dist/assets/powerquery-tScXyioY.js +1 -0
- package/dist/core-dist/assets/powershell-COWaemsV.js +1 -0
- package/dist/core-dist/assets/powershell-Dpen1YoG.js +1 -0
- package/dist/core-dist/assets/prisma-Dd19v3D-.js +1 -0
- package/dist/core-dist/assets/prolog-CbFg5uaA.js +1 -0
- package/dist/core-dist/assets/proto-C7zT0LnQ.js +1 -0
- package/dist/core-dist/assets/protobuf-Brw8urJB.js +2 -0
- package/dist/core-dist/assets/pug-8SOpv6rk.js +1 -0
- package/dist/core-dist/assets/pug-CGlum2m_.js +1 -0
- package/dist/core-dist/assets/puppet-BMWR74SV.js +1 -0
- package/dist/core-dist/assets/purescript-CklMAg4u.js +1 -0
- package/dist/core-dist/assets/python-B6aJPvgy.js +1 -0
- package/dist/core-dist/assets/python-DsM0goT4.js +1 -0
- package/dist/core-dist/assets/qml-3beO22l8.js +1 -0
- package/dist/core-dist/assets/qmldir-C8lEn-DE.js +1 -0
- package/dist/core-dist/assets/qsharp-Bw9ernYp.js +1 -0
- package/dist/core-dist/assets/qss-IeuSbFQv.js +1 -0
- package/dist/core-dist/assets/quadrantDiagram-AYHSOK5B-XoLRHaBF.js +7 -0
- package/dist/core-dist/assets/queries.store-DO7682hm.js +1 -0
- package/dist/core-dist/assets/r-Dspwwk_N.js +1 -0
- package/dist/core-dist/assets/r-j7ic8hl3.js +1 -0
- package/dist/core-dist/assets/racket-BqYA7rlc.js +1 -0
- package/dist/core-dist/assets/radar-NHE76QYJ-BUhlCoHu.js +1 -0
- package/dist/core-dist/assets/raku-DXvB9xmW.js +1 -0
- package/dist/core-dist/assets/razor-C1TweQQi.js +1 -0
- package/dist/core-dist/assets/razor-CzWHKXwU.js +1 -0
- package/dist/core-dist/assets/red-bN70gL4F.js +1 -0
- package/dist/core-dist/assets/redis-Bu5POkcn.js +1 -0
- package/dist/core-dist/assets/redshift-Bs9aos_-.js +1 -0
- package/dist/core-dist/assets/reg-C-SQnVFl.js +1 -0
- package/dist/core-dist/assets/regexp-CDVJQ6XC.js +1 -0
- package/dist/core-dist/assets/rel-C3B-1QV4.js +1 -0
- package/dist/core-dist/assets/requirementDiagram-UZGBJVZJ-DY4QxjKx.js +64 -0
- package/dist/core-dist/assets/restructuredtext-CqXO7rUv.js +1 -0
- package/dist/core-dist/assets/riscv-BM1_JUlF.js +1 -0
- package/dist/core-dist/assets/rose-pine-dawn-DHQR4-dF.js +1 -0
- package/dist/core-dist/assets/rose-pine-moon-D4_iv3hh.js +1 -0
- package/dist/core-dist/assets/rose-pine-qdsjHGoJ.js +1 -0
- package/dist/core-dist/assets/rosmsg-BJDFO7_C.js +1 -0
- package/dist/core-dist/assets/rst-B0xPkSld.js +1 -0
- package/dist/core-dist/assets/ruby-BvKwtOVI.js +1 -0
- package/dist/core-dist/assets/ruby-zBfavPgS.js +1 -0
- package/dist/core-dist/assets/runner-tab-D0elRWLb.js +915 -0
- package/dist/core-dist/assets/runner-tab-Dvl_Svmm.css +1 -0
- package/dist/core-dist/assets/rust-B1yitclQ.js +1 -0
- package/dist/core-dist/assets/rust-BzKRNQWT.js +1 -0
- package/dist/core-dist/assets/sankeyDiagram-TZEHDZUN-C4xfe9wH.js +10 -0
- package/dist/core-dist/assets/sas-cz2c8ADy.js +1 -0
- package/dist/core-dist/assets/sass-Cj5Yp3dK.js +1 -0
- package/dist/core-dist/assets/sb-BBc9UKZt.js +1 -0
- package/dist/core-dist/assets/scala-C151Ov-r.js +1 -0
- package/dist/core-dist/assets/scala-D9hQfWCl.js +1 -0
- package/dist/core-dist/assets/schema-BII6kTqY.js +1 -0
- package/dist/core-dist/assets/scheme-BPhDTwHR.js +1 -0
- package/dist/core-dist/assets/scheme-C98Dy4si.js +1 -0
- package/dist/core-dist/assets/scss-CBJaRo0y.js +3 -0
- package/dist/core-dist/assets/scss-OYdSNvt2.js +1 -0
- package/dist/core-dist/assets/sdbl-DVxCFoDh.js +1 -0
- package/dist/core-dist/assets/sequenceDiagram-WL72ISMW-DWhVOvUA.js +145 -0
- package/dist/core-dist/assets/shaderlab-Dg9Lc6iA.js +1 -0
- package/dist/core-dist/assets/shell-DiJ1NA_G.js +1 -0
- package/dist/core-dist/assets/shellscript-Yzrsuije.js +1 -0
- package/dist/core-dist/assets/shellsession-BADoaaVG.js +1 -0
- package/dist/core-dist/assets/slack-dark-BthQWCQV.js +1 -0
- package/dist/core-dist/assets/slack-ochin-DqwNpetd.js +1 -0
- package/dist/core-dist/assets/smalltalk-BERRCDM3.js +1 -0
- package/dist/core-dist/assets/snazzy-light-Bw305WKR.js +1 -0
- package/dist/core-dist/assets/solarized-dark-DXbdFlpD.js +1 -0
- package/dist/core-dist/assets/solarized-light-L9t79GZl.js +1 -0
- package/dist/core-dist/assets/solidity-Db0IVjzk.js +1 -0
- package/dist/core-dist/assets/solidity-rGO070M0.js +1 -0
- package/dist/core-dist/assets/sophia-CnS9iZB_.js +1 -0
- package/dist/core-dist/assets/soy-Brmx7dQM.js +1 -0
- package/dist/core-dist/assets/sparql-CJmd_6j2.js +1 -0
- package/dist/core-dist/assets/sparql-rVzFXLq3.js +1 -0
- package/dist/core-dist/assets/spinner-MM9EZ74I.js +1 -0
- package/dist/core-dist/assets/splunk-BtCnVYZw.js +1 -0
- package/dist/core-dist/assets/sql-BLtJtn59.js +1 -0
- package/dist/core-dist/assets/sql-ClhHkBeG.js +1 -0
- package/dist/core-dist/assets/ssh-config-_ykCGR6B.js +1 -0
- package/dist/core-dist/assets/st-CHwy0fLd.js +1 -0
- package/dist/core-dist/assets/stata-BH5u7GGu.js +1 -0
- package/dist/core-dist/assets/stateDiagram-FKZM4ZOC-B70Aswf4.js +1 -0
- package/dist/core-dist/assets/stateDiagram-v2-4FDKWEC3-Dc-RHAld.js +1 -0
- package/dist/core-dist/assets/stylus-BEDo0Tqx.js +1 -0
- package/dist/core-dist/assets/svelte-zxCyuUbr.js +1 -0
- package/dist/core-dist/assets/swift-CnmFD0ga.js +1 -0
- package/dist/core-dist/assets/swift-Dg5xB15N.js +1 -0
- package/dist/core-dist/assets/synthwave-84-CbfX1IO0.js +1 -0
- package/dist/core-dist/assets/system-verilog-CnnmHF94.js +1 -0
- package/dist/core-dist/assets/systemd-4A_iFExJ.js +1 -0
- package/dist/core-dist/assets/systemverilog-Bs9z6M-B.js +1 -0
- package/dist/core-dist/assets/talonscript-CkByrt1z.js +1 -0
- package/dist/core-dist/assets/tasl-QIJgUcNo.js +1 -0
- package/dist/core-dist/assets/tcl-Dm6ycUr_.js +1 -0
- package/dist/core-dist/assets/tcl-dwOrl1Do.js +1 -0
- package/dist/core-dist/assets/templ-W15q3VgB.js +1 -0
- package/dist/core-dist/assets/terraform-BETggiCN.js +1 -0
- package/dist/core-dist/assets/tex-CvyZ59Mk.js +1 -0
- package/dist/core-dist/assets/timeline-definition-IT6M3QCI-CjREf6gn.js +61 -0
- package/dist/core-dist/assets/tokyo-night-hegEt444.js +1 -0
- package/dist/core-dist/assets/toml-vGWfd6FD.js +1 -0
- package/dist/core-dist/assets/treemap-KMMF4GRG-Bbfo1cUw.js +1 -0
- package/dist/core-dist/assets/ts-tags-zn1MmPIZ.js +1 -0
- package/dist/core-dist/assets/ts.worker-BH9nVgjN.js +67718 -0
- package/dist/core-dist/assets/tsMode-womOZTe5.js +11 -0
- package/dist/core-dist/assets/tsv-B_m7g4N7.js +1 -0
- package/dist/core-dist/assets/tsx-COt5Ahok.js +1 -0
- package/dist/core-dist/assets/turtle-BsS91CYL.js +1 -0
- package/dist/core-dist/assets/twig-CO9l9SDP.js +1 -0
- package/dist/core-dist/assets/twig-Csy3S7wG.js +1 -0
- package/dist/core-dist/assets/typescript-BPQ3VLAy.js +1 -0
- package/dist/core-dist/assets/typescript-ClkwQ9Fj.js +1 -0
- package/dist/core-dist/assets/typespec-BGHnOYBU.js +1 -0
- package/dist/core-dist/assets/typespec-Btyra-wh.js +1 -0
- package/dist/core-dist/assets/typst-DHCkPAjA.js +1 -0
- package/dist/core-dist/assets/v-BcVCzyr7.js +1 -0
- package/dist/core-dist/assets/vala-CsfeWuGM.js +1 -0
- package/dist/core-dist/assets/vb-D17OF-Vu.js +1 -0
- package/dist/core-dist/assets/vb-Db0cS2oM.js +1 -0
- package/dist/core-dist/assets/verilog-BQ8w6xss.js +1 -0
- package/dist/core-dist/assets/vesper-DU1UobuO.js +1 -0
- package/dist/core-dist/assets/vhdl-CeAyd5Ju.js +1 -0
- package/dist/core-dist/assets/viml-CJc9bBzg.js +1 -0
- package/dist/core-dist/assets/visualizer-BTAd--C0.js +1 -0
- package/dist/core-dist/assets/vitesse-black-Bkuqu6BP.js +1 -0
- package/dist/core-dist/assets/vitesse-dark-D0r3Knsf.js +1 -0
- package/dist/core-dist/assets/vitesse-light-CVO1_9PV.js +1 -0
- package/dist/core-dist/assets/vue-DN_0RTcg.js +1 -0
- package/dist/core-dist/assets/vue-html-AaS7Mt5G.js +1 -0
- package/dist/core-dist/assets/vue-vine-CQOfvN7w.js +1 -0
- package/dist/core-dist/assets/vyper-CDx5xZoG.js +1 -0
- package/dist/core-dist/assets/wasm-CG6Dc4jp.js +1 -0
- package/dist/core-dist/assets/wasm-MzD3tlZU.js +1 -0
- package/dist/core-dist/assets/wenyan-BV7otONQ.js +1 -0
- package/dist/core-dist/assets/wgsl-BTesnYfV.js +298 -0
- package/dist/core-dist/assets/wgsl-Dx-B1_4e.js +1 -0
- package/dist/core-dist/assets/wikitext-BhOHFoWU.js +1 -0
- package/dist/core-dist/assets/wit-5i3qLPDT.js +1 -0
- package/dist/core-dist/assets/wolfram-lXgVvXCa.js +1 -0
- package/dist/core-dist/assets/xml-BIMxtbHt.js +1 -0
- package/dist/core-dist/assets/xml-sdJ4AIDG.js +1 -0
- package/dist/core-dist/assets/xsl-CtQFsRM5.js +1 -0
- package/dist/core-dist/assets/xychartDiagram-PRI3JC2R-kLx_CqKx.js +7 -0
- package/dist/core-dist/assets/yaml-Buea-lGh.js +1 -0
- package/dist/core-dist/assets/yaml-DblqwOQB.js +1 -0
- package/dist/core-dist/assets/zenscript-DVFEvuxE.js +1 -0
- package/dist/core-dist/assets/zig-VOosw3JB.js +1 -0
- package/dist/core-dist/image.png +0 -0
- package/dist/core-dist/index.html +14 -0
- package/dist/core-dist/vite.svg +1 -0
- package/dist/index.js +44 -44
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-BmMdWyIh.js","assets/index-D_Jinmad.js","assets/index-C1hGVAGZ.css","assets/code-block-IT6T5CEO-CY4ZkvyN.js","assets/queries.store-DO7682hm.js","assets/index-VbLkqC9g.js","assets/spinner-MM9EZ74I.js","assets/mermaid-VLURNSYL-BwQZ3L24.js","assets/katex-DvXFAOB1.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{aG as V3,r as k,e as du,j as b,b as El,u as q3,P as na,h as lr,i as $3,g as vl,K as Y3,aH as Kf,N as G3,aI as W3,O as X3,m as K3,U as Q3,V as Z3,Q as Qf,W as J3,X as e6,aJ as t6,aK as Zf,J as n6,aL as r6,aM as i6,aN as a6,aO as s6,aP as o6,aQ as u6,aR as l6,aS as c6,aT as h6,aU as d6,aV as f6,aW as m6,aX as p6,aY as g6,aZ as b6,c as br,M as Dt,o as ge,S as Ge,a_ as y6,a$ as x6,Y as Jf,_ as Ss,b0 as T6,b1 as E6,b2 as v6,b3 as A6,b4 as k6,b5 as w6,b6 as S6,b7 as e1,al as Cs,am as ra,ad as t1,ao as C6,b8 as N6,b9 as n1,aD as Ns,ba as Is,ag as ji,bb as r1,ar as or,a6 as i1,a7 as a1,a8 as s1,a9 as o1,aa as ja,ab as on,bc as u1,bd as I6,ak as l1,be as _6,bf as D6,bg as M6,bh as R6}from"./index-D_Jinmad.js";import{C as L6,u as _s}from"./queries.store-DO7682hm.js";import{S as c1,g as P6,K as Vi,I as h1,D as fu,a as mu,b as pu,c as gu,d as bu,e as yu,f as O6,R as F6}from"./index-VbLkqC9g.js";import{a as Qa,b as Za,c as Ja,u as Ds,S as B6}from"./spinner-MM9EZ74I.js";function d1(e){return V3({select:t=>t.location})}var Ms="Collapsible",[z6]=El(Ms),[H6,Al]=z6(Ms),f1=k.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:s,...o}=e,[u,l]=du({prop:r,defaultProp:i??!1,onChange:s,caller:Ms});return b.jsx(H6,{scope:n,disabled:a,contentId:q3(),open:u,onOpenToggle:k.useCallback(()=>l(c=>!c),[l]),children:b.jsx(na.div,{"data-state":wl(u),"data-disabled":a?"":void 0,...o,ref:t})})});f1.displayName=Ms;var m1="CollapsibleTrigger",p1=k.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=Al(m1,n);return b.jsx(na.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":wl(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:lr(e.onClick,i.onOpenToggle)})});p1.displayName=m1;var kl="CollapsibleContent",g1=k.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Al(kl,e.__scopeCollapsible);return b.jsx($3,{present:n||i.open,children:({present:a})=>b.jsx(U6,{...r,ref:t,present:a})})});g1.displayName=kl;var U6=k.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...a}=e,s=Al(kl,n),[o,u]=k.useState(r),l=k.useRef(null),c=vl(t,l),h=k.useRef(0),d=h.current,m=k.useRef(0),y=m.current,T=s.open||o,w=k.useRef(T),A=k.useRef(void 0);return k.useEffect(()=>{const E=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(E)},[]),Y3(()=>{const E=l.current;if(E){A.current=A.current||{transitionDuration:E.style.transitionDuration,animationName:E.style.animationName},E.style.transitionDuration="0s",E.style.animationName="none";const S=E.getBoundingClientRect();h.current=S.height,m.current=S.width,w.current||(E.style.transitionDuration=A.current.transitionDuration,E.style.animationName=A.current.animationName),u(r)}},[s.open,r]),b.jsx(na.div,{"data-state":wl(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!T,...a,ref:c,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:T&&i})});function wl(e){return e?"open":"closed"}var j6=f1,b1="AlertDialog",[V6]=El(b1,[Kf]),Nn=Kf(),y1=e=>{const{__scopeAlertDialog:t,...n}=e,r=Nn(t);return b.jsx(G3,{...r,...n,modal:!0})};y1.displayName=b1;var q6="AlertDialogTrigger",$6=k.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Nn(n);return b.jsx(t6,{...i,...r,ref:t})});$6.displayName=q6;var Y6="AlertDialogPortal",x1=e=>{const{__scopeAlertDialog:t,...n}=e,r=Nn(t);return b.jsx(J3,{...r,...n})};x1.displayName=Y6;var G6="AlertDialogOverlay",T1=k.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Nn(n);return b.jsx(e6,{...i,...r,ref:t})});T1.displayName=G6;var Fr="AlertDialogContent",[W6,X6]=V6(Fr),K6=K3("AlertDialogContent"),E1=k.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,a=Nn(n),s=k.useRef(null),o=vl(t,s),u=k.useRef(null);return b.jsx(W3,{contentName:Fr,titleName:v1,docsSlug:"alert-dialog",children:b.jsx(W6,{scope:n,cancelRef:u,children:b.jsxs(X3,{role:"alertdialog",...a,...i,ref:o,onOpenAutoFocus:lr(i.onOpenAutoFocus,l=>{l.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:l=>l.preventDefault(),onInteractOutside:l=>l.preventDefault(),children:[b.jsx(K6,{children:r}),b.jsx(Z6,{contentRef:s})]})})})});E1.displayName=Fr;var v1="AlertDialogTitle",A1=k.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Nn(n);return b.jsx(Q3,{...i,...r,ref:t})});A1.displayName=v1;var k1="AlertDialogDescription",w1=k.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Nn(n);return b.jsx(Z3,{...i,...r,ref:t})});w1.displayName=k1;var Q6="AlertDialogAction",S1=k.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Nn(n);return b.jsx(Qf,{...i,...r,ref:t})});S1.displayName=Q6;var C1="AlertDialogCancel",N1=k.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=X6(C1,n),a=Nn(n),s=vl(t,i);return b.jsx(Qf,{...a,...r,ref:s})});N1.displayName=C1;var Z6=({contentRef:e})=>{const t=`\`${Fr}\` requires a description for the component to be accessible for screen reader users.
|
|
3
|
+
|
|
4
|
+
You can add a description to the \`${Fr}\` by passing a \`${k1}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
5
|
+
|
|
6
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Fr}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
7
|
+
|
|
8
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return k.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},J6=y1,e5=x1,t5=T1,n5=E1,r5=S1,i5=N1,a5=A1,s5=w1,Sl="ContextMenu",[o5]=El(Sl,[Zf]),yt=Zf(),[u5,I1]=o5(Sl),_1=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,dir:i,modal:a=!0}=e,[s,o]=k.useState(!1),u=yt(t),l=n6(r),c=k.useCallback(h=>{o(h),l(h)},[l]);return b.jsx(u5,{scope:t,open:s,onOpenChange:c,modal:a,children:b.jsx(r6,{...u,dir:i,open:s,onOpenChange:c,modal:a,children:n})})};_1.displayName=Sl;var D1="ContextMenuTrigger",M1=k.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=I1(D1,n),s=yt(n),o=k.useRef({x:0,y:0}),u=k.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...o.current})}),l=k.useRef(0),c=k.useCallback(()=>window.clearTimeout(l.current),[]),h=d=>{o.current={x:d.clientX,y:d.clientY},a.onOpenChange(!0)};return k.useEffect(()=>c,[c]),k.useEffect(()=>{r&&c()},[r,c]),b.jsxs(b.Fragment,{children:[b.jsx(i6,{...s,virtualRef:u}),b.jsx(na.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...i,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:lr(e.onContextMenu,d=>{c(),h(d),d.preventDefault()}),onPointerDown:r?e.onPointerDown:lr(e.onPointerDown,Ta(d=>{c(),l.current=window.setTimeout(()=>h(d),700)})),onPointerMove:r?e.onPointerMove:lr(e.onPointerMove,Ta(c)),onPointerCancel:r?e.onPointerCancel:lr(e.onPointerCancel,Ta(c)),onPointerUp:r?e.onPointerUp:lr(e.onPointerUp,Ta(c))})]})});M1.displayName=D1;var l5="ContextMenuPortal",R1=e=>{const{__scopeContextMenu:t,...n}=e,r=yt(t);return b.jsx(a6,{...r,...n})};R1.displayName=l5;var L1="ContextMenuContent",P1=k.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=I1(L1,n),a=yt(n),s=k.useRef(!1);return b.jsx(s6,{...a,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),!o.defaultPrevented&&s.current&&o.preventDefault(),s.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),!o.defaultPrevented&&!i.modal&&(s.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});P1.displayName=L1;var c5="ContextMenuGroup",h5=k.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=yt(n);return b.jsx(l6,{...i,...r,ref:t})});h5.displayName=c5;var d5="ContextMenuLabel",f5=k.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=yt(n);return b.jsx(c6,{...i,...r,ref:t})});f5.displayName=d5;var m5="ContextMenuItem",O1=k.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=yt(n);return b.jsx(o6,{...i,...r,ref:t})});O1.displayName=m5;var p5="ContextMenuCheckboxItem",g5=k.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=yt(n);return b.jsx(h6,{...i,...r,ref:t})});g5.displayName=p5;var b5="ContextMenuRadioGroup",y5=k.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=yt(n);return b.jsx(d6,{...i,...r,ref:t})});y5.displayName=b5;var x5="ContextMenuRadioItem",T5=k.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=yt(n);return b.jsx(f6,{...i,...r,ref:t})});T5.displayName=x5;var E5="ContextMenuItemIndicator",v5=k.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=yt(n);return b.jsx(m6,{...i,...r,ref:t})});v5.displayName=E5;var A5="ContextMenuSeparator",F1=k.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=yt(n);return b.jsx(u6,{...i,...r,ref:t})});F1.displayName=A5;var k5="ContextMenuArrow",w5=k.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=yt(n);return b.jsx(p6,{...i,...r,ref:t})});w5.displayName=k5;var S5="ContextMenuSubTrigger",C5=k.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=yt(n);return b.jsx(g6,{...i,...r,ref:t})});C5.displayName=S5;var N5="ContextMenuSubContent",I5=k.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=yt(n);return b.jsx(b6,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});I5.displayName=N5;function Ta(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var _5=_1,D5=M1,M5=R1,R5=P1,L5=O1,P5=F1,O5="Separator",sc="horizontal",F5=["horizontal","vertical"],B1=k.forwardRef((e,t)=>{const{decorative:n,orientation:r=sc,...i}=e,a=B5(r)?r:sc,o=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return b.jsx(na.div,{"data-orientation":a,...o,...i,ref:t})});B1.displayName=O5;function B5(e){return F5.includes(e)}var z5=B1;const H5=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],U5=br("arrow-down",H5);const j5=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],V5=br("brain",j5);const q5=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],oc=br("chevron-right",q5);const $5=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Y5=br("database",$5);const G5=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],W5=br("loader-circle",G5);const X5=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],K5=br("plus",X5);const Q5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Z5=br("square",Q5);const J5=[["path",{d:"M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5",key:"svg-0"}]],eb=Dt("outline","brand-github","BrandGithub",J5);const tb=[["path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]],nb=Dt("outline","copy","Copy",tb);const rb=[["path",{d:"M12 19h-7a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v3.5",key:"svg-0"}],["path",{d:"M16 19h6",key:"svg-1"}],["path",{d:"M19 16v6",key:"svg-2"}]],z1=Dt("outline","folder-plus","FolderPlus",rb);const ib=[["path",{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2",key:"svg-0"}]],ab=Dt("outline","folder","Folder",ib);const sb=[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M9 4l0 16",key:"svg-1"}]],ob=Dt("outline","layout-sidebar","LayoutSidebar",sb);const ub=[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]],H1=Dt("outline","pencil","Pencil",ub);const lb=[["path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4",key:"svg-0"}],["path",{d:"M9 15l-4.5 4.5",key:"svg-1"}],["path",{d:"M14.5 4l5.5 5.5",key:"svg-2"}]],cb=Dt("outline","pin","Pin",lb);const hb=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],Cl=Dt("outline","plus","Plus",hb);const db=[["path",{d:"M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6",key:"svg-0"}]],fb=Dt("outline","sparkles","Sparkles",db);const mb=[["path",{d:"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873l-6.158 -3.245",key:"svg-0"}]],pb=Dt("outline","star","Star",mb);const gb=[["path",{d:"M6 21a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3zm12 -16h-8v14h8a1 1 0 0 0 1 -1v-12a1 1 0 0 0 -1 -1",key:"svg-0"}]],bb=Dt("filled","layout-sidebar-filled","LayoutSidebarFilled",gb);const yb=[["path",{d:"M15.113 3.21l.094 .083l5.5 5.5a1 1 0 0 1 -1.175 1.59l-3.172 3.171l-1.424 3.797a1 1 0 0 1 -.158 .277l-.07 .08l-1.5 1.5a1 1 0 0 1 -1.32 .082l-.095 -.083l-2.793 -2.792l-3.793 3.792a1 1 0 0 1 -1.497 -1.32l.083 -.094l3.792 -3.793l-2.792 -2.793a1 1 0 0 1 -.083 -1.32l.083 -.094l1.5 -1.5a1 1 0 0 1 .258 -.187l.098 -.042l3.796 -1.425l3.171 -3.17a1 1 0 0 1 1.497 -1.26z",key:"svg-0"}]],xb=Dt("filled","pin-filled","PinFilled",yb);const Tb=[["path",{d:"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z",key:"svg-0"}]],Eb=Dt("filled","star-filled","StarFilled",Tb),vb=["Show me all tables in my database","What columns are in the users table?","Write a query to find all active users","How many orders were placed last month?","Find top 5 customers by total spend","Write a JOIN between users and orders","Users who haven't made any purchase yet","Generate monthly revenue summary query","Suggest useful indexes for better performance","Show schema of the products / inventory table","Latest 20 orders with customer names","Help me write a safe UPDATE query"],Ab={SITE_GITHUB_LINK:"https://github.com/husamql3/db-studio"};function kb({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return b.jsx(z5,{"data-slot":"separator",decorative:n,orientation:t,className:ge("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",e),...r})}class wb{#a=!0;#t;#e;#h;#n;#o;#r;#u;#d=0;#m=5;#s=!1;#l=!1;#i=null;#f=()=>{this.debugLog("Connected to event bus"),this.#o=!0,this.#s=!1,this.debugLog("Emitting queued events",this.#n),this.#n.forEach(t=>this.emitEventToBus(t)),this.#n=[],this.stopConnectLoop(),this.#e().removeEventListener("tanstack-connect-success",this.#f)};#c=()=>{if(this.#d<this.#m){this.#d++,this.dispatchCustomEvent("tanstack-connect",{});return}this.#e().removeEventListener("tanstack-connect",this.#c),this.#l=!0,this.debugLog("Max retries reached, giving up on connection"),this.stopConnectLoop()};#p=()=>{this.#s||(this.#s=!0,this.#e().addEventListener("tanstack-connect-success",this.#f),this.#c())};constructor({pluginId:t,debug:n=!1,enabled:r=!0,reconnectEveryMs:i=300}){this.#t=t,this.#a=r,this.#e=this.getGlobalTarget,this.#h=n,this.debugLog(" Initializing event subscription for plugin",this.#t),this.#n=[],this.#o=!1,this.#l=!1,this.#r=null,this.#u=i}startConnectLoop(){this.#r!==null||this.#o||(this.debugLog(`Starting connect loop (every ${this.#u}ms)`),this.#r=setInterval(this.#c,this.#u))}stopConnectLoop(){this.#s=!1,this.#r!==null&&(clearInterval(this.#r),this.#r=null,this.#n=[],this.debugLog("Stopped connect loop"))}debugLog(...t){this.#h&&console.log(`🌴 [tanstack-devtools:${this.#t}-plugin]`,...t)}getGlobalTarget(){if(typeof globalThis<"u"&&globalThis.__TANSTACK_EVENT_TARGET__)return this.debugLog("Using global event target"),globalThis.__TANSTACK_EVENT_TARGET__;if(typeof window<"u"&&typeof window.addEventListener<"u")return this.debugLog("Using window as event target"),window;const t=typeof EventTarget<"u"?new EventTarget:void 0;return typeof t>"u"||typeof t.addEventListener>"u"?(this.debugLog("No event mechanism available, running in non-web environment"),{addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:()=>!1}):(this.debugLog("Using new EventTarget as fallback"),t)}getPluginId(){return this.#t}dispatchCustomEventShim(t,n){try{const r=new Event(t,{detail:n});this.#e().dispatchEvent(r)}catch{this.debugLog("Failed to dispatch shim event")}}dispatchCustomEvent(t,n){try{this.#e().dispatchEvent(new CustomEvent(t,{detail:n}))}catch{this.dispatchCustomEventShim(t,n)}}emitEventToBus(t){this.debugLog("Emitting event to client bus",t),this.dispatchCustomEvent("tanstack-dispatch-event",t)}createEventPayload(t,n){return{type:`${this.#t}:${t}`,payload:n,pluginId:this.#t}}emit(t,n){if(!this.#a){this.debugLog("Event bus client is disabled, not emitting event",t,n);return}if(this.#i&&(this.debugLog("Emitting event to internal event target",t,n),this.#i.dispatchEvent(new CustomEvent(`${this.#t}:${t}`,{detail:this.createEventPayload(t,n)}))),this.#l){this.debugLog("Previously failed to connect, not emitting to bus");return}if(!this.#o){this.debugLog("Bus not available, will be pushed as soon as connected"),this.#n.push(this.createEventPayload(t,n)),typeof CustomEvent<"u"&&!this.#s&&(this.#p(),this.startConnectLoop());return}return this.emitEventToBus(this.createEventPayload(t,n))}on(t,n,r){const i=r?.withEventTarget??!1,a=`${this.#t}:${t}`;if(i&&(this.#i||(this.#i=new EventTarget),this.#i.addEventListener(a,o=>{n(o.detail)})),!this.#a)return this.debugLog("Event bus client is disabled, not registering event",a),()=>{};const s=o=>{this.debugLog("Received event from bus",o.detail),n(o.detail)};return this.#e().addEventListener(a,s),this.debugLog("Registered event to bus",a),()=>{i&&this.#i?.removeEventListener(a,s),this.#e().removeEventListener(a,s)}}onAll(t){if(!this.#a)return this.debugLog("Event bus client is disabled, not registering event"),()=>{};const n=r=>{const i=r.detail;t(i)};return this.#e().addEventListener("tanstack-devtools-global",n),()=>this.#e().removeEventListener("tanstack-devtools-global",n)}onAllPluginEvents(t){if(!this.#a)return this.debugLog("Event bus client is disabled, not registering event"),()=>{};const n=r=>{const i=r.detail;this.#t&&i.pluginId!==this.#t||t(i)};return this.#e().addEventListener("tanstack-devtools-global",n),()=>this.#e().removeEventListener("tanstack-devtools-global",n)}}class Sb extends wb{constructor(){super({pluginId:"tanstack-ai-devtools"})}}const uc=new Sb;function lc(e){return e===null?"":typeof e=="string"?e:e.filter(t=>t.type==="text").map(t=>t.content).join("")}function Cb(e){const t=[];for(const n of e)"parts"in n?t.push(...U1(n)):t.push(n);return t}function U1(e){const t=[];if(e.role==="system")return t;const n=[],r=[],i=[];for(const o of e.parts)o.type==="text"?n.push(o):o.type==="tool-call"?r.push(o):o.type==="tool-result"&&i.push(o);const a=n.map(o=>o.content).join("")||null,s=r.length>0?r.filter(o=>o.state==="input-complete"||o.state==="approval-responded"||o.output!==void 0).map(o=>({id:o.id,type:"function",function:{name:o.name,arguments:o.arguments}})):void 0;e.role!=="assistant"||a||!s?t.push({role:e.role,content:a,...s&&s.length>0&&{toolCalls:s}}):s.length>0&&t.push({role:"assistant",content:a,toolCalls:s});for(const o of i)(o.state==="complete"||o.state==="error")&&t.push({role:"tool",content:o.content,toolCallId:o.toolCallId});return t}function Nb(e,t){const n=[],r=lc(e.content);if(r&&n.push({type:"text",content:r}),e.toolCalls&&e.toolCalls.length>0)for(const i of e.toolCalls)n.push({type:"tool-call",id:i.id,name:i.function.name,arguments:i.function.arguments,state:"input-complete"});return e.role==="tool"&&e.toolCallId&&n.push({type:"tool-result",toolCallId:e.toolCallId,content:lc(e.content),state:"complete"}),{id:t||es(),role:e.role==="tool"?"assistant":e.role,parts:n}}function Ib(e,t){return"parts"in e?{...e,id:e.id||t(),createdAt:e.createdAt||new Date}:{...Nb(e,t()),createdAt:new Date}}function es(){return`msg-${Date.now()}-${Math.random().toString(36).substring(7)}`}var tr={},so={},cc;function hc(){return cc||(cc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Allow=e.ALL=e.COLLECTION=e.ATOM=e.SPECIAL=e.INF=e._INFINITY=e.INFINITY=e.NAN=e.BOOL=e.NULL=e.OBJ=e.ARR=e.NUM=e.STR=void 0,e.STR=1,e.NUM=2,e.ARR=4,e.OBJ=8,e.NULL=16,e.BOOL=32,e.NAN=64,e.INFINITY=128,e._INFINITY=256,e.INF=e.INFINITY|e._INFINITY,e.SPECIAL=e.NULL|e.BOOL|e.INF|e.NAN,e.ATOM=e.STR|e.NUM|e.SPECIAL,e.COLLECTION=e.ARR|e.OBJ,e.ALL=e.ATOM|e.COLLECTION,e.Allow={STR:e.STR,NUM:e.NUM,ARR:e.ARR,OBJ:e.OBJ,NULL:e.NULL,BOOL:e.BOOL,NAN:e.NAN,INFINITY:e.INFINITY,_INFINITY:e._INFINITY,INF:e.INF,SPECIAL:e.SPECIAL,ATOM:e.ATOM,COLLECTION:e.COLLECTION,ALL:e.ALL},e.default=e.Allow})(so)),so}var dc;function _b(){return dc||(dc=1,(function(e){var t=tr&&tr.__createBinding||(Object.create?(function(l,c,h,d){d===void 0&&(d=h);var m=Object.getOwnPropertyDescriptor(c,h);(!m||("get"in m?!c.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return c[h]}}),Object.defineProperty(l,d,m)}):(function(l,c,h,d){d===void 0&&(d=h),l[d]=c[h]})),n=tr&&tr.__exportStar||function(l,c){for(var h in l)h!=="default"&&!Object.prototype.hasOwnProperty.call(c,h)&&t(c,l,h)};Object.defineProperty(e,"__esModule",{value:!0}),e.Allow=e.MalformedJSON=e.PartialJSON=e.parseJSON=e.parse=void 0;const r=hc();Object.defineProperty(e,"Allow",{enumerable:!0,get:function(){return r.Allow}}),n(hc(),e);class i extends Error{}e.PartialJSON=i;class a extends Error{}e.MalformedJSON=a;function s(l,c=r.Allow.ALL){if(typeof l!="string")throw new TypeError(`expecting str, got ${typeof l}`);if(!l.trim())throw new Error(`${l} is empty`);return o(l.trim(),c)}e.parseJSON=s;const o=(l,c)=>{const h=l.length;let d=0;const m=P=>{throw new i(`${P} at position ${d}`)},y=P=>{throw new a(`${P} at position ${d}`)},T=()=>(O(),d>=h&&m("Unexpected end of input"),l[d]==='"'?w():l[d]==="{"?A():l[d]==="["?E():l.substring(d,d+4)==="null"||r.Allow.NULL&c&&h-d<4&&"null".startsWith(l.substring(d))?(d+=4,null):l.substring(d,d+4)==="true"||r.Allow.BOOL&c&&h-d<4&&"true".startsWith(l.substring(d))?(d+=4,!0):l.substring(d,d+5)==="false"||r.Allow.BOOL&c&&h-d<5&&"false".startsWith(l.substring(d))?(d+=5,!1):l.substring(d,d+8)==="Infinity"||r.Allow.INFINITY&c&&h-d<8&&"Infinity".startsWith(l.substring(d))?(d+=8,1/0):l.substring(d,d+9)==="-Infinity"||r.Allow._INFINITY&c&&1<h-d&&h-d<9&&"-Infinity".startsWith(l.substring(d))?(d+=9,-1/0):l.substring(d,d+3)==="NaN"||r.Allow.NAN&c&&h-d<3&&"NaN".startsWith(l.substring(d))?(d+=3,NaN):S()),w=()=>{const P=d;let D=!1;for(d++;d<h&&(l[d]!=='"'||D&&l[d-1]==="\\");)D=l[d]==="\\"?!D:!1,d++;if(l.charAt(d)=='"')try{return JSON.parse(l.substring(P,++d-Number(D)))}catch(U){y(String(U))}else if(r.Allow.STR&c)try{return JSON.parse(l.substring(P,d-Number(D))+'"')}catch{return JSON.parse(l.substring(P,l.lastIndexOf("\\"))+'"')}m("Unterminated string literal")},A=()=>{d++,O();const P={};try{for(;l[d]!=="}";){if(O(),d>=h&&r.Allow.OBJ&c)return P;const D=w();O(),d++;try{const U=T();P[D]=U}catch(U){if(r.Allow.OBJ&c)return P;throw U}O(),l[d]===","&&d++}}catch{if(r.Allow.OBJ&c)return P;m("Expected '}' at end of object")}return d++,P},E=()=>{d++;const P=[];try{for(;l[d]!=="]";)P.push(T()),O(),l[d]===","&&d++}catch{if(r.Allow.ARR&c)return P;m("Expected ']' at end of array")}return d++,P},S=()=>{if(d===0){l==="-"&&y("Not sure what '-' is");try{return JSON.parse(l)}catch(D){if(r.Allow.NUM&c)try{return JSON.parse(l.substring(0,l.lastIndexOf("e")))}catch{}y(String(D))}}const P=d;for(l[d]==="-"&&d++;l[d]&&",]}".indexOf(l[d])===-1;)d++;d==h&&!(r.Allow.NUM&c)&&m("Unterminated number literal");try{return JSON.parse(l.substring(P,d))}catch{l.substring(P,d)==="-"&&m("Not sure what '-' is");try{return JSON.parse(l.substring(P,l.lastIndexOf("e")))}catch(U){y(String(U))}}},O=()=>{for(;d<h&&`
|
|
9
|
+
\r `.includes(l[d]);)d++};return T()},u=s;e.parse=u})(tr)),tr}var Db=_b();class Mb{parse(t){if(!(!t||t.trim()===""))try{return Db.parse(t)}catch{return}}}const Rb=new Mb;function Lb(e,t,n){return e.map(r=>{if(r.id!==t)return r;const i=[...r.parts],a=i.length>0?i[i.length-1]:null;return a&&a.type==="text"?i[i.length-1]={type:"text",content:n}:i.push({type:"text",content:n}),{...r,parts:i}})}function oo(e,t,n){return e.map(r=>{if(r.id!==t)return r;const i=[...r.parts],a=i.findIndex(o=>o.type==="tool-call"&&o.id===n.id),s={type:"tool-call",id:n.id,name:n.name,arguments:n.arguments,state:n.state};return a>=0?i[a]=s:i.push(s),{...r,parts:i}})}function fc(e,t,n,r,i,a){return e.map(s=>{if(s.id!==t)return s;const o=[...s.parts],u=o.findIndex(c=>c.type==="tool-result"&&c.toolCallId===n),l={type:"tool-result",toolCallId:n,content:r,state:i,...a&&{error:a}};return u>=0?o[u]=l:o.push(l),{...s,parts:o}})}function Pb(e,t,n,r){return e.map(i=>{if(i.id!==t)return i;const a=[...i.parts],s=a.find(o=>o.type==="tool-call"&&o.id===n);return s&&(s.state="approval-requested",s.approval={id:r,needsApproval:!0}),{...i,parts:a}})}function Ob(e,t,n,r,i){return e.map(a=>{const s=[...a.parts],o=s.find(u=>u.type==="tool-call"&&u.id===t);return o&&(o.output=i?{error:i}:n,r?o.state=r:o.state="input-complete"),{...a,parts:s}})}function Fb(e,t,n){return e.map(r=>{const i=[...r.parts],a=i.find(s=>s.type==="tool-call"&&s.approval?.id===t);return a&&a.approval&&(a.approval.approved=n,a.state="approval-responded"),{...r,parts:i}})}function Bb(e,t,n){return e.map(r=>{if(r.id!==t)return r;const i=[...r.parts],a=i.findIndex(o=>o.type==="thinking"),s={type:"thinking",content:n};return a>=0?i[a]=s:i.push(s),{...r,parts:i}})}class zb{shouldEmit(t,n){return!0}}class Nl{constructor(t={}){this.messages=[],this.currentAssistantMessageId=null,this.totalTextContent="",this.currentSegmentText="",this.lastEmittedText="",this.thinkingContent="",this.toolCalls=new Map,this.toolCallOrder=[],this.finishReason=null,this.isDone=!1,this.hasToolCallsSinceTextStart=!1,this.recording=null,this.recordingStartTime=0,this.chunkStrategy=t.chunkStrategy||new zb,this.events=t.events||{},this.handlers=t.handlers||{},this.jsonParser=t.jsonParser||Rb,this.recordingEnabled=t.recording??!1,t.initialMessages&&(this.messages=[...t.initialMessages])}setMessages(t){this.messages=[...t],this.emitMessagesChange()}addUserMessage(t){const n={id:es(),role:"user",parts:[{type:"text",content:t}],createdAt:new Date};return this.messages=[...this.messages,n],this.emitMessagesChange(),n}startAssistantMessage(){this.resetStreamState();const t={id:es(),role:"assistant",parts:[],createdAt:new Date};return this.currentAssistantMessageId=t.id,this.messages=[...this.messages,t],this.events.onStreamStart?.(),this.emitMessagesChange(),t.id}addToolResult(t,n,r){const i=this.messages.find(u=>u.parts.some(l=>l.type==="tool-call"&&l.id===t));if(!i){console.warn(`[StreamProcessor] Could not find message with tool call ${t}`);return}let a=Ob(this.messages,t,n,r?"input-complete":void 0,r);const s=typeof n=="string"?n:JSON.stringify(n),o=r?"error":"complete";a=fc(a,i.id,t,s,o,r),this.messages=a,this.emitMessagesChange()}addToolApprovalResponse(t,n){this.messages=Fb(this.messages,t,n),this.emitMessagesChange()}toModelMessages(){const t=[];for(const n of this.messages)t.push(...U1(n));return t}getMessages(){return this.messages}areAllToolsComplete(){const t=this.messages.findLast(r=>r.role==="assistant");if(!t)return!0;const n=t.parts.filter(r=>r.type==="tool-call");return n.length===0?!0:n.every(r=>r.state==="approval-responded"||r.output!==void 0&&!r.approval)}removeMessagesAfter(t){this.messages=this.messages.slice(0,t+1),this.emitMessagesChange()}clearMessages(){this.messages=[],this.currentAssistantMessageId=null,this.emitMessagesChange()}async process(t){this.resetStreamState(),this.recordingEnabled&&this.startRecording();for await(const n of t)this.processChunk(n);return this.finalizeStream(),this.recording&&(this.recording.result=this.getResult()),this.getResult()}processChunk(t){switch(this.recording&&this.recording.chunks.push({chunk:t,timestamp:Date.now(),index:this.recording.chunks.length}),t.type){case"content":this.handleContentChunk(t);break;case"tool_call":this.handleToolCallChunk(t);break;case"tool_result":this.handleToolResultChunk(t);break;case"done":this.handleDoneChunk(t);break;case"error":this.handleErrorChunk(t);break;case"thinking":this.handleThinkingChunk(t);break;case"approval-requested":this.handleApprovalRequestedChunk(t);break;case"tool-input-available":this.handleToolInputAvailableChunk(t);break}}handleContentChunk(t){this.completeAllToolCalls();const n=this.currentSegmentText;this.hasToolCallsSinceTextStart&&n.length>0&&this.isNewTextSegment(t,n)&&(n!==this.lastEmittedText&&this.emitTextUpdate(),this.currentSegmentText="",this.lastEmittedText="",this.hasToolCallsSinceTextStart=!1);const i=this.currentSegmentText;let a=i;t.delta!==""?a=i+t.delta:t.content!==""&&(t.content.startsWith(i)?a=t.content:i.startsWith(t.content)?a=i:a=i+t.content);const s=a.slice(i.length);this.currentSegmentText=a,this.totalTextContent+=s;const o=t.delta??t.content??"";this.chunkStrategy.shouldEmit(o,this.currentSegmentText)&&this.currentSegmentText!==this.lastEmittedText&&this.emitTextUpdate()}handleToolCallChunk(t){this.hasToolCallsSinceTextStart=!0;const n=t.toolCall.id,r=this.toolCalls.get(n);if(r){const i=r.state==="awaiting-input";r.arguments+=t.toolCall.function.arguments||"",i&&t.toolCall.function.arguments&&(r.state="input-streaming"),r.parsedArguments=this.jsonParser.parse(r.arguments);const a=this.toolCallOrder.indexOf(n);this.handlers.onToolCallStateChange?.(a,r.id,r.name,r.state,r.arguments,r.parsedArguments),t.toolCall.function.arguments&&this.handlers.onToolCallDelta?.(a,t.toolCall.function.arguments),this.currentAssistantMessageId&&(this.messages=oo(this.messages,this.currentAssistantMessageId,{id:r.id,name:r.name,arguments:r.arguments,state:r.state}),this.emitMessagesChange(),this.events.onToolCallStateChange?.(this.currentAssistantMessageId,r.id,r.state,r.arguments))}else{const i=t.toolCall.function.arguments?"input-streaming":"awaiting-input",a={id:t.toolCall.id,name:t.toolCall.function.name,arguments:t.toolCall.function.arguments||"",state:i,parsedArguments:void 0,index:t.index};t.toolCall.function.arguments&&(a.parsedArguments=this.jsonParser.parse(t.toolCall.function.arguments)),this.toolCalls.set(n,a),this.toolCallOrder.push(n);const s=this.toolCallOrder.indexOf(n);this.handlers.onToolCallStart?.(s,t.toolCall.id,t.toolCall.function.name),this.handlers.onToolCallStateChange?.(s,t.toolCall.id,t.toolCall.function.name,i,t.toolCall.function.arguments||"",a.parsedArguments),t.toolCall.function.arguments&&this.handlers.onToolCallDelta?.(s,t.toolCall.function.arguments),this.currentAssistantMessageId&&(this.messages=oo(this.messages,this.currentAssistantMessageId,{id:t.toolCall.id,name:t.toolCall.function.name,arguments:t.toolCall.function.arguments||"",state:i}),this.emitMessagesChange(),this.events.onToolCallStateChange?.(this.currentAssistantMessageId,t.toolCall.id,i,t.toolCall.function.arguments||""))}}handleToolResultChunk(t){const n="complete";this.handlers.onToolResultStateChange?.(t.toolCallId,t.content,n),this.currentAssistantMessageId&&(this.messages=fc(this.messages,this.currentAssistantMessageId,t.toolCallId,t.content,n),this.emitMessagesChange())}handleDoneChunk(t){this.finishReason=t.finishReason,this.isDone=!0,this.completeAllToolCalls()}handleErrorChunk(t){this.handlers.onError?.(t.error),this.events.onError?.(new Error(t.error.message))}handleThinkingChunk(t){const n=this.thinkingContent;let r=n;t.delta&&t.delta!==""?r=n+t.delta:t.content!==""&&(t.content.startsWith(n)?r=t.content:n.startsWith(t.content)?r=n:r=n+t.content),this.thinkingContent=r,this.handlers.onThinkingUpdate?.(this.thinkingContent),this.currentAssistantMessageId&&(this.messages=Bb(this.messages,this.currentAssistantMessageId,this.thinkingContent),this.emitMessagesChange(),this.events.onThinkingUpdate?.(this.currentAssistantMessageId,this.thinkingContent))}handleApprovalRequestedChunk(t){this.handlers.onApprovalRequested?.(t.toolCallId,t.toolName,t.input,t.approval.id),this.currentAssistantMessageId&&(this.messages=Pb(this.messages,this.currentAssistantMessageId,t.toolCallId,t.approval.id),this.emitMessagesChange()),this.events.onApprovalRequest?.({toolCallId:t.toolCallId,toolName:t.toolName,input:t.input,approvalId:t.approval.id})}handleToolInputAvailableChunk(t){this.handlers.onToolInputAvailable?.(t.toolCallId,t.toolName,t.input),this.events.onToolCall?.({toolCallId:t.toolCallId,toolName:t.toolName,input:t.input})}isNewTextSegment(t,n){return t.delta!==void 0&&t.content!==void 0&&(t.content.length<n.length||!t.content.startsWith(n)&&!n.startsWith(t.content))}completeAllToolCalls(){this.toolCalls.forEach((t,n)=>{if(t.state!=="input-complete"){const r=this.toolCallOrder.indexOf(n);this.completeToolCall(r,t)}})}completeToolCall(t,n){n.state="input-complete",n.parsedArguments=this.jsonParser.parse(n.arguments),this.handlers.onToolCallStateChange?.(t,n.id,n.name,"input-complete",n.arguments,n.parsedArguments),this.handlers.onToolCallComplete?.(t,n.id,n.name,n.arguments),this.currentAssistantMessageId&&(this.messages=oo(this.messages,this.currentAssistantMessageId,{id:n.id,name:n.name,arguments:n.arguments,state:"input-complete"}),this.emitMessagesChange(),this.events.onToolCallStateChange?.(this.currentAssistantMessageId,n.id,"input-complete",n.arguments))}emitTextUpdate(){this.lastEmittedText=this.currentSegmentText,this.handlers.onTextUpdate?.(this.currentSegmentText),this.currentAssistantMessageId&&(this.messages=Lb(this.messages,this.currentAssistantMessageId,this.currentSegmentText),this.emitMessagesChange(),this.events.onTextUpdate?.(this.currentAssistantMessageId,this.currentSegmentText))}emitMessagesChange(){this.events.onMessagesChange?.([...this.messages])}finalizeStream(){this.completeAllToolCalls(),this.currentSegmentText!==this.lastEmittedText&&this.emitTextUpdate();const t=this.getCompletedToolCalls();if(this.handlers.onStreamEnd?.(this.totalTextContent,t.length>0?t:void 0),this.currentAssistantMessageId){const n=this.messages.find(r=>r.id===this.currentAssistantMessageId);n&&this.events.onStreamEnd?.(n)}}getCompletedToolCalls(){return Array.from(this.toolCalls.values()).filter(t=>t.state==="input-complete").map(t=>({id:t.id,type:"function",function:{name:t.name,arguments:t.arguments}}))}getResult(){const t=this.getCompletedToolCalls();return{content:this.totalTextContent,thinking:this.thinkingContent||void 0,toolCalls:t.length>0?t:void 0,finishReason:this.finishReason}}getState(){return{content:this.totalTextContent,thinking:this.thinkingContent,toolCalls:new Map(this.toolCalls),toolCallOrder:[...this.toolCallOrder],finishReason:this.finishReason,done:this.isDone}}startRecording(){this.recordingEnabled=!0,this.recordingStartTime=Date.now(),this.recording={version:"1.0",timestamp:this.recordingStartTime,chunks:[]}}getRecording(){return this.recording}resetStreamState(){this.totalTextContent="",this.currentSegmentText="",this.lastEmittedText="",this.thinkingContent="",this.toolCalls.clear(),this.toolCallOrder=[],this.finishReason=null,this.isDone=!1,this.hasToolCallsSinceTextStart=!1,this.chunkStrategy.reset?.()}reset(){this.resetStreamState(),this.messages=[],this.currentAssistantMessageId=null}static async replay(t,n){return new Nl(n).process(Hb(t))}}function Hb(e){return{async*[Symbol.asyncIterator](){for(const{chunk:t}of e.chunks)yield t}}}class Ub{constructor(t){this.clientId=t}clientCreated(t){this.emitEvent("client:created",{initialMessageCount:t})}loadingChanged(t){this.emitEvent("client:loading-changed",{isLoading:t})}errorChanged(t){this.emitEvent("client:error-changed",{error:t})}textUpdated(t,n,r){this.emitEvent("processor:text-updated",{streamId:t,content:r}),this.emitEvent("client:assistant-message-updated",{messageId:n,content:r})}toolCallStateChanged(t,n,r,i,a,s){this.emitEvent("processor:tool-call-state-changed",{streamId:t,toolCallId:r,toolName:i,state:a,arguments:s}),this.emitEvent("client:tool-call-updated",{messageId:n,toolCallId:r,toolName:i,state:a,arguments:s})}toolResultStateChanged(t,n,r,i,a){this.emitEvent("processor:tool-result-state-changed",{streamId:t,toolCallId:n,content:r,state:i,error:a})}thinkingUpdated(t,n,r,i){this.emitEvent("stream:chunk:thinking",{streamId:t,messageId:n,content:r,delta:i})}approvalRequested(t,n,r,i,a){this.emitEvent("client:approval-requested",{messageId:t,toolCallId:n,toolName:r,input:i,approvalId:a})}messageAppended(t){const n=t.parts.filter(r=>r.type==="text").map(r=>r.content).join(" ").substring(0,100);this.emitEvent("client:message-appended",{messageId:t.id,role:t.role,contentPreview:n})}messageSent(t,n){this.emitEvent("client:message-sent",{messageId:t,content:n})}reloaded(t){this.emitEvent("client:reloaded",{fromMessageIndex:t})}stopped(){this.emitEvent("client:stopped")}messagesCleared(){this.emitEvent("client:messages-cleared")}toolResultAdded(t,n,r,i){this.emitEvent("tool:result-added",{toolCallId:t,toolName:n,output:r,state:i})}toolApprovalResponded(t,n,r){this.emitEvent("tool:approval-responded",{approvalId:t,toolCallId:n,approved:r})}}class jb extends Ub{emitEvent(t,n){t.startsWith("client:")||t.startsWith("tool:")?uc.emit(t,{...n,clientId:this.clientId,timestamp:Date.now()}):uc.emit(t,{...n,timestamp:Date.now()})}}class Vb{constructor(t){if(this.body={},this.isLoading=!1,this.error=void 0,this.abortController=null,this.currentStreamId=null,this.currentMessageId=null,this.postStreamActions=[],this.uniqueId=t.id||this.generateUniqueId("chat"),this.body=t.body||{},this.connection=t.connection,this.events=new jb(this.uniqueId),this.clientToolsRef={current:new Map},t.tools)for(const n of t.tools)this.clientToolsRef.current.set(n.name,n);this.callbacksRef={current:{onResponse:t.onResponse||(()=>{}),onChunk:t.onChunk||(()=>{}),onFinish:t.onFinish||(()=>{}),onError:t.onError||(()=>{}),onMessagesChange:t.onMessagesChange||(()=>{}),onLoadingChange:t.onLoadingChange||(()=>{}),onErrorChange:t.onErrorChange||(()=>{})}},this.processor=new Nl({chunkStrategy:t.streamProcessor?.chunkStrategy,initialMessages:t.initialMessages,events:{onMessagesChange:n=>{this.callbacksRef.current.onMessagesChange(n)},onStreamStart:()=>{},onStreamEnd:n=>{this.callbacksRef.current.onFinish(n)},onError:n=>{this.setError(n),this.callbacksRef.current.onError(n)},onTextUpdate:(n,r)=>{this.currentStreamId&&this.events.textUpdated(this.currentStreamId,n,r)},onThinkingUpdate:(n,r)=>{this.currentStreamId&&this.events.thinkingUpdated(this.currentStreamId,n,r)},onToolCallStateChange:(n,r,i,a)=>{const l=this.processor.getMessages().find(c=>c.id===n)?.parts.find(c=>c.type==="tool-call"&&c.id===r)?.name||"unknown";this.currentStreamId&&this.events.toolCallStateChanged(this.currentStreamId,n,r,l,i,a)},onToolCall:async n=>{const r=this.clientToolsRef.current.get(n.toolName);if(r?.execute)try{const i=await r.execute(n.input);await this.addToolResult({toolCallId:n.toolCallId,tool:n.toolName,output:i,state:"output-available"})}catch(i){await this.addToolResult({toolCallId:n.toolCallId,tool:n.toolName,output:null,state:"output-error",errorText:i.message})}},onApprovalRequest:n=>{this.events.approvalRequested(this.currentMessageId||"",n.toolCallId,n.toolName,n.input,n.approvalId)}}}),this.events.clientCreated(this.processor.getMessages().length)}generateUniqueId(t){return`${t}-${Date.now()}-${Math.random().toString(36).substring(7)}`}setIsLoading(t){this.isLoading=t,this.callbacksRef.current.onLoadingChange(t),this.events.loadingChanged(t)}setError(t){this.error=t,this.callbacksRef.current.onErrorChange(t),this.events.errorChanged(t?.message||null)}async processStream(t){this.currentStreamId=this.generateUniqueId("stream");const n=this.processor.startAssistantMessage();this.currentMessageId=n;const r={id:n,role:"assistant",parts:[],createdAt:new Date};this.events.messageAppended(r);for await(const s of t)this.callbacksRef.current.onChunk(s),this.processor.processChunk(s),await new Promise(o=>setTimeout(o,0));return this.processor.finalizeStream(),this.currentStreamId=null,this.currentMessageId=null,this.processor.getMessages().find(s=>s.id===n)||{id:n,role:"assistant",parts:[],createdAt:new Date}}async sendMessage(t){if(!t.trim()||this.isLoading)return;const n=this.processor.addUserMessage(t.trim());this.events.messageSent(n.id,t.trim()),await this.streamResponse()}async append(t){const n=Ib(t,es);if(n.role==="system")return;const r=n;this.events.messageAppended(r);const i=this.processor.getMessages();this.processor.setMessages([...i,r]),await this.streamResponse()}async streamResponse(){this.setIsLoading(!0),this.setError(void 0),this.abortController=new AbortController;try{const t=this.processor.toModelMessages();await this.callbacksRef.current.onResponse();const n={...this.body,conversationId:this.uniqueId},r=this.connection.connect(t,n,this.abortController.signal);await this.processStream(r)}catch(t){if(t instanceof Error){if(t.name==="AbortError")return;this.setError(t),this.callbacksRef.current.onError(t)}}finally{this.abortController=null,this.setIsLoading(!1),await this.drainPostStreamActions()}}async reload(){const t=this.processor.getMessages();if(t.length===0)return;const n=t.findLastIndex(r=>r.role==="user");n!==-1&&(this.events.reloaded(n),this.processor.removeMessagesAfter(n),await this.streamResponse())}stop(){this.abortController&&(this.abortController.abort(),this.abortController=null),this.setIsLoading(!1),this.events.stopped()}clear(){this.processor.clearMessages(),this.setError(void 0),this.events.messagesCleared()}async addToolResult(t){if(this.events.toolResultAdded(t.toolCallId,t.tool,t.output,t.state||"output-available"),this.processor.addToolResult(t.toolCallId,t.output,t.errorText),this.isLoading){this.queuePostStreamAction(()=>this.checkForContinuation());return}await this.checkForContinuation()}async addToolApprovalResponse(t){const n=this.processor.getMessages();let r;for(const i of n){const a=i.parts.find(s=>s.type==="tool-call"&&s.approval?.id===t.id);if(a){r=a.id;break}}if(r&&this.events.toolApprovalResponded(t.id,r,t.approved),this.processor.addToolApprovalResponse(t.id,t.approved),this.isLoading){this.queuePostStreamAction(()=>this.checkForContinuation());return}await this.checkForContinuation()}queuePostStreamAction(t){this.postStreamActions.push(t)}async drainPostStreamActions(){for(;this.postStreamActions.length>0;)await this.postStreamActions.shift()()}async checkForContinuation(){this.shouldAutoSend()&&await this.streamResponse()}shouldAutoSend(){return this.processor.areAllToolsComplete()}getMessages(){return this.processor.getMessages()}getIsLoading(){return this.isLoading}getError(){return this.error}setMessagesManually(t){this.processor.setMessages(t)}updateOptions(t){if(t.connection!==void 0&&(this.connection=t.connection),t.body!==void 0&&(this.body=t.body),t.tools!==void 0){this.clientToolsRef.current=new Map;for(const n of t.tools)this.clientToolsRef.current.set(n.name,n)}t.onResponse!==void 0&&(this.callbacksRef.current.onResponse=t.onResponse),t.onChunk!==void 0&&(this.callbacksRef.current.onChunk=t.onChunk),t.onFinish!==void 0&&(this.callbacksRef.current.onFinish=t.onFinish),t.onError!==void 0&&(this.callbacksRef.current.onError=t.onError)}}function qb(e){if(!e)return{};if(e instanceof Headers){const t={};return e.forEach((n,r)=>{t[r]=n}),t}return e}async function*$b(e,t){try{const n=new TextDecoder;let r="";for(;!t?.aborted;){const{done:i,value:a}=await e.read();if(i)break;r+=n.decode(a,{stream:!0});const s=r.split(`
|
|
10
|
+
`);r=s.pop()||"";for(const o of s)o.trim()&&(yield o)}r.trim()&&(yield r)}finally{e.releaseLock()}}function Yb(e,t={}){return{async*connect(n,r,i){const a=typeof e=="function"?e():e,s=typeof t=="function"?await t():t,o=Cb(n),u={"Content-Type":"application/json",...qb(s.headers)},l={messages:o,data:r,...s.body},h=await(s.fetchClient??fetch)(a,{method:"POST",headers:u,body:JSON.stringify(l),credentials:s.credentials||"same-origin",signal:i||s.signal});if(!h.ok)throw new Error(`HTTP error! status: ${h.status} ${h.statusText}`);const d=h.body?.getReader();if(!d)throw new Error("Response body is not readable");for await(const m of $b(d,i)){const y=m.startsWith("data: ")?m.slice(6):m;if(y!=="[DONE]")try{yield JSON.parse(y)}catch{console.warn("Failed to parse SSE chunk:",y)}}}}}function Gb(e){const t=k.useId(),n=e.id||t,[r,i]=k.useState(e.initialMessages||[]),[a,s]=k.useState(!1),[o,u]=k.useState(void 0),l=k.useRef(e.initialMessages||[]),c=k.useRef(!0);k.useEffect(()=>{l.current=r},[r]);const h=k.useRef(e);h.current=e;const d=k.useMemo(()=>{const P=c.current?e.initialMessages||[]:l.current;return c.current=!1,new Vb({connection:h.current.connection,id:n,initialMessages:P,body:h.current.body,onResponse:h.current.onResponse,onChunk:h.current.onChunk,onFinish:h.current.onFinish,onError:h.current.onError,tools:h.current.tools,streamProcessor:e.streamProcessor,onMessagesChange:D=>{i(D)},onLoadingChange:D=>{s(D)},onErrorChange:D=>{u(D)}})},[n]);k.useEffect(()=>{e.initialMessages&&e.initialMessages.length>0&&r.length===0&&d.setMessagesManually(e.initialMessages)},[]),k.useEffect(()=>()=>{d.stop()},[d]);const m=k.useCallback(async P=>{await d.sendMessage(P)},[d]),y=k.useCallback(async P=>{await d.append(P)},[d]),T=k.useCallback(async()=>{await d.reload()},[d]),w=k.useCallback(()=>{d.stop()},[d]),A=k.useCallback(()=>{d.clear()},[d]),E=k.useCallback(P=>{d.setMessagesManually(P)},[d]),S=k.useCallback(async P=>{await d.addToolResult(P)},[d]),O=k.useCallback(async P=>{await d.addToolApprovalResponse(P)},[d]);return{messages:r,sendMessage:m,append:y,reload:T,stop:w,isLoading:a,error:o,setMessages:E,clear:A,addToolResult:S,addToolApprovalResponse:O}}const Wb={damping:.7,stiffness:.05,mass:1.25},Xb=70,Kb=1e3/60,Qb=350;let Rs=!1;globalThis.document?.addEventListener("mousedown",()=>{Rs=!0});globalThis.document?.addEventListener("mouseup",()=>{Rs=!1});globalThis.document?.addEventListener("click",()=>{Rs=!1});const Zb=(e={})=>{const[t,n]=k.useState(!1),[r,i]=k.useState(e.initial!==!1),[a,s]=k.useState(!1),o=k.useRef(null);o.current=e;const u=k.useCallback(()=>{if(!Rs)return!1;const E=window.getSelection();if(!E||!E.rangeCount)return!1;const S=E.getRangeAt(0);return S.commonAncestorContainer.contains(w.current)||w.current?.contains(S.commonAncestorContainer)},[]),l=k.useCallback(E=>{h.isAtBottom=E,i(E)},[]),c=k.useCallback(E=>{h.escapedFromLock=E,n(E)},[]),h=k.useMemo(()=>{let E;return{escapedFromLock:t,isAtBottom:r,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return w.current?.scrollTop??0},set scrollTop(S){w.current&&(w.current.scrollTop=S,h.ignoreScrollToTop=w.current.scrollTop)},get targetScrollTop(){return!w.current||!A.current?0:w.current.scrollHeight-1-w.current.clientHeight},get calculatedTargetScrollTop(){if(!w.current||!A.current)return 0;const{targetScrollTop:S}=this;if(!e.targetScrollTop)return S;if(E?.targetScrollTop===S)return E.calculatedScrollTop;const O=Math.max(Math.min(e.targetScrollTop(S,{scrollElement:w.current,contentElement:A.current}),S),0);return E={targetScrollTop:S,calculatedScrollTop:O},requestAnimationFrame(()=>{E=void 0}),O},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=Xb}}},[]),d=k.useCallback((E={})=>{typeof E=="string"&&(E={animation:E}),E.preserveScrollPosition||l(!0);const S=Date.now()+(Number(E.wait)||0),O=lo(o.current,E.animation),{ignoreEscapes:P=!1}=E;let D,U=h.calculatedTargetScrollTop;E.duration instanceof Promise?E.duration.finally(()=>{D=Date.now()}):D=S+(E.duration??0);const q=async()=>{const Y=new Promise(requestAnimationFrame).then(()=>{if(!h.isAtBottom)return h.animation=void 0,!1;const{scrollTop:B}=h,G=performance.now(),V=(G-(h.lastTick??G))/Kb;if(h.animation||(h.animation={behavior:O,promise:Y,ignoreEscapes:P}),h.animation.behavior===O&&(h.lastTick=G),u()||S>Date.now())return q();if(B<Math.min(U,h.calculatedTargetScrollTop)){if(h.animation?.behavior===O){if(O==="instant")return h.scrollTop=h.calculatedTargetScrollTop,q();h.velocity=(O.damping*h.velocity+O.stiffness*h.scrollDifference)/O.mass,h.accumulated+=h.velocity*V,h.scrollTop+=h.accumulated,h.scrollTop!==B&&(h.accumulated=0)}return q()}return D>Date.now()?(U=h.calculatedTargetScrollTop,q()):(h.animation=void 0,h.scrollTop<h.calculatedTargetScrollTop?d({animation:lo(o.current,o.current.resize),ignoreEscapes:P,duration:Math.max(0,D-Date.now())||void 0}):h.isAtBottom)});return Y.then(B=>(requestAnimationFrame(()=>{h.animation||(h.lastTick=void 0,h.velocity=0)}),B))};return E.wait!==!0&&(h.animation=void 0),h.animation?.behavior===O?h.animation.promise:q()},[l,u,h]),m=k.useCallback(()=>{c(!0),l(!1)},[c,l]),y=k.useCallback(({target:E})=>{if(E!==w.current)return;const{scrollTop:S,ignoreScrollToTop:O}=h;let{lastScrollTop:P=S}=h;h.lastScrollTop=S,h.ignoreScrollToTop=void 0,O&&O>S&&(P=O),s(h.isNearBottom),setTimeout(()=>{if(h.resizeDifference||S===O)return;if(u()){c(!0),l(!1);return}const D=S>P,U=S<P;if(h.animation?.ignoreEscapes){h.scrollTop=P;return}U&&(c(!0),l(!1)),D&&c(!1),!h.escapedFromLock&&h.isNearBottom&&l(!0)},1)},[c,l,u,h]),T=k.useCallback(({target:E,deltaY:S})=>{let O=E;for(;!["scroll","auto"].includes(getComputedStyle(O).overflow);){if(!O.parentElement)return;O=O.parentElement}O===w.current&&S<0&&w.current.scrollHeight>w.current.clientHeight&&!h.animation?.ignoreEscapes&&(c(!0),l(!1))},[c,l,h]),w=mc(E=>{w.current?.removeEventListener("scroll",y),w.current?.removeEventListener("wheel",T),E?.addEventListener("scroll",y,{passive:!0}),E?.addEventListener("wheel",T,{passive:!0})},[]),A=mc(E=>{if(h.resizeObserver?.disconnect(),!E)return;let S;h.resizeObserver=new ResizeObserver(([O])=>{const{height:P}=O.contentRect,D=P-(S??P);if(h.resizeDifference=D,h.scrollTop>h.targetScrollTop&&(h.scrollTop=h.targetScrollTop),s(h.isNearBottom),D>=0){const U=lo(o.current,S?o.current.resize:o.current.initial);d({animation:U,wait:!0,preserveScrollPosition:!0,duration:U==="instant"?void 0:Qb})}else h.isNearBottom&&(c(!1),l(!0));S=P,requestAnimationFrame(()=>{setTimeout(()=>{h.resizeDifference===D&&(h.resizeDifference=0)},1)})}),h.resizeObserver?.observe(E)},[]);return{contentRef:A,scrollRef:w,scrollToBottom:d,stopScroll:m,isAtBottom:r||a,isNearBottom:a,escapedFromLock:t,state:h}};function mc(e,t){const n=k.useCallback(r=>(n.current=r,e(r)),t);return n}const uo=new Map;function lo(...e){const t={...Wb};let n=!1;for(const i of e){if(i==="instant"){n=!0;continue}typeof i=="object"&&(n=!1,t.damping=i.damping??t.damping,t.stiffness=i.stiffness??t.stiffness,t.mass=i.mass??t.mass)}const r=JSON.stringify(t);return uo.has(r)||uo.set(r,Object.freeze(t)),n?"instant":uo.get(r)}const j1=k.createContext(null),Jb=typeof window<"u"?k.useLayoutEffect:k.useEffect;function ts({instance:e,children:t,resize:n,initial:r,mass:i,damping:a,stiffness:s,targetScrollTop:o,contextRef:u,...l}){const c=k.useRef(null),h=k.useCallback((P,D)=>(O?.targetScrollTop??o)?.(P,D)??P,[o]),d=Zb({mass:i,damping:a,stiffness:s,resize:n,initial:r,targetScrollTop:h}),{scrollRef:m,contentRef:y,scrollToBottom:T,stopScroll:w,isAtBottom:A,escapedFromLock:E,state:S}=e??d,O=k.useMemo(()=>({scrollToBottom:T,stopScroll:w,scrollRef:m,isAtBottom:A,escapedFromLock:E,contentRef:y,state:S,get targetScrollTop(){return c.current},set targetScrollTop(P){c.current=P}}),[T,A,y,m,w,E,S]);return k.useImperativeHandle(u,()=>O,[O]),Jb(()=>{m.current&&getComputedStyle(m.current).overflow==="visible"&&(m.current.style.overflow="auto")},[]),b.jsx(j1.Provider,{value:O,children:b.jsx("div",{...l,children:typeof t=="function"?t(O):t})})}(function(e){function t({children:n,...r}){const i=V1();return b.jsx("div",{ref:i.scrollRef,style:{height:"100%",width:"100%"},children:b.jsx("div",{...r,ref:i.contentRef,children:typeof n=="function"?n(i):n})})}e.Content=t})(ts||(ts={}));function V1(){const e=k.useContext(j1);if(!e)throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}const e7=({className:e,...t})=>b.jsx(ts,{className:ge("relative flex-1 overflow-y-hidden",e),initial:"smooth",resize:"smooth",role:"log",...t}),t7=({className:e,...t})=>b.jsx(ts.Content,{className:ge("flex flex-col gap-8 p-4",e),...t}),n7=({className:e,...t})=>{const{isAtBottom:n,scrollToBottom:r}=V1(),i=k.useCallback(()=>{r()},[r]);return!n&&b.jsx(Ge,{className:ge("absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full",e),onClick:i,size:"icon",type:"button",variant:"outline",...t,children:b.jsx(U5,{className:"size-4"})})};var r7=Symbol.for("react.lazy"),ns=y6[" use ".trim().toString()];function i7(e){return typeof e=="object"&&e!==null&&"then"in e}function q1(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===r7&&"_payload"in e&&i7(e._payload)}function a7(e){const t=o7(e),n=k.forwardRef((r,i)=>{let{children:a,...s}=r;q1(a)&&typeof ns=="function"&&(a=ns(a._payload));const o=k.Children.toArray(a),u=o.find(l7);if(u){const l=u.props.children,c=o.map(h=>h===u?k.Children.count(l)>1?k.Children.only(null):k.isValidElement(l)?l.props.children:null:h);return b.jsx(t,{...s,ref:i,children:k.isValidElement(l)?k.cloneElement(l,void 0,c):null})}return b.jsx(t,{...s,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}var s7=a7("Slot");function o7(e){const t=k.forwardRef((n,r)=>{let{children:i,...a}=n;if(q1(i)&&typeof ns=="function"&&(i=ns(i._payload)),k.isValidElement(i)){const s=h7(i),o=c7(a,i.props);return i.type!==k.Fragment&&(o.ref=r?x6(r,s):s),k.cloneElement(i,o)}return k.Children.count(i)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var u7=Symbol("radix.slottable");function l7(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===u7}function c7(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...o)=>{const u=a(...o);return i(...o),u}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function h7(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const $1=k.createContext({});function d7(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const Y1=typeof window<"u",f7=Y1?k.useLayoutEffect:k.useEffect,Il=k.createContext(null);function _l(e,t){e.indexOf(t)===-1&&e.push(t)}function Dl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ln=(e,t,n)=>n>t?t:n<e?e:n;let Ml=()=>{};const kn={},G1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function W1(e){return typeof e=="object"&&e!==null}const X1=e=>/^0[^.\s]+$/u.test(e);function Rl(e){let t;return()=>(t===void 0&&(t=e()),t)}const zt=e=>e,m7=(e,t)=>n=>t(e(n)),ia=(...e)=>e.reduce(m7),qi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Ll{constructor(){this.subscriptions=[]}add(t){return _l(this.subscriptions,t),()=>Dl(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const En=e=>e*1e3,Ft=e=>e/1e3;function K1(e,t){return t?e*(1e3/t):0}const Q1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,p7=1e-7,g7=12;function b7(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=Q1(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>p7&&++o<g7);return s}function aa(e,t,n,r){if(e===t&&n===r)return zt;const i=a=>b7(a,0,1,e,n);return a=>a===0||a===1?a:Q1(i(a),t,r)}const Z1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,J1=e=>t=>1-e(1-t),em=aa(.33,1.53,.69,.99),Pl=J1(em),tm=Z1(Pl),nm=e=>(e*=2)<1?.5*Pl(e):.5*(2-Math.pow(2,-10*(e-1))),Ol=e=>1-Math.sin(Math.acos(e)),rm=J1(Ol),im=Z1(Ol),y7=aa(.42,0,1,1),x7=aa(0,0,.58,1),am=aa(.42,0,.58,1),T7=e=>Array.isArray(e)&&typeof e[0]!="number",sm=e=>Array.isArray(e)&&typeof e[0]=="number",E7={linear:zt,easeIn:y7,easeInOut:am,easeOut:x7,circIn:Ol,circInOut:im,circOut:rm,backIn:Pl,backInOut:tm,backOut:em,anticipate:nm},v7=e=>typeof e=="string",pc=e=>{if(sm(e)){Ml(e.length===4);const[t,n,r,i]=e;return aa(t,n,r,i)}else if(v7(e))return E7[e];return e},Ea=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function A7(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(c){s.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,h=!1,d=!1)=>{const y=d&&i?n:r;return h&&s.add(c),y.has(c)||y.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(o=c,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),n.clear(),i=!1,a&&(a=!1,l.process(c))}};return l}const k7=40;function om(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=Ea.reduce((S,O)=>(S[O]=A7(a),S),{}),{setup:o,read:u,resolveKeyframes:l,preUpdate:c,update:h,preRender:d,render:m,postRender:y}=s,T=()=>{const S=kn.useManualTiming?i.timestamp:performance.now();n=!1,kn.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,k7),1)),i.timestamp=S,i.isProcessing=!0,o.process(i),u.process(i),l.process(i),c.process(i),h.process(i),d.process(i),m.process(i),y.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(T))},w=()=>{n=!0,r=!0,i.isProcessing||e(T)};return{schedule:Ea.reduce((S,O)=>{const P=s[O];return S[O]=(D,U=!1,q=!1)=>(n||w(),P.schedule(D,U,q)),S},{}),cancel:S=>{for(let O=0;O<Ea.length;O++)s[Ea[O]].cancel(S)},state:i,steps:s}}const{schedule:Oe,cancel:Vn,state:it,steps:co}=om(typeof requestAnimationFrame<"u"?requestAnimationFrame:zt,!0);let Va;function w7(){Va=void 0}const mt={now:()=>(Va===void 0&&mt.set(it.isProcessing||kn.useManualTiming?it.timestamp:performance.now()),Va),set:e=>{Va=e,queueMicrotask(w7)}},um=e=>t=>typeof t=="string"&&t.startsWith(e),lm=um("--"),S7=um("var(--"),Fl=e=>S7(e)?C7.test(e.split("/*")[0].trim()):!1,C7=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function gc(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Xr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$i={...Xr,transform:e=>ln(0,1,e)},va={...Xr,default:1},Si=e=>Math.round(e*1e5)/1e5,Bl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function N7(e){return e==null}const I7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,zl=(e,t)=>n=>!!(typeof n=="string"&&I7.test(n)&&n.startsWith(e)||t&&!N7(n)&&Object.prototype.hasOwnProperty.call(n,t)),cm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(Bl);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},_7=e=>ln(0,255,e),ho={...Xr,transform:e=>Math.round(_7(e))},cr={test:zl("rgb","red"),parse:cm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ho.transform(e)+", "+ho.transform(t)+", "+ho.transform(n)+", "+Si($i.transform(r))+")"};function D7(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const xu={test:zl("#"),parse:D7,transform:cr.transform},sa=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pn=sa("deg"),un=sa("%"),oe=sa("px"),M7=sa("vh"),R7=sa("vw"),bc={...un,parse:e=>un.parse(e)/100,transform:e=>un.transform(e*100)},Mr={test:zl("hsl","hue"),parse:cm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+un.transform(Si(t))+", "+un.transform(Si(n))+", "+Si($i.transform(r))+")"},Ke={test:e=>cr.test(e)||xu.test(e)||Mr.test(e),parse:e=>cr.test(e)?cr.parse(e):Mr.test(e)?Mr.parse(e):xu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?cr.transform(e):Mr.transform(e),getAnimatableNone:e=>{const t=Ke.parse(e);return t.alpha=0,Ke.transform(t)}},L7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function P7(e){return isNaN(e)&&typeof e=="string"&&(e.match(Bl)?.length||0)+(e.match(L7)?.length||0)>0}const hm="number",dm="color",O7="var",F7="var(",yc="${}",B7=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Yi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(B7,u=>(Ke.test(u)?(r.color.push(a),i.push(dm),n.push(Ke.parse(u))):u.startsWith(F7)?(r.var.push(a),i.push(O7),n.push(u)):(r.number.push(a),i.push(hm),n.push(parseFloat(u))),++a,yc)).split(yc);return{values:n,split:o,indexes:r,types:i}}function fm(e){return Yi(e).values}function mm(e){const{split:t,types:n}=Yi(e),r=t.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],i[s]!==void 0){const o=n[s];o===hm?a+=Si(i[s]):o===dm?a+=Ke.transform(i[s]):a+=i[s]}return a}}const z7=e=>typeof e=="number"?0:Ke.test(e)?Ke.getAnimatableNone(e):e;function H7(e){const t=fm(e);return mm(e)(t.map(z7))}const qn={test:P7,parse:fm,createTransformer:mm,getAnimatableNone:H7};function fo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function U7({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;i=fo(u,o,e+1/3),a=fo(u,o,e),s=fo(u,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function rs(e,t){return n=>n>0?t:e}const je=(e,t,n)=>e+(t-e)*n,mo=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},j7=[xu,cr,Mr],V7=e=>j7.find(t=>t.test(e));function xc(e){const t=V7(e);if(!t)return!1;let n=t.parse(e);return t===Mr&&(n=U7(n)),n}const Tc=(e,t)=>{const n=xc(e),r=xc(t);if(!n||!r)return rs(e,t);const i={...n};return a=>(i.red=mo(n.red,r.red,a),i.green=mo(n.green,r.green,a),i.blue=mo(n.blue,r.blue,a),i.alpha=je(n.alpha,r.alpha,a),cr.transform(i))},Tu=new Set(["none","hidden"]);function q7(e,t){return Tu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function $7(e,t){return n=>je(e,t,n)}function Hl(e){return typeof e=="number"?$7:typeof e=="string"?Fl(e)?rs:Ke.test(e)?Tc:W7:Array.isArray(e)?pm:typeof e=="object"?Ke.test(e)?Tc:Y7:rs}function pm(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>Hl(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function Y7(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Hl(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function G7(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][r[a]],o=e.values[s]??0;n[i]=o,r[a]++}return n}const W7=(e,t)=>{const n=qn.createTransformer(t),r=Yi(e),i=Yi(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Tu.has(e)&&!i.values.length||Tu.has(t)&&!r.values.length?q7(e,t):ia(pm(G7(r,i),i.values),n):rs(e,t)};function gm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?je(e,t,n):Hl(e)(e,t)}const X7=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Oe.update(t,n),stop:()=>Vn(t),now:()=>it.isProcessing?it.timestamp:mt.now()}},bm=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},is=2e4;function Ul(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<is;)t+=n,r=e.next(t);return t>=is?1/0:t}function K7(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Ul(r),is);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Ft(i)}}const Q7=5;function ym(e,t,n){const r=Math.max(t-Q7,0);return K1(n-e(r),t-r)}const qe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},po=.001;function Z7({duration:e=qe.duration,bounce:t=qe.bounce,velocity:n=qe.velocity,mass:r=qe.mass}){let i,a,s=1-t;s=ln(qe.minDamping,qe.maxDamping,s),e=ln(qe.minDuration,qe.maxDuration,Ft(e)),s<1?(i=l=>{const c=l*s,h=c*e,d=c-n,m=Eu(l,s),y=Math.exp(-h);return po-d/m*y},a=l=>{const h=l*s*e,d=h*n+n,m=Math.pow(s,2)*Math.pow(l,2)*e,y=Math.exp(-h),T=Eu(Math.pow(l,2),s);return(-i(l)+po>0?-1:1)*((d-m)*y)/T}):(i=l=>{const c=Math.exp(-l*e),h=(l-n)*e+1;return-po+c*h},a=l=>{const c=Math.exp(-l*e),h=(n-l)*(e*e);return c*h});const o=5/e,u=e8(i,a,o);if(e=En(e),isNaN(u))return{stiffness:qe.stiffness,damping:qe.damping,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const J7=12;function e8(e,t,n){let r=n;for(let i=1;i<J7;i++)r=r-e(r)/t(r);return r}function Eu(e,t){return e*Math.sqrt(1-t*t)}const t8=["duration","bounce"],n8=["stiffness","damping","mass"];function Ec(e,t){return t.some(n=>e[n]!==void 0)}function r8(e){let t={velocity:qe.velocity,stiffness:qe.stiffness,damping:qe.damping,mass:qe.mass,isResolvedFromDuration:!1,...e};if(!Ec(e,n8)&&Ec(e,t8))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*ln(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:qe.mass,stiffness:i,damping:a}}else{const n=Z7(e);t={...t,...n,mass:qe.mass},t.isResolvedFromDuration=!0}return t}function as(e=qe.visualDuration,t=qe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:u,damping:l,mass:c,duration:h,velocity:d,isResolvedFromDuration:m}=r8({...n,velocity:-Ft(n.velocity||0)}),y=d||0,T=l/(2*Math.sqrt(u*c)),w=s-a,A=Ft(Math.sqrt(u/c)),E=Math.abs(w)<5;r||(r=E?qe.restSpeed.granular:qe.restSpeed.default),i||(i=E?qe.restDelta.granular:qe.restDelta.default);let S;if(T<1){const P=Eu(A,T);S=D=>{const U=Math.exp(-T*A*D);return s-U*((y+T*A*w)/P*Math.sin(P*D)+w*Math.cos(P*D))}}else if(T===1)S=P=>s-Math.exp(-A*P)*(w+(y+A*w)*P);else{const P=A*Math.sqrt(T*T-1);S=D=>{const U=Math.exp(-T*A*D),q=Math.min(P*D,300);return s-U*((y+T*A*w)*Math.sinh(q)+P*w*Math.cosh(q))/P}}const O={calculatedDuration:m&&h||null,next:P=>{const D=S(P);if(m)o.done=P>=h;else{let U=P===0?y:0;T<1&&(U=P===0?En(y):ym(S,P,D));const q=Math.abs(U)<=r,Y=Math.abs(s-D)<=i;o.done=q&&Y}return o.value=o.done?s:D,o},toString:()=>{const P=Math.min(Ul(O),is),D=bm(U=>O.next(P*U).value,P,30);return P+"ms "+D},toTransition:()=>{}};return O}as.applyToOptions=e=>{const t=K7(e,100,as);return e.ease=t.ease,e.duration=En(t.duration),e.type="keyframes",e};function vu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:u,restDelta:l=.5,restSpeed:c}){const h=e[0],d={done:!1,value:h},m=q=>o!==void 0&&q<o||u!==void 0&&q>u,y=q=>o===void 0?u:u===void 0||Math.abs(o-q)<Math.abs(u-q)?o:u;let T=n*t;const w=h+T,A=s===void 0?w:s(w);A!==w&&(T=A-h);const E=q=>-T*Math.exp(-q/r),S=q=>A+E(q),O=q=>{const Y=E(q),B=S(q);d.done=Math.abs(Y)<=l,d.value=d.done?A:B};let P,D;const U=q=>{m(d.value)&&(P=q,D=as({keyframes:[d.value,y(d.value)],velocity:ym(S,q,d.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return U(0),{calculatedDuration:null,next:q=>{let Y=!1;return!D&&P===void 0&&(Y=!0,O(q),U(q)),P!==void 0&&q>=P?D.next(q-P):(!Y&&O(q),d)}}}function i8(e,t,n){const r=[],i=n||kn.mix||gm,a=e.length-1;for(let s=0;s<a;s++){let o=i(e[s],e[s+1]);if(t){const u=Array.isArray(t)?t[s]||zt:t;o=ia(u,o)}r.push(o)}return r}function a8(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Ml(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=i8(t,r,i),u=o.length,l=c=>{if(s&&c<e[0])return t[0];let h=0;if(u>1)for(;h<e.length-2&&!(c<e[h+1]);h++);const d=qi(e[h],e[h+1],c);return o[h](d)};return n?c=>l(ln(e[0],e[a-1],c)):l}function s8(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=qi(0,t,r);e.push(je(n,1,i))}}function o8(e){const t=[0];return s8(t,e.length-1),t}function u8(e,t){return e.map(n=>n*t)}function l8(e,t){return e.map(()=>t||am).splice(0,e.length-1)}function Ci({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=T7(r)?r.map(pc):pc(r),a={done:!1,value:t[0]},s=u8(n&&n.length===t.length?n:o8(t),e),o=a8(s,t,{ease:Array.isArray(i)?i:l8(t,i)});return{calculatedDuration:e,next:u=>(a.value=o(u),a.done=u>=e,a)}}const c8=e=>e!==null;function jl(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(c8),o=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const h8={decay:vu,inertia:vu,tween:Ci,keyframes:Ci,spring:as};function xm(e){typeof e.type=="string"&&(e.type=h8[e.type])}class Vl{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const d8=e=>e/100;class ql extends Vl{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==mt.now()&&this.tick(mt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;xm(t);const{type:n=Ci,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const u=n||Ci;u!==Ci&&typeof o[0]!="number"&&(this.mixKeyframes=ia(d8,gm(o[0],o[1])),o=[0,100]);const l=u({...t,keyframes:o});a==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...o].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=Ul(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:c,repeat:h,repeatType:d,repeatDelay:m,type:y,onUpdate:T,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const A=this.currentTime-l*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?A<0:A>i;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,O=r;if(h){const q=Math.min(this.currentTime,i)/o;let Y=Math.floor(q),B=q%1;!B&&q>=1&&(B=1),B===1&&Y--,Y=Math.min(Y,h+1),Y%2&&(d==="reverse"?(B=1-B,m&&(B-=m/o)):d==="mirror"&&(O=s)),S=ln(0,1,B)*o}const P=E?{done:!1,value:c[0]}:O.next(S);a&&(P.value=a(P.value));let{done:D}=P;!E&&u!==null&&(D=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const U=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return U&&y!==vu&&(P.value=jl(c,this.options,w,this.speed)),T&&T(P.value),U&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Ft(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ft(t)}get time(){return Ft(this.currentTime)}set time(t){t=En(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(mt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ft(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=X7,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(mt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function f8(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const hr=e=>e*180/Math.PI,Au=e=>{const t=hr(Math.atan2(e[1],e[0]));return ku(t)},m8={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Au,rotateZ:Au,skewX:e=>hr(Math.atan(e[1])),skewY:e=>hr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ku=e=>(e=e%360,e<0&&(e+=360),e),vc=Au,Ac=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),kc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),p8={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ac,scaleY:kc,scale:e=>(Ac(e)+kc(e))/2,rotateX:e=>ku(hr(Math.atan2(e[6],e[5]))),rotateY:e=>ku(hr(Math.atan2(-e[2],e[0]))),rotateZ:vc,rotate:vc,skewX:e=>hr(Math.atan(e[4])),skewY:e=>hr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function wu(e){return e.includes("scale")?1:0}function Su(e,t){if(!e||e==="none")return wu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=p8,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=m8,i=o}if(!i)return wu(t);const a=r[t],s=i[1].split(",").map(b8);return typeof a=="function"?a(s):s[a]}const g8=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Su(n,t)};function b8(e){return parseFloat(e.trim())}const Kr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qr=new Set(Kr),wc=e=>e===Xr||e===oe,y8=new Set(["x","y","z"]),x8=Kr.filter(e=>!y8.has(e));function T8(e){const t=[];return x8.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Hn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Su(t,"x"),y:(e,{transform:t})=>Su(t,"y")};Hn.translateX=Hn.x;Hn.translateY=Hn.y;const dr=new Set;let Cu=!1,Nu=!1,Iu=!1;function Tm(){if(Nu){const e=Array.from(dr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=T8(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{r.getValue(a)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Nu=!1,Cu=!1,dr.forEach(e=>e.complete(Iu)),dr.clear()}function Em(){dr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Nu=!0)})}function E8(){Iu=!0,Em(),Tm(),Iu=!1}class $l{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(dr.add(this),Cu||(Cu=!0,Oe.read(Em),Oe.resolveKeyframes(Tm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i?.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const o=r.readValue(n,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}f8(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),dr.delete(this)}cancel(){this.state==="scheduled"&&(dr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const v8=e=>e.startsWith("--");function A8(e,t,n){v8(t)?e.style.setProperty(t,n):e.style[t]=n}const k8=Rl(()=>window.ScrollTimeline!==void 0),w8={};function S8(e,t){const n=Rl(e);return()=>w8[t]??n()}const vm=S8(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ti=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Sc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ti([0,.65,.55,1]),circOut:Ti([.55,0,1,.45]),backIn:Ti([.31,.01,.66,-.59]),backOut:Ti([.33,1.53,.69,.99])};function Am(e,t){if(e)return typeof e=="function"?vm()?bm(e,t):"ease-out":sm(e)?Ti(e):Array.isArray(e)?e.map(n=>Am(n,t)||Sc.easeOut):Sc[e]}function C8(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:u}={},l=void 0){const c={[t]:n};u&&(c.offset=u);const h=Am(o,i);Array.isArray(h)&&(c.easing=h);const d={delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return l&&(d.pseudoElement=l),e.animate(c,d)}function km(e){return typeof e=="function"&&"applyToOptions"in e}function N8({type:e,...t}){return km(e)&&vm()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class I8 extends Vl{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:u}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,Ml(typeof t.type!="string");const l=N8(t);this.animation=C8(n,r,i,l,a),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const c=jl(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(c):A8(n,r,c),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ft(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ft(t)}get time(){return Ft(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=En(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&k8()?(this.animation.timeline=t,zt):n(this)}}const wm={anticipate:nm,backInOut:tm,circInOut:im};function _8(e){return e in wm}function D8(e){typeof e.ease=="string"&&_8(e.ease)&&(e.ease=wm[e.ease])}const go=10;class M8 extends I8{constructor(t){D8(t),xm(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new ql({...s,autoplay:!1}),u=Math.max(go,mt.now()-this.startTime),l=ln(0,go,u-go);n.setWithVelocity(o.sample(Math.max(0,u-l)).value,o.sample(u).value,l),o.stop()}}const Cc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(qn.test(e)||e==="0")&&!e.startsWith("url("));function R8(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function L8(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=Cc(i,t),o=Cc(a,t);return!s||!o?!1:R8(e)||(n==="spring"||km(n))&&r}function _u(e){e.duration=0,e.type="keyframes"}const P8=new Set(["opacity","clipPath","filter","transform"]),O8=Rl(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function F8(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=t.owner.getProps();return O8()&&n&&P8.has(n)&&(n!=="transform"||!l)&&!u&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const B8=40;class z8 extends Vl{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:u,motionValue:l,element:c,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=mt.now();const d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:u,motionValue:l,element:c,...h},m=c?.KeyframeResolver||$l;this.keyframeResolver=new m(o,(y,T,w)=>this.onKeyframesResolved(y,T,d,!w),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:u,isHandoff:l,onUpdate:c}=r;this.resolvedAt=mt.now(),L8(t,a,s,o)||((kn.instantAnimations||!u)&&c?.(jl(t,r,n)),t[0]=t[t.length-1],_u(r),r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>B8?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!l&&F8(d)?new M8({...d,element:d.motionValue.owner.current}):new ql(d);m.finished.then(()=>this.notifyFinished()).catch(zt),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),E8()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const H8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function U8(e){const t=H8.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Sm(e,t,n=1){const[r,i]=U8(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return G1(s)?parseFloat(s):s}return Fl(i)?Sm(i,t,n+1):i}function Yl(e,t){return e?.[t]??e?.default??e}const j8={type:"spring",stiffness:500,damping:25,restSpeed:10},V8=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),q8={type:"keyframes",duration:.8},$8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Y8=(e,{keyframes:t})=>t.length>2?q8:Qr.has(e)?e.startsWith("scale")?V8(t[1]):j8:$8;function G8({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const W8=e=>e!==null;function X8(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(W8),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}function Cm(e,t,n,r=0,i=1){const a=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),s=e.size,o=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:o-a*r}const Gl=(e,t,n,r={},i,a)=>s=>{const o=Yl(r,e)||{},u=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-En(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-l,onUpdate:d=>{t.set(d),o.onUpdate&&o.onUpdate(d)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};G8(o)||Object.assign(c,Y8(e,c)),c.duration&&(c.duration=En(c.duration)),c.repeatDelay&&(c.repeatDelay=En(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(_u(c),c.delay===0&&(h=!0)),(kn.instantAnimations||kn.skipAnimations)&&(h=!0,_u(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,h&&!a&&t.get()!==void 0){const d=X8(c.keyframes,o);if(d!==void 0){Oe.update(()=>{c.onUpdate(d),c.onComplete()});return}}return o.isSync?new ql(c):new z8(c)},Nm=new Set(["width","height","top","left","right","bottom",...Kr]),Nc=30,K8=e=>!isNaN(parseFloat(e));class Q8{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=mt.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=mt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=K8(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ll);const r=this.events[t].add(n);return t==="change"?()=>{r(),Oe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=mt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Nc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Nc);return K1(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Vr(e,t){return new Q8(e,t)}function Ic(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Wl(e,t,n,r){if(typeof t=="function"){const[i,a]=Ic(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Ic(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Br(e,t,n){const r=e.getProps();return Wl(r,t,n!==void 0?n:r.custom,e)}const Du=e=>Array.isArray(e);function Z8(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Vr(n))}function J8(e){return Du(e)?e[e.length-1]||0:e}function ey(e,t){const n=Br(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=J8(a[s]);Z8(e,s,o)}}const ot=e=>!!(e&&e.getVelocity);function ty(e){return!!(ot(e)&&e.add)}function Mu(e,t){const n=e.getValue("willChange");if(ty(n))return n.add(t);if(!n&&kn.WillChange){const r=new kn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Xl(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const ny="framerAppearId",Im="data-"+Xl(ny);function _m(e){return e.props[Im]}function ry({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Dm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;r&&(a=r);const u=[],l=i&&e.animationState&&e.animationState.getState()[i];for(const c in o){const h=e.getValue(c,e.latestValues[c]??null),d=o[c];if(d===void 0||l&&ry(l,c))continue;const m={delay:n,...Yl(a||{},c)},y=h.get();if(y!==void 0&&!h.isAnimating&&!Array.isArray(d)&&d===y&&!m.velocity)continue;let T=!1;if(window.MotionHandoffAnimation){const A=_m(e);if(A){const E=window.MotionHandoffAnimation(A,c,Oe);E!==null&&(m.startTime=E,T=!0)}}Mu(e,c),h.start(Gl(c,h,d,e.shouldReduceMotion&&Nm.has(c)?{type:!1}:m,e,T));const w=h.animation;w&&u.push(w)}return s&&Promise.all(u).then(()=>{Oe.update(()=>{s&&ey(e,s)})}),u}function Ru(e,t,n={}){const r=Br(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(Dm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:h}=i;return iy(e,t,u,l,c,h,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[u,l]=o==="beforeChildren"?[a,s]:[s,a];return u().then(()=>l())}else return Promise.all([a(),s(n.delay)])}function iy(e,t,n=0,r=0,i=0,a=1,s){const o=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),o.push(Ru(u,t,{...s,delay:n+(typeof r=="function"?0:r)+Cm(e.variantChildren,u,r,i,a)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(o)}function ay(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Ru(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Ru(e,t,n);else{const i=typeof t=="function"?Br(e,t,n.custom):t;r=Promise.all(Dm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const sy={test:e=>e==="auto",parse:e=>e},Mm=e=>t=>t.test(e),Rm=[Xr,oe,un,Pn,R7,M7,sy],_c=e=>Rm.find(Mm(e));function oy(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||X1(e):!0}const uy=new Set(["brightness","contrast","saturate","opacity"]);function ly(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Bl)||[];if(!r)return e;const i=n.replace(r,"");let a=uy.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const cy=/\b([a-z-]*)\(.*?\)/gu,Lu={...qn,getAnimatableNone:e=>{const t=e.match(cy);return t?t.map(ly).join(" "):e}},Dc={...Xr,transform:Math.round},hy={rotate:Pn,rotateX:Pn,rotateY:Pn,rotateZ:Pn,scale:va,scaleX:va,scaleY:va,scaleZ:va,skew:Pn,skewX:Pn,skewY:Pn,distance:oe,translateX:oe,translateY:oe,translateZ:oe,x:oe,y:oe,z:oe,perspective:oe,transformPerspective:oe,opacity:$i,originX:bc,originY:bc,originZ:oe},Kl={borderWidth:oe,borderTopWidth:oe,borderRightWidth:oe,borderBottomWidth:oe,borderLeftWidth:oe,borderRadius:oe,radius:oe,borderTopLeftRadius:oe,borderTopRightRadius:oe,borderBottomRightRadius:oe,borderBottomLeftRadius:oe,width:oe,maxWidth:oe,height:oe,maxHeight:oe,top:oe,right:oe,bottom:oe,left:oe,inset:oe,insetBlock:oe,insetBlockStart:oe,insetBlockEnd:oe,insetInline:oe,insetInlineStart:oe,insetInlineEnd:oe,padding:oe,paddingTop:oe,paddingRight:oe,paddingBottom:oe,paddingLeft:oe,paddingBlock:oe,paddingBlockStart:oe,paddingBlockEnd:oe,paddingInline:oe,paddingInlineStart:oe,paddingInlineEnd:oe,margin:oe,marginTop:oe,marginRight:oe,marginBottom:oe,marginLeft:oe,marginBlock:oe,marginBlockStart:oe,marginBlockEnd:oe,marginInline:oe,marginInlineStart:oe,marginInlineEnd:oe,backgroundPositionX:oe,backgroundPositionY:oe,...hy,zIndex:Dc,fillOpacity:$i,strokeOpacity:$i,numOctaves:Dc},dy={...Kl,color:Ke,backgroundColor:Ke,outlineColor:Ke,fill:Ke,stroke:Ke,borderColor:Ke,borderTopColor:Ke,borderRightColor:Ke,borderBottomColor:Ke,borderLeftColor:Ke,filter:Lu,WebkitFilter:Lu},Lm=e=>dy[e];function Pm(e,t){let n=Lm(e);return n!==Lu&&(n=qn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const fy=new Set(["auto","none","0"]);function my(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!fy.has(a)&&Yi(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=Pm(n,i)}class py extends $l{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let h=t[c];if(typeof h=="string"&&(h=h.trim(),Fl(h))){const d=Sm(h,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Nm.has(r)||t.length!==2)return;const[i,a]=t,s=_c(i),o=_c(a),u=gc(i),l=gc(a);if(u!==l&&Hn[r]){this.needsMeasurement=!0;return}if(s!==o)if(wc(s)&&wc(o))for(let c=0;c<t.length;c++){const h=t[c];typeof h=="string"&&(t[c]=parseFloat(h))}else Hn[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||oy(t[i]))&&r.push(i);r.length&&my(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Hn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,s=r[a];r[a]=Hn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([o,u])=>{t.getValue(o).set(u)}),this.resolveNoneKeyframes()}}function gy(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Om=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function by(e){return W1(e)&&"offsetHeight"in e}const{schedule:Ql}=om(queueMicrotask,!1),Yt={x:!1,y:!1};function Fm(){return Yt.x||Yt.y}function yy(e){return e==="x"||e==="y"?Yt[e]?null:(Yt[e]=!0,()=>{Yt[e]=!1}):Yt.x||Yt.y?null:(Yt.x=Yt.y=!0,()=>{Yt.x=Yt.y=!1})}function Bm(e,t){const n=gy(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Mc(e){return!(e.pointerType==="touch"||Fm())}function xy(e,t,n={}){const[r,i,a]=Bm(e,n),s=o=>{if(!Mc(o))return;const{target:u}=o,l=t(u,o);if(typeof l!="function"||!u)return;const c=h=>{Mc(h)&&(l(h),u.removeEventListener("pointerleave",c))};u.addEventListener("pointerleave",c,i)};return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const zm=(e,t)=>t?e===t?!0:zm(e,t.parentElement):!1,Zl=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ty=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Hm(e){return Ty.has(e.tagName)||e.isContentEditable===!0}const qa=new WeakSet;function Rc(e){return t=>{t.key==="Enter"&&e(t)}}function bo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ey=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Rc(()=>{if(qa.has(n))return;bo(n,"down");const i=Rc(()=>{bo(n,"up")}),a=()=>bo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Lc(e){return Zl(e)&&!Fm()}function vy(e,t,n={}){const[r,i,a]=Bm(e,n),s=o=>{const u=o.currentTarget;if(!Lc(o))return;qa.add(u);const l=t(u,o),c=(m,y)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",d),qa.has(u)&&qa.delete(u),Lc(m)&&typeof l=="function"&&l(m,{success:y})},h=m=>{c(m,u===window||u===document||n.useGlobalTarget||zm(u,m.target))},d=m=>{c(m,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",d,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),by(o)&&(o.addEventListener("focus",l=>Ey(l,i)),!Hm(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function Um(e){return W1(e)&&"ownerSVGElement"in e}function Ay(e){return Um(e)&&e.tagName==="svg"}const ky=[...Rm,Ke,qn],wy=e=>ky.find(Mm(e)),Pc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rr=()=>({x:Pc(),y:Pc()}),Oc=()=>({min:0,max:0}),Ze=()=>({x:Oc(),y:Oc()}),Pu={current:null},jm={current:!1},Sy=typeof window<"u";function Cy(){if(jm.current=!0,!!Sy)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Pu.current=e.matches;e.addEventListener("change",t),t()}else Pu.current=!1}const Ny=new WeakMap;function Ls(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Gi(e){return typeof e=="string"||Array.isArray(e)}const Jl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],e0=["initial",...Jl];function Ps(e){return Ls(e.animate)||e0.some(t=>Gi(e[t]))}function Vm(e){return!!(Ps(e)||e.variants)}function Iy(e,t,n){for(const r in t){const i=t[r],a=n[r];if(ot(i))e.addValue(r,i);else if(ot(a))e.addValue(r,Vr(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Vr(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Fc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ss={};function qm(e){ss=e}function _y(){return ss}class Dy{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=$l,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=mt.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,Oe.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=Ps(n),this.isVariantNode=Vm(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in h){const m=h[d];u[d]!==void 0&&ot(m)&&m.set(u[d])}}mount(t){this.current=t,Ny.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(jm.current||Cy(),this.shouldReduceMotion=Pu.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Vn(this.notifyUpdate),Vn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Qr.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Oe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;typeof window<"u"&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ss){const n=ss[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ze()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Fc.length;r++){const i=Fc[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=Iy(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Vr(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(G1(r)||X1(r))?r=parseFloat(r):!wy(r)&&qn.test(n)&&(r=Pm(t,n)),this.setBaseTarget(t,ot(r)?r.get():r)),ot(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=Wl(this.props,n,this.presenceContext?.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ot(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ll),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ql.render(this.render)}}class Xn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class $m extends Dy{constructor(){super(...arguments),this.KeyframeResolver=py}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ot(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ym({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function My({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ry(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function yo(e){return e===void 0||e===1}function Ou({scale:e,scaleX:t,scaleY:n}){return!yo(e)||!yo(t)||!yo(n)}function ur(e){return Ou(e)||Gm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Gm(e){return Bc(e.x)||Bc(e.y)}function Bc(e){return e&&e!=="0%"}function os(e,t,n){const r=e-n,i=t*r;return n+i}function zc(e,t,n,r,i){return i!==void 0&&(e=os(e,i,r)),os(e,n,r)+t}function Fu(e,t=0,n=1,r,i){e.min=zc(e.min,t,n,r,i),e.max=zc(e.max,t,n,r,i)}function Wm(e,{x:t,y:n}){Fu(e.x,t.translate,t.scale,t.originPoint),Fu(e.y,n.translate,n.scale,n.originPoint)}const Hc=.999999999999,Uc=1.0000000000001;function Ly(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;o<i;o++){a=n[o],s=a.projectionDelta;const{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Pr(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Wm(e,s)),r&&ur(a.latestValues)&&Pr(e,a.latestValues))}t.x<Uc&&t.x>Hc&&(t.x=1),t.y<Uc&&t.y>Hc&&(t.y=1)}function Lr(e,t){e.min=e.min+t,e.max=e.max+t}function jc(e,t,n,r,i=.5){const a=je(e.min,e.max,i);Fu(e,t,n,a,r)}function Pr(e,t){jc(e.x,t.x,t.scaleX,t.scale,t.originX),jc(e.y,t.y,t.scaleY,t.scale,t.originY)}function Xm(e,t){return Ym(Ry(e.getBoundingClientRect(),t))}function Py(e,t,n){const r=Xm(e,n),{scroll:i}=t;return i&&(Lr(r.x,i.offset.x),Lr(r.y,i.offset.y)),r}const Oy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Fy=Kr.length;function By(e,t,n){let r="",i=!0;for(let a=0;a<Fy;a++){const s=Kr[a],o=e[s];if(o===void 0)continue;let u=!0;if(typeof o=="number"?u=o===(s.startsWith("scale")?1:0):u=parseFloat(o)===0,!u||n){const l=Om(o,Kl[s]);if(!u){i=!1;const c=Oy[s]||s;r+=`${c}(${l}) `}n&&(t[s]=l)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function t0(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let s=!1,o=!1;for(const u in t){const l=t[u];if(Qr.has(u)){s=!0;continue}else if(lm(u)){i[u]=l;continue}else{const c=Om(l,Kl[u]);u.startsWith("origin")?(o=!0,a[u]=c):r[u]=c}}if(t.transform||(s||n?r.transform=By(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:u="50%",originY:l="50%",originZ:c=0}=a;r.transformOrigin=`${u} ${l} ${c}`}}function Km(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i?.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function Vc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const hi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(oe.test(e))e=parseFloat(e);else return e;const n=Vc(e,t.target.x),r=Vc(e,t.target.y);return`${n}% ${r}%`}},zy={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=qn.parse(e);if(i.length>5)return r;const a=qn.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=u;const l=je(o,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=l),typeof i[3+s]=="number"&&(i[3+s]/=l),a(i)}},Bu={borderRadius:{...hi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:hi,borderTopRightRadius:hi,borderBottomLeftRadius:hi,borderBottomRightRadius:hi,boxShadow:zy};function Qm(e,{layout:t,layoutId:n}){return Qr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Bu[e]||e==="opacity")}function n0(e,t,n){const r=e.style,i=t?.style,a={};if(!r)return a;for(const s in r)(ot(r[s])||i&&ot(i[s])||Qm(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(a[s]=r[s]);return a}function Hy(e){return window.getComputedStyle(e)}class Uy extends $m{constructor(){super(...arguments),this.type="html",this.renderInstance=Km}readValueFromInstance(t,n){if(Qr.has(n))return this.projection?.isProjecting?wu(n):g8(t,n);{const r=Hy(t),i=(lm(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Xm(t,n)}build(t,n,r){t0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return n0(t,n,r)}}const jy={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vy={offset:"strokeDashoffset",array:"strokeDasharray"};function qy(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?jy:Vy;e[a.offset]=oe.transform(-r);const s=oe.transform(t),o=oe.transform(n);e[a.array]=`${s} ${o}`}const $y=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Zm(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},u,l,c){if(t0(e,o,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:d}=e;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete h.transformBox);for(const m of $y)h[m]!==void 0&&(d[m]=h[m],delete h[m]);t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),i!==void 0&&qy(h,i,a,s,!1)}const Jm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),ep=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Yy(e,t,n,r){Km(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Jm.has(i)?i:Xl(i),t.attrs[i])}function tp(e,t,n){const r=n0(e,t,n);for(const i in e)if(ot(e[i])||ot(t[i])){const a=Kr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}class Gy extends $m{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ze}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Qr.has(n)){const r=Lm(n);return r&&r.default||0}return n=Jm.has(n)?n:Xl(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return tp(t,n,r)}build(t,n,r){Zm(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Yy(t,n,r,i)}mount(t){this.isSVGTag=ep(t.tagName),super.mount(t)}}const Wy=e0.length;function np(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?np(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Wy;n++){const r=e0[n],i=e.props[r];(Gi(i)||i===!1)&&(t[r]=i)}return t}function rp(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Xy=[...Jl].reverse(),Ky=Jl.length;function Qy(e){return t=>Promise.all(t.map(({animation:n,options:r})=>ay(e,n,r)))}function Zy(e){let t=Qy(e),n=qc(),r=!0;const i=u=>(l,c)=>{const h=Br(e,c,u==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:d,transitionEnd:m,...y}=h;l={...l,...y,...m}}return l};function a(u){t=u(e)}function s(u){const{props:l}=e,c=np(e.parent)||{},h=[],d=new Set;let m={},y=1/0;for(let w=0;w<Ky;w++){const A=Xy[w],E=n[A],S=l[A]!==void 0?l[A]:c[A],O=Gi(S),P=A===u?E.isActive:null;P===!1&&(y=w);let D=S===c[A]&&S!==l[A]&&O;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),E.protectedKeys={...m},!E.isActive&&P===null||!S&&!E.prevProp||Ls(S)||typeof S=="boolean")continue;const U=Jy(E.prevProp,S);let q=U||A===u&&E.isActive&&!D&&O||w>y&&O,Y=!1;const B=Array.isArray(S)?S:[S];let G=B.reduce(i(A),{});P===!1&&(G={});const{prevResolvedValues:V={}}=E,ue={...V,...G},ie=ne=>{q=!0,d.has(ne)&&(Y=!0,d.delete(ne)),E.needsAnimating[ne]=!0;const he=e.getValue(ne);he&&(he.liveStyle=!1)};for(const ne in ue){const he=G[ne],de=V[ne];if(m.hasOwnProperty(ne))continue;let _=!1;Du(he)&&Du(de)?_=!rp(he,de):_=he!==de,_?he!=null?ie(ne):d.add(ne):he!==void 0&&d.has(ne)?ie(ne):E.protectedKeys[ne]=!0}E.prevProp=S,E.prevResolvedValues=G,E.isActive&&(m={...m,...G}),r&&e.blockInitialAnimation&&(q=!1);const ee=D&&U;q&&(!ee||Y)&&h.push(...B.map(ne=>{const he={type:A};if(typeof ne=="string"&&r&&!ee&&e.manuallyAnimateOnMount&&e.parent){const{parent:de}=e,_=Br(de,ne);if(de.enteringChildren&&_){const{delayChildren:be}=_.transition||{};he.delay=Cm(de.enteringChildren,e,be)}}return{animation:ne,options:he}}))}if(d.size){const w={};if(typeof l.initial!="boolean"){const A=Br(e,Array.isArray(l.initial)?l.initial[0]:l.initial);A&&A.transition&&(w.transition=A.transition)}d.forEach(A=>{const E=e.getBaseTarget(A),S=e.getValue(A);S&&(S.liveStyle=!0),w[A]=E??null}),h.push({animation:w})}let T=!!h.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,T?t(h):Promise.resolve()}function o(u,l){if(n[u].isActive===l)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(u,l)),n[u].isActive=l;const c=s(u);for(const h in n)n[h].protectedKeys={};return c}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=qc()}}}function Jy(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rp(t,e):!1}function nr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qc(){return{animate:nr(!0),whileInView:nr(),whileHover:nr(),whileTap:nr(),whileDrag:nr(),whileFocus:nr(),exit:nr()}}const ip=1e-4,ex=1-ip,tx=1+ip,ap=.01,nx=0-ap,rx=0+ap;function pt(e){return e.max-e.min}function ix(e,t,n){return Math.abs(e-t)<=n}function $c(e,t,n,r=.5){e.origin=r,e.originPoint=je(t.min,t.max,e.origin),e.scale=pt(n)/pt(t),e.translate=je(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ex&&e.scale<=tx||isNaN(e.scale))&&(e.scale=1),(e.translate>=nx&&e.translate<=rx||isNaN(e.translate))&&(e.translate=0)}function Ni(e,t,n,r){$c(e.x,t.x,n.x,r?r.originX:void 0),$c(e.y,t.y,n.y,r?r.originY:void 0)}function Yc(e,t,n){e.min=n.min+t.min,e.max=e.min+pt(t)}function ax(e,t,n){Yc(e.x,t.x,n.x),Yc(e.y,t.y,n.y)}function Gc(e,t,n){e.min=t.min-n.min,e.max=e.min+pt(t)}function us(e,t,n){Gc(e.x,t.x,n.x),Gc(e.y,t.y,n.y)}function Wc(e,t,n,r,i){return e-=t,e=os(e,1/n,r),i!==void 0&&(e=os(e,1/i,r)),e}function sx(e,t=0,n=1,r=.5,i,a=e,s=e){if(un.test(t)&&(t=parseFloat(t),t=je(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=je(a.min,a.max,r);e===a&&(o-=t),e.min=Wc(e.min,t,n,o,i),e.max=Wc(e.max,t,n,o,i)}function Xc(e,t,[n,r,i],a,s){sx(e,t[n],t[r],t[i],t.scale,a,s)}const ox=["x","scaleX","originX"],ux=["y","scaleY","originY"];function Kc(e,t,n,r){Xc(e.x,t,ox,n?n.x:void 0,r?r.x:void 0),Xc(e.y,t,ux,n?n.y:void 0,r?r.y:void 0)}function Qc(e,t){e.min=t.min,e.max=t.max}function $t(e,t){Qc(e.x,t.x),Qc(e.y,t.y)}function Zc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Jc(e){return e.translate===0&&e.scale===1}function sp(e){return Jc(e.x)&&Jc(e.y)}function eh(e,t){return e.min===t.min&&e.max===t.max}function lx(e,t){return eh(e.x,t.x)&&eh(e.y,t.y)}function th(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function op(e,t){return th(e.x,t.x)&&th(e.y,t.y)}function nh(e){return pt(e.x)/pt(e.y)}function rh(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Lt(e){return[e("x"),e("y")]}function cx(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:h,rotateY:d,skewX:m,skewY:y}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),h&&(r+=`rotateX(${h}deg) `),d&&(r+=`rotateY(${d}deg) `),m&&(r+=`skewX(${m}deg) `),y&&(r+=`skewY(${y}deg) `)}const o=e.x.scale*t.x,u=e.y.scale*t.y;return(o!==1||u!==1)&&(r+=`scale(${o}, ${u})`),r||"none"}const up=["TopLeft","TopRight","BottomLeft","BottomRight"],hx=up.length,ih=e=>typeof e=="string"?parseFloat(e):e,ah=e=>typeof e=="number"||oe.test(e);function dx(e,t,n,r,i,a){i?(e.opacity=je(0,n.opacity??1,fx(r)),e.opacityExit=je(t.opacity??1,0,mx(r))):a&&(e.opacity=je(t.opacity??1,n.opacity??1,r));for(let s=0;s<hx;s++){const o=`border${up[s]}Radius`;let u=sh(t,o),l=sh(n,o);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||ah(u)===ah(l)?(e[o]=Math.max(je(ih(u),ih(l),r),0),(un.test(l)||un.test(u))&&(e[o]+="%")):e[o]=l}(t.rotate||n.rotate)&&(e.rotate=je(t.rotate||0,n.rotate||0,r))}function sh(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const fx=lp(0,.5,rm),mx=lp(.5,.95,zt);function lp(e,t,n){return r=>r<e?0:r>t?1:n(qi(e,t,r))}function px(e,t){const n=mt.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Vn(r),e(a-t))};return Oe.setup(r,!0),()=>Vn(r)}function Wi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function $a(e){return ot(e)?e.get():e}function gx(e,t,n){const r=ot(e)?e:Vr(e);return r.start(Gl("",r,t,n)),r.animation}const bx=(e,t)=>e.depth-t.depth;class yx{constructor(){this.children=[],this.isDirty=!1}add(t){_l(this.children,t),this.isDirty=!0}remove(t){Dl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bx),this.isDirty=!1,this.children.forEach(t)}}class xx{constructor(){this.members=[]}add(t){_l(this.members,t),t.scheduleRender()}remove(t){if(Dl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Ya={hasAnimatedSinceResize:!0,hasEverUpdated:!1},xo=["","X","Y","Z"],Tx=1e3;let Ex=0;function To(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function cp(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_m(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Oe,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&cp(r)}function hp({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t?.()){this.id=Ex++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(kx),this.nodes.forEach(Nx),this.nodes.forEach(Ix),this.nodes.forEach(wx)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new yx)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Ll),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const u=this.eventHandlers.get(s);u&&u.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=Um(s)&&!Ay(s),this.instance=s;const{layoutId:o,layout:u,visualElement:l}=this.options;if(l&&!l.current&&l.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||o)&&(this.isLayoutDirty=!0),e){let c,h=0;const d=()=>this.root.updateBlockedByResize=!1;Oe.read(()=>{h=window.innerWidth}),e(s,()=>{const m=window.innerWidth;m!==h&&(h=m,this.root.updateBlockedByResize=!0,c&&c(),c=px(d,250),Ya.hasAnimatedSinceResize&&(Ya.hasAnimatedSinceResize=!1,this.nodes.forEach(lh)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&l&&(o||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||l.getDefaultTransition()||Lx,{onLayoutAnimationStart:T,onLayoutAnimationComplete:w}=l.getProps(),A=!this.targetLayout||!op(this.targetLayout,m),E=!h&&d;if(this.options.layoutRoot||this.resumeFrom||E||h&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...Yl(y,"layout"),onPlay:T,onComplete:w};(l.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(c,E)}else h||lh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Vn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(_x),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:o,layout:u}=this.options;if(o===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(oh);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(uh);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Cx),this.nodes.forEach(vx),this.nodes.forEach(Ax)):this.nodes.forEach(uh),this.clearAllSnapshots();const o=mt.now();it.delta=ln(0,1e3/60,o-it.timestamp),it.timestamp=o,it.isProcessing=!0,co.update.process(it),co.preRender.process(it),co.render.process(it),it.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ql.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Sx),this.sharedNodes.forEach(Dx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Oe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Oe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pt(this.snapshot.measuredBox.x)&&!pt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ze(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o&&this.instance){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!sp(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;s&&this.instance&&(o||ur(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let u=this.removeElementScroll(o);return s&&(u=this.removeTransform(u)),Px(u),{animationId:this.root.animationId,measuredBox:o,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Ze();const o=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ox))){const{scroll:l}=this.root;l&&(Lr(o.x,l.offset.x),Lr(o.y,l.offset.y))}return o}removeElementScroll(s){const o=Ze();if($t(o,s),this.scroll?.wasRoot)return o;for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:c,options:h}=l;l!==this.root&&c&&h.layoutScroll&&(c.wasRoot&&$t(o,s),Lr(o.x,c.offset.x),Lr(o.y,c.offset.y))}return o}applyTransform(s,o=!1){const u=Ze();$t(u,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Pr(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),ur(c.latestValues)&&Pr(u,c.latestValues)}return ur(this.latestValues)&&Pr(u,this.latestValues),u}removeTransform(s){const o=Ze();$t(o,s);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!ur(l.latestValues))continue;Ou(l.latestValues)&&l.updateSnapshot();const c=Ze(),h=l.measurePageBox();$t(c,h),Kc(o,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return ur(this.latestValues)&&Kc(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==it.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==o;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:h}=this.options;if(!this.layout||!(c||h))return;this.resolvedRelativeTargetAt=it.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ze(),this.targetWithTransforms=Ze()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ax(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$t(this.target,this.layout.layoutBox),Wm(this.target,this.targetDelta)):$t(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ou(this.parent.latestValues)||Gm(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,o,u){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ze(),this.relativeTargetOrigin=Ze(),us(this.relativeTargetOrigin,o,u),$t(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const s=this.getLead(),o=!!this.resumingFrom||this!==s;let u=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===it.timestamp&&(u=!1),u)return;const{layout:l,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||c))return;$t(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,d=this.treeScale.y;Ly(this.layoutCorrected,this.treeScale,this.path,o),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Ze());const{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Zc(this.prevProjectionDelta.x,this.projectionDelta.x),Zc(this.prevProjectionDelta.y,this.projectionDelta.y)),Ni(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==d||!rh(this.projectionDelta.x,this.prevProjectionDelta.x)||!rh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Rr(),this.projectionDelta=Rr(),this.projectionDeltaWithTransform=Rr()}setAnimationOrigin(s,o=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},h=Rr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const d=Ze(),m=u?u.source:void 0,y=this.layout?this.layout.source:void 0,T=m!==y,w=this.getStack(),A=!w||w.members.length<=1,E=!!(T&&!A&&this.options.crossfade===!0&&!this.path.some(Rx));this.animationProgress=0;let S;this.mixTargetDelta=O=>{const P=O/1e3;ch(h.x,s.x,P),ch(h.y,s.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(us(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Mx(this.relativeTarget,this.relativeTargetOrigin,d,P),S&&lx(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Ze()),$t(S,this.relativeTarget)),T&&(this.animationValues=c,dx(c,l,this.latestValues,P,E,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Vn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Oe.update(()=>{Ya.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Vr(0)),this.currentAnimation=gx(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Tx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:u,layout:l,latestValues:c}=s;if(!(!o||!u||!l)){if(this!==s&&this.layout&&l&&dp(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||Ze();const h=pt(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+h;const d=pt(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+d}$t(o,u),Pr(o,c),Ni(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new xx),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const l={};u.z&&To("z",s,l,this.animationValues);for(let c=0;c<xo.length;c++)To(`rotate${xo[c]}`,s,l,this.animationValues),To(`skew${xo[c]}`,s,l,this.animationValues);s.render();for(const c in l)s.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);s.scheduleRender()}applyProjectionStyles(s,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=$a(o?.pointerEvents)||"",s.transform=u?u(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=$a(o?.pointerEvents)||""),this.hasProjected&&!ur(this.latestValues)&&(s.transform=u?u({},""):"none",this.hasProjected=!1);return}s.visibility="";const c=l.animationValues||l.latestValues;this.applyTransformsToTarget();let h=cx(this.projectionDeltaWithTransform,this.treeScale,c);u&&(h=u(c,h)),s.transform=h;const{x:d,y:m}=this.projectionDelta;s.transformOrigin=`${d.origin*100}% ${m.origin*100}% 0`,l.animationValues?s.opacity=l===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:s.opacity=l===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const y in Bu){if(c[y]===void 0)continue;const{correct:T,applyTo:w,isCSSVariable:A}=Bu[y],E=h==="none"?c[y]:T(c[y],l);if(w){const S=w.length;for(let O=0;O<S;O++)s[w[O]]=E}else A?this.options.visualElement.renderState.vars[y]=E:s[y]=E}this.options.layoutId&&(s.pointerEvents=l===this?$a(o?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(oh),this.root.sharedNodes.clear()}}}function vx(e){e.updateLayout()}function Ax(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?Lt(c=>{const h=a?t.measuredBox[c]:t.layoutBox[c],d=pt(h);h.min=n[c].min,h.max=h.min+d}):dp(i,t.layoutBox,n)&&Lt(c=>{const h=a?t.measuredBox[c]:t.layoutBox[c],d=pt(n[c]);h.max=h.min+d,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+d)});const s=Rr();Ni(s,n,t.layoutBox);const o=Rr();a?Ni(o,e.applyTransform(r,!0),t.measuredBox):Ni(o,n,t.layoutBox);const u=!sp(s);let l=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:h,layout:d}=c;if(h&&d){const m=Ze();us(m,t.layoutBox,h.layoutBox);const y=Ze();us(y,n,d.layoutBox),op(m,y)||(l=!0),c.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function kx(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function wx(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Sx(e){e.clearSnapshot()}function oh(e){e.clearMeasurements()}function uh(e){e.isLayoutDirty=!1}function Cx(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function lh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Nx(e){e.resolveTargetDelta()}function Ix(e){e.calcProjection()}function _x(e){e.resetSkewAndRotation()}function Dx(e){e.removeLeadSnapshot()}function ch(e,t,n){e.translate=je(t.translate,0,n),e.scale=je(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function hh(e,t,n,r){e.min=je(t.min,n.min,r),e.max=je(t.max,n.max,r)}function Mx(e,t,n,r){hh(e.x,t.x,n.x,r),hh(e.y,t.y,n.y,r)}function Rx(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Lx={duration:.45,ease:[.4,0,.1,1]},dh=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),fh=dh("applewebkit/")&&!dh("chrome/")?Math.round:zt;function mh(e){e.min=fh(e.min),e.max=fh(e.max)}function Px(e){mh(e.x),mh(e.y)}function dp(e,t,n){return e==="position"||e==="preserve-aspect"&&!ix(nh(t),nh(n),.2)}function Ox(e){return e!==e.root&&e.scroll?.wasRoot}const Fx=hp({attachResizeListener:(e,t)=>Wi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Eo={current:void 0},fp=hp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Eo.current){const e=new Fx({});e.mount(window),e.setOptions({layoutScroll:!0}),Eo.current=e}return Eo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),mp=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Bx(e=!0){const t=k.useContext(Il);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=k.useId();k.useEffect(()=>{if(e)return i(a)},[e]);const s=k.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const pp=k.createContext({strict:!1}),ph={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let gh=!1;function zx(){if(gh)return;const e={};for(const t in ph)e[t]={isEnabled:n=>ph[t].some(r=>!!n[r])};qm(e),gh=!0}function gp(){return zx(),_y()}function Hx(e){const t=gp();for(const n in e)t[n]={...t[n],...e[n]};qm(t)}const Ux=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ls(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ux.has(e)}let bp=e=>!ls(e);function jx(e){typeof e=="function"&&(bp=t=>t.startsWith("on")?!ls(t):e(t))}try{jx(require("@emotion/is-prop-valid").default)}catch{}function Vx(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(bp(i)||n===!0&&ls(i)||!t&&!ls(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Os=k.createContext({});function qx(e,t){if(Ps(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Gi(n)?n:void 0,animate:Gi(r)?r:void 0}}return e.inherit!==!1?t:{}}function $x(e){const{initial:t,animate:n}=qx(e,k.useContext(Os));return k.useMemo(()=>({initial:t,animate:n}),[bh(t),bh(n)])}function bh(e){return Array.isArray(e)?e.join(" "):e}const r0=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function yp(e,t,n){for(const r in t)!ot(t[r])&&!Qm(r,n)&&(e[r]=t[r])}function Yx({transformTemplate:e},t){return k.useMemo(()=>{const n=r0();return t0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Gx(e,t){const n=e.style||{},r={};return yp(r,n,e),Object.assign(r,Yx(e,t)),r}function Wx(e,t){const n={},r=Gx(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const xp=()=>({...r0(),attrs:{}});function Xx(e,t,n,r){const i=k.useMemo(()=>{const a=xp();return Zm(a,t,ep(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};yp(a,e.style,e),i.style={...a,...i.style}}return i}const Kx=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function i0(e){return typeof e!="string"||e.includes("-")?!1:!!(Kx.indexOf(e)>-1||/[A-Z]/u.test(e))}function Qx(e,t,n,{latestValues:r},i,a=!1,s){const u=(s??i0(e)?Xx:Wx)(t,r,i,e),l=Vx(t,typeof e=="string",a),c=e!==k.Fragment?{...l,...u,ref:n}:{},{children:h}=t,d=k.useMemo(()=>ot(h)?h.get():h,[h]);return k.createElement(e,{...c,children:d})}function Zx({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Jx(n,r,i,e),renderState:t()}}function Jx(e,t,n,r){const i={},a=r(e,{});for(const d in a)i[d]=$a(a[d]);let{initial:s,animate:o}=e;const u=Ps(e),l=Vm(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const h=c?o:s;if(h&&typeof h!="boolean"&&!Ls(h)){const d=Array.isArray(h)?h:[h];for(let m=0;m<d.length;m++){const y=Wl(e,d[m]);if(y){const{transitionEnd:T,transition:w,...A}=y;for(const E in A){let S=A[E];if(Array.isArray(S)){const O=c?S.length-1:0;S=S[O]}S!==null&&(i[E]=S)}for(const E in T)i[E]=T[E]}}}return i}const Tp=e=>(t,n)=>{const r=k.useContext(Os),i=k.useContext(Il),a=()=>Zx(e,t,r,i);return n?a():d7(a)},eT=Tp({scrapeMotionValuesFromProps:n0,createRenderState:r0}),tT=Tp({scrapeMotionValuesFromProps:tp,createRenderState:xp}),nT=Symbol.for("motionComponentSymbol");function rT(e,t,n){const r=k.useRef(n);k.useInsertionEffect(()=>{r.current=n});const i=k.useRef(null);return k.useCallback(a=>{a&&e.onMount?.(a),t&&(a?t.mount(a):t.unmount());const s=r.current;if(typeof s=="function")if(a){const o=s(a);typeof o=="function"&&(i.current=o)}else i.current?(i.current(),i.current=null):s(a);else s&&(s.current=a)},[t])}const Ep=k.createContext({});function Ei(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function iT(e,t,n,r,i,a){const{visualElement:s}=k.useContext(Os),o=k.useContext(pp),u=k.useContext(Il),l=k.useContext(mp).reducedMotion,c=k.useRef(null);r=r||o.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:s,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:l,isSVG:a}));const h=c.current,d=k.useContext(Ep);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&aT(c.current,n,i,d);const m=k.useRef(!1);k.useInsertionEffect(()=>{h&&m.current&&h.update(n,u)});const y=n[Im],T=k.useRef(!!y&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return f7(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),T.current&&h.animationState&&h.animationState.animateChanges())}),k.useEffect(()=>{h&&(!T.current&&h.animationState&&h.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),T.current=!1),h.enteringChildren=void 0)}),h}function aT(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:u,layoutRoot:l,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:vp(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&Ei(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:u,layoutRoot:l})}function vp(e){if(e)return e.options.allowProjection!==!1?e.projection:vp(e.parent)}function vo(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Hx(r);const a=n?n==="svg":i0(e),s=a?tT:eT;function o(l,c){let h;const d={...k.useContext(mp),...l,layoutId:sT(l)},{isStatic:m}=d,y=$x(l),T=s(l,m);if(!m&&Y1){oT();const w=uT(d);h=w.MeasureLayout,y.visualElement=iT(e,T,d,i,w.ProjectionNode,a)}return b.jsxs(Os.Provider,{value:y,children:[h&&y.visualElement?b.jsx(h,{visualElement:y.visualElement,...d}):null,Qx(e,l,rT(T,y.visualElement,c),T,m,t,a)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=k.forwardRef(o);return u[nT]=e,u}function sT({layoutId:e}){const t=k.useContext($1).id;return t&&e!==void 0?t+"-"+e:e}function oT(e,t){k.useContext(pp).strict}function uT(e){const t=gp(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function lT(e,t){if(typeof Proxy>"u")return vo;const n=new Map,r=(a,s)=>vo(a,s,e,t),i=(a,s)=>r(a,s);return new Proxy(i,{get:(a,s)=>s==="create"?r:(n.has(s)||n.set(s,vo(s,void 0,e,t)),n.get(s))})}const cT=(e,t)=>t.isSVG??i0(e)?new Gy(t):new Uy(t,{allowProjection:e!==k.Fragment});class hT extends Xn{constructor(t){super(t),t.animationState||(t.animationState=Zy(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ls(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let dT=0;class fT extends Xn{constructor(){super(...arguments),this.id=dT++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const mT={animation:{Feature:hT},exit:{Feature:fT}};function oa(e){return{point:{x:e.pageX,y:e.pageY}}}const pT=e=>t=>Zl(t)&&e(t,oa(t));function Ii(e,t,n,r){return Wi(e,t,pT(n),r)}const Ap=({current:e})=>e?e.ownerDocument.defaultView:null,yh=(e,t)=>Math.abs(e-t);function gT(e,t){const n=yh(e.x,t.x),r=yh(e.y,t.y);return Math.sqrt(n**2+r**2)}const xh=new Set(["auto","scroll"]);class kp{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=ko(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,T=gT(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!T)return;const{point:w}=m,{timestamp:A}=it;this.history.push({...w,timestamp:A});const{onStart:E,onMove:S}=this.handlers;y||(E&&E(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,m)},this.handlePointerMove=(m,y)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=Ao(y,this.transformPagePoint),Oe.update(this.updatePoint,!0)},this.handlePointerUp=(m,y)=>{this.end();const{onEnd:T,onSessionEnd:w,resumeAnimation:A}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=ko(m.type==="pointercancel"?this.lastMoveEventInfo:Ao(y,this.transformPagePoint),this.history);this.startEvent&&T&&T(m,E),w&&w(m,E)},!Zl(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const u=oa(t),l=Ao(u,this.transformPagePoint),{point:c}=l,{timestamp:h}=it;this.history=[{...c,timestamp:h}];const{onSessionStart:d}=n;d&&d(t,ko(l,this.history)),this.removeListeners=ia(Ii(this.contextWindow,"pointermove",this.handlePointerMove),Ii(this.contextWindow,"pointerup",this.handlePointerUp),Ii(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(xh.has(r.overflowX)||xh.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},a={x:i.x-n.x,y:i.y-n.y};a.x===0&&a.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(t,i),Oe.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Vn(this.updatePoint)}}function Ao(e,t){return t?{point:t(e.point)}:e}function Th(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ko({point:e},t){return{point:e,delta:Th(e,wp(t)),offset:Th(e,bT(t)),velocity:yT(t,.1)}}function bT(e){return e[0]}function wp(e){return e[e.length-1]}function yT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=wp(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>En(t)));)n--;if(!r)return{x:0,y:0};const a=Ft(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function xT(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?je(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?je(n,e,r.max):Math.min(e,n)),e}function Eh(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function TT(e,{top:t,left:n,bottom:r,right:i}){return{x:Eh(e.x,n,i),y:Eh(e.y,t,r)}}function vh(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ET(e,t){return{x:vh(e.x,t.x),y:vh(e.y,t.y)}}function vT(e,t){let n=.5;const r=pt(e),i=pt(t);return i>r?n=qi(t.min,t.max-r,e.min):r>i&&(n=qi(e.min,e.max-i,t.min)),ln(0,1,n)}function AT(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const zu=.35;function kT(e=zu){return e===!1?e=0:e===!0&&(e=zu),{x:Ah(e,"left","right"),y:Ah(e,"top","bottom")}}function Ah(e,t,n){return{min:kh(e,t),max:kh(e,n)}}function kh(e,t){return typeof e=="number"?e:e[t]||0}const wT=new WeakMap;class ST{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ze(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=h=>{n?(this.stopAnimation(),this.snapToCursor(oa(h).point)):this.pauseAnimation()},s=(h,d)=>{this.stopAnimation();const{drag:m,dragPropagation:y,onDragStart:T}=this.getProps();if(m&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=yy(m),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Lt(A=>{let E=this.getAxisMotionValue(A).get()||0;if(un.test(E)){const{projection:S}=this.visualElement;if(S&&S.layout){const O=S.layout.layoutBox[A];O&&(E=pt(O)*(parseFloat(E)/100))}}this.originPoint[A]=E}),T&&Oe.postRender(()=>T(h,d)),Mu(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},o=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d;const{dragPropagation:m,dragDirectionLock:y,onDirectionLock:T,onDrag:w}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:A}=d;if(y&&this.currentDirection===null){this.currentDirection=CT(A),this.currentDirection!==null&&T&&T(this.currentDirection);return}this.updateAxis("x",d.point,A),this.updateAxis("y",d.point,A),this.visualElement.render(),w&&w(h,d)},u=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d,this.stop(h,d),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>Lt(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new kp(t,{onSessionStart:a,onStart:s,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:Ap(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&Oe.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Aa(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=xT(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Ei(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=TT(r.layoutBox,t):this.constraints=!1,this.elastic=kT(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Lt(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=AT(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ei(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Py(r,i.root,this.visualElement.getTransformPagePoint());let s=ET(i.layout.layoutBox,a);if(n){const o=n(My(s));this.hasMutatedConstraints=!!o,o&&(s=Ym(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),u=this.constraints||{},l=Lt(c=>{if(!Aa(c,n,this.currentDirection))return;let h=u&&u[c]||{};s&&(h={min:0,max:0});const d=i?200:1e6,m=i?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...a,...h};return this.startAxisValueAnimation(c,y)});return Promise.all(l).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Mu(this.visualElement,t),r.start(Gl(t,r,0,n,this.visualElement,!1))}stopAnimation(){Lt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Lt(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Lt(n=>{const{drag:r}=this.getProps();if(!Aa(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n],u=a.get()||0;a.set(t[n]-je(s,o,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ei(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Lt(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const u=o.get();i[s]=vT({min:u,max:u},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Lt(s=>{if(!Aa(s,t,null))return;const o=this.getAxisMotionValue(s),{min:u,max:l}=this.constraints[s];o.set(je(u,l,i[s]))})}addListeners(){if(!this.visualElement.current)return;wT.set(this.visualElement,this);const t=this.visualElement.current,n=Ii(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&!Hm(u.target)&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Ei(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Oe.read(r);const s=Wi(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(Lt(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=u[c].translate,h.set(h.get()+u[c].translate))}),this.visualElement.render())}));return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=zu,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function Aa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function CT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class NT extends Xn{constructor(t){super(t),this.removeGroupControls=zt,this.removeListeners=zt,this.controls=new ST(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||zt}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const wh=e=>(t,n)=>{e&&Oe.postRender(()=>e(t,n))};class IT extends Xn{constructor(){super(...arguments),this.removePointerDownListener=zt}onPointerDown(t){this.session=new kp(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ap(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:wh(t),onStart:wh(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&Oe.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=Ii(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let wo=!1;class _T extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),wo&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Ya.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,wo=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||Oe.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ql.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;wo=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Sp(e){const[t,n]=Bx(),r=k.useContext($1);return b.jsx(_T,{...e,layoutGroup:r,switchLayoutGroup:k.useContext(Ep),isPresent:t,safeToRemove:n})}const DT={pan:{Feature:IT},drag:{Feature:NT,ProjectionNode:fp,MeasureLayout:Sp}};function Sh(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&Oe.postRender(()=>a(t,oa(t)))}class MT extends Xn{mount(){const{current:t}=this.node;t&&(this.unmount=xy(t,(n,r)=>(Sh(this.node,r,"Start"),i=>Sh(this.node,i,"End"))))}unmount(){}}class RT extends Xn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ia(Wi(this.node.current,"focus",()=>this.onFocus()),Wi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ch(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&Oe.postRender(()=>a(t,oa(t)))}class LT extends Xn{mount(){const{current:t}=this.node;t&&(this.unmount=vy(t,(n,r)=>(Ch(this.node,r,"Start"),(i,{success:a})=>Ch(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Hu=new WeakMap,So=new WeakMap,PT=e=>{const t=Hu.get(e.target);t&&t(e)},OT=e=>{e.forEach(PT)};function FT({root:e,...t}){const n=e||document;So.has(n)||So.set(n,{});const r=So.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(OT,{root:e,...t})),r[i]}function BT(e,t,n){const r=FT(t);return Hu.set(e,n),r.observe(e),()=>{Hu.delete(e),r.unobserve(e)}}const zT={some:0,all:1};class HT extends Xn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:zT[i]},o=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),d=l?c:h;d&&d(u)};return BT(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(UT(t,n))&&this.startObserver()}unmount(){}}function UT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const jT={inView:{Feature:HT},tap:{Feature:LT},focus:{Feature:RT},hover:{Feature:MT}},VT={layout:{ProjectionNode:fp,MeasureLayout:Sp}},qT={...mT,...jT,...DT,...VT},Cp=lT(qT,cT),Nh=[{variant:"shine",component:({children:e,className:t,...n})=>b.jsx(Cp.span,{...n,className:ge("bg-[linear-gradient(110deg,#bfbfbf,35%,#000,50%,#bfbfbf,75%,#bfbfbf)] dark:bg-[linear-gradient(110deg,#404040,35%,#fff,50%,#404040,75%,#404040)]","bg-[length:200%_100%] bg-clip-text text-transparent",t),initial:{backgroundPosition:"200% 0"},animate:{backgroundPosition:"-200% 0"},transition:{repeat:Number.POSITIVE_INFINITY,duration:2,ease:"linear"},children:e})}];function $T({variant:e="shine",className:t,...n}){const a=Nh.find(s=>s.variant===e)?.component||Nh[0].component;return b.jsx(s7,{className:ge("font-medium text-sm"),children:b.jsx(a,{...n,className:t})})}const ua=(function(e){if(e==null)return XT;if(typeof e=="function")return Fs(e);if(typeof e=="object")return Array.isArray(e)?YT(e):GT(e);if(typeof e=="string")return WT(e);throw new Error("Expected function, string, or object as test")});function YT(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ua(e[n]);return Fs(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function GT(e){const t=e;return Fs(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function WT(e){return Fs(t);function t(n){return n&&n.type===e}}function Fs(e){return t;function t(n,r,i){return!!(KT(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function XT(){return!0}function KT(e){return e!==null&&typeof e=="object"&&"type"in e}const Np=[],vi=!0,Uu=!1,cs="skip";function a0(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=ua(i),s=r?-1:1;o(e,void 0,[])();function o(u,l,c){const h=u&&typeof u=="object"?u:{};if(typeof h.type=="string"){const m=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(u.type+(m?"<"+m+">":""))+")"})}return d;function d(){let m=Np,y,T,w;if((!t||a(u,l,c[c.length-1]||void 0))&&(m=QT(n(u,c)),m[0]===Uu))return m;if("children"in u&&u.children){const A=u;if(A.children&&m[0]!==cs)for(T=(r?A.children.length:-1)+s,w=c.concat(A);T>-1&&T<A.children.length;){const E=A.children[T];if(y=o(E,T,w)(),y[0]===Uu)return y;T=typeof y[1]=="number"?y[1]:T+s}}return m}}}function QT(e){return Array.isArray(e)?e:typeof e=="number"?[vi,e]:e==null?Np:[e]}function qr(e,t,n,r){let i,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,i=n):(a=t,s=n,i=r),a0(e,a,o,i);function o(u,l){const c=l[l.length-1],h=c?c.children.indexOf(u):void 0;return s(u,h,c)}}function ZT({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500"}){const o=t.length&&!t.every(l=>l==="*"),u=n.length&&!n.every(l=>l==="*");if(!e&&(o||u))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return l=>{const c=n9(e,t,n,r,i,a,s);qr(l,c)}}function Ih(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function JT(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const e9=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),t9=new Set(["javascript:","data:","file:","vbscript:"]);function _h(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const c=e.substring(5);if(c&&c.length>0&&c!=="invalid")return e}}catch{return null}return null}const s=Ih(e,n);if(!s||t9.has(s.protocol)||!(e9.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const u=JT(e);return s&&t.some(l=>{const c=Ih(l,n);return!c||c.origin!==s.origin?!1:s.href.startsWith(c.href)})?u?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:u?s.pathname+s.search+s.hash:s.href:null}const Co=Symbol("node-seen"),n9=(e,t,n,r,i,a,s)=>{const o=(u,l,c)=>{if(u.type!=="element"||u[Co])return vi;if(u.tagName==="a"){const h=_h(u.properties.href,t,e,!1,!1,i);return h===null?(u[Co]=!0,qr(u,o),c&&typeof l=="number"&&(c.children[l]={type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(u.properties.href),class:s},children:[...u.children,{type:"text",value:" [blocked]"}]}),cs):(u.properties.href=h,u.properties.target="_blank",u.properties.rel="noopener noreferrer",vi)}if(u.tagName==="img"){const h=_h(u.properties.src,n,e,r,!0,i);return h===null?(u[Co]=!0,qr(u,o),c&&typeof l=="number"&&(c.children[l]={type:"element",tagName:"span",properties:{class:a},children:[{type:"text",value:"[Image blocked: "+String(u.properties.alt||"No description")+"]"}]}),cs):(u.properties.src=h,vi)}return vi};return o};class la{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}la.prototype.normal={};la.prototype.property={};la.prototype.space=void 0;function Ip(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new la(n,r,t)}function Xi(e){return e.toLowerCase()}class kt{constructor(t,n){this.attribute=n,this.property=t}}kt.prototype.attribute="";kt.prototype.booleanish=!1;kt.prototype.boolean=!1;kt.prototype.commaOrSpaceSeparated=!1;kt.prototype.commaSeparated=!1;kt.prototype.defined=!1;kt.prototype.mustUseProperty=!1;kt.prototype.number=!1;kt.prototype.overloadedBoolean=!1;kt.prototype.property="";kt.prototype.spaceSeparated=!1;kt.prototype.space=void 0;let r9=0;const Te=yr(),Xe=yr(),ju=yr(),J=yr(),Le=yr(),zr=yr(),Ct=yr();function yr(){return 2**++r9}const Vu=Object.freeze(Object.defineProperty({__proto__:null,boolean:Te,booleanish:Xe,commaOrSpaceSeparated:Ct,commaSeparated:zr,number:J,overloadedBoolean:ju,spaceSeparated:Le},Symbol.toStringTag,{value:"Module"})),No=Object.keys(Vu);class s0 extends kt{constructor(t,n,r,i){let a=-1;if(super(t,n),Dh(this,"space",i),typeof r=="number")for(;++a<No.length;){const s=No[a];Dh(this,No[a],(r&Vu[s])===Vu[s])}}}s0.prototype.defined=!0;function Dh(e,t,n){n&&(e[t]=n)}function Zr(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new s0(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Xi(r)]=r,n[Xi(a.attribute)]=r}return new la(t,n,e.space)}const _p=Zr({properties:{ariaActiveDescendant:null,ariaAtomic:Xe,ariaAutoComplete:null,ariaBusy:Xe,ariaChecked:Xe,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:Le,ariaCurrent:null,ariaDescribedBy:Le,ariaDetails:null,ariaDisabled:Xe,ariaDropEffect:Le,ariaErrorMessage:null,ariaExpanded:Xe,ariaFlowTo:Le,ariaGrabbed:Xe,ariaHasPopup:null,ariaHidden:Xe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Le,ariaLevel:J,ariaLive:null,ariaModal:Xe,ariaMultiLine:Xe,ariaMultiSelectable:Xe,ariaOrientation:null,ariaOwns:Le,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:Xe,ariaReadOnly:Xe,ariaRelevant:null,ariaRequired:Xe,ariaRoleDescription:Le,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:Xe,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Dp(e,t){return t in e?e[t]:t}function Mp(e,t){return Dp(e,t.toLowerCase())}const i9=Zr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zr,acceptCharset:Le,accessKey:Le,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:Le,autoFocus:Te,autoPlay:Te,blocking:Le,capture:null,charSet:null,checked:Te,cite:null,className:Le,cols:J,colSpan:null,content:null,contentEditable:Xe,controls:Te,controlsList:Le,coords:J|zr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te,defer:Te,dir:null,dirName:null,disabled:Te,download:ju,draggable:Xe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:Le,height:J,hidden:ju,high:J,href:null,hrefLang:null,htmlFor:Le,httpEquiv:Le,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:Le,itemRef:Le,itemScope:Te,itemType:Le,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Te,optimum:J,pattern:null,ping:Le,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:Le,required:Te,reversed:Te,rows:J,rowSpan:J,sandbox:Le,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootClonable:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:Xe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:Xe,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Le,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:Xe,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te,disableRemotePlayback:Te,prefix:null,property:null,results:J,security:null,unselectable:null},space:"html",transform:Mp}),a9=Zr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ct,accentHeight:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:Le,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zr,g2:zr,glyphName:zr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:Ct,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:J,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Le,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ct,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ct,rev:Ct,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ct,requiredFeatures:Ct,requiredFonts:Ct,requiredFormats:Ct,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:Ct,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ct,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ct,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Dp}),Rp=Zr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Lp=Zr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Mp}),Pp=Zr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),s9={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},o9=/[A-Z]/g,Mh=/-[a-z]/g,u9=/^data[-\w.:]+$/i;function Bs(e,t){const n=Xi(t);let r=t,i=kt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&u9.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Mh,c9);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Mh.test(a)){let s=a.replace(o9,l9);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=s0}return new i(r,t)}function l9(e){return"-"+e.toLowerCase()}function c9(e){return e.charAt(1).toUpperCase()}const ca=Ip([_p,i9,Rp,Lp,Pp],"html"),Kn=Ip([_p,a9,Rp,Lp,Pp],"svg");function Rh(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function Op(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Lh=/[#.]/g;function h9(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){Lh.lastIndex=i;const o=Lh.exec(n),u=n.slice(i,o?o.index:n.length);u&&(a?a==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:s=u,i+=u.length),o&&(a=o[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function Ph(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Fp(e){return e.join(" ").trim()}function Bp(e,t,n){const r=n?p9(n):void 0;function i(a,s,...o){let u;if(a==null){u={type:"root",children:[]};const l=s;o.unshift(l)}else{u=h9(a,t);const l=u.tagName.toLowerCase(),c=r?r.get(l):void 0;if(u.tagName=c||l,d9(s))o.unshift(s);else for(const[h,d]of Object.entries(s))f9(e,u.properties,h,d)}for(const l of o)qu(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function d9(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function f9(e,t,n,r){const i=Bs(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=Ph(r):i.commaSeparated?a=Rh(r):i.commaOrSpaceSeparated?a=Ph(Rh(r).join(" ")):a=Oh(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?m9(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(Oh(i,i.property,o));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function qu(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)qu(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?qu(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Oh(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Xi(n)===Xi(t)))return!0}return n}function m9(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function p9(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const g9=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],zp=Bp(ca,"div"),Hp=Bp(Kn,"g",g9),rn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function b9(e,t){return Up(e,{})||{type:"root",children:[]}}function Up(e,t){const n=y9(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function y9(e,t){switch(e.nodeType){case 1:return v9(e,t);case 3:return T9(e);case 8:return E9(e);case 9:return Fh(e,t);case 10:return x9();case 11:return Fh(e,t);default:return}}function Fh(e,t){return{type:"root",children:jp(e,t)}}function x9(){return{type:"doctype"}}function T9(e){return{type:"text",value:e.nodeValue||""}}function E9(e){return{type:"comment",value:e.nodeValue||""}}function v9(e,t){const n=e.namespaceURI,r=n===rn.svg?Hp:zp,i=n===rn.html?e.tagName.toLowerCase():e.tagName,a=n===rn.html&&i==="template"?e.content:e,s=e.getAttributeNames(),o={};let u=-1;for(;++u<s.length;)o[s[u]]=e.getAttribute(s[u])||"";return r(i,o,jp(a,t))}function jp(e,t){const n=e.childNodes,r=[];let i=-1;for(;++i<n.length;){const a=Up(n[i],t);a!==void 0&&r.push(a)}return r}new DOMParser;function A9(e,t){const n=k9(e);return b9(n)}function k9(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const Bh=(function(e,t,n){const r=ua(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]}),xr=(function(e){if(e==null)return C9;if(typeof e=="string")return S9(e);if(typeof e=="object")return w9(e);if(typeof e=="function")return o0(e);throw new Error("Expected function, string, or array as `test`")});function w9(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=xr(e[n]);return o0(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function S9(e){return o0(t);function t(n){return n.tagName===e}}function o0(e){return t;function t(n,r,i){return!!(N9(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function C9(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function N9(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const zh=/\n/g,Hh=/[\t ]+/g,$u=xr("br"),Uh=xr(O9),I9=xr("p"),jh=xr("tr"),_9=xr(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",P9,F9]),Vp=xr(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function D9(e,t){const n=t||{},r="children"in e?e.children:[],i=Vp(e),a=Yp(e,{whitespace:n.whitespace||"normal"}),s=[];(e.type==="text"||e.type==="comment")&&s.push(...$p(e,{breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<r.length;)s.push(...qp(r[o],e,{whitespace:a,breakBefore:o?void 0:i,breakAfter:o<r.length-1?$u(r[o+1]):i}));const u=[];let l;for(o=-1;++o<s.length;){const c=s[o];typeof c=="number"?l!==void 0&&c>l&&(l=c):c&&(l!==void 0&&l>-1&&u.push(`
|
|
11
|
+
`.repeat(l)||" "),l=-1,u.push(c))}return u.join("")}function qp(e,t,n){return e.type==="element"?M9(e,t,n):e.type==="text"?n.whitespace==="normal"?$p(e,n):R9(e):[]}function M9(e,t,n){const r=Yp(e,n),i=e.children||[];let a=-1,s=[];if(_9(e))return s;let o,u;for($u(e)||jh(e)&&Bh(t,e,jh)?u=`
|
|
12
|
+
`:I9(e)?(o=2,u=2):Vp(e)&&(o=1,u=1);++a<i.length;)s=s.concat(qp(i[a],e,{whitespace:r,breakBefore:a?void 0:o,breakAfter:a<i.length-1?$u(i[a+1]):u}));return Uh(e)&&Bh(t,e,Uh)&&s.push(" "),o&&s.unshift(o),u&&s.push(u),s}function $p(e,t){const n=String(e.value),r=[],i=[];let a=0;for(;a<=n.length;){zh.lastIndex=a;const u=zh.exec(n),l=u&&"index"in u?u.index:n.length;r.push(L9(n.slice(a,l).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?t.breakBefore:!0,l===n.length?t.breakAfter:!0)),a=l+1}let s=-1,o;for(;++s<r.length;)r[s].charCodeAt(r[s].length-1)===8203||s<r.length-1&&r[s+1].charCodeAt(0)===8203?(i.push(r[s]),o=void 0):r[s]?(typeof o=="number"&&i.push(o),i.push(r[s]),o=0):(s===0||s===r.length-1)&&i.push(0);return i}function R9(e){return[String(e.value)]}function L9(e,t,n){const r=[];let i=0,a;for(;i<e.length;){Hh.lastIndex=i;const s=Hh.exec(e);a=s?s.index:e.length,!i&&!a&&s&&!t&&r.push(""),i!==a&&r.push(e.slice(i,a)),i=s?a+s[0].length:a}return i!==a&&!n&&r.push(""),r.join(" ")}function Yp(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function P9(e){return!!(e.properties||{}).hidden}function O9(e){return e.tagName==="td"||e.tagName==="th"}function F9(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class At{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new At(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class It{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new It(n,At.range(this,t))}}class Z{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,i,a,s=n&&n.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var u=o.slice(i,a).replace(/[^]/g,"$&̲"),l;i>15?l="…"+o.slice(i-15,i):l=o.slice(0,i);var c;a+15<o.length?c=o.slice(a,a+15)+"…":c=o.slice(a),r+=l+u+c}var h=new Error(r);return h.name="ParseError",h.__proto__=Z.prototype,h.position=i,i!=null&&a!=null&&(h.length=a-i),h.rawMessage=t,h}}Z.prototype.__proto__=Error.prototype;var B9=function(t,n){return t===void 0?n:t},z9=/([A-Z])/g,H9=function(t){return t.replace(z9,"-$1").toLowerCase()},U9={"&":"&",">":">","<":"<",'"':""","'":"'"},j9=/[&><"']/g;function V9(e){return String(e).replace(j9,t=>U9[t])}var Gp=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},q9=function(t){var n=Gp(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},$9=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},Y9=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},Ne={deflt:B9,escape:V9,hyphenate:H9,getBaseElem:Gp,isCharacterBox:q9,protocolFromUrl:Y9},_i={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:e=>"#"+e},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:(e,t)=>(t.push(e),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:e=>Math.max(0,e),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:e=>Math.max(0,e),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:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function G9(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class u0{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 n in _i)if(_i.hasOwnProperty(n)){var r=_i[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:G9(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Z("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=Ne.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class Mn{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return tn[W9[this.id]]}sub(){return tn[X9[this.id]]}fracNum(){return tn[K9[this.id]]}fracDen(){return tn[Q9[this.id]]}cramp(){return tn[Z9[this.id]]}text(){return tn[J9[this.id]]}isTight(){return this.size>=2}}var l0=0,hs=1,Hr=2,vn=3,Ki=4,Bt=5,$r=6,gt=7,tn=[new Mn(l0,0,!1),new Mn(hs,0,!0),new Mn(Hr,1,!1),new Mn(vn,1,!0),new Mn(Ki,2,!1),new Mn(Bt,2,!0),new Mn($r,3,!1),new Mn(gt,3,!0)],W9=[Ki,Bt,Ki,Bt,$r,gt,$r,gt],X9=[Bt,Bt,Bt,Bt,gt,gt,gt,gt],K9=[Hr,vn,Ki,Bt,$r,gt,$r,gt],Q9=[vn,vn,Bt,Bt,gt,gt,gt,gt],Z9=[hs,hs,vn,vn,Bt,Bt,gt,gt],J9=[l0,hs,Hr,vn,Hr,vn,Hr,vn],me={DISPLAY:tn[l0],TEXT:tn[Hr],SCRIPT:tn[Ki],SCRIPTSCRIPT:tn[$r]},Yu=[{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 eE(e){for(var t=0;t<Yu.length;t++)for(var n=Yu[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var Ga=[];Yu.forEach(e=>e.blocks.forEach(t=>Ga.push(...t)));function Wp(e){for(var t=0;t<Ga.length;t+=2)if(e>=Ga[t]&&e<=Ga[t+1])return!0;return!1}var Nr=80,tE=function(t,n){return"M95,"+(622+t+n)+`
|
|
13
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
14
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
15
|
+
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
|
|
16
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
17
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
18
|
+
l`+t/2.075+" -"+t+`
|
|
19
|
+
c5.3,-9.3,12,-14,20,-14
|
|
20
|
+
H400000v`+(40+t)+`H845.2724
|
|
21
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
22
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
23
|
+
M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},nE=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
|
|
24
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
25
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
26
|
+
l`+t/2.084+" -"+t+`
|
|
27
|
+
c4.7,-7.3,11,-11,19,-11
|
|
28
|
+
H40000v`+(40+t)+`H1012.3
|
|
29
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
30
|
+
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
|
|
31
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
32
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
33
|
+
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},rE=function(t,n){return"M983 "+(10+t+n)+`
|
|
34
|
+
l`+t/3.13+" -"+t+`
|
|
35
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
36
|
+
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
|
|
37
|
+
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
|
|
38
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
39
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
40
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
41
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
42
|
+
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},iE=function(t,n){return"M424,"+(2398+t+n)+`
|
|
43
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
44
|
+
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
|
|
45
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
46
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
47
|
+
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
48
|
+
v`+(40+t)+`H1014.6
|
|
49
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
50
|
+
c-2,6,-10,9,-24,9
|
|
51
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
|
|
52
|
+
h400000v`+(40+t)+"h-400000z"},aE=function(t,n){return"M473,"+(2713+t+n)+`
|
|
53
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
54
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
55
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
56
|
+
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
|
|
57
|
+
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
|
|
58
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
59
|
+
606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},sE=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},oE=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
|
|
60
|
+
H742v`+i+`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
|
|
61
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
62
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
63
|
+
219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},uE=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=tE(n,Nr);break;case"sqrtSize1":i=nE(n,Nr);break;case"sqrtSize2":i=rE(n,Nr);break;case"sqrtSize3":i=iE(n,Nr);break;case"sqrtSize4":i=aE(n,Nr);break;case"sqrtTall":i=oE(n,Nr,r)}return i},lE=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},Vh={doubleleftarrow:`M262 157
|
|
64
|
+
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
|
|
65
|
+
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
|
|
66
|
+
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
|
|
67
|
+
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
|
|
68
|
+
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
|
|
69
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
70
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
71
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
72
|
+
-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
|
|
73
|
+
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
|
|
74
|
+
-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
|
|
75
|
+
-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
|
|
76
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
77
|
+
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
|
|
78
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
79
|
+
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
|
|
80
|
+
-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
|
|
81
|
+
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
|
|
82
|
+
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
|
|
83
|
+
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
|
|
84
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
85
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
86
|
+
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
|
|
87
|
+
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
|
|
88
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
89
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
90
|
+
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
|
|
91
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
92
|
+
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
|
|
93
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
94
|
+
-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
|
|
95
|
+
-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
|
|
96
|
+
-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
|
|
97
|
+
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
|
|
98
|
+
-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
|
|
99
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
100
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
101
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
102
|
+
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
|
|
103
|
+
-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
|
|
104
|
+
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
|
|
105
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
106
|
+
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
|
|
107
|
+
-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
|
|
108
|
+
-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
|
|
109
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
110
|
+
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
111
|
+
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
112
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
113
|
+
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
|
|
114
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
115
|
+
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
116
|
+
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
|
|
117
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
118
|
+
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
|
|
119
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
120
|
+
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
|
|
121
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
122
|
+
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
|
|
123
|
+
-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
|
|
124
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
125
|
+
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
|
|
126
|
+
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
|
|
127
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
128
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
129
|
+
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
|
|
130
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
131
|
+
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
|
|
132
|
+
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
|
|
133
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
134
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
135
|
+
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
|
|
136
|
+
-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
|
|
137
|
+
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
|
|
138
|
+
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
|
|
139
|
+
-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
|
|
140
|
+
-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
|
|
141
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
142
|
+
-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
|
|
143
|
+
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
|
|
144
|
+
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
|
|
145
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
146
|
+
-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
|
|
147
|
+
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
|
|
148
|
+
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
|
|
149
|
+
-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
|
|
150
|
+
-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
|
|
151
|
+
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
|
|
152
|
+
-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
|
|
153
|
+
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
|
|
154
|
+
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
|
|
155
|
+
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
|
|
156
|
+
-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
|
|
157
|
+
-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
|
|
158
|
+
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
|
|
159
|
+
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
|
|
160
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
161
|
+
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
|
|
162
|
+
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
|
|
163
|
+
-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
|
|
164
|
+
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
|
|
165
|
+
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
|
|
166
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
167
|
+
-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
|
|
168
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
169
|
+
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
|
|
170
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
171
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
172
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
173
|
+
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
|
|
174
|
+
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
|
|
175
|
+
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
|
|
176
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
177
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
178
|
+
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
|
|
179
|
+
-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
|
|
180
|
+
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
|
|
181
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
182
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
183
|
+
-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
|
|
184
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
185
|
+
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
|
|
186
|
+
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
|
|
187
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
188
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
189
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
190
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
191
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
192
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
193
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
194
|
+
-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
|
|
195
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
196
|
+
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
|
|
197
|
+
-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
|
|
198
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
199
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
200
|
+
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
|
|
201
|
+
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
|
|
202
|
+
-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
|
|
203
|
+
-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
|
|
204
|
+
-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,
|
|
205
|
+
-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,
|
|
206
|
+
-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,
|
|
207
|
+
-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,
|
|
208
|
+
-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
|
|
209
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
210
|
+
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
|
|
211
|
+
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
|
|
212
|
+
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
|
|
213
|
+
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
|
|
214
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
215
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
216
|
+
-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
|
|
217
|
+
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
|
|
218
|
+
-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
|
|
219
|
+
-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
|
|
220
|
+
-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
|
|
221
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
222
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
223
|
+
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
|
|
224
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
225
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
226
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
227
|
+
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,
|
|
228
|
+
-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
|
|
229
|
+
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
|
|
230
|
+
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
|
|
231
|
+
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,
|
|
232
|
+
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,
|
|
233
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
234
|
+
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
|
|
235
|
+
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,
|
|
236
|
+
-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
|
|
237
|
+
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
|
|
238
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},cE=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84
|
|
239
|
+
H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
|
|
240
|
+
M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
|
|
241
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
242
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
|
|
243
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
244
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
|
|
245
|
+
M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
|
|
246
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
247
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
|
|
248
|
+
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
|
|
249
|
+
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
|
|
250
|
+
M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
|
|
251
|
+
M347 1759 V0 h-84 V1759 v`+n+" 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
|
|
252
|
+
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,
|
|
253
|
+
-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
254
|
+
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
|
|
255
|
+
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,
|
|
256
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
257
|
+
l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
258
|
+
-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,
|
|
259
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
260
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
|
|
261
|
+
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
|
|
262
|
+
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
|
|
263
|
+
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
|
|
264
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
265
|
+
l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
266
|
+
-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 ha{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(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){var t=n=>n.toText();return this.children.map(t).join("")}}var an={"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]}},ka={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]},qh={Å:"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 Xp(e,t){an[e]=t}function c0(e,t,n){if(!an[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=an[t][r];if(!i&&e[0]in qh&&(r=qh[e[0]].charCodeAt(0),i=an[t][r]),!i&&n==="text"&&Wp(r)&&(i=an[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Io={};function hE(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Io[t]){var n=Io[t]={cssEmPerMu:ka.quad[t]/18};for(var r in ka)ka.hasOwnProperty(r)&&(n[r]=ka[r][t])}return Io[t]}var dE=[[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]],$h=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Yh=function(t,n){return n.size<2?t:dE[t-1][n.size-1]};class yn{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||yn.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=$h[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={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 r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new yn(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Yh(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:$h[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Yh(yn.BASESIZE,t);return this.size===n&&this.textSize===yn.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}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!==yn.BASESIZE?["sizing","reset-size"+this.size,"size"+yn.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=hE(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}yn.BASESIZE=6;var Gu={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},fE={ex:!0,em:!0,mu:!0},Kp=function(t){return typeof t!="string"&&(t=t.unit),t in Gu||t in fE||t==="ex"},Ue=function(t,n){var r;if(t.unit in Gu)r=Gu[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new Z("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},te=function(t){return+t.toFixed(4)+"em"},$n=function(t){return t.filter(n=>n).join(" ")},Qp=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},Zp=function(t){var n=document.createElement(t);n.className=$n(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a<this.children.length;a++)n.appendChild(this.children[a].toNode());return n},mE=/[\s"'>/=\x00-\x1f]/,Jp=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+Ne.escape($n(this.classes))+'"');var r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Ne.hyphenate(i)+":"+this.style[i]+";");r&&(n+=' style="'+Ne.escape(r)+'"');for(var a in this.attributes)if(this.attributes.hasOwnProperty(a)){if(mE.test(a))throw new Z("Invalid attribute name '"+a+"'");n+=" "+a+'="'+Ne.escape(this.attributes[a])+'"'}n+=">";for(var s=0;s<this.children.length;s++)n+=this.children[s].toMarkup();return n+="</"+t+">",n};class da{constructor(t,n,r,i){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,Qp.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return Zp.call(this,"span")}toMarkup(){return Jp.call(this,"span")}}class h0{constructor(t,n,r,i){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,Qp.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return Zp.call(this,"a")}toMarkup(){return Jp.call(this,"a")}}class pE{constructor(t,n,r){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=n,this.src=t,this.classes=["mord"],this.style=r}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 n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t='<img src="'+Ne.escape(this.src)+'"'+(' alt="'+Ne.escape(this.alt)+'"'),n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=Ne.hyphenate(r)+":"+this.style[r]+";");return n&&(t+=' style="'+Ne.escape(n)+'"'),t+="'/>",t}}var gE={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Ht{constructor(t,n,r,i,a,s,o,u){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=n||0,this.depth=r||0,this.italic=i||0,this.skew=a||0,this.width=s||0,this.classes=o||[],this.style=u||{},this.maxFontSize=0;var l=eE(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=gE[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=te(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=$n(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=Ne.escape($n(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Ne.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+Ne.escape(r)+'"');var a=Ne.escape(this.text);return t?(n+=">",n+=a,n+="</span>",n):a}}class wn{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)n.appendChild(this.children[i].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+Ne.escape(this.attributes[n])+'"');t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class Yn{constructor(t,n){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",Vh[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+Ne.escape(this.alternate)+'"/>':'<path d="'+Ne.escape(Vh[this.pathName])+'"/>'}}class Wu{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+Ne.escape(this.attributes[n])+'"');return t+="/>",t}}function Gh(e){if(e instanceof Ht)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function bE(e){if(e instanceof da)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var yE={bin:1,close:1,inner:1,open:1,punct:1,rel:1},xE={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Pe={math:{},text:{}};function p(e,t,n,r,i,a){Pe[e][i]={font:t,group:n,replace:r},a&&r&&(Pe[e][r]=Pe[e][i])}var g="math",W="text",x="main",I="ams",ze="accent-token",se="bin",xt="close",Jr="inner",fe="mathord",Qe="op-token",Mt="open",zs="punct",M="rel",In="spacing",F="textord";p(g,x,M,"≡","\\equiv",!0);p(g,x,M,"≺","\\prec",!0);p(g,x,M,"≻","\\succ",!0);p(g,x,M,"∼","\\sim",!0);p(g,x,M,"⊥","\\perp");p(g,x,M,"⪯","\\preceq",!0);p(g,x,M,"⪰","\\succeq",!0);p(g,x,M,"≃","\\simeq",!0);p(g,x,M,"∣","\\mid",!0);p(g,x,M,"≪","\\ll",!0);p(g,x,M,"≫","\\gg",!0);p(g,x,M,"≍","\\asymp",!0);p(g,x,M,"∥","\\parallel");p(g,x,M,"⋈","\\bowtie",!0);p(g,x,M,"⌣","\\smile",!0);p(g,x,M,"⊑","\\sqsubseteq",!0);p(g,x,M,"⊒","\\sqsupseteq",!0);p(g,x,M,"≐","\\doteq",!0);p(g,x,M,"⌢","\\frown",!0);p(g,x,M,"∋","\\ni",!0);p(g,x,M,"∝","\\propto",!0);p(g,x,M,"⊢","\\vdash",!0);p(g,x,M,"⊣","\\dashv",!0);p(g,x,M,"∋","\\owns");p(g,x,zs,".","\\ldotp");p(g,x,zs,"⋅","\\cdotp");p(g,x,F,"#","\\#");p(W,x,F,"#","\\#");p(g,x,F,"&","\\&");p(W,x,F,"&","\\&");p(g,x,F,"ℵ","\\aleph",!0);p(g,x,F,"∀","\\forall",!0);p(g,x,F,"ℏ","\\hbar",!0);p(g,x,F,"∃","\\exists",!0);p(g,x,F,"∇","\\nabla",!0);p(g,x,F,"♭","\\flat",!0);p(g,x,F,"ℓ","\\ell",!0);p(g,x,F,"♮","\\natural",!0);p(g,x,F,"♣","\\clubsuit",!0);p(g,x,F,"℘","\\wp",!0);p(g,x,F,"♯","\\sharp",!0);p(g,x,F,"♢","\\diamondsuit",!0);p(g,x,F,"ℜ","\\Re",!0);p(g,x,F,"♡","\\heartsuit",!0);p(g,x,F,"ℑ","\\Im",!0);p(g,x,F,"♠","\\spadesuit",!0);p(g,x,F,"§","\\S",!0);p(W,x,F,"§","\\S");p(g,x,F,"¶","\\P",!0);p(W,x,F,"¶","\\P");p(g,x,F,"†","\\dag");p(W,x,F,"†","\\dag");p(W,x,F,"†","\\textdagger");p(g,x,F,"‡","\\ddag");p(W,x,F,"‡","\\ddag");p(W,x,F,"‡","\\textdaggerdbl");p(g,x,xt,"⎱","\\rmoustache",!0);p(g,x,Mt,"⎰","\\lmoustache",!0);p(g,x,xt,"⟯","\\rgroup",!0);p(g,x,Mt,"⟮","\\lgroup",!0);p(g,x,se,"∓","\\mp",!0);p(g,x,se,"⊖","\\ominus",!0);p(g,x,se,"⊎","\\uplus",!0);p(g,x,se,"⊓","\\sqcap",!0);p(g,x,se,"∗","\\ast");p(g,x,se,"⊔","\\sqcup",!0);p(g,x,se,"◯","\\bigcirc",!0);p(g,x,se,"∙","\\bullet",!0);p(g,x,se,"‡","\\ddagger");p(g,x,se,"≀","\\wr",!0);p(g,x,se,"⨿","\\amalg");p(g,x,se,"&","\\And");p(g,x,M,"⟵","\\longleftarrow",!0);p(g,x,M,"⇐","\\Leftarrow",!0);p(g,x,M,"⟸","\\Longleftarrow",!0);p(g,x,M,"⟶","\\longrightarrow",!0);p(g,x,M,"⇒","\\Rightarrow",!0);p(g,x,M,"⟹","\\Longrightarrow",!0);p(g,x,M,"↔","\\leftrightarrow",!0);p(g,x,M,"⟷","\\longleftrightarrow",!0);p(g,x,M,"⇔","\\Leftrightarrow",!0);p(g,x,M,"⟺","\\Longleftrightarrow",!0);p(g,x,M,"↦","\\mapsto",!0);p(g,x,M,"⟼","\\longmapsto",!0);p(g,x,M,"↗","\\nearrow",!0);p(g,x,M,"↩","\\hookleftarrow",!0);p(g,x,M,"↪","\\hookrightarrow",!0);p(g,x,M,"↘","\\searrow",!0);p(g,x,M,"↼","\\leftharpoonup",!0);p(g,x,M,"⇀","\\rightharpoonup",!0);p(g,x,M,"↙","\\swarrow",!0);p(g,x,M,"↽","\\leftharpoondown",!0);p(g,x,M,"⇁","\\rightharpoondown",!0);p(g,x,M,"↖","\\nwarrow",!0);p(g,x,M,"⇌","\\rightleftharpoons",!0);p(g,I,M,"≮","\\nless",!0);p(g,I,M,"","\\@nleqslant");p(g,I,M,"","\\@nleqq");p(g,I,M,"⪇","\\lneq",!0);p(g,I,M,"≨","\\lneqq",!0);p(g,I,M,"","\\@lvertneqq");p(g,I,M,"⋦","\\lnsim",!0);p(g,I,M,"⪉","\\lnapprox",!0);p(g,I,M,"⊀","\\nprec",!0);p(g,I,M,"⋠","\\npreceq",!0);p(g,I,M,"⋨","\\precnsim",!0);p(g,I,M,"⪹","\\precnapprox",!0);p(g,I,M,"≁","\\nsim",!0);p(g,I,M,"","\\@nshortmid");p(g,I,M,"∤","\\nmid",!0);p(g,I,M,"⊬","\\nvdash",!0);p(g,I,M,"⊭","\\nvDash",!0);p(g,I,M,"⋪","\\ntriangleleft");p(g,I,M,"⋬","\\ntrianglelefteq",!0);p(g,I,M,"⊊","\\subsetneq",!0);p(g,I,M,"","\\@varsubsetneq");p(g,I,M,"⫋","\\subsetneqq",!0);p(g,I,M,"","\\@varsubsetneqq");p(g,I,M,"≯","\\ngtr",!0);p(g,I,M,"","\\@ngeqslant");p(g,I,M,"","\\@ngeqq");p(g,I,M,"⪈","\\gneq",!0);p(g,I,M,"≩","\\gneqq",!0);p(g,I,M,"","\\@gvertneqq");p(g,I,M,"⋧","\\gnsim",!0);p(g,I,M,"⪊","\\gnapprox",!0);p(g,I,M,"⊁","\\nsucc",!0);p(g,I,M,"⋡","\\nsucceq",!0);p(g,I,M,"⋩","\\succnsim",!0);p(g,I,M,"⪺","\\succnapprox",!0);p(g,I,M,"≆","\\ncong",!0);p(g,I,M,"","\\@nshortparallel");p(g,I,M,"∦","\\nparallel",!0);p(g,I,M,"⊯","\\nVDash",!0);p(g,I,M,"⋫","\\ntriangleright");p(g,I,M,"⋭","\\ntrianglerighteq",!0);p(g,I,M,"","\\@nsupseteqq");p(g,I,M,"⊋","\\supsetneq",!0);p(g,I,M,"","\\@varsupsetneq");p(g,I,M,"⫌","\\supsetneqq",!0);p(g,I,M,"","\\@varsupsetneqq");p(g,I,M,"⊮","\\nVdash",!0);p(g,I,M,"⪵","\\precneqq",!0);p(g,I,M,"⪶","\\succneqq",!0);p(g,I,M,"","\\@nsubseteqq");p(g,I,se,"⊴","\\unlhd");p(g,I,se,"⊵","\\unrhd");p(g,I,M,"↚","\\nleftarrow",!0);p(g,I,M,"↛","\\nrightarrow",!0);p(g,I,M,"⇍","\\nLeftarrow",!0);p(g,I,M,"⇏","\\nRightarrow",!0);p(g,I,M,"↮","\\nleftrightarrow",!0);p(g,I,M,"⇎","\\nLeftrightarrow",!0);p(g,I,M,"△","\\vartriangle");p(g,I,F,"ℏ","\\hslash");p(g,I,F,"▽","\\triangledown");p(g,I,F,"◊","\\lozenge");p(g,I,F,"Ⓢ","\\circledS");p(g,I,F,"®","\\circledR");p(W,I,F,"®","\\circledR");p(g,I,F,"∡","\\measuredangle",!0);p(g,I,F,"∄","\\nexists");p(g,I,F,"℧","\\mho");p(g,I,F,"Ⅎ","\\Finv",!0);p(g,I,F,"⅁","\\Game",!0);p(g,I,F,"‵","\\backprime");p(g,I,F,"▲","\\blacktriangle");p(g,I,F,"▼","\\blacktriangledown");p(g,I,F,"■","\\blacksquare");p(g,I,F,"⧫","\\blacklozenge");p(g,I,F,"★","\\bigstar");p(g,I,F,"∢","\\sphericalangle",!0);p(g,I,F,"∁","\\complement",!0);p(g,I,F,"ð","\\eth",!0);p(W,x,F,"ð","ð");p(g,I,F,"╱","\\diagup");p(g,I,F,"╲","\\diagdown");p(g,I,F,"□","\\square");p(g,I,F,"□","\\Box");p(g,I,F,"◊","\\Diamond");p(g,I,F,"¥","\\yen",!0);p(W,I,F,"¥","\\yen",!0);p(g,I,F,"✓","\\checkmark",!0);p(W,I,F,"✓","\\checkmark");p(g,I,F,"ℶ","\\beth",!0);p(g,I,F,"ℸ","\\daleth",!0);p(g,I,F,"ℷ","\\gimel",!0);p(g,I,F,"ϝ","\\digamma",!0);p(g,I,F,"ϰ","\\varkappa");p(g,I,Mt,"┌","\\@ulcorner",!0);p(g,I,xt,"┐","\\@urcorner",!0);p(g,I,Mt,"└","\\@llcorner",!0);p(g,I,xt,"┘","\\@lrcorner",!0);p(g,I,M,"≦","\\leqq",!0);p(g,I,M,"⩽","\\leqslant",!0);p(g,I,M,"⪕","\\eqslantless",!0);p(g,I,M,"≲","\\lesssim",!0);p(g,I,M,"⪅","\\lessapprox",!0);p(g,I,M,"≊","\\approxeq",!0);p(g,I,se,"⋖","\\lessdot");p(g,I,M,"⋘","\\lll",!0);p(g,I,M,"≶","\\lessgtr",!0);p(g,I,M,"⋚","\\lesseqgtr",!0);p(g,I,M,"⪋","\\lesseqqgtr",!0);p(g,I,M,"≑","\\doteqdot");p(g,I,M,"≓","\\risingdotseq",!0);p(g,I,M,"≒","\\fallingdotseq",!0);p(g,I,M,"∽","\\backsim",!0);p(g,I,M,"⋍","\\backsimeq",!0);p(g,I,M,"⫅","\\subseteqq",!0);p(g,I,M,"⋐","\\Subset",!0);p(g,I,M,"⊏","\\sqsubset",!0);p(g,I,M,"≼","\\preccurlyeq",!0);p(g,I,M,"⋞","\\curlyeqprec",!0);p(g,I,M,"≾","\\precsim",!0);p(g,I,M,"⪷","\\precapprox",!0);p(g,I,M,"⊲","\\vartriangleleft");p(g,I,M,"⊴","\\trianglelefteq");p(g,I,M,"⊨","\\vDash",!0);p(g,I,M,"⊪","\\Vvdash",!0);p(g,I,M,"⌣","\\smallsmile");p(g,I,M,"⌢","\\smallfrown");p(g,I,M,"≏","\\bumpeq",!0);p(g,I,M,"≎","\\Bumpeq",!0);p(g,I,M,"≧","\\geqq",!0);p(g,I,M,"⩾","\\geqslant",!0);p(g,I,M,"⪖","\\eqslantgtr",!0);p(g,I,M,"≳","\\gtrsim",!0);p(g,I,M,"⪆","\\gtrapprox",!0);p(g,I,se,"⋗","\\gtrdot");p(g,I,M,"⋙","\\ggg",!0);p(g,I,M,"≷","\\gtrless",!0);p(g,I,M,"⋛","\\gtreqless",!0);p(g,I,M,"⪌","\\gtreqqless",!0);p(g,I,M,"≖","\\eqcirc",!0);p(g,I,M,"≗","\\circeq",!0);p(g,I,M,"≜","\\triangleq",!0);p(g,I,M,"∼","\\thicksim");p(g,I,M,"≈","\\thickapprox");p(g,I,M,"⫆","\\supseteqq",!0);p(g,I,M,"⋑","\\Supset",!0);p(g,I,M,"⊐","\\sqsupset",!0);p(g,I,M,"≽","\\succcurlyeq",!0);p(g,I,M,"⋟","\\curlyeqsucc",!0);p(g,I,M,"≿","\\succsim",!0);p(g,I,M,"⪸","\\succapprox",!0);p(g,I,M,"⊳","\\vartriangleright");p(g,I,M,"⊵","\\trianglerighteq");p(g,I,M,"⊩","\\Vdash",!0);p(g,I,M,"∣","\\shortmid");p(g,I,M,"∥","\\shortparallel");p(g,I,M,"≬","\\between",!0);p(g,I,M,"⋔","\\pitchfork",!0);p(g,I,M,"∝","\\varpropto");p(g,I,M,"◀","\\blacktriangleleft");p(g,I,M,"∴","\\therefore",!0);p(g,I,M,"∍","\\backepsilon");p(g,I,M,"▶","\\blacktriangleright");p(g,I,M,"∵","\\because",!0);p(g,I,M,"⋘","\\llless");p(g,I,M,"⋙","\\gggtr");p(g,I,se,"⊲","\\lhd");p(g,I,se,"⊳","\\rhd");p(g,I,M,"≂","\\eqsim",!0);p(g,x,M,"⋈","\\Join");p(g,I,M,"≑","\\Doteq",!0);p(g,I,se,"∔","\\dotplus",!0);p(g,I,se,"∖","\\smallsetminus");p(g,I,se,"⋒","\\Cap",!0);p(g,I,se,"⋓","\\Cup",!0);p(g,I,se,"⩞","\\doublebarwedge",!0);p(g,I,se,"⊟","\\boxminus",!0);p(g,I,se,"⊞","\\boxplus",!0);p(g,I,se,"⋇","\\divideontimes",!0);p(g,I,se,"⋉","\\ltimes",!0);p(g,I,se,"⋊","\\rtimes",!0);p(g,I,se,"⋋","\\leftthreetimes",!0);p(g,I,se,"⋌","\\rightthreetimes",!0);p(g,I,se,"⋏","\\curlywedge",!0);p(g,I,se,"⋎","\\curlyvee",!0);p(g,I,se,"⊝","\\circleddash",!0);p(g,I,se,"⊛","\\circledast",!0);p(g,I,se,"⋅","\\centerdot");p(g,I,se,"⊺","\\intercal",!0);p(g,I,se,"⋒","\\doublecap");p(g,I,se,"⋓","\\doublecup");p(g,I,se,"⊠","\\boxtimes",!0);p(g,I,M,"⇢","\\dashrightarrow",!0);p(g,I,M,"⇠","\\dashleftarrow",!0);p(g,I,M,"⇇","\\leftleftarrows",!0);p(g,I,M,"⇆","\\leftrightarrows",!0);p(g,I,M,"⇚","\\Lleftarrow",!0);p(g,I,M,"↞","\\twoheadleftarrow",!0);p(g,I,M,"↢","\\leftarrowtail",!0);p(g,I,M,"↫","\\looparrowleft",!0);p(g,I,M,"⇋","\\leftrightharpoons",!0);p(g,I,M,"↶","\\curvearrowleft",!0);p(g,I,M,"↺","\\circlearrowleft",!0);p(g,I,M,"↰","\\Lsh",!0);p(g,I,M,"⇈","\\upuparrows",!0);p(g,I,M,"↿","\\upharpoonleft",!0);p(g,I,M,"⇃","\\downharpoonleft",!0);p(g,x,M,"⊶","\\origof",!0);p(g,x,M,"⊷","\\imageof",!0);p(g,I,M,"⊸","\\multimap",!0);p(g,I,M,"↭","\\leftrightsquigarrow",!0);p(g,I,M,"⇉","\\rightrightarrows",!0);p(g,I,M,"⇄","\\rightleftarrows",!0);p(g,I,M,"↠","\\twoheadrightarrow",!0);p(g,I,M,"↣","\\rightarrowtail",!0);p(g,I,M,"↬","\\looparrowright",!0);p(g,I,M,"↷","\\curvearrowright",!0);p(g,I,M,"↻","\\circlearrowright",!0);p(g,I,M,"↱","\\Rsh",!0);p(g,I,M,"⇊","\\downdownarrows",!0);p(g,I,M,"↾","\\upharpoonright",!0);p(g,I,M,"⇂","\\downharpoonright",!0);p(g,I,M,"⇝","\\rightsquigarrow",!0);p(g,I,M,"⇝","\\leadsto");p(g,I,M,"⇛","\\Rrightarrow",!0);p(g,I,M,"↾","\\restriction");p(g,x,F,"‘","`");p(g,x,F,"$","\\$");p(W,x,F,"$","\\$");p(W,x,F,"$","\\textdollar");p(g,x,F,"%","\\%");p(W,x,F,"%","\\%");p(g,x,F,"_","\\_");p(W,x,F,"_","\\_");p(W,x,F,"_","\\textunderscore");p(g,x,F,"∠","\\angle",!0);p(g,x,F,"∞","\\infty",!0);p(g,x,F,"′","\\prime");p(g,x,F,"△","\\triangle");p(g,x,F,"Γ","\\Gamma",!0);p(g,x,F,"Δ","\\Delta",!0);p(g,x,F,"Θ","\\Theta",!0);p(g,x,F,"Λ","\\Lambda",!0);p(g,x,F,"Ξ","\\Xi",!0);p(g,x,F,"Π","\\Pi",!0);p(g,x,F,"Σ","\\Sigma",!0);p(g,x,F,"Υ","\\Upsilon",!0);p(g,x,F,"Φ","\\Phi",!0);p(g,x,F,"Ψ","\\Psi",!0);p(g,x,F,"Ω","\\Omega",!0);p(g,x,F,"A","Α");p(g,x,F,"B","Β");p(g,x,F,"E","Ε");p(g,x,F,"Z","Ζ");p(g,x,F,"H","Η");p(g,x,F,"I","Ι");p(g,x,F,"K","Κ");p(g,x,F,"M","Μ");p(g,x,F,"N","Ν");p(g,x,F,"O","Ο");p(g,x,F,"P","Ρ");p(g,x,F,"T","Τ");p(g,x,F,"X","Χ");p(g,x,F,"¬","\\neg",!0);p(g,x,F,"¬","\\lnot");p(g,x,F,"⊤","\\top");p(g,x,F,"⊥","\\bot");p(g,x,F,"∅","\\emptyset");p(g,I,F,"∅","\\varnothing");p(g,x,fe,"α","\\alpha",!0);p(g,x,fe,"β","\\beta",!0);p(g,x,fe,"γ","\\gamma",!0);p(g,x,fe,"δ","\\delta",!0);p(g,x,fe,"ϵ","\\epsilon",!0);p(g,x,fe,"ζ","\\zeta",!0);p(g,x,fe,"η","\\eta",!0);p(g,x,fe,"θ","\\theta",!0);p(g,x,fe,"ι","\\iota",!0);p(g,x,fe,"κ","\\kappa",!0);p(g,x,fe,"λ","\\lambda",!0);p(g,x,fe,"μ","\\mu",!0);p(g,x,fe,"ν","\\nu",!0);p(g,x,fe,"ξ","\\xi",!0);p(g,x,fe,"ο","\\omicron",!0);p(g,x,fe,"π","\\pi",!0);p(g,x,fe,"ρ","\\rho",!0);p(g,x,fe,"σ","\\sigma",!0);p(g,x,fe,"τ","\\tau",!0);p(g,x,fe,"υ","\\upsilon",!0);p(g,x,fe,"ϕ","\\phi",!0);p(g,x,fe,"χ","\\chi",!0);p(g,x,fe,"ψ","\\psi",!0);p(g,x,fe,"ω","\\omega",!0);p(g,x,fe,"ε","\\varepsilon",!0);p(g,x,fe,"ϑ","\\vartheta",!0);p(g,x,fe,"ϖ","\\varpi",!0);p(g,x,fe,"ϱ","\\varrho",!0);p(g,x,fe,"ς","\\varsigma",!0);p(g,x,fe,"φ","\\varphi",!0);p(g,x,se,"∗","*",!0);p(g,x,se,"+","+");p(g,x,se,"−","-",!0);p(g,x,se,"⋅","\\cdot",!0);p(g,x,se,"∘","\\circ",!0);p(g,x,se,"÷","\\div",!0);p(g,x,se,"±","\\pm",!0);p(g,x,se,"×","\\times",!0);p(g,x,se,"∩","\\cap",!0);p(g,x,se,"∪","\\cup",!0);p(g,x,se,"∖","\\setminus",!0);p(g,x,se,"∧","\\land");p(g,x,se,"∨","\\lor");p(g,x,se,"∧","\\wedge",!0);p(g,x,se,"∨","\\vee",!0);p(g,x,F,"√","\\surd");p(g,x,Mt,"⟨","\\langle",!0);p(g,x,Mt,"∣","\\lvert");p(g,x,Mt,"∥","\\lVert");p(g,x,xt,"?","?");p(g,x,xt,"!","!");p(g,x,xt,"⟩","\\rangle",!0);p(g,x,xt,"∣","\\rvert");p(g,x,xt,"∥","\\rVert");p(g,x,M,"=","=");p(g,x,M,":",":");p(g,x,M,"≈","\\approx",!0);p(g,x,M,"≅","\\cong",!0);p(g,x,M,"≥","\\ge");p(g,x,M,"≥","\\geq",!0);p(g,x,M,"←","\\gets");p(g,x,M,">","\\gt",!0);p(g,x,M,"∈","\\in",!0);p(g,x,M,"","\\@not");p(g,x,M,"⊂","\\subset",!0);p(g,x,M,"⊃","\\supset",!0);p(g,x,M,"⊆","\\subseteq",!0);p(g,x,M,"⊇","\\supseteq",!0);p(g,I,M,"⊈","\\nsubseteq",!0);p(g,I,M,"⊉","\\nsupseteq",!0);p(g,x,M,"⊨","\\models");p(g,x,M,"←","\\leftarrow",!0);p(g,x,M,"≤","\\le");p(g,x,M,"≤","\\leq",!0);p(g,x,M,"<","\\lt",!0);p(g,x,M,"→","\\rightarrow",!0);p(g,x,M,"→","\\to");p(g,I,M,"≱","\\ngeq",!0);p(g,I,M,"≰","\\nleq",!0);p(g,x,In," ","\\ ");p(g,x,In," ","\\space");p(g,x,In," ","\\nobreakspace");p(W,x,In," ","\\ ");p(W,x,In," "," ");p(W,x,In," ","\\space");p(W,x,In," ","\\nobreakspace");p(g,x,In,null,"\\nobreak");p(g,x,In,null,"\\allowbreak");p(g,x,zs,",",",");p(g,x,zs,";",";");p(g,I,se,"⊼","\\barwedge",!0);p(g,I,se,"⊻","\\veebar",!0);p(g,x,se,"⊙","\\odot",!0);p(g,x,se,"⊕","\\oplus",!0);p(g,x,se,"⊗","\\otimes",!0);p(g,x,F,"∂","\\partial",!0);p(g,x,se,"⊘","\\oslash",!0);p(g,I,se,"⊚","\\circledcirc",!0);p(g,I,se,"⊡","\\boxdot",!0);p(g,x,se,"△","\\bigtriangleup");p(g,x,se,"▽","\\bigtriangledown");p(g,x,se,"†","\\dagger");p(g,x,se,"⋄","\\diamond");p(g,x,se,"⋆","\\star");p(g,x,se,"◃","\\triangleleft");p(g,x,se,"▹","\\triangleright");p(g,x,Mt,"{","\\{");p(W,x,F,"{","\\{");p(W,x,F,"{","\\textbraceleft");p(g,x,xt,"}","\\}");p(W,x,F,"}","\\}");p(W,x,F,"}","\\textbraceright");p(g,x,Mt,"{","\\lbrace");p(g,x,xt,"}","\\rbrace");p(g,x,Mt,"[","\\lbrack",!0);p(W,x,F,"[","\\lbrack",!0);p(g,x,xt,"]","\\rbrack",!0);p(W,x,F,"]","\\rbrack",!0);p(g,x,Mt,"(","\\lparen",!0);p(g,x,xt,")","\\rparen",!0);p(W,x,F,"<","\\textless",!0);p(W,x,F,">","\\textgreater",!0);p(g,x,Mt,"⌊","\\lfloor",!0);p(g,x,xt,"⌋","\\rfloor",!0);p(g,x,Mt,"⌈","\\lceil",!0);p(g,x,xt,"⌉","\\rceil",!0);p(g,x,F,"\\","\\backslash");p(g,x,F,"∣","|");p(g,x,F,"∣","\\vert");p(W,x,F,"|","\\textbar",!0);p(g,x,F,"∥","\\|");p(g,x,F,"∥","\\Vert");p(W,x,F,"∥","\\textbardbl");p(W,x,F,"~","\\textasciitilde");p(W,x,F,"\\","\\textbackslash");p(W,x,F,"^","\\textasciicircum");p(g,x,M,"↑","\\uparrow",!0);p(g,x,M,"⇑","\\Uparrow",!0);p(g,x,M,"↓","\\downarrow",!0);p(g,x,M,"⇓","\\Downarrow",!0);p(g,x,M,"↕","\\updownarrow",!0);p(g,x,M,"⇕","\\Updownarrow",!0);p(g,x,Qe,"∐","\\coprod");p(g,x,Qe,"⋁","\\bigvee");p(g,x,Qe,"⋀","\\bigwedge");p(g,x,Qe,"⨄","\\biguplus");p(g,x,Qe,"⋂","\\bigcap");p(g,x,Qe,"⋃","\\bigcup");p(g,x,Qe,"∫","\\int");p(g,x,Qe,"∫","\\intop");p(g,x,Qe,"∬","\\iint");p(g,x,Qe,"∭","\\iiint");p(g,x,Qe,"∏","\\prod");p(g,x,Qe,"∑","\\sum");p(g,x,Qe,"⨂","\\bigotimes");p(g,x,Qe,"⨁","\\bigoplus");p(g,x,Qe,"⨀","\\bigodot");p(g,x,Qe,"∮","\\oint");p(g,x,Qe,"∯","\\oiint");p(g,x,Qe,"∰","\\oiiint");p(g,x,Qe,"⨆","\\bigsqcup");p(g,x,Qe,"∫","\\smallint");p(W,x,Jr,"…","\\textellipsis");p(g,x,Jr,"…","\\mathellipsis");p(W,x,Jr,"…","\\ldots",!0);p(g,x,Jr,"…","\\ldots",!0);p(g,x,Jr,"⋯","\\@cdots",!0);p(g,x,Jr,"⋱","\\ddots",!0);p(g,x,F,"⋮","\\varvdots");p(W,x,F,"⋮","\\varvdots");p(g,x,ze,"ˊ","\\acute");p(g,x,ze,"ˋ","\\grave");p(g,x,ze,"¨","\\ddot");p(g,x,ze,"~","\\tilde");p(g,x,ze,"ˉ","\\bar");p(g,x,ze,"˘","\\breve");p(g,x,ze,"ˇ","\\check");p(g,x,ze,"^","\\hat");p(g,x,ze,"⃗","\\vec");p(g,x,ze,"˙","\\dot");p(g,x,ze,"˚","\\mathring");p(g,x,fe,"","\\@imath");p(g,x,fe,"","\\@jmath");p(g,x,F,"ı","ı");p(g,x,F,"ȷ","ȷ");p(W,x,F,"ı","\\i",!0);p(W,x,F,"ȷ","\\j",!0);p(W,x,F,"ß","\\ss",!0);p(W,x,F,"æ","\\ae",!0);p(W,x,F,"œ","\\oe",!0);p(W,x,F,"ø","\\o",!0);p(W,x,F,"Æ","\\AE",!0);p(W,x,F,"Œ","\\OE",!0);p(W,x,F,"Ø","\\O",!0);p(W,x,ze,"ˊ","\\'");p(W,x,ze,"ˋ","\\`");p(W,x,ze,"ˆ","\\^");p(W,x,ze,"˜","\\~");p(W,x,ze,"ˉ","\\=");p(W,x,ze,"˘","\\u");p(W,x,ze,"˙","\\.");p(W,x,ze,"¸","\\c");p(W,x,ze,"˚","\\r");p(W,x,ze,"ˇ","\\v");p(W,x,ze,"¨",'\\"');p(W,x,ze,"˝","\\H");p(W,x,ze,"◯","\\textcircled");var e2={"--":!0,"---":!0,"``":!0,"''":!0};p(W,x,F,"–","--",!0);p(W,x,F,"–","\\textendash");p(W,x,F,"—","---",!0);p(W,x,F,"—","\\textemdash");p(W,x,F,"‘","`",!0);p(W,x,F,"‘","\\textquoteleft");p(W,x,F,"’","'",!0);p(W,x,F,"’","\\textquoteright");p(W,x,F,"“","``",!0);p(W,x,F,"“","\\textquotedblleft");p(W,x,F,"”","''",!0);p(W,x,F,"”","\\textquotedblright");p(g,x,F,"°","\\degree",!0);p(W,x,F,"°","\\degree");p(W,x,F,"°","\\textdegree",!0);p(g,x,F,"£","\\pounds");p(g,x,F,"£","\\mathsterling",!0);p(W,x,F,"£","\\pounds");p(W,x,F,"£","\\textsterling",!0);p(g,I,F,"✠","\\maltese");p(W,I,F,"✠","\\maltese");var Wh='0123456789/@."';for(var _o=0;_o<Wh.length;_o++){var Xh=Wh.charAt(_o);p(g,x,F,Xh,Xh)}var Kh='0123456789!@*()-=+";:?/.,';for(var Do=0;Do<Kh.length;Do++){var Qh=Kh.charAt(Do);p(W,x,F,Qh,Qh)}var ds="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Mo=0;Mo<ds.length;Mo++){var wa=ds.charAt(Mo);p(g,x,fe,wa,wa),p(W,x,F,wa,wa)}p(g,I,F,"C","ℂ");p(W,I,F,"C","ℂ");p(g,I,F,"H","ℍ");p(W,I,F,"H","ℍ");p(g,I,F,"N","ℕ");p(W,I,F,"N","ℕ");p(g,I,F,"P","ℙ");p(W,I,F,"P","ℙ");p(g,I,F,"Q","ℚ");p(W,I,F,"Q","ℚ");p(g,I,F,"R","ℝ");p(W,I,F,"R","ℝ");p(g,I,F,"Z","ℤ");p(W,I,F,"Z","ℤ");p(g,x,fe,"h","ℎ");p(W,x,fe,"h","ℎ");var pe="";for(var dt=0;dt<ds.length;dt++){var Ve=ds.charAt(dt);pe=String.fromCharCode(55349,56320+dt),p(g,x,fe,Ve,pe),p(W,x,F,Ve,pe),pe=String.fromCharCode(55349,56372+dt),p(g,x,fe,Ve,pe),p(W,x,F,Ve,pe),pe=String.fromCharCode(55349,56424+dt),p(g,x,fe,Ve,pe),p(W,x,F,Ve,pe),pe=String.fromCharCode(55349,56580+dt),p(g,x,fe,Ve,pe),p(W,x,F,Ve,pe),pe=String.fromCharCode(55349,56684+dt),p(g,x,fe,Ve,pe),p(W,x,F,Ve,pe),pe=String.fromCharCode(55349,56736+dt),p(g,x,fe,Ve,pe),p(W,x,F,Ve,pe),pe=String.fromCharCode(55349,56788+dt),p(g,x,fe,Ve,pe),p(W,x,F,Ve,pe),pe=String.fromCharCode(55349,56840+dt),p(g,x,fe,Ve,pe),p(W,x,F,Ve,pe),pe=String.fromCharCode(55349,56944+dt),p(g,x,fe,Ve,pe),p(W,x,F,Ve,pe),dt<26&&(pe=String.fromCharCode(55349,56632+dt),p(g,x,fe,Ve,pe),p(W,x,F,Ve,pe),pe=String.fromCharCode(55349,56476+dt),p(g,x,fe,Ve,pe),p(W,x,F,Ve,pe))}pe="𝕜";p(g,x,fe,"k",pe);p(W,x,F,"k",pe);for(var rr=0;rr<10;rr++){var Rn=rr.toString();pe=String.fromCharCode(55349,57294+rr),p(g,x,fe,Rn,pe),p(W,x,F,Rn,pe),pe=String.fromCharCode(55349,57314+rr),p(g,x,fe,Rn,pe),p(W,x,F,Rn,pe),pe=String.fromCharCode(55349,57324+rr),p(g,x,fe,Rn,pe),p(W,x,F,Rn,pe),pe=String.fromCharCode(55349,57334+rr),p(g,x,fe,Rn,pe),p(W,x,F,Rn,pe)}var Xu="ÐÞþ";for(var Ro=0;Ro<Xu.length;Ro++){var Sa=Xu.charAt(Ro);p(g,x,fe,Sa,Sa),p(W,x,F,Sa,Sa)}var Ca=[["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"]],Zh=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],TE=function(t,n){var r=t.charCodeAt(0),i=t.charCodeAt(1),a=(r-55296)*1024+(i-56320)+65536,s=n==="math"?0:1;if(119808<=a&&a<120484){var o=Math.floor((a-119808)/26);return[Ca[o][2],Ca[o][s]]}else if(120782<=a&&a<=120831){var u=Math.floor((a-120782)/10);return[Zh[u][2],Zh[u][s]]}else{if(a===120485||a===120486)return[Ca[0][2],Ca[0][s]];if(120486<a&&a<120782)return["",""];throw new Z("Unsupported character: "+t)}},Hs=function(t,n,r){return Pe[r][t]&&Pe[r][t].replace&&(t=Pe[r][t].replace),{value:t,metrics:c0(t,n,r)}},Gt=function(t,n,r,i,a){var s=Hs(t,n,r),o=s.metrics;t=s.value;var u;if(o){var l=o.italic;(r==="text"||i&&i.font==="mathit")&&(l=0),u=new Ht(t,o.height,o.depth,l,o.skew,o.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),u=new Ht(t,0,0,0,0,0,a);if(i){u.maxFontSize=i.sizeMultiplier,i.style.isTight()&&u.classes.push("mtight");var c=i.getColor();c&&(u.style.color=c)}return u},EE=function(t,n,r,i){return i===void 0&&(i=[]),r.font==="boldsymbol"&&Hs(t,"Main-Bold",n).metrics?Gt(t,"Main-Bold",n,r,i.concat(["mathbf"])):t==="\\"||Pe[n][t].font==="main"?Gt(t,"Main-Regular",n,r,i):Gt(t,"AMS-Regular",n,r,i.concat(["amsrm"]))},vE=function(t,n,r,i,a){return a!=="textord"&&Hs(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},AE=function(t,n,r){var i=t.mode,a=t.text,s=["mord"],o=i==="math"||i==="text"&&n.font,u=o?n.font:n.fontFamily,l="",c="";if(a.charCodeAt(0)===55349&&([l,c]=TE(a,i)),l.length>0)return Gt(a,l,i,n,s.concat(c));if(u){var h,d;if(u==="boldsymbol"){var m=vE(a,i,n,s,r);h=m.fontName,d=[m.fontClass]}else o?(h=r2[u].fontName,d=[u]):(h=Na(u,n.fontWeight,n.fontShape),d=[u,n.fontWeight,n.fontShape]);if(Hs(a,h,i).metrics)return Gt(a,h,i,n,s.concat(d));if(e2.hasOwnProperty(a)&&h.slice(0,10)==="Typewriter"){for(var y=[],T=0;T<a.length;T++)y.push(Gt(a[T],h,i,n,s.concat(d)));return n2(y)}}if(r==="mathord")return Gt(a,"Math-Italic",i,n,s.concat(["mathnormal"]));if(r==="textord"){var w=Pe[i][a]&&Pe[i][a].font;if(w==="ams"){var A=Na("amsrm",n.fontWeight,n.fontShape);return Gt(a,A,i,n,s.concat("amsrm",n.fontWeight,n.fontShape))}else if(w==="main"||!w){var E=Na("textrm",n.fontWeight,n.fontShape);return Gt(a,E,i,n,s.concat(n.fontWeight,n.fontShape))}else{var S=Na(w,n.fontWeight,n.fontShape);return Gt(a,S,i,n,s.concat(S,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+r+" in makeOrd")},kE=(e,t)=>{if($n(e.classes)!==$n(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},wE=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Ht&&r instanceof Ht&&kE(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},d0=function(t){for(var n=0,r=0,i=0,a=0;a<t.children.length;a++){var s=t.children[a];s.height>n&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},vt=function(t,n,r,i){var a=new da(t,n,r,i);return d0(a),a},t2=(e,t,n,r)=>new da(e,t,n,r),SE=function(t,n,r){var i=vt([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=te(i.height),i.maxFontSize=1,i},CE=function(t,n,r,i){var a=new h0(t,n,r,i);return d0(a),a},n2=function(t){var n=new ha(t);return d0(n),n},NE=function(t,n){return t instanceof ha?vt([],[t],n):t},IE=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s<n.length;s++){var o=-n[s].shift-a-n[s].elem.depth,u=o-(n[s-1].elem.height+n[s-1].elem.depth);a=a+o,r.push({type:"kern",size:u}),r.push(n[s])}return{children:r,depth:i}}var l;if(t.positionType==="top"){for(var c=t.positionData,h=0;h<t.children.length;h++){var d=t.children[h];c-=d.type==="kern"?d.size:d.elem.height+d.elem.depth}l=c}else if(t.positionType==="bottom")l=-t.positionData;else{var m=t.children[0];if(m.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")l=-m.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")l=-m.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:l}},_E=function(t,n){for(var{children:r,depth:i}=IE(t),a=0,s=0;s<r.length;s++){var o=r[s];if(o.type==="elem"){var u=o.elem;a=Math.max(a,u.maxFontSize,u.height)}}a+=2;var l=vt(["pstrut"],[]);l.style.height=te(a);for(var c=[],h=i,d=i,m=i,y=0;y<r.length;y++){var T=r[y];if(T.type==="kern")m+=T.size;else{var w=T.elem,A=T.wrapperClasses||[],E=T.wrapperStyle||{},S=vt(A,[l,w],void 0,E);S.style.top=te(-a-m-w.depth),T.marginLeft&&(S.style.marginLeft=T.marginLeft),T.marginRight&&(S.style.marginRight=T.marginRight),c.push(S),m+=w.height+w.depth}h=Math.min(h,m),d=Math.max(d,m)}var O=vt(["vlist"],c);O.style.height=te(d);var P;if(h<0){var D=vt([],[]),U=vt(["vlist"],[D]);U.style.height=te(-h);var q=vt(["vlist-s"],[new Ht("")]);P=[vt(["vlist-r"],[O,q]),vt(["vlist-r"],[U])]}else P=[vt(["vlist-r"],[O])];var Y=vt(["vlist-t"],P);return P.length===2&&Y.classes.push("vlist-t2"),Y.height=d,Y.depth=-h,Y},DE=(e,t)=>{var n=vt(["mspace"],[],t),r=Ue(e,t);return n.style.marginRight=te(r),n},Na=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},r2={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"}},i2={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ME=function(t,n){var[r,i,a]=i2[t],s=new Yn(r),o=new wn([s],{width:te(i),height:te(a),style:"width:"+te(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=t2(["overlay"],[o],n);return u.height=a,u.style.height=te(a),u.style.width=te(i),u},H={fontMap:r2,makeSymbol:Gt,mathsym:EE,makeSpan:vt,makeSvgSpan:t2,makeLineSpan:SE,makeAnchor:CE,makeFragment:n2,wrapFragment:NE,makeVList:_E,makeOrd:AE,makeGlue:DE,staticSvg:ME,svgData:i2,tryCombineChars:wE},He={number:3,unit:"mu"},ir={number:4,unit:"mu"},bn={number:5,unit:"mu"},RE={mord:{mop:He,mbin:ir,mrel:bn,minner:He},mop:{mord:He,mop:He,mrel:bn,minner:He},mbin:{mord:ir,mop:ir,mopen:ir,minner:ir},mrel:{mord:bn,mop:bn,mopen:bn,minner:bn},mopen:{},mclose:{mop:He,mbin:ir,mrel:bn,minner:He},mpunct:{mord:He,mop:He,mrel:bn,mopen:He,mclose:He,mpunct:He,minner:He},minner:{mord:He,mop:He,mbin:ir,mrel:bn,mopen:He,mpunct:He,minner:He}},LE={mord:{mop:He},mop:{mord:He,mop:He},mbin:{},mrel:{},mopen:{},mclose:{mop:He},mpunct:{},minner:{mop:He}},a2={},fs={},ms={};function ae(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},u=0;u<n.length;++u)a2[n[u]]=o;t&&(a&&(fs[t]=a),s&&(ms[t]=s))}function Tr(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;ae({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var ps=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},We=function(t){return t.type==="ordgroup"?t.body:[t]},Sn=H.makeSpan,PE=["leftmost","mbin","mopen","mrel","mop","mpunct"],OE=["rightmost","mrel","mclose","mpunct"],FE={display:me.DISPLAY,text:me.TEXT,script:me.SCRIPT,scriptscript:me.SCRIPTSCRIPT},BE={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Je=function(t,n,r,i){i===void 0&&(i=[null,null]);for(var a=[],s=0;s<t.length;s++){var o=Ce(t[s],n);if(o instanceof ha){var u=o.children;a.push(...u)}else a.push(o)}if(H.tryCombineChars(a),!r)return a;var l=n;if(t.length===1){var c=t[0];c.type==="sizing"?l=n.havingSize(c.size):c.type==="styling"&&(l=n.havingStyle(FE[c.style]))}var h=Sn([i[0]||"leftmost"],[],n),d=Sn([i[1]||"rightmost"],[],n),m=r==="root";return Jh(a,(y,T)=>{var w=T.classes[0],A=y.classes[0];w==="mbin"&&OE.includes(A)?T.classes[0]="mord":A==="mbin"&&PE.includes(w)&&(y.classes[0]="mord")},{node:h},d,m),Jh(a,(y,T)=>{var w=Ku(T),A=Ku(y),E=w&&A?y.hasClass("mtight")?LE[w][A]:RE[w][A]:null;if(E)return H.makeGlue(E,l)},{node:h},d,m),a},Jh=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;s<t.length;s++){var o=t[s],u=s2(o);if(u){e(u.children,n,r,null,a);continue}var l=!o.hasClass("mspace");if(l){var c=n(o,r.node);c&&(r.insertAfter?r.insertAfter(c):(t.unshift(c),s++))}l?r.node=o:a&&o.hasClass("newline")&&(r.node=Sn(["leftmost"])),r.insertAfter=(h=>d=>{t.splice(h+1,0,d),s++})(s)}i&&t.pop()},s2=function(t){return t instanceof ha||t instanceof h0||t instanceof da&&t.hasClass("enclosing")?t:null},zE=function e(t,n){var r=s2(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},Ku=function(t,n){return t?(n&&(t=zE(t,n)),BE[t.classes[0]]||null):null},Qi=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return Sn(n.concat(r))},Ce=function(t,n,r){if(!t)return Sn();if(fs[t.type]){var i=fs[t.type](t,n);if(r&&n.size!==r.size){i=Sn(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Z("Got group of unknown type: '"+t.type+"'")};function Ia(e,t){var n=Sn(["base"],e,t),r=Sn(["strut"]);return r.style.height=te(n.height+n.depth),n.depth&&(r.style.verticalAlign=te(-n.depth)),n.children.unshift(r),n}function Qu(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=Je(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o<r.length;o++)if(s.push(r[o]),r[o].hasClass("mbin")||r[o].hasClass("mrel")||r[o].hasClass("allowbreak")){for(var u=!1;o<r.length-1&&r[o+1].hasClass("mspace")&&!r[o+1].hasClass("newline");)o++,s.push(r[o]),r[o].hasClass("nobreak")&&(u=!0);u||(a.push(Ia(s,t)),s=[])}else r[o].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(Ia(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(Ia(s,t));var l;n?(l=Ia(Je(n,t,!0)),l.classes=["tag"],a.push(l)):i&&a.push(i);var c=Sn(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),l){var h=l.children[0];h.style.height=te(c.height+c.depth),c.depth&&(h.style.verticalAlign=te(-c.depth))}return c}function o2(e){return new ha(e)}class Nt{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=$n(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof sn&&this.children[r+1]instanceof sn){for(var i=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof sn;)i+=this.children[++r].toText();t.appendChild(new sn(i).toNode())}else t.appendChild(this.children[r].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=Ne.escape(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+Ne.escape($n(this.classes))+'"'),t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class sn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ne.escape(this.toText())}toText(){return this.text}}class HE{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",te(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+te(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Q={MathNode:Nt,TextNode:sn,SpaceNode:HE,newDocumentFragment:o2},Ut=function(t,n,r){return Pe[n][t]&&Pe[n][t].replace&&t.charCodeAt(0)!==55349&&!(e2.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Pe[n][t].replace),new Q.TextNode(t)},f0=function(t){return t.length===1?t[0]:new Q.MathNode("mrow",t)},m0=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(["\\imath","\\jmath"].includes(a))return null;Pe[i][a]&&Pe[i][a].replace&&(a=Pe[i][a].replace);var s=H.fontMap[r].fontName;return c0(a,s,i)?H.fontMap[r].variant:null};function Lo(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof sn&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof sn&&n.text===","}else return!1}var wt=function(t,n,r){if(t.length===1){var i=Re(t[0],n);return r&&i instanceof Nt&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o<t.length;o++){var u=Re(t[o],n);if(u instanceof Nt&&s instanceof Nt){if(u.type==="mtext"&&s.type==="mtext"&&u.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...u.children);continue}else if(u.type==="mn"&&s.type==="mn"){s.children.push(...u.children);continue}else if(Lo(u)&&s.type==="mn"){s.children.push(...u.children);continue}else if(u.type==="mn"&&Lo(s))u.children=[...s.children,...u.children],a.pop();else if((u.type==="msup"||u.type==="msub")&&u.children.length>=1&&(s.type==="mn"||Lo(s))){var l=u.children[0];l instanceof Nt&&l.type==="mn"&&(l.children=[...s.children,...l.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var c=s.children[0];if(c instanceof sn&&c.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var h=u.children[0];h instanceof sn&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),a.pop())}}}a.push(u),s=u}return a},Gn=function(t,n,r){return f0(wt(t,n,r))},Re=function(t,n){if(!t)return new Q.MathNode("mrow");if(ms[t.type]){var r=ms[t.type](t,n);return r}else throw new Z("Got group of unknown type: '"+t.type+"'")};function ed(e,t,n,r,i){var a=wt(e,n),s;a.length===1&&a[0]instanceof Nt&&["mrow","mtable"].includes(a[0].type)?s=a[0]:s=new Q.MathNode("mrow",a);var o=new Q.MathNode("annotation",[new Q.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var u=new Q.MathNode("semantics",[s,o]),l=new Q.MathNode("math",[u]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&l.setAttribute("display","block");var c=i?"katex":"katex-mathml";return H.makeSpan([c],[l])}var u2=function(t){return new yn({style:t.displayMode?me.DISPLAY:me.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},l2=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=H.makeSpan(r,[t])}return t},UE=function(t,n,r){var i=u2(r),a;if(r.output==="mathml")return ed(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=Qu(t,i);a=H.makeSpan(["katex"],[s])}else{var o=ed(t,n,i,r.displayMode,!1),u=Qu(t,i);a=H.makeSpan(["katex"],[o,u])}return l2(a,r)},jE=function(t,n,r){var i=u2(r),a=Qu(t,i),s=H.makeSpan(["katex"],[a]);return l2(s,r)},VE={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":"="},qE=function(t){var n=new Q.MathNode("mo",[new Q.TextNode(VE[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},$E={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]},YE=function(t){return t.type==="ordgroup"?t.body.length:1},GE=function(t,n){function r(){var o=4e5,u=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(u)){var l=t,c=YE(l.base),h,d,m;if(c>5)u==="widehat"||u==="widecheck"?(h=420,o=2364,m=.42,d=u+"4"):(h=312,o=2340,m=.34,d="tilde4");else{var y=[1,1,2,2,3,3][c];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][y],h=[0,239,300,360,420][y],m=[0,.24,.3,.3,.36,.42][y],d=u+y):(o=[0,600,1033,2339,2340][y],h=[0,260,286,306,312][y],m=[0,.26,.286,.3,.306,.34][y],d="tilde"+y)}var T=new Yn(d),w=new wn([T],{width:"100%",height:te(m),viewBox:"0 0 "+o+" "+h,preserveAspectRatio:"none"});return{span:H.makeSvgSpan([],[w],n),minWidth:0,height:m}}else{var A=[],E=$E[u],[S,O,P]=E,D=P/1e3,U=S.length,q,Y;if(U===1){var B=E[3];q=["hide-tail"],Y=[B]}else if(U===2)q=["halfarrow-left","halfarrow-right"],Y=["xMinYMin","xMaxYMin"];else if(U===3)q=["brace-left","brace-center","brace-right"],Y=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
267
|
+
`+U+" children.");for(var G=0;G<U;G++){var V=new Yn(S[G]),ue=new wn([V],{width:"400em",height:te(D),viewBox:"0 0 "+o+" "+P,preserveAspectRatio:Y[G]+" slice"}),ie=H.makeSvgSpan([q[G]],[ue],n);if(U===1)return{span:ie,minWidth:O,height:D};ie.style.height=te(D),A.push(ie)}return{span:H.makeSpan(["stretchy"],A,n),minWidth:O,height:D}}}var{span:i,minWidth:a,height:s}=r();return i.height=s,i.style.height=te(s),a>0&&(i.style.minWidth=te(a)),i},WE=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=H.makeSpan(["stretchy",n],[],a),n==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var l=[];/^[bx]cancel$/.test(n)&&l.push(new Wu({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&l.push(new Wu({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new wn(l,{width:"100%",height:te(o)});s=H.makeSvgSpan([],[c],a)}return s.height=o,s.style.height=te(o),s},Cn={encloseSpan:WE,mathMLnode:qE,svgSpan:GE};function ve(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function p0(e){var t=Us(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Us(e){return e&&(e.type==="atom"||xE.hasOwnProperty(e.type))?e:null}var g0=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=ve(e.base,"accent"),n=r.base,e.base=n,i=bE(Ce(e,t)),e.base=r):(r=ve(e,"accent"),n=r.base);var a=Ce(n,t.havingCrampedStyle()),s=r.isShifty&&Ne.isCharacterBox(n),o=0;if(s){var u=Ne.getBaseElem(n),l=Ce(u,t.havingCrampedStyle());o=Gh(l).skew}var c=r.label==="\\c",h=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),d;if(r.isStretchy)d=Cn.svgSpan(r,t),d=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:d,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+te(2*o)+")",marginLeft:te(2*o)}:void 0}]},t);else{var m,y;r.label==="\\vec"?(m=H.staticSvg("vec",t),y=H.svgData.vec[1]):(m=H.makeOrd({mode:r.mode,text:r.label},t,"textord"),m=Gh(m),m.italic=0,y=m.width,c&&(h+=m.depth)),d=H.makeSpan(["accent-body"],[m]);var T=r.label==="\\textcircled";T&&(d.classes.push("accent-full"),h=a.height);var w=o;T||(w-=y/2),d.style.left=te(w),r.label==="\\textcircled"&&(d.style.top=".2em"),d=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:d}]},t)}var A=H.makeSpan(["mord","accent"],[d],t);return i?(i.children[0]=A,i.height=Math.max(A.height,i.height),i.classes[0]="mord",i):A},c2=(e,t)=>{var n=e.isStretchy?Cn.mathMLnode(e.label):new Q.MathNode("mo",[Ut(e.label,e.mode)]),r=new Q.MathNode("mover",[Re(e.base,t),n]);return r.setAttribute("accent","true"),r},XE=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ae({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:(e,t)=>{var n=ps(t[0]),r=!XE.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:g0,mathmlBuilder:c2});ae({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:g0,mathmlBuilder:c2});ae({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Ce(e.base,t),r=Cn.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=H.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return H.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=Cn.mathMLnode(e.label),r=new Q.MathNode("munder",[Re(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var _a=e=>{var t=new Q.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ae({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(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=H.wrapFragment(Ce(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=H.wrapFragment(Ce(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=Cn.svgSpan(e,t),u=-t.fontMetrics().axisHeight+.5*o.height,l=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(l-=i.depth);var c;if(s){var h=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;c=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:h}]},t)}else c=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),H.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var n=Cn.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=_a(Re(e.body,t));if(e.below){var a=_a(Re(e.below,t));r=new Q.MathNode("munderover",[n,a,i])}else r=new Q.MathNode("mover",[n,i])}else if(e.below){var s=_a(Re(e.below,t));r=new Q.MathNode("munder",[n,s])}else r=_a(),r=new Q.MathNode("mover",[n,r]);return r}});var KE=H.makeSpan;function h2(e,t){var n=Je(e.body,t,!0);return KE([e.mclass],n,t)}function d2(e,t){var n,r=wt(e.body,t);return e.mclass==="minner"?n=new Q.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new Q.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new Q.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ae({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:We(i),isCharacterBox:Ne.isCharacterBox(i)}},htmlBuilder:h2,mathmlBuilder:d2});var js=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ae({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:js(t[0]),body:We(t[1]),isCharacterBox:Ne.isCharacterBox(t[1])}}});ae({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=js(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:We(i)},u={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[u],isCharacterBox:Ne.isCharacterBox(u)}},htmlBuilder:h2,mathmlBuilder:d2});ae({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:js(t[0]),body:We(t[0])}},htmlBuilder(e,t){var n=Je(e.body,t,!0),r=H.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=wt(e.body,t),r=new Q.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var QE={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},td=()=>({type:"styling",body:[],mode:"math",style:"display"}),nd=e=>e.type==="textord"&&e.text==="@",ZE=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function JE(e,t,n){var r=QE[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var l={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[l],[])}default:return{type:"textord",text:" ",mode:"math"}}}function ev(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Z("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var s=t[a],o=td(),u=0;u<s.length;u++)if(!nd(s[u]))o.body.push(s[u]);else{r.push(o),u+=1;var l=p0(s[u]).text,c=new Array(2);if(c[0]={type:"ordgroup",mode:"math",body:[]},c[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(l)>-1))if("<>AV".indexOf(l)>-1)for(var h=0;h<2;h++){for(var d=!0,m=u+1;m<s.length;m++){if(ZE(s[m],l)){d=!1,u=m;break}if(nd(s[m]))throw new Z("Missing a "+l+" character to complete a CD arrow.",s[m]);c[h].body.push(s[m])}if(d)throw new Z("Missing a "+l+" character to complete a CD arrow.",s[u])}else throw new Z('Expected one of "<>AV=|." after @',s[u]);var y=JE(l,c,e),T={type:"styling",body:[y],mode:"math",style:"display"};r.push(T),o=td()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var w=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:w,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ae({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=H.wrapFragment(Ce(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=te(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Q.MathNode("mrow",[Re(e.label,t)]);return n=new Q.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Q.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ae({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=H.wrapFragment(Ce(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Q.MathNode("mrow",[Re(e.fragment,t)])}});ae({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=ve(t[0],"ordgroup"),i=r.body,a="",s=0;s<i.length;s++){var o=ve(i[s],"textord");a+=o.text}var u=parseInt(a),l;if(isNaN(u))throw new Z("\\@char has non-numeric argument "+a);if(u<0||u>=1114111)throw new Z("\\@char with invalid code point "+a);return u<=65535?l=String.fromCharCode(u):(u-=65536,l=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:n.mode,text:l}}});var f2=(e,t)=>{var n=Je(e.body,t.withColor(e.color),!1);return H.makeFragment(n)},m2=(e,t)=>{var n=wt(e.body,t.withColor(e.color)),r=new Q.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ae({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=ve(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:We(i)}},htmlBuilder:f2,mathmlBuilder:m2});ae({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=ve(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:f2,mathmlBuilder:m2});ae({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&ve(i,"size").value}},htmlBuilder(e,t){var n=H.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=te(Ue(e.size,t)))),n},mathmlBuilder(e,t){var n=new Q.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",te(Ue(e.size,t)))),n}});var Zu={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},p2=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Z("Expected a control sequence",e);return t},tv=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},g2=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};ae({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Zu[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=Zu[r.text]),ve(t.parseFunction(),"internal");throw new Z("Invalid token after macro prefix",r)}});ae({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Z("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Z('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new Z('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new Z("Expected a macro definition");o[a].push(r.text)}var{tokens:u}=t.gullet.consumeArg();return s&&u.unshift(s),(n==="\\edef"||n==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:o},n===Zu[n]),{type:"internal",mode:t.mode}}});ae({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=p2(t.gullet.popToken());t.gullet.consumeSpaces();var i=tv(t);return g2(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ae({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=p2(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return g2(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var Ai=function(t,n,r){var i=Pe.math[t]&&Pe.math[t].replace,a=c0(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},b0=function(t,n,r,i){var a=r.havingBaseStyle(n),s=H.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},b2=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=te(a),t.height-=a,t.depth+=a},nv=function(t,n,r,i,a,s){var o=H.makeSymbol(t,"Main-Regular",a,i),u=b0(o,n,i,s);return r&&b2(u,i,n),u},rv=function(t,n,r,i){return H.makeSymbol(t,"Size"+n+"-Regular",r,i)},y2=function(t,n,r,i,a,s){var o=rv(t,n,a,i),u=b0(H.makeSpan(["delimsizing","size"+n],[o],i),me.TEXT,i,s);return r&&b2(u,i,me.TEXT),u},Po=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=H.makeSpan(["delimsizinginner",i],[H.makeSpan([],[H.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},Oo=function(t,n,r){var i=an["Size4-Regular"][t.charCodeAt(0)]?an["Size4-Regular"][t.charCodeAt(0)][4]:an["Size1-Regular"][t.charCodeAt(0)][4],a=new Yn("inner",lE(t,Math.round(1e3*n))),s=new wn([a],{width:te(i),height:te(n),style:"width:"+te(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=H.makeSvgSpan([],[s],r);return o.height=n,o.style.height=te(n),o.style.width=te(i),{type:"elem",elem:o}},Ju=.008,Da={type:"kern",size:-1*Ju},iv=["|","\\lvert","\\rvert","\\vert"],av=["\\|","\\lVert","\\rVert","\\Vert"],x2=function(t,n,r,i,a,s){var o,u,l,c,h="",d=0;o=l=c=t,u=null;var m="Size1-Regular";t==="\\uparrow"?l=c="⏐":t==="\\Uparrow"?l=c="‖":t==="\\downarrow"?o=l="⏐":t==="\\Downarrow"?o=l="‖":t==="\\updownarrow"?(o="\\uparrow",l="⏐",c="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",l="‖",c="\\Downarrow"):iv.includes(t)?(l="∣",h="vert",d=333):av.includes(t)?(l="∥",h="doublevert",d=556):t==="["||t==="\\lbrack"?(o="⎡",l="⎢",c="⎣",m="Size4-Regular",h="lbrack",d=667):t==="]"||t==="\\rbrack"?(o="⎤",l="⎥",c="⎦",m="Size4-Regular",h="rbrack",d=667):t==="\\lfloor"||t==="⌊"?(l=o="⎢",c="⎣",m="Size4-Regular",h="lfloor",d=667):t==="\\lceil"||t==="⌈"?(o="⎡",l=c="⎢",m="Size4-Regular",h="lceil",d=667):t==="\\rfloor"||t==="⌋"?(l=o="⎥",c="⎦",m="Size4-Regular",h="rfloor",d=667):t==="\\rceil"||t==="⌉"?(o="⎤",l=c="⎥",m="Size4-Regular",h="rceil",d=667):t==="("||t==="\\lparen"?(o="⎛",l="⎜",c="⎝",m="Size4-Regular",h="lparen",d=875):t===")"||t==="\\rparen"?(o="⎞",l="⎟",c="⎠",m="Size4-Regular",h="rparen",d=875):t==="\\{"||t==="\\lbrace"?(o="⎧",u="⎨",c="⎩",l="⎪",m="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",u="⎬",c="⎭",l="⎪",m="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",c="⎩",l="⎪",m="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",c="⎭",l="⎪",m="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",c="⎭",l="⎪",m="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",c="⎩",l="⎪",m="Size4-Regular");var y=Ai(o,m,a),T=y.height+y.depth,w=Ai(l,m,a),A=w.height+w.depth,E=Ai(c,m,a),S=E.height+E.depth,O=0,P=1;if(u!==null){var D=Ai(u,m,a);O=D.height+D.depth,P=2}var U=T+S+O,q=Math.max(0,Math.ceil((n-U)/(P*A))),Y=U+q*P*A,B=i.fontMetrics().axisHeight;r&&(B*=i.sizeMultiplier);var G=Y/2-B,V=[];if(h.length>0){var ue=Y-T-S,ie=Math.round(Y*1e3),ee=cE(h,Math.round(ue*1e3)),ye=new Yn(h,ee),ne=(d/1e3).toFixed(3)+"em",he=(ie/1e3).toFixed(3)+"em",de=new wn([ye],{width:ne,height:he,viewBox:"0 0 "+d+" "+ie}),_=H.makeSvgSpan([],[de],i);_.height=ie/1e3,_.style.width=ne,_.style.height=he,V.push({type:"elem",elem:_})}else{if(V.push(Po(c,m,a)),V.push(Da),u===null){var be=Y-T-S+2*Ju;V.push(Oo(l,be,i))}else{var ce=(Y-T-S-O)/2+2*Ju;V.push(Oo(l,ce,i)),V.push(Da),V.push(Po(u,m,a)),V.push(Da),V.push(Oo(l,ce,i))}V.push(Da),V.push(Po(o,m,a))}var L=i.havingBaseStyle(me.TEXT),nt=H.makeVList({positionType:"bottom",positionData:G,children:V},L);return b0(H.makeSpan(["delimsizing","mult"],[nt],L),me.TEXT,i,s)},Fo=80,Bo=.08,zo=function(t,n,r,i,a){var s=uE(t,i,r),o=new Yn(t,s),u=new wn([o],{width:"400em",height:te(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return H.makeSvgSpan(["hide-tail"],[u],a)},sv=function(t,n){var r=n.havingBaseSizing(),i=A2("\\surd",t*r.sizeMultiplier,v2,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,u=0,l=0,c=0,h;return i.type==="small"?(c=1e3+1e3*s+Fo,t<1?a=1:t<1.4&&(a=.7),u=(1+s+Bo)/a,l=(1+s)/a,o=zo("sqrtMain",u,c,s,n),o.style.minWidth="0.853em",h=.833/a):i.type==="large"?(c=(1e3+Fo)*Di[i.size],l=(Di[i.size]+s)/a,u=(Di[i.size]+s+Bo)/a,o=zo("sqrtSize"+i.size,u,c,s,n),o.style.minWidth="1.02em",h=1/a):(u=t+s+Bo,l=t+s,c=Math.floor(1e3*t+s)+Fo,o=zo("sqrtTall",u,c,s,n),o.style.minWidth="0.742em",h=1.056),o.height=l,o.style.height=te(u),{span:o,advanceWidth:h,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},T2=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],ov=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],E2=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Di=[0,1.2,1.8,2.4,3],uv=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),T2.includes(t)||E2.includes(t))return y2(t,n,!1,r,i,a);if(ov.includes(t))return x2(t,Di[n],!1,r,i,a);throw new Z("Illegal delimiter: '"+t+"'")},lv=[{type:"small",style:me.SCRIPTSCRIPT},{type:"small",style:me.SCRIPT},{type:"small",style:me.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],cv=[{type:"small",style:me.SCRIPTSCRIPT},{type:"small",style:me.SCRIPT},{type:"small",style:me.TEXT},{type:"stack"}],v2=[{type:"small",style:me.SCRIPTSCRIPT},{type:"small",style:me.SCRIPT},{type:"small",style:me.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],hv=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.")},A2=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;s<r.length&&r[s].type!=="stack";s++){var o=Ai(t,hv(r[s]),"math"),u=o.height+o.depth;if(r[s].type==="small"){var l=i.havingBaseStyle(r[s].style);u*=l.sizeMultiplier}if(u>n)return r[s]}return r[r.length-1]},k2=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;E2.includes(t)?o=lv:T2.includes(t)?o=v2:o=cv;var u=A2(t,n,o,i);return u.type==="small"?nv(t,u.style,r,i,a,s):u.type==="large"?y2(t,u.size,r,i,a,s):x2(t,n,r,i,a,s)},dv=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,l=5/i.fontMetrics().ptPerEm,c=Math.max(n-o,r+o),h=Math.max(c/500*u,2*c-l);return k2(t,h,!0,i,a,s)},An={sqrtImage:sv,sizedDelim:uv,sizeToMaxHeight:Di,customSizedDelim:k2,leftRightDelim:dv},rd={"\\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}},fv=["(","\\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 Vs(e,t){var n=Us(e);if(n&&fv.includes(n.text))return n;throw n?new Z("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Z("Invalid delimiter type '"+e.type+"'",e)}ae({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:(e,t)=>{var n=Vs(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:rd[e.funcName].size,mclass:rd[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?H.makeSpan([e.mclass]):An.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Ut(e.delim,e.mode));var n=new Q.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=te(An.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function id(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ae({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Z("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Vs(t[0],e).text,color:n}}});ae({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Vs(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=ve(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{id(e);for(var n=Je(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s<n.length;s++)n[s].isMiddle?a=!0:(r=Math.max(n[s].height,r),i=Math.max(n[s].depth,i));r*=t.sizeMultiplier,i*=t.sizeMultiplier;var o;if(e.left==="."?o=Qi(t,["mopen"]):o=An.leftRightDelim(e.left,r,i,t,e.mode,["mopen"]),n.unshift(o),a)for(var u=1;u<n.length;u++){var l=n[u],c=l.isMiddle;c&&(n[u]=An.leftRightDelim(c.delim,r,i,c.options,e.mode,[]))}var h;if(e.right===".")h=Qi(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;h=An.leftRightDelim(e.right,r,i,d,e.mode,["mclose"])}return n.push(h),H.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{id(e);var n=wt(e.body,t);if(e.left!=="."){var r=new Q.MathNode("mo",[Ut(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new Q.MathNode("mo",[Ut(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return f0(n)}});ae({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Vs(t[0],e);if(!e.parser.leftrightDepth)throw new Z("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=Qi(t,[]);else{n=An.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?Ut("|","text"):Ut(e.delim,e.mode),r=new Q.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var y0=(e,t)=>{var n=H.wrapFragment(Ce(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=Ne.isCharacterBox(e.body);if(r==="sout")a=H.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var u=Ue({number:.6,unit:"pt"},t),l=Ue({number:.35,unit:"ex"},t),c=t.havingBaseSizing();i=i/c.sizeMultiplier;var h=n.height+n.depth+u+l;n.style.paddingLeft=te(h/2+u);var d=Math.floor(1e3*h*i),m=sE(d),y=new wn([new Yn("phase",m)],{width:"400em",height:te(d/1e3),viewBox:"0 0 400000 "+d,preserveAspectRatio:"xMinYMin slice"});a=H.makeSvgSpan(["hide-tail"],[y],t),a.style.height=te(h),s=n.depth+u+l}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var T=0,w=0,A=0;/box/.test(r)?(A=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),T=t.fontMetrics().fboxsep+(r==="colorbox"?0:A),w=T):r==="angl"?(A=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),T=4*A,w=Math.max(0,.25-n.depth)):(T=o?.2:0,w=T),a=Cn.encloseSpan(n,r,T,w,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=te(A)):r==="angl"&&A!==.049&&(a.style.borderTopWidth=te(A),a.style.borderRightWidth=te(A)),s=n.depth+w,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var E;if(e.backgroundColor)E=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var S=/cancel|phase/.test(r)?["svg-align"]:[];E=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:S}]},t)}return/cancel/.test(r)&&(E.height=n.height,E.depth=n.depth),/cancel/.test(r)&&!o?H.makeSpan(["mord","cancel-lap"],[E],t):H.makeSpan(["mord"],[E],t)},x0=(e,t)=>{var n=0,r=new Q.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Re(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ae({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=ve(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:y0,mathmlBuilder:x0});ae({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=ve(t[0],"color-token").color,s=ve(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:y0,mathmlBuilder:x0});ae({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ae({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:y0,mathmlBuilder:x0});ae({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var w2={};function cn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u<n.length;++u)w2[n[u]]=o;a&&(fs[t]=a),s&&(ms[t]=s)}var S2={};function v(e,t){S2[e]=t}function ad(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var qs=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Z("{"+e.envName+"} can be used only in display mode.")};function T0(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Qn(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:u,singleRow:l,emptySingleRow:c,maxNumCols:h,leqno:d}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var m=e.gullet.expandMacroAsText("\\arraystretch");if(m==null)s=1;else if(s=parseFloat(m),!s||s<0)throw new Z("Invalid \\arraystretch: "+m)}e.gullet.beginGroup();var y=[],T=[y],w=[],A=[],E=u!=null?[]:void 0;function S(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function O(){E&&(e.gullet.macros.get("\\df@tag")?(E.push(e.subparse([new It("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):E.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(S(),A.push(ad(e));;){var P=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),P={type:"ordgroup",mode:e.mode,body:P},n&&(P={type:"styling",mode:e.mode,style:n,body:[P]}),y.push(P);var D=e.fetch().text;if(D==="&"){if(h&&y.length===h){if(l||o)throw new Z("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(D==="\\end"){O(),y.length===1&&P.type==="styling"&&P.body[0].body.length===0&&(T.length>1||!c)&&T.pop(),A.length<T.length+1&&A.push([]);break}else if(D==="\\\\"){e.consume();var U=void 0;e.gullet.future().text!==" "&&(U=e.parseSizeGroup(!0)),w.push(U?U.value:null),O(),A.push(ad(e)),y=[],T.push(y),S()}else throw new Z("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:s,body:T,cols:a,rowGaps:w,hskipBeforeAndAfter:r,hLinesBeforeRow:A,colSeparationType:o,tags:E,leqno:d}}function E0(e){return e.slice(0,1)==="d"?"display":"text"}var hn=function(t,n){var r,i,a=t.body.length,s=t.hLinesBeforeRow,o=0,u=new Array(a),l=[],c=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),h=1/n.fontMetrics().ptPerEm,d=5*h;if(t.colSeparationType&&t.colSeparationType==="small"){var m=n.havingStyle(me.SCRIPT).sizeMultiplier;d=.2778*(m/n.sizeMultiplier)}var y=t.colSeparationType==="CD"?Ue({number:3,unit:"ex"},n):12*h,T=3*h,w=t.arraystretch*y,A=.7*w,E=.3*w,S=0;function O(Sr){for(var Jn=0;Jn<Sr.length;++Jn)Jn>0&&(S+=.25),l.push({pos:S,isDashed:Sr[Jn]})}for(O(s[0]),r=0;r<t.body.length;++r){var P=t.body[r],D=A,U=E;o<P.length&&(o=P.length);var q=new Array(P.length);for(i=0;i<P.length;++i){var Y=Ce(P[i],n);U<Y.depth&&(U=Y.depth),D<Y.height&&(D=Y.height),q[i]=Y}var B=t.rowGaps[r],G=0;B&&(G=Ue(B,n),G>0&&(G+=E,U<G&&(U=G),G=0)),t.addJot&&(U+=T),q.height=D,q.depth=U,S+=D,q.pos=S,S+=U+G,u[r]=q,O(s[r+1])}var V=S/2+n.fontMetrics().axisHeight,ue=t.cols||[],ie=[],ee,ye,ne=[];if(t.tags&&t.tags.some(Sr=>Sr))for(r=0;r<a;++r){var he=u[r],de=he.pos-V,_=t.tags[r],be=void 0;_===!0?be=H.makeSpan(["eqn-num"],[],n):_===!1?be=H.makeSpan([],[],n):be=H.makeSpan([],Je(_,n,!0),n),be.depth=he.depth,be.height=he.height,ne.push({type:"elem",elem:be,shift:de})}for(i=0,ye=0;i<o||ye<ue.length;++i,++ye){for(var ce=ue[ye]||{},L=!0;ce.type==="separator";){if(L||(ee=H.makeSpan(["arraycolsep"],[]),ee.style.width=te(n.fontMetrics().doubleRuleSep),ie.push(ee)),ce.separator==="|"||ce.separator===":"){var nt=ce.separator==="|"?"solid":"dashed",rt=H.makeSpan(["vertical-separator"],[],n);rt.style.height=te(S),rt.style.borderRightWidth=te(c),rt.style.borderRightStyle=nt,rt.style.margin="0 "+te(-c/2);var Fe=S-V;Fe&&(rt.style.verticalAlign=te(-Fe)),ie.push(rt)}else throw new Z("Invalid separator type: "+ce.separator);ye++,ce=ue[ye]||{},L=!1}if(!(i>=o)){var Rt=void 0;(i>0||t.hskipBeforeAndAfter)&&(Rt=Ne.deflt(ce.pregap,d),Rt!==0&&(ee=H.makeSpan(["arraycolsep"],[]),ee.style.width=te(Rt),ie.push(ee)));var ht=[];for(r=0;r<a;++r){var jt=u[r],Vt=jt[i];if(Vt){var kr=jt.pos-V;Vt.depth=jt.depth,Vt.height=jt.height,ht.push({type:"elem",elem:Vt,shift:kr})}}ht=H.makeVList({positionType:"individualShift",children:ht},n),ht=H.makeSpan(["col-align-"+(ce.align||"c")],[ht]),ie.push(ht),(i<o-1||t.hskipBeforeAndAfter)&&(Rt=Ne.deflt(ce.postgap,d),Rt!==0&&(ee=H.makeSpan(["arraycolsep"],[]),ee.style.width=te(Rt),ie.push(ee)))}}if(u=H.makeSpan(["mtable"],ie),l.length>0){for(var io=H.makeLineSpan("hline",n,c),ao=H.makeLineSpan("hdashline",n,c),si=[{type:"elem",elem:u,shift:0}];l.length>0;){var oi=l.pop(),ui=oi.pos-V;oi.isDashed?si.push({type:"elem",elem:ao,shift:ui}):si.push({type:"elem",elem:io,shift:ui})}u=H.makeVList({positionType:"individualShift",children:si},n)}if(ne.length===0)return H.makeSpan(["mord"],[u],n);var wr=H.makeVList({positionType:"individualShift",children:ne},n);return wr=H.makeSpan(["tag"],[wr],n),H.makeFragment([u,wr])},mv={c:"center ",l:"left ",r:"right "},dn=function(t,n){for(var r=[],i=new Q.MathNode("mtd",[],["mtr-glue"]),a=new Q.MathNode("mtd",[],["mml-eqn-num"]),s=0;s<t.body.length;s++){for(var o=t.body[s],u=[],l=0;l<o.length;l++)u.push(new Q.MathNode("mtd",[Re(o[l],n)]));t.tags&&t.tags[s]&&(u.unshift(i),u.push(i),t.leqno?u.unshift(a):u.push(a)),r.push(new Q.MathNode("mtr",u))}var c=new Q.MathNode("mtable",r),h=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);c.setAttribute("rowspacing",te(h));var d="",m="";if(t.cols&&t.cols.length>0){var y=t.cols,T="",w=!1,A=0,E=y.length;y[0].type==="separator"&&(d+="top ",A=1),y[y.length-1].type==="separator"&&(d+="bottom ",E-=1);for(var S=A;S<E;S++)y[S].type==="align"?(m+=mv[y[S].align],w&&(T+="none "),w=!0):y[S].type==="separator"&&w&&(T+=y[S].separator==="|"?"solid ":"dashed ",w=!1);c.setAttribute("columnalign",m.trim()),/[sd]/.test(T)&&c.setAttribute("columnlines",T.trim())}if(t.colSeparationType==="align"){for(var O=t.cols||[],P="",D=1;D<O.length;D++)P+=D%2?"0em ":"1em ";c.setAttribute("columnspacing",P.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?c.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?c.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var U="",q=t.hLinesBeforeRow;d+=q[0].length>0?"left ":"",d+=q[q.length-1].length>0?"right ":"";for(var Y=1;Y<q.length-1;Y++)U+=q[Y].length===0?"none ":q[Y][0]?"dashed ":"solid ";return/[sd]/.test(U)&&c.setAttribute("rowlines",U.trim()),d!==""&&(c=new Q.MathNode("menclose",[c]),c.setAttribute("notation",d.trim())),t.arraystretch&&t.arraystretch<1&&(c=new Q.MathNode("mstyle",[c]),c.setAttribute("scriptlevel","1")),c},C2=function(t,n){t.envName.indexOf("ed")===-1&&qs(t);var r=[],i=t.envName.indexOf("at")>-1?"alignat":"align",a=t.envName==="split",s=Qn(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:T0(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,u=0,l={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var c="",h=0;h<n[0].body.length;h++){var d=ve(n[0].body[h],"textord");c+=d.text}o=Number(c),u=o*2}var m=!u;s.body.forEach(function(A){for(var E=1;E<A.length;E+=2){var S=ve(A[E],"styling"),O=ve(S.body[0],"ordgroup");O.body.unshift(l)}if(m)u<A.length&&(u=A.length);else{var P=A.length/2;if(o<P)throw new Z("Too many math in a row: "+("expected "+o+", but got "+P),A[0])}});for(var y=0;y<u;++y){var T="r",w=0;y%2===1?T="l":y>0&&m&&(w=1),r[y]={type:"align",align:T,pregap:w,postgap:0}}return s.colSeparationType=m?"align":"alignat",s};cn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Us(t[0]),r=n?[t[0]]:ve(t[0],"ordgroup").body,i=r.map(function(s){var o=p0(s),u=o.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new Z("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Qn(e.parser,a,E0(e.envName))},htmlBuilder:hn,mathmlBuilder:dn});cn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new Z("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Qn(e.parser,r,E0(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:hn,mathmlBuilder:dn});cn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Qn(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:hn,mathmlBuilder:dn});cn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Us(t[0]),r=n?[t[0]]:ve(t[0],"ordgroup").body,i=r.map(function(s){var o=p0(s),u=o.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new Z("Unknown column alignment: "+u,s)});if(i.length>1)throw new Z("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Qn(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new Z("{subarray} can contain only one column");return a},htmlBuilder:hn,mathmlBuilder:dn});cn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Qn(e.parser,t,E0(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:hn,mathmlBuilder:dn});cn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:C2,htmlBuilder:hn,mathmlBuilder:dn});cn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&qs(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:T0(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Qn(e.parser,t,"display")},htmlBuilder:hn,mathmlBuilder:dn});cn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:C2,htmlBuilder:hn,mathmlBuilder:dn});cn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){qs(e);var t={autoTag:T0(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Qn(e.parser,t,"display")},htmlBuilder:hn,mathmlBuilder:dn});cn({type:"array",names:["CD"],props:{numArgs:0},handler(e){return qs(e),ev(e.parser)},htmlBuilder:hn,mathmlBuilder:dn});v("\\nonumber","\\gdef\\@eqnsw{0}");v("\\notag","\\nonumber");ae({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Z(e.funcName+" valid only within array environment")}});var sd=w2;ae({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new Z("Invalid environment name",i);for(var a="",s=0;s<i.body.length;++s)a+=ve(i.body[s],"textord").text;if(r==="\\begin"){if(!sd.hasOwnProperty(a))throw new Z("No such environment: "+a,i);var o=sd[a],{args:u,optArgs:l}=n.parseArguments("\\begin{"+a+"}",o),c={mode:n.mode,envName:a,parser:n},h=o.handler(c,u,l);n.expect("\\end",!1);var d=n.nextToken,m=ve(n.parseFunction(),"environment");if(m.name!==a)throw new Z("Mismatch: \\begin{"+a+"} matched by \\end{"+m.name+"}",d);return h}return{type:"environment",mode:n.mode,name:a,nameGroup:i}}});var N2=(e,t)=>{var n=e.font,r=t.withFont(n);return Ce(e.body,r)},I2=(e,t)=>{var n=e.font,r=t.withFont(n);return Re(e.body,r)},od={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ae({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=ps(t[0]),a=r;return a in od&&(a=od[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:N2,mathmlBuilder:I2});ae({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=Ne.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:js(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});ae({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:N2,mathmlBuilder:I2});var _2=(e,t)=>{var n=t;return e==="display"?n=n.id>=me.SCRIPT.id?n.text():me.DISPLAY:e==="text"&&n.size===me.DISPLAY.size?n=me.TEXT:e==="script"?n=me.SCRIPT:e==="scriptscript"&&(n=me.SCRIPTSCRIPT),n},v0=(e,t)=>{var n=_2(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=Ce(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<u?u:s.depth}a=t.havingStyle(i);var l=Ce(e.denom,a,t),c,h,d;e.hasBarLine?(e.barSize?(h=Ue(e.barSize,t),c=H.makeLineSpan("frac-line",t,h)):c=H.makeLineSpan("frac-line",t),h=c.height,d=c.height):(c=null,h=0,d=t.fontMetrics().defaultRuleThickness);var m,y,T;n.size===me.DISPLAY.size||e.size==="display"?(m=t.fontMetrics().num1,h>0?y=3*d:y=7*d,T=t.fontMetrics().denom1):(h>0?(m=t.fontMetrics().num2,y=d):(m=t.fontMetrics().num3,y=3*d),T=t.fontMetrics().denom2);var w;if(c){var E=t.fontMetrics().axisHeight;m-s.depth-(E+.5*h)<y&&(m+=y-(m-s.depth-(E+.5*h))),E-.5*h-(l.height-T)<y&&(T+=y-(E-.5*h-(l.height-T)));var S=-(E-.5*h);w=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:T},{type:"elem",elem:c,shift:S},{type:"elem",elem:s,shift:-m}]},t)}else{var A=m-s.depth-(l.height-T);A<y&&(m+=.5*(y-A),T+=.5*(y-A)),w=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:T},{type:"elem",elem:s,shift:-m}]},t)}a=t.havingStyle(n),w.height*=a.sizeMultiplier/t.sizeMultiplier,w.depth*=a.sizeMultiplier/t.sizeMultiplier;var O;n.size===me.DISPLAY.size?O=t.fontMetrics().delim1:n.size===me.SCRIPTSCRIPT.size?O=t.havingStyle(me.SCRIPT).fontMetrics().delim2:O=t.fontMetrics().delim2;var P,D;return e.leftDelim==null?P=Qi(t,["mopen"]):P=An.customSizedDelim(e.leftDelim,O,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?D=H.makeSpan([]):e.rightDelim==null?D=Qi(t,["mclose"]):D=An.customSizedDelim(e.rightDelim,O,!0,t.havingStyle(n),e.mode,["mclose"]),H.makeSpan(["mord"].concat(a.sizingClasses(t)),[P,H.makeSpan(["mfrac"],[w]),D],t)},A0=(e,t)=>{var n=new Q.MathNode("mfrac",[Re(e.numer,t),Re(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=Ue(e.barSize,t);n.setAttribute("linethickness",te(r))}var i=_2(e.size,t.style);if(i.size!==t.style.size){n=new Q.MathNode("mstyle",[n]);var a=i.size===me.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new Q.MathNode("mo",[new Q.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var u=new Q.MathNode("mo",[new Q.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return f0(s)}return n};ae({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,u=null,l="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",u=")";break;case"\\\\bracefrac":s=!1,o="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,o="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:u,size:l,barSize:null}},htmlBuilder:v0,mathmlBuilder:A0});ae({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ae({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var ud=["display","text","script","scriptscript"],ld=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ae({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=ps(t[0]),s=a.type==="atom"&&a.family==="open"?ld(a.text):null,o=ps(t[1]),u=o.type==="atom"&&o.family==="close"?ld(o.text):null,l=ve(t[2],"size"),c,h=null;l.isBlank?c=!0:(h=l.value,c=h.number>0);var d="auto",m=t[3];if(m.type==="ordgroup"){if(m.body.length>0){var y=ve(m.body[0],"textord");d=ud[Number(y.text)]}}else m=ve(m,"textord"),d=ud[Number(m.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:c,barSize:h,leftDelim:s,rightDelim:u,size:d}},htmlBuilder:v0,mathmlBuilder:A0});ae({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:ve(t[0],"size").value,token:i}}});ae({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=$9(ve(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:v0,mathmlBuilder:A0});var D2=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Ce(e.sup,t.havingStyle(n.sup()),t):Ce(e.sub,t.havingStyle(n.sub()),t),i=ve(e.base,"horizBrace")):i=ve(e,"horizBrace");var a=Ce(i.base,t.havingBaseStyle(me.DISPLAY)),s=Cn.svgSpan(i,t),o;if(i.isOver?(o=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=H.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var u=H.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=H.makeVList({positionType:"bottom",positionData:u.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return H.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},pv=(e,t)=>{var n=Cn.mathMLnode(e.label);return new Q.MathNode(e.isOver?"mover":"munder",[Re(e.base,t),n])};ae({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:D2,mathmlBuilder:pv});ae({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=ve(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:We(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Je(e.body,t,!1);return H.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Gn(e.body,t);return n instanceof Nt||(n=new Nt("mrow",[n])),n.setAttribute("href",e.href),n}});ae({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=ve(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<r.length;a++){var s=r[a];s==="~"&&(s="\\textasciitilde"),i.push({type:"textord",mode:"text",text:s})}var o={type:"text",mode:n.mode,font:"\\texttt",body:i};return{type:"href",mode:n.mode,href:r,body:We(o)}}});ae({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:We(t[0])}},htmlBuilder(e,t){var n=Je(e.body,t,!1);return H.makeFragment(n)},mathmlBuilder(e,t){return new Q.MathNode("mrow",wt(e.body,t))}});ae({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:i}=e,a=ve(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,u={};switch(r){case"\\htmlClass":u.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var l=a.split(","),c=0;c<l.length;c++){var h=l[c],d=h.indexOf("=");if(d<0)throw new Z("\\htmlData key/value '"+h+"' missing equals sign");var m=h.slice(0,d),y=h.slice(d+1);u["data-"+m.trim()]=y}o={command:"\\htmlData",attributes:u};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(o)?{type:"html",mode:n.mode,attributes:u,body:We(s)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Je(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=H.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Gn(e.body,t)});ae({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:We(t[0]),mathml:We(t[1])}},htmlBuilder:(e,t)=>{var n=Je(e.html,t,!1);return H.makeFragment(n)},mathmlBuilder:(e,t)=>Gn(e.mathml,t)});var Ho=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Z("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!Kp(r))throw new Z("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};ae({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var u=ve(n[0],"raw").string,l=u.split(","),c=0;c<l.length;c++){var h=l[c].split("=");if(h.length===2){var d=h[1].trim();switch(h[0].trim()){case"alt":o=d;break;case"width":i=Ho(d);break;case"height":a=Ho(d);break;case"totalheight":s=Ho(d);break;default:throw new Z("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var m=ve(t[0],"url").url;return o===""&&(o=m,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:m})?{type:"includegraphics",mode:r.mode,alt:o,width:i,height:a,totalheight:s,src:m}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=Ue(e.height,t),r=0;e.totalheight.number>0&&(r=Ue(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Ue(e.width,t));var a={height:te(n+r)};i>0&&(a.width=te(i)),r>0&&(a.verticalAlign=te(-r));var s=new pE(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new Q.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Ue(e.height,t),i=0;if(e.totalheight.number>0&&(i=Ue(e.totalheight,t)-r,n.setAttribute("valign",te(-i))),n.setAttribute("height",te(r+i)),e.width.number>0){var a=Ue(e.width,t);n.setAttribute("width",te(a))}return n.setAttribute("src",e.src),n}});ae({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=ve(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return H.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=Ue(e.dimension,t);return new Q.SpaceNode(n)}});ae({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=H.makeSpan([],[Ce(e.body,t)]),n=H.makeSpan(["inner"],[n],t)):n=H.makeSpan(["inner"],[Ce(e.body,t)]);var r=H.makeSpan(["fix"],[]),i=H.makeSpan([e.alignment],[n,r],t),a=H.makeSpan(["strut"]);return a.style.height=te(i.height+i.depth),i.depth&&(a.style.verticalAlign=te(-i.depth)),i.children.unshift(a),i=H.makeSpan(["thinbox"],[i],t),H.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new Q.MathNode("mpadded",[Re(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});ae({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});ae({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Z("Mismatched "+e.funcName)}});var cd=(e,t)=>{switch(t.style.size){case me.DISPLAY.size:return e.display;case me.TEXT.size:return e.text;case me.SCRIPT.size:return e.script;case me.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ae({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:We(t[0]),text:We(t[1]),script:We(t[2]),scriptscript:We(t[3])}},htmlBuilder:(e,t)=>{var n=cd(e,t),r=Je(n,t,!1);return H.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=cd(e,t);return Gn(n,t)}});var M2=(e,t,n,r,i,a,s)=>{e=H.makeSpan([],[e]);var o=n&&Ne.isCharacterBox(n),u,l;if(t){var c=Ce(t,r.havingStyle(i.sup()),r);l={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var h=Ce(n,r.havingStyle(i.sub()),r);u={elem:h,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-h.height)}}var d;if(l&&u){var m=r.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;d=H.makeVList({positionType:"bottom",positionData:m,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:te(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:te(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(u){var y=e.height-s;d=H.makeVList({positionType:"top",positionData:y,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:te(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},r)}else if(l){var T=e.depth+s;d=H.makeVList({positionType:"bottom",positionData:T,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:te(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var w=[d];if(u&&a!==0&&!o){var A=H.makeSpan(["mspace"],[],r);A.style.marginRight=te(a),w.unshift(A)}return H.makeSpan(["mop","op-limits"],w,r)},R2=["\\smallint"],ei=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=ve(e.base,"op"),i=!0):a=ve(e,"op");var s=t.style,o=!1;s.size===me.DISPLAY.size&&a.symbol&&!R2.includes(a.name)&&(o=!0);var u;if(a.symbol){var l=o?"Size2-Regular":"Size1-Regular",c="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(c=a.name.slice(1),a.name=c==="oiint"?"\\iint":"\\iiint"),u=H.makeSymbol(a.name,l,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),c.length>0){var h=u.italic,d=H.staticSvg(c+"Size"+(o?"2":"1"),t);u=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:d,shift:o?.08:0}]},t),a.name="\\"+c,u.classes.unshift("mop"),u.italic=h}}else if(a.body){var m=Je(a.body,t,!0);m.length===1&&m[0]instanceof Ht?(u=m[0],u.classes[0]="mop"):u=H.makeSpan(["mop"],m,t)}else{for(var y=[],T=1;T<a.name.length;T++)y.push(H.mathsym(a.name[T],a.mode,t));u=H.makeSpan(["mop"],y,t)}var w=0,A=0;return(u instanceof Ht||a.name==="\\oiint"||a.name==="\\oiiint")&&!a.suppressBaseShift&&(w=(u.height-u.depth)/2-t.fontMetrics().axisHeight,A=u.italic),i?M2(u,n,r,t,s,A,w):(w&&(u.style.position="relative",u.style.top=te(w)),u)},fa=(e,t)=>{var n;if(e.symbol)n=new Nt("mo",[Ut(e.name,e.mode)]),R2.includes(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new Nt("mo",wt(e.body,t));else{n=new Nt("mi",[new sn(e.name.slice(1))]);var r=new Nt("mo",[Ut("","text")]);e.parentIsSupSub?n=new Nt("mrow",[n,r]):n=o2([n,r])}return n},gv={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ae({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=gv[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:ei,mathmlBuilder:fa});ae({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:We(r)}},htmlBuilder:ei,mathmlBuilder:fa});var bv={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ae({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(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:ei,mathmlBuilder:fa});ae({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:ei,mathmlBuilder:fa});ae({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=bv[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:ei,mathmlBuilder:fa});var L2=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=ve(e.base,"operatorname"),i=!0):a=ve(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(h=>{var d=h.text;return typeof d=="string"?{type:"textord",mode:h.mode,text:d}:h}),u=Je(o,t.withFont("mathrm"),!0),l=0;l<u.length;l++){var c=u[l];c instanceof Ht&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=H.makeSpan(["mop"],u,t)}else s=H.makeSpan(["mop"],[],t);return i?M2(s,n,r,t,t.style,0,0):s},yv=(e,t)=>{for(var n=wt(e.body,t.withFont("mathrm")),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof Q.SpaceNode))if(a instanceof Q.MathNode)switch(a.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var s=a.children[0];a.children.length===1&&s instanceof Q.TextNode?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var o=n.map(c=>c.toText()).join("");n=[new Q.TextNode(o)]}var u=new Q.MathNode("mi",n);u.setAttribute("mathvariant","normal");var l=new Q.MathNode("mo",[Ut("","text")]);return e.parentIsSupSub?new Q.MathNode("mrow",[u,l]):Q.newDocumentFragment([u,l])};ae({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:We(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:L2,mathmlBuilder:yv});v("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Tr({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?H.makeFragment(Je(e.body,t,!1)):H.makeSpan(["mord"],Je(e.body,t,!0),t)},mathmlBuilder(e,t){return Gn(e.body,t,!0)}});ae({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Ce(e.body,t.havingCrampedStyle()),r=H.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return H.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new Q.MathNode("mo",[new Q.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Q.MathNode("mover",[Re(e.body,t),n]);return r.setAttribute("accent","true"),r}});ae({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:We(r)}},htmlBuilder:(e,t)=>{var n=Je(e.body,t.withPhantom(),!1);return H.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=wt(e.body,t);return new Q.MathNode("mphantom",n)}});ae({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=H.makeSpan([],[Ce(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),H.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=wt(We(e.body),t),r=new Q.MathNode("mphantom",n),i=new Q.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});ae({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=H.makeSpan(["inner"],[Ce(e.body,t.withPhantom())]),r=H.makeSpan(["fix"],[]);return H.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=wt(We(e.body),t),r=new Q.MathNode("mphantom",n),i=new Q.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});ae({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=ve(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Ce(e.body,t),r=Ue(e.dy,t);return H.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new Q.MathNode("mpadded",[Re(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});ae({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ae({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=ve(t[0],"size"),s=ve(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&ve(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=H.makeSpan(["mord","rule"],[],t),r=Ue(e.width,t),i=Ue(e.height,t),a=e.shift?Ue(e.shift,t):0;return n.style.borderRightWidth=te(r),n.style.borderTopWidth=te(i),n.style.bottom=te(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Ue(e.width,t),r=Ue(e.height,t),i=e.shift?Ue(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new Q.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",te(n)),s.setAttribute("height",te(r));var o=new Q.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",te(i)):(o.setAttribute("height",te(i)),o.setAttribute("depth",te(-i))),o.setAttribute("voffset",te(i)),o}});function P2(e,t,n){for(var r=Je(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var s=r[a].classes.indexOf("sizing");s<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[s+1]==="reset-size"+t.size&&(r[a].classes[s+1]="reset-size"+n.size),r[a].height*=i,r[a].depth*=i}return H.makeFragment(r)}var hd=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],xv=(e,t)=>{var n=t.havingSize(e.size);return P2(e.body,n,t)};ae({type:"sizing",names:hd,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:hd.indexOf(r)+1,body:a}},htmlBuilder:xv,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=wt(e.body,n),i=new Q.MathNode("mstyle",r);return i.setAttribute("mathsize",te(n.sizeMultiplier)),i}});ae({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&ve(n[0],"ordgroup");if(s)for(var o="",u=0;u<s.body.length;++u){var l=s.body[u];if(o=l.text,o==="t")i=!0;else if(o==="b")a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var c=t[0];return{type:"smash",mode:r.mode,body:c,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=H.makeSpan([],[Ce(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var i=0;i<n.children.length;i++)n.children[i].depth=0;var a=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return H.makeSpan(["mord"],[a],t)},mathmlBuilder:(e,t)=>{var n=new Q.MathNode("mpadded",[Re(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ae({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Ce(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=H.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.id<me.TEXT.id&&(a=t.fontMetrics().xHeight);var s=i+a/4,o=n.height+n.depth+s+i,{span:u,ruleWidth:l,advanceWidth:c}=An.sqrtImage(o,t),h=u.height-l;h>n.height+n.depth+s&&(s=(s+h-n.height-n.depth)/2);var d=u.height-n.height-s-l;n.style.paddingLeft=te(c);var m=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+d)},{type:"elem",elem:u},{type:"kern",size:l}]},t);if(e.index){var y=t.havingStyle(me.SCRIPTSCRIPT),T=Ce(e.index,y,t),w=.6*(m.height-m.depth),A=H.makeVList({positionType:"shift",positionData:-w,children:[{type:"elem",elem:T}]},t),E=H.makeSpan(["root"],[A]);return H.makeSpan(["mord","sqrt"],[E,m],t)}else return H.makeSpan(["mord","sqrt"],[m],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Q.MathNode("mroot",[Re(n,t),Re(r,t)]):new Q.MathNode("msqrt",[Re(n,t)])}});var dd={display:me.DISPLAY,text:me.TEXT,script:me.SCRIPT,scriptscript:me.SCRIPTSCRIPT};ae({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=dd[e.style],r=t.havingStyle(n).withFont("");return P2(e.body,r,t)},mathmlBuilder(e,t){var n=dd[e.style],r=t.havingStyle(n),i=wt(e.body,r),a=new Q.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var Tv=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===me.DISPLAY.size||r.alwaysHandleSupSub);return i?ei:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===me.DISPLAY.size||r.limits);return a?L2:null}else{if(r.type==="accent")return Ne.isCharacterBox(r.base)?g0:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?D2:null}else return null}else return null};Tr({type:"supsub",htmlBuilder(e,t){var n=Tv(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=Ce(r,t),o,u,l=t.fontMetrics(),c=0,h=0,d=r&&Ne.isCharacterBox(r);if(i){var m=t.havingStyle(t.style.sup());o=Ce(i,m,t),d||(c=s.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(a){var y=t.havingStyle(t.style.sub());u=Ce(a,y,t),d||(h=s.depth+y.fontMetrics().subDrop*y.sizeMultiplier/t.sizeMultiplier)}var T;t.style===me.DISPLAY?T=l.sup1:t.style.cramped?T=l.sup3:T=l.sup2;var w=t.sizeMultiplier,A=te(.5/l.ptPerEm/w),E=null;if(u){var S=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof Ht||S)&&(E=te(-s.italic))}var O;if(o&&u){c=Math.max(c,T,o.depth+.25*l.xHeight),h=Math.max(h,l.sub2);var P=l.defaultRuleThickness,D=4*P;if(c-o.depth-(u.height-h)<D){h=D-(c-o.depth)+u.height;var U=.8*l.xHeight-(c-o.depth);U>0&&(c+=U,h-=U)}var q=[{type:"elem",elem:u,shift:h,marginRight:A,marginLeft:E},{type:"elem",elem:o,shift:-c,marginRight:A}];O=H.makeVList({positionType:"individualShift",children:q},t)}else if(u){h=Math.max(h,l.sub1,u.height-.8*l.xHeight);var Y=[{type:"elem",elem:u,marginLeft:E,marginRight:A}];O=H.makeVList({positionType:"shift",positionData:h,children:Y},t)}else if(o)c=Math.max(c,T,o.depth+.25*l.xHeight),O=H.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:o,marginRight:A}]},t);else throw new Error("supsub must have either sup or sub.");var B=Ku(s,"right")||"mord";return H.makeSpan([B],[s,H.makeSpan(["msupsub"],[O])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Re(e.base,t)];e.sub&&a.push(Re(e.sub,t)),e.sup&&a.push(Re(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;l&&l.type==="op"&&l.limits&&t.style===me.DISPLAY||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(t.style===me.DISPLAY||l.limits)?s="munderover":s="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===me.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===me.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===me.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===me.DISPLAY)?s="mover":s="msup"}return new Q.MathNode(s,a)}});Tr({type:"atom",htmlBuilder(e,t){return H.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Q.MathNode("mo",[Ut(e.text,e.mode)]);if(e.family==="bin"){var r=m0(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var O2={mi:"italic",mn:"normal",mtext:"normal"};Tr({type:"mathord",htmlBuilder(e,t){return H.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new Q.MathNode("mi",[Ut(e.text,e.mode,t)]),r=m0(e,t)||"italic";return r!==O2[n.type]&&n.setAttribute("mathvariant",r),n}});Tr({type:"textord",htmlBuilder(e,t){return H.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=Ut(e.text,e.mode,t),r=m0(e,t)||"normal",i;return e.mode==="text"?i=new Q.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new Q.MathNode("mn",[n]):e.text==="\\prime"?i=new Q.MathNode("mo",[n]):i=new Q.MathNode("mi",[n]),r!==O2[i.type]&&i.setAttribute("mathvariant",r),i}});var Uo={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},jo={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Tr({type:"spacing",htmlBuilder(e,t){if(jo.hasOwnProperty(e.text)){var n=jo[e.text].className||"";if(e.mode==="text"){var r=H.makeOrd(e,t,"textord");return r.classes.push(n),r}else return H.makeSpan(["mspace",n],[H.mathsym(e.text,e.mode,t)],t)}else{if(Uo.hasOwnProperty(e.text))return H.makeSpan(["mspace",Uo[e.text]],[],t);throw new Z('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(jo.hasOwnProperty(e.text))n=new Q.MathNode("mtext",[new Q.TextNode(" ")]);else{if(Uo.hasOwnProperty(e.text))return new Q.MathNode("mspace");throw new Z('Unknown type of space "'+e.text+'"')}return n}});var fd=()=>{var e=new Q.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Tr({type:"tag",mathmlBuilder(e,t){var n=new Q.MathNode("mtable",[new Q.MathNode("mtr",[fd(),new Q.MathNode("mtd",[Gn(e.body,t)]),fd(),new Q.MathNode("mtd",[Gn(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var md={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},pd={"\\textbf":"textbf","\\textmd":"textmd"},Ev={"\\textit":"textit","\\textup":"textup"},gd=(e,t)=>{var n=e.font;if(n){if(md[n])return t.withTextFontFamily(md[n]);if(pd[n])return t.withTextFontWeight(pd[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Ev[n])};ae({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:We(i),font:r}},htmlBuilder(e,t){var n=gd(e,t),r=Je(e.body,n,!0);return H.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=gd(e,t);return Gn(e.body,n)}});ae({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Ce(e.body,t),r=H.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=H.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return H.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new Q.MathNode("mo",[new Q.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Q.MathNode("munder",[Re(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});ae({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Ce(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return H.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new Q.MathNode("mpadded",[Re(e.body,t)],["vcenter"])}});ae({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Z("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=bd(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var s=n[a];s==="~"&&(s="\\textasciitilde"),r.push(H.makeSymbol(s,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return H.makeSpan(["mord","text"].concat(i.sizingClasses(t)),H.tryCombineChars(r),i)},mathmlBuilder(e,t){var n=new Q.TextNode(bd(e)),r=new Q.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var bd=e=>e.body.replace(/ /g,e.star?"␣":" "),Un=a2,F2=`[ \r
|
|
268
|
+
]`,vv="\\\\[a-zA-Z@]+",Av="\\\\[^\uD800-\uDFFF]",kv="("+vv+")"+F2+"*",wv=`\\\\(
|
|
269
|
+
|[ \r ]+
|
|
270
|
+
?)[ \r ]*`,el="[̀-ͯ]",Sv=new RegExp(el+"+$"),Cv="("+F2+"+)|"+(wv+"|")+"([!-\\[\\]-‧-豈-]"+(el+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(el+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+kv)+("|"+Av+")");class yd{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(Cv,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new It("EOF",new At(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new Z("Unexpected character: '"+t[n]+"'",new It(t[n],new At(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(`
|
|
271
|
+
`,this.tokenRegex.lastIndex);return a===-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=a+1,this.lex()}return new It(i,new At(this,n,this.tokenRegex.lastIndex))}}class Nv{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Z("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}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,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var Iv=S2;v("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});v("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});v("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});v("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});v("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});v("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");v("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var xd={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};v("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Z("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=xd[t.text],r==null||r>=n)throw new Z("Invalid base-"+n+" digit "+t.text);for(var i;(i=xd[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return"\\@char{"+r+"}"});var k0=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new Z("\\newcommand's first argument must be a macro name");var a=i[0].text,s=e.isDefined(a);if(s&&!t)throw new Z("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!n)throw new Z("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var u="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)u+=l.text,l=e.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new Z("Invalid number of arguments: "+u);o=parseInt(u),i=e.consumeArg().tokens}return s&&r||e.macros.set(a,{tokens:i,numArgs:o}),""};v("\\newcommand",e=>k0(e,!1,!0,!1));v("\\renewcommand",e=>k0(e,!0,!1,!1));v("\\providecommand",e=>k0(e,!0,!0,!0));v("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});v("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});v("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Un[n],Pe.math[n],Pe.text[n]),""});v("\\bgroup","{");v("\\egroup","}");v("~","\\nobreakspace");v("\\lq","`");v("\\rq","'");v("\\aa","\\r a");v("\\AA","\\r A");v("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");v("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");v("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");v("ℬ","\\mathscr{B}");v("ℰ","\\mathscr{E}");v("ℱ","\\mathscr{F}");v("ℋ","\\mathscr{H}");v("ℐ","\\mathscr{I}");v("ℒ","\\mathscr{L}");v("ℳ","\\mathscr{M}");v("ℛ","\\mathscr{R}");v("ℭ","\\mathfrak{C}");v("ℌ","\\mathfrak{H}");v("ℨ","\\mathfrak{Z}");v("\\Bbbk","\\Bbb{k}");v("·","\\cdotp");v("\\llap","\\mathllap{\\textrm{#1}}");v("\\rlap","\\mathrlap{\\textrm{#1}}");v("\\clap","\\mathclap{\\textrm{#1}}");v("\\mathstrut","\\vphantom{(}");v("\\underbar","\\underline{\\text{#1}}");v("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');v("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");v("\\ne","\\neq");v("≠","\\neq");v("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");v("∉","\\notin");v("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");v("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");v("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");v("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");v("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");v("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");v("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");v("⟂","\\perp");v("‼","\\mathclose{!\\mkern-0.8mu!}");v("∌","\\notni");v("⌜","\\ulcorner");v("⌝","\\urcorner");v("⌞","\\llcorner");v("⌟","\\lrcorner");v("©","\\copyright");v("®","\\textregistered");v("️","\\textregistered");v("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');v("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');v("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');v("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');v("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");v("⋮","\\vdots");v("\\varGamma","\\mathit{\\Gamma}");v("\\varDelta","\\mathit{\\Delta}");v("\\varTheta","\\mathit{\\Theta}");v("\\varLambda","\\mathit{\\Lambda}");v("\\varXi","\\mathit{\\Xi}");v("\\varPi","\\mathit{\\Pi}");v("\\varSigma","\\mathit{\\Sigma}");v("\\varUpsilon","\\mathit{\\Upsilon}");v("\\varPhi","\\mathit{\\Phi}");v("\\varPsi","\\mathit{\\Psi}");v("\\varOmega","\\mathit{\\Omega}");v("\\substack","\\begin{subarray}{c}#1\\end{subarray}");v("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");v("\\boxed","\\fbox{$\\displaystyle{#1}$}");v("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");v("\\implies","\\DOTSB\\;\\Longrightarrow\\;");v("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");v("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");v("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Td={",":"\\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"};v("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Td?t=Td[n]:(n.slice(0,4)==="\\not"||n in Pe.math&&["bin","rel"].includes(Pe.math[n].group))&&(t="\\dotsb"),t});var w0={")":!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};v("\\dotso",function(e){var t=e.future().text;return t in w0?"\\ldots\\,":"\\ldots"});v("\\dotsc",function(e){var t=e.future().text;return t in w0&&t!==","?"\\ldots\\,":"\\ldots"});v("\\cdots",function(e){var t=e.future().text;return t in w0?"\\@cdots\\,":"\\@cdots"});v("\\dotsb","\\cdots");v("\\dotsm","\\cdots");v("\\dotsi","\\!\\cdots");v("\\dotsx","\\ldots\\,");v("\\DOTSI","\\relax");v("\\DOTSB","\\relax");v("\\DOTSX","\\relax");v("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");v("\\,","\\tmspace+{3mu}{.1667em}");v("\\thinspace","\\,");v("\\>","\\mskip{4mu}");v("\\:","\\tmspace+{4mu}{.2222em}");v("\\medspace","\\:");v("\\;","\\tmspace+{5mu}{.2777em}");v("\\thickspace","\\;");v("\\!","\\tmspace-{3mu}{.1667em}");v("\\negthinspace","\\!");v("\\negmedspace","\\tmspace-{4mu}{.2222em}");v("\\negthickspace","\\tmspace-{5mu}{.277em}");v("\\enspace","\\kern.5em ");v("\\enskip","\\hskip.5em\\relax");v("\\quad","\\hskip1em\\relax");v("\\qquad","\\hskip2em\\relax");v("\\tag","\\@ifstar\\tag@literal\\tag@paren");v("\\tag@paren","\\tag@literal{({#1})}");v("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Z("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});v("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");v("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");v("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");v("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");v("\\newline","\\\\\\relax");v("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var B2=te(an["Main-Regular"][84][1]-.7*an["Main-Regular"][65][1]);v("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+B2+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");v("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+B2+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");v("\\hspace","\\@ifstar\\@hspacer\\@hspace");v("\\@hspace","\\hskip #1\\relax");v("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");v("\\ordinarycolon",":");v("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");v("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');v("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');v("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');v("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');v("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');v("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');v("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');v("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');v("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');v("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');v("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');v("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');v("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');v("∷","\\dblcolon");v("∹","\\eqcolon");v("≔","\\coloneqq");v("≕","\\eqqcolon");v("⩴","\\Coloneqq");v("\\ratio","\\vcentcolon");v("\\coloncolon","\\dblcolon");v("\\colonequals","\\coloneqq");v("\\coloncolonequals","\\Coloneqq");v("\\equalscolon","\\eqqcolon");v("\\equalscoloncolon","\\Eqqcolon");v("\\colonminus","\\coloneq");v("\\coloncolonminus","\\Coloneq");v("\\minuscolon","\\eqcolon");v("\\minuscoloncolon","\\Eqcolon");v("\\coloncolonapprox","\\Colonapprox");v("\\coloncolonsim","\\Colonsim");v("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");v("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");v("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");v("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");v("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");v("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");v("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");v("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");v("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");v("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");v("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");v("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");v("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");v("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");v("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");v("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");v("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");v("\\nleqq","\\html@mathml{\\@nleqq}{≰}");v("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");v("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");v("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");v("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");v("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");v("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");v("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");v("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");v("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");v("\\imath","\\html@mathml{\\@imath}{ı}");v("\\jmath","\\html@mathml{\\@jmath}{ȷ}");v("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");v("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");v("⟦","\\llbracket");v("⟧","\\rrbracket");v("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");v("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");v("⦃","\\lBrace");v("⦄","\\rBrace");v("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");v("⦵","\\minuso");v("\\darr","\\downarrow");v("\\dArr","\\Downarrow");v("\\Darr","\\Downarrow");v("\\lang","\\langle");v("\\rang","\\rangle");v("\\uarr","\\uparrow");v("\\uArr","\\Uparrow");v("\\Uarr","\\Uparrow");v("\\N","\\mathbb{N}");v("\\R","\\mathbb{R}");v("\\Z","\\mathbb{Z}");v("\\alef","\\aleph");v("\\alefsym","\\aleph");v("\\Alpha","\\mathrm{A}");v("\\Beta","\\mathrm{B}");v("\\bull","\\bullet");v("\\Chi","\\mathrm{X}");v("\\clubs","\\clubsuit");v("\\cnums","\\mathbb{C}");v("\\Complex","\\mathbb{C}");v("\\Dagger","\\ddagger");v("\\diamonds","\\diamondsuit");v("\\empty","\\emptyset");v("\\Epsilon","\\mathrm{E}");v("\\Eta","\\mathrm{H}");v("\\exist","\\exists");v("\\harr","\\leftrightarrow");v("\\hArr","\\Leftrightarrow");v("\\Harr","\\Leftrightarrow");v("\\hearts","\\heartsuit");v("\\image","\\Im");v("\\infin","\\infty");v("\\Iota","\\mathrm{I}");v("\\isin","\\in");v("\\Kappa","\\mathrm{K}");v("\\larr","\\leftarrow");v("\\lArr","\\Leftarrow");v("\\Larr","\\Leftarrow");v("\\lrarr","\\leftrightarrow");v("\\lrArr","\\Leftrightarrow");v("\\Lrarr","\\Leftrightarrow");v("\\Mu","\\mathrm{M}");v("\\natnums","\\mathbb{N}");v("\\Nu","\\mathrm{N}");v("\\Omicron","\\mathrm{O}");v("\\plusmn","\\pm");v("\\rarr","\\rightarrow");v("\\rArr","\\Rightarrow");v("\\Rarr","\\Rightarrow");v("\\real","\\Re");v("\\reals","\\mathbb{R}");v("\\Reals","\\mathbb{R}");v("\\Rho","\\mathrm{P}");v("\\sdot","\\cdot");v("\\sect","\\S");v("\\spades","\\spadesuit");v("\\sub","\\subset");v("\\sube","\\subseteq");v("\\supe","\\supseteq");v("\\Tau","\\mathrm{T}");v("\\thetasym","\\vartheta");v("\\weierp","\\wp");v("\\Zeta","\\mathrm{Z}");v("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");v("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");v("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");v("\\bra","\\mathinner{\\langle{#1}|}");v("\\ket","\\mathinner{|{#1}\\rangle}");v("\\braket","\\mathinner{\\langle{#1}\\rangle}");v("\\Bra","\\left\\langle#1\\right|");v("\\Ket","\\left|#1\\right\\rangle");var z2=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var u=h=>d=>{e&&(d.macros.set("|",s),i.length&&d.macros.set("\\|",o));var m=h;if(!h&&i.length){var y=d.future();y.text==="|"&&(d.popToken(),m=!0)}return{tokens:m?i:r,numArgs:0}};t.macros.set("|",u(!1)),i.length&&t.macros.set("\\|",u(!0));var l=t.consumeArg().tokens,c=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};v("\\bra@ket",z2(!1));v("\\bra@set",z2(!0));v("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");v("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");v("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");v("\\angln","{\\angl n}");v("\\blue","\\textcolor{##6495ed}{#1}");v("\\orange","\\textcolor{##ffa500}{#1}");v("\\pink","\\textcolor{##ff00af}{#1}");v("\\red","\\textcolor{##df0030}{#1}");v("\\green","\\textcolor{##28ae7b}{#1}");v("\\gray","\\textcolor{gray}{#1}");v("\\purple","\\textcolor{##9d38bd}{#1}");v("\\blueA","\\textcolor{##ccfaff}{#1}");v("\\blueB","\\textcolor{##80f6ff}{#1}");v("\\blueC","\\textcolor{##63d9ea}{#1}");v("\\blueD","\\textcolor{##11accd}{#1}");v("\\blueE","\\textcolor{##0c7f99}{#1}");v("\\tealA","\\textcolor{##94fff5}{#1}");v("\\tealB","\\textcolor{##26edd5}{#1}");v("\\tealC","\\textcolor{##01d1c1}{#1}");v("\\tealD","\\textcolor{##01a995}{#1}");v("\\tealE","\\textcolor{##208170}{#1}");v("\\greenA","\\textcolor{##b6ffb0}{#1}");v("\\greenB","\\textcolor{##8af281}{#1}");v("\\greenC","\\textcolor{##74cf70}{#1}");v("\\greenD","\\textcolor{##1fab54}{#1}");v("\\greenE","\\textcolor{##0d923f}{#1}");v("\\goldA","\\textcolor{##ffd0a9}{#1}");v("\\goldB","\\textcolor{##ffbb71}{#1}");v("\\goldC","\\textcolor{##ff9c39}{#1}");v("\\goldD","\\textcolor{##e07d10}{#1}");v("\\goldE","\\textcolor{##a75a05}{#1}");v("\\redA","\\textcolor{##fca9a9}{#1}");v("\\redB","\\textcolor{##ff8482}{#1}");v("\\redC","\\textcolor{##f9685d}{#1}");v("\\redD","\\textcolor{##e84d39}{#1}");v("\\redE","\\textcolor{##bc2612}{#1}");v("\\maroonA","\\textcolor{##ffbde0}{#1}");v("\\maroonB","\\textcolor{##ff92c6}{#1}");v("\\maroonC","\\textcolor{##ed5fa6}{#1}");v("\\maroonD","\\textcolor{##ca337c}{#1}");v("\\maroonE","\\textcolor{##9e034e}{#1}");v("\\purpleA","\\textcolor{##ddd7ff}{#1}");v("\\purpleB","\\textcolor{##c6b9fc}{#1}");v("\\purpleC","\\textcolor{##aa87ff}{#1}");v("\\purpleD","\\textcolor{##7854ab}{#1}");v("\\purpleE","\\textcolor{##543b78}{#1}");v("\\mintA","\\textcolor{##f5f9e8}{#1}");v("\\mintB","\\textcolor{##edf2df}{#1}");v("\\mintC","\\textcolor{##e0e5cc}{#1}");v("\\grayA","\\textcolor{##f6f7f7}{#1}");v("\\grayB","\\textcolor{##f0f1f2}{#1}");v("\\grayC","\\textcolor{##e3e5e6}{#1}");v("\\grayD","\\textcolor{##d6d8da}{#1}");v("\\grayE","\\textcolor{##babec2}{#1}");v("\\grayF","\\textcolor{##888d93}{#1}");v("\\grayG","\\textcolor{##626569}{#1}");v("\\grayH","\\textcolor{##3b3e40}{#1}");v("\\grayI","\\textcolor{##21242c}{#1}");v("\\kaBlue","\\textcolor{##314453}{#1}");v("\\kaGreen","\\textcolor{##71B307}{#1}");var H2={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class _v{constructor(t,n,r){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=n,this.expansionCount=0,this.feed(t),this.macros=new Nv(Iv,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new yd(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 n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new It("EOF",r.loc)),this.pushTokens(i),new It("",At.range(n,r))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Z("Extra }",a)}else if(a.text==="EOF")throw new Z("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",a);if(t&&r)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Z("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;i<r.length;i++){var a=this.popToken();if(r[i]!==a.text)throw new Z("Use of the macro doesn't match its definition",a)}}for(var s=[],o=0;o<t;o++)s.push(this.consumeArg(n&&n[o+1]).tokens);return s}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Z("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||t&&i.unexpandable){if(t&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new Z("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var u=a[o];if(u.text==="#"){if(o===0)throw new Z("Incomplete placeholder at end of macro body",u);if(u=a[--o],u.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(u.text))a.splice(o,2,...s[+u.text-1]);else throw new Z("Not a valid argument number",u)}}}return this.pushTokens(a),a.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 It(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new yd(i,this.settings),u=[],l=o.lex();l.text!=="EOF";)u.push(l),l=o.lex();u.reverse();var c={tokens:u,numArgs:a};return c}return i}isDefined(t){return this.macros.has(t)||Un.hasOwnProperty(t)||Pe.math.hasOwnProperty(t)||Pe.text.hasOwnProperty(t)||H2.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Un.hasOwnProperty(t)&&!Un[t].primitive}}var Ed=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ma=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Vo={"́":{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"}},vd={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let U2=class j2{constructor(t,n){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 _v(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Z("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&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 n=this.nextToken;this.consume(),this.gullet.pushToken(new It("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(j2.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&Un[i.text]&&Un[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i<t.length;i++)if(t[i].type==="infix"){if(n!==-1)throw new Z("only one infix operator per group",t[i].token);n=i,r=t[i].replaceWith}if(n!==-1&&r){var a,s,o=t.slice(0,n),u=t.slice(n+1);o.length===1&&o[0].type==="ordgroup"?a=o[0]:a={type:"ordgroup",mode:this.mode,body:o},u.length===1&&u[0].type==="ordgroup"?s=u[0]:s={type:"ordgroup",mode:this.mode,body:u};var l;return r==="\\\\abovefrac"?l=this.callFunction(r,[a,t[n],s],[]):l=this.callFunction(r,[a,s],[]),[l]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var i;do{var a;i=this.parseGroup(t)}while(((a=i)==null?void 0:a.type)==="internal");if(!i)throw new Z("Expected group after '"+r+"'",n);return i}formatUnsupportedCmd(t){for(var n=[],r=0;r<t.length;r++)n.push({type:"textord",mode:"text",text:t[r]});var i={type:"text",mode:this.mode,body:n},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return a}parseAtom(t){var n=this.parseGroup("atom",t);if(n?.type==="internal"||this.mode==="text")return n;for(var r,i;;){this.consumeSpaces();var a=this.fetch();if(a.text==="\\limits"||a.text==="\\nolimits"){if(n&&n.type==="op"){var s=a.text==="\\limits";n.limits=s,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=a.text==="\\limits");else throw new Z("Limit controls must follow a math operator",a);this.consume()}else if(a.text==="^"){if(r)throw new Z("Double superscript",a);r=this.handleSupSubscript("superscript")}else if(a.text==="_"){if(i)throw new Z("Double subscript",a);i=this.handleSupSubscript("subscript")}else if(a.text==="'"){if(r)throw new Z("Double superscript",a);var o={type:"textord",mode:this.mode,text:"\\prime"},u=[o];for(this.consume();this.fetch().text==="'";)u.push(o),this.consume();this.fetch().text==="^"&&u.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:u}}else if(Ma[a.text]){var l=Ed.test(a.text),c=[];for(c.push(new It(Ma[a.text])),this.consume();;){var h=this.fetch().text;if(!Ma[h]||Ed.test(h)!==l)break;c.unshift(new It(Ma[h])),this.consume()}var d=this.subparse(c);l?i={type:"ordgroup",mode:"math",body:d}:r={type:"ordgroup",mode:"math",body:d}}else break}return r||i?{type:"supsub",mode:this.mode,base:n,sup:r,sub:i}:n}parseFunction(t,n){var r=this.fetch(),i=r.text,a=Un[i];if(!a)return null;if(this.consume(),n&&n!=="atom"&&!a.allowedInArgument)throw new Z("Got function '"+i+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!a.allowedInText)throw new Z("Can't use function '"+i+"' in text mode",r);if(this.mode==="math"&&a.allowedInMath===!1)throw new Z("Can't use function '"+i+"' in math mode",r);var{args:s,optArgs:o}=this.parseArguments(i,a);return this.callFunction(i,s,o,r,t)}callFunction(t,n,r,i,a){var s={funcName:t,parser:this,token:i,breakOnTokenText:a},o=Un[t];if(o&&o.handler)return o.handler(s,n,r);throw new Z("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var i=[],a=[],s=0;s<r;s++){var o=n.argTypes&&n.argTypes[s],u=s<n.numOptionalArgs;(n.primitive&&o==null||n.type==="sqrt"&&s===1&&a[0]==null)&&(o="primitive");var l=this.parseGroupOfType("argument to '"+t+"'",o,u);if(u)a.push(l);else if(l!=null)i.push(l);else throw new Z("Null argument, please report this as a bug")}return{args:i,optArgs:a}}parseGroupOfType(t,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var i=this.parseArgumentGroup(r,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var a=this.parseStringGroup("raw",r);return a!=null?{type:"raw",mode:"text",string:a.text}:null}case"primitive":{if(r)throw new Z("A primitive argument cannot be optional");var s=this.parseGroup(t);if(s==null)throw new Z("Expected group as "+t,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Z("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var i="",a;(a=this.fetch()).text!=="EOF";)i+=a.text,this.consume();return this.consume(),r.text=i,r}parseRegexGroup(t,n){for(var r=this.fetch(),i=r,a="",s;(s=this.fetch()).text!=="EOF"&&t.test(a+s.text);)i=s,a+=i.text,this.consume();if(a==="")throw new Z("Invalid "+n+": '"+r.text+"'",r);return r.range(i,a)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var r=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new Z("Invalid color: '"+n.text+"'",n);var i=r[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var n,r=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",r=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!i)throw new Z("Invalid size: '"+n.text+"'",n);var a={number:+(i[1]+i[2]),unit:i[3]};if(!Kp(a))throw new Z("Invalid unit: '"+a.unit+"'",n);return{type:"size",mode:this.mode,value:a,isBlank:r}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(t,n){var r=this.gullet.scanArgument(t);if(r==null)return null;var i=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:r.loc,body:a};return n&&this.switchMode(i),s}parseGroup(t,n){var r=this.fetch(),i=r.text,a;if(i==="{"||i==="\\begingroup"){this.consume();var s=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,s),u=this.fetch();this.expect(s),this.gullet.endGroup(),a={type:"ordgroup",mode:this.mode,loc:At.range(r,u),body:o,semisimple:i==="\\begingroup"||void 0}}else if(a=this.parseFunction(n,t)||this.parseSymbol(),a==null&&i[0]==="\\"&&!H2.hasOwnProperty(i)){if(this.settings.throwOnError)throw new Z("Undefined control sequence: "+i,r);a=this.formatUnsupportedCmd(i),this.consume()}return a}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var i=t[r],a=i.text;a==="-"&&t[r+1].text==="-"&&(r+1<n&&t[r+2].text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:At.range(i,t[r+2]),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:At.range(i,t[r+1]),text:"--"}),n-=1)),(a==="'"||a==="`")&&t[r+1].text===a&&(t.splice(r,2,{type:"textord",mode:"text",loc:At.range(i,t[r+1]),text:a+a}),n-=1)}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),i=r.charAt(0)==="*";if(i&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Z(`\\verb assertion failed --
|
|
272
|
+
please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:i}}vd.hasOwnProperty(n[0])&&!Pe[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=vd[n[0]]+n.slice(1));var a=Sv.exec(n);a&&(n=n.substring(0,a.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var s;if(Pe[this.mode][n]){this.settings.strict&&this.mode==="math"&&Xu.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=Pe[this.mode][n].group,u=At.range(t),l;if(yE.hasOwnProperty(o)){var c=o;l={type:"atom",mode:this.mode,family:c,loc:u,text:n}}else l={type:o,mode:this.mode,loc:u,text:n};s=l}else if(n.charCodeAt(0)>=128)this.settings.strict&&(Wp(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:At.range(t),text:n};else return null;if(this.consume(),a)for(var h=0;h<a[0].length;h++){var d=a[0][h];if(!Vo[d])throw new Z("Unknown accent ' "+d+"'",t);var m=Vo[d][this.mode]||Vo[d].text;if(!m)throw new Z("Accent "+d+" unsupported in "+this.mode+" mode",t);s={type:"accent",mode:this.mode,loc:At.range(t),label:m,isStretchy:!1,isShifty:!0,base:s}}return s}};U2.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var S0=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new U2(t,n);delete r.gullet.macros.current["\\df@tag"];var i=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new Z("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:r.subparse([new It("\\df@tag")])}]}return i},C0=function(t,n,r){n.textContent="";var i=$s(t,r).toNode();n.appendChild(i)};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."),C0=function(){throw new Z("KaTeX doesn't work in quirks mode.")});var V2=function(t,n){var r=$s(t,n).toMarkup();return r},q2=function(t,n){var r=new u0(n);return S0(t,r)},$2=function(t,n,r){if(r.throwOnError||!(t instanceof Z))throw t;var i=H.makeSpan(["katex-error"],[new Ht(n)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+r.errorColor),i},$s=function(t,n){var r=new u0(n);try{var i=S0(t,r);return UE(i,t,r)}catch(a){return $2(a,t,r)}},Y2=function(t,n){var r=new u0(n);try{var i=S0(t,r);return jE(i,t,r)}catch(a){return $2(a,t,r)}},G2="0.16.27",W2={Span:da,Anchor:h0,SymbolNode:Ht,SvgNode:wn,PathNode:Yn,LineNode:Wu},tl={version:G2,render:C0,renderToString:V2,ParseError:Z,SETTINGS_SCHEMA:_i,__parse:q2,__renderToDomTree:$s,__renderToHTMLTree:Y2,__setFontMetrics:Xp,__defineSymbol:p,__defineFunction:ae,__defineMacro:v,__domTree:W2};const ZP=Object.freeze(Object.defineProperty({__proto__:null,ParseError:Z,SETTINGS_SCHEMA:_i,__defineFunction:ae,__defineMacro:v,__defineSymbol:p,__domTree:W2,__parse:q2,__renderToDomTree:$s,__renderToHTMLTree:Y2,__setFontMetrics:Xp,default:tl,get render(){return C0},renderToString:V2,version:G2},Symbol.toStringTag,{value:"Module"})),Dv={},Mv=[];function nl(e){const t=e||Dv;return function(n,r){a0(n,"element",function(i,a){const s=Array.isArray(i.properties.className)?i.properties.className:Mv,o=s.includes("language-math"),u=s.includes("math-display"),l=s.includes("math-inline");let c=u;if(!o&&!u&&!l)return;let h=a[a.length-1],d=i;if(i.tagName==="code"&&o&&h&&h.type==="element"&&h.tagName==="pre"&&(d=h,h=a[a.length-2],c=!0),!h)return;const m=D9(d,{whitespace:"pre"});let y;try{y=tl.renderToString(m,{...t,displayMode:c,throwOnError:!0})}catch(w){const A=w,E=A.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...a,i],cause:A,place:i.position,ruleId:E,source:"rehype-katex"});try{y=tl.renderToString(m,{...t,displayMode:c,strict:"ignore",throwOnError:!1})}catch{y=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(w)},children:[{type:"text",value:m}]}]}}typeof y=="string"&&(y=A9(y).children);const T=h.children.indexOf(d);return h.children.splice(T,1,...y),cs})}}const X2=-1,Ys=0,Mi=1,gs=2,N0=3,I0=4,_0=5,D0=6,K2=7,Q2=8,Ad=typeof self=="object"?self:globalThis,Rv=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case Ys:case X2:return n(s,i);case Mi:{const o=n([],i);for(const u of s)o.push(r(u));return o}case gs:{const o=n({},i);for(const[u,l]of s)o[r(u)]=r(l);return o}case N0:return n(new Date(s),i);case I0:{const{source:o,flags:u}=s;return n(new RegExp(o,u),i)}case _0:{const o=n(new Map,i);for(const[u,l]of s)o.set(r(u),r(l));return o}case D0:{const o=n(new Set,i);for(const u of s)o.add(r(u));return o}case K2:{const{name:o,message:u}=s;return n(new Ad[o](u),i)}case Q2:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new Ad[a](s),i)};return r},kd=e=>Rv(new Map,e)(0),Ir="",{toString:Lv}={},{keys:Pv}=Object,di=e=>{const t=typeof e;if(t!=="object"||!e)return[Ys,t];const n=Lv.call(e).slice(8,-1);switch(n){case"Array":return[Mi,Ir];case"Object":return[gs,Ir];case"Date":return[N0,Ir];case"RegExp":return[I0,Ir];case"Map":return[_0,Ir];case"Set":return[D0,Ir];case"DataView":return[Mi,n]}return n.includes("Array")?[Mi,n]:n.includes("Error")?[K2,n]:[gs,n]},Ra=([e,t])=>e===Ys&&(t==="function"||t==="symbol"),Ov=(e,t,n,r)=>{const i=(s,o)=>{const u=r.push(s)-1;return n.set(o,u),u},a=s=>{if(n.has(s))return n.get(s);let[o,u]=di(s);switch(o){case Ys:{let c=s;switch(u){case"bigint":o=Q2,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([X2],s)}return i([o,c],s)}case Mi:{if(u){let d=s;return u==="DataView"?d=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(d=new Uint8Array(s)),i([u,[...d]],s)}const c=[],h=i([o,c],s);for(const d of s)c.push(a(d));return h}case gs:{if(u)switch(u){case"BigInt":return i([u,s.toString()],s);case"Boolean":case"Number":case"String":return i([u,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],h=i([o,c],s);for(const d of Pv(s))(e||!Ra(di(s[d])))&&c.push([a(d),a(s[d])]);return h}case N0:return i([o,s.toISOString()],s);case I0:{const{source:c,flags:h}=s;return i([o,{source:c,flags:h}],s)}case _0:{const c=[],h=i([o,c],s);for(const[d,m]of s)(e||!(Ra(di(d))||Ra(di(m))))&&c.push([a(d),a(m)]);return h}case D0:{const c=[],h=i([o,c],s);for(const d of s)(e||!Ra(di(d)))&&c.push(a(d));return h}}const{message:l}=s;return i([o,{name:u,message:l}],s)};return a},wd=(e,{json:t,lossy:n}={})=>{const r=[];return Ov(!(t||n),!!t,new Map,r)(e),r},mr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?kd(wd(e,t)):structuredClone(e):(e,t)=>kd(wd(e,t));function Fv(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const u=Sd(t,n[s-1]);o=u===-1?t.length+1:u+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const o=n[n.length-1],u=Sd(t,o),l=u===-1?t.length+1:u+1;if(o===l)break;n.push(l)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function Sd(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
273
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Z2={}.hasOwnProperty,Bv=Object.prototype;function zv(e,t){const n=t||{};return M0({file:n.file||void 0,location:!1,schema:n.space==="svg"?Kn:ca,verbose:n.verbose||!1},e)}function M0(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Wa(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:J2(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=Fv(a),o=s.toPoint(0),u=s.toPoint(a.length);n.position={start:o,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Wa(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Wa(e,r,n),n}default:return n=Hv(e,t),n}}function J2(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=M0(e,t[n]);r.push(i)}return r}function Hv(e,t){const n=e.schema;e.schema=t.namespaceURI===rn.svg?Kn:ca;let r=-1;const i={};for(;++r<t.attrs.length;){const o=t.attrs[r],u=(o.prefix?o.prefix+":":"")+o.name;Z2.call(Bv,u)||(i[u]=o.value)}const s=(e.schema.space==="svg"?Hp:zp)(t.tagName,i,J2(e,t.childNodes));if(Wa(e,t,s),s.tagName==="template"){const o=t,u=o.sourceCodeLocation,l=u&&u.startTag&&Or(u.startTag),c=u&&u.endTag&&Or(u.endTag),h=M0(e,o.content);l&&c&&e.file&&(h.position={start:l.end,end:c.start}),s.content=h}return e.schema=n,s}function Wa(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Uv(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Uv(e,t,n){const r=Or(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)Z2.call(n.attrs,s)&&(a[Bs(e.schema,s).property]=Or(n.attrs[s]));n.startTag;const o=Or(n.startTag),u=n.endTag?Or(n.endTag):void 0,l={opening:o};u&&(l.closing=u),l.properties=a,t.data={position:l}}}return r}function Or(e){const t=Cd({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Cd({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Cd(e){return e.line&&e.column?e:void 0}const Nd={}.hasOwnProperty;function e4(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const o=r.handlers;if(i&&Nd.call(i,e)){const u=String(i[e]);s=Nd.call(o,u)?o[u]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const jv={},Vv={}.hasOwnProperty,t4=e4("type",{handlers:{root:$v,element:Kv,text:Wv,comment:Xv,doctype:Gv}});function qv(e,t){const r=(t||jv).space;return t4(e,r==="svg"?Kn:ca)}function $v(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=R0(e.children,n,t),ti(e,n),n}function Yv(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=R0(e.children,n,t),ti(e,n),n}function Gv(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ti(e,t),t}function Wv(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ti(e,t),t}function Xv(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ti(e,t),t}function Kv(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Kn);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&Vv.call(e.properties,a)){const u=Qv(r,a,e.properties[a]);u&&i.push(u)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:rn[s],childNodes:[],parentNode:null};return o.childNodes=R0(e.children,o,r),ti(e,o),e.tagName==="template"&&e.content&&(o.content=Yv(e.content,r)),o}function Qv(e,t,n){const r=Bs(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Op(n):Fp(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=rn[r.space]}return i}function R0(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=t4(e[r],n);a.parentNode=t,i.push(a)}return i}function ti(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Zv=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Jv=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Be="�";var C;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(C||(C={}));const Tt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function n4(e){return e>=55296&&e<=57343}function eA(e){return e>=56320&&e<=57343}function tA(e,t){return(e-55296)*1024+9216+t}function r4(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function i4(e){return e>=64976&&e<=65007||Jv.has(e)}var j;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(j||(j={}));const nA=65536;class rA{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=nA,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:a}=this,s=i+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(eA(n))return this.pos++,this._addGap(),tA(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,C.EOF;return this._err(j.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,C.EOF;const r=this.html.charCodeAt(n);return r===C.CARRIAGE_RETURN?C.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,C.EOF;let t=this.html.charCodeAt(this.pos);return t===C.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,C.LINE_FEED):t===C.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,n4(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===C.LINE_FEED||t===C.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){r4(t)?this._err(j.controlCharacterInInputStream):i4(t)&&this._err(j.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ae;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ae||(Ae={}));function a4(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const iA=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),aA=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function sA(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=aA.get(e))!==null&&t!==void 0?t:e}var tt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(tt||(tt={}));const oA=32;var jn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(jn||(jn={}));function rl(e){return e>=tt.ZERO&&e<=tt.NINE}function uA(e){return e>=tt.UPPER_A&&e<=tt.UPPER_F||e>=tt.LOWER_A&&e<=tt.LOWER_F}function lA(e){return e>=tt.UPPER_A&&e<=tt.UPPER_Z||e>=tt.LOWER_A&&e<=tt.LOWER_Z||rl(e)}function cA(e){return e===tt.EQUALS||lA(e)}var et;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(et||(et={}));var xn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(xn||(xn={}));class hA{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=et.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=xn.Strict}startEntity(t){this.decodeMode=t,this.state=et.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case et.EntityStart:return t.charCodeAt(n)===tt.NUM?(this.state=et.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=et.NamedEntity,this.stateNamedEntity(t,n));case et.NumericStart:return this.stateNumericStart(t,n);case et.NumericDecimal:return this.stateNumericDecimal(t,n);case et.NumericHex:return this.stateNumericHex(t,n);case et.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|oA)===tt.LOWER_X?(this.state=et.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=et.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(rl(i)||uA(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(rl(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===tt.SEMI)this.consumed+=1;else if(this.decodeMode===xn.Strict)return 0;return this.emitCodePoint(sA(this.result),this.consumed),this.errors&&(t!==tt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],a=(i&jn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=dA(r,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===xn.Attribute&&(a===0||cA(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],a=(i&jn.VALUE_LENGTH)>>14,a!==0){if(s===tt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==xn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&jn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~jn.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case et.NamedEntity:return this.result!==0&&(this.decodeMode!==xn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case et.NumericDecimal:return this.emitNumericEntity(0,2);case et.NumericHex:return this.emitNumericEntity(0,3);case et.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case et.EntityStart:return 0}}}function dA(e,t,n,r){const i=(t&jn.BRANCH_LENGTH)>>7,a=t&jn.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const u=r-a;return u<0||u>=i?-1:e[n+u]-1}let s=n,o=s+i-1;for(;s<=o;){const u=s+o>>>1,l=e[u];if(l<r)s=u+1;else if(l>r)o=u-1;else return e[u+i]}return-1}var X;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(X||(X={}));var fr;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(fr||(fr={}));var Pt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Pt||(Pt={}));var z;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(z||(z={}));var f;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(f||(f={}));const fA=new Map([[z.A,f.A],[z.ADDRESS,f.ADDRESS],[z.ANNOTATION_XML,f.ANNOTATION_XML],[z.APPLET,f.APPLET],[z.AREA,f.AREA],[z.ARTICLE,f.ARTICLE],[z.ASIDE,f.ASIDE],[z.B,f.B],[z.BASE,f.BASE],[z.BASEFONT,f.BASEFONT],[z.BGSOUND,f.BGSOUND],[z.BIG,f.BIG],[z.BLOCKQUOTE,f.BLOCKQUOTE],[z.BODY,f.BODY],[z.BR,f.BR],[z.BUTTON,f.BUTTON],[z.CAPTION,f.CAPTION],[z.CENTER,f.CENTER],[z.CODE,f.CODE],[z.COL,f.COL],[z.COLGROUP,f.COLGROUP],[z.DD,f.DD],[z.DESC,f.DESC],[z.DETAILS,f.DETAILS],[z.DIALOG,f.DIALOG],[z.DIR,f.DIR],[z.DIV,f.DIV],[z.DL,f.DL],[z.DT,f.DT],[z.EM,f.EM],[z.EMBED,f.EMBED],[z.FIELDSET,f.FIELDSET],[z.FIGCAPTION,f.FIGCAPTION],[z.FIGURE,f.FIGURE],[z.FONT,f.FONT],[z.FOOTER,f.FOOTER],[z.FOREIGN_OBJECT,f.FOREIGN_OBJECT],[z.FORM,f.FORM],[z.FRAME,f.FRAME],[z.FRAMESET,f.FRAMESET],[z.H1,f.H1],[z.H2,f.H2],[z.H3,f.H3],[z.H4,f.H4],[z.H5,f.H5],[z.H6,f.H6],[z.HEAD,f.HEAD],[z.HEADER,f.HEADER],[z.HGROUP,f.HGROUP],[z.HR,f.HR],[z.HTML,f.HTML],[z.I,f.I],[z.IMG,f.IMG],[z.IMAGE,f.IMAGE],[z.INPUT,f.INPUT],[z.IFRAME,f.IFRAME],[z.KEYGEN,f.KEYGEN],[z.LABEL,f.LABEL],[z.LI,f.LI],[z.LINK,f.LINK],[z.LISTING,f.LISTING],[z.MAIN,f.MAIN],[z.MALIGNMARK,f.MALIGNMARK],[z.MARQUEE,f.MARQUEE],[z.MATH,f.MATH],[z.MENU,f.MENU],[z.META,f.META],[z.MGLYPH,f.MGLYPH],[z.MI,f.MI],[z.MO,f.MO],[z.MN,f.MN],[z.MS,f.MS],[z.MTEXT,f.MTEXT],[z.NAV,f.NAV],[z.NOBR,f.NOBR],[z.NOFRAMES,f.NOFRAMES],[z.NOEMBED,f.NOEMBED],[z.NOSCRIPT,f.NOSCRIPT],[z.OBJECT,f.OBJECT],[z.OL,f.OL],[z.OPTGROUP,f.OPTGROUP],[z.OPTION,f.OPTION],[z.P,f.P],[z.PARAM,f.PARAM],[z.PLAINTEXT,f.PLAINTEXT],[z.PRE,f.PRE],[z.RB,f.RB],[z.RP,f.RP],[z.RT,f.RT],[z.RTC,f.RTC],[z.RUBY,f.RUBY],[z.S,f.S],[z.SCRIPT,f.SCRIPT],[z.SEARCH,f.SEARCH],[z.SECTION,f.SECTION],[z.SELECT,f.SELECT],[z.SOURCE,f.SOURCE],[z.SMALL,f.SMALL],[z.SPAN,f.SPAN],[z.STRIKE,f.STRIKE],[z.STRONG,f.STRONG],[z.STYLE,f.STYLE],[z.SUB,f.SUB],[z.SUMMARY,f.SUMMARY],[z.SUP,f.SUP],[z.TABLE,f.TABLE],[z.TBODY,f.TBODY],[z.TEMPLATE,f.TEMPLATE],[z.TEXTAREA,f.TEXTAREA],[z.TFOOT,f.TFOOT],[z.TD,f.TD],[z.TH,f.TH],[z.THEAD,f.THEAD],[z.TITLE,f.TITLE],[z.TR,f.TR],[z.TRACK,f.TRACK],[z.TT,f.TT],[z.U,f.U],[z.UL,f.UL],[z.SVG,f.SVG],[z.VAR,f.VAR],[z.WBR,f.WBR],[z.XMP,f.XMP]]);function ni(e){var t;return(t=fA.get(e))!==null&&t!==void 0?t:f.UNKNOWN}const K=f,mA={[X.HTML]:new Set([K.ADDRESS,K.APPLET,K.AREA,K.ARTICLE,K.ASIDE,K.BASE,K.BASEFONT,K.BGSOUND,K.BLOCKQUOTE,K.BODY,K.BR,K.BUTTON,K.CAPTION,K.CENTER,K.COL,K.COLGROUP,K.DD,K.DETAILS,K.DIR,K.DIV,K.DL,K.DT,K.EMBED,K.FIELDSET,K.FIGCAPTION,K.FIGURE,K.FOOTER,K.FORM,K.FRAME,K.FRAMESET,K.H1,K.H2,K.H3,K.H4,K.H5,K.H6,K.HEAD,K.HEADER,K.HGROUP,K.HR,K.HTML,K.IFRAME,K.IMG,K.INPUT,K.LI,K.LINK,K.LISTING,K.MAIN,K.MARQUEE,K.MENU,K.META,K.NAV,K.NOEMBED,K.NOFRAMES,K.NOSCRIPT,K.OBJECT,K.OL,K.P,K.PARAM,K.PLAINTEXT,K.PRE,K.SCRIPT,K.SECTION,K.SELECT,K.SOURCE,K.STYLE,K.SUMMARY,K.TABLE,K.TBODY,K.TD,K.TEMPLATE,K.TEXTAREA,K.TFOOT,K.TH,K.THEAD,K.TITLE,K.TR,K.TRACK,K.UL,K.WBR,K.XMP]),[X.MATHML]:new Set([K.MI,K.MO,K.MN,K.MS,K.MTEXT,K.ANNOTATION_XML]),[X.SVG]:new Set([K.TITLE,K.FOREIGN_OBJECT,K.DESC]),[X.XLINK]:new Set,[X.XML]:new Set,[X.XMLNS]:new Set},il=new Set([K.H1,K.H2,K.H3,K.H4,K.H5,K.H6]);z.STYLE,z.SCRIPT,z.XMP,z.IFRAME,z.NOEMBED,z.NOFRAMES,z.PLAINTEXT;var N;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(N||(N={}));const Ye={DATA:N.DATA,RCDATA:N.RCDATA,RAWTEXT:N.RAWTEXT,SCRIPT_DATA:N.SCRIPT_DATA,PLAINTEXT:N.PLAINTEXT,CDATA_SECTION:N.CDATA_SECTION};function pA(e){return e>=C.DIGIT_0&&e<=C.DIGIT_9}function ki(e){return e>=C.LATIN_CAPITAL_A&&e<=C.LATIN_CAPITAL_Z}function gA(e){return e>=C.LATIN_SMALL_A&&e<=C.LATIN_SMALL_Z}function On(e){return gA(e)||ki(e)}function Id(e){return On(e)||pA(e)}function La(e){return e+32}function s4(e){return e===C.SPACE||e===C.LINE_FEED||e===C.TABULATION||e===C.FORM_FEED}function _d(e){return s4(e)||e===C.SOLIDUS||e===C.GREATER_THAN_SIGN}function bA(e){return e===C.NULL?j.nullCharacterReference:e>1114111?j.characterReferenceOutsideUnicodeRange:n4(e)?j.surrogateCharacterReference:i4(e)?j.noncharacterCharacterReference:r4(e)||e===C.CARRIAGE_RETURN?j.controlCharacterReference:null}class yA{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=N.DATA,this.returnState=N.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new rA(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new hA(iA,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(j.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(j.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=bA(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ae.START_TAG,tagName:"",tagID:f.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ae.END_TAG,tagName:"",tagID:f.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ae.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ae.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(a4(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(j.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=ni(t.tagName),t.type===Ae.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(j.endTagWithAttributes),t.selfClosing&&this._err(j.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ae.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ae.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ae.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ae.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=s4(t)?Ae.WHITESPACE_CHARACTER:t===C.NULL?Ae.NULL_CHARACTER:Ae.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ae.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=N.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?xn.Attribute:xn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===N.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case N.DATA:{this._stateData(t);break}case N.RCDATA:{this._stateRcdata(t);break}case N.RAWTEXT:{this._stateRawtext(t);break}case N.SCRIPT_DATA:{this._stateScriptData(t);break}case N.PLAINTEXT:{this._statePlaintext(t);break}case N.TAG_OPEN:{this._stateTagOpen(t);break}case N.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case N.TAG_NAME:{this._stateTagName(t);break}case N.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case N.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case N.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case N.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case N.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case N.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case N.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case N.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case N.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case N.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case N.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case N.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case N.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case N.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case N.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case N.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case N.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case N.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case N.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case N.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case N.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case N.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case N.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case N.BOGUS_COMMENT:{this._stateBogusComment(t);break}case N.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case N.COMMENT_START:{this._stateCommentStart(t);break}case N.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case N.COMMENT:{this._stateComment(t);break}case N.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case N.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case N.COMMENT_END:{this._stateCommentEnd(t);break}case N.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case N.DOCTYPE:{this._stateDoctype(t);break}case N.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case N.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case N.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case N.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case N.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case N.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case N.CDATA_SECTION:{this._stateCdataSection(t);break}case N.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case N.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case N.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case N.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case C.LESS_THAN_SIGN:{this.state=N.TAG_OPEN;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(j.unexpectedNullCharacter),this._emitCodePoint(t);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case C.AMPERSAND:{this._startCharacterReference();break}case C.LESS_THAN_SIGN:{this.state=N.RCDATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Be);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case C.LESS_THAN_SIGN:{this.state=N.RAWTEXT_LESS_THAN_SIGN;break}case C.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Be);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case C.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Be);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case C.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Be);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(On(t))this._createStartTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case C.EXCLAMATION_MARK:{this.state=N.MARKUP_DECLARATION_OPEN;break}case C.SOLIDUS:{this.state=N.END_TAG_OPEN;break}case C.QUESTION_MARK:{this._err(j.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t);break}case C.EOF:{this._err(j.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(j.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=N.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(On(t))this._createEndTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case C.GREATER_THAN_SIGN:{this._err(j.missingEndTagName),this.state=N.DATA;break}case C.EOF:{this._err(j.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(j.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=N.BEFORE_ATTRIBUTE_NAME;break}case C.SOLIDUS:{this.state=N.SELF_CLOSING_START_TAG;break}case C.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentTagToken();break}case C.NULL:{this._err(j.unexpectedNullCharacter),n.tagName+=Be;break}case C.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(ki(t)?La(t):t)}}_stateRcdataLessThanSign(t){t===C.SOLIDUS?this.state=N.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=N.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){On(t)?(this.state=N.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=N.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=N.BEFORE_ATTRIBUTE_NAME,!1;case C.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=N.SELF_CLOSING_START_TAG,!1;case C.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=N.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===C.SOLIDUS?this.state=N.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){On(t)?(this.state=N.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case C.SOLIDUS:{this.state=N.SCRIPT_DATA_END_TAG_OPEN;break}case C.EXCLAMATION_MARK:{this.state=N.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=N.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){On(t)?(this.state=N.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===C.HYPHEN_MINUS?(this.state=N.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===C.HYPHEN_MINUS?(this.state=N.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case C.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Be);break}case C.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case C.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.NULL:{this._err(j.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(Be);break}case C.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case C.HYPHEN_MINUS:{this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.GREATER_THAN_SIGN:{this.state=N.SCRIPT_DATA,this._emitChars(">");break}case C.NULL:{this._err(j.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(Be);break}case C.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===C.SOLIDUS?this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:On(t)?(this._emitChars("<"),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){On(t)?(this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Tt.SCRIPT,!1)&&_d(this.preprocessor.peek(Tt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Tt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case C.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Be);break}case C.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case C.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.NULL:{this._err(j.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Be);break}case C.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case C.HYPHEN_MINUS:{this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.GREATER_THAN_SIGN:{this.state=N.SCRIPT_DATA,this._emitChars(">");break}case C.NULL:{this._err(j.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Be);break}case C.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===C.SOLIDUS?(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Tt.SCRIPT,!1)&&_d(this.preprocessor.peek(Tt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Tt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=N.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.SOLIDUS:case C.GREATER_THAN_SIGN:case C.EOF:{this.state=N.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case C.EQUALS_SIGN:{this._err(j.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=N.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=N.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:case C.SOLIDUS:case C.GREATER_THAN_SIGN:case C.EOF:{this._leaveAttrName(),this.state=N.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case C.EQUALS_SIGN:{this._leaveAttrName(),this.state=N.BEFORE_ATTRIBUTE_VALUE;break}case C.QUOTATION_MARK:case C.APOSTROPHE:case C.LESS_THAN_SIGN:{this._err(j.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case C.NULL:{this._err(j.unexpectedNullCharacter),this.currentAttr.name+=Be;break}default:this.currentAttr.name+=String.fromCodePoint(ki(t)?La(t):t)}}_stateAfterAttributeName(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.SOLIDUS:{this.state=N.SELF_CLOSING_START_TAG;break}case C.EQUALS_SIGN:{this.state=N.BEFORE_ATTRIBUTE_VALUE;break}case C.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=N.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{this.state=N.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this.state=N.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(j.missingAttributeValue),this.state=N.DATA,this.emitCurrentTagToken();break}default:this.state=N.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case C.QUOTATION_MARK:{this.state=N.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(j.unexpectedNullCharacter),this.currentAttr.value+=Be;break}case C.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case C.APOSTROPHE:{this.state=N.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(j.unexpectedNullCharacter),this.currentAttr.value+=Be;break}case C.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this._leaveAttrValue(),this.state=N.BEFORE_ATTRIBUTE_NAME;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=N.DATA,this.emitCurrentTagToken();break}case C.NULL:{this._err(j.unexpectedNullCharacter),this.currentAttr.value+=Be;break}case C.QUOTATION_MARK:case C.APOSTROPHE:case C.LESS_THAN_SIGN:case C.EQUALS_SIGN:case C.GRAVE_ACCENT:{this._err(j.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case C.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this._leaveAttrValue(),this.state=N.BEFORE_ATTRIBUTE_NAME;break}case C.SOLIDUS:{this._leaveAttrValue(),this.state=N.SELF_CLOSING_START_TAG;break}case C.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=N.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this._err(j.missingWhitespaceBetweenAttributes),this.state=N.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case C.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=N.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this._err(j.unexpectedSolidusInTag),this.state=N.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case C.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentComment(n);break}case C.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case C.NULL:{this._err(j.unexpectedNullCharacter),n.data+=Be;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Tt.DASH_DASH,!0)?(this._createCommentToken(Tt.DASH_DASH.length+1),this.state=N.COMMENT_START):this._consumeSequenceIfMatch(Tt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Tt.DOCTYPE.length+1),this.state=N.DOCTYPE):this._consumeSequenceIfMatch(Tt.CDATA_START,!0)?this.inForeignNode?this.state=N.CDATA_SECTION:(this._err(j.cdataInHtmlContent),this._createCommentToken(Tt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=N.BOGUS_COMMENT):this._ensureHibernation()||(this._err(j.incorrectlyOpenedComment),this._createCommentToken(2),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case C.HYPHEN_MINUS:{this.state=N.COMMENT_START_DASH;break}case C.GREATER_THAN_SIGN:{this._err(j.abruptClosingOfEmptyComment),this.state=N.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=N.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case C.HYPHEN_MINUS:{this.state=N.COMMENT_END;break}case C.GREATER_THAN_SIGN:{this._err(j.abruptClosingOfEmptyComment),this.state=N.DATA,this.emitCurrentComment(n);break}case C.EOF:{this._err(j.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=N.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case C.HYPHEN_MINUS:{this.state=N.COMMENT_END_DASH;break}case C.LESS_THAN_SIGN:{n.data+="<",this.state=N.COMMENT_LESS_THAN_SIGN;break}case C.NULL:{this._err(j.unexpectedNullCharacter),n.data+=Be;break}case C.EOF:{this._err(j.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case C.EXCLAMATION_MARK:{n.data+="!",this.state=N.COMMENT_LESS_THAN_SIGN_BANG;break}case C.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=N.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===C.HYPHEN_MINUS?this.state=N.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=N.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===C.HYPHEN_MINUS?this.state=N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=N.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==C.GREATER_THAN_SIGN&&t!==C.EOF&&this._err(j.nestedComment),this.state=N.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case C.HYPHEN_MINUS:{this.state=N.COMMENT_END;break}case C.EOF:{this._err(j.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=N.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case C.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentComment(n);break}case C.EXCLAMATION_MARK:{this.state=N.COMMENT_END_BANG;break}case C.HYPHEN_MINUS:{n.data+="-";break}case C.EOF:{this._err(j.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=N.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case C.HYPHEN_MINUS:{n.data+="--!",this.state=N.COMMENT_END_DASH;break}case C.GREATER_THAN_SIGN:{this._err(j.incorrectlyClosedComment),this.state=N.DATA,this.emitCurrentComment(n);break}case C.EOF:{this._err(j.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=N.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this.state=N.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case C.EOF:{this._err(j.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(j.missingWhitespaceBeforeDoctypeName),this.state=N.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ki(t))this._createDoctypeToken(String.fromCharCode(La(t))),this.state=N.DOCTYPE_NAME;else switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.NULL:{this._err(j.unexpectedNullCharacter),this._createDoctypeToken(Be),this.state=N.DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this._err(j.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case C.EOF:{this._err(j.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=N.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=N.AFTER_DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case C.NULL:{this._err(j.unexpectedNullCharacter),n.name+=Be;break}case C.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(ki(t)?La(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Tt.PUBLIC,!1)?this.state=N.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Tt.SYSTEM,!1)?this.state=N.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(j.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.QUOTATION_MARK:{this._err(j.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(j.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(j.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(j.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case C.QUOTATION_MARK:{this.state=N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.NULL:{this._err(j.unexpectedNullCharacter),n.publicId+=Be;break}case C.GREATER_THAN_SIGN:{this._err(j.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case C.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case C.APOSTROPHE:{this.state=N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.NULL:{this._err(j.unexpectedNullCharacter),n.publicId+=Be;break}case C.GREATER_THAN_SIGN:{this._err(j.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case C.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case C.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case C.QUOTATION_MARK:{this._err(j.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(j.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case C.QUOTATION_MARK:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.QUOTATION_MARK:{this._err(j.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(j.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(j.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(j.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case C.QUOTATION_MARK:{this.state=N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.NULL:{this._err(j.unexpectedNullCharacter),n.systemId+=Be;break}case C.GREATER_THAN_SIGN:{this._err(j.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case C.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case C.APOSTROPHE:{this.state=N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.NULL:{this._err(j.unexpectedNullCharacter),n.systemId+=Be;break}case C.GREATER_THAN_SIGN:{this._err(j.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case C.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case C.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(j.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case C.NULL:{this._err(j.unexpectedNullCharacter);break}case C.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case C.RIGHT_SQUARE_BRACKET:{this.state=N.CDATA_SECTION_BRACKET;break}case C.EOF:{this._err(j.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===C.RIGHT_SQUARE_BRACKET?this.state=N.CDATA_SECTION_END:(this._emitChars("]"),this.state=N.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case C.GREATER_THAN_SIGN:{this.state=N.DATA;break}case C.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=N.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(C.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Id(this.preprocessor.peek(1))?N.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Id(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===C.SEMICOLON&&this._err(j.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const o4=new Set([f.DD,f.DT,f.LI,f.OPTGROUP,f.OPTION,f.P,f.RB,f.RP,f.RT,f.RTC]),Dd=new Set([...o4,f.CAPTION,f.COLGROUP,f.TBODY,f.TD,f.TFOOT,f.TH,f.THEAD,f.TR]),bs=new Set([f.APPLET,f.CAPTION,f.HTML,f.MARQUEE,f.OBJECT,f.TABLE,f.TD,f.TEMPLATE,f.TH]),xA=new Set([...bs,f.OL,f.UL]),TA=new Set([...bs,f.BUTTON]),Md=new Set([f.ANNOTATION_XML,f.MI,f.MN,f.MO,f.MS,f.MTEXT]),Rd=new Set([f.DESC,f.FOREIGN_OBJECT,f.TITLE]),EA=new Set([f.TR,f.TEMPLATE,f.HTML]),vA=new Set([f.TBODY,f.TFOOT,f.THEAD,f.TEMPLATE,f.HTML]),AA=new Set([f.TABLE,f.TEMPLATE,f.HTML]),kA=new Set([f.TD,f.TH]);class wA{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=f.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===f.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===X.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==X.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(il,X.HTML)}popUntilTableCellPopped(){this.popUntilPopped(kA,X.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(AA,X.HTML)}clearBackToTableBodyContext(){this.clearBackTo(vA,X.HTML)}clearBackToTableRowContext(){this.clearBackTo(EA,X.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===f.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===f.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case X.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case X.SVG:{if(Rd.has(i))return!1;break}case X.MATHML:{if(Md.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,bs)}hasInListItemScope(t){return this.hasInDynamicScope(t,xA)}hasInButtonScope(t){return this.hasInDynamicScope(t,TA)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case X.HTML:{if(il.has(n))return!0;if(bs.has(n))return!1;break}case X.SVG:{if(Rd.has(n))return!1;break}case X.MATHML:{if(Md.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===X.HTML)switch(this.tagIDs[n]){case t:return!0;case f.TABLE:case f.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===X.HTML)switch(this.tagIDs[t]){case f.TBODY:case f.THEAD:case f.TFOOT:return!0;case f.TABLE:case f.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===X.HTML)switch(this.tagIDs[n]){case t:return!0;case f.OPTION:case f.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&o4.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Dd.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Dd.has(this.currentTagId);)this.pop()}}const qo=3;var nn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(nn||(nn={}));const Ld={type:nn.Marker};class SA{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const u=this.entries[o];if(u.type===nn.Marker)break;const{element:l}=u;if(this.treeAdapter.getTagName(l)===a&&this.treeAdapter.getNamespaceURI(l)===s){const c=this.treeAdapter.getAttrList(l);c.length===i&&r.push({idx:o,attrs:c})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<qo)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<qo)return;const i=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(u=>i.get(u.name)===u.value)&&(a+=1,a>=qo&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Ld)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:nn.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:nn.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Ld);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===nn.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===nn.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===nn.Element&&n.element===t)}}const Fn={createDocument(){return{nodeName:"#document",mode:Pt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Fn.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Fn.isTextNode(n)){n.value+=t;return}}Fn.appendChild(e,Fn.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Fn.isTextNode(r)?r.value+=t:Fn.insertBefore(e,Fn.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},u4="html",CA="about:legacy-compat",NA="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",l4=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],IA=[...l4,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],_A=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),c4=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],DA=[...c4,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Pd(e,t){return t.some(n=>e.startsWith(n))}function MA(e){return e.name===u4&&e.publicId===null&&(e.systemId===null||e.systemId===CA)}function RA(e){if(e.name!==u4)return Pt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===NA)return Pt.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),_A.has(n))return Pt.QUIRKS;let r=t===null?IA:l4;if(Pd(n,r))return Pt.QUIRKS;if(r=t===null?c4:DA,Pd(n,r))return Pt.LIMITED_QUIRKS}return Pt.NO_QUIRKS}const Od={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},LA="definitionurl",PA="definitionURL",OA=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),FA=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:X.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:X.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:X.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:X.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:X.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:X.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:X.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:X.XML}],["xml:space",{prefix:"xml",name:"space",namespace:X.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:X.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:X.XMLNS}]]),BA=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),zA=new Set([f.B,f.BIG,f.BLOCKQUOTE,f.BODY,f.BR,f.CENTER,f.CODE,f.DD,f.DIV,f.DL,f.DT,f.EM,f.EMBED,f.H1,f.H2,f.H3,f.H4,f.H5,f.H6,f.HEAD,f.HR,f.I,f.IMG,f.LI,f.LISTING,f.MENU,f.META,f.NOBR,f.OL,f.P,f.PRE,f.RUBY,f.S,f.SMALL,f.SPAN,f.STRONG,f.STRIKE,f.SUB,f.SUP,f.TABLE,f.TT,f.U,f.UL,f.VAR]);function HA(e){const t=e.tagID;return t===f.FONT&&e.attrs.some(({name:r})=>r===fr.COLOR||r===fr.SIZE||r===fr.FACE)||zA.has(t)}function h4(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===LA){e.attrs[t].name=PA;break}}function d4(e){for(let t=0;t<e.attrs.length;t++){const n=OA.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function L0(e){for(let t=0;t<e.attrs.length;t++){const n=FA.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function UA(e){const t=BA.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ni(e.tagName))}function jA(e,t){return t===X.MATHML&&(e===f.MI||e===f.MO||e===f.MN||e===f.MS||e===f.MTEXT)}function VA(e,t,n){if(t===X.MATHML&&e===f.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===fr.ENCODING){const i=n[r].value.toLowerCase();return i===Od.TEXT_HTML||i===Od.APPLICATION_XML}}return t===X.SVG&&(e===f.FOREIGN_OBJECT||e===f.DESC||e===f.TITLE)}function qA(e,t,n,r){return(!r||r===X.HTML)&&VA(e,t,n)||(!r||r===X.MATHML)&&jA(e,t)}const $A="hidden",YA=8,GA=3;var R;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(R||(R={}));const WA={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},f4=new Set([f.TABLE,f.TBODY,f.TFOOT,f.THEAD,f.TR]),Fd={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Fn,onParseError:null};class Bd{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=R.INITIAL,this.originalInsertionMode=R.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Fd,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new yA(this.options,this),this.activeFormattingElements=new SA(this.treeAdapter),this.fragmentContextID=r?ni(this.treeAdapter.getTagName(r)):f.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new wA(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Fd,...n};t??(t=r.treeAdapter.createElement(z.TEMPLATE,X.HTML,[]));const i=r.treeAdapter.createElement("documentmock",X.HTML,[]),a=new this(r,i,t);return a.fragmentContextID===f.TEMPLATE&&a.tmplInsertionModeStack.unshift(R.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:WA,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,r){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===X.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,X.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=R.TEXT}switchToPlaintextParsing(){this.insertionMode=R.TEXT,this.originalInsertionMode=R.IN_BODY,this.tokenizer.state=Ye.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===z.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==X.HTML))switch(this.fragmentContextID){case f.TITLE:case f.TEXTAREA:{this.tokenizer.state=Ye.RCDATA;break}case f.STYLE:case f.XMP:case f.IFRAME:case f.NOEMBED:case f.NOFRAMES:case f.NOSCRIPT:{this.tokenizer.state=Ye.RAWTEXT;break}case f.SCRIPT:{this.tokenizer.state=Ye.SCRIPT_DATA;break}case f.PLAINTEXT:{this.tokenizer.state=Ye.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,X.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,X.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(z.HTML,X.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,f.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:u,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===Ae.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===f.SVG&&this.treeAdapter.getTagName(n)===z.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===X.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===f.MGLYPH||t.tagID===f.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,X.HTML)}_processToken(t){switch(t.type){case Ae.CHARACTER:{this.onCharacter(t);break}case Ae.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ae.COMMENT:{this.onComment(t);break}case Ae.DOCTYPE:{this.onDoctype(t);break}case Ae.START_TAG:{this._processStartTag(t);break}case Ae.END_TAG:{this.onEndTag(t);break}case Ae.EOF:{this.onEof(t);break}case Ae.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return qA(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===nn.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=R.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(f.P),this.openElements.popUntilTagNamePopped(f.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case f.TR:{this.insertionMode=R.IN_ROW;return}case f.TBODY:case f.THEAD:case f.TFOOT:{this.insertionMode=R.IN_TABLE_BODY;return}case f.CAPTION:{this.insertionMode=R.IN_CAPTION;return}case f.COLGROUP:{this.insertionMode=R.IN_COLUMN_GROUP;return}case f.TABLE:{this.insertionMode=R.IN_TABLE;return}case f.BODY:{this.insertionMode=R.IN_BODY;return}case f.FRAMESET:{this.insertionMode=R.IN_FRAMESET;return}case f.SELECT:{this._resetInsertionModeForSelect(t);return}case f.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case f.HTML:{this.insertionMode=this.headElement?R.AFTER_HEAD:R.BEFORE_HEAD;return}case f.TD:case f.TH:{if(t>0){this.insertionMode=R.IN_CELL;return}break}case f.HEAD:{if(t>0){this.insertionMode=R.IN_HEAD;return}break}}this.insertionMode=R.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===f.TEMPLATE)break;if(r===f.TABLE){this.insertionMode=R.IN_SELECT_IN_TABLE;return}}this.insertionMode=R.IN_SELECT}_isElementCausesFosterParenting(t){return f4.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case f.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===X.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case f.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return mA[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){kw(this,t);return}switch(this.insertionMode){case R.INITIAL:{fi(this,t);break}case R.BEFORE_HTML:{Ri(this,t);break}case R.BEFORE_HEAD:{Li(this,t);break}case R.IN_HEAD:{Pi(this,t);break}case R.IN_HEAD_NO_SCRIPT:{Oi(this,t);break}case R.AFTER_HEAD:{Fi(this,t);break}case R.IN_BODY:case R.IN_CAPTION:case R.IN_CELL:case R.IN_TEMPLATE:{p4(this,t);break}case R.TEXT:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{$o(this,t);break}case R.IN_TABLE_TEXT:{E4(this,t);break}case R.IN_COLUMN_GROUP:{ys(this,t);break}case R.AFTER_BODY:{xs(this,t);break}case R.AFTER_AFTER_BODY:{Xa(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Aw(this,t);return}switch(this.insertionMode){case R.INITIAL:{fi(this,t);break}case R.BEFORE_HTML:{Ri(this,t);break}case R.BEFORE_HEAD:{Li(this,t);break}case R.IN_HEAD:{Pi(this,t);break}case R.IN_HEAD_NO_SCRIPT:{Oi(this,t);break}case R.AFTER_HEAD:{Fi(this,t);break}case R.TEXT:{this._insertCharacters(t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{$o(this,t);break}case R.IN_COLUMN_GROUP:{ys(this,t);break}case R.AFTER_BODY:{xs(this,t);break}case R.AFTER_AFTER_BODY:{Xa(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){al(this,t);return}switch(this.insertionMode){case R.INITIAL:case R.BEFORE_HTML:case R.BEFORE_HEAD:case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:case R.IN_BODY:case R.IN_TABLE:case R.IN_CAPTION:case R.IN_COLUMN_GROUP:case R.IN_TABLE_BODY:case R.IN_ROW:case R.IN_CELL:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:case R.IN_TEMPLATE:case R.IN_FRAMESET:case R.AFTER_FRAMESET:{al(this,t);break}case R.IN_TABLE_TEXT:{mi(this,t);break}case R.AFTER_BODY:{tk(this,t);break}case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{nk(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case R.INITIAL:{rk(this,t);break}case R.BEFORE_HEAD:case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:{this._err(t,j.misplacedDoctype);break}case R.IN_TABLE_TEXT:{mi(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,j.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?ww(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case R.INITIAL:{fi(this,t);break}case R.BEFORE_HTML:{ik(this,t);break}case R.BEFORE_HEAD:{sk(this,t);break}case R.IN_HEAD:{Qt(this,t);break}case R.IN_HEAD_NO_SCRIPT:{lk(this,t);break}case R.AFTER_HEAD:{hk(this,t);break}case R.IN_BODY:{lt(this,t);break}case R.IN_TABLE:{Yr(this,t);break}case R.IN_TABLE_TEXT:{mi(this,t);break}case R.IN_CAPTION:{ow(this,t);break}case R.IN_COLUMN_GROUP:{F0(this,t);break}case R.IN_TABLE_BODY:{Xs(this,t);break}case R.IN_ROW:{Ks(this,t);break}case R.IN_CELL:{cw(this,t);break}case R.IN_SELECT:{k4(this,t);break}case R.IN_SELECT_IN_TABLE:{dw(this,t);break}case R.IN_TEMPLATE:{mw(this,t);break}case R.AFTER_BODY:{gw(this,t);break}case R.IN_FRAMESET:{bw(this,t);break}case R.AFTER_FRAMESET:{xw(this,t);break}case R.AFTER_AFTER_BODY:{Ew(this,t);break}case R.AFTER_AFTER_FRAMESET:{vw(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Sw(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case R.INITIAL:{fi(this,t);break}case R.BEFORE_HTML:{ak(this,t);break}case R.BEFORE_HEAD:{ok(this,t);break}case R.IN_HEAD:{uk(this,t);break}case R.IN_HEAD_NO_SCRIPT:{ck(this,t);break}case R.AFTER_HEAD:{dk(this,t);break}case R.IN_BODY:{Ws(this,t);break}case R.TEXT:{Qk(this,t);break}case R.IN_TABLE:{Zi(this,t);break}case R.IN_TABLE_TEXT:{mi(this,t);break}case R.IN_CAPTION:{uw(this,t);break}case R.IN_COLUMN_GROUP:{lw(this,t);break}case R.IN_TABLE_BODY:{sl(this,t);break}case R.IN_ROW:{A4(this,t);break}case R.IN_CELL:{hw(this,t);break}case R.IN_SELECT:{w4(this,t);break}case R.IN_SELECT_IN_TABLE:{fw(this,t);break}case R.IN_TEMPLATE:{pw(this,t);break}case R.AFTER_BODY:{C4(this,t);break}case R.IN_FRAMESET:{yw(this,t);break}case R.AFTER_FRAMESET:{Tw(this,t);break}case R.AFTER_AFTER_BODY:{Xa(this,t);break}}}onEof(t){switch(this.insertionMode){case R.INITIAL:{fi(this,t);break}case R.BEFORE_HTML:{Ri(this,t);break}case R.BEFORE_HEAD:{Li(this,t);break}case R.IN_HEAD:{Pi(this,t);break}case R.IN_HEAD_NO_SCRIPT:{Oi(this,t);break}case R.AFTER_HEAD:{Fi(this,t);break}case R.IN_BODY:case R.IN_TABLE:case R.IN_CAPTION:case R.IN_COLUMN_GROUP:case R.IN_TABLE_BODY:case R.IN_ROW:case R.IN_CELL:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:{x4(this,t);break}case R.TEXT:{Zk(this,t);break}case R.IN_TABLE_TEXT:{mi(this,t);break}case R.IN_TEMPLATE:{S4(this,t);break}case R.AFTER_BODY:case R.IN_FRAMESET:case R.AFTER_FRAMESET:case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{O0(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===C.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:case R.TEXT:case R.IN_COLUMN_GROUP:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:case R.IN_FRAMESET:case R.AFTER_FRAMESET:{this._insertCharacters(t);break}case R.IN_BODY:case R.IN_CAPTION:case R.IN_CELL:case R.IN_TEMPLATE:case R.AFTER_BODY:case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{m4(this,t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{$o(this,t);break}case R.IN_TABLE_TEXT:{T4(this,t);break}}}}function XA(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):y4(e,t),n}function KA(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function QA(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),u=o&&a>=GA;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=ZA(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function ZA(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function JA(e,t,n){const r=e.treeAdapter.getTagName(t),i=ni(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===f.TEMPLATE&&a===X.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function ek(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function P0(e,t){for(let n=0;n<YA;n++){const r=XA(e,t);if(!r)break;const i=KA(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const a=QA(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&JA(e,s,a),ek(e,i,r)}}function al(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function tk(e,t){e._appendCommentNode(t,e.openElements.items[0])}function nk(e,t){e._appendCommentNode(t,e.document)}function O0(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function rk(e,t){e._setDocumentType(t);const n=t.forceQuirks?Pt.QUIRKS:RA(t);MA(t)||e._err(t,j.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=R.BEFORE_HTML}function fi(e,t){e._err(t,j.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Pt.QUIRKS),e.insertionMode=R.BEFORE_HTML,e._processToken(t)}function ik(e,t){t.tagID===f.HTML?(e._insertElement(t,X.HTML),e.insertionMode=R.BEFORE_HEAD):Ri(e,t)}function ak(e,t){const n=t.tagID;(n===f.HTML||n===f.HEAD||n===f.BODY||n===f.BR)&&Ri(e,t)}function Ri(e,t){e._insertFakeRootElement(),e.insertionMode=R.BEFORE_HEAD,e._processToken(t)}function sk(e,t){switch(t.tagID){case f.HTML:{lt(e,t);break}case f.HEAD:{e._insertElement(t,X.HTML),e.headElement=e.openElements.current,e.insertionMode=R.IN_HEAD;break}default:Li(e,t)}}function ok(e,t){const n=t.tagID;n===f.HEAD||n===f.BODY||n===f.HTML||n===f.BR?Li(e,t):e._err(t,j.endTagWithoutMatchingOpenElement)}function Li(e,t){e._insertFakeElement(z.HEAD,f.HEAD),e.headElement=e.openElements.current,e.insertionMode=R.IN_HEAD,e._processToken(t)}function Qt(e,t){switch(t.tagID){case f.HTML:{lt(e,t);break}case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case f.TITLE:{e._switchToTextParsing(t,Ye.RCDATA);break}case f.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ye.RAWTEXT):(e._insertElement(t,X.HTML),e.insertionMode=R.IN_HEAD_NO_SCRIPT);break}case f.NOFRAMES:case f.STYLE:{e._switchToTextParsing(t,Ye.RAWTEXT);break}case f.SCRIPT:{e._switchToTextParsing(t,Ye.SCRIPT_DATA);break}case f.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=R.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(R.IN_TEMPLATE);break}case f.HEAD:{e._err(t,j.misplacedStartTagForHeadElement);break}default:Pi(e,t)}}function uk(e,t){switch(t.tagID){case f.HEAD:{e.openElements.pop(),e.insertionMode=R.AFTER_HEAD;break}case f.BODY:case f.BR:case f.HTML:{Pi(e,t);break}case f.TEMPLATE:{Er(e,t);break}default:e._err(t,j.endTagWithoutMatchingOpenElement)}}function Er(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==f.TEMPLATE&&e._err(t,j.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,j.endTagWithoutMatchingOpenElement)}function Pi(e,t){e.openElements.pop(),e.insertionMode=R.AFTER_HEAD,e._processToken(t)}function lk(e,t){switch(t.tagID){case f.HTML:{lt(e,t);break}case f.BASEFONT:case f.BGSOUND:case f.HEAD:case f.LINK:case f.META:case f.NOFRAMES:case f.STYLE:{Qt(e,t);break}case f.NOSCRIPT:{e._err(t,j.nestedNoscriptInHead);break}default:Oi(e,t)}}function ck(e,t){switch(t.tagID){case f.NOSCRIPT:{e.openElements.pop(),e.insertionMode=R.IN_HEAD;break}case f.BR:{Oi(e,t);break}default:e._err(t,j.endTagWithoutMatchingOpenElement)}}function Oi(e,t){const n=t.type===Ae.EOF?j.openElementsLeftAfterEof:j.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=R.IN_HEAD,e._processToken(t)}function hk(e,t){switch(t.tagID){case f.HTML:{lt(e,t);break}case f.BODY:{e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=R.IN_BODY;break}case f.FRAMESET:{e._insertElement(t,X.HTML),e.insertionMode=R.IN_FRAMESET;break}case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:case f.NOFRAMES:case f.SCRIPT:case f.STYLE:case f.TEMPLATE:case f.TITLE:{e._err(t,j.abandonedHeadElementChild),e.openElements.push(e.headElement,f.HEAD),Qt(e,t),e.openElements.remove(e.headElement);break}case f.HEAD:{e._err(t,j.misplacedStartTagForHeadElement);break}default:Fi(e,t)}}function dk(e,t){switch(t.tagID){case f.BODY:case f.HTML:case f.BR:{Fi(e,t);break}case f.TEMPLATE:{Er(e,t);break}default:e._err(t,j.endTagWithoutMatchingOpenElement)}}function Fi(e,t){e._insertFakeElement(z.BODY,f.BODY),e.insertionMode=R.IN_BODY,Gs(e,t)}function Gs(e,t){switch(t.type){case Ae.CHARACTER:{p4(e,t);break}case Ae.WHITESPACE_CHARACTER:{m4(e,t);break}case Ae.COMMENT:{al(e,t);break}case Ae.START_TAG:{lt(e,t);break}case Ae.END_TAG:{Ws(e,t);break}case Ae.EOF:{x4(e,t);break}}}function m4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function p4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function fk(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function mk(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function pk(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,X.HTML),e.insertionMode=R.IN_FRAMESET)}function gk(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function bk(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&il.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,X.HTML)}function yk(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function xk(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,X.HTML),n||(e.formElement=e.openElements.current))}function Tk(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===f.LI&&i===f.LI||(n===f.DD||n===f.DT)&&(i===f.DD||i===f.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==f.ADDRESS&&i!==f.DIV&&i!==f.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function Ek(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.tokenizer.state=Ye.PLAINTEXT}function vk(e,t){e.openElements.hasInScope(f.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.framesetOk=!1}function Ak(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(z.A);n&&(P0(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function kk(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function wk(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(f.NOBR)&&(P0(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Sk(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Ck(e,t){e.treeAdapter.getDocumentMode(e.document)!==Pt.QUIRKS&&e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=R.IN_TABLE}function g4(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function b4(e){const t=a4(e,fr.TYPE);return t!=null&&t.toLowerCase()===$A}function Nk(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),b4(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Ik(e,t){e._appendElement(t,X.HTML),t.ackSelfClosing=!0}function _k(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Dk(e,t){t.tagName=z.IMG,t.tagID=f.IMG,g4(e,t)}function Mk(e,t){e._insertElement(t,X.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ye.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=R.TEXT}function Rk(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ye.RAWTEXT)}function Lk(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ye.RAWTEXT)}function zd(e,t){e._switchToTextParsing(t,Ye.RAWTEXT)}function Pk(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===R.IN_TABLE||e.insertionMode===R.IN_CAPTION||e.insertionMode===R.IN_TABLE_BODY||e.insertionMode===R.IN_ROW||e.insertionMode===R.IN_CELL?R.IN_SELECT_IN_TABLE:R.IN_SELECT}function Ok(e,t){e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function Fk(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,X.HTML)}function Bk(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(f.RTC),e._insertElement(t,X.HTML)}function zk(e,t){e._reconstructActiveFormattingElements(),h4(t),L0(t),t.selfClosing?e._appendElement(t,X.MATHML):e._insertElement(t,X.MATHML),t.ackSelfClosing=!0}function Hk(e,t){e._reconstructActiveFormattingElements(),d4(t),L0(t),t.selfClosing?e._appendElement(t,X.SVG):e._insertElement(t,X.SVG),t.ackSelfClosing=!0}function Hd(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function lt(e,t){switch(t.tagID){case f.I:case f.S:case f.B:case f.U:case f.EM:case f.TT:case f.BIG:case f.CODE:case f.FONT:case f.SMALL:case f.STRIKE:case f.STRONG:{kk(e,t);break}case f.A:{Ak(e,t);break}case f.H1:case f.H2:case f.H3:case f.H4:case f.H5:case f.H6:{bk(e,t);break}case f.P:case f.DL:case f.OL:case f.UL:case f.DIV:case f.DIR:case f.NAV:case f.MAIN:case f.MENU:case f.ASIDE:case f.CENTER:case f.FIGURE:case f.FOOTER:case f.HEADER:case f.HGROUP:case f.DIALOG:case f.DETAILS:case f.ADDRESS:case f.ARTICLE:case f.SEARCH:case f.SECTION:case f.SUMMARY:case f.FIELDSET:case f.BLOCKQUOTE:case f.FIGCAPTION:{gk(e,t);break}case f.LI:case f.DD:case f.DT:{Tk(e,t);break}case f.BR:case f.IMG:case f.WBR:case f.AREA:case f.EMBED:case f.KEYGEN:{g4(e,t);break}case f.HR:{_k(e,t);break}case f.RB:case f.RTC:{Fk(e,t);break}case f.RT:case f.RP:{Bk(e,t);break}case f.PRE:case f.LISTING:{yk(e,t);break}case f.XMP:{Rk(e,t);break}case f.SVG:{Hk(e,t);break}case f.HTML:{fk(e,t);break}case f.BASE:case f.LINK:case f.META:case f.STYLE:case f.TITLE:case f.SCRIPT:case f.BGSOUND:case f.BASEFONT:case f.TEMPLATE:{Qt(e,t);break}case f.BODY:{mk(e,t);break}case f.FORM:{xk(e,t);break}case f.NOBR:{wk(e,t);break}case f.MATH:{zk(e,t);break}case f.TABLE:{Ck(e,t);break}case f.INPUT:{Nk(e,t);break}case f.PARAM:case f.TRACK:case f.SOURCE:{Ik(e,t);break}case f.IMAGE:{Dk(e,t);break}case f.BUTTON:{vk(e,t);break}case f.APPLET:case f.OBJECT:case f.MARQUEE:{Sk(e,t);break}case f.IFRAME:{Lk(e,t);break}case f.SELECT:{Pk(e,t);break}case f.OPTION:case f.OPTGROUP:{Ok(e,t);break}case f.NOEMBED:case f.NOFRAMES:{zd(e,t);break}case f.FRAMESET:{pk(e,t);break}case f.TEXTAREA:{Mk(e,t);break}case f.NOSCRIPT:{e.options.scriptingEnabled?zd(e,t):Hd(e,t);break}case f.PLAINTEXT:{Ek(e,t);break}case f.COL:case f.TH:case f.TD:case f.TR:case f.HEAD:case f.FRAME:case f.TBODY:case f.TFOOT:case f.THEAD:case f.CAPTION:case f.COLGROUP:break;default:Hd(e,t)}}function Uk(e,t){if(e.openElements.hasInScope(f.BODY)&&(e.insertionMode=R.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function jk(e,t){e.openElements.hasInScope(f.BODY)&&(e.insertionMode=R.AFTER_BODY,C4(e,t))}function Vk(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function qk(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(f.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(f.FORM):n&&e.openElements.remove(n))}function $k(e){e.openElements.hasInButtonScope(f.P)||e._insertFakeElement(z.P,f.P),e._closePElement()}function Yk(e){e.openElements.hasInListItemScope(f.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(f.LI),e.openElements.popUntilTagNamePopped(f.LI))}function Gk(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Wk(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Xk(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Kk(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(z.BR,f.BR),e.openElements.pop(),e.framesetOk=!1}function y4(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==f.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function Ws(e,t){switch(t.tagID){case f.A:case f.B:case f.I:case f.S:case f.U:case f.EM:case f.TT:case f.BIG:case f.CODE:case f.FONT:case f.NOBR:case f.SMALL:case f.STRIKE:case f.STRONG:{P0(e,t);break}case f.P:{$k(e);break}case f.DL:case f.UL:case f.OL:case f.DIR:case f.DIV:case f.NAV:case f.PRE:case f.MAIN:case f.MENU:case f.ASIDE:case f.BUTTON:case f.CENTER:case f.FIGURE:case f.FOOTER:case f.HEADER:case f.HGROUP:case f.DIALOG:case f.ADDRESS:case f.ARTICLE:case f.DETAILS:case f.SEARCH:case f.SECTION:case f.SUMMARY:case f.LISTING:case f.FIELDSET:case f.BLOCKQUOTE:case f.FIGCAPTION:{Vk(e,t);break}case f.LI:{Yk(e);break}case f.DD:case f.DT:{Gk(e,t);break}case f.H1:case f.H2:case f.H3:case f.H4:case f.H5:case f.H6:{Wk(e);break}case f.BR:{Kk(e);break}case f.BODY:{Uk(e,t);break}case f.HTML:{jk(e,t);break}case f.FORM:{qk(e);break}case f.APPLET:case f.OBJECT:case f.MARQUEE:{Xk(e,t);break}case f.TEMPLATE:{Er(e,t);break}default:y4(e,t)}}function x4(e,t){e.tmplInsertionModeStack.length>0?S4(e,t):O0(e,t)}function Qk(e,t){var n;t.tagID===f.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Zk(e,t){e._err(t,j.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function $o(e,t){if(e.openElements.currentTagId!==void 0&&f4.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=R.IN_TABLE_TEXT,t.type){case Ae.CHARACTER:{E4(e,t);break}case Ae.WHITESPACE_CHARACTER:{T4(e,t);break}}else ma(e,t)}function Jk(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,X.HTML),e.insertionMode=R.IN_CAPTION}function ew(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=R.IN_COLUMN_GROUP}function tw(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(z.COLGROUP,f.COLGROUP),e.insertionMode=R.IN_COLUMN_GROUP,F0(e,t)}function nw(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=R.IN_TABLE_BODY}function rw(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(z.TBODY,f.TBODY),e.insertionMode=R.IN_TABLE_BODY,Xs(e,t)}function iw(e,t){e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function aw(e,t){b4(t)?e._appendElement(t,X.HTML):ma(e,t),t.ackSelfClosing=!0}function sw(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,X.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Yr(e,t){switch(t.tagID){case f.TD:case f.TH:case f.TR:{rw(e,t);break}case f.STYLE:case f.SCRIPT:case f.TEMPLATE:{Qt(e,t);break}case f.COL:{tw(e,t);break}case f.FORM:{sw(e,t);break}case f.TABLE:{iw(e,t);break}case f.TBODY:case f.TFOOT:case f.THEAD:{nw(e,t);break}case f.INPUT:{aw(e,t);break}case f.CAPTION:{Jk(e,t);break}case f.COLGROUP:{ew(e,t);break}default:ma(e,t)}}function Zi(e,t){switch(t.tagID){case f.TABLE:{e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode());break}case f.TEMPLATE:{Er(e,t);break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TBODY:case f.TD:case f.TFOOT:case f.TH:case f.THEAD:case f.TR:break;default:ma(e,t)}}function ma(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Gs(e,t),e.fosterParentingEnabled=n}function T4(e,t){e.pendingCharacterTokens.push(t)}function E4(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function mi(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)ma(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const v4=new Set([f.CAPTION,f.COL,f.COLGROUP,f.TBODY,f.TD,f.TFOOT,f.TH,f.THEAD,f.TR]);function ow(e,t){const n=t.tagID;v4.has(n)?e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=R.IN_TABLE,Yr(e,t)):lt(e,t)}function uw(e,t){const n=t.tagID;switch(n){case f.CAPTION:case f.TABLE:{e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=R.IN_TABLE,n===f.TABLE&&Zi(e,t));break}case f.BODY:case f.COL:case f.COLGROUP:case f.HTML:case f.TBODY:case f.TD:case f.TFOOT:case f.TH:case f.THEAD:case f.TR:break;default:Ws(e,t)}}function F0(e,t){switch(t.tagID){case f.HTML:{lt(e,t);break}case f.COL:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case f.TEMPLATE:{Qt(e,t);break}default:ys(e,t)}}function lw(e,t){switch(t.tagID){case f.COLGROUP:{e.openElements.currentTagId===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=R.IN_TABLE);break}case f.TEMPLATE:{Er(e,t);break}case f.COL:break;default:ys(e,t)}}function ys(e,t){e.openElements.currentTagId===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=R.IN_TABLE,e._processToken(t))}function Xs(e,t){switch(t.tagID){case f.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,X.HTML),e.insertionMode=R.IN_ROW;break}case f.TH:case f.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(z.TR,f.TR),e.insertionMode=R.IN_ROW,Ks(e,t);break}case f.CAPTION:case f.COL:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE,Yr(e,t));break}default:Yr(e,t)}}function sl(e,t){const n=t.tagID;switch(t.tagID){case f.TBODY:case f.TFOOT:case f.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE);break}case f.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE,Zi(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TD:case f.TH:case f.TR:break;default:Zi(e,t)}}function Ks(e,t){switch(t.tagID){case f.TH:case f.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,X.HTML),e.insertionMode=R.IN_CELL,e.activeFormattingElements.insertMarker();break}case f.CAPTION:case f.COL:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:case f.TR:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE_BODY,Xs(e,t));break}default:Yr(e,t)}}function A4(e,t){switch(t.tagID){case f.TR:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE_BODY);break}case f.TABLE:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE_BODY,sl(e,t));break}case f.TBODY:case f.TFOOT:case f.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(f.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE_BODY,sl(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TD:case f.TH:break;default:Zi(e,t)}}function cw(e,t){const n=t.tagID;v4.has(n)?(e.openElements.hasInTableScope(f.TD)||e.openElements.hasInTableScope(f.TH))&&(e._closeTableCell(),Ks(e,t)):lt(e,t)}function hw(e,t){const n=t.tagID;switch(n){case f.TD:case f.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=R.IN_ROW);break}case f.TABLE:case f.TBODY:case f.TFOOT:case f.THEAD:case f.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),A4(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:break;default:Ws(e,t)}}function k4(e,t){switch(t.tagID){case f.HTML:{lt(e,t);break}case f.OPTION:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case f.OPTGROUP:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case f.HR:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop(),e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case f.INPUT:case f.KEYGEN:case f.TEXTAREA:case f.SELECT:{e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),t.tagID!==f.SELECT&&e._processStartTag(t));break}case f.SCRIPT:case f.TEMPLATE:{Qt(e,t);break}}}function w4(e,t){switch(t.tagID){case f.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===f.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===f.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop();break}case f.OPTION:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop();break}case f.SELECT:{e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode());break}case f.TEMPLATE:{Er(e,t);break}}}function dw(e,t){const n=t.tagID;n===f.CAPTION||n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR||n===f.TD||n===f.TH?(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e._processStartTag(t)):k4(e,t)}function fw(e,t){const n=t.tagID;n===f.CAPTION||n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR||n===f.TD||n===f.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e.onEndTag(t)):w4(e,t)}function mw(e,t){switch(t.tagID){case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:case f.NOFRAMES:case f.SCRIPT:case f.STYLE:case f.TEMPLATE:case f.TITLE:{Qt(e,t);break}case f.CAPTION:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:{e.tmplInsertionModeStack[0]=R.IN_TABLE,e.insertionMode=R.IN_TABLE,Yr(e,t);break}case f.COL:{e.tmplInsertionModeStack[0]=R.IN_COLUMN_GROUP,e.insertionMode=R.IN_COLUMN_GROUP,F0(e,t);break}case f.TR:{e.tmplInsertionModeStack[0]=R.IN_TABLE_BODY,e.insertionMode=R.IN_TABLE_BODY,Xs(e,t);break}case f.TD:case f.TH:{e.tmplInsertionModeStack[0]=R.IN_ROW,e.insertionMode=R.IN_ROW,Ks(e,t);break}default:e.tmplInsertionModeStack[0]=R.IN_BODY,e.insertionMode=R.IN_BODY,lt(e,t)}}function pw(e,t){t.tagID===f.TEMPLATE&&Er(e,t)}function S4(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):O0(e,t)}function gw(e,t){t.tagID===f.HTML?lt(e,t):xs(e,t)}function C4(e,t){var n;if(t.tagID===f.HTML){if(e.fragmentContext||(e.insertionMode=R.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===f.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else xs(e,t)}function xs(e,t){e.insertionMode=R.IN_BODY,Gs(e,t)}function bw(e,t){switch(t.tagID){case f.HTML:{lt(e,t);break}case f.FRAMESET:{e._insertElement(t,X.HTML);break}case f.FRAME:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case f.NOFRAMES:{Qt(e,t);break}}}function yw(e,t){t.tagID===f.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==f.FRAMESET&&(e.insertionMode=R.AFTER_FRAMESET))}function xw(e,t){switch(t.tagID){case f.HTML:{lt(e,t);break}case f.NOFRAMES:{Qt(e,t);break}}}function Tw(e,t){t.tagID===f.HTML&&(e.insertionMode=R.AFTER_AFTER_FRAMESET)}function Ew(e,t){t.tagID===f.HTML?lt(e,t):Xa(e,t)}function Xa(e,t){e.insertionMode=R.IN_BODY,Gs(e,t)}function vw(e,t){switch(t.tagID){case f.HTML:{lt(e,t);break}case f.NOFRAMES:{Qt(e,t);break}}}function Aw(e,t){t.chars=Be,e._insertCharacters(t)}function kw(e,t){e._insertCharacters(t),e.framesetOk=!1}function N4(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==X.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function ww(e,t){if(HA(t))N4(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===X.MATHML?h4(t):r===X.SVG&&(UA(t),d4(t)),L0(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Sw(e,t){if(t.tagID===f.P||t.tagID===f.BR){N4(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===X.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}z.AREA,z.BASE,z.BASEFONT,z.BGSOUND,z.BR,z.COL,z.EMBED,z.FRAME,z.HR,z.IMG,z.INPUT,z.KEYGEN,z.LINK,z.META,z.PARAM,z.SOURCE,z.TRACK,z.WBR;const Qs=I4("end"),fn=I4("start");function I4(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function _4(e){const t=fn(e),n=Qs(e);if(t&&n)return{start:t,end:n}}const Cw=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Nw=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Ud={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function D4(e,t){const n=Bw(e),r=e4("type",{handlers:{root:Iw,element:_w,text:Dw,comment:R4,doctype:Mw,raw:Lw},unknown:Pw}),i={parser:n?new Bd(Ud):Bd.getFragmentParser(void 0,Ud),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),ri(i,fn());const a=n?i.parser.document:i.parser.getFragment(),s=zv(a,{file:i.options.file});return i.stitches&&qr(s,"comment",function(o,u,l){const c=o;if(c.value.stitch&&l&&u!==void 0){const h=l.children;return h[u]=c.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function M4(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Iw(e,t){M4(e.children,t)}function _w(e,t){Ow(e,t),M4(e.children,t),Fw(e,t)}function Dw(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Ae.CHARACTER,chars:e.value,location:pa(e)};ri(t,fn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Mw(e,t){const n={type:Ae.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:pa(e)};ri(t,fn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Rw(e,t){t.stitches=!0;const n=zw(e);if("children"in e&&"children"in n){const r=D4({type:"root",children:e.children},t.options);n.children=r.children}R4({type:"comment",value:{stitch:n}},t)}function R4(e,t){const n=e.value,r={type:Ae.COMMENT,data:n,location:pa(e)};ri(t,fn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Lw(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,L4(t,fn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Cw,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Pw(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Rw(n,t);else{let r="";throw Nw.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function ri(e,t){L4(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Ye.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function L4(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Ow(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Ye.PLAINTEXT)return;ri(t,fn(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:rn.html;i===rn.html&&n==="svg"&&(i=rn.svg);const a=qv({...e,children:[]},{space:i===rn.svg?"svg":"html"}),s={type:Ae.START_TAG,tagName:n,tagID:ni(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:pa(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Fw(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Zv.includes(n)||t.parser.tokenizer.state===Ye.PLAINTEXT)return;ri(t,Qs(e));const r={type:Ae.END_TAG,tagName:n,tagID:ni(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:pa(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Ye.RCDATA||t.parser.tokenizer.state===Ye.RAWTEXT||t.parser.tokenizer.state===Ye.SCRIPT_DATA)&&(t.parser.tokenizer.state=Ye.DATA)}function Bw(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function pa(e){const t=fn(e)||{line:void 0,column:void 0,offset:void 0},n=Qs(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function zw(e){return"children"in e?mr({...e,children:[]}):mr(e)}function Hw(e){return function(t,n){return D4(t,{...e,file:n})}}const ar=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],jd={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...ar,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...ar],h2:[["className","sr-only"]],img:[...ar,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...ar,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...ar],table:[...ar],ul:[...ar,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Bn={}.hasOwnProperty;function Uw(e,t){let n={type:"root",children:[]};const r={schema:t?{...jd,...t}:jd,stack:[]},i=P4(r,e);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function P4(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return jw(e,n);case"doctype":return Vw(e,n);case"element":return qw(e,n);case"root":return $w(e,n);case"text":return Yw(e,n)}}}function jw(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),a={type:"comment",value:r<0?n:n.slice(0,r)};return ga(a,t),a}}function Vw(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return ga(n,t),n}}function qw(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=O4(e,t.children),i=Gw(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&Bn.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let u=-1;for(a=!1;++u<o.length;)e.stack.includes(o[u])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const s={type:"element",tagName:n,properties:i,children:r};return ga(s,t),s}function $w(e,t){const r={type:"root",children:O4(e,t.children)};return ga(r,t),r}function Yw(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return ga(r,t),r}function O4(e,t){const n=[];if(Array.isArray(t)){const r=t;let i=-1;for(;++i<r.length;){const a=P4(e,r[i]);a&&(Array.isArray(a)?n.push(...a):n.push(a))}}return n}function Gw(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&Bn.call(r,n)?r[n]:void 0,s=r&&Bn.call(r,"*")?r["*"]:void 0,o=t&&typeof t=="object"?t:{},u={};let l;for(l in o)if(Bn.call(o,l)){const c=o[l];let h=Vd(e,qd(a,l),l,c);h==null&&(h=Vd(e,qd(s,l),l,c)),h!=null&&(u[l]=h)}if(i&&Bn.call(i,n)){const c=i[n];for(l in c)Bn.call(c,l)&&!Bn.call(u,l)&&(u[l]=c[l])}return u}function Vd(e,t,n,r){return t?Array.isArray(r)?Ww(e,t,n,r):F4(e,t,n,r):void 0}function Ww(e,t,n,r){let i=-1;const a=[];for(;++i<r.length;){const s=F4(e,t,n,r[i]);(typeof s=="number"||typeof s=="string")&&a.push(s)}return a}function F4(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&Xw(e,n,r)){if(typeof t=="object"&&t.length>1){let i=!1,a=0;for(;++a<t.length;){const s=t[a];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(r))){i=!0;break}}else if(s===r){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function Xw(e,t,n){const r=e.schema.protocols&&Bn.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const i=String(n),a=i.indexOf(":"),s=i.indexOf("?"),o=i.indexOf("#"),u=i.indexOf("/");if(a<0||u>-1&&a>u||s>-1&&a>s||o>-1&&a>o)return!0;let l=-1;for(;++l<r.length;){const c=r[l];if(a===c.length&&i.slice(0,c.length)===c)return!0}return!1}function ga(e,t){const n=_4(t);t.data&&(e.data=mr(t.data)),n&&(e.position=n)}function qd(e,t){let n,r=-1;if(e)for(;++r<e.length;){const i=e[r],a=typeof i=="string"?i:i[0];if(a===t)return i;a==="data*"&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function Kw(e){return function(t){return Uw(t,e)}}const Tn={eof:null,asterisk:42,underscore:95,tilde:126},Gr={attentionSideAfter:2,characterGroupPunctuation:2,characterGroupWhitespace:1},Jt={data:"data",characterEscape:"characterEscape",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",strong:"strong",strongSequence:"strongSequence",strongText:"strongText"},ft=Zn(/[A-Za-z]/),ut=Zn(/[\dA-Za-z]/),Qw=Zn(/[#-'*+\--9=?A-Z^-~]/);function Ts(e){return e!==null&&(e<32||e===127)}const ol=Zn(/\d/),Zw=Zn(/[\dA-Fa-f]/),Jw=Zn(/[!-/:-@[-`{-~]/);function le(e){return e!==null&&e<-2}function De(e){return e!==null&&(e<0||e===32)}function we(e){return e===-2||e===-1||e===32}const Zs=Zn(new RegExp("\\p{P}|\\p{S}","u")),pr=Zn(/\s/);function Zn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function eS(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function tS(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function nS(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function rS(e){return eS(e)?"ambiguous":tS(e)?"fullwidth":e===8361||e>=65377&&e<=65470||e>=65474&&e<=65479||e>=65482&&e<=65487||e>=65490&&e<=65495||e>=65498&&e<=65500||e>=65512&&e<=65518?"halfwidth":e>=32&&e<=126||e===162||e===163||e===165||e===166||e===172||e===175||e>=10214&&e<=10221||e===10629||e===10630?"narrow":nS(e)?"wide":"neutral"}function iS(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function aS(e){return iS(e),rS(e)}var sS=Object.defineProperty,oS=(e,t,n)=>t in e?sS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uS=(e,t,n)=>oS(e,t+"",n);function lS(e){return new RegExp("^\\p{Emoji_Presentation}","u").test(String.fromCodePoint(e))}function cS(e){if(!e||e<4352)return!1;switch(aS(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!lS(e);case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999?null:!1;case"neutral":return new RegExp("^\\p{sc=Hangul}","u").test(String.fromCodePoint(e))}}function hS(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function dS(e){return e!==null&&e>=65024&&e<=65038}var fS=B4(new RegExp("\\p{P}|\\p{S}","u")),mS=B4(/\s/);function B4(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCodePoint(n))}}var _t;(e=>{e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(_t||(_t={}));function Ur(e){if(e===Tn.eof||De(e)||mS(e))return Gr.characterGroupWhitespace;let t=0;if(e>=4352){if(dS(e))return _t.nonEmojiGeneralUseVS;switch(cS(e)){case null:return _t.ivs;case!0:t|=_t.cjk;break}}return fS(e)&&(t|=Gr.characterGroupPunctuation),t}function z4(e,t,n){if(!yS(e))return e;const r=t(),i=Ur(r);return!r||Ji(i)?e:hS(r,n)?_t.cjkPunctuation:pS(i)}function pS(e){return e&~_t.ivs}function Ji(e){return!!(e&Gr.characterGroupWhitespace)}function Es(e){return(e&_t.cjkPunctuation)===Gr.characterGroupPunctuation}function ul(e){return!!(e&_t.cjk)}function gS(e){return e===_t.ivs}function bS(e){return!!(e&_t.cjkOrIvs)}function yS(e){return e===_t.nonEmojiGeneralUseVS}function $d(e){return!!(e&_t.spaceOrPunctuation)}function H4(e){return!!(e&&e>=55296&&e<=56319)}function U4(e){return!!(e&&e>=56320&&e<=57343)}function j4(e,t,n){if(t._bufferIndex<2)return e;const i=n({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return i&&i>=65536?i:e}function xS(e,t,n){const r=e>=65536?2:1;if(t._bufferIndex<1+r)return null;const i=t._bufferIndex-r-2,a=n({start:{...t,_bufferIndex:i>=0?i:0},end:{...t,_bufferIndex:t._bufferIndex-r}}),s=a.charCodeAt(a.length-1);if(Number.isNaN(s))return null;if(a.length<2||s<56320||57343<s)return s;const o=a.codePointAt(0);return o&&o>=65536?o:s}var V4=class{constructor(e,t,n){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=n,uS(this,"cachedValue")}value(){return this.cachedValue===void 0&&(this.cachedValue=xS(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function q4(e,t,n){const r=n({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return r&&r>=65536?r:e}function st(e,t,n,r){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function at(e,t){return e.length>0?(st(e,e.length,0,t),e):t}function ii(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var Yo={name:"attention",resolveAll:TS,tokenize:ES};function TS(e,t){let n=-1,r,i,a,s,o,u,l,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},d={...e[n][1].start};Yd(h,-u),Yd(d,u),s={type:u>1?Jt.strongSequence:Jt.emphasisSequence,start:h,end:{...e[r][1].end}},o={type:u>1?Jt.strongSequence:Jt.emphasisSequence,start:{...e[n][1].start},end:d},a={type:u>1?Jt.strongText:Jt.emphasisText,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?Jt.strong:Jt.emphasis,start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=at(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=at(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),t.parser.constructs.insideSpan.null,l=at(l,ii(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=at(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=at(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,st(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function ES(e,t){const n=this.parser.constructs.attentionMarkers.null,{now:r,sliceSerialize:i,previous:a}=this,s=U4(a)?j4(a,r(),i):a,o=Ur(s),u=new V4(s,r(),i),l=z4(o,u.value.bind(u),s);let c;return h;function h(m){return c=m,e.enter("attentionSequence"),d(m)}function d(m){if(m===c)return e.consume(m),d;const y=e.exit("attentionSequence"),T=H4(m)?q4(m,r(),i):m,w=Ur(T),A=Es(l),E=A||Ji(l),S=Es(w),O=S||Ji(w),P=bS(l),D=!O||S&&(E||P)||n.includes(m),U=!E||A&&(O||ul(w))||n.includes(s);return y._open=!!(c===Tn.asterisk?D:D&&($d(l)||!U)),y._close=!!(c===Tn.asterisk?U:U&&($d(w)||!D)),t(m)}}function Yd(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function vS(){return{text:{[Tn.asterisk]:Yo,[Tn.underscore]:Yo},insideSpan:{null:[Yo]}}}function AS(){const e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(vS())}function kS(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{[Tn.tilde]:r},insideSpan:{null:[r]},attentionMarkers:{null:[Tn.tilde]}};function i(s,o){let u=-1;for(;++u<s.length;)if(s[u][0]==="enter"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._close){let l=u;for(;l--;)if(s[l][0]==="exit"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[l][1].end.offset-s[l][1].start.offset){s[u][1].type="strikethroughSequence",s[l][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[l][1].start),end:Object.assign({},s[u][1].end)},h={type:"strikethroughText",start:Object.assign({},s[l][1].end),end:Object.assign({},s[u][1].start)},d=[["enter",c,o],["enter",s[l][1],o],["exit",s[l][1],o],["enter",h,o]],m=o.parser.constructs.insideSpan.null;m&&st(d,d.length,0,ii(m,s.slice(l+1,u),o)),st(d,d.length,0,[["exit",h,o],["enter",s[u][1],o],["exit",s[u][1],o],["exit",c,o]]),st(s,l-1,u-l+3,d),u=l+d.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type=Jt.data);return s}function a(s,o,u){const{now:l,sliceSerialize:c,previous:h}=this,d=U4(h)?j4(h,l(),c):h,m=Ur(d),y=new V4(d,l(),c),T=z4(m,y.value.bind(y),d),w=this.events;let A=0;return E;function E(O){return d===Tn.tilde&&w[w.length-1][1].type!==Jt.characterEscape?u(O):(s.enter("strikethroughSequenceTemporary"),S(O))}function S(O){const P=Ur(d);if(O===Tn.tilde)return A>1?u(O):(s.consume(O),A++,S);if(A<2&&!n)return u(O);const D=s.exit("strikethroughSequenceTemporary"),U=H4(O)?q4(O,l(),c):O,q=Ur(U),B=Es(T)||Ji(T),V=Es(q)||Ji(q),ue=ul(T)||gS(P);return D._open=!V||q===Gr.attentionSideAfter&&(B||ue),D._close=!B||P===Gr.attentionSideAfter&&(V||ul(q)),o(O)}}}function wS(e){const t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(kS(e))}function Gd(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function SS(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function CS(e,t,n){const i=ua((n||{}).ignore||[]),a=NS(t);let s=-1;for(;++s<a.length;)a0(e,"text",o);function o(l,c){let h=-1,d;for(;++h<c.length;){const m=c[h],y=d?d.children:void 0;if(i(m,y?y.indexOf(m):void 0,d))return;d=m}if(d)return u(l,c)}function u(l,c){const h=c[c.length-1],d=a[s][0],m=a[s][1];let y=0;const w=h.children.indexOf(l);let A=!1,E=[];d.lastIndex=0;let S=d.exec(l.value);for(;S;){const O=S.index,P={index:S.index,input:S.input,stack:[...c,l]};let D=m(...S,P);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?d.lastIndex=O+1:(y!==O&&E.push({type:"text",value:l.value.slice(y,O)}),Array.isArray(D)?E.push(...D):D&&E.push(D),y=O+S[0].length,A=!0),!d.global)break;S=d.exec(l.value)}return A?(y<l.value.length&&E.push({type:"text",value:l.value.slice(y)}),h.children.splice(w,1,...E)):E=[l],w+E.length}}function NS(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([IS(i[0]),_S(i[1])])}return t}function IS(e){return typeof e=="string"?new RegExp(SS(e),"g"):e}function _S(e){return typeof e=="function"?e:function(){return e}}const Go="phrasing",Wo=["autolink","link","image","label"];function DS(){return{transforms:[BS],enter:{literalAutolink:RS,literalAutolinkEmail:Xo,literalAutolinkHttp:Xo,literalAutolinkWww:Xo},exit:{literalAutolink:FS,literalAutolinkEmail:OS,literalAutolinkHttp:LS,literalAutolinkWww:PS}}}function MS(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Go,notInConstruct:Wo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Go,notInConstruct:Wo},{character:":",before:"[ps]",after:"\\/",inConstruct:Go,notInConstruct:Wo}]}}function RS(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Xo(e){this.config.enter.autolinkProtocol.call(this,e)}function LS(e){this.config.exit.autolinkProtocol.call(this,e)}function PS(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function OS(e){this.config.exit.autolinkEmail.call(this,e)}function FS(e){this.exit(e)}function BS(e){CS(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,zS],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),HS]],{ignore:["link","linkReference"]})}function zS(e,t,n,r,i){let a="";if(!$4(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!US(n)))return!1;const s=jS(n+r);if(!s[0])return!1;const o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function HS(e,t,n,r){return!$4(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function US(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function jS(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Gd(e,"(");let a=Gd(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function $4(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||pr(n)||Zs(n))&&(!t||n!==47)}function Xt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Y4.peek=QS;function VS(){this.buffer()}function qS(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function $S(){this.buffer()}function YS(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function GS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Xt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function WS(e){this.exit(e)}function XS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Xt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function KS(e){this.exit(e)}function QS(){return"["}function Y4(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function ZS(){return{enter:{gfmFootnoteCallString:VS,gfmFootnoteCall:qS,gfmFootnoteDefinitionLabelString:$S,gfmFootnoteDefinition:YS},exit:{gfmFootnoteCallString:GS,gfmFootnoteCall:WS,gfmFootnoteDefinitionLabelString:XS,gfmFootnoteDefinition:KS}}}function JS(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Y4},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let u=o.move("[^");const l=a.enter("footnoteDefinition"),c=a.enter("label");return u+=o.move(a.safe(a.associationId(r),{before:u,after:"]"})),c(),u+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),u+=o.move((t?`
|
|
274
|
+
`:" ")+a.indentLines(a.containerFlow(r,o.current()),t?G4:eC))),l(),u}}function eC(e,t,n){return t===0?e:G4(e,t,n)}function G4(e,t,n){return(n?"":" ")+e}const tC=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];W4.peek=sC;function nC(){return{canContainEols:["delete"],enter:{strikethrough:iC},exit:{strikethrough:aC}}}function rC(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:tC}],handlers:{delete:W4}}}function iC(e){this.enter({type:"delete",children:[]},e)}function aC(e){this.exit(e)}function W4(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function sC(){return"~"}function oC(e){return e.length}function uC(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||oC,a=[],s=[],o=[],u=[];let l=0,c=-1;for(;++c<e.length;){const T=[],w=[];let A=-1;for(e[c].length>l&&(l=e[c].length);++A<e[c].length;){const E=lC(e[c][A]);if(n.alignDelimiters!==!1){const S=i(E);w[A]=S,(u[A]===void 0||S>u[A])&&(u[A]=S)}T.push(E)}s[c]=T,o[c]=w}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<l;)a[h]=Wd(r[h]);else{const T=Wd(r);for(;++h<l;)a[h]=T}h=-1;const d=[],m=[];for(;++h<l;){const T=a[h];let w="",A="";T===99?(w=":",A=":"):T===108?w=":":T===114&&(A=":");let E=n.alignDelimiters===!1?1:Math.max(1,u[h]-w.length-A.length);const S=w+"-".repeat(E)+A;n.alignDelimiters!==!1&&(E=w.length+E+A.length,E>u[h]&&(u[h]=E),m[h]=E),d[h]=S}s.splice(1,0,d),o.splice(1,0,m),c=-1;const y=[];for(;++c<s.length;){const T=s[c],w=o[c];h=-1;const A=[];for(;++h<l;){const E=T[h]||"";let S="",O="";if(n.alignDelimiters!==!1){const P=u[h]-(w[h]||0),D=a[h];D===114?S=" ".repeat(P):D===99?P%2?(S=" ".repeat(P/2+.5),O=" ".repeat(P/2-.5)):(S=" ".repeat(P/2),O=S):O=" ".repeat(P)}n.delimiterStart!==!1&&!h&&A.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&E==="")&&(n.delimiterStart!==!1||h)&&A.push(" "),n.alignDelimiters!==!1&&A.push(S),A.push(E),n.alignDelimiters!==!1&&A.push(O),n.padding!==!1&&A.push(" "),(n.delimiterEnd!==!1||h!==l-1)&&A.push("|")}y.push(n.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return y.join(`
|
|
275
|
+
`)}function lC(e){return e==null?"":String(e)}function Wd(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function cC(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),hC);return i(),s}function hC(e,t,n){return">"+(n?"":" ")+e}function dC(e,t){return Xd(e,t.inConstruct,!0)&&!Xd(e,t.notInConstruct,!1)}function Xd(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Kd(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
276
|
+
`&&dC(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
277
|
+
`}function X4(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>s&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function fC(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function mC(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function pC(e,t,n,r){const i=mC(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(fC(e,n)){const h=n.enter("codeIndented"),d=n.indentLines(a,gC);return h(),d}const o=n.createTracker(r),u=i.repeat(Math.max(X4(a,i)+1,3)),l=n.enter("codeFenced");let c=o.move(u);if(e.lang){const h=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:`
|
|
278
|
+
`,encode:["`"],...o.current()})),h()}return c+=o.move(`
|
|
279
|
+
`),a&&(c+=o.move(a+`
|
|
280
|
+
`)),c+=o.move(u),l(),c}function gC(e,t,n){return(n?"":" ")+e}function B0(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function bC(e,t,n,r){const i=B0(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const u=n.createTracker(r);let l=u.move("[");return l+=u.move(n.safe(n.associationId(e),{before:l,after:"]",...u.current()})),l+=u.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":`
|
|
281
|
+
`,...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),s(),l}function yC(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ea(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Wr(e){if(e===null||De(e)||pr(e))return 1;if(Zs(e))return 2}function vs(e,t,n){const r=Wr(e),i=Wr(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}K4.peek=xC;function K4(e,t,n,r){const i=yC(n),a=n.enter("emphasis"),s=n.createTracker(r),o=s.move(i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=vs(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=ea(l)+u.slice(1));const h=u.charCodeAt(u.length-1),d=vs(r.after.charCodeAt(0),h,i);d.inside&&(u=u.slice(0,-1)+ea(h));const m=s.move(i);return a(),n.attentionEncodeSurroundingInfo={after:d.outside,before:c.outside},o+u+m}function xC(e,t,n){return n.options.emphasis||"*"}const TC={};function z0(e,t){const n=TC,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Q4(e,r,i)}function Q4(e,t,n){if(EC(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Qd(e.children,t,n)}return Array.isArray(e)?Qd(e,t,n):""}function Qd(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Q4(e[i],t,n);return r.join("")}function EC(e){return!!(e&&typeof e=="object")}function vC(e,t){let n=!1;return qr(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Uu}),!!((!e.depth||e.depth<3)&&z0(e)&&(t.options.setext||n))}function AC(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(vC(e,n)){const c=n.enter("headingSetext"),h=n.enter("phrasing"),d=n.containerPhrasing(e,{...a.current(),before:`
|
|
282
|
+
`,after:`
|
|
283
|
+
`});return h(),c(),d+`
|
|
284
|
+
`+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
|
|
285
|
+
`))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),u=n.enter("phrasing");a.move(s+" ");let l=n.containerPhrasing(e,{before:"# ",after:`
|
|
286
|
+
`,...a.current()});return/^[\t ]/.test(l)&&(l=ea(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,n.options.closeAtx&&(l+=" "+s),u(),o(),l}Z4.peek=kC;function Z4(e){return e.value||""}function kC(){return"<"}J4.peek=wC;function J4(e,t,n,r){const i=B0(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const u=n.createTracker(r);let l=u.move("![");return l+=u.move(n.safe(e.alt,{before:l,after:"]",...u.current()})),l+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),l+=u.move(")"),s(),l}function wC(){return"!"}eg.peek=SC;function eg(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("![");const l=n.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!l||l!==h?u+=o.move(h+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function SC(){return"!"}tg.peek=CC;function tg(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const s=n.unsafe[a],o=n.compilePattern(s);let u;if(s.atBreak)for(;u=o.exec(r);){let l=u.index;r.charCodeAt(l)===10&&r.charCodeAt(l-1)===13&&l--,r=r.slice(0,l)+" "+r.slice(u.index+1)}}return i+r+i}function CC(){return"`"}function ng(e,t){const n=z0(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}rg.peek=NC;function rg(e,t,n,r){const i=B0(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,u;if(ng(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),o(),n.stack=c,h}o=n.enter("link"),u=n.enter("label");let l=s.move("[");return l+=s.move(n.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(u=n.enter("destinationRaw"),l+=s.move(n.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${a}`),l+=s.move(" "+i),l+=s.move(n.safe(e.title,{before:l,after:i,...s.current()})),l+=s.move(i),u()),l+=s.move(")"),o(),l}function NC(e,t,n){return ng(e,n)?"<":"["}ig.peek=IC;function ig(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("[");const l=n.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!l||l!==h?u+=o.move(h+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function IC(){return"["}function H0(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function _C(e){const t=H0(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function DC(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ag(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function MC(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?DC(n):H0(n);const o=e.ordered?s==="."?")":".":_C(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),ag(n)===s&&c){let h=-1;for(;++h<e.children.length;){const d=e.children[h];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=o),n.bulletCurrent=s;const l=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,i(),l}function RC(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function LC(e,t,n,r){const i=RC(n);let a=n.bulletCurrent||H0(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const u=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,o.current()),c);return u(),l;function c(h,d,m){return d?(m?"":" ".repeat(s))+h:(m?a:a+" ".repeat(s-a.length))+h}}function PC(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const OC=ua(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function FC(e,t,n,r){return(e.children.some(function(s){return OC(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function BC(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}sg.peek=zC;function sg(e,t,n,r){const i=BC(n),a=n.enter("strong"),s=n.createTracker(r),o=s.move(i+i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=vs(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=ea(l)+u.slice(1));const h=u.charCodeAt(u.length-1),d=vs(r.after.charCodeAt(0),h,i);d.inside&&(u=u.slice(0,-1)+ea(h));const m=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:d.outside,before:c.outside},o+u+m}function zC(e,t,n){return n.options.strong||"*"}function HC(e,t,n,r){return n.safe(e.value,r)}function UC(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function jC(e,t,n){const r=(ag(n)+(n.options.ruleSpaces?" ":"")).repeat(UC(n));return n.options.ruleSpaces?r.slice(0,-1):r}const og={blockquote:cC,break:Kd,code:pC,definition:bC,emphasis:K4,hardBreak:Kd,heading:AC,html:Z4,image:J4,imageReference:eg,inlineCode:tg,link:rg,linkReference:ig,list:MC,listItem:LC,paragraph:PC,root:FC,strong:sg,text:HC,thematicBreak:jC},Zd=document.createElement("i");function U0(e){const t="&"+e+";";Zd.innerHTML=t;const n=Zd.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ug(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const VC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qC(e){return e.replace(VC,$C)}function $C(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return ug(n.slice(a?2:1),a?16:10)}return U0(n)||e}function YC(){return{enter:{table:GC,tableData:Jd,tableHeader:Jd,tableRow:XC},exit:{codeText:KC,table:WC,tableData:Ko,tableHeader:Ko,tableRow:Ko}}}function GC(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function WC(e){this.exit(e),this.data.inTable=void 0}function XC(e){this.enter({type:"tableRow",children:[]},e)}function Ko(e){this.exit(e)}function Jd(e){this.enter({type:"tableCell",children:[]},e)}function KC(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,QC));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function QC(e,t){return t==="|"?t:e}function ZC(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
287
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:s,tableCell:u,tableRow:o}};function s(m,y,T,w){return l(c(m,T,w),m.align)}function o(m,y,T,w){const A=h(m,T,w),E=l([A]);return E.slice(0,E.indexOf(`
|
|
288
|
+
`))}function u(m,y,T,w){const A=T.enter("tableCell"),E=T.enter("phrasing"),S=T.containerPhrasing(m,{...w,before:a,after:a});return E(),A(),S}function l(m,y){return uC(m,{align:y,alignDelimiters:r,padding:n,stringLength:i})}function c(m,y,T){const w=m.children;let A=-1;const E=[],S=y.enter("table");for(;++A<w.length;)E[A]=h(w[A],y,T);return S(),E}function h(m,y,T){const w=m.children;let A=-1;const E=[],S=y.enter("tableRow");for(;++A<w.length;)E[A]=u(w[A],m,y,T);return S(),E}function d(m,y,T){let w=og.inlineCode(m,y,T);return T.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function JC(){return{exit:{taskListCheckValueChecked:ef,taskListCheckValueUnchecked:ef,paragraph:tN}}}function eN(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:nN}}}function ef(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function tN(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,s;for(;++a<i.length;){const o=i[a];if(o.type==="paragraph"){s=o;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function nN(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(s);let u=og.listItem(e,t,n,{...r,...o.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),u;function l(c){return c+s}}function rN(){return[DS(),ZS(),nC(),YC(),JC()]}function iN(e){return{extensions:[MS(),JS(e),rC(),ZC(e),eN()]}}const tf={}.hasOwnProperty;function lg(e){const t={};let n=-1;for(;++n<e.length;)aN(t,e[n]);return t}function aN(e,t){let n;for(n in t){const i=(tf.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){tf.call(i,s)||(i[s]=[]);const o=a[s];sN(i[s],Array.isArray(o)?o:o?[o]:[])}}}function sN(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);st(e,0,0,r)}const oN={tokenize:fN,partial:!0},cg={tokenize:mN,partial:!0},hg={tokenize:pN,partial:!0},dg={tokenize:gN,partial:!0},uN={tokenize:bN,partial:!0},fg={name:"wwwAutolink",tokenize:hN,previous:pg},mg={name:"protocolAutolink",tokenize:dN,previous:gg},_n={name:"emailAutolink",tokenize:cN,previous:bg},mn={};function lN(){return{text:mn}}let sr=48;for(;sr<123;)mn[sr]=_n,sr++,sr===58?sr=65:sr===91&&(sr=97);mn[43]=_n;mn[45]=_n;mn[46]=_n;mn[95]=_n;mn[72]=[_n,mg];mn[104]=[_n,mg];mn[87]=[_n,fg];mn[119]=[_n,fg];function cN(e,t,n){const r=this;let i,a;return s;function s(h){return!ll(h)||!bg.call(r,r.previous)||j0(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(h))}function o(h){return ll(h)?(e.consume(h),o):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(uN,c,l)(h):h===45||h===95||ut(h)?(a=!0,e.consume(h),u):c(h)}function l(h){return e.consume(h),i=!0,u}function c(h){return a&&i&&ft(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function hN(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!pg.call(r,r.previous)||j0(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(oN,e.attempt(cg,e.attempt(hg,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function dN(e,t,n){const r=this;let i="",a=!1;return s;function s(h){return(h===72||h===104)&&gg.call(r,r.previous)&&!j0(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(h),e.consume(h),o):n(h)}function o(h){if(ft(h)&&i.length<5)return i+=String.fromCodePoint(h),e.consume(h),o;if(h===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(h),u}return n(h)}function u(h){return h===47?(e.consume(h),a?l:(a=!0,u)):n(h)}function l(h){return h===null||Ts(h)||De(h)||pr(h)||Zs(h)?n(h):e.attempt(cg,e.attempt(hg,c),n)(h)}function c(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function fN(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function mN(e,t,n){let r,i,a;return s;function s(l){return l===46||l===95?e.check(dg,u,o)(l):l===null||De(l)||pr(l)||l!==45&&Zs(l)?u(l):(a=!0,e.consume(l),s)}function o(l){return l===95?r=!0:(i=r,r=void 0),e.consume(l),s}function u(l){return i||r||!a?n(l):t(l)}}function pN(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(dg,t,a)(s):s===null||De(s)||pr(s)?t(s):(e.consume(s),i)}function a(s){return s===41&&r++,e.consume(s),i}}function gN(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||De(o)||pr(o)?t(o):n(o)}function i(o){return o===null||o===40||o===91||De(o)||pr(o)?t(o):r(o)}function a(o){return ft(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),r):ft(o)?(e.consume(o),s):n(o)}}function bN(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return ut(a)?n(a):t(a)}}function pg(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||De(e)}function gg(e){return!ft(e)}function bg(e){return!(e===47||ll(e))}function ll(e){return e===43||e===45||e===46||e===95||ut(e)}function j0(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function ai(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&ut(e.charCodeAt(n+1))&&ut(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}const cl={name:"attention",resolveAll:yN,tokenize:xN};function yN(e,t){let n=-1,r,i,a,s,o,u,l,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},d={...e[n][1].start};nf(h,-u),nf(d,u),s={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=at(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=at(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=at(l,ii(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=at(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=at(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,st(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function xN(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Wr(r);let a;return s;function s(u){return a=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===a)return e.consume(u),o;const l=e.exit("attentionSequence"),c=Wr(u),h=!c||c===2&&i||n.includes(u),d=!i||i===2&&c||n.includes(r);return l._open=!!(a===42?h:h&&(i||!d)),l._close=!!(a===42?d:d&&(c||!h)),t(u)}}function nf(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const TN={name:"autolink",tokenize:EN};function EN(e,t,n){let r=0;return i;function i(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(m){return ft(m)?(e.consume(m),s):m===64?n(m):l(m)}function s(m){return m===43||m===45||m===46||ut(m)?(r=1,o(m)):l(m)}function o(m){return m===58?(e.consume(m),r=0,u):(m===43||m===45||m===46||ut(m))&&r++<32?(e.consume(m),o):(r=0,l(m))}function u(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||Ts(m)?n(m):(e.consume(m),u)}function l(m){return m===64?(e.consume(m),c):Qw(m)?(e.consume(m),l):n(m)}function c(m){return ut(m)?h(m):n(m)}function h(m){return m===46?(e.consume(m),r=0,c):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):d(m)}function d(m){if((m===45||ut(m))&&r++<63){const y=m===45?d:h;return e.consume(m),y}return n(m)}}function ke(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return we(u)?(e.enter(n),o(u)):t(u)}function o(u){return we(u)&&a++<i?(e.consume(u),o):(e.exit(n),t(u))}}const ba={partial:!0,tokenize:vN};function vN(e,t,n){return r;function r(a){return we(a)?ke(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||le(a)?t(a):n(a)}}const yg={continuation:{tokenize:kN},exit:wN,name:"blockQuote",tokenize:AN};function AN(e,t,n){const r=this;return i;function i(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return we(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function kN(e,t,n){const r=this;return i;function i(s){return we(s)?ke(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(yg,t,n)(s)}}function wN(e){e.exit("blockQuote")}const xg={name:"characterEscape",tokenize:SN};function SN(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return Jw(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const Tg={name:"characterReference",tokenize:CN};function CN(e,t,n){const r=this;let i=0,a,s;return o;function o(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),u}function u(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,s=ut,c(h))}function l(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=Zw,c):(e.enter("characterReferenceValue"),a=7,s=ol,c(h))}function c(h){if(h===59&&i){const d=e.exit("characterReferenceValue");return s===ut&&!U0(r.sliceSerialize(d))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(h)&&i++<a?(e.consume(h),c):n(h)}}const rf={partial:!0,tokenize:IN},af={concrete:!0,name:"codeFenced",tokenize:NN};function NN(e,t,n){const r=this,i={partial:!0,tokenize:P};let a=0,s=0,o;return u;function u(D){return l(D)}function l(D){const U=r.events[r.events.length-1];return a=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,o=D,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(D)}function c(D){return D===o?(s++,e.consume(D),c):s<3?n(D):(e.exit("codeFencedFenceSequence"),we(D)?ke(e,h,"whitespace")(D):h(D))}function h(D){return D===null||le(D)?(e.exit("codeFencedFence"),r.interrupt?t(D):e.check(rf,T,O)(D)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(D))}function d(D){return D===null||le(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(D)):we(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ke(e,m,"whitespace")(D)):D===96&&D===o?n(D):(e.consume(D),d)}function m(D){return D===null||le(D)?h(D):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(D))}function y(D){return D===null||le(D)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(D)):D===96&&D===o?n(D):(e.consume(D),y)}function T(D){return e.attempt(i,O,w)(D)}function w(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),A}function A(D){return a>0&&we(D)?ke(e,E,"linePrefix",a+1)(D):E(D)}function E(D){return D===null||le(D)?e.check(rf,T,O)(D):(e.enter("codeFlowValue"),S(D))}function S(D){return D===null||le(D)?(e.exit("codeFlowValue"),E(D)):(e.consume(D),S)}function O(D){return e.exit("codeFenced"),t(D)}function P(D,U,q){let Y=0;return B;function B(ee){return D.enter("lineEnding"),D.consume(ee),D.exit("lineEnding"),G}function G(ee){return D.enter("codeFencedFence"),we(ee)?ke(D,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):V(ee)}function V(ee){return ee===o?(D.enter("codeFencedFenceSequence"),ue(ee)):q(ee)}function ue(ee){return ee===o?(Y++,D.consume(ee),ue):Y>=s?(D.exit("codeFencedFenceSequence"),we(ee)?ke(D,ie,"whitespace")(ee):ie(ee)):q(ee)}function ie(ee){return ee===null||le(ee)?(D.exit("codeFencedFence"),U(ee)):q(ee)}}}function IN(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Qo={name:"codeIndented",tokenize:DN},_N={partial:!0,tokenize:MN};function DN(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),ke(e,a,"linePrefix",5)(l)}function a(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):le(l)?e.attempt(_N,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||le(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function MN(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):le(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ke(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):le(s)?i(s):n(s)}}const RN={name:"codeText",previous:PN,resolve:LN,tokenize:ON};function LN(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function PN(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ON(e,t,n){let r=0,i,a;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),o(h)}function o(h){return h===96?(e.consume(h),r++,o):(e.exit("codeTextSequence"),u(h))}function u(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),u):h===96?(a=e.enter("codeTextSequence"),i=0,c(h)):le(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("codeTextData"),l(h))}function l(h){return h===null||h===32||h===96||le(h)?(e.exit("codeTextData"),u(h)):(e.consume(h),l)}function c(h){return h===96?(e.consume(h),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(a.type="codeTextData",l(h))}}class FN{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&pi(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),pi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),pi(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);pi(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);pi(this.left,n.reverse())}}}function pi(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Eg(e){const t={};let n=-1,r,i,a,s,o,u,l;const c=new FN(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,BN(c,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(s=c.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},o=c.slice(i,n),o.unshift(r),c.splice(i,n-i+1,o))}}return st(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function BN(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,u=[],l={};let c,h,d=-1,m=n,y=0,T=0;const w=[T];for(;m;){for(;e.get(++i)[1]!==m;);a.push(i),m._tokenizer||(c=r.sliceStream(m),m.next||c.push(null),h&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=m,m=m.next}for(m=n;++d<o.length;)o[d][0]==="exit"&&o[d-1][0]==="enter"&&o[d][1].type===o[d-1][1].type&&o[d][1].start.line!==o[d][1].end.line&&(T=d+1,w.push(T),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):w.pop(),d=w.length;d--;){const A=o.slice(w[d],w[d+1]),E=a.pop();u.push([E,E+A.length-1]),e.splice(E,2,A)}for(u.reverse(),d=-1;++d<u.length;)l[y+u[d][0]]=y+u[d][1],y+=u[d][1]-u[d][0]-1;return l}const zN={resolve:UN,tokenize:jN},HN={partial:!0,tokenize:VN};function UN(e){return Eg(e),e}function jN(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):le(o)?e.check(HN,s,a)(o):(e.consume(o),i)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function VN(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ke(e,a,"linePrefix")}function a(s){if(s===null||le(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function vg(e,t,n,r,i,a,s,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return h;function h(A){return A===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(A),e.exit(a),d):A===null||A===32||A===41||Ts(A)?n(A):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),T(A))}function d(A){return A===62?(e.enter(a),e.consume(A),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(A))}function m(A){return A===62?(e.exit("chunkString"),e.exit(o),d(A)):A===null||A===60||le(A)?n(A):(e.consume(A),A===92?y:m)}function y(A){return A===60||A===62||A===92?(e.consume(A),m):m(A)}function T(A){return!c&&(A===null||A===41||De(A))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(A)):c<l&&A===40?(e.consume(A),c++,T):A===41?(e.consume(A),c--,T):A===null||A===32||A===40||Ts(A)?n(A):(e.consume(A),A===92?w:T)}function w(A){return A===40||A===41||A===92?(e.consume(A),T):T(A)}}function Ag(e,t,n,r,i,a){const s=this;let o=0,u;return l;function l(m){return e.enter(r),e.enter(i),e.consume(m),e.exit(i),e.enter(a),c}function c(m){return o>999||m===null||m===91||m===93&&!u||m===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(m):m===93?(e.exit(a),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):le(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===null||m===91||m===93||le(m)||o++>999?(e.exit("chunkString"),c(m)):(e.consume(m),u||(u=!we(m)),m===92?d:h)}function d(m){return m===91||m===92||m===93?(e.consume(m),o++,h):h(m)}}function kg(e,t,n,r,i,a){let s;return o;function o(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),s=d===40?41:d,u):n(d)}function u(d){return d===s?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(a),l(d))}function l(d){return d===s?(e.exit(a),u(s)):d===null?n(d):le(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ke(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===s||d===null||le(d)?(e.exit("chunkString"),l(d)):(e.consume(d),d===92?h:c)}function h(d){return d===s||d===92?(e.consume(d),c):c(d)}}function Bi(e,t){let n;return r;function r(i){return le(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):we(i)?ke(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const qN={name:"definition",tokenize:YN},$N={partial:!0,tokenize:GN};function YN(e,t,n){const r=this;let i;return a;function a(m){return e.enter("definition"),s(m)}function s(m){return Ag.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return i=Xt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):n(m)}function u(m){return De(m)?Bi(e,l)(m):l(m)}function l(m){return vg(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function c(m){return e.attempt($N,h,h)(m)}function h(m){return we(m)?ke(e,d,"whitespace")(m):d(m)}function d(m){return m===null||le(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function GN(e,t,n){return r;function r(o){return De(o)?Bi(e,i)(o):n(o)}function i(o){return kg(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return we(o)?ke(e,s,"whitespace")(o):s(o)}function s(o){return o===null||le(o)?t(o):n(o)}}const WN={name:"hardBreakEscape",tokenize:XN};function XN(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return le(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const KN={name:"headingAtx",resolve:QN,tokenize:ZN};function QN(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},st(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function ZN(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||De(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||le(c)?(e.exit("atxHeading"),t(c)):we(c)?ke(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||De(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}const JN=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],sf=["pre","script","style","textarea"],eI={concrete:!0,name:"htmlFlow",resolveTo:rI,tokenize:iI},tI={partial:!0,tokenize:sI},nI={partial:!0,tokenize:aI};function rI(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function iI(e,t,n){const r=this;let i,a,s,o,u;return l;function l(L){return c(L)}function c(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),h}function h(L){return L===33?(e.consume(L),d):L===47?(e.consume(L),a=!0,T):L===63?(e.consume(L),i=3,r.interrupt?t:_):ft(L)?(e.consume(L),s=String.fromCharCode(L),w):n(L)}function d(L){return L===45?(e.consume(L),i=2,m):L===91?(e.consume(L),i=5,o=0,y):ft(L)?(e.consume(L),i=4,r.interrupt?t:_):n(L)}function m(L){return L===45?(e.consume(L),r.interrupt?t:_):n(L)}function y(L){const nt="CDATA[";return L===nt.charCodeAt(o++)?(e.consume(L),o===nt.length?r.interrupt?t:V:y):n(L)}function T(L){return ft(L)?(e.consume(L),s=String.fromCharCode(L),w):n(L)}function w(L){if(L===null||L===47||L===62||De(L)){const nt=L===47,rt=s.toLowerCase();return!nt&&!a&&sf.includes(rt)?(i=1,r.interrupt?t(L):V(L)):JN.includes(s.toLowerCase())?(i=6,nt?(e.consume(L),A):r.interrupt?t(L):V(L)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(L):a?E(L):S(L))}return L===45||ut(L)?(e.consume(L),s+=String.fromCharCode(L),w):n(L)}function A(L){return L===62?(e.consume(L),r.interrupt?t:V):n(L)}function E(L){return we(L)?(e.consume(L),E):B(L)}function S(L){return L===47?(e.consume(L),B):L===58||L===95||ft(L)?(e.consume(L),O):we(L)?(e.consume(L),S):B(L)}function O(L){return L===45||L===46||L===58||L===95||ut(L)?(e.consume(L),O):P(L)}function P(L){return L===61?(e.consume(L),D):we(L)?(e.consume(L),P):S(L)}function D(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),u=L,U):we(L)?(e.consume(L),D):q(L)}function U(L){return L===u?(e.consume(L),u=null,Y):L===null||le(L)?n(L):(e.consume(L),U)}function q(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||De(L)?P(L):(e.consume(L),q)}function Y(L){return L===47||L===62||we(L)?S(L):n(L)}function B(L){return L===62?(e.consume(L),G):n(L)}function G(L){return L===null||le(L)?V(L):we(L)?(e.consume(L),G):n(L)}function V(L){return L===45&&i===2?(e.consume(L),ye):L===60&&i===1?(e.consume(L),ne):L===62&&i===4?(e.consume(L),be):L===63&&i===3?(e.consume(L),_):L===93&&i===5?(e.consume(L),de):le(L)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(tI,ce,ue)(L)):L===null||le(L)?(e.exit("htmlFlowData"),ue(L)):(e.consume(L),V)}function ue(L){return e.check(nI,ie,ce)(L)}function ie(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),ee}function ee(L){return L===null||le(L)?ue(L):(e.enter("htmlFlowData"),V(L))}function ye(L){return L===45?(e.consume(L),_):V(L)}function ne(L){return L===47?(e.consume(L),s="",he):V(L)}function he(L){if(L===62){const nt=s.toLowerCase();return sf.includes(nt)?(e.consume(L),be):V(L)}return ft(L)&&s.length<8?(e.consume(L),s+=String.fromCharCode(L),he):V(L)}function de(L){return L===93?(e.consume(L),_):V(L)}function _(L){return L===62?(e.consume(L),be):L===45&&i===2?(e.consume(L),_):V(L)}function be(L){return L===null||le(L)?(e.exit("htmlFlowData"),ce(L)):(e.consume(L),be)}function ce(L){return e.exit("htmlFlow"),t(L)}}function aI(e,t,n){const r=this;return i;function i(s){return le(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function sI(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ba,t,n)}}const oI={name:"htmlText",tokenize:uI};function uI(e,t,n){const r=this;let i,a,s;return o;function o(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),u}function u(_){return _===33?(e.consume(_),l):_===47?(e.consume(_),P):_===63?(e.consume(_),S):ft(_)?(e.consume(_),q):n(_)}function l(_){return _===45?(e.consume(_),c):_===91?(e.consume(_),a=0,y):ft(_)?(e.consume(_),E):n(_)}function c(_){return _===45?(e.consume(_),m):n(_)}function h(_){return _===null?n(_):_===45?(e.consume(_),d):le(_)?(s=h,ne(_)):(e.consume(_),h)}function d(_){return _===45?(e.consume(_),m):h(_)}function m(_){return _===62?ye(_):_===45?d(_):h(_)}function y(_){const be="CDATA[";return _===be.charCodeAt(a++)?(e.consume(_),a===be.length?T:y):n(_)}function T(_){return _===null?n(_):_===93?(e.consume(_),w):le(_)?(s=T,ne(_)):(e.consume(_),T)}function w(_){return _===93?(e.consume(_),A):T(_)}function A(_){return _===62?ye(_):_===93?(e.consume(_),A):T(_)}function E(_){return _===null||_===62?ye(_):le(_)?(s=E,ne(_)):(e.consume(_),E)}function S(_){return _===null?n(_):_===63?(e.consume(_),O):le(_)?(s=S,ne(_)):(e.consume(_),S)}function O(_){return _===62?ye(_):S(_)}function P(_){return ft(_)?(e.consume(_),D):n(_)}function D(_){return _===45||ut(_)?(e.consume(_),D):U(_)}function U(_){return le(_)?(s=U,ne(_)):we(_)?(e.consume(_),U):ye(_)}function q(_){return _===45||ut(_)?(e.consume(_),q):_===47||_===62||De(_)?Y(_):n(_)}function Y(_){return _===47?(e.consume(_),ye):_===58||_===95||ft(_)?(e.consume(_),B):le(_)?(s=Y,ne(_)):we(_)?(e.consume(_),Y):ye(_)}function B(_){return _===45||_===46||_===58||_===95||ut(_)?(e.consume(_),B):G(_)}function G(_){return _===61?(e.consume(_),V):le(_)?(s=G,ne(_)):we(_)?(e.consume(_),G):Y(_)}function V(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),i=_,ue):le(_)?(s=V,ne(_)):we(_)?(e.consume(_),V):(e.consume(_),ie)}function ue(_){return _===i?(e.consume(_),i=void 0,ee):_===null?n(_):le(_)?(s=ue,ne(_)):(e.consume(_),ue)}function ie(_){return _===null||_===34||_===39||_===60||_===61||_===96?n(_):_===47||_===62||De(_)?Y(_):(e.consume(_),ie)}function ee(_){return _===47||_===62||De(_)?Y(_):n(_)}function ye(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),t):n(_)}function ne(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),he}function he(_){return we(_)?ke(e,de,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):de(_)}function de(_){return e.enter("htmlTextData"),s(_)}}const V0={name:"labelEnd",resolveAll:dI,resolveTo:fI,tokenize:mI},lI={tokenize:pI},cI={tokenize:gI},hI={tokenize:bI};function dI(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&st(e,0,e.length,n),e}function fI(e,t){let n=e.length,r=0,i,a,s,o;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",u,t],["enter",l,t]],o=at(o,e.slice(a+1,a+r+3)),o=at(o,[["enter",c,t]]),o=at(o,ii(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),o=at(o,[["exit",c,t],e[s-2],e[s-1],["exit",l,t]]),o=at(o,e.slice(s+1)),o=at(o,[["exit",u,t]]),st(e,a,e.length,o),e}function mI(e,t,n){const r=this;let i=r.events.length,a,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return o;function o(d){return a?a._inactive?h(d):(s=r.parser.defined.includes(Xt(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),u):n(d)}function u(d){return d===40?e.attempt(lI,c,s?c:h)(d):d===91?e.attempt(cI,c,s?l:h)(d):s?c(d):h(d)}function l(d){return e.attempt(hI,c,h)(d)}function c(d){return t(d)}function h(d){return a._balanced=!0,n(d)}}function pI(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return De(h)?Bi(e,a)(h):a(h)}function a(h){return h===41?c(h):vg(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return De(h)?Bi(e,u)(h):c(h)}function o(h){return n(h)}function u(h){return h===34||h===39||h===40?kg(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):c(h)}function l(h){return De(h)?Bi(e,c)(h):c(h)}function c(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function gI(e,t,n){const r=this;return i;function i(o){return Ag.call(r,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return r.parser.defined.includes(Xt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function bI(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const yI={name:"labelStartImage",resolveAll:V0.resolveAll,tokenize:xI};function xI(e,t,n){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const TI={name:"labelStartLink",resolveAll:V0.resolveAll,tokenize:EI};function EI(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Zo={name:"lineEnding",tokenize:vI};function vI(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ke(e,t,"linePrefix")}}const Ka={name:"thematicBreak",tokenize:AI};function AI(e,t,n){let r=0,i;return a;function a(l){return e.enter("thematicBreak"),s(l)}function s(l){return i=l,o(l)}function o(l){return l===i?(e.enter("thematicBreakSequence"),u(l)):r>=3&&(l===null||le(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===i?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),we(l)?ke(e,o,"whitespace")(l):o(l))}}const Et={continuation:{tokenize:CI},exit:II,name:"list",tokenize:SI},kI={partial:!0,tokenize:_I},wI={partial:!0,tokenize:NI};function SI(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(m){const y=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:ol(m)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Ka,n,l)(m):l(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return n(m)}function u(m){return ol(m)&&++s<10?(e.consume(m),u):(!r.interrupt||s<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),l(m)):n(m)}function l(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(ba,r.interrupt?n:c,e.attempt(kI,d,h))}function c(m){return r.containerState.initialBlankLine=!0,a++,d(m)}function h(m){return we(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),d):n(m)}function d(m){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function CI(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(ba,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ke(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!we(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(wI,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ke(e,e.attempt(Et,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function NI(e,t,n){const r=this;return ke(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function II(e){e.exit(this.containerState.type)}function _I(e,t,n){const r=this;return ke(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!we(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const of={name:"setextUnderline",resolveTo:DI,tokenize:MI};function DI(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function MI(e,t,n){const r=this;let i;return a;function a(l){let c=r.events.length,h;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){h=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),we(l)?ke(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||le(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const RI={tokenize:UI,partial:!0};function LI(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:BI,continuation:{tokenize:zI},exit:HI}},text:{91:{name:"gfmFootnoteCall",tokenize:FI},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:PI,resolveTo:OI}}}}function PI(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!s||!s._balanced)return n(u);const l=Xt(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function OI(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function FI(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),u}function u(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(h){if(a>999||h===93&&!s||h===null||h===91||De(h))return n(h);if(h===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(Xt(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return De(h)||(s=!0),a++,e.consume(h),h===92?c:l}function c(h){return h===91||h===92||h===93?(e.consume(h),a++,l):l(h)}}function BI(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return u;function u(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(y)}function c(y){if(s>999||y===93&&!o||y===null||y===91||De(y))return n(y);if(y===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return a=Xt(r.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return De(y)||(o=!0),s++,e.consume(y),y===92?h:c}function h(y){return y===91||y===92||y===93?(e.consume(y),s++,c):c(y)}function d(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),i.includes(a)||i.push(a),ke(e,m,"gfmFootnoteDefinitionWhitespace")):n(y)}function m(y){return t(y)}}function zI(e,t,n){return e.check(ba,t,e.attempt(RI,t,n))}function HI(e){e.exit("gfmFootnoteDefinition")}function UI(e,t,n){const r=this;return ke(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function jI(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let u=-1;for(;++u<s.length;)if(s[u][0]==="enter"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._close){let l=u;for(;l--;)if(s[l][0]==="exit"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[l][1].end.offset-s[l][1].start.offset){s[u][1].type="strikethroughSequence",s[l][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[l][1].start),end:Object.assign({},s[u][1].end)},h={type:"strikethroughText",start:Object.assign({},s[l][1].end),end:Object.assign({},s[u][1].start)},d=[["enter",c,o],["enter",s[l][1],o],["exit",s[l][1],o],["enter",h,o]],m=o.parser.constructs.insideSpan.null;m&&st(d,d.length,0,ii(m,s.slice(l+1,u),o)),st(d,d.length,0,[["exit",h,o],["enter",s[u][1],o],["exit",s[u][1],o],["exit",c,o]]),st(s,l-1,u-l+3,d),u=l+d.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type="data");return s}function a(s,o,u){const l=this.previous,c=this.events;let h=0;return d;function d(y){return l===126&&c[c.length-1][1].type!=="characterEscape"?u(y):(s.enter("strikethroughSequenceTemporary"),m(y))}function m(y){const T=Wr(l);if(y===126)return h>1?u(y):(s.consume(y),h++,m);if(h<2&&!n)return u(y);const w=s.exit("strikethroughSequenceTemporary"),A=Wr(y);return w._open=!A||A===2&&!!T,w._close=!T||T===2&&!!A,o(y)}}}class VI{constructor(){this.map=[]}add(t,n,r){qI(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function qI(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function $I(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function YI(){return{flow:{null:{name:"table",tokenize:GI,resolveAll:WI}}}}function GI(e,t,n){const r=this;let i=0,a=0,s;return o;function o(B){let G=r.events.length-1;for(;G>-1;){const ie=r.events[G][1].type;if(ie==="lineEnding"||ie==="linePrefix")G--;else break}const V=G>-1?r.events[G][1].type:null,ue=V==="tableHead"||V==="tableRow"?D:u;return ue===D&&r.parser.lazy[r.now().line]?n(B):ue(B)}function u(B){return e.enter("tableHead"),e.enter("tableRow"),l(B)}function l(B){return B===124||(s=!0,a+=1),c(B)}function c(B){return B===null?n(B):le(B)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),m):n(B):we(B)?ke(e,c,"whitespace")(B):(a+=1,s&&(s=!1,i+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),h(B)))}function h(B){return B===null||B===124||De(B)?(e.exit("data"),c(B)):(e.consume(B),B===92?d:h)}function d(B){return B===92||B===124?(e.consume(B),h):h(B)}function m(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(B):(e.enter("tableDelimiterRow"),s=!1,we(B)?ke(e,y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):y(B))}function y(B){return B===45||B===58?w(B):B===124?(s=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),T):P(B)}function T(B){return we(B)?ke(e,w,"whitespace")(B):w(B)}function w(B){return B===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),A):B===45?(a+=1,A(B)):B===null||le(B)?O(B):P(B)}function A(B){return B===45?(e.enter("tableDelimiterFiller"),E(B)):P(B)}function E(B){return B===45?(e.consume(B),E):B===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(B))}function S(B){return we(B)?ke(e,O,"whitespace")(B):O(B)}function O(B){return B===124?y(B):B===null||le(B)?!s||i!==a?P(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):P(B)}function P(B){return n(B)}function D(B){return e.enter("tableRow"),U(B)}function U(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),U):B===null||le(B)?(e.exit("tableRow"),t(B)):we(B)?ke(e,U,"whitespace")(B):(e.enter("data"),q(B))}function q(B){return B===null||B===124||De(B)?(e.exit("data"),U(B)):(e.consume(B),B===92?Y:q)}function Y(B){return B===92||B===124?(e.consume(B),q):q(B)}}function WI(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,l,c,h;const d=new VI;for(;++n<e.length;){const m=e[n],y=m[1];m[0]==="enter"?y.type==="tableHead"?(o=!1,u!==0&&(uf(d,t,u,l,c),c=void 0,u=0),l={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},d.add(n,0,[["enter",l,t]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(r=!0,h=void 0,a=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},d.add(n,0,[["enter",c,t]])),i=y.type==="tableDelimiterRow"?2:c?3:1):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],h=Pa(d,t,a,i,void 0,h),a=[0,0,0,0]),s[2]=n)):y.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],h=Pa(d,t,a,i,void 0,h)),a=s,s=[a[1],n,0,0])):y.type==="tableHead"?(o=!0,u=n):y.type==="tableRow"||y.type==="tableDelimiterRow"?(u=n,a[1]!==0?(s[0]=s[1],h=Pa(d,t,a,i,n,h)):s[1]!==0&&(h=Pa(d,t,s,i,n,h)),i=0):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&uf(d,t,u,l,c),d.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=$I(t.events,n))}return e}function Pa(e,t,n,r,i,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(a.end=Object.assign({},Dr(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const u=Dr(t.events,n[1]);if(a={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const l=Dr(t.events,n[2]),c=Dr(t.events,n[3]),h={type:o,start:Object.assign({},l),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const d=t.events[n[2]],m=t.events[n[3]];if(d[1].end=Object.assign({},m[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const y=n[2]+1,T=n[3]-n[2]-1;e.add(y,T,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return i!==void 0&&(a.end=Object.assign({},Dr(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function uf(e,t,n,r,i){const a=[],s=Dr(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function Dr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const XI={name:"tasklistCheck",tokenize:QI};function KI(){return{text:{91:XI}}}function QI(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return De(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return le(u)?t(u):we(u)?e.check({tokenize:ZI},t,n)(u):n(u)}}function ZI(e,t,n){return ke(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function JI(e){return lg([lN(),LI(),jI(e),YI(),KI()])}const e_={};function t_(e){const t=this,n=e||e_,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(JI(n)),a.push(rN()),s.push(iN(n))}function n_(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:s,mathTextData:o}};function e(u){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},u)}function t(){this.buffer()}function n(){const u=this.resume(),l=this.stack[this.stack.length-1];l.type,l.meta=u}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l;const h=c.data.hChildren[0];h.type,h.tagName,h.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function a(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function s(u){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l,c.data.hChildren.push({type:"text",value:l})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function r_(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
289
|
+
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,s,o,u){const l=a.value||"",c=o.createTracker(u),h="$".repeat(Math.max(X4(l,"$")+1,2)),d=o.enter("mathFlow");let m=c.move(h);if(a.meta){const y=o.enter("mathFlowMeta");m+=c.move(o.safe(a.meta,{after:`
|
|
290
|
+
`,before:m,encode:["$"],...c.current()})),y()}return m+=c.move(`
|
|
291
|
+
`),l&&(m+=c.move(l+`
|
|
292
|
+
`)),m+=c.move(h),d(),m}function r(a,s,o){let u=a.value||"",l=1;for(t||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(u);)l++;const c="$".repeat(l);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let h=-1;for(;++h<o.unsafe.length;){const d=o.unsafe[h];if(!d.atBreak)continue;const m=o.compilePattern(d);let y;for(;y=m.exec(u);){let T=y.index;u.codePointAt(T)===10&&u.codePointAt(T-1)===13&&T--,u=u.slice(0,T)+" "+u.slice(y.index+1)}}return c+u+c}function i(){return"$"}}const i_={tokenize:a_,concrete:!0,name:"mathFlow"},lf={tokenize:s_,partial:!0};function a_(e,t,n){const r=this,i=r.events[r.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let s=0;return o;function o(E){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),u(E)}function u(E){return E===36?(e.consume(E),s++,u):s<2?n(E):(e.exit("mathFlowFenceSequence"),ke(e,l,"whitespace")(E))}function l(E){return E===null||le(E)?h(E):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(E))}function c(E){return E===null||le(E)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),h(E)):E===36?n(E):(e.consume(E),c)}function h(E){return e.exit("mathFlowFence"),r.interrupt?t(E):e.attempt(lf,d,w)(E)}function d(E){return e.attempt({tokenize:A,partial:!0},w,m)(E)}function m(E){return(a?ke(e,y,"linePrefix",a+1):y)(E)}function y(E){return E===null?w(E):le(E)?e.attempt(lf,d,w)(E):(e.enter("mathFlowValue"),T(E))}function T(E){return E===null||le(E)?(e.exit("mathFlowValue"),y(E)):(e.consume(E),T)}function w(E){return e.exit("mathFlow"),t(E)}function A(E,S,O){let P=0;return ke(E,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function D(Y){return E.enter("mathFlowFence"),E.enter("mathFlowFenceSequence"),U(Y)}function U(Y){return Y===36?(P++,E.consume(Y),U):P<s?O(Y):(E.exit("mathFlowFenceSequence"),ke(E,q,"whitespace")(Y))}function q(Y){return Y===null||le(Y)?(E.exit("mathFlowFence"),S(Y)):O(Y)}}}function s_(e,t,n){const r=this;return i;function i(s){return s===null?t(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function o_(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:u_,previous:l_,name:"mathText"};function r(i,a,s){let o=0,u,l;return c;function c(T){return i.enter("mathText"),i.enter("mathTextSequence"),h(T)}function h(T){return T===36?(i.consume(T),o++,h):o<2&&!n?s(T):(i.exit("mathTextSequence"),d(T))}function d(T){return T===null?s(T):T===36?(l=i.enter("mathTextSequence"),u=0,y(T)):T===32?(i.enter("space"),i.consume(T),i.exit("space"),d):le(T)?(i.enter("lineEnding"),i.consume(T),i.exit("lineEnding"),d):(i.enter("mathTextData"),m(T))}function m(T){return T===null||T===32||T===36||le(T)?(i.exit("mathTextData"),d(T)):(i.consume(T),m)}function y(T){return T===36?(i.consume(T),u++,y):u===o?(i.exit("mathTextSequence"),i.exit("mathText"),a(T)):(l.type="mathTextData",m(T))}}}function u_(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="mathTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function l_(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function c_(e){return{flow:{36:i_},text:{36:o_(e)}}}const h_={};function hl(e){const t=this,n=e||h_,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(c_(n)),a.push(n_()),s.push(r_(n))}var d_=/(\*\*)([^*]*?)$/,f_=/(__)([^_]*?)$/,m_=/(\*\*\*)([^*]*?)$/,p_=/(\*)([^*]*?)$/,g_=/(_)([^_]*?)$/,b_=/(`)([^`]*?)$/,y_=/(~~)([^~]*?)$/,vr=/^[\s_~*`]*$/,wg=/^[\s]*[-*+][\s]+$/,x_=/[\p{L}\p{N}_]/u,T_=/^```[^`\n]*```?$/,E_=/^\*{4,}$/,Wn=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:x_.test(e)},Js=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2===0&&e.includes(`
|
|
293
|
+
`)},v_=(e,t)=>{let n=1;for(let r=t-1;r>=0;r-=1)if(e[r]==="]")n+=1;else if(e[r]==="["&&(n-=1,n===0))return r;return-1},A_=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if(e[r]==="[")n+=1;else if(e[r]==="]"&&(n-=1,n===0))return r;return-1},Sg=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i+=1){if(e[i]==="\\"&&e[i+1]==="$"){i+=1;continue}e[i]==="$"&&(e[i+1]==="$"?(r=!r,i+=1,n=!1):r||(n=!n))}return n||r},k_=(e,t,n)=>{if(n!==" "&&n!==" ")return!1;let r=0;for(let i=t-1;i>=0;i-=1)if(e[i]===`
|
|
294
|
+
`){r=i+1;break}for(let i=r;i<t;i+=1)if(e[i]!==" "&&e[i]!==" ")return!1;return!0},w_=(e,t,n,r)=>!!(n==="\\"||n==="*"||r==="*"||n&&r&&Wn(n)&&Wn(r)||k_(e,t,r)),S_=e=>{let t=0,n=e.length;for(let r=0;r<n;r+=1){if(e[r]!=="*")continue;let i=r>0?e[r-1]:"",a=r<n-1?e[r+1]:"";w_(e,r,i,a)||(t+=1)}return t},C_=(e,t,n,r)=>!!(n==="\\"||e.includes("$")&&Sg(e,t)||n==="_"||r==="_"||n&&r&&Wn(n)&&Wn(r)),N_=e=>{let t=0,n=e.length;for(let r=0;r<n;r+=1){if(e[r]!=="_")continue;let i=r>0?e[r-1]:"",a=r<n-1?e[r+1]:"";C_(e,r,i,a)||(t+=1)}return t},I_=e=>{let t=0,n=0;for(let r=0;r<e.length;r+=1)e[r]==="*"?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0);return n>=3&&(t+=Math.floor(n/3)),t},__=e=>{if(Js(e))return e;let t=e.match(d_);if(t){let n=t[2];if(!n||vr.test(n))return e;let r=e.lastIndexOf(t[1]),i=e.substring(0,r).lastIndexOf(`
|
|
295
|
+
`),a=i===-1?0:i+1,s=e.substring(a,r);if(wg.test(s)&&n.includes(`
|
|
296
|
+
`))return e;if((e.match(/\*\*/g)||[]).length%2===1)return`${e}**`}return e},D_=e=>{let t=e.match(f_);if(t){let n=t[2];if(!n||vr.test(n))return e;let r=e.lastIndexOf(t[1]),i=e.substring(0,r).lastIndexOf(`
|
|
297
|
+
`),a=i===-1?0:i+1,s=e.substring(a,r);if(wg.test(s)&&n.includes(`
|
|
298
|
+
`))return e;if((e.match(/__/g)||[]).length%2===1)return`${e}__`}return e},M_=e=>{for(let t=0;t<e.length;t+=1)if(e[t]==="*"&&e[t-1]!=="*"&&e[t+1]!=="*"&&e[t-1]!=="\\"){let n=t>0?e[t-1]:"",r=t<e.length-1?e[t+1]:"";if(n&&r&&Wn(n)&&Wn(r))continue;return t}return-1},R_=e=>{if(Js(e)||!e.match(p_))return e;let t=M_(e);if(t===-1)return e;let n=e.substring(t+1);return!n||vr.test(n)?e:S_(e)%2===1?`${e}*`:e},L_=e=>{for(let t=0;t<e.length;t+=1)if(e[t]==="_"&&e[t-1]!=="_"&&e[t+1]!=="_"&&e[t-1]!=="\\"&&!Sg(e,t)){let n=t>0?e[t-1]:"",r=t<e.length-1?e[t+1]:"";if(n&&r&&Wn(n)&&Wn(r))continue;return t}return-1},P_=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
299
|
+
`;)t-=1;if(t<e.length){let n=e.slice(0,t),r=e.slice(t);return`${n}_${r}`}return`${e}_`},O_=e=>{if(Js(e)||!e.match(g_))return e;let t=L_(e);if(t===-1)return e;let n=e.substring(t+1);return!n||vr.test(n)?e:N_(e)%2===1?P_(e):e},F_=e=>{if(Js(e)||E_.test(e))return e;let t=e.match(m_);if(t){let n=t[2];if(!n||vr.test(n))return e;if(I_(e)%2===1)return`${e}***`}return e},dl=(e,t)=>{let n=!1,r=!1;for(let i=0;i<t;i+=1){if(e.substring(i,i+3)==="```"){r=!r,i+=2;continue}!r&&e[i]==="`"&&(n=!n)}return n||r},B_=(e,t)=>{let n=e.substring(t,t+3)==="```",r=t>0&&e.substring(t-1,t+2)==="```",i=t>1&&e.substring(t-2,t+1)==="```";return n||r||i},z_=e=>{let t=0;for(let n=0;n<e.length;n+=1)e[n]==="`"&&!B_(e,n)&&(t+=1);return t},H_=e=>!e.match(T_)||e.includes(`
|
|
300
|
+
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,U_=e=>{let t=(e.match(/```/g)||[]).length;return!!(t>0&&t%2===0&&e.includes(`
|
|
301
|
+
`)||(e.endsWith("```\n")||e.endsWith("```"))&&t%2===0)},j_=e=>(e.match(/```/g)||[]).length%2===1,V_=e=>{let t=H_(e);if(t!==null)return t;if(U_(e))return e;let n=e.match(b_);if(n&&!j_(e)){let r=n[2];if(!r||vr.test(r))return e;if(z_(e)%2===1)return`${e}\``}return e},q_=e=>{if((e.match(/\$\$/g)||[]).length%2===0)return e;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
|
|
302
|
+
`,t)!==-1&&!e.endsWith(`
|
|
303
|
+
`)?`${e}
|
|
304
|
+
$$`:`${e}$$`},$_=(e,t)=>{if(e.substring(t+2).includes(")"))return null;let n=v_(e,t);if(n===-1||dl(e,n))return null;let r=n>0&&e[n-1]==="!",i=r?n-1:n,a=e.substring(0,i);if(r)return a;let s=e.substring(n+1,t);return`${a}[${s}](streamdown:incomplete-link)`},Y_=(e,t)=>{let n=t>0&&e[t-1]==="!",r=n?t-1:t;if(!e.substring(t+1).includes("]")){let i=e.substring(0,r);return n?i:`${e}](streamdown:incomplete-link)`}if(A_(e,t)===-1){let i=e.substring(0,r);return n?i:`${e}](streamdown:incomplete-link)`}return null},G_=e=>{let t=e.lastIndexOf("](");if(t!==-1&&!dl(e,t)){let n=$_(e,t);if(n!==null)return n}for(let n=e.length-1;n>=0;n-=1)if(e[n]==="["&&!dl(e,n)){let r=Y_(e,n);if(r!==null)return r}return e},W_=e=>{let t=e.match(y_);if(t){let n=t[2];if(!n||vr.test(n))return e;if((e.match(/~~/g)||[]).length%2===1)return`${e}~~`}return e},X_=e=>{if(!e||typeof e!="string")return e;let t=e,n=G_(t);return n.endsWith("](streamdown:incomplete-link)")?n:(t=n,t=F_(t),t=__(t),t=D_(t),t=R_(t),t=O_(t),t=V_(t),t=W_(t),t=q_(t),t)},K_=X_;const Q_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Z_=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),cf=e=>{const t=Z_(e);return t.charAt(0).toUpperCase()+t.slice(1)},Cg=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),J_=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var eD={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const tD=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:s,...o},u)=>k.createElement("svg",{ref:u,...eD,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Cg("lucide",i),...!a&&!J_(o)&&{"aria-hidden":"true"},...o},[...s.map(([l,c])=>k.createElement(l,c)),...Array.isArray(a)?a:[a]]));const Dn=(e,t)=>{const n=k.forwardRef(({className:r,...i},a)=>k.createElement(tD,{ref:a,iconNode:t,className:Cg(`lucide-${Q_(cf(e))}`,`lucide-${e}`,r),...i}));return n.displayName=cf(e),n};const nD=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ng=Dn("check",nD);const rD=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ig=Dn("copy",rD);const iD=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],eo=Dn("download",iD);const aD=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],sD=Dn("loader-circle",aD);const oD=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],uD=Dn("maximize-2",oD);const lD=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],cD=Dn("rotate-ccw",lD);const hD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],dD=Dn("x",hD);const fD=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],mD=Dn("zoom-in",fD);const pD=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],gD=Dn("zoom-out",pD),bD=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yD=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xD={};function hf(e,t){return(xD.jsx?yD:bD).test(e)}const TD=/[ \t\n\f\r]/g;function ED(e){return typeof e=="object"?e.type==="text"?df(e.value):!1:df(e)}function df(e){return e.replace(TD,"")===""}var _r={},Jo,ff;function vD(){if(ff)return Jo;ff=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=`
|
|
305
|
+
`,l="/",c="*",h="",d="comment",m="declaration";function y(w,A){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];A=A||{};var E=1,S=1;function O(ie){var ee=ie.match(t);ee&&(E+=ee.length);var ye=ie.lastIndexOf(u);S=~ye?ie.length-ye:S+ie.length}function P(){var ie={line:E,column:S};return function(ee){return ee.position=new D(ie),Y(),ee}}function D(ie){this.start=ie,this.end={line:E,column:S},this.source=A.source}D.prototype.content=w;function U(ie){var ee=new Error(A.source+":"+E+":"+S+": "+ie);if(ee.reason=ie,ee.filename=A.source,ee.line=E,ee.column=S,ee.source=w,!A.silent)throw ee}function q(ie){var ee=ie.exec(w);if(ee){var ye=ee[0];return O(ye),w=w.slice(ye.length),ee}}function Y(){q(n)}function B(ie){var ee;for(ie=ie||[];ee=G();)ee!==!1&&ie.push(ee);return ie}function G(){var ie=P();if(!(l!=w.charAt(0)||c!=w.charAt(1))){for(var ee=2;h!=w.charAt(ee)&&(c!=w.charAt(ee)||l!=w.charAt(ee+1));)++ee;if(ee+=2,h===w.charAt(ee-1))return U("End of comment missing");var ye=w.slice(2,ee-2);return S+=2,O(ye),w=w.slice(ee),S+=2,ie({type:d,comment:ye})}}function V(){var ie=P(),ee=q(r);if(ee){if(G(),!q(i))return U("property missing ':'");var ye=q(a),ne=ie({type:m,property:T(ee[0].replace(e,h)),value:ye?T(ye[0].replace(e,h)):h});return q(s),ne}}function ue(){var ie=[];B(ie);for(var ee;ee=V();)ee!==!1&&(ie.push(ee),B(ie));return ie}return Y(),ue()}function T(w){return w?w.replace(o,h):h}return Jo=y,Jo}var mf;function AD(){if(mf)return _r;mf=1;var e=_r&&_r.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_r,"__esModule",{value:!0}),_r.default=n;const t=e(vD());function n(r,i){let a=null;if(!r||typeof r!="string")return a;const s=(0,t.default)(r),o=typeof i=="function";return s.forEach(u=>{if(u.type!=="declaration")return;const{property:l,value:c}=u;o?i(l,c,u):c&&(a=a||{},a[l]=c)}),a}return _r}var gi={},pf;function kD(){if(pf)return gi;pf=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||n.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},o=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),a(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(i,o):l=l.replace(r,o),l.replace(t,s))};return gi.camelCase=u,gi}var bi,gf;function wD(){if(gf)return bi;gf=1;var e=bi&&bi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(AD()),n=kD();function r(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,u){o&&u&&(s[(0,n.camelCase)(o,a)]=u)}),s}return r.default=r,bi=r,bi}var SD=wD();const CD=Jf(SD);function zi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?bf(e.position):"start"in e||"end"in e?bf(e):"line"in e||"column"in e?fl(e):""}function fl(e){return yf(e&&e.line)+":"+yf(e&&e.column)}function bf(e){return fl(e&&e.start)+"-"+fl(e&&e.end)}function yf(e){return e&&typeof e=="number"?e:1}class ct extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=zi(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ct.prototype.file="";ct.prototype.name="";ct.prototype.reason="";ct.prototype.message="";ct.prototype.stack="";ct.prototype.column=void 0;ct.prototype.line=void 0;ct.prototype.ancestors=void 0;ct.prototype.cause=void 0;ct.prototype.fatal=void 0;ct.prototype.place=void 0;ct.prototype.ruleId=void 0;ct.prototype.source=void 0;const q0={}.hasOwnProperty,ND=new Map,ID=/[A-Z]/g,_D=new Set(["table","tbody","thead","tfoot","tr"]),DD=new Set(["td","th"]),_g="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function MD(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=HD(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=zD(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Kn:ca,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Dg(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Dg(e,t,n){if(t.type==="element")return RD(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return LD(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return OD(e,t,n);if(t.type==="mdxjsEsm")return PD(e,t);if(t.type==="root")return FD(e,t,n);if(t.type==="text")return BD(e,t)}function RD(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Kn,e.schema=i),e.ancestors.push(t);const a=Rg(e,t.tagName,!1),s=UD(e,t);let o=Y0(e,t);return _D.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!ED(u):!0})),Mg(e,s,a,t),$0(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function LD(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ta(e,t.position)}function PD(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ta(e,t.position)}function OD(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Kn,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Rg(e,t.name,!0),s=jD(e,t),o=Y0(e,t);return Mg(e,s,a,t),$0(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function FD(e,t,n){const r={};return $0(r,Y0(e,t)),e.create(t,e.Fragment,r,n)}function BD(e,t){return t.value}function Mg(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function $0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function zD(e,t,n){return r;function r(i,a,s,o){const l=Array.isArray(s.children)?n:t;return o?l(a,s,o):l(a,s)}}function HD(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),u=fn(r);return t(i,a,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function UD(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&q0.call(t.properties,i)){const a=VD(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&DD.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function jD(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ta(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else ta(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Y0(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ND;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const u=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(u){const l=i.get(u)||0;s=u+"-"+l,i.set(u,l+1)}}const o=Dg(e,a,s);o!==void 0&&n.push(o)}return n}function VD(e,t,n){const r=Bs(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Op(n):Fp(n)),r.property==="style"){let i=typeof n=="object"?n:qD(e,String(n));return e.stylePropertyNameCase==="css"&&(i=$D(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?s9[r.property]||r.property:r.attribute,n]}}function qD(e,t){try{return CD(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new ct("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=_g+"#cannot-parse-style-attribute",i}}function Rg(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const o=hf(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}r=s}else r=hf(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return q0.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);ta(e)}function ta(e,t){const n=new ct("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=_g+"#cannot-handle-mdx-estrees-without-createevaluater",n}function $D(e){const t={};let n;for(n in e)q0.call(e,n)&&(t[YD(n)]=e[n]);return t}function YD(e){let t=e.replace(ID,GD);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function GD(e){return"-"+e.toLowerCase()}const WD={tokenize:XD};function XD(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ke(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),a(o)}function a(o){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return le(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const KD={tokenize:QD},xf={tokenize:ZD};function QD(e){const t=this,n=[];let r=0,i,a,s;return o;function o(S){if(r<n.length){const O=n[r];return t.containerState=O[1],e.attempt(O[0].continuation,u,l)(S)}return l(S)}function u(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&E();const O=t.events.length;let P=O,D;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){D=t.events[P][1].end;break}A(r);let U=O;for(;U<t.events.length;)t.events[U][1].end={...D},U++;return st(t.events,P+1,0,t.events.slice(O)),t.events.length=U,l(S)}return o(S)}function l(S){if(r===n.length){if(!i)return d(S);if(i.currentConstruct&&i.currentConstruct.concrete)return y(S);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(xf,c,h)(S)}function c(S){return i&&E(),A(r),d(S)}function h(S){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,y(S)}function d(S){return t.containerState={},e.attempt(xf,m,y)(S)}function m(S){return r++,n.push([t.currentConstruct,t.containerState]),d(S)}function y(S){if(S===null){i&&E(),A(0),e.consume(S);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),T(S)}function T(S){if(S===null){w(e.exit("chunkFlow"),!0),A(0),e.consume(S);return}return le(S)?(e.consume(S),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(S),T)}function w(S,O){const P=t.sliceStream(S);if(O&&P.push(null),S.previous=a,a&&(a.next=S),a=S,i.defineSkip(S.start),i.write(P),t.parser.lazy[S.start.line]){let D=i.events.length;for(;D--;)if(i.events[D][1].start.offset<s&&(!i.events[D][1].end||i.events[D][1].end.offset>s))return;const U=t.events.length;let q=U,Y,B;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){if(Y){B=t.events[q][1].end;break}Y=!0}for(A(r),D=U;D<t.events.length;)t.events[D][1].end={...B},D++;st(t.events,q+1,0,t.events.slice(U)),t.events.length=D}}function A(S){let O=n.length;for(;O-- >S;){const P=n[O];t.containerState=P[1],P[0].exit.call(t,e)}n.length=S}function E(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function ZD(e,t,n){return ke(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const JD={tokenize:eM};function eM(e){const t=this,n=e.attempt(ba,r,e.attempt(this.parser.constructs.flowInitial,i,ke(e,e.attempt(this.parser.constructs.flow,i,e.attempt(zN,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const tM={resolveAll:Pg()},nM=Lg("string"),rM=Lg("text");function Lg(e){return{resolveAll:Pg(e==="text"?iM:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(c){return l(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),a(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const h=i[c];let d=-1;if(h)for(;++d<h.length;){const m=h[d];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function Pg(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function iM(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,s=-1,o=0,u;for(;a--;){const l=i[a];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(l===-2)u=!0,o++;else if(l!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const l={type:n===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const aM={42:Et,43:Et,45:Et,48:Et,49:Et,50:Et,51:Et,52:Et,53:Et,54:Et,55:Et,56:Et,57:Et,62:yg},sM={91:qN},oM={[-2]:Qo,[-1]:Qo,32:Qo},uM={35:KN,42:Ka,45:[of,Ka],60:eI,61:of,95:Ka,96:af,126:af},lM={38:Tg,92:xg},cM={[-5]:Zo,[-4]:Zo,[-3]:Zo,33:yI,38:Tg,42:cl,60:[TN,oI],91:TI,92:[WN,xg],93:V0,95:cl,96:RN},hM={null:[cl,tM]},dM={null:[42,95]},fM={null:[]},mM=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:dM,contentInitial:sM,disable:fM,document:aM,flow:uM,flowInitial:oM,insideSpan:hM,string:lM,text:cM},Symbol.toStringTag,{value:"Module"}));function pM(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let s=[],o=[];const u={attempt:U(P),check:U(D),consume:E,enter:S,exit:O,interrupt:U(D,{interrupt:!0})},l={code:null,containerState:{},defineSkip:T,events:[],now:y,parser:e,previous:null,sliceSerialize:d,sliceStream:m,write:h};let c=t.tokenize.call(l,u);return t.resolveAll&&a.push(t),l;function h(G){return s=at(s,G),w(),s[s.length-1]!==null?[]:(q(t,0),l.events=ii(a,l.events,l),l.events)}function d(G,V){return bM(m(G),V)}function m(G){return gM(s,G)}function y(){const{_bufferIndex:G,_index:V,line:ue,column:ie,offset:ee}=r;return{_bufferIndex:G,_index:V,line:ue,column:ie,offset:ee}}function T(G){i[G.line]=G.column,B()}function w(){let G;for(;r._index<s.length;){const V=s[r._index];if(typeof V=="string")for(G=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===G&&r._bufferIndex<V.length;)A(V.charCodeAt(r._bufferIndex));else A(V)}}function A(G){c=c(G)}function E(G){le(G)?(r.line++,r.column=1,r.offset+=G===-3?2:1,B()):G!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=G}function S(G,V){const ue=V||{};return ue.type=G,ue.start=y(),l.events.push(["enter",ue,l]),o.push(ue),ue}function O(G){const V=o.pop();return V.end=y(),l.events.push(["exit",V,l]),V}function P(G,V){q(G,V.from)}function D(G,V){V.restore()}function U(G,V){return ue;function ue(ie,ee,ye){let ne,he,de,_;return Array.isArray(ie)?ce(ie):"tokenize"in ie?ce([ie]):be(ie);function be(Fe){return Rt;function Rt(ht){const jt=ht!==null&&Fe[ht],Vt=ht!==null&&Fe.null,kr=[...Array.isArray(jt)?jt:jt?[jt]:[],...Array.isArray(Vt)?Vt:Vt?[Vt]:[]];return ce(kr)(ht)}}function ce(Fe){return ne=Fe,he=0,Fe.length===0?ye:L(Fe[he])}function L(Fe){return Rt;function Rt(ht){return _=Y(),de=Fe,Fe.partial||(l.currentConstruct=Fe),Fe.name&&l.parser.constructs.disable.null.includes(Fe.name)?rt():Fe.tokenize.call(V?Object.assign(Object.create(l),V):l,u,nt,rt)(ht)}}function nt(Fe){return G(de,_),ee}function rt(Fe){return _.restore(),++he<ne.length?L(ne[he]):ye}}}function q(G,V){G.resolveAll&&!a.includes(G)&&a.push(G),G.resolve&&st(l.events,V,l.events.length-V,G.resolve(l.events.slice(V),l)),G.resolveTo&&(l.events=G.resolveTo(l.events,l))}function Y(){const G=y(),V=l.previous,ue=l.currentConstruct,ie=l.events.length,ee=Array.from(o);return{from:ie,restore:ye};function ye(){r=G,l.previous=V,l.currentConstruct=ue,l.events.length=ie,o=ee,B()}}function B(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function gM(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,a)];else{if(s=e.slice(n,i),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function bM(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
|
|
306
|
+
`;break}case-3:{s=`\r
|
|
307
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,r.push(s)}return r.join("")}function yM(e){const r={constructs:lg([mM,...(e||{}).extensions||[]]),content:i(WD),defined:[],document:i(KD),flow:i(JD),lazy:{},string:i(nM),text:i(rM)};return r;function i(a){return s;function s(o){return pM(r,a,o)}}}function xM(e){for(;!Eg(e););return e}const Tf=/[\0\t\n\r]/g;function TM(){let e=1,t="",n=!0,r;return i;function i(a,s,o){const u=[];let l,c,h,d,m;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),h=0,t="",n&&(a.charCodeAt(0)===65279&&h++,n=void 0);h<a.length;){if(Tf.lastIndex=h,l=Tf.exec(a),d=l&&l.index!==void 0?l.index:a.length,m=a.charCodeAt(d),!l){t=a.slice(h);break}if(m===10&&h===d&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),h<d&&(u.push(a.slice(h,d)),e+=d-h),m){case 0:{u.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,u.push(-2);e++<c;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}h=d+1}return o&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const Og={}.hasOwnProperty;function EM(e,t,n){return typeof t!="string"&&(n=t,t=void 0),vM(n)(xM(yM(n).document().write(TM()(e,t,!0))))}function vM(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Jn),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:a(oi),blockQuote:a(Vt),characterEscape:Y,characterReference:Y,codeFenced:a(kr),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(kr,s),codeText:a(io,s),codeTextData:Y,data:Y,codeFlowValue:Y,definition:a(ao),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(si),hardBreakEscape:a(ui),hardBreakTrailing:a(ui),htmlFlow:a(wr,s),htmlFlowData:Y,htmlText:a(wr,s),htmlTextData:Y,image:a(Sr),label:s,link:a(Jn),listItem:a(B3),listItemValue:d,listOrdered:a(ac,h),listUnordered:a(ac),paragraph:a(z3),reference:L,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(oi),strong:a(H3),thematicBreak:a(j3)},exit:{atxHeading:u(),atxHeadingSequence:P,autolink:u(),autolinkEmail:jt,autolinkProtocol:ht,blockQuote:u(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:rt,characterReferenceMarkerNumeric:rt,characterReferenceValue:Fe,characterReference:Rt,codeFenced:u(w),codeFencedFence:T,codeFencedFenceInfo:m,codeFencedFenceMeta:y,codeFlowValue:B,codeIndented:u(A),codeText:u(ee),codeTextData:B,data:B,definition:u(),definitionDestinationString:O,definitionLabelString:E,definitionTitleString:S,emphasis:u(),hardBreakEscape:u(V),hardBreakTrailing:u(V),htmlFlow:u(ue),htmlFlowData:B,htmlText:u(ie),htmlTextData:B,image:u(ne),label:de,labelText:he,lineEnding:G,link:u(ye),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:nt,resourceDestinationString:_,resourceTitleString:be,resource:ce,setextHeading:u(q),setextHeadingLineSequence:U,setextHeadingText:D,strong:u(),thematicBreak:u()}};Fg(t,(e||{}).mdastExtensions||[]);const n={};return r;function r($){let re={type:"root",children:[]};const xe={stack:[re],tokenStack:[],config:t,enter:o,exit:l,buffer:s,resume:c,data:n},Se=[];let Me=-1;for(;++Me<$.length;)if($[Me][1].type==="listOrdered"||$[Me][1].type==="listUnordered")if($[Me][0]==="enter")Se.push(Me);else{const qt=Se.pop();Me=i($,qt,Me)}for(Me=-1;++Me<$.length;){const qt=t[$[Me][0]];Og.call(qt,$[Me][1].type)&&qt[$[Me][1].type].call(Object.assign({sliceSerialize:$[Me][2].sliceSerialize},xe),$[Me][1])}if(xe.tokenStack.length>0){const qt=xe.tokenStack[xe.tokenStack.length-1];(qt[1]||Ef).call(xe,void 0,qt[0])}for(re.position={start:Ln($.length>0?$[0][1].start:{line:1,column:1,offset:0}),end:Ln($.length>0?$[$.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me<t.transforms.length;)re=t.transforms[Me](re)||re;return re}function i($,re,xe){let Se=re-1,Me=-1,qt=!1,er,pn,li,ci;for(;++Se<=xe;){const St=$[Se];switch(St[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{St[0]==="enter"?Me++:Me--,ci=void 0;break}case"lineEndingBlank":{St[0]==="enter"&&(er&&!ci&&!Me&&!li&&(li=Se),ci=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ci=void 0}if(!Me&&St[0]==="enter"&&St[1].type==="listItemPrefix"||Me===-1&&St[0]==="exit"&&(St[1].type==="listUnordered"||St[1].type==="listOrdered")){if(er){let Cr=Se;for(pn=void 0;Cr--;){const gn=$[Cr];if(gn[1].type==="lineEnding"||gn[1].type==="lineEndingBlank"){if(gn[0]==="exit")continue;pn&&($[pn][1].type="lineEndingBlank",qt=!0),gn[1].type="lineEnding",pn=Cr}else if(!(gn[1].type==="linePrefix"||gn[1].type==="blockQuotePrefix"||gn[1].type==="blockQuotePrefixWhitespace"||gn[1].type==="blockQuoteMarker"||gn[1].type==="listItemIndent"))break}li&&(!pn||li<pn)&&(er._spread=!0),er.end=Object.assign({},pn?$[pn][1].start:St[1].end),$.splice(pn||Se,0,["exit",er,St[2]]),Se++,xe++}if(St[1].type==="listItemPrefix"){const Cr={type:"listItem",_spread:!1,start:Object.assign({},St[1].start),end:void 0};er=Cr,$.splice(Se,0,["enter",Cr,St[2]]),Se++,xe++,li=void 0,ci=!0}}}return $[re][1]._spread=qt,xe}function a($,re){return xe;function xe(Se){o.call(this,$(Se),Se),re&&re.call(this,Se)}}function s(){this.stack.push({type:"fragment",children:[]})}function o($,re,xe){this.stack[this.stack.length-1].children.push($),this.stack.push($),this.tokenStack.push([re,xe||void 0]),$.position={start:Ln(re.start),end:void 0}}function u($){return re;function re(xe){$&&$.call(this,xe),l.call(this,xe)}}function l($,re){const xe=this.stack.pop(),Se=this.tokenStack.pop();if(Se)Se[0].type!==$.type&&(re?re.call(this,$,Se[0]):(Se[1]||Ef).call(this,$,Se[0]));else throw new Error("Cannot close `"+$.type+"` ("+zi({start:$.start,end:$.end})+"): it’s not open");xe.position.end=Ln($.end)}function c(){return z0(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function d($){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize($),10),this.data.expectingFirstListItemValue=void 0}}function m(){const $=this.resume(),re=this.stack[this.stack.length-1];re.lang=$}function y(){const $=this.resume(),re=this.stack[this.stack.length-1];re.meta=$}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const $=this.resume(),re=this.stack[this.stack.length-1];re.value=$.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const $=this.resume(),re=this.stack[this.stack.length-1];re.value=$.replace(/(\r?\n|\r)$/g,"")}function E($){const re=this.resume(),xe=this.stack[this.stack.length-1];xe.label=re,xe.identifier=Xt(this.sliceSerialize($)).toLowerCase()}function S(){const $=this.resume(),re=this.stack[this.stack.length-1];re.title=$}function O(){const $=this.resume(),re=this.stack[this.stack.length-1];re.url=$}function P($){const re=this.stack[this.stack.length-1];if(!re.depth){const xe=this.sliceSerialize($).length;re.depth=xe}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function U($){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize($).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function Y($){const xe=this.stack[this.stack.length-1].children;let Se=xe[xe.length-1];(!Se||Se.type!=="text")&&(Se=U3(),Se.position={start:Ln($.start),end:void 0},xe.push(Se)),this.stack.push(Se)}function B($){const re=this.stack.pop();re.value+=this.sliceSerialize($),re.position.end=Ln($.end)}function G($){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const xe=re.children[re.children.length-1];xe.position.end=Ln($.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(Y.call(this,$),B.call(this,$))}function V(){this.data.atHardBreak=!0}function ue(){const $=this.resume(),re=this.stack[this.stack.length-1];re.value=$}function ie(){const $=this.resume(),re=this.stack[this.stack.length-1];re.value=$}function ee(){const $=this.resume(),re=this.stack[this.stack.length-1];re.value=$}function ye(){const $=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";$.type+="Reference",$.referenceType=re,delete $.url,delete $.title}else delete $.identifier,delete $.label;this.data.referenceType=void 0}function ne(){const $=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";$.type+="Reference",$.referenceType=re,delete $.url,delete $.title}else delete $.identifier,delete $.label;this.data.referenceType=void 0}function he($){const re=this.sliceSerialize($),xe=this.stack[this.stack.length-2];xe.label=qC(re),xe.identifier=Xt(re).toLowerCase()}function de(){const $=this.stack[this.stack.length-1],re=this.resume(),xe=this.stack[this.stack.length-1];if(this.data.inReference=!0,xe.type==="link"){const Se=$.children;xe.children=Se}else xe.alt=re}function _(){const $=this.resume(),re=this.stack[this.stack.length-1];re.url=$}function be(){const $=this.resume(),re=this.stack[this.stack.length-1];re.title=$}function ce(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function nt($){const re=this.resume(),xe=this.stack[this.stack.length-1];xe.label=re,xe.identifier=Xt(this.sliceSerialize($)).toLowerCase(),this.data.referenceType="full"}function rt($){this.data.characterReferenceType=$.type}function Fe($){const re=this.sliceSerialize($),xe=this.data.characterReferenceType;let Se;xe?(Se=ug(re,xe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Se=U0(re);const Me=this.stack[this.stack.length-1];Me.value+=Se}function Rt($){const re=this.stack.pop();re.position.end=Ln($.end)}function ht($){B.call(this,$);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize($)}function jt($){B.call(this,$);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize($)}function Vt(){return{type:"blockquote",children:[]}}function kr(){return{type:"code",lang:null,meta:null,value:""}}function io(){return{type:"inlineCode",value:""}}function ao(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function si(){return{type:"emphasis",children:[]}}function oi(){return{type:"heading",depth:0,children:[]}}function ui(){return{type:"break"}}function wr(){return{type:"html",value:""}}function Sr(){return{type:"image",title:null,url:"",alt:null}}function Jn(){return{type:"link",title:null,url:"",children:[]}}function ac($){return{type:"list",ordered:$.type==="listOrdered",start:null,spread:$._spread,children:[]}}function B3($){return{type:"listItem",spread:$._spread,checked:null,children:[]}}function z3(){return{type:"paragraph",children:[]}}function H3(){return{type:"strong",children:[]}}function U3(){return{type:"text",value:""}}function j3(){return{type:"thematicBreak"}}}function Ln(e){return{line:e.line,column:e.column,offset:e.offset}}function Fg(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Fg(e,r):AM(e,r)}}function AM(e,t){let n;for(n in t)if(Og.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Ef(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+zi({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+zi({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+zi({start:t.start,end:t.end})+") is still open")}function kM(e){const t=this;t.parser=n;function n(r){return EM(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function wM(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function SM(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
308
|
+
`}]}function CM(e,t){const n=t.value?t.value+`
|
|
309
|
+
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function NM(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function IM(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _M(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=ai(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(r,o);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function DM(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function MM(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Bg(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function RM(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Bg(e,t);const i={src:ai(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function LM(e,t){const n={src:ai(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function PM(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function OM(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Bg(e,t);const i={href:ai(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function FM(e,t){const n={href:ai(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function BM(e,t,n){const r=e.all(t),i=n?zM(n):zg(t),a={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let h;c&&c.type==="element"&&c.tagName==="p"?h=c:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const c=r[o];(i||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
310
|
+
`}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
|
|
311
|
+
`});const l={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,l),e.applyData(t,l)}function zM(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=zg(n[r])}return t}function zg(e){const t=e.spread;return t??e.children.length>1}function HM(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function UM(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jM(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function VM(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qM(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=fn(t.children[1]),u=Qs(t.children[t.children.length-1]);o&&u&&(s.position={start:o,end:u}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function $M(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let u=-1;const l=[];for(;++u<o;){const h=t.children[u],d={},m=s?s[u]:void 0;m&&(d.align=m);let y={type:"element",tagName:a,properties:d,children:[]};h&&(y.children=e.all(h),e.patch(h,y),y=e.applyData(h,y)),l.push(y)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)}function YM(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const vf=9,Af=32;function GM(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(kf(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(kf(t.slice(i),i>0,!1)),a.join("")}function kf(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===vf||a===Af;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===vf||a===Af;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function WM(e,t){const n={type:"text",value:GM(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function XM(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const KM={blockquote:wM,break:SM,code:CM,delete:NM,emphasis:IM,footnoteReference:_M,heading:DM,html:MM,imageReference:RM,image:LM,inlineCode:PM,linkReference:OM,link:FM,listItem:BM,list:HM,paragraph:UM,root:jM,strong:VM,table:qM,tableCell:YM,tableRow:$M,text:WM,thematicBreak:XM,toml:Oa,yaml:Oa,definition:Oa,footnoteDefinition:Oa};function Oa(){}function QM(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function ZM(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function JM(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||QM,r=e.options.footnoteBackLabel||ZM,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[u]);if(!l)continue;const c=e.all(l),h=String(l.identifier).toUpperCase(),d=ai(h.toLowerCase());let m=0;const y=[],T=e.footnoteCounts.get(h);for(;T!==void 0&&++m<=T;){y.length>0&&y.push({type:"text",value:" "});let E=typeof n=="string"?n:n(u,m);typeof E=="string"&&(E={type:"text",value:E}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,m),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const w=c[c.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const E=w.children[w.children.length-1];E&&E.type==="text"?E.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...y)}else c.push(...y);const A={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(l,A),o.push(A)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...mr(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
312
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
313
|
+
`}]}}const ml={}.hasOwnProperty,eR={};function tR(e,t){const n=t||eR,r=new Map,i=new Map,a=new Map,s={...KM,...n.handlers},o={all:l,applyData:rR,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:u,options:n,patch:nR,wrap:aR};return qr(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const h=c.type==="definition"?r:i,d=String(c.identifier).toUpperCase();h.has(d)||h.set(d,c)}}),o;function u(c,h){const d=c.type,m=o.handlers[d];if(ml.call(o.handlers,d)&&m)return m(o,c,h);if(o.options.passThrough&&o.options.passThrough.includes(d)){if("children"in c){const{children:T,...w}=c,A=mr(w);return A.children=o.all(c),A}return mr(c)}return(o.options.unknownHandler||iR)(o,c,h)}function l(c){const h=[];if("children"in c){const d=c.children;let m=-1;for(;++m<d.length;){const y=o.one(d[m],c);if(y){if(m&&d[m-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=wf(y.value)),!Array.isArray(y)&&y.type==="element")){const T=y.children[0];T&&T.type==="text"&&(T.value=wf(T.value))}Array.isArray(y)?h.push(...y):h.push(y)}}}return h}}function nR(e,t){e.position&&(t.position=_4(e))}function rR(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,mr(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function iR(e,t){const n=t.data||{},r="value"in t&&!(ml.call(n,"hProperties")||ml.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function aR(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
314
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
315
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
316
|
+
`}),n}function wf(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Sf(e,t){const n=tR(e,t),r=n.one(e,void 0),i=JM(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
|
|
317
|
+
`},i),a}function sR(e,t){return e&&"run"in e?async function(n,r){const i=Sf(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Sf(n,{file:r,...e||t})}}function Cf(e){if(e)throw e}var eu,Nf;function oR(){if(Nf)return eu;Nf=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},a=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var c=e.call(l,"constructor"),h=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!c&&!h)return!1;var d;for(d in l);return typeof d>"u"||e.call(l,d)},s=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},o=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(r)return r(l,c).value}else return;return l[c]};return eu=function u(){var l,c,h,d,m,y,T=arguments[0],w=1,A=arguments.length,E=!1;for(typeof T=="boolean"&&(E=T,T=arguments[1]||{},w=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});w<A;++w)if(l=arguments[w],l!=null)for(c in l)h=o(T,c),d=o(l,c),T!==d&&(E&&d&&(a(d)||(m=i(d)))?(m?(m=!1,y=h&&i(h)?h:[]):y=h&&a(h)?h:{},s(T,{name:c,newValue:u(E,y,d)})):typeof d<"u"&&s(T,{name:c,newValue:d}));return T},eu}var uR=oR();const tu=Jf(uR);function pl(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function lR(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(u,...l){const c=e[++a];let h=-1;if(u){s(u);return}for(;++h<i.length;)(l[h]===null||l[h]===void 0)&&(l[h]=i[h]);i=l,c?cR(c,o)(...l):s(null,...l)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function cR(e,t){let n;return r;function r(...s){const o=e.length>s.length;let u;o&&s.push(i);try{u=e.apply(this,s)}catch(l){const c=l;if(o&&n)throw c;return i(c)}o||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const en={basename:hR,dirname:dR,extname:fR,join:mR,sep:"/"};function hR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ya(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function dR(e){if(ya(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function fR(e){ya(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function mR(...e){let t=-1,n;for(;++t<e.length;)ya(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":pR(n)}function pR(e){ya(e);const t=e.codePointAt(0)===47;let n=gR(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function gR(e,t){let n="",r=0,i=-1,a=0,s=-1,o,u;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function ya(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const bR={cwd:yR};function yR(){return"/"}function gl(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function xR(e){if(typeof e=="string")e=new URL(e);else if(!gl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return TR(e)}function TR(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const nu=["history","path","basename","stem","extname","dirname"];class ER{constructor(t){let n;t?gl(t)?n={path:t}:typeof t=="string"||vR(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":bR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<nu.length;){const a=nu[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)nu.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?en.basename(this.path):void 0}set basename(t){iu(t,"basename"),ru(t,"basename"),this.path=en.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?en.dirname(this.path):void 0}set dirname(t){If(this.basename,"dirname"),this.path=en.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?en.extname(this.path):void 0}set extname(t){if(ru(t,"extname"),If(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=en.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){gl(t)&&(t=xR(t)),iu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?en.basename(this.path,this.extname):void 0}set stem(t){iu(t,"stem"),ru(t,"stem"),this.path=en.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new ct(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ru(e,t){if(e&&e.includes(en.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+en.sep+"`")}function iu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function If(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function vR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const AR=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),kR={}.hasOwnProperty;class G0 extends AR{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=lR()}copy(){const t=new G0;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(tu(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(ou("data",this.frozen),this.namespace[t]=n,this):kR.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ou("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Fa(t),r=this.parser||this.Parser;return au("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),au("process",this.parser||this.Parser),su("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,s){const o=Fa(t),u=r.parse(o);r.run(u,o,function(c,h,d){if(c||!h||!d)return l(c);const m=h,y=r.stringify(m,d);CR(y)?d.value=y:d.result=y,l(c,d)});function l(c,h){c||!h?s(c):a?a(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),au("processSync",this.parser||this.Parser),su("processSync",this.compiler||this.Compiler),this.process(t,i),Df("processSync","process",n),r;function i(a,s){n=!0,Cf(a),r=s}}run(t,n,r){_f(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,o){const u=Fa(n);i.run(t,u,l);function l(c,h,d){const m=h||t;c?o(c):s?s(m):r(void 0,m,d)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),Df("runSync","run",r),i;function a(s,o){Cf(s),i=o,r=!0}}stringify(t,n){this.freeze();const r=Fa(n),i=this.compiler||this.Compiler;return su("stringify",i),_f(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(ou("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(l){if(typeof l=="function")u(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[c,...h]=l;u(c,h)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(l.plugins),l.settings&&(i.settings=tu(!0,i.settings,l.settings))}function o(l){let c=-1;if(l!=null)if(Array.isArray(l))for(;++c<l.length;){const h=l[c];a(h)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function u(l,c){let h=-1,d=-1;for(;++h<r.length;)if(r[h][0]===l){d=h;break}if(d===-1)r.push([l,...c]);else if(c.length>0){let[m,...y]=c;const T=r[d][1];pl(T)&&pl(m)&&(m=tu(!0,T,m)),r[d]=[l,m,...y]}}}}const wR=new G0().freeze();function au(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function su(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ou(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _f(e){if(!pl(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Df(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Fa(e){return SR(e)?e:new ER(e)}function SR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function CR(e){return typeof e=="string"||NR(e)}function NR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function W0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ar=W0();function Hg(e){Ar=e}var Hi={exec:()=>null};function Ie(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(bt.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,t)};return r}var IR=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),bt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},_R=/^(?:[ \t]*(?:\n|$))+/,DR=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,MR=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,xa=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,RR=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,X0=/(?:[*+-]|\d{1,9}[.)])/,Ug=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,jg=Ie(Ug).replace(/bull/g,X0).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),LR=Ie(Ug).replace(/bull/g,X0).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),K0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,PR=/^[^\n]+/,Q0=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,OR=Ie(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Q0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),FR=Ie(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,X0).getRegex(),to="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Z0=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,BR=Ie("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Z0).replace("tag",to).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Vg=Ie(K0).replace("hr",xa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",to).getRegex(),zR=Ie(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Vg).getRegex(),J0={blockquote:zR,code:DR,def:OR,fences:MR,heading:RR,hr:xa,html:BR,lheading:jg,list:FR,newline:_R,paragraph:Vg,table:Hi,text:PR},Mf=Ie("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",xa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",to).getRegex(),HR={...J0,lheading:LR,table:Mf,paragraph:Ie(K0).replace("hr",xa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Mf).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",to).getRegex()},UR={...J0,html:Ie(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Z0).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Hi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ie(K0).replace("hr",xa).replace("heading",` *#{1,6} *[^
|
|
318
|
+
]`).replace("lheading",jg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},jR=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,VR=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,qg=/^( {2,}|\\)\n(?!\s*$)/,qR=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,no=/[\p{P}\p{S}]/u,ec=/[\s\p{P}\p{S}]/u,$g=/[^\s\p{P}\p{S}]/u,$R=Ie(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ec).getRegex(),Yg=/(?!~)[\p{P}\p{S}]/u,YR=/(?!~)[\s\p{P}\p{S}]/u,GR=/(?:[^\s\p{P}\p{S}]|~)/u,WR=Ie(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",IR?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Gg=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,XR=Ie(Gg,"u").replace(/punct/g,no).getRegex(),KR=Ie(Gg,"u").replace(/punct/g,Yg).getRegex(),Wg="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",QR=Ie(Wg,"gu").replace(/notPunctSpace/g,$g).replace(/punctSpace/g,ec).replace(/punct/g,no).getRegex(),ZR=Ie(Wg,"gu").replace(/notPunctSpace/g,GR).replace(/punctSpace/g,YR).replace(/punct/g,Yg).getRegex(),JR=Ie("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,$g).replace(/punctSpace/g,ec).replace(/punct/g,no).getRegex(),eL=Ie(/\\(punct)/,"gu").replace(/punct/g,no).getRegex(),tL=Ie(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),nL=Ie(Z0).replace("(?:-->|$)","-->").getRegex(),rL=Ie("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",nL).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),As=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,iL=Ie(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",As).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Xg=Ie(/^!?\[(label)\]\[(ref)\]/).replace("label",As).replace("ref",Q0).getRegex(),Kg=Ie(/^!?\[(ref)\](?:\[\])?/).replace("ref",Q0).getRegex(),aL=Ie("reflink|nolink(?!\\()","g").replace("reflink",Xg).replace("nolink",Kg).getRegex(),Rf=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,tc={_backpedal:Hi,anyPunctuation:eL,autolink:tL,blockSkip:WR,br:qg,code:VR,del:Hi,emStrongLDelim:XR,emStrongRDelimAst:QR,emStrongRDelimUnd:JR,escape:jR,link:iL,nolink:Kg,punctuation:$R,reflink:Xg,reflinkSearch:aL,tag:rL,text:qR,url:Hi},sL={...tc,link:Ie(/^!?\[(label)\]\((.*?)\)/).replace("label",As).getRegex(),reflink:Ie(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",As).getRegex()},bl={...tc,emStrongRDelimAst:ZR,emStrongLDelim:KR,url:Ie(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Rf).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ie(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Rf).getRegex()},oL={...bl,br:Ie(qg).replace("{2,}","*").getRegex(),text:Ie(bl.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ba={normal:J0,gfm:HR,pedantic:UR},yi={normal:tc,gfm:bl,breaks:oL,pedantic:sL},uL={"&":"&","<":"<",">":">",'"':""","'":"'"},Lf=e=>uL[e];function Zt(e,t){if(t){if(bt.escapeTest.test(e))return e.replace(bt.escapeReplace,Lf)}else if(bt.escapeTestNoEncode.test(e))return e.replace(bt.escapeReplaceNoEncode,Lf);return e}function Pf(e){try{e=encodeURI(e).replace(bt.percentDecode,"%")}catch{return null}return e}function Of(e,t){let n=e.replace(bt.findPipe,(a,s,o)=>{let u=!1,l=s;for(;--l>=0&&o[l]==="\\";)u=!u;return u?"|":" |"}),r=n.split(bt.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(bt.slashPipe,"|");return r}function xi(e,t,n){let r=e.length;if(r===0)return"";let i=0;for(;i<r&&e.charAt(r-i-1)===t;)i++;return e.slice(0,r-i)}function lL(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Ff(e,t,n,r,i){let a=t.href,s=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,u}function cL(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
319
|
+
`).map(a=>{let s=a.match(n.other.beginningSpace);if(s===null)return a;let[o]=s;return o.length>=i.length?a.slice(i.length):a}).join(`
|
|
320
|
+
`)}var ks=class{options;rules;lexer;constructor(e){this.options=e||Ar}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:xi(n,`
|
|
321
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=cL(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=xi(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:xi(t[0],`
|
|
322
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=xi(t[0],`
|
|
323
|
+
`).split(`
|
|
324
|
+
`),r="",i="",a=[];for(;n.length>0;){let s=!1,o=[],u;for(u=0;u<n.length;u++)if(this.rules.other.blockquoteStart.test(n[u]))o.push(n[u]),s=!0;else if(!s)o.push(n[u]);else break;n=n.slice(u);let l=o.join(`
|
|
325
|
+
`),c=l.replace(this.rules.other.blockquoteSetextReplace,`
|
|
326
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
327
|
+
${l}`:l,i=i?`${i}
|
|
328
|
+
${c}`:c;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,a,!0),this.lexer.state.top=h,n.length===0)break;let d=a.at(-1);if(d?.type==="code")break;if(d?.type==="blockquote"){let m=d,y=m.raw+`
|
|
329
|
+
`+n.join(`
|
|
330
|
+
`),T=this.blockquote(y);a[a.length-1]=T,r=r.substring(0,r.length-m.raw.length)+T.raw,i=i.substring(0,i.length-m.text.length)+T.text;break}else if(d?.type==="list"){let m=d,y=m.raw+`
|
|
331
|
+
`+n.join(`
|
|
332
|
+
`),T=this.list(y);a[a.length-1]=T,r=r.substring(0,r.length-d.raw.length)+T.raw,i=i.substring(0,i.length-m.raw.length)+T.raw,n=y.substring(a.at(-1).raw.length).split(`
|
|
333
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:a,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),s=!1;for(;e;){let u=!1,l="",c="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let h=t[2].split(`
|
|
334
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,A=>" ".repeat(3*A.length)),d=e.split(`
|
|
335
|
+
`,1)[0],m=!h.trim(),y=0;if(this.options.pedantic?(y=2,c=h.trimStart()):m?y=t[1].length+1:(y=t[2].search(this.rules.other.nonSpaceChar),y=y>4?1:y,c=h.slice(y),y+=t[1].length),m&&this.rules.other.blankLine.test(d)&&(l+=d+`
|
|
336
|
+
`,e=e.substring(d.length+1),u=!0),!u){let A=this.rules.other.nextBulletRegex(y),E=this.rules.other.hrRegex(y),S=this.rules.other.fencesBeginRegex(y),O=this.rules.other.headingBeginRegex(y),P=this.rules.other.htmlBeginRegex(y);for(;e;){let D=e.split(`
|
|
337
|
+
`,1)[0],U;if(d=D,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),U=d):U=d.replace(this.rules.other.tabCharGlobal," "),S.test(d)||O.test(d)||P.test(d)||A.test(d)||E.test(d))break;if(U.search(this.rules.other.nonSpaceChar)>=y||!d.trim())c+=`
|
|
338
|
+
`+U.slice(y);else{if(m||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||S.test(h)||O.test(h)||E.test(h))break;c+=`
|
|
339
|
+
`+d}!m&&!d.trim()&&(m=!0),l+=D+`
|
|
340
|
+
`,e=e.substring(D.length+1),h=U.slice(y)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(s=!0));let T=null,w;this.options.gfm&&(T=this.rules.other.listIsTask.exec(c),T&&(w=T[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:l,task:!!T,checked:w,loose:!1,text:c,tokens:[]}),i.raw+=l}let o=i.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let u=0;u<i.items.length;u++)if(this.lexer.state.top=!1,i.items[u].tokens=this.lexer.blockTokens(i.items[u].text,[]),!i.loose){let l=i.items[u].tokens.filter(h=>h.type==="space"),c=l.length>0&&l.some(h=>this.rules.other.anyLine.test(h.raw));i.loose=c}if(i.loose)for(let u=0;u<i.items.length;u++)i.items[u].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Of(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
341
|
+
`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let s of r)this.rules.other.tableAlignRight.test(s)?a.align.push("right"):this.rules.other.tableAlignCenter.test(s)?a.align.push("center"):this.rules.other.tableAlignLeft.test(s)?a.align.push("left"):a.align.push(null);for(let s=0;s<n.length;s++)a.header.push({text:n[s],tokens:this.lexer.inline(n[s]),header:!0,align:a.align[s]});for(let s of i)a.rows.push(Of(s,a.header.length).map((o,u)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:a.align[u]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
342
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=xi(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=lL(t[2],"()");if(a===-2)return;if(a>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],i=a[3])}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),Ff(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[r.toLowerCase()];if(!i){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return Ff(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,s,o=i,u=0,l=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+i);(r=l.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(s=[...a].length,r[3]||r[4]){o+=s;continue}else if((r[5]||r[6])&&i%3&&!((i+s)%3)){u+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o+u);let c=[...r[0]][0].length,h=e.slice(0,i+r.index+c+s);if(Math.min(i,s)%2){let m=h.slice(1,-1);return{type:"em",raw:h,text:m,tokens:this.lexer.inlineTokens(m)}}let d=h.slice(2,-2);return{type:"strong",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},Ot=class yl{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ar,this.options.tokenizer=this.options.tokenizer||new ks,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:bt,block:Ba.normal,inline:yi.normal};this.options.pedantic?(n.block=Ba.pedantic,n.inline=yi.pedantic):this.options.gfm&&(n.block=Ba.gfm,this.options.breaks?n.inline=yi.breaks:n.inline=yi.gfm),this.tokenizer.rules=n}static get rules(){return{block:Ba,inline:yi}}static lex(t,n){return new yl(n).lex(t)}static lexInline(t,n){return new yl(n).inlineTokens(t)}lex(t){t=t.replace(bt.carriageReturn,`
|
|
343
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){for(this.options.pedantic&&(t=t.replace(bt.tabCharGlobal," ").replace(bt.spaceLine,""));t;){let i;if(this.options.extensions?.block?.some(s=>(i=s.call({lexer:this},t,n))?(t=t.substring(i.raw.length),n.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let s=n.at(-1);i.raw.length===1&&s!==void 0?s.raw+=`
|
|
344
|
+
`:n.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
345
|
+
`)?"":`
|
|
346
|
+
`)+i.raw,s.text+=`
|
|
347
|
+
`+i.text,this.inlineQueue.at(-1).src=s.text):n.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
348
|
+
`)?"":`
|
|
349
|
+
`)+i.raw,s.text+=`
|
|
350
|
+
`+i.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},n.push(i));continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),n.push(i);continue}let a=t;if(this.options.extensions?.startBlock){let s=1/0,o=t.slice(1),u;this.options.extensions.startBlock.forEach(l=>{u=l.call({lexer:this},o),typeof u=="number"&&u>=0&&(s=Math.min(s,u))}),s<1/0&&s>=0&&(a=t.substring(0,s+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let s=n.at(-1);r&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
|
|
351
|
+
`)?"":`
|
|
352
|
+
`)+i.raw,s.text+=`
|
|
353
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(i),r=a.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let s=n.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
354
|
+
`)?"":`
|
|
355
|
+
`)+i.raw,s.text+=`
|
|
356
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(i);continue}if(t){let s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r=t,i=null;if(this.tokens.links){let u=Object.keys(this.tokens.links);if(u.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)u.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)a=i[2]?i[2].length:0,r=r.slice(0,i.index+a)+"["+"a".repeat(i[0].length-a-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,o="";for(;t;){s||(o=""),s=!1;let u;if(this.options.extensions?.inline?.some(c=>(u=c.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);let c=n.at(-1);u.type==="text"&&c?.type==="text"?(c.raw+=u.raw,c.text+=u.text):n.push(u);continue}if(u=this.tokenizer.emStrong(t,r,o)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.del(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),n.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),n.push(u);continue}let l=t;if(this.options.extensions?.startInline){let c=1/0,h=t.slice(1),d;this.options.extensions.startInline.forEach(m=>{d=m.call({lexer:this},h),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(l=t.substring(0,c+1))}if(u=this.tokenizer.inlineText(l)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(o=u.raw.slice(-1)),s=!0;let c=n.at(-1);c?.type==="text"?(c.raw+=u.raw,c.text+=u.text):n.push(u);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}},ws=class{options;parser;constructor(e){this.options=e||Ar}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(bt.notSpaceStart)?.[0],i=e.replace(bt.endingNewline,"")+`
|
|
357
|
+
`;return r?'<pre><code class="language-'+Zt(r)+'">'+(n?i:Zt(i,!0))+`</code></pre>
|
|
358
|
+
`:"<pre><code>"+(n?i:Zt(i,!0))+`</code></pre>
|
|
359
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
360
|
+
${this.parser.parse(e)}</blockquote>
|
|
361
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
362
|
+
`}hr(e){return`<hr>
|
|
363
|
+
`}list(e){let t=e.ordered,n=e.start,r="";for(let s=0;s<e.items.length;s++){let o=e.items[s];r+=this.listitem(o)}let i=t?"ol":"ul",a=t&&n!==1?' start="'+n+'"':"";return"<"+i+a+`>
|
|
364
|
+
`+r+"</"+i+`>
|
|
365
|
+
`}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+Zt(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
|
|
366
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
367
|
+
`}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let r="";for(let i=0;i<e.rows.length;i++){let a=e.rows[i];n="";for(let s=0;s<a.length;s++)n+=this.tablecell(a[s]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
368
|
+
<thead>
|
|
369
|
+
`+t+`</thead>
|
|
370
|
+
`+r+`</table>
|
|
371
|
+
`}tablerow({text:e}){return`<tr>
|
|
372
|
+
${e}</tr>
|
|
373
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
374
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Zt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Pf(e);if(i===null)return r;e=i;let a='<a href="'+e+'"';return t&&(a+=' title="'+Zt(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Pf(e);if(i===null)return Zt(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${Zt(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Zt(e.text)}},nc=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Wt=class xl{options;renderer;textRenderer;constructor(t){this.options=t||Ar,this.options.renderer=this.options.renderer||new ws,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new nc}static parse(t,n){return new xl(n).parse(t)}static parseInline(t,n){return new xl(n).parseInline(t)}parse(t,n=!0){let r="";for(let i=0;i<t.length;i++){let a=t[i];if(this.options.extensions?.renderers?.[a.type]){let o=a,u=this.options.extensions.renderers[o.type].call({parser:this},o);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){r+=u||"";continue}}let s=a;switch(s.type){case"space":{r+=this.renderer.space(s);continue}case"hr":{r+=this.renderer.hr(s);continue}case"heading":{r+=this.renderer.heading(s);continue}case"code":{r+=this.renderer.code(s);continue}case"table":{r+=this.renderer.table(s);continue}case"blockquote":{r+=this.renderer.blockquote(s);continue}case"list":{r+=this.renderer.list(s);continue}case"html":{r+=this.renderer.html(s);continue}case"def":{r+=this.renderer.def(s);continue}case"paragraph":{r+=this.renderer.paragraph(s);continue}case"text":{let o=s,u=this.renderer.text(o);for(;i+1<t.length&&t[i+1].type==="text";)o=t[++i],u+=`
|
|
375
|
+
`+this.renderer.text(o);n?r+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):r+=u;continue}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}parseInline(t,n=this.renderer){let r="";for(let i=0;i<t.length;i++){let a=t[i];if(this.options.extensions?.renderers?.[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=o||"";continue}}let s=a;switch(s.type){case"escape":{r+=n.text(s);break}case"html":{r+=n.html(s);break}case"link":{r+=n.link(s);break}case"image":{r+=n.image(s);break}case"strong":{r+=n.strong(s);break}case"em":{r+=n.em(s);break}case"codespan":{r+=n.codespan(s);break}case"br":{r+=n.br(s);break}case"del":{r+=n.del(s);break}case"text":{r+=n.text(s);break}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}},wi=class{options;block;constructor(e){this.options=e||Ar}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?Ot.lex:Ot.lexInline}provideParser(){return this.block?Wt.parse:Wt.parseInline}},hL=class{defaults=W0();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Wt;Renderer=ws;TextRenderer=nc;Lexer=Ot;Tokenizer=ks;Hooks=wi;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let i=r;for(let a of i.header)n=n.concat(this.walkTokens(a.tokens,t));for(let a of i.rows)for(let s of a)n=n.concat(this.walkTokens(s.tokens,t));break}case"list":{let i=r;n=n.concat(this.walkTokens(i.items,t));break}default:{let i=r;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{let s=i[a].flat(1/0);n=n.concat(this.walkTokens(s,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let a=t.renderers[i.name];a?t.renderers[i.name]=function(...s){let o=i.renderer.apply(this,s);return o===!1&&(o=a.apply(this,s)),o}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[i.level];a?a.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),n.renderer){let i=this.defaults.renderer||new ws(this.defaults);for(let a in n.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let s=a,o=n.renderer[s],u=i[s];i[s]=(...l)=>{let c=o.apply(i,l);return c===!1&&(c=u.apply(i,l)),c||""}}r.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new ks(this.defaults);for(let a in n.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let s=a,o=n.tokenizer[s],u=i[s];i[s]=(...l)=>{let c=o.apply(i,l);return c===!1&&(c=u.apply(i,l)),c}}r.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new wi;for(let a in n.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let s=a,o=n.hooks[s],u=i[s];wi.passThroughHooks.has(a)?i[s]=l=>{if(this.defaults.async&&wi.passThroughHooksRespectAsync.has(a))return(async()=>{let h=await o.call(i,l);return u.call(i,h)})();let c=o.call(i,l);return u.call(i,c)}:i[s]=(...l)=>{if(this.defaults.async)return(async()=>{let h=await o.apply(i,l);return h===!1&&(h=await u.apply(i,l)),h})();let c=o.apply(i,l);return c===!1&&(c=u.apply(i,l)),c}}r.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,a=n.walkTokens;r.walkTokens=function(s){let o=[];return o.push(a.call(this,s)),i&&(o=o.concat(i.call(this,s))),o}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Ot.lex(e,t??this.defaults)}parser(e,t){return Wt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let s=i.hooks?await i.hooks.preprocess(t):t,o=await(i.hooks?await i.hooks.provideLexer():e?Ot.lex:Ot.lexInline)(s,i),u=i.hooks?await i.hooks.processAllTokens(o):o;i.walkTokens&&await Promise.all(this.walkTokens(u,i.walkTokens));let l=await(i.hooks?await i.hooks.provideParser():e?Wt.parse:Wt.parseInline)(u,i);return i.hooks?await i.hooks.postprocess(l):l})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let s=(i.hooks?i.hooks.provideLexer():e?Ot.lex:Ot.lexInline)(t,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let o=(i.hooks?i.hooks.provideParser():e?Wt.parse:Wt.parseInline)(s,i);return i.hooks&&(o=i.hooks.postprocess(o)),o}catch(s){return a(s)}}}onError(e,t){return n=>{if(n.message+=`
|
|
376
|
+
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+Zt(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},gr=new hL;function _e(e,t){return gr.parse(e,t)}_e.options=_e.setOptions=function(e){return gr.setOptions(e),_e.defaults=gr.defaults,Hg(_e.defaults),_e};_e.getDefaults=W0;_e.defaults=Ar;_e.use=function(...e){return gr.use(...e),_e.defaults=gr.defaults,Hg(_e.defaults),_e};_e.walkTokens=function(e,t){return gr.walkTokens(e,t)};_e.parseInline=gr.parseInline;_e.Parser=Wt;_e.parser=Wt.parse;_e.Renderer=ws;_e.TextRenderer=nc;_e.Lexer=Ot;_e.lexer=Ot.lex;_e.Tokenizer=ks;_e.Hooks=wi;_e.parse=_e;_e.options;_e.setOptions;_e.use;_e.walkTokens;_e.parseInline;Wt.parse;Ot.lex;var Ee=(...e)=>T6(E6(e)),jr=(e,t,n)=>{let r=typeof t=="string"?new Blob([t],{type:n}):t,i=URL.createObjectURL(r),a=document.createElement("a");a.href=i,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)},dL=k.createContext({code:""}),Qg=()=>k.useContext(dL),Bf=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:a,...s})=>{let[o,u]=k.useState(!1),l=k.useRef(0),{code:c}=Qg(),{isAnimating:h}=k.useContext(Kt),d=a??c,m=async()=>{var T;if(typeof window>"u"||!((T=navigator?.clipboard)!=null&&T.writeText)){t?.(new Error("Clipboard API not available"));return}try{o||(await navigator.clipboard.writeText(d),u(!0),e?.(),l.current=window.setTimeout(()=>u(!1),n))}catch(w){t?.(w)}};k.useEffect(()=>()=>{window.clearTimeout(l.current)},[]);let y=o?Ng:Ig;return b.jsx("button",{className:Ee("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-copy-button",disabled:h,onClick:m,title:"Copy Code",type:"button",...s,children:r??b.jsx(y,{size:14})})},zf={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},fL=({onDownload:e,onError:t,language:n,children:r,className:i,code:a,...s})=>{let{code:o}=Qg(),{isAnimating:u}=k.useContext(Kt),l=a??o,c=`file.${n&&n in zf?zf[n]:"txt"}`,h="text/plain",d=()=>{try{jr(c,l,h),e?.()}catch(m){t?.(m)}};return b.jsx("button",{className:Ee("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-download-button",disabled:u,onClick:d,title:"Download file",type:"button",...s,children:r??b.jsx(eo,{size:14})})},Hf=()=>b.jsxs("div",{className:"w-full divide-y divide-border overflow-hidden rounded-xl border border-border",children:[b.jsx("div",{className:"h-[46px] w-full bg-muted/80"}),b.jsx("div",{className:"flex w-full items-center justify-center p-4",children:b.jsx(sD,{className:"size-4 animate-spin"})})]}),mL=/\.[^/.]+$/,pL=({node:e,className:t,src:n,alt:r,...i})=>{let a=async()=>{if(n)try{let s=await(await fetch(n)).blob(),o=new URL(n,window.location.origin).pathname.split("/").pop()||"",u=o.split(".").pop(),l=o.includes(".")&&u!==void 0&&u.length<=4,c="";if(l)c=o;else{let h=s.type,d="png";h.includes("jpeg")||h.includes("jpg")?d="jpg":h.includes("png")?d="png":h.includes("svg")?d="svg":h.includes("gif")?d="gif":h.includes("webp")&&(d="webp"),c=`${(r||o||"image").replace(mL,"")}.${d}`}jr(c,s,s.type)}catch(s){console.error("Failed to download image:",s)}};return n?b.jsxs("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[b.jsx("img",{alt:r,className:Ee("max-w-full rounded-lg",t),"data-streamdown":"image",src:n,...i}),b.jsx("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),b.jsx("button",{className:Ee("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:a,title:"Download image",type:"button",children:b.jsx(eo,{size:14})})]}):null},Zg=async e=>{let t={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...e},n=(await Ss(async()=>{const{default:r}=await import("./mermaid.core-BmMdWyIh.js").then(i=>i.bA);return{default:r}},__vite__mapDeps([0,1,2]))).default;return n.initialize(t),n},gL=(e,t)=>{var n;let r=(n=void 0)!=null?n:5;return new Promise((i,a)=>{let s="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),o=new Image;o.crossOrigin="anonymous",o.onload=()=>{let u=document.createElement("canvas"),l=o.width*r,c=o.height*r;u.width=l,u.height=c;let h=u.getContext("2d");if(!h){a(new Error("Failed to create 2D canvas context for PNG export"));return}h.drawImage(o,0,0,l,c),u.toBlob(d=>{if(!d){a(new Error("Failed to create PNG blob"));return}i(d)},"image/png")},o.onerror=()=>a(new Error("Failed to load SVG image")),o.src=s})},bL=({chart:e,children:t,className:n,onDownload:r,config:i,onError:a})=>{let[s,o]=k.useState(!1),u=k.useRef(null),{isAnimating:l}=k.useContext(Kt),c=async h=>{try{if(h==="mmd"){jr("diagram.mmd",e,"text/plain"),o(!1),r?.(h);return}let d=await Zg(i),m=e.split("").reduce((w,A)=>(w<<5)-w+A.charCodeAt(0)|0,0),y=`mermaid-${Math.abs(m)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:T}=await d.render(y,e);if(!T){a?.(new Error("SVG not found. Please wait for the diagram to render."));return}if(h==="svg"){jr("diagram.svg",T,"image/svg+xml"),o(!1),r?.(h);return}if(h==="png"){let w=await gL(T);jr("diagram.png",w,"image/png"),r?.(h),o(!1);return}}catch(d){a?.(d)}};return k.useEffect(()=>{let h=d=>{u.current&&!u.current.contains(d.target)&&o(!1)};return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[]),b.jsxs("div",{className:"relative",ref:u,children:[b.jsx("button",{className:Ee("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:l,onClick:()=>o(!s),title:"Download diagram",type:"button",children:t??b.jsx(eo,{size:14})}),s&&b.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[b.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("svg"),title:"Download diagram as SVG",type:"button",children:"SVG"}),b.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("png"),title:"Download diagram as PNG",type:"button",children:"PNG"}),b.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("mmd"),title:"Download diagram as MMD",type:"button",children:"MMD"})]})]})},Ui=0,yL=()=>{Ui+=1,Ui===1&&(document.body.style.overflow="hidden")},xL=()=>{Ui=Math.max(0,Ui-1),Ui===0&&(document.body.style.overflow="")},TL=({chart:e,config:t,onFullscreen:n,onExit:r,className:i,...a})=>{let[s,o]=k.useState(!1),{isAnimating:u,controls:l}=k.useContext(Kt),c=(()=>{if(typeof l=="boolean")return l;let d=l.mermaid;return d===!1?!1:d===!0||d===void 0?!0:d.panZoom!==!1})(),h=()=>{o(!s)};return k.useEffect(()=>{if(s){yL();let d=m=>{m.key==="Escape"&&o(!1)};return document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d),xL()}}},[s]),k.useEffect(()=>{s?n?.():r&&r()},[s,n,r]),b.jsxs(b.Fragment,{children:[b.jsx("button",{className:Ee("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:u,onClick:h,title:"View fullscreen",type:"button",...a,children:b.jsx(uD,{size:14})}),s&&b.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm",onClick:h,onKeyDown:d=>{d.key==="Escape"&&h()},role:"button",tabIndex:0,children:[b.jsx("button",{className:"absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:h,title:"Exit fullscreen",type:"button",children:b.jsx(dD,{size:20})}),b.jsx("div",{className:"flex h-full w-full items-center justify-center p-4",onClick:d=>d.stopPropagation(),onKeyDown:d=>d.stopPropagation(),role:"presentation",children:b.jsx(WL,{chart:e,className:"h-full w-full [&>div]:h-full [&>div]:overflow-hidden [&_svg]:h-auto [&_svg]:w-auto",config:t,fullscreen:!0,showControls:c})})]})]})},Jg=e=>{var t,n;let r=[],i=[],a=e.querySelectorAll("thead th");for(let o of a)r.push(((t=o.textContent)==null?void 0:t.trim())||"");let s=e.querySelectorAll("tbody tr");for(let o of s){let u=[],l=o.querySelectorAll("td");for(let c of l)u.push(((n=c.textContent)==null?void 0:n.trim())||"");i.push(u)}return{headers:r,rows:i}},e3=e=>{let{headers:t,rows:n}=e,r=o=>{let u=!1,l=!1;for(let c=0;c<o.length;c+=1){let h=o[c];if(h==='"'){u=!0,l=!0;break}(h===","||h===`
|
|
377
|
+
`)&&(u=!0)}return u?l?`"${o.replace(/"/g,'""')}"`:`"${o}"`:o},i=t.length>0?n.length+1:n.length,a=new Array(i),s=0;t.length>0&&(a[s]=t.map(r).join(","),s+=1);for(let o of n)a[s]=o.map(r).join(","),s+=1;return a.join(`
|
|
378
|
+
`)},EL=e=>{let{headers:t,rows:n}=e,r=o=>{let u=!1;for(let c=0;c<o.length;c+=1){let h=o[c];if(h===" "||h===`
|
|
379
|
+
`||h==="\r"){u=!0;break}}if(!u)return o;let l=[];for(let c=0;c<o.length;c+=1){let h=o[c];h===" "?l.push("\\t"):h===`
|
|
380
|
+
`?l.push("\\n"):h==="\r"?l.push("\\r"):l.push(h)}return l.join("")},i=t.length>0?n.length+1:n.length,a=new Array(i),s=0;t.length>0&&(a[s]=t.map(r).join(" "),s+=1);for(let o of n)a[s]=o.map(r).join(" "),s+=1;return a.join(`
|
|
381
|
+
`)},uu=e=>{let t=!1;for(let r=0;r<e.length;r+=1){let i=e[r];if(i==="\\"||i==="|"){t=!0;break}}if(!t)return e;let n=[];for(let r=0;r<e.length;r+=1){let i=e[r];i==="\\"?n.push("\\\\"):i==="|"?n.push("\\|"):n.push(i)}return n.join("")},vL=e=>{let{headers:t,rows:n}=e;if(t.length===0)return"";let r=new Array(n.length+2),i=0,a=t.map(o=>uu(o));r[i]=`| ${a.join(" | ")} |`,i+=1;let s=new Array(t.length);for(let o=0;o<t.length;o+=1)s[o]="---";r[i]=`| ${s.join(" | ")} |`,i+=1;for(let o of n)if(o.length<t.length){let u=new Array(t.length);for(let l=0;l<t.length;l+=1)u[l]=l<o.length?uu(o[l]):"";r[i]=`| ${u.join(" | ")} |`,i+=1}else{let u=o.map(l=>uu(l));r[i]=`| ${u.join(" | ")} |`,i+=1}return r.join(`
|
|
382
|
+
`)},AL=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let[a,s]=k.useState(!1),[o,u]=k.useState(!1),l=k.useRef(null),c=k.useRef(0),{isAnimating:h}=k.useContext(Kt),d=async y=>{var T,w;if(typeof window>"u"||!((T=navigator?.clipboard)!=null&&T.write)){r?.(new Error("Clipboard API not available"));return}try{let A=(w=l.current)==null?void 0:w.closest('[data-streamdown="table-wrapper"]'),E=A?.querySelector("table");if(!E){r?.(new Error("Table not found"));return}let S=Jg(E),O=y==="csv"?e3(S):EL(S),P=new ClipboardItem({"text/plain":new Blob([O],{type:"text/plain"}),"text/html":new Blob([E.outerHTML],{type:"text/html"})});await navigator.clipboard.write([P]),u(!0),s(!1),n?.(y),c.current=window.setTimeout(()=>u(!1),i)}catch(A){r?.(A)}};k.useEffect(()=>{let y=T=>{l.current&&!l.current.contains(T.target)&&s(!1)};return document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y),window.clearTimeout(c.current)}},[]);let m=o?Ng:Ig;return b.jsxs("div",{className:"relative",ref:l,children:[b.jsx("button",{className:Ee("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:h,onClick:()=>s(!a),title:"Copy table",type:"button",children:e??b.jsx(m,{size:14})}),a&&b.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[b.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),b.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]})]})},kL=({children:e,className:t,onDownload:n,onError:r})=>{let[i,a]=k.useState(!1),s=k.useRef(null),{isAnimating:o}=k.useContext(Kt),u=l=>{var c;try{let h=(c=s.current)==null?void 0:c.closest('[data-streamdown="table-wrapper"]'),d=h?.querySelector("table");if(!d){r?.(new Error("Table not found"));return}let m=Jg(d),y=l==="csv"?e3(m):vL(m);jr(`table.${l==="csv"?"csv":"md"}`,y,l==="csv"?"text/csv":"text/markdown"),a(!1),n?.(l)}catch(h){r?.(h)}};return k.useEffect(()=>{let l=c=>{s.current&&!s.current.contains(c.target)&&a(!1)};return document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[]),b.jsxs("div",{className:"relative",ref:s,children:[b.jsx("button",{className:Ee("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:o,onClick:()=>a(!i),title:"Download table",type:"button",children:e??b.jsx(eo,{size:14})}),i&&b.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[b.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>u("csv"),title:"Download table as CSV",type:"button",children:"CSV"}),b.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>u("markdown"),title:"Download table as Markdown",type:"button",children:"Markdown"})]})]})},wL=({children:e,className:t,showControls:n,...r})=>b.jsxs("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[n&&b.jsxs("div",{className:"flex items-center justify-end gap-1",children:[b.jsx(AL,{}),b.jsx(kL,{})]}),b.jsx("div",{className:"overflow-x-auto",children:b.jsx("table",{className:Ee("w-full border-collapse border border-border",t),"data-streamdown":"table",...r,children:e})})]}),SL=k.lazy(()=>Ss(()=>import("./code-block-IT6T5CEO-CY4ZkvyN.js"),__vite__mapDeps([3,1,2,4,5,6])).then(e=>({default:e.CodeBlock}))),CL=k.lazy(()=>Ss(()=>import("./mermaid-VLURNSYL-BwQZ3L24.js"),__vite__mapDeps([7,1,2,4,5,6])).then(e=>({default:e.Mermaid}))),NL=/language-([^\s]+)/;function ro(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return n?.line===r?.line&&n?.column===r?.column&&i?.line===a?.line&&i?.column===a?.column}function $e(e,t){return e.className===t.className&&ro(e.node,t.node)}var Tl=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,za=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},rc=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("ol",{className:Ee("list-inside list-decimal whitespace-normal",t),"data-streamdown":"ordered-list",...r,children:e}),(e,t)=>$e(e,t));rc.displayName="MarkdownOl";var t3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("li",{className:Ee("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e}),(e,t)=>e.className===t.className&&ro(e.node,t.node));t3.displayName="MarkdownLi";var n3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("ul",{className:Ee("list-inside list-disc whitespace-normal",t),"data-streamdown":"unordered-list",...r,children:e}),(e,t)=>$e(e,t));n3.displayName="MarkdownUl";var r3=k.memo(({className:e,node:t,...n})=>b.jsx("hr",{className:Ee("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n}),(e,t)=>$e(e,t));r3.displayName="MarkdownHr";var i3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("span",{className:Ee("font-semibold",t),"data-streamdown":"strong",...r,children:e}),(e,t)=>$e(e,t));i3.displayName="MarkdownStrong";var a3=k.memo(({children:e,className:t,href:n,node:r,...i})=>{let a=n==="streamdown:incomplete-link";return b.jsx("a",{className:Ee("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":a,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...i,children:e})},(e,t)=>$e(e,t)&&e.href===t.href);a3.displayName="MarkdownA";var s3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("h1",{className:Ee("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e}),(e,t)=>$e(e,t));s3.displayName="MarkdownH1";var o3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("h2",{className:Ee("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e}),(e,t)=>$e(e,t));o3.displayName="MarkdownH2";var u3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("h3",{className:Ee("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e}),(e,t)=>$e(e,t));u3.displayName="MarkdownH3";var l3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("h4",{className:Ee("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e}),(e,t)=>$e(e,t));l3.displayName="MarkdownH4";var c3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("h5",{className:Ee("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e}),(e,t)=>$e(e,t));c3.displayName="MarkdownH5";var h3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("h6",{className:Ee("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e}),(e,t)=>$e(e,t));h3.displayName="MarkdownH6";var d3=k.memo(({children:e,className:t,node:n,...r})=>{let{controls:i}=k.useContext(Kt),a=Tl(i,"table");return b.jsx(wL,{className:t,"data-streamdown":"table-wrapper",showControls:a,...r,children:e})},(e,t)=>$e(e,t));d3.displayName="MarkdownTable";var f3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("thead",{className:Ee("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e}),(e,t)=>$e(e,t));f3.displayName="MarkdownThead";var m3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("tbody",{className:Ee("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...r,children:e}),(e,t)=>$e(e,t));m3.displayName="MarkdownTbody";var p3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("tr",{className:Ee("border-border border-b",t),"data-streamdown":"table-row",...r,children:e}),(e,t)=>$e(e,t));p3.displayName="MarkdownTr";var g3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("th",{className:Ee("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e}),(e,t)=>$e(e,t));g3.displayName="MarkdownTh";var b3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("td",{className:Ee("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e}),(e,t)=>$e(e,t));b3.displayName="MarkdownTd";var y3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("blockquote",{className:Ee("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e}),(e,t)=>$e(e,t));y3.displayName="MarkdownBlockquote";var x3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("sup",{className:Ee("text-sm",t),"data-streamdown":"superscript",...r,children:e}),(e,t)=>$e(e,t));x3.displayName="MarkdownSup";var T3=k.memo(({children:e,className:t,node:n,...r})=>b.jsx("sub",{className:Ee("text-sm",t),"data-streamdown":"subscript",...r,children:e}),(e,t)=>$e(e,t));T3.displayName="MarkdownSub";var E3=k.memo(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let i=s=>{var o,u;if(!k.isValidElement(s))return!1;let l=Array.isArray(s.props.children)?s.props.children:[s.props.children],c=!1,h=!1;for(let d of l)if(d){if(typeof d=="string")d.trim()!==""&&(c=!0);else if(k.isValidElement(d))if(((o=d.props)==null?void 0:o["data-footnote-backref"])!==void 0)h=!0;else{let m=Array.isArray(d.props.children)?d.props.children:[d.props.children];for(let y of m){if(typeof y=="string"&&y.trim()!==""){c=!0;break}if(k.isValidElement(y)&&((u=y.props)==null?void 0:u["data-footnote-backref"])===void 0){c=!0;break}}}}return h&&!c},a=Array.isArray(e)?e.map(s=>{if(!k.isValidElement(s))return s;if(s.type===rc){let o=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(u=>!i(u));return o.length===0?null:{...s,props:{...s.props,children:o}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?b.jsx("section",{className:t,...r,children:a}):null}return b.jsx("section",{className:t,...r,children:e})},(e,t)=>$e(e,t));E3.displayName="MarkdownSection";var IL=({node:e,className:t,children:n,...r})=>{var i,a,s;let o=((i=e?.position)==null?void 0:i.start.line)===((a=e?.position)==null?void 0:a.end.line),{mermaid:u,controls:l}=k.useContext(Kt);if(o)return b.jsx("code",{className:Ee("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let c=t?.match(NL),h=(s=c?.at(1))!=null?s:"",d="";if(k.isValidElement(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?d=n.props.children:typeof n=="string"&&(d=n),h==="mermaid"){let y=Tl(l,"mermaid"),T=za(l,"download"),w=za(l,"copy"),A=za(l,"fullscreen"),E=za(l,"panZoom");return b.jsx(k.Suspense,{fallback:b.jsx(Hf,{}),children:b.jsxs("div",{className:Ee("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[y&&(T||w||A)&&b.jsxs("div",{className:"flex items-center justify-end gap-2",children:[T&&b.jsx(bL,{chart:d,config:u?.config}),w&&b.jsx(Bf,{code:d}),A&&b.jsx(TL,{chart:d,config:u?.config})]}),b.jsx(CL,{chart:d,config:u?.config,showControls:E})]})})}let m=Tl(l,"code");return b.jsx(k.Suspense,{fallback:b.jsx(Hf,{}),children:b.jsx(SL,{className:Ee("overflow-x-auto border-border border-t",t),code:d,language:h,children:m&&b.jsxs(b.Fragment,{children:[b.jsx(fL,{code:d,language:h}),b.jsx(Bf,{})]})})})},v3=k.memo(IL,(e,t)=>e.className===t.className&&ro(e.node,t.node));v3.displayName="MarkdownCode";var A3=k.memo(pL,(e,t)=>e.className===t.className&&ro(e.node,t.node));A3.displayName="MarkdownImg";var k3=k.memo(({children:e,className:t,node:n,...r})=>{var i;let a=(Array.isArray(e)?e:[e]).filter(s=>s!=null&&s!=="");return a.length===1&&k.isValidElement(a[0])&&((i=a[0].props.node)==null?void 0:i.tagName)==="img"?b.jsx(b.Fragment,{children:e}):b.jsx("p",{className:t,...r,children:e})},(e,t)=>$e(e,t));k3.displayName="MarkdownParagraph";var _L={ol:rc,li:t3,ul:n3,hr:r3,strong:i3,a:a3,h1:s3,h2:o3,h3:u3,h4:l3,h5:c3,h6:h3,table:d3,thead:f3,tbody:m3,tr:p3,th:g3,td:b3,blockquote:y3,code:v3,img:A3,pre:({children:e})=>e,sup:x3,sub:T3,p:k3,section:E3},Uf=[],jf={allowDangerousHtml:!0},Ha=new WeakMap,DL=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let c="default";return this.keyCache.set(e,c),c}let a=c=>{if(!c||c.length===0)return"";let h="";for(let d=0;d<c.length;d+=1){let m=c[d];if(d>0&&(h+=","),Array.isArray(m)){let[y,T]=m;if(typeof y=="function"){let w=Ha.get(y);w||(w=y.name,Ha.set(y,w)),h+=w}else h+=String(y);h+=":",h+=JSON.stringify(T)}else if(typeof m=="function"){let y=Ha.get(m);y||(y=m.name,Ha.set(m,y)),h+=y}else h+=String(m)}return h},s=a(n),o=a(r),u=i?JSON.stringify(i):"",l=`${o}::${s}::${u}`;return this.keyCache.set(e,l),l}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let r=this.cache.keys().next().value;r&&this.cache.delete(r)}this.cache.set(n,t)}clear(){this.cache.clear()}},Vf=new DL,w3=e=>{let t=ML(e),n=e.children||"";return LL(t.runSync(t.parse(n),n),e)},ML=e=>{let t=Vf.get(e);if(t)return t;let n=RL(e);return Vf.set(e,n),n},RL=e=>{let t=e.rehypePlugins||Uf,n=e.remarkPlugins||Uf,r=e.remarkRehypeOptions?{...jf,...e.remarkRehypeOptions}:jf;return wR().use(kM).use(n).use(sR,r).use(t)},LL=(e,t)=>MD(e,{Fragment:b.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0}),PL=/\[\^[^\]\s]{1,200}\](?!:)/,OL=/\[\^[^\]\s]{1,200}\]:/,FL=/<\/(\w+)>/,BL=/<(\w+)[\s>]/,lu=e=>{let t=0;for(;t<e.length&&(e[t]===" "||e[t]===" "||e[t]===`
|
|
383
|
+
`||e[t]==="\r");)t+=1;return t+1<e.length&&e[t]==="$"&&e[t+1]==="$"},zL=e=>{let t=e.length-1;for(;t>=0&&(e[t]===" "||e[t]===" "||e[t]===`
|
|
384
|
+
`||e[t]==="\r");)t-=1;return t>=1&&e[t]==="$"&&e[t-1]==="$"},cu=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},HL=e=>{let t=PL.test(e),n=OL.test(e);if(t||n)return[e];let r=Ot.lex(e,{gfm:!0}),i=[],a=[];for(let s of r){let o=s.raw,u=i.length;if(a.length>0){if(i[u-1]+=o,s.type==="html"){let l=o.match(FL);if(l){let c=l[1];a.at(-1)===c&&a.pop()}}continue}if(s.type==="html"&&s.block){let l=o.match(BL);if(l){let c=l[1];o.includes(`</${c}>`)||a.push(c)}}if(o.trim()==="$$"&&u>0){let l=i[u-1],c=lu(l),h=cu(l);if(c&&h%2===1){i[u-1]=l+o;continue}}if(u>0&&zL(o)){let l=i[u-1],c=lu(l),h=cu(l),d=cu(o);if(c&&h%2===1&&!lu(o)&&d===1){i[u-1]=l+o;continue}}i.push(o)}return i},UL={raw:Hw,katex:[nl,{errorColor:"var(--color-muted-foreground)"}],sanitize:[Kw,{}],harden:[ZT,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},jL={gfm:[t_,{}],math:[hl,{singleDollarTextMath:!1}],cjkFriendly:[AS,{}],cjkFriendlyGfmStrikethrough:[wS,{}]},VL=Object.values(UL),qL=Object.values(jL),$L={shikiTheme:["github-light","github-dark"],controls:!0,isAnimating:!1,mode:"streaming",mermaid:void 0},Kt=k.createContext($L),S3=k.memo(({content:e,shouldParseIncompleteMarkdown:t,...n})=>{let r=k.useMemo(()=>typeof e=="string"&&t?K_(e.trim()):e,[e,t]);return b.jsx(w3,{...n,children:r})},(e,t)=>{if(e.content!==t.content||e.shouldParseIncompleteMarkdown!==t.shouldParseIncompleteMarkdown||e.index!==t.index)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(i=>{var a,s;return((a=e.components)==null?void 0:a[i])!==((s=t.components)==null?void 0:s[i])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)});S3.displayName="Block";var YL=["github-light","github-dark"],ic=k.memo(({children:e,mode:t="streaming",parseIncompleteMarkdown:n=!0,components:r,rehypePlugins:i=VL,remarkPlugins:a=qL,className:s,shikiTheme:o=YL,mermaid:u,controls:l=!0,isAnimating:c=!1,BlockComponent:h=S3,parseMarkdownIntoBlocksFn:d=HL,...m})=>{let y=k.useId(),[T,w]=k.useTransition(),[A,E]=k.useState([]),S=k.useMemo(()=>d(typeof e=="string"?e:""),[e,d]);k.useEffect(()=>{t==="streaming"?w(()=>{E(S)}):E(S)},[S,t]);let O=t==="streaming"?A:S,P=k.useMemo(()=>O.map((q,Y)=>`${y}-${Y}`),[O.length,y]),D=k.useMemo(()=>({shikiTheme:o,controls:l,isAnimating:c,mode:t,mermaid:u}),[o,l,c,t,u]),U=k.useMemo(()=>({..._L,...r}),[r]);return k.useEffect(()=>{if(!(Array.isArray(i)&&i.some(V=>Array.isArray(V)?V[0]===nl:V===nl)))return;let q=!1;if(Array.isArray(a)){let V=a.find(ue=>Array.isArray(ue)?ue[0]===hl:ue===hl);V&&Array.isArray(V)&&V[1]&&(q=V[1].singleDollarTextMath===!0)}let Y=typeof e=="string"?e:"",B=Y.includes("$$"),G=q&&(/[^$]\$[^$]/.test(Y)||/^\$[^$]/.test(Y)||/[^$]\$$/.test(Y));(B||G)&&Ss(()=>Promise.resolve({}),__vite__mapDeps([8]))},[i,a,e]),t==="static"?b.jsx(Kt.Provider,{value:D,children:b.jsx("div",{className:Ee("space-y-4 whitespace-normal",s),children:b.jsx(w3,{components:U,rehypePlugins:i,remarkPlugins:a,...m,children:e})})}):b.jsx(Kt.Provider,{value:D,children:b.jsx("div",{className:Ee("space-y-4 whitespace-normal",s),children:O.map((q,Y)=>b.jsx(h,{components:U,content:q,index:Y,rehypePlugins:i,remarkPlugins:a,shouldParseIncompleteMarkdown:n,...m},P[Y]))})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.mode===t.mode);ic.displayName="Streamdown";var GL=({children:e,className:t,minZoom:n=.5,maxZoom:r=3,zoomStep:i=.1,showControls:a=!0,initialZoom:s=1,fullscreen:o=!1})=>{let u=k.useRef(null),l=k.useRef(null),[c,h]=k.useState(s),[d,m]=k.useState({x:0,y:0}),[y,T]=k.useState(!1),[w,A]=k.useState({x:0,y:0}),[E,S]=k.useState({x:0,y:0}),O=k.useCallback(V=>{h(ue=>Math.max(n,Math.min(r,ue+V)))},[n,r]),P=k.useCallback(()=>{O(i)},[O,i]),D=k.useCallback(()=>{O(-i)},[O,i]),U=k.useCallback(()=>{h(s),m({x:0,y:0})},[s]),q=k.useCallback(V=>{V.preventDefault();let ue=V.deltaY>0?-i:i;O(ue)},[O,i]),Y=k.useCallback(V=>{if(V.button!==0||V.isPrimary===!1)return;T(!0),A({x:V.clientX,y:V.clientY}),S(d);let ue=V.currentTarget;ue instanceof HTMLElement&&ue.setPointerCapture(V.pointerId)},[d]),B=k.useCallback(V=>{if(!y)return;V.preventDefault();let ue=V.clientX-w.x,ie=V.clientY-w.y;m({x:E.x+ue,y:E.y+ie})},[y,w,E]),G=k.useCallback(V=>{T(!1);let ue=V.currentTarget;ue instanceof HTMLElement&&ue.releasePointerCapture(V.pointerId)},[]);return k.useEffect(()=>{let V=u.current;if(V)return V.addEventListener("wheel",q,{passive:!1}),()=>{V.removeEventListener("wheel",q)}},[q]),k.useEffect(()=>{let V=l.current;if(V&&y)return document.body.style.userSelect="none",V.addEventListener("pointermove",B,{passive:!1}),V.addEventListener("pointerup",G),V.addEventListener("pointercancel",G),()=>{document.body.style.userSelect="",V.removeEventListener("pointermove",B),V.removeEventListener("pointerup",G),V.removeEventListener("pointercancel",G)}},[y,B,G]),b.jsxs("div",{className:Ee("relative",o?"h-full w-full":"w-full",t),ref:u,style:{cursor:y?"grabbing":"grab"},children:[a&&b.jsxs("div",{className:Ee("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm",o?"bottom-4 left-4":"bottom-2 left-2"),children:[b.jsx("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:c>=r,onClick:P,title:"Zoom in",type:"button",children:b.jsx(mD,{size:16})}),b.jsx("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:c<=n,onClick:D,title:"Zoom out",type:"button",children:b.jsx(gD,{size:16})}),b.jsx("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:U,title:"Reset zoom and pan",type:"button",children:b.jsx(cD,{size:16})})]}),b.jsx("div",{className:Ee("origin-center transition-transform duration-150 ease-out",o&&"flex w-full items-center justify-center"),onPointerDown:Y,ref:l,role:"application",style:{transform:`translate(${d.x}px, ${d.y}px) scale(${c})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},WL=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:i=!0})=>{let[a,s]=k.useState(null),[o,u]=k.useState(!0),[l,c]=k.useState(""),[h,d]=k.useState(""),[m,y]=k.useState(0),{mermaid:T}=k.useContext(Kt),w=T?.errorComponent;if(k.useEffect(()=>{(async()=>{try{s(null),u(!0);let E=await Zg(n),S=e.split("").reduce((D,U)=>(D<<5)-D+U.charCodeAt(0)|0,0),O=`mermaid-${Math.abs(S)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:P}=await E.render(O,e);c(P),d(P)}catch(E){if(!(h||l)){let S=E instanceof Error?E.message:"Failed to render Mermaid chart";s(S)}}finally{u(!1)}})()},[e,n,m]),o&&!l&&!h)return b.jsx("div",{className:Ee("my-4 flex justify-center p-4",t),children:b.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[b.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),b.jsx("span",{className:"text-sm",children:"Loading diagram..."})]})});if(a&&!l&&!h){let E=()=>y(S=>S+1);return w?b.jsx(w,{chart:e,error:a,retry:E}):b.jsxs("div",{className:Ee("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[b.jsxs("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",a]}),b.jsxs("details",{className:"mt-2",children:[b.jsx("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),b.jsx("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]})}let A=l||h;return b.jsx(GL,{className:Ee(r?"h-full w-full overflow-hidden":"my-4 overflow-hidden",t),fullscreen:r,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:b.jsx("div",{"aria-label":"Mermaid chart",className:Ee("flex justify-center",r&&"h-full w-full items-center"),dangerouslySetInnerHTML:{__html:A},role:"img"})})};const qf=({className:e,from:t,...n})=>b.jsx("div",{className:ge("group flex w-full max-w-[95%] flex-col gap-2",t==="user"?"is-user ml-auto justify-end":"is-assistant",e),...n}),$f=({children:e,className:t,...n})=>b.jsx("div",{className:ge("is-user:dark flex w-fit max-w-full min-w-0 flex-col gap-2 overflow-hidden text-sm","group-[.is-user]:ml-auto group-[.is-user]:rounded-lg group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground","group-[.is-assistant]:text-foreground",t),...n,children:e}),C3=k.createContext(null),XL=()=>{const e=k.useContext(C3);if(!e)throw new Error("MessageBranch components must be used within MessageBranch");return e},Yf=({defaultBranch:e=0,onBranchChange:t,className:n,...r})=>{const[i,a]=k.useState(e),[s,o]=k.useState([]),u=d=>{a(d),t?.(d)},l=()=>{const d=i>0?i-1:s.length-1;u(d)},c=()=>{const d=i<s.length-1?i+1:0;u(d)},h={currentBranch:i,totalBranches:s.length,goToPrevious:l,goToNext:c,branches:s,setBranches:o};return b.jsx(C3.Provider,{value:h,children:b.jsx("div",{className:ge("grid w-full gap-2 [&>div]:pb-0",n),...r})})},Gf=({children:e,...t})=>{const{currentBranch:n,setBranches:r,branches:i}=XL(),a=Array.isArray(e)?e:[e];return k.useEffect(()=>{i.length!==a.length&&r(a)},[a,i,r]),a.map((s,o)=>b.jsx("div",{className:ge("grid gap-2 overflow-hidden [&>div]:pb-0",o===n?"block":"hidden"),...t,children:s},s.key))},N3=k.memo(({className:e,...t})=>b.jsx(ic,{className:ge("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...t}),(e,t)=>e.children===t.children);N3.displayName="MessageResponse";const KL="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let QL=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=KL[n[e]&63];return t};const ZL=k.createContext(null),JL=k.createContext(null),I3=()=>k.useContext(ZL),eP=()=>k.useContext(JL),_3=k.createContext(null),tP=()=>{const e=eP(),t=k.useContext(_3),n=e??t;if(!n)throw new Error("usePromptInputAttachments must be used within a PromptInput or PromptInputProvider");return n},nP=({className:e,accept:t,multiple:n,globalDrop:r,syncHiddenInput:i,maxFiles:a,maxFileSize:s,onError:o,onSubmit:u,children:l,...c})=>{const h=I3(),d=!!h,m=k.useRef(null),y=k.useRef(null),[T,w]=k.useState([]),A=d?h.attachments.files:T,E=k.useRef(A);E.current=A;const S=k.useCallback(()=>{m.current?.click()},[]),O=k.useCallback(ne=>!t||t.trim()===""?!0:t.split(",").map(de=>de.trim()).filter(Boolean).some(de=>{if(de.endsWith("/*")){const _=de.slice(0,-1);return ne.type.startsWith(_)}return ne.type===de}),[t]),P=k.useCallback(ne=>{const he=Array.from(ne),de=he.filter(ce=>O(ce));if(he.length&&de.length===0){o?.({code:"accept",message:"No files match the accepted types."});return}const _=ce=>s?ce.size<=s:!0,be=de.filter(_);if(de.length>0&&be.length===0){o?.({code:"max_file_size",message:"All files exceed the maximum size."});return}w(ce=>{const L=typeof a=="number"?Math.max(0,a-ce.length):void 0,nt=typeof L=="number"?be.slice(0,L):be;typeof L=="number"&&be.length>L&&o?.({code:"max_files",message:"Too many files. Some were not added."});const rt=[];for(const Fe of nt)rt.push({id:QL(),type:"file",url:URL.createObjectURL(Fe),mediaType:Fe.type,filename:Fe.name});return ce.concat(rt)})},[O,a,s,o]),D=k.useCallback(ne=>w(he=>{const de=he.find(_=>_.id===ne);return de?.url&&URL.revokeObjectURL(de.url),he.filter(_=>_.id!==ne)}),[]),U=k.useCallback(()=>w(ne=>{for(const he of ne)he.url&&URL.revokeObjectURL(he.url);return[]}),[]),q=d?h.attachments.add:P,Y=d?h.attachments.remove:D,B=d?h.attachments.clear:U,G=d?h.attachments.openFileDialog:S;k.useEffect(()=>{d&&h.__registerFileInput(m,()=>m.current?.click())},[d,h]),k.useEffect(()=>{i&&m.current&&A.length===0&&(m.current.value="")},[A,i]),k.useEffect(()=>{const ne=y.current;if(!ne||r)return;const he=_=>{_.dataTransfer?.types?.includes("Files")&&_.preventDefault()},de=_=>{_.dataTransfer?.types?.includes("Files")&&_.preventDefault(),_.dataTransfer?.files&&_.dataTransfer.files.length>0&&q(_.dataTransfer.files)};return ne.addEventListener("dragover",he),ne.addEventListener("drop",de),()=>{ne.removeEventListener("dragover",he),ne.removeEventListener("drop",de)}},[q,r]),k.useEffect(()=>{if(!r)return;const ne=de=>{de.dataTransfer?.types?.includes("Files")&&de.preventDefault()},he=de=>{de.dataTransfer?.types?.includes("Files")&&de.preventDefault(),de.dataTransfer?.files&&de.dataTransfer.files.length>0&&q(de.dataTransfer.files)};return document.addEventListener("dragover",ne),document.addEventListener("drop",he),()=>{document.removeEventListener("dragover",ne),document.removeEventListener("drop",he)}},[q,r]),k.useEffect(()=>()=>{if(!d)for(const ne of E.current)ne.url&&URL.revokeObjectURL(ne.url)},[d]);const V=ne=>{ne.currentTarget.files&&q(ne.currentTarget.files),ne.currentTarget.value=""},ue=async ne=>{try{const de=await(await fetch(ne)).blob();return new Promise(_=>{const be=new FileReader;be.onloadend=()=>_(be.result),be.onerror=()=>_(null),be.readAsDataURL(de)})}catch{return null}},ie=k.useMemo(()=>({files:A.map(ne=>({...ne,id:ne.id})),add:q,remove:Y,clear:B,openFileDialog:G,fileInputRef:m}),[A,q,Y,B,G]),ee=ne=>{ne.preventDefault();const he=ne.currentTarget,de=d?h.textInput.value:new FormData(he).get("message")||"";d||he.reset(),Promise.all(A.map(async({id:_,...be})=>{if(be.url?.startsWith("blob:")){const ce=await ue(be.url);return{...be,url:ce??be.url}}return be})).then(_=>{try{const be=u({text:de,files:_},ne);be instanceof Promise?be.then(()=>{B(),d&&h.textInput.clear()}).catch(()=>{}):(B(),d&&h.textInput.clear())}catch{}}).catch(()=>{})},ye=b.jsxs(b.Fragment,{children:[b.jsx("input",{accept:t,"aria-label":"Upload files",className:"hidden",multiple:n,onChange:V,ref:m,title:"Upload files",type:"file"}),b.jsx("form",{className:ge("w-full",e),onSubmit:ee,ref:y,...c,children:b.jsx(v6,{className:"overflow-hidden",children:l})})]});return d?ye:b.jsx(_3.Provider,{value:ie,children:ye})},rP=({className:e,...t})=>b.jsx("div",{className:ge("contents",e),...t}),iP=({onChange:e,className:t,placeholder:n="What would you like to know?",...r})=>{const i=I3(),a=tP(),[s,o]=k.useState(!1),u=h=>{if(h.key==="Enter"){if(s||h.nativeEvent.isComposing||h.shiftKey)return;h.preventDefault();const d=h.currentTarget.form;if(d?.querySelector('button[type="submit"]')?.disabled)return;d?.requestSubmit()}if(h.key==="Backspace"&&h.currentTarget.value===""&&a.files.length>0){h.preventDefault();const d=a.files.at(-1);d&&a.remove(d.id)}},l=h=>{const d=h.clipboardData?.items;if(!d)return;const m=[];for(const y of d)if(y.kind==="file"){const T=y.getAsFile();T&&m.push(T)}m.length>0&&(h.preventDefault(),a.add(m))},c=i?{value:i.textInput.value,onChange:h=>{i.textInput.setInput(h.currentTarget.value),e?.(h)}}:{onChange:e};return b.jsx(A6,{className:ge("field-sizing-content max-h-48 min-h-16",t),name:"message",onCompositionEnd:()=>o(!1),onCompositionStart:()=>o(!0),onKeyDown:u,onPaste:l,placeholder:n,...r,...c})},aP=({className:e,...t})=>b.jsx(k6,{align:"block-end",className:ge("justify-between justify-end gap-1",e),...t}),sP=({className:e,variant:t="default",size:n="icon-sm",status:r,children:i,...a})=>{let s=b.jsx(L6,{className:"size-4"});return r==="submitted"?s=b.jsx(W5,{className:"size-4 animate-spin"}):r==="streaming"?s=b.jsx(Z5,{className:"size-4"}):r==="error"&&(s=b.jsx(S6,{className:"size-4"})),b.jsx(w6,{"aria-label":"Submit",className:ge(e),size:n,type:"submit",variant:t,...a,children:i??s})};function oP({...e}){return b.jsx(j6,{"data-slot":"collapsible",...e})}function uP({...e}){return b.jsx(p1,{"data-slot":"collapsible-trigger",...e})}function lP({...e}){return b.jsx(g1,{"data-slot":"collapsible-content",...e})}const cP=({children:e,as:t="p",className:n,duration:r=2,spread:i=2})=>{const a=Cp.create(t),s=k.useMemo(()=>(e?.length??0)*i,[e,i]);return b.jsx(a,{animate:{backgroundPosition:"0% center"},className:ge("relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent","[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",n),initial:{backgroundPosition:"100% center"},style:{"--spread":`${s}px`,backgroundImage:"var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))"},transition:{repeat:Number.POSITIVE_INFINITY,duration:r,ease:"linear"},children:e})},hP=k.memo(cP),D3=k.createContext(null),dP=()=>{const e=k.useContext(D3);if(!e)throw new Error("Reasoning components must be used within Reasoning");return e},fP=1e3,mP=1e3,M3=k.memo(({className:e,isStreaming:t=!1,open:n,defaultOpen:r=!0,onOpenChange:i,duration:a,children:s,...o})=>{const[u,l]=du({prop:n,defaultProp:r,onChange:i}),[c,h]=du({prop:a,defaultProp:void 0}),[d,m]=k.useState(!1),[y,T]=k.useState(null);k.useEffect(()=>{t?y===null&&T(Date.now()):y!==null&&(h(Math.ceil((Date.now()-y)/mP)),T(null))},[t,y,h]),k.useEffect(()=>{if(r&&!t&&u&&!d){const A=setTimeout(()=>{l(!1),m(!0)},fP);return()=>clearTimeout(A)}},[t,u,r,l,d]);const w=A=>{l(A)};return b.jsx(D3.Provider,{value:{isStreaming:t,isOpen:u,setIsOpen:l,duration:c},children:b.jsx(oP,{className:ge("not-prose mb-4",e),onOpenChange:w,open:u,...o,children:s})})}),pP=(e,t)=>e||t===0?b.jsx(hP,{duration:1,children:"Thinking..."}):t===void 0?b.jsx("p",{children:"Thought for a few seconds"}):b.jsxs("p",{children:["Thought for ",t," seconds"]}),R3=k.memo(({className:e,children:t,getThinkingMessage:n=pP,...r})=>{const{isStreaming:i,isOpen:a,duration:s}=dP();return b.jsx(uP,{className:ge("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...r,children:t??b.jsxs(b.Fragment,{children:[b.jsx(V5,{className:"size-4"}),n(i,s),b.jsx(e1,{className:ge("size-4 transition-transform",a?"rotate-180":"rotate-0")})]})})}),L3=k.memo(({className:e,children:t,...n})=>b.jsx(lP,{className:ge("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n,children:b.jsx(ic,{...n,children:t})}));M3.displayName="Reasoning";R3.displayName="ReasoningTrigger";L3.displayName="ReasoningContent";const gP=({className:e,children:t,...n})=>b.jsxs(c1,{className:"w-full overflow-x-auto whitespace-nowrap",...n,children:[b.jsx("div",{className:ge("flex w-max flex-nowrap items-center gap-2",e),children:t}),b.jsx(P6,{className:"hidden",orientation:"horizontal"})]}),bP=({suggestion:e,onClick:t,className:n,variant:r="outline",size:i="sm",children:a,...s})=>{const o=()=>{t?.(e)};return b.jsx(Ge,{className:ge("cursor-pointer rounded-full px-4",n),onClick:o,size:i,type:"button",variant:r,...s,children:a||e})},yP=()=>{const{data:e,isLoading:t,error:n,refetch:r}=Cs({queryKey:["rate-limit"],queryFn:async()=>{const i=await fetch(`${ra.PROXY_URL}/chat/limit`);if(!i.ok)throw new Error("Failed to fetch rate limit");const a=await i.json();return console.log("useRateLimit data:",a),a}});return{rateLimit:e,isLoadingRateLimit:t,errorRateLimit:n,refetchRateLimit:r}},xP=()=>{const{rateLimit:e,refetchRateLimit:t}=yP(),[n,r]=k.useState(""),{isSheetOpen:i,closeSheet:a,openSheet:s}=t1(),{messages:o,sendMessage:u,isLoading:l,clear:c,stop:h}=Gb({connection:Yb(`${ra.BASE_URL}/chat`),onError:S=>console.error("Error:",S.message),onResponse:S=>console.log("Response:",S),onFinish:S=>{console.log("Finish:",S),t()}}),d=S=>{const O=!!S.text,P=!!S.files?.length;!(O||P)||l||(u(S.text),r(""))},m=()=>{c(),r("")},y=S=>{u(S),r("")},T=()=>{h(),r("")},w=l?"streaming":"ready",E=((S,O)=>S?"bg-blue-500":e?O===0?"bg-red-500":O<=5?"bg-yellow-500":"bg-emerald-500":"bg-zinc-500")(l,e?.remaining??0);return b.jsxs(b.Fragment,{children:[b.jsxs(Qa,{children:[b.jsx(Za,{asChild:!0,children:b.jsxs(Ge,{variant:"ghost",className:"border-r-0 border-y-0 border-l border-zinc-800 rounded-none h-full w-12 relative",onClick:()=>s("ai-assistant"),children:[b.jsx(fb,{className:"size-5"}),b.jsx("span",{className:ge("absolute top-2 right-2 h-2 w-2 rounded-full ring-2 ring-background",l?"animate-pulse":"",E)})]})}),b.jsx(Ja,{side:"bottom",className:"text-xs",children:l?b.jsx("p",{children:"Generating response..."}):e?b.jsxs("p",{children:[e.remaining,"/",e.limit," messages remaining"]}):b.jsx("p",{children:"AI Assistant"})})]}),b.jsx(C6,{title:"AI Assistant",cta:b.jsxs("div",{className:"flex items-center gap-2",children:[e&&b.jsxs(Qa,{children:[b.jsx(Za,{asChild:!0,children:b.jsxs("span",{className:"text-xs px-2 py-1 cursor-default text-muted-foreground",children:[e.remaining,"/",e.limit]})}),b.jsx(Ja,{side:"bottom",children:b.jsxs("p",{children:[e.remaining," messages remaining"]})})]}),b.jsxs(Ge,{type:"button",variant:"outline",size:"lg",onClick:m,disabled:l,children:[b.jsx(K5,{className:"h-4 w-4 mr-1"}),"New Chat"]})]}),closeButton:!1,open:i("ai-assistant"),size:"max-w-2xl!",contentClassName:"p-0 flex flex-col h-[calc(100vh-4rem)] flex-1",onOpenChange:S=>{S||a("ai-assistant")},children:b.jsxs("div",{className:"relative flex size-full flex-col divide-y overflow-hidden",children:[b.jsxs(e7,{children:[b.jsx(t7,{children:o.length===0?b.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:b.jsxs("div",{className:"text-center space-y-2",children:[b.jsx("p",{className:"text-lg font-medium",children:"Start a new conversation"}),b.jsx("p",{className:"text-sm",children:"Ask me anything to get started"})]})}):b.jsxs(b.Fragment,{children:[o.map(S=>{const O=S.parts.filter(U=>U.type==="thinking"),P=S.parts.filter(U=>U.type==="text").map(U=>U.content).join(""),D=O.length>0;return b.jsx(Yf,{defaultBranch:0,children:b.jsx(Gf,{children:b.jsx(qf,{from:S.role==="user"?"user":"assistant",children:b.jsxs("div",{children:[D&&S.role==="assistant"&&b.jsxs(M3,{duration:0,children:[b.jsx(R3,{}),b.jsx(L3,{children:O.map(U=>U.content).join(`
|
|
385
|
+
`)})]}),b.jsx($f,{children:b.jsx(N3,{children:P})})]})})})},S.id)}),l&&b.jsx(Yf,{defaultBranch:0,children:b.jsx(Gf,{children:b.jsx(qf,{from:"assistant",children:b.jsx($f,{children:b.jsx($T,{children:"Thinking..."})})})})})]})}),b.jsx(n7,{})]}),b.jsxs("div",{className:"grid shrink-0 gap-4 pt-3",children:[o.length===0&&b.jsx(gP,{className:"px-4",children:vb.map(S=>b.jsx(bP,{onClick:()=>y(S),suggestion:S,size:"lg",children:S},S))}),b.jsx("div",{className:"w-full px-4 pb-4",children:b.jsxs(nP,{globalDrop:!0,multiple:!0,onSubmit:d,children:[b.jsx(rP,{children:b.jsx(iP,{onChange:S=>r(S.target.value),value:n,placeholder:"Type a message..."})}),b.jsx(aP,{children:b.jsx(sP,{className:"h-8!",status:w,onClick:l?T:void 0,disabled:e&&e.remaining===0})})]})})]})]})})]})},TP=()=>{const{pathname:e}=d1(),t=e.split("/")[1]||"table";return b.jsx("div",{className:"flex h-full items-center",children:N6.map(n=>b.jsx(n1,{to:`/${n}`,className:"h-full flex items-center",children:b.jsx(Ge,{variant:"ghost",className:ge("flex-1 px-4 border-l-0 border-y-0 border-r border-zinc-800 h-full rounded-none",t===n?"bg-zinc-900 text-white":"text-zinc-400"),children:n})},n))})},EP=()=>{const{sidebar:{isOpen:e,isPinned:t},setSidebarOpen:n,setSidebarPinned:r}=Ns(),i=()=>{n(!e),r(!t)};return b.jsx(Ge,{variant:"ghost",onClick:i,className:"h-full aspect-square border-l-0 border-y-0 border-r border-zinc-800 rounded-none",children:e?b.jsx(bb,{className:"size-5"}):b.jsx(ob,{className:"size-5"})})},vP=()=>b.jsxs("div",{className:"border-b border-zinc-800 w-full flex items-center justify-between bg-black h-12",children:[b.jsxs("div",{className:"flex items-center h-full",children:[b.jsx(EP,{}),b.jsx(TP,{})]}),b.jsxs("div",{className:"flex items-center h-full",children:[b.jsx(xP,{}),b.jsxs(Qa,{children:[b.jsx(Za,{asChild:!0,children:b.jsx(Ge,{variant:"ghost",className:"border-r-0 border-y-0 border-l border-zinc-800 rounded-none h-full w-12",asChild:!0,children:b.jsx("a",{href:Ab.SITE_GITHUB_LINK,target:"_blank",rel:"noopener noreferrer",children:b.jsx(eb,{className:"size-5"})})})}),b.jsx(Ja,{children:b.jsx("p",{children:"View on GitHub"})})]})]})]});function AP({...e}){return b.jsx(J6,{"data-slot":"alert-dialog",...e})}function kP({...e}){return b.jsx(e5,{"data-slot":"alert-dialog-portal",...e})}function wP({className:e,...t}){return b.jsx(t5,{"data-slot":"alert-dialog-overlay",className:ge("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",e),...t})}function SP({className:e,size:t="default",...n}){return b.jsxs(kP,{children:[b.jsx(wP,{}),b.jsx(n5,{"data-slot":"alert-dialog-content","data-size":t,className:ge("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-background ring-foreground/10 gap-3 rounded-xl p-4 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none",e),...n})]})}function CP({className:e,...t}){return b.jsx("div",{"data-slot":"alert-dialog-header",className:ge("grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...t})}function NP({className:e,...t}){return b.jsx("div",{"data-slot":"alert-dialog-footer",className:ge("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...t})}function IP({className:e,...t}){return b.jsx(a5,{"data-slot":"alert-dialog-title",className:ge("text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...t})}function _P({className:e,...t}){return b.jsx(s5,{"data-slot":"alert-dialog-description",className:ge("text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3",e),...t})}function DP({className:e,variant:t="default",size:n="default",...r}){return b.jsx(Ge,{variant:t,size:n,asChild:!0,children:b.jsx(r5,{"data-slot":"alert-dialog-action",className:ge(e),...r})})}function MP({className:e,variant:t="outline",size:n="default",...r}){return b.jsx(Ge,{variant:t,size:n,asChild:!0,children:b.jsx(i5,{"data-slot":"alert-dialog-cancel",className:ge(e),...r})})}function P3({...e}){return b.jsx(_5,{"data-slot":"context-menu",...e})}function O3({className:e,...t}){return b.jsx(D5,{"data-slot":"context-menu-trigger",className:ge("select-none",e),...t})}function F3({className:e,...t}){return b.jsx(M5,{children:b.jsx(R5,{"data-slot":"context-menu-content",className:ge("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-(--radix-context-menu-content-available-height) origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto",e),...t})})}function zn({className:e,inset:t,variant:n="default",...r}){return b.jsx(L5,{"data-slot":"context-menu-item","data-inset":t,"data-variant":n,className:ge("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5 group/context-menu-item relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),...r})}function Wf({className:e,...t}){return b.jsx(P5,{"data-slot":"context-menu-separator",className:ge("bg-border/50 -mx-1 my-1 h-px",e),...t})}const hu=({folderId:e,isExpanded:t,onToggle:n,count:r,name:i,showContextMenu:a=!1})=>{const s=Is(),{deleteFolder:o,getQueriesByFolder:u,addQuery:l,updateFolder:c}=_s(),[h,d]=k.useState(!1),[m,y]=k.useState(""),[T,w]=k.useState(!1),A=k.useCallback(()=>{if(e){if(u(e).length>0){w(!0);return}o(e)}},[o,e,u]),E=k.useCallback(()=>{e&&(o(e),w(!1))},[o,e]),S=k.useCallback(()=>{const D=l(void 0,e);s({to:"/runner/$queryId",params:{queryId:D}})},[l,e,s]),O=k.useCallback(()=>{y(i),d(!0)},[i]),P=k.useCallback(()=>{e&&m.trim()&&(c(e,{name:m.trim()}),d(!1),y(""))},[e,m,c]);return b.jsxs(b.Fragment,{children:[a?b.jsxs(P3,{children:[b.jsx(O3,{asChild:!0,children:b.jsxs("button",{type:"button",onClick:n,className:ge("w-full flex gap-2 px-4 py-2 text-sm transition-colors text-left","hover:bg-zinc-800/50 hover:text-zinc-100 focus:outline-none focus:bg-zinc-800/50","text-zinc-400 items-center"),children:[b.jsx(oc,{className:ge("size-4 transition-transform duration-200",t?"rotate-90":"")}),b.jsx("span",{className:"flex-1",children:i}),b.jsx(Vi,{children:r})]})}),b.jsxs(F3,{children:[b.jsxs(zn,{onClick:S,children:[b.jsx(Cl,{className:"size-4"}),"Add a new query"]}),b.jsxs(zn,{onClick:O,children:[b.jsx(H1,{className:"size-4"}),"Rename folder"]}),b.jsxs(zn,{onClick:A,children:[b.jsx(h1,{className:"size-4"}),"Delete folder"]})]})]}):b.jsxs("button",{type:"button",onClick:n,className:ge("w-full flex gap-2 px-4 py-2 text-sm transition-colors text-left","hover:bg-zinc-800/50 hover:text-zinc-100 focus:outline-none focus:bg-zinc-800/50","text-zinc-400 items-center"),children:[b.jsx(oc,{className:ge("size-4 transition-transform duration-200",t?"rotate-90":"")}),b.jsx("span",{className:"flex-1",children:i}),b.jsx(Vi,{children:r})]}),b.jsx(fu,{open:h,onOpenChange:d,children:b.jsxs(mu,{children:[b.jsxs(pu,{children:[b.jsx(gu,{children:"Rename Folder"}),b.jsx(bu,{children:"Enter a new name for this folder."})]}),b.jsx(ji,{value:m,onChange:D=>y(D.target.value),placeholder:"Folder name",onKeyDown:D=>{D.key==="Enter"&&P()},autoFocus:!0}),b.jsxs(yu,{children:[b.jsx(Ge,{variant:"outline",onClick:()=>{d(!1),y("")},children:"Cancel"}),b.jsx(Ge,{onClick:P,disabled:!m.trim(),children:"Rename"})]})]})}),b.jsx(AP,{open:T,onOpenChange:w,children:b.jsxs(SP,{children:[b.jsxs(CP,{children:[b.jsx(IP,{children:"Delete Folder"}),b.jsxs(_P,{children:["This folder contains ",r," ",r===1?"query":"queries",". Deleting this folder will also delete all queries inside it. This action cannot be undone."]})]}),b.jsxs(NP,{children:[b.jsx(MP,{children:"Cancel"}),b.jsx(DP,{onClick:E,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete Folder"})]})]})})]})},Ua=({id:e,tableName:t,isNested:n=!1,showContextMenu:r=!0})=>{const i=Is(),{deleteQuery:a,addQuery:s,getQuery:o,toggleFavorite:u,updateQuery:l,moveQuery:c,folders:h,addFolder:d}=_s(),{queryId:m}=r1({strict:!1}),y=m===e,T=o(e),w=T?.isFavorite??!1,[A,E]=k.useState(!1),[S,O]=k.useState(""),[P,D]=k.useState(!1),[U,q]=k.useState(void 0),[Y,B]=k.useState(!1),[G,V]=k.useState(""),ue=k.useCallback(()=>{i({to:"/runner/$queryId",params:{queryId:e}})},[i,e]),ie=k.useCallback(()=>{a(e),m===e&&i({to:"/runner"}),or.success("Query deleted successfully")},[a,e,i,m]),ee=k.useCallback(()=>{const ce=o(e),L=s(`${ce?.name} (Copy)`);i({to:"/runner/$queryId",params:{queryId:L}}),or.success("Query duplicated successfully")},[s,o,i,e]),ye=k.useCallback(()=>{u(e),or.success("Query favorited successfully")},[u,e]),ne=k.useCallback(()=>{O(T?.name??""),E(!0)},[T?.name]),he=k.useCallback(()=>{S.trim()&&(l(e,{name:S.trim()}),E(!1),O(""),or.success("Query renamed successfully"))},[e,S,l]),de=k.useCallback(()=>{q(T?.folderId),B(!1),V(""),D(!0)},[T?.folderId]),_=k.useCallback(ce=>{ce==="__create_new__"?(B(!0),q(void 0)):(B(!1),q(ce==="__none__"?void 0:ce))},[]),be=k.useCallback(()=>{if(Y&&G.trim()){const ce=Math.random().toString(36).substring(2,15);d({id:ce,name:G.trim(),isExpanded:!0,isFavorite:!1}),c(e,ce),or.success("Query moved to new folder successfully")}else Y||(c(e,U),or.success("Query moved to selected folder successfully"));D(!1),B(!1),V(""),q(void 0)},[Y,G,U,e,d,c]);return b.jsxs("li",{className:"relative",children:[r?b.jsxs(P3,{children:[b.jsx(O3,{asChild:!0,children:b.jsxs("button",{type:"button",onClick:ue,className:ge("w-full flex gap-2 py-2 text-sm transition-colors text-left","hover:text-zinc-100 focus:outline-none focus:bg-accent/10 focus:text-zinc-100 justify-start items-center",y?"text-zinc-100 bg-accent/10":"text-zinc-400",n?"px-4 pl-12":"px-4"),children:[y&&b.jsx("span",{className:"absolute left-0 top-0 bottom-0 w-1 bg-accent"}),b.jsx("span",{className:"flex-1",children:t})]})}),b.jsxs(F3,{children:[b.jsxs(zn,{onClick:ne,children:[b.jsx(H1,{className:"size-4"}),"Rename query"]}),b.jsxs(zn,{onClick:ee,children:[b.jsx(nb,{className:"size-4"}),"Duplicate query"]}),b.jsxs(zn,{onClick:ye,children:[w?b.jsx(Eb,{className:"size-4"}):b.jsx(pb,{className:"size-4"}),w?"Remove from favorites":"Add to favorites"]}),b.jsx(Wf,{}),b.jsxs(zn,{onClick:de,children:[b.jsx(ab,{className:"size-4"}),"Move to folder"]}),b.jsx(Wf,{}),b.jsxs(zn,{onClick:ie,children:[b.jsx(h1,{className:"size-4"}),"Delete query"]})]})]}):b.jsxs("button",{type:"button",onClick:ue,className:ge("w-full flex gap-2 py-2 text-sm transition-colors text-left","hover:text-zinc-100 focus:outline-none focus:bg-accent/10 focus:text-zinc-100 justify-start items-center",y?"text-zinc-100 bg-accent/10":"text-zinc-400",n?"px-4 pl-12":"px-4"),children:[y&&b.jsx("span",{className:"absolute left-0 top-0 bottom-0 w-1 bg-accent"}),b.jsx("span",{className:"flex-1",children:t})]}),b.jsx(fu,{open:A,onOpenChange:E,children:b.jsxs(mu,{children:[b.jsxs(pu,{children:[b.jsx(gu,{children:"Rename Query"}),b.jsx(bu,{children:"Enter a new name for this query."})]}),b.jsx(ji,{value:S,onChange:ce=>O(ce.target.value),placeholder:"Query name",onKeyDown:ce=>{ce.key==="Enter"&&he()},autoFocus:!0}),b.jsxs(yu,{children:[b.jsx(Ge,{variant:"outline",onClick:()=>{E(!1),O("")},children:"Cancel"}),b.jsx(Ge,{onClick:he,disabled:!S.trim(),children:"Rename"})]})]})}),b.jsx(fu,{open:P,onOpenChange:ce=>{D(ce),ce||(B(!1),V(""),q(void 0))},children:b.jsxs(mu,{children:[b.jsxs(pu,{children:[b.jsx(gu,{children:"Move to Folder"}),b.jsx(bu,{children:"Select a folder to move this query to."})]}),b.jsx("div",{className:"space-y-4",children:Y?b.jsx(ji,{value:G,onChange:ce=>V(ce.target.value),placeholder:"Folder name",onKeyDown:ce=>{ce.key==="Enter"&&G.trim()&&be(),ce.key==="Escape"&&(B(!1),V(""))},autoFocus:!0}):b.jsxs(i1,{value:U??"__none__",onValueChange:_,children:[b.jsx(a1,{className:"w-full",children:b.jsx(s1,{placeholder:"Select a folder"})}),b.jsxs(o1,{children:[b.jsx(ja,{value:"__none__",children:"No folder"}),h.map(ce=>b.jsx(ja,{value:ce.id,children:ce.name},ce.id)),b.jsx(ja,{value:"__create_new__",children:b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(z1,{className:"size-4"}),"Create a new folder"]})})]})]})}),b.jsxs(yu,{children:[b.jsx(Ge,{variant:"outline",onClick:()=>{D(!1),B(!1),V(""),q(void 0)},children:"Cancel"}),b.jsx(Ge,{onClick:be,disabled:Y&&!G.trim(),children:Y?"Create & Move":"Move"})]})]})})]})},RP=()=>{const[e]=Ds(on.SIDEBAR_SEARCH,{defaultValue:""}),{folders:t,queries:n,getFavoriteQueries:r,getQueriesByFolder:i,toggleFolder:a}=_s(),[s,o]=k.useState(!0),[u,l]=k.useState(!0),c=n.filter(y=>!y.isFavorite).length,h=r(),d=h.length,m=n.filter(y=>!y.folderId&&!y.isFavorite);if(e){const y=n.filter(T=>T.name.toLowerCase().includes(e.toLowerCase()));return y.length===0?b.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:"No queries found matching"}):b.jsx("div",{className:"flex-1 overflow-y-auto",children:y.map(T=>b.jsx(Ua,{id:T.id,tableName:T.name},T.id))})}return b.jsxs("div",{className:"flex-1 overflow-y-auto",children:[b.jsx(hu,{name:"Favorites",isExpanded:s,onToggle:()=>o(!s),count:d}),s&&h.map(y=>b.jsx(Ua,{id:y.id,tableName:y.name},y.id)),b.jsx(kb,{className:"bg-zinc-800"}),b.jsx(hu,{name:"Queries",isExpanded:u,onToggle:()=>l(!u),count:c}),u&&b.jsxs(b.Fragment,{children:[t.map(y=>{const T=i(y.id),w=T.length;return b.jsxs("div",{children:[b.jsx(hu,{folderId:y.id,name:y.name,isExpanded:y.isExpanded,onToggle:()=>a(y.id),count:w,showContextMenu:!0}),y.isExpanded&&T.map(A=>b.jsx(Ua,{id:A.id,tableName:A.name,isNested:!0,showContextMenu:!0},A.id))]},y.id)}),m.map(y=>b.jsx(Ua,{id:y.id,tableName:y.name,showContextMenu:!0},y.id))]})]})},LP=()=>{const{addQuery:e,addFolder:t}=_s(),n=Is(),r=k.useRef(null),[i,a]=Ds(on.SIDEBAR_SEARCH,{defaultValue:""}),s=l=>{a(l.target.value)},o=()=>{const l=e();n({to:"/runner/$queryId",params:{queryId:l}})},u=()=>{const l=Math.random().toString(36).substring(2,15);t({id:l,name:"New Folder",isExpanded:!0,isFavorite:!1})};return b.jsxs("div",{className:"p-3 space-y-2 border-b border-zinc-800",children:[b.jsxs("div",{className:"flex gap-2",children:[b.jsxs(Ge,{className:"flex-1 justify-start h-8",onClick:o,children:[b.jsx(Cl,{className:"size-4"}),"Add Query"]}),b.jsxs(Ge,{className:"flex-1 justify-start h-8",onClick:u,children:[b.jsx(z1,{className:"size-4"}),"Add Folder"]})]}),b.jsxs("div",{className:"relative",children:[b.jsx(u1,{className:"absolute left-2 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),b.jsx(ji,{ref:r,placeholder:"Search queries",value:i??"",onChange:s,className:"rounded-sm h-8 pl-8 pr-8"}),b.jsx(Vi,{className:"absolute right-2 top-1/2 -translate-y-1/2 text-xs",children:"/"})]})]})},PP=()=>b.jsxs(b.Fragment,{children:[b.jsx(LP,{}),b.jsx(RP,{})]}),OP=({tableName:e,rowCount:t})=>{const r=r1({strict:!1}).table;return b.jsx("li",{className:"relative",children:b.jsxs(n1,{to:"/table/$table",params:{table:e},className:ge("w-full flex gap-0.5 px-4 py-1.5 text-sm transition-colors text-left","hover:text-zinc-100 focus:outline-none focus:bg-accent/10 focus:text-zinc-100 justify-start items-center",r===e?"text-white bg-zinc-800/50":"text-zinc-400"),children:[r===e&&b.jsx("span",{className:"absolute left-0 top-0 bottom-0 w-1 bg-accent"}),b.jsx("span",{className:"flex-1",children:e}),b.jsx(Vi,{children:t})]})})},FP=()=>{const[e]=Ds(on.SIDEBAR_SEARCH,{defaultValue:""}),{tablesList:t=[],isLoadingTablesList:n,errorTablesList:r}=I6(),i=t?.filter(a=>a.tableName.toLowerCase().includes(e.toLowerCase()));return n?b.jsx("div",{className:"flex-1 h-full overflow-y-auto pb-3 flex items-center justify-center",children:b.jsx(B6,{size:"size-6"})}):r?b.jsxs("div",{className:"flex-1 overflow-y-auto pb-3 h-full flex items-center justify-center",children:["Error: ",r.message]}):b.jsx("div",{className:"flex-1 overflow-y-auto pb-3",children:i&&i.length>0?b.jsx("ul",{children:i?.map(a=>b.jsx(OP,{tableName:a.tableName,rowCount:a.rowCount},a.tableName))}):e?b.jsx("div",{className:"flex-1 overflow-y-auto pb-3 h-full flex items-center justify-center",children:"No tables found matching"}):b.jsx("div",{className:"flex-1 overflow-y-auto pb-3 h-full flex items-center justify-center",children:"No tables available"})})},BP=()=>{const e=k.useRef(null),[t,n]=Ds(on.SIDEBAR_SEARCH,{defaultValue:""}),{openSheet:r}=t1();return O6("/",i=>{i.preventDefault(),e.current&&e.current.focus()},{preventDefault:!0}),b.jsxs("div",{className:"p-3 space-y-2",children:[b.jsxs(Ge,{className:"w-full justify-start h-8",onClick:()=>r("add-table"),children:[b.jsx(Cl,{className:"size-4"}),"Add Table"]}),b.jsxs("div",{className:"relative",children:[b.jsx(u1,{className:"absolute left-2 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),b.jsx(ji,{ref:e,placeholder:"Search tables",value:t??"",onChange:i=>n(i.target.value.trim()),className:"rounded-sm h-8 pl-8 pr-8"}),b.jsx(Vi,{className:"absolute right-2 top-1/2 -translate-y-1/2 text-xs",children:"/"})]})]})},Xf=()=>b.jsxs(b.Fragment,{children:[b.jsx(BP,{}),b.jsx(c1,{className:"flex-1 overflow-y-auto pb-3 block h-full w-full",children:b.jsx(FP,{})})]}),zP=()=>{const{data:e,isLoading:t,error:n,refetch:r,isRefetching:i}=Cs({queryKey:[on.CACHE_KEYS.DATABASES_LIST],queryFn:async()=>{const a=await fetch(`${ra.BASE_URL}/databases`),s=await a.json();if(!a.ok)throw new Error("Failed to fetch databases list");return console.log("useDatabasesList data",s),s},staleTime:3e5});return{databases:e,isLoadingDatabases:t,databasesError:n,refetchDatabases:r,isRefetchingDatabases:i}},HP=()=>{const{selectedDatabase:e,setSelectedDatabase:t}=l1(),{data:n,isLoading:r,error:i}=Cs({queryKey:[on.CACHE_KEYS.CURRENT_DATABASE],queryFn:async()=>{const a=await fetch(`${ra.BASE_URL}/databases/current`);if(!a.ok)throw new Error("Failed to fetch current database");return a.json()},staleTime:1e3*60*5});return k.useEffect(()=>{n&&(console.log("useCurrentDatabase data",n),n.database&&!e&&!r&&t(n.database))},[n,e,r,t]),{currentDatabase:n,isLoadingCurrentDatabase:r,currentDatabaseError:i}},UP=()=>{const{data:e,isLoading:t,error:n}=Cs({queryKey:[on.CACHE_KEYS.DATABASE_CONNECTION_INFO],queryFn:async()=>{const r=await fetch(`${ra.BASE_URL}/databases/connection`);if(!r.ok)throw new Error("Failed to fetch database connection info");return r.json()},staleTime:3e5});return{connectionInfo:e,isLoadingConnectionInfo:t,connectionInfoError:n}};function jP(){const{databases:e,isLoadingDatabases:t,refetchDatabases:n,isRefetchingDatabases:r}=zP(),{currentDatabase:i,isLoadingCurrentDatabase:a}=HP(),{connectionInfo:s,isLoadingConnectionInfo:o}=UP(),{selectedDatabase:u,setSelectedDatabase:l}=l1(),c=Is(),[h,d]=k.useState(!1);k.useEffect(()=>{i?.database&&!u&&!a&&l(i.database)},[i,u,l,a]);const m=T=>{l(T),c({to:"/table",search:{}})},y=async()=>{await n(),or.success("Databases refreshed")};return b.jsx("div",{className:"mt-auto border-t bg-background",children:b.jsxs("div",{className:"p-4 space-y-2",children:[b.jsxs("div",{className:"space-y-2",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Y5,{className:"h-4 w-4 text-muted-foreground"}),b.jsx("span",{className:"text-sm font-medium",children:"Database"})]}),b.jsxs(Qa,{children:[b.jsx(Za,{asChild:!0,children:b.jsx(Ge,{variant:"ghost",size:"icon",className:"h-6 w-6 hover:bg-accent",onClick:y,disabled:t||r,children:b.jsx(F6,{className:ge("h-3.5 w-3.5",t||r&&"animate-spin")})})}),b.jsx(Ja,{children:"Refresh databases"})]})]}),b.jsxs(i1,{value:u||"",onValueChange:m,children:[b.jsx(a1,{className:"h-9 text-xs font-mono w-full",disabled:t||r,children:b.jsx(s1,{placeholder:"Select database..."})}),b.jsx(o1,{children:e?.map(T=>b.jsx(ja,{value:T.name,className:"font-mono text-xs",children:T.name},T.name))})]})]}),b.jsxs("div",{className:"space-y-2",children:[b.jsxs(Ge,{variant:"ghost",className:"w-full hover:bg-accent flex items-center justify-between",onClick:()=>d(!h),disabled:o||r,children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex items-center justify-center",children:b.jsxs("div",{className:"relative flex h-2 w-2",children:[b.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),b.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-green-500"})]})}),b.jsx("span",{className:"text-xs font-medium text-green-600",children:"Connected"})]}),b.jsx(e1,{className:ge("size-3 text-muted-foreground transition-transform",h&&"rotate-180")})]}),h&&s&&b.jsxs("div",{className:"space-y-1.5 px-2 py-2 rounded-md bg-muted/30",children:[b.jsxs("div",{className:"flex justify-between items-center",children:[b.jsx("span",{className:"text-xs text-muted-foreground",children:"Host"}),b.jsxs("span",{className:"text-xs font-mono text-foreground",children:[s.host,":",s.port]})]}),b.jsxs("div",{className:"flex justify-between items-center",children:[b.jsx("span",{className:"text-xs text-muted-foreground",children:"User"}),b.jsx("span",{className:"text-xs font-mono text-foreground",children:s.user})]}),b.jsxs("div",{className:"flex justify-between items-center",children:[b.jsx("span",{className:"text-xs text-muted-foreground",children:"Databases"}),b.jsx("span",{className:"text-xs font-mono font-medium text-foreground",children:e?.length||0})]})]})]})]})})}const VP=()=>{const{sidebar:{isPinned:e},toggleSidebarPinned:t}=Ns();return b.jsx("div",{className:"flex items-center justify-between h-9 border-b border-zinc-800",children:b.jsx(Ge,{variant:"ghost",size:"lg",onClick:t,className:"size-9 flex items-center justify-center transition hover:bg-transparent! focus-visible:ring-0 focus-visible:ring-offset-0",title:e?"Unpin sidebar":"Pin sidebar",children:e?b.jsx(xb,{className:"size-4"}):b.jsx(cb,{className:"size-4"})})})},qP=({children:e})=>{const{sidebar:{width:t,isOpen:n,isPinned:r},setSidebarWidth:i,setSidebarOpen:a}=Ns(),s=k.useRef(!1),o=k.useRef(0),u=k.useRef(0),l=k.useRef(null),c=k.useRef(null),h=k.useCallback(E=>{s.current&&requestAnimationFrame(()=>{const S=E.clientX-o.current,O=u.current+S;i(O)})},[i]),d=k.useCallback(()=>{s.current=!1,document.body.style.cursor="",document.body.style.userSelect="";const E=document.getElementById("resize-overlay");E&&E.remove()},[]),m=k.useCallback(E=>{E.preventDefault(),s.current=!0,o.current=E.clientX,u.current=t,document.body.style.cursor="col-resize",document.body.style.userSelect="none";const S=document.createElement("div");S.id="resize-overlay",S.style.cssText="position:fixed;inset:0;z-index:9999;cursor:col-resize;",document.body.appendChild(S)},[t]),y=k.useCallback(()=>{r||a(!0)},[r,a]),T=k.useCallback(()=>{r||a(!1)},[r,a]),w=k.useCallback(E=>{r||n||s.current||(E.clientX<=on.HOVER_ZONE?(l.current&&clearTimeout(l.current),l.current=window.setTimeout(()=>{a(!0)},on.HOVER_DELAY)):E.clientX>on.HOVER_ZONE+50&&l.current&&clearTimeout(l.current))},[r,n,a]),A=E=>{r||a(E)};return k.useEffect(()=>(document.addEventListener("mousemove",h),document.addEventListener("mouseup",d),document.addEventListener("mousemove",w),()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",d),document.removeEventListener("mousemove",w),l.current&&clearTimeout(l.current)}),[h,d,w]),k.useEffect(()=>{const E=c.current;if(E)return E.addEventListener("mouseenter",y),E.addEventListener("mouseleave",T),()=>{E.removeEventListener("mouseenter",y),E.removeEventListener("mouseleave",T)}},[y,T]),b.jsxs(_6,{open:n,onOpenChange:A,modal:!1,children:[b.jsx(D6,{className:"sr-only",children:"Open Sidebar"}),b.jsx(M6,{ref:c,side:"left",showCloseButton:!1,isPinned:r,className:ge("bg-black border-r border-zinc-800 p-0","transition-transform duration-300 ease-out"),style:{width:`${t}px`},onOpenAutoFocus:E=>E.preventDefault(),children:b.jsxs("div",{className:"relative h-full flex flex-col",children:[e,b.jsx("div",{role:"button",tabIndex:0,onMouseDown:m,className:ge("absolute top-0 right-0 w-2 h-full cursor-col-resize z-50","hover:bg-blue-500/50 transition-colors group"),title:"Drag to resize",children:b.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 w-2 h-12 bg-blue-500 opacity-0 group-hover:opacity-100 transition-opacity rounded-full"})})]})})]})},$P=()=>{const{pathname:e}=d1(),t=e.split("/")[1],n=k.useMemo(()=>{switch(console.log(t),t){case"":case"table":return b.jsx(Xf,{});case"runner":return b.jsx(PP,{});default:return b.jsx(Xf,{})}},[t]);return b.jsxs(qP,{children:[b.jsx(VP,{}),n,b.jsx(jP,{})]})};function YP(){const{sidebar:{isPinned:e,width:t}}=Ns();return b.jsxs("div",{className:"bg-zinc-950 w-dvw flex h-dvh max-h-dvh overflow-hidden relative",children:[b.jsx($P,{}),b.jsxs("div",{className:"flex-1 flex flex-col h-full overflow-hidden ",style:{marginLeft:e?`${t}px`:"0"},children:[b.jsx(vP,{}),b.jsx(R6,{})]})]})}const JP=Object.freeze(Object.defineProperty({__proto__:null,component:YP},Symbol.toStringTag,{value:"Module"}));export{Kt as C,dL as D,WL as E,JP as _,Op as a,Fp as b,Gd as c,Zv as d,ZP as e,Bs as f,ca as h,_e as k,Kn as s,Ee as u,ED as w,e4 as z};
|